viem 0.0.1-alpha.28 → 0.0.1-alpha.29
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/chains.js +46 -46
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-7GQB4KE5.js → chunk-4VQKZYE2.js} +72 -72
- package/dist/{chunk-7GQB4KE5.js.map → chunk-4VQKZYE2.js.map} +0 -0
- package/dist/{chunk-JJ4FDDDW.js → chunk-CKYH337I.js} +14 -14
- package/dist/{chunk-JJ4FDDDW.js.map → chunk-CKYH337I.js.map} +0 -0
- package/dist/{chunk-NYWN5V47.js → chunk-EYORBAD4.js} +37 -37
- package/dist/chunk-EYORBAD4.js.map +1 -0
- package/dist/{chunk-PVBEFQET.mjs → chunk-HPUQL3IM.mjs} +2 -2
- package/dist/{chunk-PVBEFQET.mjs.map → chunk-HPUQL3IM.mjs.map} +0 -0
- package/dist/{chunk-FPEKYEVU.js → chunk-OJ7H3CQF.js} +14 -14
- package/dist/{chunk-FPEKYEVU.js.map → chunk-OJ7H3CQF.js.map} +0 -0
- package/dist/{chunk-GRILGOX5.mjs → chunk-Q67VUTW3.mjs} +3 -3
- package/dist/{chunk-GRILGOX5.mjs.map → chunk-Q67VUTW3.mjs.map} +0 -0
- package/dist/{chunk-TDOKFOQ5.mjs → chunk-RR4MGS6O.mjs} +19 -19
- package/dist/chunk-RR4MGS6O.mjs.map +1 -0
- package/dist/{chunk-NKO23GXR.mjs → chunk-S252SZEL.mjs} +2 -2
- package/dist/{chunk-NKO23GXR.mjs.map → chunk-S252SZEL.mjs.map} +0 -0
- package/dist/{chunk-67DKKHAV.js → chunk-SEIPUKZE.js} +22 -22
- package/dist/{chunk-67DKKHAV.js.map → chunk-SEIPUKZE.js.map} +0 -0
- package/dist/{chunk-RCJJFKTU.mjs → chunk-TQC7KZ24.mjs} +2 -2
- package/dist/{chunk-RCJJFKTU.mjs.map → chunk-TQC7KZ24.mjs.map} +0 -0
- package/dist/contract.js +4 -4
- package/dist/contract.mjs +3 -3
- package/dist/ens.js +4 -4
- package/dist/ens.mjs +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +90 -90
- package/dist/index.mjs +5 -5
- package/dist/{parseGwei-07adffee.d.ts → parseGwei-4d0b0d73.d.ts} +4 -4
- package/dist/public.js +3 -3
- package/dist/public.mjs +2 -2
- package/dist/test.js +3 -3
- package/dist/test.mjs +2 -2
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/dist/wallet.js +3 -3
- package/dist/wallet.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-NYWN5V47.js.map +0 -1
- package/dist/chunk-TDOKFOQ5.mjs.map +0 -1
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
var
|
13
|
+
var _chunkEYORBAD4js = require('./chunk-EYORBAD4.js');
|
14
14
|
|
15
15
|
// src/actions/wallet/addChain.ts
|
16
16
|
async function addChain(client, { chain }) {
|
@@ -19,7 +19,7 @@ async function addChain(client, { chain }) {
|
|
19
19
|
method: "wallet_addEthereumChain",
|
20
20
|
params: [
|
21
21
|
{
|
22
|
-
chainId:
|
22
|
+
chainId: _chunkEYORBAD4js.numberToHex.call(void 0, id),
|
23
23
|
chainName: name,
|
24
24
|
nativeCurrency,
|
25
25
|
rpcUrls: rpcUrls.default.http,
|
@@ -32,7 +32,7 @@ async function addChain(client, { chain }) {
|
|
32
32
|
// src/actions/wallet/getAccounts.ts
|
33
33
|
async function getAccounts(client) {
|
34
34
|
const addresses = await client.request({ method: "eth_accounts" });
|
35
|
-
return addresses.map((address) =>
|
35
|
+
return addresses.map((address) => _chunkEYORBAD4js.checksumAddress.call(void 0, address));
|
36
36
|
}
|
37
37
|
|
38
38
|
// src/actions/wallet/getPermissions.ts
|
@@ -44,7 +44,7 @@ async function getPermissions(client) {
|
|
44
44
|
// src/actions/wallet/requestAccounts.ts
|
45
45
|
async function requestAccounts(client) {
|
46
46
|
const addresses = await client.request({ method: "eth_requestAccounts" });
|
47
|
-
return addresses.map((address) =>
|
47
|
+
return addresses.map((address) => _chunkEYORBAD4js.getAddress.call(void 0, address));
|
48
48
|
}
|
49
49
|
|
50
50
|
// src/actions/wallet/requestPermissions.ts
|
@@ -71,9 +71,9 @@ async function sendTransaction(client, {
|
|
71
71
|
...rest
|
72
72
|
}) {
|
73
73
|
if (maxFeePerGas !== void 0 && maxPriorityFeePerGas !== void 0 && maxFeePerGas < maxPriorityFeePerGas)
|
74
|
-
throw new (0,
|
74
|
+
throw new (0, _chunkEYORBAD4js.InvalidGasArgumentsError)();
|
75
75
|
const formatter = _optionalChain([chain, 'optionalAccess', _ => _.formatters, 'optionalAccess', _2 => _2.transactionRequest]);
|
76
|
-
const request_ =
|
76
|
+
const request_ = _chunkEYORBAD4js.format.call(void 0,
|
77
77
|
{
|
78
78
|
from,
|
79
79
|
accessList,
|
@@ -86,10 +86,10 @@ async function sendTransaction(client, {
|
|
86
86
|
to,
|
87
87
|
value,
|
88
88
|
// Pick out extra data that might exist on the chain's transaction request type.
|
89
|
-
...
|
89
|
+
..._chunkEYORBAD4js.extract.call(void 0, rest, { formatter })
|
90
90
|
},
|
91
91
|
{
|
92
|
-
formatter: formatter ||
|
92
|
+
formatter: formatter || _chunkEYORBAD4js.formatTransactionRequest
|
93
93
|
}
|
94
94
|
);
|
95
95
|
const hash = await client.request({
|
@@ -104,7 +104,7 @@ async function signMessage(client, { from, data: data_ }) {
|
|
104
104
|
let data;
|
105
105
|
if (typeof data_ === "string") {
|
106
106
|
if (!data_.startsWith("0x"))
|
107
|
-
throw new (0,
|
107
|
+
throw new (0, _chunkEYORBAD4js.BaseError)(
|
108
108
|
`data ("${data_}") must be a hex value. Encode it first to a hex with the \`toHex\` util.`,
|
109
109
|
{
|
110
110
|
docsPath: "/TODO"
|
@@ -112,7 +112,7 @@ async function signMessage(client, { from, data: data_ }) {
|
|
112
112
|
);
|
113
113
|
data = data_;
|
114
114
|
} else {
|
115
|
-
data =
|
115
|
+
data = _chunkEYORBAD4js.toHex.call(void 0, data_);
|
116
116
|
}
|
117
117
|
const signed = await client.request({
|
118
118
|
method: "personal_sign",
|
@@ -127,7 +127,7 @@ async function switchChain(client, { id }) {
|
|
127
127
|
method: "wallet_switchEthereumChain",
|
128
128
|
params: [
|
129
129
|
{
|
130
|
-
chainId:
|
130
|
+
chainId: _chunkEYORBAD4js.numberToHex.call(void 0, id)
|
131
131
|
}
|
132
132
|
]
|
133
133
|
});
|
@@ -150,7 +150,7 @@ async function writeContract(client, {
|
|
150
150
|
functionName,
|
151
151
|
...request
|
152
152
|
}) {
|
153
|
-
const data =
|
153
|
+
const data = _chunkEYORBAD4js.encodeFunctionData.call(void 0, {
|
154
154
|
abi,
|
155
155
|
args,
|
156
156
|
functionName
|
@@ -165,7 +165,7 @@ async function writeContract(client, {
|
|
165
165
|
|
166
166
|
// src/actions/wallet/deployContract.ts
|
167
167
|
function deployContract(walletClient, { abi, args, bytecode, ...request }) {
|
168
|
-
const calldata =
|
168
|
+
const calldata = _chunkEYORBAD4js.encodeDeployData.call(void 0, {
|
169
169
|
abi,
|
170
170
|
args,
|
171
171
|
bytecode
|
@@ -189,4 +189,4 @@ function deployContract(walletClient, { abi, args, bytecode, ...request }) {
|
|
189
189
|
|
190
190
|
|
191
191
|
exports.addChain = addChain; exports.deployContract = deployContract; exports.getAccounts = getAccounts; exports.getPermissions = getPermissions; exports.requestAccounts = requestAccounts; exports.requestPermissions = requestPermissions; exports.sendTransaction = sendTransaction; exports.signMessage = signMessage; exports.switchChain = switchChain; exports.watchAsset = watchAsset; exports.writeContract = writeContract;
|
192
|
-
//# sourceMappingURL=chunk-
|
192
|
+
//# sourceMappingURL=chunk-CKYH337I.js.map
|
File without changes
|
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
|
|
9
9
|
var package_default = {
|
10
10
|
name: "viem",
|
11
11
|
description: "TypeScript Interface for Ethereum",
|
12
|
-
version: "0.0.1-alpha.
|
12
|
+
version: "0.0.1-alpha.29",
|
13
13
|
scripts: {
|
14
14
|
anvil: "source .env && anvil --fork-url $VITE_ANVIL_FORK_URL --fork-block-number $VITE_ANVIL_BLOCK_NUMBER --block-time $VITE_ANVIL_BLOCK_TIME",
|
15
15
|
bench: "vitest bench --no-threads",
|
@@ -1051,6 +1051,8 @@ function isBytes(value) {
|
|
1051
1051
|
return false;
|
1052
1052
|
if (typeof value !== "object")
|
1053
1053
|
return false;
|
1054
|
+
if (!("BYTES_PER_ELEMENT" in value))
|
1055
|
+
return false;
|
1054
1056
|
return value.BYTES_PER_ELEMENT === 1 && value.constructor.name === "Uint8Array";
|
1055
1057
|
}
|
1056
1058
|
|
@@ -1502,14 +1504,19 @@ var getEventSignature = (event) => hashFunction(event);
|
|
1502
1504
|
// src/utils/hash/getFunctionSignature.ts
|
1503
1505
|
var getFunctionSignature = (fn) => slice(hashFunction(fn), 0, 4);
|
1504
1506
|
|
1505
|
-
// src/utils/address/
|
1507
|
+
// src/utils/address/isAddress.ts
|
1506
1508
|
var addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
1509
|
+
function isAddress(address) {
|
1510
|
+
return addressRegex.test(address);
|
1511
|
+
}
|
1512
|
+
|
1513
|
+
// src/utils/address/getAddress.ts
|
1507
1514
|
function checksumAddress(address_) {
|
1508
1515
|
const hexAddress = address_.substring(2).toLowerCase();
|
1509
1516
|
const hash2 = keccak256(stringToBytes(hexAddress), "bytes");
|
1510
1517
|
let address = hexAddress.split("");
|
1511
1518
|
for (let i = 0; i < 40; i += 2) {
|
1512
|
-
if (
|
1519
|
+
if (hash2[i >> 1] >> 4 >= 8 && address[i]) {
|
1513
1520
|
address[i] = address[i].toUpperCase();
|
1514
1521
|
}
|
1515
1522
|
if ((hash2[i >> 1] & 15) >= 8 && address[i + 1]) {
|
@@ -1519,7 +1526,7 @@ function checksumAddress(address_) {
|
|
1519
1526
|
return `0x${address.join("")}`;
|
1520
1527
|
}
|
1521
1528
|
function getAddress(address) {
|
1522
|
-
if (!
|
1529
|
+
if (!isAddress(address))
|
1523
1530
|
throw new InvalidAddressError({ address });
|
1524
1531
|
return checksumAddress(address);
|
1525
1532
|
}
|
@@ -1554,18 +1561,13 @@ function getCreate2Address(opts) {
|
|
1554
1561
|
);
|
1555
1562
|
}
|
1556
1563
|
|
1557
|
-
// src/utils/address/isAddress.ts
|
1558
|
-
function isAddress(address) {
|
1559
|
-
try {
|
1560
|
-
return Boolean(getAddress(address));
|
1561
|
-
} catch (e) {
|
1562
|
-
return false;
|
1563
|
-
}
|
1564
|
-
}
|
1565
|
-
|
1566
1564
|
// src/utils/address/isAddressEqual.ts
|
1567
1565
|
function isAddressEqual(a, b) {
|
1568
|
-
|
1566
|
+
if (!isAddress(a))
|
1567
|
+
throw new InvalidAddressError({ address: a });
|
1568
|
+
if (!isAddress(b))
|
1569
|
+
throw new InvalidAddressError({ address: b });
|
1570
|
+
return a.toLowerCase() === b.toLowerCase();
|
1569
1571
|
}
|
1570
1572
|
|
1571
1573
|
// src/utils/abi/encodeAbi.ts
|
@@ -1849,7 +1851,7 @@ function decodeArray(data, {
|
|
1849
1851
|
}
|
1850
1852
|
if (hasDynamicChild(param)) {
|
1851
1853
|
const arrayComponents = getArrayComponents(param.type);
|
1852
|
-
const dynamicChild = !_optionalChain([arrayComponents, 'optionalAccess',
|
1854
|
+
const dynamicChild = !_optionalChain([arrayComponents, 'optionalAccess', _15 => _15[0]]);
|
1853
1855
|
let consumed2 = 0;
|
1854
1856
|
let value2 = [];
|
1855
1857
|
for (let i = 0; i < length; ++i) {
|
@@ -1921,7 +1923,7 @@ function decodeTuple(data, { param, position }) {
|
|
1921
1923
|
position: consumed
|
1922
1924
|
});
|
1923
1925
|
consumed += decodedChild.consumed;
|
1924
|
-
value[hasUnnamedChild ? i : _optionalChain([component, 'optionalAccess',
|
1926
|
+
value[hasUnnamedChild ? i : _optionalChain([component, 'optionalAccess', _16 => _16.name])] = decodedChild.value;
|
1925
1927
|
}
|
1926
1928
|
return { consumed: 32, value };
|
1927
1929
|
}
|
@@ -1933,7 +1935,7 @@ function decodeTuple(data, { param, position }) {
|
|
1933
1935
|
position: position + consumed
|
1934
1936
|
});
|
1935
1937
|
consumed += decodedChild.consumed;
|
1936
|
-
value[hasUnnamedChild ? i : _optionalChain([component, 'optionalAccess',
|
1938
|
+
value[hasUnnamedChild ? i : _optionalChain([component, 'optionalAccess', _17 => _17.name])] = decodedChild.value;
|
1937
1939
|
}
|
1938
1940
|
return { consumed, value };
|
1939
1941
|
}
|
@@ -1946,7 +1948,7 @@ function hasDynamicChild(param) {
|
|
1946
1948
|
if (type.endsWith("[]"))
|
1947
1949
|
return true;
|
1948
1950
|
if (type === "tuple")
|
1949
|
-
return _optionalChain([param, 'access',
|
1951
|
+
return _optionalChain([param, 'access', _18 => _18.components, 'optionalAccess', _19 => _19.some, 'call', _20 => _20(hasDynamicChild)]);
|
1950
1952
|
const arrayComponents = getArrayComponents(param.type);
|
1951
1953
|
if (arrayComponents && hasDynamicChild({ ...param, type: arrayComponents[1] }))
|
1952
1954
|
return true;
|
@@ -2012,7 +2014,7 @@ function decodeEventLog({
|
|
2012
2014
|
docsPath: "/docs/contract/decodeEventLog"
|
2013
2015
|
});
|
2014
2016
|
const { name, inputs } = abiItem;
|
2015
|
-
const isUnnamed = _optionalChain([inputs, 'optionalAccess',
|
2017
|
+
const isUnnamed = _optionalChain([inputs, 'optionalAccess', _21 => _21.some, 'call', _22 => _22((x) => !("name" in x && x.name))]);
|
2016
2018
|
let args = isUnnamed ? [] : {};
|
2017
2019
|
for (let i = 0; i < inputs.length; i++) {
|
2018
2020
|
const param = inputs[i];
|
@@ -2222,8 +2224,8 @@ function encodeEventTopics({ abi, eventName, args }) {
|
|
2222
2224
|
const signature = getEventSignature(definition);
|
2223
2225
|
let topics = [];
|
2224
2226
|
if (args && "inputs" in abiItem) {
|
2225
|
-
const args_ = Array.isArray(args) ? args : _nullishCoalesce(_optionalChain([abiItem, 'access',
|
2226
|
-
topics = _nullishCoalesce(_optionalChain([abiItem, 'access',
|
2227
|
+
const args_ = Array.isArray(args) ? args : _nullishCoalesce(_optionalChain([abiItem, 'access', _23 => _23.inputs, 'optionalAccess', _24 => _24.map, 'call', _25 => _25((x) => args[x.name])]), () => ( []));
|
2228
|
+
topics = _nullishCoalesce(_optionalChain([abiItem, 'access', _26 => _26.inputs, 'optionalAccess', _27 => _27.filter, 'call', _28 => _28((param) => "indexed" in param && param.indexed), 'access', _29 => _29.map, 'call', _30 => _30(
|
2227
2229
|
(param, i) => Array.isArray(args_[i]) ? args_[i].map(
|
2228
2230
|
(_, j) => encodeArg({ param, value: args_[i][j] })
|
2229
2231
|
) : args_[i] ? encodeArg({ param, value: args_[i] }) : null
|
@@ -2395,7 +2397,7 @@ function withTimeout(fn, {
|
|
2395
2397
|
}
|
2396
2398
|
}, timeout);
|
2397
2399
|
}
|
2398
|
-
resolve(await fn({ signal: _optionalChain([controller, 'optionalAccess',
|
2400
|
+
resolve(await fn({ signal: _optionalChain([controller, 'optionalAccess', _31 => _31.signal]) }));
|
2399
2401
|
} catch (err) {
|
2400
2402
|
if (err.name === "AbortError")
|
2401
2403
|
reject(errorInstance);
|
@@ -2409,13 +2411,11 @@ function withTimeout(fn, {
|
|
2409
2411
|
|
2410
2412
|
// src/utils/buildRequest.ts
|
2411
2413
|
var isDeterministicError = (error) => {
|
2412
|
-
if (error instanceof UnknownRpcError)
|
2413
|
-
return false;
|
2414
2414
|
if ("code" in error)
|
2415
2415
|
return error.code !== -32603 && error.code !== -32005;
|
2416
2416
|
if (error instanceof HttpRequestError && error.status)
|
2417
2417
|
return error.status !== 408 && error.status !== 413 && error.status !== 429 && error.status !== 500 && error.status !== 502 && error.status !== 503 && error.status !== 504;
|
2418
|
-
return
|
2418
|
+
return false;
|
2419
2419
|
};
|
2420
2420
|
function buildRequest(request, {
|
2421
2421
|
retryDelay = 150,
|
@@ -2459,8 +2459,8 @@ function buildRequest(request, {
|
|
2459
2459
|
{
|
2460
2460
|
delay: ({ count, error }) => {
|
2461
2461
|
if (error && error instanceof HttpRequestError) {
|
2462
|
-
const retryAfter = _optionalChain([error, 'optionalAccess',
|
2463
|
-
if (_optionalChain([retryAfter, 'optionalAccess',
|
2462
|
+
const retryAfter = _optionalChain([error, 'optionalAccess', _32 => _32.headers, 'optionalAccess', _33 => _33.get, 'call', _34 => _34("Retry-After")]);
|
2463
|
+
if (_optionalChain([retryAfter, 'optionalAccess', _35 => _35.match, 'call', _36 => _36(/\d/)]))
|
2464
2464
|
return parseInt(retryAfter) * 1e3;
|
2465
2465
|
}
|
2466
2466
|
return ~~(1 << count) * retryDelay;
|
@@ -2495,7 +2495,7 @@ function defineFormatter({
|
|
2495
2495
|
}
|
2496
2496
|
return {
|
2497
2497
|
...formatted,
|
2498
|
-
..._optionalChain([formatOverride, 'optionalCall',
|
2498
|
+
..._optionalChain([formatOverride, 'optionalCall', _37 => _37(data)])
|
2499
2499
|
};
|
2500
2500
|
};
|
2501
2501
|
}
|
@@ -2535,7 +2535,7 @@ var defineTransaction = defineFormatter({ format: formatTransaction });
|
|
2535
2535
|
|
2536
2536
|
// src/utils/formatters/block.ts
|
2537
2537
|
function formatBlock(block) {
|
2538
|
-
const transactions = _optionalChain([block, 'access',
|
2538
|
+
const transactions = _optionalChain([block, 'access', _38 => _38.transactions, 'optionalAccess', _39 => _39.map, 'call', _40 => _40((transaction) => {
|
2539
2539
|
if (typeof transaction === "string")
|
2540
2540
|
return transaction;
|
2541
2541
|
return formatTransaction(transaction);
|
@@ -2561,7 +2561,7 @@ function extract(value, { formatter }) {
|
|
2561
2561
|
return {};
|
2562
2562
|
const keys = Object.keys(formatter({}));
|
2563
2563
|
return keys.reduce((data, key) => {
|
2564
|
-
if (_optionalChain([value, 'optionalAccess',
|
2564
|
+
if (_optionalChain([value, 'optionalAccess', _41 => _41.hasOwnProperty, 'call', _42 => _42(key)])) {
|
2565
2565
|
;
|
2566
2566
|
data[key] = value[key];
|
2567
2567
|
}
|
@@ -2575,7 +2575,7 @@ function formatFeeHistory(feeHistory) {
|
|
2575
2575
|
baseFeePerGas: feeHistory.baseFeePerGas.map((value) => BigInt(value)),
|
2576
2576
|
gasUsedRatio: feeHistory.gasUsedRatio,
|
2577
2577
|
oldestBlock: BigInt(feeHistory.oldestBlock),
|
2578
|
-
reward: _optionalChain([feeHistory, 'access',
|
2578
|
+
reward: _optionalChain([feeHistory, 'access', _43 => _43.reward, 'optionalAccess', _44 => _44.map, 'call', _45 => _45(
|
2579
2579
|
(reward) => reward.map((value) => BigInt(value))
|
2580
2580
|
)])
|
2581
2581
|
};
|
@@ -2667,7 +2667,7 @@ async function http(url, {
|
|
2667
2667
|
}
|
2668
2668
|
);
|
2669
2669
|
let data;
|
2670
|
-
if (_optionalChain([response, 'access',
|
2670
|
+
if (_optionalChain([response, 'access', _46 => _46.headers, 'access', _47 => _47.get, 'call', _48 => _48("Content-Type"), 'optionalAccess', _49 => _49.startsWith, 'call', _50 => _50("application/json")])) {
|
2671
2671
|
data = await response.json();
|
2672
2672
|
} else {
|
2673
2673
|
data = await response.text();
|
@@ -2759,15 +2759,15 @@ function webSocket(socket, {
|
|
2759
2759
|
if (typeof message.id === "number" && id_ !== message.id)
|
2760
2760
|
return;
|
2761
2761
|
if (message.error) {
|
2762
|
-
_optionalChain([onError, 'optionalCall',
|
2762
|
+
_optionalChain([onError, 'optionalCall', _51 => _51(new RpcError({ body, error: message.error, url: socket.url }))]);
|
2763
2763
|
} else {
|
2764
|
-
_optionalChain([onData, 'optionalCall',
|
2764
|
+
_optionalChain([onData, 'optionalCall', _52 => _52(message)]);
|
2765
2765
|
}
|
2766
2766
|
if (body.method === "eth_subscribe" && typeof message.result === "string") {
|
2767
2767
|
socket.subscriptions.set(message.result, callback);
|
2768
2768
|
}
|
2769
2769
|
if (body.method === "eth_unsubscribe") {
|
2770
|
-
socket.subscriptions.delete(_optionalChain([body, 'access',
|
2770
|
+
socket.subscriptions.delete(_optionalChain([body, 'access', _53 => _53.params, 'optionalAccess', _54 => _54[0]]));
|
2771
2771
|
}
|
2772
2772
|
};
|
2773
2773
|
socket.requests.set(id_, callback);
|
@@ -3023,5 +3023,5 @@ function parseGwei(ether, unit = "wei") {
|
|
3023
3023
|
|
3024
3024
|
|
3025
3025
|
|
3026
|
-
exports.BaseError = BaseError; exports.AbiConstructorNotFoundError = AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = AbiEventNotFoundError; exports.AbiFunctionNotFoundError = AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = AbiFunctionSignatureNotFoundError; exports.InvalidAbiEncodingTypeError = InvalidAbiEncodingTypeError; exports.InvalidAbiDecodingTypeError = InvalidAbiDecodingTypeError; exports.InvalidArrayError = InvalidArrayError; exports.InvalidDefinitionTypeError = InvalidDefinitionTypeError; exports.InvalidAddressError = InvalidAddressError; exports.BlockNotFoundError = BlockNotFoundError; exports.ChainDoesNotSupportContract = ChainDoesNotSupportContract; exports.multicall3Abi = multicall3Abi; exports.panicReasons = panicReasons; exports.ContractFunctionExecutionError = ContractFunctionExecutionError; exports.ContractFunctionRevertedError = ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = ContractFunctionZeroDataError; exports.RawContractError = RawContractError; exports.SizeExceedsPaddingSizeError = SizeExceedsPaddingSizeError; exports.DataLengthTooLongError = DataLengthTooLongError; exports.DataLengthTooShortError = DataLengthTooShortError; exports.InvalidBytesBooleanError = InvalidBytesBooleanError; exports.InvalidHexBooleanError = InvalidHexBooleanError; exports.InvalidHexValueError = InvalidHexValueError; exports.OffsetOutOfBoundsError = OffsetOutOfBoundsError; exports.FilterTypeNotSupportedError = FilterTypeNotSupportedError; exports.RequestError = RequestError; exports.RpcRequestError = RpcRequestError; exports.ParseRpcError = ParseRpcError; exports.InvalidRequestRpcError = InvalidRequestRpcError; exports.MethodNotFoundRpcError = MethodNotFoundRpcError; exports.InvalidParamsRpcError = InvalidParamsRpcError; exports.InternalRpcError = InternalRpcError; exports.InvalidInputRpcError = InvalidInputRpcError; exports.ResourceNotFoundRpcError = ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = ResourceUnavailableRpcError; exports.TransactionRejectedRpcError = TransactionRejectedRpcError; exports.MethodNotSupportedRpcError = MethodNotSupportedRpcError; exports.LimitExceededRpcError = LimitExceededRpcError; exports.JsonRpcVersionUnsupportedError = JsonRpcVersionUnsupportedError; exports.UnknownRpcError = UnknownRpcError; exports.HttpRequestError = HttpRequestError; exports.WebSocketRequestError = WebSocketRequestError; exports.RpcError = RpcError; exports.TimeoutError = TimeoutError; exports.InvalidGasArgumentsError = InvalidGasArgumentsError; exports.TransactionNotFoundError = TransactionNotFoundError; exports.TransactionReceiptNotFoundError = TransactionReceiptNotFoundError; exports.WaitForTransactionReceiptTimeoutError = WaitForTransactionReceiptTimeoutError; exports.UrlRequiredError = UrlRequiredError; exports.concat = concat; exports.isBytes = isBytes; exports.isHex = isHex; exports.pad = pad; exports.padHex = padHex; exports.padBytes = padBytes; exports.trim = trim; exports.size = size; exports.slice = slice; exports.sliceBytes = sliceBytes; exports.sliceHex = sliceHex; exports.boolToHex = boolToHex; exports.bytesToHex = bytesToHex; exports.toHex = toHex; exports.numberToHex = numberToHex; exports.stringToHex = stringToHex; exports.boolToBytes = boolToBytes; exports.toBytes = toBytes; exports.hexToBytes = hexToBytes; exports.numberToBytes = numberToBytes; exports.stringToBytes = stringToBytes; exports.toRlp = toRlp; exports.fromHex = fromHex; exports.hexToBigInt = hexToBigInt; exports.hexToBool = hexToBool; exports.hexToNumber = hexToNumber; exports.hexToString = hexToString; exports.fromBytes = fromBytes; exports.bytesToBigint = bytesToBigint; exports.bytesToBool = bytesToBool; exports.bytesToNumber = bytesToNumber; exports.bytesToString = bytesToString; exports.fromRlp = fromRlp; exports.extractFunctionParts = extractFunctionParts; exports.extractFunctionName = extractFunctionName; exports.extractFunctionParams = extractFunctionParams; exports.extractFunctionType = extractFunctionType; exports.getContractError = getContractError; exports.keccak256 = keccak256; exports.getEventSignature = getEventSignature; exports.getFunctionSignature = getFunctionSignature; exports.checksumAddress = checksumAddress; exports.getAddress = getAddress; exports.getContractAddress = getContractAddress2; exports.getCreateAddress = getCreateAddress; exports.getCreate2Address = getCreate2Address; exports.
|
3027
|
-
//# sourceMappingURL=chunk-
|
3026
|
+
exports.BaseError = BaseError; exports.AbiConstructorNotFoundError = AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = AbiEventNotFoundError; exports.AbiFunctionNotFoundError = AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = AbiFunctionSignatureNotFoundError; exports.InvalidAbiEncodingTypeError = InvalidAbiEncodingTypeError; exports.InvalidAbiDecodingTypeError = InvalidAbiDecodingTypeError; exports.InvalidArrayError = InvalidArrayError; exports.InvalidDefinitionTypeError = InvalidDefinitionTypeError; exports.InvalidAddressError = InvalidAddressError; exports.BlockNotFoundError = BlockNotFoundError; exports.ChainDoesNotSupportContract = ChainDoesNotSupportContract; exports.multicall3Abi = multicall3Abi; exports.panicReasons = panicReasons; exports.ContractFunctionExecutionError = ContractFunctionExecutionError; exports.ContractFunctionRevertedError = ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = ContractFunctionZeroDataError; exports.RawContractError = RawContractError; exports.SizeExceedsPaddingSizeError = SizeExceedsPaddingSizeError; exports.DataLengthTooLongError = DataLengthTooLongError; exports.DataLengthTooShortError = DataLengthTooShortError; exports.InvalidBytesBooleanError = InvalidBytesBooleanError; exports.InvalidHexBooleanError = InvalidHexBooleanError; exports.InvalidHexValueError = InvalidHexValueError; exports.OffsetOutOfBoundsError = OffsetOutOfBoundsError; exports.FilterTypeNotSupportedError = FilterTypeNotSupportedError; exports.RequestError = RequestError; exports.RpcRequestError = RpcRequestError; exports.ParseRpcError = ParseRpcError; exports.InvalidRequestRpcError = InvalidRequestRpcError; exports.MethodNotFoundRpcError = MethodNotFoundRpcError; exports.InvalidParamsRpcError = InvalidParamsRpcError; exports.InternalRpcError = InternalRpcError; exports.InvalidInputRpcError = InvalidInputRpcError; exports.ResourceNotFoundRpcError = ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = ResourceUnavailableRpcError; exports.TransactionRejectedRpcError = TransactionRejectedRpcError; exports.MethodNotSupportedRpcError = MethodNotSupportedRpcError; exports.LimitExceededRpcError = LimitExceededRpcError; exports.JsonRpcVersionUnsupportedError = JsonRpcVersionUnsupportedError; exports.UnknownRpcError = UnknownRpcError; exports.HttpRequestError = HttpRequestError; exports.WebSocketRequestError = WebSocketRequestError; exports.RpcError = RpcError; exports.TimeoutError = TimeoutError; exports.InvalidGasArgumentsError = InvalidGasArgumentsError; exports.TransactionNotFoundError = TransactionNotFoundError; exports.TransactionReceiptNotFoundError = TransactionReceiptNotFoundError; exports.WaitForTransactionReceiptTimeoutError = WaitForTransactionReceiptTimeoutError; exports.UrlRequiredError = UrlRequiredError; exports.concat = concat; exports.isBytes = isBytes; exports.isHex = isHex; exports.pad = pad; exports.padHex = padHex; exports.padBytes = padBytes; exports.trim = trim; exports.size = size; exports.slice = slice; exports.sliceBytes = sliceBytes; exports.sliceHex = sliceHex; exports.boolToHex = boolToHex; exports.bytesToHex = bytesToHex; exports.toHex = toHex; exports.numberToHex = numberToHex; exports.stringToHex = stringToHex; exports.boolToBytes = boolToBytes; exports.toBytes = toBytes; exports.hexToBytes = hexToBytes; exports.numberToBytes = numberToBytes; exports.stringToBytes = stringToBytes; exports.toRlp = toRlp; exports.fromHex = fromHex; exports.hexToBigInt = hexToBigInt; exports.hexToBool = hexToBool; exports.hexToNumber = hexToNumber; exports.hexToString = hexToString; exports.fromBytes = fromBytes; exports.bytesToBigint = bytesToBigint; exports.bytesToBool = bytesToBool; exports.bytesToNumber = bytesToNumber; exports.bytesToString = bytesToString; exports.fromRlp = fromRlp; exports.extractFunctionParts = extractFunctionParts; exports.extractFunctionName = extractFunctionName; exports.extractFunctionParams = extractFunctionParams; exports.extractFunctionType = extractFunctionType; exports.getContractError = getContractError; exports.keccak256 = keccak256; exports.getEventSignature = getEventSignature; exports.getFunctionSignature = getFunctionSignature; exports.isAddress = isAddress; exports.checksumAddress = checksumAddress; exports.getAddress = getAddress; exports.getContractAddress = getContractAddress2; exports.getCreateAddress = getCreateAddress; exports.getCreate2Address = getCreate2Address; exports.isAddressEqual = isAddressEqual; exports.encodeAbi = encodeAbi; exports.decodeAbi = decodeAbi; exports.formatAbiItem = formatAbiItem; exports.decodeErrorResult = decodeErrorResult; exports.decodeEventLog = decodeEventLog; exports.decodeFunctionData = decodeFunctionData; exports.getAbiItem = getAbiItem; exports.decodeFunctionResult = decodeFunctionResult; exports.encodeDeployData = encodeDeployData; exports.encodeErrorResult = encodeErrorResult; exports.encodeEventTopics = encodeEventTopics; exports.encodeFunctionData = encodeFunctionData; exports.encodeFunctionResult = encodeFunctionResult; exports.formatAbiItemWithArgs = formatAbiItemWithArgs; exports.getCache = getCache; exports.withCache = withCache; exports.wait = wait; exports.isDeterministicError = isDeterministicError; exports.buildRequest = buildRequest; exports.defineChain = defineChain; exports.format = format3; exports.defineFormatter = defineFormatter; exports.transactionType = transactionType; exports.formatTransaction = formatTransaction; exports.defineTransaction = defineTransaction; exports.formatBlock = formatBlock; exports.defineBlock = defineBlock; exports.extract = extract; exports.formatFeeHistory = formatFeeHistory; exports.formatLog = formatLog; exports.formatTransactionReceipt = formatTransactionReceipt; exports.defineTransactionReceipt = defineTransactionReceipt; exports.formatTransactionRequest = formatTransactionRequest; exports.defineTransactionRequest = defineTransactionRequest; exports.stringify = stringify; exports.getSocket = getSocket; exports.rpc = rpc; exports.etherUnits = etherUnits; exports.gweiUnits = gweiUnits; exports.weiUnits = weiUnits; exports.formatUnit = formatUnit; exports.formatEther = formatEther; exports.formatGwei = formatGwei; exports.parseUnit = parseUnit; exports.parseEther = parseEther; exports.parseGwei = parseGwei;
|
3027
|
+
//# sourceMappingURL=chunk-EYORBAD4.js.map
|