viem 0.3.0-main.20230404T012639 → 0.3.0-main.20230404T041616
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-AZCTVIMY.mjs → chunk-6JEMQ5UV.mjs} +22 -17
- package/dist/chunk-6JEMQ5UV.mjs.map +1 -0
- package/dist/{chunk-TDEQU4WU.mjs → chunk-7K7536RW.mjs} +2 -2
- package/dist/{chunk-FYDOJUVR.js → chunk-G3YKZS76.js} +6 -6
- package/dist/{chunk-IDHPAZVJ.js → chunk-YDG2GLYF.js} +22 -17
- package/dist/chunk-YDG2GLYF.js.map +1 -0
- package/dist/contract.d.ts +1 -1
- package/dist/contract.js +2 -2
- package/dist/contract.mjs +1 -1
- package/dist/ens.d.ts +1 -1
- package/dist/ens.js +2 -2
- package/dist/ens.mjs +1 -1
- package/dist/ethers.js +4 -4
- package/dist/ethers.mjs +2 -2
- package/dist/{getEnsResolver-9e26c596.d.ts → getEnsResolver-ce85735b.d.ts} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +94 -94
- package/dist/index.mjs +1 -1
- package/dist/{parseGwei-d2147f8b.d.ts → parseGwei-280a3ff7.d.ts} +1 -1
- package/dist/public.d.ts +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.d.ts +4 -4
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.d.ts +1 -1
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-AZCTVIMY.mjs.map +0 -1
- package/dist/chunk-IDHPAZVJ.js.map +0 -1
- /package/dist/{chunk-TDEQU4WU.mjs.map → chunk-7K7536RW.mjs.map} +0 -0
- /package/dist/{chunk-FYDOJUVR.js.map → chunk-G3YKZS76.js.map} +0 -0
package/dist/test.mjs
CHANGED
package/dist/utils/index.d.ts
CHANGED
@@ -4,11 +4,11 @@ export { D as DecodeErrorResultParameters, a as DecodeErrorResultReturnType, b a
|
|
4
4
|
export { e as encodePacked } from '../encodePacked-98f67d09.js';
|
5
5
|
export { a as formatAbiItem, f as formatAbiItemWithArgs } from '../formatAbiItem-56dff508.js';
|
6
6
|
export { p as parseAccount, a as publicKeyToAddress } from '../publicKeyToAddress-623eb398.js';
|
7
|
-
import { B as BaseError, C as CallExecutionError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, i as NonceTooHighError, j as NonceTooLowError, N as NonceMaxValueError, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, m as TransactionTypeNotSupportedError, T as TipAboveFeeCapError, U as UnknownNodeError, l as TransactionExecutionError } from '../parseGwei-
|
8
|
-
export { G as GetContractAddressOptions, p as GetCreate2AddressOptions, q as GetCreateAddressOptions, r as GetSerializedTransactionType, s as GetTransactionType, t as HashTypedDataParameters, u as HashTypedDataReturnType, H as HttpOptions, v as RecoverAddressParameters, w as RecoverAddressReturnType, x as RecoverMessageAddressParameters, y as RecoverMessageAddressReturnType, z as RecoverTypedDataAddressParameters, A as RecoverTypedDataAddressReturnType, R as RpcResponse, aY as Socket, D as ToRlpReturnType, V as VerifyMessageParameters, J as VerifyMessageReturnType, K as VerifyTypedDataParameters, L as VerifyTypedDataReturnType, M as assertRequest, O as assertTransactionEIP1559, P as assertTransactionEIP2930, Q as assertTransactionLegacy, S as boolToBytes, X as boolToHex, Y as bytesToBigint, Z as bytesToBool, _ as bytesToHex, $ as bytesToNumber, a0 as bytesToString, a1 as concat, a2 as concatBytes, a3 as concatHex, a4 as formatEther, a5 as formatGwei, a6 as formatUnits, a7 as fromBytes, a8 as fromHex, a9 as fromRlp, aa as getAddress, ab as getContractAddress, ac as getContractError, ad as getCreate2Address, ae as getCreateAddress, af as getEventSelector, ag as getFunctionSelector, ah as getSerializedTransactionType, aZ as getSocket, ai as getTransactionType, aj as hashMessage, ak as hashTypedData, al as hexToBigInt, am as hexToBool, an as hexToBytes, ao as hexToNumber, ap as hexToString, aq as isAddress, ar as isAddressEqual, as as isBytes, at as isHash, au as isHex, av as keccak256, aw as numberToBytes, ax as numberToHex, ay as pad, az as padBytes, aA as padHex, aB as parseEther, aC as parseGwei, aD as parseTransaction, aE as parseUnits, aF as prepareRequest, aG as recoverAddress, aH as recoverMessageAddress, aI as recoverTypedDataAddress, a_ as rpc, aJ as serializeTransaction, aK as size, aL as slice, aM as sliceBytes, aN as sliceHex, aO as stringToBytes, aP as stringToHex, aQ as stringify, aR as toBytes, aS as toHex, aT as toRlp, aU as trim, aV as validateTypedData, aW as verifyMessage, aX as verifyTypedData } from '../parseGwei-
|
7
|
+
import { B as BaseError, C as CallExecutionError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, i as NonceTooHighError, j as NonceTooLowError, N as NonceMaxValueError, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, m as TransactionTypeNotSupportedError, T as TipAboveFeeCapError, U as UnknownNodeError, l as TransactionExecutionError } from '../parseGwei-280a3ff7.js';
|
8
|
+
export { G as GetContractAddressOptions, p as GetCreate2AddressOptions, q as GetCreateAddressOptions, r as GetSerializedTransactionType, s as GetTransactionType, t as HashTypedDataParameters, u as HashTypedDataReturnType, H as HttpOptions, v as RecoverAddressParameters, w as RecoverAddressReturnType, x as RecoverMessageAddressParameters, y as RecoverMessageAddressReturnType, z as RecoverTypedDataAddressParameters, A as RecoverTypedDataAddressReturnType, R as RpcResponse, aY as Socket, D as ToRlpReturnType, V as VerifyMessageParameters, J as VerifyMessageReturnType, K as VerifyTypedDataParameters, L as VerifyTypedDataReturnType, M as assertRequest, O as assertTransactionEIP1559, P as assertTransactionEIP2930, Q as assertTransactionLegacy, S as boolToBytes, X as boolToHex, Y as bytesToBigint, Z as bytesToBool, _ as bytesToHex, $ as bytesToNumber, a0 as bytesToString, a1 as concat, a2 as concatBytes, a3 as concatHex, a4 as formatEther, a5 as formatGwei, a6 as formatUnits, a7 as fromBytes, a8 as fromHex, a9 as fromRlp, aa as getAddress, ab as getContractAddress, ac as getContractError, ad as getCreate2Address, ae as getCreateAddress, af as getEventSelector, ag as getFunctionSelector, ah as getSerializedTransactionType, aZ as getSocket, ai as getTransactionType, aj as hashMessage, ak as hashTypedData, al as hexToBigInt, am as hexToBool, an as hexToBytes, ao as hexToNumber, ap as hexToString, aq as isAddress, ar as isAddressEqual, as as isBytes, at as isHash, au as isHex, av as keccak256, aw as numberToBytes, ax as numberToHex, ay as pad, az as padBytes, aA as padHex, aB as parseEther, aC as parseGwei, aD as parseTransaction, aE as parseUnits, aF as prepareRequest, aG as recoverAddress, aH as recoverMessageAddress, aI as recoverTypedDataAddress, a_ as rpc, aJ as serializeTransaction, aK as size, aL as slice, aM as sliceBytes, aN as sliceHex, aO as stringToBytes, aP as stringToHex, aQ as stringify, aR as toBytes, aS as toHex, aT as toRlp, aU as trim, aV as validateTypedData, aW as verifyMessage, aX as verifyTypedData } from '../parseGwei-280a3ff7.js';
|
9
9
|
export { d as defineChain, g as getChainContractAddress } from '../chain-fe47467d.js';
|
10
|
-
import { i as CallParameters, p as EstimateGasParameters, ao as SendTransactionParameters } from '../getEnsResolver-
|
11
|
-
export { aU as BlockFormatter, aV as FormattedBlock, aW as FormattedTransactionReceipt, aX as FormattedTransactionRequest, aY as TransactionReceiptFormatter, aZ as TransactionRequestFormatter, a_ as defineBlock, a$ as defineTransactionReceipt, b0 as defineTransactionRequest, b1 as formatBlock, b2 as formatTransactionRequest } from '../getEnsResolver-
|
10
|
+
import { i as CallParameters, p as EstimateGasParameters, ao as SendTransactionParameters } from '../getEnsResolver-ce85735b.js';
|
11
|
+
export { aU as BlockFormatter, aV as FormattedBlock, aW as FormattedTransactionReceipt, aX as FormattedTransactionRequest, aY as TransactionReceiptFormatter, aZ as TransactionRequestFormatter, a_ as defineBlock, a$ as defineTransactionReceipt, b0 as defineTransactionRequest, b1 as formatBlock, b2 as formatTransactionRequest } from '../getEnsResolver-ce85735b.js';
|
12
12
|
import { ai as Formatter, C as Chain } from '../chain-5507c6f0.js';
|
13
13
|
export { aa as ExtractFormatter, ab as Formatted, ac as FormattedTransaction, ad as TransactionFormatter, ar as defineFormatter, ae as defineTransaction, as as format, af as formatTransaction, ag as transactionType } from '../chain-5507c6f0.js';
|
14
14
|
import { A as Account } from '../typedData-46b4d81f.js';
|
package/dist/utils/index.js
CHANGED
@@ -118,7 +118,7 @@
|
|
118
118
|
|
119
119
|
|
120
120
|
|
121
|
-
var
|
121
|
+
var _chunkYDG2GLYFjs = require('../chunk-YDG2GLYF.js');
|
122
122
|
|
123
123
|
|
124
124
|
|
@@ -239,5 +239,5 @@ var _chunkIDHPAZVJjs = require('../chunk-IDHPAZVJ.js');
|
|
239
239
|
|
240
240
|
|
241
241
|
|
242
|
-
exports.arrayRegex =
|
242
|
+
exports.arrayRegex = _chunkYDG2GLYFjs.arrayRegex; exports.assertRequest = _chunkYDG2GLYFjs.assertRequest; exports.assertTransactionEIP1559 = _chunkYDG2GLYFjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunkYDG2GLYFjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunkYDG2GLYFjs.assertTransactionLegacy; exports.boolToBytes = _chunkYDG2GLYFjs.boolToBytes; exports.boolToHex = _chunkYDG2GLYFjs.boolToHex; exports.buildRequest = _chunkYDG2GLYFjs.buildRequest; exports.bytesRegex = _chunkYDG2GLYFjs.bytesRegex; exports.bytesToBigint = _chunkYDG2GLYFjs.bytesToBigint; exports.bytesToBool = _chunkYDG2GLYFjs.bytesToBool; exports.bytesToHex = _chunkYDG2GLYFjs.bytesToHex; exports.bytesToNumber = _chunkYDG2GLYFjs.bytesToNumber; exports.bytesToString = _chunkYDG2GLYFjs.bytesToString; exports.concat = _chunkYDG2GLYFjs.concat; exports.concatBytes = _chunkYDG2GLYFjs.concatBytes; exports.concatHex = _chunkYDG2GLYFjs.concatHex; exports.containsNodeError = _chunkYDG2GLYFjs.containsNodeError; exports.decodeAbiParameters = _chunkYDG2GLYFjs.decodeAbiParameters; exports.decodeErrorResult = _chunkYDG2GLYFjs.decodeErrorResult; exports.decodeEventLog = _chunkYDG2GLYFjs.decodeEventLog; exports.decodeFunctionData = _chunkYDG2GLYFjs.decodeFunctionData; exports.decodeFunctionResult = _chunkYDG2GLYFjs.decodeFunctionResult; exports.defineBlock = _chunkYDG2GLYFjs.defineBlock; exports.defineChain = _chunkYDG2GLYFjs.defineChain; exports.defineFormatter = _chunkYDG2GLYFjs.defineFormatter; exports.defineTransaction = _chunkYDG2GLYFjs.defineTransaction; exports.defineTransactionReceipt = _chunkYDG2GLYFjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkYDG2GLYFjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkYDG2GLYFjs.encodeAbiParameters; exports.encodeDeployData = _chunkYDG2GLYFjs.encodeDeployData; exports.encodeErrorResult = _chunkYDG2GLYFjs.encodeErrorResult; exports.encodeEventTopics = _chunkYDG2GLYFjs.encodeEventTopics; exports.encodeFunctionData = _chunkYDG2GLYFjs.encodeFunctionData; exports.encodeFunctionResult = _chunkYDG2GLYFjs.encodeFunctionResult; exports.encodePacked = _chunkYDG2GLYFjs.encodePacked; exports.extract = _chunkYDG2GLYFjs.extract; exports.extractFunctionName = _chunkYDG2GLYFjs.extractFunctionName; exports.extractFunctionParams = _chunkYDG2GLYFjs.extractFunctionParams; exports.extractFunctionParts = _chunkYDG2GLYFjs.extractFunctionParts; exports.extractFunctionType = _chunkYDG2GLYFjs.extractFunctionType; exports.format = _chunkYDG2GLYFjs.format; exports.formatAbiItem = _chunkYDG2GLYFjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkYDG2GLYFjs.formatAbiItemWithArgs; exports.formatBlock = _chunkYDG2GLYFjs.formatBlock; exports.formatEther = _chunkYDG2GLYFjs.formatEther; exports.formatGwei = _chunkYDG2GLYFjs.formatGwei; exports.formatTransaction = _chunkYDG2GLYFjs.formatTransaction; exports.formatTransactionRequest = _chunkYDG2GLYFjs.formatTransactionRequest; exports.formatUnits = _chunkYDG2GLYFjs.formatUnits; exports.fromBytes = _chunkYDG2GLYFjs.fromBytes; exports.fromHex = _chunkYDG2GLYFjs.fromHex; exports.fromRlp = _chunkYDG2GLYFjs.fromRlp; exports.getAbiItem = _chunkYDG2GLYFjs.getAbiItem; exports.getAddress = _chunkYDG2GLYFjs.getAddress; exports.getCallError = _chunkYDG2GLYFjs.getCallError; exports.getChainContractAddress = _chunkYDG2GLYFjs.getChainContractAddress; exports.getContractAddress = _chunkYDG2GLYFjs.getContractAddress; exports.getContractError = _chunkYDG2GLYFjs.getContractError; exports.getCreate2Address = _chunkYDG2GLYFjs.getCreate2Address; exports.getCreateAddress = _chunkYDG2GLYFjs.getCreateAddress; exports.getEstimateGasError = _chunkYDG2GLYFjs.getEstimateGasError; exports.getEventSelector = _chunkYDG2GLYFjs.getEventSelector; exports.getFunctionSelector = _chunkYDG2GLYFjs.getFunctionSelector; exports.getNodeError = _chunkYDG2GLYFjs.getNodeError; exports.getSerializedTransactionType = _chunkYDG2GLYFjs.getSerializedTransactionType; exports.getSocket = _chunkYDG2GLYFjs.getSocket; exports.getTransactionError = _chunkYDG2GLYFjs.getTransactionError; exports.getTransactionType = _chunkYDG2GLYFjs.getTransactionType; exports.hashMessage = _chunkYDG2GLYFjs.hashMessage; exports.hashTypedData = _chunkYDG2GLYFjs.hashTypedData; exports.hexToBigInt = _chunkYDG2GLYFjs.hexToBigInt; exports.hexToBool = _chunkYDG2GLYFjs.hexToBool; exports.hexToBytes = _chunkYDG2GLYFjs.hexToBytes; exports.hexToNumber = _chunkYDG2GLYFjs.hexToNumber; exports.hexToString = _chunkYDG2GLYFjs.hexToString; exports.integerRegex = _chunkYDG2GLYFjs.integerRegex; exports.isAddress = _chunkYDG2GLYFjs.isAddress; exports.isAddressEqual = _chunkYDG2GLYFjs.isAddressEqual; exports.isBytes = _chunkYDG2GLYFjs.isBytes; exports.isHash = _chunkYDG2GLYFjs.isHash; exports.isHex = _chunkYDG2GLYFjs.isHex; exports.keccak256 = _chunkYDG2GLYFjs.keccak256; exports.numberToBytes = _chunkYDG2GLYFjs.numberToBytes; exports.numberToHex = _chunkYDG2GLYFjs.numberToHex; exports.pad = _chunkYDG2GLYFjs.pad; exports.padBytes = _chunkYDG2GLYFjs.padBytes; exports.padHex = _chunkYDG2GLYFjs.padHex; exports.parseAbi = _chunkYDG2GLYFjs.parseAbi; exports.parseAbiItem = _chunkYDG2GLYFjs.parseAbiItem; exports.parseAbiParameter = _chunkYDG2GLYFjs.parseAbiParameter; exports.parseAbiParameters = _chunkYDG2GLYFjs.parseAbiParameters; exports.parseAccount = _chunkYDG2GLYFjs.parseAccount; exports.parseEther = _chunkYDG2GLYFjs.parseEther; exports.parseGwei = _chunkYDG2GLYFjs.parseGwei; exports.parseTransaction = _chunkYDG2GLYFjs.parseTransaction; exports.parseUnits = _chunkYDG2GLYFjs.parseUnits; exports.prepareRequest = _chunkYDG2GLYFjs.prepareRequest; exports.publicKeyToAddress = _chunkYDG2GLYFjs.publicKeyToAddress; exports.recoverAddress = _chunkYDG2GLYFjs.recoverAddress; exports.recoverMessageAddress = _chunkYDG2GLYFjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunkYDG2GLYFjs.recoverTypedDataAddress; exports.rpc = _chunkYDG2GLYFjs.rpc; exports.serializeTransaction = _chunkYDG2GLYFjs.serializeTransaction; exports.size = _chunkYDG2GLYFjs.size; exports.slice = _chunkYDG2GLYFjs.slice; exports.sliceBytes = _chunkYDG2GLYFjs.sliceBytes; exports.sliceHex = _chunkYDG2GLYFjs.sliceHex; exports.stringToBytes = _chunkYDG2GLYFjs.stringToBytes; exports.stringToHex = _chunkYDG2GLYFjs.stringToHex; exports.stringify = _chunkYDG2GLYFjs.stringify; exports.toBytes = _chunkYDG2GLYFjs.toBytes; exports.toHex = _chunkYDG2GLYFjs.toHex; exports.toRlp = _chunkYDG2GLYFjs.toRlp; exports.transactionType = _chunkYDG2GLYFjs.transactionType; exports.trim = _chunkYDG2GLYFjs.trim; exports.validateTypedData = _chunkYDG2GLYFjs.validateTypedData; exports.verifyMessage = _chunkYDG2GLYFjs.verifyMessage; exports.verifyTypedData = _chunkYDG2GLYFjs.verifyTypedData;
|
243
243
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.mjs
CHANGED
package/dist/wallet.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
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-
|
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-ce85735b.js';
|
2
2
|
import './createTransport-21a0d2b3.js';
|
3
3
|
import './eip1193-2f3a9cd2.js';
|
4
4
|
import 'abitype';
|
package/dist/wallet.js
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
|
-
var
|
12
|
+
var _chunkYDG2GLYFjs = require('./chunk-YDG2GLYF.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -21,5 +21,5 @@ var _chunkIDHPAZVJjs = require('./chunk-IDHPAZVJ.js');
|
|
21
21
|
|
22
22
|
|
23
23
|
|
24
|
-
exports.addChain =
|
24
|
+
exports.addChain = _chunkYDG2GLYFjs.addChain; exports.getAddresses = _chunkYDG2GLYFjs.getAddresses; exports.getPermissions = _chunkYDG2GLYFjs.getPermissions; exports.requestAddresses = _chunkYDG2GLYFjs.requestAddresses; exports.requestPermissions = _chunkYDG2GLYFjs.requestPermissions; exports.sendTransaction = _chunkYDG2GLYFjs.sendTransaction; exports.signMessage = _chunkYDG2GLYFjs.signMessage; exports.signTypedData = _chunkYDG2GLYFjs.signTypedData; exports.switchChain = _chunkYDG2GLYFjs.switchChain; exports.watchAsset = _chunkYDG2GLYFjs.watchAsset;
|
25
25
|
//# sourceMappingURL=wallet.js.map
|
package/dist/wallet.mjs
CHANGED