PHP WebShell

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

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

/**
 * Ethereum transaction model. This is the base model for all ethereum based coins (Celo, ETC, RSK, ETH)
 */
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import EthereumCommon from '@ethereumjs/common';
import { BaseKey, Entry, BaseTransaction, TransactionType } from '@bitgo/sdk-core';
import { KeyPair } from './keyPair';
import { EthLikeTransactionData, TxData } from './iface';
export declare class Transaction extends BaseTransaction {
    protected _id: string;
    protected _inputs: Entry[];
    protected _outputs: Entry[];
    protected _signatures: string[];
    protected _type: TransactionType;
    protected _common: EthereumCommon;
    protected _transactionData?: EthLikeTransactionData;
    /**
     * return a new Transaction initialized with the serialized tx string
     *
     * @param coinConfig The coin configuration object
     * @param common network commons
     * @param serializedTx The serialized tx string with which to initialize the transaction
     * @param isFirstSigner whether the transaction is being signed by the first signer
     * @returns a new transaction object
     */
    static fromSerialized(coinConfig: Readonly<CoinConfig>, common: EthereumCommon, serializedTx: string, isFirstSigner?: boolean): Transaction;
    /**
     * Public constructor.
     *
     * @param {Readonly<CoinConfig>} coinConfig
     * @param common the network commons
     * @param {TxData} txData The object transaction data or encoded transaction data
     * @param {boolean} isFirstSigner whether the transaction is being signed by the first signer
     */
    constructor(coinConfig: Readonly<CoinConfig>, common: EthereumCommon, txData?: TxData, isFirstSigner?: boolean);
    /**
     * Set the transaction data
     *
     * @param {TxData} txData The transaction data to set
     * @param {boolean} isFirstSigner Whether the transaction is being signed by the first signer
     */
    setTransactionData(txData: TxData, isFirstSigner?: boolean): void;
    /**
     * Update the internal fields based on the currently set transaction data, if there is any
     */
    protected updateFields(isFirstSigner?: boolean): void;
    /**
     * Set the transaction type
     *
     * @param {TransactionType} transactionType The transaction type to be set
     */
    setTransactionType(transactionType: TransactionType): void;
    /** @inheritdoc */
    canSign(key: BaseKey): boolean;
    /**
     * Sign the transaction with the provided key. It does not check if the signer is allowed to sign
     * it or not.
     *
     * @param {KeyPair} keyPair The key to sign the transaction with
     */
    sign(keyPair: KeyPair): Promise<void>;
    /** @inheritdoc */
    toBroadcastFormat(): string;
    /** @inheritdoc */
    toJson(): TxData;
}
//# sourceMappingURL=transaction.d.ts.map

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


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