pub struct SatrushConfig {Show 16 fields
pub discriminator: [u8; 8],
pub version: u16,
pub bump: u8,
pub admin_authority: Address,
pub owner_authority: Address,
pub round_authority: Address,
pub fee_recipient: Address,
pub usd_mint: Address,
pub btc_mint: Address,
pub strike_fee_bps: u32,
pub epoch_fee_bps: u32,
pub one_btc_fee_bps: u32,
pub sats_vault_round_fee_bps: u32,
pub sats_vault_claim_fee_bps: u32,
pub protocol_fee_bps: u32,
pub reserved: [u8; 30],
}Fields§
§discriminator: [u8; 8]§version: u16Struct version.
bump: u8Bump seed for the config account.
Current update authority address for both Config and other PDAs - can be updated.
Owner of the program. Can change ownership and set the admin of the program.
Address of the authority controlling the round flow.
fee_recipient: AddressProtocol fees recipient address.
usd_mint: AddressUSD mint address, initially USDC
btc_mint: AddressBTC mint address, initially cbBTC
strike_fee_bps: u32Strike jackpot fee in basis points.
epoch_fee_bps: u32Epoch Vault fee in basis points.
one_btc_fee_bps: u321 BTC Vault fee in basis points.
sats_vault_round_fee_bps: u32Sats Vault fee in basis points.
sats_vault_claim_fee_bps: u32Sats Vault claim fee in basis points.
protocol_fee_bps: u32Protocol fee in basis points.
reserved: [u8; 30]Reserved
Implementations§
Trait Implementations§
Source§impl BorshDeserialize for SatrushConfig
impl BorshDeserialize for SatrushConfig
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 SatrushConfig
impl BorshSerialize for SatrushConfig
Source§impl Clone for SatrushConfig
impl Clone for SatrushConfig
Source§fn clone(&self) -> SatrushConfig
fn clone(&self) -> SatrushConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SatrushConfig
impl Debug for SatrushConfig
impl Eq for SatrushConfig
Source§impl PartialEq for SatrushConfig
impl PartialEq for SatrushConfig
impl StructuralPartialEq for SatrushConfig
Source§impl<'a> TryFrom<&AccountInfo<'a>> for SatrushConfig
impl<'a> TryFrom<&AccountInfo<'a>> for SatrushConfig
Auto Trait Implementations§
impl Freeze for SatrushConfig
impl RefUnwindSafe for SatrushConfig
impl Send for SatrushConfig
impl Sync for SatrushConfig
impl Unpin for SatrushConfig
impl UnsafeUnpin for SatrushConfig
impl UnwindSafe for SatrushConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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