Skip to content

Commit

Permalink
xcm v3 for relay chains
Browse files Browse the repository at this point in the history
  • Loading branch information
Robiquet committed Jul 5, 2024
1 parent 58abe00 commit 207a003
Show file tree
Hide file tree
Showing 3 changed files with 282 additions and 43 deletions.
16 changes: 8 additions & 8 deletions lib/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const BATTERY_STATION_CHAINS: Chain[] = [
};
const account = {
parents: 0,
interior: { X1: { AccountId32: { id: accountId, network: "Any" } } },
interior: { X1: { AccountId32: { id: accountId } } },
};
const asset = [
{
Expand All @@ -81,9 +81,9 @@ const BATTERY_STATION_CHAINS: Chain[] = [
];

const tx = api.tx.xcmPallet.reserveTransferAssets(
{ V2: destination },
{ V2: account },
{ V2: asset },
{ V3: destination },
{ V3: account },
{ V3: asset },
0,
);

Expand Down Expand Up @@ -135,7 +135,7 @@ const PROD_CHAINS: Chain[] = [
};
const account = {
parents: 0,
interior: { X1: { AccountId32: { id: accountId, network: "Any" } } },
interior: { X1: { AccountId32: { id: accountId } } },
};
const asset = [
{
Expand All @@ -145,9 +145,9 @@ const PROD_CHAINS: Chain[] = [
];

const tx = api.tx.xcmPallet.reserveTransferAssets(
{ V2: destination },
{ V2: account },
{ V2: asset },
{ V3: destination },
{ V3: account },
{ V3: asset },
0,
);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@headlessui/tailwindcss": "^0.1.2",
"@notionhq/client": "^2.2.3",
"@plaiceholder/next": "^2.5.0",
"@polkadot/api": "^10.12.6",
"@polkadot/api": "12.1.1",
"@polkadot/extension-dapp": "^0.44.6",
"@polkadot/keyring": "^12.6.2",
"@polkadot/ui-keyring": "^2.4.1",
Expand Down
Loading

0 comments on commit 207a003

Please sign in to comment.