viem 0.0.1-alpha.32 → 0.0.1-alpha.34
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/LICENSE +1 -1
- package/dist/{chain-00b37e4e.d.ts → chain-4a0d4164.d.ts} +1 -1
- package/dist/{chain-38182d92.d.ts → chain-ce6e149c.d.ts} +1 -1
- package/dist/chains.d.ts +3 -3
- package/dist/chains.js +46 -46
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-4TDJALZ6.js → chunk-7ALCXZ5K.js} +75 -75
- package/dist/{chunk-S3HZ74MN.js → chunk-EBLS4P77.js} +14 -14
- package/dist/{chunk-NZUM6QVJ.js → chunk-EJEZIHXK.js} +22 -22
- package/dist/{chunk-DEF2SWG2.js → chunk-F76TECTY.js} +9 -4
- package/dist/chunk-F76TECTY.js.map +1 -0
- package/dist/{chunk-K3Q7U5IY.js → chunk-IUCGWGPX.js} +15 -15
- package/dist/{chunk-ZIH5V7HU.mjs → chunk-KQQLLKZV.mjs} +3 -3
- package/dist/{chunk-QPXAI2W5.mjs → chunk-NMET3ZHG.mjs} +2 -2
- package/dist/{chunk-ZZWYDER3.mjs → chunk-TNN5X44H.mjs} +2 -2
- package/dist/{chunk-HJBIOX2W.mjs → chunk-VHZHROXW.mjs} +2 -2
- package/dist/{chunk-P76FCR36.mjs → chunk-VP57P6CD.mjs} +9 -4
- package/dist/chunk-VP57P6CD.mjs.map +1 -0
- package/dist/contract.d.ts +7 -7
- package/dist/contract.js +4 -4
- package/dist/contract.mjs +3 -3
- package/dist/{createClient-5258d590.d.ts → createClient-8a8b4bf4.d.ts} +2 -2
- package/dist/{createPublicClient-2187596f.d.ts → createPublicClient-b5afe6b8.d.ts} +4 -4
- package/dist/{eip1193-fcdeee04.d.ts → eip1193-8c021438.d.ts} +1 -1
- package/dist/ens.d.ts +5 -5
- package/dist/ens.js +4 -4
- package/dist/ens.mjs +3 -3
- package/dist/{formatAbiItem-50cb39d8.d.ts → formatAbiItem-6e00e5e6.d.ts} +1 -1
- package/dist/{getAbiItem-6d4f64d2.d.ts → getAbiItem-d7aa40b1.d.ts} +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.js +90 -90
- package/dist/index.mjs +5 -5
- package/dist/{parseGwei-308eada9.d.ts → parseGwei-ce3a9dfa.d.ts} +4 -4
- package/dist/public.d.ts +6 -6
- package/dist/public.js +3 -3
- package/dist/public.mjs +2 -2
- package/dist/{test-79ec416c.d.ts → test-5d5828c9.d.ts} +3 -3
- package/dist/test.d.ts +5 -5
- package/dist/test.js +3 -3
- package/dist/test.mjs +2 -2
- package/dist/utils/index.d.ts +14 -14
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/{wallet-cf5c8351.d.ts → wallet-5ab86528.d.ts} +3 -3
- package/dist/wallet.d.ts +4 -4
- package/dist/wallet.js +3 -3
- package/dist/wallet.mjs +2 -2
- package/dist/window.d.ts +2 -2
- package/package.json +1 -1
- package/dist/chunk-DEF2SWG2.js.map +0 -1
- package/dist/chunk-P76FCR36.mjs.map +0 -1
- /package/dist/{chunk-4TDJALZ6.js.map → chunk-7ALCXZ5K.js.map} +0 -0
- /package/dist/{chunk-S3HZ74MN.js.map → chunk-EBLS4P77.js.map} +0 -0
- /package/dist/{chunk-NZUM6QVJ.js.map → chunk-EJEZIHXK.js.map} +0 -0
- /package/dist/{chunk-K3Q7U5IY.js.map → chunk-IUCGWGPX.js.map} +0 -0
- /package/dist/{chunk-ZIH5V7HU.mjs.map → chunk-KQQLLKZV.mjs.map} +0 -0
- /package/dist/{chunk-QPXAI2W5.mjs.map → chunk-NMET3ZHG.mjs.map} +0 -0
- /package/dist/{chunk-ZZWYDER3.mjs.map → chunk-TNN5X44H.mjs.map} +0 -0
- /package/dist/{chunk-HJBIOX2W.mjs.map → chunk-VHZHROXW.mjs.map} +0 -0
package/dist/contract.js
CHANGED
@@ -7,11 +7,11 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
|
10
|
-
var
|
10
|
+
var _chunk7ALCXZ5Kjs = require('./chunk-7ALCXZ5K.js');
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
var
|
14
|
+
var _chunkIUCGWGPXjs = require('./chunk-IUCGWGPX.js');
|
15
15
|
|
16
16
|
|
17
17
|
|
@@ -27,7 +27,7 @@ var _chunkK3Q7U5IYjs = require('./chunk-K3Q7U5IY.js');
|
|
27
27
|
|
28
28
|
|
29
29
|
|
30
|
-
var
|
30
|
+
var _chunkF76TECTYjs = require('./chunk-F76TECTY.js');
|
31
31
|
|
32
32
|
|
33
33
|
|
@@ -53,5 +53,5 @@ var _chunkDEF2SWG2js = require('./chunk-DEF2SWG2.js');
|
|
53
53
|
|
54
54
|
|
55
55
|
|
56
|
-
exports.createContractEventFilter =
|
56
|
+
exports.createContractEventFilter = _chunk7ALCXZ5Kjs.createContractEventFilter; exports.decodeAbi = _chunkF76TECTYjs.decodeAbi; exports.decodeErrorResult = _chunkF76TECTYjs.decodeErrorResult; exports.decodeEventLog = _chunkF76TECTYjs.decodeEventLog; exports.decodeFunctionData = _chunkF76TECTYjs.decodeFunctionData; exports.decodeFunctionResult = _chunkF76TECTYjs.decodeFunctionResult; exports.deployContract = _chunkIUCGWGPXjs.deployContract; exports.encodeAbi = _chunkF76TECTYjs.encodeAbi; exports.encodeDeployData = _chunkF76TECTYjs.encodeDeployData; exports.encodeErrorResult = _chunkF76TECTYjs.encodeErrorResult; exports.encodeEventTopics = _chunkF76TECTYjs.encodeEventTopics; exports.encodeFunctionData = _chunkF76TECTYjs.encodeFunctionData; exports.encodeFunctionResult = _chunkF76TECTYjs.encodeFunctionResult; exports.estimateContractGas = _chunk7ALCXZ5Kjs.estimateContractGas; exports.formatAbiItem = _chunkF76TECTYjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkF76TECTYjs.formatAbiItemWithArgs; exports.getAbiItem = _chunkF76TECTYjs.getAbiItem; exports.getBytecode = _chunk7ALCXZ5Kjs.getBytecode; exports.getStorageAt = _chunk7ALCXZ5Kjs.getStorageAt; exports.multicall = _chunk7ALCXZ5Kjs.multicall; exports.readContract = _chunk7ALCXZ5Kjs.readContract; exports.simulateContract = _chunk7ALCXZ5Kjs.simulateContract; exports.watchContractEvent = _chunk7ALCXZ5Kjs.watchContractEvent; exports.writeContract = _chunkIUCGWGPXjs.writeContract;
|
57
57
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.mjs
CHANGED
@@ -7,11 +7,11 @@ import {
|
|
7
7
|
readContract,
|
8
8
|
simulateContract,
|
9
9
|
watchContractEvent
|
10
|
-
} from "./chunk-
|
10
|
+
} from "./chunk-VHZHROXW.mjs";
|
11
11
|
import {
|
12
12
|
deployContract,
|
13
13
|
writeContract
|
14
|
-
} from "./chunk-
|
14
|
+
} from "./chunk-TNN5X44H.mjs";
|
15
15
|
import {
|
16
16
|
decodeAbi,
|
17
17
|
decodeErrorResult,
|
@@ -27,7 +27,7 @@ import {
|
|
27
27
|
formatAbiItem,
|
28
28
|
formatAbiItemWithArgs,
|
29
29
|
getAbiItem
|
30
|
-
} from "./chunk-
|
30
|
+
} from "./chunk-VP57P6CD.mjs";
|
31
31
|
export {
|
32
32
|
createContractEventFilter,
|
33
33
|
decodeAbi,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { R as Requests } from './eip1193-
|
2
|
-
import { C as Chain } from './chain-
|
1
|
+
import { R as Requests } from './eip1193-8c021438.js';
|
2
|
+
import { C as Chain } from './chain-4a0d4164.js';
|
3
3
|
|
4
4
|
type BaseRpcRequests = {
|
5
5
|
request(...args: any): Promise<any>;
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { P as PublicRequests } from './eip1193-
|
2
|
-
import { a as Transport, b as ClientConfig, C as Client } from './createClient-
|
1
|
+
import { P as PublicRequests } from './eip1193-8c021438.js';
|
2
|
+
import { a as Transport, b as ClientConfig, C as Client } from './createClient-8a8b4bf4.js';
|
3
3
|
import { Abi, AbiEvent, Narrow, ExtractAbiEvent } from 'abitype';
|
4
|
-
import { C as Chain, J as ExtractFormatter, S as Formatters, V as Formatter, K as Formatted, d as Block, R as RpcBlock, z as Transaction, T as TransactionReceipt, r as RpcTransactionReceipt, W as TransactionType, A as Address, g as BlockTag, H as Hex, X as MergeIntersectionProperties, u as TransactionRequest, h as ContractConfig, Y as GetValue, Z as ExtractResultFromAbi, _ as MaybeAbiEventName, $ as MaybeExtractEventArgsFromAbi, f as BlockNumber, a0 as ExtractEventNameFromAbi, a as Hash, F as FeeHistory, L as Log, M as FormattedTransaction, N as TransactionFormatter, a1 as ExtractEventArgsFromAbi, a2 as Prettify } from './chain-
|
5
|
-
import { T as TransactionRequestFormatter, b as WriteContractArgs } from './wallet-
|
4
|
+
import { C as Chain, J as ExtractFormatter, S as Formatters, V as Formatter, K as Formatted, d as Block, R as RpcBlock, z as Transaction, T as TransactionReceipt, r as RpcTransactionReceipt, W as TransactionType, A as Address, g as BlockTag, H as Hex, X as MergeIntersectionProperties, u as TransactionRequest, h as ContractConfig, Y as GetValue, Z as ExtractResultFromAbi, _ as MaybeAbiEventName, $ as MaybeExtractEventArgsFromAbi, f as BlockNumber, a0 as ExtractEventNameFromAbi, a as Hash, F as FeeHistory, L as Log, M as FormattedTransaction, N as TransactionFormatter, a1 as ExtractEventArgsFromAbi, a2 as Prettify } from './chain-4a0d4164.js';
|
5
|
+
import { T as TransactionRequestFormatter, b as WriteContractArgs } from './wallet-5ab86528.js';
|
6
6
|
|
7
7
|
type BlockFormatter<TChain extends Chain = Chain> = ExtractFormatter<TChain, 'block', NonNullable<Formatters['block']>>;
|
8
8
|
type FormattedBlock<TFormatter extends Formatter | undefined = Formatter> = Formatted<TFormatter, Block>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { A as Address, a as Hash, a3 as Quantity, s as RpcTransactionRequest, m as RpcBlockNumber, g as BlockTag, l as RpcBlockIdentifier, H as Hex, n as RpcFeeHistory, R as RpcBlock, p as RpcLog, a6 as LogTopic, q as RpcTransaction, r as RpcTransactionReceipt, t as RpcUncle } from './chain-
|
1
|
+
import { A as Address, a as Hash, a3 as Quantity, s as RpcTransactionRequest, m as RpcBlockNumber, g as BlockTag, l as RpcBlockIdentifier, H as Hex, n as RpcFeeHistory, R as RpcBlock, p as RpcLog, a6 as LogTopic, q as RpcTransaction, r as RpcTransactionReceipt, t as RpcUncle } from './chain-4a0d4164.js';
|
2
2
|
|
3
3
|
declare class RpcError extends Error {
|
4
4
|
code: number;
|
package/dist/ens.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
export { z as GetEnsAddressArgs, A as GetEnsNameArgs, D as getEnsAddress, H as getEnsName } from './createPublicClient-
|
1
|
+
export { z as GetEnsAddressArgs, A as GetEnsNameArgs, D as getEnsAddress, H as getEnsName } from './createPublicClient-b5afe6b8.js';
|
2
2
|
export { l as labelhash, n as namehash } from './namehash-88f4639d.js';
|
3
|
-
import './eip1193-
|
4
|
-
import './chain-
|
3
|
+
import './eip1193-8c021438.js';
|
4
|
+
import './chain-4a0d4164.js';
|
5
5
|
import '@wagmi/chains';
|
6
6
|
import 'abitype';
|
7
7
|
import 'ethers@6/types/providers';
|
8
|
-
import './createClient-
|
9
|
-
import './wallet-
|
8
|
+
import './createClient-8a8b4bf4.js';
|
9
|
+
import './wallet-5ab86528.js';
|
10
10
|
|
11
11
|
/**
|
12
12
|
* @description Normalizes ENS name
|
package/dist/ens.js
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
7
|
-
require('./chunk-
|
8
|
-
require('./chunk-
|
6
|
+
var _chunkEJEZIHXKjs = require('./chunk-EJEZIHXK.js');
|
7
|
+
require('./chunk-7ALCXZ5K.js');
|
8
|
+
require('./chunk-F76TECTY.js');
|
9
9
|
|
10
10
|
// src/utils/ens/normalize.ts
|
11
11
|
var _idnauts46hx = require('idna-uts46-hx');
|
@@ -18,5 +18,5 @@ function normalize(name) {
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
exports.getEnsAddress =
|
21
|
+
exports.getEnsAddress = _chunkEJEZIHXKjs.getEnsAddress; exports.getEnsName = _chunkEJEZIHXKjs.getEnsName; exports.labelhash = _chunkEJEZIHXKjs.labelhash; exports.namehash = _chunkEJEZIHXKjs.namehash; exports.normalize = normalize;
|
22
22
|
//# sourceMappingURL=ens.js.map
|
package/dist/ens.mjs
CHANGED
@@ -3,9 +3,9 @@ import {
|
|
3
3
|
getEnsName,
|
4
4
|
labelhash,
|
5
5
|
namehash
|
6
|
-
} from "./chunk-
|
7
|
-
import "./chunk-
|
8
|
-
import "./chunk-
|
6
|
+
} from "./chunk-KQQLLKZV.mjs";
|
7
|
+
import "./chunk-VHZHROXW.mjs";
|
8
|
+
import "./chunk-VP57P6CD.mjs";
|
9
9
|
|
10
10
|
// src/utils/ens/normalize.ts
|
11
11
|
import { toUnicode } from "idna-uts46-hx";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AbiParameter, Narrow, Abi, AbiParametersToPrimitiveTypes } from 'abitype';
|
2
|
-
import { H as Hex, b as AbiItem, a6 as LogTopic, a0 as ExtractEventNameFromAbi, a7 as ExtractEventArgsFromTopics, a8 as ExtractFunctionNameFromAbi, a9 as ExtractArgsFromAbi, Z as ExtractResultFromAbi, a4 as ExtractConstructorArgsFromAbi, aa as ExtractErrorNameFromAbi, ab as ExtractErrorArgsFromAbi, a1 as ExtractEventArgsFromAbi, ac as ExtractNameFromAbi } from './chain-
|
2
|
+
import { H as Hex, b as AbiItem, a6 as LogTopic, a0 as ExtractEventNameFromAbi, a7 as ExtractEventArgsFromTopics, a8 as ExtractFunctionNameFromAbi, a9 as ExtractArgsFromAbi, Z as ExtractResultFromAbi, a4 as ExtractConstructorArgsFromAbi, aa as ExtractErrorNameFromAbi, ab as ExtractErrorArgsFromAbi, a1 as ExtractEventArgsFromAbi, ac as ExtractNameFromAbi } from './chain-4a0d4164.js';
|
3
3
|
import * as abitype_dist_abi_78346466 from 'abitype/dist/abi-78346466';
|
4
4
|
|
5
5
|
type DecodeAbiArgs<TParams extends readonly AbiParameter[] | readonly unknown[] = readonly AbiParameter[]> = {
|
package/dist/index.d.ts
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './createClient-
|
2
|
-
export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createClient-
|
3
|
-
import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-
|
4
|
-
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, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, N as NonceMaxValueError, h as NonceTooHighError, i as NonceTooLowError, j as RawContractError, T as TipAboveFeeCapError, q as ToRlpResponse, k as TransactionExecutionError, m as TransactionNotFoundError, n as TransactionReceiptNotFoundError, l as TransactionTypeNotSupportedError, U as UnknownNodeError, W as WaitForTransactionReceiptTimeoutError, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as etherUnits, z as formatEther, A as formatGwei, D as formatUnit, J as fromBytes, K as fromHex, L as fromRlp, M as getAddress, O as getContractAddress, P as getContractError, Q as getCreate2Address, S as getCreateAddress, V as getEventSelector, X as getFunctionSelector, Y as gweiUnits, Z as hexToBigInt, _ as hexToBool, $ as hexToBytes, a0 as hexToNumber, a1 as hexToString, a2 as isAddress, a3 as isAddressEqual, a4 as isBytes, a5 as isHex, a6 as keccak256, a7 as numberToBytes, a8 as numberToHex, a9 as pad, aa as padBytes, ab as padHex, ac as parseEther, ad as parseGwei, ae as parseUnit, af as size, ag as slice, ah as sliceBytes, ai as sliceHex, aj as stringToBytes, ak as stringToHex, al as stringify, am as toBytes, an as toHex, ao as toRlp, ap as trim, aq as weiUnits } from './parseGwei-
|
1
|
+
import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './createClient-8a8b4bf4.js';
|
2
|
+
export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createClient-8a8b4bf4.js';
|
3
|
+
import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-ce3a9dfa.js';
|
4
|
+
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, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, N as NonceMaxValueError, h as NonceTooHighError, i as NonceTooLowError, j as RawContractError, T as TipAboveFeeCapError, q as ToRlpResponse, k as TransactionExecutionError, m as TransactionNotFoundError, n as TransactionReceiptNotFoundError, l as TransactionTypeNotSupportedError, U as UnknownNodeError, W as WaitForTransactionReceiptTimeoutError, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as etherUnits, z as formatEther, A as formatGwei, D as formatUnit, J as fromBytes, K as fromHex, L as fromRlp, M as getAddress, O as getContractAddress, P as getContractError, Q as getCreate2Address, S as getCreateAddress, V as getEventSelector, X as getFunctionSelector, Y as gweiUnits, Z as hexToBigInt, _ as hexToBool, $ as hexToBytes, a0 as hexToNumber, a1 as hexToString, a2 as isAddress, a3 as isAddressEqual, a4 as isBytes, a5 as isHex, a6 as keccak256, a7 as numberToBytes, a8 as numberToHex, a9 as pad, aa as padBytes, ab as padHex, ac as parseEther, ad as parseGwei, ae as parseUnit, af as size, ag as slice, ah as sliceBytes, ai as sliceHex, aj as stringToBytes, ak as stringToHex, al as stringify, am as toBytes, an as toHex, ao as toRlp, ap as trim, aq as weiUnits } from './parseGwei-ce3a9dfa.js';
|
5
5
|
import WebSocket from 'isomorphic-ws';
|
6
|
-
import { H as Hex, a as Hash, C as Chain, B as ByteArray } from './chain-
|
7
|
-
export { b as AbiItem, c as AccessList, A as Address, d as Block, e as BlockIdentifier, f as BlockNumber, g as BlockTag, B as ByteArray, C as Chain, h as ContractConfig, J as ExtractFormatter, F as FeeHistory, i as FeeValues, j as FeeValuesEIP1559, k as FeeValuesLegacy, K as Formatted, M as FormattedTransaction, a as Hash, H as Hex, L as Log, R as RpcBlock, l as RpcBlockIdentifier, m as RpcBlockNumber, n as RpcFeeHistory, o as RpcFeeValues, p as RpcLog, q as RpcTransaction, r as RpcTransactionReceipt, s as RpcTransactionRequest, t as RpcUncle, z as Transaction, D as TransactionBase, E as TransactionEIP1559, G as TransactionEIP2930, N as TransactionFormatter, I as TransactionLegacy, T as TransactionReceipt, u as TransactionRequest, v as TransactionRequestBase, w as TransactionRequestEIP1559, x as TransactionRequestEIP2930, y as TransactionRequestLegacy, U as Uncle, O as defineTransaction, P as formatTransaction, Q as transactionType } from './chain-
|
8
|
-
export { B as BlockFormatter, F as FormattedBlock, b as FormattedTransactionReceipt, P as PublicClient, a as PublicClientConfig, T as TransactionReceiptFormatter, c as createPublicClient, d as defineBlock, e as defineTransactionReceipt, f as formatBlock } from './createPublicClient-
|
9
|
-
export { T as TestClient, a as TestClientConfig, c as createTestClient } from './test-
|
10
|
-
export { F as FormattedTransactionRequest, T as TransactionRequestFormatter, W as WalletClient, a as WalletClientConfig, c as createWalletClient, d as defineTransactionRequest, f as formatTransactionRequest } from './wallet-
|
6
|
+
import { H as Hex, a as Hash, C as Chain, B as ByteArray } from './chain-4a0d4164.js';
|
7
|
+
export { b as AbiItem, c as AccessList, A as Address, d as Block, e as BlockIdentifier, f as BlockNumber, g as BlockTag, B as ByteArray, C as Chain, h as ContractConfig, J as ExtractFormatter, F as FeeHistory, i as FeeValues, j as FeeValuesEIP1559, k as FeeValuesLegacy, K as Formatted, M as FormattedTransaction, a as Hash, H as Hex, L as Log, R as RpcBlock, l as RpcBlockIdentifier, m as RpcBlockNumber, n as RpcFeeHistory, o as RpcFeeValues, p as RpcLog, q as RpcTransaction, r as RpcTransactionReceipt, s as RpcTransactionRequest, t as RpcUncle, z as Transaction, D as TransactionBase, E as TransactionEIP1559, G as TransactionEIP2930, N as TransactionFormatter, I as TransactionLegacy, T as TransactionReceipt, u as TransactionRequest, v as TransactionRequestBase, w as TransactionRequestEIP1559, x as TransactionRequestEIP2930, y as TransactionRequestLegacy, U as Uncle, O as defineTransaction, P as formatTransaction, Q as transactionType } from './chain-4a0d4164.js';
|
8
|
+
export { B as BlockFormatter, F as FormattedBlock, b as FormattedTransactionReceipt, P as PublicClient, a as PublicClientConfig, T as TransactionReceiptFormatter, c as createPublicClient, d as defineBlock, e as defineTransactionReceipt, f as formatBlock } from './createPublicClient-b5afe6b8.js';
|
9
|
+
export { T as TestClient, a as TestClientConfig, c as createTestClient } from './test-5d5828c9.js';
|
10
|
+
export { F as FormattedTransactionRequest, T as TransactionRequestFormatter, W as WalletClient, a as WalletClientConfig, c as createWalletClient, d as defineTransactionRequest, f as formatTransactionRequest } from './wallet-5ab86528.js';
|
11
11
|
export { l as labelhash, n as namehash } from './namehash-88f4639d.js';
|
12
|
-
export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeErrorResultResponse, c as DecodeEventLogArgs, d as DecodeEventLogResponse, e as DecodeFunctionDataArgs, f as DecodeFunctionResultArgs, g as DecodeFunctionResultResponse, E as EncodeAbiArgs, h as EncodeDeployDataArgs, i as EncodeErrorResultArgs, j as EncodeEventTopicsArgs, k as EncodeFunctionDataArgs, l as EncodeFunctionResultArgs, G as GetAbiItemArgs, m as decodeAbi, n as decodeErrorResult, o as decodeEventLog, p as decodeFunctionData, q as decodeFunctionResult, r as encodeAbi, s as encodeDeployData, t as encodeErrorResult, u as encodeEventTopics, v as encodeFunctionData, w as encodeFunctionResult, x as getAbiItem } from './getAbiItem-
|
13
|
-
export { d as defineChain } from './chain-
|
14
|
-
import './eip1193-
|
12
|
+
export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeErrorResultResponse, c as DecodeEventLogArgs, d as DecodeEventLogResponse, e as DecodeFunctionDataArgs, f as DecodeFunctionResultArgs, g as DecodeFunctionResultResponse, E as EncodeAbiArgs, h as EncodeDeployDataArgs, i as EncodeErrorResultArgs, j as EncodeEventTopicsArgs, k as EncodeFunctionDataArgs, l as EncodeFunctionResultArgs, G as GetAbiItemArgs, m as decodeAbi, n as decodeErrorResult, o as decodeEventLog, p as decodeFunctionData, q as decodeFunctionResult, r as encodeAbi, s as encodeDeployData, t as encodeErrorResult, u as encodeEventTopics, v as encodeFunctionData, w as encodeFunctionResult, x as getAbiItem } from './getAbiItem-d7aa40b1.js';
|
13
|
+
export { d as defineChain } from './chain-ce6e149c.js';
|
14
|
+
import './eip1193-8c021438.js';
|
15
15
|
import 'abitype';
|
16
16
|
import '@wagmi/chains';
|
17
17
|
import 'ethers@6/types/providers';
|
package/dist/index.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
6
|
+
var _chunkEJEZIHXKjs = require('./chunk-EJEZIHXK.js');
|
7
7
|
|
8
8
|
|
9
9
|
|
@@ -37,7 +37,7 @@ var _chunkNZUM6QVJjs = require('./chunk-NZUM6QVJ.js');
|
|
37
37
|
|
38
38
|
|
39
39
|
|
40
|
-
var
|
40
|
+
var _chunk7ALCXZ5Kjs = require('./chunk-7ALCXZ5K.js');
|
41
41
|
|
42
42
|
|
43
43
|
|
@@ -67,7 +67,7 @@ var _chunk4TDJALZ6js = require('./chunk-4TDJALZ6.js');
|
|
67
67
|
|
68
68
|
|
69
69
|
|
70
|
-
var
|
70
|
+
var _chunkEBLS4P77js = require('./chunk-EBLS4P77.js');
|
71
71
|
|
72
72
|
|
73
73
|
|
@@ -80,7 +80,7 @@ var _chunkS3HZ74MNjs = require('./chunk-S3HZ74MN.js');
|
|
80
80
|
|
81
81
|
|
82
82
|
|
83
|
-
var
|
83
|
+
var _chunkIUCGWGPXjs = require('./chunk-IUCGWGPX.js');
|
84
84
|
|
85
85
|
|
86
86
|
|
@@ -234,7 +234,7 @@ var _chunkK3Q7U5IYjs = require('./chunk-K3Q7U5IY.js');
|
|
234
234
|
|
235
235
|
|
236
236
|
|
237
|
-
var
|
237
|
+
var _chunkF76TECTYjs = require('./chunk-F76TECTY.js');
|
238
238
|
|
239
239
|
// src/clients/transports/createTransport.ts
|
240
240
|
function createTransport({
|
@@ -248,7 +248,7 @@ function createTransport({
|
|
248
248
|
}, value) {
|
249
249
|
return {
|
250
250
|
config: { key, name, request, retryCount, retryDelay, timeout, type },
|
251
|
-
request:
|
251
|
+
request: _chunkF76TECTYjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
|
252
252
|
value
|
253
253
|
};
|
254
254
|
}
|
@@ -282,7 +282,7 @@ function fallback(transports, config = {}) {
|
|
282
282
|
params
|
283
283
|
});
|
284
284
|
} catch (err) {
|
285
|
-
if (
|
285
|
+
if (_chunkF76TECTYjs.isDeterministicError.call(void 0, err))
|
286
286
|
throw err;
|
287
287
|
if (i === transports.length - 1)
|
288
288
|
throw err;
|
@@ -316,13 +316,13 @@ function http(url, config = {}) {
|
|
316
316
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
317
317
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
|
318
318
|
if (!url_)
|
319
|
-
throw new (0,
|
319
|
+
throw new (0, _chunkF76TECTYjs.UrlRequiredError)();
|
320
320
|
return createTransport(
|
321
321
|
{
|
322
322
|
key,
|
323
323
|
name,
|
324
324
|
async request({ method, params }) {
|
325
|
-
const { result } = await
|
325
|
+
const { result } = await _chunkF76TECTYjs.rpc.http(url_, {
|
326
326
|
body: {
|
327
327
|
method,
|
328
328
|
params
|
@@ -356,14 +356,14 @@ function webSocket(url, config = {}) {
|
|
356
356
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
357
357
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
|
358
358
|
if (!url_)
|
359
|
-
throw new (0,
|
359
|
+
throw new (0, _chunkF76TECTYjs.UrlRequiredError)();
|
360
360
|
return createTransport(
|
361
361
|
{
|
362
362
|
key,
|
363
363
|
name,
|
364
364
|
async request({ method, params }) {
|
365
|
-
const socket = await
|
366
|
-
const { result } = await
|
365
|
+
const socket = await _chunkF76TECTYjs.getSocket.call(void 0, url_);
|
366
|
+
const { result } = await _chunkF76TECTYjs.rpc.webSocketAsync(socket, {
|
367
367
|
body: { method, params },
|
368
368
|
timeout
|
369
369
|
});
|
@@ -376,12 +376,12 @@ function webSocket(url, config = {}) {
|
|
376
376
|
},
|
377
377
|
{
|
378
378
|
getSocket() {
|
379
|
-
return
|
379
|
+
return _chunkF76TECTYjs.getSocket.call(void 0, url_);
|
380
380
|
},
|
381
381
|
async subscribe({ params, onData, onError }) {
|
382
|
-
const socket = await
|
382
|
+
const socket = await _chunkF76TECTYjs.getSocket.call(void 0, url_);
|
383
383
|
const { result: subscriptionId } = await new Promise(
|
384
|
-
(resolve, reject) =>
|
384
|
+
(resolve, reject) => _chunkF76TECTYjs.rpc.webSocket(socket, {
|
385
385
|
body: {
|
386
386
|
method: "eth_subscribe",
|
387
387
|
params
|
@@ -403,7 +403,7 @@ function webSocket(url, config = {}) {
|
|
403
403
|
subscriptionId,
|
404
404
|
async unsubscribe() {
|
405
405
|
return new Promise(
|
406
|
-
(resolve, reject) =>
|
406
|
+
(resolve, reject) => _chunkF76TECTYjs.rpc.webSocket(socket, {
|
407
407
|
body: {
|
408
408
|
method: "eth_unsubscribe",
|
409
409
|
params: [subscriptionId]
|
@@ -459,87 +459,87 @@ function createClient({
|
|
459
459
|
|
460
460
|
// src/clients/decorators/public.ts
|
461
461
|
var publicActions = (client) => ({
|
462
|
-
call: (args) =>
|
463
|
-
createBlockFilter: () =>
|
464
|
-
createContractEventFilter: (args) =>
|
465
|
-
createEventFilter: (args) =>
|
466
|
-
createPendingTransactionFilter: () =>
|
467
|
-
estimateContractGas: (args) =>
|
468
|
-
estimateGas: (args) =>
|
469
|
-
getBalance: (args) =>
|
470
|
-
getBlock: (args) =>
|
471
|
-
getBlockNumber: (args) =>
|
472
|
-
getBlockTransactionCount: (args) =>
|
473
|
-
getBytecode: (args) =>
|
474
|
-
getChainId: () =>
|
475
|
-
getEnsAddress: (args) =>
|
476
|
-
getEnsName: (args) =>
|
477
|
-
getFeeHistory: (args) =>
|
478
|
-
getFilterChanges: (args) =>
|
479
|
-
getFilterLogs: (args) =>
|
480
|
-
getGasPrice: () =>
|
481
|
-
getLogs: (args) =>
|
482
|
-
getStorageAt: (args) =>
|
483
|
-
getTransaction: (args) =>
|
484
|
-
getTransactionConfirmations: (args) =>
|
485
|
-
getTransactionReceipt: (args) =>
|
486
|
-
multicall: (args) =>
|
487
|
-
readContract: (args) =>
|
488
|
-
simulateContract: (args) =>
|
489
|
-
uninstallFilter: (args) =>
|
490
|
-
waitForTransactionReceipt: (args) =>
|
491
|
-
watchBlocks: (args) =>
|
492
|
-
watchBlockNumber: (args) =>
|
493
|
-
watchContractEvent: (args) =>
|
494
|
-
watchEvent: (args) =>
|
495
|
-
watchPendingTransactions: (args) =>
|
462
|
+
call: (args) => _chunk7ALCXZ5Kjs.call.call(void 0, client, args),
|
463
|
+
createBlockFilter: () => _chunk7ALCXZ5Kjs.createBlockFilter.call(void 0, client),
|
464
|
+
createContractEventFilter: (args) => _chunk7ALCXZ5Kjs.createContractEventFilter.call(void 0, client, args),
|
465
|
+
createEventFilter: (args) => _chunk7ALCXZ5Kjs.createEventFilter.call(void 0, client, args),
|
466
|
+
createPendingTransactionFilter: () => _chunk7ALCXZ5Kjs.createPendingTransactionFilter.call(void 0, client),
|
467
|
+
estimateContractGas: (args) => _chunk7ALCXZ5Kjs.estimateContractGas.call(void 0, client, args),
|
468
|
+
estimateGas: (args) => _chunk7ALCXZ5Kjs.estimateGas.call(void 0, client, args),
|
469
|
+
getBalance: (args) => _chunk7ALCXZ5Kjs.getBalance.call(void 0, client, args),
|
470
|
+
getBlock: (args) => _chunk7ALCXZ5Kjs.getBlock.call(void 0, client, args),
|
471
|
+
getBlockNumber: (args) => _chunk7ALCXZ5Kjs.getBlockNumber.call(void 0, client, args),
|
472
|
+
getBlockTransactionCount: (args) => _chunk7ALCXZ5Kjs.getBlockTransactionCount.call(void 0, client, args),
|
473
|
+
getBytecode: (args) => _chunk7ALCXZ5Kjs.getBytecode.call(void 0, client, args),
|
474
|
+
getChainId: () => _chunk7ALCXZ5Kjs.getChainId.call(void 0, client),
|
475
|
+
getEnsAddress: (args) => _chunkEJEZIHXKjs.getEnsAddress.call(void 0, client, args),
|
476
|
+
getEnsName: (args) => _chunkEJEZIHXKjs.getEnsName.call(void 0, client, args),
|
477
|
+
getFeeHistory: (args) => _chunk7ALCXZ5Kjs.getFeeHistory.call(void 0, client, args),
|
478
|
+
getFilterChanges: (args) => _chunk7ALCXZ5Kjs.getFilterChanges.call(void 0, client, args),
|
479
|
+
getFilterLogs: (args) => _chunk7ALCXZ5Kjs.getFilterLogs.call(void 0, client, args),
|
480
|
+
getGasPrice: () => _chunk7ALCXZ5Kjs.getGasPrice.call(void 0, client),
|
481
|
+
getLogs: (args) => _chunk7ALCXZ5Kjs.getLogs.call(void 0, client, args),
|
482
|
+
getStorageAt: (args) => _chunk7ALCXZ5Kjs.getStorageAt.call(void 0, client, args),
|
483
|
+
getTransaction: (args) => _chunk7ALCXZ5Kjs.getTransaction.call(void 0, client, args),
|
484
|
+
getTransactionConfirmations: (args) => _chunk7ALCXZ5Kjs.getTransactionConfirmations.call(void 0, client, args),
|
485
|
+
getTransactionReceipt: (args) => _chunk7ALCXZ5Kjs.getTransactionReceipt.call(void 0, client, args),
|
486
|
+
multicall: (args) => _chunk7ALCXZ5Kjs.multicall.call(void 0, client, args),
|
487
|
+
readContract: (args) => _chunk7ALCXZ5Kjs.readContract.call(void 0, client, args),
|
488
|
+
simulateContract: (args) => _chunk7ALCXZ5Kjs.simulateContract.call(void 0, client, args),
|
489
|
+
uninstallFilter: (args) => _chunk7ALCXZ5Kjs.uninstallFilter.call(void 0, client, args),
|
490
|
+
waitForTransactionReceipt: (args) => _chunk7ALCXZ5Kjs.waitForTransactionReceipt.call(void 0, client, args),
|
491
|
+
watchBlocks: (args) => _chunk7ALCXZ5Kjs.watchBlocks.call(void 0, client, args),
|
492
|
+
watchBlockNumber: (args) => _chunk7ALCXZ5Kjs.watchBlockNumber.call(void 0, client, args),
|
493
|
+
watchContractEvent: (args) => _chunk7ALCXZ5Kjs.watchContractEvent.call(void 0, client, args),
|
494
|
+
watchEvent: (args) => _chunk7ALCXZ5Kjs.watchEvent.call(void 0, client, args),
|
495
|
+
watchPendingTransactions: (args) => _chunk7ALCXZ5Kjs.watchPendingTransactions.call(void 0, client, args)
|
496
496
|
});
|
497
497
|
|
498
498
|
// src/clients/decorators/test.ts
|
499
499
|
var testActions = (client) => ({
|
500
|
-
dropTransaction: (args) =>
|
501
|
-
getAutomine: () =>
|
502
|
-
getTxPoolContent: () =>
|
503
|
-
getTxPoolStatus: () =>
|
504
|
-
impersonateAccount: (args) =>
|
505
|
-
increaseTime: (args) =>
|
506
|
-
inspectTxpool: () =>
|
507
|
-
mine: (args) =>
|
508
|
-
removeBlockTimestampInterval: () =>
|
509
|
-
reset: (args) =>
|
510
|
-
revert: (args) =>
|
511
|
-
sendUnsignedTransaction: (args) =>
|
512
|
-
setAutomine: (args) =>
|
513
|
-
setBalance: (args) =>
|
514
|
-
setBlockGasLimit: (args) =>
|
515
|
-
setBlockTimestampInterval: (args) =>
|
516
|
-
setCode: (args) =>
|
517
|
-
setCoinbase: (args) =>
|
518
|
-
setIntervalMining: (args) =>
|
519
|
-
setLoggingEnabled: (args) =>
|
520
|
-
setMinGasPrice: (args) =>
|
521
|
-
setNextBlockBaseFeePerGas: (args) =>
|
522
|
-
setNextBlockTimestamp: (args) =>
|
523
|
-
setNonce: (args) =>
|
524
|
-
setRpcUrl: (args) =>
|
525
|
-
setStorageAt: (args) =>
|
526
|
-
snapshot: () =>
|
527
|
-
stopImpersonatingAccount: (args) =>
|
500
|
+
dropTransaction: (args) => _chunkEBLS4P77js.dropTransaction.call(void 0, client, args),
|
501
|
+
getAutomine: () => _chunkEBLS4P77js.getAutomine.call(void 0, client),
|
502
|
+
getTxPoolContent: () => _chunkEBLS4P77js.getTxpoolContent.call(void 0, client),
|
503
|
+
getTxPoolStatus: () => _chunkEBLS4P77js.getTxpoolStatus.call(void 0, client),
|
504
|
+
impersonateAccount: (args) => _chunkEBLS4P77js.impersonateAccount.call(void 0, client, args),
|
505
|
+
increaseTime: (args) => _chunkEBLS4P77js.increaseTime.call(void 0, client, args),
|
506
|
+
inspectTxpool: () => _chunkEBLS4P77js.inspectTxpool.call(void 0, client),
|
507
|
+
mine: (args) => _chunkEBLS4P77js.mine.call(void 0, client, args),
|
508
|
+
removeBlockTimestampInterval: () => _chunkEBLS4P77js.removeBlockTimestampInterval.call(void 0, client),
|
509
|
+
reset: (args) => _chunkEBLS4P77js.reset.call(void 0, client, args),
|
510
|
+
revert: (args) => _chunkEBLS4P77js.revert.call(void 0, client, args),
|
511
|
+
sendUnsignedTransaction: (args) => _chunkEBLS4P77js.sendUnsignedTransaction.call(void 0, client, args),
|
512
|
+
setAutomine: (args) => _chunkEBLS4P77js.setAutomine.call(void 0, client, args),
|
513
|
+
setBalance: (args) => _chunkEBLS4P77js.setBalance.call(void 0, client, args),
|
514
|
+
setBlockGasLimit: (args) => _chunkEBLS4P77js.setBlockGasLimit.call(void 0, client, args),
|
515
|
+
setBlockTimestampInterval: (args) => _chunkEBLS4P77js.setBlockTimestampInterval.call(void 0, client, args),
|
516
|
+
setCode: (args) => _chunkEBLS4P77js.setCode.call(void 0, client, args),
|
517
|
+
setCoinbase: (args) => _chunkEBLS4P77js.setCoinbase.call(void 0, client, args),
|
518
|
+
setIntervalMining: (args) => _chunkEBLS4P77js.setIntervalMining.call(void 0, client, args),
|
519
|
+
setLoggingEnabled: (args) => _chunkEBLS4P77js.setLoggingEnabled.call(void 0, client, args),
|
520
|
+
setMinGasPrice: (args) => _chunkEBLS4P77js.setMinGasPrice.call(void 0, client, args),
|
521
|
+
setNextBlockBaseFeePerGas: (args) => _chunkEBLS4P77js.setNextBlockBaseFeePerGas.call(void 0, client, args),
|
522
|
+
setNextBlockTimestamp: (args) => _chunkEBLS4P77js.setNextBlockTimestamp.call(void 0, client, args),
|
523
|
+
setNonce: (args) => _chunkEBLS4P77js.setNonce.call(void 0, client, args),
|
524
|
+
setRpcUrl: (args) => _chunkEBLS4P77js.setRpcUrl.call(void 0, client, args),
|
525
|
+
setStorageAt: (args) => _chunkEBLS4P77js.setStorageAt.call(void 0, client, args),
|
526
|
+
snapshot: () => _chunkEBLS4P77js.snapshot.call(void 0, client),
|
527
|
+
stopImpersonatingAccount: (args) => _chunkEBLS4P77js.stopImpersonatingAccount.call(void 0, client, args)
|
528
528
|
});
|
529
529
|
|
530
530
|
// src/clients/decorators/wallet.ts
|
531
531
|
var walletActions = (client) => ({
|
532
|
-
addChain: (args) =>
|
533
|
-
deployContract: (args) =>
|
534
|
-
getAccounts: () =>
|
535
|
-
getPermissions: () =>
|
536
|
-
requestAccounts: () =>
|
537
|
-
requestPermissions: (args) =>
|
538
|
-
sendTransaction: (args) =>
|
539
|
-
signMessage: (args) =>
|
540
|
-
switchChain: (args) =>
|
541
|
-
watchAsset: (args) =>
|
542
|
-
writeContract: (args) =>
|
532
|
+
addChain: (args) => _chunkIUCGWGPXjs.addChain.call(void 0, client, args),
|
533
|
+
deployContract: (args) => _chunkIUCGWGPXjs.deployContract.call(void 0, client, args),
|
534
|
+
getAccounts: () => _chunkIUCGWGPXjs.getAccounts.call(void 0, client),
|
535
|
+
getPermissions: () => _chunkIUCGWGPXjs.getPermissions.call(void 0, client),
|
536
|
+
requestAccounts: () => _chunkIUCGWGPXjs.requestAccounts.call(void 0, client),
|
537
|
+
requestPermissions: (args) => _chunkIUCGWGPXjs.requestPermissions.call(void 0, client, args),
|
538
|
+
sendTransaction: (args) => _chunkIUCGWGPXjs.sendTransaction.call(void 0, client, args),
|
539
|
+
signMessage: (args) => _chunkIUCGWGPXjs.signMessage.call(void 0, client, args),
|
540
|
+
switchChain: (args) => _chunkIUCGWGPXjs.switchChain.call(void 0, client, args),
|
541
|
+
watchAsset: (args) => _chunkIUCGWGPXjs.watchAsset.call(void 0, client, args),
|
542
|
+
writeContract: (args) => _chunkIUCGWGPXjs.writeContract.call(void 0, client, args)
|
543
543
|
});
|
544
544
|
|
545
545
|
// src/clients/createPublicClient.ts
|
@@ -769,5 +769,5 @@ function createWalletClient({
|
|
769
769
|
|
770
770
|
|
771
771
|
|
772
|
-
exports.AbiConstructorNotFoundError =
|
772
|
+
exports.AbiConstructorNotFoundError = _chunkF76TECTYjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkF76TECTYjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkF76TECTYjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkF76TECTYjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkF76TECTYjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkF76TECTYjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkF76TECTYjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkF76TECTYjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkF76TECTYjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkF76TECTYjs.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunkF76TECTYjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkF76TECTYjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkF76TECTYjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkF76TECTYjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkF76TECTYjs.BaseError; exports.BlockNotFoundError = _chunkF76TECTYjs.BlockNotFoundError; exports.CallExecutionError = _chunkF76TECTYjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkF76TECTYjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkF76TECTYjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkF76TECTYjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkF76TECTYjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkF76TECTYjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkF76TECTYjs.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunkF76TECTYjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkF76TECTYjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkF76TECTYjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkF76TECTYjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkF76TECTYjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkF76TECTYjs.HttpRequestError; exports.InsufficientFundsError = _chunkF76TECTYjs.InsufficientFundsError; exports.InternalRpcError = _chunkF76TECTYjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkF76TECTYjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkF76TECTYjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkF76TECTYjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkF76TECTYjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkF76TECTYjs.InvalidAddressError; exports.InvalidArrayError = _chunkF76TECTYjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkF76TECTYjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkF76TECTYjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkF76TECTYjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkF76TECTYjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkF76TECTYjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkF76TECTYjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkF76TECTYjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkF76TECTYjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkF76TECTYjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkF76TECTYjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkF76TECTYjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkF76TECTYjs.NonceMaxValueError; exports.NonceTooHighError = _chunkF76TECTYjs.NonceTooHighError; exports.NonceTooLowError = _chunkF76TECTYjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkF76TECTYjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkF76TECTYjs.ParseRpcError; exports.RawContractError = _chunkF76TECTYjs.RawContractError; exports.RequestError = _chunkF76TECTYjs.RequestError; exports.ResourceNotFoundRpcError = _chunkF76TECTYjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkF76TECTYjs.ResourceUnavailableRpcError; exports.RpcError = _chunkF76TECTYjs.RpcError; exports.RpcRequestError = _chunkF76TECTYjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkF76TECTYjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkF76TECTYjs.SwitchChainError; exports.TimeoutError = _chunkF76TECTYjs.TimeoutError; exports.TipAboveFeeCapError = _chunkF76TECTYjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkF76TECTYjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkF76TECTYjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkF76TECTYjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkF76TECTYjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkF76TECTYjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkF76TECTYjs.UnknownNodeError; exports.UnknownRpcError = _chunkF76TECTYjs.UnknownRpcError; exports.UrlRequiredError = _chunkF76TECTYjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkF76TECTYjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkF76TECTYjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkF76TECTYjs.WebSocketRequestError; exports.boolToBytes = _chunkF76TECTYjs.boolToBytes; exports.boolToHex = _chunkF76TECTYjs.boolToHex; exports.bytesToBigint = _chunkF76TECTYjs.bytesToBigint; exports.bytesToBool = _chunkF76TECTYjs.bytesToBool; exports.bytesToHex = _chunkF76TECTYjs.bytesToHex; exports.bytesToNumber = _chunkF76TECTYjs.bytesToNumber; exports.bytesToString = _chunkF76TECTYjs.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbi = _chunkF76TECTYjs.decodeAbi; exports.decodeErrorResult = _chunkF76TECTYjs.decodeErrorResult; exports.decodeEventLog = _chunkF76TECTYjs.decodeEventLog; exports.decodeFunctionData = _chunkF76TECTYjs.decodeFunctionData; exports.decodeFunctionResult = _chunkF76TECTYjs.decodeFunctionResult; exports.defineBlock = _chunkF76TECTYjs.defineBlock; exports.defineChain = _chunkF76TECTYjs.defineChain; exports.defineTransaction = _chunkF76TECTYjs.defineTransaction; exports.defineTransactionReceipt = _chunkF76TECTYjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkF76TECTYjs.defineTransactionRequest; exports.encodeAbi = _chunkF76TECTYjs.encodeAbi; exports.encodeDeployData = _chunkF76TECTYjs.encodeDeployData; exports.encodeErrorResult = _chunkF76TECTYjs.encodeErrorResult; exports.encodeEventTopics = _chunkF76TECTYjs.encodeEventTopics; exports.encodeFunctionData = _chunkF76TECTYjs.encodeFunctionData; exports.encodeFunctionResult = _chunkF76TECTYjs.encodeFunctionResult; exports.etherUnits = _chunkF76TECTYjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkF76TECTYjs.formatBlock; exports.formatEther = _chunkF76TECTYjs.formatEther; exports.formatGwei = _chunkF76TECTYjs.formatGwei; exports.formatTransaction = _chunkF76TECTYjs.formatTransaction; exports.formatTransactionRequest = _chunkF76TECTYjs.formatTransactionRequest; exports.formatUnit = _chunkF76TECTYjs.formatUnit; exports.fromBytes = _chunkF76TECTYjs.fromBytes; exports.fromHex = _chunkF76TECTYjs.fromHex; exports.fromRlp = _chunkF76TECTYjs.fromRlp; exports.getAbiItem = _chunkF76TECTYjs.getAbiItem; exports.getAddress = _chunkF76TECTYjs.getAddress; exports.getContractAddress = _chunkF76TECTYjs.getContractAddress; exports.getContractError = _chunkF76TECTYjs.getContractError; exports.getCreate2Address = _chunkF76TECTYjs.getCreate2Address; exports.getCreateAddress = _chunkF76TECTYjs.getCreateAddress; exports.getEventSelector = _chunkF76TECTYjs.getEventSelector; exports.getFunctionSelector = _chunkF76TECTYjs.getFunctionSelector; exports.gweiUnits = _chunkF76TECTYjs.gweiUnits; exports.hexToBigInt = _chunkF76TECTYjs.hexToBigInt; exports.hexToBool = _chunkF76TECTYjs.hexToBool; exports.hexToBytes = _chunkF76TECTYjs.hexToBytes; exports.hexToNumber = _chunkF76TECTYjs.hexToNumber; exports.hexToString = _chunkF76TECTYjs.hexToString; exports.http = http; exports.isAddress = _chunkF76TECTYjs.isAddress; exports.isAddressEqual = _chunkF76TECTYjs.isAddressEqual; exports.isBytes = _chunkF76TECTYjs.isBytes; exports.isHex = _chunkF76TECTYjs.isHex; exports.keccak256 = _chunkF76TECTYjs.keccak256; exports.labelhash = _chunkEJEZIHXKjs.labelhash; exports.multicall3Abi = _chunkF76TECTYjs.multicall3Abi; exports.namehash = _chunkEJEZIHXKjs.namehash; exports.numberToBytes = _chunkF76TECTYjs.numberToBytes; exports.numberToHex = _chunkF76TECTYjs.numberToHex; exports.pad = _chunkF76TECTYjs.pad; exports.padBytes = _chunkF76TECTYjs.padBytes; exports.padHex = _chunkF76TECTYjs.padHex; exports.parseEther = _chunkF76TECTYjs.parseEther; exports.parseGwei = _chunkF76TECTYjs.parseGwei; exports.parseUnit = _chunkF76TECTYjs.parseUnit; exports.size = _chunkF76TECTYjs.size; exports.slice = _chunkF76TECTYjs.slice; exports.sliceBytes = _chunkF76TECTYjs.sliceBytes; exports.sliceHex = _chunkF76TECTYjs.sliceHex; exports.stringToBytes = _chunkF76TECTYjs.stringToBytes; exports.stringToHex = _chunkF76TECTYjs.stringToHex; exports.stringify = _chunkF76TECTYjs.stringify; exports.toBytes = _chunkF76TECTYjs.toBytes; exports.toHex = _chunkF76TECTYjs.toHex; exports.toRlp = _chunkF76TECTYjs.toRlp; exports.transactionType = _chunkF76TECTYjs.transactionType; exports.trim = _chunkF76TECTYjs.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkF76TECTYjs.weiUnits;
|
773
773
|
//# sourceMappingURL=index.js.map
|
package/dist/index.mjs
CHANGED
@@ -3,7 +3,7 @@ import {
|
|
3
3
|
getEnsName,
|
4
4
|
labelhash,
|
5
5
|
namehash
|
6
|
-
} from "./chunk-
|
6
|
+
} from "./chunk-KQQLLKZV.mjs";
|
7
7
|
import {
|
8
8
|
call,
|
9
9
|
createBlockFilter,
|
@@ -37,7 +37,7 @@ import {
|
|
37
37
|
watchContractEvent,
|
38
38
|
watchEvent,
|
39
39
|
watchPendingTransactions
|
40
|
-
} from "./chunk-
|
40
|
+
} from "./chunk-VHZHROXW.mjs";
|
41
41
|
import {
|
42
42
|
dropTransaction,
|
43
43
|
getAutomine,
|
@@ -67,7 +67,7 @@ import {
|
|
67
67
|
setStorageAt,
|
68
68
|
snapshot,
|
69
69
|
stopImpersonatingAccount
|
70
|
-
} from "./chunk-
|
70
|
+
} from "./chunk-NMET3ZHG.mjs";
|
71
71
|
import {
|
72
72
|
addChain,
|
73
73
|
deployContract,
|
@@ -80,7 +80,7 @@ import {
|
|
80
80
|
switchChain,
|
81
81
|
watchAsset,
|
82
82
|
writeContract
|
83
|
-
} from "./chunk-
|
83
|
+
} from "./chunk-TNN5X44H.mjs";
|
84
84
|
import {
|
85
85
|
AbiConstructorNotFoundError,
|
86
86
|
AbiConstructorParamsNotFoundError,
|
@@ -234,7 +234,7 @@ import {
|
|
234
234
|
transactionType,
|
235
235
|
trim,
|
236
236
|
weiUnits
|
237
|
-
} from "./chunk-
|
237
|
+
} from "./chunk-VP57P6CD.mjs";
|
238
238
|
|
239
239
|
// src/clients/transports/createTransport.ts
|
240
240
|
function createTransport({
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { A as Address, B as ByteArray, H as Hex, C as Chain, a as Hash, g as BlockTag, a5 as EventDefinition } from './chain-
|
2
|
-
import { C as CallArgs, E as EstimateGasArgs } from './createPublicClient-
|
3
|
-
import { S as SendTransactionArgs } from './wallet-
|
1
|
+
import { A as Address, B as ByteArray, H as Hex, C as Chain, a as Hash, g as BlockTag, a5 as EventDefinition } from './chain-4a0d4164.js';
|
2
|
+
import { C as CallArgs, E as EstimateGasArgs } from './createPublicClient-b5afe6b8.js';
|
3
|
+
import { S as SendTransactionArgs } from './wallet-5ab86528.js';
|
4
4
|
import { Abi } from 'abitype';
|
5
|
-
import { b as DecodeErrorResultResponse } from './getAbiItem-
|
5
|
+
import { b as DecodeErrorResultResponse } from './getAbiItem-d7aa40b1.js';
|
6
6
|
import WebSocket from 'isomorphic-ws';
|
7
7
|
|
8
8
|
declare function getAddress(address: string): Address;
|