2020-10-16 10:38:12 -07:00
|
|
|
#![deny(missing_docs)]
|
|
|
|
|
|
|
|
//! A program for creating pools of Solana stakes managed by a Stake-o-Matic
|
|
|
|
|
|
|
|
pub mod error;
|
|
|
|
pub mod instruction;
|
|
|
|
pub mod processor;
|
|
|
|
pub mod stake;
|
|
|
|
pub mod state;
|
|
|
|
|
Stake pool: adding pool balance confirmation (Redo of #960) (#1116)
* Added validator stake account list storage, deprecated old tests
* Added join and leave stake pool instructions, error messages refactoring
* Stake pool tests refactoring, tests for join and leave pool added
* Added validator stake account creation instruction, join/leave pool instructions renamed, version field added
* Formatting fixes
* Added update list/pool instructions (no tests yet), updated deposit instruction logic, claim instruction removed, refactoring
* Updated deposit logic and tests, updated withdraw logic and added tests, refactoring
* Stake pool CLI updated to work with new deposit/withdraw instructions, claim usage removed
* Added validator stake account management and balance update commands to the stake pool CLI, updated dependency versions, updated devnet program address
* Merge conflicts fixed
* Removed deprecated tests
* Fixes for review comments
* Additional program id checks across the code
* Formatting errors fixed
* Changed minimum stake balance in CLI, removed deprecated tests, removed check for stake history id
* Added TODO for stake account warmup status check
* Cargo.lock conflict fix
* Formatting fixed
* Update Cargo lock file for CI
* Pin themis version of subtle
Co-authored-by: Yuriy Savchenko <yuriy.savchenko@gmail.com>
2021-01-21 05:48:46 -08:00
|
|
|
/// Current program version
|
|
|
|
pub const PROGRAM_VERSION: u8 = 1;
|
|
|
|
|
2020-11-03 09:33:32 -08:00
|
|
|
#[cfg(not(feature = "no-entrypoint"))]
|
2020-10-22 21:44:27 -07:00
|
|
|
pub mod entrypoint;
|
|
|
|
|
|
|
|
// Export current sdk types for downstream users building with a different sdk version
|
|
|
|
pub use solana_program;
|
2020-10-16 10:38:12 -07:00
|
|
|
|
2021-02-22 15:28:06 -08:00
|
|
|
solana_program::declare_id!("poo1B9L9nR3CrcaziKVYVpRX6A9Y1LAXYasjjfCbApj");
|