@dodoex/widgets 3.0.2-zetachain.22 → 3.0.2-zetachain.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { TokenList } from '../Token/type';
2
- import { BridgeStep, routesExample } from './useFetchRoutePriceBridge';
2
+ import { BridgeStep, CrossChainSwapZetachainRoute } from './useFetchRoutePriceBridge';
3
3
  export declare function generateBridgeStep({ omniPlan, tokenList, }: {
4
- omniPlan: (typeof routesExample)['data']['cross_chain_swap_zetachain_routes']['omniPlan'];
4
+ omniPlan: CrossChainSwapZetachainRoute['omniPlan'];
5
5
  tokenList: TokenList;
6
6
  }): BridgeStep;
@@ -1,4 +1,5 @@
1
1
  import { ChainId } from '@dodoex/api';
2
+ import type { BitcoinConnector } from '@reown/appkit-adapter-bitcoin';
2
3
  import { type Provider } from '@reown/appkit-adapter-solana/react';
3
4
  import type { Provider as CoreProvider } from '@reown/appkit/react';
4
5
  export declare function useWalletInfo(): {
@@ -21,6 +22,7 @@ export declare function useWalletInfo(): {
21
22
  ethersProvider: CoreProvider;
22
23
  solanaWalletProvider: Provider;
23
24
  solanaConnection: import("@solana/web3.js").Connection | undefined;
25
+ bitcoinWalletProvider: BitcoinConnector;
24
26
  getAppKitAccountByChainId: (targetChainId: ChainId | undefined) => {
25
27
  appKitAccount: import("@reown/appkit/react").UseAppKitAccountReturn;
26
28
  namespace: import("@reown/appkit-common").ChainNamespace;
@@ -0,0 +1,4 @@
1
+ import { Transaction, VersionedTransaction } from '@solana/web3.js';
2
+ export declare function constructSolanaTransaction({ data }: {
3
+ data: string;
4
+ }): VersionedTransaction | Transaction;
@@ -0,0 +1,5 @@
1
+ export declare const executeRouteZetachainBtc: () => Promise<void>;
2
+ export declare function getMempoolUTXO(address: string): Promise<any>;
3
+ export declare function getMempoolTxDetail(txHash: string): Promise<any>;
4
+ export declare function getSignetMempoolUTXO(address: string): Promise<any>;
5
+ export declare function getSignetMempoolTxDetail(txHash: string): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodoex/widgets",
3
- "version": "3.0.2-zetachain.22",
3
+ "version": "3.0.2-zetachain.24",
4
4
  "description": "DODO Widgets",
5
5
  "source": "src/index.tsx",
6
6
  "types": "dist/types/index.d.ts",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@babel/runtime": "^7.17.0",
61
- "@dodoex/api": "3.0.3-zetachain.8",
61
+ "@dodoex/api": "3.0.3-zetachain.9",
62
62
  "@dodoex/components": "3.0.3-zetachain.5",
63
63
  "@dodoex/contract-request": "^1.3.0",
64
64
  "@dodoex/dodo-contract-request": "1.12.0-alpha.4",
@@ -108,6 +108,7 @@
108
108
  "@reown/appkit-adapter-solana": "^1.7.5",
109
109
  "@solana/web3.js": "1.98.2",
110
110
  "@solana/spl-token": "^0.4.13",
111
+ "bitcoinjs-lib": "6.1.7",
111
112
  "react": "^18.0.0",
112
113
  "react-dom": "^18.0.0"
113
114
  },