Documentation ¶
Index ¶
- Constants
- func FuryaSimulationCodeIDSelector(ctx sdk.Context, wasmKeeper wasmsimulation.WasmKeeper) uint64
- func FuryaSimulationExecuteContractSelector(ctx sdk.Context, wasmKeeper wasmsimulation.WasmKeeper) sdk.AccAddress
- func NewDecodeStore() func(kvA kv.Pair, kvB kv.Pair) string
- func RandomizedGenState(simstate *module.SimulationState)
- func WeightedOperations(simstate *module.SimulationState, ak wasmtypes.AccountKeeper, bk BankKeeper, ...) simulation.WeightedOperations
- type BankKeeper
- type WasmKeeper
Constants ¶
View Source
const ( OpWeightMsgStoreCode = "op_weight_msg_store_code" OpWeightMsgInstantiateContract = "op_weight_msg_instantiate_contract" OpWeightMsgExecuteContract = "op_weight_msg_execute_contract" OpReflectContractPath = "op_reflect_contract_path" )
Simulation operation weights constants
Variables ¶
This section is empty.
Functions ¶
func FuryaSimulationCodeIDSelector ¶
func FuryaSimulationCodeIDSelector(ctx sdk.Context, wasmKeeper wasmsimulation.WasmKeeper) uint64
FuryaSimulationCodeIDSelector picks the first code id with unrestricted permission
func FuryaSimulationExecuteContractSelector ¶
func FuryaSimulationExecuteContractSelector(ctx sdk.Context, wasmKeeper wasmsimulation.WasmKeeper) sdk.AccAddress
FuryaSimulationExecuteContractSelector picks the first non PoE contract address
func NewDecodeStore ¶
NewDecodeStore returns a decoder function closure that unmarshals the KVPair's Value to the corresponding twasm type. Not fully implemented but falls back into default output
func RandomizedGenState ¶
func RandomizedGenState(simstate *module.SimulationState)
RandomizedGenState generates a random GenesisState for wasm
func WeightedOperations ¶
func WeightedOperations( simstate *module.SimulationState, ak wasmtypes.AccountKeeper, bk BankKeeper, wasmKeeper WasmKeeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
type BankKeeper ¶
type BankKeeper interface { simulation.BankKeeper IsSendEnabledCoin(ctx sdk.Context, coin sdk.Coin) bool }
type WasmKeeper ¶
type WasmKeeper interface { wasmsimulation.WasmKeeper IterateContractInfo(ctx sdk.Context, cb func(sdk.AccAddress, wasmtypes.ContractInfo) bool) QuerySmart(ctx sdk.Context, contractAddr sdk.AccAddress, req []byte) ([]byte, error) PeekAutoIncrementID(ctx sdk.Context, lastIDKey []byte) uint64 }
WasmKeeper is a subset of the wasm keeper used by simulations
Click to show internal directories.
Click to hide internal directories.