Expand description
Dev account utilities for forked chains.
Provides well-known dev account public keys and helpers for building storage entries to fund them and set sudo.
Two account sets are supported:
- Substrate (32-byte sr25519): Alice, Bob, Charlie, Dave, Eve, Ferdie
- Ethereum (20-byte H160): Alith, Baltathar, Charleth, Dorothy, Ethan, Faith
Constants§
- ALICE
- Well-known dev account: Alice.
- ALITH
- Well-known Ethereum dev account: Alith.
- BALTATHAR
- Well-known Ethereum dev account: Baltathar.
- BOB
- Well-known dev account: Bob.
- CHARLETH
- Well-known Ethereum dev account: Charleth.
- CHARLIE
- Well-known dev account: Charlie.
- DAVE
- Well-known dev account: Dave.
- DEV_
BALANCE - Default balance for dev accounts: half of u128::MAX.
- DOROTHY
- Well-known Ethereum dev account: Dorothy.
- ETHAN
- Well-known Ethereum dev account: Ethan.
- ETHEREUM_
DEV_ ACCOUNTS - All Ethereum dev accounts (name, 20-byte H160 address).
- EVE
- Well-known dev account: Eve.
- FAITH
- Well-known Ethereum dev account: Faith.
- FERDIE
- Well-known dev account: Ferdie.
- SUBSTRATE_
DEV_ ACCOUNTS - All Substrate dev accounts (name, 32-byte public key).
Functions§
- account_
storage_ key - Compute the
System::Accountstorage key for an account (Blake2_128Concat). - build_
account_ info - Build a fresh
AccountInfowith the given free balance. - patch_
free_ balance - Patch the free balance in an existing
AccountInfoblob. - sudo_
key_ storage_ key - Compute the
Sudo::Keystorage key.