viem 0.1.17 → 0.1.19
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-7FL2Z6KZ.js → chunk-5KPMXLJZ.js} +19 -19
- package/dist/{chunk-SEQCMEKG.mjs → chunk-5V5M3ZN3.mjs} +2 -2
- package/dist/{chunk-7VL5TXOM.mjs → chunk-IHWYS4OQ.mjs} +2 -2
- package/dist/{chunk-7VL5TXOM.mjs.map → chunk-IHWYS4OQ.mjs.map} +1 -1
- package/dist/{chunk-D4NT4PPV.js → chunk-XMKUHSC7.js} +2 -2
- package/dist/{chunk-D4NT4PPV.js.map → chunk-XMKUHSC7.js.map} +1 -1
- 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.js +4 -4
- package/dist/ethers.js.map +1 -1
- package/dist/ethers.mjs +2 -2
- package/dist/ethers.mjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +94 -90
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{parseGwei-eda6728f.d.ts → parseGwei-c2fb9fa2.d.ts} +16 -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 -19
- 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 +1 -1
- /package/dist/{chunk-7FL2Z6KZ.js.map → chunk-5KPMXLJZ.js.map} +0 -0
- /package/dist/{chunk-SEQCMEKG.mjs.map → chunk-5V5M3ZN3.mjs.map} +0 -0
package/dist/test.js
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
|
30
|
-
var
|
30
|
+
var _chunkXMKUHSC7js = require('./chunk-XMKUHSC7.js');
|
31
31
|
|
32
32
|
|
33
33
|
|
@@ -57,5 +57,5 @@ var _chunkD4NT4PPVjs = require('./chunk-D4NT4PPV.js');
|
|
57
57
|
|
58
58
|
|
59
59
|
|
60
|
-
exports.dropTransaction =
|
60
|
+
exports.dropTransaction = _chunkXMKUHSC7js.dropTransaction; exports.getAutomine = _chunkXMKUHSC7js.getAutomine; exports.getTxpoolContent = _chunkXMKUHSC7js.getTxpoolContent; exports.getTxpoolStatus = _chunkXMKUHSC7js.getTxpoolStatus; exports.impersonateAccount = _chunkXMKUHSC7js.impersonateAccount; exports.increaseTime = _chunkXMKUHSC7js.increaseTime; exports.inspectTxpool = _chunkXMKUHSC7js.inspectTxpool; exports.mine = _chunkXMKUHSC7js.mine; exports.removeBlockTimestampInterval = _chunkXMKUHSC7js.removeBlockTimestampInterval; exports.reset = _chunkXMKUHSC7js.reset; exports.revert = _chunkXMKUHSC7js.revert; exports.sendUnsignedTransaction = _chunkXMKUHSC7js.sendUnsignedTransaction; exports.setAutomine = _chunkXMKUHSC7js.setAutomine; exports.setBalance = _chunkXMKUHSC7js.setBalance; exports.setBlockGasLimit = _chunkXMKUHSC7js.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkXMKUHSC7js.setBlockTimestampInterval; exports.setCode = _chunkXMKUHSC7js.setCode; exports.setCoinbase = _chunkXMKUHSC7js.setCoinbase; exports.setIntervalMining = _chunkXMKUHSC7js.setIntervalMining; exports.setLoggingEnabled = _chunkXMKUHSC7js.setLoggingEnabled; exports.setMinGasPrice = _chunkXMKUHSC7js.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkXMKUHSC7js.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkXMKUHSC7js.setNextBlockTimestamp; exports.setNonce = _chunkXMKUHSC7js.setNonce; exports.setRpcUrl = _chunkXMKUHSC7js.setRpcUrl; exports.setStorageAt = _chunkXMKUHSC7js.setStorageAt; exports.snapshot = _chunkXMKUHSC7js.snapshot; exports.stopImpersonatingAccount = _chunkXMKUHSC7js.stopImpersonatingAccount;
|
61
61
|
//# sourceMappingURL=test.js.map
|
package/dist/test.mjs
CHANGED
package/dist/utils/index.d.ts
CHANGED
@@ -4,12 +4,12 @@ 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-1f324375.js';
|
5
5
|
export { e as encodePacked } from '../encodePacked-d5d5264a.js';
|
6
6
|
export { a as formatAbiItem, f as formatAbiItemWithArgs } from '../formatAbiItem-15e8817d.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,
|
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-c2fb9fa2.js';
|
8
|
+
export { G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, H as HttpOptions, az as RecoverAddressParameters, aA as RecoverAddressReturnType, aB as RecoverMessageAddressParameters, aC as RecoverMessageAddressReturnType, R as RpcResponse, aw as Socket, q as ToRlpReturnType, aD as VerifyMessageParameters, aE as VerifyMessageReturnType, 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, ax as getSocket, $ as hashMessage, a0 as hexToBigInt, a1 as hexToBool, a2 as hexToBytes, a3 as hexToNumber, a4 as hexToString, a5 as isAddress, a6 as isAddressEqual, a7 as isBytes, a8 as isHex, a9 as keccak256, aa as numberToBytes, ab as numberToHex, ac as pad, ad as padBytes, ae as padHex, af as parseEther, ag as parseGwei, ah as parseUnits, ai as recoverAddress, aj as recoverMessageAddress, ay as rpc, 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 verifyMessage } from '../parseGwei-c2fb9fa2.js';
|
9
9
|
export { d as defineChain, g as getChainContractAddress } from '../chain-ec8c485d.js';
|
10
10
|
import { C as CallParameters, E as EstimateGasParameters, S as SendTransactionParameters, W as WalletClient, P as PublicClient } from '../createPublicClient-0021fc35.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-0021fc35.js';
|
12
|
-
import { a2 as Formatter, C as Chain
|
12
|
+
import { a2 as Formatter, C as Chain } from '../chain-1b53ef88.js';
|
13
13
|
export { W as ExtractFormatter, X as Formatted, Y as FormattedTransaction, Z as TransactionFormatter, ac as defineFormatter, _ as defineTransaction, ad as format, $ as formatTransaction, a0 as transactionType } from '../chain-1b53ef88.js';
|
14
14
|
import 'isomorphic-ws';
|
15
15
|
import '../eip1193-4f4e240c.js';
|
@@ -62,21 +62,6 @@ declare const arrayRegex: RegExp;
|
|
62
62
|
declare const bytesRegex: RegExp;
|
63
63
|
declare const integerRegex: RegExp;
|
64
64
|
|
65
|
-
type RecoverMessageAddressParameters = {
|
66
|
-
message: string;
|
67
|
-
signature: Hex | ByteArray;
|
68
|
-
};
|
69
|
-
type RecoverMessageAddressReturnType = Address;
|
70
|
-
declare function recoverMessageAddress({ message, signature, }: RecoverMessageAddressParameters): RecoverMessageAddressReturnType;
|
71
|
-
|
72
|
-
type VerifyMessageParameters = {
|
73
|
-
address: Address;
|
74
|
-
message: string;
|
75
|
-
signature: Hex | ByteArray;
|
76
|
-
};
|
77
|
-
type VerifyMessageReturnType = boolean;
|
78
|
-
declare function verifyMessage({ address, message, signature, }: VerifyMessageParameters): VerifyMessageReturnType;
|
79
|
-
|
80
65
|
declare function assertRequest(args: Partial<SendTransactionParameters<Chain>>): void;
|
81
66
|
|
82
67
|
type PrepareRequestParameters<TParameters extends SendTransactionParameters = SendTransactionParameters> = TParameters;
|
@@ -90,4 +75,4 @@ type PrepareRequestReturnType<TParameters extends SendTransactionParameters = Se
|
|
90
75
|
};
|
91
76
|
declare function prepareRequest<TParameters extends SendTransactionParameters>(client: WalletClient<any, any> | PublicClient<any, any>, args: PrepareRequestParameters<TParameters>): Promise<PrepareRequestReturnType<TParameters>>;
|
92
77
|
|
93
|
-
export {
|
78
|
+
export { arrayRegex, assertRequest, buildRequest, bytesRegex, containsNodeError, extract, extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, getCallError, getEstimateGasError, getNodeError, getTransactionError, integerRegex, prepareRequest };
|
package/dist/utils/index.js
CHANGED
@@ -105,7 +105,7 @@
|
|
105
105
|
|
106
106
|
|
107
107
|
|
108
|
-
var
|
108
|
+
var _chunkXMKUHSC7js = require('../chunk-XMKUHSC7.js');
|
109
109
|
|
110
110
|
|
111
111
|
|
@@ -213,5 +213,5 @@ var _chunkD4NT4PPVjs = require('../chunk-D4NT4PPV.js');
|
|
213
213
|
|
214
214
|
|
215
215
|
|
216
|
-
exports.arrayRegex =
|
216
|
+
exports.arrayRegex = _chunkXMKUHSC7js.arrayRegex; exports.assertRequest = _chunkXMKUHSC7js.assertRequest; exports.boolToBytes = _chunkXMKUHSC7js.boolToBytes; exports.boolToHex = _chunkXMKUHSC7js.boolToHex; exports.buildRequest = _chunkXMKUHSC7js.buildRequest; exports.bytesRegex = _chunkXMKUHSC7js.bytesRegex; exports.bytesToBigint = _chunkXMKUHSC7js.bytesToBigint; exports.bytesToBool = _chunkXMKUHSC7js.bytesToBool; exports.bytesToHex = _chunkXMKUHSC7js.bytesToHex; exports.bytesToNumber = _chunkXMKUHSC7js.bytesToNumber; exports.bytesToString = _chunkXMKUHSC7js.bytesToString; exports.concat = _chunkXMKUHSC7js.concat; exports.concatBytes = _chunkXMKUHSC7js.concatBytes; exports.concatHex = _chunkXMKUHSC7js.concatHex; exports.containsNodeError = _chunkXMKUHSC7js.containsNodeError; exports.decodeAbiParameters = _chunkXMKUHSC7js.decodeAbiParameters; exports.decodeErrorResult = _chunkXMKUHSC7js.decodeErrorResult; exports.decodeEventLog = _chunkXMKUHSC7js.decodeEventLog; exports.decodeFunctionData = _chunkXMKUHSC7js.decodeFunctionData; exports.decodeFunctionResult = _chunkXMKUHSC7js.decodeFunctionResult; exports.defineBlock = _chunkXMKUHSC7js.defineBlock; exports.defineChain = _chunkXMKUHSC7js.defineChain; exports.defineFormatter = _chunkXMKUHSC7js.defineFormatter; exports.defineTransaction = _chunkXMKUHSC7js.defineTransaction; exports.defineTransactionReceipt = _chunkXMKUHSC7js.defineTransactionReceipt; exports.defineTransactionRequest = _chunkXMKUHSC7js.defineTransactionRequest; exports.encodeAbiParameters = _chunkXMKUHSC7js.encodeAbiParameters; exports.encodeDeployData = _chunkXMKUHSC7js.encodeDeployData; exports.encodeErrorResult = _chunkXMKUHSC7js.encodeErrorResult; exports.encodeEventTopics = _chunkXMKUHSC7js.encodeEventTopics; exports.encodeFunctionData = _chunkXMKUHSC7js.encodeFunctionData; exports.encodeFunctionResult = _chunkXMKUHSC7js.encodeFunctionResult; exports.encodePacked = _chunkXMKUHSC7js.encodePacked; exports.extract = _chunkXMKUHSC7js.extract; exports.extractFunctionName = _chunkXMKUHSC7js.extractFunctionName; exports.extractFunctionParams = _chunkXMKUHSC7js.extractFunctionParams; exports.extractFunctionParts = _chunkXMKUHSC7js.extractFunctionParts; exports.extractFunctionType = _chunkXMKUHSC7js.extractFunctionType; exports.format = _chunkXMKUHSC7js.format; exports.formatAbiItem = _chunkXMKUHSC7js.formatAbiItem; exports.formatAbiItemWithArgs = _chunkXMKUHSC7js.formatAbiItemWithArgs; exports.formatBlock = _chunkXMKUHSC7js.formatBlock; exports.formatEther = _chunkXMKUHSC7js.formatEther; exports.formatGwei = _chunkXMKUHSC7js.formatGwei; exports.formatTransaction = _chunkXMKUHSC7js.formatTransaction; exports.formatTransactionRequest = _chunkXMKUHSC7js.formatTransactionRequest; exports.formatUnits = _chunkXMKUHSC7js.formatUnits; exports.fromBytes = _chunkXMKUHSC7js.fromBytes; exports.fromHex = _chunkXMKUHSC7js.fromHex; exports.fromRlp = _chunkXMKUHSC7js.fromRlp; exports.getAbiItem = _chunkXMKUHSC7js.getAbiItem; exports.getAccount = _chunkXMKUHSC7js.getAccount; exports.getAddress = _chunkXMKUHSC7js.getAddress; exports.getCallError = _chunkXMKUHSC7js.getCallError; exports.getChainContractAddress = _chunkXMKUHSC7js.getChainContractAddress; exports.getContractAddress = _chunkXMKUHSC7js.getContractAddress; exports.getContractError = _chunkXMKUHSC7js.getContractError; exports.getCreate2Address = _chunkXMKUHSC7js.getCreate2Address; exports.getCreateAddress = _chunkXMKUHSC7js.getCreateAddress; exports.getEstimateGasError = _chunkXMKUHSC7js.getEstimateGasError; exports.getEventSelector = _chunkXMKUHSC7js.getEventSelector; exports.getFunctionSelector = _chunkXMKUHSC7js.getFunctionSelector; exports.getNodeError = _chunkXMKUHSC7js.getNodeError; exports.getSocket = _chunkXMKUHSC7js.getSocket; exports.getTransactionError = _chunkXMKUHSC7js.getTransactionError; exports.hashMessage = _chunkXMKUHSC7js.hashMessage; exports.hexToBigInt = _chunkXMKUHSC7js.hexToBigInt; exports.hexToBool = _chunkXMKUHSC7js.hexToBool; exports.hexToBytes = _chunkXMKUHSC7js.hexToBytes; exports.hexToNumber = _chunkXMKUHSC7js.hexToNumber; exports.hexToString = _chunkXMKUHSC7js.hexToString; exports.integerRegex = _chunkXMKUHSC7js.integerRegex; exports.isAddress = _chunkXMKUHSC7js.isAddress; exports.isAddressEqual = _chunkXMKUHSC7js.isAddressEqual; exports.isBytes = _chunkXMKUHSC7js.isBytes; exports.isHex = _chunkXMKUHSC7js.isHex; exports.keccak256 = _chunkXMKUHSC7js.keccak256; exports.numberToBytes = _chunkXMKUHSC7js.numberToBytes; exports.numberToHex = _chunkXMKUHSC7js.numberToHex; exports.pad = _chunkXMKUHSC7js.pad; exports.padBytes = _chunkXMKUHSC7js.padBytes; exports.padHex = _chunkXMKUHSC7js.padHex; exports.parseAbi = _chunkXMKUHSC7js.parseAbi; exports.parseAbiItem = _chunkXMKUHSC7js.parseAbiItem; exports.parseAbiParameter = _chunkXMKUHSC7js.parseAbiParameter; exports.parseAbiParameters = _chunkXMKUHSC7js.parseAbiParameters; exports.parseEther = _chunkXMKUHSC7js.parseEther; exports.parseGwei = _chunkXMKUHSC7js.parseGwei; exports.parseUnits = _chunkXMKUHSC7js.parseUnits; exports.prepareRequest = _chunkXMKUHSC7js.prepareRequest; exports.recoverAddress = _chunkXMKUHSC7js.recoverAddress; exports.recoverMessageAddress = _chunkXMKUHSC7js.recoverMessageAddress; exports.rpc = _chunkXMKUHSC7js.rpc; exports.size = _chunkXMKUHSC7js.size; exports.slice = _chunkXMKUHSC7js.slice; exports.sliceBytes = _chunkXMKUHSC7js.sliceBytes; exports.sliceHex = _chunkXMKUHSC7js.sliceHex; exports.stringToBytes = _chunkXMKUHSC7js.stringToBytes; exports.stringToHex = _chunkXMKUHSC7js.stringToHex; exports.stringify = _chunkXMKUHSC7js.stringify; exports.toBytes = _chunkXMKUHSC7js.toBytes; exports.toHex = _chunkXMKUHSC7js.toHex; exports.toRlp = _chunkXMKUHSC7js.toRlp; exports.transactionType = _chunkXMKUHSC7js.transactionType; exports.trim = _chunkXMKUHSC7js.trim; exports.verifyMessage = _chunkXMKUHSC7js.verifyMessage;
|
217
217
|
//# 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 _chunkXMKUHSC7js = require('./chunk-XMKUHSC7.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -21,5 +21,5 @@ var _chunkD4NT4PPVjs = require('./chunk-D4NT4PPV.js');
|
|
21
21
|
|
22
22
|
|
23
23
|
|
24
|
-
exports.addChain =
|
24
|
+
exports.addChain = _chunkXMKUHSC7js.addChain; exports.getAddresses = _chunkXMKUHSC7js.getAddresses; exports.getPermissions = _chunkXMKUHSC7js.getPermissions; exports.requestAddresses = _chunkXMKUHSC7js.requestAddresses; exports.requestPermissions = _chunkXMKUHSC7js.requestPermissions; exports.sendTransaction = _chunkXMKUHSC7js.sendTransaction; exports.signMessage = _chunkXMKUHSC7js.signMessage; exports.signTypedData = _chunkXMKUHSC7js.signTypedData; exports.switchChain = _chunkXMKUHSC7js.switchChain; exports.watchAsset = _chunkXMKUHSC7js.watchAsset;
|
25
25
|
//# sourceMappingURL=wallet.js.map
|
package/dist/wallet.mjs
CHANGED
package/package.json
CHANGED
File without changes
|
File without changes
|