@b3dotfun/sdk 0.0.50-alpha.0 → 0.0.50-alpha.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.50-alpha.0",
3
+ "version": "0.0.50-alpha.1",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -374,7 +374,7 @@
374
374
  "react": "^18.0.0 || ^19.0.0",
375
375
  "react-dom": "^18.0.0 || ^19.0.0",
376
376
  "react-native-mmkv": "^3.2.0",
377
- "thirdweb": "5.108.14",
377
+ "thirdweb": "5.108.9",
378
378
  "three": "^0.175.0",
379
379
  "viem": "^2.28.1",
380
380
  "wagmi": "^2.14.15"
@@ -113,7 +113,7 @@ export class BondkitToken {
113
113
 
114
114
  this.publicClient = createPublicClient({
115
115
  chain: this.chain,
116
- transport,
116
+ transport: http(this.rpcUrl),
117
117
  });
118
118
 
119
119
  this.contract = getContract({
@@ -161,7 +161,7 @@ export class BondkitToken {
161
161
 
162
162
  this.publicClient = createPublicClient({
163
163
  chain: this.chain,
164
- transport,
164
+ transport: http(this.rpcUrl),
165
165
  });
166
166
 
167
167
  this.contract = getContract({
@@ -1,14 +1,12 @@
1
1
  import { useAuthStore } from "@b3dotfun/sdk/global-account/react";
2
2
  import { debugB3React } from "@b3dotfun/sdk/shared/utils/debug";
3
- import { client } from "@b3dotfun/sdk/shared/utils/thirdweb";
4
- import { useEffect, useMemo, useState } from "react";
5
- import { viemAdapter } from "thirdweb/adapters/viem";
3
+ import { useEffect, useState } from "react";
6
4
  import { useConnectedWallets, useWalletInfo } from "thirdweb/react";
7
5
  import { Wallet } from "thirdweb/wallets";
8
6
 
9
7
  const debug = debugB3React("useFirstEOA");
10
8
 
11
- export function useFirstEOA(chain?: { id: number; name: string; rpc: string }) {
9
+ export function useFirstEOA() {
12
10
  const wallets = useConnectedWallets();
13
11
  const isConnected = useAuthStore(state => state.isConnected);
14
12
  const [firstEOA, setFirstEOA] = useState<Wallet | undefined>(undefined);
@@ -41,25 +39,9 @@ export function useFirstEOA(chain?: { id: number; name: string; rpc: string }) {
41
39
  autoSelectFirstEOAWallet();
42
40
  }, [isConnected, wallets]);
43
41
 
44
- const walletClient = useMemo(() => {
45
- if (!firstEOA) return undefined;
46
- if (!chain) return undefined;
47
- try {
48
- const viemClientWallet = viemAdapter.wallet.toViem({
49
- client,
50
- chain,
51
- wallet: firstEOA,
52
- });
53
- return viemClientWallet;
54
- } catch (err) {
55
- console.error("Error setting wallet client", err);
56
- }
57
- }, [firstEOA, chain]);
58
-
59
42
  return {
60
43
  account: firstEOA,
61
44
  address,
62
45
  info: walletInfo,
63
- walletClient,
64
46
  };
65
47
  }