gill
Version:
a modern javascript/typescript client library for interacting with the Solana blockchain
19 lines • 1.09 kB
TypeScript
import { COMPUTE_BUDGET_PROGRAM_ADDRESS } from "@solana-program/compute-budget";
import type { IInstruction, IInstructionWithData, TransactionMessage } from "@solana/kit";
/**
* Check if a given instruction is a `SetComputeUnitLimit` instruction
*/
export declare function isSetComputeLimitInstruction(instruction: IInstruction): instruction is IInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> & IInstructionWithData<Uint8Array>;
/**
* Check if a given transaction contains a `SetComputeUnitLimit` instruction
*/
export declare function hasSetComputeLimitInstruction(tx: TransactionMessage): boolean;
/**
* Check if a given instruction is a `SetComputeUnitPrice` instruction
*/
export declare function isSetComputeUnitPriceInstruction(instruction: IInstruction): instruction is IInstruction<typeof COMPUTE_BUDGET_PROGRAM_ADDRESS> & IInstructionWithData<Uint8Array>;
/**
* Check if a given transaction contains a `SetComputeUnitPrice` instruction
*/
export declare function hasSetComputeUnitPriceInstruction(tx: TransactionMessage): boolean;
//# sourceMappingURL=utils.d.ts.map