simulation

package
v1.0.3-beta Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MainchainTxConfirmations  = "mainchain_tx_confirmations"
	MaticchainTxConfirmations = "maticchain_tx_confirmations"

	BorChainID            = "bor_chain_id"
	MaticTokenAddress     = "matic_token_address"     //nolint
	StakingManagerAddress = "staking_manager_address" //nolint
	SlashManagerAddress   = "slash_manager_address"   //nolint
	RootChainAddress      = "root_chain_address"      //nolint
	StakingInfoAddress    = "staking_info_address"    //nolint
	StateSenderAddress    = "state_sender_address"    //nolint

	// Bor Chain Contracts
	StateReceiverAddress = "state_receiver_address" //nolint
	ValidatorSetAddress  = "validator_set_address"  //nolint
)

Parameter keys

View Source
const (
	KeyMainchainTxConfirmations  = "MainchainTxConfirmations"
	KeyMaticchainTxConfirmations = "MaticchainTxConfirmations"
	KeyChainParams               = "ChainParams"
)

Variables

This section is empty.

Functions

func GenBorChainId

func GenBorChainId(r *rand.Rand) string

GenBorChainId returns randomc chainID

func GenHeimdallAddress

func GenHeimdallAddress() hmTypes.HeimdallAddress

func GenMainchainTxConfirmations

func GenMainchainTxConfirmations(r *rand.Rand) uint64

func GenMaticchainTxConfirmations

func GenMaticchainTxConfirmations(r *rand.Rand) uint64

func ParamChanges

func ParamChanges(r *rand.Rand) []simtypes.ParamChange

ParamChanges defines the parameters that can be modified by param change proposals on the simulation

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

Types

This section is empty.

Jump to

Keyboard shortcuts

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