calculate_fee: RuntimeDescriptor<[command: Enum<{
AgentExecute: {
agent_id: FixedSizeBinary<32>;
command: Enum<{
TransferToken: {
amount: bigint;
recipient: FixedSizeBinary<20>;
token: FixedSizeBinary<20>;
};
}>;
};
CreateAgent: {
agent_id: FixedSizeBinary<32>;
};
CreateChannel: {
agent_id: FixedSizeBinary<32>;
channel_id: FixedSizeBinary<32>;
mode: Enum<{
Normal: undefined;
RejectingOutboundMessages: undefined;
}>;
};
MintForeignToken: {
amount: bigint;
recipient: FixedSizeBinary<20>;
token_id: FixedSizeBinary<32>;
};
RegisterForeignToken: {
decimals: number;
name: Binary;
symbol: Binary;
token_id: FixedSizeBinary<32>;
};
SetOperatingMode: {
mode: Enum<{
Normal: undefined;
RejectingOutboundMessages: undefined;
}>;
};
SetPricingParameters: {
delivery_cost: bigint;
exchange_rate: FixedSizeArray<4, bigint>;
multiplier: FixedSizeArray<4, bigint>;
};
SetTokenTransferFees: {
create_asset_xcm: bigint;
register_token: FixedSizeArray<4, bigint>;
transfer_asset_xcm: bigint;
};
TransferNativeFromAgent: {
agent_id: FixedSizeBinary<32>;
amount: bigint;
recipient: FixedSizeBinary<20>;
};
TransferNativeToken: {
agent_id: FixedSizeBinary<32>;
amount: bigint;
recipient: FixedSizeBinary<20>;
token: FixedSizeBinary<20>;
};
UpdateChannel: {
channel_id: FixedSizeBinary<32>;
mode: Enum<{
Normal: undefined;
RejectingOutboundMessages: undefined;
}>;
};
Upgrade: {
impl_address: FixedSizeBinary<20>;
impl_code_hash: FixedSizeBinary<32>;
initializer?: {
maximum_required_gas: bigint;
params: Binary;
};
};
}>, parameters: {
exchange_rate: bigint;
fee_per_gas: FixedSizeArray<4, bigint>;
multiplier: bigint;
rewards: {
local: bigint;
remote: FixedSizeArray<4, bigint>;
};
} | undefined], {
local: bigint;
remote: bigint;
}>
Calculate the delivery fee for
command