PHP WebShell

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

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

import { BaseKey } from '@bitgo/sdk-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { TransactionBuilder } from './transactionBuilder';
import { Transaction } from './transaction';
import { ResourceManagementContract } from './iface';
import { Address } from './address';
/**
 * Abstract base class for resource management transaction builders (delegate/undelegate)
 */
export declare abstract class ResourceManagementTxBuilder extends TransactionBuilder {
    protected _signingKeys: BaseKey[];
    protected _balance: string;
    protected _resource: string;
    protected _receiverAddress: string;
    constructor(_coinConfig: Readonly<CoinConfig>);
    /**
     * Set the balance amount
     *
     * @param amount amount in TRX to delegate/undelegate
     * @returns the builder with the new parameter set
     */
    setBalance(amount: string): this;
    /**
     * Set the receiver address
     *
     * @param address receiver address for the delegate/undelegate operation
     * @returns the builder with the new parameter set
     */
    setReceiverAddress(address: Address): this;
    /**
     * Set the resource type
     *
     * @param resource resource type to delegate/undelegate
     * @returns the builder with the new parameter set
     */
    setResource(resource: string): this;
    /** @inheritdoc */
    extendValidTo(extensionMs: number): void;
    /**
     * Validates the transaction
     *
     * @param {Transaction} transaction - The transaction to validate
     * @throws {void}
     */
    validateTransaction(transaction: Transaction): void;
    /** @inheritdoc */
    protected buildImplementation(): Promise<Transaction>;
    /** @inheritdoc */
    protected signImplementation(key: BaseKey): Transaction;
    protected applySignatures(): void;
    /**
     * Validates if the transaction is a valid delegate/undelegate transaction
     *
     * @throws {BuildTransactionError} when the transaction is invalid
     */
    protected validateResourceManagementTransactionFields(): void;
    /**
     * Initialize the delegate/undelegate contract call specific data
     *
     * @param {ResourceManagementContract} resourceManagementContractCall object with delegate txn data
     */
    protected initResourceManagementContractCall(resourceManagementContractCall: ResourceManagementContract): void;
    /**
     * Helper method to create the delegate/undelegate resource transaction
     */
    protected abstract createResourceManagementTransaction(): void;
    /**
     * Helper method to get the resource delegate/undelegate transaction raw data hex
     */
    protected abstract getResourceManagementTxRawDataHex(): string;
}
//# sourceMappingURL=resourceManagementTxBuilder.d.ts.map

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


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