-
Notifications
You must be signed in to change notification settings - Fork 0
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
Get list of the public keys by account address on which these keys depend #16
Get list of the public keys by account address on which these keys depend #16
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #16 +/- ##
===========================================
+ Coverage 95.03% 95.71% +0.68%
===========================================
Files 10 15 +5
Lines 161 210 +49
===========================================
+ Hits 153 201 +48
- Misses 8 9 +1
Continue to review full report at Codecov.
|
4624c3e
to
9b1c09d
Compare
…i into get-list-of-public-keys-by-account-address
…t-list-of-public-keys-by-account-address
9b1c09d
to
67514d1
Compare
14eb5f3
to
40b7c70
Compare
…t-list-of-public-keys-by-account-address
25eee14
to
3cf9c52
Compare
…t-list-of-public-keys-by-account-address
…t-list-of-public-keys-by-account-address
README.md
Outdated
@@ -139,6 +140,26 @@ $ remme account transfer-tokens \ | |||
} | |||
``` | |||
|
|||
### Public key | |||
|
|||
Get list of the public keys by account address — ``remme public-key get-list``: |
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.
Get list of the public keys ...
> Get a list of the addresses of the public keys...
.
Apply the same to the code and tests documentation.
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.
@dmytrostriletskyi, done.
README.md
Outdated
|
||
| Arguments | Type | Required | Description | | ||
| :-------: | :----: | :------: | ------------------------------------------ | | ||
| address | String | Yes | Address to get list of the public keys by. | |
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.
Apply the comment above to the argument description.
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.
@dmytrostriletskyi, done.
README.md
Outdated
@@ -174,7 +195,7 @@ $ docker exec -it remme-core-cli bash | |||
|
|||
And now being in the container, you can develop the project. For instance, run tests and linters: | |||
|
|||
```bash | |||
```bashpytest -vv tests/ |
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.
Revert this change, please.
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.
@dmytrostriletskyi, done.
cli/public_key/cli.py
Outdated
print_result, | ||
) | ||
|
||
loop = asyncio.get_event_loop() |
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.
You do not need it anymore here.
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.
@dmytrostriletskyi, done.
cli/public_key/cli.py
Outdated
address = arguments.get('address') | ||
node_url = arguments.get('node_url') | ||
|
||
remme = Remme(network_config={'node_address': str(node_url) + ':8080'}) |
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.
Follow this style, please.
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.
@dmytrostriletskyi, done.
cli/public_key/forms.py
Outdated
@@ -0,0 +1,18 @@ | |||
""" | |||
Provide forms for command line interface's account commands. |
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.
account
> public key
.
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.
@dmytrostriletskyi, done.
cli/public_key/service.py
Outdated
""" | ||
Get list of the public keys by account address. | ||
""" | ||
public_keys = loop.run_until_complete(self.service.public_key_storage.get_account_public_keys(address=address)) |
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.
Remember to handle Exception
and write tests for it.
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.
@dmytrostriletskyi, done.
4c5d483
to
51e381b
Compare
public_key_addresses = json.loads(result.output).get('result').get('public_key_addresses') | ||
|
||
assert PASSED_EXIT_FROM_COMMAND_CODE == result.exit_code | ||
assert isinstance(public_key_addresses, list) |
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.
Add checking that list is empty.
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.
@dmytrostriletskyi, done.
51e381b
to
3a6a41e
Compare
Jira references
Description
Get a list of the addresses of the public keys by its account address command line interface's command implementation.
Example of the usage:
Implemented
— Command line interface's command.
— Service to get the account public keys of the public key class.
References