Commit Graph

751 Commits

Author SHA1 Message Date
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
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