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

feat: add more details to the tx output #250

Open
aelesbao opened this issue Oct 10, 2023 · 0 comments
Open

feat: add more details to the tx output #250

aelesbao opened this issue Oct 10, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@aelesbao
Copy link
Member

Description

Currently, every transaction in the CLI outputs only the tx hash with a small amount of metadata regarding the execution. To improve the visibility of other details without requiring the user to visit an explorer, the CLI can enhance the output by displaying more information in the tx response.

Technical Details

Current output of the contracts execute command:

$ archway contracts execute increment --from deployer --args '{ "increment": {} }'
Executing contract increment
  Chain: constantine-3
  Signer: deployer

✅ Executed contract  increment-0.2.0
  Transaction: 632FCC96D8FCBDE2838DD301DEE38CF9DA8B593380FBD5E65B057D2907DC13C3

Expected output:

The view in the explorer should link to the first explorer's tx_page available in the chain registry file and displayed only in terminals with hyperlink support.

$ archway contracts execute increment --from deployer --args '{ "increment": {} }'
Executing contract increment
  Chain: constantine-3
  Signer: deployer

✅ Executed contract  increment-0.2.0

Transaction ([view in the explorer])
632FCC96D8FCBDE2838DD301DEE38CF9DA8B593380FBD5E65B057D2907DC13C3

Block:     32852                   Gas wanted: 210480
Timestamp: 2023-10-09T17:47:45Z    Gas used:  183893

Fee: 0,189432 ARCH (189432000000000000aarch)
@aelesbao aelesbao added the enhancement New feature or request label Oct 10, 2023
@aelesbao aelesbao added this to the v2.1.0 milestone Oct 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant