Skip to main content

Crate cow_settlement_interface

Crate cow_settlement_interface 

Source
Expand description

Shared types and instruction builders for the CoW Protocol settlement program.

Modules§

data
Wire-format data structures shared by clients and the on-chain program: each module pairs an idiomatic Rust struct with its canonical byte representation.
instruction
Off-chain instruction builders for the settlement program.
pda
Program-derived addresses under the settlement program.

Structs§

AccountMeta
Describes a single account read or written by a program during instruction execution.
Instruction
A directive for a single invocation of a Solana program.
Pubkey
The address of a Solana account.

Enums§

Role
A transferable authority stored in the state PDA.
SettlementAccount
Identifies the account type a given account’s data belongs to, via the single discriminator byte stored at its front. Starts at 128 to keep account discriminators visually distinct from instruction discriminators.
SettlementError
Program-side errors surfaced by the settlement program. The discriminant value is the on-chain ProgramError::Custom code.
SettlementInstruction

Constants§

ID
The const program ID.

Functions§

check_id
Returns true if given address is the ID.
id
Returns the ID.
recover_discriminator
Recover the discriminator from the first byte of the payload and the remaining bytes to parse. Returns InvalidInstructionData for an insufficient length or an unknown discriminator.