Skip to main content

Module state

Module state 

Source

Structs§

CompiledInstructionData
Compiled instruction data for space-efficient storage
CompiledInstructionV0
Compiled instruction containing deduplicated accounts
FiberState
Represents a single fiber (instruction) in a thread’s execution sequence. Owned by the Fiber Program. Thread PDA is the universal signer/payer.
PaymentDetails
Struct to hold payment details
SerializableAccountMeta
Serializable version of AccountMeta
SerializableInstruction
Serializable version of Solana’s Instruction for easier handling
Thread
Tracks the current state of a transaction thread on Solana.
ThreadConfig
Global configuration for the thread program

Enums§

Schedule
Tracks the execution schedule - when the thread last ran and when it should run next (was: TriggerContext)
Signal
Signal from a fiber about what should happen after execution. Emitted via set_return_data(), received by thread program via get_return_data().
Trigger
The triggering conditions of a thread.

Constants§

CURRENT_THREAD_VERSION
Current version of the Thread structure.
PAYER_PUBKEY
Static pubkey for the payer placeholder - this is a placeholder address “AntegenPayer1111111111111111111111111111111” in base58
SEED_THREAD_FIBER

Traits§

CommissionCalculator
Trait for calculating commission fees
FiberInstructionProcessor
Trait for processing fiber instructions
NonceProcessor
Trait for handling nonce account operations
PaymentDistributor
Trait for distributing payments
PaymentProcessor
Trait for processing payments
ThreadSeeds
Trait for getting thread seeds for signing
TriggerProcessor
Trait for processing trigger validation and schedule updates

Functions§

compile_instruction
Compile an instruction into a space-efficient format
decompile_instruction
Decompile a compiled instruction back to a regular instruction