Skip to content

feat: opt ctoken #1844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
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
465 changes: 463 additions & 2 deletions program-tests/compressed-token-test/tests/test.rs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions programs/compressed-token/src/constants.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// 1 in little endian (for compressed mint accounts)
pub const COMPRESSED_MINT_DISCRIMINATOR: [u8; 8] = [1, 0, 0, 0, 0, 0, 0, 0];
// 2 in little endian
pub const TOKEN_COMPRESSED_ACCOUNT_DISCRIMINATOR: [u8; 8] = [2, 0, 0, 0, 0, 0, 0, 0];
pub const BUMP_CPI_AUTHORITY: u8 = 254;
Expand Down
Loading
Loading