📄️ Setup & Configuration
This section provides the required libraries and basic connection configuration for interacting with the on-chain Fufuture program.
📄️ Instruction Discriminators
Every instruction in the PerpetualInstruction enum is encoded using Borsh.
📄️ Program Derived Addresses (PDAs)
Program Derived Addresses (PDAs) are deterministic accounts generated from a set of seeds and a program ID. They do not have private keys. Instead, the on-chain program signs for them using invoke_signed.
📄️ Borsh Schemas
This section defines the complete Borsh serialization schemas used for all read-only query methods.
📄️ Interfaces
This file contains TypeScript interfaces only.
📄️ Query
All queries are read-only RPC calls using:
📄️ Asset (Underlying) API Reference
This section documents how to initialize and manage an underlying asset.
📄️ Initialize User Account
This instruction creates the UserAccount PDA for a trader.
🗃️ pool
3 items
🗃️ trading
3 items