pub struct Bridge {Show 19 fields
pub asset: Pubkey,
pub vault: Pubkey,
pub owner: Pubkey,
pub token: Pubkey,
pub mint: Pubkey,
pub metadata: Pubkey,
pub master_edition: Pubkey,
pub token_record: Option<Pubkey>,
pub vault_token: Pubkey,
pub vault_token_record: Option<Pubkey>,
pub payer: Pubkey,
pub nifty_asset_program: Pubkey,
pub token_metadata_program: Pubkey,
pub system_program: Pubkey,
pub sysvar_instructions: Pubkey,
pub spl_token_program: Pubkey,
pub spl_ata_program: Pubkey,
pub authorization_rules_program: Option<Pubkey>,
pub authorization_rules: Option<Pubkey>,
}Expand description
Accounts.
Fields§
§asset: PubkeyAsset account of the mint (pda of ['nifty::bridge::asset', mint pubkey])
vault: PubkeyBridge account for the asset (pda of ['nifty::bridge::vault', mint pubkey])
owner: PubkeyToken owner account
token: PubkeyToken account
mint: PubkeyMint account of the token
metadata: PubkeyMetadata account of the mint
master_edition: PubkeyMaster Edition of the mint
token_record: Option<Pubkey>Owner token record account
vault_token: PubkeyVault token account
vault_token_record: Option<Pubkey>Vault token record account
payer: PubkeyThe account paying for the storage fees
nifty_asset_program: PubkeyNifty Asset program
token_metadata_program: PubkeyMetaplex Token Metadata program
system_program: PubkeySystem program
sysvar_instructions: PubkeyInstructions sysvar account
spl_token_program: PubkeySPL Token program
spl_ata_program: PubkeySPL ATA program
Token Auth Rules program
Token Auth Rules account
Implementations§
Source§impl Bridge
impl Bridge
pub fn instruction(&self) -> Instruction
pub fn instruction_with_remaining_accounts( &self, remaining_accounts: &[AccountMeta], ) -> Instruction
Auto Trait Implementations§
impl Freeze for Bridge
impl RefUnwindSafe for Bridge
impl Send for Bridge
impl Sync for Bridge
impl Unpin for Bridge
impl UnwindSafe for Bridge
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more