Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit 4d43d38

Browse files
authored
Merge branch 'master' into feature-set-transfer-fee
2 parents 8dea843 + 46dacb6 commit 4d43d38

File tree

69 files changed

+2090
-2754
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2090
-2754
lines changed

Cargo.lock

Lines changed: 44 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

account-compression/programs/account-compression/Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "spl-account-compression"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "Solana Program Library Account Compression Program"
55
authors = ["Solana Labs Maintainers <[email protected]>"]
66
repository = "https://github.com/solana-labs/solana-program-library"
@@ -21,9 +21,7 @@ default = []
2121
anchor-lang = "0.29.0"
2222
bytemuck = "1.13"
2323
solana-program = ">=1.18.11,<=2"
24-
spl-concurrent-merkle-tree = { version = "0.3.0", path = "../../../libraries/concurrent-merkle-tree", features = [
25-
"sol-log",
26-
] }
24+
spl-concurrent-merkle-tree = { version = "0.3.0", path = "../../../libraries/concurrent-merkle-tree" }
2725
spl-noop = { version = "0.2.0", path = "../noop", features = ["no-entrypoint"] }
2826

2927
[profile.release]

account-compression/programs/account-compression/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
</a>
55
</p>
66

7-
# SPL Account Compression Rust SDK (Beta)
7+
# SPL Account Compression Rust SDK
88

99
More information about account compression can be found in [the solana-program-library repo](https://github.com/solana-labs/solana-program-library/tree/master/account-compression).
1010

11-
The [Solana Program Examples repo](https://github.com/solana-developers/program-examples) will eventually include examples of how to use this program.
12-
13-
`spl-account-compression` and this crate's implementation are targeted towards supporting [Metaplex Compressed NFTs](https://github.com/metaplex-foundation/metaplex-program-library/tree/master/bubblegum) and may be subject to change.
11+
`spl-account-compression` and this crate's implementation are targeted towards supporting [Metaplex Compressed NFTs](https://github.com/metaplex-foundation/mpl-bubblegum) and may be subject to change.

account-compression/programs/account-compression/src/concurrent_tree_wrapper.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ use {
2828
anchor_lang::prelude::*,
2929
};
3030

31+
#[inline(never)]
32+
pub fn merkle_tree_initialize_empty(
33+
header: &ConcurrentMerkleTreeHeader,
34+
tree_id: Pubkey,
35+
tree_bytes: &mut [u8],
36+
) -> Result<Box<ChangeLogEvent>> {
37+
merkle_tree_apply_fn_mut!(header, tree_id, tree_bytes, initialize,)
38+
}
39+
40+
#[inline(never)]
3141
pub fn merkle_tree_initialize_with_root(
3242
header: &ConcurrentMerkleTreeHeader,
3343
tree_id: Pubkey,
@@ -37,6 +47,7 @@ pub fn merkle_tree_initialize_with_root(
3747
merkle_tree_apply_fn_mut!(header, tree_id, tree_bytes, initialize_with_root, args)
3848
}
3949

50+
#[inline(never)]
4051
pub fn merkle_tree_set_leaf(
4152
header: &ConcurrentMerkleTreeHeader,
4253
tree_id: Pubkey,
@@ -46,6 +57,7 @@ pub fn merkle_tree_set_leaf(
4657
merkle_tree_apply_fn_mut!(header, tree_id, tree_bytes, set_leaf, args)
4758
}
4859

60+
#[inline(never)]
4961
pub fn merkle_tree_fill_empty_or_append(
5062
header: &ConcurrentMerkleTreeHeader,
5163
tree_id: Pubkey,
@@ -55,6 +67,7 @@ pub fn merkle_tree_fill_empty_or_append(
5567
merkle_tree_apply_fn_mut!(header, tree_id, tree_bytes, fill_empty_or_append, args)
5668
}
5769

70+
#[inline(never)]
5871
pub fn merkle_tree_prove_leaf(
5972
header: &ConcurrentMerkleTreeHeader,
6073
tree_id: Pubkey,
@@ -63,3 +76,13 @@ pub fn merkle_tree_prove_leaf(
6376
) -> Result<Box<ChangeLogEvent>> {
6477
merkle_tree_apply_fn!(header, tree_id, tree_bytes, prove_leaf, args)
6578
}
79+
80+
#[inline(never)]
81+
pub fn merkle_tree_append_leaf(
82+
header: &ConcurrentMerkleTreeHeader,
83+
tree_id: Pubkey,
84+
tree_bytes: &mut [u8],
85+
args: &[u8; 32],
86+
) -> Result<Box<ChangeLogEvent>> {
87+
merkle_tree_apply_fn_mut!(header, tree_id, tree_bytes, append, *args)
88+
}

0 commit comments

Comments
 (0)