lock_coin.move
make_lock_coin (public func)
// func parameter
recipient [address]: recipient wallet address
lock_ts[u64]: coin lock timestamp (UTC / ms)
unlock_ts[u64]: coin unlock timestamp (UTC / ms)
balance [Balance<T>]: information of the coins to be locked
ctx[TxContext]: transaction information (auto-filled)
unlock_wrapper (public func)
// func parameter
locked_coin[LockedCoin<T>]: lock object created by the make_lock_coinfunction
cur_lock[Clock]: object containing the current time (fixed at 0x6)
ctx[TxContext]: transaction information (auto-filled)
Last updated