Commit Graph

13 Commits

Author SHA1 Message Date
Jon Cinque 65c3af3217
lending: Add overflow check in proptest (#1199)
This issue was discovered during CI:
https://github.com/solana-labs/solana-program-library/runs/1833196857

The approach is to do the same calc as `_liquidate_obligation` and make
sure that the `MockConverter` doesn't overflow `Decimal`.  This seemed
like a simpler approach than doing a complex local proptest constraint.

On top of that, it includes the proptest regression to run it on every
`cargo test`.
2021-02-08 14:35:55 +01:00
Trent Nelson 946c838441 Add *.so to ignore 2021-01-19 21:27:50 +00:00
Jon Cinque cc7e8e0d98
token-swap: Add proptests for decreasing curve value (#952)
* Add proptest-regressions to .gitignore, created from failed proptests

* Add proptests to ensure swapping maintains value

* Address review feedback

* Add doc to public test function
2020-12-17 20:09:58 +01:00
Jon Cinque b40e0dd3fd
token-swap: Add fuzzer for swap / withdraw / deposit (#875)
* token-swap: Add fuzzer for swap / withdraw / deposit

* Run cargo fmt

* Make end-to-end testing work

* Fix test failures

* Cleanup for review

* Remove Clone trait for Initialize

* Fix building fuzz targets

* Fix fuzz withdraw logic to avoid ZeroTradingTokens error

* Cargo fmt

* Clippy / fmt again

* Integrate fuzzer in main workspace to share clippy / fmt

* Fix clippy

* Switch to stable honggfuzz that could work with BPF

* Update to most recent honggfuzz

* Add build / run requirements

* Add fuzz CI and cleanup for honggfuzz

* Revert to using fuzz feature to integrate with workspace

* Make fuzz script executable

* Refactor and cleanup

* Add nightly run

* Fix workflow typo

* Add runtime for pull request fuzz workflow

* Fix unrelated new clippy errors
2020-11-30 13:01:31 +01:00
Michael Vines 901d43f965 Use cargo-test-bpf 2020-11-06 21:29:04 -08:00
Michael Vines 80e29ef6b9 Port SPL to solana-program and `cargo build-bpf` 2020-10-24 19:21:38 -07:00
Jack May 46f0b42873
Programs can be client dependencies (#181) 2020-07-31 16:35:49 -07:00
Dan Albert f166a9978c
Add package-lock.json (#156) 2020-07-24 17:09:15 -06:00
Jack May 271073e67b
Consolidate .gitignore (#80) 2020-07-06 21:38:18 -07:00
Jack May 9214d08be6
Add rustdocs (#39) 2020-06-17 11:25:19 -07:00
Jack May d4ad04b31f
Add vscode to .gitignore (#38) 2020-06-16 20:26:23 -07:00
Tyera Eulberg ff8b5ac158
Add utf8 memo program (#27)
* Initial memo commit

* Add program id

* Update CI

* Remove unneeded dependencies

* Try instead of map

* clippy --tests
2020-06-05 20:13:15 -06: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