Documentation ¶
Index ¶
- Constants
- func CallFunction(caller sim.Account, prefix string, input string, contractAddr sdk.AccAddress, ...) (msg types.MsgCall, ret []byte, err error)
- func DeployContract(caller sim.Account, contractCode string, contractAbi string, k keeper.Keeper, ...) (msg types.MsgDeploy, contractAddr sdk.AccAddress, err error)
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgCallSimpleEventSet(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, ...) sim.Operation
- func SimulateMsgCallSimpleSet(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, ...) sim.Operation
- func SimulateMsgCallStorageStore(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, ...) sim.Operation
- func SimulateMsgCallStringTestChangeGiven(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress) sim.Operation
- func SimulateMsgCallStringTestChangeString(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, ref *string) sim.Operation
- func SimulateMsgCallStringTestGetl(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, ref *string) sim.Operation
- func SimulateMsgCallStringTestGets(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, ref *string) sim.Operation
- func SimulateMsgCallStringTestTestStuff(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress) sim.Operation
- func SimulateMsgDeployHello55(k keeper.Keeper, bk types.BankKeeper) sim.Operation
- func SimulateMsgDeploySimple(k keeper.Keeper, bk types.BankKeeper) sim.Operation
- func SimulateMsgDeploySimpleEvent(k keeper.Keeper, bk types.BankKeeper) sim.Operation
- func SimulateMsgDeployStorage(k keeper.Keeper, bk types.BankKeeper) sim.Operation
- func SimulateMsgDeployStringTest(k keeper.Keeper, bk types.BankKeeper) sim.Operation
- func WeightedOperations(appParams sim.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
const ( Hello55Code = "" /* 332-byte string literal not displayed */ Hello55Abi = "" /* 167-byte string literal not displayed */ Hello55SayHi = "0c49c36c" SimpleCode = "" /* 460-byte string literal not displayed */ SimpleAbi = "" /* 336-byte string literal not displayed */ SimpleSetPrefix = "60fe47b1" SimpleSetSample = "60fe47b10000000000000000000000000000000000000000000000000000000000000429" // hex for 1065 SimpleGet = "6d4ce63c" SimpleeventCode = "" /* 1322-byte string literal not displayed */ SimpleeventAbi = "" /* 1116-byte string literal not displayed */ SimpleeventSetPrefix = "60fe47b1" SimpleeventSetSample = "60fe47b100000000000000000000000000000000000000000000000000000000000003e8" // hex for 1000 SimpleeventGet = "6d4ce63c" StorageCode = "" /* 642-byte string literal not displayed */ StorageAbi = "" /* 517-byte string literal not displayed */ StorageStorePrefix = "6057361d" StorageStoreSample = "6057361d0000000000000000000000000000000000000000000000000000000000000225" // hex for 549 StorageRetrieve = "2e64cec1" StorageSayMyAddres = "8f3eff7b" StringtestCode = "" /* 6268-byte string literal not displayed */ StringtestAbi = "" /* 2641-byte string literal not displayed */ StringtestChangeStringPrefix = "5dd8e1c90000000000000000000000000000000000000000000000000000000000000020" StringtestChangeStringSample = "" // abc /* 203-byte string literal not displayed */ StringtestChangeGivenPrefix = "dac970650000000000000000000000000000000000000000000000000000000000000020" StringtestChangeGivenSample = "" // defghi /* 203-byte string literal not displayed */ StringtestGets = "ebea52e6" StringtestGetl = "3d7405f4" StringtestTestStuff = "16a872f1" )
const (
OpWeightMsgDeploy = "op_weight_msg_deploy"
)
Variables ¶
This section is empty.
Functions ¶
func CallFunction ¶
func CallFunction(caller sim.Account, prefix string, input string, contractAddr sdk.AccAddress, k keeper.Keeper, bk types.BankKeeper, ctx sdk.Context, r *rand.Rand, chainID string, app *baseapp.BaseApp) (msg types.MsgCall, ret []byte, err error)
CallFunction delivers a call tx and returns msg, contract address and error.
func DeployContract ¶
func DeployContract(caller sim.Account, contractCode string, contractAbi string, k keeper.Keeper, bk types.BankKeeper, r *rand.Rand, ctx sdk.Context, chainID string, app *baseapp.BaseApp) (msg types.MsgDeploy, contractAddr sdk.AccAddress, err error)
DeployContract delivers a deploy tx and returns msg, contract address and error.
func NewDecodeStore ¶
DecodeStore unmarshals the KVPair's value to the corresponding type of cvm module.
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
RandomizedGenState creates a random genesis state for module simulation.
func SimulateMsgCallSimpleEventSet ¶
func SimulateMsgCallSimpleEventSet(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, varValue int) sim.Operation
SimulateMsgCallSimpleEventSet creates a message calling set() in /tests/simpleevent.sol contract.
func SimulateMsgCallSimpleSet ¶
func SimulateMsgCallSimpleSet(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, varValue int) sim.Operation
SimulateMsgCallSimpleSet creates a message calling set() in /tests/simple.sol contract.
func SimulateMsgCallStorageStore ¶
func SimulateMsgCallStorageStore(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, varValue int) sim.Operation
SimulateMsgCallStorageStore creates a message calling store() in /tests/storage.sol contract.
func SimulateMsgCallStringTestChangeGiven ¶
func SimulateMsgCallStringTestChangeGiven(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress) sim.Operation
SimulateMsgCallStringTestChangeGiven creates a message calling changeGiven() in /tests/stringtest.sol contract.
func SimulateMsgCallStringTestChangeString ¶
func SimulateMsgCallStringTestChangeString(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, ref *string) sim.Operation
SimulateMsgCallStringTestChangeString creates a message calling changeString() in /tests/stringtest.sol contract.
func SimulateMsgCallStringTestGetl ¶
func SimulateMsgCallStringTestGetl(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, ref *string) sim.Operation
SimulateMsgCallStringTestGetl creates a message calling getl() in /tests/stringtest.sol contract.
func SimulateMsgCallStringTestGets ¶
func SimulateMsgCallStringTestGets(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress, ref *string) sim.Operation
SimulateMsgCallStringTestGets creates a message calling gets() in /tests/stringtest.sol contract.
func SimulateMsgCallStringTestTestStuff ¶
func SimulateMsgCallStringTestTestStuff(k keeper.Keeper, bk types.BankKeeper, contractAddr sdk.AccAddress) sim.Operation
SimulateMsgCallStringTestTestStuff creates a message calling testStuff() in /tests/stringtest.sol contract.
func SimulateMsgDeployHello55 ¶
SimulateMsgDeployHello55 creates a massage deploying /tests/hello55.sol contract.
func SimulateMsgDeploySimple ¶
SimulateMsgDeploySimple creates a massage deploying /tests/simple.sol contract.
func SimulateMsgDeploySimpleEvent ¶
SimulateMsgDeploySimpleEvent creates a massage deploying /tests/simpleevent.sol contract.
func SimulateMsgDeployStorage ¶
SimulateMsgDeployStorage creates a massage deploying /tests/storage.sol contract.
func SimulateMsgDeployStringTest ¶
SimulateMsgDeployStringTest creates a massage deploying /tests/stringtest.sol contract.
func WeightedOperations ¶
func WeightedOperations(appParams sim.AppParams, cdc codec.JSONCodec, k keeper.Keeper, bk types.BankKeeper) simulation.WeightedOperations
WeightedOperations creates an operation with a weight for each type of message generators.
Types ¶
This section is empty.