viem 0.1.2 → 0.1.4
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/README.md +14 -6
- package/dist/abi.js +2 -2
- package/dist/abi.mjs +1 -1
- package/dist/chains.d.ts +380 -3
- package/dist/chains.js +80 -46
- package/dist/chains.js.map +1 -1
- package/dist/chains.mjs +37 -3
- package/dist/chains.mjs.map +1 -1
- package/dist/{chunk-VUSHGUTQ.mjs → chunk-7NY73N4K.mjs} +23 -15
- package/dist/chunk-7NY73N4K.mjs.map +1 -0
- package/dist/{chunk-R5D7QBNZ.js → chunk-G7FFDM5F.js} +23 -15
- package/dist/chunk-G7FFDM5F.js.map +1 -0
- package/dist/{chunk-XRSXWQKH.mjs → chunk-IT4VFQ2I.mjs} +2 -2
- package/dist/{chunk-75OCRSSB.js → chunk-TLVPRARR.js} +21 -21
- 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/index.d.ts +2 -2
- package/dist/index.js +88 -88
- package/dist/index.mjs +2 -2
- package/dist/{parseGwei-23d1c213.d.ts → parseGwei-f91ad655.d.ts} +1 -1
- package/dist/public.js +2 -2
- package/dist/public.mjs +1 -1
- package/dist/test.js +2 -2
- package/dist/test.mjs +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-R5D7QBNZ.js.map +0 -1
- package/dist/chunk-VUSHGUTQ.mjs.map +0 -1
- /package/dist/{chunk-XRSXWQKH.mjs.map → chunk-IT4VFQ2I.mjs.map} +0 -0
- /package/dist/{chunk-75OCRSSB.js.map → chunk-TLVPRARR.js.map} +0 -0
@@ -11,7 +11,7 @@ import {
|
|
11
11
|
stringToBytes,
|
12
12
|
toBytes,
|
13
13
|
toHex
|
14
|
-
} from "./chunk-
|
14
|
+
} from "./chunk-7NY73N4K.mjs";
|
15
15
|
|
16
16
|
// src/utils/ens/labelhash.ts
|
17
17
|
function labelhash(label) {
|
@@ -205,4 +205,4 @@ export {
|
|
205
205
|
getEnsAddress,
|
206
206
|
getEnsName
|
207
207
|
};
|
208
|
-
//# sourceMappingURL=chunk-
|
208
|
+
//# sourceMappingURL=chunk-IT4VFQ2I.mjs.map
|
@@ -11,27 +11,27 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
var
|
14
|
+
var _chunkG7FFDM5Fjs = require('./chunk-G7FFDM5F.js');
|
15
15
|
|
16
16
|
// src/utils/ens/labelhash.ts
|
17
17
|
function labelhash(label) {
|
18
18
|
let result = new Uint8Array(32).fill(0);
|
19
19
|
if (!label)
|
20
|
-
return
|
21
|
-
return
|
20
|
+
return _chunkG7FFDM5Fjs.bytesToHex.call(void 0, result);
|
21
|
+
return _chunkG7FFDM5Fjs.keccak256.call(void 0, _chunkG7FFDM5Fjs.stringToBytes.call(void 0, label));
|
22
22
|
}
|
23
23
|
|
24
24
|
// src/utils/ens/namehash.ts
|
25
25
|
function namehash(name) {
|
26
26
|
let result = new Uint8Array(32).fill(0);
|
27
27
|
if (!name)
|
28
|
-
return
|
28
|
+
return _chunkG7FFDM5Fjs.bytesToHex.call(void 0, result);
|
29
29
|
const labels = name.split(".");
|
30
30
|
for (let i = labels.length - 1; i >= 0; i -= 1) {
|
31
|
-
const hashed =
|
32
|
-
result =
|
31
|
+
const hashed = _chunkG7FFDM5Fjs.keccak256.call(void 0, _chunkG7FFDM5Fjs.stringToBytes.call(void 0, labels[i]), "bytes");
|
32
|
+
result = _chunkG7FFDM5Fjs.keccak256.call(void 0, _chunkG7FFDM5Fjs.concat.call(void 0, [result, hashed]), "bytes");
|
33
33
|
}
|
34
|
-
return
|
34
|
+
return _chunkG7FFDM5Fjs.bytesToHex.call(void 0, result);
|
35
35
|
}
|
36
36
|
|
37
37
|
// src/utils/ens/packetToBytes.ts
|
@@ -39,7 +39,7 @@ function packetToBytes(packet) {
|
|
39
39
|
function length(value2) {
|
40
40
|
if (value2 === "." || value2 === "..")
|
41
41
|
return 1;
|
42
|
-
return
|
42
|
+
return _chunkG7FFDM5Fjs.toBytes.call(void 0, value2.replace(/^\.|\.$/gm, "")).length + 2;
|
43
43
|
}
|
44
44
|
const bytes = new Uint8Array(length(packet));
|
45
45
|
const value = packet.replace(/^\.|\.$/gm, "");
|
@@ -48,7 +48,7 @@ function packetToBytes(packet) {
|
|
48
48
|
let offset = 0;
|
49
49
|
const list = value.split(".");
|
50
50
|
for (let i = 0; i < list.length; i++) {
|
51
|
-
const encoded =
|
51
|
+
const encoded = _chunkG7FFDM5Fjs.toBytes.call(void 0, list[i]);
|
52
52
|
bytes[offset] = encoded.length;
|
53
53
|
bytes.set(encoded, offset + 1);
|
54
54
|
offset += encoded.length + 1;
|
@@ -71,12 +71,12 @@ async function getEnsAddress(client, {
|
|
71
71
|
);
|
72
72
|
const contract = _optionalChain([client, 'access', _ => _.chain, 'optionalAccess', _2 => _2.contracts, 'optionalAccess', _3 => _3.ensUniversalResolver]);
|
73
73
|
if (!contract)
|
74
|
-
throw new (0,
|
74
|
+
throw new (0, _chunkG7FFDM5Fjs.ChainDoesNotSupportContract)({
|
75
75
|
chain: client.chain,
|
76
76
|
contract: { name: "ensUniversalResolver" }
|
77
77
|
});
|
78
78
|
if (blockNumber && contract.blockCreated && contract.blockCreated > blockNumber)
|
79
|
-
throw new (0,
|
79
|
+
throw new (0, _chunkG7FFDM5Fjs.ChainDoesNotSupportContract)({
|
80
80
|
blockNumber,
|
81
81
|
chain: client.chain,
|
82
82
|
contract: {
|
@@ -86,7 +86,7 @@ async function getEnsAddress(client, {
|
|
86
86
|
});
|
87
87
|
universalResolverAddress = contract.address;
|
88
88
|
}
|
89
|
-
const res = await
|
89
|
+
const res = await _chunkG7FFDM5Fjs.readContract.call(void 0, client, {
|
90
90
|
address: universalResolverAddress,
|
91
91
|
abi: [
|
92
92
|
{
|
@@ -105,8 +105,8 @@ async function getEnsAddress(client, {
|
|
105
105
|
],
|
106
106
|
functionName: "resolve",
|
107
107
|
args: [
|
108
|
-
|
109
|
-
|
108
|
+
_chunkG7FFDM5Fjs.toHex.call(void 0, packetToBytes(name)),
|
109
|
+
_chunkG7FFDM5Fjs.encodeFunctionData.call(void 0, {
|
110
110
|
abi: [
|
111
111
|
{
|
112
112
|
name: "addr",
|
@@ -123,7 +123,7 @@ async function getEnsAddress(client, {
|
|
123
123
|
blockNumber,
|
124
124
|
blockTag
|
125
125
|
});
|
126
|
-
return
|
126
|
+
return _chunkG7FFDM5Fjs.decodeFunctionResult.call(void 0, {
|
127
127
|
abi: [
|
128
128
|
{
|
129
129
|
name: "addr",
|
@@ -153,12 +153,12 @@ async function getEnsName(client, {
|
|
153
153
|
);
|
154
154
|
const contract = _optionalChain([client, 'access', _4 => _4.chain, 'optionalAccess', _5 => _5.contracts, 'optionalAccess', _6 => _6.ensUniversalResolver]);
|
155
155
|
if (!contract)
|
156
|
-
throw new (0,
|
156
|
+
throw new (0, _chunkG7FFDM5Fjs.ChainDoesNotSupportContract)({
|
157
157
|
chain: client.chain,
|
158
158
|
contract: { name: "ensUniversalResolver" }
|
159
159
|
});
|
160
160
|
if (blockNumber && contract.blockCreated && contract.blockCreated > blockNumber)
|
161
|
-
throw new (0,
|
161
|
+
throw new (0, _chunkG7FFDM5Fjs.ChainDoesNotSupportContract)({
|
162
162
|
blockNumber,
|
163
163
|
chain: client.chain,
|
164
164
|
contract: {
|
@@ -170,7 +170,7 @@ async function getEnsName(client, {
|
|
170
170
|
}
|
171
171
|
const reverseNode = `${address.toLowerCase().substring(2)}.addr.reverse`;
|
172
172
|
try {
|
173
|
-
const res = await
|
173
|
+
const res = await _chunkG7FFDM5Fjs.readContract.call(void 0, client, {
|
174
174
|
address: universalResolverAddress,
|
175
175
|
abi: [
|
176
176
|
{
|
@@ -187,13 +187,13 @@ async function getEnsName(client, {
|
|
187
187
|
}
|
188
188
|
],
|
189
189
|
functionName: "reverse",
|
190
|
-
args: [
|
190
|
+
args: [_chunkG7FFDM5Fjs.toHex.call(void 0, packetToBytes(reverseNode))],
|
191
191
|
blockNumber,
|
192
192
|
blockTag
|
193
193
|
});
|
194
194
|
return res[0];
|
195
195
|
} catch (error) {
|
196
|
-
if (error instanceof
|
196
|
+
if (error instanceof _chunkG7FFDM5Fjs.ContractFunctionExecutionError && error.cause.reason === _chunkG7FFDM5Fjs.panicReasons[50])
|
197
197
|
return null;
|
198
198
|
throw error;
|
199
199
|
}
|
@@ -205,4 +205,4 @@ async function getEnsName(client, {
|
|
205
205
|
|
206
206
|
|
207
207
|
exports.labelhash = labelhash; exports.namehash = namehash; exports.getEnsAddress = getEnsAddress; exports.getEnsName = getEnsName;
|
208
|
-
//# sourceMappingURL=chunk-
|
208
|
+
//# sourceMappingURL=chunk-TLVPRARR.js.map
|
package/dist/contract.js
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
var
|
26
|
+
var _chunkG7FFDM5Fjs = require('./chunk-G7FFDM5F.js');
|
27
27
|
|
28
28
|
|
29
29
|
|
@@ -49,5 +49,5 @@ var _chunkR5D7QBNZjs = require('./chunk-R5D7QBNZ.js');
|
|
49
49
|
|
50
50
|
|
51
51
|
|
52
|
-
exports.createContractEventFilter =
|
52
|
+
exports.createContractEventFilter = _chunkG7FFDM5Fjs.createContractEventFilter; exports.decodeAbiParameters = _chunkG7FFDM5Fjs.decodeAbiParameters; exports.decodeErrorResult = _chunkG7FFDM5Fjs.decodeErrorResult; exports.decodeEventLog = _chunkG7FFDM5Fjs.decodeEventLog; exports.decodeFunctionData = _chunkG7FFDM5Fjs.decodeFunctionData; exports.decodeFunctionResult = _chunkG7FFDM5Fjs.decodeFunctionResult; exports.deployContract = _chunkG7FFDM5Fjs.deployContract; exports.encodeAbiParameters = _chunkG7FFDM5Fjs.encodeAbiParameters; exports.encodeDeployData = _chunkG7FFDM5Fjs.encodeDeployData; exports.encodeErrorResult = _chunkG7FFDM5Fjs.encodeErrorResult; exports.encodeEventTopics = _chunkG7FFDM5Fjs.encodeEventTopics; exports.encodeFunctionData = _chunkG7FFDM5Fjs.encodeFunctionData; exports.encodeFunctionResult = _chunkG7FFDM5Fjs.encodeFunctionResult; exports.estimateContractGas = _chunkG7FFDM5Fjs.estimateContractGas; exports.formatAbiItem = _chunkG7FFDM5Fjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkG7FFDM5Fjs.formatAbiItemWithArgs; exports.getAbiItem = _chunkG7FFDM5Fjs.getAbiItem; exports.getBytecode = _chunkG7FFDM5Fjs.getBytecode; exports.getStorageAt = _chunkG7FFDM5Fjs.getStorageAt; exports.multicall = _chunkG7FFDM5Fjs.multicall; exports.readContract = _chunkG7FFDM5Fjs.readContract; exports.simulateContract = _chunkG7FFDM5Fjs.simulateContract; exports.watchContractEvent = _chunkG7FFDM5Fjs.watchContractEvent; exports.writeContract = _chunkG7FFDM5Fjs.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 _chunkTLVPRARRjs = require('./chunk-TLVPRARR.js');
|
7
|
+
require('./chunk-G7FFDM5F.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 = _chunkTLVPRARRjs.getEnsAddress; exports.getEnsName = _chunkTLVPRARRjs.getEnsName; exports.labelhash = _chunkTLVPRARRjs.labelhash; exports.namehash = _chunkTLVPRARRjs.namehash; exports.normalize = normalize;
|
21
21
|
//# sourceMappingURL=ens.js.map
|
package/dist/ens.mjs
CHANGED
package/dist/index.d.ts
CHANGED
@@ -2,8 +2,8 @@ import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './cr
|
|
2
2
|
export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createClient-8575dcd6.js';
|
3
3
|
import { H as Hex, a as Hash, C as Chain, B as ByteArray } from './chain-d64be356.js';
|
4
4
|
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-d64be356.js';
|
5
|
-
import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-
|
6
|
-
export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, 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 formatEther, z as formatGwei, A as formatUnits, D as fromBytes, J as fromHex, K as fromRlp, L as getAccount, M as getAddress, O as getContractAddress, P as getContractError, Q as getCreate2Address, S as getCreateAddress, V as getEventSelector, X as getFunctionSelector, Y as hexToBigInt, Z as hexToBool, _ as hexToBytes, $ as hexToNumber, a0 as hexToString, a1 as isAddress, a2 as isAddressEqual, a3 as isBytes, a4 as isHex, a5 as keccak256, a6 as numberToBytes, a7 as numberToHex, a8 as pad, a9 as padBytes, aa as padHex, ab as parseEther, ac as parseGwei, ad as parseUnits, ae as size, af as slice, ag as sliceBytes, ah as sliceHex, ai as stringToBytes, aj as stringToHex, ak as stringify, al as toBytes, am as toHex, an as toRlp, ao as trim } from './parseGwei-
|
5
|
+
import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-f91ad655.js';
|
6
|
+
export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, 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 formatEther, z as formatGwei, A as formatUnits, D as fromBytes, J as fromHex, K as fromRlp, L as getAccount, M as getAddress, O as getContractAddress, P as getContractError, Q as getCreate2Address, S as getCreateAddress, V as getEventSelector, X as getFunctionSelector, Y as hexToBigInt, Z as hexToBool, _ as hexToBytes, $ as hexToNumber, a0 as hexToString, a1 as isAddress, a2 as isAddressEqual, a3 as isBytes, a4 as isHex, a5 as keccak256, a6 as numberToBytes, a7 as numberToHex, a8 as pad, a9 as padBytes, aa as padHex, ab as parseEther, ac as parseGwei, ad as parseUnits, ae as size, af as slice, ag as sliceBytes, ah as sliceHex, ai as stringToBytes, aj as stringToHex, ak as stringify, al as toBytes, am as toHex, an as toRlp, ao as trim } from './parseGwei-f91ad655.js';
|
7
7
|
import WebSocket from 'isomorphic-ws';
|
8
8
|
export { A as Account, B as BlockFormatter, F as FormattedBlock, e as FormattedTransactionReceipt, f as FormattedTransactionRequest, J as JsonRpcAccount, L as LocalAccount, P as PublicClient, a as PublicClientConfig, T as TransactionReceiptFormatter, g as TransactionRequestFormatter, W as WalletClient, b as WalletClientConfig, c as createPublicClient, d as createWalletClient, h as defineBlock, i as defineTransactionReceipt, j as defineTransactionRequest, k as formatBlock, l as formatTransactionRequest } from './createPublicClient-c13b17f9.js';
|
9
9
|
export { T as TestClient, a as TestClientConfig, c as createTestClient } from './test-f964519b.js';
|
package/dist/index.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
6
|
+
var _chunkTLVPRARRjs = require('./chunk-TLVPRARR.js');
|
7
7
|
|
8
8
|
|
9
9
|
|
@@ -234,7 +234,7 @@ var _chunk75OCRSSBjs = require('./chunk-75OCRSSB.js');
|
|
234
234
|
|
235
235
|
|
236
236
|
|
237
|
-
var
|
237
|
+
var _chunkG7FFDM5Fjs = require('./chunk-G7FFDM5F.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: _chunkG7FFDM5Fjs.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 (_chunkG7FFDM5Fjs.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, _chunkG7FFDM5Fjs.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 _chunkG7FFDM5Fjs.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, _chunkG7FFDM5Fjs.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 _chunkG7FFDM5Fjs.getSocket.call(void 0, url_);
|
366
|
+
const { result } = await _chunkG7FFDM5Fjs.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 _chunkG7FFDM5Fjs.getSocket.call(void 0, url_);
|
380
380
|
},
|
381
381
|
async subscribe({ params, onData, onError }) {
|
382
|
-
const socket = await
|
382
|
+
const socket = await _chunkG7FFDM5Fjs.getSocket.call(void 0, url_);
|
383
383
|
const { result: subscriptionId } = await new Promise(
|
384
|
-
(resolve, reject) =>
|
384
|
+
(resolve, reject) => _chunkG7FFDM5Fjs.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) => _chunkG7FFDM5Fjs.rpc.webSocket(socket, {
|
407
407
|
body: {
|
408
408
|
method: "eth_unsubscribe",
|
409
409
|
params: [subscriptionId]
|
@@ -459,88 +459,88 @@ 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) => _chunkG7FFDM5Fjs.call.call(void 0, client, args),
|
463
|
+
createBlockFilter: () => _chunkG7FFDM5Fjs.createBlockFilter.call(void 0, client),
|
464
|
+
createContractEventFilter: (args) => _chunkG7FFDM5Fjs.createContractEventFilter.call(void 0, client, args),
|
465
|
+
createEventFilter: (args) => _chunkG7FFDM5Fjs.createEventFilter.call(void 0, client, args),
|
466
|
+
createPendingTransactionFilter: () => _chunkG7FFDM5Fjs.createPendingTransactionFilter.call(void 0, client),
|
467
|
+
estimateContractGas: (args) => _chunkG7FFDM5Fjs.estimateContractGas.call(void 0, client, args),
|
468
|
+
estimateGas: (args) => _chunkG7FFDM5Fjs.estimateGas.call(void 0, client, args),
|
469
|
+
getBalance: (args) => _chunkG7FFDM5Fjs.getBalance.call(void 0, client, args),
|
470
|
+
getBlock: (args) => _chunkG7FFDM5Fjs.getBlock.call(void 0, client, args),
|
471
|
+
getBlockNumber: (args) => _chunkG7FFDM5Fjs.getBlockNumber.call(void 0, client, args),
|
472
|
+
getBlockTransactionCount: (args) => _chunkG7FFDM5Fjs.getBlockTransactionCount.call(void 0, client, args),
|
473
|
+
getBytecode: (args) => _chunkG7FFDM5Fjs.getBytecode.call(void 0, client, args),
|
474
|
+
getChainId: () => _chunkG7FFDM5Fjs.getChainId.call(void 0, client),
|
475
|
+
getEnsAddress: (args) => _chunkTLVPRARRjs.getEnsAddress.call(void 0, client, args),
|
476
|
+
getEnsName: (args) => _chunkTLVPRARRjs.getEnsName.call(void 0, client, args),
|
477
|
+
getFeeHistory: (args) => _chunkG7FFDM5Fjs.getFeeHistory.call(void 0, client, args),
|
478
|
+
getFilterChanges: (args) => _chunkG7FFDM5Fjs.getFilterChanges.call(void 0, client, args),
|
479
|
+
getFilterLogs: (args) => _chunkG7FFDM5Fjs.getFilterLogs.call(void 0, client, args),
|
480
|
+
getGasPrice: () => _chunkG7FFDM5Fjs.getGasPrice.call(void 0, client),
|
481
|
+
getLogs: (args) => _chunkG7FFDM5Fjs.getLogs.call(void 0, client, args),
|
482
|
+
getStorageAt: (args) => _chunkG7FFDM5Fjs.getStorageAt.call(void 0, client, args),
|
483
|
+
getTransaction: (args) => _chunkG7FFDM5Fjs.getTransaction.call(void 0, client, args),
|
484
|
+
getTransactionConfirmations: (args) => _chunkG7FFDM5Fjs.getTransactionConfirmations.call(void 0, client, args),
|
485
|
+
getTransactionReceipt: (args) => _chunkG7FFDM5Fjs.getTransactionReceipt.call(void 0, client, args),
|
486
|
+
multicall: (args) => _chunkG7FFDM5Fjs.multicall.call(void 0, client, args),
|
487
|
+
readContract: (args) => _chunkG7FFDM5Fjs.readContract.call(void 0, client, args),
|
488
|
+
simulateContract: (args) => _chunkG7FFDM5Fjs.simulateContract.call(void 0, client, args),
|
489
|
+
uninstallFilter: (args) => _chunkG7FFDM5Fjs.uninstallFilter.call(void 0, client, args),
|
490
|
+
waitForTransactionReceipt: (args) => _chunkG7FFDM5Fjs.waitForTransactionReceipt.call(void 0, client, args),
|
491
|
+
watchBlocks: (args) => _chunkG7FFDM5Fjs.watchBlocks.call(void 0, client, args),
|
492
|
+
watchBlockNumber: (args) => _chunkG7FFDM5Fjs.watchBlockNumber.call(void 0, client, args),
|
493
|
+
watchContractEvent: (args) => _chunkG7FFDM5Fjs.watchContractEvent.call(void 0, client, args),
|
494
|
+
watchEvent: (args) => _chunkG7FFDM5Fjs.watchEvent.call(void 0, client, args),
|
495
|
+
watchPendingTransactions: (args) => _chunkG7FFDM5Fjs.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) => _chunkG7FFDM5Fjs.dropTransaction.call(void 0, client, args),
|
501
|
+
getAutomine: () => _chunkG7FFDM5Fjs.getAutomine.call(void 0, client),
|
502
|
+
getTxpoolContent: () => _chunkG7FFDM5Fjs.getTxpoolContent.call(void 0, client),
|
503
|
+
getTxpoolStatus: () => _chunkG7FFDM5Fjs.getTxpoolStatus.call(void 0, client),
|
504
|
+
impersonateAccount: (args) => _chunkG7FFDM5Fjs.impersonateAccount.call(void 0, client, args),
|
505
|
+
increaseTime: (args) => _chunkG7FFDM5Fjs.increaseTime.call(void 0, client, args),
|
506
|
+
inspectTxpool: () => _chunkG7FFDM5Fjs.inspectTxpool.call(void 0, client),
|
507
|
+
mine: (args) => _chunkG7FFDM5Fjs.mine.call(void 0, client, args),
|
508
|
+
removeBlockTimestampInterval: () => _chunkG7FFDM5Fjs.removeBlockTimestampInterval.call(void 0, client),
|
509
|
+
reset: (args) => _chunkG7FFDM5Fjs.reset.call(void 0, client, args),
|
510
|
+
revert: (args) => _chunkG7FFDM5Fjs.revert.call(void 0, client, args),
|
511
|
+
sendUnsignedTransaction: (args) => _chunkG7FFDM5Fjs.sendUnsignedTransaction.call(void 0, client, args),
|
512
|
+
setAutomine: (args) => _chunkG7FFDM5Fjs.setAutomine.call(void 0, client, args),
|
513
|
+
setBalance: (args) => _chunkG7FFDM5Fjs.setBalance.call(void 0, client, args),
|
514
|
+
setBlockGasLimit: (args) => _chunkG7FFDM5Fjs.setBlockGasLimit.call(void 0, client, args),
|
515
|
+
setBlockTimestampInterval: (args) => _chunkG7FFDM5Fjs.setBlockTimestampInterval.call(void 0, client, args),
|
516
|
+
setCode: (args) => _chunkG7FFDM5Fjs.setCode.call(void 0, client, args),
|
517
|
+
setCoinbase: (args) => _chunkG7FFDM5Fjs.setCoinbase.call(void 0, client, args),
|
518
|
+
setIntervalMining: (args) => _chunkG7FFDM5Fjs.setIntervalMining.call(void 0, client, args),
|
519
|
+
setLoggingEnabled: (args) => _chunkG7FFDM5Fjs.setLoggingEnabled.call(void 0, client, args),
|
520
|
+
setMinGasPrice: (args) => _chunkG7FFDM5Fjs.setMinGasPrice.call(void 0, client, args),
|
521
|
+
setNextBlockBaseFeePerGas: (args) => _chunkG7FFDM5Fjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
|
522
|
+
setNextBlockTimestamp: (args) => _chunkG7FFDM5Fjs.setNextBlockTimestamp.call(void 0, client, args),
|
523
|
+
setNonce: (args) => _chunkG7FFDM5Fjs.setNonce.call(void 0, client, args),
|
524
|
+
setRpcUrl: (args) => _chunkG7FFDM5Fjs.setRpcUrl.call(void 0, client, args),
|
525
|
+
setStorageAt: (args) => _chunkG7FFDM5Fjs.setStorageAt.call(void 0, client, args),
|
526
|
+
snapshot: () => _chunkG7FFDM5Fjs.snapshot.call(void 0, client),
|
527
|
+
stopImpersonatingAccount: (args) => _chunkG7FFDM5Fjs.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
|
-
getAddresses: () =>
|
535
|
-
getChainId: () =>
|
536
|
-
getPermissions: () =>
|
537
|
-
requestAddresses: () =>
|
538
|
-
requestPermissions: (args) =>
|
539
|
-
sendTransaction: (args) =>
|
540
|
-
signMessage: (args) =>
|
541
|
-
switchChain: (args) =>
|
542
|
-
watchAsset: (args) =>
|
543
|
-
writeContract: (args) =>
|
532
|
+
addChain: (args) => _chunkG7FFDM5Fjs.addChain.call(void 0, client, args),
|
533
|
+
deployContract: (args) => _chunkG7FFDM5Fjs.deployContract.call(void 0, client, args),
|
534
|
+
getAddresses: () => _chunkG7FFDM5Fjs.getAddresses.call(void 0, client),
|
535
|
+
getChainId: () => _chunkG7FFDM5Fjs.getChainId.call(void 0, client),
|
536
|
+
getPermissions: () => _chunkG7FFDM5Fjs.getPermissions.call(void 0, client),
|
537
|
+
requestAddresses: () => _chunkG7FFDM5Fjs.requestAddresses.call(void 0, client),
|
538
|
+
requestPermissions: (args) => _chunkG7FFDM5Fjs.requestPermissions.call(void 0, client, args),
|
539
|
+
sendTransaction: (args) => _chunkG7FFDM5Fjs.sendTransaction.call(void 0, client, args),
|
540
|
+
signMessage: (args) => _chunkG7FFDM5Fjs.signMessage.call(void 0, client, args),
|
541
|
+
switchChain: (args) => _chunkG7FFDM5Fjs.switchChain.call(void 0, client, args),
|
542
|
+
watchAsset: (args) => _chunkG7FFDM5Fjs.watchAsset.call(void 0, client, args),
|
543
|
+
writeContract: (args) => _chunkG7FFDM5Fjs.writeContract.call(void 0, client, args)
|
544
544
|
});
|
545
545
|
|
546
546
|
// src/clients/createPublicClient.ts
|
@@ -776,5 +776,5 @@ function createWalletClient({
|
|
776
776
|
|
777
777
|
|
778
778
|
|
779
|
-
exports.AbiConstructorNotFoundError = _chunkR5D7QBNZjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkR5D7QBNZjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkR5D7QBNZjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkR5D7QBNZjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkR5D7QBNZjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkR5D7QBNZjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkR5D7QBNZjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkR5D7QBNZjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkR5D7QBNZjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkR5D7QBNZjs.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunkR5D7QBNZjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkR5D7QBNZjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkR5D7QBNZjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkR5D7QBNZjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkR5D7QBNZjs.BaseError; exports.BlockNotFoundError = _chunkR5D7QBNZjs.BlockNotFoundError; exports.CallExecutionError = _chunkR5D7QBNZjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkR5D7QBNZjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkR5D7QBNZjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkR5D7QBNZjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkR5D7QBNZjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkR5D7QBNZjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkR5D7QBNZjs.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunkR5D7QBNZjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkR5D7QBNZjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkR5D7QBNZjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkR5D7QBNZjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkR5D7QBNZjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkR5D7QBNZjs.HttpRequestError; exports.InsufficientFundsError = _chunkR5D7QBNZjs.InsufficientFundsError; exports.InternalRpcError = _chunkR5D7QBNZjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkR5D7QBNZjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkR5D7QBNZjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkR5D7QBNZjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkR5D7QBNZjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkR5D7QBNZjs.InvalidAddressError; exports.InvalidArrayError = _chunkR5D7QBNZjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkR5D7QBNZjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkR5D7QBNZjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkR5D7QBNZjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkR5D7QBNZjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkR5D7QBNZjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkR5D7QBNZjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkR5D7QBNZjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkR5D7QBNZjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkR5D7QBNZjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkR5D7QBNZjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkR5D7QBNZjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkR5D7QBNZjs.NonceMaxValueError; exports.NonceTooHighError = _chunkR5D7QBNZjs.NonceTooHighError; exports.NonceTooLowError = _chunkR5D7QBNZjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkR5D7QBNZjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkR5D7QBNZjs.ParseRpcError; exports.RawContractError = _chunkR5D7QBNZjs.RawContractError; exports.RequestError = _chunkR5D7QBNZjs.RequestError; exports.ResourceNotFoundRpcError = _chunkR5D7QBNZjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkR5D7QBNZjs.ResourceUnavailableRpcError; exports.RpcError = _chunkR5D7QBNZjs.RpcError; exports.RpcRequestError = _chunkR5D7QBNZjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkR5D7QBNZjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkR5D7QBNZjs.SwitchChainError; exports.TimeoutError = _chunkR5D7QBNZjs.TimeoutError; exports.TipAboveFeeCapError = _chunkR5D7QBNZjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkR5D7QBNZjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkR5D7QBNZjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkR5D7QBNZjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkR5D7QBNZjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkR5D7QBNZjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkR5D7QBNZjs.UnknownNodeError; exports.UnknownRpcError = _chunkR5D7QBNZjs.UnknownRpcError; exports.UrlRequiredError = _chunkR5D7QBNZjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkR5D7QBNZjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkR5D7QBNZjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkR5D7QBNZjs.WebSocketRequestError; exports.boolToBytes = _chunkR5D7QBNZjs.boolToBytes; exports.boolToHex = _chunkR5D7QBNZjs.boolToHex; exports.bytesToBigint = _chunkR5D7QBNZjs.bytesToBigint; exports.bytesToBool = _chunkR5D7QBNZjs.bytesToBool; exports.bytesToHex = _chunkR5D7QBNZjs.bytesToHex; exports.bytesToNumber = _chunkR5D7QBNZjs.bytesToNumber; exports.bytesToString = _chunkR5D7QBNZjs.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkR5D7QBNZjs.decodeAbiParameters; exports.decodeErrorResult = _chunkR5D7QBNZjs.decodeErrorResult; exports.decodeEventLog = _chunkR5D7QBNZjs.decodeEventLog; exports.decodeFunctionData = _chunkR5D7QBNZjs.decodeFunctionData; exports.decodeFunctionResult = _chunkR5D7QBNZjs.decodeFunctionResult; exports.defineBlock = _chunkR5D7QBNZjs.defineBlock; exports.defineChain = _chunkR5D7QBNZjs.defineChain; exports.defineTransaction = _chunkR5D7QBNZjs.defineTransaction; exports.defineTransactionReceipt = _chunkR5D7QBNZjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkR5D7QBNZjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkR5D7QBNZjs.encodeAbiParameters; exports.encodeDeployData = _chunkR5D7QBNZjs.encodeDeployData; exports.encodeErrorResult = _chunkR5D7QBNZjs.encodeErrorResult; exports.encodeEventTopics = _chunkR5D7QBNZjs.encodeEventTopics; exports.encodeFunctionData = _chunkR5D7QBNZjs.encodeFunctionData; exports.encodeFunctionResult = _chunkR5D7QBNZjs.encodeFunctionResult; exports.encodePacked = _chunkR5D7QBNZjs.encodePacked; exports.etherUnits = _chunkR5D7QBNZjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkR5D7QBNZjs.formatBlock; exports.formatEther = _chunkR5D7QBNZjs.formatEther; exports.formatGwei = _chunkR5D7QBNZjs.formatGwei; exports.formatTransaction = _chunkR5D7QBNZjs.formatTransaction; exports.formatTransactionRequest = _chunkR5D7QBNZjs.formatTransactionRequest; exports.formatUnits = _chunkR5D7QBNZjs.formatUnits; exports.fromBytes = _chunkR5D7QBNZjs.fromBytes; exports.fromHex = _chunkR5D7QBNZjs.fromHex; exports.fromRlp = _chunkR5D7QBNZjs.fromRlp; exports.getAbiItem = _chunkR5D7QBNZjs.getAbiItem; exports.getAccount = _chunkR5D7QBNZjs.getAccount; exports.getAddress = _chunkR5D7QBNZjs.getAddress; exports.getContractAddress = _chunkR5D7QBNZjs.getContractAddress; exports.getContractError = _chunkR5D7QBNZjs.getContractError; exports.getCreate2Address = _chunkR5D7QBNZjs.getCreate2Address; exports.getCreateAddress = _chunkR5D7QBNZjs.getCreateAddress; exports.getEventSelector = _chunkR5D7QBNZjs.getEventSelector; exports.getFunctionSelector = _chunkR5D7QBNZjs.getFunctionSelector; exports.gweiUnits = _chunkR5D7QBNZjs.gweiUnits; exports.hexToBigInt = _chunkR5D7QBNZjs.hexToBigInt; exports.hexToBool = _chunkR5D7QBNZjs.hexToBool; exports.hexToBytes = _chunkR5D7QBNZjs.hexToBytes; exports.hexToNumber = _chunkR5D7QBNZjs.hexToNumber; exports.hexToString = _chunkR5D7QBNZjs.hexToString; exports.http = http; exports.isAddress = _chunkR5D7QBNZjs.isAddress; exports.isAddressEqual = _chunkR5D7QBNZjs.isAddressEqual; exports.isBytes = _chunkR5D7QBNZjs.isBytes; exports.isHex = _chunkR5D7QBNZjs.isHex; exports.keccak256 = _chunkR5D7QBNZjs.keccak256; exports.labelhash = _chunk75OCRSSBjs.labelhash; exports.multicall3Abi = _chunkR5D7QBNZjs.multicall3Abi; exports.namehash = _chunk75OCRSSBjs.namehash; exports.numberToBytes = _chunkR5D7QBNZjs.numberToBytes; exports.numberToHex = _chunkR5D7QBNZjs.numberToHex; exports.pad = _chunkR5D7QBNZjs.pad; exports.padBytes = _chunkR5D7QBNZjs.padBytes; exports.padHex = _chunkR5D7QBNZjs.padHex; exports.parseAbi = _chunkR5D7QBNZjs.parseAbi; exports.parseAbiItem = _chunkR5D7QBNZjs.parseAbiItem; exports.parseAbiParameter = _chunkR5D7QBNZjs.parseAbiParameter; exports.parseAbiParameters = _chunkR5D7QBNZjs.parseAbiParameters; exports.parseEther = _chunkR5D7QBNZjs.parseEther; exports.parseGwei = _chunkR5D7QBNZjs.parseGwei; exports.parseUnits = _chunkR5D7QBNZjs.parseUnits; exports.size = _chunkR5D7QBNZjs.size; exports.slice = _chunkR5D7QBNZjs.slice; exports.sliceBytes = _chunkR5D7QBNZjs.sliceBytes; exports.sliceHex = _chunkR5D7QBNZjs.sliceHex; exports.stringToBytes = _chunkR5D7QBNZjs.stringToBytes; exports.stringToHex = _chunkR5D7QBNZjs.stringToHex; exports.stringify = _chunkR5D7QBNZjs.stringify; exports.toBytes = _chunkR5D7QBNZjs.toBytes; exports.toHex = _chunkR5D7QBNZjs.toHex; exports.toRlp = _chunkR5D7QBNZjs.toRlp; exports.transactionType = _chunkR5D7QBNZjs.transactionType; exports.trim = _chunkR5D7QBNZjs.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkR5D7QBNZjs.weiUnits;
|
779
|
+
exports.AbiConstructorNotFoundError = _chunkG7FFDM5Fjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkG7FFDM5Fjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkG7FFDM5Fjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkG7FFDM5Fjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkG7FFDM5Fjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkG7FFDM5Fjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkG7FFDM5Fjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkG7FFDM5Fjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkG7FFDM5Fjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkG7FFDM5Fjs.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunkG7FFDM5Fjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkG7FFDM5Fjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkG7FFDM5Fjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkG7FFDM5Fjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkG7FFDM5Fjs.BaseError; exports.BlockNotFoundError = _chunkG7FFDM5Fjs.BlockNotFoundError; exports.CallExecutionError = _chunkG7FFDM5Fjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkG7FFDM5Fjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkG7FFDM5Fjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkG7FFDM5Fjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkG7FFDM5Fjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkG7FFDM5Fjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkG7FFDM5Fjs.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunkG7FFDM5Fjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkG7FFDM5Fjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkG7FFDM5Fjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkG7FFDM5Fjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkG7FFDM5Fjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkG7FFDM5Fjs.HttpRequestError; exports.InsufficientFundsError = _chunkG7FFDM5Fjs.InsufficientFundsError; exports.InternalRpcError = _chunkG7FFDM5Fjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkG7FFDM5Fjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkG7FFDM5Fjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkG7FFDM5Fjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkG7FFDM5Fjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkG7FFDM5Fjs.InvalidAddressError; exports.InvalidArrayError = _chunkG7FFDM5Fjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkG7FFDM5Fjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkG7FFDM5Fjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkG7FFDM5Fjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkG7FFDM5Fjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkG7FFDM5Fjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkG7FFDM5Fjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkG7FFDM5Fjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkG7FFDM5Fjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkG7FFDM5Fjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkG7FFDM5Fjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkG7FFDM5Fjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkG7FFDM5Fjs.NonceMaxValueError; exports.NonceTooHighError = _chunkG7FFDM5Fjs.NonceTooHighError; exports.NonceTooLowError = _chunkG7FFDM5Fjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkG7FFDM5Fjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkG7FFDM5Fjs.ParseRpcError; exports.RawContractError = _chunkG7FFDM5Fjs.RawContractError; exports.RequestError = _chunkG7FFDM5Fjs.RequestError; exports.ResourceNotFoundRpcError = _chunkG7FFDM5Fjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkG7FFDM5Fjs.ResourceUnavailableRpcError; exports.RpcError = _chunkG7FFDM5Fjs.RpcError; exports.RpcRequestError = _chunkG7FFDM5Fjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkG7FFDM5Fjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkG7FFDM5Fjs.SwitchChainError; exports.TimeoutError = _chunkG7FFDM5Fjs.TimeoutError; exports.TipAboveFeeCapError = _chunkG7FFDM5Fjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkG7FFDM5Fjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkG7FFDM5Fjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkG7FFDM5Fjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkG7FFDM5Fjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkG7FFDM5Fjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkG7FFDM5Fjs.UnknownNodeError; exports.UnknownRpcError = _chunkG7FFDM5Fjs.UnknownRpcError; exports.UrlRequiredError = _chunkG7FFDM5Fjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkG7FFDM5Fjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkG7FFDM5Fjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkG7FFDM5Fjs.WebSocketRequestError; exports.boolToBytes = _chunkG7FFDM5Fjs.boolToBytes; exports.boolToHex = _chunkG7FFDM5Fjs.boolToHex; exports.bytesToBigint = _chunkG7FFDM5Fjs.bytesToBigint; exports.bytesToBool = _chunkG7FFDM5Fjs.bytesToBool; exports.bytesToHex = _chunkG7FFDM5Fjs.bytesToHex; exports.bytesToNumber = _chunkG7FFDM5Fjs.bytesToNumber; exports.bytesToString = _chunkG7FFDM5Fjs.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkG7FFDM5Fjs.decodeAbiParameters; exports.decodeErrorResult = _chunkG7FFDM5Fjs.decodeErrorResult; exports.decodeEventLog = _chunkG7FFDM5Fjs.decodeEventLog; exports.decodeFunctionData = _chunkG7FFDM5Fjs.decodeFunctionData; exports.decodeFunctionResult = _chunkG7FFDM5Fjs.decodeFunctionResult; exports.defineBlock = _chunkG7FFDM5Fjs.defineBlock; exports.defineChain = _chunkG7FFDM5Fjs.defineChain; exports.defineTransaction = _chunkG7FFDM5Fjs.defineTransaction; exports.defineTransactionReceipt = _chunkG7FFDM5Fjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkG7FFDM5Fjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkG7FFDM5Fjs.encodeAbiParameters; exports.encodeDeployData = _chunkG7FFDM5Fjs.encodeDeployData; exports.encodeErrorResult = _chunkG7FFDM5Fjs.encodeErrorResult; exports.encodeEventTopics = _chunkG7FFDM5Fjs.encodeEventTopics; exports.encodeFunctionData = _chunkG7FFDM5Fjs.encodeFunctionData; exports.encodeFunctionResult = _chunkG7FFDM5Fjs.encodeFunctionResult; exports.encodePacked = _chunkG7FFDM5Fjs.encodePacked; exports.etherUnits = _chunkG7FFDM5Fjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkG7FFDM5Fjs.formatBlock; exports.formatEther = _chunkG7FFDM5Fjs.formatEther; exports.formatGwei = _chunkG7FFDM5Fjs.formatGwei; exports.formatTransaction = _chunkG7FFDM5Fjs.formatTransaction; exports.formatTransactionRequest = _chunkG7FFDM5Fjs.formatTransactionRequest; exports.formatUnits = _chunkG7FFDM5Fjs.formatUnits; exports.fromBytes = _chunkG7FFDM5Fjs.fromBytes; exports.fromHex = _chunkG7FFDM5Fjs.fromHex; exports.fromRlp = _chunkG7FFDM5Fjs.fromRlp; exports.getAbiItem = _chunkG7FFDM5Fjs.getAbiItem; exports.getAccount = _chunkG7FFDM5Fjs.getAccount; exports.getAddress = _chunkG7FFDM5Fjs.getAddress; exports.getContractAddress = _chunkG7FFDM5Fjs.getContractAddress; exports.getContractError = _chunkG7FFDM5Fjs.getContractError; exports.getCreate2Address = _chunkG7FFDM5Fjs.getCreate2Address; exports.getCreateAddress = _chunkG7FFDM5Fjs.getCreateAddress; exports.getEventSelector = _chunkG7FFDM5Fjs.getEventSelector; exports.getFunctionSelector = _chunkG7FFDM5Fjs.getFunctionSelector; exports.gweiUnits = _chunkG7FFDM5Fjs.gweiUnits; exports.hexToBigInt = _chunkG7FFDM5Fjs.hexToBigInt; exports.hexToBool = _chunkG7FFDM5Fjs.hexToBool; exports.hexToBytes = _chunkG7FFDM5Fjs.hexToBytes; exports.hexToNumber = _chunkG7FFDM5Fjs.hexToNumber; exports.hexToString = _chunkG7FFDM5Fjs.hexToString; exports.http = http; exports.isAddress = _chunkG7FFDM5Fjs.isAddress; exports.isAddressEqual = _chunkG7FFDM5Fjs.isAddressEqual; exports.isBytes = _chunkG7FFDM5Fjs.isBytes; exports.isHex = _chunkG7FFDM5Fjs.isHex; exports.keccak256 = _chunkG7FFDM5Fjs.keccak256; exports.labelhash = _chunkTLVPRARRjs.labelhash; exports.multicall3Abi = _chunkG7FFDM5Fjs.multicall3Abi; exports.namehash = _chunkTLVPRARRjs.namehash; exports.numberToBytes = _chunkG7FFDM5Fjs.numberToBytes; exports.numberToHex = _chunkG7FFDM5Fjs.numberToHex; exports.pad = _chunkG7FFDM5Fjs.pad; exports.padBytes = _chunkG7FFDM5Fjs.padBytes; exports.padHex = _chunkG7FFDM5Fjs.padHex; exports.parseAbi = _chunkG7FFDM5Fjs.parseAbi; exports.parseAbiItem = _chunkG7FFDM5Fjs.parseAbiItem; exports.parseAbiParameter = _chunkG7FFDM5Fjs.parseAbiParameter; exports.parseAbiParameters = _chunkG7FFDM5Fjs.parseAbiParameters; exports.parseEther = _chunkG7FFDM5Fjs.parseEther; exports.parseGwei = _chunkG7FFDM5Fjs.parseGwei; exports.parseUnits = _chunkG7FFDM5Fjs.parseUnits; exports.size = _chunkG7FFDM5Fjs.size; exports.slice = _chunkG7FFDM5Fjs.slice; exports.sliceBytes = _chunkG7FFDM5Fjs.sliceBytes; exports.sliceHex = _chunkG7FFDM5Fjs.sliceHex; exports.stringToBytes = _chunkG7FFDM5Fjs.stringToBytes; exports.stringToHex = _chunkG7FFDM5Fjs.stringToHex; exports.stringify = _chunkG7FFDM5Fjs.stringify; exports.toBytes = _chunkG7FFDM5Fjs.toBytes; exports.toHex = _chunkG7FFDM5Fjs.toHex; exports.toRlp = _chunkG7FFDM5Fjs.toRlp; exports.transactionType = _chunkG7FFDM5Fjs.transactionType; exports.trim = _chunkG7FFDM5Fjs.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkG7FFDM5Fjs.weiUnits;
|
780
780
|
//# 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-IT4VFQ2I.mjs";
|
7
7
|
import {
|
8
8
|
AbiConstructorNotFoundError,
|
9
9
|
AbiConstructorParamsNotFoundError,
|
@@ -234,7 +234,7 @@ import {
|
|
234
234
|
watchPendingTransactions,
|
235
235
|
weiUnits,
|
236
236
|
writeContract
|
237
|
-
} from "./chunk-
|
237
|
+
} from "./chunk-7NY73N4K.mjs";
|
238
238
|
|
239
239
|
// src/clients/transports/createTransport.ts
|
240
240
|
function createTransport({
|
@@ -109,7 +109,7 @@ declare function numberToHex(value_: number | bigint, opts?: NumberToHexOpts$1):
|
|
109
109
|
/**
|
110
110
|
* @description Encodes a UTF-8 string into a hex string
|
111
111
|
*/
|
112
|
-
declare function stringToHex(
|
112
|
+
declare function stringToHex(value_: string): Hex;
|
113
113
|
|
114
114
|
/** @description Encodes a UTF-8 string, hex value, bigint, number or boolean to a byte array. */
|
115
115
|
declare function toBytes(value: string | bigint | number | boolean | Hex): ByteArray;
|
package/dist/public.js
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
var
|
29
|
+
var _chunkG7FFDM5Fjs = require('./chunk-G7FFDM5F.js');
|
30
30
|
|
31
31
|
|
32
32
|
|
@@ -55,5 +55,5 @@ var _chunkR5D7QBNZjs = require('./chunk-R5D7QBNZ.js');
|
|
55
55
|
|
56
56
|
|
57
57
|
|
58
|
-
exports.call =
|
58
|
+
exports.call = _chunkG7FFDM5Fjs.call; exports.createBlockFilter = _chunkG7FFDM5Fjs.createBlockFilter; exports.createEventFilter = _chunkG7FFDM5Fjs.createEventFilter; exports.createPendingTransactionFilter = _chunkG7FFDM5Fjs.createPendingTransactionFilter; exports.estimateGas = _chunkG7FFDM5Fjs.estimateGas; exports.getBalance = _chunkG7FFDM5Fjs.getBalance; exports.getBlock = _chunkG7FFDM5Fjs.getBlock; exports.getBlockNumber = _chunkG7FFDM5Fjs.getBlockNumber; exports.getBlockNumberCache = _chunkG7FFDM5Fjs.getBlockNumberCache; exports.getBlockTransactionCount = _chunkG7FFDM5Fjs.getBlockTransactionCount; exports.getBytecode = _chunkG7FFDM5Fjs.getBytecode; exports.getChainId = _chunkG7FFDM5Fjs.getChainId; exports.getFeeHistory = _chunkG7FFDM5Fjs.getFeeHistory; exports.getFilterChanges = _chunkG7FFDM5Fjs.getFilterChanges; exports.getFilterLogs = _chunkG7FFDM5Fjs.getFilterLogs; exports.getGasPrice = _chunkG7FFDM5Fjs.getGasPrice; exports.getLogs = _chunkG7FFDM5Fjs.getLogs; exports.getTransaction = _chunkG7FFDM5Fjs.getTransaction; exports.getTransactionConfirmations = _chunkG7FFDM5Fjs.getTransactionConfirmations; exports.getTransactionCount = _chunkG7FFDM5Fjs.getTransactionCount; exports.getTransactionReceipt = _chunkG7FFDM5Fjs.getTransactionReceipt; exports.uninstallFilter = _chunkG7FFDM5Fjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkG7FFDM5Fjs.waitForTransactionReceipt; exports.watchBlockNumber = _chunkG7FFDM5Fjs.watchBlockNumber; exports.watchBlocks = _chunkG7FFDM5Fjs.watchBlocks; exports.watchEvent = _chunkG7FFDM5Fjs.watchEvent; exports.watchPendingTransactions = _chunkG7FFDM5Fjs.watchPendingTransactions;
|
59
59
|
//# sourceMappingURL=public.js.map
|