Skip to main content

dlp_api/args/
delegate.rs

1use borsh::{BorshDeserialize, BorshSerialize};
2use solana_program::pubkey::Pubkey;
3
4#[derive(Default, Debug, BorshSerialize, BorshDeserialize)]
5pub struct DelegateArgs {
6    /// The frequency at which the validator should commit the account data
7    /// if no commit is triggered by the owning program
8    pub commit_frequency_ms: u32,
9    /// The seeds used to derive the PDA of the delegated account
10    pub seeds: Vec<Vec<u8>>,
11    /// The validator authority that is added to the delegation record
12    pub validator: Option<Pubkey>,
13}