viem 0.3.0-main.20230404T223908 → 0.3.0-main.20230406T001624
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-Z2CBCLIP.js → chunk-7XF4WHMR.js} +6 -6
- package/dist/{chunk-HNJPZOTY.mjs → chunk-NP7HQ3GK.mjs} +3 -4
- package/dist/chunk-NP7HQ3GK.mjs.map +1 -0
- package/dist/{chunk-XIX7YAOP.mjs → chunk-P7QGGIKB.mjs} +2 -2
- package/dist/{chunk-LXW72PZZ.js → chunk-Y4JDR3IZ.js} +3 -4
- package/dist/chunk-Y4JDR3IZ.js.map +1 -0
- 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-HNJPZOTY.mjs.map +0 -1
- package/dist/chunk-LXW72PZZ.js.map +0 -1
- /package/dist/{chunk-Z2CBCLIP.js.map → chunk-7XF4WHMR.js.map} +0 -0
- /package/dist/{chunk-XIX7YAOP.mjs.map → chunk-P7QGGIKB.mjs.map} +0 -0
package/dist/utils/index.js
CHANGED
@@ -118,7 +118,7 @@
|
|
118
118
|
|
119
119
|
|
120
120
|
|
121
|
-
var
|
121
|
+
var _chunkY4JDR3IZjs = require('../chunk-Y4JDR3IZ.js');
|
122
122
|
|
123
123
|
|
124
124
|
|
@@ -239,5 +239,5 @@ var _chunkLXW72PZZjs = require('../chunk-LXW72PZZ.js');
|
|
239
239
|
|
240
240
|
|
241
241
|
|
242
|
-
exports.arrayRegex =
|
242
|
+
exports.arrayRegex = _chunkY4JDR3IZjs.arrayRegex; exports.assertRequest = _chunkY4JDR3IZjs.assertRequest; exports.assertTransactionEIP1559 = _chunkY4JDR3IZjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunkY4JDR3IZjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunkY4JDR3IZjs.assertTransactionLegacy; exports.boolToBytes = _chunkY4JDR3IZjs.boolToBytes; exports.boolToHex = _chunkY4JDR3IZjs.boolToHex; exports.buildRequest = _chunkY4JDR3IZjs.buildRequest; exports.bytesRegex = _chunkY4JDR3IZjs.bytesRegex; exports.bytesToBigint = _chunkY4JDR3IZjs.bytesToBigint; exports.bytesToBool = _chunkY4JDR3IZjs.bytesToBool; exports.bytesToHex = _chunkY4JDR3IZjs.bytesToHex; exports.bytesToNumber = _chunkY4JDR3IZjs.bytesToNumber; exports.bytesToString = _chunkY4JDR3IZjs.bytesToString; exports.concat = _chunkY4JDR3IZjs.concat; exports.concatBytes = _chunkY4JDR3IZjs.concatBytes; exports.concatHex = _chunkY4JDR3IZjs.concatHex; exports.containsNodeError = _chunkY4JDR3IZjs.containsNodeError; exports.decodeAbiParameters = _chunkY4JDR3IZjs.decodeAbiParameters; exports.decodeErrorResult = _chunkY4JDR3IZjs.decodeErrorResult; exports.decodeEventLog = _chunkY4JDR3IZjs.decodeEventLog; exports.decodeFunctionData = _chunkY4JDR3IZjs.decodeFunctionData; exports.decodeFunctionResult = _chunkY4JDR3IZjs.decodeFunctionResult; exports.defineBlock = _chunkY4JDR3IZjs.defineBlock; exports.defineChain = _chunkY4JDR3IZjs.defineChain; exports.defineFormatter = _chunkY4JDR3IZjs.defineFormatter; exports.defineTransaction = _chunkY4JDR3IZjs.defineTransaction; exports.defineTransactionReceipt = _chunkY4JDR3IZjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkY4JDR3IZjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkY4JDR3IZjs.encodeAbiParameters; exports.encodeDeployData = _chunkY4JDR3IZjs.encodeDeployData; exports.encodeErrorResult = _chunkY4JDR3IZjs.encodeErrorResult; exports.encodeEventTopics = _chunkY4JDR3IZjs.encodeEventTopics; exports.encodeFunctionData = _chunkY4JDR3IZjs.encodeFunctionData; exports.encodeFunctionResult = _chunkY4JDR3IZjs.encodeFunctionResult; exports.encodePacked = _chunkY4JDR3IZjs.encodePacked; exports.extract = _chunkY4JDR3IZjs.extract; exports.extractFunctionName = _chunkY4JDR3IZjs.extractFunctionName; exports.extractFunctionParams = _chunkY4JDR3IZjs.extractFunctionParams; exports.extractFunctionParts = _chunkY4JDR3IZjs.extractFunctionParts; exports.extractFunctionType = _chunkY4JDR3IZjs.extractFunctionType; exports.format = _chunkY4JDR3IZjs.format; exports.formatAbiItem = _chunkY4JDR3IZjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkY4JDR3IZjs.formatAbiItemWithArgs; exports.formatBlock = _chunkY4JDR3IZjs.formatBlock; exports.formatEther = _chunkY4JDR3IZjs.formatEther; exports.formatGwei = _chunkY4JDR3IZjs.formatGwei; exports.formatTransaction = _chunkY4JDR3IZjs.formatTransaction; exports.formatTransactionRequest = _chunkY4JDR3IZjs.formatTransactionRequest; exports.formatUnits = _chunkY4JDR3IZjs.formatUnits; exports.fromBytes = _chunkY4JDR3IZjs.fromBytes; exports.fromHex = _chunkY4JDR3IZjs.fromHex; exports.fromRlp = _chunkY4JDR3IZjs.fromRlp; exports.getAbiItem = _chunkY4JDR3IZjs.getAbiItem; exports.getAddress = _chunkY4JDR3IZjs.getAddress; exports.getCallError = _chunkY4JDR3IZjs.getCallError; exports.getChainContractAddress = _chunkY4JDR3IZjs.getChainContractAddress; exports.getContractAddress = _chunkY4JDR3IZjs.getContractAddress; exports.getContractError = _chunkY4JDR3IZjs.getContractError; exports.getCreate2Address = _chunkY4JDR3IZjs.getCreate2Address; exports.getCreateAddress = _chunkY4JDR3IZjs.getCreateAddress; exports.getEstimateGasError = _chunkY4JDR3IZjs.getEstimateGasError; exports.getEventSelector = _chunkY4JDR3IZjs.getEventSelector; exports.getFunctionSelector = _chunkY4JDR3IZjs.getFunctionSelector; exports.getNodeError = _chunkY4JDR3IZjs.getNodeError; exports.getSerializedTransactionType = _chunkY4JDR3IZjs.getSerializedTransactionType; exports.getSocket = _chunkY4JDR3IZjs.getSocket; exports.getTransactionError = _chunkY4JDR3IZjs.getTransactionError; exports.getTransactionType = _chunkY4JDR3IZjs.getTransactionType; exports.hashMessage = _chunkY4JDR3IZjs.hashMessage; exports.hashTypedData = _chunkY4JDR3IZjs.hashTypedData; exports.hexToBigInt = _chunkY4JDR3IZjs.hexToBigInt; exports.hexToBool = _chunkY4JDR3IZjs.hexToBool; exports.hexToBytes = _chunkY4JDR3IZjs.hexToBytes; exports.hexToNumber = _chunkY4JDR3IZjs.hexToNumber; exports.hexToString = _chunkY4JDR3IZjs.hexToString; exports.integerRegex = _chunkY4JDR3IZjs.integerRegex; exports.isAddress = _chunkY4JDR3IZjs.isAddress; exports.isAddressEqual = _chunkY4JDR3IZjs.isAddressEqual; exports.isBytes = _chunkY4JDR3IZjs.isBytes; exports.isHash = _chunkY4JDR3IZjs.isHash; exports.isHex = _chunkY4JDR3IZjs.isHex; exports.keccak256 = _chunkY4JDR3IZjs.keccak256; exports.numberToBytes = _chunkY4JDR3IZjs.numberToBytes; exports.numberToHex = _chunkY4JDR3IZjs.numberToHex; exports.pad = _chunkY4JDR3IZjs.pad; exports.padBytes = _chunkY4JDR3IZjs.padBytes; exports.padHex = _chunkY4JDR3IZjs.padHex; exports.parseAbi = _chunkY4JDR3IZjs.parseAbi; exports.parseAbiItem = _chunkY4JDR3IZjs.parseAbiItem; exports.parseAbiParameter = _chunkY4JDR3IZjs.parseAbiParameter; exports.parseAbiParameters = _chunkY4JDR3IZjs.parseAbiParameters; exports.parseAccount = _chunkY4JDR3IZjs.parseAccount; exports.parseEther = _chunkY4JDR3IZjs.parseEther; exports.parseGwei = _chunkY4JDR3IZjs.parseGwei; exports.parseTransaction = _chunkY4JDR3IZjs.parseTransaction; exports.parseUnits = _chunkY4JDR3IZjs.parseUnits; exports.prepareRequest = _chunkY4JDR3IZjs.prepareRequest; exports.publicKeyToAddress = _chunkY4JDR3IZjs.publicKeyToAddress; exports.recoverAddress = _chunkY4JDR3IZjs.recoverAddress; exports.recoverMessageAddress = _chunkY4JDR3IZjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunkY4JDR3IZjs.recoverTypedDataAddress; exports.rpc = _chunkY4JDR3IZjs.rpc; exports.serializeTransaction = _chunkY4JDR3IZjs.serializeTransaction; exports.size = _chunkY4JDR3IZjs.size; exports.slice = _chunkY4JDR3IZjs.slice; exports.sliceBytes = _chunkY4JDR3IZjs.sliceBytes; exports.sliceHex = _chunkY4JDR3IZjs.sliceHex; exports.stringToBytes = _chunkY4JDR3IZjs.stringToBytes; exports.stringToHex = _chunkY4JDR3IZjs.stringToHex; exports.stringify = _chunkY4JDR3IZjs.stringify; exports.toBytes = _chunkY4JDR3IZjs.toBytes; exports.toHex = _chunkY4JDR3IZjs.toHex; exports.toRlp = _chunkY4JDR3IZjs.toRlp; exports.transactionType = _chunkY4JDR3IZjs.transactionType; exports.trim = _chunkY4JDR3IZjs.trim; exports.validateTypedData = _chunkY4JDR3IZjs.validateTypedData; exports.verifyMessage = _chunkY4JDR3IZjs.verifyMessage; exports.verifyTypedData = _chunkY4JDR3IZjs.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 _chunkY4JDR3IZjs = require('./chunk-Y4JDR3IZ.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -21,5 +21,5 @@ var _chunkLXW72PZZjs = require('./chunk-LXW72PZZ.js');
|
|
21
21
|
|
22
22
|
|
23
23
|
|
24
|
-
exports.addChain =
|
24
|
+
exports.addChain = _chunkY4JDR3IZjs.addChain; exports.getAddresses = _chunkY4JDR3IZjs.getAddresses; exports.getPermissions = _chunkY4JDR3IZjs.getPermissions; exports.requestAddresses = _chunkY4JDR3IZjs.requestAddresses; exports.requestPermissions = _chunkY4JDR3IZjs.requestPermissions; exports.sendTransaction = _chunkY4JDR3IZjs.sendTransaction; exports.signMessage = _chunkY4JDR3IZjs.signMessage; exports.signTypedData = _chunkY4JDR3IZjs.signTypedData; exports.switchChain = _chunkY4JDR3IZjs.switchChain; exports.watchAsset = _chunkY4JDR3IZjs.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.3.0-main.
|
15
|
+
"version": "0.3.0-main.20230406T001624",
|
16
16
|
"files": [
|
17
17
|
"/abi",
|
18
18
|
"/accounts",
|