solana-program-library/token-swap/program
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
..
inc Reorganize crates based on program 2020-08-08 15:25:47 -07:00
src Fix token-swap tests (#388) 2020-09-06 00:09:05 +02:00
Cargo.toml Bump solana crates to 1.3.8 2020-09-04 01:18:44 -06:00
Xargo.toml Reorganize crates based on program 2020-08-08 15:25:47 -07:00
cbindgen.toml Reorganize crates based on program 2020-08-08 15:25:47 -07:00
package-lock.json Reorganize crates based on program 2020-08-08 15:25:47 -07:00