From e60fb032f95ae7a3b1911515926fa54ea770c315 Mon Sep 17 00:00:00 2001 From: Govard Barkhatov Date: Sat, 4 Jan 2025 21:40:43 +0200 Subject: [PATCH] provider interface links to files --- docs/wallet-integration.md | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) diff --git a/docs/wallet-integration.md b/docs/wallet-integration.md index f275a31..a362df3 100644 --- a/docs/wallet-integration.md +++ b/docs/wallet-integration.md @@ -74,35 +74,11 @@ Both native and injectable wallets must implement the `IBBNProvider` interface. #### 1. Implement Provider Interface -Choose the appropriate interface based on your wallet type: +Choose the appropriate interface based on your wallet type. Full interface +definitions can be found here: -```ts -// For BTC wallets -interface IBTCProvider { - connectWallet(): Promise; - getAddress(): Promise; - getPublicKeyHex(): Promise; - signPsbt(psbtHex: string): Promise; - signPsbts(psbtsHexes: string[]): Promise; - getNetwork(): Promise; - signMessage(message: string, type: "ecdsa"): Promise; - getInscriptions(): Promise; - on(eventName: string, callBack: () => void): void; - off(eventName: string, callBack: () => void): void; - getWalletProviderName(): Promise; - getWalletProviderIcon(): Promise; -} - -// For BBN wallets -interface IBBNProvider { - connectWallet(): Promise; - getAddress(): Promise; - getPublicKeyHex(): Promise; - getOfflineSigner(): Promise; - getWalletProviderName(): Promise; - getWalletProviderIcon(): Promise; -} -``` +- [IBTCProvider Interface](../src/core/types.ts#L135) +- [IBBNProvider Interface](../src/core/types.ts#L218) #### 2. Integration Method