Skip to content

Commit

Permalink
Merge pull request #2446 from zeitgeistpm/xcm-fix-relay-chain
Browse files Browse the repository at this point in the history
XCM fixes
  • Loading branch information
Robiquet authored Aug 27, 2024
2 parents 36d1113 + 1df1f45 commit 00cfff8
Show file tree
Hide file tree
Showing 4 changed files with 289 additions and 44 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
8 changes: 7 additions & 1 deletion lib/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,16 @@ export const ZTG_CHAIN_ID = "polkadot:1bf2a2ecb4a868de66ea8610f2ce7c8c";

export const endpoints: EndpointOption[] = [
{
value: "wss://zeitgeist.api.onfinality.io/ws?apikey=fcfa6c61-e80e-4bb9-b255-44c2c82d0ddb",
value:
"wss://zeitgeist.api.onfinality.io/ws?apikey=fcfa6c61-e80e-4bb9-b255-44c2c82d0ddb",
label: "OnFinality",
environment: "production",
},
{
value: "wss://zeitgeist.api.onfinality.io/public-ws",
label: "OnFinalityPublic",
environment: "production",
},
{
value: "wss://main.rpc.zeitgeist.pm/ws",
label: "ZeitgeistPM",
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 00cfff8

Please sign in to comment.