Skip to content

Commit

Permalink
disable moonbeam / moonrivier (#145)
Browse files Browse the repository at this point in the history
* fix endpoints

* fix statemint

* disable bad tests
  • Loading branch information
xlc authored Dec 4, 2023
1 parent ed5e439 commit 8f5741d
Show file tree
Hide file tree
Showing 17 changed files with 358 additions and 543 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ jobs:
tests: [xcm-transfer, acala, bridge-sdk]
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Setup yarn
run: npm install -g yarn
- name: setup node env
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'yarn'
- run: yarn --immutable
- run: yarn ts-node scripts/update-env.ts
- run: yarn update-env
- run: yarn test tests/${{ matrix.tests }}
- uses: ravsamhq/notify-slack-action@v2
if: ${{ failure() }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'yarn'
Expand All @@ -26,25 +26,25 @@ jobs:
tests:
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
tests: [xcm-transfer, acala, bridge-sdk]
fail-fast: false
matrix:
tests: [xcm-transfer, acala, bridge-sdk]
runs-on: [self-hosted, linux]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Setup yarn
run: npm install -g yarn
- name: setup node env
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'yarn'
- run: yarn --immutable
- run: yarn ts-node scripts/update-env.ts
- run: yarn update-env
- run: yarn test tests/${{ matrix.tests }}
8 changes: 4 additions & 4 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Setup yarn
run: npm install -g yarn
- name: setup node env
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'yarn'
- run: yarn --immutable
- run: yarn ts-node scripts/update-env.ts
- run: yarn update-env
- run: yarn test -u
- name: Commit and Create PR
uses: actions/github-script@v6
Expand Down
4 changes: 2 additions & 2 deletions networks/statemint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { Config } from './types'
export default {
polkadot: {
name: 'statemint' as const,
endpoint: 'wss://statemint-rpc.dwellir.com',
endpoint: 'wss://rpc-asset-hub-polkadot.luckyfriday.io',
},
kusama: {
name: 'statemine' as const,
endpoint: 'wss://statemine-rpc.dwellir.com',
endpoint: 'wss://rpc-asset-hub-kusama.luckyfriday.io',
},
config: ({ alice }) => ({
storages: {
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test": "LOG_LEVEL=error vitest --silent",
"test:ui": "yarn test --ui",
"test:dev": "vitest --inspect --single-thread",
"update-env": "ts-node scripts/update-env.ts"
"update-env": "tsx scripts/update-env.ts"
},
"resolutions": {
"@polkadot/api": "^10.11.1"
Expand Down Expand Up @@ -40,7 +40,8 @@
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"ts-node": "^10.9.1"
"ts-node": "^10.9.1",
"tsx": "^4.6.2"
},
"prettier": {
"tabWidth": 2,
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/statemine.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extensions:
client:
endpoints:
- wss://statemine-rpc.dwellir.com:443
- wss://statemine-rpc-tn.dwellir.com
event_bus:
substrate_api:
stale_timeout_seconds: 60
Expand Down
2 changes: 1 addition & 1 deletion scripts/configs/statemint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extensions:
client:
endpoints:
- wss://statemint-rpc.dwellir.com
- wss://statemint-rpc-tn.dwellir.com
event_bus:
substrate_api:
stale_timeout_seconds: 60
Expand Down
4 changes: 2 additions & 2 deletions tests/acala/__snapshots__/homa.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ exports[`'acala' homa > with latest block > Homa redeem unbond works > system ev
},
"success": true,
"weightUsed": {
"proofSize": "(rounded 59000)",
"refTime": "(rounded 11000000000)",
"proofSize": "(rounded 66000)",
"refTime": "(rounded 6300000000)",
},
},
"method": "Processed",
Expand Down
20 changes: 0 additions & 20 deletions tests/bridge-sdk/__snapshots__/kusama.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -280,26 +280,6 @@ exports[`'karura' to 'kusama' using bridgeSDK cross-chain 'KSM' > parachain brid
}
`;

exports[`'karura' to 'moonriver' using bridgeSDK cross-chain 'KAR' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "0x4E7440dB498561A46AAa82b9Bc7d2D5162b5c27B",
"decimals": 18,
"fromChain": "(rounded 8)",
"toChain": "(rounded 2.06)",
}
`;

exports[`'karura' to 'moonriver' using bridgeSDK cross-chain 'KAR' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.03)"`;

exports[`'karura' to 'moonriver' using bridgeSDK cross-chain 'KAR' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "0x4E7440dB498561A46AAa82b9Bc7d2D5162b5c27B",
"decimals": 18,
"fromChain": 10,
"toChain": 0.09012,
}
`;

exports[`'karura' to 'shiden' using bridgeSDK cross-chain 'KUSD' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
Expand Down
26 changes: 3 additions & 23 deletions tests/bridge-sdk/__snapshots__/polkadot.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,6 @@ 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`] = `
{
"address": "0x4E7440dB498561A46AAa82b9Bc7d2D5162b5c27B",
"decimals": 18,
"fromChain": 8,
"toChain": "(rounded 1.98)",
}
`;

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

exports[`'acala' to 'moonbeam' using bridgeSDK cross-chain 'AUSD' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
{
"address": "0x4E7440dB498561A46AAa82b9Bc7d2D5162b5c27B",
"decimals": 18,
"fromChain": 10,
"toChain": 0,
}
`;

exports[`'acala' to 'parallel' using bridgeSDK cross-chain 'ACA' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
Expand Down Expand Up @@ -109,7 +89,7 @@ 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.04)"`;
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' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
{
Expand Down Expand Up @@ -189,7 +169,7 @@ 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.00007)"`;
exports[`'polkadot' to 'acala' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.00009)"`;

exports[`'polkadot' to 'acala' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
{
Expand Down Expand Up @@ -229,7 +209,7 @@ exports[`'statemint' to 'polkadot' using bridgeSDK cross-chain 'DOT' > parachain
}
`;

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

exports[`'statemint' to 'polkadot' using bridgeSDK cross-chain 'DOT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
{
Expand Down
10 changes: 5 additions & 5 deletions tests/bridge-sdk/kusama.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ const tests = [
// to: 'basilisk',
// token: 'KUSD',
// },
{
from: 'karura',
to: 'moonriver',
token: 'KAR',
},
// {
// from: 'karura',
// to: 'moonriver',
// token: 'KAR',
// },
{
from: 'karura',
to: 'bifrost',
Expand Down
10 changes: 5 additions & 5 deletions tests/bridge-sdk/polkadot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ const tests = [
to: 'polkadot',
token: 'DOT',
},
{
from: 'acala',
to: 'moonbeam',
token: 'AUSD',
},
// {
// from: 'acala',
// to: 'moonbeam',
// token: 'AUSD',
// },
// {
// from: 'astar',
// to: 'acala',
Expand Down
Loading

0 comments on commit 8f5741d

Please sign in to comment.