Skip to content

Commit

Permalink
send_xcm into xcmv2
Browse files Browse the repository at this point in the history
  • Loading branch information
gitofdeepanshu committed Oct 3, 2023
1 parent b2c2339 commit 40e36d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
14 changes: 0 additions & 14 deletions precompiles/xcm/XCM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ pragma solidity ^0.8.0;
*/
interface XCM {

// A multilocation is defined by its number of parents and the encoded junctions (interior)
struct Multilocation {
uint8 parents;
bytes[] interior;
}

/**
* @param asset_id - list of XC20 asset addresses
* @param asset_amount - list of transfer amounts (must match with asset addresses above)
Expand Down Expand Up @@ -117,12 +111,4 @@ interface XCM {
uint256 fee_index
) external returns (bool);

/**
* @param destination - Multilocation of destination chain where to send this call
* @param xcm_call - encoded xcm call you want to send to destination
**/
function send_xcm(
Multilocation memory destination,
bytes memory xcm_call
) external returns (bool);
}
9 changes: 9 additions & 0 deletions precompiles/xcm/XCM_v2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,13 @@ interface XCM {
Multilocation memory destination,
WeightV2 memory weight
) external returns (bool);

/**
* @param destination - Multilocation of destination chain where to send this call
* @param xcm_call - encoded xcm call you want to send to destination
**/
function send_xcm(
Multilocation memory destination,
bytes memory xcm_call
) external returns (bool);
}

0 comments on commit 40e36d5

Please sign in to comment.