-
Notifications
You must be signed in to change notification settings - Fork 36
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
Showing
25 changed files
with
2,506 additions
and
395 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
Large diffs are not rendered by default.
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,4 @@ | ||
use anchor_lang::prelude::constant; | ||
|
||
#[constant] | ||
pub const SEED_PREFIX_TBTC_MINT: &[u8] = b"tbtc-mint"; |
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,8 @@ | ||
use anchor_lang::prelude::error_code; | ||
|
||
#[error_code] | ||
pub enum TbtcError { | ||
IsPaused, | ||
IsNotPaused, | ||
IsNotAuthority, | ||
} |
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,21 @@ | ||
use anchor_lang::prelude::*; | ||
|
||
#[event] | ||
pub struct MinterAdded { | ||
pub minter: Pubkey, | ||
} | ||
|
||
#[event] | ||
pub struct MinterRemoved { | ||
pub minter: Pubkey, | ||
} | ||
|
||
#[event] | ||
pub struct GuardianAdded { | ||
pub guardian: Pubkey, | ||
} | ||
|
||
#[event] | ||
pub struct GuardianRemoved { | ||
pub guardian: Pubkey, | ||
} |
Oops, something went wrong.