Documentation
¶
Index ¶
- Constants
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func ProposalMsgs() []simtypes.WeightedProposalMsg
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgProcessUndPurchaseOrder(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
- func SimulateMsgUndPurchaseOrder(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
- func SimulateMsgUpdateParams(r *rand.Rand, _ sdk.Context, accs []simtypes.Account) sdk.Msg
- func SimulateMsgWhitelistAddress(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( EnterpriseSignerAddress = "ent_signers" EnterpriseDecisionTimeLimit = "decision_time_limit" EnterpriseMinAccepts = "min_accepts" )
Simulation parameter constants
View Source
const ( OpWeightMsgUndPurchaseOrder = "op_weight_msg_raise_ent_po" OpWeightMsgProcessUndPurchaseOrder = "op_weight_msg_proc_ent_po" OpWeightMsgWhitelistAddress = "op_weight_msg_ent_whitelist" DefaultMsgUndPurchaseOrder = 20 DefaultMsgProcessUndPurchaseOrder = 20 DefaultMsgWhitelistAddress = 20 )
Simulation operation weights constants
View Source
const ( DefaultWeightMsgUpdateParams int = 100 OpWeightMsgUpdateParams = "op_weight_msg_update_params" //nolint:gosec )
Variables ¶
This section is empty.
Functions ¶
func NewDecodeStore ¶ added in v1.5.1
DecodeStore unmarshals the KVPair's Value to the corresponding enterprise type
func ProposalMsgs ¶ added in v1.10.0
func ProposalMsgs() []simtypes.WeightedProposalMsg
ProposalMsgs defines the module weighted proposals' contents
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState generates a random GenesisState for enterprise
func SimulateMsgProcessUndPurchaseOrder ¶
func SimulateMsgProcessUndPurchaseOrder(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
func SimulateMsgUndPurchaseOrder ¶ added in v1.5.1
func SimulateMsgUndPurchaseOrder(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
func SimulateMsgUpdateParams ¶ added in v1.10.0
SimulateMsgUpdateParams returns a random MsgUpdateParams
func SimulateMsgWhitelistAddress ¶ added in v1.5.1
func SimulateMsgWhitelistAddress(k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper) simtypes.Operation
func WeightedOperations ¶ added in v1.5.1
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, bk types.BankKeeper, ak types.AccountKeeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.