Michael Vines
63f7d0ddda
Update README.md
2020-11-09 20:19:28 -08:00
Jon Cinque
75acddc100
Fix zero fee calculation ( #813 )
...
If a swap has a trading fee and a zero owner fee, when calculating the owner
fee to pool token conversion, the simulated trading fee will be non-zero
because we floor the trading fee to 1 token. If the input to trading
fee calculation is 0, then we will try to do `0 - 1` on an unsigned int,
which causes an underflow error. The fix is to simply return a 0 fee
for a 0 input.
2020-11-09 19:01:21 +01:00
dependabot[bot]
59b07f4896
Bump eslint from 7.12.1 to 7.13.0 in /token-swap/js ( #812 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.12.1 to 7.13.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.12.1...v7.13.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-09 11:30:47 +00:00
dependabot[bot]
5bdb3a9ea2
Bump eslint from 7.12.1 to 7.13.0 in /token-lending/js ( #811 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.12.1 to 7.13.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.12.1...v7.13.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-09 10:31:59 +00:00
dependabot[bot]
60b47c9f07
Bump eslint from 7.12.1 to 7.13.0 in /token/js ( #810 )
...
Bumps [eslint](https://github.com/eslint/eslint ) from 7.12.1 to 7.13.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.12.1...v7.13.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-09 09:32:40 +00:00
Michael Vines
e55a48bc7b
clippy
2020-11-06 21:29:04 -08:00
Michael Vines
19e7329db8
Cargo.lock
2020-11-06 21:29:04 -08:00
Michael Vines
eafa215c0d
Reduce cargo-build-test.sh
2020-11-06 21:29:04 -08:00
Michael Vines
99236f4311
Update README
2020-11-06 21:29:04 -08:00
Michael Vines
238eabc1d0
Bump solana version to v1.4.5
2020-11-06 21:29:04 -08:00
Michael Vines
e0a6292bd6
Employ test-bpf feature to make 'cargo test' pass
2020-11-06 21:29:04 -08:00
Michael Vines
4ab5fd3f23
Use banks_client.get_rent()
2020-11-06 21:29:04 -08:00
Michael Vines
901d43f965
Use cargo-test-bpf
2020-11-06 21:29:04 -08:00
Michael Vines
64823d9968
Cargo.lock
2020-11-05 17:27:59 -08:00
Michael Vines
0b1da24f61
ed
2020-11-05 17:27:59 -08:00
Justin Starry
1f810787d0
Fix broken stake-pool docs link and make readme's consistent ( #805 )
2020-11-06 09:15:27 +08:00
Michael Vines
edc67a2b72
Update doc links
2020-11-05 13:53:39 -08:00
Michael Vines
05bc5fb018
Bump version
2020-11-05 13:42:48 -08:00
Michael Vines
bd03af18b5
Exclude associated-token-account/program from workspace until cargo test works for it
2020-11-05 13:42:48 -08:00
Michael Vines
e5c2a4591f
Update program id
2020-11-05 13:42:48 -08:00
Michael Vines
c6689eab8c
Add associated-token-account documentation
2020-11-05 13:42:48 -08:00
Michael Vines
d624117afd
Limit docs.rs builds
2020-11-05 13:42:48 -08:00
Michael Vines
645a9874d3
Output tweaks
2020-11-05 13:42:48 -08:00
Michael Vines
414544042e
Add SPL Token wallet integration guide
2020-11-05 13:42:48 -08:00
dependabot[bot]
8ae0f927db
Bump @babel/node from 7.12.1 to 7.12.6 in /token-swap/js ( #804 )
...
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node ) from 7.12.1 to 7.12.6.
- [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.6/packages/babel-node )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-05 11:25:49 +00:00
dependabot[bot]
02f98c92a2
Bump @babel/node from 7.12.1 to 7.12.6 in /token/js ( #803 )
...
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node ) from 7.12.1 to 7.12.6.
- [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.6/packages/babel-node )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-05 09:29:06 +00:00
Michael Vines
8ec81b6405
Bump spl-token cli version
2020-11-04 20:21:20 +00:00
Michael Vines
74cf2050d7
Bump spl-memo to v2.0.0
2020-11-04 11:13:34 -08:00
Michael Vines
89de77aad8
Bump spl-token to v3.0.0
2020-11-04 18:58:37 +00:00
Michael Vines
8ea9b28edf
Add associated token account support
2020-11-04 09:13:21 -08:00
Michael Vines
1559cb5eda
Update program id
2020-11-04 09:13:21 -08:00
Michael Vines
5782cc2d44
the
2020-11-04 09:13:21 -08:00
Yuriy Savchenko
87129a93ac
Added positive tests in stake pool and fixed several bugs in instructions ( #788 )
...
* Added positive tests for withdraw, claim, set owner, set authority, several bugs fixed
* Fixed PR comments
* Fixed constant with leading zero
* Deposit tests refactoring
2020-11-04 13:34:25 +01:00
dependabot[bot]
097abc3249
Bump thiserror from 1.0.21 to 1.0.22 ( #800 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.21 to 1.0.22.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.21...1.0.22 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 12:34:02 +00:00
dependabot[bot]
d59133d888
Bump @babel/runtime from 7.12.1 to 7.12.5 in /token-swap/js ( #799 )
...
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime ) from 7.12.1 to 7.12.5.
- [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.5/packages/babel-runtime )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 11:27:54 +00:00
dependabot[bot]
6f86b3a025
Bump @solana/web3.js from 0.86.3 to 0.86.4 in /token-lending/js ( #798 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.86.3 to 0.86.4.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.86.3...v0.86.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 10:29:44 +00:00
dependabot[bot]
cf28e5dc24
Bump @typescript-eslint/parser from 4.6.0 to 4.6.1 in /token-lending/js ( #797 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.6.0 to 4.6.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.6.1/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 10:29:08 +00:00
dependabot[bot]
00a8ece984
Bump rollup-plugin-typescript2 in /token-lending/js ( #796 )
...
Bumps [rollup-plugin-typescript2](https://github.com/ezolenko/rollup-plugin-typescript2 ) from 0.28.0 to 0.29.0.
- [Release notes](https://github.com/ezolenko/rollup-plugin-typescript2/releases )
- [Commits](https://github.com/ezolenko/rollup-plugin-typescript2/compare/0.28.0...0.29.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 10:27:33 +00:00
dependabot[bot]
7fbfd02bbf
Bump @babel/runtime from 7.12.1 to 7.12.5 in /token/js ( #794 )
...
Bumps [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime ) from 7.12.1 to 7.12.5.
- [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.5/packages/babel-runtime )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 09:26:02 +00:00
dependabot[bot]
ac467ea5a3
Bump @solana/web3.js from 0.86.3 to 0.86.4 in /token/js ( #795 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.86.3 to 0.86.4.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.86.3...v0.86.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 09:25:56 +00:00
dependabot[bot]
b0834da178
Bump @solana/web3.js from 0.86.2 to 0.86.4 in /token-swap/js ( #792 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.86.2 to 0.86.4.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.86.2...v0.86.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-04 04:22:56 +00:00
Justin Starry
38bccbfc82
Simplify github action with scripts ( #769 )
...
* Simplify github action with scripts
* fix deps
* fix path
* feedback
* feedback
* shift some things
* clean up
* Update pull-request.yml
2020-11-04 10:50:07 +08:00
Michael Vines
e0e46e0385
Add better logging during program execution
2020-11-03 19:53:46 +00:00
Michael Vines
694a03efde
Drop compute unit logging
2020-11-03 19:53:46 +00:00
Michael Vines
a80f8e49f7
Clean up comments
2020-11-03 19:53:46 +00:00
Michael Vines
6bc5b89668
Cargo.lock
2020-11-03 10:34:43 -08:00
Michael Vines
341149d0e9
Back to no-entrypoint feature name
2020-11-03 10:34:43 -08:00
dependabot[bot]
0296ed776d
Bump tokio from 0.3.2 to 0.3.3 ( #785 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 0.3.2 to 0.3.3.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.3.2...tokio-0.3.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-03 12:25:20 +00:00
dependabot[bot]
12b2ade164
Bump eslint-config-prettier from 6.14.0 to 6.15.0 in /token-lending/js ( #783 )
...
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier ) from 6.14.0 to 6.15.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases )
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/master/CHANGELOG.md )
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.14.0...v6.15.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-03 10:21:24 +00:00
dependabot[bot]
ce37955ea2
Bump @solana/web3.js from 0.86.2 to 0.86.3 in /token-lending/js ( #781 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.86.2 to 0.86.3.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.86.2...v0.86.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-03 10:19:18 +00:00