-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e619e4d
commit c5af7a7
Showing
7 changed files
with
579 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "spl-token-group-interface" | ||
version = "0.1.0" | ||
description = "Solana Program Library Token Group Interface" | ||
authors = ["Solana Labs Maintainers <[email protected]>"] | ||
repository = "https://github.com/solana-labs/solana-program-library" | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
bytemuck = "1.14.0" | ||
solana-program = "1.16.3" | ||
spl-discriminator = { version = "0.1.0" , path = "../../libraries/discriminator" } | ||
spl-pod = { version = "0.1.0" , path = "../../libraries/pod", features = ["borsh"] } | ||
spl-program-error = { version = "0.3.0" , path = "../../libraries/program-error" } | ||
|
||
[dev-dependencies] | ||
spl-type-length-value = { version = "0.3.0", path = "../../libraries/type-length-value", features = ["derive"] } | ||
|
||
[lib] | ||
crate-type = ["cdylib", "lib"] | ||
|
||
[package.metadata.docs.rs] | ||
targets = ["x86_64-unknown-linux-gnu"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
//! Interface error types | ||
|
||
use spl_program_error::*; | ||
|
||
/// Errors that may be returned by the interface. | ||
#[spl_program_error] | ||
pub enum TokenGroupError { | ||
/// Size is greater than proposed max size | ||
#[error("Size is greater than proposed max size")] | ||
SizeExceedsNewMaxSize, | ||
/// Size is greater than max size | ||
#[error("Size is greater than max size")] | ||
SizeExceedsMaxSize, | ||
} |
Oops, something went wrong.