Commit Graph

11 Commits

Author SHA1 Message Date
Kevin Heavey 954732976d
Add async support (#82)
* add async utils and connection

* refactor market.py before adding async

* add async open orders account

* add async_market

* add type hint

* replace pytest-tornasync with pytest-asyncio

* add async tests

* add async tests

* linting

* add async exmplae to README

* fix unit test selection

* bump minor version number

* chmod

* fix keygen error when key already exists

* use --cov-append

* fix coverage for multi test

* fix typo

Co-authored-by: kevinheavey <kevinheavey123@gmail.com>
2021-08-12 20:36:28 +01:00
Leonard G dad9a8e075
Support Serum v3. (#65)
Added support for DEX v3.
2021-03-01 17:49:04 +08:00
Leonard G ca281af3f1
Upgraded to v2 layout. (#43)
Upgraded Market and OpenOrderAccount to v2 layout.
2020-09-30 10:05:07 +08:00
Leonard G 34d7401d2c
Added SOL wrapping and cancel order by client id. (#40)
Added SOL wrapping and cancel_order_by_client_id.
2020-09-24 23:11:00 +08:00
Michael Huang a6c0f31f05
Set up code coverage (#38)
* Setup code coverage

* Update main.yml

* Use codecov.yml, add badges and clean up scripts

* Add pytest-cov to dev deps
2020-09-19 19:09:40 -05:00
Leonard G e7406f8c7d
[MINOR] Updated README. (#35)
Updated README to include the instruction to start Serum DEX in docker and also mention the source of truth for the market addresses.
2020-09-17 15:30:14 +08:00
Leonard G 969c14f3e1
Added match and cancel order to market class.
Added the following:

- place order API
- cancel order API
- integration tests for existing functionalities
- split the run_int-test script into several files so that we can just start the docker image without running the integration tests
- fix the issue when the test fails but the build is still red.
2020-09-15 11:52:19 +08:00
Michael Huang 47b298e46d
Remove serum-dex dependency from integration tests (#30)
* Update integration script

* Remove serum dex dependency in integration workflow

* Udpate script and workflow
2020-09-13 21:49:18 -05:00
Michael Huang 2b9698c50e
Use dex binary (#29)
* Download dex binary

* Remove dex build from workflow
2020-09-13 20:36:55 -05:00
Michael Huang 43cfe1be57
Refactor bootstrapped fixtures (#28)
* Add wallet fixture

* Make format

* Extra verbose logging for int tests

* Update make scripts

* Refactor bootstrapped fixtures
2020-09-13 16:30:57 -05:00
Michael Huang 1cc4b7b052
Set up integration tests and workflow (#27)
* Set up integration workflow

* Add rust toolchain and cargo to workflow

* Add run_int_tests script

* Remove install cargo

* Fix script

* Install libudev-dev in workflow

* Update makefile

* Fix work flow

* Add integration tests

* Update scripts

* Update script

* Update script

* Run int tests script with sudo

* Move int tests back to last workflow item

* Update README and try fix

* Set url to localhost:8899

* Add python and pipenv set up to integratino workflow

* Install pytest
2020-09-12 19:56:43 -05:00