solana-program-library/stake-pool/program/tests
Jon Cinque d815ba9b8e
stake-pool: Add borsh support and specify size on creation (#1505)
* lending: Update JS tests to solana-test-validator

* Add solana tools install

* Fix oopsie on the path

* Move where deployed programs go

* stake-pool: Add borsh support and size on creation

We can't specify the size in the instruction unfortunately, since we'd
only have 10kb max for the validator list. At roughly 50 bytes per
validator, that only gives us 200 validators.

On the flip side, using Borsh means we can allow the validator stake list
to be any size!

* Add AccountType enum

* Remove V1 everywhere

* Add max validators as parameter and get_instance_packed_len

* Add test for adding too many validators

* Clippy
2021-03-27 13:42:29 +01:00
..
helpers stake-pool: Add borsh support and specify size on creation (#1505) 2021-03-27 13:42:29 +01:00
deposit.rs stake-pool: Add borsh support and specify size on creation (#1505) 2021-03-27 13:42:29 +01:00
initialize.rs stake-pool: Add borsh support and specify size on creation (#1505) 2021-03-27 13:42:29 +01:00
set_owner.rs stake-pool: Add borsh support and specify size on creation (#1505) 2021-03-27 13:42:29 +01:00
update_list_balance.rs stake-pool: Add borsh support and specify size on creation (#1505) 2021-03-27 13:42:29 +01:00
update_pool_balance.rs stake-pool: Add borsh support and specify size on creation (#1505) 2021-03-27 13:42:29 +01:00
vsa_add.rs stake-pool: Add borsh support and specify size on creation (#1505) 2021-03-27 13:42:29 +01:00
vsa_create.rs Remove tokio dev-dependency 2021-03-16 18:33:37 -07:00
vsa_remove.rs stake-pool: Add borsh support and specify size on creation (#1505) 2021-03-27 13:42:29 +01:00
withdraw.rs stake-pool: Add borsh support and specify size on creation (#1505) 2021-03-27 13:42:29 +01:00