Skip to content
This repository has been archived by the owner on Nov 15, 2021. It is now read-only.

Improve parse_and_sign #716

Open
wants to merge 77 commits into
base: development
Choose a base branch
from

Conversation

jseagrave21
Copy link
Contributor

@jseagrave21 jseagrave21 commented Nov 10, 2018

What current issue(s) does this address, or what feature is it adding?

  • Improves parse_and_sign functionality

  • Add test coverage

  • This PR verifies that Cannot sign multisig tx #697 is resolved.

  • Improves the instructions for updating test fixtures

NOTE: Required an update to the test fixtures:

-updated fixtures-
notif_fixtures_v9.tar.gz
fixtures_v9.tar.gz

How did you solve this problem?
Trial and Error. Special thanks to @dauTT and @ixje for helping me through.

How did you make sure your solution works?
Unittest
NOTE: Due to permission errors I was not able to run make test so I am not sure how the changes in the fixtures (mainly the small advancement in height) has affected other tests. I was thinking it might work after the fixtures are uploaded to AWS.

-updated-

  • make test works athough neo-boa will need to be updated.

Are there any special changes in the code that we should be aware of?
Updated the unittest fixtures

Please check the following, if applicable:

  • Did you add any tests?
  • Did you run make lint?
  • Did you run make test?
  • Are you making a PR to a feature branch or development rather than master?
  • Did you add an entry to CHANGELOG.rst? (if not, please do)

jseagrave21 and others added 26 commits October 9, 2018 20:38
Merge CoZ Development into jseagrave21 Development
Merge CoZ Development into jseagrave21 Development
Merge CoZ Development into jseagrave21 Development
* Update ExtendedJsonRpcApi.py

- add fix provided by @localhuman so original methods are returned as well as extended methods
…yOfZion#661)

* Add the option -u (unittest-net) to prompt.py

* Add unittest guildeline and add the smart contract source codes (UnitTest-SM.zip) to the fixtures package
for compatibility
* Fix ExtendedJsonRpcApi (CityOfZion#662)

* Update ExtendedJsonRpcApi.py

- add fix provided by @localhuman so original methods are returned as well as extended methods

* Mute expected test stacktrace and clearly identify why an exception is thrown. (CityOfZion#663)

* Add guideline for adding tests to the neo-privnet-unittest image (CityOfZion#661)

* Add the option -u (unittest-net) to prompt.py

* Add unittest guildeline and add the smart contract source codes (UnitTest-SM.zip) to the fixtures package

* Add raw transaction building examples (CityOfZion#665)

* Update neo-boa version to fix core building test
Merge CoZ Development into jseagrave21 Development
Merge CoZ Development into jseagrave21 Development
Merge CoZ Development into jseagrave21 Development
Merge CoZ Development into jseagrave21 development
Merge CoZ development into jseagrave21 development
- add tests for "showallaccounts" and "showallaccountstates"
Merge neo-python development into jseagrave21 development
Merge neo-python development into jseagrave21 development
- remove unnecessary logic
- add tests for `ImportMultiSigContractAddr`
- update logic so it is consistent with previous.
- return `tx` on successful relay
- add tests for `parse_and_sign`
- update instructions to match reality
- update fixture files
neo/Prompt/Commands/LoadSmartContract.py Outdated Show resolved Hide resolved
neo/Prompt/Commands/Send.py Outdated Show resolved Hide resolved
- fix return type difference
- add logic to catch if `m` != len(publicKeys)
- add a test if minimum # of signatures required != len(publicKeys)
- add the ability to input a from-addr for TestBuild (required for neo-boa)
for compatibility
Add GET & OPTIONS request functionality to JSON-RPC servers (CityOfZion#712)
@coveralls
Copy link

coveralls commented Nov 20, 2018

Coverage Status

Coverage increased (+0.6%) to 86.886% when pulling da8cf8d on jseagrave21:parse_and_sign into 347f648 on CityOfZion:development.

@jseagrave21
Copy link
Contributor Author

jseagrave21 commented Nov 20, 2018

@localhuman @ixje This PR is ready for your review please note that the change here https://github.com/CityOfZion/neo-python/pull/716/files#diff-354f30a63fb0907d4ad57269548329e3R23 was implemented to show neo-boa successfully pass make test with the current build. I will revert this change as soon as you have reviewed the PR and told me to.

Merge neo-python development into jseagrave21 development
- update to match CityOfZion#730
for compatibility
Merge neo-python development into jseagrave21 parse_and_sign
- restore required logic (not needed in `refactored-prompt`)
- make logic cohesive
@jseagrave21
Copy link
Contributor Author

I am planning on using these tests as the basis for the refactored tests for parse_and_sign; mentioned here: #726 (comment)

Merge CoZ development into jseagrave21 development
Gracefully handle NEP-5 balance query failures (CityOfZion#744)
@jseagrave21 jseagrave21 mentioned this pull request Jan 5, 2019
5 tasks
@jseagrave21 jseagrave21 changed the title Improve parse_and_sign and ImportMultiSigContractAddr Improve parse_and_sign Jan 19, 2019
@jseagrave21
Copy link
Contributor Author

jseagrave21 commented Jan 19, 2019

@metachris @localhuman please review this PR. I just updated it and it is working as intended. Please note I have edited .travis.yml to look at my neo-boa patch-1 to show that the build is successful. Upon merging of my neo-boa PR, I will update .travis.yml to its original state.

This PR is necessary for establishing the new test fixtures so I can test the functionality I am working on for glaiming GAS from multisig addresses as mentioned by @ThomasLobker in # _neopython in Slack.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants