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

Get Atomic Swap public key #20

Merged
merged 6 commits into from
May 2, 2019
Merged

Conversation

anastasiia-bilova
Copy link
Contributor

@anastasiia-bilova anastasiia-bilova commented Apr 18, 2019

Jira references

Description

Get the public key of the Atomic Swap command line interface's command implementation.

Arguments Type Required Description
node-url String No Node URL to apply a command to.

Example of the usage:

$ remme atomic-swap get-public-key --node-url=node-6-testnet.remme.io
{
    "result": {
        "public_key": "03738df3f4ac3621ba8e89413d3ff4ad036c3a0a4dbb164b695885aab6aab614ad"
    }
}

Implemented

— Command line interface's command.
— Service to get the public key of the atomic swap class.

References

@codecov-io
Copy link

codecov-io commented Apr 18, 2019

Codecov Report

Merging #20 into develop will increase coverage by 0.15%.
The diff coverage is 97.72%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop      #20      +/-   ##
===========================================
+ Coverage    96.41%   96.56%   +0.15%     
===========================================
  Files           20       24       +4     
  Lines          335      379      +44     
===========================================
+ Hits           323      366      +43     
- Misses          12       13       +1
Impacted Files Coverage Δ
cli/atomic_swap/service.py 100% <100%> (ø)
cli/atomic_swap/cli.py 100% <100%> (ø)
cli/entrypoint.py 100% <100%> (ø) ⬆️
cli/atomic_swap/forms.py 100% <100%> (ø)
cli/atomic_swap/interfaces.py 66.66% <66.66%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 079d447...aba10e4. Read the comment docs.

from cli.generic.forms.fields import NodeURLField


class GetPublicKeyForm(Schema):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetPublicKeyForm > GetAtomicSwapPublicKeyForm.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cli/constants.py Outdated
@@ -17,6 +17,7 @@
CLI_CONFIG_FILE_NAME = 'remme-core-cli'

NODE_IP_ADDRESS_FOR_TESTING = '159.89.104.9'

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@anastasiia-bilova anastasiia-bilova merged commit a0c768f into develop May 2, 2019
@delete-merged-branch delete-merged-branch bot deleted the get-swap-public-key branch May 2, 2019 07:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants