Skip to content

Commit

Permalink
feat: add acala <-> assetHub USDC cross-chain (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwer951123 authored Feb 6, 2024
1 parent b98aee7 commit a81d592
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-29"
"stableVersion": "0.1.5-30"
}
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: "DOT", amount: "100000000" },
},
},
{
to: "statemint",
token: "USDC",
xcm: {
fee: { token: "DOT", amount: "100000000" },
},
},
{
to: "statemint",
token: "PINK",
Expand Down Expand Up @@ -208,6 +215,12 @@ export const acalaTokensConfig: Record<string, BasicToken> = {
decimals: 6,
ed: "700000",
},
USDC: {
name: "USDC",
symbol: "USDC",
decimals: 6,
ed: "10000",
},
PINK: {
name: "PINK",
symbol: "PINK",
Expand Down
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: "USDC",
xcm: {
fee: { token: "USDC", amount: "803" },
weightLimit: "Unlimited",
},
},
{
to: "acala",
token: "PINK",
Expand Down Expand Up @@ -100,6 +108,13 @@ export const statemintTokensConfig: Record<string, ExtendedToken> = {
ed: "700000",
toRaw: () => new BN(1984),
},
USDC: {
name: "USDC",
symbol: "USDC",
decimals: 6,
ed: "700000",
toRaw: () => new BN(1337),
},
PINK: {
name: "PINK",
symbol: "PINK",
Expand Down

0 comments on commit a81d592

Please sign in to comment.