Commit Graph

9 Commits

Author SHA1 Message Date
Giovanni Napoli 325f3d26fb
Support `create` and `update` token metadata in stake-pool python bindings (#3978) 2023-03-14 20:22:50 +00:00
Jon Cinque fa438bbfa8
stake-pool: Add / remove validators from the reserve (#3714)
* stake-pool: Create validator stake accounts from reserve

* Update accounting to take minimum into account

* Refactor withdraw tests

* Add ability to remove validators during withdraw stake

* Add seed to validator stake account address derivation

* Update CLI with new instruction formats

* Update documentation and helper scripts for new funding

* Update Python bindings

* Try to fix flakey test

* Support token-2022

* Condense tests for CI

* Reduce huge pool limit post-rebase

* Avoid draining the whole reserve

* Restrict account extensions on allow-list

* Update comments to say "lamports"

* Fixup code comments and variable names

* Fix clippy in tests
2022-11-21 20:13:27 +01:00
Jon Cinque 8f75f5905c
stake-pool-py: Clean up dependencies (#3412) 2022-08-03 01:19:33 +02:00
Jon Cinque 3a7914ceba
stake-pool-py: Fix tests for Solana 1.10.33 (#3395) 2022-07-29 22:59:50 +02:00
Jon Cinque a1c827d674
stake-pool: Update program to work with minimum delegation (#3127)
* stake-pool: Update program to work with minimum delegation

* Update minimum reserve lamports in the CLI

* Cargo fmt

* Add another test for hijacked account

* Fix python and JS constants
2022-05-02 22:45:25 +02:00
Jon Cinque 4dbb4a5bb4
stake-pool-py: Add more waits to solidify tests (#2882) 2022-02-07 22:26:23 +01:00
Jon Cinque 9bda73f37c
stake-pool-cli: Add `deposit-all-stake` command (#2614)
* stake-pool-cli: Add `deposit-all-stake` command

* Improve py test
2021-12-14 02:25:37 +01:00
Jon Cinque d5ac6b883b
stake-pool-py: Add simple rebalance bot (#2630)
* stake-pool-py: Add simple rebalance bot

* Fixup test

* Refactor flaky tests

* Create vote earlier in test

* Duplicate create_vote call causes stall

* Wait more aggressively
2021-12-13 13:17:07 +01:00
Jon Cinque a7888861da
stake-pool-py: Create and deserialize stake pools (#2557)
* stake-pool-py: Create and deserialize stake pools with CI

* Add ability to add / remove validators

* Add vote init instruction for cleaner tests

* Fixup CI

* Add deposit / withdraw sol

* Add update instructions

* Add increase / decrease stake

* Add deposit / withdraw stake
2021-12-10 00:43:25 +01:00