Commit Graph

973 Commits

Author SHA1 Message Date
dependabot[bot] 1e4292a720
Bump typescript from 4.0.5 to 4.1.2 in /token-lending/js (#914)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.0.5 to 4.1.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.0.5...v4.1.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-02 10:32:59 +00:00
dependabot[bot] 28be684311
Bump @rollup/plugin-commonjs from 16.0.0 to 17.0.0 in /token-lending/js (#913)
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 16.0.0 to 17.0.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v16.0.0...commonjs-v17.0.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-02 10:31:13 +00:00
dependabot[bot] 64c99a5f5b
Bump @rollup/plugin-commonjs from 16.0.0 to 17.0.0 in /token/js (#911)
Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 16.0.0 to 17.0.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v16.0.0...commonjs-v17.0.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-02 09:32:16 +00:00
dependabot[bot] 2d9ec02dc0
Bump tokio from 0.3.3 to 0.3.5 (#910)
Bumps [tokio](https://github.com/tokio-rs/tokio) from 0.3.3 to 0.3.5.
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-0.3.3...tokio-0.3.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-01 12:52:58 +00:00
dependabot[bot] b1753dfc20
Bump @babel/cli from 7.12.1 to 7.12.8 in /token-swap/js (#909)
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.12.1 to 7.12.8.
- [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.8/packages/babel-cli)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-01 11:31:12 +00:00
dependabot[bot] 21a3ed3c20
Bump @typescript-eslint/eslint-plugin in /token-lending/js (#908)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.8.2 to 4.9.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.9.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-12-01 11:04:42 +00:00
dependabot[bot] 7cc7718ee2
Bump @types/node from 14.14.9 to 14.14.10 in /token-lending/js (#907)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.9 to 14.14.10.
- [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-12-01 10:32:55 +00:00
dependabot[bot] 2ead9d38c7
Bump eslint from 7.13.0 to 7.14.0 in /token/js (#905)
Bumps [eslint](https://github.com/eslint/eslint) from 7.13.0 to 7.14.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.13.0...v7.14.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-01 09:35:45 +00:00
dependabot[bot] b04a3884d4
Bump @rollup/plugin-babel from 5.2.1 to 5.2.2 in /token/js (#906)
Bumps [@rollup/plugin-babel](https://github.com/rollup/plugins) from 5.2.1 to 5.2.2.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/babel-v5.2.1...babel-v5.2.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-01 09:33:57 +00:00
Tyera Eulberg 838d470e64
Combine vote account duplicates associated with the same validator id (#904) 2020-11-30 21:47:38 +00:00
Jon Cinque b40e0dd3fd
token-swap: Add fuzzer for swap / withdraw / deposit (#875)
* token-swap: Add fuzzer for swap / withdraw / deposit

* Run cargo fmt

* Make end-to-end testing work

* Fix test failures

* Cleanup for review

* Remove Clone trait for Initialize

* Fix building fuzz targets

* Fix fuzz withdraw logic to avoid ZeroTradingTokens error

* Cargo fmt

* Clippy / fmt again

* Integrate fuzzer in main workspace to share clippy / fmt

* Fix clippy

* Switch to stable honggfuzz that could work with BPF

* Update to most recent honggfuzz

* Add build / run requirements

* Add fuzz CI and cleanup for honggfuzz

* Revert to using fuzz feature to integrate with workspace

* Make fuzz script executable

* Refactor and cleanup

* Add nightly run

* Fix workflow typo

* Add runtime for pull request fuzz workflow

* Fix unrelated new clippy errors
2020-11-30 13:01:31 +01:00
dependabot[bot] ac20c5d59a
Bump @babel/core from 7.12.8 to 7.12.9 in /token-swap/js (#902)
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.8 to 7.12.9.
- [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.9/packages/babel-core)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 11:33:09 +00:00
dependabot[bot] aa8fafeb21
Bump @types/eslint from 7.2.4 to 7.2.5 in /token-lending/js (#901)
Bumps [@types/eslint](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/eslint) from 7.2.4 to 7.2.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/eslint)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 10:34:54 +00:00
dependabot[bot] 660ee61449
Bump rollup from 2.33.1 to 2.34.0 in /token-lending/js (#898)
Bumps [rollup](https://github.com/rollup/rollup) from 2.33.1 to 2.34.0.
- [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.34.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 10:33:46 +00:00
dependabot[bot] c82feb4ad0
Bump rollup from 2.33.2 to 2.34.0 in /token-swap/js (#899)
Bumps [rollup](https://github.com/rollup/rollup) from 2.33.2 to 2.34.0.
- [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.2...v2.34.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 10:02:40 +00:00
dependabot[bot] 3a2386b50f
Bump prettier from 2.1.2 to 2.2.1 in /token-lending/js (#900)
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.2 to 2.2.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.2...2.2.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 10:02:26 +00:00
dependabot[bot] 81fdf3581c
Bump prettier from 2.1.2 to 2.2.1 in /token/js (#897)
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.2 to 2.2.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.2...2.2.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 09:31:49 +00:00
dependabot[bot] d6223af979
Bump rollup from 2.33.1 to 2.34.0 in /token/js (#896)
Bumps [rollup](https://github.com/rollup/rollup) from 2.33.1 to 2.34.0.
- [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.34.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-30 09:30:49 +00:00
Tyera Eulberg d3f1e28090
spl-feature-proposal: output raw spl-token amounts in csv (#893)
* Output raw spl-token amounts in csv

* Bump version
2020-11-26 00:21:45 +00:00
Tyera Eulberg 8c029dbdf1
Clippy cleanup (#894) 2020-11-25 23:53:18 +00:00
Yuriy Savchenko a0d0ae63ca
token-swap stable curve: 256-bit math added with tests (#886)
* Stable curve math rewritten to 256-bit, reference simulation added with test integration

* Formatting error fixed

* Clippy warnings fixed

* Fixed dependencies to remove crates not supportinf bpf

* Fixed indentations

* Fixed lint errors

* Fixed format warnings

* Fixing clippy lint errors

* U256 math and simulation library refactoring, checked math used everywhere, other small fixes

* Fixed conversion to optional u128
2020-11-25 21:19:25 +01:00
dependabot[bot] 8619764700
Bump @babel/core from 7.12.3 to 7.12.8 in /token-swap/js (#889)
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.12.3 to 7.12.8.
- [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.8/packages/babel-core)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-24 11:47:54 +00:00
dependabot[bot] 4ff9044f7a
Bump @typescript-eslint/eslint-plugin in /token-lending/js (#888)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.7.0 to 4.8.2.
- [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.8.2/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-24 10:47:31 +00:00
Michael Vines b51acb2577 Bump SPL Token CLI version to 2.0.5 2020-11-20 09:03:55 -08:00
dependabot[bot] 52939a7a95
Bump prettier from 2.1.2 to 2.2.0 in /token-swap/js (#878)
Bumps [prettier](https://github.com/prettier/prettier) from 2.1.2 to 2.2.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.1.2...2.2.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-11-20 11:28:34 +00:00
dependabot[bot] c66921f4ae
Bump @types/node from 14.14.6 to 14.14.9 in /token-lending/js (#877)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.6 to 14.14.9.
- [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-11-20 10:28:08 +00:00
Michael Vines fa47c8f2ff Drop restore-keys 2020-11-19 10:28:18 -08:00
Michael Vines 7e3115fb25 Avoid RpcClient::get_account() in some cases 2020-11-19 10:28:18 -08:00
Paul 7abf8bd9cf
[AToken] add motivation section to docs (#870) 2020-11-18 20:17:15 -08:00
Michael Vines 09c99158e1 Bump version to 1.0.0 2020-11-18 19:16:25 -08:00
Michael Vines 2e185aa2b6 Proposals now have a 2 week deadline 2020-11-18 19:16:25 -08:00
Michael Vines eb7b4cb0bd Deadline is no longer optional, also add expiration test 2020-11-18 19:16:25 -08:00
Yuriy Savchenko 90698e4be9
Added negative tests for stake pool (#857)
* Added negative tests for stake pool

* Claim refactoring, error codes fixed

* Linter errors fixed
2020-11-18 22:47:42 +01:00
Michael Vines acf7ed45b5
t 2020-11-18 13:07:35 -08:00
Michael Vines 6f884de25f Rename 'delivery' to 'distributor' 2020-11-18 19:59:23 +00:00
Michael Vines 393021948a Update docs/src/feature-proposal.md
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
2020-11-18 19:59:23 +00:00
Michael Vines 0fa9a9428a Initial feature proposal documentation 2020-11-18 19:59:23 +00:00
Michael Vines 2ce4817ac3 Add spl-feature-proposal-cli 2020-11-18 19:59:23 +00:00
Michael Vines 73c34559c2 Rename get_account() -> get_account_data() 2020-11-18 19:59:23 +00:00
Michael Vines 1e88c1302a Add token account checks 2020-11-18 19:59:23 +00:00
Michael Vines 71ab7ea1ba
K 2020-11-18 10:27:23 -08:00
Michael Vines 1fe820c16d
Fix findAssociatedTokenAddress more 2020-11-18 10:18:58 -08:00
Michael Vines eff3677b46
Correct `findAssociatedTokenAddress` JS sample
Fixes #869
2020-11-18 10:13:16 -08:00
Michael Vines 222ec663df Use RpcClient::new_with_commitment() 2020-11-18 04:37:30 +00:00
Michael Vines c6a4ac9a82 Bump solana version to v1.4.9 2020-11-17 20:02:17 -08:00
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