utils
Module0x7cfe…9861
- Move path
- 0xf6c0…ebf1::utils
- Functions
- 22 public, 0 entry
- Structs
- 0
- Friend modules
- None
utils
Bytecode34 lines
The on-chain disassembly. Offsets are bytecode positions within each function.
// Move bytecode v6
module f6c05e2d9301e6e91dc6ab6c3ca918f7d55896e1f1edd64adc0e615cde27ebf1.utils {
use 0000000000000000000000000000000000000000000000000000000000000002::coin;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
public refund<Ty0>(Arg0: Coin<Ty0>, Arg1: address) {
B0:
0ImmBorrowLoc[0](Arg0: Coin<Ty0>)
1Call coin::value<Ty0>(&Coin<Ty0>): u64
2LdU64(0)
3Gt
4BrFalse(9)
B1:
5MoveLoc[0](Arg0: Coin<Ty0>)
6MoveLoc[1](Arg1: address)
7Call transfer::public_transfer<Coin<Ty0>>(Coin<Ty0>, address)
8Branch(11)
B2:
9MoveLoc[0](Arg0: Coin<Ty0>)
10Call coin::destroy_zero<Ty0>(Coin<Ty0>)
B3:
11Ret
}
public to_seconds(Arg0: u64): u64 {
B0:
0MoveLoc[0](Arg0: u64)
1LdU64(1000)
2Div
3Ret
}
}