tanglepay-sdk
Version:
DApp SDK to interact with TanglePay wallets
19 lines (16 loc) • 493 B
text/typescript
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;
}