Skip to content
Open
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
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ All channels support transfers in both directions.
| acala | INTR IBTC |
| astar | INTR IBTC |
| bifrost | BNC VDOT |
| parallel | INTR IBTC |
| polkadot | DOT |
| polkadot asset hub | USDT |
| hydradx | HDX IBTC |
Expand All @@ -27,7 +26,6 @@ All channels support transfers in both directions.
| channel | tokens |
| ---------------- | -------------- |
| bifrost | VKSM |
| heiko | KBTC KINT |
| karura | KBTC KINT LKSM |
| kusama | KSM |
| kusama asset hub | USDT |
Expand Down
25 changes: 0 additions & 25 deletions scripts/configs/parallel-heiko.yml

This file was deleted.

26 changes: 0 additions & 26 deletions scripts/configs/parallel.yml

This file was deleted.

2 changes: 0 additions & 2 deletions scripts/kintsugi-chopsticks-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import { KaruraAdapter } from "../src/adapters/acala";
import { BifrostKusamaAdapter } from "../src/adapters/bifrost";
import { KintsugiAdapter } from "../src/adapters/interlay";
// import { HeikoAdapter } from "../src/adapters/parallel";
import { KusamaAdapter } from "../src/adapters/polkadot";
import { BaseCrossChainAdapter } from "../src/base-chain-adapter";
import { RouterTestCase, runTestCasesAndExit } from "./chopsticks-test";
Expand All @@ -23,7 +22,6 @@ async function main(): Promise<void> {
// relaychain gets its port last after all parachains.
kintsugi: { adapter: new KintsugiAdapter(), endpoints: ['ws://127.0.0.1:8000'] },
karura: { adapter: new KaruraAdapter(), endpoints: ['ws://127.0.0.1:8001'] },
// heiko: { adapter: new HeikoAdapter(), endpoints: ['ws://127.0.0.1:8002'] },
bifrost: { adapter: new BifrostKusamaAdapter(), endpoints: ['ws://127.0.0.1:8002'] },
kusama: { adapter: new KusamaAdapter(), endpoints: ['ws://127.0.0.1:8003'] },
};
Expand Down
20 changes: 6 additions & 14 deletions src/adapters/interlay.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { PolkadotAdapter, KusamaAdapter } from "./polkadot";
import { InterlayAdapter, KintsugiAdapter } from "./interlay";
import { StatemineAdapter, StatemintAdapter } from "./statemint";
import { AcalaAdapter, KaruraAdapter } from "./acala";
import { HeikoAdapter, ParallelAdapter } from "./parallel";
import { buildTestTxWithConfigData } from "../utils/shared-spec-methods";
import { BifrostKusamaAdapter } from "./bifrost";
import { HydraAdapter } from "./hydradx";
Expand Down Expand Up @@ -72,37 +71,35 @@ describe.skip("interlay-adapter should work", () => {
}

test("connect kintsugi to do xcm", async () => {
const fromChains = ["kintsugi", "karura", "heiko", "bifrost", "statemine", "kusama"] as ChainName[];
const fromChains = ["kintsugi", "karura", "bifrost", "statemine", "kusama"] as ChainName[];

await connect(fromChains);

const kintsugi = new KintsugiAdapter();
const karura = new KaruraAdapter();
const heiko = new HeikoAdapter();
const bifrost = new BifrostKusamaAdapter();
const statemine = new StatemineAdapter();
const kusama = new KusamaAdapter();

await kintsugi.setApi(provider.getApi(fromChains[0]));
await karura.setApi(provider.getApi(fromChains[1]));
await heiko.setApi(provider.getApi(fromChains[2]));
await bifrost.setApi(provider.getApi(fromChains[3]));
await statemine.setApi(provider.getApi(fromChains[4]));
await kusama.setApi(provider.getApi(fromChains[5]));

const bridge = new Bridge({
adapters: [kintsugi, karura, heiko, bifrost, statemine, kusama],
adapters: [kintsugi, karura, bifrost, statemine, kusama],
});

// expected destinations: 1 (heiko, karura)
// expected destinations: 1 (karura)
expect(
bridge.router.getDestinationChains({
from: chains.kintsugi,
token: "KINT",
}).length
).toEqual(2);

// expected destinations: 2 (heiko and karura)
// expected destinations: 2 (karura)
expect(
bridge.router.getDestinationChains({
from: chains.kintsugi,
Expand All @@ -125,7 +122,6 @@ describe.skip("interlay-adapter should work", () => {
).toEqual(1);


await runMyTestSuite(testAccount, bridge, "kintsugi", "heiko", "KBTC");
await runMyTestSuite(testAccount, bridge, "kintsugi", "karura", "KINT");
await runMyTestSuite(testAccount, bridge, "kintsugi", "karura", "KBTC");
await runMyTestSuite(testAccount, bridge, "kintsugi", "karura", "LKSM");
Expand All @@ -136,7 +132,7 @@ describe.skip("interlay-adapter should work", () => {
});

test("connect interlay to do xcm", async () => {
const fromChains = ["interlay", "polkadot", "statemint", "hydra", "acala", "parallel", "astar"] as ChainName[];
const fromChains = ["interlay", "polkadot", "statemint", "hydra", "acala", "astar"] as ChainName[];

await connect(fromChains);

Expand All @@ -146,7 +142,6 @@ describe.skip("interlay-adapter should work", () => {
const hydra = new HydraAdapter();

const acala = new AcalaAdapter();
const parallel = new ParallelAdapter();
const astar = new AstarAdapter();

await Promise.all([
Expand All @@ -155,13 +150,12 @@ describe.skip("interlay-adapter should work", () => {
statemint.setApi(provider.getApi(fromChains[2])),
hydra.setApi(provider.getApi(fromChains[3])),
acala.setApi(provider.getApi(fromChains[4])),
parallel.setApi(provider.getApi(fromChains[5])),
astar.setApi(provider.getApi(fromChains[6]))

]);

const bridge = new Bridge({
adapters: [interlay, polkadot, statemint, hydra, acala, parallel, astar],
adapters: [interlay, polkadot, statemint, hydra, acala, astar],
});

expect(
Expand Down Expand Up @@ -197,8 +191,6 @@ describe.skip("interlay-adapter should work", () => {
await runMyTestSuite(testAccount, bridge, "interlay", "hydra", "IBTC");
await runMyTestSuite(testAccount, bridge, "interlay", "acala", "IBTC");
await runMyTestSuite(testAccount, bridge, "interlay", "acala", "INTR");
await runMyTestSuite(testAccount, bridge, "interlay", "parallel", "IBTC");
await runMyTestSuite(testAccount, bridge, "interlay", "parallel", "INTR");
await runMyTestSuite(testAccount, bridge, "interlay", "astar", "IBTC");
await runMyTestSuite(testAccount, bridge, "interlay", "astar", "INTR");
});
Expand Down
33 changes: 0 additions & 33 deletions src/adapters/interlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,6 @@ export const interlayRoutersConfig: Omit<CrossChainRouterConfigs, "from">[] = [
// from chopsticks: fee = 4 - Add 10x margin
xcm: { fee: { token: "IBTC", amount: "40" }, weightLimit: DEST_WEIGHT },
},
{
to: "parallel",
token: "INTR",
xcm: {
// during chopsticks test: fee = 6_535_947_712 Add 10x margin
fee: { token: "INTR", amount: "65359477120" },
weightLimit: DEST_WEIGHT,
},
},
{
to: "parallel",
token: "IBTC",
// during chopsticks test: fee = 103 Add 10x margin
xcm: { fee: { token: "IBTC", amount: "1030" }, weightLimit: DEST_WEIGHT },
},
{
to: "phala",
token: "PHA",
Expand Down Expand Up @@ -217,24 +202,6 @@ export const kintsugiRoutersConfig: Omit<CrossChainRouterConfigs, "from">[] = [
weightLimit: DEST_WEIGHT,
},
},
{
to: "heiko",
token: "KBTC",
xcm: {
// from local tests on choptsicks: actual fees sat around 103
fee: { token: "KBTC", amount: "1030" },
weightLimit: DEST_WEIGHT,
},
},
{
to: "heiko",
token: "KINT",
xcm: {
// recent fee during chopsticks test: fee = 16634783331. Added 10x margin
fee: { token: "KINT", amount: "166347833310" },
weightLimit: DEST_WEIGHT,
},
},
{
to: "bifrost",
token: "VKSM",
Expand Down
115 changes: 0 additions & 115 deletions src/adapters/parallel.spec.ts

This file was deleted.

Loading
Loading