Skip to content

Commit

Permalink
Merge pull request #30 from bvotteler/chore-increase-kintsugi-kusama-…
Browse files Browse the repository at this point in the history
…xcm-fees

Chore: Adjust xcm fees
  • Loading branch information
bvotteler authored Dec 16, 2022
2 parents c4cb081 + f085191 commit 2b73e28
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
6 changes: 4 additions & 2 deletions src/adapters/interlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,10 @@ export const kintsugiRoutersConfig: Omit<CrossChainRouterConfigs, "from">[] = [
{
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",
Expand Down
7 changes: 5 additions & 2 deletions src/adapters/polkadot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ export const polkadotRoutersConfig: Omit<CrossChainRouterConfigs, "from">[] = [
{
to: "interlay",
token: "DOT",
xcm: { fee: { token: "DOT", amount: "3549633" }, weightLimit: "Unlimited" },
xcm: {
fee: { token: "DOT", amount: "1000000000" },
weightLimit: "Unlimited",
},
},
];
export const kusamaRoutersConfig: Omit<CrossChainRouterConfigs, "from">[] = [
{
to: "kintsugi",
token: "KSM",
xcm: {
fee: { token: "KSM", amount: "64000000" },
fee: { token: "KSM", amount: "1000000000" },
weightLimit: "Unlimited",
},
},
Expand Down
8 changes: 3 additions & 5 deletions src/api-provider.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/bridge.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b73e28

Please sign in to comment.