@spacesops/wdk-react-native-core 1.0.0-beta.42 → 1.0.0-beta.45

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.
package/README.md CHANGED
@@ -74,8 +74,11 @@ npm install @spacesops/wdk-react-native-core@1.0.0-beta.40
74
74
  npm install @spacesops/pear-wrk-wdk@1.1.1-beta.40 @spacesops/react-native-bare-kit@0.11.0-beta.40
75
75
  npm install @tetherto/wdk-react-native-secure-storage
76
76
  npm install react@">=18.0.0" react-native@">=0.70.0"
77
+ npm install react-native-nitro-modules@">=0.35.0"
77
78
  ```
78
79
 
80
+ `react-native-mmkv` (4.3.x) is bundled as a dependency; the host app must install **`react-native-nitro-modules` ≥ 0.35** so Android/iOS Nitro codegen (e.g. `HybridObject.CxxPart`) matches MMKV.
81
+
79
82
  **Host app notes (beta.40):**
80
83
 
81
84
  - You do **not** need `wire-worklet.js`, `relink-bare-addons.js`, or a direct `@spacesops/wdk-wallet-btc` dependency—bitcoin runs inside the pear worklet bundle.
@@ -114,7 +114,7 @@ export declare const balanceQueryKeys: {
114
114
  * }
115
115
  * ```
116
116
  */
117
- export declare function useBalance(network: string, accountIndex: number, tokenAddress: string | null, options?: BalanceQueryOptions): import("@tanstack/react-query").UseQueryResult<BalanceFetchResult, Error>;
117
+ export declare function useBalance(network: string, accountIndex: number, tokenAddress: string | null, options?: BalanceQueryOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<BalanceFetchResult>, Error>;
118
118
  /**
119
119
  * Hook to fetch all balances for a wallet across all networks
120
120
  *
@@ -123,7 +123,7 @@ export declare function useBalance(network: string, accountIndex: number, tokenA
123
123
  * @param options - Query options (including identifier)
124
124
  * @returns TanStack Query result with all balances
125
125
  */
126
- export declare function useBalancesForWallet(accountIndex: number, tokenConfigs: TokenConfigProvider, options?: BalanceQueryOptions): import("@tanstack/react-query").UseQueryResult<BalanceFetchResult[], Error>;
126
+ export declare function useBalancesForWallet(accountIndex: number, tokenConfigs: TokenConfigProvider, options?: BalanceQueryOptions): import("@tanstack/react-query").UseQueryResult<NoInfer<BalanceFetchResult[]>, Error>;
127
127
  /**
128
128
  * Hook to fetch balances for multiple wallets
129
129
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spacesops/wdk-react-native-core",
3
- "version": "1.0.0-beta.42",
3
+ "version": "1.0.0-beta.45",
4
4
  "description": "Core functionality for React Native wallets - wallet management, balance fetching, and worklet operations",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -56,8 +56,8 @@
56
56
  "@tanstack/react-query": "^5.0.0",
57
57
  "expo-crypto": "^15.0.8",
58
58
  "@spacesops/pear-wrk-wdk": "1.1.1-beta.40",
59
- "@spacesops/react-native-bare-kit": "0.11.0-beta.42",
60
- "react-native-mmkv": "^4.1.0",
59
+ "@spacesops/react-native-bare-kit": "0.11.0-beta.43",
60
+ "react-native-mmkv": "^4.3.0",
61
61
  "zod": "^3.22.0",
62
62
  "zustand": "^5.0.9"
63
63
  },
@@ -74,6 +74,8 @@
74
74
  "typescript": "^5.3.3"
75
75
  },
76
76
  "peerDependencies": {
77
- "react-native": ">=0.70.0"
77
+ "react": "*",
78
+ "react-native": ">=0.70.0",
79
+ "react-native-nitro-modules": ">=0.35.0"
78
80
  }
79
81
  }