Struct access_protocol::instruction::create_bond::Params
source · pub struct Params {
pub buyer: Pubkey,
pub total_amount_sold: u64,
pub total_quote_amount: u64,
pub quote_mint: Pubkey,
pub seller_token_account: Pubkey,
pub unlock_start_date: i64,
pub unlock_period: i64,
pub unlock_amount: u64,
pub seller_index: u64,
}
Expand description
The required parameters for the create_bond
instruction
Fields§
§buyer: Pubkey
Ultimate buyer of the bond
total_amount_sold: u64
Total amount of ACCESS tokens being sold
total_quote_amount: u64
Total price of the bond
quote_mint: Pubkey
Mint of the token used to buy the bond
seller_token_account: Pubkey
The token account i.e where the sell proceeds go
unlock_start_date: i64
The start date of the unlock
unlock_period: i64
The time interval at which the tokens unlock
unlock_amount: u64
The amount of tokens that unlock at each unlock_period
seller_index: u64
Index of the seller in the array
of authorized sellers
Trait Implementations§
source§impl BorshDeserialize for Params
impl BorshDeserialize for Params
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for Params
impl BorshSerialize for Params
Auto Trait Implementations§
impl Freeze for Params
impl RefUnwindSafe for Params
impl Send for Params
impl Sync for Params
impl Unpin for Params
impl UnwindSafe for Params
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