Documentation ¶
Index ¶
- Constants
- func GenContextId(r *rand.Rand, k keeper.Keeper, ctx sdk.Context) tmbytes.HexBytes
- func GenPausedRequestContextId(r *rand.Rand, k keeper.Keeper, ctx sdk.Context) tmbytes.HexBytes
- func GenRequest(r *rand.Rand, k keeper.Keeper, ctx sdk.Context) types.Request
- func GenRequestContextId(r *rand.Rand, k keeper.Keeper, ctx sdk.Context) tmbytes.HexBytes
- func GenRunningContextId(r *rand.Rand, k keeper.Keeper, ctx sdk.Context) tmbytes.HexBytes
- func GenServiceBinding(r *rand.Rand, k keeper.Keeper, ctx sdk.Context) (types.ServiceBinding, error)
- func GenServiceBindingDisabled(r *rand.Rand, k keeper.Keeper, ctx sdk.Context) (types.ServiceBinding, error)
- func GenServiceDefinition(r *rand.Rand, k keeper.Keeper, ctx sdk.Context) (types.ServiceDefinition, error)
- func GetProviders(definition types.ServiceDefinition, k keeper.Keeper, ctx sdk.Context) (providers []string)
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func SimulateMsgBindService(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgCallService(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgDefineService(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgDisableServiceBinding(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgEnableServiceBinding(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgKillRequestContext(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgPauseRequestContext(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgRefundServiceDeposit(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgRespondService(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgSetWithdrawAddress(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgStartRequestContext(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgUpdateRequestContext(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgUpdateServiceBinding(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func SimulateMsgWithdrawEarnedFees(ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, ...) simulation.WeightedOperations
Constants ¶
const ( OpWeightMsgDefineService = "op_weight_msg_define_service" OpWeightMsgBindService = "op_weight_msg_bind_service" OpWeightMsgUpdateServiceBinding = "op_weight_msg_update_service_binding" OpWeightMsgSetWithdrawAddress = "op_weight_msg_set_withdraw_address" OpWeightMsgDisableServiceBinding = "op_weight_msg_disable_service_binding" OpWeightMsgEnableServiceBinding = "op_weight_msg_enable_service_binding" OpWeightMsgRefundServiceDeposit = "op_weight_msg_refund_service_deposit" OpWeightMsgCallService = "op_weight_msg_call_service" OpWeightMsgRespondService = "op_weight_msg_respond_service" OpWeightMsgStartRequestContext = "op_weight_msg_start_request_context" OpWeightMsgPauseRequestContext = "op_weight_msg_pause_request_context" OpWeightMsgKillRequestContext = "op_weight_msg_kill_request_context" OpWeightMsgUpdateRequestContext = "op_weight_msg_update_request_context" OpWeightMsgWithdrawEarnedFees = "op_weight_msg_withdraw_earned_fees" )
Simulation operation weights constants
const ( DefaultWeightMsgDefineService int = 100 DefaultWeightMsgBindService int = 80 DefaultWeightMsgUpdateServiceBinding int = 50 DefaultWeightMsgSetWithdrawAddress int = 20 DefaultWeightMsgDisableServiceBinding int = 20 DefaultWeightMsgEnableServiceBinding int = 20 DefaultWeightMsgRefundServiceDeposit int = 20 DefaultWeightMsgCallService int = 100 DefaultWeightMsgRespondService int = 100 DefaultWeightMsgStartRequestContext int = 100 DefaultWeightMsgPauseRequestContext int = 100 DefaultWeightMsgKillRequestContext int = 100 DefaultWeightMsgUpdateRequestContext int = 100 DefaultWeightMsgWithdrawEarnedFees int = 20 )
Default simulation operation weights for messages
Variables ¶
This section is empty.
Functions ¶
func GenContextId ¶
GenContextId randomized contextId
func GenPausedRequestContextId ¶
GenPausedRequestContextId randomized pausedRequestContextId
func GenRequest ¶
GenRequest randomized request
func GenRequestContextId ¶
GenRequestContextId randomized requestContext
func GenRunningContextId ¶
GenRunningContextId randomized runningContextId
func GenServiceBinding ¶
func GenServiceBinding( r *rand.Rand, k keeper.Keeper, ctx sdk.Context, ) (types.ServiceBinding, error)
GenServiceBinding randomized serviceBinding
func GenServiceBindingDisabled ¶
func GenServiceBindingDisabled( r *rand.Rand, k keeper.Keeper, ctx sdk.Context, ) (types.ServiceBinding, error)
GenServiceBindingDisabled randomized serviceBindingDisabled
func GenServiceDefinition ¶
func GenServiceDefinition( r *rand.Rand, k keeper.Keeper, ctx sdk.Context, ) (types.ServiceDefinition, error)
GenServiceDefinition randomized serviceDefinition
func GetProviders ¶
func NewDecodeStore ¶
NewDecodeStore unmarshals the KVPair's Value to the corresponding service type
func SimulateMsgBindService ¶
func SimulateMsgBindService( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgBindService generates a MsgBindService with random values.
func SimulateMsgCallService ¶
func SimulateMsgCallService( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgCallService generates a MsgCallService with random values.
func SimulateMsgDefineService ¶
func SimulateMsgDefineService( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgDefineService generates a MsgDefineService with random values.
func SimulateMsgDisableServiceBinding ¶
func SimulateMsgDisableServiceBinding( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgDisableServiceBinding generates a MsgDisableServiceBinding with random values.
func SimulateMsgEnableServiceBinding ¶
func SimulateMsgEnableServiceBinding( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgEnableServiceBinding generates a MsgEnableServiceBinding with random values.
func SimulateMsgKillRequestContext ¶
func SimulateMsgKillRequestContext( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgKillRequestContext generates a MsgKillRequestContext with random values.
func SimulateMsgPauseRequestContext ¶
func SimulateMsgPauseRequestContext( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgPauseRequestContext generates a MsgSPauseRequestContext with random values.
func SimulateMsgRefundServiceDeposit ¶
func SimulateMsgRefundServiceDeposit( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgRefundServiceDeposit generates a MsgRefundServiceDeposit with random values.
func SimulateMsgRespondService ¶
func SimulateMsgRespondService( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgRespondService generates a MsgRespondService with random values.
func SimulateMsgSetWithdrawAddress ¶
func SimulateMsgSetWithdrawAddress( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgSetWithdrawAddress generates a MsgSetWithdrawAddress with random values.
func SimulateMsgStartRequestContext ¶
func SimulateMsgStartRequestContext( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgStartRequestContext generates a MsgStartRequestContext with random values.
func SimulateMsgUpdateRequestContext ¶
func SimulateMsgUpdateRequestContext( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgUpdateRequestContext generates a MsgUpdateRequestContext with random values.
func SimulateMsgUpdateServiceBinding ¶
func SimulateMsgUpdateServiceBinding( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgUpdateServiceBinding generates a MsgUpdateServiceBinding with random values.
func SimulateMsgWithdrawEarnedFees ¶
func SimulateMsgWithdrawEarnedFees( ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simtypes.Operation
SimulateMsgWithdrawEarnedFees generates a MsgWithdrawEarnedFees with random values.
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, ak types.AccountKeeper, bk types.BankKeeper, k keeper.Keeper, ) simulation.WeightedOperations
WeightedOperations returns all the operations from the module with their respective weights
Types ¶
This section is empty.