Function dflow_sdk::client::instructions::init_auction_epoch_state_account
source · [−]pub fn init_auction_epoch_state_account(
program: &Program,
auction_id: u64,
auction_epoch: u64,
owner: Pubkey
) -> Instruction
Expand description
This instruction initializes an auction epoch state account
AuctionEpochState carries state specific to a certain auction that needs to be remembered after the epoch ends. The AuctionEpochState accounts associated with auction epochs N and N + 1 need to be initialized when the auction for epoch N begins (i.e. in the first SubmitAuctionBid that auction N will receive). Recall that if the AuctionState has an epoch field that has value X, then auction X is currently active, and auction X - 1 is currently receiving order flow.
Arguments
auction_id
An unsigned 64 bit integer. The auction ID used as a seed to generate the program derived addressauction_epoch
An unsigned 64 bit integer. The integer epoch used to generate the PDA of the auction epoch accountowner
The creator and owner of AuctionEpochState account. This account is a signer for the instruction. This account is expected to be mutable
Returns an instruction