viem 0.2.6 → 0.2.8
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.d.ts +3 -3
- package/dist/abi.js +2 -2
- package/dist/abi.mjs +1 -1
- package/dist/accounts/index.d.ts +4 -4
- package/dist/accounts/index.js +17 -17
- package/dist/accounts/index.mjs +2 -2
- package/dist/{chain-892805a2.d.ts → chain-02c77999.d.ts} +3 -1
- package/dist/{chain-d06e2a80.d.ts → chain-29e97b48.d.ts} +1 -1
- package/dist/chains.d.ts +3 -3
- package/dist/chains.js +89 -89
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-AWZ7ROLD.mjs → chunk-DXKVBX5S.mjs} +3 -4
- package/dist/chunk-DXKVBX5S.mjs.map +1 -0
- package/dist/{chunk-UOOOQDP7.mjs → chunk-KDUIUOGY.mjs} +2 -2
- package/dist/{chunk-GEN2W3H2.js → chunk-TFIHG36G.js} +3 -4
- package/dist/chunk-TFIHG36G.js.map +1 -0
- package/dist/{chunk-IPKAMASI.js → chunk-YQWSPTO6.js} +6 -6
- package/dist/contract.d.ts +8 -8
- package/dist/contract.js +2 -2
- package/dist/contract.mjs +1 -1
- package/dist/{createTransport-9692876d.d.ts → createTransport-55339615.d.ts} +2 -2
- package/dist/{eip1193-16c1b134.d.ts → eip1193-07d9c47f.d.ts} +1 -1
- package/dist/{encodeFunctionResult-5b30ddf1.d.ts → encodeFunctionResult-f7c8e382.d.ts} +1 -1
- package/dist/{encodePacked-0ac1e458.d.ts → encodePacked-462bce62.d.ts} +1 -1
- package/dist/ens.d.ts +7 -6
- 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.d.ts +2 -2
- package/dist/ethers.js +4 -4
- package/dist/ethers.mjs +2 -2
- package/dist/{formatAbiItem-c722de85.d.ts → formatAbiItem-e5bbcadb.d.ts} +1 -1
- package/dist/{getAbiItem-6223ab36.d.ts → getAbiItem-443d91a0.d.ts} +1 -1
- package/dist/{getEnsResolver-af3ad3a8.d.ts → getEnsResolver-314de6e9.d.ts} +4 -4
- package/dist/index.d.ts +16 -16
- package/dist/index.js +94 -94
- package/dist/index.mjs +1 -1
- package/dist/{parseGwei-3bead650.d.ts → parseGwei-4fb29d96.d.ts} +5 -5
- package/dist/public.d.ts +5 -5
- package/dist/public.js +2 -2
- package/dist/public.mjs +1 -1
- package/dist/{publicKeyToAddress-2e49b7cb.d.ts → publicKeyToAddress-52476df3.d.ts} +2 -2
- package/dist/{test-1cc18fdd.d.ts → test-2d6d9a8d.d.ts} +3 -3
- package/dist/test.d.ts +5 -5
- package/dist/test.js +2 -2
- package/dist/test.mjs +1 -1
- package/dist/{typedData-969116ac.d.ts → typedData-337e8d8f.d.ts} +1 -1
- package/dist/utils/index.d.ts +15 -15
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.d.ts +5 -5
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/dist/window.d.ts +2 -2
- package/package.json +2 -2
- package/dist/chunk-AWZ7ROLD.mjs.map +0 -1
- package/dist/chunk-GEN2W3H2.js.map +0 -1
- /package/dist/{chunk-UOOOQDP7.mjs.map → chunk-KDUIUOGY.mjs.map} +0 -0
- /package/dist/{chunk-IPKAMASI.js.map → chunk-YQWSPTO6.js.map} +0 -0
package/dist/utils/index.js
CHANGED
@@ -118,7 +118,7 @@
|
|
118
118
|
|
119
119
|
|
120
120
|
|
121
|
-
var
|
121
|
+
var _chunkTFIHG36Gjs = require('../chunk-TFIHG36G.js');
|
122
122
|
|
123
123
|
|
124
124
|
|
@@ -239,5 +239,5 @@ var _chunkGEN2W3H2js = require('../chunk-GEN2W3H2.js');
|
|
239
239
|
|
240
240
|
|
241
241
|
|
242
|
-
exports.arrayRegex =
|
242
|
+
exports.arrayRegex = _chunkTFIHG36Gjs.arrayRegex; exports.assertRequest = _chunkTFIHG36Gjs.assertRequest; exports.assertTransactionEIP1559 = _chunkTFIHG36Gjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunkTFIHG36Gjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunkTFIHG36Gjs.assertTransactionLegacy; exports.boolToBytes = _chunkTFIHG36Gjs.boolToBytes; exports.boolToHex = _chunkTFIHG36Gjs.boolToHex; exports.buildRequest = _chunkTFIHG36Gjs.buildRequest; exports.bytesRegex = _chunkTFIHG36Gjs.bytesRegex; exports.bytesToBigint = _chunkTFIHG36Gjs.bytesToBigint; exports.bytesToBool = _chunkTFIHG36Gjs.bytesToBool; exports.bytesToHex = _chunkTFIHG36Gjs.bytesToHex; exports.bytesToNumber = _chunkTFIHG36Gjs.bytesToNumber; exports.bytesToString = _chunkTFIHG36Gjs.bytesToString; exports.concat = _chunkTFIHG36Gjs.concat; exports.concatBytes = _chunkTFIHG36Gjs.concatBytes; exports.concatHex = _chunkTFIHG36Gjs.concatHex; exports.containsNodeError = _chunkTFIHG36Gjs.containsNodeError; exports.decodeAbiParameters = _chunkTFIHG36Gjs.decodeAbiParameters; exports.decodeErrorResult = _chunkTFIHG36Gjs.decodeErrorResult; exports.decodeEventLog = _chunkTFIHG36Gjs.decodeEventLog; exports.decodeFunctionData = _chunkTFIHG36Gjs.decodeFunctionData; exports.decodeFunctionResult = _chunkTFIHG36Gjs.decodeFunctionResult; exports.defineBlock = _chunkTFIHG36Gjs.defineBlock; exports.defineChain = _chunkTFIHG36Gjs.defineChain; exports.defineFormatter = _chunkTFIHG36Gjs.defineFormatter; exports.defineTransaction = _chunkTFIHG36Gjs.defineTransaction; exports.defineTransactionReceipt = _chunkTFIHG36Gjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkTFIHG36Gjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkTFIHG36Gjs.encodeAbiParameters; exports.encodeDeployData = _chunkTFIHG36Gjs.encodeDeployData; exports.encodeErrorResult = _chunkTFIHG36Gjs.encodeErrorResult; exports.encodeEventTopics = _chunkTFIHG36Gjs.encodeEventTopics; exports.encodeFunctionData = _chunkTFIHG36Gjs.encodeFunctionData; exports.encodeFunctionResult = _chunkTFIHG36Gjs.encodeFunctionResult; exports.encodePacked = _chunkTFIHG36Gjs.encodePacked; exports.extract = _chunkTFIHG36Gjs.extract; exports.extractFunctionName = _chunkTFIHG36Gjs.extractFunctionName; exports.extractFunctionParams = _chunkTFIHG36Gjs.extractFunctionParams; exports.extractFunctionParts = _chunkTFIHG36Gjs.extractFunctionParts; exports.extractFunctionType = _chunkTFIHG36Gjs.extractFunctionType; exports.format = _chunkTFIHG36Gjs.format; exports.formatAbiItem = _chunkTFIHG36Gjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkTFIHG36Gjs.formatAbiItemWithArgs; exports.formatBlock = _chunkTFIHG36Gjs.formatBlock; exports.formatEther = _chunkTFIHG36Gjs.formatEther; exports.formatGwei = _chunkTFIHG36Gjs.formatGwei; exports.formatTransaction = _chunkTFIHG36Gjs.formatTransaction; exports.formatTransactionRequest = _chunkTFIHG36Gjs.formatTransactionRequest; exports.formatUnits = _chunkTFIHG36Gjs.formatUnits; exports.fromBytes = _chunkTFIHG36Gjs.fromBytes; exports.fromHex = _chunkTFIHG36Gjs.fromHex; exports.fromRlp = _chunkTFIHG36Gjs.fromRlp; exports.getAbiItem = _chunkTFIHG36Gjs.getAbiItem; exports.getAddress = _chunkTFIHG36Gjs.getAddress; exports.getCallError = _chunkTFIHG36Gjs.getCallError; exports.getChainContractAddress = _chunkTFIHG36Gjs.getChainContractAddress; exports.getContractAddress = _chunkTFIHG36Gjs.getContractAddress; exports.getContractError = _chunkTFIHG36Gjs.getContractError; exports.getCreate2Address = _chunkTFIHG36Gjs.getCreate2Address; exports.getCreateAddress = _chunkTFIHG36Gjs.getCreateAddress; exports.getEstimateGasError = _chunkTFIHG36Gjs.getEstimateGasError; exports.getEventSelector = _chunkTFIHG36Gjs.getEventSelector; exports.getFunctionSelector = _chunkTFIHG36Gjs.getFunctionSelector; exports.getNodeError = _chunkTFIHG36Gjs.getNodeError; exports.getSerializedTransactionType = _chunkTFIHG36Gjs.getSerializedTransactionType; exports.getSocket = _chunkTFIHG36Gjs.getSocket; exports.getTransactionError = _chunkTFIHG36Gjs.getTransactionError; exports.getTransactionType = _chunkTFIHG36Gjs.getTransactionType; exports.hashMessage = _chunkTFIHG36Gjs.hashMessage; exports.hashTypedData = _chunkTFIHG36Gjs.hashTypedData; exports.hexToBigInt = _chunkTFIHG36Gjs.hexToBigInt; exports.hexToBool = _chunkTFIHG36Gjs.hexToBool; exports.hexToBytes = _chunkTFIHG36Gjs.hexToBytes; exports.hexToNumber = _chunkTFIHG36Gjs.hexToNumber; exports.hexToString = _chunkTFIHG36Gjs.hexToString; exports.integerRegex = _chunkTFIHG36Gjs.integerRegex; exports.isAddress = _chunkTFIHG36Gjs.isAddress; exports.isAddressEqual = _chunkTFIHG36Gjs.isAddressEqual; exports.isBytes = _chunkTFIHG36Gjs.isBytes; exports.isHash = _chunkTFIHG36Gjs.isHash; exports.isHex = _chunkTFIHG36Gjs.isHex; exports.keccak256 = _chunkTFIHG36Gjs.keccak256; exports.numberToBytes = _chunkTFIHG36Gjs.numberToBytes; exports.numberToHex = _chunkTFIHG36Gjs.numberToHex; exports.pad = _chunkTFIHG36Gjs.pad; exports.padBytes = _chunkTFIHG36Gjs.padBytes; exports.padHex = _chunkTFIHG36Gjs.padHex; exports.parseAbi = _chunkTFIHG36Gjs.parseAbi; exports.parseAbiItem = _chunkTFIHG36Gjs.parseAbiItem; exports.parseAbiParameter = _chunkTFIHG36Gjs.parseAbiParameter; exports.parseAbiParameters = _chunkTFIHG36Gjs.parseAbiParameters; exports.parseAccount = _chunkTFIHG36Gjs.parseAccount; exports.parseEther = _chunkTFIHG36Gjs.parseEther; exports.parseGwei = _chunkTFIHG36Gjs.parseGwei; exports.parseTransaction = _chunkTFIHG36Gjs.parseTransaction; exports.parseUnits = _chunkTFIHG36Gjs.parseUnits; exports.prepareRequest = _chunkTFIHG36Gjs.prepareRequest; exports.publicKeyToAddress = _chunkTFIHG36Gjs.publicKeyToAddress; exports.recoverAddress = _chunkTFIHG36Gjs.recoverAddress; exports.recoverMessageAddress = _chunkTFIHG36Gjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunkTFIHG36Gjs.recoverTypedDataAddress; exports.rpc = _chunkTFIHG36Gjs.rpc; exports.serializeTransaction = _chunkTFIHG36Gjs.serializeTransaction; exports.size = _chunkTFIHG36Gjs.size; exports.slice = _chunkTFIHG36Gjs.slice; exports.sliceBytes = _chunkTFIHG36Gjs.sliceBytes; exports.sliceHex = _chunkTFIHG36Gjs.sliceHex; exports.stringToBytes = _chunkTFIHG36Gjs.stringToBytes; exports.stringToHex = _chunkTFIHG36Gjs.stringToHex; exports.stringify = _chunkTFIHG36Gjs.stringify; exports.toBytes = _chunkTFIHG36Gjs.toBytes; exports.toHex = _chunkTFIHG36Gjs.toHex; exports.toRlp = _chunkTFIHG36Gjs.toRlp; exports.transactionType = _chunkTFIHG36Gjs.transactionType; exports.trim = _chunkTFIHG36Gjs.trim; exports.validateTypedData = _chunkTFIHG36Gjs.validateTypedData; exports.verifyMessage = _chunkTFIHG36Gjs.verifyMessage; exports.verifyTypedData = _chunkTFIHG36Gjs.verifyTypedData;
|
243
243
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.mjs
CHANGED
package/dist/wallet.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
export { A as AddChainParameters, bX as FormattedTransactionRequest, G as GetAddressesReturnType, _ as GetPermissionsReturnType, al as RequestAddressesReturnType, am as RequestPermissionsReturnType, ao as SendTransactionParameters, ap as SendTransactionReturnType, aq as SignMessageParameters, ar as SignMessageReturnType, as as SignTypedDataParameters, at as SignTypedDataReturnType, au as SwitchChainParameters, az as WatchAssetParameters, aA as WatchAssetReturnType, bN as addChain, bO as getAddresses, bP as getPermissions, bQ as requestAddresses, bR as requestPermissions, bS as sendTransaction, bT as signMessage, bU as signTypedData, bV as switchChain, bW as watchAsset } from './getEnsResolver-
|
2
|
-
import './createTransport-
|
3
|
-
import './eip1193-
|
1
|
+
export { A as AddChainParameters, bX as FormattedTransactionRequest, G as GetAddressesReturnType, _ as GetPermissionsReturnType, al as RequestAddressesReturnType, am as RequestPermissionsReturnType, ao as SendTransactionParameters, ap as SendTransactionReturnType, aq as SignMessageParameters, ar as SignMessageReturnType, as as SignTypedDataParameters, at as SignTypedDataReturnType, au as SwitchChainParameters, az as WatchAssetParameters, aA as WatchAssetReturnType, bN as addChain, bO as getAddresses, bP as getPermissions, bQ as requestAddresses, bR as requestPermissions, bS as sendTransaction, bT as signMessage, bU as signTypedData, bV as switchChain, bW as watchAsset } from './getEnsResolver-314de6e9.js';
|
2
|
+
import './createTransport-55339615.js';
|
3
|
+
import './eip1193-07d9c47f.js';
|
4
4
|
import 'abitype';
|
5
|
-
import './chain-
|
5
|
+
import './chain-02c77999.js';
|
6
6
|
import '@wagmi/chains';
|
7
|
-
import './typedData-
|
7
|
+
import './typedData-337e8d8f.js';
|
8
8
|
import '@scure/bip32';
|
package/dist/wallet.js
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
-
var
|
12
|
+
var _chunkTFIHG36Gjs = require('./chunk-TFIHG36G.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -21,5 +21,5 @@ var _chunkGEN2W3H2js = require('./chunk-GEN2W3H2.js');
|
|
21
21
|
|
22
22
|
|
23
23
|
|
24
|
-
exports.addChain =
|
24
|
+
exports.addChain = _chunkTFIHG36Gjs.addChain; exports.getAddresses = _chunkTFIHG36Gjs.getAddresses; exports.getPermissions = _chunkTFIHG36Gjs.getPermissions; exports.requestAddresses = _chunkTFIHG36Gjs.requestAddresses; exports.requestPermissions = _chunkTFIHG36Gjs.requestPermissions; exports.sendTransaction = _chunkTFIHG36Gjs.sendTransaction; exports.signMessage = _chunkTFIHG36Gjs.signMessage; exports.signTypedData = _chunkTFIHG36Gjs.signTypedData; exports.switchChain = _chunkTFIHG36Gjs.switchChain; exports.watchAsset = _chunkTFIHG36Gjs.watchAsset;
|
25
25
|
//# sourceMappingURL=wallet.js.map
|
package/dist/wallet.mjs
CHANGED
package/dist/window.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { R as Requests, E as Events } from './eip1193-
|
1
|
+
import { R as Requests, E as Events } from './eip1193-07d9c47f.js';
|
2
2
|
import 'abitype';
|
3
|
-
import './chain-
|
3
|
+
import './chain-02c77999.js';
|
4
4
|
import '@wagmi/chains';
|
5
5
|
|
6
6
|
type WindowProvider = Requests & Events;
|
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.8",
|
16
16
|
"files": [
|
17
17
|
"/abi",
|
18
18
|
"/accounts",
|