Commit Graph

18 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
dependabot[bot] 56cdef9ee8
build(deps): bump certifi from 2022.6.15 to 2022.12.7 in /stake-pool/py (#3886)
Bumps [certifi](https://github.com/certifi/python-certifi) from 2022.6.15 to 2022.12.7.
- [Release notes](https://github.com/certifi/python-certifi/releases)
- [Commits](https://github.com/certifi/python-certifi/compare/2022.06.15...2022.12.07)

---
updated-dependencies:
- dependency-name: certifi
  dependency-type: direct:production
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 02:42:47 +01: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 f0dd422f2a
stake-pool: Use stake program minimum delegation (#3547)
* stake-pool: Support dynamic minimum delegation amount

* Use minimum_delegation in CLI

* Address feedback

* Update minimum delegation in python test

* Address feedback

* Improve error message
2022-08-30 21:45:18 +02:00
Edgar 83b5dabf02
stake-pool: fix docstring typos (#3495)
fix typos
2022-08-19 18:57:32 +02:00
hana 65769ce23d
Update rust to 1.60, solana to 1.11.6 (#3492)
also change bpf to sbf throughout the codebase

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-08-18 12:16:02 -07: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
c3pko 80f8890dd3
Rename stake-pool/LICENSE to stake-pool/py/LICENSE 2022-07-25 16:55:17 -07:00
Jon Cinque c324f6c431
stake-pool: Handle force destaked accounts (#3152) 2022-05-19 19:08: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
Dmitri Makarov 65b49073f4
Decrease the stake pool size due to the new mem op syscall base cost (#2705) 2022-01-05 14:26:13 -08:00
Jon Cinque 8c9f8a0088
stake-pool: Reduce maximum pool size (#2654)
* stake-pool: Reduce huge pool size in tests

* stake-pool: Reduce supported maximum size
2021-12-21 13:10:12 +01:00
Jon Cinque ba08b6e662
stake-pool: Mint extra reserve lamports as pool tokens on init (#2636)
* stake-pool: Mint extra reserve lamports as pool tokens on init

* Wait more aggressively in py test

* Simplify test
2021-12-14 18:45:15 +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