viem 0.1.5 → 0.1.7
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-MOUDBLFI.mjs → chunk-5YM5CAWB.mjs} +17 -3
- package/dist/chunk-5YM5CAWB.mjs.map +1 -0
- package/dist/{chunk-WW4QO23M.js → chunk-CVKYFX2W.js} +17 -3
- package/dist/chunk-CVKYFX2W.js.map +1 -0
- package/dist/{chunk-DEVNY3L7.js → chunk-JA5TVU7G.js} +21 -21
- package/dist/{chunk-PDAHLHX3.mjs → chunk-VCNJ6RWU.mjs} +2 -2
- 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.js +89 -89
- package/dist/index.mjs +2 -2
- 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.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.js +2 -2
- package/dist/wallet.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-MOUDBLFI.mjs.map +0 -1
- package/dist/chunk-WW4QO23M.js.map +0 -1
- /package/dist/{chunk-DEVNY3L7.js.map → chunk-JA5TVU7G.js.map} +0 -0
- /package/dist/{chunk-PDAHLHX3.mjs.map → chunk-VCNJ6RWU.mjs.map} +0 -0
@@ -11,27 +11,27 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
var
|
14
|
+
var _chunkCVKYFX2Wjs = require('./chunk-CVKYFX2W.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 _chunkCVKYFX2Wjs.bytesToHex.call(void 0, result);
|
21
|
+
return _chunkCVKYFX2Wjs.keccak256.call(void 0, _chunkCVKYFX2Wjs.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 _chunkCVKYFX2Wjs.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 = _chunkCVKYFX2Wjs.keccak256.call(void 0, _chunkCVKYFX2Wjs.stringToBytes.call(void 0, labels[i]), "bytes");
|
32
|
+
result = _chunkCVKYFX2Wjs.keccak256.call(void 0, _chunkCVKYFX2Wjs.concat.call(void 0, [result, hashed]), "bytes");
|
33
33
|
}
|
34
|
-
return
|
34
|
+
return _chunkCVKYFX2Wjs.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 _chunkCVKYFX2Wjs.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 = _chunkCVKYFX2Wjs.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, _chunkCVKYFX2Wjs.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, _chunkCVKYFX2Wjs.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 _chunkCVKYFX2Wjs.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
|
+
_chunkCVKYFX2Wjs.toHex.call(void 0, packetToBytes(name)),
|
109
|
+
_chunkCVKYFX2Wjs.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 _chunkCVKYFX2Wjs.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, _chunkCVKYFX2Wjs.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, _chunkCVKYFX2Wjs.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 _chunkCVKYFX2Wjs.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: [_chunkCVKYFX2Wjs.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 _chunkCVKYFX2Wjs.ContractFunctionExecutionError && error.cause.reason === _chunkCVKYFX2Wjs.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-JA5TVU7G.js.map
|
@@ -11,7 +11,7 @@ import {
|
|
11
11
|
stringToBytes,
|
12
12
|
toBytes,
|
13
13
|
toHex
|
14
|
-
} from "./chunk-
|
14
|
+
} from "./chunk-5YM5CAWB.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-VCNJ6RWU.mjs.map
|
package/dist/contract.js
CHANGED
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
var
|
26
|
+
var _chunkCVKYFX2Wjs = require('./chunk-CVKYFX2W.js');
|
27
27
|
|
28
28
|
|
29
29
|
|
@@ -49,5 +49,5 @@ var _chunkWW4QO23Mjs = require('./chunk-WW4QO23M.js');
|
|
49
49
|
|
50
50
|
|
51
51
|
|
52
|
-
exports.createContractEventFilter =
|
52
|
+
exports.createContractEventFilter = _chunkCVKYFX2Wjs.createContractEventFilter; exports.decodeAbiParameters = _chunkCVKYFX2Wjs.decodeAbiParameters; exports.decodeErrorResult = _chunkCVKYFX2Wjs.decodeErrorResult; exports.decodeEventLog = _chunkCVKYFX2Wjs.decodeEventLog; exports.decodeFunctionData = _chunkCVKYFX2Wjs.decodeFunctionData; exports.decodeFunctionResult = _chunkCVKYFX2Wjs.decodeFunctionResult; exports.deployContract = _chunkCVKYFX2Wjs.deployContract; exports.encodeAbiParameters = _chunkCVKYFX2Wjs.encodeAbiParameters; exports.encodeDeployData = _chunkCVKYFX2Wjs.encodeDeployData; exports.encodeErrorResult = _chunkCVKYFX2Wjs.encodeErrorResult; exports.encodeEventTopics = _chunkCVKYFX2Wjs.encodeEventTopics; exports.encodeFunctionData = _chunkCVKYFX2Wjs.encodeFunctionData; exports.encodeFunctionResult = _chunkCVKYFX2Wjs.encodeFunctionResult; exports.estimateContractGas = _chunkCVKYFX2Wjs.estimateContractGas; exports.formatAbiItem = _chunkCVKYFX2Wjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkCVKYFX2Wjs.formatAbiItemWithArgs; exports.getAbiItem = _chunkCVKYFX2Wjs.getAbiItem; exports.getBytecode = _chunkCVKYFX2Wjs.getBytecode; exports.getStorageAt = _chunkCVKYFX2Wjs.getStorageAt; exports.multicall = _chunkCVKYFX2Wjs.multicall; exports.readContract = _chunkCVKYFX2Wjs.readContract; exports.simulateContract = _chunkCVKYFX2Wjs.simulateContract; exports.watchContractEvent = _chunkCVKYFX2Wjs.watchContractEvent; exports.writeContract = _chunkCVKYFX2Wjs.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 _chunkJA5TVU7Gjs = require('./chunk-JA5TVU7G.js');
|
7
|
+
require('./chunk-CVKYFX2W.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 = _chunkJA5TVU7Gjs.getEnsAddress; exports.getEnsName = _chunkJA5TVU7Gjs.getEnsName; exports.labelhash = _chunkJA5TVU7Gjs.labelhash; exports.namehash = _chunkJA5TVU7Gjs.namehash; exports.normalize = normalize;
|
21
21
|
//# sourceMappingURL=ens.js.map
|
package/dist/ens.mjs
CHANGED
package/dist/index.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
6
|
+
var _chunkJA5TVU7Gjs = require('./chunk-JA5TVU7G.js');
|
7
7
|
|
8
8
|
|
9
9
|
|
@@ -235,7 +235,7 @@ var _chunkDEVNY3L7js = require('./chunk-DEVNY3L7.js');
|
|
235
235
|
|
236
236
|
|
237
237
|
|
238
|
-
var
|
238
|
+
var _chunkCVKYFX2Wjs = require('./chunk-CVKYFX2W.js');
|
239
239
|
|
240
240
|
// src/clients/transports/createTransport.ts
|
241
241
|
function createTransport({
|
@@ -249,7 +249,7 @@ function createTransport({
|
|
249
249
|
}, value) {
|
250
250
|
return {
|
251
251
|
config: { key, name, request, retryCount, retryDelay, timeout, type },
|
252
|
-
request:
|
252
|
+
request: _chunkCVKYFX2Wjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
|
253
253
|
value
|
254
254
|
};
|
255
255
|
}
|
@@ -283,7 +283,7 @@ function fallback(transports, config = {}) {
|
|
283
283
|
params
|
284
284
|
});
|
285
285
|
} catch (err) {
|
286
|
-
if (
|
286
|
+
if (_chunkCVKYFX2Wjs.isDeterministicError.call(void 0, err))
|
287
287
|
throw err;
|
288
288
|
if (i === transports.length - 1)
|
289
289
|
throw err;
|
@@ -317,13 +317,13 @@ function http(url, config = {}) {
|
|
317
317
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
318
318
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
|
319
319
|
if (!url_)
|
320
|
-
throw new (0,
|
320
|
+
throw new (0, _chunkCVKYFX2Wjs.UrlRequiredError)();
|
321
321
|
return createTransport(
|
322
322
|
{
|
323
323
|
key,
|
324
324
|
name,
|
325
325
|
async request({ method, params }) {
|
326
|
-
const { result } = await
|
326
|
+
const { result } = await _chunkCVKYFX2Wjs.rpc.http(url_, {
|
327
327
|
body: {
|
328
328
|
method,
|
329
329
|
params
|
@@ -357,14 +357,14 @@ function webSocket(url, config = {}) {
|
|
357
357
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
358
358
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
|
359
359
|
if (!url_)
|
360
|
-
throw new (0,
|
360
|
+
throw new (0, _chunkCVKYFX2Wjs.UrlRequiredError)();
|
361
361
|
return createTransport(
|
362
362
|
{
|
363
363
|
key,
|
364
364
|
name,
|
365
365
|
async request({ method, params }) {
|
366
|
-
const socket = await
|
367
|
-
const { result } = await
|
366
|
+
const socket = await _chunkCVKYFX2Wjs.getSocket.call(void 0, url_);
|
367
|
+
const { result } = await _chunkCVKYFX2Wjs.rpc.webSocketAsync(socket, {
|
368
368
|
body: { method, params },
|
369
369
|
timeout
|
370
370
|
});
|
@@ -377,12 +377,12 @@ function webSocket(url, config = {}) {
|
|
377
377
|
},
|
378
378
|
{
|
379
379
|
getSocket() {
|
380
|
-
return
|
380
|
+
return _chunkCVKYFX2Wjs.getSocket.call(void 0, url_);
|
381
381
|
},
|
382
382
|
async subscribe({ params, onData, onError }) {
|
383
|
-
const socket = await
|
383
|
+
const socket = await _chunkCVKYFX2Wjs.getSocket.call(void 0, url_);
|
384
384
|
const { result: subscriptionId } = await new Promise(
|
385
|
-
(resolve, reject) =>
|
385
|
+
(resolve, reject) => _chunkCVKYFX2Wjs.rpc.webSocket(socket, {
|
386
386
|
body: {
|
387
387
|
method: "eth_subscribe",
|
388
388
|
params
|
@@ -404,7 +404,7 @@ function webSocket(url, config = {}) {
|
|
404
404
|
subscriptionId,
|
405
405
|
async unsubscribe() {
|
406
406
|
return new Promise(
|
407
|
-
(resolve, reject) =>
|
407
|
+
(resolve, reject) => _chunkCVKYFX2Wjs.rpc.webSocket(socket, {
|
408
408
|
body: {
|
409
409
|
method: "eth_unsubscribe",
|
410
410
|
params: [subscriptionId]
|
@@ -460,89 +460,89 @@ function createClient({
|
|
460
460
|
|
461
461
|
// src/clients/decorators/public.ts
|
462
462
|
var publicActions = (client) => ({
|
463
|
-
call: (args) =>
|
464
|
-
createBlockFilter: () =>
|
465
|
-
createContractEventFilter: (args) =>
|
466
|
-
createEventFilter: (args) =>
|
467
|
-
createPendingTransactionFilter: () =>
|
468
|
-
estimateContractGas: (args) =>
|
469
|
-
estimateGas: (args) =>
|
470
|
-
getBalance: (args) =>
|
471
|
-
getBlock: (args) =>
|
472
|
-
getBlockNumber: (args) =>
|
473
|
-
getBlockTransactionCount: (args) =>
|
474
|
-
getBytecode: (args) =>
|
475
|
-
getChainId: () =>
|
476
|
-
getEnsAddress: (args) =>
|
477
|
-
getEnsName: (args) =>
|
478
|
-
getFeeHistory: (args) =>
|
479
|
-
getFilterChanges: (args) =>
|
480
|
-
getFilterLogs: (args) =>
|
481
|
-
getGasPrice: () =>
|
482
|
-
getLogs: (args) =>
|
483
|
-
getStorageAt: (args) =>
|
484
|
-
getTransaction: (args) =>
|
485
|
-
getTransactionConfirmations: (args) =>
|
486
|
-
getTransactionCount: (args) =>
|
487
|
-
getTransactionReceipt: (args) =>
|
488
|
-
multicall: (args) =>
|
489
|
-
readContract: (args) =>
|
490
|
-
simulateContract: (args) =>
|
491
|
-
uninstallFilter: (args) =>
|
492
|
-
waitForTransactionReceipt: (args) =>
|
493
|
-
watchBlocks: (args) =>
|
494
|
-
watchBlockNumber: (args) =>
|
495
|
-
watchContractEvent: (args) =>
|
496
|
-
watchEvent: (args) =>
|
497
|
-
watchPendingTransactions: (args) =>
|
463
|
+
call: (args) => _chunkCVKYFX2Wjs.call.call(void 0, client, args),
|
464
|
+
createBlockFilter: () => _chunkCVKYFX2Wjs.createBlockFilter.call(void 0, client),
|
465
|
+
createContractEventFilter: (args) => _chunkCVKYFX2Wjs.createContractEventFilter.call(void 0, client, args),
|
466
|
+
createEventFilter: (args) => _chunkCVKYFX2Wjs.createEventFilter.call(void 0, client, args),
|
467
|
+
createPendingTransactionFilter: () => _chunkCVKYFX2Wjs.createPendingTransactionFilter.call(void 0, client),
|
468
|
+
estimateContractGas: (args) => _chunkCVKYFX2Wjs.estimateContractGas.call(void 0, client, args),
|
469
|
+
estimateGas: (args) => _chunkCVKYFX2Wjs.estimateGas.call(void 0, client, args),
|
470
|
+
getBalance: (args) => _chunkCVKYFX2Wjs.getBalance.call(void 0, client, args),
|
471
|
+
getBlock: (args) => _chunkCVKYFX2Wjs.getBlock.call(void 0, client, args),
|
472
|
+
getBlockNumber: (args) => _chunkCVKYFX2Wjs.getBlockNumber.call(void 0, client, args),
|
473
|
+
getBlockTransactionCount: (args) => _chunkCVKYFX2Wjs.getBlockTransactionCount.call(void 0, client, args),
|
474
|
+
getBytecode: (args) => _chunkCVKYFX2Wjs.getBytecode.call(void 0, client, args),
|
475
|
+
getChainId: () => _chunkCVKYFX2Wjs.getChainId.call(void 0, client),
|
476
|
+
getEnsAddress: (args) => _chunkJA5TVU7Gjs.getEnsAddress.call(void 0, client, args),
|
477
|
+
getEnsName: (args) => _chunkJA5TVU7Gjs.getEnsName.call(void 0, client, args),
|
478
|
+
getFeeHistory: (args) => _chunkCVKYFX2Wjs.getFeeHistory.call(void 0, client, args),
|
479
|
+
getFilterChanges: (args) => _chunkCVKYFX2Wjs.getFilterChanges.call(void 0, client, args),
|
480
|
+
getFilterLogs: (args) => _chunkCVKYFX2Wjs.getFilterLogs.call(void 0, client, args),
|
481
|
+
getGasPrice: () => _chunkCVKYFX2Wjs.getGasPrice.call(void 0, client),
|
482
|
+
getLogs: (args) => _chunkCVKYFX2Wjs.getLogs.call(void 0, client, args),
|
483
|
+
getStorageAt: (args) => _chunkCVKYFX2Wjs.getStorageAt.call(void 0, client, args),
|
484
|
+
getTransaction: (args) => _chunkCVKYFX2Wjs.getTransaction.call(void 0, client, args),
|
485
|
+
getTransactionConfirmations: (args) => _chunkCVKYFX2Wjs.getTransactionConfirmations.call(void 0, client, args),
|
486
|
+
getTransactionCount: (args) => _chunkCVKYFX2Wjs.getTransactionCount.call(void 0, client, args),
|
487
|
+
getTransactionReceipt: (args) => _chunkCVKYFX2Wjs.getTransactionReceipt.call(void 0, client, args),
|
488
|
+
multicall: (args) => _chunkCVKYFX2Wjs.multicall.call(void 0, client, args),
|
489
|
+
readContract: (args) => _chunkCVKYFX2Wjs.readContract.call(void 0, client, args),
|
490
|
+
simulateContract: (args) => _chunkCVKYFX2Wjs.simulateContract.call(void 0, client, args),
|
491
|
+
uninstallFilter: (args) => _chunkCVKYFX2Wjs.uninstallFilter.call(void 0, client, args),
|
492
|
+
waitForTransactionReceipt: (args) => _chunkCVKYFX2Wjs.waitForTransactionReceipt.call(void 0, client, args),
|
493
|
+
watchBlocks: (args) => _chunkCVKYFX2Wjs.watchBlocks.call(void 0, client, args),
|
494
|
+
watchBlockNumber: (args) => _chunkCVKYFX2Wjs.watchBlockNumber.call(void 0, client, args),
|
495
|
+
watchContractEvent: (args) => _chunkCVKYFX2Wjs.watchContractEvent.call(void 0, client, args),
|
496
|
+
watchEvent: (args) => _chunkCVKYFX2Wjs.watchEvent.call(void 0, client, args),
|
497
|
+
watchPendingTransactions: (args) => _chunkCVKYFX2Wjs.watchPendingTransactions.call(void 0, client, args)
|
498
498
|
});
|
499
499
|
|
500
500
|
// src/clients/decorators/test.ts
|
501
501
|
var testActions = (client) => ({
|
502
|
-
dropTransaction: (args) =>
|
503
|
-
getAutomine: () =>
|
504
|
-
getTxpoolContent: () =>
|
505
|
-
getTxpoolStatus: () =>
|
506
|
-
impersonateAccount: (args) =>
|
507
|
-
increaseTime: (args) =>
|
508
|
-
inspectTxpool: () =>
|
509
|
-
mine: (args) =>
|
510
|
-
removeBlockTimestampInterval: () =>
|
511
|
-
reset: (args) =>
|
512
|
-
revert: (args) =>
|
513
|
-
sendUnsignedTransaction: (args) =>
|
514
|
-
setAutomine: (args) =>
|
515
|
-
setBalance: (args) =>
|
516
|
-
setBlockGasLimit: (args) =>
|
517
|
-
setBlockTimestampInterval: (args) =>
|
518
|
-
setCode: (args) =>
|
519
|
-
setCoinbase: (args) =>
|
520
|
-
setIntervalMining: (args) =>
|
521
|
-
setLoggingEnabled: (args) =>
|
522
|
-
setMinGasPrice: (args) =>
|
523
|
-
setNextBlockBaseFeePerGas: (args) =>
|
524
|
-
setNextBlockTimestamp: (args) =>
|
525
|
-
setNonce: (args) =>
|
526
|
-
setRpcUrl: (args) =>
|
527
|
-
setStorageAt: (args) =>
|
528
|
-
snapshot: () =>
|
529
|
-
stopImpersonatingAccount: (args) =>
|
502
|
+
dropTransaction: (args) => _chunkCVKYFX2Wjs.dropTransaction.call(void 0, client, args),
|
503
|
+
getAutomine: () => _chunkCVKYFX2Wjs.getAutomine.call(void 0, client),
|
504
|
+
getTxpoolContent: () => _chunkCVKYFX2Wjs.getTxpoolContent.call(void 0, client),
|
505
|
+
getTxpoolStatus: () => _chunkCVKYFX2Wjs.getTxpoolStatus.call(void 0, client),
|
506
|
+
impersonateAccount: (args) => _chunkCVKYFX2Wjs.impersonateAccount.call(void 0, client, args),
|
507
|
+
increaseTime: (args) => _chunkCVKYFX2Wjs.increaseTime.call(void 0, client, args),
|
508
|
+
inspectTxpool: () => _chunkCVKYFX2Wjs.inspectTxpool.call(void 0, client),
|
509
|
+
mine: (args) => _chunkCVKYFX2Wjs.mine.call(void 0, client, args),
|
510
|
+
removeBlockTimestampInterval: () => _chunkCVKYFX2Wjs.removeBlockTimestampInterval.call(void 0, client),
|
511
|
+
reset: (args) => _chunkCVKYFX2Wjs.reset.call(void 0, client, args),
|
512
|
+
revert: (args) => _chunkCVKYFX2Wjs.revert.call(void 0, client, args),
|
513
|
+
sendUnsignedTransaction: (args) => _chunkCVKYFX2Wjs.sendUnsignedTransaction.call(void 0, client, args),
|
514
|
+
setAutomine: (args) => _chunkCVKYFX2Wjs.setAutomine.call(void 0, client, args),
|
515
|
+
setBalance: (args) => _chunkCVKYFX2Wjs.setBalance.call(void 0, client, args),
|
516
|
+
setBlockGasLimit: (args) => _chunkCVKYFX2Wjs.setBlockGasLimit.call(void 0, client, args),
|
517
|
+
setBlockTimestampInterval: (args) => _chunkCVKYFX2Wjs.setBlockTimestampInterval.call(void 0, client, args),
|
518
|
+
setCode: (args) => _chunkCVKYFX2Wjs.setCode.call(void 0, client, args),
|
519
|
+
setCoinbase: (args) => _chunkCVKYFX2Wjs.setCoinbase.call(void 0, client, args),
|
520
|
+
setIntervalMining: (args) => _chunkCVKYFX2Wjs.setIntervalMining.call(void 0, client, args),
|
521
|
+
setLoggingEnabled: (args) => _chunkCVKYFX2Wjs.setLoggingEnabled.call(void 0, client, args),
|
522
|
+
setMinGasPrice: (args) => _chunkCVKYFX2Wjs.setMinGasPrice.call(void 0, client, args),
|
523
|
+
setNextBlockBaseFeePerGas: (args) => _chunkCVKYFX2Wjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
|
524
|
+
setNextBlockTimestamp: (args) => _chunkCVKYFX2Wjs.setNextBlockTimestamp.call(void 0, client, args),
|
525
|
+
setNonce: (args) => _chunkCVKYFX2Wjs.setNonce.call(void 0, client, args),
|
526
|
+
setRpcUrl: (args) => _chunkCVKYFX2Wjs.setRpcUrl.call(void 0, client, args),
|
527
|
+
setStorageAt: (args) => _chunkCVKYFX2Wjs.setStorageAt.call(void 0, client, args),
|
528
|
+
snapshot: () => _chunkCVKYFX2Wjs.snapshot.call(void 0, client),
|
529
|
+
stopImpersonatingAccount: (args) => _chunkCVKYFX2Wjs.stopImpersonatingAccount.call(void 0, client, args)
|
530
530
|
});
|
531
531
|
|
532
532
|
// src/clients/decorators/wallet.ts
|
533
533
|
var walletActions = (client) => ({
|
534
|
-
addChain: (args) =>
|
535
|
-
deployContract: (args) =>
|
536
|
-
getAddresses: () =>
|
537
|
-
getChainId: () =>
|
538
|
-
getPermissions: () =>
|
539
|
-
requestAddresses: () =>
|
540
|
-
requestPermissions: (args) =>
|
541
|
-
sendTransaction: (args) =>
|
542
|
-
signMessage: (args) =>
|
543
|
-
switchChain: (args) =>
|
544
|
-
watchAsset: (args) =>
|
545
|
-
writeContract: (args) =>
|
534
|
+
addChain: (args) => _chunkCVKYFX2Wjs.addChain.call(void 0, client, args),
|
535
|
+
deployContract: (args) => _chunkCVKYFX2Wjs.deployContract.call(void 0, client, args),
|
536
|
+
getAddresses: () => _chunkCVKYFX2Wjs.getAddresses.call(void 0, client),
|
537
|
+
getChainId: () => _chunkCVKYFX2Wjs.getChainId.call(void 0, client),
|
538
|
+
getPermissions: () => _chunkCVKYFX2Wjs.getPermissions.call(void 0, client),
|
539
|
+
requestAddresses: () => _chunkCVKYFX2Wjs.requestAddresses.call(void 0, client),
|
540
|
+
requestPermissions: (args) => _chunkCVKYFX2Wjs.requestPermissions.call(void 0, client, args),
|
541
|
+
sendTransaction: (args) => _chunkCVKYFX2Wjs.sendTransaction.call(void 0, client, args),
|
542
|
+
signMessage: (args) => _chunkCVKYFX2Wjs.signMessage.call(void 0, client, args),
|
543
|
+
switchChain: (args) => _chunkCVKYFX2Wjs.switchChain.call(void 0, client, args),
|
544
|
+
watchAsset: (args) => _chunkCVKYFX2Wjs.watchAsset.call(void 0, client, args),
|
545
|
+
writeContract: (args) => _chunkCVKYFX2Wjs.writeContract.call(void 0, client, args)
|
546
546
|
});
|
547
547
|
|
548
548
|
// src/clients/createPublicClient.ts
|
@@ -778,5 +778,5 @@ function createWalletClient({
|
|
778
778
|
|
779
779
|
|
780
780
|
|
781
|
-
exports.AbiConstructorNotFoundError = _chunkWW4QO23Mjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkWW4QO23Mjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkWW4QO23Mjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkWW4QO23Mjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkWW4QO23Mjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkWW4QO23Mjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkWW4QO23Mjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkWW4QO23Mjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkWW4QO23Mjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkWW4QO23Mjs.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunkWW4QO23Mjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkWW4QO23Mjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkWW4QO23Mjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkWW4QO23Mjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkWW4QO23Mjs.BaseError; exports.BlockNotFoundError = _chunkWW4QO23Mjs.BlockNotFoundError; exports.CallExecutionError = _chunkWW4QO23Mjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkWW4QO23Mjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkWW4QO23Mjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkWW4QO23Mjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkWW4QO23Mjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkWW4QO23Mjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkWW4QO23Mjs.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunkWW4QO23Mjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkWW4QO23Mjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkWW4QO23Mjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkWW4QO23Mjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkWW4QO23Mjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkWW4QO23Mjs.HttpRequestError; exports.InsufficientFundsError = _chunkWW4QO23Mjs.InsufficientFundsError; exports.InternalRpcError = _chunkWW4QO23Mjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkWW4QO23Mjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkWW4QO23Mjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkWW4QO23Mjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkWW4QO23Mjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkWW4QO23Mjs.InvalidAddressError; exports.InvalidArrayError = _chunkWW4QO23Mjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkWW4QO23Mjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkWW4QO23Mjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkWW4QO23Mjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkWW4QO23Mjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkWW4QO23Mjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkWW4QO23Mjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkWW4QO23Mjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkWW4QO23Mjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkWW4QO23Mjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkWW4QO23Mjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkWW4QO23Mjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkWW4QO23Mjs.NonceMaxValueError; exports.NonceTooHighError = _chunkWW4QO23Mjs.NonceTooHighError; exports.NonceTooLowError = _chunkWW4QO23Mjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkWW4QO23Mjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkWW4QO23Mjs.ParseRpcError; exports.RawContractError = _chunkWW4QO23Mjs.RawContractError; exports.RequestError = _chunkWW4QO23Mjs.RequestError; exports.ResourceNotFoundRpcError = _chunkWW4QO23Mjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkWW4QO23Mjs.ResourceUnavailableRpcError; exports.RpcError = _chunkWW4QO23Mjs.RpcError; exports.RpcRequestError = _chunkWW4QO23Mjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkWW4QO23Mjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkWW4QO23Mjs.SwitchChainError; exports.TimeoutError = _chunkWW4QO23Mjs.TimeoutError; exports.TipAboveFeeCapError = _chunkWW4QO23Mjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkWW4QO23Mjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkWW4QO23Mjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkWW4QO23Mjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkWW4QO23Mjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkWW4QO23Mjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkWW4QO23Mjs.UnknownNodeError; exports.UnknownRpcError = _chunkWW4QO23Mjs.UnknownRpcError; exports.UrlRequiredError = _chunkWW4QO23Mjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkWW4QO23Mjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkWW4QO23Mjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkWW4QO23Mjs.WebSocketRequestError; exports.boolToBytes = _chunkWW4QO23Mjs.boolToBytes; exports.boolToHex = _chunkWW4QO23Mjs.boolToHex; exports.bytesToBigint = _chunkWW4QO23Mjs.bytesToBigint; exports.bytesToBool = _chunkWW4QO23Mjs.bytesToBool; exports.bytesToHex = _chunkWW4QO23Mjs.bytesToHex; exports.bytesToNumber = _chunkWW4QO23Mjs.bytesToNumber; exports.bytesToString = _chunkWW4QO23Mjs.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkWW4QO23Mjs.decodeAbiParameters; exports.decodeErrorResult = _chunkWW4QO23Mjs.decodeErrorResult; exports.decodeEventLog = _chunkWW4QO23Mjs.decodeEventLog; exports.decodeFunctionData = _chunkWW4QO23Mjs.decodeFunctionData; exports.decodeFunctionResult = _chunkWW4QO23Mjs.decodeFunctionResult; exports.defineBlock = _chunkWW4QO23Mjs.defineBlock; exports.defineChain = _chunkWW4QO23Mjs.defineChain; exports.defineTransaction = _chunkWW4QO23Mjs.defineTransaction; exports.defineTransactionReceipt = _chunkWW4QO23Mjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkWW4QO23Mjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkWW4QO23Mjs.encodeAbiParameters; exports.encodeDeployData = _chunkWW4QO23Mjs.encodeDeployData; exports.encodeErrorResult = _chunkWW4QO23Mjs.encodeErrorResult; exports.encodeEventTopics = _chunkWW4QO23Mjs.encodeEventTopics; exports.encodeFunctionData = _chunkWW4QO23Mjs.encodeFunctionData; exports.encodeFunctionResult = _chunkWW4QO23Mjs.encodeFunctionResult; exports.encodePacked = _chunkWW4QO23Mjs.encodePacked; exports.etherUnits = _chunkWW4QO23Mjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkWW4QO23Mjs.formatBlock; exports.formatEther = _chunkWW4QO23Mjs.formatEther; exports.formatGwei = _chunkWW4QO23Mjs.formatGwei; exports.formatTransaction = _chunkWW4QO23Mjs.formatTransaction; exports.formatTransactionRequest = _chunkWW4QO23Mjs.formatTransactionRequest; exports.formatUnits = _chunkWW4QO23Mjs.formatUnits; exports.fromBytes = _chunkWW4QO23Mjs.fromBytes; exports.fromHex = _chunkWW4QO23Mjs.fromHex; exports.fromRlp = _chunkWW4QO23Mjs.fromRlp; exports.getAbiItem = _chunkWW4QO23Mjs.getAbiItem; exports.getAccount = _chunkWW4QO23Mjs.getAccount; exports.getAddress = _chunkWW4QO23Mjs.getAddress; exports.getContractAddress = _chunkWW4QO23Mjs.getContractAddress; exports.getContractError = _chunkWW4QO23Mjs.getContractError; exports.getCreate2Address = _chunkWW4QO23Mjs.getCreate2Address; exports.getCreateAddress = _chunkWW4QO23Mjs.getCreateAddress; exports.getEventSelector = _chunkWW4QO23Mjs.getEventSelector; exports.getFunctionSelector = _chunkWW4QO23Mjs.getFunctionSelector; exports.gweiUnits = _chunkWW4QO23Mjs.gweiUnits; exports.hexToBigInt = _chunkWW4QO23Mjs.hexToBigInt; exports.hexToBool = _chunkWW4QO23Mjs.hexToBool; exports.hexToBytes = _chunkWW4QO23Mjs.hexToBytes; exports.hexToNumber = _chunkWW4QO23Mjs.hexToNumber; exports.hexToString = _chunkWW4QO23Mjs.hexToString; exports.http = http; exports.isAddress = _chunkWW4QO23Mjs.isAddress; exports.isAddressEqual = _chunkWW4QO23Mjs.isAddressEqual; exports.isBytes = _chunkWW4QO23Mjs.isBytes; exports.isHex = _chunkWW4QO23Mjs.isHex; exports.keccak256 = _chunkWW4QO23Mjs.keccak256; exports.labelhash = _chunkDEVNY3L7js.labelhash; exports.multicall3Abi = _chunkWW4QO23Mjs.multicall3Abi; exports.namehash = _chunkDEVNY3L7js.namehash; exports.numberToBytes = _chunkWW4QO23Mjs.numberToBytes; exports.numberToHex = _chunkWW4QO23Mjs.numberToHex; exports.pad = _chunkWW4QO23Mjs.pad; exports.padBytes = _chunkWW4QO23Mjs.padBytes; exports.padHex = _chunkWW4QO23Mjs.padHex; exports.parseAbi = _chunkWW4QO23Mjs.parseAbi; exports.parseAbiItem = _chunkWW4QO23Mjs.parseAbiItem; exports.parseAbiParameter = _chunkWW4QO23Mjs.parseAbiParameter; exports.parseAbiParameters = _chunkWW4QO23Mjs.parseAbiParameters; exports.parseEther = _chunkWW4QO23Mjs.parseEther; exports.parseGwei = _chunkWW4QO23Mjs.parseGwei; exports.parseUnits = _chunkWW4QO23Mjs.parseUnits; exports.size = _chunkWW4QO23Mjs.size; exports.slice = _chunkWW4QO23Mjs.slice; exports.sliceBytes = _chunkWW4QO23Mjs.sliceBytes; exports.sliceHex = _chunkWW4QO23Mjs.sliceHex; exports.stringToBytes = _chunkWW4QO23Mjs.stringToBytes; exports.stringToHex = _chunkWW4QO23Mjs.stringToHex; exports.stringify = _chunkWW4QO23Mjs.stringify; exports.toBytes = _chunkWW4QO23Mjs.toBytes; exports.toHex = _chunkWW4QO23Mjs.toHex; exports.toRlp = _chunkWW4QO23Mjs.toRlp; exports.transactionType = _chunkWW4QO23Mjs.transactionType; exports.trim = _chunkWW4QO23Mjs.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkWW4QO23Mjs.weiUnits;
|
781
|
+
exports.AbiConstructorNotFoundError = _chunkCVKYFX2Wjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkCVKYFX2Wjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkCVKYFX2Wjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkCVKYFX2Wjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkCVKYFX2Wjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkCVKYFX2Wjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkCVKYFX2Wjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkCVKYFX2Wjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkCVKYFX2Wjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkCVKYFX2Wjs.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunkCVKYFX2Wjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkCVKYFX2Wjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkCVKYFX2Wjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkCVKYFX2Wjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkCVKYFX2Wjs.BaseError; exports.BlockNotFoundError = _chunkCVKYFX2Wjs.BlockNotFoundError; exports.CallExecutionError = _chunkCVKYFX2Wjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkCVKYFX2Wjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkCVKYFX2Wjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkCVKYFX2Wjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkCVKYFX2Wjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkCVKYFX2Wjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkCVKYFX2Wjs.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunkCVKYFX2Wjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkCVKYFX2Wjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkCVKYFX2Wjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkCVKYFX2Wjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkCVKYFX2Wjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkCVKYFX2Wjs.HttpRequestError; exports.InsufficientFundsError = _chunkCVKYFX2Wjs.InsufficientFundsError; exports.InternalRpcError = _chunkCVKYFX2Wjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkCVKYFX2Wjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkCVKYFX2Wjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkCVKYFX2Wjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkCVKYFX2Wjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkCVKYFX2Wjs.InvalidAddressError; exports.InvalidArrayError = _chunkCVKYFX2Wjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkCVKYFX2Wjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkCVKYFX2Wjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkCVKYFX2Wjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkCVKYFX2Wjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkCVKYFX2Wjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkCVKYFX2Wjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkCVKYFX2Wjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkCVKYFX2Wjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkCVKYFX2Wjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkCVKYFX2Wjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkCVKYFX2Wjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkCVKYFX2Wjs.NonceMaxValueError; exports.NonceTooHighError = _chunkCVKYFX2Wjs.NonceTooHighError; exports.NonceTooLowError = _chunkCVKYFX2Wjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkCVKYFX2Wjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkCVKYFX2Wjs.ParseRpcError; exports.RawContractError = _chunkCVKYFX2Wjs.RawContractError; exports.RequestError = _chunkCVKYFX2Wjs.RequestError; exports.ResourceNotFoundRpcError = _chunkCVKYFX2Wjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkCVKYFX2Wjs.ResourceUnavailableRpcError; exports.RpcError = _chunkCVKYFX2Wjs.RpcError; exports.RpcRequestError = _chunkCVKYFX2Wjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkCVKYFX2Wjs.SizeExceedsPaddingSizeError; exports.SwitchChainError = _chunkCVKYFX2Wjs.SwitchChainError; exports.TimeoutError = _chunkCVKYFX2Wjs.TimeoutError; exports.TipAboveFeeCapError = _chunkCVKYFX2Wjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkCVKYFX2Wjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkCVKYFX2Wjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkCVKYFX2Wjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkCVKYFX2Wjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkCVKYFX2Wjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkCVKYFX2Wjs.UnknownNodeError; exports.UnknownRpcError = _chunkCVKYFX2Wjs.UnknownRpcError; exports.UrlRequiredError = _chunkCVKYFX2Wjs.UrlRequiredError; exports.UserRejectedRequestError = _chunkCVKYFX2Wjs.UserRejectedRequestError; exports.WaitForTransactionReceiptTimeoutError = _chunkCVKYFX2Wjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkCVKYFX2Wjs.WebSocketRequestError; exports.boolToBytes = _chunkCVKYFX2Wjs.boolToBytes; exports.boolToHex = _chunkCVKYFX2Wjs.boolToHex; exports.bytesToBigint = _chunkCVKYFX2Wjs.bytesToBigint; exports.bytesToBool = _chunkCVKYFX2Wjs.bytesToBool; exports.bytesToHex = _chunkCVKYFX2Wjs.bytesToHex; exports.bytesToNumber = _chunkCVKYFX2Wjs.bytesToNumber; exports.bytesToString = _chunkCVKYFX2Wjs.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbiParameters = _chunkCVKYFX2Wjs.decodeAbiParameters; exports.decodeErrorResult = _chunkCVKYFX2Wjs.decodeErrorResult; exports.decodeEventLog = _chunkCVKYFX2Wjs.decodeEventLog; exports.decodeFunctionData = _chunkCVKYFX2Wjs.decodeFunctionData; exports.decodeFunctionResult = _chunkCVKYFX2Wjs.decodeFunctionResult; exports.defineBlock = _chunkCVKYFX2Wjs.defineBlock; exports.defineChain = _chunkCVKYFX2Wjs.defineChain; exports.defineTransaction = _chunkCVKYFX2Wjs.defineTransaction; exports.defineTransactionReceipt = _chunkCVKYFX2Wjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkCVKYFX2Wjs.defineTransactionRequest; exports.encodeAbiParameters = _chunkCVKYFX2Wjs.encodeAbiParameters; exports.encodeDeployData = _chunkCVKYFX2Wjs.encodeDeployData; exports.encodeErrorResult = _chunkCVKYFX2Wjs.encodeErrorResult; exports.encodeEventTopics = _chunkCVKYFX2Wjs.encodeEventTopics; exports.encodeFunctionData = _chunkCVKYFX2Wjs.encodeFunctionData; exports.encodeFunctionResult = _chunkCVKYFX2Wjs.encodeFunctionResult; exports.encodePacked = _chunkCVKYFX2Wjs.encodePacked; exports.etherUnits = _chunkCVKYFX2Wjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkCVKYFX2Wjs.formatBlock; exports.formatEther = _chunkCVKYFX2Wjs.formatEther; exports.formatGwei = _chunkCVKYFX2Wjs.formatGwei; exports.formatTransaction = _chunkCVKYFX2Wjs.formatTransaction; exports.formatTransactionRequest = _chunkCVKYFX2Wjs.formatTransactionRequest; exports.formatUnits = _chunkCVKYFX2Wjs.formatUnits; exports.fromBytes = _chunkCVKYFX2Wjs.fromBytes; exports.fromHex = _chunkCVKYFX2Wjs.fromHex; exports.fromRlp = _chunkCVKYFX2Wjs.fromRlp; exports.getAbiItem = _chunkCVKYFX2Wjs.getAbiItem; exports.getAccount = _chunkCVKYFX2Wjs.getAccount; exports.getAddress = _chunkCVKYFX2Wjs.getAddress; exports.getContractAddress = _chunkCVKYFX2Wjs.getContractAddress; exports.getContractError = _chunkCVKYFX2Wjs.getContractError; exports.getCreate2Address = _chunkCVKYFX2Wjs.getCreate2Address; exports.getCreateAddress = _chunkCVKYFX2Wjs.getCreateAddress; exports.getEventSelector = _chunkCVKYFX2Wjs.getEventSelector; exports.getFunctionSelector = _chunkCVKYFX2Wjs.getFunctionSelector; exports.gweiUnits = _chunkCVKYFX2Wjs.gweiUnits; exports.hexToBigInt = _chunkCVKYFX2Wjs.hexToBigInt; exports.hexToBool = _chunkCVKYFX2Wjs.hexToBool; exports.hexToBytes = _chunkCVKYFX2Wjs.hexToBytes; exports.hexToNumber = _chunkCVKYFX2Wjs.hexToNumber; exports.hexToString = _chunkCVKYFX2Wjs.hexToString; exports.http = http; exports.isAddress = _chunkCVKYFX2Wjs.isAddress; exports.isAddressEqual = _chunkCVKYFX2Wjs.isAddressEqual; exports.isBytes = _chunkCVKYFX2Wjs.isBytes; exports.isHex = _chunkCVKYFX2Wjs.isHex; exports.keccak256 = _chunkCVKYFX2Wjs.keccak256; exports.labelhash = _chunkJA5TVU7Gjs.labelhash; exports.multicall3Abi = _chunkCVKYFX2Wjs.multicall3Abi; exports.namehash = _chunkJA5TVU7Gjs.namehash; exports.numberToBytes = _chunkCVKYFX2Wjs.numberToBytes; exports.numberToHex = _chunkCVKYFX2Wjs.numberToHex; exports.pad = _chunkCVKYFX2Wjs.pad; exports.padBytes = _chunkCVKYFX2Wjs.padBytes; exports.padHex = _chunkCVKYFX2Wjs.padHex; exports.parseAbi = _chunkCVKYFX2Wjs.parseAbi; exports.parseAbiItem = _chunkCVKYFX2Wjs.parseAbiItem; exports.parseAbiParameter = _chunkCVKYFX2Wjs.parseAbiParameter; exports.parseAbiParameters = _chunkCVKYFX2Wjs.parseAbiParameters; exports.parseEther = _chunkCVKYFX2Wjs.parseEther; exports.parseGwei = _chunkCVKYFX2Wjs.parseGwei; exports.parseUnits = _chunkCVKYFX2Wjs.parseUnits; exports.size = _chunkCVKYFX2Wjs.size; exports.slice = _chunkCVKYFX2Wjs.slice; exports.sliceBytes = _chunkCVKYFX2Wjs.sliceBytes; exports.sliceHex = _chunkCVKYFX2Wjs.sliceHex; exports.stringToBytes = _chunkCVKYFX2Wjs.stringToBytes; exports.stringToHex = _chunkCVKYFX2Wjs.stringToHex; exports.stringify = _chunkCVKYFX2Wjs.stringify; exports.toBytes = _chunkCVKYFX2Wjs.toBytes; exports.toHex = _chunkCVKYFX2Wjs.toHex; exports.toRlp = _chunkCVKYFX2Wjs.toRlp; exports.transactionType = _chunkCVKYFX2Wjs.transactionType; exports.trim = _chunkCVKYFX2Wjs.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkCVKYFX2Wjs.weiUnits;
|
782
782
|
//# 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-VCNJ6RWU.mjs";
|
7
7
|
import {
|
8
8
|
AbiConstructorNotFoundError,
|
9
9
|
AbiConstructorParamsNotFoundError,
|
@@ -235,7 +235,7 @@ import {
|
|
235
235
|
watchPendingTransactions,
|
236
236
|
weiUnits,
|
237
237
|
writeContract
|
238
|
-
} from "./chunk-
|
238
|
+
} from "./chunk-5YM5CAWB.mjs";
|
239
239
|
|
240
240
|
// src/clients/transports/createTransport.ts
|
241
241
|
function createTransport({
|
package/dist/public.js
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
var
|
29
|
+
var _chunkCVKYFX2Wjs = require('./chunk-CVKYFX2W.js');
|
30
30
|
|
31
31
|
|
32
32
|
|
@@ -55,5 +55,5 @@ var _chunkWW4QO23Mjs = require('./chunk-WW4QO23M.js');
|
|
55
55
|
|
56
56
|
|
57
57
|
|
58
|
-
exports.call =
|
58
|
+
exports.call = _chunkCVKYFX2Wjs.call; exports.createBlockFilter = _chunkCVKYFX2Wjs.createBlockFilter; exports.createEventFilter = _chunkCVKYFX2Wjs.createEventFilter; exports.createPendingTransactionFilter = _chunkCVKYFX2Wjs.createPendingTransactionFilter; exports.estimateGas = _chunkCVKYFX2Wjs.estimateGas; exports.getBalance = _chunkCVKYFX2Wjs.getBalance; exports.getBlock = _chunkCVKYFX2Wjs.getBlock; exports.getBlockNumber = _chunkCVKYFX2Wjs.getBlockNumber; exports.getBlockNumberCache = _chunkCVKYFX2Wjs.getBlockNumberCache; exports.getBlockTransactionCount = _chunkCVKYFX2Wjs.getBlockTransactionCount; exports.getBytecode = _chunkCVKYFX2Wjs.getBytecode; exports.getChainId = _chunkCVKYFX2Wjs.getChainId; exports.getFeeHistory = _chunkCVKYFX2Wjs.getFeeHistory; exports.getFilterChanges = _chunkCVKYFX2Wjs.getFilterChanges; exports.getFilterLogs = _chunkCVKYFX2Wjs.getFilterLogs; exports.getGasPrice = _chunkCVKYFX2Wjs.getGasPrice; exports.getLogs = _chunkCVKYFX2Wjs.getLogs; exports.getTransaction = _chunkCVKYFX2Wjs.getTransaction; exports.getTransactionConfirmations = _chunkCVKYFX2Wjs.getTransactionConfirmations; exports.getTransactionCount = _chunkCVKYFX2Wjs.getTransactionCount; exports.getTransactionReceipt = _chunkCVKYFX2Wjs.getTransactionReceipt; exports.uninstallFilter = _chunkCVKYFX2Wjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkCVKYFX2Wjs.waitForTransactionReceipt; exports.watchBlockNumber = _chunkCVKYFX2Wjs.watchBlockNumber; exports.watchBlocks = _chunkCVKYFX2Wjs.watchBlocks; exports.watchEvent = _chunkCVKYFX2Wjs.watchEvent; exports.watchPendingTransactions = _chunkCVKYFX2Wjs.watchPendingTransactions;
|
59
59
|
//# sourceMappingURL=public.js.map
|
package/dist/public.mjs
CHANGED
package/dist/test.js
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
|
30
|
-
var
|
30
|
+
var _chunkCVKYFX2Wjs = require('./chunk-CVKYFX2W.js');
|
31
31
|
|
32
32
|
|
33
33
|
|
@@ -57,5 +57,5 @@ var _chunkWW4QO23Mjs = require('./chunk-WW4QO23M.js');
|
|
57
57
|
|
58
58
|
|
59
59
|
|
60
|
-
exports.dropTransaction =
|
60
|
+
exports.dropTransaction = _chunkCVKYFX2Wjs.dropTransaction; exports.getAutomine = _chunkCVKYFX2Wjs.getAutomine; exports.getTxpoolContent = _chunkCVKYFX2Wjs.getTxpoolContent; exports.getTxpoolStatus = _chunkCVKYFX2Wjs.getTxpoolStatus; exports.impersonateAccount = _chunkCVKYFX2Wjs.impersonateAccount; exports.increaseTime = _chunkCVKYFX2Wjs.increaseTime; exports.inspectTxpool = _chunkCVKYFX2Wjs.inspectTxpool; exports.mine = _chunkCVKYFX2Wjs.mine; exports.removeBlockTimestampInterval = _chunkCVKYFX2Wjs.removeBlockTimestampInterval; exports.reset = _chunkCVKYFX2Wjs.reset; exports.revert = _chunkCVKYFX2Wjs.revert; exports.sendUnsignedTransaction = _chunkCVKYFX2Wjs.sendUnsignedTransaction; exports.setAutomine = _chunkCVKYFX2Wjs.setAutomine; exports.setBalance = _chunkCVKYFX2Wjs.setBalance; exports.setBlockGasLimit = _chunkCVKYFX2Wjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkCVKYFX2Wjs.setBlockTimestampInterval; exports.setCode = _chunkCVKYFX2Wjs.setCode; exports.setCoinbase = _chunkCVKYFX2Wjs.setCoinbase; exports.setIntervalMining = _chunkCVKYFX2Wjs.setIntervalMining; exports.setLoggingEnabled = _chunkCVKYFX2Wjs.setLoggingEnabled; exports.setMinGasPrice = _chunkCVKYFX2Wjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkCVKYFX2Wjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkCVKYFX2Wjs.setNextBlockTimestamp; exports.setNonce = _chunkCVKYFX2Wjs.setNonce; exports.setRpcUrl = _chunkCVKYFX2Wjs.setRpcUrl; exports.setStorageAt = _chunkCVKYFX2Wjs.setStorageAt; exports.snapshot = _chunkCVKYFX2Wjs.snapshot; exports.stopImpersonatingAccount = _chunkCVKYFX2Wjs.stopImpersonatingAccount;
|
61
61
|
//# sourceMappingURL=test.js.map
|