simulation

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultWeightMsgUpdateParams int = 100

	OpWeightMsgUpdateParams = "op_weight_msg_update_params" //nolint:gosec
)

Simulation operation weights constants

Variables

This section is empty.

Functions

func ProposalMsgs

func ProposalMsgs() []simtypes.WeightedProposalMsg

ProposalMsgs defines the module weighted proposals' contents

func RandomizedGenState

func RandomizedGenState(simState *module.SimulationState)

RandomizedGenState generates a hold genesis with default params, up to maxPendingWallets pending wallets, held balances for about half of them, and up to maxUntrackedBalances held balances of wallets no longer pending: a wallet hold stops tracking keeps its held balance.

All of these are fresh addresses, never simulation accounts: hold rejects a pending wallet's withdraw address change, and the simulator stops on any rejected transaction, so no simulated transaction may come from one.

A held balance must be backed by coins in the hold module account, so the coins are added to that account in bank's genesis, with bank's supply raised to match. Bank's genesis must be generated first: generated after hold's, it would replace that funding and the chain would fail to start. Without a bank genesis at all, no balance is recorded.

func SimulateMsgUpdateParams

func SimulateMsgUpdateParams(_ *rand.Rand, _ sdk.Context, _ []simtypes.Account) sdk.Msg

SimulateMsgUpdateParams returns a governance update to the default hold params, which are empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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