viem 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abi.js +2 -2
- package/dist/abi.mjs +1 -1
- package/dist/chains.js +63 -63
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-YZCQ7AL7.js → chunk-3FWCHYKE.js} +12 -3
- package/dist/chunk-3FWCHYKE.js.map +1 -0
- package/dist/{chunk-ADJTWF45.js → chunk-65E5HTFA.js} +19 -19
- package/dist/{chunk-IAY6WXS3.mjs → chunk-BJPR4EAT.mjs} +2 -2
- package/dist/{chunk-H6AQHA74.mjs → chunk-S4MOKUQW.mjs} +11 -2
- package/dist/chunk-S4MOKUQW.mjs.map +1 -0
- package/dist/contract.js +2 -2
- package/dist/contract.mjs +1 -1
- package/dist/ens.js +3 -3
- package/dist/ens.mjs +2 -2
- package/dist/ethers.d.ts +29 -0
- package/dist/ethers.js +30 -0
- package/dist/ethers.js.map +1 -0
- package/dist/ethers.mjs +30 -0
- package/dist/ethers.mjs.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +96 -90
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{parseGwei-faf061db.d.ts → parseGwei-a35c7c87.d.ts} +6 -1
- package/dist/public.js +2 -2
- package/dist/public.mjs +1 -1
- package/dist/test.js +2 -2
- package/dist/test.mjs +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +8 -2
- package/dist/utils/index.mjs +7 -1
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/ethers/package.json +4 -0
- package/package.json +7 -1
- package/dist/chunk-H6AQHA74.mjs.map +0 -1
- package/dist/chunk-YZCQ7AL7.js.map +0 -1
- /package/dist/{chunk-ADJTWF45.js.map → chunk-65E5HTFA.js.map} +0 -0
- /package/dist/{chunk-IAY6WXS3.mjs.map → chunk-BJPR4EAT.mjs.map} +0 -0
package/dist/contract.js
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
var
|
26
|
+
var _chunk3FWCHYKEjs = require('./chunk-3FWCHYKE.js');
|
27
27
|
|
28
28
|
|
29
29
|
|
@@ -49,5 +49,5 @@ var _chunkYZCQ7AL7js = require('./chunk-YZCQ7AL7.js');
|
|
49
49
|
|
50
50
|
|
51
51
|
|
52
|
-
exports.createContractEventFilter =
|
52
|
+
exports.createContractEventFilter = _chunk3FWCHYKEjs.createContractEventFilter; exports.decodeAbiParameters = _chunk3FWCHYKEjs.decodeAbiParameters; exports.decodeErrorResult = _chunk3FWCHYKEjs.decodeErrorResult; exports.decodeEventLog = _chunk3FWCHYKEjs.decodeEventLog; exports.decodeFunctionData = _chunk3FWCHYKEjs.decodeFunctionData; exports.decodeFunctionResult = _chunk3FWCHYKEjs.decodeFunctionResult; exports.deployContract = _chunk3FWCHYKEjs.deployContract; exports.encodeAbiParameters = _chunk3FWCHYKEjs.encodeAbiParameters; exports.encodeDeployData = _chunk3FWCHYKEjs.encodeDeployData; exports.encodeErrorResult = _chunk3FWCHYKEjs.encodeErrorResult; exports.encodeEventTopics = _chunk3FWCHYKEjs.encodeEventTopics; exports.encodeFunctionData = _chunk3FWCHYKEjs.encodeFunctionData; exports.encodeFunctionResult = _chunk3FWCHYKEjs.encodeFunctionResult; exports.estimateContractGas = _chunk3FWCHYKEjs.estimateContractGas; exports.formatAbiItem = _chunk3FWCHYKEjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunk3FWCHYKEjs.formatAbiItemWithArgs; exports.getAbiItem = _chunk3FWCHYKEjs.getAbiItem; exports.getBytecode = _chunk3FWCHYKEjs.getBytecode; exports.getStorageAt = _chunk3FWCHYKEjs.getStorageAt; exports.multicall = _chunk3FWCHYKEjs.multicall; exports.readContract = _chunk3FWCHYKEjs.readContract; exports.simulateContract = _chunk3FWCHYKEjs.simulateContract; exports.watchContractEvent = _chunk3FWCHYKEjs.watchContractEvent; exports.writeContract = _chunk3FWCHYKEjs.writeContract;
|
53
53
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.mjs
CHANGED
package/dist/ens.js
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
7
|
-
require('./chunk-
|
6
|
+
var _chunk65E5HTFAjs = require('./chunk-65E5HTFA.js');
|
7
|
+
require('./chunk-3FWCHYKE.js');
|
8
8
|
|
9
9
|
// src/utils/ens/normalize.ts
|
10
10
|
var _idnauts46hx = require('idna-uts46-hx');
|
@@ -17,5 +17,5 @@ function normalize(name) {
|
|
17
17
|
|
18
18
|
|
19
19
|
|
20
|
-
exports.getEnsAddress =
|
20
|
+
exports.getEnsAddress = _chunk65E5HTFAjs.getEnsAddress; exports.getEnsName = _chunk65E5HTFAjs.getEnsName; exports.labelhash = _chunk65E5HTFAjs.labelhash; exports.namehash = _chunk65E5HTFAjs.namehash; exports.normalize = normalize;
|
21
21
|
//# sourceMappingURL=ens.js.map
|
package/dist/ens.mjs
CHANGED
package/dist/ethers.d.ts
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
import { A as Account } from './createPublicClient-34d3ba9d.js';
|
2
|
+
import './eip1193-2f116cf7.js';
|
3
|
+
import 'abitype';
|
4
|
+
import './chain-792d51c3.js';
|
5
|
+
import '@wagmi/chains';
|
6
|
+
import './createClient-6cd6daa3.js';
|
7
|
+
|
8
|
+
type BigNumberish = string | number | bigint;
|
9
|
+
type BytesLike = string | Uint8Array;
|
10
|
+
type TypedDataDomain = {
|
11
|
+
name?: string;
|
12
|
+
version?: string;
|
13
|
+
chainId?: BigNumberish;
|
14
|
+
verifyingContract?: string;
|
15
|
+
salt?: BytesLike;
|
16
|
+
};
|
17
|
+
type TypedDataField = {
|
18
|
+
name: string;
|
19
|
+
type: string;
|
20
|
+
};
|
21
|
+
type EthersWallet = {
|
22
|
+
address: string;
|
23
|
+
signMessage(message: Uint8Array): Promise<string>;
|
24
|
+
signTransaction(txn: any): Promise<string>;
|
25
|
+
signTypedData(domain: TypedDataDomain, types: Record<string, TypedDataField[]>, value: Record<string, any>): Promise<string>;
|
26
|
+
};
|
27
|
+
declare const getAccount: (wallet: EthersWallet) => Account;
|
28
|
+
|
29
|
+
export { getAccount };
|
package/dist/ethers.js
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
2
|
+
|
3
|
+
|
4
|
+
var _chunk3FWCHYKEjs = require('./chunk-3FWCHYKE.js');
|
5
|
+
|
6
|
+
// src/adapters/ethers.ts
|
7
|
+
var getAccount2 = (wallet) => _chunk3FWCHYKEjs.getAccount.call(void 0, {
|
8
|
+
address: wallet.address,
|
9
|
+
async signMessage(message) {
|
10
|
+
return await wallet.signMessage(_chunk3FWCHYKEjs.toBytes.call(void 0, message));
|
11
|
+
},
|
12
|
+
async signTransaction(txn) {
|
13
|
+
return await wallet.signTransaction({
|
14
|
+
...txn,
|
15
|
+
gasLimit: txn.gas
|
16
|
+
});
|
17
|
+
},
|
18
|
+
async signTypedData({ domain, types: types_, message }) {
|
19
|
+
const { EIP712Domain: _, ...types } = types_;
|
20
|
+
return await wallet.signTypedData(
|
21
|
+
_nullishCoalesce(domain, () => ( {})),
|
22
|
+
types,
|
23
|
+
message
|
24
|
+
);
|
25
|
+
}
|
26
|
+
});
|
27
|
+
|
28
|
+
|
29
|
+
exports.getAccount = getAccount2;
|
30
|
+
//# sourceMappingURL=ethers.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/adapters/ethers.ts"],"names":["getAccount"],"mappings":";;;;;;AA6BO,IAAMA,cAAa,CAAC,WACzB,WAAY;AAAA,EACV,SAAS,OAAO;AAAA,EAChB,MAAM,YAAY,SAAS;AACzB,WAAQ,MAAM,OAAO,YAAY,QAAQ,OAAO,CAAC;AAAA,EACnD;AAAA,EACA,MAAM,gBAAgB,KAAK;AACzB,WAAQ,MAAM,OAAO,gBAAgB;AAAA,MACnC,GAAG;AAAA,MACH,UAAU,IAAI;AAAA,IAChB,CAAC;AAAA,EACH;AAAA,EACA,MAAM,cAAc,EAAE,QAAQ,OAAO,QAAQ,QAAQ,GAAG;AACtD,UAAM,EAAE,cAAc,GAAG,GAAG,MAAM,IAAI;AACtC,WAAQ,MAAM,OAAO;AAAA,MACnB,UAAU,CAAC;AAAA,MACX;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF,CAAC","sourcesContent":["import { Address, Hash } from '../types'\nimport { getAccount as getAccount_, toBytes } from '../utils'\n\ntype BigNumberish = string | number | bigint\ntype BytesLike = string | Uint8Array\n\ntype TypedDataDomain = {\n name?: string\n version?: string\n chainId?: BigNumberish\n verifyingContract?: string\n salt?: BytesLike\n}\ntype TypedDataField = {\n name: string\n type: string\n}\n\ntype EthersWallet = {\n address: string\n signMessage(message: Uint8Array): Promise<string>\n signTransaction(txn: any): Promise<string>\n signTypedData(\n domain: TypedDataDomain,\n types: Record<string, TypedDataField[]>,\n value: Record<string, any>,\n ): Promise<string>\n}\n\nexport const getAccount = (wallet: EthersWallet) =>\n getAccount_({\n address: wallet.address as Address,\n async signMessage(message) {\n return (await wallet.signMessage(toBytes(message))) as Hash\n },\n async signTransaction(txn) {\n return (await wallet.signTransaction({\n ...txn,\n gasLimit: txn.gas,\n })) as Hash\n },\n async signTypedData({ domain, types: types_, message }) {\n const { EIP712Domain: _, ...types } = types_ as any\n return (await wallet.signTypedData(\n domain ?? {},\n types as Record<string, TypedDataField[]>,\n message,\n )) as Hash\n },\n })\n"]}
|
package/dist/ethers.mjs
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
import {
|
2
|
+
getAccount,
|
3
|
+
toBytes
|
4
|
+
} from "./chunk-S4MOKUQW.mjs";
|
5
|
+
|
6
|
+
// src/adapters/ethers.ts
|
7
|
+
var getAccount2 = (wallet) => getAccount({
|
8
|
+
address: wallet.address,
|
9
|
+
async signMessage(message) {
|
10
|
+
return await wallet.signMessage(toBytes(message));
|
11
|
+
},
|
12
|
+
async signTransaction(txn) {
|
13
|
+
return await wallet.signTransaction({
|
14
|
+
...txn,
|
15
|
+
gasLimit: txn.gas
|
16
|
+
});
|
17
|
+
},
|
18
|
+
async signTypedData({ domain, types: types_, message }) {
|
19
|
+
const { EIP712Domain: _, ...types } = types_;
|
20
|
+
return await wallet.signTypedData(
|
21
|
+
domain ?? {},
|
22
|
+
types,
|
23
|
+
message
|
24
|
+
);
|
25
|
+
}
|
26
|
+
});
|
27
|
+
export {
|
28
|
+
getAccount2 as getAccount
|
29
|
+
};
|
30
|
+
//# sourceMappingURL=ethers.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/adapters/ethers.ts"],"sourcesContent":["import { Address, Hash } from '../types'\nimport { getAccount as getAccount_, toBytes } from '../utils'\n\ntype BigNumberish = string | number | bigint\ntype BytesLike = string | Uint8Array\n\ntype TypedDataDomain = {\n name?: string\n version?: string\n chainId?: BigNumberish\n verifyingContract?: string\n salt?: BytesLike\n}\ntype TypedDataField = {\n name: string\n type: string\n}\n\ntype EthersWallet = {\n address: string\n signMessage(message: Uint8Array): Promise<string>\n signTransaction(txn: any): Promise<string>\n signTypedData(\n domain: TypedDataDomain,\n types: Record<string, TypedDataField[]>,\n value: Record<string, any>,\n ): Promise<string>\n}\n\nexport const getAccount = (wallet: EthersWallet) =>\n getAccount_({\n address: wallet.address as Address,\n async signMessage(message) {\n return (await wallet.signMessage(toBytes(message))) as Hash\n },\n async signTransaction(txn) {\n return (await wallet.signTransaction({\n ...txn,\n gasLimit: txn.gas,\n })) as Hash\n },\n async signTypedData({ domain, types: types_, message }) {\n const { EIP712Domain: _, ...types } = types_ as any\n return (await wallet.signTypedData(\n domain ?? {},\n types as Record<string, TypedDataField[]>,\n message,\n )) as Hash\n },\n })\n"],"mappings":";;;;;;AA6BO,IAAMA,cAAa,CAAC,WACzB,WAAY;AAAA,EACV,SAAS,OAAO;AAAA,EAChB,MAAM,YAAY,SAAS;AACzB,WAAQ,MAAM,OAAO,YAAY,QAAQ,OAAO,CAAC;AAAA,EACnD;AAAA,EACA,MAAM,gBAAgB,KAAK;AACzB,WAAQ,MAAM,OAAO,gBAAgB;AAAA,MACnC,GAAG;AAAA,MACH,UAAU,IAAI;AAAA,IAChB,CAAC;AAAA,EACH;AAAA,EACA,MAAM,cAAc,EAAE,QAAQ,OAAO,QAAQ,QAAQ,GAAG;AACtD,UAAM,EAAE,cAAc,GAAG,GAAG,MAAM,IAAI;AACtC,WAAQ,MAAM,OAAO;AAAA,MACnB,UAAU,CAAC;AAAA,MACX;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF,CAAC;","names":["getAccount"]}
|
package/dist/index.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './createClient-6cd6daa3.js';
|
2
2
|
export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createClient-6cd6daa3.js';
|
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 ToRlpReturnType, 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
|
3
|
+
import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-a35c7c87.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 ToRlpReturnType, 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 concat, z as concatBytes, A as concatHex, D as formatEther, J as formatGwei, K as formatUnits, L as fromBytes, M as fromHex, O as fromRlp, P as getAccount, Q as getAddress, S as getContractAddress, V as getContractError, X as getCreate2Address, Y as getCreateAddress, Z as getEventSelector, _ as getFunctionSelector, $ as hexToBigInt, a0 as hexToBool, a1 as hexToBytes, a2 as hexToNumber, a3 as hexToString, a4 as isAddress, a5 as isAddressEqual, a6 as isBytes, a7 as isHex, a8 as keccak256, a9 as numberToBytes, aa as numberToHex, ab as pad, ac as padBytes, ad as padHex, ae as parseEther, af as parseGwei, ag as parseUnits, ah as size, ai as slice, aj as sliceBytes, ak as sliceHex, al as stringToBytes, am as stringToHex, an as stringify, ao as toBytes, ap as toHex, aq as toRlp, ar as trim } from './parseGwei-a35c7c87.js';
|
5
5
|
import WebSocket from 'isomorphic-ws';
|
6
6
|
import { H as Hex, a as Hash, C as Chain, B as ByteArray } from './chain-792d51c3.js';
|
7
7
|
export { A as AbiItem, b as AccessList, c as Block, d as BlockIdentifier, e as BlockNumber, f as BlockTag, B as ByteArray, C as Chain, g as ContractConfig, I as ExtractFormatter, F as FeeHistory, h as FeeValues, i as FeeValuesEIP1559, j as FeeValuesLegacy, J as Formatted, K as FormattedTransaction, a as Hash, H as Hex, L as Log, R as RpcBlock, k as RpcBlockIdentifier, l as RpcBlockNumber, m as RpcFeeHistory, n as RpcFeeValues, o as RpcLog, p as RpcTransaction, q as RpcTransactionReceipt, r as RpcTransactionRequest, s as RpcUncle, y as Transaction, z as TransactionBase, D as TransactionEIP1559, E as TransactionEIP2930, M as TransactionFormatter, G as TransactionLegacy, T as TransactionReceipt, t as TransactionRequest, u as TransactionRequestBase, v as TransactionRequestEIP1559, w as TransactionRequestEIP2930, x as TransactionRequestLegacy, U as Uncle, N as defineTransaction, O as formatTransaction, P as transactionType } from './chain-792d51c3.js';
|
package/dist/index.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
6
|
+
var _chunk65E5HTFAjs = require('./chunk-65E5HTFA.js');
|
7
7
|
|
8
8
|
|
9
9
|
|
@@ -236,7 +236,10 @@ var _chunkADJTWF45js = require('./chunk-ADJTWF45.js');
|
|
236
236
|
|
237
237
|
|
238
238
|
|
239
|
-
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
var _chunk3FWCHYKEjs = require('./chunk-3FWCHYKE.js');
|
240
243
|
|
241
244
|
// src/clients/transports/createTransport.ts
|
242
245
|
function createTransport({
|
@@ -250,7 +253,7 @@ function createTransport({
|
|
250
253
|
}, value) {
|
251
254
|
return {
|
252
255
|
config: { key, name, request, retryCount, retryDelay, timeout, type },
|
253
|
-
request:
|
256
|
+
request: _chunk3FWCHYKEjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
|
254
257
|
value
|
255
258
|
};
|
256
259
|
}
|
@@ -284,7 +287,7 @@ function fallback(transports, config = {}) {
|
|
284
287
|
params
|
285
288
|
});
|
286
289
|
} catch (err) {
|
287
|
-
if (
|
290
|
+
if (_chunk3FWCHYKEjs.isDeterministicError.call(void 0, err))
|
288
291
|
throw err;
|
289
292
|
if (i === transports.length - 1)
|
290
293
|
throw err;
|
@@ -318,13 +321,13 @@ function http(url, config = {}) {
|
|
318
321
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
319
322
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
|
320
323
|
if (!url_)
|
321
|
-
throw new (0,
|
324
|
+
throw new (0, _chunk3FWCHYKEjs.UrlRequiredError)();
|
322
325
|
return createTransport(
|
323
326
|
{
|
324
327
|
key,
|
325
328
|
name,
|
326
329
|
async request({ method, params }) {
|
327
|
-
const { result } = await
|
330
|
+
const { result } = await _chunk3FWCHYKEjs.rpc.http(url_, {
|
328
331
|
body: {
|
329
332
|
method,
|
330
333
|
params
|
@@ -358,14 +361,14 @@ function webSocket(url, config = {}) {
|
|
358
361
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
359
362
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
|
360
363
|
if (!url_)
|
361
|
-
throw new (0,
|
364
|
+
throw new (0, _chunk3FWCHYKEjs.UrlRequiredError)();
|
362
365
|
return createTransport(
|
363
366
|
{
|
364
367
|
key,
|
365
368
|
name,
|
366
369
|
async request({ method, params }) {
|
367
|
-
const socket = await
|
368
|
-
const { result } = await
|
370
|
+
const socket = await _chunk3FWCHYKEjs.getSocket.call(void 0, url_);
|
371
|
+
const { result } = await _chunk3FWCHYKEjs.rpc.webSocketAsync(socket, {
|
369
372
|
body: { method, params },
|
370
373
|
timeout
|
371
374
|
});
|
@@ -378,12 +381,12 @@ function webSocket(url, config = {}) {
|
|
378
381
|
},
|
379
382
|
{
|
380
383
|
getSocket() {
|
381
|
-
return
|
384
|
+
return _chunk3FWCHYKEjs.getSocket.call(void 0, url_);
|
382
385
|
},
|
383
386
|
async subscribe({ params, onData, onError }) {
|
384
|
-
const socket = await
|
387
|
+
const socket = await _chunk3FWCHYKEjs.getSocket.call(void 0, url_);
|
385
388
|
const { result: subscriptionId } = await new Promise(
|
386
|
-
(resolve, reject) =>
|
389
|
+
(resolve, reject) => _chunk3FWCHYKEjs.rpc.webSocket(socket, {
|
387
390
|
body: {
|
388
391
|
method: "eth_subscribe",
|
389
392
|
params
|
@@ -405,7 +408,7 @@ function webSocket(url, config = {}) {
|
|
405
408
|
subscriptionId,
|
406
409
|
async unsubscribe() {
|
407
410
|
return new Promise(
|
408
|
-
(resolve, reject) =>
|
411
|
+
(resolve, reject) => _chunk3FWCHYKEjs.rpc.webSocket(socket, {
|
409
412
|
body: {
|
410
413
|
method: "eth_unsubscribe",
|
411
414
|
params: [subscriptionId]
|
@@ -461,90 +464,90 @@ function createClient({
|
|
461
464
|
|
462
465
|
// src/clients/decorators/public.ts
|
463
466
|
var publicActions = (client) => ({
|
464
|
-
call: (args) =>
|
465
|
-
createBlockFilter: () =>
|
466
|
-
createContractEventFilter: (args) =>
|
467
|
-
createEventFilter: (args) =>
|
468
|
-
createPendingTransactionFilter: () =>
|
469
|
-
estimateContractGas: (args) =>
|
470
|
-
estimateGas: (args) =>
|
471
|
-
getBalance: (args) =>
|
472
|
-
getBlock: (args) =>
|
473
|
-
getBlockNumber: (args) =>
|
474
|
-
getBlockTransactionCount: (args) =>
|
475
|
-
getBytecode: (args) =>
|
476
|
-
getChainId: () =>
|
477
|
-
getEnsAddress: (args) =>
|
478
|
-
getEnsName: (args) =>
|
479
|
-
getFeeHistory: (args) =>
|
480
|
-
getFilterChanges: (args) =>
|
481
|
-
getFilterLogs: (args) =>
|
482
|
-
getGasPrice: () =>
|
483
|
-
getLogs: (args) =>
|
484
|
-
getStorageAt: (args) =>
|
485
|
-
getTransaction: (args) =>
|
486
|
-
getTransactionConfirmations: (args) =>
|
487
|
-
getTransactionCount: (args) =>
|
488
|
-
getTransactionReceipt: (args) =>
|
489
|
-
multicall: (args) =>
|
490
|
-
readContract: (args) =>
|
491
|
-
simulateContract: (args) =>
|
492
|
-
uninstallFilter: (args) =>
|
493
|
-
waitForTransactionReceipt: (args) =>
|
494
|
-
watchBlocks: (args) =>
|
495
|
-
watchBlockNumber: (args) =>
|
496
|
-
watchContractEvent: (args) =>
|
497
|
-
watchEvent: (args) =>
|
498
|
-
watchPendingTransactions: (args) =>
|
467
|
+
call: (args) => _chunk3FWCHYKEjs.call.call(void 0, client, args),
|
468
|
+
createBlockFilter: () => _chunk3FWCHYKEjs.createBlockFilter.call(void 0, client),
|
469
|
+
createContractEventFilter: (args) => _chunk3FWCHYKEjs.createContractEventFilter.call(void 0, client, args),
|
470
|
+
createEventFilter: (args) => _chunk3FWCHYKEjs.createEventFilter.call(void 0, client, args),
|
471
|
+
createPendingTransactionFilter: () => _chunk3FWCHYKEjs.createPendingTransactionFilter.call(void 0, client),
|
472
|
+
estimateContractGas: (args) => _chunk3FWCHYKEjs.estimateContractGas.call(void 0, client, args),
|
473
|
+
estimateGas: (args) => _chunk3FWCHYKEjs.estimateGas.call(void 0, client, args),
|
474
|
+
getBalance: (args) => _chunk3FWCHYKEjs.getBalance.call(void 0, client, args),
|
475
|
+
getBlock: (args) => _chunk3FWCHYKEjs.getBlock.call(void 0, client, args),
|
476
|
+
getBlockNumber: (args) => _chunk3FWCHYKEjs.getBlockNumber.call(void 0, client, args),
|
477
|
+
getBlockTransactionCount: (args) => _chunk3FWCHYKEjs.getBlockTransactionCount.call(void 0, client, args),
|
478
|
+
getBytecode: (args) => _chunk3FWCHYKEjs.getBytecode.call(void 0, client, args),
|
479
|
+
getChainId: () => _chunk3FWCHYKEjs.getChainId.call(void 0, client),
|
480
|
+
getEnsAddress: (args) => _chunk65E5HTFAjs.getEnsAddress.call(void 0, client, args),
|
481
|
+
getEnsName: (args) => _chunk65E5HTFAjs.getEnsName.call(void 0, client, args),
|
482
|
+
getFeeHistory: (args) => _chunk3FWCHYKEjs.getFeeHistory.call(void 0, client, args),
|
483
|
+
getFilterChanges: (args) => _chunk3FWCHYKEjs.getFilterChanges.call(void 0, client, args),
|
484
|
+
getFilterLogs: (args) => _chunk3FWCHYKEjs.getFilterLogs.call(void 0, client, args),
|
485
|
+
getGasPrice: () => _chunk3FWCHYKEjs.getGasPrice.call(void 0, client),
|
486
|
+
getLogs: (args) => _chunk3FWCHYKEjs.getLogs.call(void 0, client, args),
|
487
|
+
getStorageAt: (args) => _chunk3FWCHYKEjs.getStorageAt.call(void 0, client, args),
|
488
|
+
getTransaction: (args) => _chunk3FWCHYKEjs.getTransaction.call(void 0, client, args),
|
489
|
+
getTransactionConfirmations: (args) => _chunk3FWCHYKEjs.getTransactionConfirmations.call(void 0, client, args),
|
490
|
+
getTransactionCount: (args) => _chunk3FWCHYKEjs.getTransactionCount.call(void 0, client, args),
|
491
|
+
getTransactionReceipt: (args) => _chunk3FWCHYKEjs.getTransactionReceipt.call(void 0, client, args),
|
492
|
+
multicall: (args) => _chunk3FWCHYKEjs.multicall.call(void 0, client, args),
|
493
|
+
readContract: (args) => _chunk3FWCHYKEjs.readContract.call(void 0, client, args),
|
494
|
+
simulateContract: (args) => _chunk3FWCHYKEjs.simulateContract.call(void 0, client, args),
|
495
|
+
uninstallFilter: (args) => _chunk3FWCHYKEjs.uninstallFilter.call(void 0, client, args),
|
496
|
+
waitForTransactionReceipt: (args) => _chunk3FWCHYKEjs.waitForTransactionReceipt.call(void 0, client, args),
|
497
|
+
watchBlocks: (args) => _chunk3FWCHYKEjs.watchBlocks.call(void 0, client, args),
|
498
|
+
watchBlockNumber: (args) => _chunk3FWCHYKEjs.watchBlockNumber.call(void 0, client, args),
|
499
|
+
watchContractEvent: (args) => _chunk3FWCHYKEjs.watchContractEvent.call(void 0, client, args),
|
500
|
+
watchEvent: (args) => _chunk3FWCHYKEjs.watchEvent.call(void 0, client, args),
|
501
|
+
watchPendingTransactions: (args) => _chunk3FWCHYKEjs.watchPendingTransactions.call(void 0, client, args)
|
499
502
|
});
|
500
503
|
|
501
504
|
// src/clients/decorators/test.ts
|
502
505
|
var testActions = (client) => ({
|
503
|
-
dropTransaction: (args) =>
|
504
|
-
getAutomine: () =>
|
505
|
-
getTxpoolContent: () =>
|
506
|
-
getTxpoolStatus: () =>
|
507
|
-
impersonateAccount: (args) =>
|
508
|
-
increaseTime: (args) =>
|
509
|
-
inspectTxpool: () =>
|
510
|
-
mine: (args) =>
|
511
|
-
removeBlockTimestampInterval: () =>
|
512
|
-
reset: (args) =>
|
513
|
-
revert: (args) =>
|
514
|
-
sendUnsignedTransaction: (args) =>
|
515
|
-
setAutomine: (args) =>
|
516
|
-
setBalance: (args) =>
|
517
|
-
setBlockGasLimit: (args) =>
|
518
|
-
setBlockTimestampInterval: (args) =>
|
519
|
-
setCode: (args) =>
|
520
|
-
setCoinbase: (args) =>
|
521
|
-
setIntervalMining: (args) =>
|
522
|
-
setLoggingEnabled: (args) =>
|
523
|
-
setMinGasPrice: (args) =>
|
524
|
-
setNextBlockBaseFeePerGas: (args) =>
|
525
|
-
setNextBlockTimestamp: (args) =>
|
526
|
-
setNonce: (args) =>
|
527
|
-
setRpcUrl: (args) =>
|
528
|
-
setStorageAt: (args) =>
|
529
|
-
snapshot: () =>
|
530
|
-
stopImpersonatingAccount: (args) =>
|
506
|
+
dropTransaction: (args) => _chunk3FWCHYKEjs.dropTransaction.call(void 0, client, args),
|
507
|
+
getAutomine: () => _chunk3FWCHYKEjs.getAutomine.call(void 0, client),
|
508
|
+
getTxpoolContent: () => _chunk3FWCHYKEjs.getTxpoolContent.call(void 0, client),
|
509
|
+
getTxpoolStatus: () => _chunk3FWCHYKEjs.getTxpoolStatus.call(void 0, client),
|
510
|
+
impersonateAccount: (args) => _chunk3FWCHYKEjs.impersonateAccount.call(void 0, client, args),
|
511
|
+
increaseTime: (args) => _chunk3FWCHYKEjs.increaseTime.call(void 0, client, args),
|
512
|
+
inspectTxpool: () => _chunk3FWCHYKEjs.inspectTxpool.call(void 0, client),
|
513
|
+
mine: (args) => _chunk3FWCHYKEjs.mine.call(void 0, client, args),
|
514
|
+
removeBlockTimestampInterval: () => _chunk3FWCHYKEjs.removeBlockTimestampInterval.call(void 0, client),
|
515
|
+
reset: (args) => _chunk3FWCHYKEjs.reset.call(void 0, client, args),
|
516
|
+
revert: (args) => _chunk3FWCHYKEjs.revert.call(void 0, client, args),
|
517
|
+
sendUnsignedTransaction: (args) => _chunk3FWCHYKEjs.sendUnsignedTransaction.call(void 0, client, args),
|
518
|
+
setAutomine: (args) => _chunk3FWCHYKEjs.setAutomine.call(void 0, client, args),
|
519
|
+
setBalance: (args) => _chunk3FWCHYKEjs.setBalance.call(void 0, client, args),
|
520
|
+
setBlockGasLimit: (args) => _chunk3FWCHYKEjs.setBlockGasLimit.call(void 0, client, args),
|
521
|
+
setBlockTimestampInterval: (args) => _chunk3FWCHYKEjs.setBlockTimestampInterval.call(void 0, client, args),
|
522
|
+
setCode: (args) => _chunk3FWCHYKEjs.setCode.call(void 0, client, args),
|
523
|
+
setCoinbase: (args) => _chunk3FWCHYKEjs.setCoinbase.call(void 0, client, args),
|
524
|
+
setIntervalMining: (args) => _chunk3FWCHYKEjs.setIntervalMining.call(void 0, client, args),
|
525
|
+
setLoggingEnabled: (args) => _chunk3FWCHYKEjs.setLoggingEnabled.call(void 0, client, args),
|
526
|
+
setMinGasPrice: (args) => _chunk3FWCHYKEjs.setMinGasPrice.call(void 0, client, args),
|
527
|
+
setNextBlockBaseFeePerGas: (args) => _chunk3FWCHYKEjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
|
528
|
+
setNextBlockTimestamp: (args) => _chunk3FWCHYKEjs.setNextBlockTimestamp.call(void 0, client, args),
|
529
|
+
setNonce: (args) => _chunk3FWCHYKEjs.setNonce.call(void 0, client, args),
|
530
|
+
setRpcUrl: (args) => _chunk3FWCHYKEjs.setRpcUrl.call(void 0, client, args),
|
531
|
+
setStorageAt: (args) => _chunk3FWCHYKEjs.setStorageAt.call(void 0, client, args),
|
532
|
+
snapshot: () => _chunk3FWCHYKEjs.snapshot.call(void 0, client),
|
533
|
+
stopImpersonatingAccount: (args) => _chunk3FWCHYKEjs.stopImpersonatingAccount.call(void 0, client, args)
|
531
534
|
});
|
532
535
|
|
533
536
|
// src/clients/decorators/wallet.ts
|
534
537
|
var walletActions = (client) => ({
|
535
|
-
addChain: (args) =>
|
536
|
-
deployContract: (args) =>
|
537
|
-
getAddresses: () =>
|
538
|
-
getChainId: () =>
|
539
|
-
getPermissions: () =>
|
540
|
-
requestAddresses: () =>
|
541
|
-
requestPermissions: (args) =>
|
542
|
-
sendTransaction: (args) =>
|
543
|
-
signMessage: (args) =>
|
544
|
-
signTypedData: (args) =>
|
545
|
-
switchChain: (args) =>
|
546
|
-
watchAsset: (args) =>
|
547
|
-
writeContract: (args) =>
|
538
|
+
addChain: (args) => _chunk3FWCHYKEjs.addChain.call(void 0, client, args),
|
539
|
+
deployContract: (args) => _chunk3FWCHYKEjs.deployContract.call(void 0, client, args),
|
540
|
+
getAddresses: () => _chunk3FWCHYKEjs.getAddresses.call(void 0, client),
|
541
|
+
getChainId: () => _chunk3FWCHYKEjs.getChainId.call(void 0, client),
|
542
|
+
getPermissions: () => _chunk3FWCHYKEjs.getPermissions.call(void 0, client),
|
543
|
+
requestAddresses: () => _chunk3FWCHYKEjs.requestAddresses.call(void 0, client),
|
544
|
+
requestPermissions: (args) => _chunk3FWCHYKEjs.requestPermissions.call(void 0, client, args),
|
545
|
+
sendTransaction: (args) => _chunk3FWCHYKEjs.sendTransaction.call(void 0, client, args),
|
546
|
+
signMessage: (args) => _chunk3FWCHYKEjs.signMessage.call(void 0, client, args),
|
547
|
+
signTypedData: (args) => _chunk3FWCHYKEjs.signTypedData.call(void 0, client, args),
|
548
|
+
switchChain: (args) => _chunk3FWCHYKEjs.switchChain.call(void 0, client, args),
|
549
|
+
watchAsset: (args) => _chunk3FWCHYKEjs.watchAsset.call(void 0, client, args),
|
550
|
+
writeContract: (args) => _chunk3FWCHYKEjs.writeContract.call(void 0, client, args)
|
548
551
|
});
|
549
552
|
|
550
553
|
// src/clients/createPublicClient.ts
|
@@ -780,5 +783,8 @@ function createWalletClient({
|
|
780
783
|
|
781
784
|
|
782
785
|
|
783
|
-
exports.AbiConstructorNotFoundError = _chunkYZCQ7AL7js.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkYZCQ7AL7js.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkYZCQ7AL7js.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkYZCQ7AL7js.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkYZCQ7AL7js.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkYZCQ7AL7js.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkYZCQ7AL7js.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkYZCQ7AL7js.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkYZCQ7AL7js.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkYZCQ7AL7js.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunkYZCQ7AL7js.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkYZCQ7AL7js.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkYZCQ7AL7js.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkYZCQ7AL7js.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkYZCQ7AL7js.BaseError; exports.BlockNotFoundError = _chunkYZCQ7AL7js.BlockNotFoundError; exports.CallExecutionError = _chunkYZCQ7AL7js.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkYZCQ7AL7js.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkYZCQ7AL7js.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkYZCQ7AL7js.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkYZCQ7AL7js.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkYZCQ7AL7js.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkYZCQ7AL7js.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunkYZCQ7AL7js.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkYZCQ7AL7js.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkYZCQ7AL7js.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkYZCQ7AL7js.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkYZCQ7AL7js.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkYZCQ7AL7js.HttpRequestError; exports.InsufficientFundsError = _chunkYZCQ7AL7js.InsufficientFundsError; exports.InternalRpcError = _chunkYZCQ7AL7js.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkYZCQ7AL7js.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkYZCQ7AL7js.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkYZCQ7AL7js.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkYZCQ7AL7js.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkYZCQ7AL7js.InvalidAddressError; exports.InvalidArrayError = _chunkYZCQ7AL7js.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkYZCQ7AL7js.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkYZCQ7AL7js.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkYZCQ7AL7js.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkYZCQ7AL7js.InvalidHexValueError; exports.InvalidInputRpcError = _chunkYZCQ7AL7js.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkYZCQ7AL7js.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkYZCQ7AL7js.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkYZCQ7AL7js.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkYZCQ7AL7js.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkYZCQ7AL7js.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkYZCQ7AL7js.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkYZCQ7AL7js.NonceMaxValueError; exports.NonceTooHighError = _chunkYZCQ7AL7js.NonceTooHighError; exports.NonceTooLowError = _chunkYZCQ7AL7js.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkYZCQ7AL7js.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkYZCQ7AL7js.ParseRpcError; exports.RawContractError = _chunkYZCQ7AL7js.RawContractError; exports.RequestError = _chunkYZCQ7AL7js.RequestError; exports.ResourceNotFoundRpcError = _chunkYZCQ7AL7js.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkYZCQ7AL7js.ResourceUnavailableRpcError; exports.RpcError = _chunkYZCQ7AL7js.RpcError; exports.RpcRequestError = _chunkYZCQ7AL7js.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkYZCQ7AL7js.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkYZCQ7AL7js.SwitchChainError; exports.TimeoutError = _chunkYZCQ7AL7js.TimeoutError; exports.TipAboveFeeCapError = _chunkYZCQ7AL7js.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkYZCQ7AL7js.TransactionExecutionError; exports.TransactionNotFoundError = _chunkYZCQ7AL7js.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkYZCQ7AL7js.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkYZCQ7AL7js.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkYZCQ7AL7js.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkYZCQ7AL7js.UnknownNodeError; exports.UnknownRpcError = _chunkYZCQ7AL7js.UnknownRpcError; exports.UrlRequiredError = _chunkYZCQ7AL7js.UrlRequiredError; exports.UserRejectedRequestError = _chunkYZCQ7AL7js.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkYZCQ7AL7js.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkYZCQ7AL7js.WebSocketRequestError; exports.boolToBytes = _chunkYZCQ7AL7js.boolToBytes; exports.boolToHex = _chunkYZCQ7AL7js.boolToHex; exports.bytesToBigint = _chunkYZCQ7AL7js.bytesToBigint; exports.bytesToBool = _chunkYZCQ7AL7js.bytesToBool; exports.bytesToHex = _chunkYZCQ7AL7js.bytesToHex; exports.bytesToNumber = _chunkYZCQ7AL7js.bytesToNumber; exports.bytesToString = _chunkYZCQ7AL7js.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkYZCQ7AL7js.decodeAbiParameters; exports.decodeErrorResult = _chunkYZCQ7AL7js.decodeErrorResult; exports.decodeEventLog = _chunkYZCQ7AL7js.decodeEventLog; exports.decodeFunctionData = _chunkYZCQ7AL7js.decodeFunctionData; exports.decodeFunctionResult = _chunkYZCQ7AL7js.decodeFunctionResult; exports.defineBlock = _chunkYZCQ7AL7js.defineBlock; exports.defineChain = _chunkYZCQ7AL7js.defineChain; exports.defineTransaction = _chunkYZCQ7AL7js.defineTransaction; exports.defineTransactionReceipt = _chunkYZCQ7AL7js.defineTransactionReceipt; exports.defineTransactionRequest = _chunkYZCQ7AL7js.defineTransactionRequest; exports.encodeAbiParameters = _chunkYZCQ7AL7js.encodeAbiParameters; exports.encodeDeployData = _chunkYZCQ7AL7js.encodeDeployData; exports.encodeErrorResult = _chunkYZCQ7AL7js.encodeErrorResult; exports.encodeEventTopics = _chunkYZCQ7AL7js.encodeEventTopics; exports.encodeFunctionData = _chunkYZCQ7AL7js.encodeFunctionData; exports.encodeFunctionResult = _chunkYZCQ7AL7js.encodeFunctionResult; exports.encodePacked = _chunkYZCQ7AL7js.encodePacked; exports.etherUnits = _chunkYZCQ7AL7js.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkYZCQ7AL7js.formatBlock; exports.formatEther = _chunkYZCQ7AL7js.formatEther; exports.formatGwei = _chunkYZCQ7AL7js.formatGwei; exports.formatTransaction = _chunkYZCQ7AL7js.formatTransaction; exports.formatTransactionRequest = _chunkYZCQ7AL7js.formatTransactionRequest; exports.formatUnits = _chunkYZCQ7AL7js.formatUnits; exports.fromBytes = _chunkYZCQ7AL7js.fromBytes; exports.fromHex = _chunkYZCQ7AL7js.fromHex; exports.fromRlp = _chunkYZCQ7AL7js.fromRlp; exports.getAbiItem = _chunkYZCQ7AL7js.getAbiItem; exports.getAccount = _chunkYZCQ7AL7js.getAccount; exports.getAddress = _chunkYZCQ7AL7js.getAddress; exports.getContractAddress = _chunkYZCQ7AL7js.getContractAddress; exports.getContractError = _chunkYZCQ7AL7js.getContractError; exports.getCreate2Address = _chunkYZCQ7AL7js.getCreate2Address; exports.getCreateAddress = _chunkYZCQ7AL7js.getCreateAddress; exports.getEventSelector = _chunkYZCQ7AL7js.getEventSelector; exports.getFunctionSelector = _chunkYZCQ7AL7js.getFunctionSelector; exports.gweiUnits = _chunkYZCQ7AL7js.gweiUnits; exports.hexToBigInt = _chunkYZCQ7AL7js.hexToBigInt; exports.hexToBool = _chunkYZCQ7AL7js.hexToBool; exports.hexToBytes = _chunkYZCQ7AL7js.hexToBytes; exports.hexToNumber = _chunkYZCQ7AL7js.hexToNumber; exports.hexToString = _chunkYZCQ7AL7js.hexToString; exports.http = http; exports.isAddress = _chunkYZCQ7AL7js.isAddress; exports.isAddressEqual = _chunkYZCQ7AL7js.isAddressEqual; exports.isBytes = _chunkYZCQ7AL7js.isBytes; exports.isHex = _chunkYZCQ7AL7js.isHex; exports.keccak256 = _chunkYZCQ7AL7js.keccak256; exports.labelhash = _chunkADJTWF45js.labelhash; exports.multicall3Abi = _chunkYZCQ7AL7js.multicall3Abi; exports.namehash = _chunkADJTWF45js.namehash; exports.numberToBytes = _chunkYZCQ7AL7js.numberToBytes; exports.numberToHex = _chunkYZCQ7AL7js.numberToHex; exports.pad = _chunkYZCQ7AL7js.pad; exports.padBytes = _chunkYZCQ7AL7js.padBytes; exports.padHex = _chunkYZCQ7AL7js.padHex; exports.parseAbi = _chunkYZCQ7AL7js.parseAbi; exports.parseAbiItem = _chunkYZCQ7AL7js.parseAbiItem; exports.parseAbiParameter = _chunkYZCQ7AL7js.parseAbiParameter; exports.parseAbiParameters = _chunkYZCQ7AL7js.parseAbiParameters; exports.parseEther = _chunkYZCQ7AL7js.parseEther; exports.parseGwei = _chunkYZCQ7AL7js.parseGwei; exports.parseUnits = _chunkYZCQ7AL7js.parseUnits; exports.size = _chunkYZCQ7AL7js.size; exports.slice = _chunkYZCQ7AL7js.slice; exports.sliceBytes = _chunkYZCQ7AL7js.sliceBytes; exports.sliceHex = _chunkYZCQ7AL7js.sliceHex; exports.stringToBytes = _chunkYZCQ7AL7js.stringToBytes; exports.stringToHex = _chunkYZCQ7AL7js.stringToHex; exports.stringify = _chunkYZCQ7AL7js.stringify; exports.toBytes = _chunkYZCQ7AL7js.toBytes; exports.toHex = _chunkYZCQ7AL7js.toHex; exports.toRlp = _chunkYZCQ7AL7js.toRlp; exports.transactionType = _chunkYZCQ7AL7js.transactionType; exports.trim = _chunkYZCQ7AL7js.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkYZCQ7AL7js.weiUnits;
|
786
|
+
|
787
|
+
|
788
|
+
|
789
|
+
exports.AbiConstructorNotFoundError = _chunk3FWCHYKEjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunk3FWCHYKEjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunk3FWCHYKEjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunk3FWCHYKEjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunk3FWCHYKEjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunk3FWCHYKEjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunk3FWCHYKEjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunk3FWCHYKEjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunk3FWCHYKEjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunk3FWCHYKEjs.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunk3FWCHYKEjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunk3FWCHYKEjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunk3FWCHYKEjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunk3FWCHYKEjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunk3FWCHYKEjs.BaseError; exports.BlockNotFoundError = _chunk3FWCHYKEjs.BlockNotFoundError; exports.CallExecutionError = _chunk3FWCHYKEjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunk3FWCHYKEjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunk3FWCHYKEjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunk3FWCHYKEjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunk3FWCHYKEjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunk3FWCHYKEjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunk3FWCHYKEjs.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunk3FWCHYKEjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunk3FWCHYKEjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunk3FWCHYKEjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunk3FWCHYKEjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunk3FWCHYKEjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunk3FWCHYKEjs.HttpRequestError; exports.InsufficientFundsError = _chunk3FWCHYKEjs.InsufficientFundsError; exports.InternalRpcError = _chunk3FWCHYKEjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunk3FWCHYKEjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunk3FWCHYKEjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunk3FWCHYKEjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunk3FWCHYKEjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunk3FWCHYKEjs.InvalidAddressError; exports.InvalidArrayError = _chunk3FWCHYKEjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunk3FWCHYKEjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunk3FWCHYKEjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunk3FWCHYKEjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunk3FWCHYKEjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunk3FWCHYKEjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunk3FWCHYKEjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunk3FWCHYKEjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunk3FWCHYKEjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunk3FWCHYKEjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunk3FWCHYKEjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunk3FWCHYKEjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunk3FWCHYKEjs.NonceMaxValueError; exports.NonceTooHighError = _chunk3FWCHYKEjs.NonceTooHighError; exports.NonceTooLowError = _chunk3FWCHYKEjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunk3FWCHYKEjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunk3FWCHYKEjs.ParseRpcError; exports.RawContractError = _chunk3FWCHYKEjs.RawContractError; exports.RequestError = _chunk3FWCHYKEjs.RequestError; exports.ResourceNotFoundRpcError = _chunk3FWCHYKEjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunk3FWCHYKEjs.ResourceUnavailableRpcError; exports.RpcError = _chunk3FWCHYKEjs.RpcError; exports.RpcRequestError = _chunk3FWCHYKEjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunk3FWCHYKEjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunk3FWCHYKEjs.SwitchChainError; exports.TimeoutError = _chunk3FWCHYKEjs.TimeoutError; exports.TipAboveFeeCapError = _chunk3FWCHYKEjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunk3FWCHYKEjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunk3FWCHYKEjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunk3FWCHYKEjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunk3FWCHYKEjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunk3FWCHYKEjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunk3FWCHYKEjs.UnknownNodeError; exports.UnknownRpcError = _chunk3FWCHYKEjs.UnknownRpcError; exports.UrlRequiredError = _chunk3FWCHYKEjs.UrlRequiredError; exports.UserRejectedRequestError = _chunk3FWCHYKEjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunk3FWCHYKEjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunk3FWCHYKEjs.WebSocketRequestError; exports.boolToBytes = _chunk3FWCHYKEjs.boolToBytes; exports.boolToHex = _chunk3FWCHYKEjs.boolToHex; exports.bytesToBigint = _chunk3FWCHYKEjs.bytesToBigint; exports.bytesToBool = _chunk3FWCHYKEjs.bytesToBool; exports.bytesToHex = _chunk3FWCHYKEjs.bytesToHex; exports.bytesToNumber = _chunk3FWCHYKEjs.bytesToNumber; exports.bytesToString = _chunk3FWCHYKEjs.bytesToString; exports.concat = _chunk3FWCHYKEjs.concat; exports.concatBytes = _chunk3FWCHYKEjs.concatBytes; exports.concatHex = _chunk3FWCHYKEjs.concatHex; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunk3FWCHYKEjs.decodeAbiParameters; exports.decodeErrorResult = _chunk3FWCHYKEjs.decodeErrorResult; exports.decodeEventLog = _chunk3FWCHYKEjs.decodeEventLog; exports.decodeFunctionData = _chunk3FWCHYKEjs.decodeFunctionData; exports.decodeFunctionResult = _chunk3FWCHYKEjs.decodeFunctionResult; exports.defineBlock = _chunk3FWCHYKEjs.defineBlock; exports.defineChain = _chunk3FWCHYKEjs.defineChain; exports.defineTransaction = _chunk3FWCHYKEjs.defineTransaction; exports.defineTransactionReceipt = _chunk3FWCHYKEjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunk3FWCHYKEjs.defineTransactionRequest; exports.encodeAbiParameters = _chunk3FWCHYKEjs.encodeAbiParameters; exports.encodeDeployData = _chunk3FWCHYKEjs.encodeDeployData; exports.encodeErrorResult = _chunk3FWCHYKEjs.encodeErrorResult; exports.encodeEventTopics = _chunk3FWCHYKEjs.encodeEventTopics; exports.encodeFunctionData = _chunk3FWCHYKEjs.encodeFunctionData; exports.encodeFunctionResult = _chunk3FWCHYKEjs.encodeFunctionResult; exports.encodePacked = _chunk3FWCHYKEjs.encodePacked; exports.etherUnits = _chunk3FWCHYKEjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunk3FWCHYKEjs.formatBlock; exports.formatEther = _chunk3FWCHYKEjs.formatEther; exports.formatGwei = _chunk3FWCHYKEjs.formatGwei; exports.formatTransaction = _chunk3FWCHYKEjs.formatTransaction; exports.formatTransactionRequest = _chunk3FWCHYKEjs.formatTransactionRequest; exports.formatUnits = _chunk3FWCHYKEjs.formatUnits; exports.fromBytes = _chunk3FWCHYKEjs.fromBytes; exports.fromHex = _chunk3FWCHYKEjs.fromHex; exports.fromRlp = _chunk3FWCHYKEjs.fromRlp; exports.getAbiItem = _chunk3FWCHYKEjs.getAbiItem; exports.getAccount = _chunk3FWCHYKEjs.getAccount; exports.getAddress = _chunk3FWCHYKEjs.getAddress; exports.getContractAddress = _chunk3FWCHYKEjs.getContractAddress; exports.getContractError = _chunk3FWCHYKEjs.getContractError; exports.getCreate2Address = _chunk3FWCHYKEjs.getCreate2Address; exports.getCreateAddress = _chunk3FWCHYKEjs.getCreateAddress; exports.getEventSelector = _chunk3FWCHYKEjs.getEventSelector; exports.getFunctionSelector = _chunk3FWCHYKEjs.getFunctionSelector; exports.gweiUnits = _chunk3FWCHYKEjs.gweiUnits; exports.hexToBigInt = _chunk3FWCHYKEjs.hexToBigInt; exports.hexToBool = _chunk3FWCHYKEjs.hexToBool; exports.hexToBytes = _chunk3FWCHYKEjs.hexToBytes; exports.hexToNumber = _chunk3FWCHYKEjs.hexToNumber; exports.hexToString = _chunk3FWCHYKEjs.hexToString; exports.http = http; exports.isAddress = _chunk3FWCHYKEjs.isAddress; exports.isAddressEqual = _chunk3FWCHYKEjs.isAddressEqual; exports.isBytes = _chunk3FWCHYKEjs.isBytes; exports.isHex = _chunk3FWCHYKEjs.isHex; exports.keccak256 = _chunk3FWCHYKEjs.keccak256; exports.labelhash = _chunk65E5HTFAjs.labelhash; exports.multicall3Abi = _chunk3FWCHYKEjs.multicall3Abi; exports.namehash = _chunk65E5HTFAjs.namehash; exports.numberToBytes = _chunk3FWCHYKEjs.numberToBytes; exports.numberToHex = _chunk3FWCHYKEjs.numberToHex; exports.pad = _chunk3FWCHYKEjs.pad; exports.padBytes = _chunk3FWCHYKEjs.padBytes; exports.padHex = _chunk3FWCHYKEjs.padHex; exports.parseAbi = _chunk3FWCHYKEjs.parseAbi; exports.parseAbiItem = _chunk3FWCHYKEjs.parseAbiItem; exports.parseAbiParameter = _chunk3FWCHYKEjs.parseAbiParameter; exports.parseAbiParameters = _chunk3FWCHYKEjs.parseAbiParameters; exports.parseEther = _chunk3FWCHYKEjs.parseEther; exports.parseGwei = _chunk3FWCHYKEjs.parseGwei; exports.parseUnits = _chunk3FWCHYKEjs.parseUnits; exports.size = _chunk3FWCHYKEjs.size; exports.slice = _chunk3FWCHYKEjs.slice; exports.sliceBytes = _chunk3FWCHYKEjs.sliceBytes; exports.sliceHex = _chunk3FWCHYKEjs.sliceHex; exports.stringToBytes = _chunk3FWCHYKEjs.stringToBytes; exports.stringToHex = _chunk3FWCHYKEjs.stringToHex; exports.stringify = _chunk3FWCHYKEjs.stringify; exports.toBytes = _chunk3FWCHYKEjs.toBytes; exports.toHex = _chunk3FWCHYKEjs.toHex; exports.toRlp = _chunk3FWCHYKEjs.toRlp; exports.transactionType = _chunk3FWCHYKEjs.transactionType; exports.trim = _chunk3FWCHYKEjs.trim; exports.webSocket = webSocket; exports.weiUnits = _chunk3FWCHYKEjs.weiUnits;
|
784
790
|
//# sourceMappingURL=index.js.map
|