UNPKG

@vela-ventures/ao-sync-sdk

Version:
45 lines (44 loc) 1.02 kB
import { AppInfo, GatewayConfig, PermissionType } from "arconnect"; export interface WalletResponse { action?: string; data?: any; error?: string; } export interface ModalStyles { backgroundColor?: string; width?: string; padding?: string; } export interface ResponseListenerData { action: string; resolve: (response: any) => void; } export interface ReconnectListenerData { corellationId: string; resolve: (response: any) => void; } export interface ConnectionOptions { permissions?: PermissionType[]; appInfo?: AppInfo; gateway?: GatewayConfig; } interface PersonalWallet { tokens: string[]; name: string; type: "personal"; walletAddress: string; } interface SharedWallet { name: string; threshold: number; type: "shared"; tokens: string[]; walletAddress: string; participants: string[]; } export interface Contact { walletAddress: string; name: string; } export type Wallet = PersonalWallet | SharedWallet; export {};