UNPKG

tanglepay-sdk

Version:

DApp SDK to interact with TanglePay wallets

19 lines (16 loc) 493 B
import {JsonRpcId} from "@tanglepaysdk/common"; export declare interface SendToScriptParam { cmd: string; origin?: string; data?: any; id: JsonRpcId; } export declare interface WindowSharedContext { TanglePayEnv?: string; } export declare type IotaResponse<T> = { address: string, nodeId: string } | T; export declare interface IotaEventCapsule { id: string; handler: (res: { address: string, nodeId: string }, code?:unknown) => void; callBack: Function; }