viem 1.6.6 → 1.6.7
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/chains/dist/cjs/celo/formatters.js +58 -0
- package/chains/dist/cjs/celo/parsers.js +72 -0
- package/chains/dist/cjs/celo/serializers.js +75 -0
- package/chains/dist/cjs/celo/types.js +3 -0
- package/chains/dist/cjs/index.js +135 -0
- package/chains/dist/cjs/optimism/fees.js +7 -0
- package/chains/dist/cjs/optimism/formatters.js +52 -0
- package/chains/dist/cjs/optimism/types.js +3 -0
- package/chains/dist/cjs/types.js +3 -0
- package/chains/dist/cjs/utils.js +49 -0
- package/chains/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/cjs/errors/version.js +1 -1
- package/dist/esm/errors/version.js +1 -1
- package/dist/types/abi.d.ts +6 -0
- package/dist/types/abi.d.ts.map +1 -0
- package/dist/types/accounts/generateMnemonic.d.ts +9 -0
- package/dist/types/accounts/generateMnemonic.d.ts.map +1 -0
- package/dist/types/accounts/generatePrivateKey.d.ts +8 -0
- package/dist/types/accounts/generatePrivateKey.d.ts.map +1 -0
- package/dist/types/accounts/hdKeyToAccount.d.ts +9 -0
- package/dist/types/accounts/hdKeyToAccount.d.ts.map +1 -0
- package/dist/types/accounts/index.d.ts +27 -0
- package/dist/types/accounts/index.d.ts.map +1 -0
- package/dist/types/accounts/mnemonicToAccount.d.ts +8 -0
- package/dist/types/accounts/mnemonicToAccount.d.ts.map +1 -0
- package/dist/types/accounts/privateKeyToAccount.d.ts +9 -0
- package/dist/types/accounts/privateKeyToAccount.d.ts.map +1 -0
- package/dist/types/accounts/toAccount.d.ts +11 -0
- package/dist/types/accounts/toAccount.d.ts.map +1 -0
- package/dist/types/accounts/types.d.ts +52 -0
- package/dist/types/accounts/types.d.ts.map +1 -0
- package/dist/types/accounts/utils/parseAccount.d.ts +4 -0
- package/dist/types/accounts/utils/parseAccount.d.ts.map +1 -0
- package/dist/types/accounts/utils/privateKeyToAddress.d.ts +11 -0
- package/dist/types/accounts/utils/privateKeyToAddress.d.ts.map +1 -0
- package/dist/types/accounts/utils/publicKeyToAddress.d.ts +11 -0
- package/dist/types/accounts/utils/publicKeyToAddress.d.ts.map +1 -0
- package/dist/types/accounts/utils/sign.d.ts +16 -0
- package/dist/types/accounts/utils/sign.d.ts.map +1 -0
- package/dist/types/accounts/utils/signMessage.d.ts +16 -0
- package/dist/types/accounts/utils/signMessage.d.ts.map +1 -0
- package/dist/types/accounts/utils/signTransaction.d.ts +12 -0
- package/dist/types/accounts/utils/signTransaction.d.ts.map +1 -0
- package/dist/types/accounts/utils/signTypedData.d.ts +20 -0
- package/dist/types/accounts/utils/signTypedData.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/czech.d.ts +2 -0
- package/dist/types/accounts/wordlists/czech.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/english.d.ts +2 -0
- package/dist/types/accounts/wordlists/english.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/french.d.ts +2 -0
- package/dist/types/accounts/wordlists/french.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/italian.d.ts +2 -0
- package/dist/types/accounts/wordlists/italian.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/japanese.d.ts +2 -0
- package/dist/types/accounts/wordlists/japanese.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/korean.d.ts +2 -0
- package/dist/types/accounts/wordlists/korean.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/simplifiedChinese.d.ts +2 -0
- package/dist/types/accounts/wordlists/simplifiedChinese.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/spanish.d.ts +2 -0
- package/dist/types/accounts/wordlists/spanish.d.ts.map +1 -0
- package/dist/types/accounts/wordlists/traditionalChinese.d.ts +2 -0
- package/dist/types/accounts/wordlists/traditionalChinese.d.ts.map +1 -0
- package/dist/types/actions/ens/getEnsAddress.d.ts +45 -0
- package/dist/types/actions/ens/getEnsAddress.d.ts.map +1 -0
- package/dist/types/actions/ens/getEnsAvatar.d.ts +41 -0
- package/dist/types/actions/ens/getEnsAvatar.d.ts.map +1 -0
- package/dist/types/actions/ens/getEnsName.d.ts +41 -0
- package/dist/types/actions/ens/getEnsName.d.ts.map +1 -0
- package/dist/types/actions/ens/getEnsResolver.d.ts +43 -0
- package/dist/types/actions/ens/getEnsResolver.d.ts.map +1 -0
- package/dist/types/actions/ens/getEnsText.d.ts +46 -0
- package/dist/types/actions/ens/getEnsText.d.ts.map +1 -0
- package/dist/types/actions/getContract.d.ts +314 -0
- package/dist/types/actions/getContract.d.ts.map +1 -0
- package/dist/types/actions/index.d.ts +80 -0
- package/dist/types/actions/index.d.ts.map +1 -0
- package/dist/types/actions/public/call.d.ts +56 -0
- package/dist/types/actions/public/call.d.ts.map +1 -0
- package/dist/types/actions/public/createBlockFilter.d.ts +28 -0
- package/dist/types/actions/public/createBlockFilter.d.ts.map +1 -0
- package/dist/types/actions/public/createContractEventFilter.d.ts +50 -0
- package/dist/types/actions/public/createContractEventFilter.d.ts.map +1 -0
- package/dist/types/actions/public/createEventFilter.d.ts +76 -0
- package/dist/types/actions/public/createEventFilter.d.ts.map +1 -0
- package/dist/types/actions/public/createPendingTransactionFilter.d.ts +28 -0
- package/dist/types/actions/public/createPendingTransactionFilter.d.ts.map +1 -0
- package/dist/types/actions/public/estimateContractGas.d.ts +39 -0
- package/dist/types/actions/public/estimateContractGas.d.ts.map +1 -0
- package/dist/types/actions/public/estimateGas.d.ts +49 -0
- package/dist/types/actions/public/estimateGas.d.ts.map +1 -0
- package/dist/types/actions/public/getBalance.d.ts +55 -0
- package/dist/types/actions/public/getBalance.d.ts.map +1 -0
- package/dist/types/actions/public/getBlock.d.ts +56 -0
- package/dist/types/actions/public/getBlock.d.ts.map +1 -0
- package/dist/types/actions/public/getBlockNumber.d.ts +57 -0
- package/dist/types/actions/public/getBlockNumber.d.ts.map +1 -0
- package/dist/types/actions/public/getBlockTransactionCount.d.ts +47 -0
- package/dist/types/actions/public/getBlockTransactionCount.d.ts.map +1 -0
- package/dist/types/actions/public/getBytecode.d.ts +41 -0
- package/dist/types/actions/public/getBytecode.d.ts.map +1 -0
- package/dist/types/actions/public/getChainId.d.ts +28 -0
- package/dist/types/actions/public/getChainId.d.ts.map +1 -0
- package/dist/types/actions/public/getFeeHistory.d.ts +53 -0
- package/dist/types/actions/public/getFeeHistory.d.ts.map +1 -0
- package/dist/types/actions/public/getFilterChanges.d.ts +96 -0
- package/dist/types/actions/public/getFilterChanges.d.ts.map +1 -0
- package/dist/types/actions/public/getFilterLogs.d.ts +40 -0
- package/dist/types/actions/public/getFilterLogs.d.ts.map +1 -0
- package/dist/types/actions/public/getGasPrice.d.ts +27 -0
- package/dist/types/actions/public/getGasPrice.d.ts.map +1 -0
- package/dist/types/actions/public/getLogs.d.ts +71 -0
- package/dist/types/actions/public/getLogs.d.ts.map +1 -0
- package/dist/types/actions/public/getStorageAt.d.ts +43 -0
- package/dist/types/actions/public/getStorageAt.d.ts.map +1 -0
- package/dist/types/actions/public/getTransaction.d.ts +65 -0
- package/dist/types/actions/public/getTransaction.d.ts.map +1 -0
- package/dist/types/actions/public/getTransactionConfirmations.d.ts +41 -0
- package/dist/types/actions/public/getTransactionConfirmations.d.ts.map +1 -0
- package/dist/types/actions/public/getTransactionCount.d.ts +44 -0
- package/dist/types/actions/public/getTransactionCount.d.ts.map +1 -0
- package/dist/types/actions/public/getTransactionReceipt.d.ts +36 -0
- package/dist/types/actions/public/getTransactionReceipt.d.ts.map +1 -0
- package/dist/types/actions/public/multicall.d.ts +56 -0
- package/dist/types/actions/public/multicall.d.ts.map +1 -0
- package/dist/types/actions/public/readContract.d.ts +41 -0
- package/dist/types/actions/public/readContract.d.ts.map +1 -0
- package/dist/types/actions/public/simulateContract.d.ts +54 -0
- package/dist/types/actions/public/simulateContract.d.ts.map +1 -0
- package/dist/types/actions/public/uninstallFilter.d.ts +34 -0
- package/dist/types/actions/public/uninstallFilter.d.ts.map +1 -0
- package/dist/types/actions/public/verifyHash.d.ts +24 -0
- package/dist/types/actions/public/verifyHash.d.ts.map +1 -0
- package/dist/types/actions/public/verifyMessage.d.ts +28 -0
- package/dist/types/actions/public/verifyMessage.d.ts.map +1 -0
- package/dist/types/actions/public/verifyTypedData.d.ts +27 -0
- package/dist/types/actions/public/verifyTypedData.d.ts.map +1 -0
- package/dist/types/actions/public/waitForTransactionReceipt.d.ts +72 -0
- package/dist/types/actions/public/waitForTransactionReceipt.d.ts.map +1 -0
- package/dist/types/actions/public/watchBlockNumber.d.ts +59 -0
- package/dist/types/actions/public/watchBlockNumber.d.ts.map +1 -0
- package/dist/types/actions/public/watchBlocks.d.ts +67 -0
- package/dist/types/actions/public/watchBlocks.d.ts.map +1 -0
- package/dist/types/actions/public/watchContractEvent.d.ts +89 -0
- package/dist/types/actions/public/watchContractEvent.d.ts.map +1 -0
- package/dist/types/actions/public/watchEvent.d.ts +104 -0
- package/dist/types/actions/public/watchEvent.d.ts.map +1 -0
- package/dist/types/actions/public/watchPendingTransactions.d.ts +74 -0
- package/dist/types/actions/public/watchPendingTransactions.d.ts.map +1 -0
- package/dist/types/actions/test/dropTransaction.d.ts +33 -0
- package/dist/types/actions/test/dropTransaction.d.ts.map +1 -0
- package/dist/types/actions/test/getAutomine.d.ts +27 -0
- package/dist/types/actions/test/getAutomine.d.ts.map +1 -0
- package/dist/types/actions/test/getTxpoolContent.d.ts +34 -0
- package/dist/types/actions/test/getTxpoolContent.d.ts.map +1 -0
- package/dist/types/actions/test/getTxpoolStatus.d.ts +30 -0
- package/dist/types/actions/test/getTxpoolStatus.d.ts.map +1 -0
- package/dist/types/actions/test/impersonateAccount.d.ts +33 -0
- package/dist/types/actions/test/impersonateAccount.d.ts.map +1 -0
- package/dist/types/actions/test/increaseTime.d.ts +32 -0
- package/dist/types/actions/test/increaseTime.d.ts.map +1 -0
- package/dist/types/actions/test/inspectTxpool.d.ts +31 -0
- package/dist/types/actions/test/inspectTxpool.d.ts.map +1 -0
- package/dist/types/actions/test/mine.d.ts +32 -0
- package/dist/types/actions/test/mine.d.ts.map +1 -0
- package/dist/types/actions/test/removeBlockTimestampInterval.d.ts +25 -0
- package/dist/types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -0
- package/dist/types/actions/test/reset.d.ts +32 -0
- package/dist/types/actions/test/reset.d.ts.map +1 -0
- package/dist/types/actions/test/revert.d.ts +31 -0
- package/dist/types/actions/test/revert.d.ts.map +1 -0
- package/dist/types/actions/test/sendUnsignedTransaction.d.ts +35 -0
- package/dist/types/actions/test/sendUnsignedTransaction.d.ts.map +1 -0
- package/dist/types/actions/test/setAutomine.d.ts +25 -0
- package/dist/types/actions/test/setAutomine.d.ts.map +1 -0
- package/dist/types/actions/test/setBalance.d.ts +36 -0
- package/dist/types/actions/test/setBalance.d.ts.map +1 -0
- package/dist/types/actions/test/setBlockGasLimit.d.ts +30 -0
- package/dist/types/actions/test/setBlockGasLimit.d.ts.map +1 -0
- package/dist/types/actions/test/setBlockTimestampInterval.d.ts +30 -0
- package/dist/types/actions/test/setBlockTimestampInterval.d.ts.map +1 -0
- package/dist/types/actions/test/setCode.d.ts +37 -0
- package/dist/types/actions/test/setCode.d.ts.map +1 -0
- package/dist/types/actions/test/setCoinbase.d.ts +33 -0
- package/dist/types/actions/test/setCoinbase.d.ts.map +1 -0
- package/dist/types/actions/test/setIntervalMining.d.ts +30 -0
- package/dist/types/actions/test/setIntervalMining.d.ts.map +1 -0
- package/dist/types/actions/test/setLoggingEnabled.d.ts +25 -0
- package/dist/types/actions/test/setLoggingEnabled.d.ts.map +1 -0
- package/dist/types/actions/test/setMinGasPrice.d.ts +34 -0
- package/dist/types/actions/test/setMinGasPrice.d.ts.map +1 -0
- package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts +32 -0
- package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -0
- package/dist/types/actions/test/setNextBlockTimestamp.d.ts +30 -0
- package/dist/types/actions/test/setNextBlockTimestamp.d.ts.map +1 -0
- package/dist/types/actions/test/setNonce.d.ts +36 -0
- package/dist/types/actions/test/setNonce.d.ts.map +1 -0
- package/dist/types/actions/test/setRpcUrl.d.ts +26 -0
- package/dist/types/actions/test/setRpcUrl.d.ts.map +1 -0
- package/dist/types/actions/test/setStorageAt.d.ts +40 -0
- package/dist/types/actions/test/setStorageAt.d.ts.map +1 -0
- package/dist/types/actions/test/snapshot.d.ts +25 -0
- package/dist/types/actions/test/snapshot.d.ts.map +1 -0
- package/dist/types/actions/test/stopImpersonatingAccount.d.ts +33 -0
- package/dist/types/actions/test/stopImpersonatingAccount.d.ts.map +1 -0
- package/dist/types/actions/wallet/addChain.d.ts +29 -0
- package/dist/types/actions/wallet/addChain.d.ts.map +1 -0
- package/dist/types/actions/wallet/deployContract.d.ts +43 -0
- package/dist/types/actions/wallet/deployContract.d.ts.map +1 -0
- package/dist/types/actions/wallet/getAddresses.d.ts +28 -0
- package/dist/types/actions/wallet/getAddresses.d.ts.map +1 -0
- package/dist/types/actions/wallet/getPermissions.d.ts +28 -0
- package/dist/types/actions/wallet/getPermissions.d.ts.map +1 -0
- package/dist/types/actions/wallet/requestAddresses.d.ts +32 -0
- package/dist/types/actions/wallet/requestAddresses.d.ts.map +1 -0
- package/dist/types/actions/wallet/requestPermissions.d.ts +37 -0
- package/dist/types/actions/wallet/requestPermissions.d.ts.map +1 -0
- package/dist/types/actions/wallet/sendTransaction.d.ts +57 -0
- package/dist/types/actions/wallet/sendTransaction.d.ts.map +1 -0
- package/dist/types/actions/wallet/signMessage.d.ts +58 -0
- package/dist/types/actions/wallet/signMessage.d.ts.map +1 -0
- package/dist/types/actions/wallet/signTypedData.d.ts +114 -0
- package/dist/types/actions/wallet/signTypedData.d.ts.map +1 -0
- package/dist/types/actions/wallet/switchChain.d.ts +30 -0
- package/dist/types/actions/wallet/switchChain.d.ts.map +1 -0
- package/dist/types/actions/wallet/watchAsset.d.ts +37 -0
- package/dist/types/actions/wallet/watchAsset.d.ts.map +1 -0
- package/dist/types/actions/wallet/writeContract.d.ts +68 -0
- package/dist/types/actions/wallet/writeContract.d.ts.map +1 -0
- package/dist/types/chains/celo/formatters.d.ts +195 -0
- package/dist/types/chains/celo/formatters.d.ts.map +1 -0
- package/dist/types/chains/celo/parsers.d.ts +6 -0
- package/dist/types/chains/celo/parsers.d.ts.map +1 -0
- package/dist/types/chains/celo/serializers.d.ts +9 -0
- package/dist/types/chains/celo/serializers.d.ts.map +1 -0
- package/dist/types/chains/celo/types.d.ts +74 -0
- package/dist/types/chains/celo/types.d.ts.map +1 -0
- package/dist/types/chains/index.d.ts +5329 -0
- package/dist/types/chains/index.d.ts.map +1 -0
- package/dist/types/chains/optimism/fees.d.ts +4 -0
- package/dist/types/chains/optimism/fees.d.ts.map +1 -0
- package/dist/types/chains/optimism/formatters.d.ts +299 -0
- package/dist/types/chains/optimism/formatters.d.ts.map +1 -0
- package/dist/types/chains/optimism/types.d.ts +53 -0
- package/dist/types/chains/optimism/types.d.ts.map +1 -0
- package/dist/types/chains/utils.d.ts +7 -0
- package/dist/types/chains/utils.d.ts.map +1 -0
- package/dist/types/clients/createClient.d.ts +79 -0
- package/dist/types/clients/createClient.d.ts.map +1 -0
- package/dist/types/clients/createPublicClient.d.ts +29 -0
- package/dist/types/clients/createPublicClient.d.ts.map +1 -0
- package/dist/types/clients/createTestClient.d.ts +43 -0
- package/dist/types/clients/createTestClient.d.ts.map +1 -0
- package/dist/types/clients/createWalletClient.d.ts +49 -0
- package/dist/types/clients/createWalletClient.d.ts.map +1 -0
- package/dist/types/clients/decorators/public.d.ts +1087 -0
- package/dist/types/clients/decorators/public.d.ts.map +1 -0
- package/dist/types/clients/decorators/test.d.ts +599 -0
- package/dist/types/clients/decorators/test.d.ts.map +1 -0
- package/dist/types/clients/decorators/wallet.d.ts +449 -0
- package/dist/types/clients/decorators/wallet.d.ts.map +1 -0
- package/dist/types/clients/transports/createTransport.d.ts +34 -0
- package/dist/types/clients/transports/createTransport.d.ts.map +1 -0
- package/dist/types/clients/transports/custom.d.ts +21 -0
- package/dist/types/clients/transports/custom.d.ts.map +1 -0
- package/dist/types/clients/transports/fallback.d.ts +75 -0
- package/dist/types/clients/transports/fallback.d.ts.map +1 -0
- package/dist/types/clients/transports/http.d.ts +40 -0
- package/dist/types/clients/transports/http.d.ts.map +1 -0
- package/dist/types/clients/transports/webSocket.d.ts +46 -0
- package/dist/types/clients/transports/webSocket.d.ts.map +1 -0
- package/dist/types/constants/abis.d.ts +165 -0
- package/dist/types/constants/abis.d.ts.map +1 -0
- package/dist/types/constants/address.d.ts +2 -0
- package/dist/types/constants/address.d.ts.map +1 -0
- package/dist/types/constants/contract.d.ts +2 -0
- package/dist/types/constants/contract.d.ts.map +1 -0
- package/dist/types/constants/contracts.d.ts +2 -0
- package/dist/types/constants/contracts.d.ts.map +1 -0
- package/dist/types/constants/number.d.ts +97 -0
- package/dist/types/constants/number.d.ts.map +1 -0
- package/dist/types/constants/solidity.d.ts +15 -0
- package/dist/types/constants/solidity.d.ts.map +1 -0
- package/dist/types/constants/unit.d.ts +13 -0
- package/dist/types/constants/unit.d.ts.map +1 -0
- package/dist/types/contract.d.ts +30 -0
- package/dist/types/contract.d.ts.map +1 -0
- package/dist/types/ens.d.ts +9 -0
- package/dist/types/ens.d.ts.map +1 -0
- package/dist/types/errors/abi.d.ts +169 -0
- package/dist/types/errors/abi.d.ts.map +1 -0
- package/dist/types/errors/account.d.ts +8 -0
- package/dist/types/errors/account.d.ts.map +1 -0
- package/dist/types/errors/address.d.ts +8 -0
- package/dist/types/errors/address.d.ts.map +1 -0
- package/dist/types/errors/base.d.ts +24 -0
- package/dist/types/errors/base.d.ts.map +1 -0
- package/dist/types/errors/block.d.ts +10 -0
- package/dist/types/errors/block.d.ts.map +1 -0
- package/dist/types/errors/ccip.d.ts +29 -0
- package/dist/types/errors/ccip.d.ts.map +1 -0
- package/dist/types/errors/chain.d.ts +35 -0
- package/dist/types/errors/chain.d.ts.map +1 -0
- package/dist/types/errors/contract.d.ts +64 -0
- package/dist/types/errors/contract.d.ts.map +1 -0
- package/dist/types/errors/data.d.ts +18 -0
- package/dist/types/errors/data.d.ts.map +1 -0
- package/dist/types/errors/encoding.d.ts +53 -0
- package/dist/types/errors/encoding.d.ts.map +1 -0
- package/dist/types/errors/ens.d.ts +26 -0
- package/dist/types/errors/ens.d.ts.map +1 -0
- package/dist/types/errors/estimateGas.d.ts +14 -0
- package/dist/types/errors/estimateGas.d.ts.map +1 -0
- package/dist/types/errors/log.d.ts +6 -0
- package/dist/types/errors/log.d.ts.map +1 -0
- package/dist/types/errors/node.d.ts +105 -0
- package/dist/types/errors/node.d.ts.map +1 -0
- package/dist/types/errors/request.d.ts +61 -0
- package/dist/types/errors/request.d.ts.map +1 -0
- package/dist/types/errors/rpc.d.ts +221 -0
- package/dist/types/errors/rpc.d.ts.map +1 -0
- package/dist/types/errors/transaction.d.ts +79 -0
- package/dist/types/errors/transaction.d.ts.map +1 -0
- package/dist/types/errors/transport.d.ts +5 -0
- package/dist/types/errors/transport.d.ts.map +1 -0
- package/dist/types/errors/utils.d.ts +5 -0
- package/dist/types/errors/utils.d.ts.map +1 -0
- package/dist/types/errors/version.d.ts +2 -0
- package/dist/types/errors/version.d.ts.map +1 -0
- package/dist/types/index.d.ts +211 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/public.d.ts +31 -0
- package/dist/types/public.d.ts.map +1 -0
- package/dist/types/test.d.ts +29 -0
- package/dist/types/test.d.ts.map +1 -0
- package/dist/types/types/account.d.ts +12 -0
- package/dist/types/types/account.d.ts.map +1 -0
- package/dist/types/types/block.d.ts +62 -0
- package/dist/types/types/block.d.ts.map +1 -0
- package/dist/types/types/chain.d.ts +62 -0
- package/dist/types/types/chain.d.ts.map +1 -0
- package/dist/types/types/contract.d.ts +138 -0
- package/dist/types/types/contract.d.ts.map +1 -0
- package/dist/types/types/eip1193.d.ts +1216 -0
- package/dist/types/types/eip1193.d.ts.map +1 -0
- package/dist/types/types/ens.d.ts +5 -0
- package/dist/types/types/ens.d.ts.map +1 -0
- package/dist/types/types/fee.d.ts +29 -0
- package/dist/types/types/fee.d.ts.map +1 -0
- package/dist/types/types/filter.d.ts +40 -0
- package/dist/types/types/filter.d.ts.map +1 -0
- package/dist/types/types/log.d.ts +55 -0
- package/dist/types/types/log.d.ts.map +1 -0
- package/dist/types/types/misc.d.ts +14 -0
- package/dist/types/types/misc.d.ts.map +1 -0
- package/dist/types/types/multicall.d.ts +48 -0
- package/dist/types/types/multicall.d.ts.map +1 -0
- package/dist/types/types/rpc.d.ts +20 -0
- package/dist/types/types/rpc.d.ts.map +1 -0
- package/dist/types/types/transaction.d.ts +147 -0
- package/dist/types/types/transaction.d.ts.map +1 -0
- package/dist/types/types/transport.d.ts +3 -0
- package/dist/types/types/transport.d.ts.map +1 -0
- package/dist/types/types/typedData.d.ts +47 -0
- package/dist/types/types/typedData.d.ts.map +1 -0
- package/dist/types/types/utils.d.ts +188 -0
- package/dist/types/types/utils.d.ts.map +1 -0
- package/dist/types/types/window.d.ts +7 -0
- package/dist/types/types/window.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeAbiParameters.d.ts +5 -0
- package/dist/types/utils/abi/decodeAbiParameters.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeDeployData.d.ts +13 -0
- package/dist/types/utils/abi/decodeDeployData.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeErrorResult.d.ts +16 -0
- package/dist/types/utils/abi/decodeErrorResult.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeEventLog.d.ts +20 -0
- package/dist/types/utils/abi/decodeEventLog.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeFunctionData.d.ts +15 -0
- package/dist/types/utils/abi/decodeFunctionData.d.ts.map +1 -0
- package/dist/types/utils/abi/decodeFunctionResult.d.ts +14 -0
- package/dist/types/utils/abi/decodeFunctionResult.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeAbiParameters.d.ts +9 -0
- package/dist/types/utils/abi/encodeAbiParameters.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeDeployData.d.ts +9 -0
- package/dist/types/utils/abi/encodeDeployData.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeErrorResult.d.ts +11 -0
- package/dist/types/utils/abi/encodeErrorResult.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeEventTopics.d.ts +13 -0
- package/dist/types/utils/abi/encodeEventTopics.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeFunctionData.d.ts +11 -0
- package/dist/types/utils/abi/encodeFunctionData.d.ts.map +1 -0
- package/dist/types/utils/abi/encodeFunctionResult.d.ts +13 -0
- package/dist/types/utils/abi/encodeFunctionResult.d.ts.map +1 -0
- package/dist/types/utils/abi/encodePacked.d.ts +11 -0
- package/dist/types/utils/abi/encodePacked.d.ts.map +1 -0
- package/dist/types/utils/abi/formatAbiItem.d.ts +9 -0
- package/dist/types/utils/abi/formatAbiItem.d.ts.map +1 -0
- package/dist/types/utils/abi/formatAbiItemWithArgs.d.ts +8 -0
- package/dist/types/utils/abi/formatAbiItemWithArgs.d.ts.map +1 -0
- package/dist/types/utils/abi/getAbiItem.d.ts +12 -0
- package/dist/types/utils/abi/getAbiItem.d.ts.map +1 -0
- package/dist/types/utils/accounts.d.ts +3 -0
- package/dist/types/utils/accounts.d.ts.map +1 -0
- package/dist/types/utils/address/getAddress.d.ts +4 -0
- package/dist/types/utils/address/getAddress.d.ts.map +1 -0
- package/dist/types/utils/address/getContractAddress.d.ts +20 -0
- package/dist/types/utils/address/getContractAddress.d.ts.map +1 -0
- package/dist/types/utils/address/isAddress.d.ts +3 -0
- package/dist/types/utils/address/isAddress.d.ts.map +1 -0
- package/dist/types/utils/address/isAddressEqual.d.ts +3 -0
- package/dist/types/utils/address/isAddressEqual.d.ts.map +1 -0
- package/dist/types/utils/buildRequest.d.ts +6 -0
- package/dist/types/utils/buildRequest.d.ts.map +1 -0
- package/dist/types/utils/ccip.d.ts +37 -0
- package/dist/types/utils/ccip.d.ts.map +1 -0
- package/dist/types/utils/chain.d.ts +14 -0
- package/dist/types/utils/chain.d.ts.map +1 -0
- package/dist/types/utils/contract/extractFunctionParts.d.ts +13 -0
- package/dist/types/utils/contract/extractFunctionParts.d.ts.map +1 -0
- package/dist/types/utils/data/concat.d.ts +6 -0
- package/dist/types/utils/data/concat.d.ts.map +1 -0
- package/dist/types/utils/data/isBytes.d.ts +3 -0
- package/dist/types/utils/data/isBytes.d.ts.map +1 -0
- package/dist/types/utils/data/isBytesEqual.d.ts +3 -0
- package/dist/types/utils/data/isBytesEqual.d.ts.map +1 -0
- package/dist/types/utils/data/isHex.d.ts +5 -0
- package/dist/types/utils/data/isHex.d.ts.map +1 -0
- package/dist/types/utils/data/pad.d.ts +11 -0
- package/dist/types/utils/data/pad.d.ts.map +1 -0
- package/dist/types/utils/data/size.d.ts +9 -0
- package/dist/types/utils/data/size.d.ts.map +1 -0
- package/dist/types/utils/data/slice.d.ts +33 -0
- package/dist/types/utils/data/slice.d.ts.map +1 -0
- package/dist/types/utils/data/trim.d.ts +8 -0
- package/dist/types/utils/data/trim.d.ts.map +1 -0
- package/dist/types/utils/encoding/fromBytes.d.ts +109 -0
- package/dist/types/utils/encoding/fromBytes.d.ts.map +1 -0
- package/dist/types/utils/encoding/fromHex.d.ts +138 -0
- package/dist/types/utils/encoding/fromHex.d.ts.map +1 -0
- package/dist/types/utils/encoding/fromRlp.d.ts +6 -0
- package/dist/types/utils/encoding/fromRlp.d.ts.map +1 -0
- package/dist/types/utils/encoding/toBytes.d.ts +125 -0
- package/dist/types/utils/encoding/toBytes.d.ts.map +1 -0
- package/dist/types/utils/encoding/toHex.d.ts +139 -0
- package/dist/types/utils/encoding/toHex.d.ts.map +1 -0
- package/dist/types/utils/encoding/toRlp.d.ts +8 -0
- package/dist/types/utils/encoding/toRlp.d.ts.map +1 -0
- package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts +9 -0
- package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -0
- package/dist/types/utils/ens/avatar/utils.d.ts +37 -0
- package/dist/types/utils/ens/avatar/utils.d.ts.map +1 -0
- package/dist/types/utils/ens/encodeLabelhash.d.ts +3 -0
- package/dist/types/utils/ens/encodeLabelhash.d.ts.map +1 -0
- package/dist/types/utils/ens/encodedLabelToLabelhash.d.ts +3 -0
- package/dist/types/utils/ens/encodedLabelToLabelhash.d.ts.map +1 -0
- package/dist/types/utils/ens/errors.d.ts +2 -0
- package/dist/types/utils/ens/errors.d.ts.map +1 -0
- package/dist/types/utils/ens/labelhash.d.ts +11 -0
- package/dist/types/utils/ens/labelhash.d.ts.map +1 -0
- package/dist/types/utils/ens/namehash.d.ts +13 -0
- package/dist/types/utils/ens/namehash.d.ts.map +1 -0
- package/dist/types/utils/ens/normalize.d.ts +12 -0
- package/dist/types/utils/ens/normalize.d.ts.map +1 -0
- package/dist/types/utils/ens/packetToBytes.d.ts +3 -0
- package/dist/types/utils/ens/packetToBytes.d.ts.map +1 -0
- package/dist/types/utils/errors/getCallError.d.ts +9 -0
- package/dist/types/utils/errors/getCallError.d.ts.map +1 -0
- package/dist/types/utils/errors/getContractError.d.ts +12 -0
- package/dist/types/utils/errors/getContractError.d.ts.map +1 -0
- package/dist/types/utils/errors/getEstimateGasError.d.ts +11 -0
- package/dist/types/utils/errors/getEstimateGasError.d.ts.map +1 -0
- package/dist/types/utils/errors/getNodeError.d.ts +7 -0
- package/dist/types/utils/errors/getNodeError.d.ts.map +1 -0
- package/dist/types/utils/errors/getTransactionError.d.ts +12 -0
- package/dist/types/utils/errors/getTransactionError.d.ts.map +1 -0
- package/dist/types/utils/filters/createFilterRequestScope.d.ts +22 -0
- package/dist/types/utils/filters/createFilterRequestScope.d.ts.map +1 -0
- package/dist/types/utils/formatters/block.d.ts +28 -0
- package/dist/types/utils/formatters/block.d.ts.map +1 -0
- package/dist/types/utils/formatters/extract.d.ts +8 -0
- package/dist/types/utils/formatters/extract.d.ts.map +1 -0
- package/dist/types/utils/formatters/feeHistory.d.ts +4 -0
- package/dist/types/utils/formatters/feeHistory.d.ts.map +1 -0
- package/dist/types/utils/formatters/formatter.d.ts +10 -0
- package/dist/types/utils/formatters/formatter.d.ts.map +1 -0
- package/dist/types/utils/formatters/log.d.ts +7 -0
- package/dist/types/utils/formatters/log.d.ts.map +1 -0
- package/dist/types/utils/formatters/transaction.d.ts +30 -0
- package/dist/types/utils/formatters/transaction.d.ts.map +1 -0
- package/dist/types/utils/formatters/transactionReceipt.d.ts +14 -0
- package/dist/types/utils/formatters/transactionReceipt.d.ts.map +1 -0
- package/dist/types/utils/formatters/transactionRequest.d.ts +14 -0
- package/dist/types/utils/formatters/transactionRequest.d.ts.map +1 -0
- package/dist/types/utils/hash/getEventSelector.d.ts +4 -0
- package/dist/types/utils/hash/getEventSelector.d.ts.map +1 -0
- package/dist/types/utils/hash/getFunctionSelector.d.ts +3 -0
- package/dist/types/utils/hash/getFunctionSelector.d.ts.map +1 -0
- package/dist/types/utils/hash/hashFunction.d.ts +4 -0
- package/dist/types/utils/hash/hashFunction.d.ts.map +1 -0
- package/dist/types/utils/hash/isHash.d.ts +3 -0
- package/dist/types/utils/hash/isHash.d.ts.map +1 -0
- package/dist/types/utils/hash/keccak256.d.ts +6 -0
- package/dist/types/utils/hash/keccak256.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +82 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/observe.d.ts +17 -0
- package/dist/types/utils/observe.d.ts.map +1 -0
- package/dist/types/utils/poll.d.ts +13 -0
- package/dist/types/utils/poll.d.ts.map +1 -0
- package/dist/types/utils/promise/createBatchScheduler.d.ts +17 -0
- package/dist/types/utils/promise/createBatchScheduler.d.ts.map +1 -0
- package/dist/types/utils/promise/withCache.d.ts +36 -0
- package/dist/types/utils/promise/withCache.d.ts.map +1 -0
- package/dist/types/utils/promise/withRetry.d.ts +12 -0
- package/dist/types/utils/promise/withRetry.d.ts.map +1 -0
- package/dist/types/utils/promise/withTimeout.d.ts +8 -0
- package/dist/types/utils/promise/withTimeout.d.ts.map +1 -0
- package/dist/types/utils/regex.d.ts +4 -0
- package/dist/types/utils/regex.d.ts.map +1 -0
- package/dist/types/utils/rpc.d.ts +72 -0
- package/dist/types/utils/rpc.d.ts.map +1 -0
- package/dist/types/utils/signature/hashMessage.d.ts +6 -0
- package/dist/types/utils/signature/hashMessage.d.ts.map +1 -0
- package/dist/types/utils/signature/hashTypedData.d.ts +11 -0
- package/dist/types/utils/signature/hashTypedData.d.ts.map +1 -0
- 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/recoverAddress.d.ts +9 -0
- package/dist/types/utils/signature/recoverAddress.d.ts.map +1 -0
- package/dist/types/utils/signature/recoverMessageAddress.d.ts +9 -0
- package/dist/types/utils/signature/recoverMessageAddress.d.ts.map +1 -0
- package/dist/types/utils/signature/recoverPublicKey.d.ts +8 -0
- package/dist/types/utils/signature/recoverPublicKey.d.ts.map +1 -0
- package/dist/types/utils/signature/recoverTypedDataAddress.d.ts +13 -0
- package/dist/types/utils/signature/recoverTypedDataAddress.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/signature/verifyMessage.d.ts +25 -0
- package/dist/types/utils/signature/verifyMessage.d.ts.map +1 -0
- package/dist/types/utils/signature/verifyTypedData.d.ts +28 -0
- package/dist/types/utils/signature/verifyTypedData.d.ts.map +1 -0
- package/dist/types/utils/stringify.d.ts +2 -0
- package/dist/types/utils/stringify.d.ts.map +1 -0
- package/dist/types/utils/transaction/assertRequest.d.ts +5 -0
- package/dist/types/utils/transaction/assertRequest.d.ts.map +1 -0
- package/dist/types/utils/transaction/assertTransaction.d.ts +5 -0
- package/dist/types/utils/transaction/assertTransaction.d.ts.map +1 -0
- package/dist/types/utils/transaction/getSerializedTransactionType.d.ts +4 -0
- package/dist/types/utils/transaction/getSerializedTransactionType.d.ts.map +1 -0
- package/dist/types/utils/transaction/getTransactionType.d.ts +4 -0
- package/dist/types/utils/transaction/getTransactionType.d.ts.map +1 -0
- package/dist/types/utils/transaction/parseTransaction.d.ts +9 -0
- package/dist/types/utils/transaction/parseTransaction.d.ts.map +1 -0
- package/dist/types/utils/transaction/prepareRequest.d.ts +20 -0
- package/dist/types/utils/transaction/prepareRequest.d.ts.map +1 -0
- package/dist/types/utils/transaction/serializeAccessList.d.ts +5 -0
- package/dist/types/utils/transaction/serializeAccessList.d.ts.map +1 -0
- package/dist/types/utils/transaction/serializeTransaction.d.ts +7 -0
- package/dist/types/utils/transaction/serializeTransaction.d.ts.map +1 -0
- package/dist/types/utils/typedData.d.ts +6 -0
- package/dist/types/utils/typedData.d.ts.map +1 -0
- package/dist/types/utils/uid.d.ts +2 -0
- package/dist/types/utils/uid.d.ts.map +1 -0
- package/dist/types/utils/unit/formatEther.d.ts +2 -0
- package/dist/types/utils/unit/formatEther.d.ts.map +1 -0
- package/dist/types/utils/unit/formatGwei.d.ts +2 -0
- package/dist/types/utils/unit/formatGwei.d.ts.map +1 -0
- package/dist/types/utils/unit/formatUnits.d.ts +2 -0
- package/dist/types/utils/unit/formatUnits.d.ts.map +1 -0
- package/dist/types/utils/unit/parseEther.d.ts +2 -0
- package/dist/types/utils/unit/parseEther.d.ts.map +1 -0
- package/dist/types/utils/unit/parseGwei.d.ts +2 -0
- package/dist/types/utils/unit/parseGwei.d.ts.map +1 -0
- package/dist/types/utils/unit/parseUnits.d.ts +2 -0
- package/dist/types/utils/unit/parseUnits.d.ts.map +1 -0
- package/dist/types/utils/wait.d.ts +2 -0
- package/dist/types/utils/wait.d.ts.map +1 -0
- package/dist/types/wallet.d.ts +11 -0
- package/dist/types/wallet.d.ts.map +1 -0
- package/dist/types/window.d.ts +2 -0
- package/dist/types/window.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/errors/version.ts +1 -1
@@ -0,0 +1,58 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.formattersCelo = void 0;
|
4
|
+
const viem_1 = require("viem");
|
5
|
+
const utils_js_1 = require("../utils.js");
|
6
|
+
exports.formattersCelo = {
|
7
|
+
block: (0, utils_js_1.defineBlock)({
|
8
|
+
exclude: ['difficulty', 'gasLimit', 'mixHash', 'nonce', 'uncles'],
|
9
|
+
format(args) {
|
10
|
+
const transactions = args.transactions?.map((transaction) => {
|
11
|
+
if (typeof transaction === 'string')
|
12
|
+
return transaction;
|
13
|
+
return {
|
14
|
+
...(0, viem_1.formatTransaction)(transaction),
|
15
|
+
feeCurrency: transaction.feeCurrency,
|
16
|
+
gatewayFee: transaction.gatewayFee
|
17
|
+
? (0, viem_1.hexToBigInt)(transaction.gatewayFee)
|
18
|
+
: null,
|
19
|
+
gatewayFeeRecipient: transaction.gatewayFeeRecipient,
|
20
|
+
};
|
21
|
+
});
|
22
|
+
return {
|
23
|
+
randomness: args.randomness,
|
24
|
+
transactions,
|
25
|
+
};
|
26
|
+
},
|
27
|
+
}),
|
28
|
+
transaction: (0, utils_js_1.defineTransaction)({
|
29
|
+
format(args) {
|
30
|
+
return {
|
31
|
+
feeCurrency: args.feeCurrency,
|
32
|
+
gatewayFee: args.gatewayFee ? (0, viem_1.hexToBigInt)(args.gatewayFee) : null,
|
33
|
+
gatewayFeeRecipient: args.gatewayFeeRecipient,
|
34
|
+
};
|
35
|
+
},
|
36
|
+
}),
|
37
|
+
transactionReceipt: (0, utils_js_1.defineTransactionReceipt)({
|
38
|
+
format(args) {
|
39
|
+
return {
|
40
|
+
feeCurrency: args.feeCurrency,
|
41
|
+
gatewayFee: args.gatewayFee ? (0, viem_1.hexToBigInt)(args.gatewayFee) : null,
|
42
|
+
gatewayFeeRecipient: args.gatewayFeeRecipient,
|
43
|
+
};
|
44
|
+
},
|
45
|
+
}),
|
46
|
+
transactionRequest: (0, utils_js_1.defineTransactionRequest)({
|
47
|
+
format(args) {
|
48
|
+
return {
|
49
|
+
feeCurrency: args.feeCurrency,
|
50
|
+
gatewayFee: typeof args.gatewayFee !== 'undefined'
|
51
|
+
? (0, viem_1.numberToHex)(args.gatewayFee)
|
52
|
+
: undefined,
|
53
|
+
gatewayFeeRecipient: args.gatewayFeeRecipient,
|
54
|
+
};
|
55
|
+
},
|
56
|
+
}),
|
57
|
+
};
|
58
|
+
//# sourceMappingURL=formatters.js.map
|
@@ -0,0 +1,72 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.parseTransactionCelo = void 0;
|
4
|
+
const viem_1 = require("viem");
|
5
|
+
const serializers_js_1 = require("./serializers.js");
|
6
|
+
function parseTransactionCelo(serializedTransaction) {
|
7
|
+
const serializedType = (0, viem_1.sliceHex)(serializedTransaction, 0, 1);
|
8
|
+
if (serializedType === '0x7c')
|
9
|
+
return parseTransactionCIP42(serializedTransaction);
|
10
|
+
return (0, viem_1.parseTransaction)(serializedTransaction);
|
11
|
+
}
|
12
|
+
exports.parseTransactionCelo = parseTransactionCelo;
|
13
|
+
function parseTransactionCIP42(serializedTransaction) {
|
14
|
+
const transactionArray = (0, viem_1.toTransactionArray)(serializedTransaction);
|
15
|
+
const [chainId, nonce, maxPriorityFeePerGas, maxFeePerGas, gas, feeCurrency, gatewayFeeRecipient, gatewayFee, to, value, data, accessList, v, r, s,] = transactionArray;
|
16
|
+
if (transactionArray.length !== 15 && transactionArray.length !== 12) {
|
17
|
+
throw new viem_1.InvalidSerializedTransactionError({
|
18
|
+
attributes: {
|
19
|
+
chainId,
|
20
|
+
nonce,
|
21
|
+
maxPriorityFeePerGas,
|
22
|
+
maxFeePerGas,
|
23
|
+
gas,
|
24
|
+
feeCurrency,
|
25
|
+
to,
|
26
|
+
gatewayFeeRecipient,
|
27
|
+
gatewayFee,
|
28
|
+
value,
|
29
|
+
data,
|
30
|
+
accessList,
|
31
|
+
...(transactionArray.length > 12
|
32
|
+
? {
|
33
|
+
v,
|
34
|
+
r,
|
35
|
+
s,
|
36
|
+
}
|
37
|
+
: {}),
|
38
|
+
},
|
39
|
+
serializedTransaction,
|
40
|
+
type: 'cip42',
|
41
|
+
});
|
42
|
+
}
|
43
|
+
const transaction = {
|
44
|
+
chainId: (0, viem_1.hexToNumber)(chainId),
|
45
|
+
type: 'cip42',
|
46
|
+
};
|
47
|
+
if ((0, viem_1.isHex)(to) && to !== '0x')
|
48
|
+
transaction.to = to;
|
49
|
+
if ((0, viem_1.isHex)(gas) && gas !== '0x')
|
50
|
+
transaction.gas = (0, viem_1.hexToBigInt)(gas);
|
51
|
+
if ((0, viem_1.isHex)(data) && data !== '0x')
|
52
|
+
transaction.data = data;
|
53
|
+
if ((0, viem_1.isHex)(nonce) && nonce !== '0x')
|
54
|
+
transaction.nonce = (0, viem_1.hexToNumber)(nonce);
|
55
|
+
if ((0, viem_1.isHex)(value) && value !== '0x')
|
56
|
+
transaction.value = (0, viem_1.hexToBigInt)(value);
|
57
|
+
if ((0, viem_1.isHex)(feeCurrency) && feeCurrency !== '0x')
|
58
|
+
transaction.feeCurrency = feeCurrency;
|
59
|
+
if ((0, viem_1.isHex)(gatewayFeeRecipient) && gatewayFeeRecipient !== '0x')
|
60
|
+
transaction.gatewayFeeRecipient = gatewayFeeRecipient;
|
61
|
+
if ((0, viem_1.isHex)(gatewayFee) && gatewayFee !== '0x')
|
62
|
+
transaction.gatewayFee = (0, viem_1.hexToBigInt)(gatewayFee);
|
63
|
+
if ((0, viem_1.isHex)(maxFeePerGas) && maxFeePerGas !== '0x')
|
64
|
+
transaction.maxFeePerGas = (0, viem_1.hexToBigInt)(maxFeePerGas);
|
65
|
+
if ((0, viem_1.isHex)(maxPriorityFeePerGas) && maxPriorityFeePerGas !== '0x')
|
66
|
+
transaction.maxPriorityFeePerGas = (0, viem_1.hexToBigInt)(maxPriorityFeePerGas);
|
67
|
+
if (accessList.length !== 0 && accessList !== '0x')
|
68
|
+
transaction.accessList = (0, viem_1.parseAccessList)(accessList);
|
69
|
+
(0, serializers_js_1.assertTransactionCIP42)(transaction);
|
70
|
+
return transaction;
|
71
|
+
}
|
72
|
+
//# sourceMappingURL=parsers.js.map
|
@@ -0,0 +1,75 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.assertTransactionCIP42 = exports.serializersCelo = exports.serializeTransactionCelo = void 0;
|
4
|
+
const viem_1 = require("viem");
|
5
|
+
const serializeTransactionCelo = (tx, signature) => {
|
6
|
+
if (isCIP42(tx))
|
7
|
+
return serializeTransactionCIP42(tx, signature);
|
8
|
+
return (0, viem_1.serializeTransaction)(tx, signature);
|
9
|
+
};
|
10
|
+
exports.serializeTransactionCelo = serializeTransactionCelo;
|
11
|
+
exports.serializersCelo = {
|
12
|
+
transaction: exports.serializeTransactionCelo,
|
13
|
+
};
|
14
|
+
function serializeTransactionCIP42(transaction, signature) {
|
15
|
+
assertTransactionCIP42(transaction);
|
16
|
+
const { chainId, gas, nonce, to, value, maxFeePerGas, maxPriorityFeePerGas, accessList, feeCurrency, gatewayFeeRecipient, gatewayFee, data, } = transaction;
|
17
|
+
const serializedTransaction = [
|
18
|
+
(0, viem_1.toHex)(chainId),
|
19
|
+
nonce ? (0, viem_1.toHex)(nonce) : '0x',
|
20
|
+
maxPriorityFeePerGas ? (0, viem_1.toHex)(maxPriorityFeePerGas) : '0x',
|
21
|
+
maxFeePerGas ? (0, viem_1.toHex)(maxFeePerGas) : '0x',
|
22
|
+
gas ? (0, viem_1.toHex)(gas) : '0x',
|
23
|
+
feeCurrency ?? '0x',
|
24
|
+
gatewayFeeRecipient ?? '0x',
|
25
|
+
gatewayFee ? (0, viem_1.toHex)(gatewayFee) : '0x',
|
26
|
+
to ?? '0x',
|
27
|
+
value ? (0, viem_1.toHex)(value) : '0x',
|
28
|
+
data ?? '0x',
|
29
|
+
(0, viem_1.serializeAccessList)(accessList),
|
30
|
+
];
|
31
|
+
if (signature) {
|
32
|
+
serializedTransaction.push(signature.v === 27n ? '0x' : (0, viem_1.toHex)(1), (0, viem_1.trim)(signature.r), (0, viem_1.trim)(signature.s));
|
33
|
+
}
|
34
|
+
return (0, viem_1.concatHex)([
|
35
|
+
'0x7c',
|
36
|
+
(0, viem_1.toRlp)(serializedTransaction),
|
37
|
+
]);
|
38
|
+
}
|
39
|
+
function isCIP42(transaction) {
|
40
|
+
if ('maxFeePerGas' in transaction &&
|
41
|
+
'maxPriorityFeePerGas' in transaction &&
|
42
|
+
('feeCurrency' in transaction ||
|
43
|
+
'gatewayFee' in transaction ||
|
44
|
+
'gatewayFeeRecipient' in transaction))
|
45
|
+
return true;
|
46
|
+
return false;
|
47
|
+
}
|
48
|
+
const MAX_MAX_FEE_PER_GAS = 115792089237316195423570985008687907853269984665640564039457584007913129639935n;
|
49
|
+
function assertTransactionCIP42(transaction) {
|
50
|
+
const { chainId, maxPriorityFeePerGas, gasPrice, maxFeePerGas, to, feeCurrency, gatewayFee, gatewayFeeRecipient, } = transaction;
|
51
|
+
if (chainId <= 0)
|
52
|
+
throw new viem_1.InvalidChainIdError({ chainId });
|
53
|
+
if (to && !(0, viem_1.isAddress)(to))
|
54
|
+
throw new viem_1.InvalidAddressError({ address: to });
|
55
|
+
if (gasPrice)
|
56
|
+
throw new viem_1.BaseError('`gasPrice` is not a valid CIP-42 Transaction attribute.');
|
57
|
+
if (maxFeePerGas && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
58
|
+
throw new viem_1.FeeCapTooHighError({ maxFeePerGas });
|
59
|
+
if (maxPriorityFeePerGas &&
|
60
|
+
maxFeePerGas &&
|
61
|
+
maxPriorityFeePerGas > maxFeePerGas)
|
62
|
+
throw new viem_1.TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
63
|
+
if ((gatewayFee && !gatewayFeeRecipient) ||
|
64
|
+
(gatewayFeeRecipient && !gatewayFee)) {
|
65
|
+
throw new viem_1.BaseError('`gatewayFee` and `gatewayFeeRecipient` must be provided together.');
|
66
|
+
}
|
67
|
+
if (feeCurrency && !feeCurrency?.startsWith('0x')) {
|
68
|
+
throw new viem_1.BaseError('`feeCurrency` MUST be a token address for CIP-42 transactions.');
|
69
|
+
}
|
70
|
+
if (!feeCurrency && !gatewayFeeRecipient) {
|
71
|
+
throw new viem_1.BaseError('Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.');
|
72
|
+
}
|
73
|
+
}
|
74
|
+
exports.assertTransactionCIP42 = assertTransactionCIP42;
|
75
|
+
//# sourceMappingURL=serializers.js.map
|
@@ -0,0 +1,135 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.moonbeam = exports.moonbaseAlpha = exports.mevTestnet = exports.mev = exports.metisGoerli = exports.metis = exports.mainnet = exports.localhost = exports.lineaTestnet = exports.klaytn = exports.harmonyOne = exports.hardhat = exports.haqqTestedge2 = exports.haqqMainnet = exports.gnosisChiado = exports.gnosis = exports.goerli = exports.iotexTestnet = exports.iotex = exports.foundry = exports.flareTestnet = exports.flare = exports.filecoinHyperspace = exports.filecoinCalibration = exports.filecoin = exports.fantomTestnet = exports.fantom = exports.evmosTestnet = exports.evmos = exports.dogechain = exports.dfk = exports.crossbell = exports.cronos = exports.celoCannoli = exports.celoAlfajores = exports.celo = exports.canto = exports.bscTestnet = exports.bsc = exports.bronosTestnet = exports.bronos = exports.boba = exports.baseGoerli = exports.base = exports.avalancheFuji = exports.avalanche = exports.auroraTestnet = exports.aurora = exports.arbitrumGoerli = exports.arbitrum = void 0;
|
4
|
+
exports.zoraTestnet = exports.zora = exports.zkSyncTestnet = exports.zkSync = exports.zhejiang = exports.xdcTestnet = exports.xdc = exports.wanchainTestnet = exports.wanchain = exports.thunderTestnet = exports.telosTestnet = exports.telos = exports.taraxaTestnet = exports.taraxa = exports.syscoin = exports.shardeumSphinx = exports.songbirdTestnet = exports.songbird = exports.skaleTitanTestnet = exports.skaleTitan = exports.skaleRazor = exports.skaleNebulaTestnet = exports.skaleNebula = exports.skaleHumanProtocol = exports.skaleExorde = exports.skaleEuropaTestnet = exports.skaleEuropa = exports.skaleCryptoColosseum = exports.skaleCryptoBlades = exports.skaleChaosTestnet = exports.skaleCalypsoTestnet = exports.skaleCalypso = exports.skaleBlockBrawlers = exports.sepolia = exports.scrollTestnet = exports.scrollSepolia = exports.pulsechainV4 = exports.pulsechain = exports.polygonZkEvmTestnet = exports.polygonZkEvm = exports.polygonMumbai = exports.polygon = exports.optimismGoerli = exports.optimism = exports.okc = exports.nexi = exports.moonriver = void 0;
|
5
|
+
const chains = require("@wagmi/chains");
|
6
|
+
const formatters_js_1 = require("./celo/formatters.js");
|
7
|
+
const serializers_js_1 = require("./celo/serializers.js");
|
8
|
+
const fees_js_1 = require("./optimism/fees.js");
|
9
|
+
const formatters_js_2 = require("./optimism/formatters.js");
|
10
|
+
const utils_js_1 = require("./utils.js");
|
11
|
+
exports.arbitrum = (0, utils_js_1.defineChain)(chains.arbitrum);
|
12
|
+
exports.arbitrumGoerli = (0, utils_js_1.defineChain)(chains.arbitrumGoerli);
|
13
|
+
exports.aurora = (0, utils_js_1.defineChain)(chains.aurora);
|
14
|
+
exports.auroraTestnet = (0, utils_js_1.defineChain)(chains.auroraTestnet);
|
15
|
+
exports.avalanche = (0, utils_js_1.defineChain)(chains.avalanche);
|
16
|
+
exports.avalancheFuji = (0, utils_js_1.defineChain)(chains.avalancheFuji);
|
17
|
+
exports.base = (0, utils_js_1.defineChain)(chains.base, {
|
18
|
+
fees: fees_js_1.feesOptimism,
|
19
|
+
formatters: formatters_js_2.formattersOptimism,
|
20
|
+
});
|
21
|
+
exports.baseGoerli = (0, utils_js_1.defineChain)(chains.baseGoerli, {
|
22
|
+
fees: fees_js_1.feesOptimism,
|
23
|
+
formatters: formatters_js_2.formattersOptimism,
|
24
|
+
});
|
25
|
+
exports.boba = (0, utils_js_1.defineChain)(chains.boba);
|
26
|
+
exports.bronos = (0, utils_js_1.defineChain)(chains.bronos);
|
27
|
+
exports.bronosTestnet = (0, utils_js_1.defineChain)(chains.bronosTestnet);
|
28
|
+
exports.bsc = (0, utils_js_1.defineChain)(chains.bsc);
|
29
|
+
exports.bscTestnet = (0, utils_js_1.defineChain)(chains.bscTestnet);
|
30
|
+
exports.canto = (0, utils_js_1.defineChain)(chains.canto);
|
31
|
+
exports.celo = (0, utils_js_1.defineChain)(chains.celo, {
|
32
|
+
formatters: formatters_js_1.formattersCelo,
|
33
|
+
serializers: serializers_js_1.serializersCelo,
|
34
|
+
});
|
35
|
+
exports.celoAlfajores = (0, utils_js_1.defineChain)(chains.celoAlfajores, {
|
36
|
+
formatters: formatters_js_1.formattersCelo,
|
37
|
+
serializers: serializers_js_1.serializersCelo,
|
38
|
+
});
|
39
|
+
exports.celoCannoli = (0, utils_js_1.defineChain)(chains.celoCannoli, {
|
40
|
+
formatters: formatters_js_1.formattersCelo,
|
41
|
+
serializers: serializers_js_1.serializersCelo,
|
42
|
+
});
|
43
|
+
exports.cronos = (0, utils_js_1.defineChain)(chains.cronos);
|
44
|
+
exports.crossbell = (0, utils_js_1.defineChain)(chains.crossbell);
|
45
|
+
exports.dfk = (0, utils_js_1.defineChain)(chains.dfk);
|
46
|
+
exports.dogechain = (0, utils_js_1.defineChain)(chains.dogechain);
|
47
|
+
exports.evmos = (0, utils_js_1.defineChain)(chains.evmos);
|
48
|
+
exports.evmosTestnet = (0, utils_js_1.defineChain)(chains.evmosTestnet);
|
49
|
+
exports.fantom = (0, utils_js_1.defineChain)(chains.fantom);
|
50
|
+
exports.fantomTestnet = (0, utils_js_1.defineChain)(chains.fantomTestnet);
|
51
|
+
exports.filecoin = (0, utils_js_1.defineChain)(chains.filecoin);
|
52
|
+
exports.filecoinCalibration = (0, utils_js_1.defineChain)(chains.filecoinCalibration);
|
53
|
+
exports.filecoinHyperspace = (0, utils_js_1.defineChain)(chains.filecoinHyperspace);
|
54
|
+
exports.flare = (0, utils_js_1.defineChain)(chains.flare);
|
55
|
+
exports.flareTestnet = (0, utils_js_1.defineChain)(chains.flareTestnet);
|
56
|
+
exports.foundry = (0, utils_js_1.defineChain)(chains.foundry);
|
57
|
+
exports.iotex = (0, utils_js_1.defineChain)(chains.iotex);
|
58
|
+
exports.iotexTestnet = (0, utils_js_1.defineChain)(chains.iotexTestnet);
|
59
|
+
exports.goerli = (0, utils_js_1.defineChain)(chains.goerli);
|
60
|
+
exports.gnosis = (0, utils_js_1.defineChain)(chains.gnosis);
|
61
|
+
exports.gnosisChiado = (0, utils_js_1.defineChain)(chains.gnosisChiado);
|
62
|
+
exports.haqqMainnet = (0, utils_js_1.defineChain)(chains.haqqMainnet);
|
63
|
+
exports.haqqTestedge2 = (0, utils_js_1.defineChain)(chains.haqqTestedge2);
|
64
|
+
exports.hardhat = (0, utils_js_1.defineChain)(chains.hardhat);
|
65
|
+
exports.harmonyOne = (0, utils_js_1.defineChain)(chains.harmonyOne);
|
66
|
+
exports.klaytn = (0, utils_js_1.defineChain)(chains.klaytn);
|
67
|
+
exports.lineaTestnet = (0, utils_js_1.defineChain)(chains.lineaTestnet);
|
68
|
+
exports.localhost = (0, utils_js_1.defineChain)(chains.localhost);
|
69
|
+
exports.mainnet = (0, utils_js_1.defineChain)(chains.mainnet);
|
70
|
+
exports.metis = (0, utils_js_1.defineChain)(chains.metis);
|
71
|
+
exports.metisGoerli = (0, utils_js_1.defineChain)(chains.metisGoerli);
|
72
|
+
exports.mev = (0, utils_js_1.defineChain)(chains.mev);
|
73
|
+
exports.mevTestnet = (0, utils_js_1.defineChain)(chains.mevTestnet);
|
74
|
+
exports.moonbaseAlpha = (0, utils_js_1.defineChain)(chains.moonbaseAlpha);
|
75
|
+
exports.moonbeam = (0, utils_js_1.defineChain)(chains.moonbeam);
|
76
|
+
exports.moonriver = (0, utils_js_1.defineChain)(chains.moonriver);
|
77
|
+
exports.nexi = (0, utils_js_1.defineChain)(chains.nexi);
|
78
|
+
exports.okc = (0, utils_js_1.defineChain)(chains.okc);
|
79
|
+
exports.optimism = (0, utils_js_1.defineChain)(chains.optimism, {
|
80
|
+
fees: fees_js_1.feesOptimism,
|
81
|
+
formatters: formatters_js_2.formattersOptimism,
|
82
|
+
});
|
83
|
+
exports.optimismGoerli = (0, utils_js_1.defineChain)(chains.optimismGoerli, {
|
84
|
+
fees: fees_js_1.feesOptimism,
|
85
|
+
formatters: formatters_js_2.formattersOptimism,
|
86
|
+
});
|
87
|
+
exports.polygon = (0, utils_js_1.defineChain)(chains.polygon);
|
88
|
+
exports.polygonMumbai = (0, utils_js_1.defineChain)(chains.polygonMumbai);
|
89
|
+
exports.polygonZkEvm = (0, utils_js_1.defineChain)(chains.polygonZkEvm);
|
90
|
+
exports.polygonZkEvmTestnet = (0, utils_js_1.defineChain)(chains.polygonZkEvmTestnet);
|
91
|
+
exports.pulsechain = (0, utils_js_1.defineChain)(chains.pulsechain);
|
92
|
+
exports.pulsechainV4 = (0, utils_js_1.defineChain)(chains.pulsechainV4);
|
93
|
+
exports.scrollSepolia = (0, utils_js_1.defineChain)(chains.scrollSepolia);
|
94
|
+
exports.scrollTestnet = (0, utils_js_1.defineChain)(chains.scrollTestnet);
|
95
|
+
exports.sepolia = (0, utils_js_1.defineChain)(chains.sepolia);
|
96
|
+
exports.skaleBlockBrawlers = (0, utils_js_1.defineChain)(chains.skaleBlockBrawlers);
|
97
|
+
exports.skaleCalypso = (0, utils_js_1.defineChain)(chains.skaleCalypso);
|
98
|
+
exports.skaleCalypsoTestnet = (0, utils_js_1.defineChain)(chains.skaleCalypsoTestnet);
|
99
|
+
exports.skaleChaosTestnet = (0, utils_js_1.defineChain)(chains.skaleChaosTestnet);
|
100
|
+
exports.skaleCryptoBlades = (0, utils_js_1.defineChain)(chains.skaleCryptoBlades);
|
101
|
+
exports.skaleCryptoColosseum = (0, utils_js_1.defineChain)(chains.skaleCryptoColosseum);
|
102
|
+
exports.skaleEuropa = (0, utils_js_1.defineChain)(chains.skaleEuropa);
|
103
|
+
exports.skaleEuropaTestnet = (0, utils_js_1.defineChain)(chains.skaleEuropaTestnet);
|
104
|
+
exports.skaleExorde = (0, utils_js_1.defineChain)(chains.skaleExorde);
|
105
|
+
exports.skaleHumanProtocol = (0, utils_js_1.defineChain)(chains.skaleHumanProtocol);
|
106
|
+
exports.skaleNebula = (0, utils_js_1.defineChain)(chains.skaleNebula);
|
107
|
+
exports.skaleNebulaTestnet = (0, utils_js_1.defineChain)(chains.skaleNebulaTestnet);
|
108
|
+
exports.skaleRazor = (0, utils_js_1.defineChain)(chains.skaleRazor);
|
109
|
+
exports.skaleTitan = (0, utils_js_1.defineChain)(chains.skaleTitan);
|
110
|
+
exports.skaleTitanTestnet = (0, utils_js_1.defineChain)(chains.skaleTitanTestnet);
|
111
|
+
exports.songbird = (0, utils_js_1.defineChain)(chains.songbird);
|
112
|
+
exports.songbirdTestnet = (0, utils_js_1.defineChain)(chains.songbirdTestnet);
|
113
|
+
exports.shardeumSphinx = (0, utils_js_1.defineChain)(chains.shardeumSphinx);
|
114
|
+
exports.syscoin = (0, utils_js_1.defineChain)(chains.syscoin);
|
115
|
+
exports.taraxa = (0, utils_js_1.defineChain)(chains.taraxa);
|
116
|
+
exports.taraxaTestnet = (0, utils_js_1.defineChain)(chains.taraxaTestnet);
|
117
|
+
exports.telos = (0, utils_js_1.defineChain)(chains.telos);
|
118
|
+
exports.telosTestnet = (0, utils_js_1.defineChain)(chains.telosTestnet);
|
119
|
+
exports.thunderTestnet = (0, utils_js_1.defineChain)(chains.thunderTestnet);
|
120
|
+
exports.wanchain = (0, utils_js_1.defineChain)(chains.wanchain);
|
121
|
+
exports.wanchainTestnet = (0, utils_js_1.defineChain)(chains.wanchainTestnet);
|
122
|
+
exports.xdc = (0, utils_js_1.defineChain)(chains.xdc);
|
123
|
+
exports.xdcTestnet = (0, utils_js_1.defineChain)(chains.xdcTestnet);
|
124
|
+
exports.zhejiang = (0, utils_js_1.defineChain)(chains.zhejiang);
|
125
|
+
exports.zkSync = (0, utils_js_1.defineChain)(chains.zkSync);
|
126
|
+
exports.zkSyncTestnet = (0, utils_js_1.defineChain)(chains.zkSyncTestnet);
|
127
|
+
exports.zora = (0, utils_js_1.defineChain)(chains.zora, {
|
128
|
+
fees: fees_js_1.feesOptimism,
|
129
|
+
formatters: formatters_js_2.formattersOptimism,
|
130
|
+
});
|
131
|
+
exports.zoraTestnet = (0, utils_js_1.defineChain)(chains.zoraTestnet, {
|
132
|
+
fees: fees_js_1.feesOptimism,
|
133
|
+
formatters: formatters_js_2.formattersOptimism,
|
134
|
+
});
|
135
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1,52 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.formattersOptimism = void 0;
|
4
|
+
const viem_1 = require("viem");
|
5
|
+
const utils_js_1 = require("../utils.js");
|
6
|
+
exports.formattersOptimism = {
|
7
|
+
block: (0, utils_js_1.defineBlock)({
|
8
|
+
format(args) {
|
9
|
+
const transactions = args.transactions?.map((transaction) => {
|
10
|
+
if (typeof transaction === 'string')
|
11
|
+
return transaction;
|
12
|
+
const formatted = (0, viem_1.formatTransaction)(transaction);
|
13
|
+
if (formatted.typeHex === '0x7e') {
|
14
|
+
formatted.isSystemTx = transaction.isSystemTx;
|
15
|
+
formatted.mint = transaction.mint
|
16
|
+
? (0, viem_1.hexToBigInt)(transaction.mint)
|
17
|
+
: undefined;
|
18
|
+
formatted.sourceHash = transaction.sourceHash;
|
19
|
+
formatted.type = 'deposit';
|
20
|
+
}
|
21
|
+
return formatted;
|
22
|
+
});
|
23
|
+
return {
|
24
|
+
transactions,
|
25
|
+
stateRoot: args.stateRoot,
|
26
|
+
};
|
27
|
+
},
|
28
|
+
}),
|
29
|
+
transaction: (0, utils_js_1.defineTransaction)({
|
30
|
+
format(args) {
|
31
|
+
const transaction = {};
|
32
|
+
if (args.type === '0x7e') {
|
33
|
+
transaction.isSystemTx = args.isSystemTx;
|
34
|
+
transaction.mint = args.mint ? (0, viem_1.hexToBigInt)(args.mint) : undefined;
|
35
|
+
transaction.sourceHash = args.sourceHash;
|
36
|
+
transaction.type = 'deposit';
|
37
|
+
}
|
38
|
+
return transaction;
|
39
|
+
},
|
40
|
+
}),
|
41
|
+
transactionReceipt: (0, utils_js_1.defineTransactionReceipt)({
|
42
|
+
format(args) {
|
43
|
+
return {
|
44
|
+
l1GasPrice: args.l1GasPrice ? (0, viem_1.hexToBigInt)(args.l1GasPrice) : null,
|
45
|
+
l1GasUsed: args.l1GasUsed ? (0, viem_1.hexToBigInt)(args.l1GasUsed) : null,
|
46
|
+
l1Fee: args.l1Fee ? (0, viem_1.hexToBigInt)(args.l1Fee) : null,
|
47
|
+
l1FeeScalar: args.l1FeeScalar ? Number(args.l1FeeScalar) : null,
|
48
|
+
};
|
49
|
+
},
|
50
|
+
}),
|
51
|
+
};
|
52
|
+
//# sourceMappingURL=formatters.js.map
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.formattersOptimism = exports.parseTransactionCelo = exports.serializersCelo = exports.serializeTransactionCelo = exports.formattersCelo = exports.defineTransactionRequest = exports.defineTransactionReceipt = exports.defineTransaction = exports.defineBlock = exports.defineFormatter = exports.defineChain = void 0;
|
4
|
+
const viem_1 = require("viem");
|
5
|
+
function defineChain(chain, config = {}) {
|
6
|
+
const { fees = chain.fees, formatters = chain.formatters, serializers = chain.serializers, } = config;
|
7
|
+
return {
|
8
|
+
...chain,
|
9
|
+
fees,
|
10
|
+
formatters,
|
11
|
+
serializers,
|
12
|
+
};
|
13
|
+
}
|
14
|
+
exports.defineChain = defineChain;
|
15
|
+
function defineFormatter(type, format) {
|
16
|
+
return ({ exclude, format: overrides, }) => {
|
17
|
+
return {
|
18
|
+
exclude,
|
19
|
+
format: (args) => {
|
20
|
+
const formatted = format(args);
|
21
|
+
if (exclude) {
|
22
|
+
for (const key of exclude) {
|
23
|
+
delete formatted[key];
|
24
|
+
}
|
25
|
+
}
|
26
|
+
return {
|
27
|
+
...formatted,
|
28
|
+
...overrides(args),
|
29
|
+
};
|
30
|
+
},
|
31
|
+
type,
|
32
|
+
};
|
33
|
+
};
|
34
|
+
}
|
35
|
+
exports.defineFormatter = defineFormatter;
|
36
|
+
exports.defineBlock = defineFormatter('block', viem_1.formatBlock);
|
37
|
+
exports.defineTransaction = defineFormatter('transaction', viem_1.formatTransaction);
|
38
|
+
exports.defineTransactionReceipt = defineFormatter('transactionReceipt', viem_1.formatTransactionReceipt);
|
39
|
+
exports.defineTransactionRequest = defineFormatter('transactionRequest', viem_1.formatTransactionRequest);
|
40
|
+
var formatters_js_1 = require("./celo/formatters.js");
|
41
|
+
Object.defineProperty(exports, "formattersCelo", { enumerable: true, get: function () { return formatters_js_1.formattersCelo; } });
|
42
|
+
var serializers_js_1 = require("./celo/serializers.js");
|
43
|
+
Object.defineProperty(exports, "serializeTransactionCelo", { enumerable: true, get: function () { return serializers_js_1.serializeTransactionCelo; } });
|
44
|
+
Object.defineProperty(exports, "serializersCelo", { enumerable: true, get: function () { return serializers_js_1.serializersCelo; } });
|
45
|
+
var parsers_js_1 = require("./celo/parsers.js");
|
46
|
+
Object.defineProperty(exports, "parseTransactionCelo", { enumerable: true, get: function () { return parsers_js_1.parseTransactionCelo; } });
|
47
|
+
var formatters_js_2 = require("./optimism/formatters.js");
|
48
|
+
Object.defineProperty(exports, "formattersOptimism", { enumerable: true, get: function () { return formatters_js_2.formattersOptimism; } });
|
49
|
+
//# sourceMappingURL=utils.js.map
|