init
Module0x3ec7…efc7
- Move path
- 0x3ec7…efc7::init
- Functions
- 10 public, 0 entry
- Structs
- 1
- Friend modules
- None
init
Bytecode35 lines
The on-chain disassembly. Offsets are bytecode positions within each function.
// Move bytecode v7
module 3ec740df8428aa9c93aaef7f8cc1542ac3194fd014826b51bfe245346d64efc7.init {
use 3ec740df8428aa9c93aaef7f8cc1542ac3194fd014826b51bfe245346d64efc7::authority;
use 3ec740df8428aa9c93aaef7f8cc1542ac3194fd014826b51bfe245346d64efc7::registry;
use 0000000000000000000000000000000000000000000000000000000000000002::object;
use 0000000000000000000000000000000000000000000000000000000000000002::package;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
struct INIT has drop {
dummy_field: bool
}
init(Arg0: INIT, Arg1: &mut TxContext) {
L2: loc0: Registry
B0:
0ImmBorrowLoc[0](Arg0: INIT)
1CopyLoc[1](Arg1: &mut TxContext)
2Call registry::create_registry<INIT>(&INIT, &mut TxContext): Registry
3StLoc[2](loc0: Registry)
4ImmBorrowLoc[0](Arg0: INIT)
5MutBorrowLoc[2](loc0: Registry)
6Call registry::borrow_mut_id(&mut Registry): &mut UID
7CopyLoc[1](Arg1: &mut TxContext)
8FreezeRef
9Call authority::create_package_admin_cap_and_keep<INIT>(&INIT, &mut UID, &TxContext)
10MoveLoc[2](loc0: Registry)
11Call registry::share(Registry)
12MoveLoc[0](Arg0: INIT)
13MoveLoc[1](Arg1: &mut TxContext)
14Call package::claim_and_keep<INIT>(INIT, &mut TxContext)
15Ret
}
}