viem 1.18.5 → 1.18.6
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 +8 -0
- 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/chains/zksync/formatters.js +6 -2
- package/_cjs/chains/zksync/formatters.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/chains/zksync/formatters.js +6 -2
- package/_esm/chains/zksync/formatters.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/chains/zksync/formatters.d.ts.map +1 -1
- package/_types/chains/zksync/types.d.ts +7 -7
- package/_types/chains/zksync/types.d.ts.map +1 -1
- 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/chains/zksync/formatters.ts +6 -2
- package/chains/zksync/types.ts +7 -7
- package/errors/version.ts +1 -1
- package/package.json +1 -1
@@ -21,8 +21,12 @@ export const formattersZkSync = {
|
|
21
21
|
return formatted;
|
22
22
|
});
|
23
23
|
return {
|
24
|
-
l1BatchNumber:
|
25
|
-
|
24
|
+
l1BatchNumber: args.l1BatchNumber
|
25
|
+
? hexToBigInt(args.l1BatchNumber)
|
26
|
+
: null,
|
27
|
+
l1BatchTimestamp: args.l1BatchTimestamp
|
28
|
+
? hexToBigInt(args.l1BatchTimestamp)
|
29
|
+
: null,
|
26
30
|
transactions,
|
27
31
|
};
|
28
32
|
},
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatters.js","sourceRoot":"","sources":["../../../chains/zksync/formatters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,MAAM,sBAAsB,CAAA;AAE3D,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AACvF,OAAO,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAA;AAcvF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC;QAC/B,MAAM,CACJ,IAEC;YAID,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE;gBAC1D,IAAI,OAAO,WAAW,KAAK,QAAQ;oBAAE,OAAO,WAAW,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errors/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const version = '1.18.
|
1
|
+
export const version = '1.18.6';
|
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,2BAA2B,EAC3B,qBAAqB,EACtB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AACnD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAElE,KAAK,gBAAgB,GACjB,YAAY,G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gB,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
|
})) => ({
|
@@ -84,12 +84,12 @@ export declare const celoAlfajores: 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 celoAlfajores: 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 celoAlfajores: 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
|
})) => ({
|
@@ -77,12 +77,12 @@ export declare const celoCannoli: import("../../types/utils.js").Assign<{
|
|
77
77
|
feeCurrency: `0x${string}` | null;
|
78
78
|
gatewayFee: `0x${string}` | null;
|
79
79
|
gatewayFeeRecipient: `0x${string}` | null;
|
80
|
-
}) | (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}`> & {
|
80
|
+
}) | (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}`> & {
|
81
81
|
feeCurrency: `0x${string}` | null;
|
82
82
|
gatewayFee: `0x${string}` | null;
|
83
83
|
gatewayFeeRecipient: `0x${string}` | null;
|
84
84
|
type: "0x7c";
|
85
|
-
}) | (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}`> & {
|
85
|
+
}) | (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}`> & {
|
86
86
|
feeCurrency: `0x${string}` | null;
|
87
87
|
type: "0x7b";
|
88
88
|
}) | (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"> & {
|
@@ -97,12 +97,12 @@ export declare const celoCannoli: import("../../types/utils.js").Assign<{
|
|
97
97
|
feeCurrency: `0x${string}` | null;
|
98
98
|
gatewayFee: `0x${string}` | null;
|
99
99
|
gatewayFeeRecipient: `0x${string}` | null;
|
100
|
-
}) | (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}`> & {
|
100
|
+
}) | (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}`> & {
|
101
101
|
feeCurrency: `0x${string}` | null;
|
102
102
|
gatewayFee: `0x${string}` | null;
|
103
103
|
gatewayFeeRecipient: `0x${string}` | null;
|
104
104
|
type: "0x7c";
|
105
|
-
}) | (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}`> & {
|
105
|
+
}) | (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}`> & {
|
106
106
|
feeCurrency: `0x${string}` | null;
|
107
107
|
type: "0x7b";
|
108
108
|
}) | (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"> & {
|
@@ -117,12 +117,12 @@ export declare const celoCannoli: import("../../types/utils.js").Assign<{
|
|
117
117
|
feeCurrency: `0x${string}` | null;
|
118
118
|
gatewayFee: `0x${string}` | null;
|
119
119
|
gatewayFeeRecipient: `0x${string}` | null;
|
120
|
-
}) | (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}`> & {
|
120
|
+
}) | (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}`> & {
|
121
121
|
feeCurrency: `0x${string}` | null;
|
122
122
|
gatewayFee: `0x${string}` | null;
|
123
123
|
gatewayFeeRecipient: `0x${string}` | null;
|
124
124
|
type: "0x7c";
|
125
|
-
}) | (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}`> & {
|
125
|
+
}) | (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}`> & {
|
126
126
|
feeCurrency: `0x${string}` | null;
|
127
127
|
type: "0x7b";
|
128
128
|
})) => ({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../chains/zksync/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAS/C,OAAO,KAAK,EAEV,eAAe,EACf,SAAS,EACT,uBAAuB,EACvB,oBAAoB,EACpB,oCAAoC,EAEpC,iBAAiB,EAEjB,wBAAwB,EACzB,MAAM,YAAY,CAAA;AAEnB,eAAO,MAAM,gBAAgB;;;;0BAIP,IAAI,EAAE,GAAG,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;0BAGjC,IAAI,EAAE,GAAG,iBAAiB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../chains/zksync/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAS/C,OAAO,KAAK,EAEV,eAAe,EACf,SAAS,EACT,uBAAuB,EACvB,oBAAoB,EACpB,oCAAoC,EAEpC,iBAAiB,EAEjB,wBAAwB,EACzB,MAAM,YAAY,CAAA;AAEnB,eAAO,MAAM,gBAAgB;;;;0BAIP,IAAI,EAAE,GAAG,oBAAoB,EAAE;;;;;;;;;;;;;;;;;;;;;0BAGjC,IAAI,EAAE,GAAG,iBAAiB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmHZ,CAAA"}
|
@@ -9,7 +9,7 @@ import type { UnionOmit } from '../../types/utils.js';
|
|
9
9
|
type EIP712Type = '0x71';
|
10
10
|
type PriorityType = '0xff';
|
11
11
|
export type ZkSyncLog<TQuantity = bigint, TIndex = number, TPending extends boolean = boolean, TAbiEvent extends AbiEvent | undefined = undefined, TStrict extends boolean | undefined = undefined, TAbi extends Abi | readonly unknown[] | undefined = TAbiEvent extends AbiEvent ? [TAbiEvent] : undefined, TEventName extends string | undefined = TAbiEvent extends AbiEvent ? TAbiEvent['name'] : undefined> = Log_<TQuantity, TIndex, TPending, TAbiEvent, TStrict, TAbi, TEventName> & {
|
12
|
-
l1BatchNumber: TQuantity;
|
12
|
+
l1BatchNumber: TQuantity | null;
|
13
13
|
transactionLogIndex: TIndex;
|
14
14
|
logType: Hex | null;
|
15
15
|
};
|
@@ -65,8 +65,8 @@ export type ZkSyncBlockOverrides = {
|
|
65
65
|
};
|
66
66
|
export type ZkSyncBlock<TIncludeTransactions extends boolean = boolean, TBlockTag extends BlockTag = BlockTag> = Block<bigint, TIncludeTransactions, TBlockTag, ZkSyncTransaction<TBlockTag extends 'pending' ? true : false>> & ZkSyncBlockOverrides;
|
67
67
|
export type ZkSyncRpcBlockOverrides = {
|
68
|
-
l1BatchNumber: Hex;
|
69
|
-
l1BatchTimestamp: Hex;
|
68
|
+
l1BatchNumber: Hex | null;
|
69
|
+
l1BatchTimestamp: Hex | null;
|
70
70
|
};
|
71
71
|
export type ZkSyncRpcBlock<TBlockTag extends BlockTag = BlockTag, TIncludeTransactions extends boolean = boolean> = RpcBlock<TBlockTag, TIncludeTransactions, ZkSyncRpcTransaction<TBlockTag extends 'pending' ? true : false>> & ZkSyncRpcBlockOverrides;
|
72
72
|
type TransactionOverrides = {
|
@@ -82,8 +82,8 @@ export type ZkSyncTransactionEIP712<TPending extends boolean = boolean> = Transa
|
|
82
82
|
type Transaction<TPending extends boolean = boolean> = Transaction_<bigint, number, TPending> & TransactionOverrides;
|
83
83
|
export type ZkSyncTransaction<TPending extends boolean = boolean> = Transaction<TPending> | TransactionPriority<TPending> | ZkSyncTransactionEIP712<TPending>;
|
84
84
|
type RpcTransactionOverrides = {
|
85
|
-
l1BatchNumber: Hex;
|
86
|
-
l1BatchTxIndex: Hex;
|
85
|
+
l1BatchNumber: Hex | null;
|
86
|
+
l1BatchTxIndex: Hex | null;
|
87
87
|
};
|
88
88
|
type RpcTransactionLegacy<TPending extends boolean = boolean> = TransactionLegacy_<Hex, Hex, TPending, '0x0'> & RpcTransactionOverrides;
|
89
89
|
type RpcTransactionEIP2930<TPending extends boolean = boolean> = TransactionEIP2930_<Hex, Hex, TPending, '0x1'> & RpcTransactionOverrides;
|
@@ -129,8 +129,8 @@ export type ZkSyncRpcTransactionRequestEIP712 = TransactionRequestBase<Quantity,
|
|
129
129
|
export type ZkSyncRpcTransactionRequest = RpcTransactionRequest | ZkSyncRpcTransactionRequestEIP712;
|
130
130
|
export type ZkSyncTransactionType = TransactionType | 'eip712' | 'priority';
|
131
131
|
export type ZkSyncRpcTransactionReceiptOverrides = {
|
132
|
-
l1BatchNumber: Hex;
|
133
|
-
l1BatchTxIndex: Hex;
|
132
|
+
l1BatchNumber: Hex | null;
|
133
|
+
l1BatchTxIndex: Hex | null;
|
134
134
|
logs: ZkSyncRpcLog[];
|
135
135
|
l2ToL1Logs: ZkSyncRpcL2ToL1Log[];
|
136
136
|
root: Hex;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../chains/zksync/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACrD,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAC1D,OAAO,KAAK,EAAE,GAAG,IAAI,IAAI,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,MAAM,IAAI,OAAO,EACjB,qBAAqB,IAAI,sBAAsB,EAChD,MAAM,oBAAoB,CAAA;AAC3B,OAAO,K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U,EAChC,KAAK,GAAG,qBAAqB,IAC3B,IAAI,CAAC,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,GAClE,iCAAiC,CAAA;AAInC,MAAM,MAAM,6BAA6B,GACrC,uBAAuB,GACvB,mCAAmC,CAAA;AAEvC,MAAM,MAAM,2BAA2B,CACrC,KAAK,SAAS,eAAe,GAAG,QAAQ,IACtC,KAAK,SAAS,QAAQ,GACtB,iCAAiC,GACjC,qBAAqB,CAAC,KAAK,CAAC,CAAA;AAEhC,MAAM,MAAM,iCAAiC,GAAG,OAAO,MAAM,EAAE,CAAA;AAE/D,MAAM,MAAM,mCAAmC,CAC7C,SAAS,GAAG,MAAM,EAClB,MAAM,GAAG,MAAM,IACb,IAAI,CAAC,8BAA8B,CAAC,SAAS,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG;IACpE,IAAI,EAAE,GAAG,CAAA;IACT,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,GAAG,EAAE,CAAA;IACnB,cAAc,CAAC,EAAE,GAAG,CAAA;IACpB,eAAe,CAAC,EAAE,GAAG,CAAA;IACrB,IAAI,CAAC,EAAE,QAAQ,CAAA;CAChB,CAAA"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "1.18.
|
1
|
+
export declare const version = "1.18.6";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -19,22 +19,7 @@ import type {
|
|
19
19
|
CeloTransactionReceiptOverrides,
|
20
20
|
CeloTransactionRequest,
|
21
21
|
} from './types.js'
|
22
|
-
|
23
|
-
function isTransactionRequestCIP64(args: CeloTransactionRequest): boolean {
|
24
|
-
if (args.type === 'cip64') return true
|
25
|
-
if (args.type) return false
|
26
|
-
return (
|
27
|
-
'feeCurrency' in args &&
|
28
|
-
args.gatewayFee === undefined &&
|
29
|
-
args.gatewayFeeRecipient === undefined
|
30
|
-
)
|
31
|
-
}
|
32
|
-
|
33
|
-
function isTransactionRequestCIP42(args: CeloTransactionRequest): boolean {
|
34
|
-
if (args.type === 'cip42') return true
|
35
|
-
if (args.type) return false
|
36
|
-
return args.gatewayFee !== undefined || args.gatewayFeeRecipient !== undefined
|
37
|
-
}
|
22
|
+
import { isCIP42, isCIP64 } from './utils.js'
|
38
23
|
|
39
24
|
export const formattersCelo = {
|
40
25
|
block: /*#__PURE__*/ defineBlock({
|
@@ -70,15 +55,19 @@ export const formattersCelo = {
|
|
70
55
|
}),
|
71
56
|
transaction: /*#__PURE__*/ defineTransaction({
|
72
57
|
format(args: CeloRpcTransaction): CeloTransaction {
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
58
|
+
const transaction = { feeCurrency: args.feeCurrency } as CeloTransaction
|
59
|
+
|
60
|
+
if (args.type === '0x7b') transaction.type = 'cip64'
|
61
|
+
else {
|
62
|
+
if (args.type === '0x7c') transaction.type = 'cip42'
|
63
|
+
|
64
|
+
transaction.gatewayFee = args.gatewayFee
|
65
|
+
? hexToBigInt(args.gatewayFee)
|
66
|
+
: null
|
67
|
+
transaction.gatewayFeeRecipient = args.gatewayFeeRecipient
|
68
|
+
}
|
69
|
+
|
70
|
+
return transaction
|
82
71
|
},
|
83
72
|
}),
|
84
73
|
transactionReceipt: /*#__PURE__*/ defineTransactionReceipt({
|
@@ -95,22 +84,20 @@ export const formattersCelo = {
|
|
95
84
|
|
96
85
|
transactionRequest: /*#__PURE__*/ defineTransactionRequest({
|
97
86
|
format(args: CeloTransactionRequest): CeloRpcTransactionRequest {
|
98
|
-
if (isTransactionRequestCIP64(args))
|
99
|
-
return {
|
100
|
-
type: '0x7b',
|
101
|
-
feeCurrency: args.feeCurrency,
|
102
|
-
} as CeloRpcTransactionRequest
|
103
|
-
|
104
87
|
const request = {
|
105
88
|
feeCurrency: args.feeCurrency,
|
106
|
-
gatewayFee:
|
107
|
-
typeof args.gatewayFee !== 'undefined'
|
108
|
-
? numberToHex(args.gatewayFee)
|
109
|
-
: undefined,
|
110
|
-
gatewayFeeRecipient: args.gatewayFeeRecipient,
|
111
89
|
} as CeloRpcTransactionRequest
|
112
90
|
|
113
|
-
if (
|
91
|
+
if (isCIP64(args)) request.type = '0x7b'
|
92
|
+
else {
|
93
|
+
if (isCIP42(args)) request.type = '0x7c'
|
94
|
+
|
95
|
+
request.gatewayFee =
|
96
|
+
typeof args.gatewayFee !== 'undefined'
|
97
|
+
? numberToHex(args.gatewayFee)
|
98
|
+
: undefined
|
99
|
+
request.gatewayFeeRecipient = args.gatewayFeeRecipient
|
100
|
+
}
|
114
101
|
|
115
102
|
return request
|
116
103
|
},
|