viem 0.0.0-main.20231105T204204 → 0.0.0-main.20231105T211250
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/_cjs/chains/celo/formatters.js +23 -35
- package/_cjs/chains/celo/formatters.js.map +1 -1
- package/_cjs/chains/celo/serializers.js +20 -38
- package/_cjs/chains/celo/serializers.js.map +1 -1
- package/_cjs/chains/celo/utils.js +44 -0
- package/_cjs/chains/celo/utils.js.map +1 -0
- 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/_esm/chains/celo/formatters.js +23 -35
- package/_esm/chains/celo/formatters.js.map +1 -1
- package/_esm/chains/celo/serializers.js +19 -44
- package/_esm/chains/celo/serializers.js.map +1 -1
- package/_esm/chains/celo/utils.js +39 -0
- package/_esm/chains/celo/utils.js.map +1 -0
- 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/_types/chains/celo/formatters.d.ts +6 -6
- package/_types/chains/celo/formatters.d.ts.map +1 -1
- package/_types/chains/celo/serializers.d.ts +3 -2
- package/_types/chains/celo/serializers.d.ts.map +1 -1
- package/_types/chains/celo/types.d.ts +12 -7
- package/_types/chains/celo/types.d.ts.map +1 -1
- package/_types/chains/celo/utils.d.ts +7 -0
- package/_types/chains/celo/utils.d.ts.map +1 -0
- package/_types/chains/definitions/celo.d.ts +6 -6
- package/_types/chains/definitions/celoAlfajores.d.ts +6 -6
- package/_types/chains/definitions/celoCannoli.d.ts +6 -6
- package/_types/errors/version.d.ts +1 -1
- package/chains/celo/formatters.ts +24 -37
- package/chains/celo/serializers.ts +23 -59
- package/chains/celo/types.ts +29 -19
- package/chains/celo/utils.ts +68 -0
- package/errors/version.ts +1 -1
- package/package.json +1 -1
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;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CAAC,CAAA;QAJK;;;;mBAAO,kCAAkC;WAAA;IAKlD,CAAC;;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,IAA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AM,OAAO,eAAgB,SAAQ,QAAQ;IAG3C,YAAY,KAAY;QACtB,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 = '0.0.0-main.
|
1
|
+
export const version = '0.0.0-main.20231105T211250';
|
2
2
|
//# sourceMappingURL=version.js.map
|
@@ -49,12 +49,12 @@ export declare const formattersCelo: {
|
|
49
49
|
feeCurrency: `0x${string}` | null;
|
50
50
|
gatewayFee: `0x${string}` | null;
|
51
51
|
gatewayFeeRecipient: `0x${string}` | null;
|
52
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
52
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
53
53
|
feeCurrency: `0x${string}` | null;
|
54
54
|
gatewayFee: `0x${string}` | null;
|
55
55
|
gatewayFeeRecipient: `0x${string}` | null;
|
56
56
|
type: "0x7c";
|
57
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
57
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
58
58
|
feeCurrency: `0x${string}` | null;
|
59
59
|
type: "0x7b";
|
60
60
|
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
|
@@ -69,12 +69,12 @@ export declare const formattersCelo: {
|
|
69
69
|
feeCurrency: `0x${string}` | null;
|
70
70
|
gatewayFee: `0x${string}` | null;
|
71
71
|
gatewayFeeRecipient: `0x${string}` | null;
|
72
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
72
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
73
73
|
feeCurrency: `0x${string}` | null;
|
74
74
|
gatewayFee: `0x${string}` | null;
|
75
75
|
gatewayFeeRecipient: `0x${string}` | null;
|
76
76
|
type: "0x7c";
|
77
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
77
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
78
78
|
feeCurrency: `0x${string}` | null;
|
79
79
|
type: "0x7b";
|
80
80
|
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
|
@@ -89,12 +89,12 @@ export declare const formattersCelo: {
|
|
89
89
|
feeCurrency: `0x${string}` | null;
|
90
90
|
gatewayFee: `0x${string}` | null;
|
91
91
|
gatewayFeeRecipient: `0x${string}` | null;
|
92
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
92
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
93
93
|
feeCurrency: `0x${string}` | null;
|
94
94
|
gatewayFee: `0x${string}` | null;
|
95
95
|
gatewayFeeRecipient: `0x${string}` | null;
|
96
96
|
type: "0x7c";
|
97
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
97
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
98
98
|
feeCurrency: `0x${string}` | null;
|
99
99
|
type: "0x7b";
|
100
100
|
})) => ({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../chains/celo/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAW/C,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,kCAAkC,EAElC,eAAe,EAEf,sBAAsB,EACvB,MAAM,YAAY,CAAA;
|
1
|
+
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../chains/celo/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAW/C,OAAO,KAAK,EACV,kBAAkB,EAClB,kBAAkB,EAClB,kCAAkC,EAElC,eAAe,EAEf,sBAAsB,EACvB,MAAM,YAAY,CAAA;AAGnB,eAAO,MAAM,cAAc;;;;0BAKL,IAAI,EAAE,GAAG,kBAAkB,EAAE;;;;;;;;;;;;;;;;;;;;;0BAG/B,IAAI,EAAE,GAAG,eAAe,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEV,CAAA"}
|
@@ -1,8 +1,9 @@
|
|
1
|
+
import type { TransactionSerializable } from '../../types/transaction.js';
|
1
2
|
import { type SerializeTransactionFn } from '../../utils/transaction/serializeTransaction.js';
|
2
3
|
import type { CeloTransactionSerializable, TransactionSerializableCIP42, TransactionSerializableCIP64, TransactionSerializedCIP42, TransactionSerializedCIP64 } from './types.js';
|
3
|
-
export declare const serializeTransactionCelo: SerializeTransactionFn<CeloTransactionSerializable>;
|
4
|
+
export declare const serializeTransactionCelo: SerializeTransactionFn<CeloTransactionSerializable | TransactionSerializable>;
|
4
5
|
export declare const serializersCelo: {
|
5
|
-
readonly transaction: SerializeTransactionFn<CeloTransactionSerializable>;
|
6
|
+
readonly transaction: SerializeTransactionFn<TransactionSerializable | CeloTransactionSerializable>;
|
6
7
|
};
|
7
8
|
export type SerializeTransactionCIP42ReturnType = TransactionSerializedCIP42;
|
8
9
|
export type SerializeTransactionCIP64ReturnType = TransactionSerializedCIP64;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serializers.d.ts","sourceRoot":"","sources":["../../../chains/celo/serializers.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"serializers.d.ts","sourceRoot":"","sources":["../../../chains/celo/serializers.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AAOzE,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,iDAAiD,CAAA;AACxD,OAAO,KAAK,EACV,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC3B,MAAM,YAAY,CAAA;AAGnB,eAAO,MAAM,wBAAwB,EAAE,sBAAsB,CAC3D,2BAA2B,GAAG,uBAAuB,CAStD,CAAA;AAED,eAAO,MAAM,eAAe;;CAES,CAAA;AAKrC,MAAM,MAAM,mCAAmC,GAAG,0BAA0B,CAAA;AAC5E,MAAM,MAAM,mCAAmC,GAAG,0BAA0B,CAAA;AAsG5E,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,4BAA4B,QAqD1C;AAED,wBAAgB,sBAAsB,CACpC,WAAW,EAAE,4BAA4B,QAuC1C"}
|
@@ -37,7 +37,7 @@ export type CeloTransactionReceiptOverrides = {
|
|
37
37
|
};
|
38
38
|
export type CeloTransactionReceipt = TransactionReceipt & CeloTransactionReceiptOverrides;
|
39
39
|
export type CeloTransactionRequest = TransactionRequest | TransactionRequestCIP42 | TransactionRequestCIP64;
|
40
|
-
export type CeloTransactionSerializable = TransactionSerializableCIP42 | TransactionSerializableCIP64 |
|
40
|
+
export type CeloTransactionSerializable = TransactionSerializableCIP42 | TransactionSerializableCIP64 | CeloTransactionSerializableBase;
|
41
41
|
export type CeloTransactionSerialized<TType extends CeloTransactionType = 'legacy'> = TransactionSerialized<TType> | TransactionSerializedCIP42 | TransactionSerializedCIP64;
|
42
42
|
export type CeloTransactionType = TransactionType | 'cip42' | 'cip64';
|
43
43
|
type RpcTransaction<TPending extends boolean = boolean> = RpcTransaction_<TPending> & {
|
@@ -50,13 +50,13 @@ type RpcTransactionRequest = RpcTransactionRequest_ & {
|
|
50
50
|
gatewayFee?: Hex;
|
51
51
|
gatewayFeeRecipient?: Address;
|
52
52
|
};
|
53
|
-
export type RpcTransactionCIP42<TPending extends boolean = boolean> = TransactionBase<Quantity, Index, TPending> & FeeValuesEIP1559<Quantity> & {
|
53
|
+
export type RpcTransactionCIP42<TPending extends boolean = boolean> = Omit<TransactionBase<Quantity, Index, TPending>, 'typeHex'> & FeeValuesEIP1559<Quantity> & {
|
54
54
|
feeCurrency: Address | null;
|
55
55
|
gatewayFee: Hex | null;
|
56
56
|
gatewayFeeRecipient: Address | null;
|
57
57
|
type: '0x7c';
|
58
58
|
};
|
59
|
-
export type RpcTransactionCIP64<TPending extends boolean = boolean> = TransactionBase<Quantity, Index, TPending> & FeeValuesEIP1559<Quantity> & {
|
59
|
+
export type RpcTransactionCIP64<TPending extends boolean = boolean> = Omit<TransactionBase<Quantity, Index, TPending>, 'typeHex'> & FeeValuesEIP1559<Quantity> & {
|
60
60
|
feeCurrency: Address | null;
|
61
61
|
type: '0x7b';
|
62
62
|
};
|
@@ -110,22 +110,27 @@ export type TransactionRequestCIP64 = TransactionRequestBase & Partial<FeeValues
|
|
110
110
|
gatewayFeeRecipient?: undefined;
|
111
111
|
type?: 'cip64';
|
112
112
|
};
|
113
|
-
export type TransactionSerializableCIP42<TQuantity = bigint, TIndex = number> = TransactionSerializableBase<TQuantity, TIndex> & FeeValuesEIP1559<TQuantity
|
113
|
+
export type TransactionSerializableCIP42<TQuantity = bigint, TIndex = number> = TransactionSerializableBase<TQuantity, TIndex> & Partial<FeeValuesEIP1559<TQuantity>> & {
|
114
114
|
accessList?: AccessList;
|
115
|
-
gasPrice?: never;
|
116
115
|
feeCurrency?: Address;
|
117
116
|
gatewayFeeRecipient?: Address;
|
118
117
|
gatewayFee?: TQuantity;
|
119
118
|
chainId: number;
|
120
119
|
type?: 'cip42';
|
121
120
|
};
|
122
|
-
export type TransactionSerializableCIP64<TQuantity = bigint, TIndex = number> = TransactionSerializableBase<TQuantity, TIndex> & FeeValuesEIP1559<TQuantity
|
121
|
+
export type TransactionSerializableCIP64<TQuantity = bigint, TIndex = number> = TransactionSerializableBase<TQuantity, TIndex> & Partial<FeeValuesEIP1559<TQuantity>> & {
|
123
122
|
accessList?: AccessList;
|
124
|
-
gasPrice?: never;
|
125
123
|
feeCurrency?: Address;
|
124
|
+
gatewayFee?: undefined;
|
125
|
+
gatewayFeeRecipient?: undefined;
|
126
126
|
chainId: number;
|
127
127
|
type?: 'cip64';
|
128
128
|
};
|
129
|
+
export type CeloTransactionSerializableBase = TransactionSerializable & {
|
130
|
+
feeCurrency?: undefined;
|
131
|
+
gatewayFee?: undefined;
|
132
|
+
gatewayFeeRecipient?: undefined;
|
133
|
+
};
|
129
134
|
export type TransactionSerializedCIP42 = `0x7c${string}`;
|
130
135
|
export type TransactionSerializedCIP64 = `0x7b${string}`;
|
131
136
|
export {};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../chains/celo/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,cAAc,IAAI,eAAe,EACjC,qBAAqB,EACrB,qBAAqB,IAAI,sBAAsB,EAC/C,eAAe,EAChB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EACV,UAAU,EACV,WAAW,IAAI,YAAY,EAC3B,eAAe,EACf,kBAAkB,EAClB,kBAAkB,IAAI,mBAAmB,EACzC,sBAAsB,EACtB,uBAAuB,EACvB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E,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAEH,MAAM,MAAM,4BAA4B,CACtC,SAAS,GAAG,MAAM,EAClB,MAAM,GAAG,MAAM,IACb,2BAA2B,CAAC,SAAS,EAAE,MAAM,CAAC,GAChD,OAAO,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,GAAG;IACrC,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,mBAAmB,CAAC,EAAE,SAAS,CAAA;IAC/B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,OAAO,CAAA;CACf,CAAA;AAEH,MAAM,MAAM,+BAA+B,GAAG,uBAAuB,GAAG;IACtE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,mBAAmB,CAAC,EAAE,SAAS,CAAA;CAChC,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,MAAM,EAAE,CAAA;AACxD,MAAM,MAAM,0BAA0B,GAAG,OAAO,MAAM,EAAE,CAAA"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { CeloTransactionRequest, CeloTransactionSerializable, TransactionSerializableCIP42, TransactionSerializableCIP64 } from './types.js';
|
2
|
+
export declare function isEmpty(value: string | undefined | number | BigInt): value is undefined;
|
3
|
+
export declare function isPresent(value: string | undefined | number | BigInt): value is string | number | BigInt;
|
4
|
+
export declare function isEIP1559(transaction: CeloTransactionSerializable | CeloTransactionRequest): boolean;
|
5
|
+
export declare function isCIP42(transaction: CeloTransactionSerializable | CeloTransactionRequest): transaction is TransactionSerializableCIP42;
|
6
|
+
export declare function isCIP64(transaction: CeloTransactionSerializable | CeloTransactionRequest): transaction is TransactionSerializableCIP64;
|
7
|
+
//# sourceMappingURL=utils.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../chains/celo/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,sBAAsB,EACtB,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,EAC7B,MAAM,YAAY,CAAA;AAEnB,wBAAgB,OAAO,CACrB,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAC1C,KAAK,IAAI,SAAS,CAYpB;AAED,wBAAgB,SAAS,CACvB,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAC1C,KAAK,IAAI,MAAM,GAAG,MAAM,GAAG,MAAM,CAEnC;AAED,wBAAgB,SAAS,CACvB,WAAW,EAAE,2BAA2B,GAAG,sBAAsB,GAChE,OAAO,CAKT;AAGD,wBAAgB,OAAO,CACrB,WAAW,EAAE,2BAA2B,GAAG,sBAAsB,GAChE,WAAW,IAAI,4BAA4B,CAU7C;AAED,wBAAgB,OAAO,CACrB,WAAW,EAAE,2BAA2B,GAAG,sBAAsB,GAChE,WAAW,IAAI,4BAA4B,CAU7C"}
|
@@ -84,12 +84,12 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
84
84
|
feeCurrency: `0x${string}` | null;
|
85
85
|
gatewayFee: `0x${string}` | null;
|
86
86
|
gatewayFeeRecipient: `0x${string}` | null;
|
87
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
87
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
88
88
|
feeCurrency: `0x${string}` | null;
|
89
89
|
gatewayFee: `0x${string}` | null;
|
90
90
|
gatewayFeeRecipient: `0x${string}` | null;
|
91
91
|
type: "0x7c";
|
92
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
92
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
93
93
|
feeCurrency: `0x${string}` | null;
|
94
94
|
type: "0x7b";
|
95
95
|
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
|
@@ -104,12 +104,12 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
104
104
|
feeCurrency: `0x${string}` | null;
|
105
105
|
gatewayFee: `0x${string}` | null;
|
106
106
|
gatewayFeeRecipient: `0x${string}` | null;
|
107
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
107
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
108
108
|
feeCurrency: `0x${string}` | null;
|
109
109
|
gatewayFee: `0x${string}` | null;
|
110
110
|
gatewayFeeRecipient: `0x${string}` | null;
|
111
111
|
type: "0x7c";
|
112
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
112
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
113
113
|
feeCurrency: `0x${string}` | null;
|
114
114
|
type: "0x7b";
|
115
115
|
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & Omit<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "typeHex"> & {
|
@@ -124,12 +124,12 @@ export declare const celo: import("../../types/utils.js").Assign<{
|
|
124
124
|
feeCurrency: `0x${string}` | null;
|
125
125
|
gatewayFee: `0x${string}` | null;
|
126
126
|
gatewayFeeRecipient: `0x${string}` | null;
|
127
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
127
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
128
128
|
feeCurrency: `0x${string}` | null;
|
129
129
|
gatewayFee: `0x${string}` | null;
|
130
130
|
gatewayFeeRecipient: `0x${string}` | null;
|
131
131
|
type: "0x7c";
|
132
|
-
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
132
|
+
}) | (import("../../types/utils.js").Assign_<Partial<Omit<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "typeHex">>, import("../celo/types.js").CeloRpcTransaction> & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
133
133
|
feeCurrency: `0x${string}` | null;
|
134
134
|
type: "0x7b";
|
135
135
|
})) => ({
|