Releases: solana-labs/solana-program-library
SPL Governance - v2.2.2
Summary
- Native SOL Treasuries
- Multi choice and survey style proposals
voter_weight
andmax_voter_weight
addins- Multiple instructions per proposal transaction
- Configurable tipping point (
Strict
,Early
,Disabled
) - Owner signed off proposals
realm_authority
can create governances- Program
metadata
and version detection - Custom deposit amount for governance tokens
Verification
The program binary can be verified using Anchor
verifiable build
$ cd governance/program
$ anchor verify GovER5Lthms3bLBqWub97yVrMmEogzX7xNjdXpPPCVZw
SPL Associated Token Program - v1.0.5
Summary
- Restore rent sysvar to
create_associated_token_account
for backward compatibility
Verify
NOTE: This version is now out of date, so verification against mainnet will fail. The instructions are left here for informational purposes only.
Program verification uses the Anchor command-line interface, which can be installed by following the documentation.
The verification process builds the program in an Ubuntu container which contains the Solana CLI tools and its dependencies. More information can be found on the verifiable builds documentation.
From associated-token-account/program
, run:
$ anchor verify --solana-version 1.9.5 -b debian -d ubuntu:20.04 --provider.cluster devnet ATaYDmFSp5AgaJRGUcHeys4uF1wzCroXPeDgT7AcU82L
SPL Token - v3.3.0
Summary of changes
- Explicitly zeroize all account data on close #2763
- Update to Solana SDK 1.9.2
Release
The program was released under feature flag Ftok2jhqAqxUWEiCVRrfRs9DPppWP8cgTB7NQNKL88mS
, enabled on slot 117010679: https://explorer.solana.com/address/Ftok2jhqAqxUWEiCVRrfRs9DPppWP8cgTB7NQNKL88mS
Verification
NOTE: This version is now out of date, so verification will not work against mainnet. The instructions are left for informational purposes.
Program verification uses the Anchor command-line interface, which can be installed by following the documentation.
The verification process builds the program in an Ubuntu container which contains the Solana CLI tools and its dependencies. More information can be found on the verifiable builds documentation.
In order to verify the program, please check out this tag, then run:
$ cd token/program
$ anchor verify --solana-version 1.9.2 --bootstrap debian --docker-image ubuntu:20.04 --provider.cluster mainnet TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
This will take a couple of minutes, and then finally output:
Build success
TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA is verified.
Note: the actual crate versions are still at version 3.2.0 in order to preserve verifiability. The actual version bump and release was done from #2765
SPL Associated Token Program - v1.0.4
Summary of changes
- Use
InitializeAccount3
, which does not require the rent sysvar to be explicitly passed in - Compatibility with spl-token v3.3.0
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