pub struct InitializeIssuanceBuilder { /* private fields */ }Expand description
Instruction builder for InitializeIssuance.
§Accounts:
[]delegate_account[writable, signer]delegate_wallet[]bond_account[writable]upcoming_issuance_account[]payment_feed_account[]payment_mint_account[writable]payment_account[writable]payment_token_account[writable]payout_account[writable]payout_token_account[]associated_token_program[optional]token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)[optional]system_program (default to11111111111111111111111111111111)[optional]current_issuance_account
Implementations§
Source§impl InitializeIssuanceBuilder
impl InitializeIssuanceBuilder
pub fn new() -> Self
pub fn delegate_account(&mut self, delegate_account: Pubkey) -> &mut Self
pub fn delegate_wallet(&mut self, delegate_wallet: Pubkey) -> &mut Self
pub fn bond_account(&mut self, bond_account: Pubkey) -> &mut Self
pub fn upcoming_issuance_account( &mut self, upcoming_issuance_account: Pubkey, ) -> &mut Self
pub fn payment_feed_account( &mut self, payment_feed_account: Pubkey, ) -> &mut Self
pub fn payment_mint_account( &mut self, payment_mint_account: Pubkey, ) -> &mut Self
pub fn payment_account(&mut self, payment_account: Pubkey) -> &mut Self
pub fn payment_token_account( &mut self, payment_token_account: Pubkey, ) -> &mut Self
pub fn payout_account(&mut self, payout_account: Pubkey) -> &mut Self
pub fn payout_token_account( &mut self, payout_token_account: Pubkey, ) -> &mut Self
pub fn associated_token_program( &mut self, associated_token_program: Pubkey, ) -> &mut Self
Sourcepub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
Sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
Sourcepub fn current_issuance_account(
&mut self,
current_issuance_account: Option<Pubkey>,
) -> &mut Self
pub fn current_issuance_account( &mut self, current_issuance_account: Option<Pubkey>, ) -> &mut Self
[optional account]
pub fn liquidity(&mut self, liquidity: u64) -> &mut Self
pub fn interest_rate_bps(&mut self, interest_rate_bps: i16) -> &mut Self
pub fn estimated_start_datetime( &mut self, estimated_start_datetime: i64, ) -> &mut Self
pub fn length_in_seconds(&mut self, length_in_seconds: i64) -> &mut Self
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Default for InitializeIssuanceBuilder
impl Default for InitializeIssuanceBuilder
Source§fn default() -> InitializeIssuanceBuilder
fn default() -> InitializeIssuanceBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InitializeIssuanceBuilder
impl RefUnwindSafe for InitializeIssuanceBuilder
impl Send for InitializeIssuanceBuilder
impl Sync for InitializeIssuanceBuilder
impl Unpin for InitializeIssuanceBuilder
impl UnwindSafe for InitializeIssuanceBuilder
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