Skip to content

Commit

Permalink
max weight info added
Browse files Browse the repository at this point in the history
  • Loading branch information
gitofdeepanshu committed Oct 3, 2023
1 parent 30050ef commit b2c2339
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions precompiles/xcm/XCM_v2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ interface XCM {
/// @param currencyAddress The ERC20 address of the currency we want to transfer
/// @param amount The amount of tokens we want to transfer
/// @param destination The Multilocation to which we want to send the tokens
/// @param weight The weight we want to buy in the destination chain
/// @param weight The weight we want to buy in the destination chain, to provide
/// unlimited weight, you should use maximum u64 value (i.e. 18446744073709551615 )
/// for ref_time
function transfer(
address currencyAddress,
uint256 amount,
Expand All @@ -49,7 +51,9 @@ interface XCM {
/// @param currencyAddress The ERC20 address of the currency we want to transfer
/// @param amount The amount of tokens we want to transfer
/// @param destination The Multilocation to which we want to send the tokens
/// @param weight The weight we want to buy in the destination chain
/// @param weight The weight we want to buy in the destination chain, to provide
/// unlimited weight, you should use maximum u64 value (i.e. 18446744073709551615 )
/// for ref_time
function transfer_with_fee(
address currencyAddress,
uint256 amount,
Expand All @@ -65,7 +69,9 @@ interface XCM {
/// Currently only Concrete Fungible assets
/// @param amount The amount of tokens we want to transfer
/// @param destination The Multilocation to which we want to send the tokens
/// @param weight The weight we want to buy in the destination chain
/// @param weight The weight we want to buy in the destination chain, to provide
/// unlimited weight, you should use maximum u64 value (i.e. 18446744073709551615 )
/// for ref_time
function transfer_multiasset(
Multilocation memory asset,
uint256 amount,
Expand All @@ -80,7 +86,9 @@ interface XCM {
/// Currently only Concrete Fungible assets
/// @param amount The amount of tokens we want to transfer
/// @param destination The Multilocation to which we want to send the tokens
/// @param weight The weight we want to buy in the destination chain
/// @param weight The weight we want to buy in the destination chain, to provide
/// unlimited weight, you should use maximum u64 value (i.e. 18446744073709551615 )
/// for ref_time
function transfer_multiasset_with_fee(
Multilocation memory asset,
uint256 amount,
Expand All @@ -95,7 +103,9 @@ interface XCM {
/// @param currencies The currencies we want to transfer, defined by their address and amount.
/// @param feeItem Which of the currencies to be used as fee
/// @param destination The Multilocation to which we want to send the tokens
/// @param weight The weight we want to buy in the destination chain
/// @param weight The weight we want to buy in the destination chain, to provide
/// unlimited weight, you should use maximum u64 value (i.e. 18446744073709551615 )
/// for ref_time
function transfer_multi_currencies(
Currency[] memory currencies,
uint32 feeItem,
Expand All @@ -109,7 +119,9 @@ interface XCM {
/// @param assets The assets we want to transfer, defined by their location and amount.
/// @param feeItem Which of the currencies to be used as fee
/// @param destination The Multilocation to which we want to send the tokens
/// @param weight The weight we want to buy in the destination chain
/// @param weight The weight we want to buy in the destination chain, to provide
/// unlimited weight, you should use maximum u64 value (i.e. 18446744073709551615 )
/// for ref_time
function transfer_multi_assets(
EvmMultiAsset[] memory assets,
uint32 feeItem,
Expand Down

0 comments on commit b2c2339

Please sign in to comment.