Skip to content
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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"@polkadot/api": "^16.0",
"@polkadot/api-augment": "^16.0",
"@polkadot/api-derive": "^16.0",
"@polkadot/keyring": "^13.5.3",
"@polkadot/rpc-augment": "^16.0",
"@polkadot/rpc-core": "^16.0",
"@polkadot/rpc-provider": "^16.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/kusama/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@e2e-test/kusama",
"type": "module",
"dependencies": {
"@acala-network/chopsticks-testing": "^1.1.0",
"@acala-network/chopsticks-testing": "^1.2.0",
"@e2e-test/shared": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/networks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@e2e-test/networks",
"type": "module",
"dependencies": {
"@acala-network/chopsticks-testing": "^1.1.0"
"@acala-network/chopsticks-testing": "^1.2.0"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
25 changes: 7 additions & 18 deletions packages/networks/src/defaultAccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import type { KeyringInstance, KeyringPair } from '@polkadot/keyring/types'

import { cryptoWaitReady } from '@polkadot/util-crypto'

export type DefaultAccounts = ReturnType<typeof testingPairs>

export const defaultAccounts: {
export type DefaultAccounts = {
alice: KeyringPair
bob: KeyringPair
charlie: KeyringPair
Expand All @@ -19,25 +17,16 @@ export const defaultAccounts: {
ethan: KeyringPair
keyring: Keyring
keyringEth: KeyringInstance
} = testingPairs()
}

export const defaultAccounts: DefaultAccounts = testingPairs() as unknown as DefaultAccounts

/**
* Sr25519 keyring pairs for use in tests.
*
* These are preferrable over Ed25519 because PJS offers Sr25519 development keypairs when used in conjunction with
* `chopsticks`, which helps debugging tests when `pause()`ing.
*/
export const defaultAccountsSr25519: {
alice: KeyringPair
bob: KeyringPair
charlie: KeyringPair
dave: KeyringPair
eve: KeyringPair
alith: KeyringPair
baltathar: KeyringPair
charleth: KeyringPair
dorothy: KeyringPair
ethan: KeyringPair
keyring: Keyring
keyringEth: KeyringInstance
} = await cryptoWaitReady().then(() => testingPairs('sr25519'))
export const defaultAccountsSr25519: DefaultAccounts = (await cryptoWaitReady().then(() =>
testingPairs('sr25519'),
)) as unknown as DefaultAccounts
2 changes: 1 addition & 1 deletion packages/polkadot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@e2e-test/polkadot",
"type": "module",
"dependencies": {
"@acala-network/chopsticks-testing": "^1.1.0",
"@acala-network/chopsticks-testing": "^1.2.0",
"@e2e-test/shared": "workspace:*"
}
}
10 changes: 5 additions & 5 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "@e2e-test/shared",
"type": "module",
"dependencies": {
"@acala-network/chopsticks": "^1.1.0",
"@acala-network/chopsticks-testing": "^1.1.0",
"@acala-network/chopsticks": "^1.2.0",
"@acala-network/chopsticks-testing": "^1.2.0",
"@e2e-test/networks": "workspace:*",
"@polkadot/api": "^16.1.1",
"@polkadot/types": "^16.1.1",
"@polkadot/types-augment": "^16.1.1"
"@polkadot/api": "^16.4.1",
"@polkadot/types": "^16.4.1",
"@polkadot/types-augment": "^16.4.1"
},
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
Expand Down
Loading
Loading