Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update endpoints #644

Merged
merged 1 commit into from
Jan 24, 2024
Merged
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ npx @acala-network/chopsticks@latest dry-run --config=configs/mandala.yml --html

- Dry run a preimage:
```
npx @acala-network/chopsticks@latest dry-run --endpoint=wss://rpc.polkadot.io --preimage=<preimage> --open
npx @acala-network/chopsticks@latest dry-run --endpoint=wss://polkadot-rpc.dwellir.com --preimage=<preimage> --open
```

- Dry run a preimage and execute an extrinsic after that:
```
npx @acala-network/chopsticks@latest dry-run --endpoint=wss://rpc.polkadot.io --preimage=<preimage> --extrinsic=<extrinsic> --open
npx @acala-network/chopsticks@latest dry-run --endpoint=wss://polkadot-rpc.dwellir.com --preimage=<preimage> --extrinsic=<extrinsic> --open
```

- Dry run a preimage and execute a call after that, make sure `mock-signature-host: true` to fake caller's signature:
Expand Down
5 changes: 4 additions & 1 deletion configs/kusama.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
endpoint: wss://kusama-rpc.polkadot.io
endpoint:
- wss://kusama-rpc.dwellir.com
- wss://rpc.ibp.network/kusama
- wss://kusama-rpc.polkadot.io
mock-signature-host: true
block: ${env.KUSAMA_BLOCK_NUMBER}
db: ./db.sqlite
Expand Down
4 changes: 2 additions & 2 deletions packages/e2e/src/__snapshots__/hrmp.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ exports[`HRMP > Statemine handles horizonal messages > system events 1`] = `
"messageHash": "(hash)",
"messageId": "(hash)",
"weight": {
"proofSize": "(rounded 3600)",
"refTime": "(rounded 310000000)",
"proofSize": "(rounded 7200)",
"refTime": "(rounded 300000000)",
},
},
"method": "Success",
Expand Down
15 changes: 7 additions & 8 deletions packages/e2e/src/build-block.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@ const KUSAMA_STORAGE = {
}

describe.runIf(process.env.CI || process.env.RUN_ALL).each([
{ chain: 'Polkadot', endpoint: 'https://rpc.polkadot.io' },
{ chain: 'Polkadot', endpoint: ['wss://rpc.ibp.network/polkadot', 'wss://polkadot-rpc.dwellir.com'] },
{ chain: 'Statemint', endpoint: 'wss://statemint-rpc.dwellir.com' },
// { chain: 'Polkadot Collectives', endpoint: 'wss://sys.ibp.network/collectives-polkadot' },
{ chain: 'Acala', endpoint: 'wss://acala-rpc.aca-api.network' },

{ chain: 'Kusama', endpoint: 'wss://kusama-rpc.polkadot.io', storage: KUSAMA_STORAGE },
{
chain: 'Kusama',
endpoint: ['wss://kusama-rpc.dwellir.com', 'wss://rpc.ibp.network/kusama', 'wss://kusama-rpc.polkadot.io'],
storage: KUSAMA_STORAGE,
},
{ chain: 'Statemine', endpoint: 'wss://statemine-rpc-tn.dwellir.com' },
{
chain: 'Karura',
endpoint: [
'wss://karura-rpc-0.aca-api.network',
'wss://karura-rpc-1.aca-api.network',
'wss://karura-rpc-2.aca-api.network',
'wss://karura-rpc-3.aca-api.network',
],
endpoint: 'wss://karura-rpc.aca-api.network',
},
{ chain: 'Westend', endpoint: 'wss://westend-rpc.polkadot.io' },
{ chain: 'Westmint', endpoint: 'wss://westmint-rpc.polkadot.io' },
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e/src/dev-dry-run-ump.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { describe, expect, it } from 'vitest'
import { setupApi, ws } from './helper.js'

setupApi({
endpoint: 'wss://rpc.polkadot.io',
endpoint: ['wss://polkadot-rpc.dwellir.com', 'wss://rpc.ibp.network/polkadot'],
blockHash: '0xb012d04c56b65cfa1f47cb1f884d920f95d0097b1ed42f5da18d5e2a436c2f3e',
})

Expand Down
5 changes: 4 additions & 1 deletion packages/node-test/index.cjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
const { setupWithServer, destroyWorker } = require('@acala-network/chopsticks')

async function main() {
const server = await setupWithServer({ endpoint: 'wss://rpc.polkadot.io', db: 'db.sqlite' })
const server = await setupWithServer({
endpoint: ['wss://polkadot-rpc.dwellir.com', 'wss://rpc.ibp.network/polkadot', 'wss://rpc.polkadot.io'],
db: 'db.sqlite',
})
await server.chain.newBlock()
await server.close()
await destroyWorker()
Expand Down
5 changes: 4 additions & 1 deletion packages/node-test/index.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { setupWithServer, destroyWorker } from '@acala-network/chopsticks'

const server = await setupWithServer({ endpoint: 'wss://rpc.polkadot.io', db: 'db.sqlite' })
const server = await setupWithServer({
endpoint: ['wss://polkadot-rpc.dwellir.com', 'wss://rpc.ibp.network/polkadot', 'wss://rpc.polkadot.io'],
db: 'db.sqlite',
})
await server.chain.newBlock()
await server.close()
await destroyWorker()