#[repr(packed(1))]pub struct VrfLiteAccountData {Show 16 fields
pub state_bump: u8,
pub permission_bump: u8,
pub vrf_pool: Pubkey,
pub status: VrfStatus,
pub result: [u8; 32],
pub counter: u128,
pub alpha: [u8; 256],
pub alpha_len: u32,
pub request_slot: u64,
pub request_timestamp: i64,
pub authority: Pubkey,
pub queue: Pubkey,
pub escrow: Pubkey,
pub callback: CallbackZC,
pub builder: VrfBuilder,
pub expiration: i64,
}
Fields§
§state_bump: u8
The bump used to derive the SbState account.
permission_bump: u8
The bump used to derive the permission account.
vrf_pool: Pubkey
The VrfPool the account belongs to.
status: VrfStatus
The current status of the VRF account.
result: [u8; 32]
The VRF round result. Will be zeroized if still awaiting fulfillment.
counter: u128
Incremental counter for tracking VRF rounds.
alpha: [u8; 256]
The alpha bytes used to calculate the VRF proof.
alpha_len: u32
The number of bytes in the alpha buffer.
request_slot: u64
The Slot when the VRF round was opened.
request_timestamp: i64
The unix timestamp when the VRF round was opened.
On-chain account delegated for making account changes.
queue: Pubkey
The OracleQueueAccountData that is assigned to fulfill VRF update request.
escrow: Pubkey
The token account used to hold funds for VRF update request.
callback: CallbackZC
The callback that is invoked when an update request is successfully verified.
builder: VrfBuilder
The incremental VRF proof calculation.
expiration: i64
Implementations§
source§impl VrfLiteAccountData
impl VrfLiteAccountData
pub fn size() -> usize
sourcepub fn new<'info>(
vrf_lite_account_info: &'info AccountInfo<'_>
) -> Result<Ref<'info, VrfLiteAccountData>>
pub fn new<'info>( vrf_lite_account_info: &'info AccountInfo<'_> ) -> Result<Ref<'info, VrfLiteAccountData>>
sourcepub fn new_from_bytes(data: &[u8]) -> Result<&VrfLiteAccountData>
pub fn new_from_bytes(data: &[u8]) -> Result<&VrfLiteAccountData>
sourcepub fn get_current_randomness_round_id(&self) -> u128
pub fn get_current_randomness_round_id(&self) -> u128
Returns the current VRF round ID
sourcepub fn get_result(&self) -> Result<[u8; 32]>
pub fn get_result(&self) -> Result<[u8; 32]>
pub fn fetch(client: &RpcClient, pubkey: Pubkey) -> Result<Self, SbError>
pub async fn fetch_async( client: &RpcClient, pubkey: Pubkey ) -> Result<Self, SbError>
pub fn fetch_sync<T: SyncClient>( client: &T, pubkey: Pubkey ) -> Result<Self, SbError>
Trait Implementations§
source§impl AccountDeserialize for VrfLiteAccountData
impl AccountDeserialize for VrfLiteAccountData
source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Mint
account into a token
Account
.source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
source§impl Clone for VrfLiteAccountData
impl Clone for VrfLiteAccountData
source§fn clone(&self) -> VrfLiteAccountData
fn clone(&self) -> VrfLiteAccountData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for VrfLiteAccountData
impl Default for VrfLiteAccountData
source§impl Discriminator for VrfLiteAccountData
impl Discriminator for VrfLiteAccountData
const DISCRIMINATOR: [u8; 8] = _
fn discriminator() -> [u8; 8]
impl Copy for VrfLiteAccountData
impl Pod for VrfLiteAccountData
impl ZeroCopy for VrfLiteAccountData
Auto Trait Implementations§
impl RefUnwindSafe for VrfLiteAccountData
impl Send for VrfLiteAccountData
impl Sync for VrfLiteAccountData
impl Unpin for VrfLiteAccountData
impl UnwindSafe for VrfLiteAccountData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self
.