PHP WebShell

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

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

import { TransactionType, BaseKey } from '@bitgo/sdk-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { TransactionBuilder } from './transactionBuilder';
import { Transaction } from './transaction';
import { TransactionReceipt, FreezeBalanceV2Contract } from './iface';
export declare class FreezeBalanceTxBuilder extends TransactionBuilder {
    protected _signingKeys: BaseKey[];
    private _frozenBalance;
    private _resource;
    constructor(_coinConfig: Readonly<CoinConfig>);
    /** @inheritdoc */
    protected get transactionType(): TransactionType;
    /**
     * Set the frozen balance amount
     *
     * @param amount amount in TRX to freeze
     * @returns the builder with the new parameter set
     */
    setFrozenBalance(amount: string): this;
    /**
     * Set the resource type
     *
     * @param resource resource type to freeze
     * @returns the builder with the new parameter set
     */
    setResource(resource: string): this;
    /** @inheritdoc */
    extendValidTo(extensionMs: number): void;
    /**
     * Initialize the transaction builder fields using the transaction data
     *
     * @param {TransactionReceipt | string} rawTransaction the transaction data in a string or JSON format
     * @returns {FreezeBalanceTxBuilder} the builder with the transaction data set
     */
    initBuilder(rawTransaction: TransactionReceipt | string): this;
    /**
     * Initialize the freeze contract call specific data
     *
     * @param {FreezeBalanceV2Contract} freezeContractCall object with freeze txn data
     */
    protected initFreezeContractCall(freezeContractCall: FreezeBalanceV2Contract): void;
    protected buildImplementation(): Promise<Transaction>;
    /**
     * Helper method to create the freeze balance transaction
     */
    private createFreezeBalanceTransaction;
    /**
     * Helper method to get the freeze balance transaction raw data hex
     *
     * @returns {string} the freeze balance transaction raw data hex
     */
    private getFreezeRawDataHex;
    /** @inheritdoc */
    protected signImplementation(key: BaseKey): Transaction;
    private applySignatures;
    /**
     * Validates the transaction
     *
     * @param {Transaction} transaction - The transaction to validate
     * @throws {InvalidTransactionError} when the transaction is invalid
     */
    validateTransaction(transaction: Transaction): void;
    /**
     * Validates if the transaction is a valid freeze transaction
     *
     * @param {TransactionReceipt} transaction - The transaction to validate
     * @throws {BuildTransactionError} when the transaction is invalid
     */
    private validateFreezeTransactionFields;
}
//# sourceMappingURL=freezeBalanceTxBuilder.d.ts.map

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


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