UNPKG

@tangany/waas

Version:

node.js SDK for Tangany Wallet as a Service API

50 lines (49 loc) 1.2 kB
import { IHateoasLink, INodeStatus } from "./common"; import { IWalletBalance } from "./wallet"; /** * Represents information about a Tezos node */ export interface IXtzNodeInfo { protocol: string; blockHeight: number; chainId: string; } export interface IXtzStatus extends INodeStatus<IXtzNodeInfo> { } /** * Represents the details for a Tezos operation */ export interface ITezosOperationStatusOutput { status: string; blockNr: number; confirmations: number; timestamp: number; details: ITezosOperationDetails[]; } export interface ITezosOperationDetails { type: string; counter: number; } /** * Represents information about a Tezos wallet */ export interface ITezosWalletBalance extends IWalletBalance { isRevealed: boolean; delegate: string; } /** * Represents the output of an asynchronous request for Tezos operations */ export interface IAsyncTezosOperationOutput { hash: string; links: IHateoasLink<"operation">[]; } /** * Represents a Tezos operation estimation */ export interface ITezosOperationEstimation { totalBakerFees: string; totalStorageFees: string; maxGasLimit: number; maxStorageLimit: number; }