Skip to content

Commit

Permalink
feat: remove some unsupport chains (#141)
Browse files Browse the repository at this point in the history
* feat: remove some unsupport bridges

* update
  • Loading branch information
qwer951123 authored Dec 3, 2024
1 parent 1b98ef6 commit 34d98f3
Show file tree
Hide file tree
Showing 16 changed files with 1,724 additions and 2,250 deletions.
109 changes: 64 additions & 45 deletions docs/support-bridges.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,31 @@
| acala | moonbeam | ACA |
| acala | moonbeam | AUSD |
| acala | moonbeam | DOT |
| acala | parallel | PARA |
| acala | parallel | ACA |
| acala | parallel | AUSD |
| acala | parallel | LDOT |
| acala | moonbeam | LDOT |
| acala | astar | ASTR |
| acala | astar | ACA |
| acala | astar | AUSD |
| acala | astar | LDOT |
| acala | interlay | INTR |
| acala | interlay | IBTC |
| acala | hydradx | DAI |
| acala | hydradx | DOT |
| acala | hydradx | WETH |
| acala | hydradx | WBTC |
| acala | hydradx | LDOT |
| acala | hydradx | ACA |
| acala | unique | UNQ |
| acala | assetHubPolkadot | USDT |
| acala | assetHubPolkadot | USDC |
| acala | assetHubPolkadot | PINK |
| karura | kusama | KSM |
| karura | statemine | RMRK |
| karura | statemine | ARIS |
| karura | statemine | USDT |
| karura | assetHubKusama | RMRK |
| karura | assetHubKusama | ARIS |
| karura | assetHubKusama | USDT |
| karura | shiden | SDN |
| karura | shiden | KUSD |
| karura | bifrost | BNC |
| karura | bifrost | KSM |
| karura | bifrost | KAR |
| karura | bifrost | KUSD |
| karura | bifrost | VSKSM |
Expand All @@ -47,29 +51,21 @@
| karura | khala | PHA |
| karura | khala | KUSD |
| karura | khala | KAR |
| karura | kico | KICO |
| karura | kico | KAR |
| karura | kico | KUSD |
| karura | calamari | KSM |
| karura | calamari | KMA |
| karura | calamari | KUSD |
| karura | calamari | KAR |
| karura | calamari | LKSM |
| karura | moonriver | MOVR |
| karura | moonriver | KSM |
| karura | moonriver | KAR |
| karura | moonriver | KUSD |
| karura | heiko | HKO |
| karura | heiko | KAR |
| karura | heiko | KUSD |
| karura | heiko | LKSM |
| karura | pichiu | PCHU |
| karura | pichiu | KAR |
| karura | pichiu | KUSD |
| karura | pichiu | LKSM |
| karura | turing | TUR |
| karura | turing | KAR |
| karura | turing | KUSD |
| karura | turing | LKSM |
| karura | basilisk | BSX |
| karura | basilisk | KSM |
| karura | basilisk | KUSD |
| karura | basilisk | DAI |
| karura | basilisk | USDCet |
Expand All @@ -80,43 +76,69 @@
| karura | listen | KUSD |
| karura | listen | LKSM |
| karura | quartz | QTZ |
| assetHubPolkadot | polkadot | DOT |
| assetHubPolkadot | hydradx | USDT |
| assetHubPolkadot | acala | USDT |
| assetHubPolkadot | acala | USDC |
| assetHubPolkadot | acala | PINK |
| assetHubPolkadot | astar | USDT |
| assetHubPolkadot | interlay | USDT |
| assetHubPolkadot | interlay | USDC |
| assetHubPolkadot | moonbeam | USDT |
| assetHubKusama | kusama | KSM |
| assetHubKusama | karura | RMRK |
| assetHubKusama | karura | ARIS |
| assetHubKusama | karura | USDT |
| assetHubKusama | kintsugi | USDT |
| astar | acala | ASTR |
| astar | acala | ACA |
| astar | acala | AUSD |
| astar | acala | LDOT |
| astar | hydradx | ASTR |
| astar | assetHubPolkadot | USDT |
| astar | interlay | IBTC |
| astar | interlay | INTR |
| shiden | karura | SDN |
| shiden | karura | KUSD |
| bifrost | karura | BNC |
| bifrost | karura | VSKSM |
| bifrost | karura | KSM |
| bifrost | karura | KAR |
| bifrost | karura | KUSD |
| bifrost | kintsugi | VKSM |
| basilisk | kusama | KSM |
| basilisk | karura | BSX |
| basilisk | karura | KUSD |
| basilisk | karura | aUSD |
| basilisk | karura | KSM |
| basilisk | karura | DAI |
| basilisk | karura | USDCet |
| basilisk | karura | WETH |
| basilisk | karura | WBTC |
| hydradx | acala | DAI |
| hydradx | acala | WETH |
| hydradx | acala | WBTC |
| basilisk | assetHubKusama | USDT |
| basilisk | tinkernet | TNKR |
| basilisk | robonomics | XRT |
| integritee | karura | TEER |
| interlay | acala | INTR |
| interlay | acala | IBTC |
| interlay | astar | INTR |
| interlay | astar | IBTC |
| interlay | phala | PHA |
| interlay | phala | INTR |
| interlay | phala | IBTC |
| interlay | polkadot | DOT |
| interlay | assetHubPolkadot | USDC |
| interlay | assetHubPolkadot | USDT |
| interlay | hydradx | IBTC |
| interlay | hydradx | INTR |
| interlay | hydradx | HDX |
| interlay | bifrostPolkadot | VDOT |
| interlay | bifrostPolkadot | BNC |
| kintsugi | karura | KINT |
| kintsugi | karura | KBTC |
| kintsugi | karura | LKSM |
| kico | karura | KICO |
| kico | karura | KAR |
| kico | karura | KUSD |
| pichiu | karura | PCHU |
| pichiu | karura | KAR |
| pichiu | karura | KUSD |
| pichiu | karura | LKSM |
| kintsugi | kusama | KSM |
| kintsugi | assetHubKusama | USDT |
| kintsugi | bifrost | VKSM |
| listen | karura | LT |
| listen | karura | KAR |
| listen | karura | KUSD |
Expand All @@ -126,33 +148,30 @@
| calamari | karura | KAR |
| calamari | karura | LKSM |
| calamari | karura | KSM |
| moonbeam | acala | GLMR |
| moonbeam | acala | xcACA |
| moonbeam | acala | xcaUSD |
| moonbeam | acala | xcDOT |
| turing | karura | TUR |
| turing | karura | KAR |
| turing | karura | KUSD |
| turing | karura | LKSM |
| parallel | acala | PARA |
| parallel | acala | ACA |
| parallel | acala | AUSD |
| parallel | acala | LDOT |
| heiko | karura | HKO |
| heiko | karura | KAR |
| heiko | karura | KUSD |
| heiko | karura | LKSM |
| phala | interlay | PHA |
| phala | interlay | IBTC |
| phala | interlay | INTR |
| khala | karura | PHA |
| khala | karura | KUSD |
| khala | karura | KAR |
| polkadot | acala | DOT |
| polkadot | hydradx | DOT |
| polkadot | statemint | DOT |
| polkadot | assetHubPolkadot | DOT |
| polkadot | interlay | DOT |
| kusama | karura | KSM |
| kusama | basilisk | KSM |
| kusama | statemine | KSM |
| statemint | polkadot | DOT |
| statemint | hydradx | USDT |
| statemine | kusama | KSM |
| statemine | karura | RMRK |
| statemine | karura | ARIS |
| statemine | karura | USDT |
| kusama | assetHubKusama | KSM |
| kusama | kintsugi | KSM |
| subsocial | hydradx | SUB |
| subsocial | moonbeam | SUB |
| unique | acala | UNQ |
| quartz | karura | QTZ |
| zeitgeist | hydradx | ZTG |
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkawallet/bridge",
"version": "0.1.7-12",
"version": "0.1.7-13",
"description": "polkawallet bridge sdk",
"main": "index.js",
"types": "index.d.ts",
Expand Down Expand Up @@ -33,16 +33,17 @@
"@acala-network/sdk": "^4.1.9-13",
"@acala-network/sdk-core": "^4.1.9-13",
"@polkadot/api": "^14.0.1",
"@polkadot/types": "^14.0.1",
"@polkadot/util": "^13.2.3"
"@polkadot/types": "^14.0.1"
},
"dependencies": {
"@acala-network/api": "^5",
"@acala-network/sdk": "^4.1.9-13",
"@acala-network/sdk-core": "^4.1.9-13",
"@polkadot/api": "^14.0.1",
"@polkadot/apps-config": "^0.133.1",
"@polkadot/apps-config": "0.146.1",
"@polkadot/keyring": "^13.2.3",
"@polkadot/types": "^14.0.1",
"@polkadot/util": "^13.2.3",
"axios": "^0.27.2",
"ethers": "^5",
"lodash": "^4.17.20"
Expand All @@ -54,6 +55,7 @@
"@types/lodash": "^4.14.161",
"eslint-plugin-unused-imports": "^2.0.0",
"jest": "^28.1.1",
"ts-node": "^10.9.2",
"typescript": "^4.7.4"
},
"stableVersion": "0.1.7-11"
Expand Down
28 changes: 0 additions & 28 deletions src/adapters/acala/acala-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,34 +44,6 @@ export const acalaRouteConfigs = createRouteConfigs("acala", [
fee: { token: "LDOT", amount: "45977011" },
},
},
{
to: "parallel",
token: "PARA",
xcm: {
fee: { token: "PARA", amount: "9600000000" },
},
},
{
to: "parallel",
token: "ACA",
xcm: {
fee: { token: "ACA", amount: "1920000000" },
},
},
{
to: "parallel",
token: "AUSD",
xcm: {
fee: { token: "AUSD", amount: "700000" },
},
},
{
to: "parallel",
token: "LDOT",
xcm: {
fee: { token: "LDOT", amount: "96000000" },
},
},
{
to: "astar",
token: "ASTR",
Expand Down
77 changes: 0 additions & 77 deletions src/adapters/acala/karura-configs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,27 +170,6 @@ export const karuraRouteConfigs = createRouteConfigs("karura", [
fee: { token: "KAR", amount: "8000000000" },
},
},
{
to: "kico",
token: "KICO",
xcm: {
fee: { token: "KICO", amount: "96000000000" },
},
},
{
to: "kico",
token: "KAR",
xcm: {
fee: { token: "KAR", amount: "160000000000" },
},
},
{
to: "kico",
token: "KUSD",
xcm: {
fee: { token: "KUSD", amount: "320000000000" },
},
},
{
to: "calamari",
token: "KSM",
Expand Down Expand Up @@ -254,62 +233,6 @@ export const karuraRouteConfigs = createRouteConfigs("karura", [
fee: { token: "KUSD", amount: "16536000000" },
},
},
{
to: "heiko",
token: "HKO",
xcm: {
fee: { token: "HKO", amount: "1440000000" },
},
},
{
to: "heiko",
token: "KAR",
xcm: {
fee: { token: "KAR", amount: "2400000000" },
},
},
{
to: "heiko",
token: "LKSM",
xcm: {
fee: { token: "LKSM", amount: "48000000" },
},
},
{
to: "heiko",
token: "KUSD",
xcm: {
fee: { token: "KUSD", amount: "48000000" },
},
},
{
to: "pichiu",
token: "PCHU",
xcm: {
fee: { token: "PCHU", amount: "400000000000000" },
},
},
{
to: "pichiu",
token: "KAR",
xcm: {
fee: { token: "KAR", amount: "400000000" },
},
},
{
to: "pichiu",
token: "KUSD",
xcm: {
fee: { token: "KUSD", amount: "400000000" },
},
},
{
to: "pichiu",
token: "LKSM",
xcm: {
fee: { token: "LKSM", amount: "400000000" },
},
},
{
to: "turing",
token: "TUR",
Expand Down
9 changes: 0 additions & 9 deletions src/adapters/assethub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,6 @@ export const assetHubPolkadotRouteConfigs = createRouteConfigs(
weightLimit: "Unlimited",
},
},
{
to: "parallel",
token: "USDT",
xcm: {
deliveryFee: { token: "DOT", amount: "311100000" },
fee: { token: "USDT", amount: "808" },
weightLimit: "Unlimited",
},
},
]
);

Expand Down
Loading

0 comments on commit 34d98f3

Please sign in to comment.