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

API

extended_field

Module0xfa65…814e
Move path
0xfdc8…ea77::extended_field
Functions
55 public, 0 entry
Structs
2
Friend modules
None
extended_field

Bytecode89 lines

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

// Move bytecode v7
module fdc88f7d7cf30afab2f82e8380d11ee8f70efb90e863d1de8616fae1bb09ea77.extended_field {
use 0000000000000000000000000000000000000000000000000000000000000002::dynamic_field;
use 0000000000000000000000000000000000000000000000000000000000000002::object;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
 
struct ExtendedField<phantom Ty0: store> has store, key {
id: UID
}
 
struct Key has copy, drop, store {
dummy_field: bool
}
 
public new<Ty0: store>(Arg0: Ty0, Arg1: &mut TxContext): ExtendedField<Ty0> {
L2: loc0: UID
B0:
0MoveLoc[1](Arg1: &mut TxContext)
1Call object::new(&mut TxContext): UID
2StLoc[2](loc0: UID)
3MutBorrowLoc[2](loc0: UID)
4LdFalse
5Pack[1](Key)
6MoveLoc[0](Arg0: Ty0)
7Call dynamic_field::add<Key, Ty0>(&mut UID, Key, Ty0)
8MoveLoc[2](loc0: UID)
9PackGeneric[0](ExtendedField<Ty0>)
10Ret
}
 
public borrow<Ty0: store>(Arg0: &ExtendedField<Ty0>): &Ty0 {
B0:
0MoveLoc[0](Arg0: &ExtendedField<Ty0>)
1ImmBorrowFieldGeneric[0](ExtendedField.id: UID)
2LdFalse
3Pack[1](Key)
4Call dynamic_field::borrow<Key, Ty0>(&UID, Key): &Ty0
5Ret
}
 
public borrow_mut<Ty0: store>(Arg0: &mut ExtendedField<Ty0>): &mut Ty0 {
B0:
0MoveLoc[0](Arg0: &mut ExtendedField<Ty0>)
1MutBorrowFieldGeneric[0](ExtendedField.id: UID)
2LdFalse
3Pack[1](Key)
4Call dynamic_field::borrow_mut<Key, Ty0>(&mut UID, Key): &mut Ty0
5Ret
}
 
public swap<Ty0: store>(Arg0: &mut ExtendedField<Ty0>, Arg1: Ty0): Ty0 {
L2: loc0: Ty0
B0:
0CopyLoc[0](Arg0: &mut ExtendedField<Ty0>)
1MutBorrowFieldGeneric[0](ExtendedField.id: UID)
2LdFalse
3Pack[1](Key)
4Call dynamic_field::remove<Key, Ty0>(&mut UID, Key): Ty0
5StLoc[2](loc0: Ty0)
6MoveLoc[0](Arg0: &mut ExtendedField<Ty0>)
7MutBorrowFieldGeneric[0](ExtendedField.id: UID)
8LdFalse
9Pack[1](Key)
10MoveLoc[1](Arg1: Ty0)
11Call dynamic_field::add<Key, Ty0>(&mut UID, Key, Ty0)
12MoveLoc[2](loc0: Ty0)
13Ret
}
 
public destroy<Ty0: store>(Arg0: ExtendedField<Ty0>): Ty0 {
L1: loc0: UID
L2: loc1: Ty0
B0:
0MoveLoc[0](Arg0: ExtendedField<Ty0>)
1UnpackGeneric[0](ExtendedField<Ty0>)
2StLoc[1](loc0: UID)
3MutBorrowLoc[1](loc0: UID)
4LdFalse
5Pack[1](Key)
6Call dynamic_field::remove<Key, Ty0>(&mut UID, Key): Ty0
7StLoc[2](loc1: Ty0)
8MoveLoc[1](loc0: UID)
9Call object::delete(UID)
10MoveLoc[2](loc1: Ty0)
11Ret
}
 
}