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

API

factory

Module0x034c…ddca
Move path
0x034c…ddca::factory
Functions
203 public, 0 entry
Structs
3
Friend modules
coloringmintreceive
factory

Bytecode611 lines

The on-chain disassembly. Offsets are instruction numbers within each function.

// Move bytecode v6
module 34c162f6b594cb5a1805264dd01ca5d80ce3eca6522e6ee37fd9ebfb9d3ddca.factory {
use 034c162f6b594cb5a1805264dd01ca5d80ce3eca6522e6ee37fd9ebfb9d3ddca::admin;
use 034c162f6b594cb5a1805264dd01ca5d80ce3eca6522e6ee37fd9ebfb9d3ddca::attributes;
use 034c162f6b594cb5a1805264dd01ca5d80ce3eca6522e6ee37fd9ebfb9d3ddca::collection;
use 034c162f6b594cb5a1805264dd01ca5d80ce3eca6522e6ee37fd9ebfb9d3ddca::image;
use 034c162f6b594cb5a1805264dd01ca5d80ce3eca6522e6ee37fd9ebfb9d3ddca::rarity;
use 034c162f6b594cb5a1805264dd01ca5d80ce3eca6522e6ee37fd9ebfb9d3ddca::registry;
use 0000000000000000000000000000000000000000000000000000000000000001::option;
use 0000000000000000000000000000000000000000000000000000000000000001::string;
use 0000000000000000000000000000000000000000000000000000000000000001::vector;
use 0000000000000000000000000000000000000000000000000000000000000002::display;
use 0000000000000000000000000000000000000000000000000000000000000002::kiosk;
use 0000000000000000000000000000000000000000000000000000000000000002::math;
use 0000000000000000000000000000000000000000000000000000000000000002::object;
use 0000000000000000000000000000000000000000000000000000000000000002::object_table;
use 0000000000000000000000000000000000000000000000000000000000000002::package;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer;
use 0000000000000000000000000000000000000000000000000000000000000002::transfer_policy;
use 0000000000000000000000000000000000000000000000000000000000000002::tx_context;
 
struct FACTORY has drop {
dummy_field: bool
}
 
struct PrimeMachin has store, key {
id: UID,
number: u16,
attributes: Option<Attributes>,
image: Option<Image>,
rarity: Option<Rarity>,
lvl1_colored_by: Option<address>,
lvl2_colored_by: Option<address>,
minted_by: Option<address>,
kiosk_id: ID,
kiosk_owner_cap_id: ID
}
 
struct Factory has key {
id: UID,
pfps: ObjectTable<u16, PrimeMachin>,
is_initialized: bool
}
 
init(Arg0: FACTORY, Arg1: &mut TxContext) {
L2: loc0: Display<PrimeMachin>
L3: loc1: Factory
L4: loc2: TransferPolicy<PrimeMachin>
L5: loc3: TransferPolicyCap<PrimeMachin>
L6: loc4: Publisher
B0:
0MoveLoc[0](Arg0: FACTORY)
1CopyLoc[1](Arg1: &mut TxContext)
2Call package::claim<FACTORY>(FACTORY, &mut TxContext): Publisher
3StLoc[6](loc4: Publisher)
4CopyLoc[1](Arg1: &mut TxContext)
5Call object::new(&mut TxContext): UID
6CopyLoc[1](Arg1: &mut TxContext)
7Call object_table::new<u16, PrimeMachin>(&mut TxContext): ObjectTable<u16, PrimeMachin>
8LdFalse
9Pack[2](Factory)
10StLoc[3](loc1: Factory)
11ImmBorrowLoc[6](loc4: Publisher)
12CopyLoc[1](Arg1: &mut TxContext)
13Call display::new<PrimeMachin>(&Publisher, &mut TxContext): Display<PrimeMachin>
14StLoc[2](loc0: Display<PrimeMachin>)
15MutBorrowLoc[2](loc0: Display<PrimeMachin>)
16LdConst[8](vector<u8>: "nam..)
17Call string::utf8(vector<u8>): String
18LdConst[9](vector<u8>: "Pri..)
19Call string::utf8(vector<u8>): String
20Call display::add<PrimeMachin>(&mut Display<PrimeMachin>, String, String)
21MutBorrowLoc[2](loc0: Display<PrimeMachin>)
22LdConst[10](vector<u8>: "des..)
23Call string::utf8(vector<u8>): String
24LdConst[11](vector<u8>: "Pri..)
25Call string::utf8(vector<u8>): String
26Call display::add<PrimeMachin>(&mut Display<PrimeMachin>, String, String)
27MutBorrowLoc[2](loc0: Display<PrimeMachin>)
28LdConst[12](vector<u8>: "ima..)
29Call string::utf8(vector<u8>): String
30LdConst[13](vector<u8>: "htt..)
31Call string::utf8(vector<u8>): String
32Call display::add<PrimeMachin>(&mut Display<PrimeMachin>, String, String)
33MutBorrowLoc[2](loc0: Display<PrimeMachin>)
34LdConst[14](vector<u8>: "att..)
35Call string::utf8(vector<u8>): String
36LdConst[15](vector<u8>: "{at..)
37Call string::utf8(vector<u8>): String
38Call display::add<PrimeMachin>(&mut Display<PrimeMachin>, String, String)
39MutBorrowLoc[2](loc0: Display<PrimeMachin>)
40LdConst[16](vector<u8>: "rar..)
41Call string::utf8(vector<u8>): String
42LdConst[17](vector<u8>: "{ra..)
43Call string::utf8(vector<u8>): String
44Call display::add<PrimeMachin>(&mut Display<PrimeMachin>, String, String)
45MutBorrowLoc[2](loc0: Display<PrimeMachin>)
46LdConst[18](vector<u8>: "lvl..)
47Call string::utf8(vector<u8>): String
48LdConst[19](vector<u8>: "{lv..)
49Call string::utf8(vector<u8>): String
50Call display::add<PrimeMachin>(&mut Display<PrimeMachin>, String, String)
51MutBorrowLoc[2](loc0: Display<PrimeMachin>)
52LdConst[20](vector<u8>: "lvl..)
53Call string::utf8(vector<u8>): String
54LdConst[21](vector<u8>: "{lv..)
55Call string::utf8(vector<u8>): String
56Call display::add<PrimeMachin>(&mut Display<PrimeMachin>, String, String)
57MutBorrowLoc[2](loc0: Display<PrimeMachin>)
58LdConst[22](vector<u8>: "min..)
59Call string::utf8(vector<u8>): String
60LdConst[23](vector<u8>: "{mi..)
61Call string::utf8(vector<u8>): String
62Call display::add<PrimeMachin>(&mut Display<PrimeMachin>, String, String)
63MutBorrowLoc[2](loc0: Display<PrimeMachin>)
64LdConst[24](vector<u8>: "kio..)
65Call string::utf8(vector<u8>): String
66LdConst[25](vector<u8>: "{ki..)
67Call string::utf8(vector<u8>): String
68Call display::add<PrimeMachin>(&mut Display<PrimeMachin>, String, String)
69MutBorrowLoc[2](loc0: Display<PrimeMachin>)
70LdConst[26](vector<u8>: "kio..)
71Call string::utf8(vector<u8>): String
72LdConst[27](vector<u8>: "{ki..)
73Call string::utf8(vector<u8>): String
74Call display::add<PrimeMachin>(&mut Display<PrimeMachin>, String, String)
75MutBorrowLoc[2](loc0: Display<PrimeMachin>)
76Call display::update_version<PrimeMachin>(&mut Display<PrimeMachin>)
77ImmBorrowLoc[6](loc4: Publisher)
78CopyLoc[1](Arg1: &mut TxContext)
79Call transfer_policy::new<PrimeMachin>(&Publisher, &mut TxContext): TransferPolicy<PrimeMachin> * TransferPolicyCap<PrimeMachin>
80StLoc[5](loc3: TransferPolicyCap<PrimeMachin>)
81StLoc[4](loc2: TransferPolicy<PrimeMachin>)
82MoveLoc[3](loc1: Factory)
83MoveLoc[1](Arg1: &mut TxContext)
84FreezeRef
85Call tx_context::sender(&TxContext): address
86Call transfer::transfer<Factory>(Factory, address)
87MoveLoc[5](loc3: TransferPolicyCap<PrimeMachin>)
88LdConst[28](address: 0xde..)
89Call transfer::public_transfer<TransferPolicyCap<PrimeMachin>>(TransferPolicyCap<PrimeMachin>, address)
90MoveLoc[6](loc4: Publisher)
91LdConst[28](address: 0xde..)
92Call transfer::public_transfer<Publisher>(Publisher, address)
93MoveLoc[2](loc0: Display<PrimeMachin>)
94LdConst[28](address: 0xde..)
95Call transfer::public_transfer<Display<PrimeMachin>>(Display<PrimeMachin>, address)
96MoveLoc[4](loc2: TransferPolicy<PrimeMachin>)
97Call transfer::public_share_object<TransferPolicy<PrimeMachin>>(TransferPolicy<PrimeMachin>)
98Ret
}
 
public admin_destroy_factory(Arg0: &AdminCap, Arg1: Factory, Arg2: &TxContext) {
L3: loc0: UID
L4: loc1: ObjectTable<u16, PrimeMachin>
B0:
0MoveLoc[0](Arg0: &AdminCap)
1MoveLoc[2](Arg2: &TxContext)
2Call admin::verify_admin_cap(&AdminCap, &TxContext)
3ImmBorrowLoc[1](Arg1: Factory)
4ImmBorrowField[0](Factory.is_initialized: bool)
5ReadRef
6LdTrue
7Eq
8BrFalse(10)
B1:
9Branch(12)
B2:
10LdConst[3](u64: 4)
11Abort
B3:
12ImmBorrowLoc[1](Arg1: Factory)
13ImmBorrowField[1](Factory.pfps: ObjectTable<u16, PrimeMachin>)
14Call object_table::is_empty<u16, PrimeMachin>(&ObjectTable<u16, PrimeMachin>): bool
15BrFalse(17)
B4:
16Branch(19)
B5:
17LdConst[2](u64: 3)
18Abort
B6:
19MoveLoc[1](Arg1: Factory)
20Unpack[2](Factory)
21Pop
22StLoc[4](loc1: ObjectTable<u16, PrimeMachin>)
23StLoc[3](loc0: UID)
24MoveLoc[4](loc1: ObjectTable<u16, PrimeMachin>)
25Call object_table::destroy_empty<u16, PrimeMachin>(ObjectTable<u16, PrimeMachin>)
26MoveLoc[3](loc0: UID)
27Call object::delete(UID)
28Ret
}
 
public admin_initialize_factory(Arg0: &AdminCap, Arg1: &mut Factory, Arg2: &mut Registry, Arg3: &mut TxContext) {
L4: loc0: ID
L5: loc1: KioskOwnerCap
L6: loc2: u16
L7: loc3: Kiosk
L8: loc4: KioskOwnerCap
L9: loc5: u16
L10: loc6: PrimeMachin
B0:
0MoveLoc[0](Arg0: &AdminCap)
1CopyLoc[3](Arg3: &mut TxContext)
2FreezeRef
3Call admin::verify_admin_cap(&AdminCap, &TxContext)
4CopyLoc[1](Arg1: &mut Factory)
5ImmBorrowField[0](Factory.is_initialized: bool)
6ReadRef
7LdFalse
8Eq
9BrFalse(11)
B1:
10Branch(19)
B2:
11MoveLoc[2](Arg2: &mut Registry)
12Pop
13MoveLoc[1](Arg1: &mut Factory)
14Pop
15MoveLoc[3](Arg3: &mut TxContext)
16Pop
17LdConst[1](u64: 2)
18Abort
B3:
19CopyLoc[1](Arg1: &mut Factory)
20ImmBorrowField[1](Factory.pfps: ObjectTable<u16, PrimeMachin>)
21Call object_table::length<u16, PrimeMachin>(&ObjectTable<u16, PrimeMachin>): u64
22CastU16
23LdU16(1)
24Add
25StLoc[9](loc5: u16)
26CopyLoc[9](loc5: u16)
27LdU16(332)
28Add
29CastU64
30Call collection::size(): u16
31CastU64
32Call math::min(u64, u64): u64
33CastU16
34StLoc[6](loc2: u16)
B4:
35CopyLoc[9](loc5: u16)
36CopyLoc[6](loc2: u16)
37Le
38BrFalse(90)
B5:
39Branch(40)
B6:
40CopyLoc[3](Arg3: &mut TxContext)
41Call kiosk::new(&mut TxContext): Kiosk * KioskOwnerCap
42StLoc[8](loc4: KioskOwnerCap)
43StLoc[7](loc3: Kiosk)
44CopyLoc[3](Arg3: &mut TxContext)
45Call object::new(&mut TxContext): UID
46CopyLoc[9](loc5: u16)
47Call option::none<Attributes>(): Option<Attributes>
48Call option::none<Image>(): Option<Image>
49Call option::none<Rarity>(): Option<Rarity>
50Call option::none<address>(): Option<address>
51Call option::none<address>(): Option<address>
52Call option::none<address>(): Option<address>
53ImmBorrowLoc[7](loc3: Kiosk)
54Call object::id<Kiosk>(&Kiosk): ID
55ImmBorrowLoc[8](loc4: KioskOwnerCap)
56Call object::id<KioskOwnerCap>(&KioskOwnerCap): ID
57Pack[1](PrimeMachin)
58StLoc[10](loc6: PrimeMachin)
59MutBorrowLoc[7](loc3: Kiosk)
60ImmBorrowLoc[8](loc4: KioskOwnerCap)
61ImmBorrowLoc[10](loc6: PrimeMachin)
62Call object::id_address<PrimeMachin>(&PrimeMachin): address
63Call kiosk::set_owner_custom(&mut Kiosk, &KioskOwnerCap, address)
64MoveLoc[8](loc4: KioskOwnerCap)
65StLoc[5](loc1: KioskOwnerCap)
66ImmBorrowLoc[10](loc6: PrimeMachin)
67Call object::id<PrimeMachin>(&PrimeMachin): ID
68StLoc[4](loc0: ID)
69MoveLoc[5](loc1: KioskOwnerCap)
70ImmBorrowLoc[4](loc0: ID)
71Call object::id_to_address(&ID): address
72Call transfer::public_transfer<KioskOwnerCap>(KioskOwnerCap, address)
73MoveLoc[7](loc3: Kiosk)
74Call transfer::public_share_object<Kiosk>(Kiosk)
75CopyLoc[9](loc5: u16)
76ImmBorrowLoc[10](loc6: PrimeMachin)
77Call object::id<PrimeMachin>(&PrimeMachin): ID
78CopyLoc[2](Arg2: &mut Registry)
79Call registry::add(u16, ID, &mut Registry)
80CopyLoc[1](Arg1: &mut Factory)
81MutBorrowField[1](Factory.pfps: ObjectTable<u16, PrimeMachin>)
82CopyLoc[9](loc5: u16)
83MoveLoc[10](loc6: PrimeMachin)
84Call object_table::add<u16, PrimeMachin>(&mut ObjectTable<u16, PrimeMachin>, u16, PrimeMachin)
85MoveLoc[9](loc5: u16)
86LdU16(1)
87Add
88StLoc[9](loc5: u16)
89Branch(35)
B7:
90MoveLoc[2](Arg2: &mut Registry)
91Pop
92MoveLoc[3](Arg3: &mut TxContext)
93Pop
94CopyLoc[1](Arg1: &mut Factory)
95ImmBorrowField[1](Factory.pfps: ObjectTable<u16, PrimeMachin>)
96Call object_table::length<u16, PrimeMachin>(&ObjectTable<u16, PrimeMachin>): u64
97CastU16
98Call collection::size(): u16
99Eq
100BrFalse(106)
B8:
101LdTrue
102MoveLoc[1](Arg1: &mut Factory)
103MutBorrowField[0](Factory.is_initialized: bool)
104WriteRef
105Branch(108)
B9:
106MoveLoc[1](Arg1: &mut Factory)
107Pop
B10:
108Ret
}
 
public admin_remove_from_factory(Arg0: &AdminCap, Arg1: vector<u16>, Arg2: &mut Factory, Arg3: &TxContext): vector<PrimeMachin> {
L4: loc0: u16
L5: loc1: PrimeMachin
L6: loc2: vector<PrimeMachin>
B0:
0MoveLoc[0](Arg0: &AdminCap)
1MoveLoc[3](Arg3: &TxContext)
2Call admin::verify_admin_cap(&AdminCap, &TxContext)
3CopyLoc[2](Arg2: &mut Factory)
4ImmBorrowField[0](Factory.is_initialized: bool)
5ReadRef
6LdTrue
7Eq
8BrFalse(10)
B1:
9Branch(14)
B2:
10MoveLoc[2](Arg2: &mut Factory)
11Pop
12LdConst[3](u64: 4)
13Abort
B3:
14VecPack(27, 0)
15StLoc[6](loc2: vector<PrimeMachin>)
B4:
16ImmBorrowLoc[1](Arg1: vector<u16>)
17Call vector::is_empty<u16>(&vector<u16>): bool
18Not
19BrFalse(33)
B5:
20Branch(21)
B6:
21MutBorrowLoc[1](Arg1: vector<u16>)
22VecPopBack(10)
23StLoc[4](loc0: u16)
24CopyLoc[2](Arg2: &mut Factory)
25MutBorrowField[1](Factory.pfps: ObjectTable<u16, PrimeMachin>)
26MoveLoc[4](loc0: u16)
27Call object_table::remove<u16, PrimeMachin>(&mut ObjectTable<u16, PrimeMachin>, u16): PrimeMachin
28StLoc[5](loc1: PrimeMachin)
29MutBorrowLoc[6](loc2: vector<PrimeMachin>)
30MoveLoc[5](loc1: PrimeMachin)
31VecPushBack(27)
32Branch(16)
B7:
33MoveLoc[2](Arg2: &mut Factory)
34Pop
35MoveLoc[6](loc2: vector<PrimeMachin>)
36Ret
}
 
public(friend) id(Arg0: &PrimeMachin): ID {
B0:
0MoveLoc[0](Arg0: &PrimeMachin)
1Call object::id<PrimeMachin>(&PrimeMachin): ID
2Ret
}
 
public(friend) uid_mut(Arg0: &mut PrimeMachin): &mut UID {
B0:
0MoveLoc[0](Arg0: &mut PrimeMachin)
1MutBorrowField[2](PrimeMachin.id: UID)
2Ret
}
 
public(friend) number(Arg0: &PrimeMachin): u16 {
B0:
0MoveLoc[0](Arg0: &PrimeMachin)
1ImmBorrowField[3](PrimeMachin.number: u16)
2ReadRef
3Ret
}
 
public(friend) image(Arg0: &PrimeMachin): &Image {
B0:
0MoveLoc[0](Arg0: &PrimeMachin)
1ImmBorrowField[4](PrimeMachin.image: Option<Image>)
2Call option::borrow<Image>(&Option<Image>): &Image
3Ret
}
 
public(friend) kiosk_id(Arg0: &PrimeMachin): ID {
B0:
0MoveLoc[0](Arg0: &PrimeMachin)
1ImmBorrowField[5](PrimeMachin.kiosk_id: ID)
2ReadRef
3Ret
}
 
public(friend) kiosk_owner_cap_id(Arg0: &PrimeMachin): ID {
B0:
0MoveLoc[0](Arg0: &PrimeMachin)
1ImmBorrowField[6](PrimeMachin.kiosk_owner_cap_id: ID)
2ReadRef
3Ret
}
 
public(friend) lvl1_colored_by(Arg0: &PrimeMachin): Option<address> {
B0:
0MoveLoc[0](Arg0: &PrimeMachin)
1ImmBorrowField[7](PrimeMachin.lvl1_colored_by: Option<address>)
2ReadRef
3Ret
}
 
public(friend) lvl2_colored_by(Arg0: &PrimeMachin): Option<address> {
B0:
0MoveLoc[0](Arg0: &PrimeMachin)
1ImmBorrowField[8](PrimeMachin.lvl2_colored_by: Option<address>)
2ReadRef
3Ret
}
 
public(friend) set_attributes(Arg0: &mut PrimeMachin, Arg1: Attributes) {
B0:
0CopyLoc[0](Arg0: &mut PrimeMachin)
1ImmBorrowField[9](PrimeMachin.attributes: Option<Attributes>)
2Call option::is_none<Attributes>(&Option<Attributes>): bool
3BrFalse(5)
B1:
4Branch(9)
B2:
5MoveLoc[0](Arg0: &mut PrimeMachin)
6Pop
7LdConst[0](u64: 1)
8Abort
B3:
9MoveLoc[0](Arg0: &mut PrimeMachin)
10MutBorrowField[9](PrimeMachin.attributes: Option<Attributes>)
11MoveLoc[1](Arg1: Attributes)
12Call option::fill<Attributes>(&mut Option<Attributes>, Attributes)
13Ret
}
 
public(friend) set_image(Arg0: &mut PrimeMachin, Arg1: Image) {
B0:
0CopyLoc[0](Arg0: &mut PrimeMachin)
1ImmBorrowField[4](PrimeMachin.image: Option<Image>)
2Call option::is_none<Image>(&Option<Image>): bool
3BrFalse(5)
B1:
4Branch(9)
B2:
5MoveLoc[0](Arg0: &mut PrimeMachin)
6Pop
7LdConst[4](u64: 5)
8Abort
B3:
9MoveLoc[0](Arg0: &mut PrimeMachin)
10MutBorrowField[4](PrimeMachin.image: Option<Image>)
11MoveLoc[1](Arg1: Image)
12Call option::fill<Image>(&mut Option<Image>, Image)
13Ret
}
 
public(friend) unset_image(Arg0: &mut PrimeMachin): Image {
B0:
0CopyLoc[0](Arg0: &mut PrimeMachin)
1ImmBorrowField[4](PrimeMachin.image: Option<Image>)
2Call option::is_some<Image>(&Option<Image>): bool
3BrFalse(5)
B1:
4Branch(9)
B2:
5MoveLoc[0](Arg0: &mut PrimeMachin)
6Pop
7LdConst[5](u64: 6)
8Abort
B3:
9MoveLoc[0](Arg0: &mut PrimeMachin)
10MutBorrowField[4](PrimeMachin.image: Option<Image>)
11Call option::extract<Image>(&mut Option<Image>): Image
12Ret
}
 
public(friend) set_lvl1_colored_by_address(Arg0: &mut PrimeMachin, Arg1: address) {
B0:
0MoveLoc[0](Arg0: &mut PrimeMachin)
1MutBorrowField[7](PrimeMachin.lvl1_colored_by: Option<address>)
2MoveLoc[1](Arg1: address)
3Call option::fill<address>(&mut Option<address>, address)
4Ret
}
 
public(friend) set_lvl2_colored_by_address(Arg0: &mut PrimeMachin, Arg1: address) {
B0:
0MoveLoc[0](Arg0: &mut PrimeMachin)
1MutBorrowField[8](PrimeMachin.lvl2_colored_by: Option<address>)
2MoveLoc[1](Arg1: address)
3Call option::fill<address>(&mut Option<address>, address)
4Ret
}
 
public(friend) set_minted_by_address(Arg0: &mut PrimeMachin, Arg1: address) {
B0:
0MoveLoc[0](Arg0: &mut PrimeMachin)
1MutBorrowField[10](PrimeMachin.minted_by: Option<address>)
2MoveLoc[1](Arg1: address)
3Call option::fill<address>(&mut Option<address>, address)
4Ret
}
 
public(friend) set_rarity(Arg0: &mut PrimeMachin, Arg1: Rarity) {
B0:
0CopyLoc[0](Arg0: &mut PrimeMachin)
1ImmBorrowField[11](PrimeMachin.rarity: Option<Rarity>)
2Call option::is_none<Rarity>(&Option<Rarity>): bool
3BrFalse(5)
B1:
4Branch(9)
B2:
5MoveLoc[0](Arg0: &mut PrimeMachin)
6Pop
7LdConst[7](u64: 8)
8Abort
B3:
9MoveLoc[0](Arg0: &mut PrimeMachin)
10MutBorrowField[11](PrimeMachin.rarity: Option<Rarity>)
11MoveLoc[1](Arg1: Rarity)
12Call option::fill<Rarity>(&mut Option<Rarity>, Rarity)
13Ret
}
 
public(friend) swap_image(Arg0: &mut PrimeMachin, Arg1: Image): Image * DeleteImagePromise {
L2: loc0: Image
L3: loc1: DeleteImagePromise
B0:
0CopyLoc[0](Arg0: &mut PrimeMachin)
1ImmBorrowField[3](PrimeMachin.number: u16)
2ReadRef
3ImmBorrowLoc[1](Arg1: Image)
4Call image::number(&Image): u16
5Eq
6BrFalse(8)
B1:
7Branch(12)
B2:
8MoveLoc[0](Arg0: &mut PrimeMachin)
9Pop
10LdConst[6](u64: 7)
11Abort
B3:
12MoveLoc[0](Arg0: &mut PrimeMachin)
13MutBorrowField[4](PrimeMachin.image: Option<Image>)
14MoveLoc[1](Arg1: Image)
15Call option::swap<Image>(&mut Option<Image>, Image): Image
16StLoc[2](loc0: Image)
17ImmBorrowLoc[2](loc0: Image)
18Call image::issue_delete_image_promise(&Image): DeleteImagePromise
19StLoc[3](loc1: DeleteImagePromise)
20MoveLoc[2](loc0: Image)
21MoveLoc[3](loc1: DeleteImagePromise)
22Ret
}
 
Constants [
0 => u64: 1
1 => u64: 2
2 => u64: 3
3 => u64: 4
4 => u64: 5
5 => u64: 6
6 => u64: 7
7 => u64: 8
8 => vector<u8>: "name" // interpreted as UTF8 string
9 => vector<u8>: "Prime Machin #{number}" // interpreted as UTF8 string
10 => vector<u8>: "description" // interpreted as UTF8 string
11 => vector<u8>: "Prime Machin #{number} manufactured by the Triangle Company." // interpreted as UTF8 string
12 => vector<u8>: "image_url" // interpreted as UTF8 string
13 => vector<u8>: "https://img.sm.xyz/{id}/" // interpreted as UTF8 string
14 => vector<u8>: "attributes" // interpreted as UTF8 string
15 => vector<u8>: "{attributes}" // interpreted as UTF8 string
16 => vector<u8>: "rarity" // interpreted as UTF8 string
17 => vector<u8>: "{rarity}" // interpreted as UTF8 string
18 => vector<u8>: "lvl1_colored_by" // interpreted as UTF8 string
19 => vector<u8>: "{lvl1_colored_by}" // interpreted as UTF8 string
20 => vector<u8>: "lvl2_colored_by" // interpreted as UTF8 string
21 => vector<u8>: "{lvl2_colored_by}" // interpreted as UTF8 string
22 => vector<u8>: "minted_by" // interpreted as UTF8 string
23 => vector<u8>: "{minted_by}" // interpreted as UTF8 string
24 => vector<u8>: "kiosk_id" // interpreted as UTF8 string
25 => vector<u8>: "{kiosk_id}" // interpreted as UTF8 string
26 => vector<u8>: "kiosk_owner_cap_id" // interpreted as UTF8 string
27 => vector<u8>: "{kiosk_owner_cap_id}" // interpreted as UTF8 string
28 => address: 0xde0053243f3226649701a7fe2c3988be11941bf3ff3535f3c8c5bf32fc600220
]
}