Michael Vines
0bafe9891d
spl-token transfer now supports ALL keyword
2020-11-18 02:06:46 +00:00
Michael Vines
43d808c5fd
Clean up `spl-token accounts <MINT>` output
2020-11-18 02:05:52 +00:00
Jack May
cb61252b8b
Bump rbpf to v0.1.33, use semver ( #859 )
2020-11-17 15:49:07 -08:00
Jon Cinque
c677c58e09
Add JS test for creating accounts and swapping in one transaction ( #568 )
...
* Add test for doing all swap in one transaction
* Fix instruction to minimize signatures required
* Run prettier
2020-11-17 17:54:55 +01:00
Yuriy Savchenko
d62ddd2b94
Added stable curve invariant to the token swap smart contract ( #838 )
...
* Added stable curve invariant to the token swap smart contract
* Fixed formatting
* Added missing stable curve constraints
* Symbol renames to make math clearer
* Small refactoring according to PR comments, fixes for JS tests
2020-11-17 14:13:18 +01:00
dependabot[bot]
c18ea44a78
Bump @solana/web3.js from 0.87.0 to 0.87.1 in /token/js ( #854 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.87.0 to 0.87.1.
- [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.87.1 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-17 09:49:39 +00:00
Jack May
4056cb4c02
Remove entrypoint bpf cfg check ( #852 )
2020-11-17 00:52:21 -08:00
Paul
4394cb1ebb
[js-token-library] add freeze and thaw ix builder functions to module declarations ( #851 )
2020-11-16 18:49:15 +01:00
dependabot[bot]
90c0481051
Bump rollup from 2.33.1 to 2.33.2 in /token-swap/js ( #849 )
...
Bumps [rollup](https://github.com/rollup/rollup ) from 2.33.1 to 2.33.2.
- [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.33.1...v2.33.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-16 11:33:45 +00:00
dependabot[bot]
84aca40018
Bump flow-bin from 0.137.0 to 0.138.0 in /token-swap/js ( #848 )
...
Bumps [flow-bin](https://github.com/flowtype/flow-bin ) from 0.137.0 to 0.138.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases )
- [Commits](https://github.com/flowtype/flow-bin/commits )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-16 11:32:55 +00:00
Paul
2731e8e029
[js-token-library] fix createSetAuthorityIx module declarations ( #846 )
2020-11-16 18:12:40 +08:00
dependabot[bot]
74e92c8f0b
Bump flow-bin from 0.137.0 to 0.138.0 in /token/js ( #845 )
...
Bumps [flow-bin](https://github.com/flowtype/flow-bin ) from 0.137.0 to 0.138.0.
- [Release notes](https://github.com/flowtype/flow-bin/releases )
- [Commits](https://github.com/flowtype/flow-bin/commits )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-16 09:32:38 +00:00
Michael Vines
b5306b4652
Update id and version
2020-11-15 23:44:22 -08:00
Michael Vines
2aa5ee5192
Cargo.lock
2020-11-14 08:24:46 -08:00
Michael Vines
8b108326fb
Remove dead code
2020-11-14 08:24:46 -08:00
Tyera Eulberg
6ee1f09311
Use config commitment for balance checks ( #842 )
2020-11-14 01:24:13 -07:00
Michael Vines
c4ec3b3120
Feature Proposal program
2020-11-14 05:08:31 +00:00
dependabot[bot]
83096bc02a
Bump bs58 from 0.3.1 to 0.4.0
...
Bumps [bs58](https://github.com/mycorrhiza/bs58-rs ) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/mycorrhiza/bs58-rs/releases )
- [Commits](https://github.com/mycorrhiza/bs58-rs/compare/0.3.1...0.4.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2020-11-13 21:04:26 -08:00
Michael Vines
f4af9054a2
Update to Solana 1.4.8
2020-11-14 02:35:20 +00:00
Jon Cinque
b9fed1116b
stake-pool: Add end-to-end testing using ProgramTest ( #828 )
...
* WIP: stake-pool: Add end-to-end testing using ProgramTest
* Run cargo fmt
* Add deposit test and extra requirements
* Update Cargo.lock after rebuild
* Bring token program sdk version back to 1.4.7
2020-11-13 13:11:39 +01:00
Michael Vines
5030a87021
Upgrade to Solana 1.4.7
2020-11-12 11:05:20 -08:00
Yuriy Savchenko
b9c2bbc275
Added set-staking-auth and set-owner commands to stake pool CLI ( #827 )
...
* Added set-staking-auth and set-owner commands to stake pool CLI
* Error handling refactored, fixed new fee owner setting, fixed set owner arg group settings
* Added check for fee account mint to stake pool initialization and set owner methods
2020-11-12 16:44:08 +01:00
dependabot[bot]
39c574a25d
Bump @solana/web3.js from 0.86.4 to 0.87.0 in /token-swap/js ( #833 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.86.4 to 0.87.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.86.4...v0.87.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-12 11:32:07 +00:00
dependabot[bot]
3b4f73ac7a
Bump @solana/web3.js from 0.86.4 to 0.87.0 in /token-lending/js ( #832 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.86.4 to 0.87.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.86.4...v0.87.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-12 10:34:12 +00:00
Yutaro Mori
81a63712ac
Fix u64.fromBuffer return type to u64 ( #830 )
2020-11-12 10:40:46 +01:00
dependabot[bot]
24b4514905
Bump @solana/web3.js from 0.86.4 to 0.87.0 in /token/js ( #831 )
...
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js ) from 0.86.4 to 0.87.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases )
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.86.4...v0.87.0 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-12 09:33:55 +00:00
Jack May
487ad2d2d7
Update README.md
2020-11-11 08:06:36 -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
Jack May
b2535d5b81
Add example readmes ( #825 )
2020-11-11 09:27:12 +00:00
Jack May
686c12984b
Add c examples ( #823 )
2020-11-11 00:54:15 -08:00
Jack May
7d4e51399a
Add Rust examples ( #815 )
2020-11-11 00:01:10 -08:00
Yutaro Mori
9ddcd77f3e
Fix type definitions for TokenSwap class ( #809 )
2020-11-10 21:20:52 +01:00
Yuriy Savchenko
fec7794c22
Stake pool CLI added ( #806 )
...
* Implemented stake-pool CLI with create-pool, deposit, list and withdraw commands, fixed several bugs in underlying smart contract
* Several typos fixed, some error text clarifications.
* Fee parameter in stake pool creation changed into two: numarator and demoninator
* Refactoring to resolve pool request comments
* Added merge to stake_receiver account when claiming whole stake account
* Removed unused import
* Withdraw bump seed calculation fixed
2020-11-10 15:36:05 +01:00
dependabot[bot]
7249b4fa1e
Bump solana-cli-config from 1.4.5 to 1.4.6 ( #820 )
...
Bumps [solana-cli-config](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-10 12:31:19 +00:00
dependabot[bot]
8f19ff67d1
Bump @typescript-eslint/parser from 4.6.1 to 4.7.0 in /token-lending/js ( #816 )
...
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser ) from 4.6.1 to 4.7.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.7.0/packages/parser )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-10 10:53:34 +00:00
dependabot[bot]
1d9bff9a19
Bump @typescript-eslint/eslint-plugin in /token-lending/js ( #817 )
...
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin ) from 4.6.1 to 4.7.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.7.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-11-10 10:27:45 +00:00
Trent Nelson
d7eba3b877
Apply suggestions from code review
2020-11-09 22:33:07 -07:00
Trent Nelson
732975c9bc
Apply suggestions from code review
...
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-09 22:33:07 -07:00
Trent Nelson
9c136855a2
Apply suggestions from code review
...
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-09 22:33:07 -07:00
Trent Nelson
6de7f050a5
Docs: Add Token multisig examples
2020-11-09 22:33:07 -07:00
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