Commit 5ea4e9b
interface: Add stake files from sdk with history (#12)
* Initial population of solana-program-sdk
* Refactor stake program into solana_program (#17906)
* Move stake state / instructions into solana_program
* Update account-decoder
* Update cli and runtime
* Update all other parts
* Commit Cargo.lock changes in programs/bpf
* Update cli stake instruction import
* Allow integer arithmetic
* Update ABI digest
* Bump rust mem instruction count
* Remove useless structs
* Move stake::id() -> stake::program::id()
* Re-export from solana_sdk and mark deprecated
* Address feedback
* Run cargo fmt
* chore: cargo +nightly clippy --fix -Z unstable-options
* Add vote/stake checked instructions
* Eliminate doc warnings and fix some markdown (#18566)
* Fix link target in doc comment
* Fix formatting of log examples in process_instruction
* Fix doc markdown in solana-gossip
* Fix doc markdown in solana-runtime
* Escape square braces in doc comments to avoid warnings
* Surround 'account references' doc items in code spans to avoid warnings
* Fix code block in loader_upgradeable_instruction
* Fix doctest for loader_upgradable_instruction
* stake: Remove v2 program references (#19308)
* stake: Remove v2 program references
* Remove stake v2 feature, along with stake rewrite
* stake: Add BorshDeserialize trait to structs (#19958)
* Add struct and convenience methods to track stake activation status (#20392)
* Add struct and convenience methods to track stake activation status
* fix nits
* rename
* stake: Add `BorshSerialize` trait to structs (#20784)
* Pass Epoch by value in StakeHistory::get() (#21523)
* Reformat imports to a consistent style for imports
rustfmt.toml configuration:
imports_granularity = "One"
group_imports = "One"
* Remove active features stake program v3 and v4 (#22612)
Co-authored-by: Jon Cinque <[email protected]>
* Remove rewrite_rent_exempt_reserve() (#22741)
* Add MINIMUM_STAKE_DELEGATION constant (#23259)
Co-authored-by: Tyera Eulberg <[email protected]>
* Add GetMinimumDelegation stake program instruction (#24020)
* Un-deprecate `MINIMUM_STAKE_DELEGATION` (#24089)
* Add convenience function for programs to get minimum delegation (#24175)
* Add StakeInstruction::DeactivateDelinquent
* Deprecate `MINIMUM_STAKE_DELEGATION` (#24329)
* Add const fn StakeState::size_of and static assertion (#24416)
* And short descriptions to all solana-program modules and macros. (#24128)
* And short descriptions to all solana-program modules and macros.
Also fill out some of the docs within these modules.
* Update sdk/program/src/lib.rs
Co-authored-by: Tyera Eulberg <[email protected]>
* Update sdk/program/src/sanitize.rs
Co-authored-by: Tyera Eulberg <[email protected]>
* Update sdk/program/src/pubkey.rs
Co-authored-by: Tyera Eulberg <[email protected]>
* Update sdk/program/src/program_memory.rs
Co-authored-by: Tyera Eulberg <[email protected]>
* Update sdk/program/src/program_memory.rs
Co-authored-by: Tyera Eulberg <[email protected]>
* Update sdk/program/src/program_memory.rs
Co-authored-by: Tyera Eulberg <[email protected]>
* Update sdk/program/src/program_memory.rs
Co-authored-by: Tyera Eulberg <[email protected]>
* Update sdk/program/src/program_memory.rs
Co-authored-by: Tyera Eulberg <[email protected]>
* Update hash module docs
* Make solana-program crate docs match Pubkey docs
* Update sdk/program/src/program_memory.rs
Co-authored-by: Tyera Eulberg <[email protected]>
* Remove StakeState::get_rent_exempt_reserve()
* Fix derive_partial_eq_without_eq clippy lint
* Add new error if stake delegation is below the minimum (#25709)
* Add StakeInstruction::Redelegate
* Rust v1.63.0 (#27148)
* Upgrade to Rust v1.63.0
* Add nightly_clippy_allows
* Resolve some new clippy nightly lints
* Increase QUIC packets completion timeout
Co-authored-by: Michael Vines <[email protected]>
* Revert "Rust v1.63.0 (#27148)" (#27245)
This reverts commit f48ca035dbc3aa82ef42e100b97fffbe72015ac4.
* Rust v1.63 (#27303)
* Upgrade to Rust v1.63.0
* Add nightly_clippy_allows
* Resolve some new clippy nightly lints
* Increase QUIC packets completion timeout
* Update quinn-udp crate
Co-authored-by: Michael Vines <[email protected]>
* removes manual implementations of Default for enums (#29779)
* Bump borsh to 0.10.3 (#30975)
* Bump borsh to 0.10.3
transaction-status relies on SPL which still requires borsh 0.9, so
until SPL also gets updated that package alone will use an older version of
borsh.
* ci: Temporarily disable spl and openbook-dex builds
* Add stake flags struct (#32521)
Co-authored-by: HaoranYi <[email protected]>
* Add RedelegatedStakeMustFullyActivateBeforeDeactivationIsPermitted StakeError (#32522)
Co-authored-by: HaoranYi <[email protected]>
* Add stake_flags to stake state (#32524)
add stake_flags to stake state
Co-authored-by: HaoranYi <[email protected]>
* sdk: Limited Borsh 0.9 support (Pubkey and helpers) (#32511)
* sdk: Implement Borsh 0.9 traits on Pubkey
* Alphabetize cargo.toml
* Add backwards-compatible borsh file
* Add borsh0_10.rs for more clarity
* Deprecate `borsh` utils, use borsh0_10 everywhere
* Mark borsh 0.9 helpers as deprecated
* Add macros for deriving helper impls
* Add borsh 0.9 tests
* Refactor tests into macro
* stake: deprecate on chain warmup/cooldown rate and config (#32723)
* stake: deprecate on chain warmup/cooldown rate and config
* Pr feedback: Deprecate since 1.16.7
Co-authored-by: Jon Cinque <[email protected]>
---------
Co-authored-by: Jon Cinque <[email protected]>
* sdk: Add new version of `StakeState` to avoid breaking downstream users (#32736)
* sdk: Rename `StakeState` -> `StakeStateWithFlags`
* Add back `StakeFlags` with a deprecation warning
* stake: Set the Delegation's warmup / cooldown to the correct default (#32768)
* stake: pub use config constants for api backwards compatibility (#32769)
* stake: pub use config constants for api backwards compatibility
* Add deprecate
Co-authored-by: Trent Nelson <[email protected]>
---------
Co-authored-by: Trent Nelson <[email protected]>
* stake: Rename `StakeStateWithFlags` -> `StakeStateV2` (#32795)
* Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961)
* allow pedantic invalid cast lint
* allow lint with false-positive triggered by `test-case` crate
* nightly `fmt` correction
* adapt to rust layout changes
* remove dubious test
* Use transmute instead of pointer cast and de/ref when check_aligned is false.
* Renames clippy::integer_arithmetic to clippy::arithmetic_side_effects.
* bump rust nightly to 2023-08-25
* Upgrades Rust to 1.72.0
---------
Co-authored-by: Trent Nelson <[email protected]>
* Fix bug of same-epoch stake deactivation after stake redelegation (#32606)
* fix stake deactivation in the same epoch after redelegation bug
add tests
refactor common code into fn
avoid early return
add feature gate for the new stake redelegate behavior
move stake tests out of cli
add stake-program-test crate
reimplemnt stake test with program-test
remove stake-program-test crate
reviews
add setup.rs
remove clippy
reveiws
* reviews
* review comments
---------
Co-authored-by: HaoranYi <[email protected]>
* Removes unnecessary #[allow(dead_code)] in stake flags (#34322)
* sdk: Upgrade to borsh 1.2.1 (#34355)
* sdk: Update to borsh 1, revert borsh 0.9 / 0.10
* Restore borsh 0.10 and 0.9 support
* Update sbf lockfile
* Add borsh 0.10 implementations for stake types
* Fix weirdness on whitespace
* Update to borsh 1.2.1
* Update changelog
* compute-budget: Move `pack` under dev-context-only-utils
* Revert test to use HashMap
* transaction-status: Add comment about borsh version
* refactor: optional `stake_history` arg is never `None` (#34556)
refactor: optional stake_history arg is never none
* [docs] updated readme and fix links (#34565)
* feat: updated readme
* fix: updated links
* fix: proposal links
* fix: more links
* fix: json-rpc links
* fix: more links
* fix: zk links
* fix: managing forks
* fix: links for deprecated methods
* Use static memory layout for all sysvars (#249)
Co-authored-by: Richard Patel <[email protected]>
* ff cleanup: reduce_stake_warmup_cooldown (#470)
* ff cleanup: reduce_stake_warmup_cooldown
* update instruction comments to indicate stake config is unused
* Check EpochRewards::active within the Stake Program (#617)
* Add new StakeError variant
* Add closure to return error if EpochRewards::active
* Use error_during_epoch_rewards for Instructions that mutate stake accounts
* Use try instead of manually matching Ok/Err
* Consolidate error_during_epoch_rewards check
* Add new test helper
* Add test demonstrating which ix return StakeError::EpochRewardsActive
* Remove single-use fn
* Removes deprecated MINIMUM_STAKE_DELEGATION (#963)
* Add StakeError index comments (#1012)
* solana-program: Make frozen-abi optional (#1222)
* make frozen-abi optional in solana-program
* fix syntax error
* activate solana-program's frozen-abi feature in dev deps of program and sdk
* undo putting solana-program itself in solana-program dev deps
* add missing whitespace
Co-authored-by: Tyera <[email protected]>
---------
Co-authored-by: Tyera <[email protected]>
* clippy: fix legacy_numeric_constants (#1314)
clippy: legacy_numeric_constants
* solana-program: stake to program error (#1580)
implement ProgramError conversion for StakeError
* Make borsh optional in sdk and program crates (#1576)
* make borsh optional in sdk and program
* fmt
* don't include borsh in dev-context-only-utils
* stake-program: `MoveStake` and `MoveLamports` (#1415)
implement two new instructions for moving delegated stake and undelegated lamports, respectively, between accounts with the same Authorized and Lockup using the Staker authority
* solana-program: `StakeHistorySyscall` and `get_entry` (#1404)
* Extract decode-error from solana-program (#1813)
* extract decode-error crate
* update decode_error dependents and re-export in sdk and program
* fmt
* fix bad import after rebase
* stake: Remove redelegate instruction (#2213)
* stake: Remove redelegate code and tests
* Mark stake flags as deprecated
* Remove usage of feature gate
* Add a changelog entry for the removal
* Remove repeated #[allow(deprecated)]s
* Re-add "redelegate-stake" command
* Remove feature
* Make CI happy -> `hidden_unless_forced()`
* fix: remove expensive versioned epoch stakes clone (#2453)
* fix: remove expensive versioned epoch stakes clone
* Add custom partialeq impl for dcou
* fix: borrow stakes delegation during snapshot serialization (#2455)
* Improve type safety in stake state module (#2482)
* improve type safety in stake state module
* feedback
* fix new method
* sdk: Extract clock crate (#1967)
* extract clock crate
* update clock usage in solana-program
* fmt
* fmt after rebase
* update lock file after rebase
* fmt after rebase
* fmt after rebase
* fmt
* make serde optional in solana-clock
* fix description
Co-authored-by: Jon C <[email protected]>
* fix docs link
Co-authored-by: Jon C <[email protected]>
* fix accidental deletions from workspace members table
---------
Co-authored-by: Jon C <[email protected]>
---------
Co-authored-by: Michael Vines <[email protected]>
Co-authored-by: Jon Cinque <[email protected]>
Co-authored-by: Alexander Meißner <[email protected]>
Co-authored-by: Brian Anderson <[email protected]>
Co-authored-by: Justin Starry <[email protected]>
Co-authored-by: Brooks Prumo <[email protected]>
Co-authored-by: Brooks Prumo <[email protected]>
Co-authored-by: Tyera Eulberg <[email protected]>
Co-authored-by: Brennan Watt <[email protected]>
Co-authored-by: behzad nouri <[email protected]>
Co-authored-by: Kevin Ji <[email protected]>
Co-authored-by: HaoranYi <[email protected]>
Co-authored-by: HaoranYi <[email protected]>
Co-authored-by: Jon Cinque <[email protected]>
Co-authored-by: Ashwin Sekar <[email protected]>
Co-authored-by: Trent Nelson <[email protected]>
Co-authored-by: Trent Nelson <[email protected]>
Co-authored-by: Justin Starry <[email protected]>
Co-authored-by: Nick Frostbutter <[email protected]>
Co-authored-by: ripatel-fd <[email protected]>
Co-authored-by: Richard Patel <[email protected]>
Co-authored-by: Ashwin Sekar <[email protected]>
Co-authored-by: Tyera <[email protected]>
Co-authored-by: Brooks <[email protected]>
Co-authored-by: Kevin Heavey <[email protected]>
Co-authored-by: Yihau Chen <[email protected]>
Co-authored-by: hana <[email protected]>
Co-authored-by: Justin Starry <[email protected]>1 parent d5dd6f7 commit 5ea4e9b
File tree
7 files changed
+2728
-0
lines changed- interface/src
7 files changed
+2728
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments