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

refactor-prompt #805

Merged
merged 64 commits into from
Jan 10, 2019
Merged

refactor-prompt #805

merged 64 commits into from
Jan 10, 2019

Conversation

ixje
Copy link
Member

@ixje ixje commented Jan 9, 2019

This is a repost of #804 via my personal github repo. #804 seems to have build issues while this PR continuously builds fine.

What current issue(s) does this address, or what feature is it adding?
Address #623
Huge thanks @jseagrave21 and @LysanderGG

How did you solve this problem?
see #623

How did you make sure your solution works?
make test

Are there any special changes in the code that we should be aware of?
I've chosen to not include #731 at this time. Mostly because I want this hard work in the development branch such that people can test it for a couple of days before we do a new release. The module loading part can be addresses at a later point. For that I want to spent a little bit more time to see how we can also support targeted loading (meaning; load the custom cmd into a specific existing sub group)

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)

LysanderGG and others added 30 commits November 26, 2018 14:40
* WIP make prompt commands plugin based

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* Merge ixje:refactor-prompt

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* Handle help detection in prompt.py

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* Use CommandBase for subcommands to be able to have N levels of commands.

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* Move "create wallet" command into "wallet"

Signed-off-by: Guillaume George <lysandergc@gmail.com>
…andDesc.command as an id. (#725)

Signed-off-by: Guillaume George <lysandergc@gmail.com>
* Improve CommandBase.register_sub_command to use the subcommand's CommandDesc.command as an id.

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* Fix exception when a command was used without arguments (for example "wallet")

Signed-off-by: Guillaume George <lysandergc@gmail.com>
* Update description and clarify debug logs

* Make return's explicit, clarify multi-sig help message

* cleanup prompt

* remove colour from initial help, sort commands alphabetically, cleanup descriptions

* fix linting

* process feedback
* Improve CommandBase.register_sub_command to use the subcommand's CommandDesc.command as an id.

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* Fix CommandWalletCreateAddress missing parameter desc

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* Fix missing words for autocompletion

Signed-off-by: Guillaume George <lysandergc@gmail.com>
…eate_addr (#733)

* Add missing tests for wallet create, verbose and create_addr

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* fix reviews

Signed-off-by: Guillaume George <lysandergc@gmail.com>
This would lead to some problems when the blockchain is reset but the NodeLeader instance members are not.
Transactions were still considered as known.

Some members were not reset in NodeLeader.Setup()
Also removed unsued member NodeLeader.MissionsGlobal

Signed-off-by: Guillaume George <lysandergc@gmail.com>
Signed-off-by: Guillaume George <lysandergc@gmail.com>
…ython into refactor-prompt

* 'refactor-prompt' of https://github.com/CityOfZion/neo-python:
  [refactor-prompt] Implement CommandWalletClaimGas (#740)
  [refactor prompt] Add support for show method group (pt 2) (#741)
  remove deprecated migrate command (#748)
* Migrate command: wallet delete_addr

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* UserWallet.DeleteAddress now returns False on error + proper handling of invalid addresses in CommandWalletDeleteAddress

Signed-off-by: Guillaume George <lysandergc@gmail.com>
Signed-off-by: Guillaume George <lysandergc@gmail.com>
…ython into refactor-prompt

* 'refactor-prompt' of https://github.com/CityOfZion/neo-python:
  Migrate command: wallet alias (#753)
  [refactor-prompt] Migrate command: wallet delete_addr (#752)
  [refactor-prompt] Add wallet token base + delete (#757)
* remove deprecated migrate command

* Add wallet token send

* Update requirements and use isValidPublicAddress from new neo-python-core version

* - fix send token description
- process feedback

* fix doc string typo
* Add wallet token history

* process feedback

* fix broken test after base branch merge
* add wallet export commands

* Fix export nep2 to ask for passwords to prevent pw leaking to logs

* process feedback
* add import multsig address

* remove obsolete function
* migrate command: wallet unspent

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* wallet unspent - add tests

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* fix arguments names and missing doc

Signed-off-by: Guillaume George <lysandergc@gmail.com>

* Handle review: add feedback when there is no asset matching the arguments + use neocore.Utils.isValidPublicAddress

Signed-off-by: Guillaume George <lysandergc@gmail.com>
ixje and others added 21 commits January 3, 2019 15:07
* add debugstorage command (and fix auto save linting error)

* correct comments
* add sc deploy (previously known as; import contract)

* process feedback
* add sc invoke (previously known as testinvoke)

* process feedback
* remove password bypass

* remove unused import
* update global readme

* update docs

* process feedback

* update show contract output
* re-store theming support

* fix comment
* Update Send.py

* Update test_send_command.py

* rename test_send_command.py as test_send_commands.py
* Update prompt.py

- add CommandShow and CommandSearch to prompt

* Update prompt.py

revert changes

* Fix #800

- adds support for contracts not requiring params
…ython into refactor-prompt

* 'refactor-prompt' of https://github.com/CityOfZion/neo-python: (37 commits)
  fix calculation of change value when using alternating asset inputs (#803)
  [refactor-prompt] Fix #800 (#802)
  [refactor-prompt] Improve send & sendmany (third try) (#799)
  Fix send/sendmany default wallet source address for tx (#796)
  fix prompt printer for lists and other possible objects (#795)
  clarify insufficient funds error message due to not enough unspent outputs (#793)
  improve wallet usage help (#794)
  [refactor-prompt] restore theming support (#788)
  [refactor-prompt] update docs (#789)
  [refactor-prompt] enforce pw prompt send (#791)
  fix exception in help if command has no params (#792)
  add wallet password checking before exporting (#790)
  streamline parameter descriptions (#787)
  [refactor-prompt] add sc invoke (#786)
  [refactor-prompt] add sc deploy (#785)
  [refactor-prompt] add debugstorage command (#784)
  [refactor-prompt] cleanup 2 (#783)
  [refactor-prompt] add support for the sc group including build, build_run, and load_run (#779)
  split prompt wallet into multiple files (#782)
  Add wallet import contract_addr (#777)
  ...
@coveralls
Copy link

coveralls commented Jan 9, 2019

Coverage Status

Coverage increased (+3.06%) to 86.874% when pulling c313060 on ixje:refactor-prompt into c1c9868 on CityOfZion:development.

@ixje ixje changed the base branch from development to refactor-prompt January 9, 2019 14:00
@ixje ixje mentioned this pull request Jan 9, 2019
5 tasks
@ixje ixje changed the base branch from refactor-prompt to development January 9, 2019 14:52
@ixje ixje changed the title [dont merge] travis build test refactor-prompt Jan 10, 2019
@ixje ixje merged commit 75a5f74 into CityOfZion:development Jan 10, 2019
@jseagrave21
Copy link
Contributor

🎉

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