PHP WebShell

Текущая директория: /opt/BitGoJS/modules/abstract-substrate/dist/src/lib

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

import { BaseKey, BaseTransaction, TransactionType } from '@bitgo/sdk-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { UnsignedTransaction } from '@substrate/txwrapper-core';
import { TypeRegistry } from '@substrate/txwrapper-core/lib/types';
import { KeyPair } from './keyPair';
import { TransactionExplanation, TxData } from './iface';
export declare class Transaction extends BaseTransaction {
    protected _substrateTransaction: UnsignedTransaction;
    private _signedTransaction?;
    private _registry;
    private _chainName;
    private _sender;
    private static FAKE_SIGNATURE;
    constructor(coinConfig: Readonly<CoinConfig>);
    /** @inheritdoc */
    canSign({ key }: BaseKey): boolean;
    /**
     * Sign a substrate transaction and update the transaction hex
     *
     * @param {KeyPair} keyPair - ed signature
     */
    sign(keyPair: KeyPair): void;
    /**
     * Adds the signature to the Substrate Transaction
     * @param {string} signature
     */
    addSignature(signature: string): void;
    /**
     * Returns a serialized representation of this transaction with a fake signature attached which
     * can be used to estimate transaction fees.
     */
    fakeSign(): string;
    registry(registry: TypeRegistry): void;
    chainName(chainName: string): void;
    sender(sender: string): void;
    /** @inheritdoc */
    toBroadcastFormat(): string;
    transactionSize(): number;
    /** @inheritdoc */
    toJson(): TxData;
    explainTransferTransaction(json: TxData, explanationResult: TransactionExplanation): TransactionExplanation;
    explainStakeTransaction(json: TxData, explanationResult: TransactionExplanation): TransactionExplanation;
    explainUnstakeTransaction(json: TxData, explanationResult: TransactionExplanation): TransactionExplanation;
    /** @inheritdoc */
    explainTransaction(): TransactionExplanation;
    /**
     * Load the input and output data on this transaction.
     */
    loadInputsAndOutputs(): void;
    private decodeInputsAndOutputsForSend;
    private decodeInputsAndOutputsForStakingActivate;
    private decodeInputsAndOutputsForStakingDeactivate;
    /**
     * Constructs a signed payload using construct.signTx
     * This method will be called during the build step if a TSS signature
     * is added and will set the signTransaction which is the txHex that will be broadcasted
     * As well as add the signature used to sign to the signature array in hex format
     *
     * @param {Buffer} signature The signature to be added to a substrate transaction
     */
    constructSignedPayload(signature: Buffer): void;
    setTransaction(tx: UnsignedTransaction): void;
    /** @inheritdoc **/
    get signablePayload(): Buffer;
    /**
     * Set the transaction type.
     *
     * @param {TransactionType} transactionType The transaction type to be set.
     */
    transactionType(transactionType: TransactionType): void;
    protected getAddressFormat(): number;
}
//# sourceMappingURL=transaction.d.ts.map

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


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