Turbos package::string_tools bytecode | tide- Move path
- 0x91bf…9ca1::string_tools
- Functions
- 66 public, 0 entry
- Structs
- 0
- Friend modules
- None
string_tools
The on-chain disassembly. Offsets are bytecode positions within each function.
1// Move bytecode v6
2module 91bfbc386a41afcfd9b2533058d7e915a1d3829089cc268ff4333d54d6339ca1.string_tools {
3use 0000000000000000000000000000000000000000000000000000000000000001::bcs;
4use 0000000000000000000000000000000000000000000000000000000000000001::string;
5use 0000000000000000000000000000000000000000000000000000000000000002::math;
6
7public get_position_key(Arg0: address, Arg1: u32, Arg2: bool, Arg3: u32, Arg4: bool): String {
180ImmBorrowLoc[0](Arg0: address)
191Call address_to_hexstring(&address): String
202StLoc[9](loc4: String)
235Call u64_to_string(u64): String
246StLoc[11](loc6: String)
3414MoveLoc[2](Arg2: bool)
3716MoveLoc[5](loc0: bool)
4018LdConst[1](vector<u8>: "-" ..)
4119Call string::utf8(vector<u8>): String
4220StLoc[6](loc1: String)
4522LdConst[2](vector<u8>: "+" ..)
4623Call string::utf8(vector<u8>): String
4724StLoc[6](loc1: String)
4925MoveLoc[6](loc1: String)
5026StLoc[10](loc5: String)
5127CopyLoc[3](Arg3: u32)
5329Call u64_to_string(u64): String
5430StLoc[13](loc8: String)
5531MoveLoc[3](Arg3: u32)
6438MoveLoc[4](Arg4: bool)
6740MoveLoc[7](loc2: bool)
7042LdConst[1](vector<u8>: "-" ..)
7143Call string::utf8(vector<u8>): String
7244StLoc[8](loc3: String)
7546LdConst[2](vector<u8>: "+" ..)
7647Call string::utf8(vector<u8>): String
7748StLoc[8](loc3: String)
7949MoveLoc[8](loc3: String)
8050StLoc[12](loc7: String)
8151MutBorrowLoc[9](loc4: String)
8252MoveLoc[10](loc5: String)
8353Call string::append(&mut String, String)
8454MutBorrowLoc[9](loc4: String)
8555MoveLoc[11](loc6: String)
8656Call string::append(&mut String, String)
8757MutBorrowLoc[9](loc4: String)
8858MoveLoc[12](loc7: String)
8959Call string::append(&mut String, String)
9060MutBorrowLoc[9](loc4: String)
9161MoveLoc[13](loc8: String)
9262Call string::append(&mut String, String)
9363MoveLoc[9](loc4: String)
97public get_position_key_old(Arg0: address, Arg1: u32, Arg2: bool, Arg3: u32, Arg4: bool): String {
1060ImmBorrowLoc[0](Arg0: address)
1071Call address_to_hexstring(&address): String
1082StLoc[7](loc2: String)
1093MoveLoc[1](Arg1: u32)
1115Call u64_to_string(u64): String
1126StLoc[9](loc4: String)
1137MoveLoc[2](Arg2: bool)
1169LdConst[1](vector<u8>: "-" ..)
11710Call string::utf8(vector<u8>): String
11811StLoc[5](loc0: String)
12113LdConst[2](vector<u8>: "+" ..)
12214Call string::utf8(vector<u8>): String
12315StLoc[5](loc0: String)
12516MoveLoc[5](loc0: String)
12617StLoc[8](loc3: String)
12718MoveLoc[3](Arg3: u32)
12920Call u64_to_string(u64): String
13021StLoc[11](loc6: String)
13122MoveLoc[4](Arg4: bool)
13424LdConst[1](vector<u8>: "-" ..)
13525Call string::utf8(vector<u8>): String
13626StLoc[6](loc1: String)
13928LdConst[2](vector<u8>: "+" ..)
14029Call string::utf8(vector<u8>): String
14130StLoc[6](loc1: String)
14331MoveLoc[6](loc1: String)
14432StLoc[10](loc5: String)
14533MutBorrowLoc[7](loc2: String)
14634MoveLoc[8](loc3: String)
14735Call string::append(&mut String, String)
14836MutBorrowLoc[7](loc2: String)
14937MoveLoc[9](loc4: String)
15038Call string::append(&mut String, String)
15139MutBorrowLoc[7](loc2: String)
15240MoveLoc[10](loc5: String)
15341Call string::append(&mut String, String)
15442MutBorrowLoc[7](loc2: String)
15543MoveLoc[11](loc6: String)
15644Call string::append(&mut String, String)
15745MoveLoc[7](loc2: String)
161public address_to_hexstring(Arg0: &address): String {
168L7: loc6: &mut vector<u8>
1710MoveLoc[0](Arg0: &address)
1721Call bcs::to_bytes<address>(&address): vector<u8>
1732StLoc[4](loc3: vector<u8>)
1743LdConst[3](vector<u8>: "012..)
1754StLoc[1](loc0: vector<u8>)
1765ImmBorrowLoc[1](loc0: vector<u8>)
1776StLoc[5](loc4: &vector<u8>)
1787LdConst[4](vector<u8>: "0x"..)
1798StLoc[2](loc1: vector<u8>)
1809MutBorrowLoc[2](loc1: vector<u8>)
18110StLoc[7](loc6: &mut vector<u8>)
18514StLoc[8](loc7: bool)
18715CopyLoc[6](loc5: u64)
18816ImmBorrowLoc[4](loc3: vector<u8>)
19521ImmBorrowLoc[4](loc3: vector<u8>)
19622CopyLoc[6](loc5: u64)
20026MoveLoc[6](loc5: u64)
20430CopyLoc[3](loc2: u8)
21035StLoc[8](loc7: bool)
21236CopyLoc[8](loc7: bool)
21739CopyLoc[7](loc6: &mut vector<u8>)
21840CopyLoc[5](loc4: &vector<u8>)
21941CopyLoc[3](loc2: u8)
22648CopyLoc[7](loc6: &mut vector<u8>)
22749CopyLoc[5](loc4: &vector<u8>)
22850MoveLoc[3](loc2: u8)
23758MoveLoc[5](loc4: &vector<u8>)
23960MoveLoc[7](loc6: &mut vector<u8>)
24162Call string::utf8(vector<u8>): String
245public u64_to_hexstring(Arg0: u64): String {
251L6: loc5: &mut vector<u8>
2530CopyLoc[0](Arg0: u64)
2574MoveLoc[0](Arg0: u64)
2618LdConst[3](vector<u8>: "012..)
2629StLoc[1](loc0: vector<u8>)
26310ImmBorrowLoc[1](loc0: vector<u8>)
26411StLoc[5](loc4: &vector<u8>)
26512LdConst[5](vector<u8>: "" /..)
26613StLoc[2](loc1: vector<u8>)
26714MutBorrowLoc[2](loc1: vector<u8>)
26815StLoc[6](loc5: &mut vector<u8>)
26916CopyLoc[6](loc5: &mut vector<u8>)
27017CopyLoc[5](loc4: &vector<u8>)
27118MoveLoc[3](loc2: u64)
27522CopyLoc[6](loc5: &mut vector<u8>)
27623MoveLoc[5](loc4: &vector<u8>)
27724MoveLoc[4](loc3: u64)
28128MoveLoc[6](loc5: &mut vector<u8>)
28330Call string::utf8(vector<u8>): String
287public bytes_to_hexstring(Arg0: &vector<u8>): String {
2930LdConst[5](vector<u8>: "" /..)
2941Call string::utf8(vector<u8>): String
2952StLoc[1](loc0: String)
2963MutBorrowLoc[1](loc0: String)
2974StLoc[4](loc3: &mut String)
3017CopyLoc[3](loc2: u64)
3028CopyLoc[0](Arg0: &vector<u8>)
30913CopyLoc[0](Arg0: &vector<u8>)
31014CopyLoc[3](loc2: u64)
31317CopyLoc[4](loc3: &mut String)
31418MoveLoc[2](loc1: &u8)
31721Call u64_to_hexstring(u64): String
31822Call string::append(&mut String, String)
31923MoveLoc[3](loc2: u64)
32528MoveLoc[0](Arg0: &vector<u8>)
32730MoveLoc[4](loc3: &mut String)
332public u64_to_string(Arg0: u64): String {
3400CopyLoc[0](Arg0: u64)
3454LdConst[6](vector<u8>: "0" ..)
3465Call string::utf8(vector<u8>): String
3519Call math::pow(u64, u8): u64
35513LdConst[5](vector<u8>: "" /..)
35614Call string::utf8(vector<u8>): String
35715StLoc[1](loc0: String)
35816MutBorrowLoc[1](loc0: String)
35917StLoc[6](loc5: &mut String)
36118CopyLoc[4](loc3: u64)
36823CopyLoc[0](Arg0: u64)
36924CopyLoc[3](loc2: u64)
37227CopyLoc[5](loc4: u64)
37731MoveLoc[0](Arg0: u64)
37832CopyLoc[5](loc4: u64)
37933CopyLoc[3](loc2: u64)
38437CopyLoc[6](loc5: &mut String)
38639Call string::is_empty(&String): bool
39143StLoc[2](loc1: bool)
39445CopyLoc[5](loc4: u64)
39748StLoc[2](loc1: bool)
39949MoveLoc[2](loc1: bool)
40251CopyLoc[6](loc5: &mut String)
40352MoveLoc[5](loc4: u64)
40857Call string::append_utf8(&mut String, vector<u8>)
41058MoveLoc[3](loc2: u64)
41462MoveLoc[4](loc3: u64)
42067MoveLoc[6](loc5: &mut String)
427 1 => vector<u8>: "-" // interpreted as UTF8 string
428 2 => vector<u8>: "+" // interpreted as UTF8 string
429 3 => vector<u8>: "0123456789abcdef" // interpreted as UTF8 string
430 4 => vector<u8>: "0x" // interpreted as UTF8 string
431 5 => vector<u8>: "" // interpreted as UTF8 string
432 6 => vector<u8>: "0" // interpreted as UTF8 string