viem 0.3.0-main.20230406T213435 → 0.3.0-main.20230407T013938
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-EW5GG2YC.js → chunk-DT4KSXZC.js} +6 -6
- package/dist/{chunk-DHU5S5YF.mjs → chunk-G5MS5HGY.mjs} +122 -38
- package/dist/chunk-G5MS5HGY.mjs.map +1 -0
- package/dist/{chunk-3IHFW55B.js → chunk-QITZHDNP.js} +126 -42
- package/dist/chunk-QITZHDNP.js.map +1 -0
- package/dist/{chunk-OEUINA6X.mjs → chunk-WROUN36E.mjs} +2 -2
- package/dist/contract.d.ts +2 -2
- 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/{formatAbiItem-e5bbcadb.d.ts → formatAbiItem-aaf282fc.d.ts} +5 -1
- package/dist/{getEnsResolver-314de6e9.d.ts → getEnsResolver-68329c3e.d.ts} +1 -1
- package/dist/index.d.ts +8 -5
- package/dist/index.js +94 -94
- package/dist/index.mjs +1 -1
- package/dist/{parseGwei-4fb29d96.d.ts → parseGwei-e2b004f8.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 +5 -5
- package/dist/utils/index.js +4 -2
- package/dist/utils/index.mjs +3 -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-3IHFW55B.js.map +0 -1
- package/dist/chunk-DHU5S5YF.mjs.map +0 -1
- /package/dist/{chunk-EW5GG2YC.js.map → chunk-DT4KSXZC.js.map} +0 -0
- /package/dist/{chunk-OEUINA6X.mjs.map → chunk-WROUN36E.mjs.map} +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
InvalidAddressError,
|
3
3
|
isAddress
|
4
|
-
} from "./chunk-
|
4
|
+
} from "./chunk-G5MS5HGY.mjs";
|
5
5
|
|
6
6
|
// src/accounts/toAccount.ts
|
7
7
|
function toAccount(source) {
|
@@ -28,4 +28,4 @@ function toAccount(source) {
|
|
28
28
|
export {
|
29
29
|
toAccount
|
30
30
|
};
|
31
|
-
//# sourceMappingURL=chunk-
|
31
|
+
//# sourceMappingURL=chunk-WROUN36E.mjs.map
|
package/dist/contract.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
export { D as DecodeAbiParametersReturnType, E as EncodeAbiParametersReturnType, G as GetAbiItemParameters, d as decodeAbiParameters, e as encodeAbiParameters, g as getAbiItem } from './getAbiItem-443d91a0.js';
|
2
2
|
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-f7c8e382.js';
|
3
|
-
export { a as formatAbiItem, f as formatAbiItemWithArgs } from './formatAbiItem-
|
4
|
-
export { C as CreateContractEventFilterParameters, f as CreateContractEventFilterReturnType, D as DeployContractParameters, o as DeployContractReturnType, E as EstimateContractGasParameters, b as EstimateContractGasReturnType, z as GetBytecodeParameters, B as GetBytecodeReturnType, $ as GetStorageAtParameters, a0 as GetStorageAtReturnType, a9 as MulticallParameters, aa as MulticallReturnType, af as OnLogsFn, ag as OnLogsParameter, R as ReadContractParameters, a as ReadContractReturnType, S as SimulateContractParameters, c as SimulateContractReturnType, g as WatchContractEventParameters, d as WriteContractParameters, e as WriteContractReturnType, b4 as createContractEventFilter, bc as deployContract, b5 as estimateContractGas, b6 as getBytecode, b7 as getStorageAt, b8 as multicall, b9 as readContract, ba as simulateContract, bb as watchContractEvent, bd as writeContract } from './getEnsResolver-
|
3
|
+
export { a as formatAbiItem, f as formatAbiItemWithArgs } from './formatAbiItem-aaf282fc.js';
|
4
|
+
export { C as CreateContractEventFilterParameters, f as CreateContractEventFilterReturnType, D as DeployContractParameters, o as DeployContractReturnType, E as EstimateContractGasParameters, b as EstimateContractGasReturnType, z as GetBytecodeParameters, B as GetBytecodeReturnType, $ as GetStorageAtParameters, a0 as GetStorageAtReturnType, a9 as MulticallParameters, aa as MulticallReturnType, af as OnLogsFn, ag as OnLogsParameter, R as ReadContractParameters, a as ReadContractReturnType, S as SimulateContractParameters, c as SimulateContractReturnType, g as WatchContractEventParameters, d as WriteContractParameters, e as WriteContractReturnType, b4 as createContractEventFilter, bc as deployContract, b5 as estimateContractGas, b6 as getBytecode, b7 as getStorageAt, b8 as multicall, b9 as readContract, ba as simulateContract, bb as watchContractEvent, bd as writeContract } from './getEnsResolver-68329c3e.js';
|
5
5
|
import 'abitype';
|
6
6
|
import './chain-02c77999.js';
|
7
7
|
import '@wagmi/chains';
|
package/dist/contract.js
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
var
|
26
|
+
var _chunkQITZHDNPjs = require('./chunk-QITZHDNP.js');
|
27
27
|
|
28
28
|
|
29
29
|
|
@@ -49,5 +49,5 @@ var _chunk3IHFW55Bjs = require('./chunk-3IHFW55B.js');
|
|
49
49
|
|
50
50
|
|
51
51
|
|
52
|
-
exports.createContractEventFilter =
|
52
|
+
exports.createContractEventFilter = _chunkQITZHDNPjs.createContractEventFilter; exports.decodeAbiParameters = _chunkQITZHDNPjs.decodeAbiParameters; exports.decodeErrorResult = _chunkQITZHDNPjs.decodeErrorResult; exports.decodeEventLog = _chunkQITZHDNPjs.decodeEventLog; exports.decodeFunctionData = _chunkQITZHDNPjs.decodeFunctionData; exports.decodeFunctionResult = _chunkQITZHDNPjs.decodeFunctionResult; exports.deployContract = _chunkQITZHDNPjs.deployContract; exports.encodeAbiParameters = _chunkQITZHDNPjs.encodeAbiParameters; exports.encodeDeployData = _chunkQITZHDNPjs.encodeDeployData; exports.encodeErrorResult = _chunkQITZHDNPjs.encodeErrorResult; exports.encodeEventTopics = _chunkQITZHDNPjs.encodeEventTopics; exports.encodeFunctionData = _chunkQITZHDNPjs.encodeFunctionData; exports.encodeFunctionResult = _chunkQITZHDNPjs.encodeFunctionResult; exports.estimateContractGas = _chunkQITZHDNPjs.estimateContractGas; exports.formatAbiItem = _chunkQITZHDNPjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkQITZHDNPjs.formatAbiItemWithArgs; exports.getAbiItem = _chunkQITZHDNPjs.getAbiItem; exports.getBytecode = _chunkQITZHDNPjs.getBytecode; exports.getStorageAt = _chunkQITZHDNPjs.getStorageAt; exports.multicall = _chunkQITZHDNPjs.multicall; exports.readContract = _chunkQITZHDNPjs.readContract; exports.simulateContract = _chunkQITZHDNPjs.simulateContract; exports.watchContractEvent = _chunkQITZHDNPjs.watchContractEvent; exports.writeContract = _chunkQITZHDNPjs.writeContract;
|
53
53
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.mjs
CHANGED
package/dist/ens.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { H as GetEnsAddressParameters, I as GetEnsAddressReturnType, be as GetEnsAvatarParameters, bf as GetEnsAvatarReturnType, J as GetEnsNameParameters, K as GetEnsNameReturnType, L as GetEnsResolverParameters, M as GetEnsResolverReturnType, bg as GetEnsTextParameters, bh as GetEnsTextReturnType, bi as getEnsAddress, bj as getEnsAvatar, bk as getEnsName, bl as getEnsResolver, bm as getEnsText } from './getEnsResolver-
|
1
|
+
export { H as GetEnsAddressParameters, I as GetEnsAddressReturnType, be as GetEnsAvatarParameters, bf as GetEnsAvatarReturnType, J as GetEnsNameParameters, K as GetEnsNameReturnType, L as GetEnsResolverParameters, M as GetEnsResolverReturnType, bg as GetEnsTextParameters, bh as GetEnsTextReturnType, bi as getEnsAddress, bj as getEnsAvatar, bk as getEnsName, bl as getEnsResolver, bm as getEnsText } from './getEnsResolver-68329c3e.js';
|
2
2
|
export { l as labelhash, n as namehash } from './namehash-afff0feb.js';
|
3
3
|
import './createTransport-55339615.js';
|
4
4
|
import './eip1193-07d9c47f.js';
|
package/dist/ens.js
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
|
9
|
-
var
|
9
|
+
var _chunkQITZHDNPjs = require('./chunk-QITZHDNP.js');
|
10
10
|
|
11
11
|
// src/utils/ens/normalize.ts
|
12
12
|
var _ensnormalize = require('@adraffy/ens-normalize');
|
@@ -22,5 +22,5 @@ function normalize(name) {
|
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
exports.getEnsAddress =
|
25
|
+
exports.getEnsAddress = _chunkQITZHDNPjs.getEnsAddress; exports.getEnsAvatar = _chunkQITZHDNPjs.getEnsAvatar; exports.getEnsName = _chunkQITZHDNPjs.getEnsName; exports.getEnsResolver = _chunkQITZHDNPjs.getEnsResolver; exports.getEnsText = _chunkQITZHDNPjs.getEnsText; exports.labelhash = _chunkQITZHDNPjs.labelhash; exports.namehash = _chunkQITZHDNPjs.namehash; exports.normalize = normalize;
|
26
26
|
//# sourceMappingURL=ens.js.map
|
package/dist/ens.mjs
CHANGED
package/dist/ethers.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
2
2
|
|
3
|
-
var
|
3
|
+
var _chunkDT4KSXZCjs = require('./chunk-DT4KSXZC.js');
|
4
4
|
|
5
5
|
|
6
|
-
var
|
6
|
+
var _chunkQITZHDNPjs = require('./chunk-QITZHDNP.js');
|
7
7
|
|
8
8
|
// src/adapters/ethers.ts
|
9
|
-
var ethersWalletToAccount = (wallet) =>
|
9
|
+
var ethersWalletToAccount = (wallet) => _chunkDT4KSXZCjs.toAccount.call(void 0, {
|
10
10
|
address: wallet.address,
|
11
11
|
async signMessage({ message }) {
|
12
|
-
return await wallet.signMessage(
|
12
|
+
return await wallet.signMessage(_chunkQITZHDNPjs.toBytes.call(void 0, message));
|
13
13
|
},
|
14
14
|
async signTransaction(txn) {
|
15
15
|
let type = null;
|
package/dist/ethers.mjs
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { A as AbiItem } from './chain-02c77999.js';
|
2
|
+
import { AbiParameter } from 'abitype';
|
2
3
|
|
3
4
|
declare function formatAbiItemWithArgs({ abiItem, args, includeFunctionName, includeName, }: {
|
4
5
|
abiItem: AbiItem;
|
@@ -10,5 +11,8 @@ declare function formatAbiItemWithArgs({ abiItem, args, includeFunctionName, inc
|
|
10
11
|
declare function formatAbiItem(abiItem: AbiItem, { includeName }?: {
|
11
12
|
includeName?: boolean;
|
12
13
|
}): string;
|
14
|
+
declare function formatAbiParams(params: readonly AbiParameter[] | undefined, { includeName }?: {
|
15
|
+
includeName?: boolean;
|
16
|
+
}): string;
|
13
17
|
|
14
|
-
export { formatAbiItem as a, formatAbiItemWithArgs as f };
|
18
|
+
export { formatAbiItem as a, formatAbiParams as b, formatAbiItemWithArgs as f };
|
@@ -32,7 +32,7 @@ type FormattedTransactionRequest$1<TFormatter extends Formatter | undefined = Fo
|
|
32
32
|
declare function formatTransactionRequest(transactionRequest: Partial<TransactionRequest>): RpcTransactionRequest;
|
33
33
|
declare const defineTransactionRequest: <TFormat extends Formatter<Partial<TransactionRequest<bigint, number>>, Partial<RpcTransactionRequest> & {
|
34
34
|
[key: string]: unknown;
|
35
|
-
}>, TExclude extends ("
|
35
|
+
}>, TExclude extends ("data" | "value" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "from" | "accessList" | "to" | "gas" | "nonce")[] = []>({ exclude, format: formatOverride, }: {
|
36
36
|
exclude?: TExclude | undefined;
|
37
37
|
format?: TFormat | undefined;
|
38
38
|
}) => (data: Partial<TransactionRequest<bigint, number>> & {
|
package/dist/index.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { P as PublicClient, W as WalletClient, R as ReadContractParameters, a as ReadContractReturnType, E as EstimateContractGasParameters, b as EstimateContractGasReturnType, S as SimulateContractParameters, c as SimulateContractReturnType, d as WriteContractParameters, e as WriteContractReturnType, C as CreateContractEventFilterParameters, f as CreateContractEventFilterReturnType, g as WatchContractEventParameters, h as WatchContractEventReturnType } from './getEnsResolver-
|
2
|
-
export { A as AddChainParameters, aN as AssetGateway, aO as AssetGatewayUrls, aU as BlockFormatter, i as CallParameters, j as CallReturnType, k as CreateBlockFilterReturnType, C as CreateContractEventFilterParameters, f as CreateContractEventFilterReturnType, l as CreateEventFilterParameters, m as CreateEventFilterReturnType, n as CreatePendingTransactionFilterReturnType, D as DeployContractParameters, o as DeployContractReturnType, p as EstimateGasParameters, q as EstimateGasReturnType, aV as FormattedBlock, aW as FormattedTransactionReceipt, aX as FormattedTransactionRequest, G as GetAddressesReturnType, r as GetBalanceParameters, s as GetBalanceReturnType, t as GetBlockNumberParameters, u as GetBlockNumberReturnType, v as GetBlockParameters, w as GetBlockReturnType, x as GetBlockTransactionCountParameters, y as GetBlockTransactionCountReturnType, z as GetBytecodeParameters, B as GetBytecodeReturnType, F as GetChainIdReturnType, H as GetEnsAddressParameters, I as GetEnsAddressReturnType, J as GetEnsNameParameters, K as GetEnsNameReturnType, L as GetEnsResolverParameters, M as GetEnsResolverReturnType, N as GetFeeHistoryParameters, O as GetFeeHistoryReturnType, Q as GetFilterChangesParameters, T as GetFilterChangesReturnType, U as GetFilterLogsParameters, V as GetFilterLogsReturnType, X as GetGasPriceReturnType, Y as GetLogsParameters, Z as GetLogsReturnType, _ as GetPermissionsReturnType, $ as GetStorageAtParameters, a0 as GetStorageAtReturnType, a1 as GetTransactionConfirmationsParameters, a3 as GetTransactionConfirmationsReturnType, a2 as GetTransactionCountParameters, a4 as GetTransactionCountReturnType, a5 as GetTransactionParameters, a6 as GetTransactionReceiptParameters, a7 as GetTransactionReceiptReturnType, a8 as GetTransactionReturnType, aP as GetTransportConfig, aQ as MulticallContracts, a9 as MulticallParameters, aR as MulticallResult, aS as MulticallResults, aa as MulticallReturnType, ab as OnBlock, ac as OnBlockNumberFn, ad as OnBlockNumberParameter, ae as OnBlockParameter, af as OnLogsFn, ag as OnLogsParameter, ah as OnTransactionsFn, ai as OnTransactionsParameter, aT as ParseAccount, P as PublicClient, aJ as PublicClientConfig, R as ReadContractParameters, a as ReadContractReturnType, aj as ReplacementReason, ak as ReplacementReturnType, al as RequestAddressesReturnType, an as RequestPermissionsParameters, am as RequestPermissionsReturnType, ao as SendTransactionParameters, ap as SendTransactionReturnType, aq as SignMessageParameters, ar as SignMessageReturnType, as as SignTypedDataParameters, at as SignTypedDataReturnType, S as SimulateContractParameters, c as SimulateContractReturnType, au as SwitchChainParameters, aY as TransactionReceiptFormatter, aZ as TransactionRequestFormatter, av as UninstallFilterParameters, aw as UninstallFilterReturnType, ax as WaitForTransactionReceiptParameters, ay as WaitForTransactionReceiptReturnType, W as WalletClient, aK as WalletClientConfig, az as WatchAssetParameters, aA as WatchAssetReturnType, aB as WatchBlockNumberParameters, aC as WatchBlockNumberReturnType, aD as WatchBlocksParameters, aE as WatchBlocksReturnType, g as WatchContractEventParameters, h as WatchContractEventReturnType, aF as WatchEventParameters, aG as WatchEventReturnType, aH as WatchPendingTransactionsParameters, aI as WatchPendingTransactionsReturnType, d as WriteContractParameters, e as WriteContractReturnType, aL as createPublicClient, aM as createWalletClient, a_ as defineBlock, a$ as defineTransactionReceipt, b0 as defineTransactionRequest, b1 as formatBlock, b2 as formatTransactionRequest } from './getEnsResolver-
|
1
|
+
import { P as PublicClient, W as WalletClient, R as ReadContractParameters, a as ReadContractReturnType, E as EstimateContractGasParameters, b as EstimateContractGasReturnType, S as SimulateContractParameters, c as SimulateContractReturnType, d as WriteContractParameters, e as WriteContractReturnType, C as CreateContractEventFilterParameters, f as CreateContractEventFilterReturnType, g as WatchContractEventParameters, h as WatchContractEventReturnType } from './getEnsResolver-68329c3e.js';
|
2
|
+
export { A as AddChainParameters, aN as AssetGateway, aO as AssetGatewayUrls, aU as BlockFormatter, i as CallParameters, j as CallReturnType, k as CreateBlockFilterReturnType, C as CreateContractEventFilterParameters, f as CreateContractEventFilterReturnType, l as CreateEventFilterParameters, m as CreateEventFilterReturnType, n as CreatePendingTransactionFilterReturnType, D as DeployContractParameters, o as DeployContractReturnType, p as EstimateGasParameters, q as EstimateGasReturnType, aV as FormattedBlock, aW as FormattedTransactionReceipt, aX as FormattedTransactionRequest, G as GetAddressesReturnType, r as GetBalanceParameters, s as GetBalanceReturnType, t as GetBlockNumberParameters, u as GetBlockNumberReturnType, v as GetBlockParameters, w as GetBlockReturnType, x as GetBlockTransactionCountParameters, y as GetBlockTransactionCountReturnType, z as GetBytecodeParameters, B as GetBytecodeReturnType, F as GetChainIdReturnType, H as GetEnsAddressParameters, I as GetEnsAddressReturnType, J as GetEnsNameParameters, K as GetEnsNameReturnType, L as GetEnsResolverParameters, M as GetEnsResolverReturnType, N as GetFeeHistoryParameters, O as GetFeeHistoryReturnType, Q as GetFilterChangesParameters, T as GetFilterChangesReturnType, U as GetFilterLogsParameters, V as GetFilterLogsReturnType, X as GetGasPriceReturnType, Y as GetLogsParameters, Z as GetLogsReturnType, _ as GetPermissionsReturnType, $ as GetStorageAtParameters, a0 as GetStorageAtReturnType, a1 as GetTransactionConfirmationsParameters, a3 as GetTransactionConfirmationsReturnType, a2 as GetTransactionCountParameters, a4 as GetTransactionCountReturnType, a5 as GetTransactionParameters, a6 as GetTransactionReceiptParameters, a7 as GetTransactionReceiptReturnType, a8 as GetTransactionReturnType, aP as GetTransportConfig, aQ as MulticallContracts, a9 as MulticallParameters, aR as MulticallResult, aS as MulticallResults, aa as MulticallReturnType, ab as OnBlock, ac as OnBlockNumberFn, ad as OnBlockNumberParameter, ae as OnBlockParameter, af as OnLogsFn, ag as OnLogsParameter, ah as OnTransactionsFn, ai as OnTransactionsParameter, aT as ParseAccount, P as PublicClient, aJ as PublicClientConfig, R as ReadContractParameters, a as ReadContractReturnType, aj as ReplacementReason, ak as ReplacementReturnType, al as RequestAddressesReturnType, an as RequestPermissionsParameters, am as RequestPermissionsReturnType, ao as SendTransactionParameters, ap as SendTransactionReturnType, aq as SignMessageParameters, ar as SignMessageReturnType, as as SignTypedDataParameters, at as SignTypedDataReturnType, S as SimulateContractParameters, c as SimulateContractReturnType, au as SwitchChainParameters, aY as TransactionReceiptFormatter, aZ as TransactionRequestFormatter, av as UninstallFilterParameters, aw as UninstallFilterReturnType, ax as WaitForTransactionReceiptParameters, ay as WaitForTransactionReceiptReturnType, W as WalletClient, aK as WalletClientConfig, az as WatchAssetParameters, aA as WatchAssetReturnType, aB as WatchBlockNumberParameters, aC as WatchBlockNumberReturnType, aD as WatchBlocksParameters, aE as WatchBlocksReturnType, g as WatchContractEventParameters, h as WatchContractEventReturnType, aF as WatchEventParameters, aG as WatchEventReturnType, aH as WatchPendingTransactionsParameters, aI as WatchPendingTransactionsReturnType, d as WriteContractParameters, e as WriteContractReturnType, aL as createPublicClient, aM as createWalletClient, a_ as defineBlock, a$ as defineTransactionReceipt, b0 as defineTransactionRequest, b1 as formatBlock, b2 as formatTransactionRequest } from './getEnsResolver-68329c3e.js';
|
3
3
|
import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './createTransport-55339615.js';
|
4
4
|
export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createTransport-55339615.js';
|
5
|
-
import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-
|
6
|
-
export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, p as GetCreate2AddressOptions, q as GetCreateAddressOptions, r as GetSerializedTransactionType, s as GetTransactionType, t as HashTypedDataParameters, u as HashTypedDataReturnType, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, h as InvalidLegacyVError, N as NonceMaxValueError, i as NonceTooHighError, j as NonceTooLowError, k as RawContractError, v as RecoverAddressParameters, w as RecoverAddressReturnType, x as RecoverMessageAddressParameters, y as RecoverMessageAddressReturnType, z as RecoverTypedDataAddressParameters, A as RecoverTypedDataAddressReturnType, T as TipAboveFeeCapError, D as ToRlpReturnType, l as TransactionExecutionError, n as TransactionNotFoundError, o as TransactionReceiptNotFoundError, m as TransactionTypeNotSupportedError, U as UnknownNodeError, V as VerifyMessageParameters, J as VerifyMessageReturnType, K as VerifyTypedDataParameters, L as VerifyTypedDataReturnType, W as WaitForTransactionReceiptTimeoutError, 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, 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, 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-
|
5
|
+
import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-e2b004f8.js';
|
6
|
+
export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, p as GetCreate2AddressOptions, q as GetCreateAddressOptions, r as GetSerializedTransactionType, s as GetTransactionType, t as HashTypedDataParameters, u as HashTypedDataReturnType, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, h as InvalidLegacyVError, N as NonceMaxValueError, i as NonceTooHighError, j as NonceTooLowError, k as RawContractError, v as RecoverAddressParameters, w as RecoverAddressReturnType, x as RecoverMessageAddressParameters, y as RecoverMessageAddressReturnType, z as RecoverTypedDataAddressParameters, A as RecoverTypedDataAddressReturnType, T as TipAboveFeeCapError, D as ToRlpReturnType, l as TransactionExecutionError, n as TransactionNotFoundError, o as TransactionReceiptNotFoundError, m as TransactionTypeNotSupportedError, U as UnknownNodeError, V as VerifyMessageParameters, J as VerifyMessageReturnType, K as VerifyTypedDataParameters, L as VerifyTypedDataReturnType, W as WaitForTransactionReceiptTimeoutError, 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, 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, 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-e2b004f8.js';
|
7
7
|
import WebSocket from 'isomorphic-ws';
|
8
8
|
import { H as Hex, A as AbiItem, a as Hash, C as Chain, B as ByteArray, I as IsNarrowable, P as Prettify, b as IsNever, c as IsUndefined, d as AbiEventParametersToPrimitiveTypes, M as MaybeExtractEventArgsFromAbi } from './chain-02c77999.js';
|
9
9
|
export { A as AbiItem, e as AccessList, f as Block, g as BlockIdentifier, h as BlockNumber, i as BlockTag, B as ByteArray, C as Chain, j as ContractFunctionConfig, k as ContractFunctionResult, ab as ExtractFormatter, F as FeeHistory, l as FeeValues, m as FeeValuesEIP1559, n as FeeValuesLegacy, ac as Formatted, ad as FormattedTransaction, G as GetConstructorArgs, o as GetErrorArgs, p as GetEventArgs, q as GetEventArgsFromTopics, r as GetFunctionArgs, s as GetValue, a as Hash, H as Hex, t as InferErrorName, u as InferEventName, v as InferFunctionName, w as InferItemName, L as Log, R as RpcBlock, x as RpcBlockIdentifier, y as RpcBlockNumber, z as RpcFeeHistory, D as RpcFeeValues, E as RpcLog, J as RpcTransaction, K as RpcTransactionReceipt, N as RpcTransactionRequest, O as RpcUncle, T as Transaction, Q as TransactionBase, S as TransactionEIP1559, U as TransactionEIP2930, ae as TransactionFormatter, V as TransactionLegacy, W as TransactionReceipt, X as TransactionRequest, Y as TransactionRequestBase, Z as TransactionRequestEIP1559, _ as TransactionRequestEIP2930, $ as TransactionRequestLegacy, a0 as TransactionSerializable, a1 as TransactionSerializableBase, a2 as TransactionSerializableEIP1559, a3 as TransactionSerializableEIP2930, a4 as TransactionSerializableLegacy, a5 as TransactionSerialized, a6 as TransactionSerializedEIP1559, a7 as TransactionSerializedEIP2930, a8 as TransactionSerializedLegacy, a9 as TransactionType, aa as Uncle, af as defineTransaction, ag as formatTransaction, ah as transactionType } from './chain-02c77999.js';
|
@@ -36,7 +36,10 @@ declare class AbiConstructorParamsNotFoundError extends BaseError {
|
|
36
36
|
}
|
37
37
|
declare class AbiDecodingDataSizeInvalidError extends BaseError {
|
38
38
|
name: string;
|
39
|
-
constructor(size:
|
39
|
+
constructor({ data, size }: {
|
40
|
+
data: Hex;
|
41
|
+
size: number;
|
42
|
+
});
|
40
43
|
}
|
41
44
|
declare class AbiDecodingZeroDataError extends BaseError {
|
42
45
|
name: string;
|
package/dist/index.js
CHANGED
@@ -265,7 +265,7 @@
|
|
265
265
|
|
266
266
|
|
267
267
|
|
268
|
-
var
|
268
|
+
var _chunkQITZHDNPjs = require('./chunk-QITZHDNP.js');
|
269
269
|
|
270
270
|
// src/clients/transports/createTransport.ts
|
271
271
|
function createTransport({
|
@@ -279,7 +279,7 @@ function createTransport({
|
|
279
279
|
}, value) {
|
280
280
|
return {
|
281
281
|
config: { key, name, request, retryCount, retryDelay, timeout, type },
|
282
|
-
request:
|
282
|
+
request: _chunkQITZHDNPjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
|
283
283
|
value
|
284
284
|
};
|
285
285
|
}
|
@@ -321,7 +321,7 @@ function fallback(transports_, config = {}) {
|
|
321
321
|
params
|
322
322
|
});
|
323
323
|
} catch (err) {
|
324
|
-
if (
|
324
|
+
if (_chunkQITZHDNPjs.isDeterministicError.call(void 0, err))
|
325
325
|
throw err;
|
326
326
|
if (i === transports.length - 1)
|
327
327
|
throw err;
|
@@ -405,7 +405,7 @@ function rankTransports({
|
|
405
405
|
];
|
406
406
|
}).sort((a, b) => b[0] - a[0]);
|
407
407
|
onTransports(scores.map(([, i]) => transports[i]));
|
408
|
-
await
|
408
|
+
await _chunkQITZHDNPjs.wait.call(void 0, interval);
|
409
409
|
rankTransports_();
|
410
410
|
};
|
411
411
|
rankTransports_();
|
@@ -424,13 +424,13 @@ function http(url, config = {}) {
|
|
424
424
|
const timeout = _nullishCoalesce(_nullishCoalesce(timeout_, () => ( config.timeout)), () => ( 1e4));
|
425
425
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _2 => _2.rpcUrls, 'access', _3 => _3.default, 'access', _4 => _4.http, 'access', _5 => _5[0]]);
|
426
426
|
if (!url_)
|
427
|
-
throw new (0,
|
427
|
+
throw new (0, _chunkQITZHDNPjs.UrlRequiredError)();
|
428
428
|
return createTransport(
|
429
429
|
{
|
430
430
|
key,
|
431
431
|
name,
|
432
432
|
async request({ method, params }) {
|
433
|
-
const { result } = await
|
433
|
+
const { result } = await _chunkQITZHDNPjs.rpc.http(url_, {
|
434
434
|
body: {
|
435
435
|
method,
|
436
436
|
params
|
@@ -460,14 +460,14 @@ function webSocket(url, config = {}) {
|
|
460
460
|
const timeout = _nullishCoalesce(_nullishCoalesce(timeout_, () => ( config.timeout)), () => ( 1e4));
|
461
461
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _6 => _6.rpcUrls, 'access', _7 => _7.default, 'access', _8 => _8.webSocket, 'optionalAccess', _9 => _9[0]]);
|
462
462
|
if (!url_)
|
463
|
-
throw new (0,
|
463
|
+
throw new (0, _chunkQITZHDNPjs.UrlRequiredError)();
|
464
464
|
return createTransport(
|
465
465
|
{
|
466
466
|
key,
|
467
467
|
name,
|
468
468
|
async request({ method, params }) {
|
469
|
-
const socket = await
|
470
|
-
const { result } = await
|
469
|
+
const socket = await _chunkQITZHDNPjs.getSocket.call(void 0, url_);
|
470
|
+
const { result } = await _chunkQITZHDNPjs.rpc.webSocketAsync(socket, {
|
471
471
|
body: { method, params },
|
472
472
|
timeout
|
473
473
|
});
|
@@ -480,12 +480,12 @@ function webSocket(url, config = {}) {
|
|
480
480
|
},
|
481
481
|
{
|
482
482
|
getSocket() {
|
483
|
-
return
|
483
|
+
return _chunkQITZHDNPjs.getSocket.call(void 0, url_);
|
484
484
|
},
|
485
485
|
async subscribe({ params, onData, onError }) {
|
486
|
-
const socket = await
|
486
|
+
const socket = await _chunkQITZHDNPjs.getSocket.call(void 0, url_);
|
487
487
|
const { result: subscriptionId } = await new Promise(
|
488
|
-
(resolve, reject) =>
|
488
|
+
(resolve, reject) => _chunkQITZHDNPjs.rpc.webSocket(socket, {
|
489
489
|
body: {
|
490
490
|
method: "eth_subscribe",
|
491
491
|
params
|
@@ -509,7 +509,7 @@ function webSocket(url, config = {}) {
|
|
509
509
|
subscriptionId,
|
510
510
|
async unsubscribe() {
|
511
511
|
return new Promise(
|
512
|
-
(resolve, reject) =>
|
512
|
+
(resolve, reject) => _chunkQITZHDNPjs.rpc.webSocket(socket, {
|
513
513
|
body: {
|
514
514
|
method: "eth_unsubscribe",
|
515
515
|
params: [subscriptionId]
|
@@ -565,95 +565,95 @@ function createClient({
|
|
565
565
|
|
566
566
|
// src/clients/decorators/public.ts
|
567
567
|
var publicActions = (client) => ({
|
568
|
-
call: (args) =>
|
569
|
-
createBlockFilter: () =>
|
570
|
-
createContractEventFilter: (args) =>
|
571
|
-
createEventFilter: (args) =>
|
572
|
-
createPendingTransactionFilter: () =>
|
573
|
-
estimateContractGas: (args) =>
|
574
|
-
estimateGas: (args) =>
|
575
|
-
getBalance: (args) =>
|
576
|
-
getBlock: (args) =>
|
577
|
-
getBlockNumber: (args) =>
|
578
|
-
getBlockTransactionCount: (args) =>
|
579
|
-
getBytecode: (args) =>
|
580
|
-
getChainId: () =>
|
581
|
-
getEnsAddress: (args) =>
|
582
|
-
getEnsAvatar: (args) =>
|
583
|
-
getEnsName: (args) =>
|
584
|
-
getEnsResolver: (args) =>
|
585
|
-
getEnsText: (args) =>
|
586
|
-
getFeeHistory: (args) =>
|
587
|
-
getFilterChanges: (args) =>
|
588
|
-
getFilterLogs: (args) =>
|
589
|
-
getGasPrice: () =>
|
590
|
-
getLogs: (args) =>
|
591
|
-
getStorageAt: (args) =>
|
592
|
-
getTransaction: (args) =>
|
593
|
-
getTransactionConfirmations: (args) =>
|
594
|
-
getTransactionCount: (args) =>
|
595
|
-
getTransactionReceipt: (args) =>
|
596
|
-
multicall: (args) =>
|
597
|
-
readContract: (args) =>
|
598
|
-
simulateContract: (args) =>
|
599
|
-
uninstallFilter: (args) =>
|
600
|
-
waitForTransactionReceipt: (args) =>
|
601
|
-
watchBlocks: (args) =>
|
602
|
-
watchBlockNumber: (args) =>
|
603
|
-
watchContractEvent: (args) =>
|
604
|
-
watchEvent: (args) =>
|
605
|
-
watchPendingTransactions: (args) =>
|
568
|
+
call: (args) => _chunkQITZHDNPjs.call.call(void 0, client, args),
|
569
|
+
createBlockFilter: () => _chunkQITZHDNPjs.createBlockFilter.call(void 0, client),
|
570
|
+
createContractEventFilter: (args) => _chunkQITZHDNPjs.createContractEventFilter.call(void 0, client, args),
|
571
|
+
createEventFilter: (args) => _chunkQITZHDNPjs.createEventFilter.call(void 0, client, args),
|
572
|
+
createPendingTransactionFilter: () => _chunkQITZHDNPjs.createPendingTransactionFilter.call(void 0, client),
|
573
|
+
estimateContractGas: (args) => _chunkQITZHDNPjs.estimateContractGas.call(void 0, client, args),
|
574
|
+
estimateGas: (args) => _chunkQITZHDNPjs.estimateGas.call(void 0, client, args),
|
575
|
+
getBalance: (args) => _chunkQITZHDNPjs.getBalance.call(void 0, client, args),
|
576
|
+
getBlock: (args) => _chunkQITZHDNPjs.getBlock.call(void 0, client, args),
|
577
|
+
getBlockNumber: (args) => _chunkQITZHDNPjs.getBlockNumber.call(void 0, client, args),
|
578
|
+
getBlockTransactionCount: (args) => _chunkQITZHDNPjs.getBlockTransactionCount.call(void 0, client, args),
|
579
|
+
getBytecode: (args) => _chunkQITZHDNPjs.getBytecode.call(void 0, client, args),
|
580
|
+
getChainId: () => _chunkQITZHDNPjs.getChainId.call(void 0, client),
|
581
|
+
getEnsAddress: (args) => _chunkQITZHDNPjs.getEnsAddress.call(void 0, client, args),
|
582
|
+
getEnsAvatar: (args) => _chunkQITZHDNPjs.getEnsAvatar.call(void 0, client, args),
|
583
|
+
getEnsName: (args) => _chunkQITZHDNPjs.getEnsName.call(void 0, client, args),
|
584
|
+
getEnsResolver: (args) => _chunkQITZHDNPjs.getEnsResolver.call(void 0, client, args),
|
585
|
+
getEnsText: (args) => _chunkQITZHDNPjs.getEnsText.call(void 0, client, args),
|
586
|
+
getFeeHistory: (args) => _chunkQITZHDNPjs.getFeeHistory.call(void 0, client, args),
|
587
|
+
getFilterChanges: (args) => _chunkQITZHDNPjs.getFilterChanges.call(void 0, client, args),
|
588
|
+
getFilterLogs: (args) => _chunkQITZHDNPjs.getFilterLogs.call(void 0, client, args),
|
589
|
+
getGasPrice: () => _chunkQITZHDNPjs.getGasPrice.call(void 0, client),
|
590
|
+
getLogs: (args) => _chunkQITZHDNPjs.getLogs.call(void 0, client, args),
|
591
|
+
getStorageAt: (args) => _chunkQITZHDNPjs.getStorageAt.call(void 0, client, args),
|
592
|
+
getTransaction: (args) => _chunkQITZHDNPjs.getTransaction.call(void 0, client, args),
|
593
|
+
getTransactionConfirmations: (args) => _chunkQITZHDNPjs.getTransactionConfirmations.call(void 0, client, args),
|
594
|
+
getTransactionCount: (args) => _chunkQITZHDNPjs.getTransactionCount.call(void 0, client, args),
|
595
|
+
getTransactionReceipt: (args) => _chunkQITZHDNPjs.getTransactionReceipt.call(void 0, client, args),
|
596
|
+
multicall: (args) => _chunkQITZHDNPjs.multicall.call(void 0, client, args),
|
597
|
+
readContract: (args) => _chunkQITZHDNPjs.readContract.call(void 0, client, args),
|
598
|
+
simulateContract: (args) => _chunkQITZHDNPjs.simulateContract.call(void 0, client, args),
|
599
|
+
uninstallFilter: (args) => _chunkQITZHDNPjs.uninstallFilter.call(void 0, client, args),
|
600
|
+
waitForTransactionReceipt: (args) => _chunkQITZHDNPjs.waitForTransactionReceipt.call(void 0, client, args),
|
601
|
+
watchBlocks: (args) => _chunkQITZHDNPjs.watchBlocks.call(void 0, client, args),
|
602
|
+
watchBlockNumber: (args) => _chunkQITZHDNPjs.watchBlockNumber.call(void 0, client, args),
|
603
|
+
watchContractEvent: (args) => _chunkQITZHDNPjs.watchContractEvent.call(void 0, client, args),
|
604
|
+
watchEvent: (args) => _chunkQITZHDNPjs.watchEvent.call(void 0, client, args),
|
605
|
+
watchPendingTransactions: (args) => _chunkQITZHDNPjs.watchPendingTransactions.call(void 0, client, args)
|
606
606
|
});
|
607
607
|
|
608
608
|
// src/clients/decorators/test.ts
|
609
609
|
function testActions(client) {
|
610
610
|
return {
|
611
|
-
dropTransaction: (args) =>
|
612
|
-
getAutomine: () =>
|
613
|
-
getTxpoolContent: () =>
|
614
|
-
getTxpoolStatus: () =>
|
615
|
-
impersonateAccount: (args) =>
|
616
|
-
increaseTime: (args) =>
|
617
|
-
inspectTxpool: () =>
|
618
|
-
mine: (args) =>
|
619
|
-
removeBlockTimestampInterval: () =>
|
620
|
-
reset: (args) =>
|
621
|
-
revert: (args) =>
|
622
|
-
sendUnsignedTransaction: (args) =>
|
623
|
-
setAutomine: (args) =>
|
624
|
-
setBalance: (args) =>
|
625
|
-
setBlockGasLimit: (args) =>
|
626
|
-
setBlockTimestampInterval: (args) =>
|
627
|
-
setCode: (args) =>
|
628
|
-
setCoinbase: (args) =>
|
629
|
-
setIntervalMining: (args) =>
|
630
|
-
setLoggingEnabled: (args) =>
|
631
|
-
setMinGasPrice: (args) =>
|
632
|
-
setNextBlockBaseFeePerGas: (args) =>
|
633
|
-
setNextBlockTimestamp: (args) =>
|
634
|
-
setNonce: (args) =>
|
635
|
-
setRpcUrl: (args) =>
|
636
|
-
setStorageAt: (args) =>
|
637
|
-
snapshot: () =>
|
638
|
-
stopImpersonatingAccount: (args) =>
|
611
|
+
dropTransaction: (args) => _chunkQITZHDNPjs.dropTransaction.call(void 0, client, args),
|
612
|
+
getAutomine: () => _chunkQITZHDNPjs.getAutomine.call(void 0, client),
|
613
|
+
getTxpoolContent: () => _chunkQITZHDNPjs.getTxpoolContent.call(void 0, client),
|
614
|
+
getTxpoolStatus: () => _chunkQITZHDNPjs.getTxpoolStatus.call(void 0, client),
|
615
|
+
impersonateAccount: (args) => _chunkQITZHDNPjs.impersonateAccount.call(void 0, client, args),
|
616
|
+
increaseTime: (args) => _chunkQITZHDNPjs.increaseTime.call(void 0, client, args),
|
617
|
+
inspectTxpool: () => _chunkQITZHDNPjs.inspectTxpool.call(void 0, client),
|
618
|
+
mine: (args) => _chunkQITZHDNPjs.mine.call(void 0, client, args),
|
619
|
+
removeBlockTimestampInterval: () => _chunkQITZHDNPjs.removeBlockTimestampInterval.call(void 0, client),
|
620
|
+
reset: (args) => _chunkQITZHDNPjs.reset.call(void 0, client, args),
|
621
|
+
revert: (args) => _chunkQITZHDNPjs.revert.call(void 0, client, args),
|
622
|
+
sendUnsignedTransaction: (args) => _chunkQITZHDNPjs.sendUnsignedTransaction.call(void 0, client, args),
|
623
|
+
setAutomine: (args) => _chunkQITZHDNPjs.setAutomine.call(void 0, client, args),
|
624
|
+
setBalance: (args) => _chunkQITZHDNPjs.setBalance.call(void 0, client, args),
|
625
|
+
setBlockGasLimit: (args) => _chunkQITZHDNPjs.setBlockGasLimit.call(void 0, client, args),
|
626
|
+
setBlockTimestampInterval: (args) => _chunkQITZHDNPjs.setBlockTimestampInterval.call(void 0, client, args),
|
627
|
+
setCode: (args) => _chunkQITZHDNPjs.setCode.call(void 0, client, args),
|
628
|
+
setCoinbase: (args) => _chunkQITZHDNPjs.setCoinbase.call(void 0, client, args),
|
629
|
+
setIntervalMining: (args) => _chunkQITZHDNPjs.setIntervalMining.call(void 0, client, args),
|
630
|
+
setLoggingEnabled: (args) => _chunkQITZHDNPjs.setLoggingEnabled.call(void 0, client, args),
|
631
|
+
setMinGasPrice: (args) => _chunkQITZHDNPjs.setMinGasPrice.call(void 0, client, args),
|
632
|
+
setNextBlockBaseFeePerGas: (args) => _chunkQITZHDNPjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
|
633
|
+
setNextBlockTimestamp: (args) => _chunkQITZHDNPjs.setNextBlockTimestamp.call(void 0, client, args),
|
634
|
+
setNonce: (args) => _chunkQITZHDNPjs.setNonce.call(void 0, client, args),
|
635
|
+
setRpcUrl: (args) => _chunkQITZHDNPjs.setRpcUrl.call(void 0, client, args),
|
636
|
+
setStorageAt: (args) => _chunkQITZHDNPjs.setStorageAt.call(void 0, client, args),
|
637
|
+
snapshot: () => _chunkQITZHDNPjs.snapshot.call(void 0, client),
|
638
|
+
stopImpersonatingAccount: (args) => _chunkQITZHDNPjs.stopImpersonatingAccount.call(void 0, client, args)
|
639
639
|
};
|
640
640
|
}
|
641
641
|
|
642
642
|
// src/clients/decorators/wallet.ts
|
643
643
|
var walletActions = (client) => ({
|
644
|
-
addChain: (args) =>
|
645
|
-
deployContract: (args) =>
|
646
|
-
getAddresses: () =>
|
647
|
-
getChainId: () =>
|
648
|
-
getPermissions: () =>
|
649
|
-
requestAddresses: () =>
|
650
|
-
requestPermissions: (args) =>
|
651
|
-
sendTransaction: (args) =>
|
652
|
-
signMessage: (args) =>
|
653
|
-
signTypedData: (args) =>
|
654
|
-
switchChain: (args) =>
|
655
|
-
watchAsset: (args) =>
|
656
|
-
writeContract: (args) =>
|
644
|
+
addChain: (args) => _chunkQITZHDNPjs.addChain.call(void 0, client, args),
|
645
|
+
deployContract: (args) => _chunkQITZHDNPjs.deployContract.call(void 0, client, args),
|
646
|
+
getAddresses: () => _chunkQITZHDNPjs.getAddresses.call(void 0, client),
|
647
|
+
getChainId: () => _chunkQITZHDNPjs.getChainId.call(void 0, client),
|
648
|
+
getPermissions: () => _chunkQITZHDNPjs.getPermissions.call(void 0, client),
|
649
|
+
requestAddresses: () => _chunkQITZHDNPjs.requestAddresses.call(void 0, client),
|
650
|
+
requestPermissions: (args) => _chunkQITZHDNPjs.requestPermissions.call(void 0, client, args),
|
651
|
+
sendTransaction: (args) => _chunkQITZHDNPjs.sendTransaction.call(void 0, client, args),
|
652
|
+
signMessage: (args) => _chunkQITZHDNPjs.signMessage.call(void 0, client, args),
|
653
|
+
signTypedData: (args) => _chunkQITZHDNPjs.signTypedData.call(void 0, client, args),
|
654
|
+
switchChain: (args) => _chunkQITZHDNPjs.switchChain.call(void 0, client, args),
|
655
|
+
watchAsset: (args) => _chunkQITZHDNPjs.watchAsset.call(void 0, client, args),
|
656
|
+
writeContract: (args) => _chunkQITZHDNPjs.writeContract.call(void 0, client, args)
|
657
657
|
});
|
658
658
|
|
659
659
|
// src/clients/createPublicClient.ts
|
@@ -722,7 +722,7 @@ function createWalletClient({
|
|
722
722
|
transport: (opts) => transport({ ...opts, retryCount: 0 }),
|
723
723
|
type: "walletClient"
|
724
724
|
}),
|
725
|
-
account: account ?
|
725
|
+
account: account ? _chunkQITZHDNPjs.parseAccount.call(void 0, account) : void 0
|
726
726
|
};
|
727
727
|
return {
|
728
728
|
...client,
|
@@ -921,5 +921,5 @@ function createWalletClient({
|
|
921
921
|
|
922
922
|
|
923
923
|
|
924
|
-
exports.AbiConstructorNotFoundError = _chunk3IHFW55Bjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunk3IHFW55Bjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunk3IHFW55Bjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunk3IHFW55Bjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunk3IHFW55Bjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunk3IHFW55Bjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunk3IHFW55Bjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunk3IHFW55Bjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunk3IHFW55Bjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunk3IHFW55Bjs.AbiEventNotFoundError; exports.AbiEventSignatureEmptyTopicsError = _chunk3IHFW55Bjs.AbiEventSignatureEmptyTopicsError; exports.AbiEventSignatureNotFoundError = _chunk3IHFW55Bjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunk3IHFW55Bjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunk3IHFW55Bjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunk3IHFW55Bjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunk3IHFW55Bjs.BaseError; exports.BlockNotFoundError = _chunk3IHFW55Bjs.BlockNotFoundError; exports.CallExecutionError = _chunk3IHFW55Bjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunk3IHFW55Bjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunk3IHFW55Bjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunk3IHFW55Bjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunk3IHFW55Bjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunk3IHFW55Bjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunk3IHFW55Bjs.DataLengthTooShortError; exports.DecodeLogTopicsMismatch = _chunk3IHFW55Bjs.DecodeLogTopicsMismatch; exports.EnsAvatarUriResolutionError = _chunk3IHFW55Bjs.EnsAvatarUriResolutionError; exports.EstimateGasExecutionError = _chunk3IHFW55Bjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunk3IHFW55Bjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunk3IHFW55Bjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunk3IHFW55Bjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunk3IHFW55Bjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunk3IHFW55Bjs.HttpRequestError; exports.InsufficientFundsError = _chunk3IHFW55Bjs.InsufficientFundsError; exports.InternalRpcError = _chunk3IHFW55Bjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunk3IHFW55Bjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunk3IHFW55Bjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunk3IHFW55Bjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunk3IHFW55Bjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunk3IHFW55Bjs.InvalidAddressError; exports.InvalidArrayError = _chunk3IHFW55Bjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunk3IHFW55Bjs.InvalidBytesBooleanError; exports.InvalidChainIdError = _chunk3IHFW55Bjs.InvalidChainIdError; exports.InvalidDefinitionTypeError = _chunk3IHFW55Bjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunk3IHFW55Bjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunk3IHFW55Bjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunk3IHFW55Bjs.InvalidInputRpcError; exports.InvalidLegacyVError = _chunk3IHFW55Bjs.InvalidLegacyVError; exports.InvalidParamsRpcError = _chunk3IHFW55Bjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunk3IHFW55Bjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunk3IHFW55Bjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunk3IHFW55Bjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunk3IHFW55Bjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunk3IHFW55Bjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunk3IHFW55Bjs.NonceMaxValueError; exports.NonceTooHighError = _chunk3IHFW55Bjs.NonceTooHighError; exports.NonceTooLowError = _chunk3IHFW55Bjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunk3IHFW55Bjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunk3IHFW55Bjs.ParseRpcError; exports.RawContractError = _chunk3IHFW55Bjs.RawContractError; exports.RequestError = _chunk3IHFW55Bjs.RequestError; exports.ResourceNotFoundRpcError = _chunk3IHFW55Bjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunk3IHFW55Bjs.ResourceUnavailableRpcError; exports.RpcError = _chunk3IHFW55Bjs.RpcError; exports.RpcRequestError = _chunk3IHFW55Bjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunk3IHFW55Bjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunk3IHFW55Bjs.SwitchChainError; exports.TimeoutError = _chunk3IHFW55Bjs.TimeoutError; exports.TipAboveFeeCapError = _chunk3IHFW55Bjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunk3IHFW55Bjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunk3IHFW55Bjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunk3IHFW55Bjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunk3IHFW55Bjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunk3IHFW55Bjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunk3IHFW55Bjs.UnknownNodeError; exports.UnknownRpcError = _chunk3IHFW55Bjs.UnknownRpcError; exports.UrlRequiredError = _chunk3IHFW55Bjs.UrlRequiredError; exports.UserRejectedRequestError = _chunk3IHFW55Bjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunk3IHFW55Bjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunk3IHFW55Bjs.WebSocketRequestError; exports.assertRequest = _chunk3IHFW55Bjs.assertRequest; exports.assertTransactionEIP1559 = _chunk3IHFW55Bjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunk3IHFW55Bjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunk3IHFW55Bjs.assertTransactionLegacy; exports.boolToBytes = _chunk3IHFW55Bjs.boolToBytes; exports.boolToHex = _chunk3IHFW55Bjs.boolToHex; exports.bytesToBigint = _chunk3IHFW55Bjs.bytesToBigint; exports.bytesToBool = _chunk3IHFW55Bjs.bytesToBool; exports.bytesToHex = _chunk3IHFW55Bjs.bytesToHex; exports.bytesToNumber = _chunk3IHFW55Bjs.bytesToNumber; exports.bytesToString = _chunk3IHFW55Bjs.bytesToString; exports.concat = _chunk3IHFW55Bjs.concat; exports.concatBytes = _chunk3IHFW55Bjs.concatBytes; exports.concatHex = _chunk3IHFW55Bjs.concatHex; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunk3IHFW55Bjs.decodeAbiParameters; exports.decodeErrorResult = _chunk3IHFW55Bjs.decodeErrorResult; exports.decodeEventLog = _chunk3IHFW55Bjs.decodeEventLog; exports.decodeFunctionData = _chunk3IHFW55Bjs.decodeFunctionData; exports.decodeFunctionResult = _chunk3IHFW55Bjs.decodeFunctionResult; exports.defineBlock = _chunk3IHFW55Bjs.defineBlock; exports.defineChain = _chunk3IHFW55Bjs.defineChain; exports.defineTransaction = _chunk3IHFW55Bjs.defineTransaction; exports.defineTransactionReceipt = _chunk3IHFW55Bjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunk3IHFW55Bjs.defineTransactionRequest; exports.encodeAbiParameters = _chunk3IHFW55Bjs.encodeAbiParameters; exports.encodeDeployData = _chunk3IHFW55Bjs.encodeDeployData; exports.encodeErrorResult = _chunk3IHFW55Bjs.encodeErrorResult; exports.encodeEventTopics = _chunk3IHFW55Bjs.encodeEventTopics; exports.encodeFunctionData = _chunk3IHFW55Bjs.encodeFunctionData; exports.encodeFunctionResult = _chunk3IHFW55Bjs.encodeFunctionResult; exports.encodePacked = _chunk3IHFW55Bjs.encodePacked; exports.etherUnits = _chunk3IHFW55Bjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunk3IHFW55Bjs.formatBlock; exports.formatEther = _chunk3IHFW55Bjs.formatEther; exports.formatGwei = _chunk3IHFW55Bjs.formatGwei; exports.formatTransaction = _chunk3IHFW55Bjs.formatTransaction; exports.formatTransactionRequest = _chunk3IHFW55Bjs.formatTransactionRequest; exports.formatUnits = _chunk3IHFW55Bjs.formatUnits; exports.fromBytes = _chunk3IHFW55Bjs.fromBytes; exports.fromHex = _chunk3IHFW55Bjs.fromHex; exports.fromRlp = _chunk3IHFW55Bjs.fromRlp; exports.getAbiItem = _chunk3IHFW55Bjs.getAbiItem; exports.getAddress = _chunk3IHFW55Bjs.getAddress; exports.getContract = _chunk3IHFW55Bjs.getContract; exports.getContractAddress = _chunk3IHFW55Bjs.getContractAddress; exports.getContractError = _chunk3IHFW55Bjs.getContractError; exports.getCreate2Address = _chunk3IHFW55Bjs.getCreate2Address; exports.getCreateAddress = _chunk3IHFW55Bjs.getCreateAddress; exports.getEventSelector = _chunk3IHFW55Bjs.getEventSelector; exports.getFunctionSelector = _chunk3IHFW55Bjs.getFunctionSelector; exports.getSerializedTransactionType = _chunk3IHFW55Bjs.getSerializedTransactionType; exports.getTransactionType = _chunk3IHFW55Bjs.getTransactionType; exports.gweiUnits = _chunk3IHFW55Bjs.gweiUnits; exports.hashMessage = _chunk3IHFW55Bjs.hashMessage; exports.hashTypedData = _chunk3IHFW55Bjs.hashTypedData; exports.hexToBigInt = _chunk3IHFW55Bjs.hexToBigInt; exports.hexToBool = _chunk3IHFW55Bjs.hexToBool; exports.hexToBytes = _chunk3IHFW55Bjs.hexToBytes; exports.hexToNumber = _chunk3IHFW55Bjs.hexToNumber; exports.hexToString = _chunk3IHFW55Bjs.hexToString; exports.http = http; exports.isAddress = _chunk3IHFW55Bjs.isAddress; exports.isAddressEqual = _chunk3IHFW55Bjs.isAddressEqual; exports.isBytes = _chunk3IHFW55Bjs.isBytes; exports.isHash = _chunk3IHFW55Bjs.isHash; exports.isHex = _chunk3IHFW55Bjs.isHex; exports.keccak256 = _chunk3IHFW55Bjs.keccak256; exports.labelhash = _chunk3IHFW55Bjs.labelhash; exports.multicall3Abi = _chunk3IHFW55Bjs.multicall3Abi; exports.namehash = _chunk3IHFW55Bjs.namehash; exports.numberToBytes = _chunk3IHFW55Bjs.numberToBytes; exports.numberToHex = _chunk3IHFW55Bjs.numberToHex; exports.pad = _chunk3IHFW55Bjs.pad; exports.padBytes = _chunk3IHFW55Bjs.padBytes; exports.padHex = _chunk3IHFW55Bjs.padHex; exports.parseAbi = _chunk3IHFW55Bjs.parseAbi; exports.parseAbiItem = _chunk3IHFW55Bjs.parseAbiItem; exports.parseAbiParameter = _chunk3IHFW55Bjs.parseAbiParameter; exports.parseAbiParameters = _chunk3IHFW55Bjs.parseAbiParameters; exports.parseEther = _chunk3IHFW55Bjs.parseEther; exports.parseGwei = _chunk3IHFW55Bjs.parseGwei; exports.parseTransaction = _chunk3IHFW55Bjs.parseTransaction; exports.parseUnits = _chunk3IHFW55Bjs.parseUnits; exports.prepareRequest = _chunk3IHFW55Bjs.prepareRequest; exports.recoverAddress = _chunk3IHFW55Bjs.recoverAddress; exports.recoverMessageAddress = _chunk3IHFW55Bjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunk3IHFW55Bjs.recoverTypedDataAddress; exports.serializeTransaction = _chunk3IHFW55Bjs.serializeTransaction; exports.size = _chunk3IHFW55Bjs.size; exports.slice = _chunk3IHFW55Bjs.slice; exports.sliceBytes = _chunk3IHFW55Bjs.sliceBytes; exports.sliceHex = _chunk3IHFW55Bjs.sliceHex; exports.stringToBytes = _chunk3IHFW55Bjs.stringToBytes; exports.stringToHex = _chunk3IHFW55Bjs.stringToHex; exports.stringify = _chunk3IHFW55Bjs.stringify; exports.toBytes = _chunk3IHFW55Bjs.toBytes; exports.toHex = _chunk3IHFW55Bjs.toHex; exports.toRlp = _chunk3IHFW55Bjs.toRlp; exports.transactionType = _chunk3IHFW55Bjs.transactionType; exports.trim = _chunk3IHFW55Bjs.trim; exports.validateTypedData = _chunk3IHFW55Bjs.validateTypedData; exports.verifyMessage = _chunk3IHFW55Bjs.verifyMessage; exports.verifyTypedData = _chunk3IHFW55Bjs.verifyTypedData; exports.webSocket = webSocket; exports.weiUnits = _chunk3IHFW55Bjs.weiUnits;
|
924
|
+
exports.AbiConstructorNotFoundError = _chunkQITZHDNPjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkQITZHDNPjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkQITZHDNPjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkQITZHDNPjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkQITZHDNPjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkQITZHDNPjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkQITZHDNPjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkQITZHDNPjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkQITZHDNPjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkQITZHDNPjs.AbiEventNotFoundError; exports.AbiEventSignatureEmptyTopicsError = _chunkQITZHDNPjs.AbiEventSignatureEmptyTopicsError; exports.AbiEventSignatureNotFoundError = _chunkQITZHDNPjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkQITZHDNPjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkQITZHDNPjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkQITZHDNPjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkQITZHDNPjs.BaseError; exports.BlockNotFoundError = _chunkQITZHDNPjs.BlockNotFoundError; exports.CallExecutionError = _chunkQITZHDNPjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkQITZHDNPjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkQITZHDNPjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkQITZHDNPjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkQITZHDNPjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkQITZHDNPjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkQITZHDNPjs.DataLengthTooShortError; exports.DecodeLogTopicsMismatch = _chunkQITZHDNPjs.DecodeLogTopicsMismatch; exports.EnsAvatarUriResolutionError = _chunkQITZHDNPjs.EnsAvatarUriResolutionError; exports.EstimateGasExecutionError = _chunkQITZHDNPjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkQITZHDNPjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkQITZHDNPjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkQITZHDNPjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkQITZHDNPjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkQITZHDNPjs.HttpRequestError; exports.InsufficientFundsError = _chunkQITZHDNPjs.InsufficientFundsError; exports.InternalRpcError = _chunkQITZHDNPjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkQITZHDNPjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkQITZHDNPjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkQITZHDNPjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkQITZHDNPjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkQITZHDNPjs.InvalidAddressError; exports.InvalidArrayError = _chunkQITZHDNPjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkQITZHDNPjs.InvalidBytesBooleanError; exports.InvalidChainIdError = _chunkQITZHDNPjs.InvalidChainIdError; exports.InvalidDefinitionTypeError = _chunkQITZHDNPjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkQITZHDNPjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkQITZHDNPjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkQITZHDNPjs.InvalidInputRpcError; exports.InvalidLegacyVError = _chunkQITZHDNPjs.InvalidLegacyVError; exports.InvalidParamsRpcError = _chunkQITZHDNPjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkQITZHDNPjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkQITZHDNPjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkQITZHDNPjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkQITZHDNPjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkQITZHDNPjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkQITZHDNPjs.NonceMaxValueError; exports.NonceTooHighError = _chunkQITZHDNPjs.NonceTooHighError; exports.NonceTooLowError = _chunkQITZHDNPjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkQITZHDNPjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkQITZHDNPjs.ParseRpcError; exports.RawContractError = _chunkQITZHDNPjs.RawContractError; exports.RequestError = _chunkQITZHDNPjs.RequestError; exports.ResourceNotFoundRpcError = _chunkQITZHDNPjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkQITZHDNPjs.ResourceUnavailableRpcError; exports.RpcError = _chunkQITZHDNPjs.RpcError; exports.RpcRequestError = _chunkQITZHDNPjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkQITZHDNPjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkQITZHDNPjs.SwitchChainError; exports.TimeoutError = _chunkQITZHDNPjs.TimeoutError; exports.TipAboveFeeCapError = _chunkQITZHDNPjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkQITZHDNPjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkQITZHDNPjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkQITZHDNPjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkQITZHDNPjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkQITZHDNPjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkQITZHDNPjs.UnknownNodeError; exports.UnknownRpcError = _chunkQITZHDNPjs.UnknownRpcError; exports.UrlRequiredError = _chunkQITZHDNPjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkQITZHDNPjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkQITZHDNPjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkQITZHDNPjs.WebSocketRequestError; exports.assertRequest = _chunkQITZHDNPjs.assertRequest; exports.assertTransactionEIP1559 = _chunkQITZHDNPjs.assertTransactionEIP1559; exports.assertTransactionEIP2930 = _chunkQITZHDNPjs.assertTransactionEIP2930; exports.assertTransactionLegacy = _chunkQITZHDNPjs.assertTransactionLegacy; exports.boolToBytes = _chunkQITZHDNPjs.boolToBytes; exports.boolToHex = _chunkQITZHDNPjs.boolToHex; exports.bytesToBigint = _chunkQITZHDNPjs.bytesToBigint; exports.bytesToBool = _chunkQITZHDNPjs.bytesToBool; exports.bytesToHex = _chunkQITZHDNPjs.bytesToHex; exports.bytesToNumber = _chunkQITZHDNPjs.bytesToNumber; exports.bytesToString = _chunkQITZHDNPjs.bytesToString; exports.concat = _chunkQITZHDNPjs.concat; exports.concatBytes = _chunkQITZHDNPjs.concatBytes; exports.concatHex = _chunkQITZHDNPjs.concatHex; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkQITZHDNPjs.decodeAbiParameters; exports.decodeErrorResult = _chunkQITZHDNPjs.decodeErrorResult; exports.decodeEventLog = _chunkQITZHDNPjs.decodeEventLog; exports.decodeFunctionData = _chunkQITZHDNPjs.decodeFunctionData; exports.decodeFunctionResult = _chunkQITZHDNPjs.decodeFunctionResult; exports.defineBlock = _chunkQITZHDNPjs.defineBlock; exports.defineChain = _chunkQITZHDNPjs.defineChain; exports.defineTransaction = _chunkQITZHDNPjs.defineTransaction; exports.defineTransactionReceipt = _chunkQITZHDNPjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkQITZHDNPjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkQITZHDNPjs.encodeAbiParameters; exports.encodeDeployData = _chunkQITZHDNPjs.encodeDeployData; exports.encodeErrorResult = _chunkQITZHDNPjs.encodeErrorResult; exports.encodeEventTopics = _chunkQITZHDNPjs.encodeEventTopics; exports.encodeFunctionData = _chunkQITZHDNPjs.encodeFunctionData; exports.encodeFunctionResult = _chunkQITZHDNPjs.encodeFunctionResult; exports.encodePacked = _chunkQITZHDNPjs.encodePacked; exports.etherUnits = _chunkQITZHDNPjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkQITZHDNPjs.formatBlock; exports.formatEther = _chunkQITZHDNPjs.formatEther; exports.formatGwei = _chunkQITZHDNPjs.formatGwei; exports.formatTransaction = _chunkQITZHDNPjs.formatTransaction; exports.formatTransactionRequest = _chunkQITZHDNPjs.formatTransactionRequest; exports.formatUnits = _chunkQITZHDNPjs.formatUnits; exports.fromBytes = _chunkQITZHDNPjs.fromBytes; exports.fromHex = _chunkQITZHDNPjs.fromHex; exports.fromRlp = _chunkQITZHDNPjs.fromRlp; exports.getAbiItem = _chunkQITZHDNPjs.getAbiItem; exports.getAddress = _chunkQITZHDNPjs.getAddress; exports.getContract = _chunkQITZHDNPjs.getContract; exports.getContractAddress = _chunkQITZHDNPjs.getContractAddress; exports.getContractError = _chunkQITZHDNPjs.getContractError; exports.getCreate2Address = _chunkQITZHDNPjs.getCreate2Address; exports.getCreateAddress = _chunkQITZHDNPjs.getCreateAddress; exports.getEventSelector = _chunkQITZHDNPjs.getEventSelector; exports.getFunctionSelector = _chunkQITZHDNPjs.getFunctionSelector; exports.getSerializedTransactionType = _chunkQITZHDNPjs.getSerializedTransactionType; exports.getTransactionType = _chunkQITZHDNPjs.getTransactionType; exports.gweiUnits = _chunkQITZHDNPjs.gweiUnits; exports.hashMessage = _chunkQITZHDNPjs.hashMessage; exports.hashTypedData = _chunkQITZHDNPjs.hashTypedData; exports.hexToBigInt = _chunkQITZHDNPjs.hexToBigInt; exports.hexToBool = _chunkQITZHDNPjs.hexToBool; exports.hexToBytes = _chunkQITZHDNPjs.hexToBytes; exports.hexToNumber = _chunkQITZHDNPjs.hexToNumber; exports.hexToString = _chunkQITZHDNPjs.hexToString; exports.http = http; exports.isAddress = _chunkQITZHDNPjs.isAddress; exports.isAddressEqual = _chunkQITZHDNPjs.isAddressEqual; exports.isBytes = _chunkQITZHDNPjs.isBytes; exports.isHash = _chunkQITZHDNPjs.isHash; exports.isHex = _chunkQITZHDNPjs.isHex; exports.keccak256 = _chunkQITZHDNPjs.keccak256; exports.labelhash = _chunkQITZHDNPjs.labelhash; exports.multicall3Abi = _chunkQITZHDNPjs.multicall3Abi; exports.namehash = _chunkQITZHDNPjs.namehash; exports.numberToBytes = _chunkQITZHDNPjs.numberToBytes; exports.numberToHex = _chunkQITZHDNPjs.numberToHex; exports.pad = _chunkQITZHDNPjs.pad; exports.padBytes = _chunkQITZHDNPjs.padBytes; exports.padHex = _chunkQITZHDNPjs.padHex; exports.parseAbi = _chunkQITZHDNPjs.parseAbi; exports.parseAbiItem = _chunkQITZHDNPjs.parseAbiItem; exports.parseAbiParameter = _chunkQITZHDNPjs.parseAbiParameter; exports.parseAbiParameters = _chunkQITZHDNPjs.parseAbiParameters; exports.parseEther = _chunkQITZHDNPjs.parseEther; exports.parseGwei = _chunkQITZHDNPjs.parseGwei; exports.parseTransaction = _chunkQITZHDNPjs.parseTransaction; exports.parseUnits = _chunkQITZHDNPjs.parseUnits; exports.prepareRequest = _chunkQITZHDNPjs.prepareRequest; exports.recoverAddress = _chunkQITZHDNPjs.recoverAddress; exports.recoverMessageAddress = _chunkQITZHDNPjs.recoverMessageAddress; exports.recoverTypedDataAddress = _chunkQITZHDNPjs.recoverTypedDataAddress; exports.serializeTransaction = _chunkQITZHDNPjs.serializeTransaction; exports.size = _chunkQITZHDNPjs.size; exports.slice = _chunkQITZHDNPjs.slice; exports.sliceBytes = _chunkQITZHDNPjs.sliceBytes; exports.sliceHex = _chunkQITZHDNPjs.sliceHex; exports.stringToBytes = _chunkQITZHDNPjs.stringToBytes; exports.stringToHex = _chunkQITZHDNPjs.stringToHex; exports.stringify = _chunkQITZHDNPjs.stringify; exports.toBytes = _chunkQITZHDNPjs.toBytes; exports.toHex = _chunkQITZHDNPjs.toHex; exports.toRlp = _chunkQITZHDNPjs.toRlp; exports.transactionType = _chunkQITZHDNPjs.transactionType; exports.trim = _chunkQITZHDNPjs.trim; exports.validateTypedData = _chunkQITZHDNPjs.validateTypedData; exports.verifyMessage = _chunkQITZHDNPjs.verifyMessage; exports.verifyTypedData = _chunkQITZHDNPjs.verifyTypedData; exports.webSocket = webSocket; exports.weiUnits = _chunkQITZHDNPjs.weiUnits;
|
925
925
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Address, Abi, TypedData } from 'abitype';
|
2
2
|
import { B as ByteArray, H as Hex, C as Chain, a as Hash, i as BlockTag, ao as EventDefinition, a5 as TransactionSerialized, a6 as TransactionSerializedEIP1559, a7 as TransactionSerializedEIP2930, a0 as TransactionSerializable, e as AccessList, a9 as TransactionType, a2 as TransactionSerializableEIP1559, a3 as TransactionSerializableEIP2930, a4 as TransactionSerializableLegacy, ap as Signature } from './chain-02c77999.js';
|
3
3
|
import { A as Account, T as TypedDataDefinition } from './typedData-337e8d8f.js';
|
4
|
-
import { i as CallParameters, p as EstimateGasParameters, ao as SendTransactionParameters, W as WalletClient, P as PublicClient, b3 as GetAccountParameter } from './getEnsResolver-
|
4
|
+
import { i as CallParameters, p as EstimateGasParameters, ao as SendTransactionParameters, W as WalletClient, P as PublicClient, b3 as GetAccountParameter } from './getEnsResolver-68329c3e.js';
|
5
5
|
import { a as DecodeErrorResultReturnType } from './encodeFunctionResult-f7c8e382.js';
|
6
6
|
import WebSocket from 'isomorphic-ws';
|
7
7
|
import { a as Transport } from './createTransport-55339615.js';
|
package/dist/public.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export { i as CallParameters, j as CallReturnType, k as CreateBlockFilterReturnType, l as CreateEventFilterParameters, m as CreateEventFilterReturnType, n as CreatePendingTransactionFilterReturnType, p as EstimateGasParameters, q as EstimateGasReturnType, r as GetBalanceParameters, s as GetBalanceReturnType, t as GetBlockNumberParameters, u as GetBlockNumberReturnType, v as GetBlockParameters, w as GetBlockReturnType, x as GetBlockTransactionCountParameters, y as GetBlockTransactionCountReturnType, z as GetBytecodeParameters, B as GetBytecodeReturnType, N as GetFeeHistoryParameters, O as GetFeeHistoryReturnType, Q as GetFilterChangesParameters, T as GetFilterChangesReturnType, U as GetFilterLogsParameters, V as GetFilterLogsReturnType, X as GetGasPriceReturnType, a1 as GetTransactionConfirmationsParameters, a3 as GetTransactionConfirmationsReturnType, a2 as GetTransactionCountParameters, a4 as GetTransactionCountReturnType, a5 as GetTransactionParameters, a6 as GetTransactionReceiptParameters, a7 as GetTransactionReceiptReturnType, a8 as GetTransactionReturnType, ab as OnBlock, ac as OnBlockNumberFn, ad as OnBlockNumberParameter, ae as OnBlockParameter, af as OnLogsFn, ag as OnLogsParameter, ah as OnTransactionsFn, ai as OnTransactionsParameter, aj as ReplacementReason, ak as ReplacementReturnType, av as UninstallFilterParameters, aw as UninstallFilterReturnType, ax as WaitForTransactionReceiptParameters, ay as WaitForTransactionReceiptReturnType, aB as WatchBlockNumberParameters, aD as WatchBlocksParameters, aH as WatchPendingTransactionsParameters, bn as call, bo as createBlockFilter, bp as createEventFilter, bq as createPendingTransactionFilter, br as estimateGas, bs as getBalance, bt as getBlock, bu as getBlockNumber, bv as getBlockNumberCache, bw as getBlockTransactionCount, b6 as getBytecode, bx as getChainId, by as getFeeHistory, bz as getFilterChanges, bA as getFilterLogs, bC as getGasPrice, bB as getLogs, bD as getTransaction, bE as getTransactionConfirmations, bF as getTransactionCount, bG as getTransactionReceipt, bH as uninstallFilter, bI as waitForTransactionReceipt, bJ as watchBlockNumber, bK as watchBlocks, bL as watchEvent, bM as watchPendingTransactions } from './getEnsResolver-
|
1
|
+
export { i as CallParameters, j as CallReturnType, k as CreateBlockFilterReturnType, l as CreateEventFilterParameters, m as CreateEventFilterReturnType, n as CreatePendingTransactionFilterReturnType, p as EstimateGasParameters, q as EstimateGasReturnType, r as GetBalanceParameters, s as GetBalanceReturnType, t as GetBlockNumberParameters, u as GetBlockNumberReturnType, v as GetBlockParameters, w as GetBlockReturnType, x as GetBlockTransactionCountParameters, y as GetBlockTransactionCountReturnType, z as GetBytecodeParameters, B as GetBytecodeReturnType, N as GetFeeHistoryParameters, O as GetFeeHistoryReturnType, Q as GetFilterChangesParameters, T as GetFilterChangesReturnType, U as GetFilterLogsParameters, V as GetFilterLogsReturnType, X as GetGasPriceReturnType, a1 as GetTransactionConfirmationsParameters, a3 as GetTransactionConfirmationsReturnType, a2 as GetTransactionCountParameters, a4 as GetTransactionCountReturnType, a5 as GetTransactionParameters, a6 as GetTransactionReceiptParameters, a7 as GetTransactionReceiptReturnType, a8 as GetTransactionReturnType, ab as OnBlock, ac as OnBlockNumberFn, ad as OnBlockNumberParameter, ae as OnBlockParameter, af as OnLogsFn, ag as OnLogsParameter, ah as OnTransactionsFn, ai as OnTransactionsParameter, aj as ReplacementReason, ak as ReplacementReturnType, av as UninstallFilterParameters, aw as UninstallFilterReturnType, ax as WaitForTransactionReceiptParameters, ay as WaitForTransactionReceiptReturnType, aB as WatchBlockNumberParameters, aD as WatchBlocksParameters, aH as WatchPendingTransactionsParameters, bn as call, bo as createBlockFilter, bp as createEventFilter, bq as createPendingTransactionFilter, br as estimateGas, bs as getBalance, bt as getBlock, bu as getBlockNumber, bv as getBlockNumberCache, bw as getBlockTransactionCount, b6 as getBytecode, bx as getChainId, by as getFeeHistory, bz as getFilterChanges, bA as getFilterLogs, bC as getGasPrice, bB as getLogs, bD as getTransaction, bE as getTransactionConfirmations, bF as getTransactionCount, bG as getTransactionReceipt, bH as uninstallFilter, bI as waitForTransactionReceipt, bJ as watchBlockNumber, bK as watchBlocks, bL as watchEvent, bM as watchPendingTransactions } from './getEnsResolver-68329c3e.js';
|
2
2
|
import './createTransport-55339615.js';
|
3
3
|
import './eip1193-07d9c47f.js';
|
4
4
|
import 'abitype';
|