Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMorseStateExportAndAccountState ¶
func NewMorseStateExportAndAccountState( t gocuke.TestingT, numAccounts int, ) (export *migrationtypes.MorseStateExport, state *migrationtypes.MorseAccountState)
NewMorseStateExportAndAccountState returns MorseStateExport and MorseAccountState structs populated with:
- Random account addresses
- Monotonically increasing balances/stakes
- One application per account
- One supplier per account
func NewMorseStateExportAndAccountStateBytes ¶
func NewMorseStateExportAndAccountStateBytes( t gocuke.TestingT, numAccounts int, ) (morseStateExportBz []byte, morseAccountStateBz []byte)
NewMorseStateExportAndAccountStateBytes returns:
- A serialized MorseStateExport. This is the JSON output of `pocket util export-genesis-for-reset`. It is used to generate the MorseAccountState.
- Its corresponding MorseAccountState. This is the JSON output of `poktrolld migrate collect-morse-accounts`. It is used to persist the canonical Morse migration state (snapshot) from on Shannon.
The states are populated with: - Random account addresses - Monotonically increasing balances/stakes - One application per account - One supplier per account
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.