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§
- Account
Meta - 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§
- Settlement
Account - 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.
- Settlement
Error - Program-side errors surfaced by the settlement program.
The discriminant value is the on-chain
ProgramError::Customcode. - Settlement
Instruction
Constants§
- ID
- The const program ID.
Functions§
- check_
id - Returns
trueif 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
InvalidInstructionDatafor an insufficient length or an unknown discriminator.