Commit Graph

7 Commits

Author SHA1 Message Date
Jon Cinque ac73bd2e73
Fix token-swap tests (#388)
* Fix local token-swap tests

* Change generation of program address to use a nonce
* Accept nonce properly in initialization
* Include nonce in TokenSwap structure
* Fixup serialization with new parameter (padding used for now)
* Update dependencies

Update toml / lock files

Fix token swap initialization end-to-end

Cleanup unit test to use `find_program_address`

Add / refactor tests

Most importantly, added a special test to make sure that
token_program_id is provided at the end of CPI instructions, since
unit testing did not pick up that problem, and it was tough to debug
during end-to-end testing

* Revert some testing changes for PR

* Update token-swap/program/src/processor.rs

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

* Integrate review comments

* Fmt and clippy

* Refactor for clippy

* Fmt again

* Fix npm lint error

* Clarify signers line as requested

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-09-06 00:09:05 +02:00
Michael Vines 48b11fc01c Move up to v1.3.1 2020-08-08 08:05:00 -07:00
Michael Vines d4e1c47f64 Reduce bpf-sdk downloads in CI 2020-08-08 08:05:00 -07:00
Jack May c7858471c2
Pin bpf-sdk version to v1.2.17 (#218) 2020-08-05 11:39:34 -07:00
Jack May 46f0b42873
Programs can be client dependencies (#181) 2020-07-31 16:35:49 -07:00
Jack May 437d2d1c8b
Bump to Solana v1.2.3 and Solana-web3.js v0.60.0 (#46) 2020-06-18 11:02:42 -07:00
Tyera Eulberg dfbfc9367b
Reorganize repository in preparation for more programs (#20)
* Initial reorg

* Update READMEs

* Update CI

* Add CI build stages
2020-06-05 12:34:17 -06:00