PHP WebShell

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

Просмотр файла: stakingBuilder.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 { StakingTransaction } from '../transaction/stakingTransaction';
import EthereumAbi from 'ethereumjs-abi';
export declare class StakingBuilder extends TransactionBuilder {
    /**
     * Creates a new StakingBuilder instance.
     *
     * @param {Readonly<CoinConfig>} _coinConfig - The coin configuration object
     */
    constructor(_coinConfig: Readonly<CoinConfig>);
    /**
     * Initializes the builder with an existing StakingTransaction.
     *
     * @param {StakingTransaction} tx - The transaction to initialize the builder with
     */
    initBuilder(tx: StakingTransaction): void;
    /**
     * Gets the staking transaction instance.
     *
     * @returns {StakingTransaction} The staking transaction
     */
    get stakingTransaction(): StakingTransaction;
    /**
     * Gets the transaction type for staking.
     *
     * @returns {TransactionType} The transaction type
     */
    protected get transactionType(): TransactionType;
    /**
     * Validates the transaction clauses for staking 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 staking contract address for this staking tx.
     *
     * @param {string} address - The staking contract address
     * @returns {StakingBuilder} This transaction builder
     */
    stakingContractAddress(address: string): this;
    /**
     * Sets the amount to stake for this staking tx.
     *
     * @param {string} amount - The amount to stake in wei
     * @returns {StakingBuilder} This transaction builder
     */
    amountToStake(amount: string): this;
    /**
     * Sets the staking contract ABI for this staking tx.
     *
     * @param {EthereumAbi} abi - The staking contract ABI
     * @returns {StakingBuilder} This transaction builder
     */
    stakingContractABI(abi: EthereumAbi): this;
    /**
     * Sets the transaction data for this staking tx.
     *
     * @param {string} data - The transaction data
     * @returns {StakingBuilder} This transaction builder
     */
    transactionData(data: string): this;
    /** @inheritdoc */
    validateTransaction(transaction?: StakingTransaction): void;
    /** @inheritdoc */
    protected buildImplementation(): Promise<Transaction>;
}
//# sourceMappingURL=stakingBuilder.d.ts.map

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


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