PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-vet/dist/src/lib/transactionBuilder
Просмотр файла: flushTokenTransactionBuilder.d.ts
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { TransactionType } from '@bitgo/sdk-core';
import { TransactionClause } from '@vechain/sdk-core';
import { TransactionBuilder } from './transactionBuilder';
import { Transaction } from '../transaction/transaction';
import { FlushTokenTransaction } from '../transaction/flushTokenTransaction';
export declare class FlushTokenTransactionBuilder extends TransactionBuilder {
/**
* Creates a new FlushTokenTransactionBuilder instance.
*
* @param {Readonly<CoinConfig>} _coinConfig - The coin configuration object
*/
constructor(_coinConfig: Readonly<CoinConfig>);
/**
* Initializes the builder with an existing FlushTokenTransaction.
*
* @param {FlushTokenTransaction} tx - The transaction to initialize the builder with
*/
initBuilder(tx: FlushTokenTransaction): void;
/**
* Gets the flush token transaction instance.
*
* @returns {FlushTokenTransaction} The flush token transaction
*/
get flushTokenTransaction(): FlushTokenTransaction;
/**
* Gets the transaction type for flush token.
*
* @returns {TransactionType} The transaction type
*/
protected get transactionType(): TransactionType;
/**
* Validates the transaction clauses for flush token transaction.
* @param {TransactionClause[]} clauses - The transaction clauses to validate.
* @returns {boolean} - Returns true if the clauses are valid, false otherwise.
*/
protected isValidTransactionClauses(clauses: TransactionClause[]): boolean;
/**
* Sets the token address for this token flush tx.
*
* @param {string} address - The token address to be set for the token flush transaction
* @returns {FlushTokenTransactionBuilder} This transaction builder
*/
tokenAddress(address: string): this;
/**
* Sets the forwarder version for this token flush transaction.
* The forwarder version must be 4 or higher.
*
* @param {number} version - The forwarder version to use (must be >= 4)
* @returns {FlushTokenTransactionBuilder} This transaction builder
* @throws {BuildTransactionError} When version is less than 4
*/
forwarderVersion(version: number): this;
/** @inheritdoc */
validateTransaction(transaction?: FlushTokenTransaction): void;
/** @inheritdoc */
protected buildImplementation(): Promise<Transaction>;
/**
* Generates the transaction data for flush token transaction
*
* @private
* @returns {string} The encoded transaction data as a hex string
*/
private getFlushTokenTransactionData;
}
//# sourceMappingURL=flushTokenTransactionBuilder.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!