@b3dotfun/sdk 0.0.50-test.1 → 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.
@@ -3,12 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useFirstEOA = useFirstEOA;
4
4
  const react_1 = require("../../../global-account/react");
5
5
  const debug_1 = require("../../../shared/utils/debug");
6
- const thirdweb_1 = require("../../../shared/utils/thirdweb");
7
6
  const react_2 = require("react");
8
- const viem_1 = require("thirdweb/adapters/viem");
9
7
  const react_3 = require("thirdweb/react");
10
8
  const debug = (0, debug_1.debugB3React)("useFirstEOA");
11
- function useFirstEOA(chain) {
9
+ function useFirstEOA() {
12
10
  const wallets = (0, react_3.useConnectedWallets)();
13
11
  const isConnected = (0, react_1.useAuthStore)(state => state.isConnected);
14
12
  const [firstEOA, setFirstEOA] = (0, react_2.useState)(undefined);
@@ -35,27 +33,9 @@ function useFirstEOA(chain) {
35
33
  };
36
34
  autoSelectFirstEOAWallet();
37
35
  }, [isConnected, wallets]);
38
- const walletClient = (0, react_2.useMemo)(() => {
39
- if (!firstEOA)
40
- return undefined;
41
- if (!chain)
42
- return undefined;
43
- try {
44
- const viemClientWallet = viem_1.viemAdapter.wallet.toViem({
45
- client: thirdweb_1.client,
46
- chain,
47
- wallet: firstEOA,
48
- });
49
- return viemClientWallet;
50
- }
51
- catch (err) {
52
- console.error("Error setting wallet client", err);
53
- }
54
- }, [firstEOA, chain]);
55
36
  return {
56
37
  account: firstEOA,
57
38
  address,
58
39
  info: walletInfo,
59
- walletClient,
60
40
  };
61
41
  }
@@ -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"];
@@ -58,7 +58,7 @@ export class BondkitToken {
58
58
  });
59
59
  this.publicClient = createPublicClient({
60
60
  chain: this.chain,
61
- transport,
61
+ transport: http(this.rpcUrl),
62
62
  });
63
63
  this.contract = getContract({
64
64
  address: this.contractAddress,
@@ -105,7 +105,7 @@ export class BondkitToken {
105
105
  });
106
106
  this.publicClient = createPublicClient({
107
107
  chain: this.chain,
108
- transport,
108
+ transport: http(this.rpcUrl),
109
109
  });
110
110
  this.contract = getContract({
111
111
  address: this.contractAddress,