-
Notifications
You must be signed in to change notification settings - Fork 296
Conversation
Signed-off-by: grimadas <[email protected]>
Signed-off-by: grimadas <[email protected]>
Signed-off-by: grimadas <[email protected]>
Signed-off-by: grimadas <[email protected]>
example/python/genesis_parser.py
Outdated
@@ -0,0 +1,107 @@ | |||
import sys | |||
|
|||
sys.path.insert(0, 'build/shared_model/bindings') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe you can get rid of bindings and use just python's proto files?
because of bindings this script can not be executed anywhere except current dir within iroha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok
Signed-off-by: grimadas <[email protected]>
example/python/.gitignore
Outdated
@@ -7,3 +7,4 @@ | |||
!permissions/* | |||
!prepare.sh | |||
!README.md | |||
!genesis_parser.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That probably should be a different directory. Scripts maybe
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, please mv to 'scripts' directory or create dir 'utils'.
Signed-off-by: grimadas <[email protected]>
* Add genesis block parser Signed-off-by: Bulat Nasrulin <[email protected]>
Description of the Change
This pr adds a genesis parser script. It will generate a nice md file with tables of accounts, permissions etc.
For example:
Domains
Assets
Roles
Accounts
Benefits
Such md file can be used in Iroha projects to manage accounts and permissions.
Possible Drawbacks
None