@talken/talkenkit 2.4.11 → 2.4.12

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/dist/index.js CHANGED
@@ -30,7 +30,7 @@ import {
30
30
  isTestnet,
31
31
  networkToChainId,
32
32
  networks_exports
33
- } from "./chunk-7FKWLUOV.js";
33
+ } from "./chunk-KZZG24U5.js";
34
34
  import "./chunk-DFWCI4QG.js";
35
35
  import {
36
36
  darkTheme
@@ -3213,7 +3213,7 @@ function setRainbowKitVersion({ version }) {
3213
3213
  }
3214
3214
  function useFingerprint() {
3215
3215
  const fingerprint = useCallback4(() => {
3216
- setRainbowKitVersion({ version: "2.4.11" });
3216
+ setRainbowKitVersion({ version: "2.4.12" });
3217
3217
  }, []);
3218
3218
  useEffect12(() => {
3219
3219
  fingerprint();
@@ -12616,7 +12616,7 @@ function useBitcoinWallet() {
12616
12616
  });
12617
12617
  return;
12618
12618
  }
12619
- const { AbcBitcoinProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-PP2WTSDI.js");
12619
+ const { AbcBitcoinProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-YOPLVWVE.js");
12620
12620
  const client = createAbcWaasApiClient2({
12621
12621
  waasUrl: process.env.NEXT_PUBLIC_ABC_WAAS_URL || "",
12622
12622
  plain: "",
@@ -12734,7 +12734,7 @@ function useSolanaWallet() {
12734
12734
  });
12735
12735
  return;
12736
12736
  }
12737
- const { AbcSolanaProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-PP2WTSDI.js");
12737
+ const { AbcSolanaProvider, createAbcWaasApiClient: createAbcWaasApiClient2 } = await import("./abcWallet-YOPLVWVE.js");
12738
12738
  const client = createAbcWaasApiClient2({
12739
12739
  waasUrl: process.env.NEXT_PUBLIC_ABC_WAAS_URL || "",
12740
12740
  plain: "",
@@ -165,6 +165,17 @@ export declare class AbcWaasClient {
165
165
  sendRawTransaction(chainId: number, signedTransaction: string): Promise<{
166
166
  txHash: string;
167
167
  }>;
168
+ /**
169
+ * Estimate gas for EIP-1559 transaction
170
+ * Reference: ABC WaaS API docs - /wapi/v2/gas/estimate/eip1559
171
+ */
172
+ estimateGas(params: {
173
+ chainId: number;
174
+ from?: string;
175
+ to: string;
176
+ value?: string;
177
+ data?: string;
178
+ }): Promise<string>;
168
179
  /**
169
180
  * Get wallet info
170
181
  */
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  AbcWaasClient,
4
4
  createAbcWaasClient
5
- } from "../chunk-NUAZNCMH.js";
5
+ } from "../chunk-UTRMKLD5.js";
6
6
  import "../chunk-4PCVQBFZ.js";
7
7
  import "../chunk-NDYGTKP5.js";
8
8
  import "../chunk-A7FIBI6X.js";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  abcConnector
4
- } from "../chunk-KKCRCQNN.js";
5
- import "../chunk-2NVHWZUE.js";
6
- import "../chunk-NUAZNCMH.js";
4
+ } from "../chunk-NY2MBDVO.js";
5
+ import "../chunk-UYFNIOUH.js";
6
+ import "../chunk-UTRMKLD5.js";
7
7
  import "../chunk-4PCVQBFZ.js";
8
8
  import "../chunk-NDYGTKP5.js";
9
9
  import "../chunk-A7FIBI6X.js";
@@ -95,6 +95,11 @@ export declare class AbcEvmProvider extends EventEmitter {
95
95
  * Add Ethereum chain
96
96
  */
97
97
  private wallet_addEthereumChain;
98
+ /**
99
+ * Estimate gas for transaction
100
+ * Uses ABC WaaS gas estimation API with fallback
101
+ */
102
+ private eth_estimateGas;
98
103
  /**
99
104
  * Check if connected
100
105
  */
@@ -3,7 +3,7 @@ import {
3
3
  AbcEvmProvider,
4
4
  createAbcEvmProvider,
5
5
  createAbcProvider
6
- } from "../chunk-2NVHWZUE.js";
6
+ } from "../chunk-UYFNIOUH.js";
7
7
  import "../chunk-5RSS3SRV.js";
8
8
  import "../chunk-RQIUWXDF.js";
9
9
  import "../chunk-VETRBBA2.js";
@@ -5,7 +5,7 @@ import {
5
5
  import "../chunk-MPFE6GP2.js";
6
6
  import {
7
7
  createAbcWaasClient
8
- } from "../chunk-NUAZNCMH.js";
8
+ } from "../chunk-UTRMKLD5.js";
9
9
  import "../chunk-4PCVQBFZ.js";
10
10
  import "../chunk-NDYGTKP5.js";
11
11
  import "../chunk-A7FIBI6X.js";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  abcWallet
4
- } from "../chunk-GZFBNALD.js";
5
- import "../chunk-KKCRCQNN.js";
6
- import "../chunk-2NVHWZUE.js";
7
- import "../chunk-NUAZNCMH.js";
4
+ } from "../chunk-LVODOLXE.js";
5
+ import "../chunk-NY2MBDVO.js";
6
+ import "../chunk-UYFNIOUH.js";
7
+ import "../chunk-UTRMKLD5.js";
8
8
  import "../chunk-4PCVQBFZ.js";
9
9
  import "../chunk-NDYGTKP5.js";
10
10
  import "../chunk-A7FIBI6X.js";
@@ -39,19 +39,19 @@ import "../chunk-KXEAFXAA.js";
39
39
  import "../chunk-MPFE6GP2.js";
40
40
  import {
41
41
  abcWallet
42
- } from "../chunk-GZFBNALD.js";
42
+ } from "../chunk-LVODOLXE.js";
43
43
  import {
44
44
  abcConnector
45
- } from "../chunk-KKCRCQNN.js";
45
+ } from "../chunk-NY2MBDVO.js";
46
46
  import {
47
47
  AbcEvmProvider,
48
48
  createAbcEvmProvider,
49
49
  createAbcProvider
50
- } from "../chunk-2NVHWZUE.js";
50
+ } from "../chunk-UYFNIOUH.js";
51
51
  import {
52
52
  AbcWaasClient,
53
53
  createAbcWaasClient
54
- } from "../chunk-NUAZNCMH.js";
54
+ } from "../chunk-UTRMKLD5.js";
55
55
  import "../chunk-4PCVQBFZ.js";
56
56
  import {
57
57
  secure_default
@@ -0,0 +1,47 @@
1
+ "use client";
2
+ import {
3
+ abcConnector
4
+ } from "./chunk-PPTSQD3J.js";
5
+ import {
6
+ ABC_WALLET_METADATA
7
+ } from "./chunk-VETRBBA2.js";
8
+
9
+ // src/wallets/walletConnectors/abcWallet/abcWallet.ts
10
+ var abcWallet = (specificOptions) => ({ projectId }) => {
11
+ const waasUrl = specificOptions?.waasUrl || process.env.NEXT_PUBLIC_ABC_WAAS_URL || process.env.VITE_ABC_WAAS_URL;
12
+ if (!waasUrl) {
13
+ throw new Error(
14
+ 'ABC WaaS URL is required. Please provide it via:\n1. abcWallet({ waasUrl: "..." }) options, or\n2. NEXT_PUBLIC_ABC_WAAS_URL environment variable, or\n3. VITE_ABC_WAAS_URL environment variable'
15
+ );
16
+ }
17
+ const config = {
18
+ waasUrl,
19
+ apiKey: specificOptions?.apiKey,
20
+ plain: specificOptions?.plain || "",
21
+ // Deprecated - not used (secure.ts uses random generation)
22
+ environment: specificOptions?.environment || "development",
23
+ defaultChainId: specificOptions?.defaultChainId,
24
+ defaultSolanaNetwork: specificOptions?.defaultSolanaNetwork,
25
+ defaultBitcoinNetwork: specificOptions?.defaultBitcoinNetwork,
26
+ projectId
27
+ };
28
+ return {
29
+ id: ABC_WALLET_METADATA.id,
30
+ name: ABC_WALLET_METADATA.name,
31
+ rdns: ABC_WALLET_METADATA.rdns,
32
+ iconUrl: async () => (await import("./abcWallet-AYWSIGAG.js")).default,
33
+ iconBackground: ABC_WALLET_METADATA.iconBackground,
34
+ // Embedded wallet - no installation required
35
+ installed: void 0,
36
+ // No download URLs for embedded wallet
37
+ downloadUrls: void 0,
38
+ // Create connector - wrapper function required by Wallet type
39
+ createConnector: (_walletDetails) => abcConnector({ config }),
40
+ // Embedded wallet always available
41
+ hidden: () => false
42
+ };
43
+ };
44
+
45
+ export {
46
+ abcWallet
47
+ };
@@ -0,0 +1,464 @@
1
+ "use client";
2
+ import {
3
+ hexToNumber,
4
+ numberToHex
5
+ } from "./chunk-5RSS3SRV.js";
6
+
7
+ // src/wallets/walletConnectors/abcWallet/abcProvider.ts
8
+ var EventEmitter = class {
9
+ constructor() {
10
+ this.events = /* @__PURE__ */ new Map();
11
+ }
12
+ on(event, listener) {
13
+ if (!this.events.has(event)) {
14
+ this.events.set(event, []);
15
+ }
16
+ this.events.get(event).push(listener);
17
+ return this;
18
+ }
19
+ off(event, listener) {
20
+ const listeners = this.events.get(event);
21
+ if (listeners) {
22
+ const index = listeners.indexOf(listener);
23
+ if (index !== -1) {
24
+ listeners.splice(index, 1);
25
+ }
26
+ }
27
+ return this;
28
+ }
29
+ removeListener(event, listener) {
30
+ return this.off(event, listener);
31
+ }
32
+ emit(event, ...args) {
33
+ const listeners = this.events.get(event);
34
+ if (listeners) {
35
+ for (const listener of listeners) {
36
+ listener(...args);
37
+ }
38
+ return true;
39
+ }
40
+ return false;
41
+ }
42
+ removeAllListeners(event) {
43
+ if (event) {
44
+ this.events.delete(event);
45
+ } else {
46
+ this.events.clear();
47
+ }
48
+ return this;
49
+ }
50
+ };
51
+ var ProviderRpcError = class extends Error {
52
+ constructor(code, message, data) {
53
+ super(message);
54
+ this.code = code;
55
+ this.data = data;
56
+ this.name = "ProviderRpcError";
57
+ }
58
+ };
59
+ var ErrorCode = {
60
+ USER_REJECTED: 4001,
61
+ UNAUTHORIZED: 4100,
62
+ UNSUPPORTED_METHOD: 4200,
63
+ DISCONNECTED: 4900,
64
+ CHAIN_DISCONNECTED: 4901,
65
+ INVALID_PARAMS: -32602,
66
+ INTERNAL_ERROR: -32603
67
+ };
68
+ var AbcEvmProvider = class extends EventEmitter {
69
+ constructor(client) {
70
+ super();
71
+ this.wallet = null;
72
+ this.chainId = 1;
73
+ // Default to Ethereum mainnet
74
+ this.connected = false;
75
+ this.client = client;
76
+ }
77
+ /**
78
+ * Set wallet information
79
+ */
80
+ setWallet(wallet) {
81
+ const previousAddress = this.wallet?.address;
82
+ const previousChainId = this.chainId;
83
+ this.wallet = wallet;
84
+ this.chainId = wallet.chainId;
85
+ this.connected = true;
86
+ if (previousAddress !== wallet.address) {
87
+ this.emit("accountsChanged", [wallet.address]);
88
+ }
89
+ if (previousChainId !== wallet.chainId) {
90
+ this.emit("chainChanged", numberToHex(wallet.chainId));
91
+ }
92
+ this.emit("connect", { chainId: numberToHex(wallet.chainId) });
93
+ }
94
+ /**
95
+ * Clear wallet (disconnect)
96
+ */
97
+ clearWallet() {
98
+ this.wallet = null;
99
+ this.connected = false;
100
+ this.emit("disconnect", {
101
+ code: ErrorCode.DISCONNECTED,
102
+ message: "User disconnected"
103
+ });
104
+ this.emit("accountsChanged", []);
105
+ }
106
+ /**
107
+ * Set PIN request callback
108
+ */
109
+ setRequestPinCallback(callback) {
110
+ this.requestPinCallback = callback;
111
+ }
112
+ /**
113
+ * Request PIN from user
114
+ */
115
+ async requestPin() {
116
+ if (!this.requestPinCallback) {
117
+ throw new ProviderRpcError(
118
+ ErrorCode.INTERNAL_ERROR,
119
+ "PIN request callback not configured"
120
+ );
121
+ }
122
+ return this.requestPinCallback();
123
+ }
124
+ /**
125
+ * EIP-1193 request method
126
+ */
127
+ async request(args) {
128
+ const { method, params } = args;
129
+ switch (method) {
130
+ case "eth_requestAccounts":
131
+ return this.eth_requestAccounts();
132
+ case "eth_accounts":
133
+ return this.eth_accounts();
134
+ case "eth_chainId":
135
+ return this.eth_chainId();
136
+ case "eth_sendTransaction":
137
+ case "wallet_sendTransaction":
138
+ return this.eth_sendTransaction(params);
139
+ case "eth_signTransaction":
140
+ return this.eth_signTransaction(params);
141
+ case "personal_sign":
142
+ return this.personal_sign(params);
143
+ case "eth_sign":
144
+ return this.eth_sign(params);
145
+ case "eth_signTypedData":
146
+ case "eth_signTypedData_v3":
147
+ case "eth_signTypedData_v4":
148
+ return this.eth_signTypedData(params);
149
+ case "wallet_switchEthereumChain":
150
+ return this.wallet_switchEthereumChain(params);
151
+ case "wallet_addEthereumChain":
152
+ return this.wallet_addEthereumChain(params);
153
+ case "eth_estimateGas":
154
+ return this.eth_estimateGas(params);
155
+ case "eth_blockNumber":
156
+ case "eth_call":
157
+ case "eth_gasPrice":
158
+ case "eth_getBalance":
159
+ case "eth_getBlockByHash":
160
+ case "eth_getBlockByNumber":
161
+ case "eth_getCode":
162
+ case "eth_getStorageAt":
163
+ case "eth_getTransactionByHash":
164
+ case "eth_getTransactionCount":
165
+ case "eth_getTransactionReceipt":
166
+ throw new ProviderRpcError(
167
+ ErrorCode.UNSUPPORTED_METHOD,
168
+ `Method ${method} should be handled by RPC provider`
169
+ );
170
+ default:
171
+ throw new ProviderRpcError(
172
+ ErrorCode.UNSUPPORTED_METHOD,
173
+ `Method ${method} not supported`
174
+ );
175
+ }
176
+ }
177
+ /**
178
+ * Request accounts (EIP-1193)
179
+ */
180
+ async eth_requestAccounts() {
181
+ if (!this.wallet) {
182
+ throw new ProviderRpcError(
183
+ ErrorCode.UNAUTHORIZED,
184
+ "Wallet not connected"
185
+ );
186
+ }
187
+ return [this.wallet.address];
188
+ }
189
+ /**
190
+ * Get accounts
191
+ */
192
+ async eth_accounts() {
193
+ if (!this.wallet) {
194
+ return [];
195
+ }
196
+ return [this.wallet.address];
197
+ }
198
+ /**
199
+ * Get chain ID
200
+ */
201
+ async eth_chainId() {
202
+ return numberToHex(this.chainId);
203
+ }
204
+ /**
205
+ * Send transaction
206
+ */
207
+ async eth_sendTransaction(params) {
208
+ if (!this.wallet) {
209
+ throw new ProviderRpcError(
210
+ ErrorCode.UNAUTHORIZED,
211
+ "Wallet not connected"
212
+ );
213
+ }
214
+ if (!Array.isArray(params) || params.length === 0) {
215
+ throw new ProviderRpcError(
216
+ ErrorCode.INVALID_PARAMS,
217
+ "Invalid transaction params"
218
+ );
219
+ }
220
+ const tx = params[0];
221
+ const isContractDeployment = !tx.to || tx.to === "0x" || tx.to === "0x0" || tx.to === "0x0000000000000000000000000000000000000000";
222
+ if (isContractDeployment) {
223
+ tx.to = "0x";
224
+ } else if (!tx.to) {
225
+ throw new ProviderRpcError(
226
+ ErrorCode.INVALID_PARAMS,
227
+ 'Transaction must have "to" field'
228
+ );
229
+ }
230
+ const pin = await this.requestPin();
231
+ const signParams = {
232
+ chainId: this.chainId,
233
+ transaction: tx,
234
+ keyId: this.wallet.keyId,
235
+ encryptedShare: this.wallet.encryptedShare,
236
+ pin
237
+ };
238
+ const signResult = await this.client.signTransaction(signParams);
239
+ if (!signResult.signature) {
240
+ throw new ProviderRpcError(
241
+ ErrorCode.INTERNAL_ERROR,
242
+ "Failed to get signed transaction from ABC WaaS"
243
+ );
244
+ }
245
+ const sendResult = await this.client.sendRawTransaction(
246
+ this.chainId,
247
+ signResult.signature
248
+ // serializedTx
249
+ );
250
+ return sendResult.txHash;
251
+ }
252
+ /**
253
+ * Sign transaction (without sending)
254
+ */
255
+ async eth_signTransaction(params) {
256
+ if (!this.wallet) {
257
+ throw new ProviderRpcError(
258
+ ErrorCode.UNAUTHORIZED,
259
+ "Wallet not connected"
260
+ );
261
+ }
262
+ if (!Array.isArray(params) || params.length === 0) {
263
+ throw new ProviderRpcError(
264
+ ErrorCode.INVALID_PARAMS,
265
+ "Invalid transaction params"
266
+ );
267
+ }
268
+ const tx = params[0];
269
+ const pin = await this.requestPin();
270
+ const signParams = {
271
+ chainId: this.chainId,
272
+ transaction: tx,
273
+ keyId: this.wallet.keyId,
274
+ encryptedShare: this.wallet.encryptedShare,
275
+ pin
276
+ };
277
+ const result = await this.client.signTransaction(signParams);
278
+ return result.signature;
279
+ }
280
+ /**
281
+ * Personal sign (EIP-191)
282
+ */
283
+ async personal_sign(params) {
284
+ if (!this.wallet) {
285
+ console.error("[AbcProvider] \u274C Wallet not connected");
286
+ throw new ProviderRpcError(
287
+ ErrorCode.UNAUTHORIZED,
288
+ "Wallet not connected"
289
+ );
290
+ }
291
+ if (!Array.isArray(params) || params.length < 2) {
292
+ console.error("[AbcProvider] \u274C Invalid params:", params);
293
+ throw new ProviderRpcError(
294
+ ErrorCode.INVALID_PARAMS,
295
+ "Invalid personal_sign params"
296
+ );
297
+ }
298
+ const [message, address] = params;
299
+ if (address.toLowerCase() !== this.wallet.address.toLowerCase()) {
300
+ console.error("[AbcProvider] \u274C Address mismatch");
301
+ throw new ProviderRpcError(
302
+ ErrorCode.INVALID_PARAMS,
303
+ "Address does not match connected wallet"
304
+ );
305
+ }
306
+ if (!this.wallet.sid) {
307
+ console.error("[AbcProvider] \u274C Missing sid");
308
+ throw new ProviderRpcError(
309
+ ErrorCode.INTERNAL_ERROR,
310
+ "Wallet session ID (sid) is missing - please reconnect wallet"
311
+ );
312
+ }
313
+ if (!this.wallet.pvencstr) {
314
+ console.error("[AbcProvider] \u274C Missing pvencstr");
315
+ throw new ProviderRpcError(
316
+ ErrorCode.INTERNAL_ERROR,
317
+ "Wallet pvencstr is missing - please reconnect wallet"
318
+ );
319
+ }
320
+ if (!this.wallet.wid) {
321
+ console.error("[AbcProvider] \u274C Missing wid");
322
+ throw new ProviderRpcError(
323
+ ErrorCode.INTERNAL_ERROR,
324
+ "Wallet wid is missing - please reconnect wallet"
325
+ );
326
+ }
327
+ const result = await this.client.signMessage({
328
+ message,
329
+ address: this.wallet.address,
330
+ // ciphertext removed - not needed for message signing
331
+ sid: this.wallet.sid,
332
+ uid: this.wallet.uid,
333
+ pvencstr: this.wallet.pvencstr,
334
+ wid: this.wallet.wid
335
+ });
336
+ return result.signature;
337
+ }
338
+ /**
339
+ * Eth sign
340
+ */
341
+ async eth_sign(params) {
342
+ if (!Array.isArray(params) || params.length < 2) {
343
+ throw new ProviderRpcError(
344
+ ErrorCode.INVALID_PARAMS,
345
+ "Invalid eth_sign params"
346
+ );
347
+ }
348
+ const [address, message] = params;
349
+ return this.personal_sign([message, address]);
350
+ }
351
+ /**
352
+ * Sign typed data (EIP-712)
353
+ */
354
+ async eth_signTypedData(params) {
355
+ if (!this.wallet) {
356
+ throw new ProviderRpcError(
357
+ ErrorCode.UNAUTHORIZED,
358
+ "Wallet not connected"
359
+ );
360
+ }
361
+ if (!Array.isArray(params) || params.length < 2) {
362
+ throw new ProviderRpcError(
363
+ ErrorCode.INVALID_PARAMS,
364
+ "Invalid signTypedData params"
365
+ );
366
+ }
367
+ const [address, typedData] = params;
368
+ if (address.toLowerCase() !== this.wallet.address.toLowerCase()) {
369
+ throw new ProviderRpcError(
370
+ ErrorCode.INVALID_PARAMS,
371
+ "Address does not match connected wallet"
372
+ );
373
+ }
374
+ const result = await this.client.signTypedData({
375
+ typedData: typeof typedData === "string" ? typedData : JSON.stringify(typedData)
376
+ // ciphertext removed - not needed for typed data signing
377
+ });
378
+ return result.signature;
379
+ }
380
+ /**
381
+ * Switch Ethereum chain
382
+ */
383
+ async wallet_switchEthereumChain(params) {
384
+ if (!Array.isArray(params) || params.length === 0) {
385
+ throw new ProviderRpcError(
386
+ ErrorCode.INVALID_PARAMS,
387
+ "Invalid switchEthereumChain params"
388
+ );
389
+ }
390
+ const { chainId } = params[0];
391
+ const newChainId = hexToNumber(chainId);
392
+ if (this.chainId === newChainId) {
393
+ return null;
394
+ }
395
+ const _previousChainId = this.chainId;
396
+ this.chainId = newChainId;
397
+ if (this.wallet) {
398
+ this.wallet.chainId = newChainId;
399
+ }
400
+ this.emit("chainChanged", numberToHex(newChainId));
401
+ return null;
402
+ }
403
+ /**
404
+ * Add Ethereum chain
405
+ */
406
+ async wallet_addEthereumChain(params) {
407
+ return this.wallet_switchEthereumChain(params);
408
+ }
409
+ /**
410
+ * Estimate gas for transaction
411
+ * Uses ABC WaaS gas estimation API
412
+ */
413
+ async eth_estimateGas(params) {
414
+ if (!Array.isArray(params) || params.length === 0) {
415
+ throw new ProviderRpcError(
416
+ ErrorCode.INVALID_PARAMS,
417
+ "Invalid estimateGas params"
418
+ );
419
+ }
420
+ const tx = params[0];
421
+ if (!tx.to) {
422
+ throw new ProviderRpcError(
423
+ ErrorCode.INVALID_PARAMS,
424
+ 'Transaction must have "to" field'
425
+ );
426
+ }
427
+ const gasLimit = await this.client.estimateGas({
428
+ chainId: this.chainId,
429
+ from: tx.from || this.wallet?.address,
430
+ to: tx.to,
431
+ value: tx.value,
432
+ data: tx.data
433
+ });
434
+ return gasLimit;
435
+ }
436
+ /**
437
+ * Check if connected
438
+ */
439
+ isConnected() {
440
+ return this.connected;
441
+ }
442
+ /**
443
+ * Get current wallet
444
+ */
445
+ getWallet() {
446
+ return this.wallet;
447
+ }
448
+ /**
449
+ * Get current chain ID
450
+ */
451
+ getChainId() {
452
+ return this.chainId;
453
+ }
454
+ };
455
+ function createAbcEvmProvider(client) {
456
+ return new AbcEvmProvider(client);
457
+ }
458
+ var createAbcProvider = createAbcEvmProvider;
459
+
460
+ export {
461
+ AbcEvmProvider,
462
+ createAbcEvmProvider,
463
+ createAbcProvider
464
+ };