forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathobjects.json
115 lines (115 loc) · 5.17 KB
/
objects.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
{
"example_nft": {
"status": "Exists",
"details": {
"data": {
"dataType": "moveObject",
"type": "0x2::devnet_nft::DevNetNFT",
"fields": {
"description": "An NFT created by the wallet Command Line Tool",
"id": {
"id": "0x494eacaa114c6e42cdf962672af3a123fcedb076",
"version": 1
},
"name": "Example NFT",
"url": "ipfs://bafkreibngqhl3gaa7daob4i2vccziay2jjlp435cf66vhono7nrvww53ty"
}
},
"owner": {
"AddressOwner": "0x1680f5f14335ac5833b2c43173e44cdc8778eae1"
},
"previousTransaction": "iv5I8L4F1gwxeIpVwcYmrCKbO5wQucY8jCdXBj/FIpI=",
"storageRebate": 25,
"reference": {
"objectId": "0x494eacaa114c6e42cdf962672af3a123fcedb076",
"version": 1,
"digest": "9vJsKOfIZzoiaaVeN95Qbxt0l78XcwDMXfJ9VFJ3se4="
}
}
},
"coin": {
"status": "Exists",
"details": {
"data": {
"dataType": "moveObject",
"type": "0x2::coin::Coin<0x2::sui::SUI>",
"fields": {
"balance": 100000,
"id": {
"id": "0x03f6b46c2a692308197091c45c0b1f7fe58bcb5a",
"version": 0
}
}
},
"owner": {
"AddressOwner": "0x1680f5f14335ac5833b2c43173e44cdc8778eae1"
},
"previousTransaction": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
"storageRebate": 0,
"reference": {
"objectId": "0x03f6b46c2a692308197091c45c0b1f7fe58bcb5a",
"version": 0,
"digest": "0HcxGAJ6lF7BLf9GsMbkgSosFyDtyNbZHZrJDzhZisI="
}
}
},
"move_package": {
"status": "Exists",
"details": {
"data": {
"dataType": "package",
"disassembled": {
"m1": "// Move bytecode v5\nmodule f198e8dfeb788c776964b3bf7751d906ef880159.m1 {\nstruct Forge has store, key {\n\tid: VersionedID,\n\tswords_created: u64\n}\nstruct Sword has store, key {\n\tid: VersionedID,\n\tmagic: u64,\n\tstrength: u64\n}\n\ninit(Arg0: &mut TxContext) {\nB0:\n\t0: CopyLoc[0](Arg0: &mut TxContext)\n\t1: Call[6](new_id(&mut TxContext): VersionedID)\n\t2: LdU64(0)\n\t3: Pack[0](Forge)\n\t4: StLoc[1](loc0: Forge)\n\t5: MoveLoc[1](loc0: Forge)\n\t6: MoveLoc[0](Arg0: &mut TxContext)\n\t7: FreezeRef\n\t8: Call[7](sender(&TxContext): address)\n\t9: Call[0](transfer<Forge>(Forge, address))\n\t10: Ret\n}\npublic magic(Arg0: &Sword): u64 {\nB0:\n\t0: MoveLoc[0](Arg0: &Sword)\n\t1: ImmBorrowField[0](Sword.magic: u64)\n\t2: ReadRef\n\t3: Ret\n}\npublic strength(Arg0: &Sword): u64 {\nB0:\n\t0: MoveLoc[0](Arg0: &Sword)\n\t1: ImmBorrowField[1](Sword.strength: u64)\n\t2: ReadRef\n\t3: Ret\n}\nentry public sword_create(Arg0: &mut Forge, Arg1: u64, Arg2: u64, Arg3: address, Arg4: &mut TxContext) {\nB0:\n\t0: MoveLoc[4](Arg4: &mut TxContext)\n\t1: Call[6](new_id(&mut TxContext): VersionedID)\n\t2: MoveLoc[1](Arg1: u64)\n\t3: MoveLoc[2](Arg2: u64)\n\t4: Pack[1](Sword)\n\t5: StLoc[5](loc0: Sword)\n\t6: MoveLoc[5](loc0: Sword)\n\t7: MoveLoc[3](Arg3: address)\n\t8: Call[1](transfer<Sword>(Sword, address))\n\t9: CopyLoc[0](Arg0: &mut Forge)\n\t10: ImmBorrowField[2](Forge.swords_created: u64)\n\t11: ReadRef\n\t12: LdU64(1)\n\t13: Add\n\t14: MoveLoc[0](Arg0: &mut Forge)\n\t15: MutBorrowField[2](Forge.swords_created: u64)\n\t16: WriteRef\n\t17: Ret\n}\nentry public sword_transfer(Arg0: Sword, Arg1: address) {\nB0:\n\t0: MoveLoc[0](Arg0: Sword)\n\t1: MoveLoc[1](Arg1: address)\n\t2: Call[1](transfer<Sword>(Sword, address))\n\t3: Ret\n}\npublic swords_created(Arg0: &Forge): u64 {\nB0:\n\t0: MoveLoc[0](Arg0: &Forge)\n\t1: ImmBorrowField[2](Forge.swords_created: u64)\n\t2: ReadRef\n\t3: Ret\n}\n}"
}
},
"owner": "Immutable",
"previousTransaction": "yuiJg/buUm+ZHgEGqCjkIYlcEwcPfYDx2tGQ+gbiNDE=",
"storageRebate": 0,
"reference": {
"objectId": "0xf198e8dfeb788c776964b3bf7751d906ef880159",
"version": 1,
"digest": "kK7Hlgmlk/idoyK4r5VcKartAamGKTzLqoCRHvnnN5M="
}
}
},
"hero": {
"status": "Exists",
"details": {
"data": {
"dataType": "moveObject",
"type": "0x43beee724c2ca69e9e4f30857b81c5efefd3999::hero::Hero",
"fields": {
"experience": 0,
"game_id": "0x7c17114667957d1caa3a172d2f8dbe42535bb571",
"hp": 100,
"id": {
"id": "0xe88a382c7598e92a04b79dc1d06c8c7248fa7097",
"version": 1
},
"sword": {
"type": "0x43beee724c2ca69e9e4f30857b81c5efefd3999::hero::Sword",
"fields": {
"game_id": "0x7c17114667957d1caa3a172d2f8dbe42535bb571",
"id": {
"id": "0xcfaf71dca93bede9e8c3c9c61b1c5274675af61b",
"version": 0
},
"magic": 10,
"strength": 1
}
}
}
},
"owner": {
"AddressOwner": "0x1680f5f14335ac5833b2c43173e44cdc8778eae1"
},
"previousTransaction": "6cjGzIIsnzW49Ifq2JivNxJXcoMJC/klmiFawzGyiEE=",
"storageRebate": 22,
"reference": {
"objectId": "0xe88a382c7598e92a04b79dc1d06c8c7248fa7097",
"version": 1,
"digest": "i3iL1Uv4nb6l/SLY9XggRAliuGPqP+SzV3V5GbayOMA="
}
}
}
}