UNPKG

zumokit

Version:

ZumoKit is a Wallet as a Service SDK

34 lines (33 loc) 1.33 kB
import { Decimal } from 'decimal.js'; import { InternalTransactionJSON, Dictionary, CurrencyCode } from '../interfaces'; /** * Internal transaction details. * <p> * See {@link Transaction}. * */ export declare class InternalTransaction { /** @internal */ json: InternalTransactionJSON; /** Sender user id or null if it is external user. */ fromUserId: string | null; /** Sender user integrator id or null if it is external user. */ fromUserIntegratorId: string | null; /** Sender account id or null if it is external user. */ fromAccountId: string | null; /** Sender address. */ fromAddress: string | null; /** Recipient user id or null if it is external user. */ toUserId: string | null; /** Recipient user integrator id or null if it is external user. */ toUserIntegratorId: string | null; /** Recipient account id or null if it is external user. */ toAccountId: string | null; /** Recipient address. */ toAddress: string | null; /** Amount in transaction currency or null if transaction is Ethereum contract deploy. */ amount: Decimal | null; /** Fee in fiat currencies at the time of the transaction submission. */ fiatAmount: Dictionary<CurrencyCode, number> | null; /** @internal */ constructor(json: InternalTransactionJSON); }