Commit Graph

727 Commits

Author SHA1 Message Date
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
dependabot[bot] 47f92d9045
Bump @typescript-eslint/eslint-plugin in /token-lending/js (#782)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) 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/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.6.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-11-03 10:18:35 +00:00
dependabot[bot] 26f4fa9333
Bump @solana/web3.js from 0.86.2 to 0.86.3 in /token/js (#780)
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 09:18:06 +00:00
Michael Vines f2da427631 Revert "Adapt to https://github.com/solana-labs/solana/pull/13355"
This reverts commit 9a383e24a2792e4ae04a470a9c94a29e518f8945.
2020-11-03 04:13:36 +00:00
Michael Vines 20551f9fbc Adapt to https://github.com/solana-labs/solana/pull/13355 2020-11-03 04:13:36 +00:00
Michael Vines 4da9cb3631 Add associated-token-account program 2020-11-03 04:13:36 +00:00
Michael Vines b68163ff23 Patch solana-program-test 2020-11-03 04:13:36 +00:00
Yuriy Savchenko 480f6604b7
Added missing accounts to the interface to call stake account program (#763)
* Interface accounts added as read-only, fixed mint authority on deposit, fixed stake pool stake deserializing

* Unit test refactoring, added success tests for deposit, updated stake account program id

* Warnings fixed

* Removed random key generation, used Pubkey::new_unique instead

* Imports optimization

* Unit test architecture updated to remove separate invoke_signed declarations

* Added missing accounts (sysvar clock and stake account program id) to calls to stake account program

* Fixed formatting

* Fixed stake pool deposit unit test

* Temporarily removed stake-pool cli from main workspace

* Fixed warning in token program

* Fixed warning in token program v3

* Fixed warnings in token swap program

* Fixed warning in token cli

* Sysvar and program id params reordered
2020-11-02 22:03:54 +01:00
Jon Cinque 7aa82424ba
Add more checks to mergify due to GitHub Actions migration (#777)
* Add more checks to mergify

* Add "rollup" GitHub action

* Add "step" to rollup action

* Update mergify for new rollup step

* Update rollup step name to "all_github_action_checks"
2020-11-02 19:17:00 +01:00
Jon Cinque 0ca46c6220
Revert solana_rbpf to 0.1.32 to fix CI (#776) 2020-11-02 16:39:20 +01:00
Michael Huang 5bf4b76df4
Refactor curve.rs (#754)
* Refactor shared out of curve.rs

* Refactor out flat curve

* Refactor out constant product curve

* Cargo fmt

* More moving

* Fixup

* use::super -> user::create::curve

* cp -> constant_product

* Fix circular dependency

* Docs

* Trigger Build
2020-11-02 14:29:00 +01:00
dependabot[bot] 355fa0a12c
Bump solana_rbpf from 0.1.32 to 0.2.0 (#775)
Bumps [solana_rbpf](https://github.com/solana-labs/rbpf) from 0.1.32 to 0.2.0.
- [Release notes](https://github.com/solana-labs/rbpf/releases)
- [Commits](https://github.com/solana-labs/rbpf/compare/v0.1.32...v0.2.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-02 12:04:42 +00:00