PHP WebShell

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

Просмотр файла: exitDelegationBuilder.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 { ExitDelegationTransaction } from '../transaction/exitDelegation';
import { Transaction } from '../transaction/transaction';
export declare class ExitDelegationBuilder extends TransactionBuilder {
    /**
     * Creates a new ExitDelegationBuilder instance.
     *
     * @param {Readonly<CoinConfig>} _coinConfig - The coin configuration object
     */
    constructor(_coinConfig: Readonly<CoinConfig>);
    /**
     * Initializes the builder with an existing ExitDelegationTransaction.
     *
     * @param {ExitDelegationTransaction} tx - The transaction to initialize the builder with
     */
    initBuilder(tx: ExitDelegationTransaction): void;
    /**
     * Gets the exit delegation transaction instance.
     *
     * @returns {ExitDelegationTransaction} The exit delegation transaction
     */
    get exitDelegationTransaction(): ExitDelegationTransaction;
    /**
     * Gets the transaction type for unstaking.
     *
     * @returns {TransactionType} The transaction type
     */
    protected get transactionType(): TransactionType;
    /**
     * Validates the transaction clauses for unstaking.
     * @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 unstaking transaction.
     *
     * @param {string} tokenId - The ID of the NFT token to unstake
     * @returns {ExitDelegationBuilder} This transaction builder
     */
    tokenId(tokenId: string): this;
    /**
     * Sets the delegation contract address for this unstaking transaction.
     * If not provided, uses the default address from constants.
     *
     * @param {string} address - The delegation contract address
     * @returns {ExitDelegationBuilder} This transaction builder
     */
    delegationContract(address?: string): this;
    /** @inheritdoc */
    validateTransaction(transaction?: ExitDelegationTransaction): void;
    /** @inheritdoc */
    protected buildImplementation(): Promise<Transaction>;
    /**
     * Generates the transaction data for exit delegation by encoding the exitDelegation method call.
     *
     * @private
     * @returns {string} The encoded transaction data as a hex string
     */
    private getExitDelegationData;
}
//# sourceMappingURL=exitDelegationBuilder.d.ts.map

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


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