Commit Graph

1020 Commits

Author SHA1 Message Date
dependabot[bot] c0f009e47b
build(deps-dev): bump rollup from 2.38.0 to 2.38.4 in /token-swap/js (#1156)
Bumps [rollup](https://github.com/rollup/rollup) from 2.38.0 to 2.38.4.
- [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.38.0...v2.38.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 20:46:45 +00:00
dependabot[bot] a6e8a7cef4
build(deps-dev): bump rollup from 2.38.0 to 2.38.4 in /token-lending/js (#1155)
Bumps [rollup](https://github.com/rollup/rollup) from 2.38.0 to 2.38.4.
- [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.38.0...v2.38.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 20:46:27 +00:00
dependabot[bot] 557adc1bb1
build(deps-dev): bump rollup from 2.38.0 to 2.38.4 in /token/js (#1153)
Bumps [rollup](https://github.com/rollup/rollup) from 2.38.0 to 2.38.4.
- [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.38.0...v2.38.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 20:08:29 +00:00
dependabot[bot] 09937284a1
build(deps-dev): bump @babel/cli from 7.12.10 to 7.12.13 in /token/js (#1161)
Bumps [@babel/cli](https://github.com/babel/babel/tree/HEAD/packages/babel-cli) from 7.12.10 to 7.12.13.
- [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.13/packages/babel-cli)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 20:08:23 +00:00
dependabot[bot] 1dab90ecf9
build(deps): bump @solana/web3.js in /token-swap/js (#1147)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.90.4 to 0.90.5.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.90.4...v0.90.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 20:06:52 +00:00
Tyera Eulberg f4e92fe50d
Keep tokio consistent with solana-program-test (#1157)
* Keep tokio consistent with solana-program-test

* Update update-solana-dependencies.sh

Co-authored-by: Michael Vines <mvines@gmail.com>

Co-authored-by: Michael Vines <mvines@gmail.com>
2021-02-04 19:55:28 +00:00
dependabot[bot] 88cf08b4c1
build(deps): bump @solana/web3.js from 0.90.4 to 0.90.5 in /token/js (#1144)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.90.4 to 0.90.5.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.90.4...v0.90.5)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-04 19:16:56 +00:00
Tyera Eulberg 8d53385fcd
Remove target from cache (#1159) 2021-02-04 11:18:05 -07:00
Jon Cinque b26491552f
token-swap: Add version to state (#985)
* Add version to token swap state

* Fix fuzz

* Cargo fmt

* Revert solana localnet version

* Update enum dispatch
2021-02-04 15:22:33 +01:00
Jon Cinque d16da5b913
Update rust stable to 1.49 (and add token swap program id) (#1158)
* Update token swap program id

* Update rust stable to 1.49
2021-02-04 14:20:15 +01:00
Trent Nelson 00f28eeb0c token: Add InitializeAccount2 instruction
Passes the owner as instruction data rather than on the accounts list,
improving CPI ergonomics where the owner's `AccountInfo` isn't otherwise
required
2021-02-01 14:47:29 -07:00
Trent Nelson 99d7ba1563 ci: Base `target` cache key on env.RUST_STABLE (version) 2021-02-01 10:29:20 -07:00
Tyera Eulberg 190e664dd1
Add initial signed-memo program (#1135)
* Initial s-memo

* Populate readme

* Add signed-memo to spl docs

* Log less, fail faster

* Replace and bump memo

* Update memo id

* Add memo prefix and len

* Add test that demonstrates compute bounds

* Add logging and compute to memo docs
2021-01-28 12:21:21 -07:00
Trent Nelson 1c4753e9a3 token: Add a full suite of self-transfer tests 2021-01-28 18:45:38 +00:00
Trent Nelson c6f147ef07 token: Fully check self-transfers 2021-01-28 18:45:38 +00:00
Justin Starry f61d7a89a6
lending: Use fair obligation health factor calculation (#1119)
* lending: Use fair health factor calulation and handle dust

* ci: fix github action caching
2021-01-28 15:56:07 +08:00
dependabot[bot] 6b4e395959
build(deps): bump @solana/web3.js from 0.90.2 to 0.90.4 in /token/js (#1139)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.90.2 to 0.90.4.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.90.2...v0.90.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-28 09:14:27 +08:00
dependabot[bot] 17a62fa4fe
build(deps): bump @solana/web3.js in /token-lending/js (#1140)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.90.2 to 0.90.4.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.90.2...v0.90.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-28 09:14:20 +08:00
dependabot[bot] 2cf409c80a
build(deps): bump @solana/web3.js in /token-swap/js (#1141)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.90.2 to 0.90.4.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.90.2...v0.90.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-28 09:14:13 +08:00
Yuriy Savchenko 13826294ef
Stake pool: test coverage for most of the program errors (#1134)
* Stake pool: test coverage for most of the program errors

* Fixes to stake pool tests PR comments
2021-01-27 23:35:25 +01:00
Tyera Eulberg 682e914c90
Fix doc typos (#1137)
* Fix typos

* Wrap lines
2021-01-27 00:36:09 -07:00
dependabot[bot] 1f9bbfd20e
build(deps-dev): bump rollup from 2.37.1 to 2.38.0 in /token/js (#1122)
Bumps [rollup](https://github.com/rollup/rollup) from 2.37.1 to 2.38.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.37.1...v2.38.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 11:34:17 +00:00
dependabot[bot] 60e3f45446
build(deps): bump @solana/web3.js in /token-swap/js (#1132)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.90.1 to 0.90.2.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.90.1...v0.90.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 11:23:42 +00:00
dependabot[bot] 4e4c9379d3
build(deps-dev): bump rollup from 2.37.1 to 2.38.0 in /token-swap/js (#1124)
Bumps [rollup](https://github.com/rollup/rollup) from 2.37.1 to 2.38.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.37.1...v2.38.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 11:10:31 +00:00
dependabot[bot] 6d1226abc9
build(deps): bump @solana/web3.js from 0.90.1 to 0.90.2 in /token/js (#1128)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.90.1 to 0.90.2.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.90.1...v0.90.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 10:48:52 +00:00
dependabot[bot] cdfe7cc51d
build(deps-dev): bump rollup from 2.37.1 to 2.38.0 in /token-lending/js (#1123)
Bumps [rollup](https://github.com/rollup/rollup) from 2.37.1 to 2.38.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.37.1...v2.38.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 10:47:59 +00:00
dependabot[bot] 6f7c0f7e05
build(deps-dev): bump @typescript-eslint/parser in /token-lending/js (#1129)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.14.0 to 4.14.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.14.1/packages/parser)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 10:25:55 +00:00
dependabot[bot] ff4199046e
build(deps): bump @solana/web3.js in /token-lending/js (#1130)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.90.1 to 0.90.2.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.90.1...v0.90.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-26 10:24:23 +00:00
Trent Nelson 81e86172e1 Token: Remove program-v3 2021-01-26 00:23:07 +00:00
Justin Starry 0834e01d90
lending: Handle the lost funds from defaulted loans (#1118) 2021-01-22 20:04:20 +08:00
Justin Starry d6571949a6
lending: Fixes and tests for borrow and liquidate (#1104)
* lending: Move borrow calculation to reserve

* lending: Test and fix borrow and liquidate

* fix: allow obligations to be disabled

* Test cleanup
2021-01-22 09:56:19 +08:00
Justin Starry 62e6a67eb2
lending: Split interest accrual into new instruction (#1115) 2021-01-22 08:40:44 +08:00
Jon Cinque 14daf0d370
Stake pool: adding pool balance confirmation (Redo of #960) (#1116)
* Added validator stake account list storage, deprecated old tests

* Added join and leave stake pool instructions, error messages refactoring

* Stake pool tests refactoring, tests for join and leave pool added

* Added validator stake account creation instruction, join/leave pool instructions renamed, version field added

* Formatting fixes

* Added update list/pool instructions (no tests yet), updated deposit instruction logic, claim instruction removed, refactoring

* Updated deposit logic and tests, updated withdraw logic and added tests, refactoring

* Stake pool CLI updated to work with new deposit/withdraw instructions, claim usage removed

* Added validator stake account management and balance update commands to the stake pool CLI, updated dependency versions, updated devnet program address

* Merge conflicts fixed

* Removed deprecated tests

* Fixes for review comments

* Additional program id checks across the code

* Formatting errors fixed

* Changed minimum stake balance in CLI, removed deprecated tests, removed check for stake history id

* Added TODO for stake account warmup status check

* Cargo.lock conflict fix

* Formatting fixed

* Update Cargo lock file for CI

* Pin themis version of subtle

Co-authored-by: Yuriy Savchenko <yuriy.savchenko@gmail.com>
2021-01-21 14:48:46 +01:00
Justin Starry fceb120ff0
lending: Adjust borrow rate config validation (#1105) 2021-01-21 21:08:15 +08:00
dependabot[bot] fb1a123166
build(deps): bump @solana/web3.js in /token-swap/js (#1114)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.90.0 to 0.90.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.90.0...v0.90.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-21 11:22:46 +00:00
dependabot[bot] 84f4b983ee
build(deps-dev): bump rollup from 2.37.0 to 2.37.1 in /token-swap/js (#1112)
Bumps [rollup](https://github.com/rollup/rollup) from 2.37.0 to 2.37.1.
- [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.37.0...v2.37.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-21 11:22:03 +00:00
dependabot[bot] c503686159
build(deps): bump @solana/web3.js in /token-lending/js (#1111)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.90.0 to 0.90.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.90.0...v0.90.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-21 10:25:14 +00:00
dependabot[bot] 11c3c65117
build(deps-dev): bump rollup from 2.37.0 to 2.37.1 in /token-lending/js (#1110)
Bumps [rollup](https://github.com/rollup/rollup) from 2.37.0 to 2.37.1.
- [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.37.0...v2.37.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-21 10:23:43 +00:00
dependabot[bot] 1ad862cd30
build(deps): bump @solana/web3.js from 0.90.0 to 0.90.1 in /token/js (#1109)
Bumps [@solana/web3.js](https://github.com/solana-labs/solana-web3.js) from 0.90.0 to 0.90.1.
- [Release notes](https://github.com/solana-labs/solana-web3.js/releases)
- [Commits](https://github.com/solana-labs/solana-web3.js/compare/v0.90.0...v0.90.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-21 09:24:28 +00:00
dependabot[bot] 51fc4dd8d5
build(deps-dev): bump rollup from 2.37.0 to 2.37.1 in /token/js (#1108)
Bumps [rollup](https://github.com/rollup/rollup) from 2.37.0 to 2.37.1.
- [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.37.0...v2.37.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-21 09:24:11 +00:00
Justin Starry 6f4c8ade36
lending: Misc fixes (#1106) 2021-01-21 08:41:12 +08:00
dependabot[bot] e32ba88043
build(deps-dev): bump @types/node in /token-lending/js (#1103)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.21 to 14.14.22.
- [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>
2021-01-20 10:27:15 +00:00
Trent Nelson 946c838441 Add *.so to ignore 2021-01-19 21:27:50 +00:00
Trent Nelson 63be67e3ee Remove stray .so 2021-01-19 21:27:50 +00:00
dependabot[bot] b4a5fa0df5
build(deps-dev): bump rollup from 2.36.2 to 2.37.0 in /token-swap/js (#1101)
Bumps [rollup](https://github.com/rollup/rollup) from 2.36.2 to 2.37.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.36.2...v2.37.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-19 11:25:19 +00:00
dependabot[bot] 09c33c8051
build(deps-dev): bump @typescript-eslint/parser in /token-lending/js (#1099)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.12.0 to 4.14.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.14.0/packages/parser)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-19 11:05:06 +00:00
dependabot[bot] aaeff9c70a
build(deps-dev): bump @typescript-eslint/eslint-plugin (#1100)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.13.0 to 4.14.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.14.0/packages/eslint-plugin)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-19 10:44:18 +00:00
dependabot[bot] 475686220c
build(deps-dev): bump rollup from 2.36.2 to 2.37.0 in /token-lending/js (#1098)
Bumps [rollup](https://github.com/rollup/rollup) from 2.36.2 to 2.37.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.36.2...v2.37.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-19 10:23:59 +00:00
dependabot[bot] b4520c0a5f
build(deps-dev): bump eslint-config-prettier in /token-lending/js (#1097)
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 7.1.0 to 7.2.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v7.1.0...v7.2.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-19 10:23:53 +00:00
dependabot[bot] e4e695d137
build(deps-dev): bump rollup from 2.36.2 to 2.37.0 in /token/js (#1096)
Bumps [rollup](https://github.com/rollup/rollup) from 2.36.2 to 2.37.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.36.2...v2.37.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-19 09:30:53 +00:00