Tags: onurgozupek/sui
Tags
[JSONRPC] - Use a more structured dynamic field name instead of MoveV… …alue::to_string (MystenLabs#7318) Current implementation of RPC dynamic field query use the `MoveValue::to_string` as name, which is quite ugly and hard to construct on client side to be used in `sui_getDynamicFieldObject`. Example name struct in move: ``` struct Name has copy, drop, store { name_str: std::string::String } ``` `sui_getDynamicFields` response: ``` { "jsonrpc": "2.0", "result": { "data": [ { "name": "0xc03bf9390eb6849760890f4dabc53e64505c0159::object_basics::Name {name_str: 0x1::string::String {bytes: vector[84u8, 101u8, 115u8, 116u8, 32u8, 78u8, 97u8, 109u8, 101u8]}}", "type": "DynamicField", "objectType": "0xc03bf9390eb6849760890f4dabc53e64505c0159::object_basics::Object", "objectId": "0x3f8af3b8158af4b25d51c7d39c7c514cea94b1d0", "version": 10727, "digest": "AeSblVNBG3z6hTjwzwYE5rbUpEcjCEXzOUEt5rObkHs=" } ], "nextCursor": null }, "id": 1 } ``` This PR change the String name to `DynamicFieldName`, which is a struct of type and json value. ``` pub struct DynamicFieldName { pub type_: TypeTag, pub value: Value, } ``` The `name` field become more readable and easier to create on client side. ``` { "jsonrpc": "2.0", "result": { "data": [ { "name": { "type": "0x1a43c696e91e24e8128c6764e713d38d24ffe4e1::object_basics::Name", "value": { "name_str": "Test Name" } }, "type": "DynamicField", "objectType": "0x1a43c696e91e24e8128c6764e713d38d24ffe4e1::object_basics::Object", "objectId": "0x7fe687114a592a8ae5baecf5954a3d0d2a74c60b", "version": 5, "digest": "fOmZ+NrNl2BP5MT1aGJ+YUk1rpiAmF5Bg6qGGbcgaIw=" } ], "nextCursor": null }, "id": 1 } ``` Example response for primitive type name: ``` { "jsonrpc": "2.0", "result": { "data": [ { "name": { "type": "bool", "value": true }, "type": "DynamicField", "objectType": "0x1a43c696e91e24e8128c6764e713d38d24ffe4e1::object_basics::Object", "objectId": "0x33274b734d787c19fc19871fb7b8c51a048b58b0", "version": 8, "digest": "56q6L9uzK4OswbZ9VvQak4CdOrhwA5DiweXrcA44JWA=" } ], "nextCursor": null }, "id": 1 } ```
[explorer] - fix search icon styling (MystenLabs#8446) missed a `bottom-0` classname in my previous PR
move: consistent helpers in safe test (MystenLabs#8397)
Adding sui-test-validator to binaries build set when attaching to rel… …ease (MystenLabs#8391) ## Description Adding sui-test-validator to binaries build set when attaching to release ## Test Plan Ran the workflow from my branch: https://github.com/MystenLabs/sui/actions/runs/4237771677 https://github.com/MystenLabs/sui/releases/tag/devnet-0.25.0 <img width="1284" alt="Screenshot 2023-02-21 at 3 38 37 PM" src="https://user-images.githubusercontent.com/15659060/220483364-0d3c1cbf-d510-4558-9519-c8c6bf5aca30.png">
Upgrade docker images for Rust (MystenLabs#8498)
[4/x][programmable transactions] Added MoveCall execution (MystenLabs… …#8406) - Basically had to rewrite the Move Adapter. I wouldn't worry about the lack of code sharing as I think the current adapter can die once we migrate everything.
Upgrade Rust toolchain to 1.67.1 (MystenLabs#8448)
Create Sui move crate & quicker building binary 1/x (MystenLabs#8402)
PreviousNext