PHP WebShell

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

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

import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { BaseKey } from '@bitgo/sdk-core';
import { TransactionBuilder } from './transactionBuilder';
import { Address } from './address';
import { Transaction } from './transaction';
import { Fee, TransactionReceipt, TriggerSmartContract } from './iface';
export declare const MAX_FEE = 5000000000;
export declare class ContractCallBuilder extends TransactionBuilder {
    protected _signingKeys: BaseKey[];
    private _toContractAddress;
    private _data;
    private _fee;
    constructor(_coinConfig: Readonly<CoinConfig>);
    /** @inheritdoc */
    protected buildImplementation(): Promise<Transaction>;
    /** @inheritdoc */
    protected signImplementation(key: BaseKey): Transaction;
    /**
     * Initialize the transaction builder fields using the transaction data
     *
     * @param {any} rawTransaction the transaction data in a string or JSON format
     * @returns {ContractCallBuilder} the builder with the transaction data set
     */
    initBuilder(rawTransaction: TransactionReceipt | string): this;
    /**
     * Initialize the contract call specific data
     *
     * @param {TriggerSmartContract} contractCall object with transfer data
     */
    protected initContractCall(contractCall: TriggerSmartContract): void;
    /**
     * Set the address of the contract to be called,
     *
     * @param {Address} contractAddress the contract address
     * @returns {ContractCallBuilder} the builder with the new parameter set
     */
    to(contractAddress: Address): this;
    /**
     * Set the data with the method call and parameters
     *
     * @param {string} data data encoded on hexa
     * @returns {ContractCallBuilder} the builder with the new parameter set
     */
    data(data: string): this;
    /** @inheritdoc */
    extendValidTo(extensionMs: number): void;
    /**
     * Set the fee limit for the transaction
     *
     * @param {Fee} fee the fee limit for the transaction
     * @returns {ContractCallBuilder} the builder with the new parameter set
     */
    fee(fee: Fee): this;
    private createTransaction;
    private getRawDataHex;
    private applySignatures;
    /** @inheritdoc */
    validateTransaction(transaction: Transaction): void;
    /** @inheritdoc */
    validateMandatoryFields(): void;
}
//# sourceMappingURL=contractCallBuilder.d.ts.map

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


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