Skip to content

Commit

Permalink
tomo dual wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
gbarkhatov committed Oct 15, 2024
1 parent 6a00afc commit bbd7205
Show file tree
Hide file tree
Showing 44 changed files with 1,767 additions and 1,481 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/
10 changes: 5 additions & 5 deletions docs/WalletIntegration.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const DEFAULT_INSCRIPTION_LIMIT = 100;
* Provides methods for connecting to a wallet, retrieving wallet information, signing transactions, and more.
*/

export abstract class WalletProvider {
export abstract class BTCWalletProvider {
/**
* Connects to the wallet and returns the instance of the wallet provider.
* Currently only supports "native segwit" and "taproot" address types.
Expand Down Expand Up @@ -189,7 +189,7 @@ instance of it under the `window.btcwallet` global object when the Babylon dApp
is loaded.

```ts
class MobileAppWallet extends WalletProvider {
class MobileAppWallet extends BTCWalletProvider {
...
Interface Methods definitions
...
Expand All @@ -211,7 +211,7 @@ are implemented using external calls to the mempool.space API as they are not
provided out of the box from the wallet exposed methods.

```ts
import { WalletProvider, Network, Fees, UTXO } from "../wallet_provider";
import { BTCWalletProvider, Network, Fees, UTXO } from "../btc_wallet_provider";
import {
getAddressBalance,
getTipHeight,
Expand All @@ -225,7 +225,7 @@ type OKXWalletInfo = {
address: string;
};

export class OKXWallet extends WalletProvider {
export class OKXWallet extends BTCWalletProvider {
private okxWalletInfo: OKXWalletInfo | undefined;

constructor() {
Expand Down Expand Up @@ -392,7 +392,7 @@ export class OKXWallet extends WalletProvider {
As a reference, we provide the mempool.space retrieval methods that we used below:

```ts
import { Fees, UTXO } from "./wallet/wallet_provider";
import { Fees, UTXO } from "./wallet/btc_wallet_provider";

/*
URL Construction methods
Expand Down
4 changes: 4 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ const nextConfig = {
experimental: {
forceSwcTransforms: true,
},
// TODO check - TOMO "long" keplr dependency
typescript: {
ignoreBuildErrors: true,
},
};

export default nextConfig;
Loading

0 comments on commit bbd7205

Please sign in to comment.