Commit graph

6 commits

Author SHA1 Message Date
Kim Neunert
8fef82d8f4
Chore: upgrade cypress to 9.5.4 part2 (#1676)
* upgrade cypress to 9.5.4

* fix cache

* fix relative path

* update docker-image reference, reverse cache change
2022-04-26 10:27:46 +02:00
Kim Neunert
cb8968b5fb
Chore: Ci improvements (#103) (#1403)
* Ci improvements (#103)

* pin bitcoin to new v0.21.1 tag

* fix binary installation

* for binary install, pytest.ini is the file to use

* kick

* adjusted Dockerfile to have at least wget to download artifacts

* investigate test_hwibridge timing out

* restest with v0.20.1

* implements timeout, hope that was reason to hang

* remove livelogging again

* fix hanging test

* Enable bitcoind-log-output on demand

* Timeouts now raising SpecterErrors

* catch a bit more generic Exception

* increase timeout

* fix abandontx test

* simplified code

* increase timeout

* increased timeout also for pytest

* separate timeouts for liquid/bitcoin

* forget checkin

* increase timeout for bitcoin as well

* bugfix: node specific timeouts

* increase timeout for elm hotwallet

* Now timeouts for all occurences of broadcasting

* global vars done right

* Yet another ReadTimeoutError to take account for

* fix assertion

* fix not-defined issue

* proper status_code checking instead of error_code

* increase wait-time

* increase btc:mine wait to 15 s

Co-authored-by: Stepan Snigirev <snigirev.stepan@gmail.com>

* rollback to v0.20.1

* rollback - it is a src-install, stupid

* mixed up bitcoin and elements

* forgot to fix reference

* rollback test_abandon_purged_tx

* increase timeout to 30 s

* increase Liquid on cypress to 40s

Co-authored-by: Stepan Snigirev <snigirev.stepan@gmail.com>
2021-09-19 22:33:13 +02:00
Kim Neunert
e10cea0456
Feature: Api framework (#1232)
* Included API end points

Included 3 API end points:

###/api/specter ["GET"]
Basic Specter info from app.specter class

###/api/full_txlist/ ["GET"]
Full Transaction list for all wallets

###"/api/wallet_info/<wallet_alias>/ ["GET"]
More detailed wallet info and transactions from the app.specter.wallet_manager class

* Update src/cryptoadvance/specter/controller.py

Include `wallet.check_unused()`

Co-authored-by: benk10 <ben.kaufman10@gmail.com>

* API Update

Made a few changes:
- Flattened the wallet list to be similar to full transaction list
- included versioning on url `/v1alpha/`
- Included `wallet.utxo` data
- Improved `safe_serialize` for better json output

Pending Updates:
- Create a separate file for API (as a blueprint)
- Explore using Flask-restful for improved authentication (downside is that it is another dependency - not sure if already a requirement for specter)

* adding a rest-api

* Implemented API end points inside of example.py

* Merging with remote

* Fixed API.md

* Removing example-resources

* migrating to focal due to cryptography needs newer pip

* fix the image

* black and tidy up

* Deleted more useless stuff

* first take for psbt (still broken)

* get tests to work

* fix devices_signed undefined

* fix part2

* fix part 3

* fix part 4

* Rest Get-Requests for psbt working

* fix part 5

* extending psbt_creator with json format

* tests finished. bitcoind_regtest changed to scope session

* speed up tests

* fix tests

* tiny test for LiquidRpc, probes improvements

* try fixing testing-infra

* kick

* finally fix infra, hopefully

* removing assertion

* refactoring and fixing API

* fix the rest-tests

* fix last liquid failing test

* polishing: error_handling via decorator

* split-up docs

* fix requirements.in

* polishing REST-API

* optimize startup for internal_nodes

* Update src/cryptoadvance/specter/internal_node.py

Co-authored-by: benk10 <ben.kaufman10@gmail.com>

Co-authored-by: Alpha Zeta <40473443+pxsocs@users.noreply.github.com>
Co-authored-by: benk10 <ben.kaufman10@gmail.com>
Co-authored-by: Alpha Zeta <alphazeta@protonmail.com>
Co-authored-by: Stepan Snigirev <snigirev.stepan@gmail.com>
2021-07-08 13:10:14 -05:00
benk10
19d940dd04
Merge in Liquid branch (#1174) 2021-05-20 18:26:10 +03:00
benk10
05115660e1
Refactor setup wizard (#1120)
* Refactor setup wizard

* Add cypress tests for setup of bitcoind and tor

* Remove old setup wizard UI

* Update spec_setup_wizard.js

* Update spec_setup_wizard.js

* Update .cirrus.yml

* Update .cirrus.yml

* Update .cirrus.yml

* Update .cirrus.yml

* fix libevent-2.1.so.7: cannot open shared object file

* hack in Dockerfile and screenshots/videos

* Update spec_setup_tor.js

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update setup.py

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update src/cryptoadvance/specter/server_endpoints/setup.py

Co-authored-by: Kim Neunert <kneunert@gmail.com>

* Update setup.py

* Delete data folder if existing

* Stage management and bug fixes

* Fix test

* Update spec_setup_wizard.js

Co-authored-by: k9ert <k9ert@gmx.de>
Co-authored-by: Kim Neunert <kneunert@gmail.com>
2021-04-23 23:08:58 +02:00
Kim Neunert
149b420e2e
Replace Travis with Cirrus
* initial cirrus config

* cirrus

* f*ck caching

* images and deleting travis

* check

* bugfix weird ci-issue (directory exists)

* kick

* revert

* kick

* fix

Co-authored-by: benk10 <ben.kaufman10@gmail.com>
2021-04-15 11:04:47 +02:00