Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCM fixes #2446

Merged
merged 3 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading