Skip to content

Instantly share code, notes, and snippets.

@mgild
Created November 19, 2025 17:49
Show Gist options
  • Select an option

  • Save mgild/4017638f66fd8fad084716c5b532ba51 to your computer and use it in GitHub Desktop.

Select an option

Save mgild/4017638f66fd8fad084716c5b532ba51 to your computer and use it in GitHub Desktop.
#[assert_size(3200)]
#[account(zero_copy)]
pub struct PullFeedAccountData {
/// The oracle submissions for this feed.
pub submissions: [OracleSubmission; 32],
/// The public key of the authority that can update the feed hash that
/// this account will use for registering updates.
pub authority: Pubkey,
/// The public key of the queue which oracles must be bound to in order to
/// submit data to this feed.
pub queue: Pubkey,
/// SHA-256 hash of the job schema oracles will execute to produce data
/// for this feed.
pub feed_hash: [u8; 32],
/// The slot at which this account was initialized.
pub initialized_at: i64,
pub permissions: u64,
pub max_variance: u64,
pub min_responses: u32,
pub name: [u8; 32],
padding1: [u8; 1],
pub permit_write_by_authority: u8,
pub historical_result_idx: u8,
pub min_sample_size: u8,
pub last_update_timestamp: i64,
pub lut_slot: u64,
_reserved1: [u8; 32],
pub result: CurrentResult,
pub max_staleness: u32,
padding2: [u8; 12],
pub historical_results: [CompactResult; 32],
_ebuf4: [u8; 8],
_ebuf3: [u8; 24],
pub submission_timestamps: [i64; 32],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment