@b3dotfun/sdk 0.0.50-test.0 → 0.0.50

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.
@@ -12,7 +12,6 @@ export declare const b3Mainnet: {
12
12
  readonly url: "https://explorer.b3.fun";
13
13
  };
14
14
  };
15
- blockTime?: number | undefined | undefined;
16
15
  contracts?: {
17
16
  [x: string]: import("viem").ChainContract | {
18
17
  [sourceId: number]: import("viem").ChainContract | undefined;
@@ -20,7 +19,7 @@ export declare const b3Mainnet: {
20
19
  ensRegistry?: import("viem").ChainContract | undefined;
21
20
  ensUniversalResolver?: import("viem").ChainContract | undefined;
22
21
  multicall3?: import("viem").ChainContract | undefined;
23
- erc6492Verifier?: import("viem").ChainContract | undefined;
22
+ universalSignatureVerifier?: import("viem").ChainContract | undefined;
24
23
  } | undefined;
25
24
  ensTlds?: readonly string[] | undefined;
26
25
  id: 8333;
@@ -30,7 +29,6 @@ export declare const b3Mainnet: {
30
29
  readonly symbol: "ETH";
31
30
  readonly decimals: 18;
32
31
  };
33
- experimental_preconfirmationTime?: number | undefined | undefined;
34
32
  rpcUrls: {
35
33
  readonly default: {
36
34
  readonly http: readonly ["https://mainnet-rpc.b3.fun"];
@@ -58,7 +56,6 @@ export declare const getViemChainConfig: (config: ChainNetworks) => {
58
56
  readonly url: string;
59
57
  };
60
58
  };
61
- blockTime?: number | undefined | undefined;
62
59
  contracts?: {
63
60
  [x: string]: import("viem").ChainContract | {
64
61
  [sourceId: number]: import("viem").ChainContract | undefined;
@@ -66,7 +63,7 @@ export declare const getViemChainConfig: (config: ChainNetworks) => {
66
63
  ensRegistry?: import("viem").ChainContract | undefined;
67
64
  ensUniversalResolver?: import("viem").ChainContract | undefined;
68
65
  multicall3?: import("viem").ChainContract | undefined;
69
- erc6492Verifier?: import("viem").ChainContract | undefined;
66
+ universalSignatureVerifier?: import("viem").ChainContract | undefined;
70
67
  } | undefined;
71
68
  ensTlds?: readonly string[] | undefined;
72
69
  id: number;
@@ -76,7 +73,6 @@ export declare const getViemChainConfig: (config: ChainNetworks) => {
76
73
  name: string;
77
74
  decimals: number;
78
75
  };
79
- experimental_preconfirmationTime?: number | undefined | undefined;
80
76
  rpcUrls: {
81
77
  readonly default: {
82
78
  readonly http: readonly [string];
@@ -107,7 +103,6 @@ export declare const b3Chain: Chain | {
107
103
  readonly url: "https://explorer.b3.fun";
108
104
  };
109
105
  };
110
- blockTime?: number | undefined | undefined;
111
106
  contracts?: {
112
107
  [x: string]: import("viem").ChainContract | {
113
108
  [sourceId: number]: import("viem").ChainContract | undefined;
@@ -115,7 +110,7 @@ export declare const b3Chain: Chain | {
115
110
  ensRegistry?: import("viem").ChainContract | undefined;
116
111
  ensUniversalResolver?: import("viem").ChainContract | undefined;
117
112
  multicall3?: import("viem").ChainContract | undefined;
118
- erc6492Verifier?: import("viem").ChainContract | undefined;
113
+ universalSignatureVerifier?: import("viem").ChainContract | undefined;
119
114
  } | undefined;
120
115
  ensTlds?: readonly string[] | undefined;
121
116
  id: 8333;
@@ -125,7 +120,6 @@ export declare const b3Chain: Chain | {
125
120
  readonly symbol: "ETH";
126
121
  readonly decimals: 18;
127
122
  };
128
- experimental_preconfirmationTime?: number | undefined | undefined;
129
123
  rpcUrls: {
130
124
  readonly default: {
131
125
  readonly http: readonly ["https://mainnet-rpc.b3.fun"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b3dotfun/sdk",
3
- "version": "0.0.50-test.0",
3
+ "version": "0.0.50",
4
4
  "source": "src/index.ts",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "react-native": "./dist/cjs/index.native.js",
@@ -374,9 +374,9 @@
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
- "viem": "2.37.9",
379
+ "viem": "^2.28.1",
380
380
  "wagmi": "^2.14.15"
381
381
  },
382
382
  "peerDependenciesMeta": {
@@ -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
  }