viem 2.0.0-alpha.6 → 2.0.0-alpha.7

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.
@@ -19,6 +19,7 @@ class ExecutionRevertedError extends base_js_1.BaseError {
19
19
  });
20
20
  }
21
21
  }
22
+ exports.ExecutionRevertedError = ExecutionRevertedError;
22
23
  Object.defineProperty(ExecutionRevertedError, "code", {
23
24
  enumerable: true,
24
25
  configurable: true,
@@ -31,7 +32,6 @@ Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
31
32
  writable: true,
32
33
  value: /execution reverted/
33
34
  });
34
- exports.ExecutionRevertedError = ExecutionRevertedError;
35
35
  class FeeCapTooHighError extends base_js_1.BaseError {
36
36
  constructor({ cause, maxFeePerGas, } = {}) {
37
37
  super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${(0, formatGwei_js_1.formatGwei)(maxFeePerGas)} gwei` : ''}) cannot be higher than the maximum allowed value (2^256-1).`, {
@@ -45,13 +45,13 @@ class FeeCapTooHighError extends base_js_1.BaseError {
45
45
  });
46
46
  }
47
47
  }
48
+ exports.FeeCapTooHighError = FeeCapTooHighError;
48
49
  Object.defineProperty(FeeCapTooHighError, "nodeMessage", {
49
50
  enumerable: true,
50
51
  configurable: true,
51
52
  writable: true,
52
53
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
53
54
  });
54
- exports.FeeCapTooHighError = FeeCapTooHighError;
55
55
  class FeeCapTooLowError extends base_js_1.BaseError {
56
56
  constructor({ cause, maxFeePerGas, } = {}) {
57
57
  super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${(0, formatGwei_js_1.formatGwei)(maxFeePerGas)}` : ''} gwei) cannot be lower than the block base fee.`, {
@@ -65,13 +65,13 @@ class FeeCapTooLowError extends base_js_1.BaseError {
65
65
  });
66
66
  }
67
67
  }
68
+ exports.FeeCapTooLowError = FeeCapTooLowError;
68
69
  Object.defineProperty(FeeCapTooLowError, "nodeMessage", {
69
70
  enumerable: true,
70
71
  configurable: true,
71
72
  writable: true,
72
73
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
73
74
  });
74
- exports.FeeCapTooLowError = FeeCapTooLowError;
75
75
  class NonceTooHighError extends base_js_1.BaseError {
76
76
  constructor({ cause, nonce } = {}) {
77
77
  super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is higher than the next one expected.`, { cause });
@@ -83,13 +83,13 @@ class NonceTooHighError extends base_js_1.BaseError {
83
83
  });
84
84
  }
85
85
  }
86
+ exports.NonceTooHighError = NonceTooHighError;
86
87
  Object.defineProperty(NonceTooHighError, "nodeMessage", {
87
88
  enumerable: true,
88
89
  configurable: true,
89
90
  writable: true,
90
91
  value: /nonce too high/
91
92
  });
92
- exports.NonceTooHighError = NonceTooHighError;
93
93
  class NonceTooLowError extends base_js_1.BaseError {
94
94
  constructor({ cause, nonce } = {}) {
95
95
  super([
@@ -104,13 +104,13 @@ class NonceTooLowError extends base_js_1.BaseError {
104
104
  });
105
105
  }
106
106
  }
107
+ exports.NonceTooLowError = NonceTooLowError;
107
108
  Object.defineProperty(NonceTooLowError, "nodeMessage", {
108
109
  enumerable: true,
109
110
  configurable: true,
110
111
  writable: true,
111
112
  value: /nonce too low|transaction already imported|already known/
112
113
  });
113
- exports.NonceTooLowError = NonceTooLowError;
114
114
  class NonceMaxValueError extends base_js_1.BaseError {
115
115
  constructor({ cause, nonce } = {}) {
116
116
  super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}exceeds the maximum allowed nonce.`, { cause });
@@ -122,13 +122,13 @@ class NonceMaxValueError extends base_js_1.BaseError {
122
122
  });
123
123
  }
124
124
  }
125
+ exports.NonceMaxValueError = NonceMaxValueError;
125
126
  Object.defineProperty(NonceMaxValueError, "nodeMessage", {
126
127
  enumerable: true,
127
128
  configurable: true,
128
129
  writable: true,
129
130
  value: /nonce has max value/
130
131
  });
131
- exports.NonceMaxValueError = NonceMaxValueError;
132
132
  class InsufficientFundsError extends base_js_1.BaseError {
133
133
  constructor({ cause } = {}) {
134
134
  super([
@@ -154,13 +154,13 @@ class InsufficientFundsError extends base_js_1.BaseError {
154
154
  });
155
155
  }
156
156
  }
157
+ exports.InsufficientFundsError = InsufficientFundsError;
157
158
  Object.defineProperty(InsufficientFundsError, "nodeMessage", {
158
159
  enumerable: true,
159
160
  configurable: true,
160
161
  writable: true,
161
162
  value: /insufficient funds/
162
163
  });
163
- exports.InsufficientFundsError = InsufficientFundsError;
164
164
  class IntrinsicGasTooHighError extends base_js_1.BaseError {
165
165
  constructor({ cause, gas } = {}) {
166
166
  super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction exceeds the limit allowed for the block.`, {
@@ -174,13 +174,13 @@ class IntrinsicGasTooHighError extends base_js_1.BaseError {
174
174
  });
175
175
  }
176
176
  }
177
+ exports.IntrinsicGasTooHighError = IntrinsicGasTooHighError;
177
178
  Object.defineProperty(IntrinsicGasTooHighError, "nodeMessage", {
178
179
  enumerable: true,
179
180
  configurable: true,
180
181
  writable: true,
181
182
  value: /intrinsic gas too high|gas limit reached/
182
183
  });
183
- exports.IntrinsicGasTooHighError = IntrinsicGasTooHighError;
184
184
  class IntrinsicGasTooLowError extends base_js_1.BaseError {
185
185
  constructor({ cause, gas } = {}) {
186
186
  super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction is too low.`, {
@@ -194,13 +194,13 @@ class IntrinsicGasTooLowError extends base_js_1.BaseError {
194
194
  });
195
195
  }
196
196
  }
197
+ exports.IntrinsicGasTooLowError = IntrinsicGasTooLowError;
197
198
  Object.defineProperty(IntrinsicGasTooLowError, "nodeMessage", {
198
199
  enumerable: true,
199
200
  configurable: true,
200
201
  writable: true,
201
202
  value: /intrinsic gas too low/
202
203
  });
203
- exports.IntrinsicGasTooLowError = IntrinsicGasTooLowError;
204
204
  class TransactionTypeNotSupportedError extends base_js_1.BaseError {
205
205
  constructor({ cause }) {
206
206
  super('The transaction type is not supported for this chain.', {
@@ -214,13 +214,13 @@ class TransactionTypeNotSupportedError extends base_js_1.BaseError {
214
214
  });
215
215
  }
216
216
  }
217
+ exports.TransactionTypeNotSupportedError = TransactionTypeNotSupportedError;
217
218
  Object.defineProperty(TransactionTypeNotSupportedError, "nodeMessage", {
218
219
  enumerable: true,
219
220
  configurable: true,
220
221
  writable: true,
221
222
  value: /transaction type not valid/
222
223
  });
223
- exports.TransactionTypeNotSupportedError = TransactionTypeNotSupportedError;
224
224
  class TipAboveFeeCapError extends base_js_1.BaseError {
225
225
  constructor({ cause, maxPriorityFeePerGas, maxFeePerGas, } = {}) {
226
226
  super([
@@ -238,13 +238,13 @@ class TipAboveFeeCapError extends base_js_1.BaseError {
238
238
  });
239
239
  }
240
240
  }
241
+ exports.TipAboveFeeCapError = TipAboveFeeCapError;
241
242
  Object.defineProperty(TipAboveFeeCapError, "nodeMessage", {
242
243
  enumerable: true,
243
244
  configurable: true,
244
245
  writable: true,
245
246
  value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
246
247
  });
247
- exports.TipAboveFeeCapError = TipAboveFeeCapError;
248
248
  class UnknownNodeError extends base_js_1.BaseError {
249
249
  constructor({ cause }) {
250
250
  super(`An error occurred while executing: ${cause?.shortMessage}`, {
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../../errors/node.ts"],"names":[],"mappings":";;;AAAA,+DAAwD;AAExD,uCAAqC;AAYrC,MAAa,sBAAuB,SAAQ,mBAAS;IAMnD,YAAY,EACV,KAAK,EACL,OAAO,MACoC,EAAE;QAC7C,MAAM,MAAM,GAAG,OAAO;YACpB,EAAE,OAAO,CAAC,sBAAsB,EAAE,EAAE,CAAC;YACrC,EAAE,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAA;QACrC,KAAK,CACH,sBACE,MAAM,CAAC,CAAC,CAAC,gBAAgB,MAAM,EAAE,CAAC,CAAC,CAAC,uBACtC,GAAG,EACH;YAC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/B,CAA+B;AASnD,MAAa,mBAAoB,SAAQ,mBAAS;IAIhD,YAAY,EACV,KAAK,EACL,oBAAoB,EACpB,YAAY,MAKV,EAAE;QACJ,KAAK,CACH;YACE,6CACE,oBAAoB;gBAClB,CAAC,CAAC,MAAM,IAAA,0BAAU,EAAC,oBAAoB,CAAC,OAAO;gBAC/C,CAAC,CAAC,EACN,wDACE,YAAY,CAAC,CAAC,CAAC,MAAM,IAAA,0BAAU,EAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EACzD,IAAI;SACL,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ;YACE,KAAK;SACN,CACF,CAAA;QAvBM;;;;mBAAO,qBAAqB;WAAA;IAwBrC,CAAC;;AA3BH,kDA4BC;AA3BQ;;;;WACL,8EAA8E;EAD9D,CAC8D;AA4BlF,MAAa,gBAAiB,SAAQ,mBAAS;IAG7C,YAAY,EAAE,KAAK,EAAyB;QAC1C,KAAK,CAAC,sCAAsC,KAAK,EAAE,YAAY,EAAE,EAAE;YACjE,KAAK;SACN,CAAC,CAAA;QALK;;;;mBAAO,kBAAkB;WAAA;IAMlC,CAAC;CACF;AARD,4CAQC"}
@@ -61,13 +61,13 @@ class ParseRpcError extends RpcError {
61
61
  });
62
62
  }
63
63
  }
64
+ exports.ParseRpcError = ParseRpcError;
64
65
  Object.defineProperty(ParseRpcError, "code", {
65
66
  enumerable: true,
66
67
  configurable: true,
67
68
  writable: true,
68
69
  value: -32700
69
70
  });
70
- exports.ParseRpcError = ParseRpcError;
71
71
  class InvalidRequestRpcError extends RpcError {
72
72
  constructor(cause) {
73
73
  super(cause, {
@@ -82,13 +82,13 @@ class InvalidRequestRpcError extends RpcError {
82
82
  });
83
83
  }
84
84
  }
85
+ exports.InvalidRequestRpcError = InvalidRequestRpcError;
85
86
  Object.defineProperty(InvalidRequestRpcError, "code", {
86
87
  enumerable: true,
87
88
  configurable: true,
88
89
  writable: true,
89
90
  value: -32600
90
91
  });
91
- exports.InvalidRequestRpcError = InvalidRequestRpcError;
92
92
  class MethodNotFoundRpcError extends RpcError {
93
93
  constructor(cause) {
94
94
  super(cause, {
@@ -103,13 +103,13 @@ class MethodNotFoundRpcError extends RpcError {
103
103
  });
104
104
  }
105
105
  }
106
+ exports.MethodNotFoundRpcError = MethodNotFoundRpcError;
106
107
  Object.defineProperty(MethodNotFoundRpcError, "code", {
107
108
  enumerable: true,
108
109
  configurable: true,
109
110
  writable: true,
110
111
  value: -32601
111
112
  });
112
- exports.MethodNotFoundRpcError = MethodNotFoundRpcError;
113
113
  class InvalidParamsRpcError extends RpcError {
114
114
  constructor(cause) {
115
115
  super(cause, {
@@ -127,13 +127,13 @@ class InvalidParamsRpcError extends RpcError {
127
127
  });
128
128
  }
129
129
  }
130
+ exports.InvalidParamsRpcError = InvalidParamsRpcError;
130
131
  Object.defineProperty(InvalidParamsRpcError, "code", {
131
132
  enumerable: true,
132
133
  configurable: true,
133
134
  writable: true,
134
135
  value: -32602
135
136
  });
136
- exports.InvalidParamsRpcError = InvalidParamsRpcError;
137
137
  class InternalRpcError extends RpcError {
138
138
  constructor(cause) {
139
139
  super(cause, {
@@ -148,13 +148,13 @@ class InternalRpcError extends RpcError {
148
148
  });
149
149
  }
150
150
  }
151
+ exports.InternalRpcError = InternalRpcError;
151
152
  Object.defineProperty(InternalRpcError, "code", {
152
153
  enumerable: true,
153
154
  configurable: true,
154
155
  writable: true,
155
156
  value: -32603
156
157
  });
157
- exports.InternalRpcError = InternalRpcError;
158
158
  class InvalidInputRpcError extends RpcError {
159
159
  constructor(cause) {
160
160
  super(cause, {
@@ -172,13 +172,13 @@ class InvalidInputRpcError extends RpcError {
172
172
  });
173
173
  }
174
174
  }
175
+ exports.InvalidInputRpcError = InvalidInputRpcError;
175
176
  Object.defineProperty(InvalidInputRpcError, "code", {
176
177
  enumerable: true,
177
178
  configurable: true,
178
179
  writable: true,
179
180
  value: -32000
180
181
  });
181
- exports.InvalidInputRpcError = InvalidInputRpcError;
182
182
  class ResourceNotFoundRpcError extends RpcError {
183
183
  constructor(cause) {
184
184
  super(cause, {
@@ -193,13 +193,13 @@ class ResourceNotFoundRpcError extends RpcError {
193
193
  });
194
194
  }
195
195
  }
196
+ exports.ResourceNotFoundRpcError = ResourceNotFoundRpcError;
196
197
  Object.defineProperty(ResourceNotFoundRpcError, "code", {
197
198
  enumerable: true,
198
199
  configurable: true,
199
200
  writable: true,
200
201
  value: -32001
201
202
  });
202
- exports.ResourceNotFoundRpcError = ResourceNotFoundRpcError;
203
203
  class ResourceUnavailableRpcError extends RpcError {
204
204
  constructor(cause) {
205
205
  super(cause, {
@@ -214,13 +214,13 @@ class ResourceUnavailableRpcError extends RpcError {
214
214
  });
215
215
  }
216
216
  }
217
+ exports.ResourceUnavailableRpcError = ResourceUnavailableRpcError;
217
218
  Object.defineProperty(ResourceUnavailableRpcError, "code", {
218
219
  enumerable: true,
219
220
  configurable: true,
220
221
  writable: true,
221
222
  value: -32002
222
223
  });
223
- exports.ResourceUnavailableRpcError = ResourceUnavailableRpcError;
224
224
  class TransactionRejectedRpcError extends RpcError {
225
225
  constructor(cause) {
226
226
  super(cause, {
@@ -235,13 +235,13 @@ class TransactionRejectedRpcError extends RpcError {
235
235
  });
236
236
  }
237
237
  }
238
+ exports.TransactionRejectedRpcError = TransactionRejectedRpcError;
238
239
  Object.defineProperty(TransactionRejectedRpcError, "code", {
239
240
  enumerable: true,
240
241
  configurable: true,
241
242
  writable: true,
242
243
  value: -32003
243
244
  });
244
- exports.TransactionRejectedRpcError = TransactionRejectedRpcError;
245
245
  class MethodNotSupportedRpcError extends RpcError {
246
246
  constructor(cause) {
247
247
  super(cause, {
@@ -256,13 +256,13 @@ class MethodNotSupportedRpcError extends RpcError {
256
256
  });
257
257
  }
258
258
  }
259
+ exports.MethodNotSupportedRpcError = MethodNotSupportedRpcError;
259
260
  Object.defineProperty(MethodNotSupportedRpcError, "code", {
260
261
  enumerable: true,
261
262
  configurable: true,
262
263
  writable: true,
263
264
  value: -32004
264
265
  });
265
- exports.MethodNotSupportedRpcError = MethodNotSupportedRpcError;
266
266
  class LimitExceededRpcError extends RpcError {
267
267
  constructor(cause) {
268
268
  super(cause, {
@@ -277,13 +277,13 @@ class LimitExceededRpcError extends RpcError {
277
277
  });
278
278
  }
279
279
  }
280
+ exports.LimitExceededRpcError = LimitExceededRpcError;
280
281
  Object.defineProperty(LimitExceededRpcError, "code", {
281
282
  enumerable: true,
282
283
  configurable: true,
283
284
  writable: true,
284
285
  value: -32005
285
286
  });
286
- exports.LimitExceededRpcError = LimitExceededRpcError;
287
287
  class JsonRpcVersionUnsupportedError extends RpcError {
288
288
  constructor(cause) {
289
289
  super(cause, {
@@ -298,13 +298,13 @@ class JsonRpcVersionUnsupportedError extends RpcError {
298
298
  });
299
299
  }
300
300
  }
301
+ exports.JsonRpcVersionUnsupportedError = JsonRpcVersionUnsupportedError;
301
302
  Object.defineProperty(JsonRpcVersionUnsupportedError, "code", {
302
303
  enumerable: true,
303
304
  configurable: true,
304
305
  writable: true,
305
306
  value: -32006
306
307
  });
307
- exports.JsonRpcVersionUnsupportedError = JsonRpcVersionUnsupportedError;
308
308
  class UserRejectedRequestError extends ProviderRpcError {
309
309
  constructor(cause) {
310
310
  super(cause, {
@@ -319,13 +319,13 @@ class UserRejectedRequestError extends ProviderRpcError {
319
319
  });
320
320
  }
321
321
  }
322
+ exports.UserRejectedRequestError = UserRejectedRequestError;
322
323
  Object.defineProperty(UserRejectedRequestError, "code", {
323
324
  enumerable: true,
324
325
  configurable: true,
325
326
  writable: true,
326
327
  value: 4001
327
328
  });
328
- exports.UserRejectedRequestError = UserRejectedRequestError;
329
329
  class UnauthorizedProviderError extends ProviderRpcError {
330
330
  constructor(cause) {
331
331
  super(cause, {
@@ -340,13 +340,13 @@ class UnauthorizedProviderError extends ProviderRpcError {
340
340
  });
341
341
  }
342
342
  }
343
+ exports.UnauthorizedProviderError = UnauthorizedProviderError;
343
344
  Object.defineProperty(UnauthorizedProviderError, "code", {
344
345
  enumerable: true,
345
346
  configurable: true,
346
347
  writable: true,
347
348
  value: 4100
348
349
  });
349
- exports.UnauthorizedProviderError = UnauthorizedProviderError;
350
350
  class UnsupportedProviderMethodError extends ProviderRpcError {
351
351
  constructor(cause) {
352
352
  super(cause, {
@@ -361,13 +361,13 @@ class UnsupportedProviderMethodError extends ProviderRpcError {
361
361
  });
362
362
  }
363
363
  }
364
+ exports.UnsupportedProviderMethodError = UnsupportedProviderMethodError;
364
365
  Object.defineProperty(UnsupportedProviderMethodError, "code", {
365
366
  enumerable: true,
366
367
  configurable: true,
367
368
  writable: true,
368
369
  value: 4200
369
370
  });
370
- exports.UnsupportedProviderMethodError = UnsupportedProviderMethodError;
371
371
  class ProviderDisconnectedError extends ProviderRpcError {
372
372
  constructor(cause) {
373
373
  super(cause, {
@@ -382,13 +382,13 @@ class ProviderDisconnectedError extends ProviderRpcError {
382
382
  });
383
383
  }
384
384
  }
385
+ exports.ProviderDisconnectedError = ProviderDisconnectedError;
385
386
  Object.defineProperty(ProviderDisconnectedError, "code", {
386
387
  enumerable: true,
387
388
  configurable: true,
388
389
  writable: true,
389
390
  value: 4900
390
391
  });
391
- exports.ProviderDisconnectedError = ProviderDisconnectedError;
392
392
  class ChainDisconnectedError extends ProviderRpcError {
393
393
  constructor(cause) {
394
394
  super(cause, {
@@ -403,13 +403,13 @@ class ChainDisconnectedError extends ProviderRpcError {
403
403
  });
404
404
  }
405
405
  }
406
+ exports.ChainDisconnectedError = ChainDisconnectedError;
406
407
  Object.defineProperty(ChainDisconnectedError, "code", {
407
408
  enumerable: true,
408
409
  configurable: true,
409
410
  writable: true,
410
411
  value: 4901
411
412
  });
412
- exports.ChainDisconnectedError = ChainDisconnectedError;
413
413
  class SwitchChainError extends ProviderRpcError {
414
414
  constructor(cause) {
415
415
  super(cause, {
@@ -424,13 +424,13 @@ class SwitchChainError extends ProviderRpcError {
424
424
  });
425
425
  }
426
426
  }
427
+ exports.SwitchChainError = SwitchChainError;
427
428
  Object.defineProperty(SwitchChainError, "code", {
428
429
  enumerable: true,
429
430
  configurable: true,
430
431
  writable: true,
431
432
  value: 4902
432
433
  });
433
- exports.SwitchChainError = SwitchChainError;
434
434
  class UnknownRpcError extends RpcError {
435
435
  constructor(cause) {
436
436
  super(cause, {
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../errors/rpc.ts"],"names":[],"mappings":";;;AACA,uCAAqC;AACrC,6CAA8C;AAE9C,MAAM,gBAAgB,GAAG,CAAC,CAAC,CAAA;AA8B3B,MAAa,QAA8C,SAAQ,mBAAS;IAK1E,YACE,KAAY,EACZ,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAA0B;QAEtE,KAAK,CAAC,YAAY,EAAE;YAClB,KAAK;YACL,QAAQ;YACR,YAAY,EACV,YAAY,IAAK,KAAqC,EAAE,YAAY;SACvE,CAAC,CAAA;QAbK;;;;mBAAO,UAAU;WAAA;QAE1B;;;;;WAA2B;QAYzB,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QACtB,IAAI,CAAC,IAAI,GAAG,CACV,KAAK,YAAY,4BAAe,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,IAAI,gBAAgB,CAChE,CAAA;IACZ,CAAC;CACF;AApBD,4BAoBC;AAeD,MAAa,gBAEX,SAAQ,QAA8B;IAKtC,YACE,KAAY,EACZ,OAIC;QAED,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAZd;;;;mBAAO,kBAAkB;WAAA;QAElC;;;;;WAAQ;QAYN,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAA;IAC1B,CAAC;CACF;AAnBD,4CAmBC;AAOD,MAAa,aAAc,SAAQ,QAAQ;IAIzC,YAAY,KAAY;QACtB,KAAK,CAAC,KAAK,EAAE;YACX,IAAI,EAAE,aAAa,CAAC,IAAI;YACxB,YAAY,EACV,uGAAuG;SAC1G,CAA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__esModule", { value: true });
3
3
  exports.version = void 0;
4
- exports.version = '2.0.0-alpha.6';
4
+ exports.version = '2.0.0-alpha.7';
5
5
  //# sourceMappingURL=version.js.map
@@ -9,7 +9,7 @@ import { BaseError } from './base.js';
9
9
  *
10
10
  * anvil: https://github.com/foundry-rs/foundry/blob/master/anvil/src/eth/error.rs#L108
11
11
  */
12
- class ExecutionRevertedError extends BaseError {
12
+ export class ExecutionRevertedError extends BaseError {
13
13
  constructor({ cause, message, } = {}) {
14
14
  const reason = message
15
15
  ?.replace('execution reverted: ', '')
@@ -37,8 +37,7 @@ Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
37
37
  writable: true,
38
38
  value: /execution reverted/
39
39
  });
40
- export { ExecutionRevertedError };
41
- class FeeCapTooHighError extends BaseError {
40
+ export class FeeCapTooHighError extends BaseError {
42
41
  constructor({ cause, maxFeePerGas, } = {}) {
43
42
  super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ''}) cannot be higher than the maximum allowed value (2^256-1).`, {
44
43
  cause,
@@ -57,8 +56,7 @@ Object.defineProperty(FeeCapTooHighError, "nodeMessage", {
57
56
  writable: true,
58
57
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
59
58
  });
60
- export { FeeCapTooHighError };
61
- class FeeCapTooLowError extends BaseError {
59
+ export class FeeCapTooLowError extends BaseError {
62
60
  constructor({ cause, maxFeePerGas, } = {}) {
63
61
  super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)}` : ''} gwei) cannot be lower than the block base fee.`, {
64
62
  cause,
@@ -77,8 +75,7 @@ Object.defineProperty(FeeCapTooLowError, "nodeMessage", {
77
75
  writable: true,
78
76
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
79
77
  });
80
- export { FeeCapTooLowError };
81
- class NonceTooHighError extends BaseError {
78
+ export class NonceTooHighError extends BaseError {
82
79
  constructor({ cause, nonce } = {}) {
83
80
  super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is higher than the next one expected.`, { cause });
84
81
  Object.defineProperty(this, "name", {
@@ -95,8 +92,7 @@ Object.defineProperty(NonceTooHighError, "nodeMessage", {
95
92
  writable: true,
96
93
  value: /nonce too high/
97
94
  });
98
- export { NonceTooHighError };
99
- class NonceTooLowError extends BaseError {
95
+ export class NonceTooLowError extends BaseError {
100
96
  constructor({ cause, nonce } = {}) {
101
97
  super([
102
98
  `Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is lower than the current nonce of the account.`,
@@ -116,8 +112,7 @@ Object.defineProperty(NonceTooLowError, "nodeMessage", {
116
112
  writable: true,
117
113
  value: /nonce too low|transaction already imported|already known/
118
114
  });
119
- export { NonceTooLowError };
120
- class NonceMaxValueError extends BaseError {
115
+ export class NonceMaxValueError extends BaseError {
121
116
  constructor({ cause, nonce } = {}) {
122
117
  super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}exceeds the maximum allowed nonce.`, { cause });
123
118
  Object.defineProperty(this, "name", {
@@ -134,8 +129,7 @@ Object.defineProperty(NonceMaxValueError, "nodeMessage", {
134
129
  writable: true,
135
130
  value: /nonce has max value/
136
131
  });
137
- export { NonceMaxValueError };
138
- class InsufficientFundsError extends BaseError {
132
+ export class InsufficientFundsError extends BaseError {
139
133
  constructor({ cause } = {}) {
140
134
  super([
141
135
  'The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.',
@@ -166,8 +160,7 @@ Object.defineProperty(InsufficientFundsError, "nodeMessage", {
166
160
  writable: true,
167
161
  value: /insufficient funds/
168
162
  });
169
- export { InsufficientFundsError };
170
- class IntrinsicGasTooHighError extends BaseError {
163
+ export class IntrinsicGasTooHighError extends BaseError {
171
164
  constructor({ cause, gas } = {}) {
172
165
  super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction exceeds the limit allowed for the block.`, {
173
166
  cause,
@@ -186,8 +179,7 @@ Object.defineProperty(IntrinsicGasTooHighError, "nodeMessage", {
186
179
  writable: true,
187
180
  value: /intrinsic gas too high|gas limit reached/
188
181
  });
189
- export { IntrinsicGasTooHighError };
190
- class IntrinsicGasTooLowError extends BaseError {
182
+ export class IntrinsicGasTooLowError extends BaseError {
191
183
  constructor({ cause, gas } = {}) {
192
184
  super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction is too low.`, {
193
185
  cause,
@@ -206,8 +198,7 @@ Object.defineProperty(IntrinsicGasTooLowError, "nodeMessage", {
206
198
  writable: true,
207
199
  value: /intrinsic gas too low/
208
200
  });
209
- export { IntrinsicGasTooLowError };
210
- class TransactionTypeNotSupportedError extends BaseError {
201
+ export class TransactionTypeNotSupportedError extends BaseError {
211
202
  constructor({ cause }) {
212
203
  super('The transaction type is not supported for this chain.', {
213
204
  cause,
@@ -226,8 +217,7 @@ Object.defineProperty(TransactionTypeNotSupportedError, "nodeMessage", {
226
217
  writable: true,
227
218
  value: /transaction type not valid/
228
219
  });
229
- export { TransactionTypeNotSupportedError };
230
- class TipAboveFeeCapError extends BaseError {
220
+ export class TipAboveFeeCapError extends BaseError {
231
221
  constructor({ cause, maxPriorityFeePerGas, maxFeePerGas, } = {}) {
232
222
  super([
233
223
  `The provided tip (\`maxPriorityFeePerGas\`${maxPriorityFeePerGas
@@ -250,7 +240,6 @@ Object.defineProperty(TipAboveFeeCapError, "nodeMessage", {
250
240
  writable: true,
251
241
  value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
252
242
  });
253
- export { TipAboveFeeCapError };
254
243
  export class UnknownNodeError extends BaseError {
255
244
  constructor({ cause }) {
256
245
  super(`An error occurred while executing: ${cause?.shortMessage}`, {
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../../errors/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAExD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC;;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;;AAXM;;;;WAAc,uBAAuB;EAA1B,CAA0B;AAc9C,MAAM,OAAO,gCAAiC,SAAQ,SAAS;IAG7D,YAAY,EAAE,KAAK,EAAyB;QAC1C,KAAK,CAAC,uDAAuD,EAAE;YAC7D,KAAK;SACN,CAAC,CAAA;QAJK;;;;mBAAO,kCAAkC;WAAA;IAKlD,CAAC;;AANM;;;;WAAc,4BAA4B;EAA/B,CAA+B;AASnD,MAAM,OAAO,mBAAoB,SAAQ,SAAS;IAIhD,YAAY,EACV,KAAK,EACL,oBAAoB,EACpB,YAAY,MAKV,EAAE;QACJ,KAAK,CACH;YACE,6CACE,oBAAoB;gBAClB,CAAC,CAAC,MAAM,UAAU,CAAC,oBAAoB,CAAC,OAAO;gBAC/C,CAAC,CAAC,EACN,wDACE,YAAY,CAAC,CAAC,CAAC,MAAM,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EACzD,IAAI;SACL,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ;YACE,KAAK;SACN,CACF,CAAA;QAvBM;;;;mBAAO,qBAAqB;WAAA;IAwBrC,CAAC;;AA1BM;;;;WACL,8EAA8E;EAD9D,CAC8D;AA4BlF,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAG7C,YAAY,EAAE,KAAK,EAAyB;QAC1C,KAAK,CAAC,sCAAsC,KAAK,EAAE,YAAY,EAAE,EAAE;YACjE,KAAK;SACN,CAAC,CAAA;QALK;;;;mBAAO,kBAAkB;WAAA;IAMlC,CAAC;CACF"}
@@ -57,7 +57,7 @@ export class ProviderRpcError extends RpcError {
57
57
  *
58
58
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
59
59
  */
60
- class ParseRpcError extends RpcError {
60
+ export class ParseRpcError extends RpcError {
61
61
  constructor(cause) {
62
62
  super(cause, {
63
63
  code: ParseRpcError.code,
@@ -77,13 +77,12 @@ Object.defineProperty(ParseRpcError, "code", {
77
77
  writable: true,
78
78
  value: -32700
79
79
  });
80
- export { ParseRpcError };
81
80
  /**
82
81
  * Subclass for a "Invalid request" EIP-1474 error.
83
82
  *
84
83
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
85
84
  */
86
- class InvalidRequestRpcError extends RpcError {
85
+ export class InvalidRequestRpcError extends RpcError {
87
86
  constructor(cause) {
88
87
  super(cause, {
89
88
  code: InvalidRequestRpcError.code,
@@ -103,13 +102,12 @@ Object.defineProperty(InvalidRequestRpcError, "code", {
103
102
  writable: true,
104
103
  value: -32600
105
104
  });
106
- export { InvalidRequestRpcError };
107
105
  /**
108
106
  * Subclass for a "Method not found" EIP-1474 error.
109
107
  *
110
108
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
111
109
  */
112
- class MethodNotFoundRpcError extends RpcError {
110
+ export class MethodNotFoundRpcError extends RpcError {
113
111
  constructor(cause) {
114
112
  super(cause, {
115
113
  code: MethodNotFoundRpcError.code,
@@ -129,13 +127,12 @@ Object.defineProperty(MethodNotFoundRpcError, "code", {
129
127
  writable: true,
130
128
  value: -32601
131
129
  });
132
- export { MethodNotFoundRpcError };
133
130
  /**
134
131
  * Subclass for an "Invalid params" EIP-1474 error.
135
132
  *
136
133
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
137
134
  */
138
- class InvalidParamsRpcError extends RpcError {
135
+ export class InvalidParamsRpcError extends RpcError {
139
136
  constructor(cause) {
140
137
  super(cause, {
141
138
  code: InvalidParamsRpcError.code,
@@ -158,13 +155,12 @@ Object.defineProperty(InvalidParamsRpcError, "code", {
158
155
  writable: true,
159
156
  value: -32602
160
157
  });
161
- export { InvalidParamsRpcError };
162
158
  /**
163
159
  * Subclass for an "Internal error" EIP-1474 error.
164
160
  *
165
161
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
166
162
  */
167
- class InternalRpcError extends RpcError {
163
+ export class InternalRpcError extends RpcError {
168
164
  constructor(cause) {
169
165
  super(cause, {
170
166
  code: InternalRpcError.code,
@@ -184,13 +180,12 @@ Object.defineProperty(InternalRpcError, "code", {
184
180
  writable: true,
185
181
  value: -32603
186
182
  });
187
- export { InternalRpcError };
188
183
  /**
189
184
  * Subclass for an "Invalid input" EIP-1474 error.
190
185
  *
191
186
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
192
187
  */
193
- class InvalidInputRpcError extends RpcError {
188
+ export class InvalidInputRpcError extends RpcError {
194
189
  constructor(cause) {
195
190
  super(cause, {
196
191
  code: InvalidInputRpcError.code,
@@ -213,13 +208,12 @@ Object.defineProperty(InvalidInputRpcError, "code", {
213
208
  writable: true,
214
209
  value: -32000
215
210
  });
216
- export { InvalidInputRpcError };
217
211
  /**
218
212
  * Subclass for a "Resource not found" EIP-1474 error.
219
213
  *
220
214
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
221
215
  */
222
- class ResourceNotFoundRpcError extends RpcError {
216
+ export class ResourceNotFoundRpcError extends RpcError {
223
217
  constructor(cause) {
224
218
  super(cause, {
225
219
  code: ResourceNotFoundRpcError.code,
@@ -239,13 +233,12 @@ Object.defineProperty(ResourceNotFoundRpcError, "code", {
239
233
  writable: true,
240
234
  value: -32001
241
235
  });
242
- export { ResourceNotFoundRpcError };
243
236
  /**
244
237
  * Subclass for a "Resource unavailable" EIP-1474 error.
245
238
  *
246
239
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
247
240
  */
248
- class ResourceUnavailableRpcError extends RpcError {
241
+ export class ResourceUnavailableRpcError extends RpcError {
249
242
  constructor(cause) {
250
243
  super(cause, {
251
244
  code: ResourceUnavailableRpcError.code,
@@ -265,13 +258,12 @@ Object.defineProperty(ResourceUnavailableRpcError, "code", {
265
258
  writable: true,
266
259
  value: -32002
267
260
  });
268
- export { ResourceUnavailableRpcError };
269
261
  /**
270
262
  * Subclass for a "Transaction rejected" EIP-1474 error.
271
263
  *
272
264
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
273
265
  */
274
- class TransactionRejectedRpcError extends RpcError {
266
+ export class TransactionRejectedRpcError extends RpcError {
275
267
  constructor(cause) {
276
268
  super(cause, {
277
269
  code: TransactionRejectedRpcError.code,
@@ -291,13 +283,12 @@ Object.defineProperty(TransactionRejectedRpcError, "code", {
291
283
  writable: true,
292
284
  value: -32003
293
285
  });
294
- export { TransactionRejectedRpcError };
295
286
  /**
296
287
  * Subclass for a "Method not supported" EIP-1474 error.
297
288
  *
298
289
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
299
290
  */
300
- class MethodNotSupportedRpcError extends RpcError {
291
+ export class MethodNotSupportedRpcError extends RpcError {
301
292
  constructor(cause) {
302
293
  super(cause, {
303
294
  code: MethodNotSupportedRpcError.code,
@@ -317,13 +308,12 @@ Object.defineProperty(MethodNotSupportedRpcError, "code", {
317
308
  writable: true,
318
309
  value: -32004
319
310
  });
320
- export { MethodNotSupportedRpcError };
321
311
  /**
322
312
  * Subclass for a "Limit exceeded" EIP-1474 error.
323
313
  *
324
314
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
325
315
  */
326
- class LimitExceededRpcError extends RpcError {
316
+ export class LimitExceededRpcError extends RpcError {
327
317
  constructor(cause) {
328
318
  super(cause, {
329
319
  code: LimitExceededRpcError.code,
@@ -343,13 +333,12 @@ Object.defineProperty(LimitExceededRpcError, "code", {
343
333
  writable: true,
344
334
  value: -32005
345
335
  });
346
- export { LimitExceededRpcError };
347
336
  /**
348
337
  * Subclass for a "JSON-RPC version not supported" EIP-1474 error.
349
338
  *
350
339
  * EIP https://eips.ethereum.org/EIPS/eip-1474#error-codes
351
340
  */
352
- class JsonRpcVersionUnsupportedError extends RpcError {
341
+ export class JsonRpcVersionUnsupportedError extends RpcError {
353
342
  constructor(cause) {
354
343
  super(cause, {
355
344
  code: JsonRpcVersionUnsupportedError.code,
@@ -369,13 +358,12 @@ Object.defineProperty(JsonRpcVersionUnsupportedError, "code", {
369
358
  writable: true,
370
359
  value: -32006
371
360
  });
372
- export { JsonRpcVersionUnsupportedError };
373
361
  /**
374
362
  * Subclass for a "User Rejected Request" EIP-1193 error.
375
363
  *
376
364
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
377
365
  */
378
- class UserRejectedRequestError extends ProviderRpcError {
366
+ export class UserRejectedRequestError extends ProviderRpcError {
379
367
  constructor(cause) {
380
368
  super(cause, {
381
369
  code: UserRejectedRequestError.code,
@@ -395,13 +383,12 @@ Object.defineProperty(UserRejectedRequestError, "code", {
395
383
  writable: true,
396
384
  value: 4001
397
385
  });
398
- export { UserRejectedRequestError };
399
386
  /**
400
387
  * Subclass for an "Unauthorized" EIP-1193 error.
401
388
  *
402
389
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
403
390
  */
404
- class UnauthorizedProviderError extends ProviderRpcError {
391
+ export class UnauthorizedProviderError extends ProviderRpcError {
405
392
  constructor(cause) {
406
393
  super(cause, {
407
394
  code: UnauthorizedProviderError.code,
@@ -421,13 +408,12 @@ Object.defineProperty(UnauthorizedProviderError, "code", {
421
408
  writable: true,
422
409
  value: 4100
423
410
  });
424
- export { UnauthorizedProviderError };
425
411
  /**
426
412
  * Subclass for an "Unsupported Method" EIP-1193 error.
427
413
  *
428
414
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
429
415
  */
430
- class UnsupportedProviderMethodError extends ProviderRpcError {
416
+ export class UnsupportedProviderMethodError extends ProviderRpcError {
431
417
  constructor(cause) {
432
418
  super(cause, {
433
419
  code: UnsupportedProviderMethodError.code,
@@ -447,13 +433,12 @@ Object.defineProperty(UnsupportedProviderMethodError, "code", {
447
433
  writable: true,
448
434
  value: 4200
449
435
  });
450
- export { UnsupportedProviderMethodError };
451
436
  /**
452
437
  * Subclass for an "Disconnected" EIP-1193 error.
453
438
  *
454
439
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
455
440
  */
456
- class ProviderDisconnectedError extends ProviderRpcError {
441
+ export class ProviderDisconnectedError extends ProviderRpcError {
457
442
  constructor(cause) {
458
443
  super(cause, {
459
444
  code: ProviderDisconnectedError.code,
@@ -473,13 +458,12 @@ Object.defineProperty(ProviderDisconnectedError, "code", {
473
458
  writable: true,
474
459
  value: 4900
475
460
  });
476
- export { ProviderDisconnectedError };
477
461
  /**
478
462
  * Subclass for an "Chain Disconnected" EIP-1193 error.
479
463
  *
480
464
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
481
465
  */
482
- class ChainDisconnectedError extends ProviderRpcError {
466
+ export class ChainDisconnectedError extends ProviderRpcError {
483
467
  constructor(cause) {
484
468
  super(cause, {
485
469
  code: ChainDisconnectedError.code,
@@ -499,13 +483,12 @@ Object.defineProperty(ChainDisconnectedError, "code", {
499
483
  writable: true,
500
484
  value: 4901
501
485
  });
502
- export { ChainDisconnectedError };
503
486
  /**
504
487
  * Subclass for an "Switch Chain" EIP-1193 error.
505
488
  *
506
489
  * EIP https://eips.ethereum.org/EIPS/eip-1193#provider-errors
507
490
  */
508
- class SwitchChainError extends ProviderRpcError {
491
+ export class SwitchChainError extends ProviderRpcError {
509
492
  constructor(cause) {
510
493
  super(cause, {
511
494
  code: SwitchChainError.code,
@@ -525,7 +508,6 @@ Object.defineProperty(SwitchChainError, "code", {
525
508
  writable: true,
526
509
  value: 4902
527
510
  });
528
- export { SwitchChainError };
529
511
  /**
530
512
  * Subclass for an unknown RPC error.
531
513
  */
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../errors/rpc.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,MAAM,gBAAgB,GAAG,CAAC,CAAC,CAAA;AAyB3B;;;;GAIG;AACH,MAAM,OAAO,QAA8C,SAAQ,SAAS;IAK1E,YACE,KAAY,EACZ,EAAE,IAAI,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAA0B;QAEtE,KAAK,CAAC,YAAY,EAAE;YAClB,KAAK;YACL,QAAQ;Y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9,7 +9,7 @@ export type MulticallParameters<contracts extends readonly unknown[] = readonly
9
9
  optional?: boolean;
10
10
  properties?: Record<string, any>;
11
11
  } = {}> = Pick<CallParameters, 'blockNumber' | 'blockTag'> & {
12
- allowFailure?: allowFailure | undefined;
12
+ allowFailure?: allowFailure | boolean | undefined;
13
13
  batchSize?: number | undefined;
14
14
  contracts: MulticallContracts<Narrow<contracts>, {
15
15
  mutability: 'pure' | 'view';
@@ -1 +1 @@
1
- {"version":3,"file":"multicall.d.ts","sourceRoot":"","sources":["../../../actions/public/multicall.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAK5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAA;AAEzE,OAAO,KAAK,EACV,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,0BAA0B,CAAA;AAKjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAG/C,MAAM,MAAM,mBAAmB,CAC7B,SAAS,SAAS,SAAS,OAAO,EAAE,GAAG,SAAS,0BAA0B,EAAE,EAC5E,YAAY,SAAS,OAAO,GAAG,IAAI,EACnC,OAAO,SAAS;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACjC,GAAG,EAAE,IACJ,IAAI,CAAC,cAAc,EAAE,aAAa,GAAG,UAAU,CAAC,GAAG;IACrD,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAA;IACvC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,SAAS,EAAE,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;;;;;;;;;;;GAsCG;AACH,wBAAsB,SAAS,CAC7B,KAAK,CAAC,SAAS,SAAS,SAAS,OAAO,EAAE,EAC1C,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,YAAY,SAAS,OAAO,GAAG,IAAI,EAEnC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,EAChC,UAAU,EAAE,mBAAmB,CAAC,SAAS,EAAE,YAAY,CAAC,GACvD,OAAO,CAAC,mBAAmB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAC,CAgKvD"}
@@ -1,2 +1,2 @@
1
- export declare const version = "2.0.0-alpha.6";
1
+ export declare const version = "2.0.0-alpha.7";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -28,7 +28,7 @@ export type MulticallParameters<
28
28
  properties?: Record<string, any>
29
29
  } = {},
30
30
  > = Pick<CallParameters, 'blockNumber' | 'blockTag'> & {
31
- allowFailure?: allowFailure | undefined
31
+ allowFailure?: allowFailure | boolean | undefined
32
32
  batchSize?: number | undefined
33
33
  contracts: MulticallContracts<
34
34
  Narrow<contracts>,
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.0.0-alpha.6'
1
+ export const version = '2.0.0-alpha.7'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.0.0-alpha.6",
4
+ "version": "2.0.0-alpha.7",
5
5
  "type": "module",
6
6
  "main": "./_cjs/index.js",
7
7
  "module": "./_esm/index.js",