viem 0.0.1-alpha.20 → 0.0.1-alpha.21
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/dist/chains.js +46 -46
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-ZVGTYLKU.mjs → chunk-46BO7YAQ.mjs} +2 -2
- package/dist/{chunk-ZVGTYLKU.mjs.map → chunk-46BO7YAQ.mjs.map} +0 -0
- package/dist/{chunk-YODUQCHJ.mjs → chunk-57ZOFERP.mjs} +2 -2
- package/dist/{chunk-YODUQCHJ.mjs.map → chunk-57ZOFERP.mjs.map} +0 -0
- package/dist/{chunk-5Q6FSUU2.mjs → chunk-62VTYU2V.mjs} +10 -4
- package/dist/chunk-62VTYU2V.mjs.map +1 -0
- package/dist/{chunk-MYQNZSWD.mjs → chunk-DGO77E2H.mjs} +3 -3
- package/dist/{chunk-MYQNZSWD.mjs.map → chunk-DGO77E2H.mjs.map} +0 -0
- package/dist/{chunk-T7CBAKLI.mjs → chunk-DSPMAIDO.mjs} +2 -2
- package/dist/{chunk-T7CBAKLI.mjs.map → chunk-DSPMAIDO.mjs.map} +0 -0
- package/dist/{chunk-IAQPMSGJ.js → chunk-EC3NUIJE.js} +13 -13
- package/dist/{chunk-IAQPMSGJ.js.map → chunk-EC3NUIJE.js.map} +0 -0
- package/dist/{chunk-FHXXG7I6.js → chunk-KEHGSYDO.js} +12 -12
- package/dist/{chunk-FHXXG7I6.js.map → chunk-KEHGSYDO.js.map} +0 -0
- package/dist/{chunk-NHAKUPTF.js → chunk-KZMJR27B.js} +63 -63
- package/dist/{chunk-NHAKUPTF.js.map → chunk-KZMJR27B.js.map} +0 -0
- package/dist/{chunk-SF4I2NKC.js → chunk-O2GYLJVD.js} +10 -4
- package/dist/chunk-O2GYLJVD.js.map +1 -0
- package/dist/{chunk-YFKR74XG.js → chunk-W7BWWAC4.js} +14 -14
- package/dist/{chunk-YFKR74XG.js.map → chunk-W7BWWAC4.js.map} +0 -0
- package/dist/clients/index.js +3 -3
- package/dist/clients/index.mjs +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +5 -5
- package/dist/public.js +4 -4
- package/dist/public.mjs +3 -3
- package/dist/test.js +3 -3
- package/dist/test.mjs +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.js +3 -3
- package/dist/wallet.mjs +2 -2
- package/package.json +1 -1
- package/src/utils/abi/encodeAbi.test.ts +37 -3
- package/src/utils/abi/encodeAbi.ts +9 -3
- package/dist/chunk-5Q6FSUU2.mjs.map +0 -1
- package/dist/chunk-SF4I2NKC.js.map +0 -1
package/dist/index.js
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
var
|
11
|
+
var _chunkKEHGSYDOjs = require('./chunk-KEHGSYDO.js');
|
12
12
|
|
13
13
|
|
14
14
|
|
@@ -40,7 +40,7 @@ var _chunkFHXXG7I6js = require('./chunk-FHXXG7I6.js');
|
|
40
40
|
|
41
41
|
|
42
42
|
|
43
|
-
var
|
43
|
+
var _chunkKZMJR27Bjs = require('./chunk-KZMJR27B.js');
|
44
44
|
|
45
45
|
|
46
46
|
|
@@ -69,7 +69,7 @@ var _chunkNHAKUPTFjs = require('./chunk-NHAKUPTF.js');
|
|
69
69
|
|
70
70
|
|
71
71
|
|
72
|
-
var
|
72
|
+
var _chunkW7BWWAC4js = require('./chunk-W7BWWAC4.js');
|
73
73
|
|
74
74
|
|
75
75
|
|
@@ -81,7 +81,7 @@ var _chunkYFKR74XGjs = require('./chunk-YFKR74XG.js');
|
|
81
81
|
|
82
82
|
|
83
83
|
|
84
|
-
var
|
84
|
+
var _chunkEC3NUIJEjs = require('./chunk-EC3NUIJE.js');
|
85
85
|
|
86
86
|
|
87
87
|
|
@@ -198,7 +198,7 @@ var _chunkIAQPMSGJjs = require('./chunk-IAQPMSGJ.js');
|
|
198
198
|
|
199
199
|
|
200
200
|
|
201
|
-
var
|
201
|
+
var _chunkO2GYLJVDjs = require('./chunk-O2GYLJVD.js');
|
202
202
|
|
203
203
|
|
204
204
|
|
@@ -391,5 +391,5 @@ var _chunkSF4I2NKCjs = require('./chunk-SF4I2NKC.js');
|
|
391
391
|
|
392
392
|
|
393
393
|
|
394
|
-
exports.AbiConstructorNotFoundError = _chunkSF4I2NKCjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkSF4I2NKCjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkSF4I2NKCjs.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkSF4I2NKCjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkSF4I2NKCjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkSF4I2NKCjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkSF4I2NKCjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkSF4I2NKCjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkSF4I2NKCjs.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkSF4I2NKCjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkSF4I2NKCjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkSF4I2NKCjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkSF4I2NKCjs.BaseError; exports.BlockNotFoundError = _chunkSF4I2NKCjs.BlockNotFoundError; exports.DataLengthTooLongError = _chunkSF4I2NKCjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkSF4I2NKCjs.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkSF4I2NKCjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkSF4I2NKCjs.HttpRequestError; exports.InternalRpcError = _chunkSF4I2NKCjs.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkSF4I2NKCjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkSF4I2NKCjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkSF4I2NKCjs.InvalidAddressError; exports.InvalidArrayError = _chunkSF4I2NKCjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkSF4I2NKCjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkSF4I2NKCjs.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkSF4I2NKCjs.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkSF4I2NKCjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkSF4I2NKCjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkSF4I2NKCjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkSF4I2NKCjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkSF4I2NKCjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkSF4I2NKCjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkSF4I2NKCjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkSF4I2NKCjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkSF4I2NKCjs.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkSF4I2NKCjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkSF4I2NKCjs.ParseRpcError; exports.RequestError = _chunkSF4I2NKCjs.RequestError; exports.ResourceNotFoundRpcError = _chunkSF4I2NKCjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkSF4I2NKCjs.ResourceUnavailableRpcError; exports.RpcError = _chunkSF4I2NKCjs.RpcError; exports.RpcRequestError = _chunkSF4I2NKCjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkSF4I2NKCjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkSF4I2NKCjs.TimeoutError; exports.TransactionNotFoundError = _chunkSF4I2NKCjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkSF4I2NKCjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkSF4I2NKCjs.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkSF4I2NKCjs.UnknownRpcError; exports.UrlRequiredError = _chunkSF4I2NKCjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkSF4I2NKCjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkSF4I2NKCjs.WebSocketRequestError; exports.addChain = _chunkIAQPMSGJjs.addChain; exports.boolToBytes = _chunkSF4I2NKCjs.boolToBytes; exports.boolToHex = _chunkSF4I2NKCjs.boolToHex; exports.bytesToBigint = _chunkSF4I2NKCjs.bytesToBigint; exports.bytesToBool = _chunkSF4I2NKCjs.bytesToBool; exports.bytesToHex = _chunkSF4I2NKCjs.bytesToHex; exports.bytesToNumber = _chunkSF4I2NKCjs.bytesToNumber; exports.bytesToString = _chunkSF4I2NKCjs.bytesToString; exports.call = _chunkNHAKUPTFjs.call; exports.createBlockFilter = _chunkNHAKUPTFjs.createBlockFilter; exports.createClient = _chunkFHXXG7I6js.createClient; exports.createContractEventFilter = _chunkNHAKUPTFjs.createContractEventFilter; exports.createEventFilter = _chunkNHAKUPTFjs.createEventFilter; exports.createPendingTransactionFilter = _chunkNHAKUPTFjs.createPendingTransactionFilter; exports.createPublicClient = _chunkFHXXG7I6js.createPublicClient; exports.createTestClient = _chunkFHXXG7I6js.createTestClient; exports.createTransport = _chunkFHXXG7I6js.createTransport; exports.createWalletClient = _chunkFHXXG7I6js.createWalletClient; exports.custom = _chunkFHXXG7I6js.custom; exports.decodeAbi = _chunkSF4I2NKCjs.decodeAbi; exports.decodeBytes = _chunkSF4I2NKCjs.decodeBytes; exports.decodeErrorResult = _chunkSF4I2NKCjs.decodeErrorResult; exports.decodeFunctionData = _chunkSF4I2NKCjs.decodeFunctionData; exports.decodeFunctionResult = _chunkSF4I2NKCjs.decodeFunctionResult; exports.decodeHex = _chunkSF4I2NKCjs.decodeHex; exports.decodeRlp = _chunkSF4I2NKCjs.decodeRlp; exports.deployContract = _chunkNHAKUPTFjs.deployContract; exports.dropTransaction = _chunkYFKR74XGjs.dropTransaction; exports.encodeAbi = _chunkSF4I2NKCjs.encodeAbi; exports.encodeBytes = _chunkSF4I2NKCjs.encodeBytes; exports.encodeDeployData = _chunkSF4I2NKCjs.encodeDeployData; exports.encodeErrorResult = _chunkSF4I2NKCjs.encodeErrorResult; exports.encodeEventTopics = _chunkSF4I2NKCjs.encodeEventTopics; exports.encodeFunctionData = _chunkSF4I2NKCjs.encodeFunctionData; exports.encodeFunctionResult = _chunkSF4I2NKCjs.encodeFunctionResult; exports.encodeHex = _chunkSF4I2NKCjs.encodeHex; exports.encodeRlp = _chunkSF4I2NKCjs.encodeRlp; exports.estimateGas = _chunkNHAKUPTFjs.estimateGas; exports.etherUnits = _chunkSF4I2NKCjs.etherUnits; exports.fallback = _chunkFHXXG7I6js.fallback; exports.formatBlock = _chunkSF4I2NKCjs.formatBlock; exports.formatEther = _chunkSF4I2NKCjs.formatEther; exports.formatGwei = _chunkSF4I2NKCjs.formatGwei; exports.formatTransaction = _chunkSF4I2NKCjs.formatTransaction; exports.formatTransactionRequest = _chunkSF4I2NKCjs.formatTransactionRequest; exports.formatUnit = _chunkSF4I2NKCjs.formatUnit; exports.getAccounts = _chunkIAQPMSGJjs.getAccounts; exports.getAddress = _chunkSF4I2NKCjs.getAddress; exports.getAutomine = _chunkYFKR74XGjs.getAutomine; exports.getBalance = _chunkNHAKUPTFjs.getBalance; exports.getBlock = _chunkNHAKUPTFjs.getBlock; exports.getBlockNumber = _chunkNHAKUPTFjs.getBlockNumber; exports.getBlockTransactionCount = _chunkNHAKUPTFjs.getBlockTransactionCount; exports.getBytecode = _chunkNHAKUPTFjs.getBytecode; exports.getChainId = _chunkNHAKUPTFjs.getChainId; exports.getContractAddress = _chunkSF4I2NKCjs.getContractAddress; exports.getCreate2Address = _chunkSF4I2NKCjs.getCreate2Address; exports.getCreateAddress = _chunkSF4I2NKCjs.getCreateAddress; exports.getEventSignature = _chunkSF4I2NKCjs.getEventSignature; exports.getFeeHistory = _chunkNHAKUPTFjs.getFeeHistory; exports.getFilterChanges = _chunkNHAKUPTFjs.getFilterChanges; exports.getFilterLogs = _chunkNHAKUPTFjs.getFilterLogs; exports.getFunctionSignature = _chunkSF4I2NKCjs.getFunctionSignature; exports.getGasPrice = _chunkNHAKUPTFjs.getGasPrice; exports.getLogs = _chunkNHAKUPTFjs.getLogs; exports.getPermissions = _chunkIAQPMSGJjs.getPermissions; exports.getStorageAt = _chunkNHAKUPTFjs.getStorageAt; exports.getTransaction = _chunkNHAKUPTFjs.getTransaction; exports.getTransactionConfirmations = _chunkNHAKUPTFjs.getTransactionConfirmations; exports.getTransactionCount = _chunkNHAKUPTFjs.getTransactionCount; exports.getTransactionReceipt = _chunkNHAKUPTFjs.getTransactionReceipt; exports.getTxpoolContent = _chunkYFKR74XGjs.getTxpoolContent; exports.getTxpoolStatus = _chunkYFKR74XGjs.getTxpoolStatus; exports.gweiUnits = _chunkSF4I2NKCjs.gweiUnits; exports.hexToBigInt = _chunkSF4I2NKCjs.hexToBigInt; exports.hexToBool = _chunkSF4I2NKCjs.hexToBool; exports.hexToBytes = _chunkSF4I2NKCjs.hexToBytes; exports.hexToNumber = _chunkSF4I2NKCjs.hexToNumber; exports.hexToString = _chunkSF4I2NKCjs.hexToString; exports.http = _chunkFHXXG7I6js.http; exports.impersonateAccount = _chunkYFKR74XGjs.impersonateAccount; exports.increaseTime = _chunkYFKR74XGjs.increaseTime; exports.inspectTxpool = _chunkYFKR74XGjs.inspectTxpool; exports.isAddress = _chunkSF4I2NKCjs.isAddress; exports.isAddressEqual = _chunkSF4I2NKCjs.isAddressEqual; exports.isBytes = _chunkSF4I2NKCjs.isBytes; exports.isHex = _chunkSF4I2NKCjs.isHex; exports.keccak256 = _chunkSF4I2NKCjs.keccak256; exports.mine = _chunkYFKR74XGjs.mine; exports.numberToBytes = _chunkSF4I2NKCjs.numberToBytes; exports.numberToHex = _chunkSF4I2NKCjs.numberToHex; exports.pad = _chunkSF4I2NKCjs.pad; exports.padBytes = _chunkSF4I2NKCjs.padBytes; exports.padHex = _chunkSF4I2NKCjs.padHex; exports.parseEther = _chunkSF4I2NKCjs.parseEther; exports.parseGwei = _chunkSF4I2NKCjs.parseGwei; exports.parseUnit = _chunkSF4I2NKCjs.parseUnit; exports.readContract = _chunkNHAKUPTFjs.readContract; exports.removeBlockTimestampInterval = _chunkYFKR74XGjs.removeBlockTimestampInterval; exports.requestAccounts = _chunkIAQPMSGJjs.requestAccounts; exports.requestPermissions = _chunkIAQPMSGJjs.requestPermissions; exports.reset = _chunkYFKR74XGjs.reset; exports.revert = _chunkYFKR74XGjs.revert; exports.sendTransaction = _chunkIAQPMSGJjs.sendTransaction; exports.sendUnsignedTransaction = _chunkYFKR74XGjs.sendUnsignedTransaction; exports.setAutomine = _chunkYFKR74XGjs.setAutomine; exports.setBalance = _chunkYFKR74XGjs.setBalance; exports.setBlockGasLimit = _chunkYFKR74XGjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkYFKR74XGjs.setBlockTimestampInterval; exports.setCode = _chunkYFKR74XGjs.setCode; exports.setCoinbase = _chunkYFKR74XGjs.setCoinbase; exports.setIntervalMining = _chunkYFKR74XGjs.setIntervalMining; exports.setLoggingEnabled = _chunkYFKR74XGjs.setLoggingEnabled; exports.setMinGasPrice = _chunkYFKR74XGjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkYFKR74XGjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkYFKR74XGjs.setNextBlockTimestamp; exports.setNonce = _chunkYFKR74XGjs.setNonce; exports.setStorageAt = _chunkYFKR74XGjs.setStorageAt; exports.signMessage = _chunkIAQPMSGJjs.signMessage; exports.simulateContract = _chunkNHAKUPTFjs.simulateContract; exports.size = _chunkSF4I2NKCjs.size; exports.slice = _chunkSF4I2NKCjs.slice; exports.sliceBytes = _chunkSF4I2NKCjs.sliceBytes; exports.sliceHex = _chunkSF4I2NKCjs.sliceHex; exports.snapshot = _chunkYFKR74XGjs.snapshot; exports.stopImpersonatingAccount = _chunkYFKR74XGjs.stopImpersonatingAccount; exports.stringToBytes = _chunkSF4I2NKCjs.stringToBytes; exports.stringToHex = _chunkSF4I2NKCjs.stringToHex; exports.switchChain = _chunkIAQPMSGJjs.switchChain; exports.transactionType = _chunkSF4I2NKCjs.transactionType; exports.trim = _chunkSF4I2NKCjs.trim; exports.uninstallFilter = _chunkNHAKUPTFjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkNHAKUPTFjs.waitForTransactionReceipt; exports.watchAsset = _chunkIAQPMSGJjs.watchAsset; exports.watchBlockNumber = _chunkNHAKUPTFjs.watchBlockNumber; exports.watchBlocks = _chunkNHAKUPTFjs.watchBlocks; exports.watchPendingTransactions = _chunkNHAKUPTFjs.watchPendingTransactions; exports.webSocket = _chunkFHXXG7I6js.webSocket; exports.weiUnits = _chunkSF4I2NKCjs.weiUnits; exports.writeContract = _chunkIAQPMSGJjs.writeContract;
|
394
|
+
exports.AbiConstructorNotFoundError = _chunkO2GYLJVDjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkO2GYLJVDjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkO2GYLJVDjs.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkO2GYLJVDjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkO2GYLJVDjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkO2GYLJVDjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkO2GYLJVDjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkO2GYLJVDjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkO2GYLJVDjs.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkO2GYLJVDjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkO2GYLJVDjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkO2GYLJVDjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkO2GYLJVDjs.BaseError; exports.BlockNotFoundError = _chunkO2GYLJVDjs.BlockNotFoundError; exports.DataLengthTooLongError = _chunkO2GYLJVDjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkO2GYLJVDjs.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkO2GYLJVDjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkO2GYLJVDjs.HttpRequestError; exports.InternalRpcError = _chunkO2GYLJVDjs.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkO2GYLJVDjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkO2GYLJVDjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkO2GYLJVDjs.InvalidAddressError; exports.InvalidArrayError = _chunkO2GYLJVDjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkO2GYLJVDjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkO2GYLJVDjs.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkO2GYLJVDjs.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkO2GYLJVDjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkO2GYLJVDjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkO2GYLJVDjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkO2GYLJVDjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkO2GYLJVDjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkO2GYLJVDjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkO2GYLJVDjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkO2GYLJVDjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkO2GYLJVDjs.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkO2GYLJVDjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkO2GYLJVDjs.ParseRpcError; exports.RequestError = _chunkO2GYLJVDjs.RequestError; exports.ResourceNotFoundRpcError = _chunkO2GYLJVDjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkO2GYLJVDjs.ResourceUnavailableRpcError; exports.RpcError = _chunkO2GYLJVDjs.RpcError; exports.RpcRequestError = _chunkO2GYLJVDjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkO2GYLJVDjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkO2GYLJVDjs.TimeoutError; exports.TransactionNotFoundError = _chunkO2GYLJVDjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkO2GYLJVDjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkO2GYLJVDjs.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkO2GYLJVDjs.UnknownRpcError; exports.UrlRequiredError = _chunkO2GYLJVDjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkO2GYLJVDjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkO2GYLJVDjs.WebSocketRequestError; exports.addChain = _chunkEC3NUIJEjs.addChain; exports.boolToBytes = _chunkO2GYLJVDjs.boolToBytes; exports.boolToHex = _chunkO2GYLJVDjs.boolToHex; exports.bytesToBigint = _chunkO2GYLJVDjs.bytesToBigint; exports.bytesToBool = _chunkO2GYLJVDjs.bytesToBool; exports.bytesToHex = _chunkO2GYLJVDjs.bytesToHex; exports.bytesToNumber = _chunkO2GYLJVDjs.bytesToNumber; exports.bytesToString = _chunkO2GYLJVDjs.bytesToString; exports.call = _chunkKZMJR27Bjs.call; exports.createBlockFilter = _chunkKZMJR27Bjs.createBlockFilter; exports.createClient = _chunkKEHGSYDOjs.createClient; exports.createContractEventFilter = _chunkKZMJR27Bjs.createContractEventFilter; exports.createEventFilter = _chunkKZMJR27Bjs.createEventFilter; exports.createPendingTransactionFilter = _chunkKZMJR27Bjs.createPendingTransactionFilter; exports.createPublicClient = _chunkKEHGSYDOjs.createPublicClient; exports.createTestClient = _chunkKEHGSYDOjs.createTestClient; exports.createTransport = _chunkKEHGSYDOjs.createTransport; exports.createWalletClient = _chunkKEHGSYDOjs.createWalletClient; exports.custom = _chunkKEHGSYDOjs.custom; exports.decodeAbi = _chunkO2GYLJVDjs.decodeAbi; exports.decodeBytes = _chunkO2GYLJVDjs.decodeBytes; exports.decodeErrorResult = _chunkO2GYLJVDjs.decodeErrorResult; exports.decodeFunctionData = _chunkO2GYLJVDjs.decodeFunctionData; exports.decodeFunctionResult = _chunkO2GYLJVDjs.decodeFunctionResult; exports.decodeHex = _chunkO2GYLJVDjs.decodeHex; exports.decodeRlp = _chunkO2GYLJVDjs.decodeRlp; exports.deployContract = _chunkKZMJR27Bjs.deployContract; exports.dropTransaction = _chunkW7BWWAC4js.dropTransaction; exports.encodeAbi = _chunkO2GYLJVDjs.encodeAbi; exports.encodeBytes = _chunkO2GYLJVDjs.encodeBytes; exports.encodeDeployData = _chunkO2GYLJVDjs.encodeDeployData; exports.encodeErrorResult = _chunkO2GYLJVDjs.encodeErrorResult; exports.encodeEventTopics = _chunkO2GYLJVDjs.encodeEventTopics; exports.encodeFunctionData = _chunkO2GYLJVDjs.encodeFunctionData; exports.encodeFunctionResult = _chunkO2GYLJVDjs.encodeFunctionResult; exports.encodeHex = _chunkO2GYLJVDjs.encodeHex; exports.encodeRlp = _chunkO2GYLJVDjs.encodeRlp; exports.estimateGas = _chunkKZMJR27Bjs.estimateGas; exports.etherUnits = _chunkO2GYLJVDjs.etherUnits; exports.fallback = _chunkKEHGSYDOjs.fallback; exports.formatBlock = _chunkO2GYLJVDjs.formatBlock; exports.formatEther = _chunkO2GYLJVDjs.formatEther; exports.formatGwei = _chunkO2GYLJVDjs.formatGwei; exports.formatTransaction = _chunkO2GYLJVDjs.formatTransaction; exports.formatTransactionRequest = _chunkO2GYLJVDjs.formatTransactionRequest; exports.formatUnit = _chunkO2GYLJVDjs.formatUnit; exports.getAccounts = _chunkEC3NUIJEjs.getAccounts; exports.getAddress = _chunkO2GYLJVDjs.getAddress; exports.getAutomine = _chunkW7BWWAC4js.getAutomine; exports.getBalance = _chunkKZMJR27Bjs.getBalance; exports.getBlock = _chunkKZMJR27Bjs.getBlock; exports.getBlockNumber = _chunkKZMJR27Bjs.getBlockNumber; exports.getBlockTransactionCount = _chunkKZMJR27Bjs.getBlockTransactionCount; exports.getBytecode = _chunkKZMJR27Bjs.getBytecode; exports.getChainId = _chunkKZMJR27Bjs.getChainId; exports.getContractAddress = _chunkO2GYLJVDjs.getContractAddress; exports.getCreate2Address = _chunkO2GYLJVDjs.getCreate2Address; exports.getCreateAddress = _chunkO2GYLJVDjs.getCreateAddress; exports.getEventSignature = _chunkO2GYLJVDjs.getEventSignature; exports.getFeeHistory = _chunkKZMJR27Bjs.getFeeHistory; exports.getFilterChanges = _chunkKZMJR27Bjs.getFilterChanges; exports.getFilterLogs = _chunkKZMJR27Bjs.getFilterLogs; exports.getFunctionSignature = _chunkO2GYLJVDjs.getFunctionSignature; exports.getGasPrice = _chunkKZMJR27Bjs.getGasPrice; exports.getLogs = _chunkKZMJR27Bjs.getLogs; exports.getPermissions = _chunkEC3NUIJEjs.getPermissions; exports.getStorageAt = _chunkKZMJR27Bjs.getStorageAt; exports.getTransaction = _chunkKZMJR27Bjs.getTransaction; exports.getTransactionConfirmations = _chunkKZMJR27Bjs.getTransactionConfirmations; exports.getTransactionCount = _chunkKZMJR27Bjs.getTransactionCount; exports.getTransactionReceipt = _chunkKZMJR27Bjs.getTransactionReceipt; exports.getTxpoolContent = _chunkW7BWWAC4js.getTxpoolContent; exports.getTxpoolStatus = _chunkW7BWWAC4js.getTxpoolStatus; exports.gweiUnits = _chunkO2GYLJVDjs.gweiUnits; exports.hexToBigInt = _chunkO2GYLJVDjs.hexToBigInt; exports.hexToBool = _chunkO2GYLJVDjs.hexToBool; exports.hexToBytes = _chunkO2GYLJVDjs.hexToBytes; exports.hexToNumber = _chunkO2GYLJVDjs.hexToNumber; exports.hexToString = _chunkO2GYLJVDjs.hexToString; exports.http = _chunkKEHGSYDOjs.http; exports.impersonateAccount = _chunkW7BWWAC4js.impersonateAccount; exports.increaseTime = _chunkW7BWWAC4js.increaseTime; exports.inspectTxpool = _chunkW7BWWAC4js.inspectTxpool; exports.isAddress = _chunkO2GYLJVDjs.isAddress; exports.isAddressEqual = _chunkO2GYLJVDjs.isAddressEqual; exports.isBytes = _chunkO2GYLJVDjs.isBytes; exports.isHex = _chunkO2GYLJVDjs.isHex; exports.keccak256 = _chunkO2GYLJVDjs.keccak256; exports.mine = _chunkW7BWWAC4js.mine; exports.numberToBytes = _chunkO2GYLJVDjs.numberToBytes; exports.numberToHex = _chunkO2GYLJVDjs.numberToHex; exports.pad = _chunkO2GYLJVDjs.pad; exports.padBytes = _chunkO2GYLJVDjs.padBytes; exports.padHex = _chunkO2GYLJVDjs.padHex; exports.parseEther = _chunkO2GYLJVDjs.parseEther; exports.parseGwei = _chunkO2GYLJVDjs.parseGwei; exports.parseUnit = _chunkO2GYLJVDjs.parseUnit; exports.readContract = _chunkKZMJR27Bjs.readContract; exports.removeBlockTimestampInterval = _chunkW7BWWAC4js.removeBlockTimestampInterval; exports.requestAccounts = _chunkEC3NUIJEjs.requestAccounts; exports.requestPermissions = _chunkEC3NUIJEjs.requestPermissions; exports.reset = _chunkW7BWWAC4js.reset; exports.revert = _chunkW7BWWAC4js.revert; exports.sendTransaction = _chunkEC3NUIJEjs.sendTransaction; exports.sendUnsignedTransaction = _chunkW7BWWAC4js.sendUnsignedTransaction; exports.setAutomine = _chunkW7BWWAC4js.setAutomine; exports.setBalance = _chunkW7BWWAC4js.setBalance; exports.setBlockGasLimit = _chunkW7BWWAC4js.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkW7BWWAC4js.setBlockTimestampInterval; exports.setCode = _chunkW7BWWAC4js.setCode; exports.setCoinbase = _chunkW7BWWAC4js.setCoinbase; exports.setIntervalMining = _chunkW7BWWAC4js.setIntervalMining; exports.setLoggingEnabled = _chunkW7BWWAC4js.setLoggingEnabled; exports.setMinGasPrice = _chunkW7BWWAC4js.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkW7BWWAC4js.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkW7BWWAC4js.setNextBlockTimestamp; exports.setNonce = _chunkW7BWWAC4js.setNonce; exports.setStorageAt = _chunkW7BWWAC4js.setStorageAt; exports.signMessage = _chunkEC3NUIJEjs.signMessage; exports.simulateContract = _chunkKZMJR27Bjs.simulateContract; exports.size = _chunkO2GYLJVDjs.size; exports.slice = _chunkO2GYLJVDjs.slice; exports.sliceBytes = _chunkO2GYLJVDjs.sliceBytes; exports.sliceHex = _chunkO2GYLJVDjs.sliceHex; exports.snapshot = _chunkW7BWWAC4js.snapshot; exports.stopImpersonatingAccount = _chunkW7BWWAC4js.stopImpersonatingAccount; exports.stringToBytes = _chunkO2GYLJVDjs.stringToBytes; exports.stringToHex = _chunkO2GYLJVDjs.stringToHex; exports.switchChain = _chunkEC3NUIJEjs.switchChain; exports.transactionType = _chunkO2GYLJVDjs.transactionType; exports.trim = _chunkO2GYLJVDjs.trim; exports.uninstallFilter = _chunkKZMJR27Bjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkKZMJR27Bjs.waitForTransactionReceipt; exports.watchAsset = _chunkEC3NUIJEjs.watchAsset; exports.watchBlockNumber = _chunkKZMJR27Bjs.watchBlockNumber; exports.watchBlocks = _chunkKZMJR27Bjs.watchBlocks; exports.watchPendingTransactions = _chunkKZMJR27Bjs.watchPendingTransactions; exports.webSocket = _chunkKEHGSYDOjs.webSocket; exports.weiUnits = _chunkO2GYLJVDjs.weiUnits; exports.writeContract = _chunkEC3NUIJEjs.writeContract;
|
395
395
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
@@ -8,7 +8,7 @@ import {
|
|
8
8
|
fallback,
|
9
9
|
http,
|
10
10
|
webSocket
|
11
|
-
} from "./chunk-
|
11
|
+
} from "./chunk-46BO7YAQ.mjs";
|
12
12
|
import {
|
13
13
|
call,
|
14
14
|
createBlockFilter,
|
@@ -40,7 +40,7 @@ import {
|
|
40
40
|
watchBlockNumber,
|
41
41
|
watchBlocks,
|
42
42
|
watchPendingTransactions
|
43
|
-
} from "./chunk-
|
43
|
+
} from "./chunk-DGO77E2H.mjs";
|
44
44
|
import {
|
45
45
|
dropTransaction,
|
46
46
|
getAutomine,
|
@@ -69,7 +69,7 @@ import {
|
|
69
69
|
setStorageAt,
|
70
70
|
snapshot,
|
71
71
|
stopImpersonatingAccount
|
72
|
-
} from "./chunk-
|
72
|
+
} from "./chunk-57ZOFERP.mjs";
|
73
73
|
import {
|
74
74
|
addChain,
|
75
75
|
getAccounts,
|
@@ -81,7 +81,7 @@ import {
|
|
81
81
|
switchChain,
|
82
82
|
watchAsset,
|
83
83
|
writeContract
|
84
|
-
} from "./chunk-
|
84
|
+
} from "./chunk-DSPMAIDO.mjs";
|
85
85
|
import {
|
86
86
|
AbiConstructorNotFoundError,
|
87
87
|
AbiConstructorParamsNotFoundError,
|
@@ -198,7 +198,7 @@ import {
|
|
198
198
|
transactionType,
|
199
199
|
trim,
|
200
200
|
weiUnits
|
201
|
-
} from "./chunk-
|
201
|
+
} from "./chunk-62VTYU2V.mjs";
|
202
202
|
export {
|
203
203
|
AbiConstructorNotFoundError,
|
204
204
|
AbiConstructorParamsNotFoundError,
|
package/dist/public.js
CHANGED
@@ -25,9 +25,9 @@
|
|
25
25
|
|
26
26
|
|
27
27
|
|
28
|
-
var
|
29
|
-
require('./chunk-
|
30
|
-
require('./chunk-
|
28
|
+
var _chunkKZMJR27Bjs = require('./chunk-KZMJR27B.js');
|
29
|
+
require('./chunk-EC3NUIJE.js');
|
30
|
+
require('./chunk-O2GYLJVD.js');
|
31
31
|
|
32
32
|
|
33
33
|
|
@@ -55,5 +55,5 @@ require('./chunk-SF4I2NKC.js');
|
|
55
55
|
|
56
56
|
|
57
57
|
|
58
|
-
exports.call =
|
58
|
+
exports.call = _chunkKZMJR27Bjs.call; exports.createBlockFilter = _chunkKZMJR27Bjs.createBlockFilter; exports.createPendingTransactionFilter = _chunkKZMJR27Bjs.createPendingTransactionFilter; exports.deployContract = _chunkKZMJR27Bjs.deployContract; exports.estimateGas = _chunkKZMJR27Bjs.estimateGas; exports.getBalance = _chunkKZMJR27Bjs.getBalance; exports.getBlock = _chunkKZMJR27Bjs.getBlock; exports.getBlockNumber = _chunkKZMJR27Bjs.getBlockNumber; exports.getBlockNumberCache = _chunkKZMJR27Bjs.getBlockNumberCache; exports.getBlockTransactionCount = _chunkKZMJR27Bjs.getBlockTransactionCount; exports.getBytecode = _chunkKZMJR27Bjs.getBytecode; exports.getChainId = _chunkKZMJR27Bjs.getChainId; exports.getFeeHistory = _chunkKZMJR27Bjs.getFeeHistory; exports.getFilterChanges = _chunkKZMJR27Bjs.getFilterChanges; exports.getFilterLogs = _chunkKZMJR27Bjs.getFilterLogs; exports.getGasPrice = _chunkKZMJR27Bjs.getGasPrice; exports.getTransaction = _chunkKZMJR27Bjs.getTransaction; exports.getTransactionConfirmations = _chunkKZMJR27Bjs.getTransactionConfirmations; exports.getTransactionCount = _chunkKZMJR27Bjs.getTransactionCount; exports.getTransactionReceipt = _chunkKZMJR27Bjs.getTransactionReceipt; exports.simulateContract = _chunkKZMJR27Bjs.simulateContract; exports.uninstallFilter = _chunkKZMJR27Bjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkKZMJR27Bjs.waitForTransactionReceipt; exports.watchBlockNumber = _chunkKZMJR27Bjs.watchBlockNumber; exports.watchBlocks = _chunkKZMJR27Bjs.watchBlocks; exports.watchPendingTransactions = _chunkKZMJR27Bjs.watchPendingTransactions;
|
59
59
|
//# sourceMappingURL=public.js.map
|
package/dist/public.mjs
CHANGED
@@ -25,9 +25,9 @@ import {
|
|
25
25
|
watchBlockNumber,
|
26
26
|
watchBlocks,
|
27
27
|
watchPendingTransactions
|
28
|
-
} from "./chunk-
|
29
|
-
import "./chunk-
|
30
|
-
import "./chunk-
|
28
|
+
} from "./chunk-DGO77E2H.mjs";
|
29
|
+
import "./chunk-DSPMAIDO.mjs";
|
30
|
+
import "./chunk-62VTYU2V.mjs";
|
31
31
|
export {
|
32
32
|
call,
|
33
33
|
createBlockFilter,
|
package/dist/test.js
CHANGED
@@ -26,8 +26,8 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
var
|
30
|
-
require('./chunk-
|
29
|
+
var _chunkW7BWWAC4js = require('./chunk-W7BWWAC4.js');
|
30
|
+
require('./chunk-O2GYLJVD.js');
|
31
31
|
|
32
32
|
|
33
33
|
|
@@ -56,5 +56,5 @@ require('./chunk-SF4I2NKC.js');
|
|
56
56
|
|
57
57
|
|
58
58
|
|
59
|
-
exports.dropTransaction =
|
59
|
+
exports.dropTransaction = _chunkW7BWWAC4js.dropTransaction; exports.getAutomine = _chunkW7BWWAC4js.getAutomine; exports.getTxpoolContent = _chunkW7BWWAC4js.getTxpoolContent; exports.getTxpoolStatus = _chunkW7BWWAC4js.getTxpoolStatus; exports.impersonateAccount = _chunkW7BWWAC4js.impersonateAccount; exports.increaseTime = _chunkW7BWWAC4js.increaseTime; exports.inspectTxpool = _chunkW7BWWAC4js.inspectTxpool; exports.mine = _chunkW7BWWAC4js.mine; exports.removeBlockTimestampInterval = _chunkW7BWWAC4js.removeBlockTimestampInterval; exports.reset = _chunkW7BWWAC4js.reset; exports.revert = _chunkW7BWWAC4js.revert; exports.sendUnsignedTransaction = _chunkW7BWWAC4js.sendUnsignedTransaction; exports.setAutomine = _chunkW7BWWAC4js.setAutomine; exports.setBalance = _chunkW7BWWAC4js.setBalance; exports.setBlockGasLimit = _chunkW7BWWAC4js.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkW7BWWAC4js.setBlockTimestampInterval; exports.setCode = _chunkW7BWWAC4js.setCode; exports.setCoinbase = _chunkW7BWWAC4js.setCoinbase; exports.setIntervalMining = _chunkW7BWWAC4js.setIntervalMining; exports.setLoggingEnabled = _chunkW7BWWAC4js.setLoggingEnabled; exports.setMinGasPrice = _chunkW7BWWAC4js.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkW7BWWAC4js.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkW7BWWAC4js.setNextBlockTimestamp; exports.setNonce = _chunkW7BWWAC4js.setNonce; exports.setStorageAt = _chunkW7BWWAC4js.setStorageAt; exports.snapshot = _chunkW7BWWAC4js.snapshot; exports.stopImpersonatingAccount = _chunkW7BWWAC4js.stopImpersonatingAccount;
|
60
60
|
//# sourceMappingURL=test.js.map
|
package/dist/test.mjs
CHANGED
package/dist/utils/index.js
CHANGED
@@ -82,7 +82,7 @@
|
|
82
82
|
|
83
83
|
|
84
84
|
|
85
|
-
var
|
85
|
+
var _chunkO2GYLJVDjs = require('../chunk-O2GYLJVD.js');
|
86
86
|
|
87
87
|
|
88
88
|
|
@@ -167,5 +167,5 @@ var _chunkSF4I2NKCjs = require('../chunk-SF4I2NKC.js');
|
|
167
167
|
|
168
168
|
|
169
169
|
|
170
|
-
exports.boolToBytes =
|
170
|
+
exports.boolToBytes = _chunkO2GYLJVDjs.boolToBytes; exports.boolToHex = _chunkO2GYLJVDjs.boolToHex; exports.buildRequest = _chunkO2GYLJVDjs.buildRequest; exports.bytesToBigint = _chunkO2GYLJVDjs.bytesToBigint; exports.bytesToBool = _chunkO2GYLJVDjs.bytesToBool; exports.bytesToHex = _chunkO2GYLJVDjs.bytesToHex; exports.bytesToNumber = _chunkO2GYLJVDjs.bytesToNumber; exports.bytesToString = _chunkO2GYLJVDjs.bytesToString; exports.decodeAbi = _chunkO2GYLJVDjs.decodeAbi; exports.decodeBytes = _chunkO2GYLJVDjs.decodeBytes; exports.decodeErrorResult = _chunkO2GYLJVDjs.decodeErrorResult; exports.decodeFunctionData = _chunkO2GYLJVDjs.decodeFunctionData; exports.decodeFunctionResult = _chunkO2GYLJVDjs.decodeFunctionResult; exports.decodeHex = _chunkO2GYLJVDjs.decodeHex; exports.decodeRlp = _chunkO2GYLJVDjs.decodeRlp; exports.defineBlock = _chunkO2GYLJVDjs.defineBlock; exports.defineChain = _chunkO2GYLJVDjs.defineChain; exports.defineFormatter = _chunkO2GYLJVDjs.defineFormatter; exports.defineTransaction = _chunkO2GYLJVDjs.defineTransaction; exports.defineTransactionReceipt = _chunkO2GYLJVDjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkO2GYLJVDjs.defineTransactionRequest; exports.encodeAbi = _chunkO2GYLJVDjs.encodeAbi; exports.encodeBytes = _chunkO2GYLJVDjs.encodeBytes; exports.encodeDeployData = _chunkO2GYLJVDjs.encodeDeployData; exports.encodeErrorResult = _chunkO2GYLJVDjs.encodeErrorResult; exports.encodeEventTopics = _chunkO2GYLJVDjs.encodeEventTopics; exports.encodeFunctionData = _chunkO2GYLJVDjs.encodeFunctionData; exports.encodeFunctionResult = _chunkO2GYLJVDjs.encodeFunctionResult; exports.encodeHex = _chunkO2GYLJVDjs.encodeHex; exports.encodeRlp = _chunkO2GYLJVDjs.encodeRlp; exports.etherUnits = _chunkO2GYLJVDjs.etherUnits; exports.extract = _chunkO2GYLJVDjs.extract; exports.extractFunctionName = _chunkO2GYLJVDjs.extractFunctionName; exports.extractFunctionParams = _chunkO2GYLJVDjs.extractFunctionParams; exports.extractFunctionParts = _chunkO2GYLJVDjs.extractFunctionParts; exports.extractFunctionType = _chunkO2GYLJVDjs.extractFunctionType; exports.format = _chunkO2GYLJVDjs.format; exports.formatAbiItem = _chunkO2GYLJVDjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkO2GYLJVDjs.formatAbiItemWithArgs; exports.formatBlock = _chunkO2GYLJVDjs.formatBlock; exports.formatEther = _chunkO2GYLJVDjs.formatEther; exports.formatGwei = _chunkO2GYLJVDjs.formatGwei; exports.formatTransaction = _chunkO2GYLJVDjs.formatTransaction; exports.formatTransactionRequest = _chunkO2GYLJVDjs.formatTransactionRequest; exports.formatUnit = _chunkO2GYLJVDjs.formatUnit; exports.getAbiItem = _chunkO2GYLJVDjs.getAbiItem; exports.getAddress = _chunkO2GYLJVDjs.getAddress; exports.getContractAddress = _chunkO2GYLJVDjs.getContractAddress; exports.getContractError = _chunkO2GYLJVDjs.getContractError; exports.getCreate2Address = _chunkO2GYLJVDjs.getCreate2Address; exports.getCreateAddress = _chunkO2GYLJVDjs.getCreateAddress; exports.getEventSignature = _chunkO2GYLJVDjs.getEventSignature; exports.getFunctionSignature = _chunkO2GYLJVDjs.getFunctionSignature; exports.gweiUnits = _chunkO2GYLJVDjs.gweiUnits; exports.hexToBigInt = _chunkO2GYLJVDjs.hexToBigInt; exports.hexToBool = _chunkO2GYLJVDjs.hexToBool; exports.hexToBytes = _chunkO2GYLJVDjs.hexToBytes; exports.hexToNumber = _chunkO2GYLJVDjs.hexToNumber; exports.hexToString = _chunkO2GYLJVDjs.hexToString; exports.isAddress = _chunkO2GYLJVDjs.isAddress; exports.isAddressEqual = _chunkO2GYLJVDjs.isAddressEqual; exports.isBytes = _chunkO2GYLJVDjs.isBytes; exports.isHex = _chunkO2GYLJVDjs.isHex; exports.keccak256 = _chunkO2GYLJVDjs.keccak256; exports.numberToBytes = _chunkO2GYLJVDjs.numberToBytes; exports.numberToHex = _chunkO2GYLJVDjs.numberToHex; exports.pad = _chunkO2GYLJVDjs.pad; exports.padBytes = _chunkO2GYLJVDjs.padBytes; exports.padHex = _chunkO2GYLJVDjs.padHex; exports.parseEther = _chunkO2GYLJVDjs.parseEther; exports.parseGwei = _chunkO2GYLJVDjs.parseGwei; exports.parseUnit = _chunkO2GYLJVDjs.parseUnit; exports.rpc = _chunkO2GYLJVDjs.rpc; exports.size = _chunkO2GYLJVDjs.size; exports.slice = _chunkO2GYLJVDjs.slice; exports.sliceBytes = _chunkO2GYLJVDjs.sliceBytes; exports.sliceHex = _chunkO2GYLJVDjs.sliceHex; exports.stringToBytes = _chunkO2GYLJVDjs.stringToBytes; exports.stringToHex = _chunkO2GYLJVDjs.stringToHex; exports.stringify = _chunkO2GYLJVDjs.stringify; exports.transactionType = _chunkO2GYLJVDjs.transactionType; exports.trim = _chunkO2GYLJVDjs.trim; exports.weiUnits = _chunkO2GYLJVDjs.weiUnits;
|
171
171
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.mjs
CHANGED
package/dist/wallet.js
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
var
|
12
|
-
require('./chunk-
|
11
|
+
var _chunkEC3NUIJEjs = require('./chunk-EC3NUIJE.js');
|
12
|
+
require('./chunk-O2GYLJVD.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -20,5 +20,5 @@ require('./chunk-SF4I2NKC.js');
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
exports.addChain =
|
23
|
+
exports.addChain = _chunkEC3NUIJEjs.addChain; exports.getAccounts = _chunkEC3NUIJEjs.getAccounts; exports.getPermissions = _chunkEC3NUIJEjs.getPermissions; exports.requestAccounts = _chunkEC3NUIJEjs.requestAccounts; exports.requestPermissions = _chunkEC3NUIJEjs.requestPermissions; exports.sendTransaction = _chunkEC3NUIJEjs.sendTransaction; exports.signMessage = _chunkEC3NUIJEjs.signMessage; exports.switchChain = _chunkEC3NUIJEjs.switchChain; exports.watchAsset = _chunkEC3NUIJEjs.watchAsset;
|
24
24
|
//# sourceMappingURL=wallet.js.map
|
package/dist/wallet.mjs
CHANGED
package/package.json
CHANGED
@@ -897,7 +897,7 @@ describe('dynamic', () => {
|
|
897
897
|
describe('(bytes)', () => {
|
898
898
|
test('default', () => {
|
899
899
|
expect(
|
900
|
-
// cast abi-encode "a(bytes)" "
|
900
|
+
// cast abi-encode "a(bytes)" "0x42069"
|
901
901
|
encodeAbi({
|
902
902
|
params: [
|
903
903
|
{
|
@@ -906,10 +906,44 @@ describe('dynamic', () => {
|
|
906
906
|
type: 'bytes',
|
907
907
|
},
|
908
908
|
],
|
909
|
-
values: ['
|
909
|
+
values: ['0x42069'],
|
910
910
|
}),
|
911
911
|
).toMatchInlineSnapshot(
|
912
|
-
'"
|
912
|
+
'"0x000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000034206900000000000000000000000000000000000000000000000000000000000"',
|
913
|
+
)
|
914
|
+
expect(
|
915
|
+
// cast abi-encode "a(bytes)" "0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045"
|
916
|
+
encodeAbi({
|
917
|
+
params: [
|
918
|
+
{
|
919
|
+
internalType: 'bytes',
|
920
|
+
name: 'xIn',
|
921
|
+
type: 'bytes',
|
922
|
+
},
|
923
|
+
],
|
924
|
+
values: [
|
925
|
+
'0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045',
|
926
|
+
],
|
927
|
+
}),
|
928
|
+
).toMatchInlineSnapshot(
|
929
|
+
'"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000002470a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa9604500000000000000000000000000000000000000000000000000000000"',
|
930
|
+
)
|
931
|
+
expect(
|
932
|
+
// cast abi-encode "a(bytes)" "0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa9604570a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045"
|
933
|
+
encodeAbi({
|
934
|
+
params: [
|
935
|
+
{
|
936
|
+
internalType: 'bytes',
|
937
|
+
name: 'xIn',
|
938
|
+
type: 'bytes',
|
939
|
+
},
|
940
|
+
],
|
941
|
+
values: [
|
942
|
+
'0x70a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa9604570a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045',
|
943
|
+
],
|
944
|
+
}),
|
945
|
+
).toMatchInlineSnapshot(
|
946
|
+
'"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000004870a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa9604570a08231000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa96045000000000000000000000000000000000000000000000000"',
|
913
947
|
)
|
914
948
|
})
|
915
949
|
})
|
@@ -11,7 +11,7 @@ import {
|
|
11
11
|
InvalidArrayError,
|
12
12
|
} from '../../errors'
|
13
13
|
import { Hex } from '../../types'
|
14
|
-
import { concat, padHex, size } from '../data'
|
14
|
+
import { concat, padHex, size, slice } from '../data'
|
15
15
|
import { boolToHex, numberToHex, stringToHex } from '../encoding'
|
16
16
|
|
17
17
|
export type EncodeAbiArgs<TParams extends readonly AbiParameter[]> = {
|
@@ -183,14 +183,20 @@ function encodeBytes<TParam extends AbiParameter>(
|
|
183
183
|
{ param }: { param: TParam },
|
184
184
|
): PreparedParam {
|
185
185
|
const [_, size_] = param.type.split('bytes')
|
186
|
-
if (!size_)
|
186
|
+
if (!size_) {
|
187
|
+
const partsLength = Math.floor(size(value) / 32)
|
188
|
+
const parts: Hex[] = []
|
189
|
+
for (let i = 0; i < partsLength + 1; i++) {
|
190
|
+
parts.push(padHex(slice(value, i * 32, (i + 1) * 32), { dir: 'right' }))
|
191
|
+
}
|
187
192
|
return {
|
188
193
|
dynamic: true,
|
189
194
|
encoded: concat([
|
190
195
|
padHex(numberToHex(size(value), { size: 32 })),
|
191
|
-
|
196
|
+
...parts,
|
192
197
|
]),
|
193
198
|
}
|
199
|
+
}
|
194
200
|
return { dynamic: false, encoded: padHex(value, { dir: 'right' }) }
|
195
201
|
}
|
196
202
|
|