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 GenHashLock ¶ added in v1.5.0
func GenRandomHtlc ¶ added in v1.5.0
func NewDecodeStore ¶
NewDecodeStore unmarshals the KVPair's Value to the corresponding HTLC type
func RandomizedGenState ¶ added in v1.5.0
func RandomizedGenState(simState *module.SimulationState)
func SimulateMsgClaimHtlc ¶ added in v1.5.0
func SimulateMsgClaimHtlc( k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simtypes.Operation
func SimulateMsgCreateHtlc ¶ added in v1.5.0
func SimulateMsgCreateHtlc( k keeper.Keeper, ak types.AccountKeeper, bk types.BankKeeper, ) simtypes.Operation
func WeightedOperations ¶ added in v1.5.0
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.