-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
solana: Allow transferring mint authority (#570)
* Add one step transfer ix: `set_token_authority_one_step_unchecked` * Add two step version: `set_token_authority` and `claim_token_authority` (and `revert_token_authority` to reset authority back to `token_authority`) * `createSetTokenAuthorityInstruction` helper function in NTT namespace * Update IDL
- Loading branch information
Showing
7 changed files
with
1,118 additions
and
11 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
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
13 changes: 13 additions & 0 deletions
13
solana/programs/example-native-token-transfers/src/pending_token_authority.rs
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,13 @@ | ||
use anchor_lang::prelude::*; | ||
|
||
#[account] | ||
#[derive(InitSpace)] | ||
pub struct PendingTokenAuthority { | ||
pub bump: u8, | ||
pub pending_authority: Pubkey, | ||
pub rent_payer: Pubkey, | ||
} | ||
|
||
impl PendingTokenAuthority { | ||
pub const SEED_PREFIX: &'static [u8] = b"pending_token_authority"; | ||
} |
Oops, something went wrong.