Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pretty move run and move publish output #2355

Merged
merged 2 commits into from
Aug 5, 2024

Conversation

pause125
Copy link
Collaborator

@pause125 pause125 commented Aug 4, 2024

Summary

  1. Add object changes in move publish CLI output. Related: Improvement the move publish output #2270, [CLI] Improvement the move publish output #2238. Now move publish output is like the following:
Publish modules to address: rooch17xuf07d62j99qlf5lz2gxljt0puz9a8mef0srst942n5nw80zhssl0l08v(0xf1b897f9ba548a507d34f894837e4b787822f4fbca5f01c165aaa749b8ef15e1)
Execution info:
    status: Executed
    gas used: 1108806
    tx hash: 0x81f587d2073a1a65da9df8a74b6f28d8e2d7ad02a90a85041417c386cd568f59
    state root: 0x8ba6b3611c9b63400c6314012480fd1383e5eda51b12dfbaf69cf48bd52af283
    event root: 0x90b31cd6a66d009d4edaea5429822de6e454cab48f56352b9931bc25accf5ed9

New modules:
    None

Updated modules:
    0xf1b897f9ba548a507d34f894837e4b787822f4fbca5f01c165aaa749b8ef15e1::display

New objects:
    None
            
Modified objects:
    objectId: 0x0ab37084cb15b8a863253b0c5c555c877a6e5185e93c16b7ec2156b278f18fd1
    type    : 0x3::coin_store::CoinStore<0x3::gas_coin::GasCoin>

    objectId: 0x2214495c6abca5dd5a2bf0f2a28a74541ff10c89818a1244af24c4874325ebdb
    type    : 0x2::module_store::ModuleStore

    objectId: 0x2214495c6abca5dd5a2bf0f2a28a74541ff10c89818a1244af24c4874325ebdbf1b897f9ba548a507d34f894837e4b787822f4fbca5f01c165aaa749b8ef15e1
    type    : 0x2::module_store::Package

    objectId: 0x2214495c6abca5dd5a2bf0f2a28a74541ff10c89818a1244af24c4874325ebdbf1b897f9ba548a507d34f894837e4b787822f4fbca5f01c165aaa749b8ef15e1dee7dbf6e9e3e659e26a4574530e6cdf961c856c54552964c77d97ea1d18f6c1
    type    : 0x2::object::DynamicField<0x1::string::String, 0x2::move_module::MoveModule>

    objectId: 0x4e8d2c243339c6e02f8b7dd34436a1b1eb541b0fe4d938f845f4dbb9d9f218a2
    type    : 0x2::timestamp::Timestamp

    objectId: 0xb2f9b6403c1491e580775674386b27aacee1e8b7f4bd18d323d66af2ee7c54b7
    type    : 0x3::coin_store::CoinStore<0x3::gas_coin::GasCoin>

    objectId: 0xf1b897f9ba548a507d34f894837e4b787822f4fbca5f01c165aaa749b8ef15e1
    type    : 0x2::account::Account

Removed objects:
    None
  1. Pretty output of move run CLI. The output is like the following:
# rooch move run --function default::display::create_object --sender default --args 'string:test_object_4' --args 'address:default' --args 'string:descption_4'
Execution info:
    status: Executed
    gas used: 111733
    tx hash: 0xf1e0f050181e974820919f4fecb349dd1e5814264b2bdc33f9d47451add23495
    state root: 0x6b28f074f89d6c80ff8fe0a74726c7855660371221d0c4207d3b7371d5a8378c
    event root: 0xde72b0e132c830d911000597dc82ef6ca2ac73dd7df4936a7a80b212b017ed49

New objects:
    objectId: 0xd2b639dcf8010fc941fb99eb0d981a514cb5bf6593b7d642674384efa563b301
    type    : 0xf1b897f9ba548a507d34f894837e4b787822f4fbca5f01c165aaa749b8ef15e1::display::ObjectType
            
Modified objects:
    objectId: 0x0ab37084cb15b8a863253b0c5c555c877a6e5185e93c16b7ec2156b278f18fd1
    type    : 0x3::coin_store::CoinStore<0x3::gas_coin::GasCoin>

    objectId: 0x4e8d2c243339c6e02f8b7dd34436a1b1eb541b0fe4d938f845f4dbb9d9f218a2
    type    : 0x2::timestamp::Timestamp

    objectId: 0xb2f9b6403c1491e580775674386b27aacee1e8b7f4bd18d323d66af2ee7c54b7
    type    : 0x3::coin_store::CoinStore<0x3::gas_coin::GasCoin>

    objectId: 0xf1b897f9ba548a507d34f894837e4b787822f4fbca5f01c165aaa749b8ef15e1
    type    : 0x2::account::Account

Removed objects:
    None

Events:
    event handle id: 0x8e3089f2c059cc5377a1b6b7c3dcefba8a586697c35de27c2a4b68f81defb69c
    event seq      : 24
    event type     : 0x3::coin_store::WithdrawEvent

    event handle id: 0x6ab771425e05fad096ce70d6ca4903de7cca732ee4c9f6820eb215be288e98dd
    event seq      : 26
    event type     : 0x3::coin_store::DepositEvent

    event handle id: 0x168bc669609b306cb48715b8f514478465aaa4072bab0391b6c243b0ac3d59d7
    event seq      : 3
    event type     : 0xf1b897f9ba548a507d34f894837e4b787822f4fbca5f01c165aaa749b8ef15e1::display::NewObjectEvent

    event handle id: 0x8e3089f2c059cc5377a1b6b7c3dcefba8a586697c35de27c2a4b68f81defb69c
    event seq      : 25
    event type     : 0x3::coin_store::WithdrawEvent

    event handle id: 0x6ab771425e05fad096ce70d6ca4903de7cca732ee4c9f6820eb215be288e98dd
    event seq      : 27
    event type     : 0x3::coin_store::DepositEvent

Copy link

vercel bot commented Aug 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2024 3:51pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Aug 4, 2024 3:51pm

@jolestar jolestar merged commit 615f32b into rooch-network:main Aug 5, 2024
7 checks passed
@pause125 pause125 deleted the pretty-cli-output branch September 2, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants