Skip to content

Commit

Permalink
update endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci committed Jan 24, 2024
1 parent e24482e commit 14c10bc
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 16 deletions.
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()

0 comments on commit 14c10bc

Please sign in to comment.