PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-vet/dist/src/lib/transactionBuilder

Просмотр файла: burnNftBuilder.d.ts

import { TransactionClause } from '@vechain/sdk-core';
import { TransactionType } from '@bitgo/sdk-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { TransactionBuilder } from './transactionBuilder';
import { BurnNftTransaction } from '../transaction/burnNftTransaction';
import { Transaction } from '../transaction/transaction';
export declare class BurnNftBuilder extends TransactionBuilder {
    /**
     * Creates a new BurnNftBuilder instance.
     *
     * @param {Readonly<CoinConfig>} _coinConfig - The coin configuration object
     */
    constructor(_coinConfig: Readonly<CoinConfig>);
    /**
     * Initializes the builder with an existing BurnNftTransaction.
     *
     * @param {BurnNftTransaction} tx - The transaction to initialize the builder with
     */
    initBuilder(tx: BurnNftTransaction): void;
    /**
     * Gets the burn NFT transaction instance.
     *
     * @returns {BurnNftTransaction} The burn NFT transaction
     */
    get burnNftTransaction(): BurnNftTransaction;
    /**
     * Gets the transaction type for burning NFT.
     *
     * @returns {TransactionType} The transaction type
     */
    protected get transactionType(): TransactionType;
    /**
     * Validates the transaction clauses for burning NFT.
     * @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 ID for this burn NFT transaction.
     *
     * @param {string} tokenId - The ID of the NFT token to burn
     * @returns {BurnNftBuilder} This transaction builder
     */
    tokenId(tokenId: string): this;
    /**
     * Sets the NFT contract address for this burn NFT transaction.
     * If not provided, uses the default address from constants.
     *
     * @param {string} address - The NFT contract address
     * @returns {BurnNftBuilder} This transaction builder
     */
    nftContract(address?: string): this;
    /** @inheritdoc */
    validateTransaction(transaction?: BurnNftTransaction): void;
    /** @inheritdoc */
    protected buildImplementation(): Promise<Transaction>;
    /**
     * Generates the transaction data for burning NFT by encoding the burn method call.
     *
     * @private
     * @returns {string} The encoded transaction data as a hex string
     */
    private getBurnNftData;
}
//# sourceMappingURL=burnNftBuilder.d.ts.map

Выполнить команду


Для локальной разработки. Не используйте в интернете!