viem 1.15.3 → 1.15.5
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/CHANGELOG.md +14 -0
- package/_cjs/chains/definitions/base.js +4 -0
- package/_cjs/chains/definitions/base.js.map +1 -1
- package/_cjs/clients/transports/webSocket.js.map +1 -1
- package/_cjs/errors/node.js +11 -11
- package/_cjs/errors/node.js.map +1 -1
- package/_cjs/errors/rpc.js +18 -18
- package/_cjs/errors/rpc.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/utils/rpc.js +3 -6
- package/_cjs/utils/rpc.js.map +1 -1
- package/_esm/chains/definitions/base.js +4 -0
- package/_esm/chains/definitions/base.js.map +1 -1
- package/_esm/clients/transports/webSocket.js.map +1 -1
- package/_esm/errors/node.js +11 -22
- package/_esm/errors/node.js.map +1 -1
- package/_esm/errors/rpc.js +18 -36
- package/_esm/errors/rpc.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/utils/rpc.js +2 -6
- package/_esm/utils/rpc.js.map +1 -1
- package/_types/chains/celo/formatters.d.ts +12 -12
- package/_types/chains/definitions/base.d.ts +4 -0
- package/_types/chains/definitions/base.d.ts.map +1 -1
- package/_types/chains/definitions/celo.d.ts +12 -12
- package/_types/chains/definitions/celoAlfajores.d.ts +12 -12
- package/_types/chains/definitions/celoCannoli.d.ts +12 -12
- package/_types/clients/transports/webSocket.d.ts +0 -2
- package/_types/clients/transports/webSocket.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/types/transaction.d.ts +1 -1
- package/_types/types/transaction.d.ts.map +1 -1
- package/_types/utils/rpc.d.ts +2 -3
- package/_types/utils/rpc.d.ts.map +1 -1
- package/chains/definitions/base.ts +4 -0
- package/clients/transports/webSocket.ts +0 -2
- package/errors/version.ts +1 -1
- package/package.json +2 -3
- package/types/transaction.ts +1 -1
- package/utils/rpc.ts +3 -6
package/_esm/errors/node.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { formatGwei } from '../utils/unit/formatGwei.js';
|
2
2
|
import { BaseError } from './base.js';
|
3
|
-
class ExecutionRevertedError extends BaseError {
|
3
|
+
export class ExecutionRevertedError extends BaseError {
|
4
4
|
constructor({ cause, message, } = {}) {
|
5
5
|
const reason = message
|
6
6
|
?.replace('execution reverted: ', '')
|
@@ -28,8 +28,7 @@ Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
|
|
28
28
|
writable: true,
|
29
29
|
value: /execution reverted/
|
30
30
|
});
|
31
|
-
export
|
32
|
-
class FeeCapTooHighError extends BaseError {
|
31
|
+
export class FeeCapTooHighError extends BaseError {
|
33
32
|
constructor({ cause, maxFeePerGas, } = {}) {
|
34
33
|
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ''}) cannot be higher than the maximum allowed value (2^256-1).`, {
|
35
34
|
cause,
|
@@ -48,8 +47,7 @@ Object.defineProperty(FeeCapTooHighError, "nodeMessage", {
|
|
48
47
|
writable: true,
|
49
48
|
value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
|
50
49
|
});
|
51
|
-
export
|
52
|
-
class FeeCapTooLowError extends BaseError {
|
50
|
+
export class FeeCapTooLowError extends BaseError {
|
53
51
|
constructor({ cause, maxFeePerGas, } = {}) {
|
54
52
|
super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)}` : ''} gwei) cannot be lower than the block base fee.`, {
|
55
53
|
cause,
|
@@ -68,8 +66,7 @@ Object.defineProperty(FeeCapTooLowError, "nodeMessage", {
|
|
68
66
|
writable: true,
|
69
67
|
value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
|
70
68
|
});
|
71
|
-
export
|
72
|
-
class NonceTooHighError extends BaseError {
|
69
|
+
export class NonceTooHighError extends BaseError {
|
73
70
|
constructor({ cause, nonce } = {}) {
|
74
71
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is higher than the next one expected.`, { cause });
|
75
72
|
Object.defineProperty(this, "name", {
|
@@ -86,8 +83,7 @@ Object.defineProperty(NonceTooHighError, "nodeMessage", {
|
|
86
83
|
writable: true,
|
87
84
|
value: /nonce too high/
|
88
85
|
});
|
89
|
-
export
|
90
|
-
class NonceTooLowError extends BaseError {
|
86
|
+
export class NonceTooLowError extends BaseError {
|
91
87
|
constructor({ cause, nonce } = {}) {
|
92
88
|
super([
|
93
89
|
`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is lower than the current nonce of the account.`,
|
@@ -107,8 +103,7 @@ Object.defineProperty(NonceTooLowError, "nodeMessage", {
|
|
107
103
|
writable: true,
|
108
104
|
value: /nonce too low|transaction already imported|already known/
|
109
105
|
});
|
110
|
-
export
|
111
|
-
class NonceMaxValueError extends BaseError {
|
106
|
+
export class NonceMaxValueError extends BaseError {
|
112
107
|
constructor({ cause, nonce } = {}) {
|
113
108
|
super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}exceeds the maximum allowed nonce.`, { cause });
|
114
109
|
Object.defineProperty(this, "name", {
|
@@ -125,8 +120,7 @@ Object.defineProperty(NonceMaxValueError, "nodeMessage", {
|
|
125
120
|
writable: true,
|
126
121
|
value: /nonce has max value/
|
127
122
|
});
|
128
|
-
export
|
129
|
-
class InsufficientFundsError extends BaseError {
|
123
|
+
export class InsufficientFundsError extends BaseError {
|
130
124
|
constructor({ cause } = {}) {
|
131
125
|
super([
|
132
126
|
'The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.',
|
@@ -157,8 +151,7 @@ Object.defineProperty(InsufficientFundsError, "nodeMessage", {
|
|
157
151
|
writable: true,
|
158
152
|
value: /insufficient funds/
|
159
153
|
});
|
160
|
-
export
|
161
|
-
class IntrinsicGasTooHighError extends BaseError {
|
154
|
+
export class IntrinsicGasTooHighError extends BaseError {
|
162
155
|
constructor({ cause, gas } = {}) {
|
163
156
|
super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction exceeds the limit allowed for the block.`, {
|
164
157
|
cause,
|
@@ -177,8 +170,7 @@ Object.defineProperty(IntrinsicGasTooHighError, "nodeMessage", {
|
|
177
170
|
writable: true,
|
178
171
|
value: /intrinsic gas too high|gas limit reached/
|
179
172
|
});
|
180
|
-
export
|
181
|
-
class IntrinsicGasTooLowError extends BaseError {
|
173
|
+
export class IntrinsicGasTooLowError extends BaseError {
|
182
174
|
constructor({ cause, gas } = {}) {
|
183
175
|
super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction is too low.`, {
|
184
176
|
cause,
|
@@ -197,8 +189,7 @@ Object.defineProperty(IntrinsicGasTooLowError, "nodeMessage", {
|
|
197
189
|
writable: true,
|
198
190
|
value: /intrinsic gas too low/
|
199
191
|
});
|
200
|
-
export
|
201
|
-
class TransactionTypeNotSupportedError extends BaseError {
|
192
|
+
export class TransactionTypeNotSupportedError extends BaseError {
|
202
193
|
constructor({ cause }) {
|
203
194
|
super('The transaction type is not supported for this chain.', {
|
204
195
|
cause,
|
@@ -217,8 +208,7 @@ Object.defineProperty(TransactionTypeNotSupportedError, "nodeMessage", {
|
|
217
208
|
writable: true,
|
218
209
|
value: /transaction type not valid/
|
219
210
|
});
|
220
|
-
export
|
221
|
-
class TipAboveFeeCapError extends BaseError {
|
211
|
+
export class TipAboveFeeCapError extends BaseError {
|
222
212
|
constructor({ cause, maxPriorityFeePerGas, maxFeePerGas, } = {}) {
|
223
213
|
super([
|
224
214
|
`The provided tip (\`maxPriorityFeePerGas\`${maxPriorityFeePerGas
|
@@ -241,7 +231,6 @@ Object.defineProperty(TipAboveFeeCapError, "nodeMessage", {
|
|
241
231
|
writable: true,
|
242
232
|
value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
|
243
233
|
});
|
244
|
-
export { TipAboveFeeCapError };
|
245
234
|
export class UnknownNodeError extends BaseError {
|
246
235
|
constructor({ cause }) {
|
247
236
|
super(`An error occurred while executing: ${cause?.shortMessage}`, {
|
package/_esm/errors/node.js.map
CHANGED
@@ -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,
|
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,MAAM,OAAO,sBAAuB,SAAQ,SAAS;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;YACE,KAAK;SACN,CACF,CAAA;QAhBM;;;;mBAAO,wBAAwB;WAAA;IAiBxC,CAAC;;AApBM;;;;WAAO,CAAC;EAAJ,CAAI;AACR;;;;WAAc,oBAAoB;EAAvB,CAAuB;AAyB3C,MAAM,OAAO,kBAAmB,SAAQ,SAAS;IAI/C,YAAY,EACV,KAAK,EACL,YAAY,MACoC,EAAE;QAClD,KAAK,CACH,gCACE,YAAY,CAAC,CAAC,CAAC,MAAM,UAAU,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,EACzD,8DAA8D,EAC9D;YACE,KAAK;SACN,CACF,CAAA;QAZM;;;;mBAAO,eAAe;WAAA;IAa/B,CAAC;;AAfM;;;;WACL,mEAAmE;EADnD,CACmD;AAoBvE,MAAM,OAAO,iBAAkB,SAAQ,SAAS;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C;;AANM;;;;WAAc,4BAA4B;EAA/B,CAA+B;AAYnD,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;AA+BlF,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"}
|
package/_esm/errors/rpc.js
CHANGED
@@ -42,7 +42,7 @@ export class ProviderRpcError extends RpcError {
|
|
42
42
|
this.data = options.data;
|
43
43
|
}
|
44
44
|
}
|
45
|
-
class ParseRpcError extends RpcError {
|
45
|
+
export class ParseRpcError extends RpcError {
|
46
46
|
constructor(cause) {
|
47
47
|
super(cause, {
|
48
48
|
code: ParseRpcError.code,
|
@@ -62,8 +62,7 @@ Object.defineProperty(ParseRpcError, "code", {
|
|
62
62
|
writable: true,
|
63
63
|
value: -32700
|
64
64
|
});
|
65
|
-
export
|
66
|
-
class InvalidRequestRpcError extends RpcError {
|
65
|
+
export class InvalidRequestRpcError extends RpcError {
|
67
66
|
constructor(cause) {
|
68
67
|
super(cause, {
|
69
68
|
code: InvalidRequestRpcError.code,
|
@@ -83,8 +82,7 @@ Object.defineProperty(InvalidRequestRpcError, "code", {
|
|
83
82
|
writable: true,
|
84
83
|
value: -32600
|
85
84
|
});
|
86
|
-
export
|
87
|
-
class MethodNotFoundRpcError extends RpcError {
|
85
|
+
export class MethodNotFoundRpcError extends RpcError {
|
88
86
|
constructor(cause) {
|
89
87
|
super(cause, {
|
90
88
|
code: MethodNotFoundRpcError.code,
|
@@ -104,8 +102,7 @@ Object.defineProperty(MethodNotFoundRpcError, "code", {
|
|
104
102
|
writable: true,
|
105
103
|
value: -32601
|
106
104
|
});
|
107
|
-
export
|
108
|
-
class InvalidParamsRpcError extends RpcError {
|
105
|
+
export class InvalidParamsRpcError extends RpcError {
|
109
106
|
constructor(cause) {
|
110
107
|
super(cause, {
|
111
108
|
code: InvalidParamsRpcError.code,
|
@@ -128,8 +125,7 @@ Object.defineProperty(InvalidParamsRpcError, "code", {
|
|
128
125
|
writable: true,
|
129
126
|
value: -32602
|
130
127
|
});
|
131
|
-
export
|
132
|
-
class InternalRpcError extends RpcError {
|
128
|
+
export class InternalRpcError extends RpcError {
|
133
129
|
constructor(cause) {
|
134
130
|
super(cause, {
|
135
131
|
code: InternalRpcError.code,
|
@@ -149,8 +145,7 @@ Object.defineProperty(InternalRpcError, "code", {
|
|
149
145
|
writable: true,
|
150
146
|
value: -32603
|
151
147
|
});
|
152
|
-
export
|
153
|
-
class InvalidInputRpcError extends RpcError {
|
148
|
+
export class InvalidInputRpcError extends RpcError {
|
154
149
|
constructor(cause) {
|
155
150
|
super(cause, {
|
156
151
|
code: InvalidInputRpcError.code,
|
@@ -173,8 +168,7 @@ Object.defineProperty(InvalidInputRpcError, "code", {
|
|
173
168
|
writable: true,
|
174
169
|
value: -32000
|
175
170
|
});
|
176
|
-
export
|
177
|
-
class ResourceNotFoundRpcError extends RpcError {
|
171
|
+
export class ResourceNotFoundRpcError extends RpcError {
|
178
172
|
constructor(cause) {
|
179
173
|
super(cause, {
|
180
174
|
code: ResourceNotFoundRpcError.code,
|
@@ -194,8 +188,7 @@ Object.defineProperty(ResourceNotFoundRpcError, "code", {
|
|
194
188
|
writable: true,
|
195
189
|
value: -32001
|
196
190
|
});
|
197
|
-
export
|
198
|
-
class ResourceUnavailableRpcError extends RpcError {
|
191
|
+
export class ResourceUnavailableRpcError extends RpcError {
|
199
192
|
constructor(cause) {
|
200
193
|
super(cause, {
|
201
194
|
code: ResourceUnavailableRpcError.code,
|
@@ -215,8 +208,7 @@ Object.defineProperty(ResourceUnavailableRpcError, "code", {
|
|
215
208
|
writable: true,
|
216
209
|
value: -32002
|
217
210
|
});
|
218
|
-
export
|
219
|
-
class TransactionRejectedRpcError extends RpcError {
|
211
|
+
export class TransactionRejectedRpcError extends RpcError {
|
220
212
|
constructor(cause) {
|
221
213
|
super(cause, {
|
222
214
|
code: TransactionRejectedRpcError.code,
|
@@ -236,8 +228,7 @@ Object.defineProperty(TransactionRejectedRpcError, "code", {
|
|
236
228
|
writable: true,
|
237
229
|
value: -32003
|
238
230
|
});
|
239
|
-
export
|
240
|
-
class MethodNotSupportedRpcError extends RpcError {
|
231
|
+
export class MethodNotSupportedRpcError extends RpcError {
|
241
232
|
constructor(cause) {
|
242
233
|
super(cause, {
|
243
234
|
code: MethodNotSupportedRpcError.code,
|
@@ -257,8 +248,7 @@ Object.defineProperty(MethodNotSupportedRpcError, "code", {
|
|
257
248
|
writable: true,
|
258
249
|
value: -32004
|
259
250
|
});
|
260
|
-
export
|
261
|
-
class LimitExceededRpcError extends RpcError {
|
251
|
+
export class LimitExceededRpcError extends RpcError {
|
262
252
|
constructor(cause) {
|
263
253
|
super(cause, {
|
264
254
|
code: LimitExceededRpcError.code,
|
@@ -278,8 +268,7 @@ Object.defineProperty(LimitExceededRpcError, "code", {
|
|
278
268
|
writable: true,
|
279
269
|
value: -32005
|
280
270
|
});
|
281
|
-
export
|
282
|
-
class JsonRpcVersionUnsupportedError extends RpcError {
|
271
|
+
export class JsonRpcVersionUnsupportedError extends RpcError {
|
283
272
|
constructor(cause) {
|
284
273
|
super(cause, {
|
285
274
|
code: JsonRpcVersionUnsupportedError.code,
|
@@ -299,8 +288,7 @@ Object.defineProperty(JsonRpcVersionUnsupportedError, "code", {
|
|
299
288
|
writable: true,
|
300
289
|
value: -32006
|
301
290
|
});
|
302
|
-
export
|
303
|
-
class UserRejectedRequestError extends ProviderRpcError {
|
291
|
+
export class UserRejectedRequestError extends ProviderRpcError {
|
304
292
|
constructor(cause) {
|
305
293
|
super(cause, {
|
306
294
|
code: UserRejectedRequestError.code,
|
@@ -320,8 +308,7 @@ Object.defineProperty(UserRejectedRequestError, "code", {
|
|
320
308
|
writable: true,
|
321
309
|
value: 4001
|
322
310
|
});
|
323
|
-
export
|
324
|
-
class UnauthorizedProviderError extends ProviderRpcError {
|
311
|
+
export class UnauthorizedProviderError extends ProviderRpcError {
|
325
312
|
constructor(cause) {
|
326
313
|
super(cause, {
|
327
314
|
code: UnauthorizedProviderError.code,
|
@@ -341,8 +328,7 @@ Object.defineProperty(UnauthorizedProviderError, "code", {
|
|
341
328
|
writable: true,
|
342
329
|
value: 4100
|
343
330
|
});
|
344
|
-
export
|
345
|
-
class UnsupportedProviderMethodError extends ProviderRpcError {
|
331
|
+
export class UnsupportedProviderMethodError extends ProviderRpcError {
|
346
332
|
constructor(cause) {
|
347
333
|
super(cause, {
|
348
334
|
code: UnsupportedProviderMethodError.code,
|
@@ -362,8 +348,7 @@ Object.defineProperty(UnsupportedProviderMethodError, "code", {
|
|
362
348
|
writable: true,
|
363
349
|
value: 4200
|
364
350
|
});
|
365
|
-
export
|
366
|
-
class ProviderDisconnectedError extends ProviderRpcError {
|
351
|
+
export class ProviderDisconnectedError extends ProviderRpcError {
|
367
352
|
constructor(cause) {
|
368
353
|
super(cause, {
|
369
354
|
code: ProviderDisconnectedError.code,
|
@@ -383,8 +368,7 @@ Object.defineProperty(ProviderDisconnectedError, "code", {
|
|
383
368
|
writable: true,
|
384
369
|
value: 4900
|
385
370
|
});
|
386
|
-
export
|
387
|
-
class ChainDisconnectedError extends ProviderRpcError {
|
371
|
+
export class ChainDisconnectedError extends ProviderRpcError {
|
388
372
|
constructor(cause) {
|
389
373
|
super(cause, {
|
390
374
|
code: ChainDisconnectedError.code,
|
@@ -404,8 +388,7 @@ Object.defineProperty(ChainDisconnectedError, "code", {
|
|
404
388
|
writable: true,
|
405
389
|
value: 4901
|
406
390
|
});
|
407
|
-
export
|
408
|
-
class SwitchChainError extends ProviderRpcError {
|
391
|
+
export class SwitchChainError extends ProviderRpcError {
|
409
392
|
constructor(cause) {
|
410
393
|
super(cause, {
|
411
394
|
code: SwitchChainError.code,
|
@@ -425,7 +408,6 @@ Object.defineProperty(SwitchChainError, "code", {
|
|
425
408
|
writable: true,
|
426
409
|
value: 4902
|
427
410
|
});
|
428
|
-
export { SwitchChainError };
|
429
411
|
export class UnknownRpcError extends RpcError {
|
430
412
|
constructor(cause) {
|
431
413
|
super(cause, {
|
package/_esm/errors/rpc.js.map
CHANGED
@@ -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;AA+B3B,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;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,eAAe,CAAC,CAAC,CAAC,KAAK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B,KAAK,CAAC,KAAK,EAAE;YACX,YAAY,EAAE,gCAAgC;SAC/C,CAAC,CAAA;QALK;;;;mBAAO,iBAAiB;WAAA;IAMjC,CAAC;CACF"}
|
package/_esm/errors/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const version = '1.15.
|
1
|
+
export const version = '1.15.5';
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/_esm/utils/rpc.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
import WebSocket from 'isomorphic-ws';
|
1
|
+
import { WebSocket } from 'isows';
|
3
2
|
import { HttpRequestError, TimeoutError, WebSocketRequestError, } from '../errors/request.js';
|
4
3
|
import { createBatchScheduler, } from './promise/createBatchScheduler.js';
|
5
4
|
import { withTimeout, } from './promise/withTimeout.js';
|
@@ -70,10 +69,7 @@ export async function getSocket(url) {
|
|
70
69
|
const { schedule } = createBatchScheduler({
|
71
70
|
id: url,
|
72
71
|
fn: async () => {
|
73
|
-
|
74
|
-
if (!WebSocket.constructor)
|
75
|
-
WebSocket_ = WebSocket.WebSocket;
|
76
|
-
const webSocket = new WebSocket_(url);
|
72
|
+
const webSocket = new WebSocket(url);
|
77
73
|
// Set up a cache for incoming "synchronous" requests.
|
78
74
|
const requests = new Map();
|
79
75
|
// Set up a cache for subscriptions (eth_subscribe).
|
package/_esm/utils/rpc.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../utils/rpc.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../utils/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGjC,OAAO,EACL,gBAAgB,EAEhB,YAAY,EAEZ,qBAAqB,GACtB,MAAM,sBAAsB,CAAA;AAE7B,OAAO,EAEL,oBAAoB,GACrB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAEL,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312
|
gas?: `0x${string}` | undefined;
|
313
313
|
nonce?: `0x${string}` | undefined;
|
314
|
-
to?: `0x${string}` | undefined;
|
314
|
+
to?: `0x${string}` | null | undefined;
|
315
315
|
value?: `0x${string}` | undefined;
|
316
316
|
gasPrice?: `0x${string}` | undefined;
|
317
317
|
maxFeePerGas?: undefined;
|
@@ -326,7 +326,7 @@ export declare const formattersCelo: {
|
|
326
326
|
from: `0x${string}`;
|
327
327
|
gas?: `0x${string}` | undefined;
|
328
328
|
nonce?: `0x${string}` | undefined;
|
329
|
-
to?: `0x${string}` | undefined;
|
329
|
+
to?: `0x${string}` | null | undefined;
|
330
330
|
value?: `0x${string}` | undefined;
|
331
331
|
gasPrice?: `0x${string}` | undefined;
|
332
332
|
maxFeePerGas?: undefined;
|
@@ -341,7 +341,7 @@ export declare const formattersCelo: {
|
|
341
341
|
from: `0x${string}`;
|
342
342
|
gas?: `0x${string}` | undefined;
|
343
343
|
nonce?: `0x${string}` | undefined;
|
344
|
-
to?: `0x${string}` | undefined;
|
344
|
+
to?: `0x${string}` | null | undefined;
|
345
345
|
value?: `0x${string}` | undefined;
|
346
346
|
gasPrice?: undefined;
|
347
347
|
maxFeePerGas?: `0x${string}` | undefined;
|
@@ -356,7 +356,7 @@ export declare const formattersCelo: {
|
|
356
356
|
from: `0x${string}`;
|
357
357
|
gas?: `0x${string}` | undefined;
|
358
358
|
nonce?: `0x${string}` | undefined;
|
359
|
-
to?: `0x${string}` | undefined;
|
359
|
+
to?: `0x${string}` | null | undefined;
|
360
360
|
value?: `0x${string}` | undefined;
|
361
361
|
gasPrice?: undefined;
|
362
362
|
maxFeePerGas?: `0x${string}` | undefined;
|
@@ -371,7 +371,7 @@ export declare const formattersCelo: {
|
|
371
371
|
from: `0x${string}`;
|
372
372
|
gas?: `0x${string}` | undefined;
|
373
373
|
nonce?: `0x${string}` | undefined;
|
374
|
-
to?: `0x${string}` | undefined;
|
374
|
+
to?: `0x${string}` | null | undefined;
|
375
375
|
value?: `0x${string}` | undefined;
|
376
376
|
gasPrice?: `0x${string}` | undefined;
|
377
377
|
maxFeePerGas?: undefined;
|
@@ -386,7 +386,7 @@ export declare const formattersCelo: {
|
|
386
386
|
from: `0x${string}`;
|
387
387
|
gas?: `0x${string}` | undefined;
|
388
388
|
nonce?: `0x${string}` | undefined;
|
389
|
-
to?: `0x${string}` | undefined;
|
389
|
+
to?: `0x${string}` | null | undefined;
|
390
390
|
value?: `0x${string}` | undefined;
|
391
391
|
gasPrice?: `0x${string}` | undefined;
|
392
392
|
maxFeePerGas?: undefined;
|
@@ -401,7 +401,7 @@ export declare const formattersCelo: {
|
|
401
401
|
from: `0x${string}`;
|
402
402
|
gas?: `0x${string}` | undefined;
|
403
403
|
nonce?: `0x${string}` | undefined;
|
404
|
-
to?: `0x${string}` | undefined;
|
404
|
+
to?: `0x${string}` | null | undefined;
|
405
405
|
value?: `0x${string}` | undefined;
|
406
406
|
gasPrice?: undefined;
|
407
407
|
maxFeePerGas?: `0x${string}` | undefined;
|
@@ -416,7 +416,7 @@ export declare const formattersCelo: {
|
|
416
416
|
from: `0x${string}`;
|
417
417
|
gas?: `0x${string}` | undefined;
|
418
418
|
nonce?: `0x${string}` | undefined;
|
419
|
-
to?: `0x${string}` | undefined;
|
419
|
+
to?: `0x${string}` | null | undefined;
|
420
420
|
value?: `0x${string}` | undefined;
|
421
421
|
gasPrice?: undefined;
|
422
422
|
maxFeePerGas?: `0x${string}` | undefined;
|
@@ -431,7 +431,7 @@ export declare const formattersCelo: {
|
|
431
431
|
from: `0x${string}`;
|
432
432
|
gas?: `0x${string}` | undefined;
|
433
433
|
nonce?: `0x${string}` | undefined;
|
434
|
-
to?: `0x${string}` | undefined;
|
434
|
+
to?: `0x${string}` | null | undefined;
|
435
435
|
value?: `0x${string}` | undefined;
|
436
436
|
gasPrice?: `0x${string}` | undefined;
|
437
437
|
maxFeePerGas?: undefined;
|
@@ -446,7 +446,7 @@ export declare const formattersCelo: {
|
|
446
446
|
from: `0x${string}`;
|
447
447
|
gas?: `0x${string}` | undefined;
|
448
448
|
nonce?: `0x${string}` | undefined;
|
449
|
-
to?: `0x${string}` | undefined;
|
449
|
+
to?: `0x${string}` | null | undefined;
|
450
450
|
value?: `0x${string}` | undefined;
|
451
451
|
gasPrice?: `0x${string}` | undefined;
|
452
452
|
maxFeePerGas?: undefined;
|
@@ -461,7 +461,7 @@ export declare const formattersCelo: {
|
|
461
461
|
from: `0x${string}`;
|
462
462
|
gas?: `0x${string}` | undefined;
|
463
463
|
nonce?: `0x${string}` | undefined;
|
464
|
-
to?: `0x${string}` | undefined;
|
464
|
+
to?: `0x${string}` | null | undefined;
|
465
465
|
value?: `0x${string}` | undefined;
|
466
466
|
gasPrice?: undefined;
|
467
467
|
maxFeePerGas?: `0x${string}` | undefined;
|
@@ -476,7 +476,7 @@ export declare const formattersCelo: {
|
|
476
476
|
from: `0x${string}`;
|
477
477
|
gas?: `0x${string}` | undefined;
|
478
478
|
nonce?: `0x${string}` | undefined;
|
479
|
-
to?: `0x${string}` | undefined;
|
479
|
+
to?: `0x${string}` | null | undefined;
|
480
480
|
value?: `0x${string}` | undefined;
|
481
481
|
gasPrice?: undefined;
|
482
482
|
maxFeePerGas?: `0x${string}` | undefined;
|
@@ -12,6 +12,10 @@ export declare const base: import("../../types/utils.js").Assign<{
|
|
12
12
|
readonly http: readonly ["https://base-mainnet.g.alchemy.com/v2"];
|
13
13
|
readonly webSocket: readonly ["wss://base-mainnet.g.alchemy.com/v2"];
|
14
14
|
};
|
15
|
+
readonly infura: {
|
16
|
+
readonly http: readonly ["https://base-mainnet.infura.io/v3"];
|
17
|
+
readonly webSocket: readonly ["wss://base-mainnet.infura.io/ws/v3"];
|
18
|
+
};
|
15
19
|
readonly default: {
|
16
20
|
readonly http: readonly ["https://mainnet.base.org"];
|
17
21
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../chains/definitions/base.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../chains/definitions/base.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8ChB,CAAA"}
|
@@ -346,7 +346,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
346
346
|
from: `0x${string}`;
|
347
347
|
gas?: `0x${string}` | undefined;
|
348
348
|
nonce?: `0x${string}` | undefined;
|
349
|
-
to?: `0x${string}` | undefined;
|
349
|
+
to?: `0x${string}` | null | undefined;
|
350
350
|
value?: `0x${string}` | undefined;
|
351
351
|
gasPrice?: `0x${string}` | undefined;
|
352
352
|
maxFeePerGas?: undefined;
|
@@ -361,7 +361,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
361
361
|
from: `0x${string}`;
|
362
362
|
gas?: `0x${string}` | undefined;
|
363
363
|
nonce?: `0x${string}` | undefined;
|
364
|
-
to?: `0x${string}` | undefined;
|
364
|
+
to?: `0x${string}` | null | undefined;
|
365
365
|
value?: `0x${string}` | undefined;
|
366
366
|
gasPrice?: `0x${string}` | undefined;
|
367
367
|
maxFeePerGas?: undefined;
|
@@ -376,7 +376,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
376
376
|
from: `0x${string}`;
|
377
377
|
gas?: `0x${string}` | undefined;
|
378
378
|
nonce?: `0x${string}` | undefined;
|
379
|
-
to?: `0x${string}` | undefined;
|
379
|
+
to?: `0x${string}` | null | undefined;
|
380
380
|
value?: `0x${string}` | undefined;
|
381
381
|
gasPrice?: undefined;
|
382
382
|
maxFeePerGas?: `0x${string}` | undefined;
|
@@ -391,7 +391,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
391
391
|
from: `0x${string}`;
|
392
392
|
gas?: `0x${string}` | undefined;
|
393
393
|
nonce?: `0x${string}` | undefined;
|
394
|
-
to?: `0x${string}` | undefined;
|
394
|
+
to?: `0x${string}` | null | undefined;
|
395
395
|
value?: `0x${string}` | undefined;
|
396
396
|
gasPrice?: undefined;
|
397
397
|
maxFeePerGas?: `0x${string}` | undefined;
|
@@ -406,7 +406,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
406
406
|
from: `0x${string}`;
|
407
407
|
gas?: `0x${string}` | undefined;
|
408
408
|
nonce?: `0x${string}` | undefined;
|
409
|
-
to?: `0x${string}` | undefined;
|
409
|
+
to?: `0x${string}` | null | undefined;
|
410
410
|
value?: `0x${string}` | undefined;
|
411
411
|
gasPrice?: `0x${string}` | undefined;
|
412
412
|
maxFeePerGas?: undefined;
|
@@ -421,7 +421,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
421
421
|
from: `0x${string}`;
|
422
422
|
gas?: `0x${string}` | undefined;
|
423
423
|
nonce?: `0x${string}` | undefined;
|
424
|
-
to?: `0x${string}` | undefined;
|
424
|
+
to?: `0x${string}` | null | undefined;
|
425
425
|
value?: `0x${string}` | undefined;
|
426
426
|
gasPrice?: `0x${string}` | undefined;
|
427
427
|
maxFeePerGas?: undefined;
|
@@ -436,7 +436,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
436
436
|
from: `0x${string}`;
|
437
437
|
gas?: `0x${string}` | undefined;
|
438
438
|
nonce?: `0x${string}` | undefined;
|
439
|
-
to?: `0x${string}` | undefined;
|
439
|
+
to?: `0x${string}` | null | undefined;
|
440
440
|
value?: `0x${string}` | undefined;
|
441
441
|
gasPrice?: undefined;
|
442
442
|
maxFeePerGas?: `0x${string}` | undefined;
|
@@ -451,7 +451,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
451
451
|
from: `0x${string}`;
|
452
452
|
gas?: `0x${string}` | undefined;
|
453
453
|
nonce?: `0x${string}` | undefined;
|
454
|
-
to?: `0x${string}` | undefined;
|
454
|
+
to?: `0x${string}` | null | undefined;
|
455
455
|
value?: `0x${string}` | undefined;
|
456
456
|
gasPrice?: undefined;
|
457
457
|
maxFeePerGas?: `0x${string}` | undefined;
|
@@ -466,7 +466,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
466
466
|
from: `0x${string}`;
|
467
467
|
gas?: `0x${string}` | undefined;
|
468
468
|
nonce?: `0x${string}` | undefined;
|
469
|
-
to?: `0x${string}` | undefined;
|
469
|
+
to?: `0x${string}` | null | undefined;
|
470
470
|
value?: `0x${string}` | undefined;
|
471
471
|
gasPrice?: `0x${string}` | undefined;
|
472
472
|
maxFeePerGas?: undefined;
|
@@ -481,7 +481,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
481
481
|
from: `0x${string}`;
|
482
482
|
gas?: `0x${string}` | undefined;
|
483
483
|
nonce?: `0x${string}` | undefined;
|
484
|
-
to?: `0x${string}` | undefined;
|
484
|
+
to?: `0x${string}` | null | undefined;
|
485
485
|
value?: `0x${string}` | undefined;
|
486
486
|
gasPrice?: `0x${string}` | undefined;
|
487
487
|
maxFeePerGas?: undefined;
|
@@ -496,7 +496,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
496
496
|
from: `0x${string}`;
|
497
497
|
gas?: `0x${string}` | undefined;
|
498
498
|
nonce?: `0x${string}` | undefined;
|
499
|
-
to?: `0x${string}` | undefined;
|
499
|
+
to?: `0x${string}` | null | undefined;
|
500
500
|
value?: `0x${string}` | undefined;
|
501
501
|
gasPrice?: undefined;
|
502
502
|
maxFeePerGas?: `0x${string}` | undefined;
|
@@ -511,7 +511,7 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
511
511
|
from: `0x${string}`;
|
512
512
|
gas?: `0x${string}` | undefined;
|
513
513
|
nonce?: `0x${string}` | undefined;
|
514
|
-
to?: `0x${string}` | undefined;
|
514
|
+
to?: `0x${string}` | null | undefined;
|
515
515
|
value?: `0x${string}` | undefined;
|
516
516
|
gasPrice?: undefined;
|
517
517
|
maxFeePerGas?: `0x${string}` | undefined;
|