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

Add CLI Query Support for MetadataAddress in metadata module #142

Closed
4 tasks
iramiller opened this issue Mar 5, 2021 · 1 comment · Fixed by #146
Closed
4 tasks

Add CLI Query Support for MetadataAddress in metadata module #142

iramiller opened this issue Mar 5, 2021 · 1 comment · Fixed by #146
Assignees
Labels
CLI Command line interface feature metadata Metadata Module
Milestone

Comments

@iramiller
Copy link
Member

Summary

Implement an endpoint for displaying details of a given metadata address.

Problem Definition

A simple display endpoint for a given address will provide an important overview of the status of information stored on chain. When a valid address is provided the appropriate yaml representation of the object along with lists of its child values should be diplayed

Proposal

Implement a simple info query endpoint for the metadata module as follows:

%> provenanced q metadata info scope1qzxcpvj6czy5g354dews3nlruxjsahhnsp

Owners
  - tp1rr4d0eu62pgt4edw38d2ev27798pfhdhp5ttha [PARTY_TYPE_ORIGINATOR]
 
Value Owner
  - tp1pr93cqdh4kfnmrknhwa87a5qrwxw9k3dhkszp0

Data Access:
  - tp1rr4d0eu62pgt4edw38d2ev27798pfhdhp5ttha
 
Sessions:
 - io.p8e.contracts.origination.ETLRecordPropertyLoanContract
    tp1rr4d0eu62pgt4edw38d2ev27798pfhdhp5ttha [PARTY_TYPE_ORIGINATOR]
    conrtactspec1qwlqlc207r53ttlf0888hcjqgh8qd5w2q0"
    session1qyqqq2wf3c4yt4u447m8pw65qcd9s864kcxw6j4vnjksul24999x2jj0p7y 
    2021-03-03T00:00:00Z - version 4

Records:
 - record1q2xcpvj6czy5g354dews3nlruxjelpkssxyyclt9ngh74gx9ttgp27gt8kl
    
 - record1qxxcpvj6czy5g354dews3nlruxjuyhrm6nrrjsm84pp0vna9lnxpjewp6kf
 - 

NOTE: Output above is an approximation of what the yaml or json (as selected by command output preference) will look like.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@iramiller iramiller added CLI Command line interface feature metadata Metadata Module labels Mar 5, 2021
@iramiller iramiller added this to the 0.3.0 milestone Mar 5, 2021
@iramiller
Copy link
Member Author

Instead of calling this info get might be more inline with other commands

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Command line interface feature metadata Metadata Module
Projects
Development

Successfully merging a pull request may close this issue.

2 participants