viem 0.0.1-alpha.27 → 0.0.1-alpha.29
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/chain-4d46a747.d.ts +543 -0
- package/dist/{chain-b0cfb141.d.ts → chain-c7c44165.d.ts} +1 -1
- package/dist/chains.d.ts +5 -3
- package/dist/chains.js +46 -46
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-JY7JGKSA.js → chunk-4VQKZYE2.js} +219 -157
- package/dist/chunk-4VQKZYE2.js.map +1 -0
- package/dist/{chunk-2DSFM32P.js → chunk-CKYH337I.js} +15 -15
- package/dist/{chunk-2DSFM32P.js.map → chunk-CKYH337I.js.map} +1 -1
- package/dist/{chunk-W7KWIGWO.js → chunk-EYORBAD4.js} +45 -44
- package/dist/chunk-EYORBAD4.js.map +1 -0
- package/dist/{chunk-LF6P33WQ.mjs → chunk-HPUQL3IM.mjs} +3 -3
- package/dist/chunk-HPUQL3IM.mjs.map +1 -0
- package/dist/chunk-OJ7H3CQF.js +265 -0
- package/dist/chunk-OJ7H3CQF.js.map +1 -0
- package/dist/chunk-Q67VUTW3.mjs +210 -0
- package/dist/chunk-Q67VUTW3.mjs.map +1 -0
- package/dist/{chunk-AKGXRZDN.mjs → chunk-RR4MGS6O.mjs} +27 -26
- package/dist/chunk-RR4MGS6O.mjs.map +1 -0
- package/dist/chunk-S252SZEL.mjs +265 -0
- package/dist/chunk-S252SZEL.mjs.map +1 -0
- package/dist/chunk-SEIPUKZE.js +210 -0
- package/dist/chunk-SEIPUKZE.js.map +1 -0
- package/dist/{chunk-BJJH7RYH.mjs → chunk-TQC7KZ24.mjs} +164 -102
- package/dist/chunk-TQC7KZ24.mjs.map +1 -0
- package/dist/contract.d.ts +12 -128
- package/dist/contract.js +6 -4
- package/dist/contract.mjs +5 -3
- package/dist/{createClient-6689596e.d.ts → createClient-5d5c14d6.d.ts} +5 -3
- package/dist/createPublicClient-2b4afeac.d.ts +629 -0
- package/dist/{eip1193-617a05ae.d.ts → eip1193-f09a55af.d.ts} +2 -2
- package/dist/ens.d.ts +10 -68
- package/dist/ens.js +5 -199
- package/dist/ens.js.map +1 -1
- package/dist/ens.mjs +7 -201
- package/dist/ens.mjs.map +1 -1
- package/dist/formatAbiItem-d231fef2.d.ts +14 -0
- package/dist/{getAbiItem-d2e8bd76.d.ts → getAbiItem-0e085959.d.ts} +15 -15
- package/dist/index.d.ts +22 -13
- package/dist/index.js +368 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +358 -16
- package/dist/index.mjs.map +1 -1
- package/dist/namehash-88f4639d.d.ts +22 -0
- package/dist/parseGwei-4d0b0d73.d.ts +344 -0
- package/dist/public.d.ts +11 -334
- package/dist/public.js +5 -3
- package/dist/public.mjs +4 -2
- package/dist/test-b9208949.d.ts +213 -0
- package/dist/test.d.ts +8 -149
- package/dist/test.js +20 -222
- package/dist/test.js.map +1 -1
- package/dist/test.mjs +30 -232
- package/dist/test.mjs.map +1 -1
- package/dist/{transactionReceipt-44dbf122.d.ts → transactionReceipt-84fc92e1.d.ts} +1 -1
- package/dist/{transactionRequest-f437b4ba.d.ts → transactionRequest-44c539b4.d.ts} +1 -1
- package/dist/utils/index.d.ts +12 -238
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet-9b1c6905.d.ts +104 -0
- package/dist/wallet.d.ts +7 -41
- package/dist/wallet.js +3 -3
- package/dist/wallet.mjs +2 -2
- package/dist/window.d.ts +4 -2
- package/package.json +1 -1
- package/dist/call-3476b8ee.d.ts +0 -22
- package/dist/chain-42de87e5.d.ts +0 -359
- package/dist/chunk-AKGXRZDN.mjs.map +0 -1
- package/dist/chunk-BJJH7RYH.mjs.map +0 -1
- package/dist/chunk-JY7JGKSA.js.map +0 -1
- package/dist/chunk-LF6P33WQ.mjs.map +0 -1
- package/dist/chunk-W7KWIGWO.js.map +0 -1
- package/dist/contract-9dd2f98b.d.ts +0 -166
- package/dist/createPublicClient-fd558574.d.ts +0 -19
- package/dist/createTestClient-bc1d9028.d.ts +0 -34
- package/dist/createWalletClient-4df88244.d.ts +0 -30
- package/dist/decodeErrorResult-ac835649.d.ts +0 -16
- package/dist/readContract-c460f23a.d.ts +0 -10
- package/dist/rpc-8c10fc98.d.ts +0 -119
- package/dist/sendTransaction-7ce442c0.d.ts +0 -12
- package/dist/watchEvent-569c9976.d.ts +0 -41
package/dist/index.js
CHANGED
@@ -3,6 +3,7 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
+
var _chunkSEIPUKZEjs = require('./chunk-SEIPUKZE.js');
|
6
7
|
|
7
8
|
|
8
9
|
|
@@ -36,6 +37,7 @@
|
|
36
37
|
|
37
38
|
|
38
39
|
|
40
|
+
var _chunk4VQKZYE2js = require('./chunk-4VQKZYE2.js');
|
39
41
|
|
40
42
|
|
41
43
|
|
@@ -58,7 +60,161 @@
|
|
58
60
|
|
59
61
|
|
60
62
|
|
61
|
-
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
var _chunkOJ7H3CQFjs = require('./chunk-OJ7H3CQF.js');
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
var _chunkCKYH337Ijs = require('./chunk-CKYH337I.js');
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
var _chunkEYORBAD4js = require('./chunk-EYORBAD4.js');
|
62
218
|
|
63
219
|
// src/clients/transports/createTransport.ts
|
64
220
|
function createTransport({
|
@@ -67,11 +223,12 @@ function createTransport({
|
|
67
223
|
request,
|
68
224
|
retryCount = 3,
|
69
225
|
retryDelay = 150,
|
226
|
+
timeout,
|
70
227
|
type
|
71
228
|
}, value) {
|
72
229
|
return {
|
73
|
-
config: { key, name, request, retryCount, retryDelay, type },
|
74
|
-
request:
|
230
|
+
config: { key, name, request, retryCount, retryDelay, timeout, type },
|
231
|
+
request: _chunkEYORBAD4js.buildRequest.call(void 0, request, { retryCount, retryDelay }),
|
75
232
|
value
|
76
233
|
};
|
77
234
|
}
|
@@ -105,7 +262,7 @@ function fallback(transports, config = {}) {
|
|
105
262
|
params
|
106
263
|
});
|
107
264
|
} catch (err) {
|
108
|
-
if (
|
265
|
+
if (_chunkEYORBAD4js.isDeterministicError.call(void 0, err))
|
109
266
|
throw err;
|
110
267
|
if (i === transports.length - 1)
|
111
268
|
throw err;
|
@@ -128,27 +285,34 @@ function fallback(transports, config = {}) {
|
|
128
285
|
|
129
286
|
// src/clients/transports/http.ts
|
130
287
|
function http(url, config = {}) {
|
131
|
-
const {
|
288
|
+
const {
|
289
|
+
key = "http",
|
290
|
+
name = "HTTP JSON-RPC",
|
291
|
+
retryDelay,
|
292
|
+
timeout = 1e4
|
293
|
+
} = config;
|
132
294
|
return ({ chain, retryCount: defaultRetryCount }) => {
|
133
295
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
134
296
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
|
135
297
|
if (!url_)
|
136
|
-
throw new (0,
|
298
|
+
throw new (0, _chunkEYORBAD4js.UrlRequiredError)();
|
137
299
|
return createTransport(
|
138
300
|
{
|
139
301
|
key,
|
140
302
|
name,
|
141
303
|
async request({ method, params }) {
|
142
|
-
const { result } = await
|
304
|
+
const { result } = await _chunkEYORBAD4js.rpc.http(url_, {
|
143
305
|
body: {
|
144
306
|
method,
|
145
307
|
params
|
146
|
-
}
|
308
|
+
},
|
309
|
+
timeout
|
147
310
|
});
|
148
311
|
return result;
|
149
312
|
},
|
150
313
|
retryCount,
|
151
314
|
retryDelay,
|
315
|
+
timeout,
|
152
316
|
type: "http"
|
153
317
|
},
|
154
318
|
{
|
@@ -160,35 +324,42 @@ function http(url, config = {}) {
|
|
160
324
|
|
161
325
|
// src/clients/transports/webSocket.ts
|
162
326
|
function webSocket(url, config = {}) {
|
163
|
-
const {
|
327
|
+
const {
|
328
|
+
key = "webSocket",
|
329
|
+
name = "WebSocket JSON-RPC",
|
330
|
+
retryDelay,
|
331
|
+
timeout = 1e4
|
332
|
+
} = config;
|
164
333
|
return ({ chain, retryCount: defaultRetryCount }) => {
|
165
334
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
166
335
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
|
167
336
|
if (!url_)
|
168
|
-
throw new (0,
|
337
|
+
throw new (0, _chunkEYORBAD4js.UrlRequiredError)();
|
169
338
|
return createTransport(
|
170
339
|
{
|
171
340
|
key,
|
172
341
|
name,
|
173
342
|
async request({ method, params }) {
|
174
|
-
const socket = await
|
175
|
-
const { result } = await
|
176
|
-
body: { method, params }
|
343
|
+
const socket = await _chunkEYORBAD4js.getSocket.call(void 0, url_);
|
344
|
+
const { result } = await _chunkEYORBAD4js.rpc.webSocketAsync(socket, {
|
345
|
+
body: { method, params },
|
346
|
+
timeout
|
177
347
|
});
|
178
348
|
return result;
|
179
349
|
},
|
180
350
|
retryCount,
|
181
351
|
retryDelay,
|
352
|
+
timeout,
|
182
353
|
type: "webSocket"
|
183
354
|
},
|
184
355
|
{
|
185
356
|
getSocket() {
|
186
|
-
return
|
357
|
+
return _chunkEYORBAD4js.getSocket.call(void 0, url_);
|
187
358
|
},
|
188
359
|
async subscribe({ params, onData, onError }) {
|
189
|
-
const socket = await
|
360
|
+
const socket = await _chunkEYORBAD4js.getSocket.call(void 0, url_);
|
190
361
|
const { result: subscriptionId } = await new Promise(
|
191
|
-
(resolve, reject) =>
|
362
|
+
(resolve, reject) => _chunkEYORBAD4js.rpc.webSocket(socket, {
|
192
363
|
body: {
|
193
364
|
method: "eth_subscribe",
|
194
365
|
params
|
@@ -210,7 +381,7 @@ function webSocket(url, config = {}) {
|
|
210
381
|
subscriptionId,
|
211
382
|
async unsubscribe() {
|
212
383
|
return new Promise(
|
213
|
-
(resolve, reject) =>
|
384
|
+
(resolve, reject) => _chunkEYORBAD4js.rpc.webSocket(socket, {
|
214
385
|
body: {
|
215
386
|
method: "eth_unsubscribe",
|
216
387
|
params: [subscriptionId]
|
@@ -228,14 +399,14 @@ function webSocket(url, config = {}) {
|
|
228
399
|
}
|
229
400
|
|
230
401
|
// src/utils/uid.ts
|
231
|
-
var
|
232
|
-
var index =
|
402
|
+
var size2 = 256;
|
403
|
+
var index = size2;
|
233
404
|
var buffer;
|
234
405
|
function uid(length = 11) {
|
235
|
-
if (!buffer || index + length >
|
406
|
+
if (!buffer || index + length > size2 * 2) {
|
236
407
|
buffer = "";
|
237
408
|
index = 0;
|
238
|
-
for (let i = 0; i <
|
409
|
+
for (let i = 0; i < size2; i++) {
|
239
410
|
buffer += (256 + Math.random() * 256 | 0).toString(16).substring(1);
|
240
411
|
}
|
241
412
|
}
|
@@ -264,6 +435,91 @@ function createClient({
|
|
264
435
|
};
|
265
436
|
}
|
266
437
|
|
438
|
+
// src/clients/decorators/public.ts
|
439
|
+
var publicActions = (client) => ({
|
440
|
+
call: (args) => _chunk4VQKZYE2js.call.call(void 0, client, args),
|
441
|
+
createBlockFilter: () => _chunk4VQKZYE2js.createBlockFilter.call(void 0, client),
|
442
|
+
createContractEventFilter: (args) => _chunk4VQKZYE2js.createContractEventFilter.call(void 0, client, args),
|
443
|
+
createEventFilter: (args) => _chunk4VQKZYE2js.createEventFilter.call(void 0, client, args),
|
444
|
+
createPendingTransactionFilter: () => _chunk4VQKZYE2js.createPendingTransactionFilter.call(void 0, client),
|
445
|
+
estimateContractGas: (args) => _chunk4VQKZYE2js.estimateContractGas.call(void 0, client, args),
|
446
|
+
estimateGas: (args) => _chunk4VQKZYE2js.estimateGas.call(void 0, client, args),
|
447
|
+
getBalance: (args) => _chunk4VQKZYE2js.getBalance.call(void 0, client, args),
|
448
|
+
getBlock: (args) => _chunk4VQKZYE2js.getBlock.call(void 0, client, args),
|
449
|
+
getBlockNumber: (args) => _chunk4VQKZYE2js.getBlockNumber.call(void 0, client, args),
|
450
|
+
getBlockTransactionCount: (args) => _chunk4VQKZYE2js.getBlockTransactionCount.call(void 0, client, args),
|
451
|
+
getBytecode: (args) => _chunk4VQKZYE2js.getBytecode.call(void 0, client, args),
|
452
|
+
getChainId: () => _chunk4VQKZYE2js.getChainId.call(void 0, client),
|
453
|
+
getEnsAddress: (args) => _chunkSEIPUKZEjs.getEnsAddress.call(void 0, client, args),
|
454
|
+
getEnsName: (args) => _chunkSEIPUKZEjs.getEnsName.call(void 0, client, args),
|
455
|
+
getFeeHistory: (args) => _chunk4VQKZYE2js.getFeeHistory.call(void 0, client, args),
|
456
|
+
getFilterChanges: (args) => _chunk4VQKZYE2js.getFilterChanges.call(void 0, client, args),
|
457
|
+
getFilterLogs: (args) => _chunk4VQKZYE2js.getFilterLogs.call(void 0, client, args),
|
458
|
+
getGasPrice: () => _chunk4VQKZYE2js.getGasPrice.call(void 0, client),
|
459
|
+
getLogs: (args) => _chunk4VQKZYE2js.getLogs.call(void 0, client, args),
|
460
|
+
getStorageAt: (args) => _chunk4VQKZYE2js.getStorageAt.call(void 0, client, args),
|
461
|
+
getTransaction: (args) => _chunk4VQKZYE2js.getTransaction.call(void 0, client, args),
|
462
|
+
getTransactionConfirmations: (args) => _chunk4VQKZYE2js.getTransactionConfirmations.call(void 0, client, args),
|
463
|
+
getTransactionReceipt: (args) => _chunk4VQKZYE2js.getTransactionReceipt.call(void 0, client, args),
|
464
|
+
multicall: (args) => _chunk4VQKZYE2js.multicall.call(void 0, client, args),
|
465
|
+
readContract: (args) => _chunk4VQKZYE2js.readContract.call(void 0, client, args),
|
466
|
+
simulateContract: (args) => _chunk4VQKZYE2js.simulateContract.call(void 0, client, args),
|
467
|
+
uninstallFilter: (args) => _chunk4VQKZYE2js.uninstallFilter.call(void 0, client, args),
|
468
|
+
waitForTransactionReceipt: (args) => _chunk4VQKZYE2js.waitForTransactionReceipt.call(void 0, client, args),
|
469
|
+
watchBlocks: (args) => _chunk4VQKZYE2js.watchBlocks.call(void 0, client, args),
|
470
|
+
watchBlockNumber: (args) => _chunk4VQKZYE2js.watchBlockNumber.call(void 0, client, args),
|
471
|
+
watchContractEvent: (args) => _chunk4VQKZYE2js.watchContractEvent.call(void 0, client, args),
|
472
|
+
watchEvent: (args) => _chunk4VQKZYE2js.watchEvent.call(void 0, client, args),
|
473
|
+
watchPendingTransactions: (args) => _chunk4VQKZYE2js.watchPendingTransactions.call(void 0, client, args)
|
474
|
+
});
|
475
|
+
|
476
|
+
// src/clients/decorators/test.ts
|
477
|
+
var testActions = (client) => ({
|
478
|
+
dropTransaction: (args) => _chunkOJ7H3CQFjs.dropTransaction.call(void 0, client, args),
|
479
|
+
getAutomine: () => _chunkOJ7H3CQFjs.getAutomine.call(void 0, client),
|
480
|
+
getTxPoolContent: () => _chunkOJ7H3CQFjs.getTxpoolContent.call(void 0, client),
|
481
|
+
getTxPoolStatus: () => _chunkOJ7H3CQFjs.getTxpoolStatus.call(void 0, client),
|
482
|
+
impersonateAccount: (args) => _chunkOJ7H3CQFjs.impersonateAccount.call(void 0, client, args),
|
483
|
+
increaseTime: (args) => _chunkOJ7H3CQFjs.increaseTime.call(void 0, client, args),
|
484
|
+
inspectTxpool: () => _chunkOJ7H3CQFjs.inspectTxpool.call(void 0, client),
|
485
|
+
mine: (args) => _chunkOJ7H3CQFjs.mine.call(void 0, client, args),
|
486
|
+
removeBlockTimestampInterval: () => _chunkOJ7H3CQFjs.removeBlockTimestampInterval.call(void 0, client),
|
487
|
+
reset: (args) => _chunkOJ7H3CQFjs.reset.call(void 0, client, args),
|
488
|
+
revert: (args) => _chunkOJ7H3CQFjs.revert.call(void 0, client, args),
|
489
|
+
sendUnsignedTransaction: (args) => _chunkOJ7H3CQFjs.sendUnsignedTransaction.call(void 0, client, args),
|
490
|
+
setAutomine: (args) => _chunkOJ7H3CQFjs.setAutomine.call(void 0, client, args),
|
491
|
+
setBalance: (args) => _chunkOJ7H3CQFjs.setBalance.call(void 0, client, args),
|
492
|
+
setBlockGasLimit: (args) => _chunkOJ7H3CQFjs.setBlockGasLimit.call(void 0, client, args),
|
493
|
+
setBlockTimestampInterval: (args) => _chunkOJ7H3CQFjs.setBlockTimestampInterval.call(void 0, client, args),
|
494
|
+
setCode: (args) => _chunkOJ7H3CQFjs.setCode.call(void 0, client, args),
|
495
|
+
setCoinbase: (args) => _chunkOJ7H3CQFjs.setCoinbase.call(void 0, client, args),
|
496
|
+
setIntervalMining: (args) => _chunkOJ7H3CQFjs.setIntervalMining.call(void 0, client, args),
|
497
|
+
setLoggingEnabled: (args) => _chunkOJ7H3CQFjs.setLoggingEnabled.call(void 0, client, args),
|
498
|
+
setMinGasPrice: (args) => _chunkOJ7H3CQFjs.setMinGasPrice.call(void 0, client, args),
|
499
|
+
setNextBlockBaseFeePerGas: (args) => _chunkOJ7H3CQFjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
|
500
|
+
setNextBlockTimestamp: (args) => _chunkOJ7H3CQFjs.setNextBlockTimestamp.call(void 0, client, args),
|
501
|
+
setNonce: (args) => _chunkOJ7H3CQFjs.setNonce.call(void 0, client, args),
|
502
|
+
setRpcUrl: (args) => _chunkOJ7H3CQFjs.setRpcUrl.call(void 0, client, args),
|
503
|
+
setStorageAt: (args) => _chunkOJ7H3CQFjs.setStorageAt.call(void 0, client, args),
|
504
|
+
snapshot: () => _chunkOJ7H3CQFjs.snapshot.call(void 0, client),
|
505
|
+
stopImpersonatingAccount: (args) => _chunkOJ7H3CQFjs.stopImpersonatingAccount.call(void 0, client, args)
|
506
|
+
});
|
507
|
+
|
508
|
+
// src/clients/decorators/wallet.ts
|
509
|
+
var walletActions = (client) => ({
|
510
|
+
addChain: (args) => _chunkCKYH337Ijs.addChain.call(void 0, client, args),
|
511
|
+
deployContract: (args) => _chunkCKYH337Ijs.deployContract.call(void 0, client, args),
|
512
|
+
getAccounts: () => _chunkCKYH337Ijs.getAccounts.call(void 0, client),
|
513
|
+
getPermissions: () => _chunkCKYH337Ijs.getPermissions.call(void 0, client),
|
514
|
+
requestAccounts: () => _chunkCKYH337Ijs.requestAccounts.call(void 0, client),
|
515
|
+
requestPermissions: (args) => _chunkCKYH337Ijs.requestPermissions.call(void 0, client, args),
|
516
|
+
sendTransaction: (args) => _chunkCKYH337Ijs.sendTransaction.call(void 0, client, args),
|
517
|
+
signMessage: (args) => _chunkCKYH337Ijs.signMessage.call(void 0, client, args),
|
518
|
+
switchChain: (args) => _chunkCKYH337Ijs.switchChain.call(void 0, client, args),
|
519
|
+
watchAsset: (args) => _chunkCKYH337Ijs.watchAsset.call(void 0, client, args),
|
520
|
+
writeContract: (args) => _chunkCKYH337Ijs.writeContract.call(void 0, client, args)
|
521
|
+
});
|
522
|
+
|
267
523
|
// src/clients/createPublicClient.ts
|
268
524
|
function createPublicClient({
|
269
525
|
chain,
|
@@ -272,8 +528,7 @@ function createPublicClient({
|
|
272
528
|
transport,
|
273
529
|
pollingInterval
|
274
530
|
}) {
|
275
|
-
|
276
|
-
return createClient({
|
531
|
+
const client = createClient({
|
277
532
|
chain,
|
278
533
|
key,
|
279
534
|
name,
|
@@ -281,6 +536,10 @@ function createPublicClient({
|
|
281
536
|
transport,
|
282
537
|
type: "publicClient"
|
283
538
|
});
|
539
|
+
return {
|
540
|
+
...client,
|
541
|
+
...publicActions(client)
|
542
|
+
};
|
284
543
|
}
|
285
544
|
|
286
545
|
// src/clients/createTestClient.ts
|
@@ -292,7 +551,7 @@ function createTestClient({
|
|
292
551
|
pollingInterval,
|
293
552
|
transport
|
294
553
|
}) {
|
295
|
-
|
554
|
+
const client = {
|
296
555
|
...createClient({
|
297
556
|
chain,
|
298
557
|
key,
|
@@ -303,6 +562,10 @@ function createTestClient({
|
|
303
562
|
}),
|
304
563
|
mode
|
305
564
|
};
|
565
|
+
return {
|
566
|
+
...client,
|
567
|
+
...testActions(client)
|
568
|
+
};
|
306
569
|
}
|
307
570
|
|
308
571
|
// src/clients/createWalletClient.ts
|
@@ -312,13 +575,17 @@ function createWalletClient({
|
|
312
575
|
name = "Wallet Client",
|
313
576
|
pollingInterval
|
314
577
|
}) {
|
315
|
-
|
578
|
+
const client = createClient({
|
316
579
|
key,
|
317
580
|
name,
|
318
581
|
pollingInterval,
|
319
582
|
transport,
|
320
583
|
type: "walletClient"
|
321
584
|
});
|
585
|
+
return {
|
586
|
+
...client,
|
587
|
+
...walletActions(client)
|
588
|
+
};
|
322
589
|
}
|
323
590
|
|
324
591
|
|
@@ -385,5 +652,80 @@ function createWalletClient({
|
|
385
652
|
|
386
653
|
|
387
654
|
|
388
|
-
|
655
|
+
|
656
|
+
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
|
674
|
+
|
675
|
+
|
676
|
+
|
677
|
+
|
678
|
+
|
679
|
+
|
680
|
+
|
681
|
+
|
682
|
+
|
683
|
+
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
|
699
|
+
|
700
|
+
|
701
|
+
|
702
|
+
|
703
|
+
|
704
|
+
|
705
|
+
|
706
|
+
|
707
|
+
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
|
720
|
+
|
721
|
+
|
722
|
+
|
723
|
+
|
724
|
+
|
725
|
+
|
726
|
+
|
727
|
+
|
728
|
+
|
729
|
+
|
730
|
+
exports.AbiConstructorNotFoundError = _chunkEYORBAD4js.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkEYORBAD4js.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkEYORBAD4js.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkEYORBAD4js.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkEYORBAD4js.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkEYORBAD4js.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkEYORBAD4js.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkEYORBAD4js.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkEYORBAD4js.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkEYORBAD4js.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkEYORBAD4js.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkEYORBAD4js.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkEYORBAD4js.BaseError; exports.BlockNotFoundError = _chunkEYORBAD4js.BlockNotFoundError; exports.ContractFunctionExecutionError = _chunkEYORBAD4js.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkEYORBAD4js.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkEYORBAD4js.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkEYORBAD4js.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkEYORBAD4js.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkEYORBAD4js.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkEYORBAD4js.HttpRequestError; exports.InternalRpcError = _chunkEYORBAD4js.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkEYORBAD4js.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkEYORBAD4js.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkEYORBAD4js.InvalidAddressError; exports.InvalidArrayError = _chunkEYORBAD4js.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkEYORBAD4js.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkEYORBAD4js.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkEYORBAD4js.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkEYORBAD4js.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkEYORBAD4js.InvalidHexValueError; exports.InvalidInputRpcError = _chunkEYORBAD4js.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkEYORBAD4js.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkEYORBAD4js.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkEYORBAD4js.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkEYORBAD4js.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkEYORBAD4js.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkEYORBAD4js.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkEYORBAD4js.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkEYORBAD4js.ParseRpcError; exports.RequestError = _chunkEYORBAD4js.RequestError; exports.ResourceNotFoundRpcError = _chunkEYORBAD4js.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkEYORBAD4js.ResourceUnavailableRpcError; exports.RpcError = _chunkEYORBAD4js.RpcError; exports.RpcRequestError = _chunkEYORBAD4js.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkEYORBAD4js.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkEYORBAD4js.TimeoutError; exports.TransactionNotFoundError = _chunkEYORBAD4js.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkEYORBAD4js.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkEYORBAD4js.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkEYORBAD4js.UnknownRpcError; exports.UrlRequiredError = _chunkEYORBAD4js.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkEYORBAD4js.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkEYORBAD4js.WebSocketRequestError; exports.boolToBytes = _chunkEYORBAD4js.boolToBytes; exports.boolToHex = _chunkEYORBAD4js.boolToHex; exports.bytesToBigint = _chunkEYORBAD4js.bytesToBigint; exports.bytesToBool = _chunkEYORBAD4js.bytesToBool; exports.bytesToHex = _chunkEYORBAD4js.bytesToHex; exports.bytesToNumber = _chunkEYORBAD4js.bytesToNumber; exports.bytesToString = _chunkEYORBAD4js.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbi = _chunkEYORBAD4js.decodeAbi; exports.decodeErrorResult = _chunkEYORBAD4js.decodeErrorResult; exports.decodeEventLog = _chunkEYORBAD4js.decodeEventLog; exports.decodeFunctionData = _chunkEYORBAD4js.decodeFunctionData; exports.decodeFunctionResult = _chunkEYORBAD4js.decodeFunctionResult; exports.defineBlock = _chunkEYORBAD4js.defineBlock; exports.defineChain = _chunkEYORBAD4js.defineChain; exports.defineTransaction = _chunkEYORBAD4js.defineTransaction; exports.defineTransactionReceipt = _chunkEYORBAD4js.defineTransactionReceipt; exports.defineTransactionRequest = _chunkEYORBAD4js.defineTransactionRequest; exports.encodeAbi = _chunkEYORBAD4js.encodeAbi; exports.encodeDeployData = _chunkEYORBAD4js.encodeDeployData; exports.encodeErrorResult = _chunkEYORBAD4js.encodeErrorResult; exports.encodeEventTopics = _chunkEYORBAD4js.encodeEventTopics; exports.encodeFunctionData = _chunkEYORBAD4js.encodeFunctionData; exports.encodeFunctionResult = _chunkEYORBAD4js.encodeFunctionResult; exports.etherUnits = _chunkEYORBAD4js.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkEYORBAD4js.formatBlock; exports.formatEther = _chunkEYORBAD4js.formatEther; exports.formatGwei = _chunkEYORBAD4js.formatGwei; exports.formatTransaction = _chunkEYORBAD4js.formatTransaction; exports.formatTransactionRequest = _chunkEYORBAD4js.formatTransactionRequest; exports.formatUnit = _chunkEYORBAD4js.formatUnit; exports.fromBytes = _chunkEYORBAD4js.fromBytes; exports.fromHex = _chunkEYORBAD4js.fromHex; exports.fromRlp = _chunkEYORBAD4js.fromRlp; exports.getAbiItem = _chunkEYORBAD4js.getAbiItem; exports.getAddress = _chunkEYORBAD4js.getAddress; exports.getContractAddress = _chunkEYORBAD4js.getContractAddress; exports.getContractError = _chunkEYORBAD4js.getContractError; exports.getCreate2Address = _chunkEYORBAD4js.getCreate2Address; exports.getCreateAddress = _chunkEYORBAD4js.getCreateAddress; exports.getEventSignature = _chunkEYORBAD4js.getEventSignature; exports.getFunctionSignature = _chunkEYORBAD4js.getFunctionSignature; exports.gweiUnits = _chunkEYORBAD4js.gweiUnits; exports.hexToBigInt = _chunkEYORBAD4js.hexToBigInt; exports.hexToBool = _chunkEYORBAD4js.hexToBool; exports.hexToBytes = _chunkEYORBAD4js.hexToBytes; exports.hexToNumber = _chunkEYORBAD4js.hexToNumber; exports.hexToString = _chunkEYORBAD4js.hexToString; exports.http = http; exports.isAddress = _chunkEYORBAD4js.isAddress; exports.isAddressEqual = _chunkEYORBAD4js.isAddressEqual; exports.isBytes = _chunkEYORBAD4js.isBytes; exports.isHex = _chunkEYORBAD4js.isHex; exports.keccak256 = _chunkEYORBAD4js.keccak256; exports.labelhash = _chunkSEIPUKZEjs.labelhash; exports.multicall3Abi = _chunkEYORBAD4js.multicall3Abi; exports.namehash = _chunkSEIPUKZEjs.namehash; exports.numberToBytes = _chunkEYORBAD4js.numberToBytes; exports.numberToHex = _chunkEYORBAD4js.numberToHex; exports.pad = _chunkEYORBAD4js.pad; exports.padBytes = _chunkEYORBAD4js.padBytes; exports.padHex = _chunkEYORBAD4js.padHex; exports.parseEther = _chunkEYORBAD4js.parseEther; exports.parseGwei = _chunkEYORBAD4js.parseGwei; exports.parseUnit = _chunkEYORBAD4js.parseUnit; exports.size = _chunkEYORBAD4js.size; exports.slice = _chunkEYORBAD4js.slice; exports.sliceBytes = _chunkEYORBAD4js.sliceBytes; exports.sliceHex = _chunkEYORBAD4js.sliceHex; exports.stringToBytes = _chunkEYORBAD4js.stringToBytes; exports.stringToHex = _chunkEYORBAD4js.stringToHex; exports.stringify = _chunkEYORBAD4js.stringify; exports.toBytes = _chunkEYORBAD4js.toBytes; exports.toHex = _chunkEYORBAD4js.toHex; exports.toRlp = _chunkEYORBAD4js.toRlp; exports.transactionType = _chunkEYORBAD4js.transactionType; exports.trim = _chunkEYORBAD4js.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkEYORBAD4js.weiUnits;
|
389
731
|
//# sourceMappingURL=index.js.map
|