Search by name, SuiNS, address, digest, object ID, coin type or checkpoint.

API

m

Module0xf0a7…cbd8
Move path
0x1705…1ab6::m
Functions
1110 public, 0 entry
Structs
0
Friend modules
None
m

Bytecode172 lines

The on-chain disassembly. Offsets are bytecode positions within each function.

// Move bytecode v7
module 17058447cf4c0ffed98165e5c723d6e308c3d2b9385266bf31c4e603fe861ab6.m {
use 3492c874c1e3b3e2984e8c41b589e642d4d0a5d6459e5a9cfc2d52fd7c89c267::pool;
use 1eabed72c53feb3805120a081dc15963c204dc8d091542592abaf7a35689b2fb::pool as 0pool;
use 2c8d603bc51326b8c13cef9dd07031a408a48dddb541963357661df5d3204809::pool as 1pool;
use e74104c66dd9f16b3096db2cc00300e556aa92edc871be4bc052b5dfb80db239::pool as 2pool;
use f6c05e2d9301e6e91dc6ab6c3ca918f7d55896e1f1edd64adc0e615cde27ebf1::pool as 3pool;
use 4a35d3dfef55ed3631b7158544c6322a23bc434fe4fca1234cb680ce0505f82d::pool as 4pool;
use 70285592c97965e811e0c6f98dccc3a9c2b4ad854b3594faab9597ada267b860::pool as 5pool;
use 0000000000000000000000000000000000000000000000000000000000000002::balance;
use 0000000000000000000000000000000000000000000000000000000000000002::clock;
use 0000000000000000000000000000000000000000000000000000000000000002::coin;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
use b5f529c1dcda6580a61bf7ee9fbd524b50be62f11044d137c8202c8cbace9e56::pool as 6pool;
use 91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1::pool as 7pool;
 
ck(Arg0: u128, Arg1: u128, Arg2: bool) {
B0:
0MoveLoc[2](Arg2: bool)
1BrFalse(9)
B1:
2MoveLoc[0](Arg0: u128)
3MoveLoc[1](Arg1: u128)
4Ge
5BrFalse(7)
B2:
6Branch(16)
B3:
7LdConst[0](u64: 101)
8Abort
B4:
9MoveLoc[0](Arg0: u128)
10MoveLoc[1](Arg1: u128)
11Le
12BrFalse(14)
B5:
13Branch(16)
B6:
14LdConst[0](u64: 101)
15Abort
B7:
16Ret
}
 
public gc<Ty0, Ty1>(Arg0: &mut Pool<Ty0, Ty1>, Arg1: u128, Arg2: bool) {
B0:
0MoveLoc[0](Arg0: &mut Pool<Ty0, Ty1>)
1FreezeRef
2Call 0pool::current_sqrt_price<Ty0, Ty1>(&Pool<Ty0, Ty1>): u128
3MoveLoc[1](Arg1: u128)
4MoveLoc[2](Arg2: bool)
5Call ck(u128, u128, bool)
6Ret
}
 
public gb<Ty0, Ty1>(Arg0: &mut Pool<Ty0, Ty1>, Arg1: u128, Arg2: bool) {
B0:
0MoveLoc[0](Arg0: &mut Pool<Ty0, Ty1>)
1FreezeRef
2Call pool::current_sqrt_price<Ty0, Ty1>(&Pool<Ty0, Ty1>): u128
3MoveLoc[1](Arg1: u128)
4MoveLoc[2](Arg2: bool)
5Call ck(u128, u128, bool)
6Ret
}
 
public gt<Ty0, Ty1, Ty2>(Arg0: &mut Pool<Ty0, Ty1, Ty2>, Arg1: u128, Arg2: bool) {
B0:
0MoveLoc[0](Arg0: &mut Pool<Ty0, Ty1, Ty2>)
1FreezeRef
2Call 7pool::get_pool_sqrt_price<Ty0, Ty1, Ty2>(&Pool<Ty0, Ty1, Ty2>): u128
3MoveLoc[1](Arg1: u128)
4MoveLoc[2](Arg2: bool)
5Call ck(u128, u128, bool)
6Ret
}
 
public gm<Ty0, Ty1>(Arg0: &mut Pool<Ty0, Ty1>, Arg1: u128, Arg2: bool) {
B0:
0MoveLoc[0](Arg0: &mut Pool<Ty0, Ty1>)
1FreezeRef
2Call 5pool::sqrt_price<Ty0, Ty1>(&Pool<Ty0, Ty1>): u128
3MoveLoc[1](Arg1: u128)
4MoveLoc[2](Arg2: bool)
5Call ck(u128, u128, bool)
6Ret
}
 
public gs<Ty0, Ty1>(Arg0: &mut Pool<Ty0, Ty1>, Arg1: u128, Arg2: bool) {
B0:
0MoveLoc[0](Arg0: &mut Pool<Ty0, Ty1>)
1FreezeRef
2Call 2pool::current_sqrt_price<Ty0, Ty1>(&Pool<Ty0, Ty1>): u128
3MoveLoc[1](Arg1: u128)
4MoveLoc[2](Arg2: bool)
5Call ck(u128, u128, bool)
6Ret
}
 
public gg<Ty0, Ty1>(Arg0: &mut Pool<Ty0, Ty1>, Arg1: u128, Arg2: bool) {
B0:
0MoveLoc[0](Arg0: &mut Pool<Ty0, Ty1>)
1FreezeRef
2Call 4pool::current_sqrt_price<Ty0, Ty1>(&Pool<Ty0, Ty1>): u128
3MoveLoc[1](Arg1: u128)
4MoveLoc[2](Arg2: bool)
5Call ck(u128, u128, bool)
6Ret
}
 
public gk<Ty0, Ty1>(Arg0: &mut Pool<Ty0, Ty1>, Arg1: u128, Arg2: bool) {
B0:
0MoveLoc[0](Arg0: &mut Pool<Ty0, Ty1>)
1FreezeRef
2Call 3pool::sqrt_price<Ty0, Ty1>(&Pool<Ty0, Ty1>): u128
3MoveLoc[1](Arg1: u128)
4MoveLoc[2](Arg2: bool)
5Call ck(u128, u128, bool)
6Ret
}
 
public gd<Ty0, Ty1>(Arg0: &mut Pool<Ty0, Ty1>, Arg1: u128, Arg2: bool) {
B0:
0MoveLoc[0](Arg0: &mut Pool<Ty0, Ty1>)
1FreezeRef
2Call 6pool::sqrt_price<Ty0, Ty1>(&Pool<Ty0, Ty1>): u128
3MoveLoc[1](Arg1: u128)
4MoveLoc[2](Arg2: bool)
5Call ck(u128, u128, bool)
6Ret
}
 
public go<Ty0, Ty1>(Arg0: &mut Pool<Ty0, Ty1>, Arg1: &Clock, Arg2: u128, Arg3: bool) {
B0:
0MoveLoc[0](Arg0: &mut Pool<Ty0, Ty1>)
1FreezeRef
2MoveLoc[1](Arg1: &Clock)
3Call 1pool::mid_price<Ty0, Ty1>(&Pool<Ty0, Ty1>, &Clock): u64
4CastU128
5MoveLoc[2](Arg2: u128)
6MoveLoc[3](Arg3: bool)
7Call ck(u128, u128, bool)
8Ret
}
 
public gz<Ty0>(Arg0: Balance<Ty0>, Arg1: u64, Arg2: &mut TxContext): Coin<Ty0> {
B0:
0ImmBorrowLoc[0](Arg0: Balance<Ty0>)
1Call balance::value<Ty0>(&Balance<Ty0>): u64
2MoveLoc[1](Arg1: u64)
3Ge
4BrFalse(6)
B1:
5Branch(10)
B2:
6MoveLoc[2](Arg2: &mut TxContext)
7Pop
8LdConst[1](u64: 100)
9Abort
B3:
10MoveLoc[0](Arg0: Balance<Ty0>)
11MoveLoc[2](Arg2: &mut TxContext)
12Call coin::from_balance<Ty0>(Balance<Ty0>, &mut TxContext): Coin<Ty0>
13Ret
}
 
Constants [
0 => u64: 101
1 => u64: 100
]
}