UNPKG

@tezos-x/octez.connect-dapp

Version:

Use this package on your dApp to instanciate a DAppClient object and communicate to wallets.

15 lines (14 loc) • 727 B
import { Storage, StorageKey, ExtendedP2PPairingResponse, NodeDistributions } from '@tezos-x/octez.connect-types'; import { P2PTransport } from '@tezos-x/octez.connect-transport-matrix'; import { KeyPair } from '@tezos-x/octez.connect-utils'; /** * @internalapi * * */ export declare class DappP2PTransport extends P2PTransport<ExtendedP2PPairingResponse, StorageKey.TRANSPORT_P2P_PEERS_DAPP> { constructor(name: string, keyPair: KeyPair, storage: Storage, matrixNodes: NodeDistributions, iconUrl?: string, appUrl?: string); startOpenChannelListener(): Promise<void>; listenForNewPeer(newPeerListener: (peer: ExtendedP2PPairingResponse) => void): Promise<void>; stopListeningForNewPeers(): Promise<void>; }