viem 0.0.0-w-20230725184008 → 0.0.0-w-20230802141753
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/README.md +6 -0
- package/dist/cjs/accounts/index.js +1 -1
- package/dist/cjs/accounts/index.js.map +1 -1
- package/dist/cjs/accounts/utils/signMessage.js +1 -1
- package/dist/cjs/accounts/utils/signMessage.js.map +1 -1
- package/dist/cjs/accounts/utils/signTypedData.js +1 -1
- package/dist/cjs/accounts/utils/signTypedData.js.map +1 -1
- package/dist/cjs/actions/ens/getEnsAddress.js +18 -13
- package/dist/cjs/actions/ens/getEnsAddress.js.map +1 -1
- package/dist/cjs/actions/index.js.map +1 -1
- package/dist/cjs/actions/public/createContractEventFilter.js.map +1 -1
- package/dist/cjs/actions/public/createEventFilter.js +16 -8
- package/dist/cjs/actions/public/createEventFilter.js.map +1 -1
- package/dist/cjs/actions/public/getBlock.js +3 -1
- package/dist/cjs/actions/public/getBlock.js.map +1 -1
- package/dist/cjs/actions/public/getBlockNumber.js +2 -2
- package/dist/cjs/actions/public/getBlockNumber.js.map +1 -1
- package/dist/cjs/actions/public/getFilterChanges.js.map +1 -1
- package/dist/cjs/actions/public/getFilterLogs.js +1 -1
- package/dist/cjs/actions/public/getFilterLogs.js.map +1 -1
- package/dist/cjs/actions/public/getLogs.js +16 -10
- package/dist/cjs/actions/public/getLogs.js.map +1 -1
- package/dist/cjs/actions/public/getTransaction.js +2 -1
- package/dist/cjs/actions/public/getTransaction.js.map +1 -1
- package/dist/cjs/actions/public/watchBlockNumber.js +1 -1
- package/dist/cjs/actions/public/watchBlockNumber.js.map +1 -1
- package/dist/cjs/actions/public/watchBlocks.js +2 -1
- package/dist/cjs/actions/public/watchBlocks.js.map +1 -1
- package/dist/cjs/actions/public/watchContractEvent.js +3 -0
- package/dist/cjs/actions/public/watchContractEvent.js.map +1 -1
- package/dist/cjs/actions/public/watchEvent.js +7 -2
- package/dist/cjs/actions/public/watchEvent.js.map +1 -1
- package/dist/cjs/clients/createClient.js +2 -1
- package/dist/cjs/clients/createClient.js.map +1 -1
- package/dist/cjs/clients/createPublicClient.js.map +1 -1
- package/dist/cjs/clients/createTestClient.js.map +1 -1
- package/dist/cjs/clients/createWalletClient.js.map +1 -1
- package/dist/cjs/clients/decorators/public.js.map +1 -1
- package/dist/cjs/constants/abis.js +12 -2
- package/dist/cjs/constants/abis.js.map +1 -1
- package/dist/cjs/constants/number.js +101 -0
- package/dist/cjs/constants/number.js.map +1 -0
- package/dist/cjs/contract.js.map +1 -1
- package/dist/cjs/errors/abi.js +8 -1
- package/dist/cjs/errors/abi.js.map +1 -1
- package/dist/cjs/errors/contract.js +56 -32
- package/dist/cjs/errors/contract.js.map +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/cjs/errors/version.js.map +1 -1
- package/dist/cjs/index.js +110 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/public.js.map +1 -1
- package/dist/cjs/utils/abi/encodePacked.js +2 -0
- package/dist/cjs/utils/abi/encodePacked.js.map +1 -1
- package/dist/cjs/utils/formatters/block.js.map +1 -1
- package/dist/cjs/utils/formatters/formatter.js +1 -0
- package/dist/cjs/utils/formatters/formatter.js.map +1 -1
- package/dist/cjs/utils/formatters/transaction.js.map +1 -1
- package/dist/cjs/utils/promise/withCache.js +3 -3
- package/dist/cjs/utils/promise/withCache.js.map +1 -1
- package/dist/cjs/utils/signature/hexToSignature.js +12 -0
- package/dist/cjs/utils/signature/hexToSignature.js.map +1 -0
- package/dist/cjs/utils/signature/signatureToHex.js.map +1 -0
- package/dist/cjs/utils/unit/parseUnits.js +2 -1
- package/dist/cjs/utils/unit/parseUnits.js.map +1 -1
- package/dist/esm/accounts/index.js +1 -1
- package/dist/esm/accounts/index.js.map +1 -1
- package/dist/esm/accounts/utils/signMessage.js +1 -1
- package/dist/esm/accounts/utils/signMessage.js.map +1 -1
- package/dist/esm/accounts/utils/signTypedData.js +1 -1
- package/dist/esm/accounts/utils/signTypedData.js.map +1 -1
- package/dist/esm/actions/ens/getEnsAddress.js +19 -14
- package/dist/esm/actions/ens/getEnsAddress.js.map +1 -1
- package/dist/esm/actions/index.js.map +1 -1
- package/dist/esm/actions/public/createContractEventFilter.js.map +1 -1
- package/dist/esm/actions/public/createEventFilter.js +16 -8
- package/dist/esm/actions/public/createEventFilter.js.map +1 -1
- package/dist/esm/actions/public/getBlock.js +3 -1
- package/dist/esm/actions/public/getBlock.js.map +1 -1
- package/dist/esm/actions/public/getBlockNumber.js +2 -2
- package/dist/esm/actions/public/getBlockNumber.js.map +1 -1
- package/dist/esm/actions/public/getFilterChanges.js.map +1 -1
- package/dist/esm/actions/public/getFilterLogs.js +1 -1
- package/dist/esm/actions/public/getFilterLogs.js.map +1 -1
- package/dist/esm/actions/public/getLogs.js +16 -10
- package/dist/esm/actions/public/getLogs.js.map +1 -1
- package/dist/esm/actions/public/getTransaction.js +2 -1
- package/dist/esm/actions/public/getTransaction.js.map +1 -1
- package/dist/esm/actions/public/watchBlockNumber.js +1 -1
- package/dist/esm/actions/public/watchBlockNumber.js.map +1 -1
- package/dist/esm/actions/public/watchBlocks.js +2 -1
- package/dist/esm/actions/public/watchBlocks.js.map +1 -1
- package/dist/esm/actions/public/watchContractEvent.js +5 -0
- package/dist/esm/actions/public/watchContractEvent.js.map +1 -1
- package/dist/esm/actions/public/watchEvent.js +9 -2
- package/dist/esm/actions/public/watchEvent.js.map +1 -1
- package/dist/esm/clients/createClient.js +2 -1
- package/dist/esm/clients/createClient.js.map +1 -1
- package/dist/esm/clients/createPublicClient.js.map +1 -1
- package/dist/esm/clients/createTestClient.js.map +1 -1
- package/dist/esm/clients/createWalletClient.js.map +1 -1
- package/dist/esm/clients/decorators/public.js.map +1 -1
- package/dist/esm/constants/abis.js +11 -1
- package/dist/esm/constants/abis.js.map +1 -1
- package/dist/esm/constants/number.js +97 -0
- package/dist/esm/constants/number.js.map +1 -0
- package/dist/esm/contract.js.map +1 -1
- package/dist/esm/errors/abi.js +8 -1
- package/dist/esm/errors/abi.js.map +1 -1
- package/dist/esm/errors/contract.js +56 -32
- package/dist/esm/errors/contract.js.map +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/esm/errors/version.js.map +1 -1
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/public.js.map +1 -1
- package/dist/esm/utils/abi/encodePacked.js +2 -0
- package/dist/esm/utils/abi/encodePacked.js.map +1 -1
- package/dist/esm/utils/formatters/block.js.map +1 -1
- package/dist/esm/utils/formatters/formatter.js +1 -0
- package/dist/esm/utils/formatters/formatter.js.map +1 -1
- package/dist/esm/utils/formatters/transaction.js.map +1 -1
- package/dist/esm/utils/promise/withCache.js +3 -3
- package/dist/esm/utils/promise/withCache.js.map +1 -1
- package/dist/esm/utils/signature/hexToSignature.js +18 -0
- package/dist/esm/utils/signature/hexToSignature.js.map +1 -0
- package/dist/esm/utils/signature/signatureToHex.js +21 -0
- package/dist/esm/utils/signature/signatureToHex.js.map +1 -0
- package/dist/esm/utils/unit/parseUnits.js +2 -1
- package/dist/esm/utils/unit/parseUnits.js.map +1 -1
- package/dist/types/accounts/index.d.ts +1 -1
- package/dist/types/accounts/index.d.ts.map +1 -1
- package/dist/types/actions/ens/getEnsAddress.d.ts +3 -1
- package/dist/types/actions/ens/getEnsAddress.d.ts.map +1 -1
- package/dist/types/actions/index.d.ts +5 -1
- package/dist/types/actions/index.d.ts.map +1 -1
- package/dist/types/actions/public/createContractEventFilter.d.ts +5 -5
- package/dist/types/actions/public/createContractEventFilter.d.ts.map +1 -1
- package/dist/types/actions/public/createEventFilter.d.ts +20 -7
- package/dist/types/actions/public/createEventFilter.d.ts.map +1 -1
- package/dist/types/actions/public/getBlock.d.ts +5 -5
- package/dist/types/actions/public/getBlock.d.ts.map +1 -1
- package/dist/types/actions/public/getBlockNumber.d.ts +4 -2
- package/dist/types/actions/public/getBlockNumber.d.ts.map +1 -1
- package/dist/types/actions/public/getFilterChanges.d.ts +5 -8
- package/dist/types/actions/public/getFilterChanges.d.ts.map +1 -1
- package/dist/types/actions/public/getFilterLogs.d.ts +5 -4
- package/dist/types/actions/public/getFilterLogs.d.ts.map +1 -1
- package/dist/types/actions/public/getLogs.d.ts +17 -6
- package/dist/types/actions/public/getLogs.d.ts.map +1 -1
- package/dist/types/actions/public/getTransaction.d.ts +4 -4
- package/dist/types/actions/public/getTransaction.d.ts.map +1 -1
- package/dist/types/actions/public/watchBlocks.d.ts +10 -10
- package/dist/types/actions/public/watchBlocks.d.ts.map +1 -1
- package/dist/types/actions/public/watchContractEvent.d.ts +3 -3
- package/dist/types/actions/public/watchContractEvent.d.ts.map +1 -1
- package/dist/types/actions/public/watchEvent.d.ts +19 -8
- package/dist/types/actions/public/watchEvent.d.ts.map +1 -1
- package/dist/types/chains/formatters/celo.d.ts +4 -0
- package/dist/types/chains/formatters/celo.d.ts.map +1 -1
- package/dist/types/chains/formatters/optimism.d.ts +5 -3
- package/dist/types/chains/formatters/optimism.d.ts.map +1 -1
- package/dist/types/chains/index.d.ts +44 -12
- package/dist/types/chains/index.d.ts.map +1 -1
- package/dist/types/clients/createClient.d.ts +7 -0
- package/dist/types/clients/createClient.d.ts.map +1 -1
- package/dist/types/clients/createPublicClient.d.ts +1 -1
- package/dist/types/clients/createPublicClient.d.ts.map +1 -1
- package/dist/types/clients/createTestClient.d.ts +1 -1
- package/dist/types/clients/createTestClient.d.ts.map +1 -1
- package/dist/types/clients/createWalletClient.d.ts +1 -1
- package/dist/types/clients/createWalletClient.d.ts.map +1 -1
- package/dist/types/clients/decorators/public.d.ts +10 -9
- package/dist/types/clients/decorators/public.d.ts.map +1 -1
- package/dist/types/constants/abis.d.ts +16 -1
- package/dist/types/constants/abis.d.ts.map +1 -1
- package/dist/types/constants/number.d.ts +97 -0
- package/dist/types/constants/number.d.ts.map +1 -0
- package/dist/types/contract.d.ts +5 -1
- package/dist/types/contract.d.ts.map +1 -1
- package/dist/types/errors/abi.d.ts +1 -0
- package/dist/types/errors/abi.d.ts.map +1 -1
- package/dist/types/errors/contract.d.ts +1 -0
- package/dist/types/errors/contract.d.ts.map +1 -1
- package/dist/types/errors/version.d.ts +1 -1
- package/dist/types/errors/version.d.ts.map +1 -1
- package/dist/types/index.d.ts +11 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/public.d.ts +5 -1
- package/dist/types/public.d.ts.map +1 -1
- package/dist/types/types/block.d.ts +7 -7
- package/dist/types/types/block.d.ts.map +1 -1
- package/dist/types/types/contract.d.ts +1 -1
- package/dist/types/types/contract.d.ts.map +1 -1
- package/dist/types/types/filter.d.ts +7 -3
- package/dist/types/types/filter.d.ts.map +1 -1
- package/dist/types/types/formatter.d.ts +3 -0
- package/dist/types/types/formatter.d.ts.map +1 -1
- package/dist/types/types/log.d.ts +8 -8
- package/dist/types/types/log.d.ts.map +1 -1
- package/dist/types/types/misc.d.ts.map +1 -1
- package/dist/types/types/rpc.d.ts +3 -3
- package/dist/types/types/rpc.d.ts.map +1 -1
- package/dist/types/types/transaction.d.ts +8 -8
- package/dist/types/types/transaction.d.ts.map +1 -1
- package/dist/types/utils/formatters/block.d.ts +13 -3
- package/dist/types/utils/formatters/block.d.ts.map +1 -1
- package/dist/types/utils/formatters/formatter.d.ts +1 -0
- package/dist/types/utils/formatters/formatter.d.ts.map +1 -1
- package/dist/types/utils/formatters/transaction.d.ts +10 -3
- package/dist/types/utils/formatters/transaction.d.ts.map +1 -1
- package/dist/types/utils/formatters/transactionReceipt.d.ts +1 -0
- package/dist/types/utils/formatters/transactionReceipt.d.ts.map +1 -1
- package/dist/types/utils/formatters/transactionRequest.d.ts +1 -0
- package/dist/types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/dist/types/utils/promise/withCache.d.ts +3 -3
- package/dist/types/utils/promise/withCache.d.ts.map +1 -1
- package/dist/types/utils/signature/hexToSignature.d.ts +13 -0
- package/dist/types/utils/signature/hexToSignature.d.ts.map +1 -0
- package/dist/types/utils/signature/signatureToHex.d.ts +17 -0
- package/dist/types/utils/signature/signatureToHex.d.ts.map +1 -0
- package/dist/types/utils/unit/parseUnits.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/accounts/index.ts +1 -1
- package/src/accounts/utils/signMessage.ts +1 -1
- package/src/accounts/utils/signTypedData.ts +1 -1
- package/src/actions/ens/getEnsAddress.ts +24 -15
- package/src/actions/index.ts +6 -2
- package/src/actions/public/createContractEventFilter.ts +30 -7
- package/src/actions/public/createEventFilter.ts +78 -24
- package/src/actions/public/getBlock.ts +18 -8
- package/src/actions/public/getBlockNumber.ts +5 -3
- package/src/actions/public/getFilterChanges.ts +46 -10
- package/src/actions/public/getFilterLogs.ts +26 -10
- package/src/actions/public/getLogs.ts +73 -18
- package/src/actions/public/getTransaction.ts +15 -8
- package/src/actions/public/watchBlockNumber.ts +1 -1
- package/src/actions/public/watchBlocks.ts +37 -18
- package/src/actions/public/watchContractEvent.ts +13 -9
- package/src/actions/public/watchEvent.ts +56 -19
- package/src/clients/createClient.ts +9 -0
- package/src/clients/createPublicClient.ts +7 -1
- package/src/clients/createTestClient.ts +7 -1
- package/src/clients/createWalletClient.ts +7 -1
- package/src/clients/decorators/public.ts +114 -25
- package/src/constants/abis.ts +11 -1
- package/src/constants/number.ts +98 -0
- package/src/contract.ts +6 -2
- package/src/errors/abi.ts +5 -1
- package/src/errors/contract.ts +52 -31
- package/src/errors/version.ts +1 -1
- package/src/index.ts +109 -3
- package/src/public.ts +6 -2
- package/src/types/block.ts +25 -10
- package/src/types/contract.ts +7 -3
- package/src/types/filter.ts +32 -26
- package/src/types/formatter.ts +9 -0
- package/src/types/log.ts +13 -8
- package/src/types/misc.ts +3 -0
- package/src/types/rpc.ts +20 -6
- package/src/types/transaction.ts +22 -11
- package/src/utils/abi/encodePacked.ts +1 -0
- package/src/utils/formatters/block.ts +31 -4
- package/src/utils/formatters/formatter.ts +1 -0
- package/src/utils/formatters/transaction.ts +25 -2
- package/src/utils/promise/withCache.ts +5 -5
- package/src/utils/signature/hexToSignature.ts +20 -0
- package/src/utils/signature/signatureToHex.ts +26 -0
- package/src/utils/unit/parseUnits.ts +2 -1
- package/dist/cjs/accounts/utils/signatureToHex.js.map +0 -1
- package/dist/esm/accounts/utils/signatureToHex.js +0 -7
- package/dist/esm/accounts/utils/signatureToHex.js.map +0 -1
- package/dist/types/accounts/utils/signatureToHex.d.ts +0 -3
- package/dist/types/accounts/utils/signatureToHex.d.ts.map +0 -1
- package/src/accounts/utils/signatureToHex.ts +0 -12
- /package/dist/cjs/{accounts/utils → utils/signature}/signatureToHex.js +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.universalSignatureValidatorAbi = exports.smartAccountAbi = exports.
|
3
|
+
exports.universalSignatureValidatorAbi = exports.smartAccountAbi = exports.addressResolverAbi = exports.textResolverAbi = exports.universalResolverReverseAbi = exports.universalResolverResolveAbi = exports.multicall3Abi = void 0;
|
4
4
|
exports.multicall3Abi = [
|
5
5
|
{
|
6
6
|
inputs: [
|
@@ -99,7 +99,7 @@ exports.textResolverAbi = [
|
|
99
99
|
outputs: [{ name: '', type: 'string' }],
|
100
100
|
},
|
101
101
|
];
|
102
|
-
exports.
|
102
|
+
exports.addressResolverAbi = [
|
103
103
|
{
|
104
104
|
name: 'addr',
|
105
105
|
type: 'function',
|
@@ -107,6 +107,16 @@ exports.singleAddressResolverAbi = [
|
|
107
107
|
inputs: [{ name: 'name', type: 'bytes32' }],
|
108
108
|
outputs: [{ name: '', type: 'address' }],
|
109
109
|
},
|
110
|
+
{
|
111
|
+
name: 'addr',
|
112
|
+
type: 'function',
|
113
|
+
stateMutability: 'view',
|
114
|
+
inputs: [
|
115
|
+
{ name: 'name', type: 'bytes32' },
|
116
|
+
{ name: 'coinType', type: 'uint256' },
|
117
|
+
],
|
118
|
+
outputs: [{ name: '', type: 'bytes' }],
|
119
|
+
},
|
110
120
|
];
|
111
121
|
exports.smartAccountAbi = [
|
112
122
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"abis.js","sourceRoot":"","sources":["../../../src/constants/abis.ts"],"names":[],"mappings":";;;AACa,QAAA,aAAa,GAAG;IAC3B;QACE,MAAM,EAAE;YACN;gBACE,UAAU,EAAE;oBACV;wBACE,IAAI,EAAE,QAAQ;wBACd,IAAI,EAAE,SAAS;qBAChB;oBACD;wBACE,IAAI,EAAE,cAAc;wBACpB,IAAI,EAAE,MAAM;qBACb;oBACD;wBACE,IAAI,EAAE,UAAU;wBAChB,IAAI,EAAE,OAAO;qBACd;iBACF;gBACD,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;SACF;QACD,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE;YACP;gBACE,UAAU,EAAE;oBACV;wBACE,IAAI,EAAE,SAAS;wBACf,IAAI,EAAE,MAAM;qBACb;oBACD;wBACE,IAAI,EAAE,YAAY;wBAClB,IAAI,EAAE,OAAO;qBACd;iBACF;gBACD,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,SAAS;aAChB;SACF;QACD,eAAe,EAAE,MAAM;QACvB,IAAI,EAAE,UAAU;KACjB;CACO,CAAA;AAEV,MAAM,uBAAuB,GAAG;IAC9B;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,OAAO;KACd;IACD;QACE,MAAM,EAAE,EAAE;QACV,IAAI,EAAE,8BAA8B;QACpC,IAAI,EAAE,OAAO;KACd;CACO,CAAA;AAEG,QAAA,2BAA2B,GAAG;IACzC,GAAG,uBAAuB;IAC1B;QACE,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE;YAC/B,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE;SAChC;QACD,OAAO,EAAE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AAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;KACvC;CACO,CAAA;AAIG,QAAA,eAAe,GAAG;IAC7B;QACE,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,UAAU;QAChB,eAAe,EAAE,MAAM;QACvB,MAAM,EAAE;YACN,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;YACjC,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,OAAO,EAAE;SACrC;QACD,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;KACxC;CACO,CAAA;AAKG,QAAA,8BAA8B,GAAG;IAC5C;QACE,MAAM,EAAE;YACN;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,SAAS;gBACvB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,SAAS;aAChB;YACD;gBACE,YAAY,EAAE,OAAO;gBACrB,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,OAAO;aACd;SACF;QACD,eAAe,EAAE,YAAY;QAC7B,IAAI,EAAE,aAAa;KACpB;CACO,CAAA"}
|
@@ -0,0 +1,101 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.minInt144 = exports.minInt136 = exports.minInt128 = exports.minInt120 = exports.minInt112 = exports.minInt104 = exports.minInt96 = exports.minInt88 = exports.minInt80 = exports.minInt72 = exports.minInt64 = exports.minInt56 = exports.minInt48 = exports.minInt40 = exports.minInt32 = exports.minInt24 = exports.minInt16 = exports.minInt8 = exports.maxInt256 = exports.maxInt248 = exports.maxInt240 = exports.maxInt232 = exports.maxInt224 = exports.maxInt216 = exports.maxInt208 = exports.maxInt200 = exports.maxInt192 = exports.maxInt184 = exports.maxInt176 = exports.maxInt168 = exports.maxInt160 = exports.maxInt152 = exports.maxInt144 = exports.maxInt136 = exports.maxInt128 = exports.maxInt120 = exports.maxInt112 = exports.maxInt104 = exports.maxInt96 = exports.maxInt88 = exports.maxInt80 = exports.maxInt72 = exports.maxInt64 = exports.maxInt56 = exports.maxInt48 = exports.maxInt40 = exports.maxInt32 = exports.maxInt24 = exports.maxInt16 = exports.maxInt8 = void 0;
|
4
|
+
exports.maxUint256 = exports.maxUint248 = exports.maxUint240 = exports.maxUint232 = exports.maxUint224 = exports.maxUint216 = exports.maxUint208 = exports.maxUint200 = exports.maxUint192 = exports.maxUint184 = exports.maxUint176 = exports.maxUint168 = exports.maxUint160 = exports.maxUint152 = exports.maxUint144 = exports.maxUint136 = exports.maxUint128 = exports.maxUint120 = exports.maxUint112 = exports.maxUint104 = exports.maxUint96 = exports.maxUint88 = exports.maxUint80 = exports.maxUint72 = exports.maxUint64 = exports.maxUint56 = exports.maxUint48 = exports.maxUint40 = exports.maxUint32 = exports.maxUint24 = exports.maxUint16 = exports.maxUint8 = exports.minInt256 = exports.minInt248 = exports.minInt240 = exports.minInt232 = exports.minInt224 = exports.minInt216 = exports.minInt208 = exports.minInt200 = exports.minInt192 = exports.minInt184 = exports.minInt176 = exports.minInt168 = exports.minInt160 = exports.minInt152 = void 0;
|
5
|
+
exports.maxInt8 = 2n ** (8n - 1n);
|
6
|
+
exports.maxInt16 = 2n ** (16n - 1n);
|
7
|
+
exports.maxInt24 = 2n ** (24n - 1n);
|
8
|
+
exports.maxInt32 = 2n ** (32n - 1n);
|
9
|
+
exports.maxInt40 = 2n ** (40n - 1n);
|
10
|
+
exports.maxInt48 = 2n ** (48n - 1n);
|
11
|
+
exports.maxInt56 = 2n ** (56n - 1n);
|
12
|
+
exports.maxInt64 = 2n ** (64n - 1n);
|
13
|
+
exports.maxInt72 = 2n ** (72n - 1n);
|
14
|
+
exports.maxInt80 = 2n ** (80n - 1n);
|
15
|
+
exports.maxInt88 = 2n ** (88n - 1n);
|
16
|
+
exports.maxInt96 = 2n ** (96n - 1n);
|
17
|
+
exports.maxInt104 = 2n ** (104n - 1n);
|
18
|
+
exports.maxInt112 = 2n ** (112n - 1n);
|
19
|
+
exports.maxInt120 = 2n ** (120n - 1n);
|
20
|
+
exports.maxInt128 = 2n ** (128n - 1n);
|
21
|
+
exports.maxInt136 = 2n ** (136n - 1n);
|
22
|
+
exports.maxInt144 = 2n ** (144n - 1n);
|
23
|
+
exports.maxInt152 = 2n ** (152n - 1n);
|
24
|
+
exports.maxInt160 = 2n ** (160n - 1n);
|
25
|
+
exports.maxInt168 = 2n ** (168n - 1n);
|
26
|
+
exports.maxInt176 = 2n ** (176n - 1n);
|
27
|
+
exports.maxInt184 = 2n ** (184n - 1n);
|
28
|
+
exports.maxInt192 = 2n ** (192n - 1n);
|
29
|
+
exports.maxInt200 = 2n ** (200n - 1n);
|
30
|
+
exports.maxInt208 = 2n ** (208n - 1n);
|
31
|
+
exports.maxInt216 = 2n ** (216n - 1n);
|
32
|
+
exports.maxInt224 = 2n ** (224n - 1n);
|
33
|
+
exports.maxInt232 = 2n ** (232n - 1n);
|
34
|
+
exports.maxInt240 = 2n ** (240n - 1n);
|
35
|
+
exports.maxInt248 = 2n ** (248n - 1n);
|
36
|
+
exports.maxInt256 = 2n ** (256n - 1n);
|
37
|
+
exports.minInt8 = -(2n ** 8n);
|
38
|
+
exports.minInt16 = -(2n ** 16n);
|
39
|
+
exports.minInt24 = -(2n ** 24n);
|
40
|
+
exports.minInt32 = -(2n ** 32n);
|
41
|
+
exports.minInt40 = -(2n ** 40n);
|
42
|
+
exports.minInt48 = -(2n ** 48n);
|
43
|
+
exports.minInt56 = -(2n ** 56n);
|
44
|
+
exports.minInt64 = -(2n ** 64n);
|
45
|
+
exports.minInt72 = -(2n ** 72n);
|
46
|
+
exports.minInt80 = -(2n ** 80n);
|
47
|
+
exports.minInt88 = -(2n ** 88n);
|
48
|
+
exports.minInt96 = -(2n ** 96n);
|
49
|
+
exports.minInt104 = -(2n ** 104n);
|
50
|
+
exports.minInt112 = -(2n ** 112n);
|
51
|
+
exports.minInt120 = -(2n ** 120n);
|
52
|
+
exports.minInt128 = -(2n ** 128n);
|
53
|
+
exports.minInt136 = -(2n ** 136n);
|
54
|
+
exports.minInt144 = -(2n ** 144n);
|
55
|
+
exports.minInt152 = -(2n ** 152n);
|
56
|
+
exports.minInt160 = -(2n ** 160n);
|
57
|
+
exports.minInt168 = -(2n ** 168n);
|
58
|
+
exports.minInt176 = -(2n ** 176n);
|
59
|
+
exports.minInt184 = -(2n ** 184n);
|
60
|
+
exports.minInt192 = -(2n ** 192n);
|
61
|
+
exports.minInt200 = -(2n ** 200n);
|
62
|
+
exports.minInt208 = -(2n ** 208n);
|
63
|
+
exports.minInt216 = -(2n ** 216n);
|
64
|
+
exports.minInt224 = -(2n ** 224n);
|
65
|
+
exports.minInt232 = -(2n ** 232n);
|
66
|
+
exports.minInt240 = -(2n ** 240n);
|
67
|
+
exports.minInt248 = -(2n ** 248n);
|
68
|
+
exports.minInt256 = -(2n ** 256n);
|
69
|
+
exports.maxUint8 = 2n ** 8n;
|
70
|
+
exports.maxUint16 = 2n ** 16n;
|
71
|
+
exports.maxUint24 = 2n ** 24n;
|
72
|
+
exports.maxUint32 = 2n ** 32n;
|
73
|
+
exports.maxUint40 = 2n ** 40n;
|
74
|
+
exports.maxUint48 = 2n ** 48n;
|
75
|
+
exports.maxUint56 = 2n ** 56n;
|
76
|
+
exports.maxUint64 = 2n ** 64n;
|
77
|
+
exports.maxUint72 = 2n ** 72n;
|
78
|
+
exports.maxUint80 = 2n ** 80n;
|
79
|
+
exports.maxUint88 = 2n ** 88n;
|
80
|
+
exports.maxUint96 = 2n ** 96n;
|
81
|
+
exports.maxUint104 = 2n ** 104n;
|
82
|
+
exports.maxUint112 = 2n ** 112n;
|
83
|
+
exports.maxUint120 = 2n ** 120n;
|
84
|
+
exports.maxUint128 = 2n ** 128n;
|
85
|
+
exports.maxUint136 = 2n ** 136n;
|
86
|
+
exports.maxUint144 = 2n ** 144n;
|
87
|
+
exports.maxUint152 = 2n ** 152n;
|
88
|
+
exports.maxUint160 = 2n ** 160n;
|
89
|
+
exports.maxUint168 = 2n ** 168n;
|
90
|
+
exports.maxUint176 = 2n ** 176n;
|
91
|
+
exports.maxUint184 = 2n ** 184n;
|
92
|
+
exports.maxUint192 = 2n ** 192n;
|
93
|
+
exports.maxUint200 = 2n ** 200n;
|
94
|
+
exports.maxUint208 = 2n ** 208n;
|
95
|
+
exports.maxUint216 = 2n ** 216n;
|
96
|
+
exports.maxUint224 = 2n ** 224n;
|
97
|
+
exports.maxUint232 = 2n ** 232n;
|
98
|
+
exports.maxUint240 = 2n ** 240n;
|
99
|
+
exports.maxUint248 = 2n ** 248n;
|
100
|
+
exports.maxUint256 = 2n ** 256n;
|
101
|
+
//# sourceMappingURL=number.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"number.js","sourceRoot":"","sources":["../../../src/constants/number.ts"],"names":[],"mappings":";;;;AAAa,QAAA,OAAO,GAAG,EAAE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC,CAAA;AACzB,QAAA,QAAQ,GAAG,EAAE,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAA;AAC3B,QAAA,QAAQ,GAAG,EAAE,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAA;AAC3B,QAAA,QAAQ,GAAG,EAAE,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAA;AAC3B,QAAA,QAAQ,GAAG,EAAE,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAA;AAC3B,QAAA,QAAQ,GAAG,EAAE,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAA;AAC3B,QAAA,QAAQ,GAAG,EAAE,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAA;AAC3B,QAAA,QAAQ,GAAG,EAAE,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAA;AAC3B,QAAA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,IAAI,IAAI,CAAA;AACvB,QAAA,UAAU,GAAG,EAAE,IAAI,IAAI,CAAA;AACvB,QAAA,UAAU,GAAG,EAAE,IAAI,IAAI,CAAA;AACvB,QAAA,UAAU,GAAG,EAAE,IAAI,IAAI,CAAA;AACvB,QAAA,UAAU,GAAG,EAAE,IAAI,IAAI,CAAA;AACvB,QAAA,UAAU,GAAG,EAAE,IAAI,IAAI,CAAA;AACvB,QAAA,UAAU,GAAG,EAAE,IAAI,IAAI,CAAA;AACvB,QAAA,UAAU,GAAG,EAAE,IAAI,IAAI,CAAA;AACvB,QAAA,UAAU,GAAG,EAAE,IAAI,IAAI,CAAA;AACvB,QAAA,UAAU,GAAG,EAAE,IAAI,IAAI,CAAA;AACvB,QAAA,UAAU,GAAG,EAAE,IAAI,IAAI,CAAA"}
|
package/dist/cjs/contract.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/contract.ts"],"names":[],"mappings":";;;AAAA,8FAIsD;AADpD,yIAAA,yBAAyB,OAAA;AAE3B,kFAIgD;AAD9C,6HAAA,mBAAmB,OAAA;AAErB,kEAIwC;AADtC,6GAAA,WAAW,OAAA;AAEb,oEAIyC;AADvC,+GAAA,YAAY,OAAA;AAEd,8DAIsC;AADpC,yGAAA,SAAS,OAAA;
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/contract.ts"],"names":[],"mappings":";;;AAAA,8FAIsD;AADpD,yIAAA,yBAAyB,OAAA;AAE3B,kFAIgD;AAD9C,6HAAA,mBAAmB,OAAA;AAErB,kEAIwC;AADtC,6GAAA,WAAW,OAAA;AAEb,oEAIyC;AADvC,+GAAA,YAAY,OAAA;AAEd,8DAIsC;AADpC,yGAAA,SAAS,OAAA;AAUX,oEAIyC;AADvC,+GAAA,YAAY,OAAA;AAEd,4EAI6C;AAD3C,uHAAA,gBAAgB,OAAA;AAElB,gFAG+C;AAD7C,2HAAA,kBAAkB,OAAA;AAEpB,wEAI2C;AADzC,mHAAA,cAAc,OAAA;AAEhB,sEAI0C;AADxC,iHAAA,aAAa,OAAA;AAEf,6EAG2C;AADzC,6HAAA,mBAAmB,OAAA;AAErB,yEAIyC;AADvC,yHAAA,iBAAiB,OAAA;AAEnB,mEAIsC;AADpC,mHAAA,cAAc,OAAA;AAEhB,2EAG0C;AADxC,2HAAA,kBAAkB,OAAA;AAEpB,+EAI4C;AAD1C,+HAAA,oBAAoB,OAAA;AAEtB,6EAG2C;AADzC,6HAAA,mBAAmB,OAAA;AAErB,uEAGwC;AADtC,uHAAA,gBAAgB,OAAA;AAElB,yEAGyC;AADvC,yHAAA,iBAAiB,OAAA;AAEnB,yEAGyC;AADvC,yHAAA,iBAAiB,OAAA;AAEnB,2EAG0C;AADxC,2HAAA,kBAAkB,OAAA;AAEpB,+EAG4C;AAD1C,+HAAA,oBAAoB,OAAA;AAEtB,2DAGkC;AADhC,2GAAA,UAAU,OAAA;AAEZ,iFAA4E;AAAnE,iIAAA,qBAAqB,OAAA;AAC9B,iEAA4D;AAAnD,iHAAA,aAAa,OAAA"}
|
package/dist/cjs/errors/abi.js
CHANGED
@@ -187,7 +187,7 @@ class AbiErrorSignatureNotFoundError extends base_js_1.BaseError {
|
|
187
187
|
super([
|
188
188
|
`Encoded error signature "${signature}" not found on ABI.`,
|
189
189
|
'Make sure you are using the correct ABI and that the error exists on it.',
|
190
|
-
`You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`,
|
190
|
+
`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${signature}.`,
|
191
191
|
].join('\n'), {
|
192
192
|
docsPath,
|
193
193
|
});
|
@@ -197,6 +197,13 @@ class AbiErrorSignatureNotFoundError extends base_js_1.BaseError {
|
|
197
197
|
writable: true,
|
198
198
|
value: 'AbiErrorSignatureNotFoundError'
|
199
199
|
});
|
200
|
+
Object.defineProperty(this, "signature", {
|
201
|
+
enumerable: true,
|
202
|
+
configurable: true,
|
203
|
+
writable: true,
|
204
|
+
value: void 0
|
205
|
+
});
|
206
|
+
this.signature = signature;
|
200
207
|
}
|
201
208
|
}
|
202
209
|
exports.AbiErrorSignatureNotFoundError = AbiErrorSignatureNotFoundError;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"abi.js","sourceRoot":"","sources":["../../../src/errors/abi.ts"],"names":[],"mappings":";;;AAGA,oEAA8E;AAC9E,mDAA4C;AAE5C,uCAAqC;AAErC,MAAa,2BAA4B,SAAQ,mBAAS;IAExD,YAAY,EAAE,QAAQ,EAAwB;QAC5C,KAAK,CACH;YACE,yCAAyC;YACzC,gFAAgF;SACjF,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ;YACE,QAAQ;SACT,CACF,CAAA;QAVM;;;;mBAAO,6BAA6B;WAAA;IAW7C,CAAC;CACF;AAbD,kEAaC;AAED,MAAa,iCAAkC,SAAQ,mBAAS;IAE9D,YAAY,EAAE,QAAQ,EAAwB;QAC5C,KAAK,CACH;YACE,kHAAkH;YAClH,qGAAqG;SACtG,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ;YACE,QAAQ;SACT,CACF,CAAA;QAVM;;;;mBAAO,mCAAmC;WAAA;IAWnD,CAAC;CACF;AAbD,8EAaC;AAED,MAAa,+BAAgC,SAAQ,mBAAS;IAE5D,YAAY,EAAE,IAAI,EAAE,IAAI,EAA+B;QACrD,KAAK,CACH;YACE,gBAAgB,IAAI,oBAAoB;YACxC,2DAA2D;SAC5D,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ,EAAE,YAAY,EAAE,CAAC,SAAS,IAAI,KAAK,IAAI,SAAS,CAAC,EAAE,CACpD,CAAA;QARM;;;;mBAAO,iCAAiC;WAAA;IASjD,CAAC;CACF;AAXD,0EAWC;AAED,MAAa,gCAAiC,SAAQ,mBAAS;IAO7D,YAAY,EACV,IAAI,EACJ,MAAM,EACN,IAAI,GACyD;QAC7D,KAAK,CACH,CAAC,gBAAgB,IAAI,2CAA2C,CAAC,CAAC,IAAI,CACp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1D,KAAK,CACH;YACE,SAAS,IAAI,iCAAiC;YAC9C,kCAAkC;SACnC,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ,EAAE,QAAQ,EAAE,CACb,CAAA;QARM;;;;mBAAO,wBAAwB;WAAA;IASxC,CAAC;CACF;AAXD,kEAWC;AAED,MAAa,2BAA4B,SAAQ,mBAAS;IAExD,YAAY,IAAY,EAAE,EAAE,QAAQ,EAAwB;QAC1D,KAAK,CACH;YACE,SAAS,IAAI,iCAAiC;YAC9C,kCAAkC;SACnC,CAAC,IAAI,CAAC,IAAI,CAAC,EACZ,EAAE,QAAQ,EAAE,CACb,CAAA;QARM;;;;mBAAO,wBAAwB;WAAA;IASxC,CAAC;CACF;AAXD,kEAWC;AAED,MAAa,iBAAkB,SAAQ,mBAAS;IAE9C,YAAY,KAAc;QACxB,KAAK,CAAC,CAAC,UAAU,KAAK,yBAAyB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;QAFrD;;;;mBAAO,mBAAmB;WAAA;IAGnC,CAAC;CACF;AALD,8CAKC;AAED,MAAa,0BAA2B,SAAQ,mBAAS;IAEvD,YAAY,IAAY;QACtB,KAAK,CACH;YACE,IAAI,IAAI,mCAAmC;YAC3C,2CAA2C;SAC5C,CAAC,IAAI,CAAC,IAAI,CAAC,CACb,CAAA;QAPM;;;;mBAAO,4BAA4B;WAAA;IAQ5C,CAAC;CACF;AAVD,gEAUC;AAED,MAAa,wBAAyB,SAAQ,mBAAS;IAErD,YAAY,IAAa;QACvB,KAAK,CAAC,SAAS,IAAI,yCAAyC,CAAC,CAAA;QAFtD;;;;mBAAO,0BAA0B;WAAA;IAG1C,CAAC;CACF;AALD,4DAKC"}
|
@@ -9,6 +9,7 @@ const formatAbiItemWithArgs_js_1 = require("../utils/abi/formatAbiItemWithArgs.j
|
|
9
9
|
const getAbiItem_js_1 = require("../utils/abi/getAbiItem.js");
|
10
10
|
const formatEther_js_1 = require("../utils/unit/formatEther.js");
|
11
11
|
const formatGwei_js_1 = require("../utils/unit/formatGwei.js");
|
12
|
+
const abi_js_1 = require("./abi.js");
|
12
13
|
const base_js_1 = require("./base.js");
|
13
14
|
const transaction_js_1 = require("./transaction.js");
|
14
15
|
const utils_js_1 = require("./utils.js");
|
@@ -147,49 +148,65 @@ class ContractFunctionExecutionError extends base_js_1.BaseError {
|
|
147
148
|
exports.ContractFunctionExecutionError = ContractFunctionExecutionError;
|
148
149
|
class ContractFunctionRevertedError extends base_js_1.BaseError {
|
149
150
|
constructor({ abi, data, functionName, message, }) {
|
151
|
+
let cause;
|
150
152
|
let decodedData = undefined;
|
151
153
|
let metaMessages;
|
152
154
|
let reason;
|
153
155
|
if (data && data !== '0x') {
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
156
|
+
try {
|
157
|
+
decodedData = (0, decodeErrorResult_js_1.decodeErrorResult)({ abi, data });
|
158
|
+
const { abiItem, errorName, args: errorArgs } = decodedData;
|
159
|
+
if (errorName === 'Error') {
|
160
|
+
reason = errorArgs[0];
|
161
|
+
}
|
162
|
+
else if (errorName === 'Panic') {
|
163
|
+
const [firstArg] = errorArgs;
|
164
|
+
reason = solidity_js_1.panicReasons[firstArg];
|
165
|
+
}
|
166
|
+
else {
|
167
|
+
const errorWithParams = abiItem
|
168
|
+
? (0, formatAbiItem_js_1.formatAbiItem)(abiItem, { includeName: true })
|
169
|
+
: undefined;
|
170
|
+
const formattedArgs = abiItem && errorArgs
|
171
|
+
? (0, formatAbiItemWithArgs_js_1.formatAbiItemWithArgs)({
|
172
|
+
abiItem,
|
173
|
+
args: errorArgs,
|
174
|
+
includeFunctionName: false,
|
175
|
+
includeName: false,
|
176
|
+
})
|
177
|
+
: undefined;
|
178
|
+
metaMessages = [
|
179
|
+
errorWithParams ? `Error: ${errorWithParams}` : '',
|
180
|
+
formattedArgs && formattedArgs !== '()'
|
181
|
+
? ` ${[...Array(errorName?.length ?? 0).keys()]
|
182
|
+
.map(() => ' ')
|
183
|
+
.join('')}${formattedArgs}`
|
184
|
+
: '',
|
185
|
+
];
|
186
|
+
}
|
158
187
|
}
|
159
|
-
|
160
|
-
|
161
|
-
reason = solidity_js_1.panicReasons[firstArg];
|
162
|
-
}
|
163
|
-
else {
|
164
|
-
const errorWithParams = abiItem
|
165
|
-
? (0, formatAbiItem_js_1.formatAbiItem)(abiItem, { includeName: true })
|
166
|
-
: undefined;
|
167
|
-
const formattedArgs = abiItem && errorArgs
|
168
|
-
? (0, formatAbiItemWithArgs_js_1.formatAbiItemWithArgs)({
|
169
|
-
abiItem,
|
170
|
-
args: errorArgs,
|
171
|
-
includeFunctionName: false,
|
172
|
-
includeName: false,
|
173
|
-
})
|
174
|
-
: undefined;
|
175
|
-
metaMessages = [
|
176
|
-
errorWithParams ? `Error: ${errorWithParams}` : '',
|
177
|
-
formattedArgs && formattedArgs !== '()'
|
178
|
-
? ` ${[...Array(errorName?.length ?? 0).keys()]
|
179
|
-
.map(() => ' ')
|
180
|
-
.join('')}${formattedArgs}`
|
181
|
-
: '',
|
182
|
-
];
|
188
|
+
catch (err) {
|
189
|
+
cause = err;
|
183
190
|
}
|
184
191
|
}
|
185
192
|
else if (message)
|
186
193
|
reason = message;
|
187
|
-
|
194
|
+
let signature;
|
195
|
+
if (cause instanceof abi_js_1.AbiErrorSignatureNotFoundError) {
|
196
|
+
signature = cause.signature;
|
197
|
+
metaMessages = [
|
198
|
+
`Unable to decode signature "${signature}" as it was not found on the provided ABI.`,
|
199
|
+
'Make sure you are using the correct ABI and that the error exists on it.',
|
200
|
+
`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${signature}.`,
|
201
|
+
];
|
202
|
+
}
|
203
|
+
super((reason && reason !== 'execution reverted') || signature
|
188
204
|
? [
|
189
|
-
`The contract function "${functionName}" reverted with the following reason:`,
|
190
|
-
reason,
|
205
|
+
`The contract function "${functionName}" reverted with the following ${signature ? 'signature' : 'reason'}:`,
|
206
|
+
reason || signature,
|
191
207
|
].join('\n')
|
192
208
|
: `The contract function "${functionName}" reverted.`, {
|
209
|
+
cause,
|
193
210
|
metaMessages,
|
194
211
|
});
|
195
212
|
Object.defineProperty(this, "name", {
|
@@ -210,8 +227,15 @@ class ContractFunctionRevertedError extends base_js_1.BaseError {
|
|
210
227
|
writable: true,
|
211
228
|
value: void 0
|
212
229
|
});
|
213
|
-
this
|
230
|
+
Object.defineProperty(this, "signature", {
|
231
|
+
enumerable: true,
|
232
|
+
configurable: true,
|
233
|
+
writable: true,
|
234
|
+
value: void 0
|
235
|
+
});
|
214
236
|
this.data = decodedData;
|
237
|
+
this.reason = reason;
|
238
|
+
this.signature = signature;
|
215
239
|
}
|
216
240
|
}
|
217
241
|
exports.ContractFunctionRevertedError = ContractFunctionRevertedError;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../../src/errors/contract.ts"],"names":[],"mappings":";;;AAEA,uEAAgE;AAEhE,0DAAuD;AAGvD,4EAG0C;AAC1C,oEAA6D;AAC7D,oFAA6E;AAC7E,8DAAuD;AACvD,iEAA0D;AAC1D,+DAAwD;AAExD,uCAAqC;AACrC,qDAA8C;AAC9C,yCAA+C;AAE/C,MAAa,kBAAmB,SAAQ,mBAAS;IAK/C,YACE,KAAgB,EAChB,EACE,OAAO,EAAE,QAAQ,EACjB,QAAQ,EACR,KAAK,EACL,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,EAAE,EACF,KAAK,GACiD;QAExD,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAA,8BAAY,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QAC7D,MAAM,UAAU,GAAG,IAAA,4BAAW,EAAC;YAC7B,IAAI,EAAE,OAAO,EAAE,OAAO;YACtB,EAAE;YACF,KAAK,EACH,OAAO,KAAK,KAAK,WAAW;gBAC5B,GAAG,IAAA,4BAAW,EAAC,KAAK,CAAC,IAAI,KAAK,EAAE,cAAc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ACJ,OAAO,GAC2C;QAClD,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC,CAAA;QATtB;;;;mBAAO,CAAC;WAAA;QACC;;;;mBAAO,kBAAkB;WAAA;QAElC;;;;;WAA2B;QAOzB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IAClB,CAAC;CACF;AAbD,4CAaC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/errors/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../../src/errors/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAA"}
|
package/dist/cjs/index.js
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.
|
5
|
-
exports.
|
6
|
-
exports.
|
7
|
-
exports.
|
3
|
+
exports.maxInt112 = exports.maxInt104 = exports.maxInt96 = exports.maxInt88 = exports.maxInt80 = exports.maxInt72 = exports.maxInt64 = exports.maxInt56 = exports.maxInt48 = exports.maxInt40 = exports.maxInt32 = exports.maxInt24 = exports.maxInt16 = exports.maxInt8 = exports.weiUnits = exports.gweiUnits = exports.etherUnits = exports.zeroAddress = exports.multicall3Abi = exports.webSocket = exports.createWalletClient = exports.createTransport = exports.walletActions = exports.testActions = exports.publicActions = exports.createTestClient = exports.createPublicClient = exports.http = exports.fallback = exports.custom = exports.createClient = exports.getContract = exports.parseAbiParameters = exports.parseAbiParameter = exports.parseAbiItem = exports.parseAbi = exports.UnknownSignatureError = exports.UnknownTypeError = exports.SolidityProtectedKeywordError = exports.InvalidStructSignatureError = exports.InvalidSignatureError = exports.InvalidParenthesisError = exports.InvalidParameterError = exports.InvalidModifierError = exports.InvalidFunctionModifierError = exports.InvalidAbiTypeParameterError = exports.InvalidAbiItemError = exports.InvalidAbiParametersError = exports.InvalidAbiParameterError = exports.CircularReferenceError = void 0;
|
4
|
+
exports.maxUint256 = exports.maxUint248 = exports.maxUint240 = exports.maxUint232 = exports.maxUint224 = exports.maxUint216 = exports.maxUint208 = exports.maxUint200 = exports.maxUint192 = exports.maxUint184 = exports.maxUint176 = exports.maxUint168 = exports.maxUint160 = exports.maxUint152 = exports.maxUint144 = exports.maxUint136 = exports.maxUint128 = exports.maxUint120 = exports.maxUint112 = exports.maxUint104 = exports.maxUint96 = exports.maxUint88 = exports.maxUint80 = exports.maxUint72 = exports.maxUint64 = exports.maxUint56 = exports.maxUint48 = exports.maxUint40 = exports.maxUint32 = exports.maxUint24 = exports.maxUint16 = exports.maxUint8 = exports.maxInt256 = exports.maxInt248 = exports.maxInt240 = exports.maxInt232 = exports.maxInt224 = exports.maxInt216 = exports.maxInt208 = exports.maxInt200 = exports.maxInt192 = exports.maxInt184 = exports.maxInt176 = exports.maxInt168 = exports.maxInt160 = exports.maxInt152 = exports.maxInt144 = exports.maxInt136 = exports.maxInt128 = exports.maxInt120 = void 0;
|
5
|
+
exports.InvalidAbiEncodingTypeError = exports.InvalidAbiDecodingTypeError = exports.DecodeLogTopicsMismatch = exports.AbiFunctionSignatureNotFoundError = exports.AbiFunctionOutputsNotFoundError = exports.AbiFunctionNotFoundError = exports.AbiEventSignatureNotFoundError = exports.AbiEventSignatureEmptyTopicsError = exports.AbiEventNotFoundError = exports.AbiErrorSignatureNotFoundError = exports.AbiErrorNotFoundError = exports.AbiErrorInputsNotFoundError = exports.AbiEncodingLengthMismatchError = exports.AbiEncodingArrayLengthMismatchError = exports.AbiDecodingZeroDataError = exports.AbiDecodingDataSizeInvalidError = exports.AbiConstructorParamsNotFoundError = exports.AbiConstructorNotFoundError = exports.minInt256 = exports.minInt248 = exports.minInt240 = exports.minInt232 = exports.minInt224 = exports.minInt216 = exports.minInt208 = exports.minInt200 = exports.minInt192 = exports.minInt184 = exports.minInt176 = exports.minInt168 = exports.minInt160 = exports.minInt152 = exports.minInt144 = exports.minInt136 = exports.minInt128 = exports.minInt120 = exports.minInt112 = exports.minInt104 = exports.minInt96 = exports.minInt88 = exports.minInt80 = exports.minInt72 = exports.minInt64 = exports.minInt56 = exports.minInt48 = exports.minInt40 = exports.minInt32 = exports.minInt24 = exports.minInt16 = exports.minInt8 = void 0;
|
6
|
+
exports.NonceTooLowError = exports.NonceTooHighError = exports.NonceMaxValueError = exports.IntrinsicGasTooLowError = exports.IntrinsicGasTooHighError = exports.InsufficientFundsError = exports.FeeCapTooLowError = exports.FeeCapTooHighError = exports.ExecutionRevertedError = exports.EstimateGasExecutionError = exports.EnsAvatarUriResolutionError = exports.OffsetOutOfBoundsError = exports.InvalidHexValueError = exports.InvalidHexBooleanError = exports.InvalidBytesBooleanError = exports.DataLengthTooShortError = exports.DataLengthTooLongError = exports.InvalidChainIdError = exports.ClientChainNotConfiguredError = exports.ChainDoesNotSupportContract = exports.UserRejectedRequestError = exports.UnsupportedProviderMethodError = exports.UnknownRpcError = exports.UnauthorizedProviderError = exports.SwitchChainError = exports.TransactionRejectedRpcError = exports.RpcError = exports.ResourceUnavailableRpcError = exports.ResourceNotFoundRpcError = exports.ProviderRpcError = exports.ProviderDisconnectedError = exports.ParseRpcError = exports.MethodNotSupportedRpcError = exports.MethodNotFoundRpcError = exports.LimitExceededRpcError = exports.JsonRpcVersionUnsupportedError = exports.InvalidRequestRpcError = exports.InvalidParamsRpcError = exports.InvalidInputRpcError = exports.InternalRpcError = exports.ChainDisconnectedError = exports.RawContractError = exports.ContractFunctionZeroDataError = exports.ContractFunctionRevertedError = exports.ContractFunctionExecutionError = exports.CallExecutionError = exports.BlockNotFoundError = exports.BaseError = exports.InvalidDefinitionTypeError = exports.InvalidArrayError = void 0;
|
7
|
+
exports.recoverPublicKey = exports.recoverMessageAddress = exports.recoverAddress = exports.hexToSignature = exports.hashTypedData = exports.getTransactionType = exports.getSerializedTransactionType = exports.getCreateAddress = exports.getCreate2Address = exports.getContractAddress = exports.getAbiItem = exports.formatTransactionRequest = exports.defineTransactionRequest = exports.defineTransactionReceipt = exports.transactionType = exports.formatTransaction = exports.defineTransaction = exports.encodeFunctionResult = exports.encodeFunctionData = exports.encodeEventTopics = exports.encodeErrorResult = exports.encodeDeployData = exports.encodeAbiParameters = exports.decodeFunctionResult = exports.decodeFunctionData = exports.decodeEventLog = exports.decodeErrorResult = exports.decodeDeployData = exports.decodeAbiParameters = exports.formatLog = exports.formatBlock = exports.defineBlock = exports.namehash = exports.labelhash = exports.UrlRequiredError = exports.SizeExceedsPaddingSizeError = exports.WaitForTransactionReceiptTimeoutError = exports.TransactionReceiptNotFoundError = exports.TransactionNotFoundError = exports.TransactionExecutionError = exports.InvalidLegacyVError = exports.InvalidAddressError = exports.WebSocketRequestError = exports.TimeoutError = exports.RpcRequestError = exports.HttpRequestError = exports.FilterTypeNotSupportedError = exports.UnknownNodeError = exports.TransactionTypeNotSupportedError = exports.TipAboveFeeCapError = void 0;
|
8
|
+
exports.isAddressEqual = exports.isAddress = exports.hashMessage = exports.getFunctionSelector = exports.getEventSelector = exports.getContractError = exports.getAddress = exports.fromRlp = exports.hexToString = exports.hexToNumber = exports.hexToBool = exports.hexToBigInt = exports.fromHex = exports.formatUnits = exports.formatGwei = exports.formatEther = exports.encodePacked = exports.defineChain = exports.assertCurrentChain = exports.concatHex = exports.concatBytes = exports.concat = exports.offchainLookupSignature = exports.offchainLookupAbiItem = exports.offchainLookup = exports.ccipFetch = exports.fromBytes = exports.bytesToString = exports.bytesToNumber = exports.bytesToBool = exports.bytesToBigint = exports.toHex = exports.stringToHex = exports.numberToHex = exports.bytesToHex = exports.boolToHex = exports.toBytes = exports.stringToBytes = exports.numberToBytes = exports.hexToBytes = exports.boolToBytes = exports.assertTransactionLegacy = exports.assertTransactionEIP2930 = exports.assertTransactionEIP1559 = exports.assertRequest = exports.verifyTypedData = exports.verifyMessage = exports.toRlp = exports.signatureToHex = exports.recoverTypedDataAddress = void 0;
|
9
|
+
exports.validateTypedData = exports.trim = exports.stringify = exports.sliceHex = exports.sliceBytes = exports.slice = exports.size = exports.serializeTransaction = exports.serializeAccessList = exports.prepareRequest = exports.parseUnits = exports.parseTransaction = exports.parseGwei = exports.parseEther = exports.padHex = exports.padBytes = exports.pad = exports.keccak256 = exports.isHex = exports.isHash = exports.isBytes = void 0;
|
8
10
|
var abitype_1 = require("abitype");
|
9
11
|
Object.defineProperty(exports, "CircularReferenceError", { enumerable: true, get: function () { return abitype_1.CircularReferenceError; } });
|
10
12
|
Object.defineProperty(exports, "InvalidAbiParameterError", { enumerable: true, get: function () { return abitype_1.InvalidAbiParameterError; } });
|
@@ -52,12 +54,109 @@ var webSocket_js_1 = require("./clients/transports/webSocket.js");
|
|
52
54
|
Object.defineProperty(exports, "webSocket", { enumerable: true, get: function () { return webSocket_js_1.webSocket; } });
|
53
55
|
var abis_js_1 = require("./constants/abis.js");
|
54
56
|
Object.defineProperty(exports, "multicall3Abi", { enumerable: true, get: function () { return abis_js_1.multicall3Abi; } });
|
57
|
+
var address_js_1 = require("./constants/address.js");
|
58
|
+
Object.defineProperty(exports, "zeroAddress", { enumerable: true, get: function () { return address_js_1.zeroAddress; } });
|
55
59
|
var unit_js_1 = require("./constants/unit.js");
|
56
60
|
Object.defineProperty(exports, "etherUnits", { enumerable: true, get: function () { return unit_js_1.etherUnits; } });
|
57
61
|
Object.defineProperty(exports, "gweiUnits", { enumerable: true, get: function () { return unit_js_1.gweiUnits; } });
|
58
62
|
Object.defineProperty(exports, "weiUnits", { enumerable: true, get: function () { return unit_js_1.weiUnits; } });
|
59
|
-
var
|
60
|
-
Object.defineProperty(exports, "
|
63
|
+
var number_js_1 = require("./constants/number.js");
|
64
|
+
Object.defineProperty(exports, "maxInt8", { enumerable: true, get: function () { return number_js_1.maxInt8; } });
|
65
|
+
Object.defineProperty(exports, "maxInt16", { enumerable: true, get: function () { return number_js_1.maxInt16; } });
|
66
|
+
Object.defineProperty(exports, "maxInt24", { enumerable: true, get: function () { return number_js_1.maxInt24; } });
|
67
|
+
Object.defineProperty(exports, "maxInt32", { enumerable: true, get: function () { return number_js_1.maxInt32; } });
|
68
|
+
Object.defineProperty(exports, "maxInt40", { enumerable: true, get: function () { return number_js_1.maxInt40; } });
|
69
|
+
Object.defineProperty(exports, "maxInt48", { enumerable: true, get: function () { return number_js_1.maxInt48; } });
|
70
|
+
Object.defineProperty(exports, "maxInt56", { enumerable: true, get: function () { return number_js_1.maxInt56; } });
|
71
|
+
Object.defineProperty(exports, "maxInt64", { enumerable: true, get: function () { return number_js_1.maxInt64; } });
|
72
|
+
Object.defineProperty(exports, "maxInt72", { enumerable: true, get: function () { return number_js_1.maxInt72; } });
|
73
|
+
Object.defineProperty(exports, "maxInt80", { enumerable: true, get: function () { return number_js_1.maxInt80; } });
|
74
|
+
Object.defineProperty(exports, "maxInt88", { enumerable: true, get: function () { return number_js_1.maxInt88; } });
|
75
|
+
Object.defineProperty(exports, "maxInt96", { enumerable: true, get: function () { return number_js_1.maxInt96; } });
|
76
|
+
Object.defineProperty(exports, "maxInt104", { enumerable: true, get: function () { return number_js_1.maxInt104; } });
|
77
|
+
Object.defineProperty(exports, "maxInt112", { enumerable: true, get: function () { return number_js_1.maxInt112; } });
|
78
|
+
Object.defineProperty(exports, "maxInt120", { enumerable: true, get: function () { return number_js_1.maxInt120; } });
|
79
|
+
Object.defineProperty(exports, "maxInt128", { enumerable: true, get: function () { return number_js_1.maxInt128; } });
|
80
|
+
Object.defineProperty(exports, "maxInt136", { enumerable: true, get: function () { return number_js_1.maxInt136; } });
|
81
|
+
Object.defineProperty(exports, "maxInt144", { enumerable: true, get: function () { return number_js_1.maxInt144; } });
|
82
|
+
Object.defineProperty(exports, "maxInt152", { enumerable: true, get: function () { return number_js_1.maxInt152; } });
|
83
|
+
Object.defineProperty(exports, "maxInt160", { enumerable: true, get: function () { return number_js_1.maxInt160; } });
|
84
|
+
Object.defineProperty(exports, "maxInt168", { enumerable: true, get: function () { return number_js_1.maxInt168; } });
|
85
|
+
Object.defineProperty(exports, "maxInt176", { enumerable: true, get: function () { return number_js_1.maxInt176; } });
|
86
|
+
Object.defineProperty(exports, "maxInt184", { enumerable: true, get: function () { return number_js_1.maxInt184; } });
|
87
|
+
Object.defineProperty(exports, "maxInt192", { enumerable: true, get: function () { return number_js_1.maxInt192; } });
|
88
|
+
Object.defineProperty(exports, "maxInt200", { enumerable: true, get: function () { return number_js_1.maxInt200; } });
|
89
|
+
Object.defineProperty(exports, "maxInt208", { enumerable: true, get: function () { return number_js_1.maxInt208; } });
|
90
|
+
Object.defineProperty(exports, "maxInt216", { enumerable: true, get: function () { return number_js_1.maxInt216; } });
|
91
|
+
Object.defineProperty(exports, "maxInt224", { enumerable: true, get: function () { return number_js_1.maxInt224; } });
|
92
|
+
Object.defineProperty(exports, "maxInt232", { enumerable: true, get: function () { return number_js_1.maxInt232; } });
|
93
|
+
Object.defineProperty(exports, "maxInt240", { enumerable: true, get: function () { return number_js_1.maxInt240; } });
|
94
|
+
Object.defineProperty(exports, "maxInt248", { enumerable: true, get: function () { return number_js_1.maxInt248; } });
|
95
|
+
Object.defineProperty(exports, "maxInt256", { enumerable: true, get: function () { return number_js_1.maxInt256; } });
|
96
|
+
Object.defineProperty(exports, "maxUint8", { enumerable: true, get: function () { return number_js_1.maxUint8; } });
|
97
|
+
Object.defineProperty(exports, "maxUint16", { enumerable: true, get: function () { return number_js_1.maxUint16; } });
|
98
|
+
Object.defineProperty(exports, "maxUint24", { enumerable: true, get: function () { return number_js_1.maxUint24; } });
|
99
|
+
Object.defineProperty(exports, "maxUint32", { enumerable: true, get: function () { return number_js_1.maxUint32; } });
|
100
|
+
Object.defineProperty(exports, "maxUint40", { enumerable: true, get: function () { return number_js_1.maxUint40; } });
|
101
|
+
Object.defineProperty(exports, "maxUint48", { enumerable: true, get: function () { return number_js_1.maxUint48; } });
|
102
|
+
Object.defineProperty(exports, "maxUint56", { enumerable: true, get: function () { return number_js_1.maxUint56; } });
|
103
|
+
Object.defineProperty(exports, "maxUint64", { enumerable: true, get: function () { return number_js_1.maxUint64; } });
|
104
|
+
Object.defineProperty(exports, "maxUint72", { enumerable: true, get: function () { return number_js_1.maxUint72; } });
|
105
|
+
Object.defineProperty(exports, "maxUint80", { enumerable: true, get: function () { return number_js_1.maxUint80; } });
|
106
|
+
Object.defineProperty(exports, "maxUint88", { enumerable: true, get: function () { return number_js_1.maxUint88; } });
|
107
|
+
Object.defineProperty(exports, "maxUint96", { enumerable: true, get: function () { return number_js_1.maxUint96; } });
|
108
|
+
Object.defineProperty(exports, "maxUint104", { enumerable: true, get: function () { return number_js_1.maxUint104; } });
|
109
|
+
Object.defineProperty(exports, "maxUint112", { enumerable: true, get: function () { return number_js_1.maxUint112; } });
|
110
|
+
Object.defineProperty(exports, "maxUint120", { enumerable: true, get: function () { return number_js_1.maxUint120; } });
|
111
|
+
Object.defineProperty(exports, "maxUint128", { enumerable: true, get: function () { return number_js_1.maxUint128; } });
|
112
|
+
Object.defineProperty(exports, "maxUint136", { enumerable: true, get: function () { return number_js_1.maxUint136; } });
|
113
|
+
Object.defineProperty(exports, "maxUint144", { enumerable: true, get: function () { return number_js_1.maxUint144; } });
|
114
|
+
Object.defineProperty(exports, "maxUint152", { enumerable: true, get: function () { return number_js_1.maxUint152; } });
|
115
|
+
Object.defineProperty(exports, "maxUint160", { enumerable: true, get: function () { return number_js_1.maxUint160; } });
|
116
|
+
Object.defineProperty(exports, "maxUint168", { enumerable: true, get: function () { return number_js_1.maxUint168; } });
|
117
|
+
Object.defineProperty(exports, "maxUint176", { enumerable: true, get: function () { return number_js_1.maxUint176; } });
|
118
|
+
Object.defineProperty(exports, "maxUint184", { enumerable: true, get: function () { return number_js_1.maxUint184; } });
|
119
|
+
Object.defineProperty(exports, "maxUint192", { enumerable: true, get: function () { return number_js_1.maxUint192; } });
|
120
|
+
Object.defineProperty(exports, "maxUint200", { enumerable: true, get: function () { return number_js_1.maxUint200; } });
|
121
|
+
Object.defineProperty(exports, "maxUint208", { enumerable: true, get: function () { return number_js_1.maxUint208; } });
|
122
|
+
Object.defineProperty(exports, "maxUint216", { enumerable: true, get: function () { return number_js_1.maxUint216; } });
|
123
|
+
Object.defineProperty(exports, "maxUint224", { enumerable: true, get: function () { return number_js_1.maxUint224; } });
|
124
|
+
Object.defineProperty(exports, "maxUint232", { enumerable: true, get: function () { return number_js_1.maxUint232; } });
|
125
|
+
Object.defineProperty(exports, "maxUint240", { enumerable: true, get: function () { return number_js_1.maxUint240; } });
|
126
|
+
Object.defineProperty(exports, "maxUint248", { enumerable: true, get: function () { return number_js_1.maxUint248; } });
|
127
|
+
Object.defineProperty(exports, "maxUint256", { enumerable: true, get: function () { return number_js_1.maxUint256; } });
|
128
|
+
Object.defineProperty(exports, "minInt8", { enumerable: true, get: function () { return number_js_1.minInt8; } });
|
129
|
+
Object.defineProperty(exports, "minInt16", { enumerable: true, get: function () { return number_js_1.minInt16; } });
|
130
|
+
Object.defineProperty(exports, "minInt24", { enumerable: true, get: function () { return number_js_1.minInt24; } });
|
131
|
+
Object.defineProperty(exports, "minInt32", { enumerable: true, get: function () { return number_js_1.minInt32; } });
|
132
|
+
Object.defineProperty(exports, "minInt40", { enumerable: true, get: function () { return number_js_1.minInt40; } });
|
133
|
+
Object.defineProperty(exports, "minInt48", { enumerable: true, get: function () { return number_js_1.minInt48; } });
|
134
|
+
Object.defineProperty(exports, "minInt56", { enumerable: true, get: function () { return number_js_1.minInt56; } });
|
135
|
+
Object.defineProperty(exports, "minInt64", { enumerable: true, get: function () { return number_js_1.minInt64; } });
|
136
|
+
Object.defineProperty(exports, "minInt72", { enumerable: true, get: function () { return number_js_1.minInt72; } });
|
137
|
+
Object.defineProperty(exports, "minInt80", { enumerable: true, get: function () { return number_js_1.minInt80; } });
|
138
|
+
Object.defineProperty(exports, "minInt88", { enumerable: true, get: function () { return number_js_1.minInt88; } });
|
139
|
+
Object.defineProperty(exports, "minInt96", { enumerable: true, get: function () { return number_js_1.minInt96; } });
|
140
|
+
Object.defineProperty(exports, "minInt104", { enumerable: true, get: function () { return number_js_1.minInt104; } });
|
141
|
+
Object.defineProperty(exports, "minInt112", { enumerable: true, get: function () { return number_js_1.minInt112; } });
|
142
|
+
Object.defineProperty(exports, "minInt120", { enumerable: true, get: function () { return number_js_1.minInt120; } });
|
143
|
+
Object.defineProperty(exports, "minInt128", { enumerable: true, get: function () { return number_js_1.minInt128; } });
|
144
|
+
Object.defineProperty(exports, "minInt136", { enumerable: true, get: function () { return number_js_1.minInt136; } });
|
145
|
+
Object.defineProperty(exports, "minInt144", { enumerable: true, get: function () { return number_js_1.minInt144; } });
|
146
|
+
Object.defineProperty(exports, "minInt152", { enumerable: true, get: function () { return number_js_1.minInt152; } });
|
147
|
+
Object.defineProperty(exports, "minInt160", { enumerable: true, get: function () { return number_js_1.minInt160; } });
|
148
|
+
Object.defineProperty(exports, "minInt168", { enumerable: true, get: function () { return number_js_1.minInt168; } });
|
149
|
+
Object.defineProperty(exports, "minInt176", { enumerable: true, get: function () { return number_js_1.minInt176; } });
|
150
|
+
Object.defineProperty(exports, "minInt184", { enumerable: true, get: function () { return number_js_1.minInt184; } });
|
151
|
+
Object.defineProperty(exports, "minInt192", { enumerable: true, get: function () { return number_js_1.minInt192; } });
|
152
|
+
Object.defineProperty(exports, "minInt200", { enumerable: true, get: function () { return number_js_1.minInt200; } });
|
153
|
+
Object.defineProperty(exports, "minInt208", { enumerable: true, get: function () { return number_js_1.minInt208; } });
|
154
|
+
Object.defineProperty(exports, "minInt216", { enumerable: true, get: function () { return number_js_1.minInt216; } });
|
155
|
+
Object.defineProperty(exports, "minInt224", { enumerable: true, get: function () { return number_js_1.minInt224; } });
|
156
|
+
Object.defineProperty(exports, "minInt232", { enumerable: true, get: function () { return number_js_1.minInt232; } });
|
157
|
+
Object.defineProperty(exports, "minInt240", { enumerable: true, get: function () { return number_js_1.minInt240; } });
|
158
|
+
Object.defineProperty(exports, "minInt248", { enumerable: true, get: function () { return number_js_1.minInt248; } });
|
159
|
+
Object.defineProperty(exports, "minInt256", { enumerable: true, get: function () { return number_js_1.minInt256; } });
|
61
160
|
var abi_js_1 = require("./errors/abi.js");
|
62
161
|
Object.defineProperty(exports, "AbiConstructorNotFoundError", { enumerable: true, get: function () { return abi_js_1.AbiConstructorNotFoundError; } });
|
63
162
|
Object.defineProperty(exports, "AbiConstructorParamsNotFoundError", { enumerable: true, get: function () { return abi_js_1.AbiConstructorParamsNotFoundError; } });
|
@@ -212,6 +311,8 @@ var getTransactionType_js_1 = require("./utils/transaction/getTransactionType.js
|
|
212
311
|
Object.defineProperty(exports, "getTransactionType", { enumerable: true, get: function () { return getTransactionType_js_1.getTransactionType; } });
|
213
312
|
var hashTypedData_js_1 = require("./utils/signature/hashTypedData.js");
|
214
313
|
Object.defineProperty(exports, "hashTypedData", { enumerable: true, get: function () { return hashTypedData_js_1.hashTypedData; } });
|
314
|
+
var hexToSignature_js_1 = require("./utils/signature/hexToSignature.js");
|
315
|
+
Object.defineProperty(exports, "hexToSignature", { enumerable: true, get: function () { return hexToSignature_js_1.hexToSignature; } });
|
215
316
|
var recoverAddress_js_1 = require("./utils/signature/recoverAddress.js");
|
216
317
|
Object.defineProperty(exports, "recoverAddress", { enumerable: true, get: function () { return recoverAddress_js_1.recoverAddress; } });
|
217
318
|
var recoverMessageAddress_js_1 = require("./utils/signature/recoverMessageAddress.js");
|
@@ -220,6 +321,8 @@ var recoverPublicKey_js_1 = require("./utils/signature/recoverPublicKey.js");
|
|
220
321
|
Object.defineProperty(exports, "recoverPublicKey", { enumerable: true, get: function () { return recoverPublicKey_js_1.recoverPublicKey; } });
|
221
322
|
var recoverTypedDataAddress_js_1 = require("./utils/signature/recoverTypedDataAddress.js");
|
222
323
|
Object.defineProperty(exports, "recoverTypedDataAddress", { enumerable: true, get: function () { return recoverTypedDataAddress_js_1.recoverTypedDataAddress; } });
|
324
|
+
var signatureToHex_js_1 = require("./utils/signature/signatureToHex.js");
|
325
|
+
Object.defineProperty(exports, "signatureToHex", { enumerable: true, get: function () { return signatureToHex_js_1.signatureToHex; } });
|
223
326
|
var toRlp_js_1 = require("./utils/encoding/toRlp.js");
|
224
327
|
Object.defineProperty(exports, "toRlp", { enumerable: true, get: function () { return toRlp_js_1.toRlp; } });
|
225
328
|
var verifyMessage_js_1 = require("./utils/signature/verifyMessage.js");
|