viem 0.0.1-alpha.11 → 0.0.1-alpha.12
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/actions/index.js +3 -3
- package/dist/actions/index.mjs +2 -2
- package/dist/chains.js +5 -5
- package/dist/chains.mjs +1 -1
- package/dist/{chunk-35OJIFIW.js → chunk-A3PVAH22.js} +1 -2
- package/dist/{chunk-GXCYE2PD.js → chunk-A4O3JKF2.js} +11 -11
- package/dist/{chunk-JXGK2LUM.mjs → chunk-DPSKYDCG.mjs} +1 -1
- package/dist/{chunk-DY4MSK2M.mjs → chunk-ERPD74AT.mjs} +1 -2
- package/dist/{chunk-TP542F7H.mjs → chunk-PC3JNTPF.mjs} +1 -1
- package/dist/{chunk-PEAG3TIC.js → chunk-QO5C5Y2L.js} +65 -65
- package/dist/clients/index.js +3 -3
- package/dist/clients/index.mjs +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +3 -3
- package/dist/utils/index.js +2 -2
- package/dist/utils/index.mjs +1 -1
- package/package.json +6 -1
package/dist/actions/index.js
CHANGED
@@ -59,8 +59,8 @@
|
|
59
59
|
|
60
60
|
|
61
61
|
|
62
|
-
var
|
63
|
-
require('../chunk-
|
62
|
+
var _chunkQO5C5Y2Ljs = require('../chunk-QO5C5Y2L.js');
|
63
|
+
require('../chunk-A3PVAH22.js');
|
64
64
|
|
65
65
|
|
66
66
|
|
@@ -122,4 +122,4 @@ require('../chunk-35OJIFIW.js');
|
|
122
122
|
|
123
123
|
|
124
124
|
|
125
|
-
exports.addChain =
|
125
|
+
exports.addChain = _chunkQO5C5Y2Ljs.addChain; exports.call = _chunkQO5C5Y2Ljs.call; exports.callContract = _chunkQO5C5Y2Ljs.callContract; exports.createBlockFilter = _chunkQO5C5Y2Ljs.createBlockFilter; exports.createPendingTransactionFilter = _chunkQO5C5Y2Ljs.createPendingTransactionFilter; exports.dropTransaction = _chunkQO5C5Y2Ljs.dropTransaction; exports.estimateGas = _chunkQO5C5Y2Ljs.estimateGas; exports.getAccounts = _chunkQO5C5Y2Ljs.getAccounts; exports.getAutomine = _chunkQO5C5Y2Ljs.getAutomine; exports.getBalance = _chunkQO5C5Y2Ljs.getBalance; exports.getBlock = _chunkQO5C5Y2Ljs.getBlock; exports.getBlockNumber = _chunkQO5C5Y2Ljs.getBlockNumber; exports.getBlockNumberCache = _chunkQO5C5Y2Ljs.getBlockNumberCache; exports.getBlockTransactionCount = _chunkQO5C5Y2Ljs.getBlockTransactionCount; exports.getChainId = _chunkQO5C5Y2Ljs.getChainId; exports.getFeeHistory = _chunkQO5C5Y2Ljs.getFeeHistory; exports.getFilterChanges = _chunkQO5C5Y2Ljs.getFilterChanges; exports.getFilterLogs = _chunkQO5C5Y2Ljs.getFilterLogs; exports.getGasPrice = _chunkQO5C5Y2Ljs.getGasPrice; exports.getPermissions = _chunkQO5C5Y2Ljs.getPermissions; exports.getTransaction = _chunkQO5C5Y2Ljs.getTransaction; exports.getTransactionConfirmations = _chunkQO5C5Y2Ljs.getTransactionConfirmations; exports.getTransactionCount = _chunkQO5C5Y2Ljs.getTransactionCount; exports.getTransactionReceipt = _chunkQO5C5Y2Ljs.getTransactionReceipt; exports.getTxpoolContent = _chunkQO5C5Y2Ljs.getTxpoolContent; exports.getTxpoolStatus = _chunkQO5C5Y2Ljs.getTxpoolStatus; exports.impersonateAccount = _chunkQO5C5Y2Ljs.impersonateAccount; exports.increaseTime = _chunkQO5C5Y2Ljs.increaseTime; exports.inspectTxpool = _chunkQO5C5Y2Ljs.inspectTxpool; exports.mine = _chunkQO5C5Y2Ljs.mine; exports.removeBlockTimestampInterval = _chunkQO5C5Y2Ljs.removeBlockTimestampInterval; exports.requestAccounts = _chunkQO5C5Y2Ljs.requestAccounts; exports.requestPermissions = _chunkQO5C5Y2Ljs.requestPermissions; exports.reset = _chunkQO5C5Y2Ljs.reset; exports.revert = _chunkQO5C5Y2Ljs.revert; exports.sendTransaction = _chunkQO5C5Y2Ljs.sendTransaction; exports.sendUnsignedTransaction = _chunkQO5C5Y2Ljs.sendUnsignedTransaction; exports.setAutomine = _chunkQO5C5Y2Ljs.setAutomine; exports.setBalance = _chunkQO5C5Y2Ljs.setBalance; exports.setBlockGasLimit = _chunkQO5C5Y2Ljs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkQO5C5Y2Ljs.setBlockTimestampInterval; exports.setCode = _chunkQO5C5Y2Ljs.setCode; exports.setCoinbase = _chunkQO5C5Y2Ljs.setCoinbase; exports.setIntervalMining = _chunkQO5C5Y2Ljs.setIntervalMining; exports.setLoggingEnabled = _chunkQO5C5Y2Ljs.setLoggingEnabled; exports.setMinGasPrice = _chunkQO5C5Y2Ljs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkQO5C5Y2Ljs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkQO5C5Y2Ljs.setNextBlockTimestamp; exports.setNonce = _chunkQO5C5Y2Ljs.setNonce; exports.setStorageAt = _chunkQO5C5Y2Ljs.setStorageAt; exports.signMessage = _chunkQO5C5Y2Ljs.signMessage; exports.snapshot = _chunkQO5C5Y2Ljs.snapshot; exports.stopImpersonatingAccount = _chunkQO5C5Y2Ljs.stopImpersonatingAccount; exports.switchChain = _chunkQO5C5Y2Ljs.switchChain; exports.uninstallFilter = _chunkQO5C5Y2Ljs.uninstallFilter; exports.waitForTransactionReceipt = _chunkQO5C5Y2Ljs.waitForTransactionReceipt; exports.watchAsset = _chunkQO5C5Y2Ljs.watchAsset; exports.watchBlockNumber = _chunkQO5C5Y2Ljs.watchBlockNumber; exports.watchBlocks = _chunkQO5C5Y2Ljs.watchBlocks; exports.watchPendingTransactions = _chunkQO5C5Y2Ljs.watchPendingTransactions;
|
package/dist/actions/index.mjs
CHANGED
package/dist/chains.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
6
|
+
var _chunkA3PVAH22js = require('./chunk-A3PVAH22.js');
|
7
7
|
|
8
8
|
// src/chains.ts
|
9
9
|
|
@@ -48,13 +48,13 @@ function defineFormatter({
|
|
48
48
|
};
|
49
49
|
};
|
50
50
|
}
|
51
|
-
var defineBlock = defineFormatter({ format:
|
52
|
-
var defineTransaction = defineFormatter({ format:
|
51
|
+
var defineBlock = defineFormatter({ format: _chunkA3PVAH22js.formatBlock });
|
52
|
+
var defineTransaction = defineFormatter({ format: _chunkA3PVAH22js.formatTransaction });
|
53
53
|
var defineTransactionRequest = defineFormatter({
|
54
|
-
format:
|
54
|
+
format: _chunkA3PVAH22js.formatTransactionRequest
|
55
55
|
});
|
56
56
|
var defineTransactionReceipt = defineFormatter({
|
57
|
-
format:
|
57
|
+
format: _chunkA3PVAH22js.formatTransactionReceipt
|
58
58
|
});
|
59
59
|
var arbitrumGoerli = defineChain(_chains.arbitrumGoerli);
|
60
60
|
var arbitrum = defineChain(_chains.arbitrum);
|
package/dist/chains.mjs
CHANGED
@@ -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.12",
|
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",
|
@@ -26,7 +26,6 @@ var package_default = {
|
|
26
26
|
playground: "pnpm --filter playground-dev dev",
|
27
27
|
"playground:benchmark": "pnpm --filter playground-benchmark dev",
|
28
28
|
postinstall: "pnpm dev",
|
29
|
-
postpublish: "pnpm ts-node scripts/restore-package-json.ts",
|
30
29
|
preinstall: "npx only-allow pnpm",
|
31
30
|
prepublishOnly: "pnpm ts-node scripts/generate-package-json.ts",
|
32
31
|
prepare: "npx simple-git-hooks",
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
|
5
5
|
|
6
|
-
var
|
6
|
+
var _chunkA3PVAH22js = require('./chunk-A3PVAH22.js');
|
7
7
|
|
8
8
|
// src/clients/transports/createTransport.ts
|
9
9
|
function createTransport(config, value) {
|
@@ -60,13 +60,13 @@ function http(url, { key = "http", name = "HTTP JSON-RPC" } = {}) {
|
|
60
60
|
return ({ chain }) => {
|
61
61
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
|
62
62
|
if (!url_)
|
63
|
-
throw new (0,
|
63
|
+
throw new (0, _chunkA3PVAH22js.UrlRequiredError)();
|
64
64
|
return createTransport(
|
65
65
|
{
|
66
66
|
key,
|
67
67
|
name,
|
68
68
|
async request({ method, params }) {
|
69
|
-
const { result } = await
|
69
|
+
const { result } = await _chunkA3PVAH22js.rpc.http(url_, {
|
70
70
|
body: {
|
71
71
|
method,
|
72
72
|
params
|
@@ -91,14 +91,14 @@ function webSocket(url, {
|
|
91
91
|
return ({ chain }) => {
|
92
92
|
const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
|
93
93
|
if (!url_)
|
94
|
-
throw new (0,
|
94
|
+
throw new (0, _chunkA3PVAH22js.UrlRequiredError)();
|
95
95
|
return createTransport(
|
96
96
|
{
|
97
97
|
key,
|
98
98
|
name,
|
99
99
|
async request({ method, params }) {
|
100
|
-
const socket = await
|
101
|
-
const { result } = await
|
100
|
+
const socket = await _chunkA3PVAH22js.getSocket.call(void 0, url_);
|
101
|
+
const { result } = await _chunkA3PVAH22js.rpc.webSocketAsync(socket, {
|
102
102
|
body: { method, params }
|
103
103
|
});
|
104
104
|
return result;
|
@@ -107,12 +107,12 @@ function webSocket(url, {
|
|
107
107
|
},
|
108
108
|
{
|
109
109
|
getSocket() {
|
110
|
-
return
|
110
|
+
return _chunkA3PVAH22js.getSocket.call(void 0, url_);
|
111
111
|
},
|
112
112
|
async subscribe({ params, onData, onError }) {
|
113
|
-
const socket = await
|
113
|
+
const socket = await _chunkA3PVAH22js.getSocket.call(void 0, url_);
|
114
114
|
const { result: subscriptionId } = await new Promise(
|
115
|
-
(resolve, reject) =>
|
115
|
+
(resolve, reject) => _chunkA3PVAH22js.rpc.webSocket(socket, {
|
116
116
|
body: {
|
117
117
|
method: "eth_subscribe",
|
118
118
|
params
|
@@ -134,7 +134,7 @@ function webSocket(url, {
|
|
134
134
|
subscriptionId,
|
135
135
|
async unsubscribe() {
|
136
136
|
return new Promise(
|
137
|
-
(resolve, reject) =>
|
137
|
+
(resolve, reject) => _chunkA3PVAH22js.rpc.webSocket(socket, {
|
138
138
|
body: {
|
139
139
|
method: "eth_unsubscribe",
|
140
140
|
params: [subscriptionId]
|
@@ -181,7 +181,7 @@ function createClient({
|
|
181
181
|
key,
|
182
182
|
name,
|
183
183
|
pollingInterval,
|
184
|
-
request:
|
184
|
+
request: _chunkA3PVAH22js.buildRequest.call(void 0, config.request),
|
185
185
|
transport: { ...config, ...value },
|
186
186
|
type,
|
187
187
|
uid: uid()
|
@@ -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.12",
|
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",
|
@@ -26,7 +26,6 @@ var package_default = {
|
|
26
26
|
playground: "pnpm --filter playground-dev dev",
|
27
27
|
"playground:benchmark": "pnpm --filter playground-benchmark dev",
|
28
28
|
postinstall: "pnpm dev",
|
29
|
-
postpublish: "pnpm ts-node scripts/restore-package-json.ts",
|
30
29
|
preinstall: "npx only-allow pnpm",
|
31
30
|
prepublishOnly: "pnpm ts-node scripts/generate-package-json.ts",
|
32
31
|
prepare: "npx simple-git-hooks",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
var
|
26
|
+
var _chunkA3PVAH22js = require('./chunk-A3PVAH22.js');
|
27
27
|
|
28
28
|
// src/actions/public/call.ts
|
29
29
|
async function call(client, {
|
@@ -43,9 +43,9 @@ async function call(client, {
|
|
43
43
|
...rest
|
44
44
|
}) {
|
45
45
|
if (maxFeePerGas !== void 0 && maxPriorityFeePerGas !== void 0 && maxFeePerGas < maxPriorityFeePerGas)
|
46
|
-
throw new (0,
|
47
|
-
const blockNumberHex = blockNumber ?
|
48
|
-
const request_ =
|
46
|
+
throw new (0, _chunkA3PVAH22js.InvalidGasArgumentsError)();
|
47
|
+
const blockNumberHex = blockNumber ? _chunkA3PVAH22js.numberToHex.call(void 0, blockNumber) : void 0;
|
48
|
+
const request_ = _chunkA3PVAH22js.format.call(void 0,
|
49
49
|
{
|
50
50
|
from,
|
51
51
|
accessList,
|
@@ -60,7 +60,7 @@ async function call(client, {
|
|
60
60
|
...rest
|
61
61
|
},
|
62
62
|
{
|
63
|
-
formatter: _optionalChain([chain, 'optionalAccess', _ => _.formatters, 'optionalAccess', _2 => _2.transactionRequest]) ||
|
63
|
+
formatter: _optionalChain([chain, 'optionalAccess', _ => _.formatters, 'optionalAccess', _2 => _2.transactionRequest]) || _chunkA3PVAH22js.formatTransactionRequest
|
64
64
|
}
|
65
65
|
);
|
66
66
|
const response = await client.request({
|
@@ -80,7 +80,7 @@ async function callContract(client, {
|
|
80
80
|
functionName,
|
81
81
|
...callRequest
|
82
82
|
}) {
|
83
|
-
const calldata =
|
83
|
+
const calldata = _chunkA3PVAH22js.encodeFunctionData.call(void 0, {
|
84
84
|
abi,
|
85
85
|
args,
|
86
86
|
functionName
|
@@ -91,13 +91,13 @@ async function callContract(client, {
|
|
91
91
|
to: address,
|
92
92
|
...callRequest
|
93
93
|
});
|
94
|
-
return
|
94
|
+
return _chunkA3PVAH22js.decodeFunctionResult.call(void 0, {
|
95
95
|
abi,
|
96
96
|
functionName,
|
97
97
|
data: data || "0x"
|
98
98
|
});
|
99
99
|
} catch (err) {
|
100
|
-
throw
|
100
|
+
throw _chunkA3PVAH22js.getContractError.call(void 0, err, {
|
101
101
|
abi,
|
102
102
|
address,
|
103
103
|
args,
|
@@ -136,16 +136,16 @@ async function estimateGas(client, {
|
|
136
136
|
to,
|
137
137
|
value
|
138
138
|
}) {
|
139
|
-
const blockNumberHex = blockNumber ?
|
139
|
+
const blockNumberHex = blockNumber ? _chunkA3PVAH22js.numberToHex.call(void 0, blockNumber) : void 0;
|
140
140
|
const parameters = {
|
141
141
|
data,
|
142
142
|
from,
|
143
|
-
gas: gas ?
|
144
|
-
gasPrice: gasPrice ?
|
145
|
-
maxFeePerGas: maxFeePerGas ?
|
146
|
-
maxPriorityFeePerGas: maxPriorityFeePerGas ?
|
143
|
+
gas: gas ? _chunkA3PVAH22js.numberToHex.call(void 0, gas) : void 0,
|
144
|
+
gasPrice: gasPrice ? _chunkA3PVAH22js.numberToHex.call(void 0, gasPrice) : void 0,
|
145
|
+
maxFeePerGas: maxFeePerGas ? _chunkA3PVAH22js.numberToHex.call(void 0, maxFeePerGas) : void 0,
|
146
|
+
maxPriorityFeePerGas: maxPriorityFeePerGas ? _chunkA3PVAH22js.numberToHex.call(void 0, maxPriorityFeePerGas) : void 0,
|
147
147
|
to,
|
148
|
-
value: value ?
|
148
|
+
value: value ? _chunkA3PVAH22js.numberToHex.call(void 0, value) : void 0
|
149
149
|
};
|
150
150
|
const balance = await client.request({
|
151
151
|
method: "eth_estimateGas",
|
@@ -156,7 +156,7 @@ async function estimateGas(client, {
|
|
156
156
|
|
157
157
|
// src/actions/public/getBalance.ts
|
158
158
|
async function getBalance(client, { address, blockNumber, blockTag = "latest" }) {
|
159
|
-
const blockNumberHex = blockNumber ?
|
159
|
+
const blockNumberHex = blockNumber ? _chunkA3PVAH22js.numberToHex.call(void 0, blockNumber) : void 0;
|
160
160
|
const balance = await client.request({
|
161
161
|
method: "eth_getBalance",
|
162
162
|
params: [address, blockNumberHex || blockTag]
|
@@ -171,7 +171,7 @@ async function getBlock(client, {
|
|
171
171
|
blockTag = "latest",
|
172
172
|
includeTransactions = false
|
173
173
|
} = {}) {
|
174
|
-
const blockNumberHex = blockNumber !== void 0 ?
|
174
|
+
const blockNumberHex = blockNumber !== void 0 ? _chunkA3PVAH22js.numberToHex.call(void 0, blockNumber) : void 0;
|
175
175
|
let block = null;
|
176
176
|
if (blockHash) {
|
177
177
|
block = await client.request({
|
@@ -185,19 +185,19 @@ async function getBlock(client, {
|
|
185
185
|
});
|
186
186
|
}
|
187
187
|
if (!block)
|
188
|
-
throw new (0,
|
189
|
-
return
|
190
|
-
formatter: _optionalChain([client, 'access', _3 => _3.chain, 'optionalAccess', _4 => _4.formatters, 'optionalAccess', _5 => _5.block]) ||
|
188
|
+
throw new (0, _chunkA3PVAH22js.BlockNotFoundError)({ blockHash, blockNumber });
|
189
|
+
return _chunkA3PVAH22js.format.call(void 0, block, {
|
190
|
+
formatter: _optionalChain([client, 'access', _3 => _3.chain, 'optionalAccess', _4 => _4.formatters, 'optionalAccess', _5 => _5.block]) || _chunkA3PVAH22js.formatBlock
|
191
191
|
});
|
192
192
|
}
|
193
193
|
|
194
194
|
// src/actions/public/getBlockNumber.ts
|
195
195
|
var cacheKey = (id) => `blockNumber.${id}`;
|
196
196
|
function getBlockNumberCache(id) {
|
197
|
-
return
|
197
|
+
return _chunkA3PVAH22js.getCache.call(void 0, cacheKey(id));
|
198
198
|
}
|
199
199
|
async function getBlockNumber(client, { maxAge = client.pollingInterval } = {}) {
|
200
|
-
const blockNumberHex = await
|
200
|
+
const blockNumberHex = await _chunkA3PVAH22js.withCache.call(void 0,
|
201
201
|
() => client.request({
|
202
202
|
method: "eth_blockNumber"
|
203
203
|
}),
|
@@ -212,7 +212,7 @@ async function getBlockTransactionCount(client, {
|
|
212
212
|
blockNumber,
|
213
213
|
blockTag = "latest"
|
214
214
|
} = {}) {
|
215
|
-
const blockNumberHex = blockNumber !== void 0 ?
|
215
|
+
const blockNumberHex = blockNumber !== void 0 ? _chunkA3PVAH22js.numberToHex.call(void 0, blockNumber) : void 0;
|
216
216
|
let count = null;
|
217
217
|
if (blockHash) {
|
218
218
|
count = await client.request({
|
@@ -225,13 +225,13 @@ async function getBlockTransactionCount(client, {
|
|
225
225
|
params: [blockNumberHex || blockTag]
|
226
226
|
});
|
227
227
|
}
|
228
|
-
return
|
228
|
+
return _chunkA3PVAH22js.hexToNumber.call(void 0, count);
|
229
229
|
}
|
230
230
|
|
231
231
|
// src/actions/public/getChainId.ts
|
232
232
|
async function getChainId(client) {
|
233
233
|
const chainIdHex = await client.request({ method: "eth_chainId" });
|
234
|
-
return
|
234
|
+
return _chunkA3PVAH22js.hexToNumber.call(void 0, chainIdHex);
|
235
235
|
}
|
236
236
|
|
237
237
|
// src/actions/public/getFeeHistory.ts
|
@@ -241,16 +241,16 @@ async function getFeeHistory(client, {
|
|
241
241
|
blockTag = "latest",
|
242
242
|
rewardPercentiles
|
243
243
|
}) {
|
244
|
-
const blockNumberHex = blockNumber ?
|
244
|
+
const blockNumberHex = blockNumber ? _chunkA3PVAH22js.numberToHex.call(void 0, blockNumber) : void 0;
|
245
245
|
const feeHistory = await client.request({
|
246
246
|
method: "eth_feeHistory",
|
247
247
|
params: [
|
248
|
-
|
248
|
+
_chunkA3PVAH22js.numberToHex.call(void 0, blockCount),
|
249
249
|
blockNumberHex || blockTag,
|
250
250
|
rewardPercentiles
|
251
251
|
]
|
252
252
|
});
|
253
|
-
return
|
253
|
+
return _chunkA3PVAH22js.formatFeeHistory.call(void 0, feeHistory);
|
254
254
|
}
|
255
255
|
|
256
256
|
// src/actions/public/getFilterChanges.ts
|
@@ -260,7 +260,7 @@ async function getFilterChanges(client, { filter }) {
|
|
260
260
|
params: [filter.id]
|
261
261
|
});
|
262
262
|
return logs.map(
|
263
|
-
(log) => typeof log === "string" ? log :
|
263
|
+
(log) => typeof log === "string" ? log : _chunkA3PVAH22js.formatLog.call(void 0, log)
|
264
264
|
);
|
265
265
|
}
|
266
266
|
|
@@ -270,7 +270,7 @@ async function getFilterLogs(client, { filter }) {
|
|
270
270
|
method: "eth_getFilterLogs",
|
271
271
|
params: [filter.id]
|
272
272
|
});
|
273
|
-
return logs.map(
|
273
|
+
return logs.map(_chunkA3PVAH22js.formatLog);
|
274
274
|
}
|
275
275
|
|
276
276
|
// src/actions/public/getGasPrice.ts
|
@@ -289,7 +289,7 @@ async function getTransaction(client, {
|
|
289
289
|
hash,
|
290
290
|
index
|
291
291
|
}) {
|
292
|
-
const blockNumberHex = blockNumber !== void 0 ?
|
292
|
+
const blockNumberHex = blockNumber !== void 0 ? _chunkA3PVAH22js.numberToHex.call(void 0, blockNumber) : void 0;
|
293
293
|
let transaction = null;
|
294
294
|
if (hash) {
|
295
295
|
transaction = await client.request({
|
@@ -299,24 +299,24 @@ async function getTransaction(client, {
|
|
299
299
|
} else if (blockHash) {
|
300
300
|
transaction = await client.request({
|
301
301
|
method: "eth_getTransactionByBlockHashAndIndex",
|
302
|
-
params: [blockHash,
|
302
|
+
params: [blockHash, _chunkA3PVAH22js.numberToHex.call(void 0, index)]
|
303
303
|
});
|
304
304
|
} else if (blockNumberHex || blockTag) {
|
305
305
|
transaction = await client.request({
|
306
306
|
method: "eth_getTransactionByBlockNumberAndIndex",
|
307
|
-
params: [blockNumberHex || blockTag,
|
307
|
+
params: [blockNumberHex || blockTag, _chunkA3PVAH22js.numberToHex.call(void 0, index)]
|
308
308
|
});
|
309
309
|
}
|
310
310
|
if (!transaction)
|
311
|
-
throw new (0,
|
311
|
+
throw new (0, _chunkA3PVAH22js.TransactionNotFoundError)({
|
312
312
|
blockHash,
|
313
313
|
blockNumber,
|
314
314
|
blockTag,
|
315
315
|
hash,
|
316
316
|
index
|
317
317
|
});
|
318
|
-
return
|
319
|
-
formatter: _optionalChain([client, 'access', _6 => _6.chain, 'optionalAccess', _7 => _7.formatters, 'optionalAccess', _8 => _8.transaction]) ||
|
318
|
+
return _chunkA3PVAH22js.format.call(void 0, transaction, {
|
319
|
+
formatter: _optionalChain([client, 'access', _6 => _6.chain, 'optionalAccess', _7 => _7.formatters, 'optionalAccess', _8 => _8.transaction]) || _chunkA3PVAH22js.formatTransaction
|
320
320
|
});
|
321
321
|
}
|
322
322
|
|
@@ -336,9 +336,9 @@ async function getTransactionConfirmations(client, { hash, transactionReceipt })
|
|
336
336
|
async function getTransactionCount(client, { address, blockTag = "latest", blockNumber }) {
|
337
337
|
const count = await client.request({
|
338
338
|
method: "eth_getTransactionCount",
|
339
|
-
params: [address, blockNumber ?
|
339
|
+
params: [address, blockNumber ? _chunkA3PVAH22js.numberToHex.call(void 0, blockNumber) : blockTag]
|
340
340
|
});
|
341
|
-
return
|
341
|
+
return _chunkA3PVAH22js.hexToNumber.call(void 0, count);
|
342
342
|
}
|
343
343
|
|
344
344
|
// src/actions/public/getTransactionReceipt.ts
|
@@ -348,9 +348,9 @@ async function getTransactionReceipt(client, { hash }) {
|
|
348
348
|
params: [hash]
|
349
349
|
});
|
350
350
|
if (!receipt)
|
351
|
-
throw new (0,
|
352
|
-
return
|
353
|
-
formatter: _optionalChain([client, 'access', _11 => _11.chain, 'optionalAccess', _12 => _12.formatters, 'optionalAccess', _13 => _13.transactionReceipt]) ||
|
351
|
+
throw new (0, _chunkA3PVAH22js.TransactionReceiptNotFoundError)({ hash });
|
352
|
+
return _chunkA3PVAH22js.format.call(void 0, receipt, {
|
353
|
+
formatter: _optionalChain([client, 'access', _11 => _11.chain, 'optionalAccess', _12 => _12.formatters, 'optionalAccess', _13 => _13.transactionReceipt]) || _chunkA3PVAH22js.formatTransactionReceipt
|
354
354
|
});
|
355
355
|
}
|
356
356
|
|
@@ -423,7 +423,7 @@ async function waitForTransactionReceipt(client, {
|
|
423
423
|
return new Promise((resolve, reject) => {
|
424
424
|
if (timeout)
|
425
425
|
setTimeout(
|
426
|
-
() => reject(new (0,
|
426
|
+
() => reject(new (0, _chunkA3PVAH22js.WaitForTransactionReceiptTimeoutError)({ hash })),
|
427
427
|
timeout
|
428
428
|
);
|
429
429
|
const unobserve = observe(
|
@@ -453,7 +453,7 @@ async function waitForTransactionReceipt(client, {
|
|
453
453
|
return;
|
454
454
|
done(() => emit.resolve(receipt));
|
455
455
|
} catch (err) {
|
456
|
-
if (transaction && (err instanceof
|
456
|
+
if (transaction && (err instanceof _chunkA3PVAH22js.TransactionNotFoundError || err instanceof _chunkA3PVAH22js.TransactionReceiptNotFoundError)) {
|
457
457
|
replacedTransaction = transaction;
|
458
458
|
const block = await getBlock(client, {
|
459
459
|
blockNumber,
|
@@ -505,12 +505,12 @@ function poll(fn, { emitOnBegin, initialWaitTime, interval }) {
|
|
505
505
|
if (emitOnBegin)
|
506
506
|
data = await fn({ unpoll: unwatch });
|
507
507
|
const initialWait = await _asyncNullishCoalesce(await _optionalChain([initialWaitTime, 'optionalCall', _19 => _19(data)]), async () => ( interval));
|
508
|
-
await
|
508
|
+
await _chunkA3PVAH22js.wait.call(void 0, initialWait);
|
509
509
|
const poll2 = async () => {
|
510
510
|
if (!active)
|
511
511
|
return;
|
512
512
|
await fn({ unpoll: unwatch });
|
513
|
-
await
|
513
|
+
await _chunkA3PVAH22js.wait.call(void 0, interval);
|
514
514
|
poll2();
|
515
515
|
};
|
516
516
|
poll2();
|
@@ -700,8 +700,8 @@ async function getTxpoolStatus(client) {
|
|
700
700
|
method: "txpool_status"
|
701
701
|
});
|
702
702
|
return {
|
703
|
-
pending:
|
704
|
-
queued:
|
703
|
+
pending: _chunkA3PVAH22js.hexToNumber.call(void 0, pending),
|
704
|
+
queued: _chunkA3PVAH22js.hexToNumber.call(void 0, queued)
|
705
705
|
};
|
706
706
|
}
|
707
707
|
|
@@ -717,7 +717,7 @@ async function impersonateAccount(client, { address }) {
|
|
717
717
|
async function increaseTime(client, { seconds }) {
|
718
718
|
return await client.request({
|
719
719
|
method: "evm_increaseTime",
|
720
|
-
params: [
|
720
|
+
params: [_chunkA3PVAH22js.numberToHex.call(void 0, seconds)]
|
721
721
|
});
|
722
722
|
}
|
723
723
|
|
@@ -732,7 +732,7 @@ async function inspectTxpool(client) {
|
|
732
732
|
async function mine(client, { blocks, interval }) {
|
733
733
|
return await client.request({
|
734
734
|
method: `${client.mode}_mine`,
|
735
|
-
params: [
|
735
|
+
params: [_chunkA3PVAH22js.numberToHex.call(void 0, blocks), _chunkA3PVAH22js.numberToHex.call(void 0, interval || 0)]
|
736
736
|
});
|
737
737
|
}
|
738
738
|
|
@@ -761,7 +761,7 @@ async function revert(client, { id }) {
|
|
761
761
|
|
762
762
|
// src/actions/test/sendUnsignedTransaction.ts
|
763
763
|
async function sendUnsignedTransaction(client, request) {
|
764
|
-
const request_ =
|
764
|
+
const request_ = _chunkA3PVAH22js.formatTransactionRequest.call(void 0, request);
|
765
765
|
const hash = await client.request({
|
766
766
|
method: "eth_sendUnsignedTransaction",
|
767
767
|
params: [request_]
|
@@ -781,7 +781,7 @@ async function setAutomine(client, enabled) {
|
|
781
781
|
async function setBalance(client, { address, value }) {
|
782
782
|
return await client.request({
|
783
783
|
method: `${client.mode}_setBalance`,
|
784
|
-
params: [address,
|
784
|
+
params: [address, _chunkA3PVAH22js.numberToHex.call(void 0, value)]
|
785
785
|
});
|
786
786
|
}
|
787
787
|
|
@@ -789,7 +789,7 @@ async function setBalance(client, { address, value }) {
|
|
789
789
|
async function setBlockGasLimit(client, { gasLimit }) {
|
790
790
|
return await client.request({
|
791
791
|
method: "evm_setBlockGasLimit",
|
792
|
-
params: [
|
792
|
+
params: [_chunkA3PVAH22js.numberToHex.call(void 0, gasLimit)]
|
793
793
|
});
|
794
794
|
}
|
795
795
|
|
@@ -837,7 +837,7 @@ async function setLoggingEnabled(client, enabled) {
|
|
837
837
|
async function setMinGasPrice(client, { gasPrice }) {
|
838
838
|
return await client.request({
|
839
839
|
method: `${client.mode}_setMinGasPrice`,
|
840
|
-
params: [
|
840
|
+
params: [_chunkA3PVAH22js.numberToHex.call(void 0, gasPrice)]
|
841
841
|
});
|
842
842
|
}
|
843
843
|
|
@@ -845,7 +845,7 @@ async function setMinGasPrice(client, { gasPrice }) {
|
|
845
845
|
async function setNextBlockBaseFeePerGas(client, { baseFeePerGas }) {
|
846
846
|
return await client.request({
|
847
847
|
method: `${client.mode}_setNextBlockBaseFeePerGas`,
|
848
|
-
params: [
|
848
|
+
params: [_chunkA3PVAH22js.numberToHex.call(void 0, baseFeePerGas)]
|
849
849
|
});
|
850
850
|
}
|
851
851
|
|
@@ -853,7 +853,7 @@ async function setNextBlockBaseFeePerGas(client, { baseFeePerGas }) {
|
|
853
853
|
async function setNextBlockTimestamp(client, { timestamp }) {
|
854
854
|
return await client.request({
|
855
855
|
method: "evm_setNextBlockTimestamp",
|
856
|
-
params: [
|
856
|
+
params: [_chunkA3PVAH22js.numberToHex.call(void 0, timestamp)]
|
857
857
|
});
|
858
858
|
}
|
859
859
|
|
@@ -861,7 +861,7 @@ async function setNextBlockTimestamp(client, { timestamp }) {
|
|
861
861
|
async function setNonce(client, { address, nonce }) {
|
862
862
|
return await client.request({
|
863
863
|
method: `${client.mode}_setNonce`,
|
864
|
-
params: [address,
|
864
|
+
params: [address, _chunkA3PVAH22js.numberToHex.call(void 0, nonce)]
|
865
865
|
});
|
866
866
|
}
|
867
867
|
|
@@ -871,7 +871,7 @@ async function setStorageAt(client, { address, index, value }) {
|
|
871
871
|
method: `${client.mode}_setStorageAt`,
|
872
872
|
params: [
|
873
873
|
address,
|
874
|
-
typeof index === "number" ?
|
874
|
+
typeof index === "number" ? _chunkA3PVAH22js.numberToHex.call(void 0, index) : index,
|
875
875
|
value
|
876
876
|
]
|
877
877
|
});
|
@@ -899,7 +899,7 @@ async function addChain(client, chain) {
|
|
899
899
|
method: "wallet_addEthereumChain",
|
900
900
|
params: [
|
901
901
|
{
|
902
|
-
chainId:
|
902
|
+
chainId: _chunkA3PVAH22js.numberToHex.call(void 0, id),
|
903
903
|
chainName: name,
|
904
904
|
nativeCurrency,
|
905
905
|
rpcUrls: rpcUrls.default.http,
|
@@ -912,7 +912,7 @@ async function addChain(client, chain) {
|
|
912
912
|
// src/actions/wallet/getAccounts.ts
|
913
913
|
async function getAccounts(client) {
|
914
914
|
const addresses = await client.request({ method: "eth_accounts" });
|
915
|
-
return addresses.map((address) =>
|
915
|
+
return addresses.map((address) => _chunkA3PVAH22js.checksumAddress.call(void 0, address));
|
916
916
|
}
|
917
917
|
|
918
918
|
// src/actions/wallet/getPermissions.ts
|
@@ -924,7 +924,7 @@ async function getPermissions(client) {
|
|
924
924
|
// src/actions/wallet/requestAccounts.ts
|
925
925
|
async function requestAccounts(client) {
|
926
926
|
const addresses = await client.request({ method: "eth_requestAccounts" });
|
927
|
-
return addresses.map((address) =>
|
927
|
+
return addresses.map((address) => _chunkA3PVAH22js.getAddress.call(void 0, address));
|
928
928
|
}
|
929
929
|
|
930
930
|
// src/actions/wallet/requestPermissions.ts
|
@@ -951,8 +951,8 @@ async function sendTransaction(client, {
|
|
951
951
|
...rest
|
952
952
|
}) {
|
953
953
|
if (maxFeePerGas !== void 0 && maxPriorityFeePerGas !== void 0 && maxFeePerGas < maxPriorityFeePerGas)
|
954
|
-
throw new (0,
|
955
|
-
const request_ =
|
954
|
+
throw new (0, _chunkA3PVAH22js.InvalidGasArgumentsError)();
|
955
|
+
const request_ = _chunkA3PVAH22js.format.call(void 0,
|
956
956
|
{
|
957
957
|
from,
|
958
958
|
accessList,
|
@@ -967,7 +967,7 @@ async function sendTransaction(client, {
|
|
967
967
|
...rest
|
968
968
|
},
|
969
969
|
{
|
970
|
-
formatter: _optionalChain([chain, 'optionalAccess', _28 => _28.formatters, 'optionalAccess', _29 => _29.transactionRequest]) ||
|
970
|
+
formatter: _optionalChain([chain, 'optionalAccess', _28 => _28.formatters, 'optionalAccess', _29 => _29.transactionRequest]) || _chunkA3PVAH22js.formatTransactionRequest
|
971
971
|
}
|
972
972
|
);
|
973
973
|
const hash = await client.request({
|
@@ -982,7 +982,7 @@ async function signMessage(client, { from, data: data_ }) {
|
|
982
982
|
let data;
|
983
983
|
if (typeof data_ === "string") {
|
984
984
|
if (!data_.startsWith("0x"))
|
985
|
-
throw new (0,
|
985
|
+
throw new (0, _chunkA3PVAH22js.BaseError)(
|
986
986
|
`data ("${data_}") must be a hex value. Encode it first to a hex with the \`encodeHex\` util.`,
|
987
987
|
{
|
988
988
|
docsPath: "/TODO"
|
@@ -990,7 +990,7 @@ async function signMessage(client, { from, data: data_ }) {
|
|
990
990
|
);
|
991
991
|
data = data_;
|
992
992
|
} else {
|
993
|
-
data =
|
993
|
+
data = _chunkA3PVAH22js.encodeHex.call(void 0, data_);
|
994
994
|
}
|
995
995
|
const signed = await client.request({
|
996
996
|
method: "personal_sign",
|
@@ -1005,7 +1005,7 @@ async function switchChain(client, { id }) {
|
|
1005
1005
|
method: "wallet_switchEthereumChain",
|
1006
1006
|
params: [
|
1007
1007
|
{
|
1008
|
-
chainId:
|
1008
|
+
chainId: _chunkA3PVAH22js.numberToHex.call(void 0, id)
|
1009
1009
|
}
|
1010
1010
|
]
|
1011
1011
|
});
|
package/dist/clients/index.js
CHANGED
@@ -8,8 +8,8 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
-
var
|
12
|
-
require('../chunk-
|
11
|
+
var _chunkA4O3JKF2js = require('../chunk-A4O3JKF2.js');
|
12
|
+
require('../chunk-A3PVAH22.js');
|
13
13
|
|
14
14
|
|
15
15
|
|
@@ -20,4 +20,4 @@ require('../chunk-35OJIFIW.js');
|
|
20
20
|
|
21
21
|
|
22
22
|
|
23
|
-
exports.createClient =
|
23
|
+
exports.createClient = _chunkA4O3JKF2js.createClient; exports.createPublicClient = _chunkA4O3JKF2js.createPublicClient; exports.createTestClient = _chunkA4O3JKF2js.createTestClient; exports.createTransport = _chunkA4O3JKF2js.createTransport; exports.createWalletClient = _chunkA4O3JKF2js.createWalletClient; exports.custom = _chunkA4O3JKF2js.custom; exports.fallback = _chunkA4O3JKF2js.fallback; exports.http = _chunkA4O3JKF2js.http; exports.webSocket = _chunkA4O3JKF2js.webSocket;
|
package/dist/clients/index.mjs
CHANGED
package/dist/index.js
CHANGED
@@ -58,7 +58,7 @@
|
|
58
58
|
|
59
59
|
|
60
60
|
|
61
|
-
var
|
61
|
+
var _chunkQO5C5Y2Ljs = require('./chunk-QO5C5Y2L.js');
|
62
62
|
|
63
63
|
|
64
64
|
|
@@ -69,7 +69,7 @@ var _chunkPEAG3TICjs = require('./chunk-PEAG3TIC.js');
|
|
69
69
|
|
70
70
|
|
71
71
|
|
72
|
-
var
|
72
|
+
var _chunkA4O3JKF2js = require('./chunk-A4O3JKF2.js');
|
73
73
|
|
74
74
|
|
75
75
|
|
@@ -186,7 +186,7 @@ var _chunkGXCYE2PDjs = require('./chunk-GXCYE2PD.js');
|
|
186
186
|
|
187
187
|
|
188
188
|
|
189
|
-
var
|
189
|
+
var _chunkA3PVAH22js = require('./chunk-A3PVAH22.js');
|
190
190
|
|
191
191
|
|
192
192
|
|
@@ -371,4 +371,4 @@ var _chunk35OJIFIWjs = require('./chunk-35OJIFIW.js');
|
|
371
371
|
|
372
372
|
|
373
373
|
|
374
|
-
exports.AbiConstructorNotFoundError = _chunk35OJIFIWjs.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunk35OJIFIWjs.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunk35OJIFIWjs.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunk35OJIFIWjs.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunk35OJIFIWjs.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunk35OJIFIWjs.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunk35OJIFIWjs.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunk35OJIFIWjs.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunk35OJIFIWjs.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunk35OJIFIWjs.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunk35OJIFIWjs.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunk35OJIFIWjs.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunk35OJIFIWjs.BaseError; exports.BlockNotFoundError = _chunk35OJIFIWjs.BlockNotFoundError; exports.DataLengthTooLongError = _chunk35OJIFIWjs.DataLengthTooLongError; exports.DataLengthTooShortError = _chunk35OJIFIWjs.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunk35OJIFIWjs.FilterTypeNotSupportedError; exports.HttpRequestError = _chunk35OJIFIWjs.HttpRequestError; exports.InternalRpcError = _chunk35OJIFIWjs.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunk35OJIFIWjs.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunk35OJIFIWjs.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunk35OJIFIWjs.InvalidAddressError; exports.InvalidArrayError = _chunk35OJIFIWjs.InvalidArrayError; exports.InvalidBytesBooleanError = _chunk35OJIFIWjs.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunk35OJIFIWjs.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunk35OJIFIWjs.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunk35OJIFIWjs.InvalidHexBooleanError; exports.InvalidHexValueError = _chunk35OJIFIWjs.InvalidHexValueError; exports.InvalidInputRpcError = _chunk35OJIFIWjs.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunk35OJIFIWjs.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunk35OJIFIWjs.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunk35OJIFIWjs.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunk35OJIFIWjs.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunk35OJIFIWjs.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunk35OJIFIWjs.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunk35OJIFIWjs.OffsetOutOfBoundsError; exports.ParseRpcError = _chunk35OJIFIWjs.ParseRpcError; exports.RequestError = _chunk35OJIFIWjs.RequestError; exports.ResourceNotFoundRpcError = _chunk35OJIFIWjs.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunk35OJIFIWjs.ResourceUnavailableRpcError; exports.RpcError = _chunk35OJIFIWjs.RpcError; exports.RpcRequestError = _chunk35OJIFIWjs.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunk35OJIFIWjs.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunk35OJIFIWjs.TimeoutError; exports.TransactionNotFoundError = _chunk35OJIFIWjs.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunk35OJIFIWjs.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunk35OJIFIWjs.TransactionRejectedRpcError; exports.UnknownRpcError = _chunk35OJIFIWjs.UnknownRpcError; exports.UrlRequiredError = _chunk35OJIFIWjs.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunk35OJIFIWjs.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunk35OJIFIWjs.WebSocketRequestError; exports.addChain = _chunkPEAG3TICjs.addChain; exports.boolToBytes = _chunk35OJIFIWjs.boolToBytes; exports.boolToHex = _chunk35OJIFIWjs.boolToHex; exports.bytesToBigint = _chunk35OJIFIWjs.bytesToBigint; exports.bytesToBool = _chunk35OJIFIWjs.bytesToBool; exports.bytesToHex = _chunk35OJIFIWjs.bytesToHex; exports.bytesToNumber = _chunk35OJIFIWjs.bytesToNumber; exports.bytesToString = _chunk35OJIFIWjs.bytesToString; exports.call = _chunkPEAG3TICjs.call; exports.callContract = _chunkPEAG3TICjs.callContract; exports.createBlockFilter = _chunkPEAG3TICjs.createBlockFilter; exports.createClient = _chunkGXCYE2PDjs.createClient; exports.createPendingTransactionFilter = _chunkPEAG3TICjs.createPendingTransactionFilter; exports.createPublicClient = _chunkGXCYE2PDjs.createPublicClient; exports.createTestClient = _chunkGXCYE2PDjs.createTestClient; exports.createTransport = _chunkGXCYE2PDjs.createTransport; exports.createWalletClient = _chunkGXCYE2PDjs.createWalletClient; exports.custom = _chunkGXCYE2PDjs.custom; exports.decodeAbi = _chunk35OJIFIWjs.decodeAbi; exports.decodeBytes = _chunk35OJIFIWjs.decodeBytes; exports.decodeErrorResult = _chunk35OJIFIWjs.decodeErrorResult; exports.decodeFunctionData = _chunk35OJIFIWjs.decodeFunctionData; exports.decodeFunctionResult = _chunk35OJIFIWjs.decodeFunctionResult; exports.decodeHex = _chunk35OJIFIWjs.decodeHex; exports.decodeRlp = _chunk35OJIFIWjs.decodeRlp; exports.dropTransaction = _chunkPEAG3TICjs.dropTransaction; exports.encodeAbi = _chunk35OJIFIWjs.encodeAbi; exports.encodeBytes = _chunk35OJIFIWjs.encodeBytes; exports.encodeDeployData = _chunk35OJIFIWjs.encodeDeployData; exports.encodeErrorResult = _chunk35OJIFIWjs.encodeErrorResult; exports.encodeEventTopics = _chunk35OJIFIWjs.encodeEventTopics; exports.encodeFunctionData = _chunk35OJIFIWjs.encodeFunctionData; exports.encodeFunctionResult = _chunk35OJIFIWjs.encodeFunctionResult; exports.encodeHex = _chunk35OJIFIWjs.encodeHex; exports.encodeRlp = _chunk35OJIFIWjs.encodeRlp; exports.estimateGas = _chunkPEAG3TICjs.estimateGas; exports.etherUnits = _chunk35OJIFIWjs.etherUnits; exports.fallback = _chunkGXCYE2PDjs.fallback; exports.formatBlock = _chunk35OJIFIWjs.formatBlock; exports.formatEther = _chunk35OJIFIWjs.formatEther; exports.formatGwei = _chunk35OJIFIWjs.formatGwei; exports.formatTransaction = _chunk35OJIFIWjs.formatTransaction; exports.formatTransactionRequest = _chunk35OJIFIWjs.formatTransactionRequest; exports.formatUnit = _chunk35OJIFIWjs.formatUnit; exports.getAccounts = _chunkPEAG3TICjs.getAccounts; exports.getAddress = _chunk35OJIFIWjs.getAddress; exports.getAutomine = _chunkPEAG3TICjs.getAutomine; exports.getBalance = _chunkPEAG3TICjs.getBalance; exports.getBlock = _chunkPEAG3TICjs.getBlock; exports.getBlockNumber = _chunkPEAG3TICjs.getBlockNumber; exports.getBlockTransactionCount = _chunkPEAG3TICjs.getBlockTransactionCount; exports.getChainId = _chunkPEAG3TICjs.getChainId; exports.getContractAddress = _chunk35OJIFIWjs.getContractAddress; exports.getCreate2Address = _chunk35OJIFIWjs.getCreate2Address; exports.getCreateAddress = _chunk35OJIFIWjs.getCreateAddress; exports.getEventSignature = _chunk35OJIFIWjs.getEventSignature; exports.getFeeHistory = _chunkPEAG3TICjs.getFeeHistory; exports.getFilterChanges = _chunkPEAG3TICjs.getFilterChanges; exports.getFilterLogs = _chunkPEAG3TICjs.getFilterLogs; exports.getFunctionSignature = _chunk35OJIFIWjs.getFunctionSignature; exports.getGasPrice = _chunkPEAG3TICjs.getGasPrice; exports.getPermissions = _chunkPEAG3TICjs.getPermissions; exports.getTransaction = _chunkPEAG3TICjs.getTransaction; exports.getTransactionConfirmations = _chunkPEAG3TICjs.getTransactionConfirmations; exports.getTransactionCount = _chunkPEAG3TICjs.getTransactionCount; exports.getTransactionReceipt = _chunkPEAG3TICjs.getTransactionReceipt; exports.getTxpoolContent = _chunkPEAG3TICjs.getTxpoolContent; exports.getTxpoolStatus = _chunkPEAG3TICjs.getTxpoolStatus; exports.gweiUnits = _chunk35OJIFIWjs.gweiUnits; exports.hexToBigInt = _chunk35OJIFIWjs.hexToBigInt; exports.hexToBool = _chunk35OJIFIWjs.hexToBool; exports.hexToBytes = _chunk35OJIFIWjs.hexToBytes; exports.hexToNumber = _chunk35OJIFIWjs.hexToNumber; exports.hexToString = _chunk35OJIFIWjs.hexToString; exports.http = _chunkGXCYE2PDjs.http; exports.impersonateAccount = _chunkPEAG3TICjs.impersonateAccount; exports.increaseTime = _chunkPEAG3TICjs.increaseTime; exports.inspectTxpool = _chunkPEAG3TICjs.inspectTxpool; exports.isAddress = _chunk35OJIFIWjs.isAddress; exports.isAddressEqual = _chunk35OJIFIWjs.isAddressEqual; exports.isBytes = _chunk35OJIFIWjs.isBytes; exports.isHex = _chunk35OJIFIWjs.isHex; exports.keccak256 = _chunk35OJIFIWjs.keccak256; exports.mine = _chunkPEAG3TICjs.mine; exports.numberToBytes = _chunk35OJIFIWjs.numberToBytes; exports.numberToHex = _chunk35OJIFIWjs.numberToHex; exports.pad = _chunk35OJIFIWjs.pad; exports.padBytes = _chunk35OJIFIWjs.padBytes; exports.padHex = _chunk35OJIFIWjs.padHex; exports.parseEther = _chunk35OJIFIWjs.parseEther; exports.parseGwei = _chunk35OJIFIWjs.parseGwei; exports.parseUnit = _chunk35OJIFIWjs.parseUnit; exports.removeBlockTimestampInterval = _chunkPEAG3TICjs.removeBlockTimestampInterval; exports.requestAccounts = _chunkPEAG3TICjs.requestAccounts; exports.requestPermissions = _chunkPEAG3TICjs.requestPermissions; exports.reset = _chunkPEAG3TICjs.reset; exports.revert = _chunkPEAG3TICjs.revert; exports.sendTransaction = _chunkPEAG3TICjs.sendTransaction; exports.sendUnsignedTransaction = _chunkPEAG3TICjs.sendUnsignedTransaction; exports.setAutomine = _chunkPEAG3TICjs.setAutomine; exports.setBalance = _chunkPEAG3TICjs.setBalance; exports.setBlockGasLimit = _chunkPEAG3TICjs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkPEAG3TICjs.setBlockTimestampInterval; exports.setCode = _chunkPEAG3TICjs.setCode; exports.setCoinbase = _chunkPEAG3TICjs.setCoinbase; exports.setIntervalMining = _chunkPEAG3TICjs.setIntervalMining; exports.setLoggingEnabled = _chunkPEAG3TICjs.setLoggingEnabled; exports.setMinGasPrice = _chunkPEAG3TICjs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkPEAG3TICjs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkPEAG3TICjs.setNextBlockTimestamp; exports.setNonce = _chunkPEAG3TICjs.setNonce; exports.setStorageAt = _chunkPEAG3TICjs.setStorageAt; exports.signMessage = _chunkPEAG3TICjs.signMessage; exports.size = _chunk35OJIFIWjs.size; exports.slice = _chunk35OJIFIWjs.slice; exports.sliceBytes = _chunk35OJIFIWjs.sliceBytes; exports.sliceHex = _chunk35OJIFIWjs.sliceHex; exports.snapshot = _chunkPEAG3TICjs.snapshot; exports.stopImpersonatingAccount = _chunkPEAG3TICjs.stopImpersonatingAccount; exports.stringToBytes = _chunk35OJIFIWjs.stringToBytes; exports.stringToHex = _chunk35OJIFIWjs.stringToHex; exports.switchChain = _chunkPEAG3TICjs.switchChain; exports.transactionType = _chunk35OJIFIWjs.transactionType; exports.trim = _chunk35OJIFIWjs.trim; exports.uninstallFilter = _chunkPEAG3TICjs.uninstallFilter; exports.waitForTransactionReceipt = _chunkPEAG3TICjs.waitForTransactionReceipt; exports.watchAsset = _chunkPEAG3TICjs.watchAsset; exports.watchBlockNumber = _chunkPEAG3TICjs.watchBlockNumber; exports.watchBlocks = _chunkPEAG3TICjs.watchBlocks; exports.watchPendingTransactions = _chunkPEAG3TICjs.watchPendingTransactions; exports.webSocket = _chunkGXCYE2PDjs.webSocket; exports.weiUnits = _chunk35OJIFIWjs.weiUnits;
|
374
|
+
exports.AbiConstructorNotFoundError = _chunkA3PVAH22js.AbiConstructorNotFoundError; exports.AbiConstructorParamsNotFoundError = _chunkA3PVAH22js.AbiConstructorParamsNotFoundError; exports.AbiDecodingDataSizeInvalidError = _chunkA3PVAH22js.AbiDecodingDataSizeInvalidError; exports.AbiEncodingArrayLengthMismatchError = _chunkA3PVAH22js.AbiEncodingArrayLengthMismatchError; exports.AbiEncodingLengthMismatchError = _chunkA3PVAH22js.AbiEncodingLengthMismatchError; exports.AbiErrorInputsNotFoundError = _chunkA3PVAH22js.AbiErrorInputsNotFoundError; exports.AbiErrorNotFoundError = _chunkA3PVAH22js.AbiErrorNotFoundError; exports.AbiErrorSignatureNotFoundError = _chunkA3PVAH22js.AbiErrorSignatureNotFoundError; exports.AbiEventNotFoundError = _chunkA3PVAH22js.AbiEventNotFoundError; exports.AbiFunctionNotFoundError = _chunkA3PVAH22js.AbiFunctionNotFoundError; exports.AbiFunctionOutputsNotFoundError = _chunkA3PVAH22js.AbiFunctionOutputsNotFoundError; exports.AbiFunctionSignatureNotFoundError = _chunkA3PVAH22js.AbiFunctionSignatureNotFoundError; exports.BaseError = _chunkA3PVAH22js.BaseError; exports.BlockNotFoundError = _chunkA3PVAH22js.BlockNotFoundError; exports.DataLengthTooLongError = _chunkA3PVAH22js.DataLengthTooLongError; exports.DataLengthTooShortError = _chunkA3PVAH22js.DataLengthTooShortError; exports.FilterTypeNotSupportedError = _chunkA3PVAH22js.FilterTypeNotSupportedError; exports.HttpRequestError = _chunkA3PVAH22js.HttpRequestError; exports.InternalRpcError = _chunkA3PVAH22js.InternalRpcError; exports.InvalidAbiDecodingTypeError = _chunkA3PVAH22js.InvalidAbiDecodingTypeError; exports.InvalidAbiEncodingTypeError = _chunkA3PVAH22js.InvalidAbiEncodingTypeError; exports.InvalidAddressError = _chunkA3PVAH22js.InvalidAddressError; exports.InvalidArrayError = _chunkA3PVAH22js.InvalidArrayError; exports.InvalidBytesBooleanError = _chunkA3PVAH22js.InvalidBytesBooleanError; exports.InvalidDefinitionTypeError = _chunkA3PVAH22js.InvalidDefinitionTypeError; exports.InvalidGasArgumentsError = _chunkA3PVAH22js.InvalidGasArgumentsError; exports.InvalidHexBooleanError = _chunkA3PVAH22js.InvalidHexBooleanError; exports.InvalidHexValueError = _chunkA3PVAH22js.InvalidHexValueError; exports.InvalidInputRpcError = _chunkA3PVAH22js.InvalidInputRpcError; exports.InvalidParamsRpcError = _chunkA3PVAH22js.InvalidParamsRpcError; exports.InvalidRequestRpcError = _chunkA3PVAH22js.InvalidRequestRpcError; exports.JsonRpcVersionUnsupportedError = _chunkA3PVAH22js.JsonRpcVersionUnsupportedError; exports.LimitExceededRpcError = _chunkA3PVAH22js.LimitExceededRpcError; exports.MethodNotFoundRpcError = _chunkA3PVAH22js.MethodNotFoundRpcError; exports.MethodNotSupportedRpcError = _chunkA3PVAH22js.MethodNotSupportedRpcError; exports.OffsetOutOfBoundsError = _chunkA3PVAH22js.OffsetOutOfBoundsError; exports.ParseRpcError = _chunkA3PVAH22js.ParseRpcError; exports.RequestError = _chunkA3PVAH22js.RequestError; exports.ResourceNotFoundRpcError = _chunkA3PVAH22js.ResourceNotFoundRpcError; exports.ResourceUnavailableRpcError = _chunkA3PVAH22js.ResourceUnavailableRpcError; exports.RpcError = _chunkA3PVAH22js.RpcError; exports.RpcRequestError = _chunkA3PVAH22js.RpcRequestError; exports.SizeExceedsPaddingSizeError = _chunkA3PVAH22js.SizeExceedsPaddingSizeError; exports.TimeoutError = _chunkA3PVAH22js.TimeoutError; exports.TransactionNotFoundError = _chunkA3PVAH22js.TransactionNotFoundError; exports.TransactionReceiptNotFoundError = _chunkA3PVAH22js.TransactionReceiptNotFoundError; exports.TransactionRejectedRpcError = _chunkA3PVAH22js.TransactionRejectedRpcError; exports.UnknownRpcError = _chunkA3PVAH22js.UnknownRpcError; exports.UrlRequiredError = _chunkA3PVAH22js.UrlRequiredError; exports.WaitForTransactionReceiptTimeoutError = _chunkA3PVAH22js.WaitForTransactionReceiptTimeoutError; exports.WebSocketRequestError = _chunkA3PVAH22js.WebSocketRequestError; exports.addChain = _chunkQO5C5Y2Ljs.addChain; exports.boolToBytes = _chunkA3PVAH22js.boolToBytes; exports.boolToHex = _chunkA3PVAH22js.boolToHex; exports.bytesToBigint = _chunkA3PVAH22js.bytesToBigint; exports.bytesToBool = _chunkA3PVAH22js.bytesToBool; exports.bytesToHex = _chunkA3PVAH22js.bytesToHex; exports.bytesToNumber = _chunkA3PVAH22js.bytesToNumber; exports.bytesToString = _chunkA3PVAH22js.bytesToString; exports.call = _chunkQO5C5Y2Ljs.call; exports.callContract = _chunkQO5C5Y2Ljs.callContract; exports.createBlockFilter = _chunkQO5C5Y2Ljs.createBlockFilter; exports.createClient = _chunkA4O3JKF2js.createClient; exports.createPendingTransactionFilter = _chunkQO5C5Y2Ljs.createPendingTransactionFilter; exports.createPublicClient = _chunkA4O3JKF2js.createPublicClient; exports.createTestClient = _chunkA4O3JKF2js.createTestClient; exports.createTransport = _chunkA4O3JKF2js.createTransport; exports.createWalletClient = _chunkA4O3JKF2js.createWalletClient; exports.custom = _chunkA4O3JKF2js.custom; exports.decodeAbi = _chunkA3PVAH22js.decodeAbi; exports.decodeBytes = _chunkA3PVAH22js.decodeBytes; exports.decodeErrorResult = _chunkA3PVAH22js.decodeErrorResult; exports.decodeFunctionData = _chunkA3PVAH22js.decodeFunctionData; exports.decodeFunctionResult = _chunkA3PVAH22js.decodeFunctionResult; exports.decodeHex = _chunkA3PVAH22js.decodeHex; exports.decodeRlp = _chunkA3PVAH22js.decodeRlp; exports.dropTransaction = _chunkQO5C5Y2Ljs.dropTransaction; exports.encodeAbi = _chunkA3PVAH22js.encodeAbi; exports.encodeBytes = _chunkA3PVAH22js.encodeBytes; exports.encodeDeployData = _chunkA3PVAH22js.encodeDeployData; exports.encodeErrorResult = _chunkA3PVAH22js.encodeErrorResult; exports.encodeEventTopics = _chunkA3PVAH22js.encodeEventTopics; exports.encodeFunctionData = _chunkA3PVAH22js.encodeFunctionData; exports.encodeFunctionResult = _chunkA3PVAH22js.encodeFunctionResult; exports.encodeHex = _chunkA3PVAH22js.encodeHex; exports.encodeRlp = _chunkA3PVAH22js.encodeRlp; exports.estimateGas = _chunkQO5C5Y2Ljs.estimateGas; exports.etherUnits = _chunkA3PVAH22js.etherUnits; exports.fallback = _chunkA4O3JKF2js.fallback; exports.formatBlock = _chunkA3PVAH22js.formatBlock; exports.formatEther = _chunkA3PVAH22js.formatEther; exports.formatGwei = _chunkA3PVAH22js.formatGwei; exports.formatTransaction = _chunkA3PVAH22js.formatTransaction; exports.formatTransactionRequest = _chunkA3PVAH22js.formatTransactionRequest; exports.formatUnit = _chunkA3PVAH22js.formatUnit; exports.getAccounts = _chunkQO5C5Y2Ljs.getAccounts; exports.getAddress = _chunkA3PVAH22js.getAddress; exports.getAutomine = _chunkQO5C5Y2Ljs.getAutomine; exports.getBalance = _chunkQO5C5Y2Ljs.getBalance; exports.getBlock = _chunkQO5C5Y2Ljs.getBlock; exports.getBlockNumber = _chunkQO5C5Y2Ljs.getBlockNumber; exports.getBlockTransactionCount = _chunkQO5C5Y2Ljs.getBlockTransactionCount; exports.getChainId = _chunkQO5C5Y2Ljs.getChainId; exports.getContractAddress = _chunkA3PVAH22js.getContractAddress; exports.getCreate2Address = _chunkA3PVAH22js.getCreate2Address; exports.getCreateAddress = _chunkA3PVAH22js.getCreateAddress; exports.getEventSignature = _chunkA3PVAH22js.getEventSignature; exports.getFeeHistory = _chunkQO5C5Y2Ljs.getFeeHistory; exports.getFilterChanges = _chunkQO5C5Y2Ljs.getFilterChanges; exports.getFilterLogs = _chunkQO5C5Y2Ljs.getFilterLogs; exports.getFunctionSignature = _chunkA3PVAH22js.getFunctionSignature; exports.getGasPrice = _chunkQO5C5Y2Ljs.getGasPrice; exports.getPermissions = _chunkQO5C5Y2Ljs.getPermissions; exports.getTransaction = _chunkQO5C5Y2Ljs.getTransaction; exports.getTransactionConfirmations = _chunkQO5C5Y2Ljs.getTransactionConfirmations; exports.getTransactionCount = _chunkQO5C5Y2Ljs.getTransactionCount; exports.getTransactionReceipt = _chunkQO5C5Y2Ljs.getTransactionReceipt; exports.getTxpoolContent = _chunkQO5C5Y2Ljs.getTxpoolContent; exports.getTxpoolStatus = _chunkQO5C5Y2Ljs.getTxpoolStatus; exports.gweiUnits = _chunkA3PVAH22js.gweiUnits; exports.hexToBigInt = _chunkA3PVAH22js.hexToBigInt; exports.hexToBool = _chunkA3PVAH22js.hexToBool; exports.hexToBytes = _chunkA3PVAH22js.hexToBytes; exports.hexToNumber = _chunkA3PVAH22js.hexToNumber; exports.hexToString = _chunkA3PVAH22js.hexToString; exports.http = _chunkA4O3JKF2js.http; exports.impersonateAccount = _chunkQO5C5Y2Ljs.impersonateAccount; exports.increaseTime = _chunkQO5C5Y2Ljs.increaseTime; exports.inspectTxpool = _chunkQO5C5Y2Ljs.inspectTxpool; exports.isAddress = _chunkA3PVAH22js.isAddress; exports.isAddressEqual = _chunkA3PVAH22js.isAddressEqual; exports.isBytes = _chunkA3PVAH22js.isBytes; exports.isHex = _chunkA3PVAH22js.isHex; exports.keccak256 = _chunkA3PVAH22js.keccak256; exports.mine = _chunkQO5C5Y2Ljs.mine; exports.numberToBytes = _chunkA3PVAH22js.numberToBytes; exports.numberToHex = _chunkA3PVAH22js.numberToHex; exports.pad = _chunkA3PVAH22js.pad; exports.padBytes = _chunkA3PVAH22js.padBytes; exports.padHex = _chunkA3PVAH22js.padHex; exports.parseEther = _chunkA3PVAH22js.parseEther; exports.parseGwei = _chunkA3PVAH22js.parseGwei; exports.parseUnit = _chunkA3PVAH22js.parseUnit; exports.removeBlockTimestampInterval = _chunkQO5C5Y2Ljs.removeBlockTimestampInterval; exports.requestAccounts = _chunkQO5C5Y2Ljs.requestAccounts; exports.requestPermissions = _chunkQO5C5Y2Ljs.requestPermissions; exports.reset = _chunkQO5C5Y2Ljs.reset; exports.revert = _chunkQO5C5Y2Ljs.revert; exports.sendTransaction = _chunkQO5C5Y2Ljs.sendTransaction; exports.sendUnsignedTransaction = _chunkQO5C5Y2Ljs.sendUnsignedTransaction; exports.setAutomine = _chunkQO5C5Y2Ljs.setAutomine; exports.setBalance = _chunkQO5C5Y2Ljs.setBalance; exports.setBlockGasLimit = _chunkQO5C5Y2Ljs.setBlockGasLimit; exports.setBlockTimestampInterval = _chunkQO5C5Y2Ljs.setBlockTimestampInterval; exports.setCode = _chunkQO5C5Y2Ljs.setCode; exports.setCoinbase = _chunkQO5C5Y2Ljs.setCoinbase; exports.setIntervalMining = _chunkQO5C5Y2Ljs.setIntervalMining; exports.setLoggingEnabled = _chunkQO5C5Y2Ljs.setLoggingEnabled; exports.setMinGasPrice = _chunkQO5C5Y2Ljs.setMinGasPrice; exports.setNextBlockBaseFeePerGas = _chunkQO5C5Y2Ljs.setNextBlockBaseFeePerGas; exports.setNextBlockTimestamp = _chunkQO5C5Y2Ljs.setNextBlockTimestamp; exports.setNonce = _chunkQO5C5Y2Ljs.setNonce; exports.setStorageAt = _chunkQO5C5Y2Ljs.setStorageAt; exports.signMessage = _chunkQO5C5Y2Ljs.signMessage; exports.size = _chunkA3PVAH22js.size; exports.slice = _chunkA3PVAH22js.slice; exports.sliceBytes = _chunkA3PVAH22js.sliceBytes; exports.sliceHex = _chunkA3PVAH22js.sliceHex; exports.snapshot = _chunkQO5C5Y2Ljs.snapshot; exports.stopImpersonatingAccount = _chunkQO5C5Y2Ljs.stopImpersonatingAccount; exports.stringToBytes = _chunkA3PVAH22js.stringToBytes; exports.stringToHex = _chunkA3PVAH22js.stringToHex; exports.switchChain = _chunkQO5C5Y2Ljs.switchChain; exports.transactionType = _chunkA3PVAH22js.transactionType; exports.trim = _chunkA3PVAH22js.trim; exports.uninstallFilter = _chunkQO5C5Y2Ljs.uninstallFilter; exports.waitForTransactionReceipt = _chunkQO5C5Y2Ljs.waitForTransactionReceipt; exports.watchAsset = _chunkQO5C5Y2Ljs.watchAsset; exports.watchBlockNumber = _chunkQO5C5Y2Ljs.watchBlockNumber; exports.watchBlocks = _chunkQO5C5Y2Ljs.watchBlocks; exports.watchPendingTransactions = _chunkQO5C5Y2Ljs.watchPendingTransactions; exports.webSocket = _chunkA4O3JKF2js.webSocket; exports.weiUnits = _chunkA3PVAH22js.weiUnits;
|
package/dist/index.mjs
CHANGED
@@ -58,7 +58,7 @@ import {
|
|
58
58
|
watchBlockNumber,
|
59
59
|
watchBlocks,
|
60
60
|
watchPendingTransactions
|
61
|
-
} from "./chunk-
|
61
|
+
} from "./chunk-DPSKYDCG.mjs";
|
62
62
|
import {
|
63
63
|
createClient,
|
64
64
|
createPublicClient,
|
@@ -69,7 +69,7 @@ import {
|
|
69
69
|
fallback,
|
70
70
|
http,
|
71
71
|
webSocket
|
72
|
-
} from "./chunk-
|
72
|
+
} from "./chunk-PC3JNTPF.mjs";
|
73
73
|
import {
|
74
74
|
AbiConstructorNotFoundError,
|
75
75
|
AbiConstructorParamsNotFoundError,
|
@@ -186,7 +186,7 @@ import {
|
|
186
186
|
transactionType,
|
187
187
|
trim,
|
188
188
|
weiUnits
|
189
|
-
} from "./chunk-
|
189
|
+
} from "./chunk-ERPD74AT.mjs";
|
190
190
|
export {
|
191
191
|
AbiConstructorNotFoundError,
|
192
192
|
AbiConstructorParamsNotFoundError,
|
package/dist/utils/index.js
CHANGED
@@ -71,7 +71,7 @@
|
|
71
71
|
|
72
72
|
|
73
73
|
|
74
|
-
var
|
74
|
+
var _chunkA3PVAH22js = require('../chunk-A3PVAH22.js');
|
75
75
|
|
76
76
|
|
77
77
|
|
@@ -145,4 +145,4 @@ var _chunk35OJIFIWjs = require('../chunk-35OJIFIW.js');
|
|
145
145
|
|
146
146
|
|
147
147
|
|
148
|
-
exports.boolToBytes =
|
148
|
+
exports.boolToBytes = _chunkA3PVAH22js.boolToBytes; exports.boolToHex = _chunkA3PVAH22js.boolToHex; exports.buildRequest = _chunkA3PVAH22js.buildRequest; exports.bytesToBigint = _chunkA3PVAH22js.bytesToBigint; exports.bytesToBool = _chunkA3PVAH22js.bytesToBool; exports.bytesToHex = _chunkA3PVAH22js.bytesToHex; exports.bytesToNumber = _chunkA3PVAH22js.bytesToNumber; exports.bytesToString = _chunkA3PVAH22js.bytesToString; exports.decodeAbi = _chunkA3PVAH22js.decodeAbi; exports.decodeBytes = _chunkA3PVAH22js.decodeBytes; exports.decodeErrorResult = _chunkA3PVAH22js.decodeErrorResult; exports.decodeFunctionData = _chunkA3PVAH22js.decodeFunctionData; exports.decodeFunctionResult = _chunkA3PVAH22js.decodeFunctionResult; exports.decodeHex = _chunkA3PVAH22js.decodeHex; exports.decodeRlp = _chunkA3PVAH22js.decodeRlp; exports.encodeAbi = _chunkA3PVAH22js.encodeAbi; exports.encodeBytes = _chunkA3PVAH22js.encodeBytes; exports.encodeDeployData = _chunkA3PVAH22js.encodeDeployData; exports.encodeErrorResult = _chunkA3PVAH22js.encodeErrorResult; exports.encodeEventTopics = _chunkA3PVAH22js.encodeEventTopics; exports.encodeFunctionData = _chunkA3PVAH22js.encodeFunctionData; exports.encodeFunctionResult = _chunkA3PVAH22js.encodeFunctionResult; exports.encodeHex = _chunkA3PVAH22js.encodeHex; exports.encodeRlp = _chunkA3PVAH22js.encodeRlp; exports.extractFunctionName = _chunkA3PVAH22js.extractFunctionName; exports.extractFunctionParams = _chunkA3PVAH22js.extractFunctionParams; exports.extractFunctionParts = _chunkA3PVAH22js.extractFunctionParts; exports.extractFunctionType = _chunkA3PVAH22js.extractFunctionType; exports.format = _chunkA3PVAH22js.format; exports.formatAbiItemWithArgs = _chunkA3PVAH22js.formatAbiItemWithArgs; exports.formatAbiItemWithParams = _chunkA3PVAH22js.formatAbiItemWithParams; exports.formatBlock = _chunkA3PVAH22js.formatBlock; exports.formatEther = _chunkA3PVAH22js.formatEther; exports.formatGwei = _chunkA3PVAH22js.formatGwei; exports.formatTransaction = _chunkA3PVAH22js.formatTransaction; exports.formatTransactionRequest = _chunkA3PVAH22js.formatTransactionRequest; exports.formatUnit = _chunkA3PVAH22js.formatUnit; exports.getAbiItem = _chunkA3PVAH22js.getAbiItem; exports.getAddress = _chunkA3PVAH22js.getAddress; exports.getContractAddress = _chunkA3PVAH22js.getContractAddress; exports.getContractError = _chunkA3PVAH22js.getContractError; exports.getCreate2Address = _chunkA3PVAH22js.getCreate2Address; exports.getCreateAddress = _chunkA3PVAH22js.getCreateAddress; exports.getEventSignature = _chunkA3PVAH22js.getEventSignature; exports.getFunctionSignature = _chunkA3PVAH22js.getFunctionSignature; exports.hexToBigInt = _chunkA3PVAH22js.hexToBigInt; exports.hexToBool = _chunkA3PVAH22js.hexToBool; exports.hexToBytes = _chunkA3PVAH22js.hexToBytes; exports.hexToNumber = _chunkA3PVAH22js.hexToNumber; exports.hexToString = _chunkA3PVAH22js.hexToString; exports.isAddress = _chunkA3PVAH22js.isAddress; exports.isAddressEqual = _chunkA3PVAH22js.isAddressEqual; exports.isBytes = _chunkA3PVAH22js.isBytes; exports.isHex = _chunkA3PVAH22js.isHex; exports.keccak256 = _chunkA3PVAH22js.keccak256; exports.numberToBytes = _chunkA3PVAH22js.numberToBytes; exports.numberToHex = _chunkA3PVAH22js.numberToHex; exports.pad = _chunkA3PVAH22js.pad; exports.padBytes = _chunkA3PVAH22js.padBytes; exports.padHex = _chunkA3PVAH22js.padHex; exports.parseEther = _chunkA3PVAH22js.parseEther; exports.parseGwei = _chunkA3PVAH22js.parseGwei; exports.parseUnit = _chunkA3PVAH22js.parseUnit; exports.rpc = _chunkA3PVAH22js.rpc; exports.size = _chunkA3PVAH22js.size; exports.slice = _chunkA3PVAH22js.slice; exports.sliceBytes = _chunkA3PVAH22js.sliceBytes; exports.sliceHex = _chunkA3PVAH22js.sliceHex; exports.stringToBytes = _chunkA3PVAH22js.stringToBytes; exports.stringToHex = _chunkA3PVAH22js.stringToHex; exports.stringify = _chunkA3PVAH22js.stringify; exports.trim = _chunkA3PVAH22js.trim;
|
package/dist/utils/index.mjs
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "viem",
|
3
3
|
"description": "TypeScript Interface for Ethereum",
|
4
|
-
"
|
4
|
+
"dependencies": {
|
5
|
+
"@noble/hashes": "^1.1.2",
|
6
|
+
"@wagmi/chains": "0.0.0-20230201210619",
|
7
|
+
"abitype": "^0.2.5"
|
8
|
+
},
|
9
|
+
"version": "0.0.1-alpha.12",
|
5
10
|
"files": [
|
6
11
|
"/actions",
|
7
12
|
"/chains",
|