Commit Graph

265 Commits

Author SHA1 Message Date
samkim-crypto 0c8fb24d47
upgrade solana-program to 1.14.6 (#3765) 2022-10-27 07:59:25 +09:00
hanako mumei 3a87c8fc0a update solana to 1.14.4 2022-10-12 10:48:23 -07:00
Jon Cinque f97a3dc7cf
clippy: Deny integer arithmetic, add allows where needed (#3606) 2022-09-15 13:16:53 +02:00
Edgar ac47fb1e38
add stake pool support support for hardware wallets in set-manager (#3583)
* add support for hardware wallets in set-manager

* clippy

* wrap new_manager in &Option<T> type

* trigger CI
2022-09-13 20:31:27 +02: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
Jon Cinque 90626fc4c9
ci: Update rust-nightly to 2022-04-01 (#3539)
* ci: Update rust-nightly to 2022-04-01

* Use rust_nightly parameter in fuzz script
2022-08-27 18:20:12 +02:00
Athar Mohammad 2198ee068b
Extends withdraw functionality in stake pool (#3445)
* extends withdraw to merge if stake account is provided

* check if account is stake account and delegated to same validator

* fixing tests and defining withdraw accounts for delegated stake reciever

* implementation improvements in cli

* fix js tests

* added test for uninitialized stake account
2022-08-22 23:36:13 +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
Tyera Eulberg 3c54aecfe9
Bump solana to v1.10.35 (#3485) 2022-08-16 12:33:24 -06:00
Jon Cinque 6f2fc9965f
stake-pool: Bump versions to 0.7.0 (#3456) 2022-08-11 19:52:23 +02:00
Tyera Eulberg 7c6235d9e7
Bump token to v3.5.0 and ata to v1.1.1 (#3430) 2022-08-04 01:09:38 -06:00
Jon Cinque f5ce86d43d
token/ata: Bump versions to 3.4.0 and 1.1.0, respectively (#3427) 2022-08-04 01:03:04 +02:00
Tyera Eulberg e0ff9add17
Bump spl-token (#3418) 2022-08-03 01:24:38 -06: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
Tyera Eulberg c00194d225
Bump solana crates to v1.10.33 (#3385) 2022-07-27 11:28:14 -06:00
c3pko 80f8890dd3
Rename stake-pool/LICENSE to stake-pool/py/LICENSE 2022-07-25 16:55:17 -07:00
c3pko 8a68056816
add_license_file (#3380)
* add_license_file

* Update LICENSE
2022-07-25 15:56:41 -07:00
Pranjal Paliwal 8169e527e9
[stake-pool] instruction to add metadata for pool token (#3335)
* instruction to add metadata for pool token

* add documentation for instruction accounts

* address pull request comments

* added more tests for update pool token instruction

* add check for payer signature
2022-07-22 22:25:17 +02:00
Jon Cinque c1ee6a58be
Update Solana crates to 1.10.29 (#3303) 2022-07-01 16:51:01 -04:00
samkim-crypto 0f316fb357
bump solana to v1.10.26 (#3274) 2022-06-20 09:55:49 +09:00
Jon Cinque 79d2c606b8
CI: Add `--max-warnings 0` to eslint to abort on errors (#3254)
* CI: Add `--max-warnings 0` to eslint to abort on errors

* Fix lint issue
2022-06-16 09:39:55 -04:00
samkim-crypto 424c900345
bump solana to v1.10.19 (#3195)
* bump solana to v1.10.19

* update solana-version.sh
2022-05-25 08:40:30 +09:00
Jon Cinque c324f6c431
stake-pool: Handle force destaked accounts (#3152) 2022-05-19 19:08:50 +02:00
Dmitri Makarov 791cc8a776
Use target_os instead of target_arch for Solana conditional compilation (#3148) 2022-05-17 12:25:24 -07:00
Dmitri Makarov f1c1d440e9
Bump solana to v1.10.15 (#3176) 2022-05-17 11:27:30 -07: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
Tyera Eulberg b3fe5b6d5d
Bump token-2022 (#3113)
* Bump token-2022

* Bump solana dependencies
2022-04-26 12:15:26 -06:00
Bogdan Shumygora 9123a80a6a
Remove duplciate output of 'Stake Accounts' header (#3089) 2022-04-18 23:26:08 +02:00
Jon Cinque 1d1c2b178b
Upgrade crates to 1.10.8 (#3076) 2022-04-11 22:25:27 +02:00
Tyera Eulberg f4c5fdcfcf
Bump solana to v1.9.9 (#2902) 2022-02-23 16:20:55 -07:00
Alexander Ray 27a58282d3
stake-pool: add bindings to js (#2806)
* stake-pool:
add new bindings
  | 'IncreaseValidatorStake'
  | 'DecreaseValidatorStake'
  | 'UpdateValidatorListBalance'
  | 'UpdateStakePoolBalance'
  | 'CleanupRemovedValidatorEntries'

* stake-pool:
add new bindings
  | 'IncreaseValidatorStake'
  | 'DecreaseValidatorStake'
  | 'UpdateValidatorListBalance'
  | 'UpdateStakePoolBalance'
  | 'CleanupRemovedValidatorEntries'

* - merge upstream with local changes

* - merge package.json

* - update package.json

* - fix lint issues

* - fix lint issues

* - another lint fix

* - fix & try

* - force rebuild

* - merge from upstream

* fix lint issues

* - update package.json

* - add debug info to prettier

* - update prettier settings

* cleanup package json

* - refactor according PR suggestions

* - refactor

* - refactor

* - force pr action

* - fix withdraw stake issue

* - fix issue
2022-02-22 22:41:18 -05:00
Jon Cinque 58c1226a51
stake-pool: Bump version, add to Anchor (#2921) 2022-02-16 17:03:39 +01:00
Jon Cinque 1411d8b4fd
stake-pool: Option to use transfer + allocate + assign for PDA (#2920) 2022-02-16 16:22:46 +01:00
Alexander Ray d158bb150c
stake_pool: fix wrong available_for_withdrawal_wo_fee calculation (#2900)
* - fix wrong available_for_withdrawal_wo_fee calculation by prepare_withdraw_accounts

* - fix formatting

* - refactor

* - fix sub issue
2022-02-15 21:45:32 +01:00
Jon Cinque 4dbb4a5bb4
stake-pool-py: Add more waits to solidify tests (#2882) 2022-02-07 22:26:23 +01:00
Jon Cinque 37ba32f7c8
stake-pool-cli: Fix mismatched output fields (#2846) 2022-01-31 20:15:28 +01:00
Jon Cinque 32e77fb390
stake-pool-js: Bump version for release (#2832) 2022-01-29 00:39:28 +01:00
Kabir R b63d368b79
Add stake-pool browser build commands and documentation (#2804)
* Add browser build commands and documentation

* Improve rollup configuration

* Remove unused external import from rollup configuration

* Move from Babel to Typescript plugin

Co-authored-by: Jon Cinque <jon.cinque@gmail.com>
2022-01-28 19:15:51 +01:00
Jon Cinque c781067b2b
stake-pool-cli: Use old ATA creation instruction (#2819) 2022-01-27 17:50:22 +01:00
Michael Vines 6d62ea6cc7 Drop _program_id 2022-01-24 17:41:47 -08:00
Tyera Eulberg 83c3ffad25
Bump solana crates to v1.9.5 (#2780)
* Bump solana crates to v1.9.5

* Update sol_set_return_data type signature and un-ignore test
2022-01-21 22:52:10 -07:00
Jon Cinque 8ee35d74c1
stake-pool-cli / token-lending-cli: Sign after balance check (#2773) 2022-01-22 01:11:58 +01:00
Jon Cinque 78e7a9538e
associated-token-account: Bump dependent token version to 3.3 (#2766)
* associated-token-account: Bump dependent token version to 3.3

* Fix uses of deprecated instruction
2022-01-21 11:01:06 +01:00
Jon Cinque 81f50127f1
token: Bump version to 3.3.0 (#2765) 2022-01-21 01:47:02 +01:00
Jon Cinque 2e03106ae0
stake-pool-cli: Sign messages before checking fee (#2759) 2022-01-20 14:36:19 +01:00
Jon Cinque 2d770628ef
stake-pool-cli: Add best practices for fees, prevent zero fees (#2670)
* stake-pool-cli: Add best practices for fees, prevent zero fees

* Address feedback
2022-01-11 01:24:16 +01:00
Tyera Eulberg f4e0cae144
Fix up helper to create rent-exempt accounts (#2720) 2022-01-08 15:51:17 -07: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