Skip to content

Commit

Permalink
Fix broken main (MystenLabs#2113)
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind authored May 21, 2022
1 parent 4a9a66a commit 0752e70
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 117 deletions.
46 changes: 23 additions & 23 deletions sui/open_rpc/samples/objects.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
"fields": {
"description": "An NFT created by the wallet Command Line Tool",
"id": {
"id": "0xf629b4e82581c3ce0ae206ece9d1098be27a8cd9",
"id": "0xace69a6b04ab1901ab7629a43dd2ea8bb7cdcb28",
"version": 1
},
"name": "Example NFT",
"url": "ipfs://bafkreibngqhl3gaa7daob4i2vccziay2jjlp435cf66vhono7nrvww53ty"
}
},
"owner": {
"AddressOwner": "0x0f08fbeeabaf8a58a6f1fdffe3d8485ba745aeec"
"AddressOwner": "0x215592226abfec8d03fbbeb8b30eb0d2129c94b0"
},
"previousTransaction": "mg847TeFyfixtmgwRBbNxNDKYLCGOBPsqG2Z3HyYepk=",
"previousTransaction": "4RJfkN9SgLYdb0LqxBHh6lfRPicQ8FLJgzi9w2COcTo=",
"storageRebate": 25,
"reference": {
"objectId": "0xf629b4e82581c3ce0ae206ece9d1098be27a8cd9",
"objectId": "0xace69a6b04ab1901ab7629a43dd2ea8bb7cdcb28",
"version": 1,
"digest": "tnbJkEPpw+9ISzhHekVGVTRzDgTROPMakj4/FmLSFuE="
"digest": "UfLPgZGbHWnC2Equ1kxZT4qoUS1GBHiX0C1M2DEbTsY="
}
}
},
Expand All @@ -36,20 +36,20 @@
"fields": {
"balance": 100000,
"id": {
"id": "0x0696c90985cbe53cbf96ca1a827eea89e6618238",
"id": "0x5b24fc22b7ff2a14a9c8ff104ec8390371939045",
"version": 0
}
}
},
"owner": {
"AddressOwner": "0x0f08fbeeabaf8a58a6f1fdffe3d8485ba745aeec"
"AddressOwner": "0x215592226abfec8d03fbbeb8b30eb0d2129c94b0"
},
"previousTransaction": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
"storageRebate": 0,
"reference": {
"objectId": "0x0696c90985cbe53cbf96ca1a827eea89e6618238",
"objectId": "0x5b24fc22b7ff2a14a9c8ff104ec8390371939045",
"version": 0,
"digest": "Pno7fbEapNe5vJEDfqyC0GTHsFxPad1UxpLjahFY1sM="
"digest": "hP/CkKyJQiRL53Foa/ipZyyO35R923f9+5Wz2h/F7ek="
}
}
},
Expand All @@ -59,16 +59,16 @@
"data": {
"dataType": "package",
"disassembled": {
"M1": "// Move bytecode v5\nmodule e5779cbe095584b7472c8fd429bc99d6fc3d093f.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}\npublic(script) 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}\npublic(script) sword_transfer(Arg0: Sword, Arg1: address, Arg2: &mut TxContext) {\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}"
"M1": "// Move bytecode v5\nmodule 738ca084a8e9213ec3f5662cb5c6fee1ebd0799b.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}\npublic(script) 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}\npublic(script) sword_transfer(Arg0: Sword, Arg1: address, Arg2: &mut TxContext) {\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": "YHzOMYP1rJ/bP4aOlmarBH1S6h5lEWpVHTBHCKchLFY=",
"previousTransaction": "VRU1ozQyeBnYwhYMy4mvCY4PLNjeJlh6sKb3NuLT+Es=",
"storageRebate": 0,
"reference": {
"objectId": "0xe5779cbe095584b7472c8fd429bc99d6fc3d093f",
"objectId": "0x738ca084a8e9213ec3f5662cb5c6fee1ebd0799b",
"version": 1,
"digest": "o4aZje81FxtrqqUpNtFQw6PqUZeUn7CnnD0HHGpPQxo="
"digest": "3mUamQPf54x0zunKsfo146+p5f+uZg/OerDuBP6Bn2o="
}
}
},
Expand All @@ -77,21 +77,21 @@
"details": {
"data": {
"dataType": "moveObject",
"type": "0x335c6759f2c294136562068f589015577f63a5b7::Hero::Hero",
"type": "0x1fd54b43eeb2c949141c4243af5c99f24bb1685e::Hero::Hero",
"fields": {
"experience": 0,
"game_id": "0x34ba632dec641789edf9e4bb1a0734a7f665dc43",
"game_id": "0xac9e2ebfa2cd8408e94db8eb09f8299fdee18e76",
"hp": 100,
"id": {
"id": "0xd0d122e384dfb635e22c870edab5a0a5f5aa4eff",
"id": "0x5263a3416ab02247d4de3925632b0c1595e4462f",
"version": 1
},
"sword": {
"type": "0x335c6759f2c294136562068f589015577f63a5b7::Hero::Sword",
"type": "0x1fd54b43eeb2c949141c4243af5c99f24bb1685e::Hero::Sword",
"fields": {
"game_id": "0x34ba632dec641789edf9e4bb1a0734a7f665dc43",
"game_id": "0xac9e2ebfa2cd8408e94db8eb09f8299fdee18e76",
"id": {
"id": "0x5b4d5642d8051815961837aaac0806734e73e984",
"id": "0x870c23203087a5d40869160e24fe343d59dd4926",
"version": 0
},
"magic": 10,
Expand All @@ -101,14 +101,14 @@
}
},
"owner": {
"AddressOwner": "0x0f08fbeeabaf8a58a6f1fdffe3d8485ba745aeec"
"AddressOwner": "0x215592226abfec8d03fbbeb8b30eb0d2129c94b0"
},
"previousTransaction": "y/jg8HSpqaJfU2IwxxGVlw7MPmtKW6YgFkbKDueIyFg=",
"previousTransaction": "njO2jDkzYLEU6a+lqQjHPx3bU0dtmlKWcK1YGqJNVm4=",
"storageRebate": 22,
"reference": {
"objectId": "0xd0d122e384dfb635e22c870edab5a0a5f5aa4eff",
"objectId": "0x5263a3416ab02247d4de3925632b0c1595e4462f",
"version": 1,
"digest": "bpn3xEBMftbfmKHaJMm0Eba/V0doebXxws/mH0iyNOs="
"digest": "Igz5GNhawpkzK4VW+fQaUfom4/Sy7yP0hyRyE8bYUoM="
}
}
}
Expand Down
Loading

0 comments on commit 0752e70

Please sign in to comment.