Closes an existing thread account and returns the lamports to the owner.
Requires authority (owner) or thread itself to sign.
External fiber accounts should be passed via remaining_accounts.
Creates a new transaction thread.
Optionally creates fiber index 0 if instruction is provided.
lookup_tables is forwarded to fiber_0 when one is created;
it is ignored when instruction is None.
Memo instruction that logs a message (replacement for spl-memo).
Used for tracking thread fiber execution in logs without external dependencies.
Optionally emits a signal for testing signal behaviors.
Updates a fiber’s instruction via CPI to Fiber Program.
Initializes the fiber if it doesn’t exist (thread PDA pays rent).
If track is true, adds the fiber_index to thread.fiber_ids.
Pass None for instruction to wipe the compiled instruction (idle).
Pass None for lookup_tables to leave them unchanged; Some(vec)
atomically replaces. Legacy fibers reject non-empty lookup_tables.