viem 0.1.11 → 0.1.13
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/chains.js +63 -63
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-YZCQ7AL7.js → chunk-3FWCHYKE.js} +12 -3
- package/dist/chunk-3FWCHYKE.js.map +1 -0
- package/dist/{chunk-ADJTWF45.js → chunk-65E5HTFA.js} +19 -19
- package/dist/{chunk-IAY6WXS3.mjs → chunk-BJPR4EAT.mjs} +2 -2
- package/dist/{chunk-H6AQHA74.mjs → chunk-S4MOKUQW.mjs} +11 -2
- package/dist/chunk-S4MOKUQW.mjs.map +1 -0
- package/dist/contract.js +2 -2
- package/dist/contract.mjs +1 -1
- package/dist/ens.js +3 -3
- package/dist/ens.mjs +2 -2
- package/dist/ethers.d.ts +29 -0
- package/dist/ethers.js +30 -0
- package/dist/ethers.js.map +1 -0
- package/dist/ethers.mjs +30 -0
- package/dist/ethers.mjs.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +96 -90
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{parseGwei-faf061db.d.ts → parseGwei-a35c7c87.d.ts} +6 -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.d.ts +2 -2
- package/dist/utils/index.js +8 -2
- package/dist/utils/index.mjs +7 -1
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/ethers/package.json +4 -0
- package/package.json +7 -1
- package/dist/chunk-H6AQHA74.mjs.map +0 -1
- package/dist/chunk-YZCQ7AL7.js.map +0 -1
- /package/dist/{chunk-ADJTWF45.js.map → chunk-65E5HTFA.js.map} +0 -0
- /package/dist/{chunk-IAY6WXS3.mjs.map → chunk-BJPR4EAT.mjs.map} +0 -0
package/dist/test.mjs
CHANGED
package/dist/utils/index.d.ts
CHANGED
@@ -4,8 +4,8 @@ export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType,
|
|
4
4
|
export { D as DecodeErrorResultParameters, a as DecodeErrorResultReturnType, b as DecodeEventLogParameters, c as DecodeEventLogReturnType, d as DecodeFunctionDataParameters, e as DecodeFunctionResultParameters, f as DecodeFunctionResultReturnType, E as EncodeDeployDataParameters, g as EncodeErrorResultParameters, h as EncodeEventTopicsParameters, i as EncodeFunctionDataParameters, j as EncodeFunctionResultParameters, k as decodeErrorResult, l as decodeEventLog, m as decodeFunctionData, n as decodeFunctionResult, o as encodeDeployData, p as encodeErrorResult, q as encodeEventTopics, r as encodeFunctionData, s as encodeFunctionResult } from '../encodeFunctionResult-874fe003.js';
|
5
5
|
export { e as encodePacked } from '../encodePacked-9ab98aa9.js';
|
6
6
|
export { a as formatAbiItem, f as formatAbiItemWithArgs } from '../formatAbiItem-1bdb43d3.js';
|
7
|
-
import { B as BaseError, C as CallExecutionError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, h as NonceTooHighError, i as NonceTooLowError, N as NonceMaxValueError, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, l as TransactionTypeNotSupportedError, T as TipAboveFeeCapError, U as UnknownNodeError, k as TransactionExecutionError } from '../parseGwei-
|
8
|
-
export { G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, H as HttpOptions, R as RpcResponse,
|
7
|
+
import { B as BaseError, C as CallExecutionError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, h as NonceTooHighError, i as NonceTooLowError, N as NonceMaxValueError, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, l as TransactionTypeNotSupportedError, T as TipAboveFeeCapError, U as UnknownNodeError, k as TransactionExecutionError } from '../parseGwei-a35c7c87.js';
|
8
|
+
export { G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, H as HttpOptions, R as RpcResponse, as as Socket, q as ToRlpReturnType, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as concat, z as concatBytes, A as concatHex, D as formatEther, J as formatGwei, K as formatUnits, L as fromBytes, M as fromHex, O as fromRlp, P as getAccount, Q as getAddress, S as getContractAddress, V as getContractError, X as getCreate2Address, Y as getCreateAddress, Z as getEventSelector, _ as getFunctionSelector, at as getSocket, $ as hexToBigInt, a0 as hexToBool, a1 as hexToBytes, a2 as hexToNumber, a3 as hexToString, a4 as isAddress, a5 as isAddressEqual, a6 as isBytes, a7 as isHex, a8 as keccak256, a9 as numberToBytes, aa as numberToHex, ab as pad, ac as padBytes, ad as padHex, ae as parseEther, af as parseGwei, ag as parseUnits, au as rpc, ah as size, ai as slice, aj as sliceBytes, ak as sliceHex, al as stringToBytes, am as stringToHex, an as stringify, ao as toBytes, ap as toHex, aq as toRlp, ar as trim } from '../parseGwei-a35c7c87.js';
|
9
9
|
export { d as defineChain, g as getChainContractAddress } from '../chain-41dcec4b.js';
|
10
10
|
import { C as CallParameters, E as EstimateGasParameters, S as SendTransactionParameters, W as WalletClient, P as PublicClient } from '../createPublicClient-34d3ba9d.js';
|
11
11
|
export { B as BlockFormatter, F as FormattedBlock, e as FormattedTransactionReceipt, f as FormattedTransactionRequest, T as TransactionReceiptFormatter, g as TransactionRequestFormatter, h as defineBlock, i as defineTransactionReceipt, j as defineTransactionRequest, k as formatBlock, l as formatTransactionRequest } from '../createPublicClient-34d3ba9d.js';
|
package/dist/utils/index.js
CHANGED
@@ -98,10 +98,10 @@
|
|
98
98
|
|
99
99
|
|
100
100
|
|
101
|
-
var _chunkYZCQ7AL7js = require('../chunk-YZCQ7AL7.js');
|
102
101
|
|
103
102
|
|
104
103
|
|
104
|
+
var _chunk3FWCHYKEjs = require('../chunk-3FWCHYKE.js');
|
105
105
|
|
106
106
|
|
107
107
|
|
@@ -199,5 +199,11 @@ var _chunkYZCQ7AL7js = require('../chunk-YZCQ7AL7.js');
|
|
199
199
|
|
200
200
|
|
201
201
|
|
202
|
-
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
exports.arrayRegex = _chunk3FWCHYKEjs.arrayRegex; exports.assertRequest = _chunk3FWCHYKEjs.assertRequest; exports.boolToBytes = _chunk3FWCHYKEjs.boolToBytes; exports.boolToHex = _chunk3FWCHYKEjs.boolToHex; exports.buildRequest = _chunk3FWCHYKEjs.buildRequest; exports.bytesRegex = _chunk3FWCHYKEjs.bytesRegex; exports.bytesToBigint = _chunk3FWCHYKEjs.bytesToBigint; exports.bytesToBool = _chunk3FWCHYKEjs.bytesToBool; exports.bytesToHex = _chunk3FWCHYKEjs.bytesToHex; exports.bytesToNumber = _chunk3FWCHYKEjs.bytesToNumber; exports.bytesToString = _chunk3FWCHYKEjs.bytesToString; exports.concat = _chunk3FWCHYKEjs.concat; exports.concatBytes = _chunk3FWCHYKEjs.concatBytes; exports.concatHex = _chunk3FWCHYKEjs.concatHex; exports.containsNodeError = _chunk3FWCHYKEjs.containsNodeError; exports.decodeAbiParameters = _chunk3FWCHYKEjs.decodeAbiParameters; exports.decodeErrorResult = _chunk3FWCHYKEjs.decodeErrorResult; exports.decodeEventLog = _chunk3FWCHYKEjs.decodeEventLog; exports.decodeFunctionData = _chunk3FWCHYKEjs.decodeFunctionData; exports.decodeFunctionResult = _chunk3FWCHYKEjs.decodeFunctionResult; exports.defineBlock = _chunk3FWCHYKEjs.defineBlock; exports.defineChain = _chunk3FWCHYKEjs.defineChain; exports.defineFormatter = _chunk3FWCHYKEjs.defineFormatter; exports.defineTransaction = _chunk3FWCHYKEjs.defineTransaction; exports.defineTransactionReceipt = _chunk3FWCHYKEjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunk3FWCHYKEjs.defineTransactionRequest; exports.encodeAbiParameters = _chunk3FWCHYKEjs.encodeAbiParameters; exports.encodeDeployData = _chunk3FWCHYKEjs.encodeDeployData; exports.encodeErrorResult = _chunk3FWCHYKEjs.encodeErrorResult; exports.encodeEventTopics = _chunk3FWCHYKEjs.encodeEventTopics; exports.encodeFunctionData = _chunk3FWCHYKEjs.encodeFunctionData; exports.encodeFunctionResult = _chunk3FWCHYKEjs.encodeFunctionResult; exports.encodePacked = _chunk3FWCHYKEjs.encodePacked; exports.extract = _chunk3FWCHYKEjs.extract; exports.extractFunctionName = _chunk3FWCHYKEjs.extractFunctionName; exports.extractFunctionParams = _chunk3FWCHYKEjs.extractFunctionParams; exports.extractFunctionParts = _chunk3FWCHYKEjs.extractFunctionParts; exports.extractFunctionType = _chunk3FWCHYKEjs.extractFunctionType; exports.format = _chunk3FWCHYKEjs.format; exports.formatAbiItem = _chunk3FWCHYKEjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunk3FWCHYKEjs.formatAbiItemWithArgs; exports.formatBlock = _chunk3FWCHYKEjs.formatBlock; exports.formatEther = _chunk3FWCHYKEjs.formatEther; exports.formatGwei = _chunk3FWCHYKEjs.formatGwei; exports.formatTransaction = _chunk3FWCHYKEjs.formatTransaction; exports.formatTransactionRequest = _chunk3FWCHYKEjs.formatTransactionRequest; exports.formatUnits = _chunk3FWCHYKEjs.formatUnits; exports.fromBytes = _chunk3FWCHYKEjs.fromBytes; exports.fromHex = _chunk3FWCHYKEjs.fromHex; exports.fromRlp = _chunk3FWCHYKEjs.fromRlp; exports.getAbiItem = _chunk3FWCHYKEjs.getAbiItem; exports.getAccount = _chunk3FWCHYKEjs.getAccount; exports.getAddress = _chunk3FWCHYKEjs.getAddress; exports.getCallError = _chunk3FWCHYKEjs.getCallError; exports.getChainContractAddress = _chunk3FWCHYKEjs.getChainContractAddress; exports.getContractAddress = _chunk3FWCHYKEjs.getContractAddress; exports.getContractError = _chunk3FWCHYKEjs.getContractError; exports.getCreate2Address = _chunk3FWCHYKEjs.getCreate2Address; exports.getCreateAddress = _chunk3FWCHYKEjs.getCreateAddress; exports.getEstimateGasError = _chunk3FWCHYKEjs.getEstimateGasError; exports.getEventSelector = _chunk3FWCHYKEjs.getEventSelector; exports.getFunctionSelector = _chunk3FWCHYKEjs.getFunctionSelector; exports.getNodeError = _chunk3FWCHYKEjs.getNodeError; exports.getSocket = _chunk3FWCHYKEjs.getSocket; exports.getTransactionError = _chunk3FWCHYKEjs.getTransactionError; exports.hexToBigInt = _chunk3FWCHYKEjs.hexToBigInt; exports.hexToBool = _chunk3FWCHYKEjs.hexToBool; exports.hexToBytes = _chunk3FWCHYKEjs.hexToBytes; exports.hexToNumber = _chunk3FWCHYKEjs.hexToNumber; exports.hexToString = _chunk3FWCHYKEjs.hexToString; exports.integerRegex = _chunk3FWCHYKEjs.integerRegex; exports.isAddress = _chunk3FWCHYKEjs.isAddress; exports.isAddressEqual = _chunk3FWCHYKEjs.isAddressEqual; exports.isBytes = _chunk3FWCHYKEjs.isBytes; exports.isHex = _chunk3FWCHYKEjs.isHex; exports.keccak256 = _chunk3FWCHYKEjs.keccak256; exports.numberToBytes = _chunk3FWCHYKEjs.numberToBytes; exports.numberToHex = _chunk3FWCHYKEjs.numberToHex; exports.pad = _chunk3FWCHYKEjs.pad; exports.padBytes = _chunk3FWCHYKEjs.padBytes; exports.padHex = _chunk3FWCHYKEjs.padHex; exports.parseAbi = _chunk3FWCHYKEjs.parseAbi; exports.parseAbiItem = _chunk3FWCHYKEjs.parseAbiItem; exports.parseAbiParameter = _chunk3FWCHYKEjs.parseAbiParameter; exports.parseAbiParameters = _chunk3FWCHYKEjs.parseAbiParameters; exports.parseEther = _chunk3FWCHYKEjs.parseEther; exports.parseGwei = _chunk3FWCHYKEjs.parseGwei; exports.parseUnits = _chunk3FWCHYKEjs.parseUnits; exports.prepareRequest = _chunk3FWCHYKEjs.prepareRequest; exports.rpc = _chunk3FWCHYKEjs.rpc; exports.size = _chunk3FWCHYKEjs.size; exports.slice = _chunk3FWCHYKEjs.slice; exports.sliceBytes = _chunk3FWCHYKEjs.sliceBytes; exports.sliceHex = _chunk3FWCHYKEjs.sliceHex; exports.stringToBytes = _chunk3FWCHYKEjs.stringToBytes; exports.stringToHex = _chunk3FWCHYKEjs.stringToHex; exports.stringify = _chunk3FWCHYKEjs.stringify; exports.toBytes = _chunk3FWCHYKEjs.toBytes; exports.toHex = _chunk3FWCHYKEjs.toHex; exports.toRlp = _chunk3FWCHYKEjs.toRlp; exports.transactionType = _chunk3FWCHYKEjs.transactionType; exports.trim = _chunk3FWCHYKEjs.trim;
|
203
209
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.mjs
CHANGED
@@ -10,6 +10,9 @@ import {
|
|
10
10
|
bytesToHex,
|
11
11
|
bytesToNumber,
|
12
12
|
bytesToString,
|
13
|
+
concat,
|
14
|
+
concatBytes,
|
15
|
+
concatHex,
|
13
16
|
containsNodeError,
|
14
17
|
decodeAbiParameters,
|
15
18
|
decodeErrorResult,
|
@@ -98,7 +101,7 @@ import {
|
|
98
101
|
toRlp,
|
99
102
|
transactionType,
|
100
103
|
trim
|
101
|
-
} from "../chunk-
|
104
|
+
} from "../chunk-S4MOKUQW.mjs";
|
102
105
|
export {
|
103
106
|
arrayRegex,
|
104
107
|
assertRequest,
|
@@ -111,6 +114,9 @@ export {
|
|
111
114
|
bytesToHex,
|
112
115
|
bytesToNumber,
|
113
116
|
bytesToString,
|
117
|
+
concat,
|
118
|
+
concatBytes,
|
119
|
+
concatHex,
|
114
120
|
containsNodeError,
|
115
121
|
decodeAbiParameters,
|
116
122
|
decodeErrorResult,
|
package/dist/wallet.js
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
-
var
|
12
|
+
var _chunk3FWCHYKEjs = require('./chunk-3FWCHYKE.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -21,5 +21,5 @@ var _chunkYZCQ7AL7js = require('./chunk-YZCQ7AL7.js');
|
|
21
21
|
|
22
22
|
|
23
23
|
|
24
|
-
exports.addChain =
|
24
|
+
exports.addChain = _chunk3FWCHYKEjs.addChain; exports.getAddresses = _chunk3FWCHYKEjs.getAddresses; exports.getPermissions = _chunk3FWCHYKEjs.getPermissions; exports.requestAddresses = _chunk3FWCHYKEjs.requestAddresses; exports.requestPermissions = _chunk3FWCHYKEjs.requestPermissions; exports.sendTransaction = _chunk3FWCHYKEjs.sendTransaction; exports.signMessage = _chunk3FWCHYKEjs.signMessage; exports.signTypedData = _chunk3FWCHYKEjs.signTypedData; exports.switchChain = _chunk3FWCHYKEjs.switchChain; exports.watchAsset = _chunk3FWCHYKEjs.watchAsset;
|
25
25
|
//# sourceMappingURL=wallet.js.map
|
package/dist/wallet.mjs
CHANGED
package/package.json
CHANGED
@@ -9,13 +9,14 @@
|
|
9
9
|
"isomorphic-ws": "^5.0.0",
|
10
10
|
"ws": "^8.12.0"
|
11
11
|
},
|
12
|
-
"version": "0.1.
|
12
|
+
"version": "0.1.13",
|
13
13
|
"files": [
|
14
14
|
"/abi",
|
15
15
|
"/dist",
|
16
16
|
"/chains",
|
17
17
|
"/contract",
|
18
18
|
"/ens",
|
19
|
+
"/ethers",
|
19
20
|
"/public",
|
20
21
|
"/test",
|
21
22
|
"/utils",
|
@@ -48,6 +49,11 @@
|
|
48
49
|
"module": "./dist/ens.mjs",
|
49
50
|
"default": "./dist/ens.js"
|
50
51
|
},
|
52
|
+
"./ethers": {
|
53
|
+
"types": "./dist/ethers.d.ts",
|
54
|
+
"module": "./dist/ethers.mjs",
|
55
|
+
"default": "./dist/ethers.js"
|
56
|
+
},
|
51
57
|
"./public": {
|
52
58
|
"types": "./dist/public.d.ts",
|
53
59
|
"module": "./dist/public.mjs",
|