viem 0.0.1-alpha.9 → 0.0.1-cjs.10
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/actions/package.json +1 -1
- package/chains/package.json +1 -1
- package/clients/package.json +1 -1
- package/dist/actions/index.d.ts +3 -2
- package/dist/actions/index.js +125 -124
- package/dist/actions/index.mjs +125 -0
- package/dist/chains.d.ts +2 -2
- package/dist/chains.js +75 -76
- package/dist/chains.mjs +133 -0
- package/dist/{chunk-26WUARDL.js → chunk-2FDH6XP5.mjs} +1314 -72
- package/dist/chunk-46ZFLVHC.js +1084 -0
- package/dist/chunk-5ZBNF5WM.js +2616 -0
- package/dist/{chunk-375SRM5R.js → chunk-CWCWWGBC.mjs} +1 -1
- package/dist/{chunk-6BXRN6CQ.js → chunk-HLVCJ7RV.mjs} +48 -11
- package/dist/chunk-SGTIBKHG.js +258 -0
- package/dist/clients/index.js +23 -23
- package/dist/clients/index.mjs +23 -0
- package/dist/index.d.ts +5 -7
- package/dist/index.js +374 -374
- package/dist/index.mjs +374 -0
- package/dist/{parseGwei-64031f5e.d.ts → parseGwei-7c87ff41.d.ts} +40 -118
- package/dist/transactionRequest-08d30731.d.ts +132 -0
- package/dist/utils/index.d.ts +38 -5
- package/dist/utils/index.js +148 -138
- package/dist/utils/index.mjs +148 -0
- package/dist/{watchAsset-dc7dcdd9.d.ts → watchAsset-bc6373f4.d.ts} +15 -3
- package/dist/window.js +1 -0
- package/dist/window.mjs +0 -0
- package/package.json +9 -3
- package/utils/package.json +1 -1
- package/window/package.json +1 -1
- package/dist/chunk-7H5SPKXN.js +0 -1113
- package/dist/transactionRequest-3e463099.d.ts +0 -44
@@ -1,5 +1,13 @@
|
|
1
1
|
import {
|
2
|
+
BaseError,
|
3
|
+
BlockNotFoundError,
|
4
|
+
InvalidGasArgumentsError,
|
5
|
+
TransactionNotFoundError,
|
6
|
+
TransactionReceiptNotFoundError,
|
7
|
+
WaitForTransactionReceiptTimeoutError,
|
2
8
|
checksumAddress,
|
9
|
+
decodeFunctionResult,
|
10
|
+
encodeFunctionData,
|
3
11
|
encodeHex,
|
4
12
|
format,
|
5
13
|
formatBlock,
|
@@ -9,20 +17,13 @@ import {
|
|
9
17
|
formatTransactionReceipt,
|
10
18
|
formatTransactionRequest,
|
11
19
|
getAddress,
|
12
|
-
hexToNumber,
|
13
|
-
numberToHex
|
14
|
-
} from "./chunk-26WUARDL.js";
|
15
|
-
import {
|
16
|
-
BaseError,
|
17
|
-
BlockNotFoundError,
|
18
|
-
InvalidGasArgumentsError,
|
19
|
-
TransactionNotFoundError,
|
20
|
-
TransactionReceiptNotFoundError,
|
21
|
-
WaitForTransactionReceiptTimeoutError,
|
22
20
|
getCache,
|
21
|
+
getContractError,
|
22
|
+
hexToNumber,
|
23
|
+
numberToHex,
|
23
24
|
wait,
|
24
25
|
withCache
|
25
|
-
} from "./chunk-
|
26
|
+
} from "./chunk-2FDH6XP5.mjs";
|
26
27
|
|
27
28
|
// src/actions/public/call.ts
|
28
29
|
async function call(client, {
|
@@ -71,6 +72,41 @@ async function call(client, {
|
|
71
72
|
return { data: response };
|
72
73
|
}
|
73
74
|
|
75
|
+
// src/actions/public/callContract.ts
|
76
|
+
async function callContract(client, {
|
77
|
+
abi,
|
78
|
+
address,
|
79
|
+
args,
|
80
|
+
functionName,
|
81
|
+
...callRequest
|
82
|
+
}) {
|
83
|
+
const calldata = encodeFunctionData({
|
84
|
+
abi,
|
85
|
+
args,
|
86
|
+
functionName
|
87
|
+
});
|
88
|
+
try {
|
89
|
+
const { data } = await call(client, {
|
90
|
+
data: calldata,
|
91
|
+
to: address,
|
92
|
+
...callRequest
|
93
|
+
});
|
94
|
+
return decodeFunctionResult({
|
95
|
+
abi,
|
96
|
+
functionName,
|
97
|
+
data: data || "0x"
|
98
|
+
});
|
99
|
+
} catch (err) {
|
100
|
+
throw getContractError(err, {
|
101
|
+
abi,
|
102
|
+
address,
|
103
|
+
args,
|
104
|
+
functionName,
|
105
|
+
sender: callRequest.from
|
106
|
+
});
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
74
110
|
// src/actions/public/createPendingTransactionFilter.ts
|
75
111
|
async function createPendingTransactionFilter(client) {
|
76
112
|
const id = await client.request({
|
@@ -986,6 +1022,7 @@ async function watchAsset(client, params) {
|
|
986
1022
|
|
987
1023
|
export {
|
988
1024
|
call,
|
1025
|
+
callContract,
|
989
1026
|
createPendingTransactionFilter,
|
990
1027
|
createBlockFilter,
|
991
1028
|
estimateGas,
|
@@ -0,0 +1,258 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
var _chunk5ZBNF5WMjs = require('./chunk-5ZBNF5WM.js');
|
7
|
+
|
8
|
+
// src/clients/transports/createTransport.ts
|
9
|
+
function createTransport(config, value) {
|
10
|
+
return {
|
11
|
+
config,
|
12
|
+
value
|
13
|
+
};
|
14
|
+
}
|
15
|
+
|
16
|
+
// src/clients/transports/custom.ts
|
17
|
+
function custom(provider, { key = "custom", name = "Custom Provider" } = {}) {
|
18
|
+
return () => createTransport({
|
19
|
+
key,
|
20
|
+
name,
|
21
|
+
request: provider.request.bind(provider),
|
22
|
+
type: "custom"
|
23
|
+
});
|
24
|
+
}
|
25
|
+
|
26
|
+
// src/clients/transports/fallback.ts
|
27
|
+
function fallback(transports, { key = "fallback", name = "Fallback" } = {}) {
|
28
|
+
return ({ chain }) => createTransport(
|
29
|
+
{
|
30
|
+
key,
|
31
|
+
name,
|
32
|
+
async request({ method, params }) {
|
33
|
+
const fetch = async (i = 0) => {
|
34
|
+
const transport = transports[i]({ chain });
|
35
|
+
try {
|
36
|
+
return await transport.config.request({
|
37
|
+
method,
|
38
|
+
params
|
39
|
+
});
|
40
|
+
} catch (err) {
|
41
|
+
if (i < transports.length - 1)
|
42
|
+
return fetch(i + 1);
|
43
|
+
throw err;
|
44
|
+
}
|
45
|
+
};
|
46
|
+
return fetch();
|
47
|
+
},
|
48
|
+
type: "fallback"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
transports: transports.map(
|
52
|
+
(fn) => fn({ chain })
|
53
|
+
)
|
54
|
+
}
|
55
|
+
);
|
56
|
+
}
|
57
|
+
|
58
|
+
// src/clients/transports/http.ts
|
59
|
+
function http(url, { key = "http", name = "HTTP JSON-RPC" } = {}) {
|
60
|
+
return ({ chain }) => {
|
61
|
+
const url_ = url || _optionalChain([chain, 'optionalAccess', _ => _.rpcUrls, 'access', _2 => _2.default, 'access', _3 => _3.http, 'access', _4 => _4[0]]);
|
62
|
+
if (!url_)
|
63
|
+
throw new (0, _chunk5ZBNF5WMjs.UrlRequiredError)();
|
64
|
+
return createTransport(
|
65
|
+
{
|
66
|
+
key,
|
67
|
+
name,
|
68
|
+
async request({ method, params }) {
|
69
|
+
const { result } = await _chunk5ZBNF5WMjs.rpc.http(url_, {
|
70
|
+
body: {
|
71
|
+
method,
|
72
|
+
params
|
73
|
+
}
|
74
|
+
});
|
75
|
+
return result;
|
76
|
+
},
|
77
|
+
type: "http"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
url
|
81
|
+
}
|
82
|
+
);
|
83
|
+
};
|
84
|
+
}
|
85
|
+
|
86
|
+
// src/clients/transports/webSocket.ts
|
87
|
+
function webSocket(url, {
|
88
|
+
key = "webSocket",
|
89
|
+
name = "WebSocket JSON-RPC"
|
90
|
+
} = {}) {
|
91
|
+
return ({ chain }) => {
|
92
|
+
const url_ = url || _optionalChain([chain, 'optionalAccess', _5 => _5.rpcUrls, 'access', _6 => _6.default, 'access', _7 => _7.webSocket, 'optionalAccess', _8 => _8[0]]);
|
93
|
+
if (!url_)
|
94
|
+
throw new (0, _chunk5ZBNF5WMjs.UrlRequiredError)();
|
95
|
+
return createTransport(
|
96
|
+
{
|
97
|
+
key,
|
98
|
+
name,
|
99
|
+
async request({ method, params }) {
|
100
|
+
const socket = await _chunk5ZBNF5WMjs.getSocket.call(void 0, url_);
|
101
|
+
const { result } = await _chunk5ZBNF5WMjs.rpc.webSocketAsync(socket, {
|
102
|
+
body: { method, params }
|
103
|
+
});
|
104
|
+
return result;
|
105
|
+
},
|
106
|
+
type: "webSocket"
|
107
|
+
},
|
108
|
+
{
|
109
|
+
getSocket() {
|
110
|
+
return _chunk5ZBNF5WMjs.getSocket.call(void 0, url_);
|
111
|
+
},
|
112
|
+
async subscribe({ params, onData, onError }) {
|
113
|
+
const socket = await _chunk5ZBNF5WMjs.getSocket.call(void 0, url_);
|
114
|
+
const { result: subscriptionId } = await new Promise(
|
115
|
+
(resolve, reject) => _chunk5ZBNF5WMjs.rpc.webSocket(socket, {
|
116
|
+
body: {
|
117
|
+
method: "eth_subscribe",
|
118
|
+
params
|
119
|
+
},
|
120
|
+
onData: (data) => {
|
121
|
+
if (typeof data.id === "number") {
|
122
|
+
resolve(data);
|
123
|
+
return;
|
124
|
+
}
|
125
|
+
onData(data);
|
126
|
+
},
|
127
|
+
onError: (error) => {
|
128
|
+
reject(error);
|
129
|
+
_optionalChain([onError, 'optionalCall', _9 => _9(error)]);
|
130
|
+
}
|
131
|
+
})
|
132
|
+
);
|
133
|
+
return {
|
134
|
+
subscriptionId,
|
135
|
+
async unsubscribe() {
|
136
|
+
return new Promise(
|
137
|
+
(resolve, reject) => _chunk5ZBNF5WMjs.rpc.webSocket(socket, {
|
138
|
+
body: {
|
139
|
+
method: "eth_unsubscribe",
|
140
|
+
params: [subscriptionId]
|
141
|
+
},
|
142
|
+
onData: resolve,
|
143
|
+
onError: reject
|
144
|
+
})
|
145
|
+
);
|
146
|
+
}
|
147
|
+
};
|
148
|
+
}
|
149
|
+
}
|
150
|
+
);
|
151
|
+
};
|
152
|
+
}
|
153
|
+
|
154
|
+
// src/utils/uid.ts
|
155
|
+
var size = 256;
|
156
|
+
var index = size;
|
157
|
+
var buffer;
|
158
|
+
function uid(length = 11) {
|
159
|
+
if (!buffer || index + length > size * 2) {
|
160
|
+
buffer = "";
|
161
|
+
index = 0;
|
162
|
+
for (let i = 0; i < size; i++) {
|
163
|
+
buffer += (256 + Math.random() * 256 | 0).toString(16).substring(1);
|
164
|
+
}
|
165
|
+
}
|
166
|
+
return buffer.substring(index, index++ + length);
|
167
|
+
}
|
168
|
+
|
169
|
+
// src/clients/createClient.ts
|
170
|
+
function createClient({
|
171
|
+
chain,
|
172
|
+
key = "base",
|
173
|
+
name = "Base Client",
|
174
|
+
pollingInterval = 4e3,
|
175
|
+
transport,
|
176
|
+
type = "base"
|
177
|
+
}) {
|
178
|
+
const { config, value } = transport({ chain });
|
179
|
+
return {
|
180
|
+
chain,
|
181
|
+
key,
|
182
|
+
name,
|
183
|
+
pollingInterval,
|
184
|
+
request: _chunk5ZBNF5WMjs.buildRequest.call(void 0, config.request),
|
185
|
+
transport: { ...config, ...value },
|
186
|
+
type,
|
187
|
+
uid: uid()
|
188
|
+
};
|
189
|
+
}
|
190
|
+
|
191
|
+
// src/clients/createPublicClient.ts
|
192
|
+
function createPublicClient({
|
193
|
+
chain,
|
194
|
+
key = "public",
|
195
|
+
name = "Public Client",
|
196
|
+
transport,
|
197
|
+
pollingInterval
|
198
|
+
}) {
|
199
|
+
chain;
|
200
|
+
return createClient({
|
201
|
+
chain,
|
202
|
+
key,
|
203
|
+
name,
|
204
|
+
pollingInterval,
|
205
|
+
transport,
|
206
|
+
type: "publicClient"
|
207
|
+
});
|
208
|
+
}
|
209
|
+
|
210
|
+
// src/clients/createTestClient.ts
|
211
|
+
function createTestClient({
|
212
|
+
chain,
|
213
|
+
key = "test",
|
214
|
+
name = "Test Client",
|
215
|
+
mode,
|
216
|
+
pollingInterval,
|
217
|
+
transport
|
218
|
+
}) {
|
219
|
+
return {
|
220
|
+
...createClient({
|
221
|
+
chain,
|
222
|
+
key,
|
223
|
+
name,
|
224
|
+
pollingInterval,
|
225
|
+
transport,
|
226
|
+
type: "testClient"
|
227
|
+
}),
|
228
|
+
mode
|
229
|
+
};
|
230
|
+
}
|
231
|
+
|
232
|
+
// src/clients/createWalletClient.ts
|
233
|
+
function createWalletClient({
|
234
|
+
transport,
|
235
|
+
key = "wallet",
|
236
|
+
name = "Wallet Client",
|
237
|
+
pollingInterval
|
238
|
+
}) {
|
239
|
+
return createClient({
|
240
|
+
key,
|
241
|
+
name,
|
242
|
+
pollingInterval,
|
243
|
+
transport,
|
244
|
+
type: "walletClient"
|
245
|
+
});
|
246
|
+
}
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
exports.createTransport = createTransport; exports.custom = custom; exports.fallback = fallback; exports.http = http; exports.webSocket = webSocket; exports.createClient = createClient; exports.createPublicClient = createPublicClient; exports.createTestClient = createTestClient; exports.createWalletClient = createWalletClient;
|
package/dist/clients/index.js
CHANGED
@@ -1,23 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
2
|
+
|
3
|
+
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
var _chunkSGTIBKHGjs = require('../chunk-SGTIBKHG.js');
|
12
|
+
require('../chunk-5ZBNF5WM.js');
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
exports.createClient = _chunkSGTIBKHGjs.createClient; exports.createPublicClient = _chunkSGTIBKHGjs.createPublicClient; exports.createTestClient = _chunkSGTIBKHGjs.createTestClient; exports.createTransport = _chunkSGTIBKHGjs.createTransport; exports.createWalletClient = _chunkSGTIBKHGjs.createWalletClient; exports.custom = _chunkSGTIBKHGjs.custom; exports.fallback = _chunkSGTIBKHGjs.fallback; exports.http = _chunkSGTIBKHGjs.http; exports.webSocket = _chunkSGTIBKHGjs.webSocket;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import {
|
2
|
+
createClient,
|
3
|
+
createPublicClient,
|
4
|
+
createTestClient,
|
5
|
+
createTransport,
|
6
|
+
createWalletClient,
|
7
|
+
custom,
|
8
|
+
fallback,
|
9
|
+
http,
|
10
|
+
webSocket
|
11
|
+
} from "../chunk-CWCWWGBC.mjs";
|
12
|
+
import "../chunk-2FDH6XP5.mjs";
|
13
|
+
export {
|
14
|
+
createClient,
|
15
|
+
createPublicClient,
|
16
|
+
createTestClient,
|
17
|
+
createTransport,
|
18
|
+
createWalletClient,
|
19
|
+
custom,
|
20
|
+
fallback,
|
21
|
+
http,
|
22
|
+
webSocket
|
23
|
+
};
|
package/dist/index.d.ts
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
export { C as CallArgs, a as
|
1
|
+
export { C as CallArgs, a as CallContractArgs, b as CallContractResponse, c as CallResponse, d as CreateBlockFilterResponse, e as CreatePendingTransactionFilterResponse, D as DropTransactionArgs, E as EstimateGasArgs, f as EstimateGasResponse, G as GetBalanceArgs, g as GetBalanceResponse, h as GetBlockArgs, i as GetBlockNumberArgs, j as GetBlockNumberResponse, k as GetBlockResponse, l as GetBlockTransactionCountArgs, m as GetBlockTransactionCountResponse, n as GetFeeHistoryArgs, o as GetFeeHistoryResponse, p as GetFilterChangesArgs, q as GetFilterChangesResponse, r as GetFilterLogsArgs, s as GetFilterLogsResponse, t as GetGasPriceResponse, u as GetPermissionsResponse, v as GetTransactionArgs, w as GetTransactionConfirmationsArgs, x as GetTransactionConfirmationsResponse, y as GetTransactionCountArgs, z as GetTransactionCountResponse, B as GetTransactionReceiptArgs, F as GetTransactionReceiptResponse, A as GetTransactionResponse, I as ImpersonateAccountArgs, H as IncreaseTimeArgs, M as MineArgs, O as OnBlock, J as OnBlockNumber, K as OnBlockNumberResponse, L as OnBlockResponse, N as OnTransactions, P as OnTransactionsResponse, Q as RequestPermissionsResponse, R as ResetArgs, S as RevertArgs, T as SendTransactionArgs, U as SendTransactionResponse, V as SendUnsignedTransactionArgs, W as SendUnsignedTransactionResponse, X as SetBalanceArgs, Y as SetBlockGasLimitArgs, a1 as SetBlockTimestampIntervalArgs, Z as SetCodeArgs, _ as SetCoinbaseArgs, $ as SetIntervalMiningArgs, a0 as SetMinGasPriceArgs, a3 as SetNextBlockBaseFeePerGasArgs, a2 as SetNextBlockTimestampArgs, a4 as SetNonceArgs, a5 as SetStorageAtArgs, a6 as SignMessageArgs, a7 as SignMessageResponse, a8 as StopImpersonatingAccountArgs, a9 as SwitchChainArgs, aa as UninstallFilterArgs, ab as UninstallFilterResponse, ac as WaitForTransactionReceiptArgs, ad as WaitForTransactionReceiptResponse, ae as WatchAssetArgs, af as WatchAssetResponse, ag as WatchBlockNumberArgs, ah as WatchBlocksArgs, ai as WatchPendingTransactionsArgs, aj as addChain, ak as call, al as callContract, am as createBlockFilter, an as createPendingTransactionFilter, ap as dropTransaction, ao as estimateGas, aq as getAccounts, ar as getAutomine, as as getBalance, at as getBlock, au as getBlockNumber, av as getBlockTransactionCount, aw as getChainId, ax as getFeeHistory, ay as getFilterChanges, az as getFilterLogs, aA as getGasPrice, aB as getPermissions, aC as getTransaction, aD as getTransactionConfirmations, aE as getTransactionCount, aF as getTransactionReceipt, aG as getTxpoolContent, aH as getTxpoolStatus, aI as impersonateAccount, aJ as increaseTime, aK as inspectTxpool, aL as mine, aM as removeBlockTimestampInterval, aO as requestAccounts, aP as requestPermissions, aN as reset, aQ as revert, aR as sendTransaction, aS as sendUnsignedTransaction, aT as setAutomine, aU as setBalance, aV as setBlockGasLimit, aW as setBlockTimestampInterval, aX as setCode, aY as setCoinbase, aZ as setIntervalMining, a_ as setLoggingEnabled, a$ as setMinGasPrice, b0 as setNextBlockBaseFeePerGas, b1 as setNextBlockTimestamp, b2 as setNonce, b3 as setStorageAt, b4 as signMessage, b5 as snapshot, b6 as stopImpersonatingAccount, b7 as switchChain, b8 as uninstallFilter, b9 as waitForTransactionReceipt, ba as watchAsset, bb as watchBlockNumber, bc as watchBlocks, bd as watchPendingTransactions } from './watchAsset-bc6373f4.js';
|
2
2
|
export { C as Client, a as ClientConfig, P as PublicClient, b as PublicClientConfig, T as TestClient, c as TestClientConfig, d as Transport, e as TransportConfig, W as WalletClient, f as WalletClientConfig, g as createClient, h as createPublicClient, i as createTestClient, j as createTransport, k as createWalletClient } from './createWalletClient-d612fe08.js';
|
3
3
|
export { C as CustomTransport, a as CustomTransportConfig, F as FallbackTransport, b as FallbackTransportConfig, H as HttpTransport, c as HttpTransportConfig, W as WebSocketTransport, d as WebSocketTransportConfig, e as custom, f as fallback, h as http, w as webSocket } from './webSocket-7f88e9e0.js';
|
4
4
|
import { H as Hex, A as Address, a as Hash, B as ByteArray, b as BlockTag } from './rpc-b77c5aee.js';
|
5
5
|
export { c as AccessList, A as Address, d as Block, f as BlockIdentifier, h as BlockNumber, b as BlockTag, B as ByteArray, F as FeeHistory, i as FeeValues, j as FeeValuesEIP1559, k as FeeValuesLegacy, 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, u as RpcUncle, D as Transaction, E as TransactionBase, G as TransactionEIP1559, I as TransactionEIP2930, J as TransactionLegacy, T as TransactionReceipt, v as TransactionRequest, x as TransactionRequestBase, y as TransactionRequestEIP1559, z as TransactionRequestEIP2930, C as TransactionRequestLegacy, U as Uncle, e as etherUnits, g as gweiUnits, t as transactionType, w as weiUnits } from './rpc-b77c5aee.js';
|
6
|
-
export {
|
7
|
-
export {
|
6
|
+
export { A as AbiItem, F as FormattedBlock, a as FormattedTransaction, b as FormattedTransactionRequest, f as formatBlock, c as formatTransaction, d as formatTransactionRequest } from './transactionRequest-08d30731.js';
|
7
|
+
export { D as DecodeAbiArgs, a as DecodeErrorResultArgs, b as DecodeFunctionDataArgs, c as DecodeFunctionResultArgs, d as DecodeFunctionResultResponse, E as EncodeAbiArgs, e as EncodeDeployDataArgs, f as EncodeErrorResultArgs, g as EncodeEventTopicsArgs, h as EncodeFunctionDataArgs, i as EncodeFunctionResultArgs, l as EncodeRlpResponse, G as GetContractAddressOptions, k as GetCreate2AddressOptions, j as GetCreateAddressOptions, o as boolToBytes, p as boolToHex, q as bytesToBigint, r as bytesToBool, m as bytesToHex, s as bytesToNumber, n as bytesToString, t as decodeAbi, u as decodeBytes, v as decodeErrorResult, w as decodeFunctionData, x as decodeFunctionResult, y as decodeHex, z as decodeRlp, A as encodeAbi, B as encodeBytes, C as encodeDeployData, F as encodeErrorResult, H as encodeEventTopics, I as encodeFunctionData, J as encodeFunctionResult, K as encodeHex, L as encodeRlp, S as formatEther, a7 as formatGwei, a8 as formatUnit, M as getAddress, N as getContractAddress, P as getCreate2Address, O as getCreateAddress, Q as getEventSignature, R as getFunctionSignature, X as hexToBigInt, Y as hexToBool, Z as hexToBytes, a9 as hexToNumber, _ as hexToString, T as isAddress, U as isAddressEqual, V as isBytes, W as isHex, $ as keccak256, a0 as numberToBytes, aa as numberToHex, a1 as pad, a2 as padBytes, a3 as padHex, a4 as parseEther, a5 as parseGwei, a6 as parseUnit, ab as size, ac as slice, ad as sliceBytes, ae as sliceHex, af as stringToBytes, ag as stringToHex, ah as trim } from './parseGwei-7c87ff41.js';
|
8
|
+
import 'abitype';
|
8
9
|
import './chains.js';
|
9
10
|
import '@wagmi/chains';
|
10
11
|
import './eip1193-020a6f13.js';
|
11
12
|
import './rpc-26932bae.js';
|
12
|
-
import 'abitype';
|
13
13
|
|
14
14
|
type BaseErrorArgs = {
|
15
15
|
docsPath?: string;
|
@@ -119,9 +119,7 @@ declare class InvalidArrayError extends BaseError {
|
|
119
119
|
}
|
120
120
|
declare class InvalidDefinitionTypeError extends BaseError {
|
121
121
|
name: string;
|
122
|
-
constructor(type: string
|
123
|
-
docsPath: string;
|
124
|
-
});
|
122
|
+
constructor(type: string);
|
125
123
|
}
|
126
124
|
|
127
125
|
declare class InvalidAddressError extends BaseError {
|