Skip to content

Commit

Permalink
v2.0: stake-program: MoveStake and MoveLamports (backport of #1415)…
Browse files Browse the repository at this point in the history
… (#1928)

stake-program: `MoveStake` and `MoveLamports` (#1415)

implement two new instructions for moving delegated stake and undelegated lamports, respectively, between accounts with the same Authorized and Lockup using the Staker authority

(cherry picked from commit 361ade4)

Co-authored-by: hana <81144685+2501babe@users.noreply.github.com>
  • Loading branch information
mergify[bot] and 2501babe authored Jul 17, 2024
1 parent b57b883 commit 792c5d6
Show file tree
Hide file tree
Showing 9 changed files with 1,821 additions and 1 deletion.
13 changes: 13 additions & 0 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ members = [
"programs/ed25519-tests",
"programs/loader-v4",
"programs/stake",
"programs/stake-tests",
"programs/system",
"programs/vote",
"programs/zk-elgamal-proof",
Expand Down
26 changes: 26 additions & 0 deletions programs/stake-tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This package only exists to avoid circular dependencies during cargo publish:
# solana-program-test <--> solana-stake-program

[package]
name = "solana-stake-program-tests"
publish = false
version = { workspace = true }
authors = { workspace = true }
repository = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
edition = { workspace = true }

[dev-dependencies]
assert_matches = { workspace = true }
bincode = { workspace = true }
solana-program-test = { workspace = true }
solana-sdk = { workspace = true }
solana-vote-program = { workspace = true }
test-case = { workspace = true }

[build-dependencies]
rustc_version = { workspace = true }

[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
Loading

0 comments on commit 792c5d6

Please sign in to comment.