simulation

package
v0.0.0-...-178398a Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// #nosec G101 not a hardcoded credential
	OpWeightMsgDeploySystemContracts      = "op_weight_msg_deploy_system_contracts"
	DefaultWeightMsgDeploySystemContracts = 5
)

TODO Add more details to comment based on what the number represents in terms of percentage of operations in a block https://github.com/zeta-chain/node/issues/3100

Variables

This section is empty.

Functions

func NewDecodeStore

func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string

NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding fungible types.

func SimulateMsgDeploySystemContracts

func SimulateMsgDeploySystemContracts(k keeper.Keeper) simtypes.Operation

SimulateMsgDeploySystemContracts deploy system contracts.It is run only once in first block.

func WeightedOperations

func WeightedOperations(
	appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper) simulation.WeightedOperations

DeployedSystemContracts Use a flag to ensure that the system contracts are deployed only once https://github.com/zeta-chain/node/issues/3102

Types

This section is empty.

Jump to

Keyboard shortcuts

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