-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from StockpileLabs/devnet
Add Stockpile Trusts
- Loading branch information
Showing
23 changed files
with
732 additions
and
47 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[package] | ||
name = "stockpile-trusts" | ||
version = "0.1.0" | ||
description = "Created with Anchor" | ||
edition = "2021" | ||
|
||
[lib] | ||
crate-type = ["cdylib", "lib"] | ||
name = "stockpile_trusts" | ||
|
||
[features] | ||
no-entrypoint = [] | ||
no-idl = [] | ||
no-log-ix-name = [] | ||
cpi = ["no-entrypoint"] | ||
default = [] | ||
|
||
[dependencies] | ||
anchor-lang = { version = "0.28.0", features = ["init-if-needed"] } | ||
anchor-spl = "0.28.0" | ||
klend = "0.1.0" | ||
stockpile-v2 = { path = "../stockpile-v2", features = ["cpi"]} |
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,15 @@ | ||
use anchor_lang::prelude::*; | ||
|
||
#[error_code] | ||
pub enum VaultError { | ||
|
||
#[msg("Attempting to withdraw from vault with account that is not the authority")] | ||
WrongVaultAuthority, | ||
|
||
#[msg("The project account provided is invalid")] | ||
ProjectAccountInvalid, | ||
|
||
#[msg("This mint is not current supported")] | ||
MintNotSupported, | ||
|
||
} |
File renamed without changes.
Oops, something went wrong.