Skip to content

Commit

Permalink
feat: add statemint <-> pink cross-chain config (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer951123 authored Jan 9, 2024
1 parent e9ccb89 commit 68ec2bb
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@
"jest": "^28.1.1",
"typescript": "^4.7.4"
},
"stableVersion": "0.1.5-25"
"stableVersion": "0.1.5-26"
}
13 changes: 13 additions & 0 deletions src/adapters/acala/acala-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ export const acalaRouteConfigs = createRouteConfigs("acala", [
fee: { token: "USDT", amount: "700000" },
},
},
{
to: "statemint",
token: "PINK",
xcm: {
fee: { token: "DOT", amount: "1000000000" },
},
},
]);

export const acalaTokensConfig: Record<string, BasicToken> = {
Expand Down Expand Up @@ -201,4 +208,10 @@ export const acalaTokensConfig: Record<string, BasicToken> = {
decimals: 6,
ed: "700000",
},
PINK: {
name: "PINK",
symbol: "PINK",
decimals: 10,
ed: "1000000000",
},
};
15 changes: 15 additions & 0 deletions src/adapters/statemint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ export const statemintRouteConfigs = createRouteConfigs("statemint", [
weightLimit: "Unlimited",
},
},
{
to: "acala",
token: "PINK",
xcm: {
fee: { token: "PINK", amount: "80370000" },
weightLimit: "Unlimited",
},
},
]);

export const statemineRouteConfigs = createRouteConfigs("statemine", [
Expand Down Expand Up @@ -92,6 +100,13 @@ export const statemintTokensConfig: Record<string, ExtendedToken> = {
ed: "700000",
toRaw: () => new BN(1984),
},
PINK: {
name: "PINK",
symbol: "PINK",
decimals: 10,
ed: "1",
toRaw: () => new BN(23),
},
};

export const statemineTokensConfig: Record<string, ExtendedToken> = {
Expand Down

0 comments on commit 68ec2bb

Please sign in to comment.