testmigration

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 10 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL