viem 0.2.7 → 0.2.9
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/abi.js +2 -2
- package/dist/abi.mjs +1 -1
- package/dist/accounts/index.js +17 -17
- package/dist/accounts/index.mjs +2 -2
- package/dist/chains.js +89 -89
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-ULUVNOX4.js → chunk-3IHFW55B.js} +3 -4
- package/dist/chunk-3IHFW55B.js.map +1 -0
- package/dist/{chunk-FJBYL4CX.mjs → chunk-DHU5S5YF.mjs} +3 -4
- package/dist/chunk-DHU5S5YF.mjs.map +1 -0
- package/dist/{chunk-6MARLCNB.js → chunk-EW5GG2YC.js} +6 -6
- package/dist/{chunk-EXO7YYTV.mjs → chunk-OEUINA6X.mjs} +2 -2
- package/dist/contract.js +2 -2
- package/dist/contract.mjs +1 -1
- package/dist/ens.d.ts +2 -1
- package/dist/ens.js +5 -5
- package/dist/ens.js.map +1 -1
- package/dist/ens.mjs +3 -3
- package/dist/ens.mjs.map +1 -1
- package/dist/ethers.js +4 -4
- package/dist/ethers.mjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +95 -97
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -4
- package/dist/index.mjs.map +1 -1
- package/dist/public.js +2 -2
- package/dist/public.mjs +1 -1
- package/dist/test.js +2 -2
- package/dist/test.mjs +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-FJBYL4CX.mjs.map +0 -1
- package/dist/chunk-ULUVNOX4.js.map +0 -1
- /package/dist/{chunk-6MARLCNB.js.map → chunk-EW5GG2YC.js.map} +0 -0
- /package/dist/{chunk-EXO7YYTV.mjs.map → chunk-OEUINA6X.mjs.map} +0 -0
package/dist/public.js
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
var
|
29
|
+
var _chunk3IHFW55Bjs = require('./chunk-3IHFW55B.js');
|
30
30
|
|
31
31
|
|
32
32
|
|
@@ -55,5 +55,5 @@ var _chunkULUVNOX4js = require('./chunk-ULUVNOX4.js');
|
|
55
55
|
|
56
56
|
|
57
57
|
|
58
|
-
exports.call =
|
58
|
+
exports.call = _chunk3IHFW55Bjs.call; exports.createBlockFilter = _chunk3IHFW55Bjs.createBlockFilter; exports.createEventFilter = _chunk3IHFW55Bjs.createEventFilter; exports.createPendingTransactionFilter = _chunk3IHFW55Bjs.createPendingTransactionFilter; exports.estimateGas = _chunk3IHFW55Bjs.estimateGas; exports.getBalance = _chunk3IHFW55Bjs.getBalance; exports.getBlock = _chunk3IHFW55Bjs.getBlock; exports.getBlockNumber = _chunk3IHFW55Bjs.getBlockNumber; exports.getBlockNumberCache = _chunk3IHFW55Bjs.getBlockNumberCache; exports.getBlockTransactionCount = _chunk3IHFW55Bjs.getBlockTransactionCount; exports.getBytecode = _chunk3IHFW55Bjs.getBytecode; exports.getChainId = _chunk3IHFW55Bjs.getChainId; exports.getFeeHistory = _chunk3IHFW55Bjs.getFeeHistory; exports.getFilterChanges = _chunk3IHFW55Bjs.getFilterChanges; exports.getFilterLogs = _chunk3IHFW55Bjs.getFilterLogs; exports.getGasPrice = _chunk3IHFW55Bjs.getGasPrice; exports.getLogs = _chunk3IHFW55Bjs.getLogs; exports.getTransaction = _chunk3IHFW55Bjs.getTransaction; exports.getTransactionConfirmations = _chunk3IHFW55Bjs.getTransactionConfirmations; exports.getTransactionCount = _chunk3IHFW55Bjs.getTransactionCount; exports.getTransactionReceipt = _chunk3IHFW55Bjs.getTransactionReceipt; exports.uninstallFilter = _chunk3IHFW55Bjs.uninstallFilter; exports.waitForTransactionReceipt = _chunk3IHFW55Bjs.waitForTransactionReceipt; exports.watchBlockNumber = _chunk3IHFW55Bjs.watchBlockNumber; exports.watchBlocks = _chunk3IHFW55Bjs.watchBlocks; exports.watchEvent = _chunk3IHFW55Bjs.watchEvent; exports.watchPendingTransactions = _chunk3IHFW55Bjs.watchPendingTransactions;
|
59
59
|
//# sourceMappingURL=public.js.map
|
package/dist/public.mjs
CHANGED
package/dist/test.js
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
|
30
|
-
var
|
30
|
+
var _chunk3IHFW55Bjs = require('./chunk-3IHFW55B.js');
|
31
31
|
|
32
32
|
|
33
33
|
|
@@ -57,5 +57,5 @@ var _chunkULUVNOX4js = require('./chunk-ULUVNOX4.js');
|
|
57
57
|
|
58
58
|
|
59
59
|
|
60
|
-
exports.dropTransaction =
|
60
|
+
exports.dropTransaction = _chunk3IHFW55Bjs.dropTransaction; exports.getAutomine = _chunk3IHFW55Bjs.getAutomine; exports.getTxpoolContent = _chunk3IHFW55Bjs.getTxpoolContent; exports.getTxpoolStatus = _chunk3IHFW55Bjs.getTxpoolStatus; exports.impersonateAccount = _chunk3IHFW55Bjs.impersonateAccount; exports.increaseTime = _chunk3IHFW55Bjs.increaseTime; exports.inspectTxpool = _chunk3IHFW55Bjs.inspectTxpool; exports.mine = _chunk3IHFW55Bjs.mine; exports.removeBlockTimestampInterval = _chunk3IHFW55Bjs.removeBlockTimestampInterval; exports.reset = _chunk3IHFW55Bjs.reset; exports.revert = _chunk3IHFW55Bjs.revert; exports.sendUnsignedTransaction = _chunk3IHFW55Bjs.sendUnsignedTransaction; exports.setAutomine = _chunk3IHFW55Bjs.setAutomine; exports.setBalance = _chunk3IHFW55Bjs.setBalance; exports.setBlockGasLimit = _chunk3IHFW55Bjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunk3IHFW55Bjs.setBlockTimestampInterval; exports.setCode = _chunk3IHFW55Bjs.setCode; exports.setCoinbase = _chunk3IHFW55Bjs.setCoinbase; exports.setIntervalMining = _chunk3IHFW55Bjs.setIntervalMining; exports.setLoggingEnabled = _chunk3IHFW55Bjs.setLoggingEnabled; exports.setMinGasPrice = _chunk3IHFW55Bjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunk3IHFW55Bjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunk3IHFW55Bjs.setNextBlockTimestamp; exports.setNonce = _chunk3IHFW55Bjs.setNonce; exports.setRpcUrl = _chunk3IHFW55Bjs.setRpcUrl; exports.setStorageAt = _chunk3IHFW55Bjs.setStorageAt; exports.snapshot = _chunk3IHFW55Bjs.snapshot; exports.stopImpersonatingAccount = _chunk3IHFW55Bjs.stopImpersonatingAccount;
|
61
61
|
//# sourceMappingURL=test.js.map
|
package/dist/test.mjs
CHANGED
package/dist/utils/index.js
CHANGED
@@ -118,7 +118,7 @@
|
|
118
118
|
|
119
119
|
|
120
120
|
|
121
|
-
var
|
121
|
+
var _chunk3IHFW55Bjs = require('../chunk-3IHFW55B.js');
|
122
122
|
|
123
123
|
|
124
124
|
|
@@ -239,5 +239,5 @@ var _chunkULUVNOX4js = require('../chunk-ULUVNOX4.js');
|
|
239
239
|
|
240
240
|
|
241
241
|
|
242
|
-
exports.arrayRegex =
|
242
|
+
exports.arrayRegex = _chunk3IHFW55Bjs.arrayRegex; exports.assertRequest = _chunk3IHFW55Bjs.assertRequest; exports.assertTransactionEIP1559 = _chunk3IHFW55Bjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunk3IHFW55Bjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunk3IHFW55Bjs.assertTransactionLegacy; exports.boolToBytes = _chunk3IHFW55Bjs.boolToBytes; exports.boolToHex = _chunk3IHFW55Bjs.boolToHex; exports.buildRequest = _chunk3IHFW55Bjs.buildRequest; exports.bytesRegex = _chunk3IHFW55Bjs.bytesRegex; exports.bytesToBigint = _chunk3IHFW55Bjs.bytesToBigint; exports.bytesToBool = _chunk3IHFW55Bjs.bytesToBool; exports.bytesToHex = _chunk3IHFW55Bjs.bytesToHex; exports.bytesToNumber = _chunk3IHFW55Bjs.bytesToNumber; exports.bytesToString = _chunk3IHFW55Bjs.bytesToString; exports.concat = _chunk3IHFW55Bjs.concat; exports.concatBytes = _chunk3IHFW55Bjs.concatBytes; exports.concatHex = _chunk3IHFW55Bjs.concatHex; exports.containsNodeError = _chunk3IHFW55Bjs.containsNodeError; exports.decodeAbiParameters = _chunk3IHFW55Bjs.decodeAbiParameters; exports.decodeErrorResult = _chunk3IHFW55Bjs.decodeErrorResult; exports.decodeEventLog = _chunk3IHFW55Bjs.decodeEventLog; exports.decodeFunctionData = _chunk3IHFW55Bjs.decodeFunctionData; exports.decodeFunctionResult = _chunk3IHFW55Bjs.decodeFunctionResult; exports.defineBlock = _chunk3IHFW55Bjs.defineBlock; exports.defineChain = _chunk3IHFW55Bjs.defineChain; exports.defineFormatter = _chunk3IHFW55Bjs.defineFormatter; exports.defineTransaction = _chunk3IHFW55Bjs.defineTransaction; exports.defineTransactionReceipt = _chunk3IHFW55Bjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunk3IHFW55Bjs.defineTransactionRequest; exports.encodeAbiParameters = _chunk3IHFW55Bjs.encodeAbiParameters; exports.encodeDeployData = _chunk3IHFW55Bjs.encodeDeployData; exports.encodeErrorResult = _chunk3IHFW55Bjs.encodeErrorResult; exports.encodeEventTopics = _chunk3IHFW55Bjs.encodeEventTopics; exports.encodeFunctionData = _chunk3IHFW55Bjs.encodeFunctionData; exports.encodeFunctionResult = _chunk3IHFW55Bjs.encodeFunctionResult; exports.encodePacked = _chunk3IHFW55Bjs.encodePacked; exports.extract = _chunk3IHFW55Bjs.extract; exports.extractFunctionName = _chunk3IHFW55Bjs.extractFunctionName; exports.extractFunctionParams = _chunk3IHFW55Bjs.extractFunctionParams; exports.extractFunctionParts = _chunk3IHFW55Bjs.extractFunctionParts; exports.extractFunctionType = _chunk3IHFW55Bjs.extractFunctionType; exports.format = _chunk3IHFW55Bjs.format; exports.formatAbiItem = _chunk3IHFW55Bjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunk3IHFW55Bjs.formatAbiItemWithArgs; exports.formatBlock = _chunk3IHFW55Bjs.formatBlock; exports.formatEther = _chunk3IHFW55Bjs.formatEther; exports.formatGwei = _chunk3IHFW55Bjs.formatGwei; exports.formatTransaction = _chunk3IHFW55Bjs.formatTransaction; exports.formatTransactionRequest = _chunk3IHFW55Bjs.formatTransactionRequest; exports.formatUnits = _chunk3IHFW55Bjs.formatUnits; exports.fromBytes = _chunk3IHFW55Bjs.fromBytes; exports.fromHex = _chunk3IHFW55Bjs.fromHex; exports.fromRlp = _chunk3IHFW55Bjs.fromRlp; exports.getAbiItem = _chunk3IHFW55Bjs.getAbiItem; exports.getAddress = _chunk3IHFW55Bjs.getAddress; exports.getCallError = _chunk3IHFW55Bjs.getCallError; exports.getChainContractAddress = _chunk3IHFW55Bjs.getChainContractAddress; exports.getContractAddress = _chunk3IHFW55Bjs.getContractAddress; exports.getContractError = _chunk3IHFW55Bjs.getContractError; exports.getCreate2Address = _chunk3IHFW55Bjs.getCreate2Address; exports.getCreateAddress = _chunk3IHFW55Bjs.getCreateAddress; exports.getEstimateGasError = _chunk3IHFW55Bjs.getEstimateGasError; exports.getEventSelector = _chunk3IHFW55Bjs.getEventSelector; exports.getFunctionSelector = _chunk3IHFW55Bjs.getFunctionSelector; exports.getNodeError = _chunk3IHFW55Bjs.getNodeError; exports.getSerializedTransactionType = _chunk3IHFW55Bjs.getSerializedTransactionType; exports.getSocket = _chunk3IHFW55Bjs.getSocket; exports.getTransactionError = _chunk3IHFW55Bjs.getTransactionError; exports.getTransactionType = _chunk3IHFW55Bjs.getTransactionType; exports.hashMessage = _chunk3IHFW55Bjs.hashMessage; exports.hashTypedData = _chunk3IHFW55Bjs.hashTypedData; exports.hexToBigInt = _chunk3IHFW55Bjs.hexToBigInt; exports.hexToBool = _chunk3IHFW55Bjs.hexToBool; exports.hexToBytes = _chunk3IHFW55Bjs.hexToBytes; exports.hexToNumber = _chunk3IHFW55Bjs.hexToNumber; exports.hexToString = _chunk3IHFW55Bjs.hexToString; exports.integerRegex = _chunk3IHFW55Bjs.integerRegex; exports.isAddress = _chunk3IHFW55Bjs.isAddress; exports.isAddressEqual = _chunk3IHFW55Bjs.isAddressEqual; exports.isBytes = _chunk3IHFW55Bjs.isBytes; exports.isHash = _chunk3IHFW55Bjs.isHash; exports.isHex = _chunk3IHFW55Bjs.isHex; exports.keccak256 = _chunk3IHFW55Bjs.keccak256; exports.numberToBytes = _chunk3IHFW55Bjs.numberToBytes; exports.numberToHex = _chunk3IHFW55Bjs.numberToHex; exports.pad = _chunk3IHFW55Bjs.pad; exports.padBytes = _chunk3IHFW55Bjs.padBytes; exports.padHex = _chunk3IHFW55Bjs.padHex; exports.parseAbi = _chunk3IHFW55Bjs.parseAbi; exports.parseAbiItem = _chunk3IHFW55Bjs.parseAbiItem; exports.parseAbiParameter = _chunk3IHFW55Bjs.parseAbiParameter; exports.parseAbiParameters = _chunk3IHFW55Bjs.parseAbiParameters; exports.parseAccount = _chunk3IHFW55Bjs.parseAccount; exports.parseEther = _chunk3IHFW55Bjs.parseEther; exports.parseGwei = _chunk3IHFW55Bjs.parseGwei; exports.parseTransaction = _chunk3IHFW55Bjs.parseTransaction; exports.parseUnits = _chunk3IHFW55Bjs.parseUnits; exports.prepareRequest = _chunk3IHFW55Bjs.prepareRequest; exports.publicKeyToAddress = _chunk3IHFW55Bjs.publicKeyToAddress; exports.recoverAddress = _chunk3IHFW55Bjs.recoverAddress; exports.recoverMessageAddress = _chunk3IHFW55Bjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunk3IHFW55Bjs.recoverTypedDataAddress; exports.rpc = _chunk3IHFW55Bjs.rpc; exports.serializeTransaction = _chunk3IHFW55Bjs.serializeTransaction; exports.size = _chunk3IHFW55Bjs.size; exports.slice = _chunk3IHFW55Bjs.slice; exports.sliceBytes = _chunk3IHFW55Bjs.sliceBytes; exports.sliceHex = _chunk3IHFW55Bjs.sliceHex; exports.stringToBytes = _chunk3IHFW55Bjs.stringToBytes; exports.stringToHex = _chunk3IHFW55Bjs.stringToHex; exports.stringify = _chunk3IHFW55Bjs.stringify; exports.toBytes = _chunk3IHFW55Bjs.toBytes; exports.toHex = _chunk3IHFW55Bjs.toHex; exports.toRlp = _chunk3IHFW55Bjs.toRlp; exports.transactionType = _chunk3IHFW55Bjs.transactionType; exports.trim = _chunk3IHFW55Bjs.trim; exports.validateTypedData = _chunk3IHFW55Bjs.validateTypedData; exports.verifyMessage = _chunk3IHFW55Bjs.verifyMessage; exports.verifyTypedData = _chunk3IHFW55Bjs.verifyTypedData;
|
243
243
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.mjs
CHANGED
package/dist/wallet.js
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
-
var
|
12
|
+
var _chunk3IHFW55Bjs = require('./chunk-3IHFW55B.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -21,5 +21,5 @@ var _chunkULUVNOX4js = require('./chunk-ULUVNOX4.js');
|
|
21
21
|
|
22
22
|
|
23
23
|
|
24
|
-
exports.addChain =
|
24
|
+
exports.addChain = _chunk3IHFW55Bjs.addChain; exports.getAddresses = _chunk3IHFW55Bjs.getAddresses; exports.getPermissions = _chunk3IHFW55Bjs.getPermissions; exports.requestAddresses = _chunk3IHFW55Bjs.requestAddresses; exports.requestPermissions = _chunk3IHFW55Bjs.requestPermissions; exports.sendTransaction = _chunk3IHFW55Bjs.sendTransaction; exports.signMessage = _chunk3IHFW55Bjs.signMessage; exports.signTypedData = _chunk3IHFW55Bjs.signTypedData; exports.switchChain = _chunk3IHFW55Bjs.switchChain; exports.watchAsset = _chunk3IHFW55Bjs.watchAsset;
|
25
25
|
//# sourceMappingURL=wallet.js.map
|
package/dist/wallet.mjs
CHANGED
package/package.json
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
"name": "viem",
|
3
3
|
"description": "TypeScript Interface for Ethereum",
|
4
4
|
"dependencies": {
|
5
|
+
"@adraffy/ens-normalize": "1.9.0",
|
5
6
|
"@noble/curves": "0.9.0",
|
6
7
|
"@noble/hashes": "1.3.0",
|
7
8
|
"@scure/bip32": "1.2.0",
|
8
9
|
"@scure/bip39": "1.2.0",
|
9
10
|
"@wagmi/chains": "0.2.16",
|
10
11
|
"abitype": "0.7.1",
|
11
|
-
"idna-uts46-hx": "4.1.2",
|
12
12
|
"isomorphic-ws": "5.0.0",
|
13
13
|
"ws": "8.12.0"
|
14
14
|
},
|
15
|
-
"version": "0.2.
|
15
|
+
"version": "0.2.9",
|
16
16
|
"files": [
|
17
17
|
"/abi",
|
18
18
|
"/accounts",
|