Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions Anchor.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[toolchain]
anchor_version = "0.29.0"
# solana_version = "1.16.9" # Solana version to use

[features]
seeds = false
skip-lint = false

[programs.devnet]
# staking="67Ypf1ZfxRDvW3eKMcV1h6s9y7jfFyNJ5yWqMDDJ3Zvs"
merkle_distributor="GVHsT5QaxEYjrSDt7bLGiQJ8xyzS2PD8byVVkcZUBsVR"
staking="67Ypf1ZfxRDvW3eKMcV1h6s9y7jfFyNJ5yWqMDDJ3Zvs"
# merkle_distributor="GVHsT5QaxEYjrSDt7bLGiQJ8xyzS2PD8byVVkcZUBsVR"
# restaking = "8n3FHwYxFgQCQc2FNFkwDUf9mcqupxXcCvgfHbApMLv3"
# restaking_v2 = "H69iS4rPnrRAMciLJcpEY3tRtFro7Mo7a2YAU8Q1busv"
# solana_ibc = "2HLLVco5HvwWriNbUhmVwA2pCetRkpgrqwnjcsZdyTKT"
Expand All @@ -24,8 +26,8 @@ cluster = "Devnet"
wallet = "/Users/mykyta/.config/solana/id.json"

[workspace]
members = ["solana/merkle-distributor"]
# members = ["solana/staking/programs/staking", "solana/merkle-distributor"]
# members = ["solana/merkle-distributor"]
members = ["solana/staking/programs/staking"]

[scripts]
test = "./solana-test.sh"
Expand Down
60 changes: 0 additions & 60 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion solana/merkle-distributor/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ path = "src/lib.rs"
[features]
no-entrypoint = []
cpi = ["no-entrypoint"]
idl-build = ["anchor-lang/idl-build"]
# idl-build = ["anchor-lang/idl-build"]

[dependencies]
anchor-lang = { workspace = true, features = ["init-if-needed"]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ impl PageAccount {
pub const LEN: usize = 8 + std::mem::size_of::<PageAccount>() + PageVestingItem::LEN * 200;
}

#[derive(Clone, Debug, Default, PartialEq, Eq, borsh::BorshSerialize, borsh::BorshDeserialize)]
#[account]
pub struct PageVestingItem {
pub claimant: Pubkey,
pub amount_unlocked: u64,
Expand Down
3 changes: 1 addition & 2 deletions solana/staking/programs/staking/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = []
idl-build = ["anchor-lang/idl-build", "anchor-spl/idl-build"]

[dependencies]
anchor-lang = { workspace = true, features = ["init-if-needed"] }
anchor-spl = { workspace = true, features = ["metadata"] }
solana-ibc = { workspace = true, features = ["cpi"] }
merkle-distributor = { workspace = true, features = ["cpi"] }
solana-program.workspace = true
solana-signature-verifier.workspace = true
pyth-solana-receiver-sdk.workspace = true

[dev-dependencies]
anchor-client.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions solana/staking/programs/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ pub struct CommonStateStakingMode1 {
pub new_admin_proposal: Option<Pubkey>,
}

#[derive(Clone, Debug, Default, PartialEq, Eq, borsh::BorshSerialize, borsh::BorshDeserialize)]
#[account]
pub struct EpochState {
pub epoch_number: u64,
pub total_stake_amount: u64,
Expand Down Expand Up @@ -1673,7 +1673,7 @@ impl LSTStakeState {
}


#[derive(Clone, Debug, Default, PartialEq, Eq, borsh::BorshSerialize, borsh::BorshDeserialize)]
#[account]
pub struct StakerState {
pub timestamp: i64,
pub amount: u64,
Expand Down
Loading