Skip to main content

Module create_buffer

Module create_buffer 

Source
Expand description

CreateBuffer instruction builder.

Allocates one or more per-token buffer PDAs (see crate::pda::buffer) as SPL token accounts and initializes each with the settlement state PDA as its token authority. Each token is identified by its mint account; the buffer address must be the canonical PDA for that mint.

Structs§

BufferAccounts
The two accounts of one buffer to create.
CreateBufferInput
Parsed inputs of a CreateBuffer instruction.
CreateBuffers
Builder for a CreateBuffer instruction that creates one buffer per (buffer_pda, mint) pair in buffers.

Constants§

SYSTEM_PROGRAM_ID
The const program ID.