Skip to content

Commit

Permalink
update (#193)
Browse files Browse the repository at this point in the history
* update

* update
  • Loading branch information
StrawberryFlavor authored Apr 24, 2024
1 parent 7bb77e4 commit 1c439ab
Show file tree
Hide file tree
Showing 7 changed files with 279 additions and 249 deletions.
2 changes: 1 addition & 1 deletion networks/interlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
},
kusama: {
name: 'kintsugi' as const,
endpoint: 'wss://api-kusama.interlay.io/parachain',
endpoint: 'wss://kintsugi-rpc.dwellir.com',
btc: 'KBTC',
native: 'KINT',
LiquidToken: 2,
Expand Down
32 changes: 32 additions & 0 deletions tests/acala/__snapshots__/aggregated-dex.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,35 @@ exports[`'karura' aggregatedDex > swapWithExactSupply > events 1`] = `
},
]
`;

exports[`'karura' aggregatedDex > swapWithExactSupply > events 2`] = `
[
{
"data": {
"liquidityChanges": [
"(number)",
"(number)",
"(number)",
"(number)",
],
"path": [
{
"Token": "KSM",
},
{
"Token": "KAR",
},
{
"Token": "LKSM",
},
{
"Token": "KUSD",
},
],
"trader": "rPizfonc8MPuEsMxufAytHjpRW7a2YrXWHKibaJXe9ZtjKx",
},
"method": "Swap",
"section": "dex",
},
]
`;
4 changes: 2 additions & 2 deletions tests/acala/aggregated-dex.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe.each([
name: 'karura',
swapPath: [
{
Dex: [karura.ksm, karura.rmrk, karura.ausd],
Dex: [karura.ksm, karura.kar, karura.lksm, karura.ausd],
},
{
Taiga: [1, 0, 2],
Expand Down Expand Up @@ -53,7 +53,7 @@ describe.each([

it('swapWithExactSupply', async () => {
const tx = await sendTransaction(
chain.api.tx.aggregatedDex.swapWithExactSupply(swapPath as any, 1e12, 0).signAsync(alice),
chain.api.tx.aggregatedDex.swapWithExactSupply(swapPath as any, 1e10, 0).signAsync(alice),
)

await chain.chain.newBlock()
Expand Down
130 changes: 65 additions & 65 deletions tests/bridge-sdk/__snapshots__/kusama.test.ts.snap

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions tests/bridge-sdk/__snapshots__/polkadot.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`'acala' to 'assetHubPolkadot' using bridgeSDK cross-chain 'USDT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
exports[`'acala' to 'assetHubPolkadot' using bridgeSDK cross-chain 'USDT' > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 6,
Expand All @@ -9,9 +9,9 @@ exports[`'acala' to 'assetHubPolkadot' using bridgeSDK cross-chain 'USDT' > para
}
`;

exports[`'acala' to 'assetHubPolkadot' using bridgeSDK cross-chain 'USDT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `0`;
exports[`'acala' to 'assetHubPolkadot' using bridgeSDK cross-chain 'USDT' > Cross-chain using BridgeSDK works > fee 1`] = `0`;

exports[`'acala' to 'assetHubPolkadot' using bridgeSDK cross-chain 'USDT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
exports[`'acala' to 'assetHubPolkadot' using bridgeSDK cross-chain 'USDT' > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 6,
Expand All @@ -20,7 +20,7 @@ exports[`'acala' to 'assetHubPolkadot' using bridgeSDK cross-chain 'USDT' > para
}
`;

exports[`'acala' to 'astar' using bridgeSDK cross-chain 'AUSD' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
exports[`'acala' to 'astar' using bridgeSDK cross-chain 'AUSD' > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 12,
Expand All @@ -29,9 +29,9 @@ exports[`'acala' to 'astar' using bridgeSDK cross-chain 'AUSD' > parachain bridg
}
`;

exports[`'acala' to 'astar' using bridgeSDK cross-chain 'AUSD' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.0003)"`;
exports[`'acala' to 'astar' using bridgeSDK cross-chain 'AUSD' > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.00006)"`;

exports[`'acala' to 'astar' using bridgeSDK cross-chain 'AUSD' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
exports[`'acala' to 'astar' using bridgeSDK cross-chain 'AUSD' > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 12,
Expand All @@ -40,7 +40,7 @@ exports[`'acala' to 'astar' using bridgeSDK cross-chain 'AUSD' > parachain bridg
}
`;

exports[`'acala' to 'interlay' using bridgeSDK cross-chain 'INTR' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
exports[`'acala' to 'interlay' using bridgeSDK cross-chain 'INTR' > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand All @@ -49,9 +49,9 @@ exports[`'acala' to 'interlay' using bridgeSDK cross-chain 'INTR' > parachain br
}
`;

exports[`'acala' to 'interlay' using bridgeSDK cross-chain 'INTR' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.002)"`;
exports[`'acala' to 'interlay' using bridgeSDK cross-chain 'INTR' > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.002)"`;

exports[`'acala' to 'interlay' using bridgeSDK cross-chain 'INTR' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
exports[`'acala' to 'interlay' using bridgeSDK cross-chain 'INTR' > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand All @@ -60,7 +60,7 @@ exports[`'acala' to 'interlay' using bridgeSDK cross-chain 'INTR' > parachain br
}
`;

exports[`'acala' to 'moonbeam' using bridgeSDK cross-chain 'AUSD' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
exports[`'acala' to 'moonbeam' using bridgeSDK cross-chain 'AUSD' > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "0x4E7440dB498561A46AAa82b9Bc7d2D5162b5c27B",
"decimals": 18,
Expand All @@ -69,9 +69,9 @@ exports[`'acala' to 'moonbeam' using bridgeSDK cross-chain 'AUSD' > parachain br
}
`;

exports[`'acala' to 'moonbeam' using bridgeSDK cross-chain 'AUSD' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.004)"`;
exports[`'acala' to 'moonbeam' using bridgeSDK cross-chain 'AUSD' > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.004)"`;

exports[`'acala' to 'moonbeam' using bridgeSDK cross-chain 'AUSD' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
exports[`'acala' to 'moonbeam' using bridgeSDK cross-chain 'AUSD' > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "0x4E7440dB498561A46AAa82b9Bc7d2D5162b5c27B",
"decimals": 18,
Expand All @@ -80,7 +80,7 @@ exports[`'acala' to 'moonbeam' using bridgeSDK cross-chain 'AUSD' > parachain br
}
`;

exports[`'acala' to 'polkadot' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
exports[`'acala' to 'polkadot' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand All @@ -89,9 +89,9 @@ exports[`'acala' to 'polkadot' using bridgeSDK cross-chain 'DOT' > parachain bri
}
`;

exports[`'acala' to 'polkadot' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.002)"`;
exports[`'acala' to 'polkadot' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.002)"`;

exports[`'acala' to 'polkadot' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
exports[`'acala' to 'polkadot' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand All @@ -100,7 +100,7 @@ exports[`'acala' to 'polkadot' using bridgeSDK cross-chain 'DOT' > parachain bri
}
`;

exports[`'assetHubPolkadot' to 'acala' using bridgeSDK cross-chain 'USDT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
exports[`'assetHubPolkadot' to 'acala' using bridgeSDK cross-chain 'USDT' > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 6,
Expand All @@ -109,9 +109,9 @@ exports[`'assetHubPolkadot' to 'acala' using bridgeSDK cross-chain 'USDT' > para
}
`;

exports[`'assetHubPolkadot' to 'acala' using bridgeSDK cross-chain 'USDT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.0008)"`;
exports[`'assetHubPolkadot' to 'acala' using bridgeSDK cross-chain 'USDT' > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.0008)"`;

exports[`'assetHubPolkadot' to 'acala' using bridgeSDK cross-chain 'USDT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
exports[`'assetHubPolkadot' to 'acala' using bridgeSDK cross-chain 'USDT' > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 6,
Expand All @@ -120,7 +120,7 @@ exports[`'assetHubPolkadot' to 'acala' using bridgeSDK cross-chain 'USDT' > para
}
`;

exports[`'assetHubPolkadot' to 'polkadot' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
exports[`'assetHubPolkadot' to 'polkadot' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand All @@ -129,9 +129,9 @@ exports[`'assetHubPolkadot' to 'polkadot' using bridgeSDK cross-chain 'DOT' > pa
}
`;

exports[`'assetHubPolkadot' to 'polkadot' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.002)"`;
exports[`'assetHubPolkadot' to 'polkadot' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.002)"`;

exports[`'assetHubPolkadot' to 'polkadot' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
exports[`'assetHubPolkadot' to 'polkadot' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand All @@ -140,7 +140,7 @@ exports[`'assetHubPolkadot' to 'polkadot' using bridgeSDK cross-chain 'DOT' > pa
}
`;

exports[`'astar' to 'acala' using bridgeSDK cross-chain 'AUSD' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
exports[`'astar' to 'acala' using bridgeSDK cross-chain 'AUSD' > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 12,
Expand All @@ -149,9 +149,9 @@ exports[`'astar' to 'acala' using bridgeSDK cross-chain 'AUSD' > parachain bridg
}
`;

exports[`'astar' to 'acala' using bridgeSDK cross-chain 'AUSD' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.0008)"`;
exports[`'astar' to 'acala' using bridgeSDK cross-chain 'AUSD' > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.0008)"`;

exports[`'astar' to 'acala' using bridgeSDK cross-chain 'AUSD' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
exports[`'astar' to 'acala' using bridgeSDK cross-chain 'AUSD' > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 12,
Expand All @@ -160,7 +160,7 @@ exports[`'astar' to 'acala' using bridgeSDK cross-chain 'AUSD' > parachain bridg
}
`;

exports[`'interlay' to 'acala' using bridgeSDK cross-chain 'INTR' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
exports[`'interlay' to 'acala' using bridgeSDK cross-chain 'INTR' > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand All @@ -169,9 +169,9 @@ exports[`'interlay' to 'acala' using bridgeSDK cross-chain 'INTR' > parachain br
}
`;

exports[`'interlay' to 'acala' using bridgeSDK cross-chain 'INTR' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.006)"`;
exports[`'interlay' to 'acala' using bridgeSDK cross-chain 'INTR' > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.006)"`;

exports[`'interlay' to 'acala' using bridgeSDK cross-chain 'INTR' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
exports[`'interlay' to 'acala' using bridgeSDK cross-chain 'INTR' > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand All @@ -180,7 +180,7 @@ exports[`'interlay' to 'acala' using bridgeSDK cross-chain 'INTR' > parachain br
}
`;

exports[`'polkadot' to 'acala' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
exports[`'polkadot' to 'acala' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand All @@ -189,9 +189,9 @@ exports[`'polkadot' to 'acala' using bridgeSDK cross-chain 'DOT' > parachain bri
}
`;

exports[`'polkadot' to 'acala' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.0001)"`;
exports[`'polkadot' to 'acala' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.0001)"`;

exports[`'polkadot' to 'acala' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
exports[`'polkadot' to 'acala' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand All @@ -200,7 +200,7 @@ exports[`'polkadot' to 'acala' using bridgeSDK cross-chain 'DOT' > parachain bri
}
`;

exports[`'polkadot' to 'assetHubPolkadot' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
exports[`'polkadot' to 'assetHubPolkadot' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand All @@ -209,9 +209,9 @@ exports[`'polkadot' to 'assetHubPolkadot' using bridgeSDK cross-chain 'DOT' > pa
}
`;

exports[`'polkadot' to 'assetHubPolkadot' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.004)"`;
exports[`'polkadot' to 'assetHubPolkadot' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.004)"`;

exports[`'polkadot' to 'assetHubPolkadot' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
exports[`'polkadot' to 'assetHubPolkadot' using bridgeSDK cross-chain 'DOT' > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 10,
Expand Down
Loading

0 comments on commit 1c439ab

Please sign in to comment.