Type alias AnchorProgram<IDL, A, Defined, RPCInstructions, Methods>
AnchorProgram<IDL, A, Defined, RPCInstructions, Methods>: Omit<AProgram, "rpc" | "state" | "account" | "transaction" | "instruction"> & {
account: AccountsNamespace<A>;
instruction: InstructionNamespace<RPCInstructions & Methods>;
rpc: RpcNamespace<RPCInstructions>;
state: StateClient<IDL>;
transaction: TransactionNamespace<RPCInstructions & Methods>;
}
Type Parameters
-
IDL extends Idl
-
A
-
-
RPCInstructions extends MakeInstructions<IDL["instructions"], Defined> = MakeInstructions<IDL["instructions"], Defined>
-
Methods extends MakeInstructions<NonNullable<IDL["state"]>["methods"], Defined> = MakeInstructions<NonNullable<IDL["state"]>["methods"], Defined>
Type declaration
-
account: AccountsNamespace<A>
-
instruction: InstructionNamespace<RPCInstructions & Methods>
-
rpc: RpcNamespace<RPCInstructions>
-
state: StateClient<IDL>
-
transaction: TransactionNamespace<RPCInstructions & Methods>