Skip to content

Create multisig e2e tests #305

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

Open
wants to merge 27 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
304b0b8
Initialize multisig e2e tests
rockbmb Jun 24, 2025
4c516fe
Complete basic multisig e2e test
rockbmb Jun 24, 2025
b1a1bab
Create multisig e2e tests for all relevant chains
rockbmb Jun 24, 2025
c96d595
Create test to multisig cancellation
rockbmb Jun 24, 2025
32e900a
Update comment in proxy coverage checking script
rockbmb Jun 24, 2025
4cfd3c3
Update comment on multisig test
rockbmb Jun 24, 2025
7e76e73
Test multisig creation with liminal numbers of signatories
rockbmb Jun 24, 2025
01b3756
Remove address encoding arg from some multisig tests
rockbmb Jun 25, 2025
4ff8d7f
Test out of order signatories
rockbmb Jun 25, 2025
543ce2f
Test using `approveAsMulti`
rockbmb Jun 25, 2025
18f4f40
Remove timepoint height from snapshots
rockbmb Jun 25, 2025
1fb5010
Test 2-of-2 multisig with final `approveAsMulti`
rockbmb Jun 25, 2025
c376cee
Extend 2-of-2 multisig test
rockbmb Jun 25, 2025
5daabe1
Rename some packages
rockbmb Jun 25, 2025
6ed0c64
Test repeated approval with `approveAsMulti`
rockbmb Jun 25, 2025
1e86308
Test having a signatory in the signatories list
rockbmb Jun 25, 2025
1c3cba9
Test out-of-order signatories
rockbmb Jun 25, 2025
9b1c14f
Test using `approveAsMulti` to begin multisig process
rockbmb Jun 26, 2025
3dcb153
Test unexpected timepoint being passed to `approveAsMulti`
rockbmb Jun 26, 2025
a8d924e
Test multisig approval without timepoint
rockbmb Jun 26, 2025
0ff4ff3
Test insufficient max weight in multisig execution
rockbmb Jun 26, 2025
78303f9
Test using incorrect timepoint in multisig execution
rockbmb Jun 26, 2025
9a65976
Correct comment in test
rockbmb Jul 2, 2025
ef406f4
Test multisig operations with threshold < 2
rockbmb Jul 2, 2025
b16e528
Test cancelling non-existent multisig
rockbmb Jul 2, 2025
e133a8f
Log snapshots of failed multisig operations
rockbmb Jul 2, 2025
0a24cac
Remove mistakenly added heigh datum from snapshot
rockbmb Jul 3, 2025
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

Large diffs are not rendered by default.

456 changes: 456 additions & 0 deletions packages/kusama/src/__snapshots__/kusama.multisig.e2e.test.ts.snap

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions packages/kusama/src/assetHubKusama.multisig.e2e.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { assetHubKusama } from '@e2e-test/networks/chains'
import { multisigE2ETests } from '@e2e-test/shared'

multisigE2ETests(assetHubKusama, { testSuiteName: 'AssetHubKusama Multisig', addressEncoding: 2 })
5 changes: 5 additions & 0 deletions packages/kusama/src/kusama.multisig.e2e.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { kusama } from '@e2e-test/networks/chains'

import { multisigE2ETests } from '@e2e-test/shared'

multisigE2ETests(kusama, { testSuiteName: 'Kusama Multisig', addressEncoding: 2 })
4 changes: 4 additions & 0 deletions packages/kusama/src/peopleKusama.multisig.e2e.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { peopleKusama } from '@e2e-test/networks/chains'
import { multisigE2ETests } from '@e2e-test/shared'

multisigE2ETests(peopleKusama, { testSuiteName: 'PeopleKusama Multisig', addressEncoding: 2 })
7 changes: 5 additions & 2 deletions packages/networks/src/chains/bridgehub.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defaultAccounts } from '../defaultAccounts.js'
import { defaultAccounts, defaultAccountsSr25519 } from '../defaultAccounts.js'
import { defineChain } from '../defineChain.js'

const custom = {
Expand All @@ -12,7 +12,10 @@ const custom = {

const getInitStorages = (_config: typeof custom.bridgeHubPolkadot | typeof custom.bridgeHubKusama) => ({
System: {
account: [[[defaultAccounts.alice.address], { providers: 1, data: { free: 1000e10 } }]],
account: [
[[defaultAccountsSr25519.alice.address], { providers: 1, data: { free: 1000e10 } }],
[[defaultAccounts.alice.address], { providers: 1, data: { free: 1000e10 } }],
],
},
})

Expand Down
Loading
Loading