UNPKG

stellar-plus

Version:

beta version of stellar-plus, an all-in-one sdk for the Stellar blockchain

16 lines (15 loc) 839 B
import { AccountHandler, AccountHandlerPayload } from '../../../../stellar-plus/account/account-handler/types'; import { NetworkConfig } from '../../../../stellar-plus/network'; export type FreighterAccountHandler = AccountHandler & { connect(onPublicKeyReceived: FreighterCallback): Promise<void>; disconnect(): void; loadPublicKey(onPublicKeyReceived: FreighterCallback, enforceConnection: boolean): Promise<void>; isFreighterConnected(enforceConnection?: boolean, callback?: FreighterCallback): Promise<boolean>; isFreighterInstalled(): Promise<boolean>; isApplicationAuthorized(): Promise<boolean>; isNetworkCorrect(): Promise<boolean>; }; export type FreighterAccHandlerPayload = AccountHandlerPayload & { networkConfig: NetworkConfig; }; export type FreighterCallback = (pk: string) => Promise<void>;