PHP WebShell

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

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

import { BaseTransaction, TransactionRecipient, TransactionType } from '@bitgo/sdk-core';
import { BaseCoin as CoinConfig } from '@bitgo/statics';
import { Transaction as SolTransaction } from '@solana/web3.js';
import BigNumber from 'bignumber.js';
import { KeyPair } from '.';
import { DurableNonceParams, TransactionExplanation, TxData } from './iface';
export declare class Transaction extends BaseTransaction {
    protected _solTransaction: SolTransaction;
    private _lamportsPerSignature;
    private _tokenAccountRentExemptAmount;
    protected _type: TransactionType;
    constructor(_coinConfig: Readonly<CoinConfig>);
    get solTransaction(): SolTransaction;
    set solTransaction(tx: SolTransaction);
    private get numberOfRequiredSignatures();
    private get numberOfATACreationInstructions();
    /** @inheritDoc */
    get signablePayload(): Buffer;
    /** @inheritDoc **/
    get id(): string;
    get lamportsPerSignature(): number | undefined;
    set lamportsPerSignature(lamportsPerSignature: number | undefined);
    get tokenAccountRentExemptAmount(): string | undefined;
    set tokenAccountRentExemptAmount(tokenAccountRentExemptAmount: string | undefined);
    /** @inheritDoc */
    get signature(): string[];
    /**
     * Set the transaction type.
     *
     * @param {TransactionType} transactionType The transaction type to be set.
     */
    setTransactionType(transactionType: TransactionType): void;
    /** @inheritdoc */
    canSign(): boolean;
    /**
     * Signs transaction.
     *
     * @param {KeyPair} keyPair Signer keys.
     */
    sign(keyPair: KeyPair[] | KeyPair): Promise<void>;
    /** @inheritdoc */
    toBroadcastFormat(): string;
    /**
     * Sets this transaction payload
     *
     * @param rawTransaction
     */
    fromRawTransaction(rawTransaction: string): void;
    /** @inheritdoc */
    toJson(): TxData;
    /**
     * Get the nonce from the Solana Transaction
     * Throws if not set
     */
    private getNonce;
    /**
     * Load the input and output data on this transaction.
     */
    loadInputsAndOutputs(): void;
    /** @inheritDoc */
    explainTransaction(): TransactionExplanation;
    private calculateFee;
    protected getExplainedTransaction(outputAmount: BigNumber, outputs: TransactionRecipient[], memo?: undefined | string, durableNonce?: undefined | DurableNonceParams): TransactionExplanation;
    private explainRawMsgAuthorizeTransaction;
}
//# sourceMappingURL=transaction.d.ts.map

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


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