Commit Graph

1340 Commits

Author SHA1 Message Date
Tyera Eulberg a3e8af2068
spl-token-cli: use ATA by default in wrap/unwrap commands (#1492)
* Wrap to ATA by default

* Unwrap ATA by default

* Review comments
2021-03-23 15:48:27 -06:00
dependabot[bot] 5df346163f
build(deps-dev): bump @babel/node in /token-swap/js (#1489)
Bumps [@babel/node](https://github.com/babel/babel/tree/HEAD/packages/babel-node) from 7.12.17 to 7.13.12.
- [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.13.12/packages/babel-node)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-23 10:42:30 +00:00
Tyera Eulberg 80819fa05a
Transfer from ATA by default (#1487)
* Transfer from ATA by default

* Update token/cli/src/main.rs
2021-03-23 04:12:29 +00:00
Tyera Eulberg 603a94327f
Add spl-token address command (#1484) 2021-03-22 23:58:09 +00:00
Jon Cinque d336b8b714
stake-pool: Use checked_ceil_div for withdraw calc (#1482)
* stake-pool: Use checked_ceil_div for withdraw calc

When a stake account is totally removed from a stake pool by the
manager, there's a chance that the operation would not take enough of
the manager's pool tokens by 1 due to truncation.

Do a ceiling division instead, and refactor ceiling division into the
math library.

* Use new function name on CLI

* Cargo fmt
2021-03-23 00:33:51 +01:00
Tyera Eulberg 04fc247b2e
Reorder App subcommands (#1485) 2021-03-22 22:47:25 +00:00
Michael Vines bb05462d59 Rename --allow-empty-recipient to --allow-unfunded-recipient 2021-03-22 13:45:18 -07:00
Jon Cinque 7316e0fbc3
Ignore test-ledger directory for swap (#1480) 2021-03-22 20:00:40 +01:00
Tyera Eulberg 0ab541bc40
Update accounts examples (#1478) 2021-03-22 18:37:10 +00:00
Tyera Eulberg ed4ef42c8b
Remove explicit tokio (#1470) 2021-03-18 20:38:09 +00:00
Vadim cd57d1cf10
Binary oracle implementation (#1347)
* oracle pair init

* update

* updates

* progress

* update

* update

* progress

* builds

* update

* progress

* update

* copy pasta

* Refactor and add Instruction serializing/deserializing

* Add pack/unpack for Pool struct

* Implement InitPool instruction

* Add unit test and refactor InitPool instruction

* Minor changes

* Add using deposing token mint decimals in pass and fail mints

* Add Deposit instruction processing

* Add test for Deposit instruction

* Add Withdraw instruction processing

* Add test for Withdraw instruction

* Add Decide instruction with test

* Changes in Withdraw instruciton and add time travel to Decide instruction test

* Fix clippy warning

* Fix warning with if operator

* Fix clippy warnings

* Update libs version and minor fixes

* Minor changes

* Add user_transfer_authority to withdraw instruction and other minor changes

* Fix clippy warns

* Change return value after serialization

* Update tokio and solana-program-test libs version

Co-authored-by: Anatoly Yakovenko <anatoly@solana.com>
2021-03-18 18:18:20 +01:00
Yuriy Savchenko d0bf7157cf
Set staking authority instruction removed (#1469)
* Set staking authority instruction removed

* Fixed fmt errors
2021-03-18 12:21:01 +01:00
Michael Vines 662f38f939 Bump Solana version to 1.6.1 2021-03-18 04:07:16 +00:00
Michael Vines 0a63d33988 Detect pinned versions 2021-03-18 04:07:16 +00:00
Michael Vines eb163ab0c7 Bump lending compute units more 2021-03-17 13:04:55 -07:00
Michael Vines 52e4ccee5b Relax some `set_bpf_compute_max_units` to unblock testing against the solana master 2021-03-17 09:31:37 +00:00
Michael Vines a156a10051 Adjust test_memo_compute_limits to account for toolchain differences 2021-03-17 00:37:20 -07:00
Michael Vines 58807c5f8b Back out clippy::manual_map for now 2021-03-16 22:22:59 -07:00
Michael Vines af5fdb3146 Bump Rust version to 1.50.0 2021-03-16 22:22:59 -07:00
Michael Vines ced24cb55a Adapt to AccountSharedData 2021-03-16 20:07:33 -07:00
Michael Vines 626376653d Clippy 2021-03-16 18:33:37 -07:00
Michael Vines 686444088b Bump Solana version to 1.5.15 2021-03-16 18:33:37 -07:00
Michael Vines 1bc52c30fd Remove yelling 2021-03-16 18:33:37 -07:00
Michael Vines 64edd0ba76 Remove unknown_clippy_lints 2021-03-16 18:33:37 -07:00
Michael Vines 995d4a029f Remove tokio dev-dependency 2021-03-16 18:33:37 -07:00
Michael Vines c63d854ac7 Switch to Instruction::new_with_bincode 2021-03-16 18:33:37 -07:00
Tyera Eulberg 82a385b7c3
Bump spl-token-cli for new release (#1463) 2021-03-16 18:24:04 -06:00
Justin Starry 4107c17a3b
Bump token-cli to v2.0.8 (#1458) 2021-03-16 17:44:36 -06:00
Tyera Eulberg 81ad7407d0
Remove debug dir between bpf and host crates (#1461) 2021-03-16 22:51:45 +00:00
Michael Vines 723aacadb7 Pin Solana versions used by spl-token-cli 2021-03-16 15:07:56 -07:00
Tyera Eulberg d65d2eac41
Token cli: Improve authorize command (#1445)
* Return clear error message if auth type is incompatible with account

* Report real current authority

* Prevent reauth of owner's ATA

* Fix typo, messaging improvements

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
2021-03-16 13:59:21 -06:00
Michael Vines 7886d62488 Bump max BPF compute units 2021-03-16 09:08:59 -07:00
dependabot[bot] 425c6be077
build(deps-dev): bump @types/prettier in /token-lending/js (#1459)
Bumps [@types/prettier](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/prettier) from 2.2.2 to 2.2.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/prettier)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-16 09:42:02 +00:00
Justin Starry 5aa60dd892
token-cli: Don't sign with owner when creating an associated token account (#1449) 2021-03-16 15:59:38 +08:00
Jon Cinque 6db3b29066
stake-pool: Add usage docs (#1277)
* stake-pool: Add usage docs

* More instructions

* Update for adding validator stake accounts

* Review feedback

* Update command output

* Add note about credits observed

* Finish stake pool docs

* Integrate review feedback

* Add motivation and design sections

* Add rebalancing example
2021-03-15 19:05:33 +01:00
dependabot[bot] 4656bbc8f3
build(deps-dev): bump rollup from 2.41.1 to 2.41.2 in /token-lending/js (#1454)
Bumps [rollup](https://github.com/rollup/rollup) from 2.41.1 to 2.41.2.
- [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.41.1...v2.41.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 11:14:18 +00:00
dependabot[bot] f0a75999d5
build(deps-dev): bump @types/node in /token-lending/js (#1453)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.33 to 14.14.34.
- [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-03-15 10:40:13 +00:00
dependabot[bot] a6fda91912
build(deps-dev): bump eslint from 7.21.0 to 7.22.0 in /token-lending/js (#1452)
Bumps [eslint](https://github.com/eslint/eslint) from 7.21.0 to 7.22.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.21.0...v7.22.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-15 10:07:09 +00:00
Justin Starry e99dc71ec7
lending: fix flaky program test (#1448) 2021-03-15 09:01:27 +00:00
Tyera Eulberg 5aa0341478
Token cli: spl-token accounts improvements (#1440)
* Swap token/account to prep for display changes

* Refactor accounts parsing for deterministic order and to batch by mint

* Add Aux tags and gc alert

* Hide account addresses for non-verbose returns

* Review nits

* Set balance display len dynamically

* Bump solana version to reduce Account parse failures

* Fix aux width
2021-03-12 19:34:14 -07:00
Justin Starry 57d5b56208
lending: Add program addresses to docs (#1442) 2021-03-12 22:16:30 +08:00
dependabot[bot] 2121951f92
build(deps-dev): bump mocha from 8.3.1 to 8.3.2 in /token/js (#1443)
Bumps [mocha](https://github.com/mochajs/mocha) from 8.3.1 to 8.3.2.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v8.3.1...v8.3.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-12 09:36:28 +00:00
Tyera Eulberg 123f0daffe
Allow pubkey owner for accounts subcommand (#1439) 2021-03-11 15:40:47 -07:00
Justin Starry 90b4b33775
lending: Add SetLendingMarketOwner instruction (#1434) 2021-03-11 16:02:50 +00:00
Justin Starry e7d7db12bd
lending: Update test fixtures to v3 accounts (#1435) 2021-03-11 23:28:52 +08:00
dependabot[bot] 73b8fe0334
build(deps-dev): bump @types/node in /token-lending/js (#1438)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.32 to 14.14.33.
- [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-03-11 11:07:42 +00:00
dependabot[bot] 001bbc35f5
build(deps-dev): bump rollup from 2.41.0 to 2.41.1 in /token-lending/js (#1437)
Bumps [rollup](https://github.com/rollup/rollup) from 2.41.0 to 2.41.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.41.0...v2.41.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-11 10:35:01 +00:00
dependabot[bot] 3b97752e7d
build(deps-dev): bump rollup from 2.41.0 to 2.41.1 in /token/js (#1436)
Bumps [rollup](https://github.com/rollup/rollup) from 2.41.0 to 2.41.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.41.0...v2.41.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-11 09:35:27 +00:00
Tyera Eulberg 7a2d17b57f
Enable short arg, monikers (#1433) 2021-03-11 06:44:00 +00:00
Jack May 7567b41bce
Float perf feedback (#1428) 2021-03-10 22:04:30 +00:00