viem 2.0.0-beta.0 → 2.0.0-beta.2
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 +62 -0
- package/README.md +4 -0
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/public/getBlockNumber.js +2 -2
- package/_cjs/actions/public/getBlockNumber.js.map +1 -1
- package/_cjs/actions/public/watchContractEvent.js +2 -1
- package/_cjs/actions/public/watchContractEvent.js.map +1 -1
- 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/definitions/astar.js +29 -0
- package/_cjs/chains/definitions/astar.js.map +1 -0
- package/_cjs/chains/definitions/gnosis.js +4 -1
- package/_cjs/chains/definitions/gnosis.js.map +1 -1
- package/_cjs/chains/definitions/gnosisChiado.js +10 -1
- package/_cjs/chains/definitions/gnosisChiado.js.map +1 -1
- package/_cjs/chains/definitions/kava.js +29 -0
- package/_cjs/chains/definitions/kava.js.map +1 -0
- package/_cjs/chains/definitions/kavaTestnet.js +32 -0
- package/_cjs/chains/definitions/kavaTestnet.js.map +1 -0
- package/_cjs/chains/definitions/neonDevnet.js +1 -1
- package/_cjs/chains/definitions/neonDevnet.js.map +1 -1
- package/_cjs/chains/definitions/neonMainnet.js +27 -0
- package/_cjs/chains/definitions/neonMainnet.js.map +1 -0
- package/_cjs/chains/definitions/scrollSepolia.js +0 -1
- package/_cjs/chains/definitions/scrollSepolia.js.map +1 -1
- package/_cjs/chains/definitions/tenet.js +23 -0
- package/_cjs/chains/definitions/tenet.js.map +1 -0
- package/_cjs/chains/index.js +14 -4
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/chains/zksync/formatters.js +6 -2
- package/_cjs/chains/zksync/formatters.js.map +1 -1
- package/_cjs/errors/contract.js +1 -1
- package/_cjs/errors/contract.js.map +1 -1
- package/_cjs/errors/encoding.js +1 -37
- package/_cjs/errors/encoding.js.map +1 -1
- package/_cjs/errors/estimateGas.js +1 -1
- package/_cjs/errors/estimateGas.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/transaction.js +1 -1
- package/_cjs/errors/transaction.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js +5 -9
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/hash/getFunctionSignature.js +9 -9
- package/_cjs/utils/hash/getFunctionSignature.js.map +1 -1
- package/_cjs/utils/hash/normalizeSignature.js +48 -0
- package/_cjs/utils/hash/normalizeSignature.js.map +1 -0
- package/_cjs/utils/index.js +3 -10
- package/_cjs/utils/index.js.map +1 -1
- package/_cjs/utils/transaction/serializeTransaction.js +14 -5
- package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/public/getBlockNumber.js +2 -2
- package/_esm/actions/public/getBlockNumber.js.map +1 -1
- package/_esm/actions/public/watchContractEvent.js +2 -1
- package/_esm/actions/public/watchContractEvent.js.map +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/definitions/astar.js +26 -0
- package/_esm/chains/definitions/astar.js.map +1 -0
- package/_esm/chains/definitions/gnosis.js +4 -1
- package/_esm/chains/definitions/gnosis.js.map +1 -1
- package/_esm/chains/definitions/gnosisChiado.js +10 -1
- package/_esm/chains/definitions/gnosisChiado.js.map +1 -1
- package/_esm/chains/definitions/kava.js +26 -0
- package/_esm/chains/definitions/kava.js.map +1 -0
- package/_esm/chains/definitions/kavaTestnet.js +29 -0
- package/_esm/chains/definitions/kavaTestnet.js.map +1 -0
- package/_esm/chains/definitions/neonDevnet.js +1 -1
- package/_esm/chains/definitions/neonDevnet.js.map +1 -1
- package/_esm/chains/definitions/neonMainnet.js +24 -0
- package/_esm/chains/definitions/neonMainnet.js.map +1 -0
- package/_esm/chains/definitions/scrollSepolia.js +0 -1
- package/_esm/chains/definitions/scrollSepolia.js.map +1 -1
- package/_esm/chains/definitions/tenet.js +20 -0
- package/_esm/chains/definitions/tenet.js.map +1 -0
- package/_esm/chains/index.js +5 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/chains/zksync/formatters.js +6 -2
- package/_esm/chains/zksync/formatters.js.map +1 -1
- package/_esm/errors/contract.js +1 -1
- package/_esm/errors/contract.js.map +1 -1
- package/_esm/errors/encoding.js +0 -36
- package/_esm/errors/encoding.js.map +1 -1
- package/_esm/errors/estimateGas.js +1 -1
- package/_esm/errors/estimateGas.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/transaction.js +1 -1
- package/_esm/errors/transaction.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js +2 -4
- package/_esm/index.js.map +1 -1
- package/_esm/utils/hash/getFunctionSignature.js +9 -9
- package/_esm/utils/hash/getFunctionSignature.js.map +1 -1
- package/_esm/utils/hash/normalizeSignature.js +51 -0
- package/_esm/utils/hash/normalizeSignature.js.map +1 -0
- package/_esm/utils/index.js +1 -7
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/transaction/serializeTransaction.js +17 -5
- package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
- package/_types/actions/index.d.ts +1 -5
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/public/getBlockNumber.d.ts +1 -3
- package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/watchContractEvent.d.ts.map +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 +13 -9
- 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/astar.d.ts +36 -0
- package/_types/chains/definitions/astar.d.ts.map +1 -0
- package/_types/chains/definitions/celo.d.ts +7 -7
- package/_types/chains/definitions/celoAlfajores.d.ts +7 -7
- package/_types/chains/definitions/celoCannoli.d.ts +7 -7
- package/_types/chains/definitions/gnosis.d.ts +1 -0
- package/_types/chains/definitions/gnosis.d.ts.map +1 -1
- package/_types/chains/definitions/gnosisChiado.d.ts +7 -8
- package/_types/chains/definitions/gnosisChiado.d.ts.map +1 -1
- package/_types/chains/definitions/kava.d.ts +36 -0
- package/_types/chains/definitions/kava.d.ts.map +1 -0
- package/_types/chains/definitions/kavaTestnet.d.ts +36 -0
- package/_types/chains/definitions/kavaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/neonDevnet.d.ts +1 -1
- package/_types/chains/definitions/neonMainnet.d.ts +31 -0
- package/_types/chains/definitions/neonMainnet.d.ts.map +1 -0
- package/_types/chains/definitions/scrollSepolia.d.ts +0 -1
- package/_types/chains/definitions/scrollSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/tenet.d.ts +38 -0
- package/_types/chains/definitions/tenet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +5 -0
- package/_types/chains/index.d.ts.map +1 -1
- 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/encoding.d.ts +0 -33
- package/_types/errors/encoding.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +5 -25
- package/_types/index.d.ts.map +1 -1
- package/_types/types/contract.d.ts +6 -6
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/utils/hash/getFunctionSignature.d.ts +4 -5
- package/_types/utils/hash/getFunctionSignature.d.ts.map +1 -1
- package/_types/utils/hash/normalizeSignature.d.ts +6 -0
- package/_types/utils/hash/normalizeSignature.d.ts.map +1 -0
- package/_types/utils/index.d.ts +1 -7
- package/_types/utils/index.d.ts.map +1 -1
- package/actions/index.ts +0 -4
- package/actions/public/getBlockNumber.ts +2 -4
- package/actions/public/watchContractEvent.ts +2 -1
- package/chains/celo/formatters.ts +24 -37
- package/chains/celo/serializers.ts +23 -59
- package/chains/celo/types.ts +30 -21
- package/chains/celo/utils.ts +68 -0
- package/chains/definitions/astar.ts +26 -0
- package/chains/definitions/gnosis.ts +4 -1
- package/chains/definitions/gnosisChiado.ts +10 -1
- package/chains/definitions/kava.ts +26 -0
- package/chains/definitions/kavaTestnet.ts +29 -0
- package/chains/definitions/neonDevnet.ts +1 -1
- package/chains/definitions/neonMainnet.ts +24 -0
- package/chains/definitions/scrollSepolia.ts +0 -1
- package/chains/definitions/tenet.ts +20 -0
- package/chains/index.ts +5 -0
- package/chains/zksync/formatters.ts +6 -2
- package/chains/zksync/types.ts +7 -7
- package/errors/contract.ts +1 -1
- package/errors/encoding.ts +0 -43
- package/errors/estimateGas.ts +1 -1
- package/errors/transaction.ts +1 -1
- package/errors/version.ts +1 -1
- package/index.ts +0 -26
- package/package.json +2 -1
- package/types/contract.ts +4 -20
- package/utils/hash/getFunctionSignature.ts +11 -21
- package/utils/hash/normalizeSignature.ts +64 -0
- package/utils/index.ts +0 -15
- package/utils/transaction/serializeTransaction.ts +17 -4
- package/_cjs/utils/contract/extractFunctionParts.js +0 -31
- package/_cjs/utils/contract/extractFunctionParts.js.map +0 -1
- package/_esm/utils/contract/extractFunctionParts.js +0 -24
- package/_esm/utils/contract/extractFunctionParts.js.map +0 -1
- package/_types/utils/contract/extractFunctionParts.d.ts +0 -18
- package/_types/utils/contract/extractFunctionParts.d.ts.map +0 -1
- package/utils/contract/extractFunctionParts.ts +0 -37
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../errors/transaction.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAExD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,MAAM,UAAU,WAAW,CACzB,IAA4E;IAE5E,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC;SACjC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;QACpB,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,KAAK;YAAE,OAAO,IAAI,CAAA;QACvD,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;IACrB,CAAC,CAAC;SACD,MAAM,CAAC,OAAO,CAAuB,CAAA;IACxC,MAAM,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAA;IAC9E,OAAO,OAAO;SACX,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC;SACvE,IAAI,CAAC,IAAI,CAAC,CAAA;AACf,CAAC;AAKD,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAE7C;QACE,KAAK,CACH;YACE,+EAA+E;YAC/E,wGAAwG;SAC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CAAA;QAJM;;;;mBAAO,iCAAiC;WAAA;IAKjD,CAAC;CACF;AAMD,MAAM,OAAO,qCAAsC,SAAQ,SAAS;IAElE,YAAY,EAAE,IAAI,EAAkB;QAClC,KAAK,CACH,sDAAsD,IAAI,oBAAoB,CAC/E,CAAA;QAJM;;;;mBAAO,uCAAuC;WAAA;IAKvD,CAAC;CACF"}
|
package/_esm/errors/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export const version = '2.0.0-beta.
|
1
|
+
export const version = '2.0.0-beta.2';
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/_esm/index.js
CHANGED
@@ -25,7 +25,7 @@ export { CallExecutionError, ContractFunctionExecutionError, ContractFunctionRev
|
|
25
25
|
export { BaseFeeScalarError, Eip1559FeesNotSupportedError, MaxFeePerGasTooLowError, } from './errors/fee.js';
|
26
26
|
export { ChainDisconnectedError, InternalRpcError, InvalidInputRpcError, InvalidParamsRpcError, InvalidRequestRpcError, JsonRpcVersionUnsupportedError, LimitExceededRpcError, MethodNotFoundRpcError, MethodNotSupportedRpcError, ParseRpcError, ProviderDisconnectedError, ProviderRpcError, ResourceNotFoundRpcError, ResourceUnavailableRpcError, RpcError, SwitchChainError, TransactionRejectedRpcError, UnauthorizedProviderError, UnknownRpcError, UnsupportedProviderMethodError, UserRejectedRequestError, } from './errors/rpc.js';
|
27
27
|
export { ChainDoesNotSupportContract, ChainMismatchError, ChainNotFoundError, ClientChainNotConfiguredError, InvalidChainIdError, } from './errors/chain.js';
|
28
|
-
export {
|
28
|
+
export { InvalidBytesBooleanError, IntegerOutOfRangeError, InvalidHexBooleanError, InvalidHexValueError, SizeOverflowError, } from './errors/encoding.js';
|
29
29
|
export { EnsAvatarUriResolutionError, EnsAvatarInvalidNftUriError, EnsAvatarUnsupportedNamespaceError, } from './errors/ens.js';
|
30
30
|
export { EstimateGasExecutionError, } from './errors/estimateGas.js';
|
31
31
|
export { ExecutionRevertedError, FeeCapTooHighError, FeeCapTooLowError, InsufficientFundsError, IntrinsicGasTooHighError, IntrinsicGasTooLowError, NonceMaxValueError, NonceTooHighError, NonceTooLowError, TipAboveFeeCapError, TransactionTypeNotSupportedError, UnknownNodeError, } from './errors/node.js';
|
@@ -76,9 +76,7 @@ export { assertRequest, } from './utils/transaction/assertRequest.js';
|
|
76
76
|
export { assertTransactionEIP1559, assertTransactionEIP2930, assertTransactionLegacy, } from './utils/transaction/assertTransaction.js';
|
77
77
|
export { boolToBytes, hexToBytes, numberToBytes, stringToBytes, toBytes, } from './utils/encoding/toBytes.js';
|
78
78
|
export { boolToHex, bytesToHex, numberToHex, stringToHex, toHex, } from './utils/encoding/toHex.js';
|
79
|
-
export { bytesToBigInt,
|
80
|
-
/** @deprecated - use `bytesToBigInt` */
|
81
|
-
bytesToBigInt as bytesToBigint, bytesToBool, bytesToNumber, bytesToString, fromBytes, } from './utils/encoding/fromBytes.js';
|
79
|
+
export { bytesToBigInt, bytesToBool, bytesToNumber, bytesToString, fromBytes, } from './utils/encoding/fromBytes.js';
|
82
80
|
export { ccipFetch, offchainLookup, offchainLookupAbiItem, offchainLookupSignature, } from './utils/ccip.js';
|
83
81
|
export { concat, concatBytes, concatHex, } from './utils/data/concat.js';
|
84
82
|
export { assertCurrentChain, } from './utils/chain/assertCurrentChain.js';
|
package/_esm/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAiBL,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,4BAA4B,EAC5B,4BAA4B,EAC5B,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,qBAAqB,EACrB,2BAA2B,EAC3B,6BAA6B,EAC7B,gBAAgB,EAChB,qBAAqB,EACrB,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,SAAS,CAAA;AAEhB,OAAO,EACL,WAAW,GAIZ,MA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2B,CAAA;AAC9E,OAAO,EAKL,GAAG,EACH,QAAQ,EACR,MAAM,GACP,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAEL,UAAU,GACX,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAA2B,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC9E,OAAO,EAGL,gBAAgB,GACjB,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAEL,UAAU,GACX,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAEL,mBAAmB,GACpB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EACL,oBAAoB,GAIrB,MAAM,6CAA6C,CAAA;AACpD,OAAO,EAAsB,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAIL,KAAK,EACL,UAAU,EACV,QAAQ,GACT,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAA2B,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACzE,OAAO,EAGL,IAAI,GACL,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAIL,iBAAiB,EACjB,eAAe,EACf,uBAAuB,GACxB,MAAM,sBAAsB,CAAA"}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { formatAbiItem
|
2
|
-
import {
|
3
|
-
export const getFunctionSignature = (
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
return
|
8
|
-
}
|
9
|
-
return
|
1
|
+
import { formatAbiItem } from 'abitype';
|
2
|
+
import { normalizeSignature, } from './normalizeSignature.js';
|
3
|
+
export const getFunctionSignature = (fn_) => {
|
4
|
+
const fn = (() => {
|
5
|
+
if (typeof fn_ === 'string')
|
6
|
+
return fn_;
|
7
|
+
return formatAbiItem(fn_);
|
8
|
+
})();
|
9
|
+
return normalizeSignature(fn);
|
10
10
|
};
|
11
11
|
//# sourceMappingURL=getFunctionSignature.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getFunctionSignature.js","sourceRoot":"","sources":["../../../utils/hash/getFunctionSignature.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getFunctionSignature.js","sourceRoot":"","sources":["../../../utils/hash/getFunctionSignature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,aAAa,EAAE,MAAM,SAAS,CAAA;AAGzD,OAAO,EAEL,kBAAkB,GACnB,MAAM,yBAAyB,CAAA;AAMhC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,GAAyB,EAAE,EAAE;IAChE,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE;QACf,IAAI,OAAO,GAAG,KAAK,QAAQ;YAAE,OAAO,GAAG,CAAA;QACvC,OAAO,aAAa,CAAC,GAAG,CAAC,CAAA;IAC3B,CAAC,CAAC,EAAE,CAAA;IACJ,OAAO,kBAAkB,CAAC,EAAE,CAAC,CAAA;AAC/B,CAAC,CAAA"}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { BaseError } from '../../errors/base.js';
|
2
|
+
export function normalizeSignature(signature) {
|
3
|
+
let active = true;
|
4
|
+
let current = '';
|
5
|
+
let level = 0;
|
6
|
+
let result = '';
|
7
|
+
let valid = false;
|
8
|
+
for (let i = 0; i < signature.length; i++) {
|
9
|
+
const char = signature[i];
|
10
|
+
// If the character is a separator, we want to reactivate.
|
11
|
+
if (['(', ')', ','].includes(char))
|
12
|
+
active = true;
|
13
|
+
// If the character is a "level" token, we want to increment/decrement.
|
14
|
+
if (char === '(')
|
15
|
+
level++;
|
16
|
+
if (char === ')')
|
17
|
+
level--;
|
18
|
+
// If we aren't active, we don't want to mutate the result.
|
19
|
+
if (!active)
|
20
|
+
continue;
|
21
|
+
// If level === 0, we are at the definition level.
|
22
|
+
if (level === 0) {
|
23
|
+
if (char === ' ' && ['event', 'function', ''].includes(result))
|
24
|
+
result = '';
|
25
|
+
else {
|
26
|
+
result += char;
|
27
|
+
// If we are at the end of the definition, we must be finished.
|
28
|
+
if (char === ')') {
|
29
|
+
valid = true;
|
30
|
+
break;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
continue;
|
34
|
+
}
|
35
|
+
// Ignore spaces
|
36
|
+
if (char === ' ') {
|
37
|
+
// If the previous character is a separator, and the current section isn't empty, we want to deactivate.
|
38
|
+
if (signature[i - 1] !== ',' && current !== ',' && current !== ',(') {
|
39
|
+
current = '';
|
40
|
+
active = false;
|
41
|
+
}
|
42
|
+
continue;
|
43
|
+
}
|
44
|
+
result += char;
|
45
|
+
current += char;
|
46
|
+
}
|
47
|
+
if (!valid)
|
48
|
+
throw new BaseError('Unable to normalize signature.');
|
49
|
+
return result;
|
50
|
+
}
|
51
|
+
//# sourceMappingURL=normalizeSignature.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"normalizeSignature.js","sourceRoot":"","sources":["../../../utils/hash/normalizeSignature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAOhD,MAAM,UAAU,kBAAkB,CAChC,SAAuC;IAEvC,IAAI,MAAM,GAAG,IAAI,CAAA;IACjB,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,IAAI,KAAK,GAAG,CAAC,CAAA;IACb,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,IAAI,KAAK,GAAG,KAAK,CAAA;IAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;QAEzB,0DAA0D;QAC1D,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,MAAM,GAAG,IAAI,CAAA;QAEjD,uEAAuE;QACvE,IAAI,IAAI,KAAK,GAAG;YAAE,KAAK,EAAE,CAAA;QACzB,IAAI,IAAI,KAAK,GAAG;YAAE,KAAK,EAAE,CAAA;QAEzB,2DAA2D;QAC3D,IAAI,CAAC,MAAM;YAAE,SAAQ;QAErB,kDAAkD;QAClD,IAAI,KAAK,KAAK,CAAC,EAAE;YACf,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAC5D,MAAM,GAAG,EAAE,CAAA;iBACR;gBACH,MAAM,IAAI,IAAI,CAAA;gBAEd,+DAA+D;gBAC/D,IAAI,IAAI,KAAK,GAAG,EAAE;oBAChB,KAAK,GAAG,IAAI,CAAA;oBACZ,MAAK;iBACN;aACF;YAED,SAAQ;SACT;QAED,gBAAgB;QAChB,IAAI,IAAI,KAAK,GAAG,EAAE;YAChB,wGAAwG;YACxG,IAAI,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,IAAI,OAAO,KAAK,GAAG,IAAI,OAAO,KAAK,IAAI,EAAE;gBACnE,OAAO,GAAG,EAAE,CAAA;gBACZ,MAAM,GAAG,KAAK,CAAA;aACf;YACD,SAAQ;SACT;QAED,MAAM,IAAI,IAAI,CAAA;QACd,OAAO,IAAI,IAAI,CAAA;KAChB;IAED,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,SAAS,CAAC,gCAAgC,CAAC,CAAA;IAEjE,OAAO,MAAM,CAAA;AACf,CAAC"}
|
package/_esm/utils/index.js
CHANGED
@@ -30,7 +30,6 @@ export { getContractAddress, getCreateAddress, getCreate2Address, } from './addr
|
|
30
30
|
export { getAddress, } from './address/getAddress.js';
|
31
31
|
export { isAddress } from './address/isAddress.js';
|
32
32
|
export { isAddressEqual, } from './address/isAddressEqual.js';
|
33
|
-
export { extractFunctionName, extractFunctionParams, extractFunctionType, extractFunctionParts, } from './contract/extractFunctionParts.js';
|
34
33
|
export { concat, concatBytes, concatHex, } from './data/concat.js';
|
35
34
|
export { isBytes } from './data/isBytes.js';
|
36
35
|
export { isHex } from './data/isHex.js';
|
@@ -47,9 +46,7 @@ export { extract } from './formatters/extract.js';
|
|
47
46
|
export { toRlp, } from './encoding/toRlp.js';
|
48
47
|
export { boolToBytes, toBytes, hexToBytes, numberToBytes, stringToBytes, } from './encoding/toBytes.js';
|
49
48
|
export { boolToHex, bytesToHex, toHex, numberToHex, stringToHex, } from './encoding/toHex.js';
|
50
|
-
export { bytesToBigInt,
|
51
|
-
/** @deprecated – use `bytesToBigInt` */
|
52
|
-
bytesToBigInt as bytesToBigint, bytesToBool, bytesToNumber, bytesToString, fromBytes, } from './encoding/fromBytes.js';
|
49
|
+
export { bytesToBigInt, bytesToBigInt as bytesToBigint, bytesToBool, bytesToNumber, bytesToString, fromBytes, } from './encoding/fromBytes.js';
|
53
50
|
export { fromHex, hexToBool, hexToBigInt, hexToNumber, hexToString, } from './encoding/fromHex.js';
|
54
51
|
export { fromRlp, } from './encoding/fromRlp.js';
|
55
52
|
export { containsNodeError, getNodeError, } from './errors/getNodeError.js';
|
@@ -75,9 +72,6 @@ export { getTransactionType, } from './transaction/getTransactionType.js';
|
|
75
72
|
export { assertRequest, } from './transaction/assertRequest.js';
|
76
73
|
export { assertTransactionEIP1559, assertTransactionEIP2930, assertTransactionLegacy, } from './transaction/assertTransaction.js';
|
77
74
|
export { parseTransaction, } from './transaction/parseTransaction.js';
|
78
|
-
export {
|
79
|
-
/** @deprecated import `prepareTransactionRequest` from `viem/actions` instead. */
|
80
|
-
prepareTransactionRequest, } from '../actions/wallet/prepareTransactionRequest.js';
|
81
75
|
export { serializeTransaction, } from './transaction/serializeTransaction.js';
|
82
76
|
export { serializeAccessList, } from './transaction/serializeAccessList.js';
|
83
77
|
export { formatEther } from './unit/formatEther.js';
|
package/_esm/utils/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,oBAAoB,EACpB,YAAY,GACb,MAAM,mBAAmB,CAAA;AAE1B,OAAO,EAGL,SAAS,EACT,cAAc,EACd,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,WAAW,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,OAAO,EAEL,mBAAmB,GACpB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAA6B,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAA4B,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,EAA6B,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAC9E,OAAO,EAA4B,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,EAA4B,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,EAA2B,SAAS,EAAE,MAAM,qBAAqB,CAAA"}
|
@@ -71,11 +71,23 @@ function serializeTransactionLegacy(transaction, signature) {
|
|
71
71
|
data ?? '0x',
|
72
72
|
];
|
73
73
|
if (signature) {
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
74
|
+
const v = (() => {
|
75
|
+
// EIP-155 (explicit chainId)
|
76
|
+
if (chainId > 0)
|
77
|
+
return BigInt(chainId * 2) + BigInt(35n + signature.v - 27n);
|
78
|
+
// EIP-155 (inferred chainId)
|
79
|
+
if (signature.v >= 35n) {
|
80
|
+
const inferredChainId = (signature.v - 35n) / 2n;
|
81
|
+
if (inferredChainId > 0)
|
82
|
+
return signature.v;
|
83
|
+
return 27n + (signature.v === 35n ? 0n : 1n);
|
84
|
+
}
|
85
|
+
// Pre-EIP-155 (no chainId)
|
86
|
+
const v = 27n + (signature.v === 27n ? 0n : 1n);
|
87
|
+
if (signature.v !== v)
|
88
|
+
throw new InvalidLegacyVError({ v: signature.v });
|
89
|
+
return v;
|
90
|
+
})();
|
79
91
|
serializedTransaction = [
|
80
92
|
...serializedTransaction,
|
81
93
|
toHex(v),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serializeTransaction.js","sourceRoot":"","sources":["../../../utils/transaction/serializeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,GAEpB,MAAM,6BAA6B,CAAA;AAcpC,OAAO,EAA2B,SAA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, mine, } from './test/mine.js';
|
|
34
34
|
export { type MulticallErrorType, type MulticallParameters, type MulticallReturnType, multicall, } from './public/multicall.js';
|
35
35
|
export { type OnBlock, type OnBlockParameter, type WatchBlocksErrorType, type WatchBlocksParameters, type WatchBlocksReturnType, watchBlocks, } from './public/watchBlocks.js';
|
36
36
|
export { type OnBlockNumberFn, type OnBlockNumberParameter, type WatchBlockNumberErrorType, type WatchBlockNumberParameters, type WatchBlockNumberReturnType, watchBlockNumber, } from './public/watchBlockNumber.js';
|
37
|
-
export { type WatchEventOnLogsFn,
|
38
|
-
/** @deprecated - use `WatchEventOnLogsFn` instead. */
|
39
|
-
type WatchEventOnLogsFn as OnLogsFn, type WatchEventOnLogsParameter,
|
40
|
-
/** @deprecated - use `WatchEventOnLogsParameter` instead. */
|
41
|
-
type WatchEventOnLogsParameter as OnLogsParameter, type WatchEventParameters, type WatchEventReturnType, watchEvent, } from './public/watchEvent.js';
|
37
|
+
export { type WatchEventOnLogsFn, type WatchEventOnLogsParameter, type WatchEventParameters, type WatchEventReturnType, watchEvent, } from './public/watchEvent.js';
|
42
38
|
export { type OnTransactionsFn, type OnTransactionsParameter, type WatchPendingTransactionsErrorType, type WatchPendingTransactionsParameters, type WatchPendingTransactionsReturnType, watchPendingTransactions, } from './public/watchPendingTransactions.js';
|
43
39
|
export { type ReadContractErrorType, type ReadContractParameters, type ReadContractReturnType, readContract, } from './public/readContract.js';
|
44
40
|
export { type GetAddressesErrorType, type GetAddressesReturnType, getAddresses, } from './wallet/getAddresses.js';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,aAAa,GACd,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B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,2BAA2B,EAChC,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,kBAAkB,GACnB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EACL,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,aAAa,GACd,MAAM,2BAA2B,CAAA"}
|
@@ -6,8 +6,6 @@ import type { RequestErrorType } from '../../utils/buildRequest.js';
|
|
6
6
|
export type GetBlockNumberParameters = {
|
7
7
|
/** Time (in ms) that cached block number will remain in memory. */
|
8
8
|
cacheTime?: number;
|
9
|
-
/** @deprecated use `cacheTime` instead. */
|
10
|
-
maxAge?: number;
|
11
9
|
};
|
12
10
|
export type GetBlockNumberReturnType = bigint;
|
13
11
|
export type GetBlockNumberErrorType = RequestErrorType | ErrorType;
|
@@ -56,5 +54,5 @@ export declare function getBlockNumberCache(id: string): {
|
|
56
54
|
* const blockNumber = await getBlockNumber(client)
|
57
55
|
* // 69420n
|
58
56
|
*/
|
59
|
-
export declare function getBlockNumber<TChain extends Chain | undefined>(client: Client<Transport, TChain>, { cacheTime
|
57
|
+
export declare function getBlockNumber<TChain extends Chain | undefined>(client: Client<Transport, TChain>, { cacheTime }?: GetBlockNumberParameters): Promise<GetBlockNumberReturnType>;
|
60
58
|
//# sourceMappingURL=getBlockNumber.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getBlockNumber.d.ts","sourceRoot":"","sources":["../../../actions/public/getBlockNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAGnE,MAAM,MAAM,wBAAwB,GAAG;IACrC,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;
|
1
|
+
{"version":3,"file":"getBlockNumber.d.ts","sourceRoot":"","sources":["../../../actions/public/getBlockNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AAGnE,MAAM,MAAM,wBAAwB,GAAG;IACrC,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAA;AAE7C,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,GAAG,SAAS,CAAA;AAIlE,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;EAE7C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,cAAc,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACnE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,EACjC,EAAE,SAA4B,EAAE,GAAE,wBAA6B,GAC9D,OAAO,CAAC,wBAAwB,CAAC,CASnC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"watchContractEvent.d.ts","sourceRoot":"","sources":["../../../actions/public/watchContractEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SA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AAK,EAAE,KAAK,KAAK,IAAI,CAAC,GAAG,SAAS,CAAA;IAC9C,6DAA6D;IAC7D,MAAM,EAAE,0BAA0B,CAChC,GAAG,EACH,SAAS,SAAS,iBAAiB,CAAC,GAAG,CAAC,GACpC,SAAS,GACT,iBAAiB,CAAC,GAAG,CAAC,EAC1B,MAAM,CACP,CAAA;IACD;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAA;CACtC,GAAG,cAAc,CAAC,SAAS,CAAC,CAAA;AAE7B,MAAM,MAAM,4BAA4B,GAAG,MAAM,IAAI,CAAA;AAErD,MAAM,MAAM,2BAA2B,GACnC,kBAAkB,GAClB,gBAAgB,GAChB,SAAS,CAAA;AAEb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,SAAS,KAAK,GAAG,SAAS,EAC/B,KAAK,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAC1C,SAAS,SAAS,iBAAiB,CAAC,GAAG,CAAC,GAAG,SAAS,GAAG,SAAS,EAChE,MAAM,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAC9C,SAAS,SAAS,SAAS,GAAG,SAAS,EAEvC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,EAChC,UAAU,EAAE,4BAA4B,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,GAC1E,4BAA4B,CAiL9B"}
|
@@ -89,7 +89,7 @@ export declare const formattersCelo: {
|
|
89
89
|
v?: `0x${string}` | undefined;
|
90
90
|
accessList?: undefined;
|
91
91
|
chainId?: `0x${string}` | undefined;
|
92
|
-
} & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
92
|
+
} & 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;
|
@@ -114,7 +114,7 @@ export declare const formattersCelo: {
|
|
114
114
|
v?: `0x${string}` | undefined;
|
115
115
|
accessList?: undefined;
|
116
116
|
chainId?: `0x${string}` | undefined;
|
117
|
-
} & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
117
|
+
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
118
118
|
feeCurrency: `0x${string}` | null;
|
119
119
|
type: "0x7b";
|
120
120
|
}) | ({
|
@@ -209,7 +209,7 @@ export declare const formattersCelo: {
|
|
209
209
|
v?: `0x${string}` | undefined;
|
210
210
|
accessList?: import("../../index.js").AccessList | undefined;
|
211
211
|
chainId?: `0x${string}` | undefined;
|
212
|
-
} & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
212
|
+
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
213
213
|
feeCurrency: `0x${string}` | null;
|
214
214
|
gatewayFee: `0x${string}` | null;
|
215
215
|
gatewayFeeRecipient: `0x${string}` | null;
|
@@ -234,7 +234,7 @@ export declare const formattersCelo: {
|
|
234
234
|
v?: `0x${string}` | undefined;
|
235
235
|
accessList?: import("../../index.js").AccessList | undefined;
|
236
236
|
chainId?: `0x${string}` | undefined;
|
237
|
-
} & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
237
|
+
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
238
238
|
feeCurrency: `0x${string}` | null;
|
239
239
|
type: "0x7b";
|
240
240
|
}) | ({
|
@@ -329,7 +329,7 @@ export declare const formattersCelo: {
|
|
329
329
|
v?: `0x${string}` | undefined;
|
330
330
|
accessList?: import("../../index.js").AccessList | undefined;
|
331
331
|
chainId?: `0x${string}` | undefined;
|
332
|
-
} & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
332
|
+
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
333
333
|
feeCurrency: `0x${string}` | null;
|
334
334
|
gatewayFee: `0x${string}` | null;
|
335
335
|
gatewayFeeRecipient: `0x${string}` | null;
|
@@ -354,7 +354,7 @@ export declare const formattersCelo: {
|
|
354
354
|
v?: `0x${string}` | undefined;
|
355
355
|
accessList?: import("../../index.js").AccessList | undefined;
|
356
356
|
chainId?: `0x${string}` | undefined;
|
357
|
-
} & import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
357
|
+
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
358
358
|
feeCurrency: `0x${string}` | null;
|
359
359
|
type: "0x7b";
|
360
360
|
})) => ({
|
@@ -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,YA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
|
@@ -5,7 +5,6 @@ import type { Hex } from '../../types/misc.js';
|
|
5
5
|
import type { Index, Quantity, RpcBlock, RpcTransaction as RpcTransaction_, RpcTransactionReceipt, RpcTransactionRequest as RpcTransactionRequest_, TransactionType } from '../../types/rpc.js';
|
6
6
|
import type { AccessList, Transaction as Transaction_, TransactionBase, TransactionReceipt, TransactionRequest as TransactionRequest_, TransactionRequestBase, TransactionSerializable, TransactionSerializableBase, TransactionSerialized } from '../../types/transaction.js';
|
7
7
|
import type { NeverBy } from '../../types/utils.js';
|
8
|
-
import type { OptimismRpcTransaction } from '../optimism/types.js';
|
9
8
|
type CeloBlockExclude = 'difficulty' | 'gasLimit' | 'mixHash' | 'nonce' | 'uncles';
|
10
9
|
export type CeloBlockOverrides = {
|
11
10
|
randomness: {
|
@@ -20,7 +19,7 @@ export type CeloRpcBlockOverrides = {
|
|
20
19
|
revealed: Hex;
|
21
20
|
};
|
22
21
|
};
|
23
|
-
export type CeloRpcBlock<TBlockTag extends BlockTag = BlockTag, TIncludeTransactions extends boolean = boolean> = NeverBy<RpcBlock<TBlockTag, TIncludeTransactions,
|
22
|
+
export type CeloRpcBlock<TBlockTag extends BlockTag = BlockTag, TIncludeTransactions extends boolean = boolean> = NeverBy<RpcBlock<TBlockTag, TIncludeTransactions, RpcTransaction<TBlockTag extends 'pending' ? true : false>>, CeloBlockExclude> & CeloRpcBlockOverrides;
|
24
23
|
export type CeloRpcTransaction<TPending extends boolean = boolean> = RpcTransaction<TPending> | RpcTransactionCIP42<TPending> | RpcTransactionCIP64<TPending>;
|
25
24
|
export type CeloRpcTransactionReceiptOverrides = {
|
26
25
|
feeCurrency: Address | null;
|
@@ -37,7 +36,7 @@ export type CeloTransactionReceiptOverrides = {
|
|
37
36
|
};
|
38
37
|
export type CeloTransactionReceipt = TransactionReceipt & CeloTransactionReceiptOverrides;
|
39
38
|
export type CeloTransactionRequest = TransactionRequest | TransactionRequestCIP42 | TransactionRequestCIP64;
|
40
|
-
export type CeloTransactionSerializable = TransactionSerializableCIP42 | TransactionSerializableCIP64 |
|
39
|
+
export type CeloTransactionSerializable = TransactionSerializableCIP42 | TransactionSerializableCIP64 | CeloTransactionSerializableBase;
|
41
40
|
export type CeloTransactionSerialized<TType extends CeloTransactionType = 'legacy'> = TransactionSerialized<TType> | TransactionSerializedCIP42 | TransactionSerializedCIP64;
|
42
41
|
export type CeloTransactionType = TransactionType | 'cip42' | 'cip64';
|
43
42
|
type RpcTransaction<TPending extends boolean = boolean> = RpcTransaction_<TPending> & {
|
@@ -50,13 +49,13 @@ type RpcTransactionRequest = RpcTransactionRequest_ & {
|
|
50
49
|
gatewayFee?: Hex;
|
51
50
|
gatewayFeeRecipient?: Address;
|
52
51
|
};
|
53
|
-
export type RpcTransactionCIP42<TPending extends boolean = boolean> = TransactionBase<Quantity, Index, TPending> & FeeValuesEIP1559<Quantity> & {
|
52
|
+
export type RpcTransactionCIP42<TPending extends boolean = boolean> = Omit<TransactionBase<Quantity, Index, TPending>, 'typeHex'> & FeeValuesEIP1559<Quantity> & {
|
54
53
|
feeCurrency: Address | null;
|
55
54
|
gatewayFee: Hex | null;
|
56
55
|
gatewayFeeRecipient: Address | null;
|
57
56
|
type: '0x7c';
|
58
57
|
};
|
59
|
-
export type RpcTransactionCIP64<TPending extends boolean = boolean> = TransactionBase<Quantity, Index, TPending> & FeeValuesEIP1559<Quantity> & {
|
58
|
+
export type RpcTransactionCIP64<TPending extends boolean = boolean> = Omit<TransactionBase<Quantity, Index, TPending>, 'typeHex'> & FeeValuesEIP1559<Quantity> & {
|
60
59
|
feeCurrency: Address | null;
|
61
60
|
type: '0x7b';
|
62
61
|
};
|
@@ -110,22 +109,27 @@ export type TransactionRequestCIP64 = TransactionRequestBase & Partial<FeeValues
|
|
110
109
|
gatewayFeeRecipient?: undefined;
|
111
110
|
type?: 'cip64';
|
112
111
|
};
|
113
|
-
export type TransactionSerializableCIP42<TQuantity = bigint, TIndex = number> = TransactionSerializableBase<TQuantity, TIndex> & FeeValuesEIP1559<TQuantity
|
112
|
+
export type TransactionSerializableCIP42<TQuantity = bigint, TIndex = number> = TransactionSerializableBase<TQuantity, TIndex> & Partial<FeeValuesEIP1559<TQuantity>> & {
|
114
113
|
accessList?: AccessList;
|
115
|
-
gasPrice?: never;
|
116
114
|
feeCurrency?: Address;
|
117
115
|
gatewayFeeRecipient?: Address;
|
118
116
|
gatewayFee?: TQuantity;
|
119
117
|
chainId: number;
|
120
118
|
type?: 'cip42';
|
121
119
|
};
|
122
|
-
export type TransactionSerializableCIP64<TQuantity = bigint, TIndex = number> = TransactionSerializableBase<TQuantity, TIndex> & FeeValuesEIP1559<TQuantity
|
120
|
+
export type TransactionSerializableCIP64<TQuantity = bigint, TIndex = number> = TransactionSerializableBase<TQuantity, TIndex> & Partial<FeeValuesEIP1559<TQuantity>> & {
|
123
121
|
accessList?: AccessList;
|
124
|
-
gasPrice?: never;
|
125
122
|
feeCurrency?: Address;
|
123
|
+
gatewayFee?: undefined;
|
124
|
+
gatewayFeeRecipient?: undefined;
|
126
125
|
chainId: number;
|
127
126
|
type?: 'cip64';
|
128
127
|
};
|
128
|
+
export type CeloTransactionSerializableBase = TransactionSerializable & {
|
129
|
+
feeCurrency?: undefined;
|
130
|
+
gatewayFee?: undefined;
|
131
|
+
gatewayFeeRecipient?: undefined;
|
132
|
+
};
|
129
133
|
export type TransactionSerializedCIP42 = `0x7c${string}`;
|
130
134
|
export type TransactionSerializedCIP64 = `0x7b${string}`;
|
131
135
|
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;
|
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;AA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AAM,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"}
|