viem 0.0.1-alpha.26 → 0.0.1-alpha.28
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-67DKKHAV.js +210 -0
- package/dist/chunk-67DKKHAV.js.map +1 -0
- package/dist/{chunk-LINNE4N4.js → chunk-7GQB4KE5.js} +219 -157
- package/dist/chunk-7GQB4KE5.js.map +1 -0
- package/dist/chunk-FPEKYEVU.js +265 -0
- package/dist/chunk-FPEKYEVU.js.map +1 -0
- package/dist/chunk-GRILGOX5.mjs +210 -0
- package/dist/chunk-GRILGOX5.mjs.map +1 -0
- package/dist/{chunk-YTG4YXMB.js → chunk-JJ4FDDDW.js} +16 -16
- package/dist/chunk-JJ4FDDDW.js.map +1 -0
- package/dist/chunk-NKO23GXR.mjs +265 -0
- package/dist/chunk-NKO23GXR.mjs.map +1 -0
- package/dist/{chunk-DSQO3E4F.js → chunk-NYWN5V47.js} +219 -59
- package/dist/chunk-NYWN5V47.js.map +1 -0
- package/dist/{chunk-BSAB6UH4.mjs → chunk-PVBEFQET.mjs} +7 -7
- package/dist/chunk-PVBEFQET.mjs.map +1 -0
- package/dist/{chunk-QSIX64VZ.mjs → chunk-RCJJFKTU.mjs} +164 -102
- package/dist/chunk-RCJJFKTU.mjs.map +1 -0
- package/dist/{chunk-PRG3BBPZ.mjs → chunk-TDOKFOQ5.mjs} +223 -63
- package/dist/chunk-TDOKFOQ5.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 +21 -12
- 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-07adffee.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 +13 -13
- 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 -2
- package/dist/call-3476b8ee.d.ts +0 -22
- package/dist/chain-42de87e5.d.ts +0 -359
- package/dist/chunk-BSAB6UH4.mjs.map +0 -1
- package/dist/chunk-DSQO3E4F.js.map +0 -1
- package/dist/chunk-LINNE4N4.js.map +0 -1
- package/dist/chunk-PRG3BBPZ.mjs.map +0 -1
- package/dist/chunk-QSIX64VZ.mjs.map +0 -1
- package/dist/chunk-YTG4YXMB.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 _chunk67DKKHAVjs = require('./chunk-67DKKHAV.js');
|
6
7
|
|
7
8
|
|
8
9
|
|
@@ -36,6 +37,7 @@
|
|
36
37
|
|
37
38
|
|
38
39
|
|
40
|
+
var _chunk7GQB4KE5js = require('./chunk-7GQB4KE5.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 _chunkFPEKYEVUjs = require('./chunk-FPEKYEVU.js');
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
var _chunkJJ4FDDDWjs = require('./chunk-JJ4FDDDW.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 _chunkNYWN5V47js = require('./chunk-NYWN5V47.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: _chunkNYWN5V47js.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 (_chunkNYWN5V47js.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, _chunkNYWN5V47js.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 _chunkNYWN5V47js.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, _chunkNYWN5V47js.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 _chunkNYWN5V47js.getSocket.call(void 0, url_);
|
344
|
+
const { result } = await _chunkNYWN5V47js.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 _chunkNYWN5V47js.getSocket.call(void 0, url_);
|
187
358
|
},
|
188
359
|
async subscribe({ params, onData, onError }) {
|
189
|
-
const socket = await
|
360
|
+
const socket = await _chunkNYWN5V47js.getSocket.call(void 0, url_);
|
190
361
|
const { result: subscriptionId } = await new Promise(
|
191
|
-
(resolve, reject) =>
|
362
|
+
(resolve, reject) => _chunkNYWN5V47js.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) => _chunkNYWN5V47js.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) => _chunk7GQB4KE5js.call.call(void 0, client, args),
|
441
|
+
createBlockFilter: () => _chunk7GQB4KE5js.createBlockFilter.call(void 0, client),
|
442
|
+
createContractEventFilter: (args) => _chunk7GQB4KE5js.createContractEventFilter.call(void 0, client, args),
|
443
|
+
createEventFilter: (args) => _chunk7GQB4KE5js.createEventFilter.call(void 0, client, args),
|
444
|
+
createPendingTransactionFilter: () => _chunk7GQB4KE5js.createPendingTransactionFilter.call(void 0, client),
|
445
|
+
estimateContractGas: (args) => _chunk7GQB4KE5js.estimateContractGas.call(void 0, client, args),
|
446
|
+
estimateGas: (args) => _chunk7GQB4KE5js.estimateGas.call(void 0, client, args),
|
447
|
+
getBalance: (args) => _chunk7GQB4KE5js.getBalance.call(void 0, client, args),
|
448
|
+
getBlock: (args) => _chunk7GQB4KE5js.getBlock.call(void 0, client, args),
|
449
|
+
getBlockNumber: (args) => _chunk7GQB4KE5js.getBlockNumber.call(void 0, client, args),
|
450
|
+
getBlockTransactionCount: (args) => _chunk7GQB4KE5js.getBlockTransactionCount.call(void 0, client, args),
|
451
|
+
getBytecode: (args) => _chunk7GQB4KE5js.getBytecode.call(void 0, client, args),
|
452
|
+
getChainId: () => _chunk7GQB4KE5js.getChainId.call(void 0, client),
|
453
|
+
getEnsAddress: (args) => _chunk67DKKHAVjs.getEnsAddress.call(void 0, client, args),
|
454
|
+
getEnsName: (args) => _chunk67DKKHAVjs.getEnsName.call(void 0, client, args),
|
455
|
+
getFeeHistory: (args) => _chunk7GQB4KE5js.getFeeHistory.call(void 0, client, args),
|
456
|
+
getFilterChanges: (args) => _chunk7GQB4KE5js.getFilterChanges.call(void 0, client, args),
|
457
|
+
getFilterLogs: (args) => _chunk7GQB4KE5js.getFilterLogs.call(void 0, client, args),
|
458
|
+
getGasPrice: () => _chunk7GQB4KE5js.getGasPrice.call(void 0, client),
|
459
|
+
getLogs: (args) => _chunk7GQB4KE5js.getLogs.call(void 0, client, args),
|
460
|
+
getStorageAt: (args) => _chunk7GQB4KE5js.getStorageAt.call(void 0, client, args),
|
461
|
+
getTransaction: (args) => _chunk7GQB4KE5js.getTransaction.call(void 0, client, args),
|
462
|
+
getTransactionConfirmations: (args) => _chunk7GQB4KE5js.getTransactionConfirmations.call(void 0, client, args),
|
463
|
+
getTransactionReceipt: (args) => _chunk7GQB4KE5js.getTransactionReceipt.call(void 0, client, args),
|
464
|
+
multicall: (args) => _chunk7GQB4KE5js.multicall.call(void 0, client, args),
|
465
|
+
readContract: (args) => _chunk7GQB4KE5js.readContract.call(void 0, client, args),
|
466
|
+
simulateContract: (args) => _chunk7GQB4KE5js.simulateContract.call(void 0, client, args),
|
467
|
+
uninstallFilter: (args) => _chunk7GQB4KE5js.uninstallFilter.call(void 0, client, args),
|
468
|
+
waitForTransactionReceipt: (args) => _chunk7GQB4KE5js.waitForTransactionReceipt.call(void 0, client, args),
|
469
|
+
watchBlocks: (args) => _chunk7GQB4KE5js.watchBlocks.call(void 0, client, args),
|
470
|
+
watchBlockNumber: (args) => _chunk7GQB4KE5js.watchBlockNumber.call(void 0, client, args),
|
471
|
+
watchContractEvent: (args) => _chunk7GQB4KE5js.watchContractEvent.call(void 0, client, args),
|
472
|
+
watchEvent: (args) => _chunk7GQB4KE5js.watchEvent.call(void 0, client, args),
|
473
|
+
watchPendingTransactions: (args) => _chunk7GQB4KE5js.watchPendingTransactions.call(void 0, client, args)
|
474
|
+
});
|
475
|
+
|
476
|
+
// src/clients/decorators/test.ts
|
477
|
+
var testActions = (client) => ({
|
478
|
+
dropTransaction: (args) => _chunkFPEKYEVUjs.dropTransaction.call(void 0, client, args),
|
479
|
+
getAutomine: () => _chunkFPEKYEVUjs.getAutomine.call(void 0, client),
|
480
|
+
getTxPoolContent: () => _chunkFPEKYEVUjs.getTxpoolContent.call(void 0, client),
|
481
|
+
getTxPoolStatus: () => _chunkFPEKYEVUjs.getTxpoolStatus.call(void 0, client),
|
482
|
+
impersonateAccount: (args) => _chunkFPEKYEVUjs.impersonateAccount.call(void 0, client, args),
|
483
|
+
increaseTime: (args) => _chunkFPEKYEVUjs.increaseTime.call(void 0, client, args),
|
484
|
+
inspectTxpool: () => _chunkFPEKYEVUjs.inspectTxpool.call(void 0, client),
|
485
|
+
mine: (args) => _chunkFPEKYEVUjs.mine.call(void 0, client, args),
|
486
|
+
removeBlockTimestampInterval: () => _chunkFPEKYEVUjs.removeBlockTimestampInterval.call(void 0, client),
|
487
|
+
reset: (args) => _chunkFPEKYEVUjs.reset.call(void 0, client, args),
|
488
|
+
revert: (args) => _chunkFPEKYEVUjs.revert.call(void 0, client, args),
|
489
|
+
sendUnsignedTransaction: (args) => _chunkFPEKYEVUjs.sendUnsignedTransaction.call(void 0, client, args),
|
490
|
+
setAutomine: (args) => _chunkFPEKYEVUjs.setAutomine.call(void 0, client, args),
|
491
|
+
setBalance: (args) => _chunkFPEKYEVUjs.setBalance.call(void 0, client, args),
|
492
|
+
setBlockGasLimit: (args) => _chunkFPEKYEVUjs.setBlockGasLimit.call(void 0, client, args),
|
493
|
+
setBlockTimestampInterval: (args) => _chunkFPEKYEVUjs.setBlockTimestampInterval.call(void 0, client, args),
|
494
|
+
setCode: (args) => _chunkFPEKYEVUjs.setCode.call(void 0, client, args),
|
495
|
+
setCoinbase: (args) => _chunkFPEKYEVUjs.setCoinbase.call(void 0, client, args),
|
496
|
+
setIntervalMining: (args) => _chunkFPEKYEVUjs.setIntervalMining.call(void 0, client, args),
|
497
|
+
setLoggingEnabled: (args) => _chunkFPEKYEVUjs.setLoggingEnabled.call(void 0, client, args),
|
498
|
+
setMinGasPrice: (args) => _chunkFPEKYEVUjs.setMinGasPrice.call(void 0, client, args),
|
499
|
+
setNextBlockBaseFeePerGas: (args) => _chunkFPEKYEVUjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
|
500
|
+
setNextBlockTimestamp: (args) => _chunkFPEKYEVUjs.setNextBlockTimestamp.call(void 0, client, args),
|
501
|
+
setNonce: (args) => _chunkFPEKYEVUjs.setNonce.call(void 0, client, args),
|
502
|
+
setRpcUrl: (args) => _chunkFPEKYEVUjs.setRpcUrl.call(void 0, client, args),
|
503
|
+
setStorageAt: (args) => _chunkFPEKYEVUjs.setStorageAt.call(void 0, client, args),
|
504
|
+
snapshot: () => _chunkFPEKYEVUjs.snapshot.call(void 0, client),
|
505
|
+
stopImpersonatingAccount: (args) => _chunkFPEKYEVUjs.stopImpersonatingAccount.call(void 0, client, args)
|
506
|
+
});
|
507
|
+
|
508
|
+
// src/clients/decorators/wallet.ts
|
509
|
+
var walletActions = (client) => ({
|
510
|
+
addChain: (args) => _chunkJJ4FDDDWjs.addChain.call(void 0, client, args),
|
511
|
+
deployContract: (args) => _chunkJJ4FDDDWjs.deployContract.call(void 0, client, args),
|
512
|
+
getAccounts: () => _chunkJJ4FDDDWjs.getAccounts.call(void 0, client),
|
513
|
+
getPermissions: () => _chunkJJ4FDDDWjs.getPermissions.call(void 0, client),
|
514
|
+
requestAccounts: () => _chunkJJ4FDDDWjs.requestAccounts.call(void 0, client),
|
515
|
+
requestPermissions: (args) => _chunkJJ4FDDDWjs.requestPermissions.call(void 0, client, args),
|
516
|
+
sendTransaction: (args) => _chunkJJ4FDDDWjs.sendTransaction.call(void 0, client, args),
|
517
|
+
signMessage: (args) => _chunkJJ4FDDDWjs.signMessage.call(void 0, client, args),
|
518
|
+
switchChain: (args) => _chunkJJ4FDDDWjs.switchChain.call(void 0, client, args),
|
519
|
+
watchAsset: (args) => _chunkJJ4FDDDWjs.watchAsset.call(void 0, client, args),
|
520
|
+
writeContract: (args) => _chunkJJ4FDDDWjs.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 = _chunkNYWN5V47js.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkNYWN5V47js.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkNYWN5V47js.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkNYWN5V47js.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkNYWN5V47js.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkNYWN5V47js.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkNYWN5V47js.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkNYWN5V47js.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkNYWN5V47js.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkNYWN5V47js.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkNYWN5V47js.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkNYWN5V47js.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkNYWN5V47js.BaseError; exports.BlockNotFoundError = _chunkNYWN5V47js.BlockNotFoundError; exports.ContractFunctionExecutionError = _chunkNYWN5V47js.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkNYWN5V47js.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkNYWN5V47js.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkNYWN5V47js.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkNYWN5V47js.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkNYWN5V47js.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkNYWN5V47js.HttpRequestError; exports.InternalRpcError = _chunkNYWN5V47js.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkNYWN5V47js.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkNYWN5V47js.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkNYWN5V47js.InvalidAddressError; exports.InvalidArrayError = _chunkNYWN5V47js.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkNYWN5V47js.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkNYWN5V47js.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkNYWN5V47js.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkNYWN5V47js.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkNYWN5V47js.InvalidHexValueError; exports.InvalidInputRpcError = _chunkNYWN5V47js.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkNYWN5V47js.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkNYWN5V47js.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkNYWN5V47js.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkNYWN5V47js.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkNYWN5V47js.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkNYWN5V47js.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkNYWN5V47js.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkNYWN5V47js.ParseRpcError; exports.RequestError = _chunkNYWN5V47js.RequestError; exports.ResourceNotFoundRpcError = _chunkNYWN5V47js.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkNYWN5V47js.ResourceUnavailableRpcError; exports.RpcError = _chunkNYWN5V47js.RpcError; exports.RpcRequestError = _chunkNYWN5V47js.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkNYWN5V47js.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkNYWN5V47js.TimeoutError; exports.TransactionNotFoundError = _chunkNYWN5V47js.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkNYWN5V47js.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkNYWN5V47js.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkNYWN5V47js.UnknownRpcError; exports.UrlRequiredError = _chunkNYWN5V47js.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkNYWN5V47js.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkNYWN5V47js.WebSocketRequestError; exports.boolToBytes = _chunkNYWN5V47js.boolToBytes; exports.boolToHex = _chunkNYWN5V47js.boolToHex; exports.bytesToBigint = _chunkNYWN5V47js.bytesToBigint; exports.bytesToBool = _chunkNYWN5V47js.bytesToBool; exports.bytesToHex = _chunkNYWN5V47js.bytesToHex; exports.bytesToNumber = _chunkNYWN5V47js.bytesToNumber; exports.bytesToString = _chunkNYWN5V47js.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbi = _chunkNYWN5V47js.decodeAbi; exports.decodeErrorResult = _chunkNYWN5V47js.decodeErrorResult; exports.decodeEventLog = _chunkNYWN5V47js.decodeEventLog; exports.decodeFunctionData = _chunkNYWN5V47js.decodeFunctionData; exports.decodeFunctionResult = _chunkNYWN5V47js.decodeFunctionResult; exports.defineBlock = _chunkNYWN5V47js.defineBlock; exports.defineChain = _chunkNYWN5V47js.defineChain; exports.defineTransaction = _chunkNYWN5V47js.defineTransaction; exports.defineTransactionReceipt = _chunkNYWN5V47js.defineTransactionReceipt; exports.defineTransactionRequest = _chunkNYWN5V47js.defineTransactionRequest; exports.encodeAbi = _chunkNYWN5V47js.encodeAbi; exports.encodeDeployData = _chunkNYWN5V47js.encodeDeployData; exports.encodeErrorResult = _chunkNYWN5V47js.encodeErrorResult; exports.encodeEventTopics = _chunkNYWN5V47js.encodeEventTopics; exports.encodeFunctionData = _chunkNYWN5V47js.encodeFunctionData; exports.encodeFunctionResult = _chunkNYWN5V47js.encodeFunctionResult; exports.etherUnits = _chunkNYWN5V47js.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkNYWN5V47js.formatBlock; exports.formatEther = _chunkNYWN5V47js.formatEther; exports.formatGwei = _chunkNYWN5V47js.formatGwei; exports.formatTransaction = _chunkNYWN5V47js.formatTransaction; exports.formatTransactionRequest = _chunkNYWN5V47js.formatTransactionRequest; exports.formatUnit = _chunkNYWN5V47js.formatUnit; exports.fromBytes = _chunkNYWN5V47js.fromBytes; exports.fromHex = _chunkNYWN5V47js.fromHex; exports.fromRlp = _chunkNYWN5V47js.fromRlp; exports.getAbiItem = _chunkNYWN5V47js.getAbiItem; exports.getAddress = _chunkNYWN5V47js.getAddress; exports.getContractAddress = _chunkNYWN5V47js.getContractAddress; exports.getContractError = _chunkNYWN5V47js.getContractError; exports.getCreate2Address = _chunkNYWN5V47js.getCreate2Address; exports.getCreateAddress = _chunkNYWN5V47js.getCreateAddress; exports.getEventSignature = _chunkNYWN5V47js.getEventSignature; exports.getFunctionSignature = _chunkNYWN5V47js.getFunctionSignature; exports.gweiUnits = _chunkNYWN5V47js.gweiUnits; exports.hexToBigInt = _chunkNYWN5V47js.hexToBigInt; exports.hexToBool = _chunkNYWN5V47js.hexToBool; exports.hexToBytes = _chunkNYWN5V47js.hexToBytes; exports.hexToNumber = _chunkNYWN5V47js.hexToNumber; exports.hexToString = _chunkNYWN5V47js.hexToString; exports.http = http; exports.isAddress = _chunkNYWN5V47js.isAddress; exports.isAddressEqual = _chunkNYWN5V47js.isAddressEqual; exports.isBytes = _chunkNYWN5V47js.isBytes; exports.isHex = _chunkNYWN5V47js.isHex; exports.keccak256 = _chunkNYWN5V47js.keccak256; exports.labelhash = _chunk67DKKHAVjs.labelhash; exports.multicall3Abi = _chunkNYWN5V47js.multicall3Abi; exports.namehash = _chunk67DKKHAVjs.namehash; exports.numberToBytes = _chunkNYWN5V47js.numberToBytes; exports.numberToHex = _chunkNYWN5V47js.numberToHex; exports.pad = _chunkNYWN5V47js.pad; exports.padBytes = _chunkNYWN5V47js.padBytes; exports.padHex = _chunkNYWN5V47js.padHex; exports.parseEther = _chunkNYWN5V47js.parseEther; exports.parseGwei = _chunkNYWN5V47js.parseGwei; exports.parseUnit = _chunkNYWN5V47js.parseUnit; exports.size = _chunkNYWN5V47js.size; exports.slice = _chunkNYWN5V47js.slice; exports.sliceBytes = _chunkNYWN5V47js.sliceBytes; exports.sliceHex = _chunkNYWN5V47js.sliceHex; exports.stringToBytes = _chunkNYWN5V47js.stringToBytes; exports.stringToHex = _chunkNYWN5V47js.stringToHex; exports.stringify = _chunkNYWN5V47js.stringify; exports.toBytes = _chunkNYWN5V47js.toBytes; exports.toHex = _chunkNYWN5V47js.toHex; exports.toRlp = _chunkNYWN5V47js.toRlp; exports.transactionType = _chunkNYWN5V47js.transactionType; exports.trim = _chunkNYWN5V47js.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkNYWN5V47js.weiUnits;
|
389
731
|
//# sourceMappingURL=index.js.map
|