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.

Re-exports§

pub use error::SettlementError;
pub use instruction::recover_discriminator;
pub use instruction::SettlementInstruction;
pub use pda::SettlementAccount;
pub use role::Role;

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.
error
Program-side errors surfaced by the settlement program.
instruction
Off-chain instruction builders for the settlement program.
pda
Program-derived addresses under the settlement program.
role
Transferable authority roles stored in the settlement state PDA.
token_program
The token programs settlement transfers may be issued against.

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.

Constants§

ID
The const program ID.

Functions§

check_id
Returns true if given address is the ID.
id
Returns the ID.