Skip to main content

Module dev

Module dev 

Source
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::Account storage key for an account (Blake2_128Concat).
build_account_info
Build a fresh AccountInfo with the given free balance.
patch_free_balance
Patch the free balance in an existing AccountInfo blob.
sudo_key_storage_key
Compute the Sudo::Key storage key.