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 print for Cipher txes #48

Open
matevz opened this issue Mar 29, 2023 · 0 comments
Open

Pretty print for Cipher txes #48

matevz opened this issue Mar 29, 2023 · 0 comments
Labels
paratime ParaTime (runtime) related CLI issues ui Improve user experience

Comments

@matevz
Copy link
Member

matevz commented Mar 29, 2023

Currently, data field is Base64-encoded when showing:

$ oasis contracts instantiate 286 '{instantiate: {initial_counter: 43}}' --paratime cipher
Unlock your account.
? Passphrase: 
You are about to sign the following transaction:
Format: plain
Method: contracts.Instantiate
Body:
  {
    "code_id": 286,
    "upgrades_policy": {
      "address": "oasis1qrpaguksger8dqq8pn0vcnu8kr4m29ssvqk7kn0y"
    },
    "data": "oWtpbnN0YW50aWF0ZaFvaW5pdGlhbF9jb3VudGVyGCs=",
    "tokens": []
  }
Authorized signer(s):
  1. MJ2XCjkj132C9YWpDUSQFjkCTI8bSw8bi0w9EwwE1Bg= (ed25519)
     Nonce: 3
Fee:
  Amount: 0.001417535 TEST
  Gas limit: 283507
  (gas price: 0.000000005 TEST per gas unit)

Network:  testnet
ParaTime: cipher
Account:  test

Decode it and show it as JSON.

@matevz matevz added ui Improve user experience paratime ParaTime (runtime) related CLI issues labels Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
paratime ParaTime (runtime) related CLI issues ui Improve user experience
Projects
None yet
Development

No branches or pull requests

1 participant