diff --git a/package.json b/package.json index 550742cb..61c8afd7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@interlay/bridge", - "version": "0.1.11", + "version": "0.1.12", "description": "polkawallet bridge sdk", "main": "build/index.js", "typings": "build/index.d.ts", diff --git a/src/adapters/interlay.ts b/src/adapters/interlay.ts index d1a64318..37fd724c 100644 --- a/src/adapters/interlay.ts +++ b/src/adapters/interlay.ts @@ -42,8 +42,10 @@ export const kintsugiRoutersConfig: Omit[] = [ { to: "kusama", token: "KSM", - // todo: determine fee amount - current value is a placeholder - xcm: { fee: { token: "KSM", amount: "10" }, weightLimit: DEST_WEIGHT }, + xcm: { + fee: { token: "KSM", amount: "1000000000" }, + weightLimit: DEST_WEIGHT, + }, }, // { // to: "statemine", diff --git a/src/adapters/polkadot.ts b/src/adapters/polkadot.ts index 9cc64a70..5be85dcd 100644 --- a/src/adapters/polkadot.ts +++ b/src/adapters/polkadot.ts @@ -20,7 +20,10 @@ export const polkadotRoutersConfig: Omit[] = [ { to: "interlay", token: "DOT", - xcm: { fee: { token: "DOT", amount: "3549633" }, weightLimit: "Unlimited" }, + xcm: { + fee: { token: "DOT", amount: "1000000000" }, + weightLimit: "Unlimited", + }, }, ]; export const kusamaRoutersConfig: Omit[] = [ @@ -28,7 +31,7 @@ export const kusamaRoutersConfig: Omit[] = [ to: "kintsugi", token: "KSM", xcm: { - fee: { token: "KSM", amount: "64000000" }, + fee: { token: "KSM", amount: "1000000000" }, weightLimit: "Unlimited", }, }, diff --git a/src/api-provider.spec.ts b/src/api-provider.spec.ts index e0212227..558783c0 100644 --- a/src/api-provider.spec.ts +++ b/src/api-provider.spec.ts @@ -2,21 +2,19 @@ import { firstValueFrom } from "rxjs"; import { ApiProvider } from "./api-provider"; import { ChainName } from "./configs"; -describe("api-provider", () => { +describe.skip("api-provider", () => { jest.setTimeout(30000); const provider = new ApiProvider("mainnet"); test("connectFromChain should be ok", async () => { - const chains: ChainName[] = ["kusama", "karura", "polkadot", "acala"]; + const chains: ChainName[] = ["kusama", "kintsugi", "polkadot", "interlay"]; expect(provider.getApi(chains[0])).toEqual(undefined); expect(provider.getApi(chains[1])).toEqual(undefined); const res = await firstValueFrom( - provider.connectFromChain(chains, { - karura: ["wss://karura.polkawallet.io"], - }) + provider.connectFromChain(chains, undefined) ); expect(res.length).toEqual(chains.length); diff --git a/src/bridge.spec.ts b/src/bridge.spec.ts index 83c3d097..0e8d6c92 100644 --- a/src/bridge.spec.ts +++ b/src/bridge.spec.ts @@ -10,7 +10,7 @@ import { KintsugiAdapter, InterlayAdapter } from "./adapters/interlay"; import { FN } from "./types"; import { KusamaAdapter, PolkadotAdapter } from "./adapters/polkadot"; // import { MoonriverAdapter } from "./adapters/moonbeam"; -describe("Bridge sdk usage", () => { +describe.skip("Bridge sdk usage", () => { jest.setTimeout(30000); // for testing against mainnet