viem 0.0.1-alpha.30 → 0.0.1-alpha.31
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-BHMSFL4W.js → chunk-5STAX3WF.js} +14 -14
- package/dist/{chunk-25AJVKAT.mjs → chunk-6ZFIUYGC.mjs} +22 -22
- package/dist/chunk-6ZFIUYGC.mjs.map +1 -0
- package/dist/{chunk-IP3NSE7H.mjs → chunk-APXHGB76.mjs} +2 -2
- package/dist/{chunk-23UHN6UC.mjs → chunk-C54QK7K3.mjs} +3 -3
- package/dist/{chunk-EYRMK2SV.mjs → chunk-IBWRBL2I.mjs} +2 -2
- package/dist/{chunk-EAD66IDC.js → chunk-J7QHQ26Y.js} +21 -21
- package/dist/chunk-J7QHQ26Y.js.map +1 -0
- package/dist/{chunk-NPFW67BV.js → chunk-MYFKW55L.js} +22 -22
- package/dist/{chunk-ZX4U6QKQ.js → chunk-NCPBWOQA.js} +75 -75
- package/dist/{chunk-AO7KQBK3.mjs → chunk-QBB3DFIB.mjs} +2 -2
- package/dist/{chunk-VOK5ALIT.js → chunk-UUULPQHV.js} +15 -15
- 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 +8 -3
- package/dist/index.js +92 -90
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/dist/{parseGwei-e299cf13.d.ts → parseGwei-8af7a0a6.d.ts} +8 -5
- 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 +2 -2
- package/dist/utils/index.js +4 -2
- package/dist/utils/index.mjs +7 -5
- package/dist/wallet.js +3 -3
- package/dist/wallet.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-25AJVKAT.mjs.map +0 -1
- package/dist/chunk-EAD66IDC.js.map +0 -1
- /package/dist/{chunk-BHMSFL4W.js.map → chunk-5STAX3WF.js.map} +0 -0
- /package/dist/{chunk-IP3NSE7H.mjs.map → chunk-APXHGB76.mjs.map} +0 -0
- /package/dist/{chunk-23UHN6UC.mjs.map → chunk-C54QK7K3.mjs.map} +0 -0
- /package/dist/{chunk-EYRMK2SV.mjs.map → chunk-IBWRBL2I.mjs.map} +0 -0
- /package/dist/{chunk-NPFW67BV.js.map → chunk-MYFKW55L.js.map} +0 -0
- /package/dist/{chunk-ZX4U6QKQ.js.map → chunk-NCPBWOQA.js.map} +0 -0
- /package/dist/{chunk-AO7KQBK3.mjs.map → chunk-QBB3DFIB.mjs.map} +0 -0
- /package/dist/{chunk-VOK5ALIT.js.map → chunk-UUULPQHV.js.map} +0 -0
@@ -11,7 +11,7 @@
|
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
var
|
14
|
+
var _chunkJ7QHQ26Yjs = require('./chunk-J7QHQ26Y.js');
|
15
15
|
|
16
16
|
// src/actions/wallet/addChain.ts
|
17
17
|
async function addChain(client, { chain }) {
|
@@ -20,7 +20,7 @@ async function addChain(client, { chain }) {
|
|
20
20
|
method: "wallet_addEthereumChain",
|
21
21
|
params: [
|
22
22
|
{
|
23
|
-
chainId:
|
23
|
+
chainId: _chunkJ7QHQ26Yjs.numberToHex.call(void 0, id),
|
24
24
|
chainName: name,
|
25
25
|
nativeCurrency,
|
26
26
|
rpcUrls: rpcUrls.default.http,
|
@@ -33,7 +33,7 @@ async function addChain(client, { chain }) {
|
|
33
33
|
// src/actions/wallet/getAccounts.ts
|
34
34
|
async function getAccounts(client) {
|
35
35
|
const addresses = await client.request({ method: "eth_accounts" });
|
36
|
-
return addresses.map((address) =>
|
36
|
+
return addresses.map((address) => _chunkJ7QHQ26Yjs.checksumAddress.call(void 0, address));
|
37
37
|
}
|
38
38
|
|
39
39
|
// src/actions/wallet/getPermissions.ts
|
@@ -45,7 +45,7 @@ async function getPermissions(client) {
|
|
45
45
|
// src/actions/wallet/requestAccounts.ts
|
46
46
|
async function requestAccounts(client) {
|
47
47
|
const addresses = await client.request({ method: "eth_requestAccounts" });
|
48
|
-
return addresses.map((address) =>
|
48
|
+
return addresses.map((address) => _chunkJ7QHQ26Yjs.getAddress.call(void 0, address));
|
49
49
|
}
|
50
50
|
|
51
51
|
// src/actions/wallet/requestPermissions.ts
|
@@ -73,9 +73,9 @@ async function sendTransaction(client, args) {
|
|
73
73
|
...rest
|
74
74
|
} = args;
|
75
75
|
try {
|
76
|
-
|
76
|
+
_chunkJ7QHQ26Yjs.assertRequest.call(void 0, args);
|
77
77
|
const formatter = _optionalChain([chain, 'optionalAccess', _ => _.formatters, 'optionalAccess', _2 => _2.transactionRequest]);
|
78
|
-
const request_ =
|
78
|
+
const request_ = _chunkJ7QHQ26Yjs.format.call(void 0,
|
79
79
|
{
|
80
80
|
from,
|
81
81
|
accessList,
|
@@ -88,10 +88,10 @@ async function sendTransaction(client, args) {
|
|
88
88
|
to,
|
89
89
|
value,
|
90
90
|
// Pick out extra data that might exist on the chain's transaction request type.
|
91
|
-
...
|
91
|
+
..._chunkJ7QHQ26Yjs.extract.call(void 0, rest, { formatter })
|
92
92
|
},
|
93
93
|
{
|
94
|
-
formatter: formatter ||
|
94
|
+
formatter: formatter || _chunkJ7QHQ26Yjs.formatTransactionRequest
|
95
95
|
}
|
96
96
|
);
|
97
97
|
const hash = await client.request({
|
@@ -100,7 +100,7 @@ async function sendTransaction(client, args) {
|
|
100
100
|
});
|
101
101
|
return hash;
|
102
102
|
} catch (err) {
|
103
|
-
throw
|
103
|
+
throw _chunkJ7QHQ26Yjs.getTransactionError.call(void 0, err, args);
|
104
104
|
}
|
105
105
|
}
|
106
106
|
|
@@ -109,7 +109,7 @@ async function signMessage(client, { from, data: data_ }) {
|
|
109
109
|
let data;
|
110
110
|
if (typeof data_ === "string") {
|
111
111
|
if (!data_.startsWith("0x"))
|
112
|
-
throw new (0,
|
112
|
+
throw new (0, _chunkJ7QHQ26Yjs.BaseError)(
|
113
113
|
`data ("${data_}") must be a hex value. Encode it first to a hex with the \`toHex\` util.`,
|
114
114
|
{
|
115
115
|
docsPath: "/TODO"
|
@@ -117,7 +117,7 @@ async function signMessage(client, { from, data: data_ }) {
|
|
117
117
|
);
|
118
118
|
data = data_;
|
119
119
|
} else {
|
120
|
-
data =
|
120
|
+
data = _chunkJ7QHQ26Yjs.toHex.call(void 0, data_);
|
121
121
|
}
|
122
122
|
const signed = await client.request({
|
123
123
|
method: "personal_sign",
|
@@ -132,7 +132,7 @@ async function switchChain(client, { id }) {
|
|
132
132
|
method: "wallet_switchEthereumChain",
|
133
133
|
params: [
|
134
134
|
{
|
135
|
-
chainId:
|
135
|
+
chainId: _chunkJ7QHQ26Yjs.numberToHex.call(void 0, id)
|
136
136
|
}
|
137
137
|
]
|
138
138
|
});
|
@@ -155,7 +155,7 @@ async function writeContract(client, {
|
|
155
155
|
functionName,
|
156
156
|
...request
|
157
157
|
}) {
|
158
|
-
const data =
|
158
|
+
const data = _chunkJ7QHQ26Yjs.encodeFunctionData.call(void 0, {
|
159
159
|
abi,
|
160
160
|
args,
|
161
161
|
functionName
|
@@ -170,7 +170,7 @@ async function writeContract(client, {
|
|
170
170
|
|
171
171
|
// src/actions/wallet/deployContract.ts
|
172
172
|
function deployContract(walletClient, { abi, args, bytecode, ...request }) {
|
173
|
-
const calldata =
|
173
|
+
const calldata = _chunkJ7QHQ26Yjs.encodeDeployData.call(void 0, {
|
174
174
|
abi,
|
175
175
|
args,
|
176
176
|
bytecode
|
@@ -194,4 +194,4 @@ function deployContract(walletClient, { abi, args, bytecode, ...request }) {
|
|
194
194
|
|
195
195
|
|
196
196
|
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;
|
197
|
-
//# sourceMappingURL=chunk-
|
197
|
+
//# sourceMappingURL=chunk-UUULPQHV.js.map
|
package/dist/contract.js
CHANGED
@@ -7,11 +7,11 @@
|
|
7
7
|
|
8
8
|
|
9
9
|
|
10
|
-
var
|
10
|
+
var _chunkNCPBWOQAjs = require('./chunk-NCPBWOQA.js');
|
11
11
|
|
12
12
|
|
13
13
|
|
14
|
-
var
|
14
|
+
var _chunkUUULPQHVjs = require('./chunk-UUULPQHV.js');
|
15
15
|
|
16
16
|
|
17
17
|
|
@@ -27,7 +27,7 @@ var _chunkVOK5ALITjs = require('./chunk-VOK5ALIT.js');
|
|
27
27
|
|
28
28
|
|
29
29
|
|
30
|
-
var
|
30
|
+
var _chunkJ7QHQ26Yjs = require('./chunk-J7QHQ26Y.js');
|
31
31
|
|
32
32
|
|
33
33
|
|
@@ -53,5 +53,5 @@ var _chunkEAD66IDCjs = require('./chunk-EAD66IDC.js');
|
|
53
53
|
|
54
54
|
|
55
55
|
|
56
|
-
exports.createContractEventFilter =
|
56
|
+
exports.createContractEventFilter = _chunkNCPBWOQAjs.createContractEventFilter; exports.decodeAbi = _chunkJ7QHQ26Yjs.decodeAbi; exports.decodeErrorResult = _chunkJ7QHQ26Yjs.decodeErrorResult; exports.decodeEventLog = _chunkJ7QHQ26Yjs.decodeEventLog; exports.decodeFunctionData = _chunkJ7QHQ26Yjs.decodeFunctionData; exports.decodeFunctionResult = _chunkJ7QHQ26Yjs.decodeFunctionResult; exports.deployContract = _chunkUUULPQHVjs.deployContract; exports.encodeAbi = _chunkJ7QHQ26Yjs.encodeAbi; exports.encodeDeployData = _chunkJ7QHQ26Yjs.encodeDeployData; exports.encodeErrorResult = _chunkJ7QHQ26Yjs.encodeErrorResult; exports.encodeEventTopics = _chunkJ7QHQ26Yjs.encodeEventTopics; exports.encodeFunctionData = _chunkJ7QHQ26Yjs.encodeFunctionData; exports.encodeFunctionResult = _chunkJ7QHQ26Yjs.encodeFunctionResult; exports.estimateContractGas = _chunkNCPBWOQAjs.estimateContractGas; exports.formatAbiItem = _chunkJ7QHQ26Yjs.formatAbiItem; exports.formatAbiItemWithArgs = _chunkJ7QHQ26Yjs.formatAbiItemWithArgs; exports.getAbiItem = _chunkJ7QHQ26Yjs.getAbiItem; exports.getBytecode = _chunkNCPBWOQAjs.getBytecode; exports.getStorageAt = _chunkNCPBWOQAjs.getStorageAt; exports.multicall = _chunkNCPBWOQAjs.multicall; exports.readContract = _chunkNCPBWOQAjs.readContract; exports.simulateContract = _chunkNCPBWOQAjs.simulateContract; exports.watchContractEvent = _chunkNCPBWOQAjs.watchContractEvent; exports.writeContract = _chunkUUULPQHVjs.writeContract;
|
57
57
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.mjs
CHANGED
@@ -7,11 +7,11 @@ import {
|
|
7
7
|
readContract,
|
8
8
|
simulateContract,
|
9
9
|
watchContractEvent
|
10
|
-
} from "./chunk-
|
10
|
+
} from "./chunk-IBWRBL2I.mjs";
|
11
11
|
import {
|
12
12
|
deployContract,
|
13
13
|
writeContract
|
14
|
-
} from "./chunk-
|
14
|
+
} from "./chunk-APXHGB76.mjs";
|
15
15
|
import {
|
16
16
|
decodeAbi,
|
17
17
|
decodeErrorResult,
|
@@ -27,7 +27,7 @@ import {
|
|
27
27
|
formatAbiItem,
|
28
28
|
formatAbiItemWithArgs,
|
29
29
|
getAbiItem
|
30
|
-
} from "./chunk-
|
30
|
+
} from "./chunk-6ZFIUYGC.mjs";
|
31
31
|
export {
|
32
32
|
createContractEventFilter,
|
33
33
|
decodeAbi,
|
package/dist/ens.js
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
7
|
-
require('./chunk-
|
8
|
-
require('./chunk-
|
6
|
+
var _chunkMYFKW55Ljs = require('./chunk-MYFKW55L.js');
|
7
|
+
require('./chunk-NCPBWOQA.js');
|
8
|
+
require('./chunk-J7QHQ26Y.js');
|
9
9
|
|
10
10
|
// src/utils/ens/normalize.ts
|
11
11
|
var _idnauts46hx = require('idna-uts46-hx');
|
@@ -18,5 +18,5 @@ function normalize(name) {
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
exports.getEnsAddress =
|
21
|
+
exports.getEnsAddress = _chunkMYFKW55Ljs.getEnsAddress; exports.getEnsName = _chunkMYFKW55Ljs.getEnsName; exports.labelhash = _chunkMYFKW55Ljs.labelhash; exports.namehash = _chunkMYFKW55Ljs.namehash; exports.normalize = normalize;
|
22
22
|
//# sourceMappingURL=ens.js.map
|
package/dist/ens.mjs
CHANGED
@@ -3,9 +3,9 @@ import {
|
|
3
3
|
getEnsName,
|
4
4
|
labelhash,
|
5
5
|
namehash
|
6
|
-
} from "./chunk-
|
7
|
-
import "./chunk-
|
8
|
-
import "./chunk-
|
6
|
+
} from "./chunk-C54QK7K3.mjs";
|
7
|
+
import "./chunk-IBWRBL2I.mjs";
|
8
|
+
import "./chunk-6ZFIUYGC.mjs";
|
9
9
|
|
10
10
|
// src/utils/ens/normalize.ts
|
11
11
|
import { toUnicode } from "idna-uts46-hx";
|
package/dist/index.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { T as TransportConfig, a as Transport, B as BaseRpcRequests } from './createClient-5258d590.js';
|
2
2
|
export { C as Client, b as ClientConfig, a as Transport, T as TransportConfig, c as createClient, d as createTransport } from './createClient-5258d590.js';
|
3
|
+
import { B as BaseError, H as HttpOptions, R as RpcResponse } from './parseGwei-8af7a0a6.js';
|
4
|
+
export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, N as NonceMaxValueError, h as NonceTooHighError, i as NonceTooLowError, j as RawContractError, T as TipAboveFeeCapError, q as ToRlpResponse, k as TransactionExecutionError, m as TransactionNotFoundError, n as TransactionReceiptNotFoundError, l as TransactionTypeNotSupportedError, U as UnknownNodeError, W as WaitForTransactionReceiptTimeoutError, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as etherUnits, z as formatEther, A as formatGwei, D as formatUnit, J as fromBytes, K as fromHex, L as fromRlp, M as getAddress, O as getContractAddress, P as getContractError, Q as getCreate2Address, S as getCreateAddress, V as getEventSelector, X as getFunctionSelector, Y as gweiUnits, Z as hexToBigInt, _ as hexToBool, $ as hexToBytes, a0 as hexToNumber, a1 as hexToString, a2 as isAddress, a3 as isAddressEqual, a4 as isBytes, a5 as isHex, a6 as keccak256, a7 as numberToBytes, a8 as numberToHex, a9 as pad, aa as padBytes, ab as padHex, ac as parseEther, ad as parseGwei, ae as parseUnit, af as size, ag as slice, ah as sliceBytes, ai as sliceHex, aj as stringToBytes, ak as stringToHex, al as stringify, am as toBytes, an as toHex, ao as toRlp, ap as trim, aq as weiUnits } from './parseGwei-8af7a0a6.js';
|
3
5
|
import WebSocket from 'isomorphic-ws';
|
4
6
|
import { H as Hex, a as Hash, C as Chain, B as ByteArray } from './chain-00b37e4e.js';
|
5
7
|
export { b as AbiItem, c as AccessList, A as Address, d as Block, e as BlockIdentifier, f as BlockNumber, g as BlockTag, B as ByteArray, C as Chain, h as ContractConfig, J as ExtractFormatter, F as FeeHistory, i as FeeValues, j as FeeValuesEIP1559, k as FeeValuesLegacy, K as Formatted, M as FormattedTransaction, a as Hash, H as Hex, L as Log, R as RpcBlock, l as RpcBlockIdentifier, m as RpcBlockNumber, n as RpcFeeHistory, o as RpcFeeValues, p as RpcLog, q as RpcTransaction, r as RpcTransactionReceipt, s as RpcTransactionRequest, t as RpcUncle, z as Transaction, D as TransactionBase, E as TransactionEIP1559, G as TransactionEIP2930, N as TransactionFormatter, I as TransactionLegacy, T as TransactionReceipt, u as TransactionRequest, v as TransactionRequestBase, w as TransactionRequestEIP1559, x as TransactionRequestEIP2930, y as TransactionRequestLegacy, U as Uncle, O as defineTransaction, P as formatTransaction, Q as transactionType } from './chain-00b37e4e.js';
|
6
|
-
import { B as BaseError, R as RpcResponse } from './parseGwei-e299cf13.js';
|
7
|
-
export { B as BaseError, C as CallExecutionError, a as ContractFunctionExecutionError, b as ContractFunctionRevertedError, c as ContractFunctionZeroDataError, E as EstimateGasExecutionError, d as ExecutionRevertedError, F as FeeCapTooHighError, e as FeeCapTooLowError, G as GetContractAddressOptions, o as GetCreate2AddressOptions, p as GetCreateAddressOptions, I as InsufficientFundsError, f as IntrinsicGasTooHighError, g as IntrinsicGasTooLowError, N as NonceMaxValueError, h as NonceTooHighError, i as NonceTooLowError, j as RawContractError, T as TipAboveFeeCapError, q as ToRlpResponse, k as TransactionExecutionError, m as TransactionNotFoundError, n as TransactionReceiptNotFoundError, l as TransactionTypeNotSupportedError, U as UnknownNodeError, W as WaitForTransactionReceiptTimeoutError, r as boolToBytes, s as boolToHex, t as bytesToBigint, u as bytesToBool, v as bytesToHex, w as bytesToNumber, x as bytesToString, y as etherUnits, z as formatEther, A as formatGwei, D as formatUnit, H as fromBytes, J as fromHex, K as fromRlp, L as getAddress, M as getContractAddress, O as getContractError, P as getCreate2Address, Q as getCreateAddress, S as getEventSignature, V as getFunctionSignature, X as gweiUnits, 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 parseUnit, 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, ap as weiUnits } from './parseGwei-e299cf13.js';
|
8
8
|
export { B as BlockFormatter, F as FormattedBlock, b as FormattedTransactionReceipt, P as PublicClient, a as PublicClientConfig, T as TransactionReceiptFormatter, c as createPublicClient, d as defineBlock, e as defineTransactionReceipt, f as formatBlock } from './createPublicClient-99be385b.js';
|
9
9
|
export { T as TestClient, a as TestClientConfig, c as createTestClient } from './test-79ec416c.js';
|
10
10
|
export { F as FormattedTransactionRequest, T as TransactionRequestFormatter, W as WalletClient, a as WalletClientConfig, c as createWalletClient, d as defineTransactionRequest, f as formatTransactionRequest } from './wallet-cf5c8351.js';
|
@@ -12,8 +12,8 @@ export { l as labelhash, n as namehash } from './namehash-88f4639d.js';
|
|
12
12
|
export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeErrorResultResponse, c as DecodeEventLogArgs, d as DecodeEventLogResponse, e as DecodeFunctionDataArgs, f as DecodeFunctionResultArgs, g as DecodeFunctionResultResponse, E as EncodeAbiArgs, h as EncodeDeployDataArgs, i as EncodeErrorResultArgs, j as EncodeEventTopicsArgs, k as EncodeFunctionDataArgs, l as EncodeFunctionResultArgs, G as GetAbiItemArgs, m as decodeAbi, n as decodeErrorResult, o as decodeEventLog, p as decodeFunctionData, q as decodeFunctionResult, r as encodeAbi, s as encodeDeployData, t as encodeErrorResult, u as encodeEventTopics, v as encodeFunctionData, w as encodeFunctionResult, x as getAbiItem } from './getAbiItem-6d4f64d2.js';
|
13
13
|
export { d as defineChain } from './chain-38182d92.js';
|
14
14
|
import './eip1193-fcdeee04.js';
|
15
|
-
import '@wagmi/chains';
|
16
15
|
import 'abitype';
|
16
|
+
import '@wagmi/chains';
|
17
17
|
import 'ethers@6/types/providers';
|
18
18
|
import 'abitype/dist/abi-78346466';
|
19
19
|
|
@@ -368,6 +368,11 @@ type FallbackTransport = Transport<'fallback', {
|
|
368
368
|
declare function fallback(transports: Transport[], config?: FallbackTransportConfig): FallbackTransport;
|
369
369
|
|
370
370
|
type HttpTransportConfig = {
|
371
|
+
/**
|
372
|
+
* Request configuration to pass to `fetch`.
|
373
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/API/fetch
|
374
|
+
*/
|
375
|
+
fetchOptions?: HttpOptions['fetchOptions'];
|
371
376
|
/** The key of the HTTP transport. */
|
372
377
|
key?: TransportConfig['key'];
|
373
378
|
/** The name of the HTTP transport. */
|
package/dist/index.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
6
|
+
var _chunkMYFKW55Ljs = require('./chunk-MYFKW55L.js');
|
7
7
|
|
8
8
|
|
9
9
|
|
@@ -37,7 +37,7 @@ var _chunkNPFW67BVjs = require('./chunk-NPFW67BV.js');
|
|
37
37
|
|
38
38
|
|
39
39
|
|
40
|
-
var
|
40
|
+
var _chunkNCPBWOQAjs = require('./chunk-NCPBWOQA.js');
|
41
41
|
|
42
42
|
|
43
43
|
|
@@ -67,7 +67,7 @@ var _chunkZX4U6QKQjs = require('./chunk-ZX4U6QKQ.js');
|
|
67
67
|
|
68
68
|
|
69
69
|
|
70
|
-
var
|
70
|
+
var _chunk5STAX3WFjs = require('./chunk-5STAX3WF.js');
|
71
71
|
|
72
72
|
|
73
73
|
|
@@ -80,7 +80,7 @@ var _chunkBHMSFL4Wjs = require('./chunk-BHMSFL4W.js');
|
|
80
80
|
|
81
81
|
|
82
82
|
|
83
|
-
var
|
83
|
+
var _chunkUUULPQHVjs = require('./chunk-UUULPQHV.js');
|
84
84
|
|
85
85
|
|
86
86
|
|
@@ -232,7 +232,7 @@ var _chunkVOK5ALITjs = require('./chunk-VOK5ALIT.js');
|
|
232
232
|
|
233
233
|
|
234
234
|
|
235
|
-
var
|
235
|
+
var _chunkJ7QHQ26Yjs = require('./chunk-J7QHQ26Y.js');
|
236
236
|
|
237
237
|
// src/clients/transports/createTransport.ts
|
238
238
|
function createTransport({
|
@@ -246,7 +246,7 @@ function createTransport({
|
|
246
246
|
}, value) {
|
247
247
|
return {
|
248
248
|
config: { key, name, request, retryCount, retryDelay, timeout, type },
|
249
|
-
request:
|
249
|
+
request: _chunkJ7QHQ26Yjs.buildRequest.call(void 0, request, { retryCount, retryDelay }),
|
250
250
|
value
|
251
251
|
};
|
252
252
|
}
|
@@ -280,7 +280,7 @@ function fallback(transports, config = {}) {
|
|
280
280
|
params
|
281
281
|
});
|
282
282
|
} catch (err) {
|
283
|
-
if (
|
283
|
+
if (_chunkJ7QHQ26Yjs.isDeterministicError.call(void 0, err))
|
284
284
|
throw err;
|
285
285
|
if (i === transports.length - 1)
|
286
286
|
throw err;
|
@@ -304,6 +304,7 @@ function fallback(transports, config = {}) {
|
|
304
304
|
// src/clients/transports/http.ts
|
305
305
|
function http(url, config = {}) {
|
306
306
|
const {
|
307
|
+
fetchOptions,
|
307
308
|
key = "http",
|
308
309
|
name = "HTTP JSON-RPC",
|
309
310
|
retryDelay,
|
@@ -313,17 +314,18 @@ function http(url, config = {}) {
|
|
313
314
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
314
315
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
|
315
316
|
if (!url_)
|
316
|
-
throw new (0,
|
317
|
+
throw new (0, _chunkJ7QHQ26Yjs.UrlRequiredError)();
|
317
318
|
return createTransport(
|
318
319
|
{
|
319
320
|
key,
|
320
321
|
name,
|
321
322
|
async request({ method, params }) {
|
322
|
-
const { result } = await
|
323
|
+
const { result } = await _chunkJ7QHQ26Yjs.rpc.http(url_, {
|
323
324
|
body: {
|
324
325
|
method,
|
325
326
|
params
|
326
327
|
},
|
328
|
+
fetchOptions,
|
327
329
|
timeout
|
328
330
|
});
|
329
331
|
return result;
|
@@ -352,14 +354,14 @@ function webSocket(url, config = {}) {
|
|
352
354
|
const retryCount = _nullishCoalesce(config.retryCount, () => ( defaultRetryCount));
|
353
355
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
|
354
356
|
if (!url_)
|
355
|
-
throw new (0,
|
357
|
+
throw new (0, _chunkJ7QHQ26Yjs.UrlRequiredError)();
|
356
358
|
return createTransport(
|
357
359
|
{
|
358
360
|
key,
|
359
361
|
name,
|
360
362
|
async request({ method, params }) {
|
361
|
-
const socket = await
|
362
|
-
const { result } = await
|
363
|
+
const socket = await _chunkJ7QHQ26Yjs.getSocket.call(void 0, url_);
|
364
|
+
const { result } = await _chunkJ7QHQ26Yjs.rpc.webSocketAsync(socket, {
|
363
365
|
body: { method, params },
|
364
366
|
timeout
|
365
367
|
});
|
@@ -372,12 +374,12 @@ function webSocket(url, config = {}) {
|
|
372
374
|
},
|
373
375
|
{
|
374
376
|
getSocket() {
|
375
|
-
return
|
377
|
+
return _chunkJ7QHQ26Yjs.getSocket.call(void 0, url_);
|
376
378
|
},
|
377
379
|
async subscribe({ params, onData, onError }) {
|
378
|
-
const socket = await
|
380
|
+
const socket = await _chunkJ7QHQ26Yjs.getSocket.call(void 0, url_);
|
379
381
|
const { result: subscriptionId } = await new Promise(
|
380
|
-
(resolve, reject) =>
|
382
|
+
(resolve, reject) => _chunkJ7QHQ26Yjs.rpc.webSocket(socket, {
|
381
383
|
body: {
|
382
384
|
method: "eth_subscribe",
|
383
385
|
params
|
@@ -399,7 +401,7 @@ function webSocket(url, config = {}) {
|
|
399
401
|
subscriptionId,
|
400
402
|
async unsubscribe() {
|
401
403
|
return new Promise(
|
402
|
-
(resolve, reject) =>
|
404
|
+
(resolve, reject) => _chunkJ7QHQ26Yjs.rpc.webSocket(socket, {
|
403
405
|
body: {
|
404
406
|
method: "eth_unsubscribe",
|
405
407
|
params: [subscriptionId]
|
@@ -455,87 +457,87 @@ function createClient({
|
|
455
457
|
|
456
458
|
// src/clients/decorators/public.ts
|
457
459
|
var publicActions = (client) => ({
|
458
|
-
call: (args) =>
|
459
|
-
createBlockFilter: () =>
|
460
|
-
createContractEventFilter: (args) =>
|
461
|
-
createEventFilter: (args) =>
|
462
|
-
createPendingTransactionFilter: () =>
|
463
|
-
estimateContractGas: (args) =>
|
464
|
-
estimateGas: (args) =>
|
465
|
-
getBalance: (args) =>
|
466
|
-
getBlock: (args) =>
|
467
|
-
getBlockNumber: (args) =>
|
468
|
-
getBlockTransactionCount: (args) =>
|
469
|
-
getBytecode: (args) =>
|
470
|
-
getChainId: () =>
|
471
|
-
getEnsAddress: (args) =>
|
472
|
-
getEnsName: (args) =>
|
473
|
-
getFeeHistory: (args) =>
|
474
|
-
getFilterChanges: (args) =>
|
475
|
-
getFilterLogs: (args) =>
|
476
|
-
getGasPrice: () =>
|
477
|
-
getLogs: (args) =>
|
478
|
-
getStorageAt: (args) =>
|
479
|
-
getTransaction: (args) =>
|
480
|
-
getTransactionConfirmations: (args) =>
|
481
|
-
getTransactionReceipt: (args) =>
|
482
|
-
multicall: (args) =>
|
483
|
-
readContract: (args) =>
|
484
|
-
simulateContract: (args) =>
|
485
|
-
uninstallFilter: (args) =>
|
486
|
-
waitForTransactionReceipt: (args) =>
|
487
|
-
watchBlocks: (args) =>
|
488
|
-
watchBlockNumber: (args) =>
|
489
|
-
watchContractEvent: (args) =>
|
490
|
-
watchEvent: (args) =>
|
491
|
-
watchPendingTransactions: (args) =>
|
460
|
+
call: (args) => _chunkNCPBWOQAjs.call.call(void 0, client, args),
|
461
|
+
createBlockFilter: () => _chunkNCPBWOQAjs.createBlockFilter.call(void 0, client),
|
462
|
+
createContractEventFilter: (args) => _chunkNCPBWOQAjs.createContractEventFilter.call(void 0, client, args),
|
463
|
+
createEventFilter: (args) => _chunkNCPBWOQAjs.createEventFilter.call(void 0, client, args),
|
464
|
+
createPendingTransactionFilter: () => _chunkNCPBWOQAjs.createPendingTransactionFilter.call(void 0, client),
|
465
|
+
estimateContractGas: (args) => _chunkNCPBWOQAjs.estimateContractGas.call(void 0, client, args),
|
466
|
+
estimateGas: (args) => _chunkNCPBWOQAjs.estimateGas.call(void 0, client, args),
|
467
|
+
getBalance: (args) => _chunkNCPBWOQAjs.getBalance.call(void 0, client, args),
|
468
|
+
getBlock: (args) => _chunkNCPBWOQAjs.getBlock.call(void 0, client, args),
|
469
|
+
getBlockNumber: (args) => _chunkNCPBWOQAjs.getBlockNumber.call(void 0, client, args),
|
470
|
+
getBlockTransactionCount: (args) => _chunkNCPBWOQAjs.getBlockTransactionCount.call(void 0, client, args),
|
471
|
+
getBytecode: (args) => _chunkNCPBWOQAjs.getBytecode.call(void 0, client, args),
|
472
|
+
getChainId: () => _chunkNCPBWOQAjs.getChainId.call(void 0, client),
|
473
|
+
getEnsAddress: (args) => _chunkMYFKW55Ljs.getEnsAddress.call(void 0, client, args),
|
474
|
+
getEnsName: (args) => _chunkMYFKW55Ljs.getEnsName.call(void 0, client, args),
|
475
|
+
getFeeHistory: (args) => _chunkNCPBWOQAjs.getFeeHistory.call(void 0, client, args),
|
476
|
+
getFilterChanges: (args) => _chunkNCPBWOQAjs.getFilterChanges.call(void 0, client, args),
|
477
|
+
getFilterLogs: (args) => _chunkNCPBWOQAjs.getFilterLogs.call(void 0, client, args),
|
478
|
+
getGasPrice: () => _chunkNCPBWOQAjs.getGasPrice.call(void 0, client),
|
479
|
+
getLogs: (args) => _chunkNCPBWOQAjs.getLogs.call(void 0, client, args),
|
480
|
+
getStorageAt: (args) => _chunkNCPBWOQAjs.getStorageAt.call(void 0, client, args),
|
481
|
+
getTransaction: (args) => _chunkNCPBWOQAjs.getTransaction.call(void 0, client, args),
|
482
|
+
getTransactionConfirmations: (args) => _chunkNCPBWOQAjs.getTransactionConfirmations.call(void 0, client, args),
|
483
|
+
getTransactionReceipt: (args) => _chunkNCPBWOQAjs.getTransactionReceipt.call(void 0, client, args),
|
484
|
+
multicall: (args) => _chunkNCPBWOQAjs.multicall.call(void 0, client, args),
|
485
|
+
readContract: (args) => _chunkNCPBWOQAjs.readContract.call(void 0, client, args),
|
486
|
+
simulateContract: (args) => _chunkNCPBWOQAjs.simulateContract.call(void 0, client, args),
|
487
|
+
uninstallFilter: (args) => _chunkNCPBWOQAjs.uninstallFilter.call(void 0, client, args),
|
488
|
+
waitForTransactionReceipt: (args) => _chunkNCPBWOQAjs.waitForTransactionReceipt.call(void 0, client, args),
|
489
|
+
watchBlocks: (args) => _chunkNCPBWOQAjs.watchBlocks.call(void 0, client, args),
|
490
|
+
watchBlockNumber: (args) => _chunkNCPBWOQAjs.watchBlockNumber.call(void 0, client, args),
|
491
|
+
watchContractEvent: (args) => _chunkNCPBWOQAjs.watchContractEvent.call(void 0, client, args),
|
492
|
+
watchEvent: (args) => _chunkNCPBWOQAjs.watchEvent.call(void 0, client, args),
|
493
|
+
watchPendingTransactions: (args) => _chunkNCPBWOQAjs.watchPendingTransactions.call(void 0, client, args)
|
492
494
|
});
|
493
495
|
|
494
496
|
// src/clients/decorators/test.ts
|
495
497
|
var testActions = (client) => ({
|
496
|
-
dropTransaction: (args) =>
|
497
|
-
getAutomine: () =>
|
498
|
-
getTxPoolContent: () =>
|
499
|
-
getTxPoolStatus: () =>
|
500
|
-
impersonateAccount: (args) =>
|
501
|
-
increaseTime: (args) =>
|
502
|
-
inspectTxpool: () =>
|
503
|
-
mine: (args) =>
|
504
|
-
removeBlockTimestampInterval: () =>
|
505
|
-
reset: (args) =>
|
506
|
-
revert: (args) =>
|
507
|
-
sendUnsignedTransaction: (args) =>
|
508
|
-
setAutomine: (args) =>
|
509
|
-
setBalance: (args) =>
|
510
|
-
setBlockGasLimit: (args) =>
|
511
|
-
setBlockTimestampInterval: (args) =>
|
512
|
-
setCode: (args) =>
|
513
|
-
setCoinbase: (args) =>
|
514
|
-
setIntervalMining: (args) =>
|
515
|
-
setLoggingEnabled: (args) =>
|
516
|
-
setMinGasPrice: (args) =>
|
517
|
-
setNextBlockBaseFeePerGas: (args) =>
|
518
|
-
setNextBlockTimestamp: (args) =>
|
519
|
-
setNonce: (args) =>
|
520
|
-
setRpcUrl: (args) =>
|
521
|
-
setStorageAt: (args) =>
|
522
|
-
snapshot: () =>
|
523
|
-
stopImpersonatingAccount: (args) =>
|
498
|
+
dropTransaction: (args) => _chunk5STAX3WFjs.dropTransaction.call(void 0, client, args),
|
499
|
+
getAutomine: () => _chunk5STAX3WFjs.getAutomine.call(void 0, client),
|
500
|
+
getTxPoolContent: () => _chunk5STAX3WFjs.getTxpoolContent.call(void 0, client),
|
501
|
+
getTxPoolStatus: () => _chunk5STAX3WFjs.getTxpoolStatus.call(void 0, client),
|
502
|
+
impersonateAccount: (args) => _chunk5STAX3WFjs.impersonateAccount.call(void 0, client, args),
|
503
|
+
increaseTime: (args) => _chunk5STAX3WFjs.increaseTime.call(void 0, client, args),
|
504
|
+
inspectTxpool: () => _chunk5STAX3WFjs.inspectTxpool.call(void 0, client),
|
505
|
+
mine: (args) => _chunk5STAX3WFjs.mine.call(void 0, client, args),
|
506
|
+
removeBlockTimestampInterval: () => _chunk5STAX3WFjs.removeBlockTimestampInterval.call(void 0, client),
|
507
|
+
reset: (args) => _chunk5STAX3WFjs.reset.call(void 0, client, args),
|
508
|
+
revert: (args) => _chunk5STAX3WFjs.revert.call(void 0, client, args),
|
509
|
+
sendUnsignedTransaction: (args) => _chunk5STAX3WFjs.sendUnsignedTransaction.call(void 0, client, args),
|
510
|
+
setAutomine: (args) => _chunk5STAX3WFjs.setAutomine.call(void 0, client, args),
|
511
|
+
setBalance: (args) => _chunk5STAX3WFjs.setBalance.call(void 0, client, args),
|
512
|
+
setBlockGasLimit: (args) => _chunk5STAX3WFjs.setBlockGasLimit.call(void 0, client, args),
|
513
|
+
setBlockTimestampInterval: (args) => _chunk5STAX3WFjs.setBlockTimestampInterval.call(void 0, client, args),
|
514
|
+
setCode: (args) => _chunk5STAX3WFjs.setCode.call(void 0, client, args),
|
515
|
+
setCoinbase: (args) => _chunk5STAX3WFjs.setCoinbase.call(void 0, client, args),
|
516
|
+
setIntervalMining: (args) => _chunk5STAX3WFjs.setIntervalMining.call(void 0, client, args),
|
517
|
+
setLoggingEnabled: (args) => _chunk5STAX3WFjs.setLoggingEnabled.call(void 0, client, args),
|
518
|
+
setMinGasPrice: (args) => _chunk5STAX3WFjs.setMinGasPrice.call(void 0, client, args),
|
519
|
+
setNextBlockBaseFeePerGas: (args) => _chunk5STAX3WFjs.setNextBlockBaseFeePerGas.call(void 0, client, args),
|
520
|
+
setNextBlockTimestamp: (args) => _chunk5STAX3WFjs.setNextBlockTimestamp.call(void 0, client, args),
|
521
|
+
setNonce: (args) => _chunk5STAX3WFjs.setNonce.call(void 0, client, args),
|
522
|
+
setRpcUrl: (args) => _chunk5STAX3WFjs.setRpcUrl.call(void 0, client, args),
|
523
|
+
setStorageAt: (args) => _chunk5STAX3WFjs.setStorageAt.call(void 0, client, args),
|
524
|
+
snapshot: () => _chunk5STAX3WFjs.snapshot.call(void 0, client),
|
525
|
+
stopImpersonatingAccount: (args) => _chunk5STAX3WFjs.stopImpersonatingAccount.call(void 0, client, args)
|
524
526
|
});
|
525
527
|
|
526
528
|
// src/clients/decorators/wallet.ts
|
527
529
|
var walletActions = (client) => ({
|
528
|
-
addChain: (args) =>
|
529
|
-
deployContract: (args) =>
|
530
|
-
getAccounts: () =>
|
531
|
-
getPermissions: () =>
|
532
|
-
requestAccounts: () =>
|
533
|
-
requestPermissions: (args) =>
|
534
|
-
sendTransaction: (args) =>
|
535
|
-
signMessage: (args) =>
|
536
|
-
switchChain: (args) =>
|
537
|
-
watchAsset: (args) =>
|
538
|
-
writeContract: (args) =>
|
530
|
+
addChain: (args) => _chunkUUULPQHVjs.addChain.call(void 0, client, args),
|
531
|
+
deployContract: (args) => _chunkUUULPQHVjs.deployContract.call(void 0, client, args),
|
532
|
+
getAccounts: () => _chunkUUULPQHVjs.getAccounts.call(void 0, client),
|
533
|
+
getPermissions: () => _chunkUUULPQHVjs.getPermissions.call(void 0, client),
|
534
|
+
requestAccounts: () => _chunkUUULPQHVjs.requestAccounts.call(void 0, client),
|
535
|
+
requestPermissions: (args) => _chunkUUULPQHVjs.requestPermissions.call(void 0, client, args),
|
536
|
+
sendTransaction: (args) => _chunkUUULPQHVjs.sendTransaction.call(void 0, client, args),
|
537
|
+
signMessage: (args) => _chunkUUULPQHVjs.signMessage.call(void 0, client, args),
|
538
|
+
switchChain: (args) => _chunkUUULPQHVjs.switchChain.call(void 0, client, args),
|
539
|
+
watchAsset: (args) => _chunkUUULPQHVjs.watchAsset.call(void 0, client, args),
|
540
|
+
writeContract: (args) => _chunkUUULPQHVjs.writeContract.call(void 0, client, args)
|
539
541
|
});
|
540
542
|
|
541
543
|
// src/clients/createPublicClient.ts
|
@@ -763,5 +765,5 @@ function createWalletClient({
|
|
763
765
|
|
764
766
|
|
765
767
|
|
766
|
-
exports.AbiConstructorNotFoundError =
|
768
|
+
exports.AbiConstructorNotFoundError = _chunkJ7QHQ26Yjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkJ7QHQ26Yjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkJ7QHQ26Yjs.AbiDecodingDataSizeInvalidError; exports.AbiDecodingZeroDataError = _chunkJ7QHQ26Yjs.AbiDecodingZeroDataError; exports.AbiEncodingArrayLengthMismatchError = _chunkJ7QHQ26Yjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkJ7QHQ26Yjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkJ7QHQ26Yjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkJ7QHQ26Yjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkJ7QHQ26Yjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkJ7QHQ26Yjs.AbiEventNotFoundError; exports.AbiEventSignatureNotFoundError = _chunkJ7QHQ26Yjs.AbiEventSignatureNotFoundError; exports.AbiFunctionNotFoundError = _chunkJ7QHQ26Yjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkJ7QHQ26Yjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkJ7QHQ26Yjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkJ7QHQ26Yjs.BaseError; exports.BlockNotFoundError = _chunkJ7QHQ26Yjs.BlockNotFoundError; exports.CallExecutionError = _chunkJ7QHQ26Yjs.CallExecutionError; exports.ChainDoesNotSupportContract = _chunkJ7QHQ26Yjs.ChainDoesNotSupportContract; exports.ContractFunctionExecutionError = _chunkJ7QHQ26Yjs.ContractFunctionExecutionError; exports.ContractFunctionRevertedError = _chunkJ7QHQ26Yjs.ContractFunctionRevertedError; exports.ContractFunctionZeroDataError = _chunkJ7QHQ26Yjs.ContractFunctionZeroDataError; exports.DataLengthTooLongError = _chunkJ7QHQ26Yjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkJ7QHQ26Yjs.DataLengthTooShortError; exports.EstimateGasExecutionError = _chunkJ7QHQ26Yjs.EstimateGasExecutionError; exports.ExecutionRevertedError = _chunkJ7QHQ26Yjs.ExecutionRevertedError; exports.FeeCapTooHighError = _chunkJ7QHQ26Yjs.FeeCapTooHighError; exports.FeeCapTooLowError = _chunkJ7QHQ26Yjs.FeeCapTooLowError; exports.FilterTypeNotSupportedError = _chunkJ7QHQ26Yjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkJ7QHQ26Yjs.HttpRequestError; exports.InsufficientFundsError = _chunkJ7QHQ26Yjs.InsufficientFundsError; exports.InternalRpcError = _chunkJ7QHQ26Yjs.InternalRpcError; exports.IntrinsicGasTooHighError = _chunkJ7QHQ26Yjs.IntrinsicGasTooHighError; exports.IntrinsicGasTooLowError = _chunkJ7QHQ26Yjs.IntrinsicGasTooLowError; exports.InvalidAbiDecodingTypeError = _chunkJ7QHQ26Yjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkJ7QHQ26Yjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkJ7QHQ26Yjs.InvalidAddressError; exports.InvalidArrayError = _chunkJ7QHQ26Yjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkJ7QHQ26Yjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkJ7QHQ26Yjs.InvalidDefinitionTypeError; exports.InvalidHexBooleanError = _chunkJ7QHQ26Yjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkJ7QHQ26Yjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunkJ7QHQ26Yjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkJ7QHQ26Yjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkJ7QHQ26Yjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkJ7QHQ26Yjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkJ7QHQ26Yjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkJ7QHQ26Yjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkJ7QHQ26Yjs.MethodNotSupportedRpcError; exports.NonceMaxValueError = _chunkJ7QHQ26Yjs.NonceMaxValueError; exports.NonceTooHighError = _chunkJ7QHQ26Yjs.NonceTooHighError; exports.NonceTooLowError = _chunkJ7QHQ26Yjs.NonceTooLowError; exports.OffsetOutOfBoundsError = _chunkJ7QHQ26Yjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkJ7QHQ26Yjs.ParseRpcError; exports.RawContractError = _chunkJ7QHQ26Yjs.RawContractError; exports.RequestError = _chunkJ7QHQ26Yjs.RequestError; exports.ResourceNotFoundRpcError = _chunkJ7QHQ26Yjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkJ7QHQ26Yjs.ResourceUnavailableRpcError; exports.RpcError = _chunkJ7QHQ26Yjs.RpcError; exports.RpcRequestError = _chunkJ7QHQ26Yjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkJ7QHQ26Yjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkJ7QHQ26Yjs.TimeoutError; exports.TipAboveFeeCapError = _chunkJ7QHQ26Yjs.TipAboveFeeCapError; exports.TransactionExecutionError = _chunkJ7QHQ26Yjs.TransactionExecutionError; exports.TransactionNotFoundError = _chunkJ7QHQ26Yjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkJ7QHQ26Yjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkJ7QHQ26Yjs.TransactionRejectedRpcError; exports.TransactionTypeNotSupportedError = _chunkJ7QHQ26Yjs.TransactionTypeNotSupportedError; exports.UnknownNodeError = _chunkJ7QHQ26Yjs.UnknownNodeError; exports.UnknownRpcError = _chunkJ7QHQ26Yjs.UnknownRpcError; exports.UrlRequiredError = _chunkJ7QHQ26Yjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkJ7QHQ26Yjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkJ7QHQ26Yjs.WebSocketRequestError; exports.boolToBytes = _chunkJ7QHQ26Yjs.boolToBytes; exports.boolToHex = _chunkJ7QHQ26Yjs.boolToHex; exports.bytesToBigint = _chunkJ7QHQ26Yjs.bytesToBigint; exports.bytesToBool = _chunkJ7QHQ26Yjs.bytesToBool; exports.bytesToHex = _chunkJ7QHQ26Yjs.bytesToHex; exports.bytesToNumber = _chunkJ7QHQ26Yjs.bytesToNumber; exports.bytesToString = _chunkJ7QHQ26Yjs.bytesToString; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createTransport = createTransport; exports.createWalletClient = createWalletClient; exports.custom = custom; exports.decodeAbi = _chunkJ7QHQ26Yjs.decodeAbi; exports.decodeErrorResult = _chunkJ7QHQ26Yjs.decodeErrorResult; exports.decodeEventLog = _chunkJ7QHQ26Yjs.decodeEventLog; exports.decodeFunctionData = _chunkJ7QHQ26Yjs.decodeFunctionData; exports.decodeFunctionResult = _chunkJ7QHQ26Yjs.decodeFunctionResult; exports.defineBlock = _chunkJ7QHQ26Yjs.defineBlock; exports.defineChain = _chunkJ7QHQ26Yjs.defineChain; exports.defineTransaction = _chunkJ7QHQ26Yjs.defineTransaction; exports.defineTransactionReceipt = _chunkJ7QHQ26Yjs.defineTransactionReceipt; exports.defineTransactionRequest = _chunkJ7QHQ26Yjs.defineTransactionRequest; exports.encodeAbi = _chunkJ7QHQ26Yjs.encodeAbi; exports.encodeDeployData = _chunkJ7QHQ26Yjs.encodeDeployData; exports.encodeErrorResult = _chunkJ7QHQ26Yjs.encodeErrorResult; exports.encodeEventTopics = _chunkJ7QHQ26Yjs.encodeEventTopics; exports.encodeFunctionData = _chunkJ7QHQ26Yjs.encodeFunctionData; exports.encodeFunctionResult = _chunkJ7QHQ26Yjs.encodeFunctionResult; exports.etherUnits = _chunkJ7QHQ26Yjs.etherUnits; exports.fallback = fallback; exports.formatBlock = _chunkJ7QHQ26Yjs.formatBlock; exports.formatEther = _chunkJ7QHQ26Yjs.formatEther; exports.formatGwei = _chunkJ7QHQ26Yjs.formatGwei; exports.formatTransaction = _chunkJ7QHQ26Yjs.formatTransaction; exports.formatTransactionRequest = _chunkJ7QHQ26Yjs.formatTransactionRequest; exports.formatUnit = _chunkJ7QHQ26Yjs.formatUnit; exports.fromBytes = _chunkJ7QHQ26Yjs.fromBytes; exports.fromHex = _chunkJ7QHQ26Yjs.fromHex; exports.fromRlp = _chunkJ7QHQ26Yjs.fromRlp; exports.getAbiItem = _chunkJ7QHQ26Yjs.getAbiItem; exports.getAddress = _chunkJ7QHQ26Yjs.getAddress; exports.getContractAddress = _chunkJ7QHQ26Yjs.getContractAddress; exports.getContractError = _chunkJ7QHQ26Yjs.getContractError; exports.getCreate2Address = _chunkJ7QHQ26Yjs.getCreate2Address; exports.getCreateAddress = _chunkJ7QHQ26Yjs.getCreateAddress; exports.getEventSelector = _chunkJ7QHQ26Yjs.getEventSelector; exports.getFunctionSelector = _chunkJ7QHQ26Yjs.getFunctionSelector; exports.gweiUnits = _chunkJ7QHQ26Yjs.gweiUnits; exports.hexToBigInt = _chunkJ7QHQ26Yjs.hexToBigInt; exports.hexToBool = _chunkJ7QHQ26Yjs.hexToBool; exports.hexToBytes = _chunkJ7QHQ26Yjs.hexToBytes; exports.hexToNumber = _chunkJ7QHQ26Yjs.hexToNumber; exports.hexToString = _chunkJ7QHQ26Yjs.hexToString; exports.http = http; exports.isAddress = _chunkJ7QHQ26Yjs.isAddress; exports.isAddressEqual = _chunkJ7QHQ26Yjs.isAddressEqual; exports.isBytes = _chunkJ7QHQ26Yjs.isBytes; exports.isHex = _chunkJ7QHQ26Yjs.isHex; exports.keccak256 = _chunkJ7QHQ26Yjs.keccak256; exports.labelhash = _chunkMYFKW55Ljs.labelhash; exports.multicall3Abi = _chunkJ7QHQ26Yjs.multicall3Abi; exports.namehash = _chunkMYFKW55Ljs.namehash; exports.numberToBytes = _chunkJ7QHQ26Yjs.numberToBytes; exports.numberToHex = _chunkJ7QHQ26Yjs.numberToHex; exports.pad = _chunkJ7QHQ26Yjs.pad; exports.padBytes = _chunkJ7QHQ26Yjs.padBytes; exports.padHex = _chunkJ7QHQ26Yjs.padHex; exports.parseEther = _chunkJ7QHQ26Yjs.parseEther; exports.parseGwei = _chunkJ7QHQ26Yjs.parseGwei; exports.parseUnit = _chunkJ7QHQ26Yjs.parseUnit; exports.size = _chunkJ7QHQ26Yjs.size; exports.slice = _chunkJ7QHQ26Yjs.slice; exports.sliceBytes = _chunkJ7QHQ26Yjs.sliceBytes; exports.sliceHex = _chunkJ7QHQ26Yjs.sliceHex; exports.stringToBytes = _chunkJ7QHQ26Yjs.stringToBytes; exports.stringToHex = _chunkJ7QHQ26Yjs.stringToHex; exports.stringify = _chunkJ7QHQ26Yjs.stringify; exports.toBytes = _chunkJ7QHQ26Yjs.toBytes; exports.toHex = _chunkJ7QHQ26Yjs.toHex; exports.toRlp = _chunkJ7QHQ26Yjs.toRlp; exports.transactionType = _chunkJ7QHQ26Yjs.transactionType; exports.trim = _chunkJ7QHQ26Yjs.trim; exports.webSocket = webSocket; exports.weiUnits = _chunkJ7QHQ26Yjs.weiUnits;
|
767
769
|
//# sourceMappingURL=index.js.map
|