dependabot[bot]
d514536971
Bump @babel/core from 7.12.3 to 7.12.10 in /token/js ( #938 )
...
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core ) from 7.12.3 to 7.12.10.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.12.10/packages/babel-core )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 17:43:50 +08:00
dependabot[bot]
3a4f9ca655
Bump cbindgen from 0.15.0 to 0.16.0 ( #1007 )
...
Bumps [cbindgen](https://github.com/eqrion/cbindgen ) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/eqrion/cbindgen/releases )
- [Changelog](https://github.com/eqrion/cbindgen/blob/master/CHANGES )
- [Commits](https://github.com/eqrion/cbindgen/compare/v0.15.0...v0.16.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 02:48:05 +00:00
dependabot[bot]
489051c201
Bump serde_yaml from 0.8.13 to 0.8.14 ( #1006 )
...
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.8.13 to 0.8.14.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.8.13...0.8.14 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 02:09:23 +00:00
dependabot[bot]
c64d43180a
Bump serde_json from 1.0.59 to 1.0.61 ( #983 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.59 to 1.0.61.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.59...v1.0.61 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 01:33:47 +00:00
dependabot[bot]
1ba4d8f9c4
Bump futures from 0.3.5 to 0.3.8 ( #850 )
...
Bumps [futures](https://github.com/rust-lang/futures-rs ) from 0.3.5 to 0.3.8.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.5...0.3.8 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 08:57:25 +08:00
dependabot[bot]
f281424518
Bump solana_rbpf from 0.1.34 to 0.2.2 ( #942 )
...
Bumps [solana_rbpf](https://github.com/solana-labs/rbpf ) from 0.1.34 to 0.2.2.
- [Release notes](https://github.com/solana-labs/rbpf/releases )
- [Commits](https://github.com/solana-labs/rbpf/compare/v0.1.34...v0.2.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 08:56:10 +08:00
dependabot[bot]
dfb616b8b1
Bump eslint from 7.13.0 to 7.16.0 in /token-swap/js ( #963 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.13.0 to 7.16.0.
- [Release notes](https://github.com/eslint/eslint/releases )
- [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md )
- [Commits](https://github.com/eslint/eslint/compare/v7.13.0...v7.16.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 08:55:25 +08:00
dependabot[bot]
11930dd0a6
Bump @types/eslint from 7.2.5 to 7.2.6 in /token-lending/js ( #924 )
...
Bumps [@types/eslint](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/eslint ) from 7.2.5 to 7.2.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/eslint )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-04 08:55:04 +08:00
nonolerobotlunaire
5efc4c7f3b
Delete package-lock.json ( #880 )
...
NPM package-lock file not needed.
2021-01-04 08:53:09 +08:00
dependabot[bot]
f568413503
Bump @types/node from 14.14.16 to 14.14.17 in /token-lending/js ( #1001 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.16 to 14.14.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-31 10:38:56 +00:00
dependabot[bot]
123a3dc1e4
Bump @typescript-eslint/eslint-plugin in /token-lending/js ( #984 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.11.0 to 4.11.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.1/packages/eslint-plugin )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-30 10:42:39 +00:00
dependabot[bot]
24d49c2589
Bump @typescript-eslint/parser in /token-lending/js ( #982 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.11.0 to 4.11.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.1/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-29 10:21:28 +00:00
Justin Starry
b9aa9d0be8
Finish renaming x2 instructions to xChecked ( #981 )
2020-12-29 17:09:26 +08:00
Jon Cinque
d14e403599
lending: Add test to generate and optionally dump genesis accounts ( #967 )
...
* Automate primordial accounts
* Add genesis account dumping as test
* Add test-dump-genesis-accounts feature flag to create state
* Run cargo fmt
* Delete gitignore
* Add test-bpf feature to genesis test
Co-authored-by: Justin Starry <justin@solana.com>
2020-12-28 19:15:50 +01:00
dependabot[bot]
06a4d8810a
Bump @types/node from 14.14.10 to 14.14.16 in /token-lending/js ( #980 )
...
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node ) from 14.14.10 to 14.14.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Justin Starry <justin@solana.com>
2020-12-28 09:14:53 +00:00
dependabot[bot]
596700b6b1
Bump @types/prettier from 2.1.5 to 2.1.6 in /token-lending/js ( #979 )
...
Bumps [@types/prettier](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/prettier ) from 2.1.5 to 2.1.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/prettier )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 13:14:56 +00:00
dependabot[bot]
a791112fb9
Bump typescript from 4.1.2 to 4.1.3 in /token-lending/js ( #978 )
...
Bumps [typescript](https://github.com/Microsoft/TypeScript ) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases )
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.1.2...v4.1.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 12:54:02 +00:00
dependabot[bot]
f3e5ce335d
Bump rollup from 2.34.1 to 2.35.1 in /token-lending/js ( #977 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.34.1 to 2.35.1.
- [Release notes](https://github.com/rollup/rollup/releases )
- [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rollup/rollup/compare/v2.34.1...v2.35.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 12:34:44 +00:00
dependabot[bot]
b50ef23133
Bump eslint-plugin-prettier from 3.2.0 to 3.3.0 in /token-lending/js ( #976 )
...
Bumps [eslint-plugin-prettier](https://github.com/prettier/eslint-plugin-prettier ) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/prettier/eslint-plugin-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-plugin-prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-plugin-prettier/compare/v3.2.0...v3.3.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 12:15:19 +00:00
dependabot[bot]
682916b99c
Bump @typescript-eslint/eslint-plugin in /token-lending/js ( #975 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.9.0 to 4.11.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.0/packages/eslint-plugin )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 11:57:30 +00:00
dependabot[bot]
011e5fd8e4
Bump eslint-config-prettier from 6.15.0 to 7.1.0 in /token-lending/js ( #974 )
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 6.15.0 to 7.1.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.15.0...v7.1.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 11:38:12 +00:00
dependabot[bot]
57ee097bee
Bump @typescript-eslint/parser from 4.7.0 to 4.11.0 in /token-lending/js ( #973 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.7.0 to 4.11.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases )
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md )
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.0/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 11:19:56 +00:00
dependabot[bot]
bc67f527b5
Bump @types/mz from 2.7.2 to 2.7.3 in /token-lending/js ( #971 )
...
Bumps [@types/mz](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mz ) from 2.7.2 to 2.7.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mz )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 11:01:01 +00:00
dependabot[bot]
11928f02db
Bump @solana/web3.js from 0.87.0 to 0.88.0 in /token-swap/js ( #970 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.87.0 to 0.88.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.87.0...v0.88.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 10:45:08 +00:00
dependabot[bot]
67b2b59729
Bump ts-node from 9.0.0 to 9.1.1 in /token-lending/js ( #969 )
...
Bumps [ts-node](https://github.com/TypeStrong/ts-node ) from 9.0.0 to 9.1.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases )
- [Commits](https://github.com/TypeStrong/ts-node/compare/v9.0.0...v9.1.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 10:42:24 +00:00
dependabot[bot]
5a098026ac
Bump @solana/web3.js from 0.87.0 to 0.88.0 in /token-lending/js ( #968 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.87.0 to 0.88.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.87.0...v0.88.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-25 10:23:52 +00:00
Jon Cinque
95ad894c25
Print fuzz file content on failure for local repro ( #964 )
2020-12-21 18:55:47 +01:00
Justin Starry
891b6794f3
Introduce SPL Token Lending ( #696 )
...
* Add spl-token-lending
* lending-client
* cargo clippy
* Limit bpf tests
* Enable lending bpf tests
* Remove obligation signer requirement
* Fix token lending js cli test
* Fix
2020-12-19 08:17:07 +08:00
Jon Cinque
9e7e63f405
token-swap: Add new instructions to fuzzing ( #961 )
2020-12-18 16:35:17 +01:00
Jon Cinque
942bf77c90
token-swap: Add proptest for deposit draining ( #959 )
...
* Add deposit drain proptest
* Add special logic for constant price curve normalized value when close to u128
* Cargo fmt
* Fix bpf build
2020-12-18 13:32:34 +01:00
Michael Vines
d0d2a22545
Disable tests that link directly with the BPF VM.
2020-12-17 21:24:30 -08:00
Michael Vines
829b51c9f4
Update to Rust 1.48.0
2020-12-17 21:24:30 -08:00
Michael Vines
8ae34d2137
Update to Solana 1.5.0
2020-12-17 21:24:30 -08:00
Michael Vines
da98fc691f
Port token js tests from solana-localnet to solana-test-validator
2020-12-17 21:24:30 -08:00
Jon Cinque
2158214c84
token-swap: Add fuzz check for pool token value ( #958 )
...
* Add extra check on instruction fuzz
* Refactor division
* Fix tests from fixed deposit math
* Fixup comments and cleanup fuzz
* Run fmt
* Address review feedback
* Fix JS test
2020-12-17 21:13:48 +01: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
Trent Nelson
7e5ef20c44
Bump token-cli to v2.0.6
2020-12-16 22:45:52 +00:00
Trent Nelson
9eb524feae
Bump token to v3.0.1
2020-12-16 22:45:52 +00:00
Trent Nelson
775700952c
Bump memo to v2.0.1
2020-12-16 22:45:52 +00:00
Trent Nelson
3f84cc99d0
Bump ATA to v1.0.2
2020-12-16 22:45:52 +00:00
Trent Nelson
603e3517f8
Bump {ata,memo,token-{program,cli}} to solana v1.4.17
...
To pick up cargo audit fixes for monorepo
2020-12-16 22:45:52 +00:00
Trent Nelson
096d2ec5e2
Bump CI solana CLI version to v1.4.16
...
fixes criterion setup issue
2020-12-16 22:13:01 +00:00
Jon Cinque
d46f010195
token-swap: Add proptests for single token conversion ( #950 )
...
* Add proptests for single token conversion
* Update token-swap/program/src/curve/calculator.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Update token-swap/program/src/curve/calculator.rs
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
* Revert change from fuzzing
* Reduce the constant price b->a test range
* Use constant for basis points guarantee
* Address review feedback
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-12-16 18:30:28 +01:00
Jon Cinque
ec2cd04c82
Add proptest for stable swap intead of all numbers ( #944 )
2020-12-16 10:19:08 +01:00
Jon Cinque
7190672a0f
token-swap: Add instructions to deposit / withdraw one token ( #937 )
...
* Add instructions to deposit / withdraw one token
* Run cargo fmt
* Fix clippy issues
* Add JS interface
* Add tests for new instructions
* Run prettier
* Rename deposit and withdraw
* Rename withdraw -> withdraw all in program
* Rename single token instructions
2020-12-16 10:02:27 +01:00
Michael Vines
020b13d80c
Fix coverage on macOS
2020-12-14 12:07:16 -08:00
Jon Cinque
f8ba091a36
Fix bpf build, need to fully reference u128::MAX ( #946 )
2020-12-14 18:06:38 +01: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
Jon Cinque
55deb6c1af
token-swap: Constant price curve ( #936 )
...
* Update constant price curve conversion to/from pool tokens
* Add test for pool token conversion
* Fix tests
* run cargo fmt
* Assess fee on half source amount for conversion
2020-12-11 10:27:28 +01:00
Jon Cinque
087ae2e242
token-swap: Add offset curve and math ( #935 )
...
* Add offset curve
* Fix for math
* Add PreciseNumber
* Use Balancer formulation for trading token -> pool token conversion
* Add round-trip conversion testing
* Add offset curve to JS
* Run cargo fmt
* Update JS test numbers for new calcs
* Integrate review feedback
* Allow for withdrawals when one side is 0
* Run cargo fmt
* Disallow deposits for offset curve
* Run cargo fmt
* Allow for withdrawals through 0
2020-12-10 18:31:21 +01:00