Documentation ¶
Index ¶
- Constants
- Variables
- func GenHashLock(secret tmbytes.HexBytes, timestamp uint64) []byte
- func GenRandomHtlc(ctx sdk.Context, k keeper.Keeper, r *rand.Rand) types.HTLC
- func GenTimestamp(r *rand.Rand, ctx sdk.Context) int
- func Gensecret() []byte
- func NewDecodeStore(cdc codec.Codec) func(kvA, kvB kv.Pair) string
- func RandomizedGenState(simState *module.SimulationState)
- func SimulateMsgClaimHtlc(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func SimulateMsgCreateHtlc(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
- func WeightedOperations(appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ...) simulation.WeightedOperations
Constants ¶
View Source
const ( BNB_DENOM = "htltbnb" OTHER_DENOM = "htltinc" )
View Source
const ( OpWeightMsgCreateHTLC = "op_weight_msg_create_htlc" OpWeightMsgClaimHTLC = "op_weight_msg_claim_htlc" )
Simulation operation weights constants
Variables ¶
View Source
var ( MinTimeLock = uint64(50) MaxTimeLock = uint64(34560) Deputy = sdk.AccAddress(crypto.AddressHash([]byte("Deputy"))) )
Functions ¶
func NewDecodeStore ¶
NewDecodeStore unmarshals the KVPair's Value to the corresponding HTLC type
func RandomizedGenState ¶
func RandomizedGenState(simState *module.SimulationState)
func SimulateMsgClaimHtlc ¶
func SimulateMsgClaimHtlc(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
func SimulateMsgCreateHtlc ¶
func SimulateMsgCreateHtlc(k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper) simtypes.Operation
func WeightedOperations ¶
func WeightedOperations( appParams simtypes.AppParams, cdc codec.JSONCodec, k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) 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.