@gobob/bob-sdk 5.0.8 → 5.0.9
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/gateway/client.d.ts
CHANGED
|
@@ -19,12 +19,6 @@ export declare class GatewayApiClient {
|
|
|
19
19
|
executeQuote({ quote, walletClient, publicClient, btcSigner }: {
|
|
20
20
|
quote: GatewayQuote;
|
|
21
21
|
} & AllWalletClientParams, initOverrides?: RequestInit): Promise<string>;
|
|
22
|
-
_executeQuote({ quote, walletClient, publicClient, btcSigner }: {
|
|
23
|
-
quote: GatewayQuote;
|
|
24
|
-
} & AllWalletClientParams, initOverrides?: RequestInit): Promise<{
|
|
25
|
-
tx: string;
|
|
26
|
-
orderId?: string;
|
|
27
|
-
}>;
|
|
28
22
|
executeStrategy({ walletClient, publicClient, ...params }: StrategyParams & EvmWalletClientParams): Promise<`0x${string}`>;
|
|
29
23
|
getOrders(userAddress: Address, initOverrides?: RequestInit): Promise<Array<GatewayOrderInfo>>;
|
|
30
24
|
getRoutes(initOverrides?: RequestInit): Promise<Array<RouteInfo>>;
|
package/dist/gateway/client.js
CHANGED
|
@@ -215,172 +215,6 @@ class GatewayApiClient {
|
|
|
215
215
|
}
|
|
216
216
|
throw new Error('Invalid quote type');
|
|
217
217
|
}
|
|
218
|
-
async _executeQuote({ quote, walletClient, publicClient, btcSigner }, initOverrides) {
|
|
219
|
-
if ((0, generated_client_1.instanceOfGatewayQuoteOneOf)(quote)) {
|
|
220
|
-
if (!btcSigner) {
|
|
221
|
-
throw new Error(`btcSigner is required for onramp order`);
|
|
222
|
-
}
|
|
223
|
-
const order = await this.api.createOrder({ gatewayQuote: { onramp: quote.onramp } });
|
|
224
|
-
if (!(0, generated_client_1.instanceOfGatewayCreateOrderOneOf)(order)) {
|
|
225
|
-
throw new Error('Invalid order type returned from API');
|
|
226
|
-
}
|
|
227
|
-
let bitcoinTxHex;
|
|
228
|
-
if (btcSigner.sendBitcoin) {
|
|
229
|
-
bitcoinTxHex = await btcSigner.sendBitcoin({
|
|
230
|
-
from: quote.onramp.sender,
|
|
231
|
-
to: order.onramp.address,
|
|
232
|
-
value: (0, utils_1.formatBtc)(BigInt(quote.onramp.inputAmount.amount)),
|
|
233
|
-
opReturn: order.onramp.opReturnData || undefined,
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
else if (btcSigner.signAllInputs) {
|
|
237
|
-
bitcoinTxHex = await btcSigner.signAllInputs(order.onramp.psbtHex);
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
throw new Error('btcSigner must implement either sendBitcoin or signAllInputs method');
|
|
241
|
-
}
|
|
242
|
-
if (!bitcoinTxHex)
|
|
243
|
-
throw new Error('Failed to get signed transaction');
|
|
244
|
-
const tx = await this.api.registerTx({
|
|
245
|
-
registerTx: {
|
|
246
|
-
onramp: {
|
|
247
|
-
orderId: order.onramp.orderId,
|
|
248
|
-
bitcoinTxHex: bitcoinTxHex,
|
|
249
|
-
},
|
|
250
|
-
},
|
|
251
|
-
}, initOverrides);
|
|
252
|
-
if (typeof tx === 'string') {
|
|
253
|
-
return { tx: tx, orderId: order.onramp.orderId };
|
|
254
|
-
}
|
|
255
|
-
if (!(0, generated_client_1.instanceOfRegisterTxOneOf)(tx)) {
|
|
256
|
-
throw new Error('Invalid registerTx response type');
|
|
257
|
-
}
|
|
258
|
-
return { tx: tx.onramp.txid, orderId: order.onramp.orderId };
|
|
259
|
-
}
|
|
260
|
-
else if ((0, generated_client_1.instanceOfGatewayQuoteOneOf1)(quote)) {
|
|
261
|
-
if (!walletClient.account) {
|
|
262
|
-
throw new Error(`walletClient is required for offramp order`);
|
|
263
|
-
}
|
|
264
|
-
const accountAddress = walletClient.account.address;
|
|
265
|
-
const tokenAddress = quote.offramp.tokenAddress;
|
|
266
|
-
const order = await this.api.createOrder({ gatewayQuote: { offramp: quote.offramp } });
|
|
267
|
-
if (!(0, generated_client_1.instanceOfGatewayCreateOrderOneOf1)(order)) {
|
|
268
|
-
throw new Error('Invalid order type returned from API');
|
|
269
|
-
}
|
|
270
|
-
const spenderAddress = order.offramp.tx.to;
|
|
271
|
-
const allowance = !(0, viem_1.isAddressEqual)(tokenAddress, viem_1.zeroAddress)
|
|
272
|
-
? (await publicClient.multicall({
|
|
273
|
-
allowFailure: false,
|
|
274
|
-
contracts: [
|
|
275
|
-
{
|
|
276
|
-
address: tokenAddress,
|
|
277
|
-
abi: viem_1.erc20Abi,
|
|
278
|
-
functionName: 'allowance',
|
|
279
|
-
args: [accountAddress, spenderAddress],
|
|
280
|
-
},
|
|
281
|
-
],
|
|
282
|
-
}))[0]
|
|
283
|
-
: viem_1.maxUint256;
|
|
284
|
-
const requiredAmount = BigInt(quote.offramp.inputAmount.amount);
|
|
285
|
-
const needsApproval = requiredAmount > allowance;
|
|
286
|
-
if (needsApproval && !(0, viem_1.isAddressEqual)(tokenAddress, viem_1.zeroAddress)) {
|
|
287
|
-
if ((0, viem_1.isAddressEqual)(tokenAddress, exports.WBTC_OFT_ADDRESS)) {
|
|
288
|
-
if (quote.offramp.srcChain === 'bob') {
|
|
289
|
-
const { request } = await publicClient.simulateContract({
|
|
290
|
-
account: walletClient.account,
|
|
291
|
-
address: tokenAddress,
|
|
292
|
-
abi: viem_1.erc20Abi,
|
|
293
|
-
functionName: 'approve',
|
|
294
|
-
args: [spenderAddress, viem_1.maxUint256],
|
|
295
|
-
});
|
|
296
|
-
const approveTxHash = await walletClient.writeContract(request);
|
|
297
|
-
await publicClient.waitForTransactionReceipt({ hash: approveTxHash });
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
if ((0, viem_1.isAddressEqual)(tokenAddress, exports.ETHEREUM_USDT_ADDRESS) && allowance !== 0n) {
|
|
302
|
-
const { request: resetRequest } = await publicClient.simulateContract({
|
|
303
|
-
account: walletClient.account,
|
|
304
|
-
address: tokenAddress,
|
|
305
|
-
abi: abi_1.USDTApproveAbi,
|
|
306
|
-
functionName: 'approve',
|
|
307
|
-
args: [spenderAddress, 0n],
|
|
308
|
-
});
|
|
309
|
-
const resetTxHash = await walletClient.writeContract(resetRequest);
|
|
310
|
-
await publicClient.waitForTransactionReceipt({ hash: resetTxHash });
|
|
311
|
-
}
|
|
312
|
-
const { request } = await publicClient.simulateContract({
|
|
313
|
-
account: walletClient.account,
|
|
314
|
-
address: tokenAddress,
|
|
315
|
-
abi: (0, viem_1.isAddressEqual)(tokenAddress, exports.ETHEREUM_USDT_ADDRESS) ? abi_1.USDTApproveAbi : viem_1.erc20Abi,
|
|
316
|
-
functionName: 'approve',
|
|
317
|
-
args: [spenderAddress, viem_1.maxUint256],
|
|
318
|
-
});
|
|
319
|
-
const approveTxHash = await walletClient.writeContract(request);
|
|
320
|
-
await publicClient.waitForTransactionReceipt({ hash: approveTxHash });
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
const transactionHash = await walletClient.sendTransaction({
|
|
324
|
-
account: walletClient.account,
|
|
325
|
-
data: order.offramp.tx.data,
|
|
326
|
-
to: spenderAddress,
|
|
327
|
-
value: BigInt(order.offramp.tx.value || 0),
|
|
328
|
-
});
|
|
329
|
-
await publicClient?.waitForTransactionReceipt({ hash: transactionHash });
|
|
330
|
-
await this.api.registerTx({
|
|
331
|
-
registerTx: {
|
|
332
|
-
offramp: {
|
|
333
|
-
orderId: order.offramp.orderId,
|
|
334
|
-
evmTxhash: transactionHash,
|
|
335
|
-
},
|
|
336
|
-
},
|
|
337
|
-
}, initOverrides);
|
|
338
|
-
return { tx: transactionHash, orderId: order.offramp.orderId };
|
|
339
|
-
}
|
|
340
|
-
else if ((0, generated_client_1.instanceOfGatewayQuoteOneOf2)(quote)) {
|
|
341
|
-
const tokenAddress = quote.layerZero.inputAmount.address;
|
|
342
|
-
const requiredAmount = BigInt(quote.layerZero.inputAmount.amount);
|
|
343
|
-
const accountAddress = walletClient.account.address;
|
|
344
|
-
const receiver = quote.layerZero.tx.to;
|
|
345
|
-
if (!(0, viem_1.isAddressEqual)(tokenAddress, exports.WBTC_OFT_ADDRESS)) {
|
|
346
|
-
try {
|
|
347
|
-
const allowance = await publicClient.readContract({
|
|
348
|
-
account: walletClient.account,
|
|
349
|
-
address: tokenAddress,
|
|
350
|
-
abi: viem_1.erc20Abi,
|
|
351
|
-
functionName: 'allowance',
|
|
352
|
-
args: [accountAddress, receiver],
|
|
353
|
-
});
|
|
354
|
-
if (allowance < requiredAmount) {
|
|
355
|
-
const { request } = await publicClient.simulateContract({
|
|
356
|
-
account: walletClient.account,
|
|
357
|
-
address: tokenAddress,
|
|
358
|
-
abi: viem_1.erc20Abi,
|
|
359
|
-
functionName: 'approve',
|
|
360
|
-
args: [receiver, viem_1.maxUint256],
|
|
361
|
-
});
|
|
362
|
-
const txHash = await walletClient.writeContract(request);
|
|
363
|
-
await publicClient.waitForTransactionReceipt({ hash: txHash });
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
catch (error) {
|
|
367
|
-
if (error instanceof viem_1.ContractFunctionExecutionError) {
|
|
368
|
-
throw new Error('Insufficient native funds for source and destination gas fees, please add more native funds to your account');
|
|
369
|
-
}
|
|
370
|
-
throw error;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
const transactionHash = await walletClient.sendTransaction({
|
|
374
|
-
account: walletClient.account,
|
|
375
|
-
data: quote.layerZero.tx.data,
|
|
376
|
-
to: receiver,
|
|
377
|
-
value: BigInt(quote.layerZero.tx.value || 0),
|
|
378
|
-
});
|
|
379
|
-
await publicClient.waitForTransactionReceipt({ hash: transactionHash });
|
|
380
|
-
return { tx: transactionHash };
|
|
381
|
-
}
|
|
382
|
-
throw new Error('Invalid quote type');
|
|
383
|
-
}
|
|
384
218
|
async executeStrategy({ walletClient, publicClient, ...params }) {
|
|
385
219
|
const allowance = await publicClient.readContract({
|
|
386
220
|
address: params.token,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/gateway/client.ts"],"names":[],"mappings":";;;A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EAAE,YAAY,CAAC,OAAO;SAChC,CAAC,CAAC;QAEH,MAAM,eAAe,GAAG,MAAM,YAAY,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAElE,MAAM,YAAY,EAAE,yBAAyB,CAAC,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC,CAAC;QAEzE,OAAO,eAAe,CAAC;IAC3B,CAAC;IAQD,KAAK,CAAC,SAAS,CAAC,WAAoB,EAAE,aAA2B;QAC7D,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC;IACtF,CAAC;IAOD,KAAK,CAAC,SAAS,CAAC,aAA2B;QACvC,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IAC7C,CAAC;CACJ;AArWD,4CAqWC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as bitcoin from 'bitcoinjs-lib';
|
|
2
|
-
import {
|
|
2
|
+
import { Chain as ViemChain } from 'viem';
|
|
3
3
|
export declare function toHexScriptPubKey(userAddress: string, network: bitcoin.Network): string;
|
|
4
4
|
export declare function isHexPrefixed(str: string): boolean;
|
|
5
5
|
export declare function stripHexPrefix(str: string): string;
|
|
@@ -48,15 +48,15 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
48
48
|
blobGasUsed: bigint;
|
|
49
49
|
difficulty: bigint;
|
|
50
50
|
excessBlobGas: bigint;
|
|
51
|
-
extraData: Hex;
|
|
51
|
+
extraData: import("viem").Hex;
|
|
52
52
|
gasLimit: bigint;
|
|
53
53
|
gasUsed: bigint;
|
|
54
|
-
miner: Address;
|
|
54
|
+
miner: import("viem").Address;
|
|
55
55
|
mixHash: import("viem").Hash;
|
|
56
56
|
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
57
57
|
parentHash: import("viem").Hash;
|
|
58
|
-
receiptsRoot: Hex;
|
|
59
|
-
sealFields: Hex[];
|
|
58
|
+
receiptsRoot: import("viem").Hex;
|
|
59
|
+
sealFields: import("viem").Hex[];
|
|
60
60
|
sha3Uncles: import("viem").Hash;
|
|
61
61
|
size: bigint;
|
|
62
62
|
stateRoot: import("viem").Hash;
|
|
@@ -68,16 +68,16 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
68
68
|
transactions: includeTransactions extends true ? ({
|
|
69
69
|
value: bigint;
|
|
70
70
|
type: "legacy";
|
|
71
|
-
from: Address;
|
|
72
|
-
to: Address | null;
|
|
71
|
+
from: import("viem").Address;
|
|
72
|
+
to: import("viem").Address | null;
|
|
73
73
|
yParity?: undefined | undefined;
|
|
74
74
|
gas: bigint;
|
|
75
75
|
hash: import("viem").Hash;
|
|
76
|
-
input: Hex;
|
|
76
|
+
input: import("viem").Hex;
|
|
77
77
|
nonce: number;
|
|
78
|
-
r: Hex;
|
|
79
|
-
s: Hex;
|
|
80
|
-
typeHex: Hex | null;
|
|
78
|
+
r: import("viem").Hex;
|
|
79
|
+
s: import("viem").Hex;
|
|
80
|
+
typeHex: import("viem").Hex | null;
|
|
81
81
|
v: bigint;
|
|
82
82
|
accessList?: undefined | undefined;
|
|
83
83
|
authorizationList?: undefined | undefined;
|
|
@@ -93,16 +93,16 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
93
93
|
} | {
|
|
94
94
|
value: bigint;
|
|
95
95
|
type: "eip2930";
|
|
96
|
-
from: Address;
|
|
97
|
-
to: Address | null;
|
|
96
|
+
from: import("viem").Address;
|
|
97
|
+
to: import("viem").Address | null;
|
|
98
98
|
yParity: number;
|
|
99
99
|
gas: bigint;
|
|
100
100
|
hash: import("viem").Hash;
|
|
101
|
-
input: Hex;
|
|
101
|
+
input: import("viem").Hex;
|
|
102
102
|
nonce: number;
|
|
103
|
-
r: Hex;
|
|
104
|
-
s: Hex;
|
|
105
|
-
typeHex: Hex | null;
|
|
103
|
+
r: import("viem").Hex;
|
|
104
|
+
s: import("viem").Hex;
|
|
105
|
+
typeHex: import("viem").Hex | null;
|
|
106
106
|
v: bigint;
|
|
107
107
|
accessList: import("viem").AccessList;
|
|
108
108
|
authorizationList?: undefined | undefined;
|
|
@@ -118,16 +118,16 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
118
118
|
} | {
|
|
119
119
|
value: bigint;
|
|
120
120
|
type: "eip1559";
|
|
121
|
-
from: Address;
|
|
122
|
-
to: Address | null;
|
|
121
|
+
from: import("viem").Address;
|
|
122
|
+
to: import("viem").Address | null;
|
|
123
123
|
yParity: number;
|
|
124
124
|
gas: bigint;
|
|
125
125
|
hash: import("viem").Hash;
|
|
126
|
-
input: Hex;
|
|
126
|
+
input: import("viem").Hex;
|
|
127
127
|
nonce: number;
|
|
128
|
-
r: Hex;
|
|
129
|
-
s: Hex;
|
|
130
|
-
typeHex: Hex | null;
|
|
128
|
+
r: import("viem").Hex;
|
|
129
|
+
s: import("viem").Hex;
|
|
130
|
+
typeHex: import("viem").Hex | null;
|
|
131
131
|
v: bigint;
|
|
132
132
|
accessList: import("viem").AccessList;
|
|
133
133
|
authorizationList?: undefined | undefined;
|
|
@@ -143,20 +143,20 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
143
143
|
} | {
|
|
144
144
|
value: bigint;
|
|
145
145
|
type: "eip4844";
|
|
146
|
-
from: Address;
|
|
147
|
-
to: Address | null;
|
|
146
|
+
from: import("viem").Address;
|
|
147
|
+
to: import("viem").Address | null;
|
|
148
148
|
yParity: number;
|
|
149
149
|
gas: bigint;
|
|
150
150
|
hash: import("viem").Hash;
|
|
151
|
-
input: Hex;
|
|
151
|
+
input: import("viem").Hex;
|
|
152
152
|
nonce: number;
|
|
153
|
-
r: Hex;
|
|
154
|
-
s: Hex;
|
|
155
|
-
typeHex: Hex | null;
|
|
153
|
+
r: import("viem").Hex;
|
|
154
|
+
s: import("viem").Hex;
|
|
155
|
+
typeHex: import("viem").Hex | null;
|
|
156
156
|
v: bigint;
|
|
157
157
|
accessList: import("viem").AccessList;
|
|
158
158
|
authorizationList?: undefined | undefined;
|
|
159
|
-
blobVersionedHashes: readonly Hex[];
|
|
159
|
+
blobVersionedHashes: readonly import("viem").Hex[];
|
|
160
160
|
chainId: number;
|
|
161
161
|
gasPrice?: undefined | undefined;
|
|
162
162
|
maxFeePerBlobGas: bigint;
|
|
@@ -168,16 +168,16 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
168
168
|
} | {
|
|
169
169
|
value: bigint;
|
|
170
170
|
type: "eip7702";
|
|
171
|
-
from: Address;
|
|
172
|
-
to: Address | null;
|
|
171
|
+
from: import("viem").Address;
|
|
172
|
+
to: import("viem").Address | null;
|
|
173
173
|
yParity: number;
|
|
174
174
|
gas: bigint;
|
|
175
175
|
hash: import("viem").Hash;
|
|
176
|
-
input: Hex;
|
|
176
|
+
input: import("viem").Hex;
|
|
177
177
|
nonce: number;
|
|
178
|
-
r: Hex;
|
|
179
|
-
s: Hex;
|
|
180
|
-
typeHex: Hex | null;
|
|
178
|
+
r: import("viem").Hex;
|
|
179
|
+
s: import("viem").Hex;
|
|
180
|
+
typeHex: import("viem").Hex | null;
|
|
181
181
|
v: bigint;
|
|
182
182
|
accessList: import("viem").AccessList;
|
|
183
183
|
authorizationList: import("viem").SignedAuthorizationList;
|
|
@@ -218,16 +218,16 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
218
218
|
getTransaction: <blockTag extends import("viem").BlockTag = "latest">(args: import("viem").GetTransactionParameters<blockTag>) => Promise<{
|
|
219
219
|
value: bigint;
|
|
220
220
|
type: "legacy";
|
|
221
|
-
from: Address;
|
|
222
|
-
to: Address | null;
|
|
221
|
+
from: import("viem").Address;
|
|
222
|
+
to: import("viem").Address | null;
|
|
223
223
|
yParity?: undefined | undefined;
|
|
224
224
|
gas: bigint;
|
|
225
225
|
hash: import("viem").Hash;
|
|
226
|
-
input: Hex;
|
|
226
|
+
input: import("viem").Hex;
|
|
227
227
|
nonce: number;
|
|
228
|
-
r: Hex;
|
|
229
|
-
s: Hex;
|
|
230
|
-
typeHex: Hex | null;
|
|
228
|
+
r: import("viem").Hex;
|
|
229
|
+
s: import("viem").Hex;
|
|
230
|
+
typeHex: import("viem").Hex | null;
|
|
231
231
|
v: bigint;
|
|
232
232
|
accessList?: undefined | undefined;
|
|
233
233
|
authorizationList?: undefined | undefined;
|
|
@@ -243,16 +243,16 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
243
243
|
} | {
|
|
244
244
|
value: bigint;
|
|
245
245
|
type: "eip2930";
|
|
246
|
-
from: Address;
|
|
247
|
-
to: Address | null;
|
|
246
|
+
from: import("viem").Address;
|
|
247
|
+
to: import("viem").Address | null;
|
|
248
248
|
yParity: number;
|
|
249
249
|
gas: bigint;
|
|
250
250
|
hash: import("viem").Hash;
|
|
251
|
-
input: Hex;
|
|
251
|
+
input: import("viem").Hex;
|
|
252
252
|
nonce: number;
|
|
253
|
-
r: Hex;
|
|
254
|
-
s: Hex;
|
|
255
|
-
typeHex: Hex | null;
|
|
253
|
+
r: import("viem").Hex;
|
|
254
|
+
s: import("viem").Hex;
|
|
255
|
+
typeHex: import("viem").Hex | null;
|
|
256
256
|
v: bigint;
|
|
257
257
|
accessList: import("viem").AccessList;
|
|
258
258
|
authorizationList?: undefined | undefined;
|
|
@@ -268,16 +268,16 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
268
268
|
} | {
|
|
269
269
|
value: bigint;
|
|
270
270
|
type: "eip1559";
|
|
271
|
-
from: Address;
|
|
272
|
-
to: Address | null;
|
|
271
|
+
from: import("viem").Address;
|
|
272
|
+
to: import("viem").Address | null;
|
|
273
273
|
yParity: number;
|
|
274
274
|
gas: bigint;
|
|
275
275
|
hash: import("viem").Hash;
|
|
276
|
-
input: Hex;
|
|
276
|
+
input: import("viem").Hex;
|
|
277
277
|
nonce: number;
|
|
278
|
-
r: Hex;
|
|
279
|
-
s: Hex;
|
|
280
|
-
typeHex: Hex | null;
|
|
278
|
+
r: import("viem").Hex;
|
|
279
|
+
s: import("viem").Hex;
|
|
280
|
+
typeHex: import("viem").Hex | null;
|
|
281
281
|
v: bigint;
|
|
282
282
|
accessList: import("viem").AccessList;
|
|
283
283
|
authorizationList?: undefined | undefined;
|
|
@@ -293,20 +293,20 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
293
293
|
} | {
|
|
294
294
|
value: bigint;
|
|
295
295
|
type: "eip4844";
|
|
296
|
-
from: Address;
|
|
297
|
-
to: Address | null;
|
|
296
|
+
from: import("viem").Address;
|
|
297
|
+
to: import("viem").Address | null;
|
|
298
298
|
yParity: number;
|
|
299
299
|
gas: bigint;
|
|
300
300
|
hash: import("viem").Hash;
|
|
301
|
-
input: Hex;
|
|
301
|
+
input: import("viem").Hex;
|
|
302
302
|
nonce: number;
|
|
303
|
-
r: Hex;
|
|
304
|
-
s: Hex;
|
|
305
|
-
typeHex: Hex | null;
|
|
303
|
+
r: import("viem").Hex;
|
|
304
|
+
s: import("viem").Hex;
|
|
305
|
+
typeHex: import("viem").Hex | null;
|
|
306
306
|
v: bigint;
|
|
307
307
|
accessList: import("viem").AccessList;
|
|
308
308
|
authorizationList?: undefined | undefined;
|
|
309
|
-
blobVersionedHashes: readonly Hex[];
|
|
309
|
+
blobVersionedHashes: readonly import("viem").Hex[];
|
|
310
310
|
chainId: number;
|
|
311
311
|
gasPrice?: undefined | undefined;
|
|
312
312
|
maxFeePerBlobGas: bigint;
|
|
@@ -318,16 +318,16 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
318
318
|
} | {
|
|
319
319
|
value: bigint;
|
|
320
320
|
type: "eip7702";
|
|
321
|
-
from: Address;
|
|
322
|
-
to: Address | null;
|
|
321
|
+
from: import("viem").Address;
|
|
322
|
+
to: import("viem").Address | null;
|
|
323
323
|
yParity: number;
|
|
324
324
|
gas: bigint;
|
|
325
325
|
hash: import("viem").Hash;
|
|
326
|
-
input: Hex;
|
|
326
|
+
input: import("viem").Hex;
|
|
327
327
|
nonce: number;
|
|
328
|
-
r: Hex;
|
|
329
|
-
s: Hex;
|
|
330
|
-
typeHex: Hex | null;
|
|
328
|
+
r: import("viem").Hex;
|
|
329
|
+
s: import("viem").Hex;
|
|
330
|
+
typeHex: import("viem").Hex | null;
|
|
331
331
|
v: bigint;
|
|
332
332
|
accessList: import("viem").AccessList;
|
|
333
333
|
authorizationList: import("viem").SignedAuthorizationList;
|
|
@@ -345,13 +345,13 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
345
345
|
getTransactionCount: (args: import("viem").GetTransactionCountParameters) => Promise<import("viem").GetTransactionCountReturnType>;
|
|
346
346
|
getTransactionReceipt: (args: import("viem").GetTransactionReceiptParameters) => Promise<import("viem").TransactionReceipt>;
|
|
347
347
|
multicall: <const contracts extends readonly unknown[], allowFailure extends boolean = true>(args: import("viem").MulticallParameters<contracts, allowFailure>) => Promise<import("viem").MulticallReturnType<contracts, allowFailure>>;
|
|
348
|
-
prepareTransactionRequest: <const request extends import("viem").PrepareTransactionRequestRequest<ViemChain, chainOverride>, chainOverride extends ViemChain | undefined = undefined, accountOverride extends import("viem").Account | Address | undefined = undefined>(args: import("viem").PrepareTransactionRequestParameters<ViemChain, import("viem").Account | undefined, chainOverride, accountOverride, request>) => Promise<import("viem").UnionRequiredBy<Extract<import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<ViemChain, chainOverride>, "transactionRequest", import("viem").TransactionRequest>, "from"> & (import("viem").DeriveChain<ViemChain, chainOverride> extends infer T_14 ? T_14 extends import("viem").DeriveChain<ViemChain, chainOverride> ? T_14 extends ViemChain ? {
|
|
348
|
+
prepareTransactionRequest: <const request extends import("viem").PrepareTransactionRequestRequest<ViemChain, chainOverride>, chainOverride extends ViemChain | undefined = undefined, accountOverride extends import("viem").Account | import("viem").Address | undefined = undefined>(args: import("viem").PrepareTransactionRequestParameters<ViemChain, import("viem").Account | undefined, chainOverride, accountOverride, request>) => Promise<import("viem").UnionRequiredBy<Extract<import("viem").UnionOmit<import("viem").ExtractChainFormatterParameters<import("viem").DeriveChain<ViemChain, chainOverride>, "transactionRequest", import("viem").TransactionRequest>, "from"> & (import("viem").DeriveChain<ViemChain, chainOverride> extends infer T_14 ? T_14 extends import("viem").DeriveChain<ViemChain, chainOverride> ? T_14 extends ViemChain ? {
|
|
349
349
|
chain: T_14;
|
|
350
350
|
} : {
|
|
351
351
|
chain?: undefined;
|
|
352
352
|
} : never : never) & (import("viem").DeriveAccount<import("viem").Account | undefined, accountOverride> extends infer T_15 ? T_15 extends import("viem").DeriveAccount<import("viem").Account | undefined, accountOverride> ? T_15 extends import("viem").Account ? {
|
|
353
353
|
account: T_15;
|
|
354
|
-
from: Address;
|
|
354
|
+
from: import("viem").Address;
|
|
355
355
|
} : {
|
|
356
356
|
account?: undefined;
|
|
357
357
|
from?: undefined;
|
|
@@ -3603,7 +3603,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
3603
3603
|
chain?: undefined;
|
|
3604
3604
|
} : never : never) & (import("viem").DeriveAccount<import("viem").Account | undefined, accountOverride> extends infer T_2 ? T_2 extends import("viem").DeriveAccount<import("viem").Account | undefined, accountOverride> ? T_2 extends import("viem").Account ? {
|
|
3605
3605
|
account: T_2;
|
|
3606
|
-
from: Address;
|
|
3606
|
+
from: import("viem").Address;
|
|
3607
3607
|
} : {
|
|
3608
3608
|
account?: undefined;
|
|
3609
3609
|
from?: undefined;
|
|
@@ -6855,7 +6855,7 @@ export declare function viemClient(chain: ViemChain): {
|
|
|
6855
6855
|
simulate: <const calls extends readonly unknown[]>(args: import("viem").SimulateBlocksParameters<calls>) => Promise<import("viem").SimulateBlocksReturnType<calls>>;
|
|
6856
6856
|
simulateBlocks: <const calls extends readonly unknown[]>(args: import("viem").SimulateBlocksParameters<calls>) => Promise<import("viem").SimulateBlocksReturnType<calls>>;
|
|
6857
6857
|
simulateCalls: <const calls extends readonly unknown[]>(args: import("viem").SimulateCallsParameters<calls>) => Promise<import("viem").SimulateCallsReturnType<calls>>;
|
|
6858
|
-
simulateContract: <const abi extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends import("viem").ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends ViemChain | undefined, accountOverride extends import("viem").Account | Address | undefined = undefined>(args: import("viem").SimulateContractParameters<abi, functionName, args_1, ViemChain, chainOverride, accountOverride>) => Promise<import("viem").SimulateContractReturnType<abi, functionName, args_1, ViemChain, import("viem").Account | undefined, chainOverride, accountOverride>>;
|
|
6858
|
+
simulateContract: <const abi extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi, "nonpayable" | "payable">, const args_1 extends import("viem").ContractFunctionArgs<abi, "nonpayable" | "payable", functionName>, chainOverride extends ViemChain | undefined, accountOverride extends import("viem").Account | import("viem").Address | undefined = undefined>(args: import("viem").SimulateContractParameters<abi, functionName, args_1, ViemChain, chainOverride, accountOverride>) => Promise<import("viem").SimulateContractReturnType<abi, functionName, args_1, ViemChain, import("viem").Account | undefined, chainOverride, accountOverride>>;
|
|
6859
6859
|
verifyMessage: (args: import("viem").VerifyMessageActionParameters) => Promise<import("viem").VerifyMessageActionReturnType>;
|
|
6860
6860
|
verifySiweMessage: (args: import("viem/_types/actions/siwe/verifySiweMessage").VerifySiweMessageParameters) => Promise<import("viem/_types/actions/siwe/verifySiweMessage").VerifySiweMessageReturnType>;
|
|
6861
6861
|
verifyTypedData: (args: import("viem").VerifyTypedDataActionParameters) => Promise<import("viem").VerifyTypedDataActionReturnType>;
|
|
@@ -6962,7 +6962,7 @@ export declare const supportedChainsMapping: {
|
|
|
6962
6962
|
gasUsed: bigint;
|
|
6963
6963
|
hash: `0x${string}` | null;
|
|
6964
6964
|
logsBloom: `0x${string}` | null;
|
|
6965
|
-
miner: import("
|
|
6965
|
+
miner: import("viem").Address;
|
|
6966
6966
|
mixHash: import("viem").Hash;
|
|
6967
6967
|
nonce: `0x${string}` | null;
|
|
6968
6968
|
number: bigint | null;
|
|
@@ -6988,14 +6988,14 @@ export declare const supportedChainsMapping: {
|
|
|
6988
6988
|
format: (args: import("viem/chains").OpStackRpcTransaction) => ({
|
|
6989
6989
|
blockHash: `0x${string}` | null;
|
|
6990
6990
|
blockNumber: bigint | null;
|
|
6991
|
-
from: import("
|
|
6991
|
+
from: import("viem").Address;
|
|
6992
6992
|
gas: bigint;
|
|
6993
6993
|
hash: import("viem").Hash;
|
|
6994
6994
|
input: import("viem").Hex;
|
|
6995
6995
|
nonce: number;
|
|
6996
6996
|
r: import("viem").Hex;
|
|
6997
6997
|
s: import("viem").Hex;
|
|
6998
|
-
to: import("
|
|
6998
|
+
to: import("viem").Address | null;
|
|
6999
6999
|
transactionIndex: number | null;
|
|
7000
7000
|
typeHex: import("viem").Hex | null;
|
|
7001
7001
|
v: bigint;
|
|
@@ -7015,8 +7015,8 @@ export declare const supportedChainsMapping: {
|
|
|
7015
7015
|
v: bigint;
|
|
7016
7016
|
value: bigint;
|
|
7017
7017
|
gas: bigint;
|
|
7018
|
-
to: import("
|
|
7019
|
-
from: import("
|
|
7018
|
+
to: import("viem").Address | null;
|
|
7019
|
+
from: import("viem").Address;
|
|
7020
7020
|
nonce: number;
|
|
7021
7021
|
blockHash: `0x${string}` | null;
|
|
7022
7022
|
blockNumber: bigint | null;
|
|
@@ -7040,14 +7040,14 @@ export declare const supportedChainsMapping: {
|
|
|
7040
7040
|
} | {
|
|
7041
7041
|
blockHash: `0x${string}` | null;
|
|
7042
7042
|
blockNumber: bigint | null;
|
|
7043
|
-
from: import("
|
|
7043
|
+
from: import("viem").Address;
|
|
7044
7044
|
gas: bigint;
|
|
7045
7045
|
hash: import("viem").Hash;
|
|
7046
7046
|
input: import("viem").Hex;
|
|
7047
7047
|
nonce: number;
|
|
7048
7048
|
r: import("viem").Hex;
|
|
7049
7049
|
s: import("viem").Hex;
|
|
7050
|
-
to: import("
|
|
7050
|
+
to: import("viem").Address | null;
|
|
7051
7051
|
transactionIndex: number | null;
|
|
7052
7052
|
typeHex: import("viem").Hex | null;
|
|
7053
7053
|
v: bigint;
|
|
@@ -7068,14 +7068,14 @@ export declare const supportedChainsMapping: {
|
|
|
7068
7068
|
} | {
|
|
7069
7069
|
blockHash: `0x${string}` | null;
|
|
7070
7070
|
blockNumber: bigint | null;
|
|
7071
|
-
from: import("
|
|
7071
|
+
from: import("viem").Address;
|
|
7072
7072
|
gas: bigint;
|
|
7073
7073
|
hash: import("viem").Hash;
|
|
7074
7074
|
input: import("viem").Hex;
|
|
7075
7075
|
nonce: number;
|
|
7076
7076
|
r: import("viem").Hex;
|
|
7077
7077
|
s: import("viem").Hex;
|
|
7078
|
-
to: import("
|
|
7078
|
+
to: import("viem").Address | null;
|
|
7079
7079
|
transactionIndex: number | null;
|
|
7080
7080
|
typeHex: import("viem").Hex | null;
|
|
7081
7081
|
v: bigint;
|
|
@@ -7096,14 +7096,14 @@ export declare const supportedChainsMapping: {
|
|
|
7096
7096
|
} | {
|
|
7097
7097
|
blockHash: `0x${string}` | null;
|
|
7098
7098
|
blockNumber: bigint | null;
|
|
7099
|
-
from: import("
|
|
7099
|
+
from: import("viem").Address;
|
|
7100
7100
|
gas: bigint;
|
|
7101
7101
|
hash: import("viem").Hash;
|
|
7102
7102
|
input: import("viem").Hex;
|
|
7103
7103
|
nonce: number;
|
|
7104
7104
|
r: import("viem").Hex;
|
|
7105
7105
|
s: import("viem").Hex;
|
|
7106
|
-
to: import("
|
|
7106
|
+
to: import("viem").Address | null;
|
|
7107
7107
|
transactionIndex: number | null;
|
|
7108
7108
|
typeHex: import("viem").Hex | null;
|
|
7109
7109
|
v: bigint;
|
|
@@ -7124,14 +7124,14 @@ export declare const supportedChainsMapping: {
|
|
|
7124
7124
|
} | {
|
|
7125
7125
|
blockHash: `0x${string}` | null;
|
|
7126
7126
|
blockNumber: bigint | null;
|
|
7127
|
-
from: import("
|
|
7127
|
+
from: import("viem").Address;
|
|
7128
7128
|
gas: bigint;
|
|
7129
7129
|
hash: import("viem").Hash;
|
|
7130
7130
|
input: import("viem").Hex;
|
|
7131
7131
|
nonce: number;
|
|
7132
7132
|
r: import("viem").Hex;
|
|
7133
7133
|
s: import("viem").Hex;
|
|
7134
|
-
to: import("
|
|
7134
|
+
to: import("viem").Address | null;
|
|
7135
7135
|
transactionIndex: number | null;
|
|
7136
7136
|
typeHex: import("viem").Hex | null;
|
|
7137
7137
|
v: bigint;
|
|
@@ -7159,16 +7159,16 @@ export declare const supportedChainsMapping: {
|
|
|
7159
7159
|
blobGasUsed?: bigint | undefined;
|
|
7160
7160
|
blockHash: import("viem").Hash;
|
|
7161
7161
|
blockNumber: bigint;
|
|
7162
|
-
contractAddress: import("
|
|
7162
|
+
contractAddress: import("viem").Address | null | undefined;
|
|
7163
7163
|
cumulativeGasUsed: bigint;
|
|
7164
7164
|
effectiveGasPrice: bigint;
|
|
7165
|
-
from: import("
|
|
7165
|
+
from: import("viem").Address;
|
|
7166
7166
|
gasUsed: bigint;
|
|
7167
7167
|
logs: import("viem").Log<bigint, number, false>[];
|
|
7168
7168
|
logsBloom: import("viem").Hex;
|
|
7169
7169
|
root?: `0x${string}` | undefined;
|
|
7170
7170
|
status: "success" | "reverted";
|
|
7171
|
-
to: import("
|
|
7171
|
+
to: import("viem").Address | null;
|
|
7172
7172
|
transactionHash: import("viem").Hash;
|
|
7173
7173
|
transactionIndex: number;
|
|
7174
7174
|
type: import("viem").TransactionType;
|
|
@@ -7374,7 +7374,7 @@ export declare const supportedChainsMapping: {
|
|
|
7374
7374
|
gasUsed: bigint;
|
|
7375
7375
|
hash: `0x${string}` | null;
|
|
7376
7376
|
logsBloom: `0x${string}` | null;
|
|
7377
|
-
miner: import("
|
|
7377
|
+
miner: import("viem").Address;
|
|
7378
7378
|
mixHash: import("viem").Hash;
|
|
7379
7379
|
nonce: `0x${string}` | null;
|
|
7380
7380
|
number: bigint | null;
|
|
@@ -7400,14 +7400,14 @@ export declare const supportedChainsMapping: {
|
|
|
7400
7400
|
format: (args: import("viem/chains").OpStackRpcTransaction) => ({
|
|
7401
7401
|
blockHash: `0x${string}` | null;
|
|
7402
7402
|
blockNumber: bigint | null;
|
|
7403
|
-
from: import("
|
|
7403
|
+
from: import("viem").Address;
|
|
7404
7404
|
gas: bigint;
|
|
7405
7405
|
hash: import("viem").Hash;
|
|
7406
7406
|
input: import("viem").Hex;
|
|
7407
7407
|
nonce: number;
|
|
7408
7408
|
r: import("viem").Hex;
|
|
7409
7409
|
s: import("viem").Hex;
|
|
7410
|
-
to: import("
|
|
7410
|
+
to: import("viem").Address | null;
|
|
7411
7411
|
transactionIndex: number | null;
|
|
7412
7412
|
typeHex: import("viem").Hex | null;
|
|
7413
7413
|
v: bigint;
|
|
@@ -7427,8 +7427,8 @@ export declare const supportedChainsMapping: {
|
|
|
7427
7427
|
v: bigint;
|
|
7428
7428
|
value: bigint;
|
|
7429
7429
|
gas: bigint;
|
|
7430
|
-
to: import("
|
|
7431
|
-
from: import("
|
|
7430
|
+
to: import("viem").Address | null;
|
|
7431
|
+
from: import("viem").Address;
|
|
7432
7432
|
nonce: number;
|
|
7433
7433
|
blockHash: `0x${string}` | null;
|
|
7434
7434
|
blockNumber: bigint | null;
|
|
@@ -7452,14 +7452,14 @@ export declare const supportedChainsMapping: {
|
|
|
7452
7452
|
} | {
|
|
7453
7453
|
blockHash: `0x${string}` | null;
|
|
7454
7454
|
blockNumber: bigint | null;
|
|
7455
|
-
from: import("
|
|
7455
|
+
from: import("viem").Address;
|
|
7456
7456
|
gas: bigint;
|
|
7457
7457
|
hash: import("viem").Hash;
|
|
7458
7458
|
input: import("viem").Hex;
|
|
7459
7459
|
nonce: number;
|
|
7460
7460
|
r: import("viem").Hex;
|
|
7461
7461
|
s: import("viem").Hex;
|
|
7462
|
-
to: import("
|
|
7462
|
+
to: import("viem").Address | null;
|
|
7463
7463
|
transactionIndex: number | null;
|
|
7464
7464
|
typeHex: import("viem").Hex | null;
|
|
7465
7465
|
v: bigint;
|
|
@@ -7480,14 +7480,14 @@ export declare const supportedChainsMapping: {
|
|
|
7480
7480
|
} | {
|
|
7481
7481
|
blockHash: `0x${string}` | null;
|
|
7482
7482
|
blockNumber: bigint | null;
|
|
7483
|
-
from: import("
|
|
7483
|
+
from: import("viem").Address;
|
|
7484
7484
|
gas: bigint;
|
|
7485
7485
|
hash: import("viem").Hash;
|
|
7486
7486
|
input: import("viem").Hex;
|
|
7487
7487
|
nonce: number;
|
|
7488
7488
|
r: import("viem").Hex;
|
|
7489
7489
|
s: import("viem").Hex;
|
|
7490
|
-
to: import("
|
|
7490
|
+
to: import("viem").Address | null;
|
|
7491
7491
|
transactionIndex: number | null;
|
|
7492
7492
|
typeHex: import("viem").Hex | null;
|
|
7493
7493
|
v: bigint;
|
|
@@ -7508,14 +7508,14 @@ export declare const supportedChainsMapping: {
|
|
|
7508
7508
|
} | {
|
|
7509
7509
|
blockHash: `0x${string}` | null;
|
|
7510
7510
|
blockNumber: bigint | null;
|
|
7511
|
-
from: import("
|
|
7511
|
+
from: import("viem").Address;
|
|
7512
7512
|
gas: bigint;
|
|
7513
7513
|
hash: import("viem").Hash;
|
|
7514
7514
|
input: import("viem").Hex;
|
|
7515
7515
|
nonce: number;
|
|
7516
7516
|
r: import("viem").Hex;
|
|
7517
7517
|
s: import("viem").Hex;
|
|
7518
|
-
to: import("
|
|
7518
|
+
to: import("viem").Address | null;
|
|
7519
7519
|
transactionIndex: number | null;
|
|
7520
7520
|
typeHex: import("viem").Hex | null;
|
|
7521
7521
|
v: bigint;
|
|
@@ -7536,14 +7536,14 @@ export declare const supportedChainsMapping: {
|
|
|
7536
7536
|
} | {
|
|
7537
7537
|
blockHash: `0x${string}` | null;
|
|
7538
7538
|
blockNumber: bigint | null;
|
|
7539
|
-
from: import("
|
|
7539
|
+
from: import("viem").Address;
|
|
7540
7540
|
gas: bigint;
|
|
7541
7541
|
hash: import("viem").Hash;
|
|
7542
7542
|
input: import("viem").Hex;
|
|
7543
7543
|
nonce: number;
|
|
7544
7544
|
r: import("viem").Hex;
|
|
7545
7545
|
s: import("viem").Hex;
|
|
7546
|
-
to: import("
|
|
7546
|
+
to: import("viem").Address | null;
|
|
7547
7547
|
transactionIndex: number | null;
|
|
7548
7548
|
typeHex: import("viem").Hex | null;
|
|
7549
7549
|
v: bigint;
|
|
@@ -7571,16 +7571,16 @@ export declare const supportedChainsMapping: {
|
|
|
7571
7571
|
blobGasUsed?: bigint | undefined;
|
|
7572
7572
|
blockHash: import("viem").Hash;
|
|
7573
7573
|
blockNumber: bigint;
|
|
7574
|
-
contractAddress: import("
|
|
7574
|
+
contractAddress: import("viem").Address | null | undefined;
|
|
7575
7575
|
cumulativeGasUsed: bigint;
|
|
7576
7576
|
effectiveGasPrice: bigint;
|
|
7577
|
-
from: import("
|
|
7577
|
+
from: import("viem").Address;
|
|
7578
7578
|
gasUsed: bigint;
|
|
7579
7579
|
logs: import("viem").Log<bigint, number, false>[];
|
|
7580
7580
|
logsBloom: import("viem").Hex;
|
|
7581
7581
|
root?: `0x${string}` | undefined;
|
|
7582
7582
|
status: "success" | "reverted";
|
|
7583
|
-
to: import("
|
|
7583
|
+
to: import("viem").Address | null;
|
|
7584
7584
|
transactionHash: import("viem").Hash;
|
|
7585
7585
|
transactionIndex: number;
|
|
7586
7586
|
type: import("viem").TransactionType;
|
|
@@ -7797,7 +7797,7 @@ export declare const supportedChainsMapping: {
|
|
|
7797
7797
|
gasUsed: bigint;
|
|
7798
7798
|
hash: `0x${string}` | null;
|
|
7799
7799
|
logsBloom: `0x${string}` | null;
|
|
7800
|
-
miner: import("
|
|
7800
|
+
miner: import("viem").Address;
|
|
7801
7801
|
mixHash: import("viem").Hash;
|
|
7802
7802
|
nonce: `0x${string}` | null;
|
|
7803
7803
|
number: bigint | null;
|
|
@@ -7823,14 +7823,14 @@ export declare const supportedChainsMapping: {
|
|
|
7823
7823
|
format: (args: import("viem/chains").OpStackRpcTransaction) => ({
|
|
7824
7824
|
blockHash: `0x${string}` | null;
|
|
7825
7825
|
blockNumber: bigint | null;
|
|
7826
|
-
from: import("
|
|
7826
|
+
from: import("viem").Address;
|
|
7827
7827
|
gas: bigint;
|
|
7828
7828
|
hash: import("viem").Hash;
|
|
7829
7829
|
input: import("viem").Hex;
|
|
7830
7830
|
nonce: number;
|
|
7831
7831
|
r: import("viem").Hex;
|
|
7832
7832
|
s: import("viem").Hex;
|
|
7833
|
-
to: import("
|
|
7833
|
+
to: import("viem").Address | null;
|
|
7834
7834
|
transactionIndex: number | null;
|
|
7835
7835
|
typeHex: import("viem").Hex | null;
|
|
7836
7836
|
v: bigint;
|
|
@@ -7850,8 +7850,8 @@ export declare const supportedChainsMapping: {
|
|
|
7850
7850
|
v: bigint;
|
|
7851
7851
|
value: bigint;
|
|
7852
7852
|
gas: bigint;
|
|
7853
|
-
to: import("
|
|
7854
|
-
from: import("
|
|
7853
|
+
to: import("viem").Address | null;
|
|
7854
|
+
from: import("viem").Address;
|
|
7855
7855
|
nonce: number;
|
|
7856
7856
|
blockHash: `0x${string}` | null;
|
|
7857
7857
|
blockNumber: bigint | null;
|
|
@@ -7875,14 +7875,14 @@ export declare const supportedChainsMapping: {
|
|
|
7875
7875
|
} | {
|
|
7876
7876
|
blockHash: `0x${string}` | null;
|
|
7877
7877
|
blockNumber: bigint | null;
|
|
7878
|
-
from: import("
|
|
7878
|
+
from: import("viem").Address;
|
|
7879
7879
|
gas: bigint;
|
|
7880
7880
|
hash: import("viem").Hash;
|
|
7881
7881
|
input: import("viem").Hex;
|
|
7882
7882
|
nonce: number;
|
|
7883
7883
|
r: import("viem").Hex;
|
|
7884
7884
|
s: import("viem").Hex;
|
|
7885
|
-
to: import("
|
|
7885
|
+
to: import("viem").Address | null;
|
|
7886
7886
|
transactionIndex: number | null;
|
|
7887
7887
|
typeHex: import("viem").Hex | null;
|
|
7888
7888
|
v: bigint;
|
|
@@ -7903,14 +7903,14 @@ export declare const supportedChainsMapping: {
|
|
|
7903
7903
|
} | {
|
|
7904
7904
|
blockHash: `0x${string}` | null;
|
|
7905
7905
|
blockNumber: bigint | null;
|
|
7906
|
-
from: import("
|
|
7906
|
+
from: import("viem").Address;
|
|
7907
7907
|
gas: bigint;
|
|
7908
7908
|
hash: import("viem").Hash;
|
|
7909
7909
|
input: import("viem").Hex;
|
|
7910
7910
|
nonce: number;
|
|
7911
7911
|
r: import("viem").Hex;
|
|
7912
7912
|
s: import("viem").Hex;
|
|
7913
|
-
to: import("
|
|
7913
|
+
to: import("viem").Address | null;
|
|
7914
7914
|
transactionIndex: number | null;
|
|
7915
7915
|
typeHex: import("viem").Hex | null;
|
|
7916
7916
|
v: bigint;
|
|
@@ -7931,14 +7931,14 @@ export declare const supportedChainsMapping: {
|
|
|
7931
7931
|
} | {
|
|
7932
7932
|
blockHash: `0x${string}` | null;
|
|
7933
7933
|
blockNumber: bigint | null;
|
|
7934
|
-
from: import("
|
|
7934
|
+
from: import("viem").Address;
|
|
7935
7935
|
gas: bigint;
|
|
7936
7936
|
hash: import("viem").Hash;
|
|
7937
7937
|
input: import("viem").Hex;
|
|
7938
7938
|
nonce: number;
|
|
7939
7939
|
r: import("viem").Hex;
|
|
7940
7940
|
s: import("viem").Hex;
|
|
7941
|
-
to: import("
|
|
7941
|
+
to: import("viem").Address | null;
|
|
7942
7942
|
transactionIndex: number | null;
|
|
7943
7943
|
typeHex: import("viem").Hex | null;
|
|
7944
7944
|
v: bigint;
|
|
@@ -7959,14 +7959,14 @@ export declare const supportedChainsMapping: {
|
|
|
7959
7959
|
} | {
|
|
7960
7960
|
blockHash: `0x${string}` | null;
|
|
7961
7961
|
blockNumber: bigint | null;
|
|
7962
|
-
from: import("
|
|
7962
|
+
from: import("viem").Address;
|
|
7963
7963
|
gas: bigint;
|
|
7964
7964
|
hash: import("viem").Hash;
|
|
7965
7965
|
input: import("viem").Hex;
|
|
7966
7966
|
nonce: number;
|
|
7967
7967
|
r: import("viem").Hex;
|
|
7968
7968
|
s: import("viem").Hex;
|
|
7969
|
-
to: import("
|
|
7969
|
+
to: import("viem").Address | null;
|
|
7970
7970
|
transactionIndex: number | null;
|
|
7971
7971
|
typeHex: import("viem").Hex | null;
|
|
7972
7972
|
v: bigint;
|
|
@@ -7994,16 +7994,16 @@ export declare const supportedChainsMapping: {
|
|
|
7994
7994
|
blobGasUsed?: bigint | undefined;
|
|
7995
7995
|
blockHash: import("viem").Hash;
|
|
7996
7996
|
blockNumber: bigint;
|
|
7997
|
-
contractAddress: import("
|
|
7997
|
+
contractAddress: import("viem").Address | null | undefined;
|
|
7998
7998
|
cumulativeGasUsed: bigint;
|
|
7999
7999
|
effectiveGasPrice: bigint;
|
|
8000
|
-
from: import("
|
|
8000
|
+
from: import("viem").Address;
|
|
8001
8001
|
gasUsed: bigint;
|
|
8002
8002
|
logs: import("viem").Log<bigint, number, false>[];
|
|
8003
8003
|
logsBloom: import("viem").Hex;
|
|
8004
8004
|
root?: `0x${string}` | undefined;
|
|
8005
8005
|
status: "success" | "reverted";
|
|
8006
|
-
to: import("
|
|
8006
|
+
to: import("viem").Address | null;
|
|
8007
8007
|
transactionHash: import("viem").Hash;
|
|
8008
8008
|
transactionIndex: number;
|
|
8009
8009
|
type: import("viem").TransactionType;
|
|
@@ -8105,7 +8105,7 @@ export declare const supportedChainsMapping: {
|
|
|
8105
8105
|
gasUsed: bigint;
|
|
8106
8106
|
hash: `0x${string}` | null;
|
|
8107
8107
|
logsBloom: `0x${string}` | null;
|
|
8108
|
-
miner: import("
|
|
8108
|
+
miner: import("viem").Address;
|
|
8109
8109
|
mixHash: import("viem").Hash;
|
|
8110
8110
|
nonce: `0x${string}` | null;
|
|
8111
8111
|
number: bigint | null;
|
|
@@ -8131,14 +8131,14 @@ export declare const supportedChainsMapping: {
|
|
|
8131
8131
|
format: (args: import("viem/chains").OpStackRpcTransaction) => ({
|
|
8132
8132
|
blockHash: `0x${string}` | null;
|
|
8133
8133
|
blockNumber: bigint | null;
|
|
8134
|
-
from: import("
|
|
8134
|
+
from: import("viem").Address;
|
|
8135
8135
|
gas: bigint;
|
|
8136
8136
|
hash: import("viem").Hash;
|
|
8137
8137
|
input: import("viem").Hex;
|
|
8138
8138
|
nonce: number;
|
|
8139
8139
|
r: import("viem").Hex;
|
|
8140
8140
|
s: import("viem").Hex;
|
|
8141
|
-
to: import("
|
|
8141
|
+
to: import("viem").Address | null;
|
|
8142
8142
|
transactionIndex: number | null;
|
|
8143
8143
|
typeHex: import("viem").Hex | null;
|
|
8144
8144
|
v: bigint;
|
|
@@ -8158,8 +8158,8 @@ export declare const supportedChainsMapping: {
|
|
|
8158
8158
|
v: bigint;
|
|
8159
8159
|
value: bigint;
|
|
8160
8160
|
gas: bigint;
|
|
8161
|
-
to: import("
|
|
8162
|
-
from: import("
|
|
8161
|
+
to: import("viem").Address | null;
|
|
8162
|
+
from: import("viem").Address;
|
|
8163
8163
|
nonce: number;
|
|
8164
8164
|
blockHash: `0x${string}` | null;
|
|
8165
8165
|
blockNumber: bigint | null;
|
|
@@ -8183,14 +8183,14 @@ export declare const supportedChainsMapping: {
|
|
|
8183
8183
|
} | {
|
|
8184
8184
|
blockHash: `0x${string}` | null;
|
|
8185
8185
|
blockNumber: bigint | null;
|
|
8186
|
-
from: import("
|
|
8186
|
+
from: import("viem").Address;
|
|
8187
8187
|
gas: bigint;
|
|
8188
8188
|
hash: import("viem").Hash;
|
|
8189
8189
|
input: import("viem").Hex;
|
|
8190
8190
|
nonce: number;
|
|
8191
8191
|
r: import("viem").Hex;
|
|
8192
8192
|
s: import("viem").Hex;
|
|
8193
|
-
to: import("
|
|
8193
|
+
to: import("viem").Address | null;
|
|
8194
8194
|
transactionIndex: number | null;
|
|
8195
8195
|
typeHex: import("viem").Hex | null;
|
|
8196
8196
|
v: bigint;
|
|
@@ -8211,14 +8211,14 @@ export declare const supportedChainsMapping: {
|
|
|
8211
8211
|
} | {
|
|
8212
8212
|
blockHash: `0x${string}` | null;
|
|
8213
8213
|
blockNumber: bigint | null;
|
|
8214
|
-
from: import("
|
|
8214
|
+
from: import("viem").Address;
|
|
8215
8215
|
gas: bigint;
|
|
8216
8216
|
hash: import("viem").Hash;
|
|
8217
8217
|
input: import("viem").Hex;
|
|
8218
8218
|
nonce: number;
|
|
8219
8219
|
r: import("viem").Hex;
|
|
8220
8220
|
s: import("viem").Hex;
|
|
8221
|
-
to: import("
|
|
8221
|
+
to: import("viem").Address | null;
|
|
8222
8222
|
transactionIndex: number | null;
|
|
8223
8223
|
typeHex: import("viem").Hex | null;
|
|
8224
8224
|
v: bigint;
|
|
@@ -8239,14 +8239,14 @@ export declare const supportedChainsMapping: {
|
|
|
8239
8239
|
} | {
|
|
8240
8240
|
blockHash: `0x${string}` | null;
|
|
8241
8241
|
blockNumber: bigint | null;
|
|
8242
|
-
from: import("
|
|
8242
|
+
from: import("viem").Address;
|
|
8243
8243
|
gas: bigint;
|
|
8244
8244
|
hash: import("viem").Hash;
|
|
8245
8245
|
input: import("viem").Hex;
|
|
8246
8246
|
nonce: number;
|
|
8247
8247
|
r: import("viem").Hex;
|
|
8248
8248
|
s: import("viem").Hex;
|
|
8249
|
-
to: import("
|
|
8249
|
+
to: import("viem").Address | null;
|
|
8250
8250
|
transactionIndex: number | null;
|
|
8251
8251
|
typeHex: import("viem").Hex | null;
|
|
8252
8252
|
v: bigint;
|
|
@@ -8267,14 +8267,14 @@ export declare const supportedChainsMapping: {
|
|
|
8267
8267
|
} | {
|
|
8268
8268
|
blockHash: `0x${string}` | null;
|
|
8269
8269
|
blockNumber: bigint | null;
|
|
8270
|
-
from: import("
|
|
8270
|
+
from: import("viem").Address;
|
|
8271
8271
|
gas: bigint;
|
|
8272
8272
|
hash: import("viem").Hash;
|
|
8273
8273
|
input: import("viem").Hex;
|
|
8274
8274
|
nonce: number;
|
|
8275
8275
|
r: import("viem").Hex;
|
|
8276
8276
|
s: import("viem").Hex;
|
|
8277
|
-
to: import("
|
|
8277
|
+
to: import("viem").Address | null;
|
|
8278
8278
|
transactionIndex: number | null;
|
|
8279
8279
|
typeHex: import("viem").Hex | null;
|
|
8280
8280
|
v: bigint;
|
|
@@ -8302,16 +8302,16 @@ export declare const supportedChainsMapping: {
|
|
|
8302
8302
|
blobGasUsed?: bigint | undefined;
|
|
8303
8303
|
blockHash: import("viem").Hash;
|
|
8304
8304
|
blockNumber: bigint;
|
|
8305
|
-
contractAddress: import("
|
|
8305
|
+
contractAddress: import("viem").Address | null | undefined;
|
|
8306
8306
|
cumulativeGasUsed: bigint;
|
|
8307
8307
|
effectiveGasPrice: bigint;
|
|
8308
|
-
from: import("
|
|
8308
|
+
from: import("viem").Address;
|
|
8309
8309
|
gasUsed: bigint;
|
|
8310
8310
|
logs: import("viem").Log<bigint, number, false>[];
|
|
8311
8311
|
logsBloom: import("viem").Hex;
|
|
8312
8312
|
root?: `0x${string}` | undefined;
|
|
8313
8313
|
status: "success" | "reverted";
|
|
8314
|
-
to: import("
|
|
8314
|
+
to: import("viem").Address | null;
|
|
8315
8315
|
transactionHash: import("viem").Hash;
|
|
8316
8316
|
transactionIndex: number;
|
|
8317
8317
|
type: import("viem").TransactionType;
|
|
@@ -8411,7 +8411,7 @@ export declare const supportedChainsMapping: {
|
|
|
8411
8411
|
gasUsed: bigint;
|
|
8412
8412
|
hash: `0x${string}` | null;
|
|
8413
8413
|
logsBloom: `0x${string}` | null;
|
|
8414
|
-
miner: import("
|
|
8414
|
+
miner: import("viem").Address;
|
|
8415
8415
|
mixHash: import("viem").Hash;
|
|
8416
8416
|
nonce: `0x${string}` | null;
|
|
8417
8417
|
number: bigint | null;
|
|
@@ -8437,14 +8437,14 @@ export declare const supportedChainsMapping: {
|
|
|
8437
8437
|
format: (args: import("viem/chains").OpStackRpcTransaction) => ({
|
|
8438
8438
|
blockHash: `0x${string}` | null;
|
|
8439
8439
|
blockNumber: bigint | null;
|
|
8440
|
-
from: import("
|
|
8440
|
+
from: import("viem").Address;
|
|
8441
8441
|
gas: bigint;
|
|
8442
8442
|
hash: import("viem").Hash;
|
|
8443
8443
|
input: import("viem").Hex;
|
|
8444
8444
|
nonce: number;
|
|
8445
8445
|
r: import("viem").Hex;
|
|
8446
8446
|
s: import("viem").Hex;
|
|
8447
|
-
to: import("
|
|
8447
|
+
to: import("viem").Address | null;
|
|
8448
8448
|
transactionIndex: number | null;
|
|
8449
8449
|
typeHex: import("viem").Hex | null;
|
|
8450
8450
|
v: bigint;
|
|
@@ -8464,8 +8464,8 @@ export declare const supportedChainsMapping: {
|
|
|
8464
8464
|
v: bigint;
|
|
8465
8465
|
value: bigint;
|
|
8466
8466
|
gas: bigint;
|
|
8467
|
-
to: import("
|
|
8468
|
-
from: import("
|
|
8467
|
+
to: import("viem").Address | null;
|
|
8468
|
+
from: import("viem").Address;
|
|
8469
8469
|
nonce: number;
|
|
8470
8470
|
blockHash: `0x${string}` | null;
|
|
8471
8471
|
blockNumber: bigint | null;
|
|
@@ -8489,14 +8489,14 @@ export declare const supportedChainsMapping: {
|
|
|
8489
8489
|
} | {
|
|
8490
8490
|
blockHash: `0x${string}` | null;
|
|
8491
8491
|
blockNumber: bigint | null;
|
|
8492
|
-
from: import("
|
|
8492
|
+
from: import("viem").Address;
|
|
8493
8493
|
gas: bigint;
|
|
8494
8494
|
hash: import("viem").Hash;
|
|
8495
8495
|
input: import("viem").Hex;
|
|
8496
8496
|
nonce: number;
|
|
8497
8497
|
r: import("viem").Hex;
|
|
8498
8498
|
s: import("viem").Hex;
|
|
8499
|
-
to: import("
|
|
8499
|
+
to: import("viem").Address | null;
|
|
8500
8500
|
transactionIndex: number | null;
|
|
8501
8501
|
typeHex: import("viem").Hex | null;
|
|
8502
8502
|
v: bigint;
|
|
@@ -8517,14 +8517,14 @@ export declare const supportedChainsMapping: {
|
|
|
8517
8517
|
} | {
|
|
8518
8518
|
blockHash: `0x${string}` | null;
|
|
8519
8519
|
blockNumber: bigint | null;
|
|
8520
|
-
from: import("
|
|
8520
|
+
from: import("viem").Address;
|
|
8521
8521
|
gas: bigint;
|
|
8522
8522
|
hash: import("viem").Hash;
|
|
8523
8523
|
input: import("viem").Hex;
|
|
8524
8524
|
nonce: number;
|
|
8525
8525
|
r: import("viem").Hex;
|
|
8526
8526
|
s: import("viem").Hex;
|
|
8527
|
-
to: import("
|
|
8527
|
+
to: import("viem").Address | null;
|
|
8528
8528
|
transactionIndex: number | null;
|
|
8529
8529
|
typeHex: import("viem").Hex | null;
|
|
8530
8530
|
v: bigint;
|
|
@@ -8545,14 +8545,14 @@ export declare const supportedChainsMapping: {
|
|
|
8545
8545
|
} | {
|
|
8546
8546
|
blockHash: `0x${string}` | null;
|
|
8547
8547
|
blockNumber: bigint | null;
|
|
8548
|
-
from: import("
|
|
8548
|
+
from: import("viem").Address;
|
|
8549
8549
|
gas: bigint;
|
|
8550
8550
|
hash: import("viem").Hash;
|
|
8551
8551
|
input: import("viem").Hex;
|
|
8552
8552
|
nonce: number;
|
|
8553
8553
|
r: import("viem").Hex;
|
|
8554
8554
|
s: import("viem").Hex;
|
|
8555
|
-
to: import("
|
|
8555
|
+
to: import("viem").Address | null;
|
|
8556
8556
|
transactionIndex: number | null;
|
|
8557
8557
|
typeHex: import("viem").Hex | null;
|
|
8558
8558
|
v: bigint;
|
|
@@ -8573,14 +8573,14 @@ export declare const supportedChainsMapping: {
|
|
|
8573
8573
|
} | {
|
|
8574
8574
|
blockHash: `0x${string}` | null;
|
|
8575
8575
|
blockNumber: bigint | null;
|
|
8576
|
-
from: import("
|
|
8576
|
+
from: import("viem").Address;
|
|
8577
8577
|
gas: bigint;
|
|
8578
8578
|
hash: import("viem").Hash;
|
|
8579
8579
|
input: import("viem").Hex;
|
|
8580
8580
|
nonce: number;
|
|
8581
8581
|
r: import("viem").Hex;
|
|
8582
8582
|
s: import("viem").Hex;
|
|
8583
|
-
to: import("
|
|
8583
|
+
to: import("viem").Address | null;
|
|
8584
8584
|
transactionIndex: number | null;
|
|
8585
8585
|
typeHex: import("viem").Hex | null;
|
|
8586
8586
|
v: bigint;
|
|
@@ -8608,16 +8608,16 @@ export declare const supportedChainsMapping: {
|
|
|
8608
8608
|
blobGasUsed?: bigint | undefined;
|
|
8609
8609
|
blockHash: import("viem").Hash;
|
|
8610
8610
|
blockNumber: bigint;
|
|
8611
|
-
contractAddress: import("
|
|
8611
|
+
contractAddress: import("viem").Address | null | undefined;
|
|
8612
8612
|
cumulativeGasUsed: bigint;
|
|
8613
8613
|
effectiveGasPrice: bigint;
|
|
8614
|
-
from: import("
|
|
8614
|
+
from: import("viem").Address;
|
|
8615
8615
|
gasUsed: bigint;
|
|
8616
8616
|
logs: import("viem").Log<bigint, number, false>[];
|
|
8617
8617
|
logsBloom: import("viem").Hex;
|
|
8618
8618
|
root?: `0x${string}` | undefined;
|
|
8619
8619
|
status: "success" | "reverted";
|
|
8620
|
-
to: import("
|
|
8620
|
+
to: import("viem").Address | null;
|
|
8621
8621
|
transactionHash: import("viem").Hash;
|
|
8622
8622
|
transactionIndex: number;
|
|
8623
8623
|
type: import("viem").TransactionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/gateway/utils/common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,8CAIC;AAED,sCAEC;AAED,wCAEC;AAED,0BAKC;AAED,gCAEC;AAED,4BAEC;AAED,8BAEC;AAiDD,wCAOC;AAGD,wCAEC;AAED,4CAKC;AAED,gCAMC;AAED,gCAMC;AApID,uDAAyC;AACzC,+
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/gateway/utils/common.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBA,8CAIC;AAED,sCAEC;AAED,wCAEC;AAED,0BAKC;AAED,gCAEC;AAED,4BAEC;AAED,8BAEC;AAiDD,wCAOC;AAGD,wCAEC;AAED,4CAKC;AAED,gCAMC;AAED,gCAMC;AApID,uDAAyC;AACzC,+BAA6F;AAC7F,wCAaqB;AAErB,SAAgB,iBAAiB,CAAC,WAAmB,EAAE,OAAwB;IAC3E,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,WAAW,EAAE,OAAO,CAAC,C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 +15,7 @@
|
|
|
15
15
|
"lint": "eslint .",
|
|
16
16
|
"format": "prettier --write examples src test",
|
|
17
17
|
"format:check": "prettier --check examples src test",
|
|
18
|
-
"codegen": "rm -rf ./src/gateway/generated-client && npx @openapitools/openapi-generator-cli generate --skip-validate-spec -g typescript-fetch -i
|
|
18
|
+
"codegen": "rm -rf ./src/gateway/generated-client && npx @openapitools/openapi-generator-cli generate --skip-validate-spec -g typescript-fetch -i $OPEN_API_SPEC_URL -o ./src/gateway/generated-client --global-property=apiDocs=false,modelDocs=false"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist/**/*",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"ecpair": "^2.1.0",
|
|
35
35
|
"eslint-config-prettier": "^10.1.8",
|
|
36
36
|
"eslint-plugin-prettier": "^5.5.5",
|
|
37
|
-
"eslint": "^
|
|
37
|
+
"eslint": "^10.0.0",
|
|
38
38
|
"mocha": "^11.7.5",
|
|
39
39
|
"nock": "^14.0.10",
|
|
40
|
-
"prettier": "^3.
|
|
40
|
+
"prettier": "^3.8.1",
|
|
41
41
|
"tiny-secp256k1": "^2.2.4",
|
|
42
42
|
"ts-node": "^10.0.0",
|
|
43
43
|
"tsx": "^4.20.6",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@bitcoinerlab/secp256k1": "^1.2.0",
|
|
50
|
-
"@eslint/eslintrc": "^3.3.
|
|
50
|
+
"@eslint/eslintrc": "^3.3.3",
|
|
51
51
|
"@eslint/js": "^9.39.2",
|
|
52
52
|
"@gobob/sats-wagmi": "^0.3.23",
|
|
53
53
|
"@magiceden-oss/runestone-lib": "^1.0.2",
|