Trent Nelson
2316b6092e
chore: token - bump version to 3.1.0
2021-02-11 16:30:03 -07:00
Trent Nelson
188c03e9a1
chore: bump solana crates to 1.5.6
2021-02-11 16:30:03 -07:00
Jon Cinque
beb4aa7e7f
spl-math: Add separate package to test instruction usage ( #1205 )
...
* Refactor to use spl-math
* Run cargo fmt
* Fixup fuzz
* Add spl math program
* Add u64-based approximation
* Cleanup
* Downgrade solana sdk for CI
* Move U256 impl to stable curve
* Remove generic newtonian, use traits
* Cargo fmt
* Move math/program -> libraries/math
* Revert Cargo.lock changes
* Add u128 instruction count tests
* cargo fmt
2021-02-10 17:40:54 +01:00
Jon Cinque
b26491552f
token-swap: Add version to state ( #985 )
...
* Add version to token swap state
* Fix fuzz
* Cargo fmt
* Revert solana localnet version
* Update enum dispatch
2021-02-04 15:22:33 +01:00
dependabot[bot]
7b81c0d3c0
build(deps): bump solana-program from 1.5.0 to 1.5.1 ( #1025 )
...
Bumps [solana-program](https://github.com/solana-labs/solana ) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/solana-labs/solana/releases )
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md )
- [Commits](https://github.com/solana-labs/solana/compare/v1.5.0...v1.5.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 13:51:29 +00:00
Michael Vines
8ae34d2137
Update to Solana 1.5.0
2020-12-17 21:24:30 -08:00
Jon Cinque
8233d35fda
token-swap: Refactor math into sqrt function and add proptest ( #943 )
...
* Refactor into sqrt function and add proptest
* Run cargo fmt + clippy
* Address review feedback
2020-12-14 17:48:41 +01:00
Michael Vines
158fa1dea6
Upgrade to Solana v1.4.14
2020-12-03 05:39:55 +00:00
dependabot[bot]
6aa1d8cce1
Bump solana-program from 1.4.9 to 1.4.13 ( #916 )
...
Bumps [solana-program](https://github.com/solana-labs/solana ) from 1.4.9 to 1.4.13.
- [Release notes](https://github.com/solana-labs/solana/releases )
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md )
- [Commits](https://github.com/solana-labs/solana/compare/v1.4.9...v1.4.13 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-02 12:54:42 +00: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
Yuriy Savchenko
a0d0ae63ca
token-swap stable curve: 256-bit math added with tests ( #886 )
...
* Stable curve math rewritten to 256-bit, reference simulation added with test integration
* Formatting error fixed
* Clippy warnings fixed
* Fixed dependencies to remove crates not supportinf bpf
* Fixed indentations
* Fixed lint errors
* Fixed format warnings
* Fixing clippy lint errors
* U256 math and simulation library refactoring, checked math used everywhere, other small fixes
* Fixed conversion to optional u128
2020-11-25 21:19:25 +01:00
Michael Vines
c6a4ac9a82
Bump solana version to v1.4.9
2020-11-17 20:02:17 -08:00
Michael Vines
f4af9054a2
Update to Solana 1.4.8
2020-11-14 02:35:20 +00:00
Michael Vines
5030a87021
Upgrade to Solana 1.4.7
2020-11-12 11:05:20 -08:00
dependabot[bot]
b71456a8f1
Bump solana-program from 1.4.5 to 1.4.6 ( #826 )
...
Bumps [solana-program](https://github.com/solana-labs/solana ) from 1.4.5 to 1.4.6.
- [Release notes](https://github.com/solana-labs/solana/releases )
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md )
- [Commits](https://github.com/solana-labs/solana/compare/v1.4.5...v1.4.6 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-11 12:39:52 +00:00
Michael Vines
238eabc1d0
Bump solana version to v1.4.5
2020-11-06 21:29:04 -08:00
Michael Vines
89de77aad8
Bump spl-token to v3.0.0
2020-11-04 18:58:37 +00:00
Michael Vines
341149d0e9
Back to no-entrypoint feature name
2020-11-03 10:34:43 -08:00
Michael Vines
9f4e6d8beb
Update to solana v1.4.4
2020-11-01 20:48:15 -08:00
Jon Cinque
9cd1cb0900
Token-swap: Add "production mode" hard-coded fee constraints ( #731 )
...
* Add statically configured program constraints
* Allow missing host fee account
* Run cargo fmt + clippy
* Update JS for new host fee account param
* Fix merge issues
* Add host fee to curve, constrain on curves
* Cleanup static variable
* Add production test to CI
Integrate review feedback
* Run cargo fmt, clippy, prettier
* Re-run cargo fmt
* Fix test for eslint / prettier clash
2020-10-29 12:52:17 +01:00
Michael Vines
211f92e8c6
Groom Cargo.tomls
2020-10-25 07:52:33 +00:00
Michael Vines
80e29ef6b9
Port SPL to solana-program and `cargo build-bpf`
2020-10-24 19:21:38 -07:00
Justin Starry
9a8fa8e845
Update SDK version to v1.3.17 ( #649 )
...
* Update SDK version to v1.3.17
* Fix clients
2020-10-19 18:07:45 +08:00
Jack May
a7b121074d
Remove skip-no-mangle entirely
2020-10-07 09:13:59 -07:00
Jack May
c574597d71
solana sdk does not need skip-no-mangle
2020-10-06 11:03:14 -07:00
Jon Cinque
2b07fc1064
token-swap: Assess swap fee on input token ( #562 )
...
* token-swap: Assess swap fee on input token
* Update token-swap/program/src/curve.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Update token-swap/program/src/curve.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Fix new var name everywhere
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-10-02 22:47:39 +02:00
Jack May
08fe8307f0
Bump solana-sdk to v1.3.12 ( #484 )
2020-09-21 08:38:29 -07:00
dependabot[bot]
9d9545c98d
Bump solana-sdk from 1.3.9 to 1.3.11 ( #454 )
...
Bumps [solana-sdk](https://github.com/solana-labs/solana ) from 1.3.9 to 1.3.11.
- [Release notes](https://github.com/solana-labs/solana/releases )
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md )
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.9...v1.3.11 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-16 09:22:53 +00:00
Jon Cinque
759cbb3866
Pack instructions and state more efficiently ( #420 )
...
* Pack instructions and state more efficiently
* SwapInfo and SwapInstruction are more memory-efficient, following the
example from SPL Token
* Remove unnecessary helper structs to make instructions clearer
* Error -> SwapError
* Update JS tests to reflect the change
* Integrate review feedback
2020-09-11 18:19:06 +02:00
Justin Starry
708bb430ab
Bump dependencies from 1.3.8 to 1.3.9 ( #415 )
2020-09-10 17:25:43 +08:00
Trent Nelson
b15eb09cfb
Bump solana crates to 1.3.8
2020-09-04 01:18:44 -06:00
Michael Vines
9e23bc94cb
Update to Solana 1.3.6
2020-08-29 22:12:00 +00:00
Michael Vines
0a47a3127c
Move c header generation out of build.rs
2020-08-27 23:32:07 -07:00
dependabot[bot]
036cca36b6
Bump solana-sdk from 1.3.2 to 1.3.4
...
Bumps [solana-sdk](https://github.com/solana-labs/solana ) from 1.3.2 to 1.3.4.
- [Release notes](https://github.com/solana-labs/solana/releases )
- [Changelog](https://github.com/solana-labs/solana/blob/master/RELEASE.md )
- [Commits](https://github.com/solana-labs/solana/compare/v1.3.2...v1.3.4 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-08-25 09:05:29 -07:00
Michael Vines
26ab9bb26a
Reorganize crates based on program
2020-08-08 15:25:47 -07:00