PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-sol/dist/src/lib
Просмотр файла: customInstructionBuilder.d.ts
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { SolInstruction, TransactionType } from '@bitgo/sdk-core';
import { Transaction } from './transaction';
import { TransactionBuilder } from './transactionBuilder';
import { CustomInstruction } from './iface';
/**
* Transaction builder for custom Solana instructions.
* Allows building transactions with any set of raw Solana instructions.
*/
export declare class CustomInstructionBuilder extends TransactionBuilder {
private _customInstructions;
constructor(_coinConfig: Readonly<CoinConfig>);
protected get transactionType(): TransactionType;
/**
* Initialize the builder from an existing transaction
*/
initBuilder(tx: Transaction): void;
/**
* Add a custom instruction to the transaction
* @param instruction - The custom instruction to add
* @returns This builder instance
*/
addCustomInstruction(instruction: SolInstruction): this;
/**
* Add multiple custom instructions to the transaction
* @param instructions - Array of custom instructions to add
* @returns This builder instance
*/
addCustomInstructions(instructions: SolInstruction[]): this;
/**
* Clear all custom instructions
* @returns This builder instance
*/
clearInstructions(): this;
/**
* Get the current custom instructions
* @returns Array of custom instructions
*/
getInstructions(): CustomInstruction[];
/**
* Validate custom instruction format
* @param instruction - The instruction to validate
*/
private validateInstruction;
/** @inheritdoc */
protected buildImplementation(): Promise<Transaction>;
}
//# sourceMappingURL=customInstructionBuilder.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!