Commit Graph

640 Commits

Author SHA1 Message Date
Ryo Onodera 0dc32f67df
Document about the known fake rent issue (#753)
* Document about the known fake rent issue

* Bad english

* Apply suggestions from code review

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>

* Fix link

* Apply more suggestions

Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-10-30 15:17:41 +09:00
Yuriy Savchenko a5babd6cbe
Unit tests refactoring and success deposit test added to stake pool program (#718)
* 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
2020-10-29 17:19:48 +01:00
Jon Cinque 9cd1cb0900
Token-swap: Add "production mode" hard-coded fee constraints (#731)
* Add statically configured program constraints

* Allow missing host fee account

* Run cargo fmt + clippy

* Update JS for new host fee account param

* Fix merge issues

* Add host fee to curve, constrain on curves

* Cleanup static variable

* Add production test to CI

Integrate review feedback

* Run cargo fmt, clippy, prettier

* Re-run cargo fmt

* Fix test for eslint / prettier clash
2020-10-29 12:52:17 +01:00
dependabot[bot] 377468132a
Bump @solana/web3.js from 0.84.0 to 0.86.1 in /token/js (#749)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.84.0 to 0.86.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.84.0...v0.86.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-29 09:06:44 +00:00
Michael Vines 9c7c12c361 Correct help text 2020-10-28 17:43:57 -07:00
dependabot[bot] a2400c35af
Bump @solana/web3.js from 0.84.0 to 0.84.1 in /token-lending/js (#746)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.84.0 to 0.84.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.84.0...v0.84.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-28 10:04:57 +00:00
Justin Starry edb0a7deea
Document self-transfer behavior (#743) 2020-10-28 10:48:23 +08:00
Greg Fitzgerald 6906200174
Cleanup themis (#742)
* Cleanup themis

* Speed up seeding fee-payers
* Add utility functions

* Remove BN variant of themis
2020-10-27 16:57:09 -06:00
Paul cb9a94142a
add freeze and thaw account methods to module declaration in spl token library (#730) 2020-10-27 21:15:52 +08:00
dependabot[bot] 46500ad5c0
Bump eslint from 7.12.0 to 7.12.1 in /token-swap/js (#740)
Bumps [eslint](https://github.com/eslint/eslint) from 7.12.0 to 7.12.1.
- [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.0...v7.12.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-27 11:27:00 +00:00
dependabot[bot] 3d98b9ab0d
Bump eslint from 7.12.0 to 7.12.1 in /token-lending/js (#736)
Bumps [eslint](https://github.com/eslint/eslint) from 7.12.0 to 7.12.1.
- [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.0...v7.12.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-27 11:26:53 +00:00
dependabot[bot] 032549e5e2
Bump @typescript-eslint/parser from 4.5.0 to 4.6.0 in /token-lending/js (#738)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.5.0 to 4.6.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.6.0/packages/parser)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-27 10:14:40 +00:00
dependabot[bot] b662107e94
Bump @rollup/plugin-commonjs from 15.1.0 to 16.0.0 in /token/js (#735)
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 15.1.0 to 16.0.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v15.1.0...commonjs-v16.0.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-27 09:12:00 +00:00
dependabot[bot] e9be4145f6
Bump eslint from 7.12.0 to 7.12.1 in /token/js (#733)
Bumps [eslint](https://github.com/eslint/eslint) from 7.12.0 to 7.12.1.
- [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.0...v7.12.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-27 09:10:03 +00:00
Trent Nelson b775896c8c token-cli: Support offline signing 2020-10-27 01:24:03 +00:00
Trent Nelson 3deb46f35a token-cli: Support durable nonces 2020-10-27 01:24:03 +00:00
Trent Nelson 5193078568 token-cli: Use subcommand arg matches for config 2020-10-27 01:24:03 +00:00
Trent Nelson dcc28d311d token-cli: Send transactions with config 2020-10-27 01:24:03 +00:00
Trent Nelson 6096e7b554 token-cli: Use clap-utils fee payer arg 2020-10-27 01:24:03 +00:00
Jack May f21c71ed83
reformat token instruction comments (#732) 2020-10-27 01:04:39 +00:00
Jack May 18e8951c97 Refer to CreateAccount 2020-10-26 16:54:33 -07:00
anatoly yakovenko 64a362c059
Use u128 for all the math but store in u64 (#711)
* Use u128 for all the math but store in u64

* tests

* missing changes

* bulds

* specific conversion failure

* fix tests

* use large numbers

* Rebase and fix merge issue from new tests

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2020-10-26 18:18:33 +01:00
dependabot[bot] 7473fa0035
Bump eslint from 7.11.0 to 7.12.0 in /token-lending/js (#725)
Bumps [eslint](https://github.com/eslint/eslint) from 7.11.0 to 7.12.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.11.0...v7.12.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-26 12:28:17 +00:00
dependabot[bot] aed7439884
Bump @solana/web3.js from 0.83.0 to 0.84.0 in /token-swap/js (#726)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.83.0 to 0.84.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.83.0...v0.84.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-26 12:17:40 +00:00
dependabot[bot] b2fa509a86
Bump eslint from 7.11.0 to 7.12.0 in /token-swap/js (#727)
Bumps [eslint](https://github.com/eslint/eslint) from 7.11.0 to 7.12.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.11.0...v7.12.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-26 11:19:42 +00:00
dependabot[bot] 665b08b7df
Bump @solana/web3.js from 0.83.0 to 0.84.0 in /token-lending/js (#724)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.83.0 to 0.84.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.83.0...v0.84.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-26 11:01:41 +00:00
Justin Starry a6cfc590e1
Prevent swap accounts being used as user accounts (#719) 2020-10-26 18:17:47 +08:00
dependabot[bot] c57018fbc2
Bump @types/node from 14.14.2 to 14.14.3 in /token-lending/js (#723)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.2 to 14.14.3.
- [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-10-26 10:10:35 +00:00
dependabot[bot] 454dc73c94
Bump @solana/web3.js from 0.83.0 to 0.84.0 in /token/js (#721)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.83.0 to 0.84.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.83.0...v0.84.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-26 09:12:38 +00:00
dependabot[bot] 65e3bf29a5
Bump eslint from 7.11.0 to 7.12.0 in /token/js (#720)
Bumps [eslint](https://github.com/eslint/eslint) from 7.11.0 to 7.12.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.11.0...v7.12.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-26 09:06:13 +00:00
Michael Vines 211f92e8c6 Groom Cargo.tomls 2020-10-25 07:52:33 +00:00
Michael Vines f9b4616bb6 Clean up stake-pool copypasta 2020-10-25 03:40:21 +00:00
Michael Vines fe627797c3 Use program_stubs to clean up invoke_signed stub 2020-10-25 03:29:01 +00:00
Michael Vines 47d31cc6f2 tmp: bpf first 2020-10-24 19:21:38 -07:00
Michael Vines 80e29ef6b9 Port SPL to solana-program and `cargo build-bpf` 2020-10-24 19:21:38 -07:00
Michael Vines 4616c2eb0f Install solana cli tools in CI 2020-10-23 16:25:47 -07:00
Greg Fitzgerald 94ae65136f Fix markdown 2020-10-23 17:04:43 -06:00
Greg Fitzgerald 9c3b71727a
Add docs to run the demo (#710) 2020-10-23 17:02:53 -06:00
Greg Fitzgerald 5cced4d6d3
Update Ristretto keys (#708) 2020-10-23 15:23:19 -06:00
Michael Vines f9516badc2
Update Cargo.toml 2020-10-23 10:05:20 -07:00
Jon Cinque b0867c7e28
token-swap: Add fee account to receive withdraw / trading fees, trading token mints (#695)
* Add mints to swap info

* Add mints to JS

* Add fee account in SwapInfo / init

* Add test for 0 fee, init test fully

* Add withdraw command interface

* Add fee accounts to swap instruction

* Add calculations for swap and withdraw fees

* Run cargo fmt

* Add new fees to JS and test

* Review feedback: fixup instruction doc and clone

* Update order of accounts in instructions

* Run cargo fmt

* Fix owner fee pool token calculation to include trading fee

* Add owner fees to flat curve, per request

* Fix instruction comment numbering

* Add more errors types for clearer calculation errors

Add a check for withdrawing from fee account

* Cargo fmt
2020-10-23 18:31:58 +02:00
dependabot[bot] 14d102b86a
Bump solana-cli-config from 1.4.1 to 1.4.2 (#704)
Bumps [solana-cli-config](https://github.com/solana-labs/solana) from 1.4.1 to 1.4.2.
- [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.1...v1.4.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-23 13:29:32 +00:00
Yuriy Savchenko 100e930f2c
Interface accounts added as read-only, fixed mint authority on deposit, fixed stake pool stake deserializing (#702) 2020-10-23 14:25:53 +02:00
dependabot[bot] 1f0bf3bacb
Bump solana-logger from 1.4.1 to 1.4.2 (#705)
Bumps [solana-logger](https://github.com/solana-labs/solana) from 1.4.1 to 1.4.2.
- [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.1...v1.4.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-23 12:13:37 +00:00
dependabot[bot] 8c3c124f31
Bump @solana/web3.js from 0.82.0 to 0.83.0 in /token-swap/js (#703)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.82.0 to 0.83.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.82.0...v0.83.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-23 11:30:43 +00:00
dependabot[bot] a2f73b0b71
Bump @solana/web3.js from 0.82.0 to 0.83.0 in /token-lending/js (#700)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.82.0 to 0.83.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.82.0...v0.83.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-23 10:21:56 +00:00
dependabot[bot] 7e277765d0
Bump @solana/web3.js from 0.82.0 to 0.83.0 in /token/js (#699)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.82.0 to 0.83.0.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.82.0...v0.83.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-23 09:13:45 +00:00
Justin Starry b8afb23642
Export token program id in JS client (#694) 2020-10-23 08:56:15 +08:00
Justin Starry ee99fcf025
Check for close and freeze authorities in token-swap (#686) 2020-10-22 21:20:38 +08:00
dependabot[bot] ccff57d17e
Bump @types/node from 14.11.11 to 14.14.2 in /token-lending/js (#689)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.11.11 to 14.14.2.
- [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-10-22 11:48:48 +00:00