solana/sdk/program/src
HaoranYi d25d53e979
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 <haoran.yi@solana.com>
2023-09-25 16:35:40 -05:00
..
address_lookup_table Refactor - Move interfaces of address-lookup-table into the program SDK (#33165) 2023-09-11 21:10:40 +02:00
alt_bn128 Feat(syscall): add altbn128 g1 & g2 compression (#32870) 2023-09-25 05:43:34 -07:00
message Refactor - Move interfaces of address-lookup-table into the program SDK (#33165) 2023-09-11 21:10:40 +02:00
nonce removes manual implementations of Default for enums (#29779) 2023-01-19 19:25:30 +00:00
stable_layout Adds stable layout types to pass to the runtime (#30192) 2023-02-16 08:16:25 -05:00
stake Fix bug of same-epoch stake deactivation after stake redelegation (#32606) 2023-09-25 16:35:40 -05:00
syscalls Feat(syscall): add altbn128 g1 & g2 compression (#32870) 2023-09-25 05:43:34 -07:00
sysvar Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
vote bump rust stable to 1.72.1 (#33333) 2023-09-20 23:53:36 -06:00
wasm deprecates Pubkey::new in favor of Pubkey::{,try_}from (#29805) 2023-01-21 18:06:27 +00:00
account_info.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
atomic_u64.rs
big_mod_exp.rs Big integer modular exponentiation (EIP-198) (#28503) 2023-01-20 18:42:37 +09:00
blake3.rs
borsh.rs sdk: Limited Borsh 0.9 support (Pubkey and helpers) (#32511) 2023-08-02 23:15:24 +02:00
borsh0_9.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
borsh0_10.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
bpf_loader.rs
bpf_loader_deprecated.rs
bpf_loader_upgradeable.rs Fix CI (#33139) 2023-09-05 18:01:20 +00:00
clock.rs Prune redundant const SLOT_MS (#29278) 2022-12-16 08:05:09 -08:00
compute_units.rs sdk, programs/bpf_loader: add sol_remaining_compute_units syscall (#31640) 2023-09-13 08:57:08 -06:00
debug_account_data.rs patches errors from clippy::uninlined_format_args 2022-12-06 19:32:15 +00:00
decode_error.rs
ed25519_program.rs
entrypoint.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
entrypoint_deprecated.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
epoch_rewards.rs Make should_panic tests compatible with 1.73+ panic format (#33099) 2023-09-01 02:04:22 +00:00
epoch_schedule.rs clippy for rust 1.65.0 (#28765) 2022-11-09 19:39:38 +00:00
example_mocks.rs Refactor - Move interfaces of address-lookup-table into the program SDK (#33165) 2023-09-11 21:10:40 +02:00
feature.rs
fee_calculator.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
hash.rs Derives Pod and Zeroable on Hash (#33256) 2023-09-15 07:27:30 -04:00
incinerator.rs
instruction.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
keccak.rs
lamports.rs
last_restart_slot.rs Simd 47 syscall sysvar last restart slot (#31957) 2023-06-16 20:14:02 +00:00
lib.rs sdk, programs/bpf_loader: add sol_remaining_compute_units syscall (#31640) 2023-09-13 08:57:08 -06:00
loader_instruction.rs
loader_upgradeable_instruction.rs Add SetAuthorityChecked instruction to bpf loader (#28424) 2022-11-01 08:34:04 +00:00
loader_v4.rs Processors to compile and send LoaderV4 CLI commands (#33228) 2023-09-18 06:43:33 -07:00
loader_v4_instruction.rs Refactor - Loader-v4 grows accounts with "truncate" not "write" (#33054) 2023-08-31 00:44:58 +02:00
log.rs
native_token.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
poseidon.rs feat(sbf): Add Poseidon syscall (#32680) 2023-08-30 09:43:31 -07:00
program.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
program_error.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
program_memory.rs chore: update Solana docs and code comments that specify "BPF" to "SBF" 2022-10-31 14:14:25 -04:00
program_option.rs chore: update Solana docs and code comments that specify "BPF" to "SBF" 2022-10-31 14:14:25 -04:00
program_pack.rs
program_stubs.rs sdk, programs/bpf_loader: add sol_remaining_compute_units syscall (#31640) 2023-09-13 08:57:08 -06:00
program_utils.rs
pubkey.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
rent.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
sanitize.rs
secp256k1_program.rs
secp256k1_recover.rs chore: update Solana docs and code comments that specify "BPF" to "SBF" 2022-10-31 14:14:25 -04:00
serde_varint.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
serialize_utils.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
short_vec.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
slot_hashes.rs
slot_history.rs Upgrades Rust to 1.72.0 & nightly-2023-08-25 (#32961) 2023-09-01 07:26:13 +00:00
stable_layout.rs Adds stable layout types to pass to the runtime (#30192) 2023-02-16 08:16:25 -05:00
stake_history.rs
system_instruction.rs Bump borsh to 0.10.3 (#30975) 2023-05-30 23:33:21 +02:00
system_program.rs Add docs for system_instruction and some of its functions (#28052) 2022-11-01 14:33:46 -06:00