Releases: solana-labs/solana-program-library
Releases · solana-labs/solana-program-library
SPL Name Service - v0.2.0
New Features
- allow parent name owner to update records (fb94974)
SPL Stake Pool and CLI - v0.6.3
Note: in order to keep the CLI and program at the same version number, 0.6.2 has been skipped for the spl-stake-pool
crate.
This release is completely backwards compatible with 0.6.1.
Summary of Changes
CLI
- Improve deposit and withdraw UX
- Add validator list as optional argument on creation
- Bugfixes on withdrawal and funding authority
Program
- Reduce wait time when merging active stakes
- Assess stake deposit fee more accurately
- Force pools to only work with the SPL Token program
- Set all deposit authorities on pool initialization
- Clarify errors and field initializations
- Remove copied code from the stake program
SPL Stake Pool and CLI - v0.6.1
Summary of changes
Program
Add last_epoch_total_lamports
and last_epoch_pool_token_supply
fields on
the stake pool. These fields are updated every epoch with the previous epoch's
values, to facilitate APR calculations in wallets.
The basic calculation goes:
let pool_token_value = stake_pool.total_lamports as f64 / stake_pool.pool_token_supply as f
64;
let last_epoch_pool_token_value = stake_pool.last_epoch_total_lamports as f64 / stake_pool.
last_epoch_pool_token_supply as f64;
let epoch_rate = pool_token_value / last_epoch_pool_token_value - 1.0;
const SECONDS_PER_EPOCH: f64 = DEFAULT_SLOTS_PER_EPOCH as f64 * DEFAULT_S_PER_SLOT;
const EPOCHS_PER_YEAR: f64 = SECONDS_PER_DAY as f64 * 365.25 / SECONDS_PER_EPOCH;
let yearly_estimated_rate = epoch_rate * EPOCHS_PER_YEAR;
SPL Stake Pool and CLI - v0.6.0
Summary of changes
Note: version 0.6.0 is not backwards compatible with version 0.5.0
Program
- (User) Add
WithdrawSol
instruction for users to withdraw SOL from the stake pool's reserve - (Manager) Can set a sol withdrawal fee
- (Manager) Can set a sol withdrawal authority, which must sign withdrawals from the reserve
CLI
- Compatibility with program version 0.6.0
- Add
withdraw-sol
command - Rename
set-deposit-authority
toset-funding-authority
- Rename deposit authorities from
stake
/sol
tostake-deposit
/sol-deposit
/sol-withdraw
- Add
sol-withdrawal
fee type
SPL Stake Pool and CLI - v0.5.0
Summary of changes
Note: version 0.5.0 is not backwards compatible with version 0.4
Program
- Reduce minimum amount of active stake per validator from 1 SOL down to 0.001 SOL
- Add liquid staking instruction to allow instant participation in a stake pool
- Add more fees for greater manager control: liquid SOL deposit, stake deposit, and withdraw
- Condense create and add validator into one step, simplifying pool management
- Enhance security
- Update to Solana SDK 1.7.11 and Rust 1.54.0
- Program id now deployed at
SPoo1Ku8WFXoNDMHPsrGSTSG1Y47rzgn41SLUNakuHy
CLI
- Compatibility with program version 0.5.0
- Clarify output on
list
- Add
list-all
instruction to get all stake pools
@solana/spl-token v0.1.8
@solana/[email protected] Bump version to 0.1.8
SPL Token - v3.2.0
Summary of changes
- New
SyncNative
instruction, used to sync a wrapped SOL token account with its underlying lamports. This way, it's possible to use asystem_instruction::transfer
from a system account to a wrapped SOL account, followed byspl_token::sync_native
in order to reflect the transfer - Changes when setting a new authority
- Update to Solana SDK 1.7.4
SPL Associated Token Program - v1.0.3
Compatibility with spl-token v3.2.0
SPL Stake Pool and CLI - v0.4.0
Summary of changes
Note: version 0.4.0 is not backwards compatible with version 0.3
Program
- Support for up to 4000 validators in a stake pool
- Update to Solana SDK 1.7.4
CLI
- Fixes for specifying different signers
- Clearer output on deposit, withdraw, add validator, and remove validator
SPL Name Service - v0.1.1
name-service-v0.1.1 Bump spl-name-service version to 0.1.1