@sodax/wallet-sdk-react 1.5.0-beta → 1.5.2-beta
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/index.cjs +79 -71
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +974 -17
- package/dist/index.d.ts +974 -17
- package/dist/index.mjs +81 -73
- package/dist/index.mjs.map +1 -1
- package/package.json +11 -11
- package/src/SodaxWalletProvider.tsx +6 -3
- package/src/hooks/useEthereumChainId.ts +11 -3
- package/src/useXWagmiStore.ts +10 -7
- package/src/xchains/evm/EvmXService.ts +5 -1
- package/src/xchains/evm/index.ts +1 -0
- package/src/xchains/injective/InjectiveXConnector.ts +60 -0
- package/src/xchains/injective/actions.ts +9 -2
- package/src/xchains/injective/index.ts +1 -3
- package/src/xchains/injective/InjectiveKelprXConnector.ts +0 -37
- package/src/xchains/injective/InjectiveMetamaskXConnector.ts +0 -40
- package/src/xchains/injective/utils.ts +0 -17
package/dist/index.d.cts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { ChainId, ChainType, XToken, IBitcoinWalletProvider, BtcWalletAddressType, RpcConfig, IEvmWalletProvider, ISuiWalletProvider, IIconWalletProvider, IInjectiveWalletProvider, IStellarWalletProvider, ISolanaWalletProvider, INearWalletProvider, IStacksWalletProvider } from '@sodax/types';
|
|
2
2
|
export { BtcWalletAddressType } from '@sodax/types';
|
|
3
3
|
import { AddressPurpose } from 'sats-connect';
|
|
4
|
-
import
|
|
4
|
+
import * as wagmi from 'wagmi';
|
|
5
|
+
import { State, Config, Connector } from 'wagmi';
|
|
6
|
+
import * as viem_chains from 'viem/chains';
|
|
7
|
+
import * as wagmi_chains from 'wagmi/chains';
|
|
8
|
+
import * as viem from 'viem';
|
|
9
|
+
import React from 'react';
|
|
5
10
|
import { IconService } from 'icon-sdk-js';
|
|
6
11
|
import { IndexerGrpcAccountPortfolioApi, ChainGrpcWasmApi } from '@injectivelabs/sdk-ts';
|
|
7
12
|
import { MsgBroadcaster } from '@injectivelabs/wallet-core';
|
|
8
13
|
import { WalletStrategy } from '@injectivelabs/wallet-strategy';
|
|
14
|
+
import { Wallet } from '@injectivelabs/wallet-base';
|
|
9
15
|
import { Connection } from '@solana/web3.js';
|
|
10
16
|
import { WalletContextState } from '@solana/wallet-adapter-react';
|
|
11
17
|
import { StellarWalletsKit } from '@creit.tech/stellar-wallets-kit';
|
|
@@ -17,7 +23,6 @@ import { UseMutationResult, UseQueryResult } from '@tanstack/react-query';
|
|
|
17
23
|
import * as immer from 'immer';
|
|
18
24
|
import * as zustand_middleware from 'zustand/middleware';
|
|
19
25
|
import * as zustand from 'zustand';
|
|
20
|
-
import React from 'react';
|
|
21
26
|
|
|
22
27
|
declare function getXChainType(xChainId: ChainId | undefined): ChainType | undefined;
|
|
23
28
|
|
|
@@ -256,9 +261,970 @@ type SodaxWalletProviderProps = {
|
|
|
256
261
|
children: React.ReactNode;
|
|
257
262
|
rpcConfig: RpcConfig;
|
|
258
263
|
options?: SodaxWalletProviderOptions;
|
|
264
|
+
initialState?: State;
|
|
259
265
|
};
|
|
260
|
-
declare const SodaxWalletProvider: ({ children, rpcConfig, options }: SodaxWalletProviderProps) => React.JSX.Element;
|
|
266
|
+
declare const SodaxWalletProvider: ({ children, rpcConfig, options, initialState }: SodaxWalletProviderProps) => React.JSX.Element;
|
|
261
267
|
|
|
268
|
+
declare const createWagmiConfig: (config: RpcConfig, options?: WagmiOptions) => Config<readonly [{
|
|
269
|
+
blockExplorers: {
|
|
270
|
+
readonly default: {
|
|
271
|
+
readonly name: "Etherscan";
|
|
272
|
+
readonly url: "https://etherscan.io";
|
|
273
|
+
readonly apiUrl: "https://api.etherscan.io/api";
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
contracts: {
|
|
277
|
+
readonly ensRegistry: {
|
|
278
|
+
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
279
|
+
};
|
|
280
|
+
readonly ensUniversalResolver: {
|
|
281
|
+
readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
|
|
282
|
+
readonly blockCreated: 19258213;
|
|
283
|
+
};
|
|
284
|
+
readonly multicall3: {
|
|
285
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
286
|
+
readonly blockCreated: 14353601;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
ensTlds?: readonly string[] | undefined;
|
|
290
|
+
id: 1;
|
|
291
|
+
name: "Ethereum";
|
|
292
|
+
nativeCurrency: {
|
|
293
|
+
readonly name: "Ether";
|
|
294
|
+
readonly symbol: "ETH";
|
|
295
|
+
readonly decimals: 18;
|
|
296
|
+
};
|
|
297
|
+
rpcUrls: {
|
|
298
|
+
readonly default: {
|
|
299
|
+
readonly http: readonly ["https://eth.merkle.io"];
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
sourceId?: number | undefined | undefined;
|
|
303
|
+
testnet?: boolean | undefined | undefined;
|
|
304
|
+
custom?: Record<string, unknown> | undefined;
|
|
305
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
306
|
+
formatters?: undefined;
|
|
307
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
308
|
+
}, {
|
|
309
|
+
blockExplorers: {
|
|
310
|
+
readonly default: {
|
|
311
|
+
readonly name: "SnowTrace";
|
|
312
|
+
readonly url: "https://snowtrace.io";
|
|
313
|
+
readonly apiUrl: "https://api.snowtrace.io";
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
contracts: {
|
|
317
|
+
readonly multicall3: {
|
|
318
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
319
|
+
readonly blockCreated: 11907934;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
ensTlds?: readonly string[] | undefined;
|
|
323
|
+
id: 43114;
|
|
324
|
+
name: "Avalanche";
|
|
325
|
+
nativeCurrency: {
|
|
326
|
+
readonly decimals: 18;
|
|
327
|
+
readonly name: "Avalanche";
|
|
328
|
+
readonly symbol: "AVAX";
|
|
329
|
+
};
|
|
330
|
+
rpcUrls: {
|
|
331
|
+
readonly default: {
|
|
332
|
+
readonly http: readonly ["https://api.avax.network/ext/bc/C/rpc"];
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
sourceId?: number | undefined | undefined;
|
|
336
|
+
testnet?: boolean | undefined | undefined;
|
|
337
|
+
custom?: Record<string, unknown> | undefined;
|
|
338
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
339
|
+
formatters?: undefined;
|
|
340
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
341
|
+
}, {
|
|
342
|
+
blockExplorers: {
|
|
343
|
+
readonly default: {
|
|
344
|
+
readonly name: "Arbiscan";
|
|
345
|
+
readonly url: "https://arbiscan.io";
|
|
346
|
+
readonly apiUrl: "https://api.arbiscan.io/api";
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
contracts: {
|
|
350
|
+
readonly multicall3: {
|
|
351
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
352
|
+
readonly blockCreated: 7654707;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
ensTlds?: readonly string[] | undefined;
|
|
356
|
+
id: 42161;
|
|
357
|
+
name: "Arbitrum One";
|
|
358
|
+
nativeCurrency: {
|
|
359
|
+
readonly name: "Ether";
|
|
360
|
+
readonly symbol: "ETH";
|
|
361
|
+
readonly decimals: 18;
|
|
362
|
+
};
|
|
363
|
+
rpcUrls: {
|
|
364
|
+
readonly default: {
|
|
365
|
+
readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
sourceId?: number | undefined | undefined;
|
|
369
|
+
testnet?: boolean | undefined | undefined;
|
|
370
|
+
custom?: Record<string, unknown> | undefined;
|
|
371
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
372
|
+
formatters?: undefined;
|
|
373
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
374
|
+
}, {
|
|
375
|
+
blockExplorers: {
|
|
376
|
+
readonly default: {
|
|
377
|
+
readonly name: "Basescan";
|
|
378
|
+
readonly url: "https://basescan.org";
|
|
379
|
+
readonly apiUrl: "https://api.basescan.org/api";
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
contracts: {
|
|
383
|
+
readonly disputeGameFactory: {
|
|
384
|
+
readonly 1: {
|
|
385
|
+
readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
readonly l2OutputOracle: {
|
|
389
|
+
readonly 1: {
|
|
390
|
+
readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
readonly multicall3: {
|
|
394
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
395
|
+
readonly blockCreated: 5022;
|
|
396
|
+
};
|
|
397
|
+
readonly portal: {
|
|
398
|
+
readonly 1: {
|
|
399
|
+
readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
|
|
400
|
+
readonly blockCreated: 17482143;
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
readonly l1StandardBridge: {
|
|
404
|
+
readonly 1: {
|
|
405
|
+
readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
|
|
406
|
+
readonly blockCreated: 17482143;
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
readonly gasPriceOracle: {
|
|
410
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
411
|
+
};
|
|
412
|
+
readonly l1Block: {
|
|
413
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
414
|
+
};
|
|
415
|
+
readonly l2CrossDomainMessenger: {
|
|
416
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
417
|
+
};
|
|
418
|
+
readonly l2Erc721Bridge: {
|
|
419
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
420
|
+
};
|
|
421
|
+
readonly l2StandardBridge: {
|
|
422
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
423
|
+
};
|
|
424
|
+
readonly l2ToL1MessagePasser: {
|
|
425
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
426
|
+
};
|
|
427
|
+
};
|
|
428
|
+
ensTlds?: readonly string[] | undefined;
|
|
429
|
+
id: 8453;
|
|
430
|
+
name: "Base";
|
|
431
|
+
nativeCurrency: {
|
|
432
|
+
readonly name: "Ether";
|
|
433
|
+
readonly symbol: "ETH";
|
|
434
|
+
readonly decimals: 18;
|
|
435
|
+
};
|
|
436
|
+
rpcUrls: {
|
|
437
|
+
readonly default: {
|
|
438
|
+
readonly http: readonly ["https://mainnet.base.org"];
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
sourceId: 1;
|
|
442
|
+
testnet?: boolean | undefined | undefined;
|
|
443
|
+
custom?: Record<string, unknown> | undefined;
|
|
444
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
445
|
+
formatters: {
|
|
446
|
+
readonly block: {
|
|
447
|
+
exclude: [] | undefined;
|
|
448
|
+
format: (args: wagmi_chains.OpStackRpcBlock) => {
|
|
449
|
+
baseFeePerGas: bigint | null;
|
|
450
|
+
blobGasUsed: bigint;
|
|
451
|
+
difficulty: bigint;
|
|
452
|
+
excessBlobGas: bigint;
|
|
453
|
+
extraData: viem.Hex;
|
|
454
|
+
gasLimit: bigint;
|
|
455
|
+
gasUsed: bigint;
|
|
456
|
+
hash: `0x${string}` | null;
|
|
457
|
+
logsBloom: `0x${string}` | null;
|
|
458
|
+
miner: `0x${string}`;
|
|
459
|
+
mixHash: viem.Hash;
|
|
460
|
+
nonce: `0x${string}` | null;
|
|
461
|
+
number: bigint | null;
|
|
462
|
+
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
463
|
+
parentHash: viem.Hash;
|
|
464
|
+
receiptsRoot: viem.Hex;
|
|
465
|
+
sealFields: viem.Hex[];
|
|
466
|
+
sha3Uncles: viem.Hash;
|
|
467
|
+
size: bigint;
|
|
468
|
+
stateRoot: viem.Hash;
|
|
469
|
+
timestamp: bigint;
|
|
470
|
+
totalDifficulty: bigint | null;
|
|
471
|
+
transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
|
|
472
|
+
transactionsRoot: viem.Hash;
|
|
473
|
+
uncles: viem.Hash[];
|
|
474
|
+
withdrawals?: viem.Withdrawal[] | undefined | undefined;
|
|
475
|
+
withdrawalsRoot?: `0x${string}` | undefined;
|
|
476
|
+
} & {};
|
|
477
|
+
type: "block";
|
|
478
|
+
};
|
|
479
|
+
readonly transaction: {
|
|
480
|
+
exclude: [] | undefined;
|
|
481
|
+
format: (args: wagmi_chains.OpStackRpcTransaction) => ({
|
|
482
|
+
blockHash: `0x${string}` | null;
|
|
483
|
+
blockNumber: bigint | null;
|
|
484
|
+
from: `0x${string}`;
|
|
485
|
+
gas: bigint;
|
|
486
|
+
hash: viem.Hash;
|
|
487
|
+
input: viem.Hex;
|
|
488
|
+
nonce: number;
|
|
489
|
+
r: viem.Hex;
|
|
490
|
+
s: viem.Hex;
|
|
491
|
+
to: `0x${string}` | null;
|
|
492
|
+
transactionIndex: number | null;
|
|
493
|
+
typeHex: viem.Hex | null;
|
|
494
|
+
v: bigint;
|
|
495
|
+
value: bigint;
|
|
496
|
+
yParity: number;
|
|
497
|
+
gasPrice?: undefined | undefined;
|
|
498
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
499
|
+
maxFeePerGas: bigint;
|
|
500
|
+
maxPriorityFeePerGas: bigint;
|
|
501
|
+
isSystemTx?: boolean;
|
|
502
|
+
mint?: bigint | undefined | undefined;
|
|
503
|
+
sourceHash: viem.Hex;
|
|
504
|
+
type: "deposit";
|
|
505
|
+
} | {
|
|
506
|
+
r: viem.Hex;
|
|
507
|
+
s: viem.Hex;
|
|
508
|
+
v: bigint;
|
|
509
|
+
to: `0x${string}` | null;
|
|
510
|
+
from: `0x${string}`;
|
|
511
|
+
gas: bigint;
|
|
512
|
+
nonce: number;
|
|
513
|
+
value: bigint;
|
|
514
|
+
blockHash: `0x${string}` | null;
|
|
515
|
+
blockNumber: bigint | null;
|
|
516
|
+
hash: viem.Hash;
|
|
517
|
+
input: viem.Hex;
|
|
518
|
+
transactionIndex: number | null;
|
|
519
|
+
typeHex: viem.Hex | null;
|
|
520
|
+
accessList?: undefined | undefined;
|
|
521
|
+
authorizationList?: undefined | undefined;
|
|
522
|
+
blobVersionedHashes?: undefined | undefined;
|
|
523
|
+
chainId?: number | undefined;
|
|
524
|
+
yParity?: undefined | undefined;
|
|
525
|
+
type: "legacy";
|
|
526
|
+
gasPrice: bigint;
|
|
527
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
528
|
+
maxFeePerGas?: undefined | undefined;
|
|
529
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
530
|
+
isSystemTx?: undefined | undefined;
|
|
531
|
+
mint?: undefined | undefined;
|
|
532
|
+
sourceHash?: undefined | undefined;
|
|
533
|
+
} | {
|
|
534
|
+
blockHash: `0x${string}` | null;
|
|
535
|
+
blockNumber: bigint | null;
|
|
536
|
+
from: `0x${string}`;
|
|
537
|
+
gas: bigint;
|
|
538
|
+
hash: viem.Hash;
|
|
539
|
+
input: viem.Hex;
|
|
540
|
+
nonce: number;
|
|
541
|
+
r: viem.Hex;
|
|
542
|
+
s: viem.Hex;
|
|
543
|
+
to: `0x${string}` | null;
|
|
544
|
+
transactionIndex: number | null;
|
|
545
|
+
typeHex: viem.Hex | null;
|
|
546
|
+
v: bigint;
|
|
547
|
+
value: bigint;
|
|
548
|
+
yParity: number;
|
|
549
|
+
accessList: viem.AccessList;
|
|
550
|
+
authorizationList?: undefined | undefined;
|
|
551
|
+
blobVersionedHashes?: undefined | undefined;
|
|
552
|
+
chainId: number;
|
|
553
|
+
type: "eip2930";
|
|
554
|
+
gasPrice: bigint;
|
|
555
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
556
|
+
maxFeePerGas?: undefined | undefined;
|
|
557
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
558
|
+
isSystemTx?: undefined | undefined;
|
|
559
|
+
mint?: undefined | undefined;
|
|
560
|
+
sourceHash?: undefined | undefined;
|
|
561
|
+
} | {
|
|
562
|
+
blockHash: `0x${string}` | null;
|
|
563
|
+
blockNumber: bigint | null;
|
|
564
|
+
from: `0x${string}`;
|
|
565
|
+
gas: bigint;
|
|
566
|
+
hash: viem.Hash;
|
|
567
|
+
input: viem.Hex;
|
|
568
|
+
nonce: number;
|
|
569
|
+
r: viem.Hex;
|
|
570
|
+
s: viem.Hex;
|
|
571
|
+
to: `0x${string}` | null;
|
|
572
|
+
transactionIndex: number | null;
|
|
573
|
+
typeHex: viem.Hex | null;
|
|
574
|
+
v: bigint;
|
|
575
|
+
value: bigint;
|
|
576
|
+
yParity: number;
|
|
577
|
+
accessList: viem.AccessList;
|
|
578
|
+
authorizationList?: undefined | undefined;
|
|
579
|
+
blobVersionedHashes?: undefined | undefined;
|
|
580
|
+
chainId: number;
|
|
581
|
+
type: "eip1559";
|
|
582
|
+
gasPrice?: undefined | undefined;
|
|
583
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
584
|
+
maxFeePerGas: bigint;
|
|
585
|
+
maxPriorityFeePerGas: bigint;
|
|
586
|
+
isSystemTx?: undefined | undefined;
|
|
587
|
+
mint?: undefined | undefined;
|
|
588
|
+
sourceHash?: undefined | undefined;
|
|
589
|
+
} | {
|
|
590
|
+
blockHash: `0x${string}` | null;
|
|
591
|
+
blockNumber: bigint | null;
|
|
592
|
+
from: `0x${string}`;
|
|
593
|
+
gas: bigint;
|
|
594
|
+
hash: viem.Hash;
|
|
595
|
+
input: viem.Hex;
|
|
596
|
+
nonce: number;
|
|
597
|
+
r: viem.Hex;
|
|
598
|
+
s: viem.Hex;
|
|
599
|
+
to: `0x${string}` | null;
|
|
600
|
+
transactionIndex: number | null;
|
|
601
|
+
typeHex: viem.Hex | null;
|
|
602
|
+
v: bigint;
|
|
603
|
+
value: bigint;
|
|
604
|
+
yParity: number;
|
|
605
|
+
accessList: viem.AccessList;
|
|
606
|
+
authorizationList?: undefined | undefined;
|
|
607
|
+
blobVersionedHashes: readonly viem.Hex[];
|
|
608
|
+
chainId: number;
|
|
609
|
+
type: "eip4844";
|
|
610
|
+
gasPrice?: undefined | undefined;
|
|
611
|
+
maxFeePerBlobGas: bigint;
|
|
612
|
+
maxFeePerGas: bigint;
|
|
613
|
+
maxPriorityFeePerGas: bigint;
|
|
614
|
+
isSystemTx?: undefined | undefined;
|
|
615
|
+
mint?: undefined | undefined;
|
|
616
|
+
sourceHash?: undefined | undefined;
|
|
617
|
+
} | {
|
|
618
|
+
blockHash: `0x${string}` | null;
|
|
619
|
+
blockNumber: bigint | null;
|
|
620
|
+
from: `0x${string}`;
|
|
621
|
+
gas: bigint;
|
|
622
|
+
hash: viem.Hash;
|
|
623
|
+
input: viem.Hex;
|
|
624
|
+
nonce: number;
|
|
625
|
+
r: viem.Hex;
|
|
626
|
+
s: viem.Hex;
|
|
627
|
+
to: `0x${string}` | null;
|
|
628
|
+
transactionIndex: number | null;
|
|
629
|
+
typeHex: viem.Hex | null;
|
|
630
|
+
v: bigint;
|
|
631
|
+
value: bigint;
|
|
632
|
+
yParity: number;
|
|
633
|
+
accessList: viem.AccessList;
|
|
634
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
635
|
+
blobVersionedHashes?: undefined | undefined;
|
|
636
|
+
chainId: number;
|
|
637
|
+
type: "eip7702";
|
|
638
|
+
gasPrice?: undefined | undefined;
|
|
639
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
640
|
+
maxFeePerGas: bigint;
|
|
641
|
+
maxPriorityFeePerGas: bigint;
|
|
642
|
+
isSystemTx?: undefined | undefined;
|
|
643
|
+
mint?: undefined | undefined;
|
|
644
|
+
sourceHash?: undefined | undefined;
|
|
645
|
+
}) & {};
|
|
646
|
+
type: "transaction";
|
|
647
|
+
};
|
|
648
|
+
readonly transactionReceipt: {
|
|
649
|
+
exclude: [] | undefined;
|
|
650
|
+
format: (args: wagmi_chains.OpStackRpcTransactionReceipt) => {
|
|
651
|
+
blobGasPrice?: bigint | undefined;
|
|
652
|
+
blobGasUsed?: bigint | undefined;
|
|
653
|
+
blockHash: viem.Hash;
|
|
654
|
+
blockNumber: bigint;
|
|
655
|
+
contractAddress: `0x${string}` | null | undefined;
|
|
656
|
+
cumulativeGasUsed: bigint;
|
|
657
|
+
effectiveGasPrice: bigint;
|
|
658
|
+
from: `0x${string}`;
|
|
659
|
+
gasUsed: bigint;
|
|
660
|
+
logs: viem.Log<bigint, number, false>[];
|
|
661
|
+
logsBloom: viem.Hex;
|
|
662
|
+
root?: `0x${string}` | undefined;
|
|
663
|
+
status: "success" | "reverted";
|
|
664
|
+
to: `0x${string}` | null;
|
|
665
|
+
transactionHash: viem.Hash;
|
|
666
|
+
transactionIndex: number;
|
|
667
|
+
type: viem.TransactionType;
|
|
668
|
+
l1GasPrice: bigint | null;
|
|
669
|
+
l1GasUsed: bigint | null;
|
|
670
|
+
l1Fee: bigint | null;
|
|
671
|
+
l1FeeScalar: number | null;
|
|
672
|
+
} & {};
|
|
673
|
+
type: "transactionReceipt";
|
|
674
|
+
};
|
|
675
|
+
};
|
|
676
|
+
serializers: {
|
|
677
|
+
readonly transaction: typeof wagmi_chains.serializeTransactionOpStack;
|
|
678
|
+
};
|
|
679
|
+
}, {
|
|
680
|
+
blockExplorers: {
|
|
681
|
+
readonly default: {
|
|
682
|
+
readonly name: "BscScan";
|
|
683
|
+
readonly url: "https://bscscan.com";
|
|
684
|
+
readonly apiUrl: "https://api.bscscan.com/api";
|
|
685
|
+
};
|
|
686
|
+
};
|
|
687
|
+
contracts: {
|
|
688
|
+
readonly multicall3: {
|
|
689
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
690
|
+
readonly blockCreated: 15921452;
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
ensTlds?: readonly string[] | undefined;
|
|
694
|
+
id: 56;
|
|
695
|
+
name: "BNB Smart Chain";
|
|
696
|
+
nativeCurrency: {
|
|
697
|
+
readonly decimals: 18;
|
|
698
|
+
readonly name: "BNB";
|
|
699
|
+
readonly symbol: "BNB";
|
|
700
|
+
};
|
|
701
|
+
rpcUrls: {
|
|
702
|
+
readonly default: {
|
|
703
|
+
readonly http: readonly ["https://56.rpc.thirdweb.com"];
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
sourceId?: number | undefined | undefined;
|
|
707
|
+
testnet?: boolean | undefined | undefined;
|
|
708
|
+
custom?: Record<string, unknown> | undefined;
|
|
709
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
710
|
+
formatters?: undefined;
|
|
711
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
712
|
+
}, {
|
|
713
|
+
blockExplorers: {
|
|
714
|
+
readonly default: {
|
|
715
|
+
readonly name: "Sonic Explorer";
|
|
716
|
+
readonly url: "https://sonicscan.org";
|
|
717
|
+
};
|
|
718
|
+
};
|
|
719
|
+
contracts: {
|
|
720
|
+
readonly multicall3: {
|
|
721
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
722
|
+
readonly blockCreated: 60;
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
ensTlds?: readonly string[] | undefined;
|
|
726
|
+
id: 146;
|
|
727
|
+
name: "Sonic";
|
|
728
|
+
nativeCurrency: {
|
|
729
|
+
readonly decimals: 18;
|
|
730
|
+
readonly name: "Sonic";
|
|
731
|
+
readonly symbol: "S";
|
|
732
|
+
};
|
|
733
|
+
rpcUrls: {
|
|
734
|
+
readonly default: {
|
|
735
|
+
readonly http: readonly ["https://rpc.soniclabs.com"];
|
|
736
|
+
};
|
|
737
|
+
};
|
|
738
|
+
sourceId?: number | undefined | undefined;
|
|
739
|
+
testnet: false;
|
|
740
|
+
custom?: Record<string, unknown> | undefined;
|
|
741
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
742
|
+
formatters?: undefined;
|
|
743
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
744
|
+
}, {
|
|
745
|
+
blockExplorers: {
|
|
746
|
+
readonly default: {
|
|
747
|
+
readonly name: "Optimism Explorer";
|
|
748
|
+
readonly url: "https://optimistic.etherscan.io";
|
|
749
|
+
readonly apiUrl: "https://api-optimistic.etherscan.io/api";
|
|
750
|
+
};
|
|
751
|
+
};
|
|
752
|
+
contracts: {
|
|
753
|
+
readonly disputeGameFactory: {
|
|
754
|
+
readonly 1: {
|
|
755
|
+
readonly address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9";
|
|
756
|
+
};
|
|
757
|
+
};
|
|
758
|
+
readonly l2OutputOracle: {
|
|
759
|
+
readonly 1: {
|
|
760
|
+
readonly address: "0xdfe97868233d1aa22e815a266982f2cf17685a27";
|
|
761
|
+
};
|
|
762
|
+
};
|
|
763
|
+
readonly multicall3: {
|
|
764
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
765
|
+
readonly blockCreated: 4286263;
|
|
766
|
+
};
|
|
767
|
+
readonly portal: {
|
|
768
|
+
readonly 1: {
|
|
769
|
+
readonly address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed";
|
|
770
|
+
};
|
|
771
|
+
};
|
|
772
|
+
readonly l1StandardBridge: {
|
|
773
|
+
readonly 1: {
|
|
774
|
+
readonly address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1";
|
|
775
|
+
};
|
|
776
|
+
};
|
|
777
|
+
readonly gasPriceOracle: {
|
|
778
|
+
readonly address: "0x420000000000000000000000000000000000000F";
|
|
779
|
+
};
|
|
780
|
+
readonly l1Block: {
|
|
781
|
+
readonly address: "0x4200000000000000000000000000000000000015";
|
|
782
|
+
};
|
|
783
|
+
readonly l2CrossDomainMessenger: {
|
|
784
|
+
readonly address: "0x4200000000000000000000000000000000000007";
|
|
785
|
+
};
|
|
786
|
+
readonly l2Erc721Bridge: {
|
|
787
|
+
readonly address: "0x4200000000000000000000000000000000000014";
|
|
788
|
+
};
|
|
789
|
+
readonly l2StandardBridge: {
|
|
790
|
+
readonly address: "0x4200000000000000000000000000000000000010";
|
|
791
|
+
};
|
|
792
|
+
readonly l2ToL1MessagePasser: {
|
|
793
|
+
readonly address: "0x4200000000000000000000000000000000000016";
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
ensTlds?: readonly string[] | undefined;
|
|
797
|
+
id: 10;
|
|
798
|
+
name: "OP Mainnet";
|
|
799
|
+
nativeCurrency: {
|
|
800
|
+
readonly name: "Ether";
|
|
801
|
+
readonly symbol: "ETH";
|
|
802
|
+
readonly decimals: 18;
|
|
803
|
+
};
|
|
804
|
+
rpcUrls: {
|
|
805
|
+
readonly default: {
|
|
806
|
+
readonly http: readonly ["https://mainnet.optimism.io"];
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
sourceId: 1;
|
|
810
|
+
testnet?: boolean | undefined | undefined;
|
|
811
|
+
custom?: Record<string, unknown> | undefined;
|
|
812
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
813
|
+
formatters: {
|
|
814
|
+
readonly block: {
|
|
815
|
+
exclude: [] | undefined;
|
|
816
|
+
format: (args: wagmi_chains.OpStackRpcBlock) => {
|
|
817
|
+
baseFeePerGas: bigint | null;
|
|
818
|
+
blobGasUsed: bigint;
|
|
819
|
+
difficulty: bigint;
|
|
820
|
+
excessBlobGas: bigint;
|
|
821
|
+
extraData: viem.Hex;
|
|
822
|
+
gasLimit: bigint;
|
|
823
|
+
gasUsed: bigint;
|
|
824
|
+
hash: `0x${string}` | null;
|
|
825
|
+
logsBloom: `0x${string}` | null;
|
|
826
|
+
miner: `0x${string}`;
|
|
827
|
+
mixHash: viem.Hash;
|
|
828
|
+
nonce: `0x${string}` | null;
|
|
829
|
+
number: bigint | null;
|
|
830
|
+
parentBeaconBlockRoot?: `0x${string}` | undefined;
|
|
831
|
+
parentHash: viem.Hash;
|
|
832
|
+
receiptsRoot: viem.Hex;
|
|
833
|
+
sealFields: viem.Hex[];
|
|
834
|
+
sha3Uncles: viem.Hash;
|
|
835
|
+
size: bigint;
|
|
836
|
+
stateRoot: viem.Hash;
|
|
837
|
+
timestamp: bigint;
|
|
838
|
+
totalDifficulty: bigint | null;
|
|
839
|
+
transactions: `0x${string}`[] | viem_chains.OpStackTransaction<boolean>[];
|
|
840
|
+
transactionsRoot: viem.Hash;
|
|
841
|
+
uncles: viem.Hash[];
|
|
842
|
+
withdrawals?: viem.Withdrawal[] | undefined | undefined;
|
|
843
|
+
withdrawalsRoot?: `0x${string}` | undefined;
|
|
844
|
+
} & {};
|
|
845
|
+
type: "block";
|
|
846
|
+
};
|
|
847
|
+
readonly transaction: {
|
|
848
|
+
exclude: [] | undefined;
|
|
849
|
+
format: (args: wagmi_chains.OpStackRpcTransaction) => ({
|
|
850
|
+
blockHash: `0x${string}` | null;
|
|
851
|
+
blockNumber: bigint | null;
|
|
852
|
+
from: `0x${string}`;
|
|
853
|
+
gas: bigint;
|
|
854
|
+
hash: viem.Hash;
|
|
855
|
+
input: viem.Hex;
|
|
856
|
+
nonce: number;
|
|
857
|
+
r: viem.Hex;
|
|
858
|
+
s: viem.Hex;
|
|
859
|
+
to: `0x${string}` | null;
|
|
860
|
+
transactionIndex: number | null;
|
|
861
|
+
typeHex: viem.Hex | null;
|
|
862
|
+
v: bigint;
|
|
863
|
+
value: bigint;
|
|
864
|
+
yParity: number;
|
|
865
|
+
gasPrice?: undefined | undefined;
|
|
866
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
867
|
+
maxFeePerGas: bigint;
|
|
868
|
+
maxPriorityFeePerGas: bigint;
|
|
869
|
+
isSystemTx?: boolean;
|
|
870
|
+
mint?: bigint | undefined | undefined;
|
|
871
|
+
sourceHash: viem.Hex;
|
|
872
|
+
type: "deposit";
|
|
873
|
+
} | {
|
|
874
|
+
r: viem.Hex;
|
|
875
|
+
s: viem.Hex;
|
|
876
|
+
v: bigint;
|
|
877
|
+
to: `0x${string}` | null;
|
|
878
|
+
from: `0x${string}`;
|
|
879
|
+
gas: bigint;
|
|
880
|
+
nonce: number;
|
|
881
|
+
value: bigint;
|
|
882
|
+
blockHash: `0x${string}` | null;
|
|
883
|
+
blockNumber: bigint | null;
|
|
884
|
+
hash: viem.Hash;
|
|
885
|
+
input: viem.Hex;
|
|
886
|
+
transactionIndex: number | null;
|
|
887
|
+
typeHex: viem.Hex | null;
|
|
888
|
+
accessList?: undefined | undefined;
|
|
889
|
+
authorizationList?: undefined | undefined;
|
|
890
|
+
blobVersionedHashes?: undefined | undefined;
|
|
891
|
+
chainId?: number | undefined;
|
|
892
|
+
yParity?: undefined | undefined;
|
|
893
|
+
type: "legacy";
|
|
894
|
+
gasPrice: bigint;
|
|
895
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
896
|
+
maxFeePerGas?: undefined | undefined;
|
|
897
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
898
|
+
isSystemTx?: undefined | undefined;
|
|
899
|
+
mint?: undefined | undefined;
|
|
900
|
+
sourceHash?: undefined | undefined;
|
|
901
|
+
} | {
|
|
902
|
+
blockHash: `0x${string}` | null;
|
|
903
|
+
blockNumber: bigint | null;
|
|
904
|
+
from: `0x${string}`;
|
|
905
|
+
gas: bigint;
|
|
906
|
+
hash: viem.Hash;
|
|
907
|
+
input: viem.Hex;
|
|
908
|
+
nonce: number;
|
|
909
|
+
r: viem.Hex;
|
|
910
|
+
s: viem.Hex;
|
|
911
|
+
to: `0x${string}` | null;
|
|
912
|
+
transactionIndex: number | null;
|
|
913
|
+
typeHex: viem.Hex | null;
|
|
914
|
+
v: bigint;
|
|
915
|
+
value: bigint;
|
|
916
|
+
yParity: number;
|
|
917
|
+
accessList: viem.AccessList;
|
|
918
|
+
authorizationList?: undefined | undefined;
|
|
919
|
+
blobVersionedHashes?: undefined | undefined;
|
|
920
|
+
chainId: number;
|
|
921
|
+
type: "eip2930";
|
|
922
|
+
gasPrice: bigint;
|
|
923
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
924
|
+
maxFeePerGas?: undefined | undefined;
|
|
925
|
+
maxPriorityFeePerGas?: undefined | undefined;
|
|
926
|
+
isSystemTx?: undefined | undefined;
|
|
927
|
+
mint?: undefined | undefined;
|
|
928
|
+
sourceHash?: undefined | undefined;
|
|
929
|
+
} | {
|
|
930
|
+
blockHash: `0x${string}` | null;
|
|
931
|
+
blockNumber: bigint | null;
|
|
932
|
+
from: `0x${string}`;
|
|
933
|
+
gas: bigint;
|
|
934
|
+
hash: viem.Hash;
|
|
935
|
+
input: viem.Hex;
|
|
936
|
+
nonce: number;
|
|
937
|
+
r: viem.Hex;
|
|
938
|
+
s: viem.Hex;
|
|
939
|
+
to: `0x${string}` | null;
|
|
940
|
+
transactionIndex: number | null;
|
|
941
|
+
typeHex: viem.Hex | null;
|
|
942
|
+
v: bigint;
|
|
943
|
+
value: bigint;
|
|
944
|
+
yParity: number;
|
|
945
|
+
accessList: viem.AccessList;
|
|
946
|
+
authorizationList?: undefined | undefined;
|
|
947
|
+
blobVersionedHashes?: undefined | undefined;
|
|
948
|
+
chainId: number;
|
|
949
|
+
type: "eip1559";
|
|
950
|
+
gasPrice?: undefined | undefined;
|
|
951
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
952
|
+
maxFeePerGas: bigint;
|
|
953
|
+
maxPriorityFeePerGas: bigint;
|
|
954
|
+
isSystemTx?: undefined | undefined;
|
|
955
|
+
mint?: undefined | undefined;
|
|
956
|
+
sourceHash?: undefined | undefined;
|
|
957
|
+
} | {
|
|
958
|
+
blockHash: `0x${string}` | null;
|
|
959
|
+
blockNumber: bigint | null;
|
|
960
|
+
from: `0x${string}`;
|
|
961
|
+
gas: bigint;
|
|
962
|
+
hash: viem.Hash;
|
|
963
|
+
input: viem.Hex;
|
|
964
|
+
nonce: number;
|
|
965
|
+
r: viem.Hex;
|
|
966
|
+
s: viem.Hex;
|
|
967
|
+
to: `0x${string}` | null;
|
|
968
|
+
transactionIndex: number | null;
|
|
969
|
+
typeHex: viem.Hex | null;
|
|
970
|
+
v: bigint;
|
|
971
|
+
value: bigint;
|
|
972
|
+
yParity: number;
|
|
973
|
+
accessList: viem.AccessList;
|
|
974
|
+
authorizationList?: undefined | undefined;
|
|
975
|
+
blobVersionedHashes: readonly viem.Hex[];
|
|
976
|
+
chainId: number;
|
|
977
|
+
type: "eip4844";
|
|
978
|
+
gasPrice?: undefined | undefined;
|
|
979
|
+
maxFeePerBlobGas: bigint;
|
|
980
|
+
maxFeePerGas: bigint;
|
|
981
|
+
maxPriorityFeePerGas: bigint;
|
|
982
|
+
isSystemTx?: undefined | undefined;
|
|
983
|
+
mint?: undefined | undefined;
|
|
984
|
+
sourceHash?: undefined | undefined;
|
|
985
|
+
} | {
|
|
986
|
+
blockHash: `0x${string}` | null;
|
|
987
|
+
blockNumber: bigint | null;
|
|
988
|
+
from: `0x${string}`;
|
|
989
|
+
gas: bigint;
|
|
990
|
+
hash: viem.Hash;
|
|
991
|
+
input: viem.Hex;
|
|
992
|
+
nonce: number;
|
|
993
|
+
r: viem.Hex;
|
|
994
|
+
s: viem.Hex;
|
|
995
|
+
to: `0x${string}` | null;
|
|
996
|
+
transactionIndex: number | null;
|
|
997
|
+
typeHex: viem.Hex | null;
|
|
998
|
+
v: bigint;
|
|
999
|
+
value: bigint;
|
|
1000
|
+
yParity: number;
|
|
1001
|
+
accessList: viem.AccessList;
|
|
1002
|
+
authorizationList: viem.SignedAuthorizationList;
|
|
1003
|
+
blobVersionedHashes?: undefined | undefined;
|
|
1004
|
+
chainId: number;
|
|
1005
|
+
type: "eip7702";
|
|
1006
|
+
gasPrice?: undefined | undefined;
|
|
1007
|
+
maxFeePerBlobGas?: undefined | undefined;
|
|
1008
|
+
maxFeePerGas: bigint;
|
|
1009
|
+
maxPriorityFeePerGas: bigint;
|
|
1010
|
+
isSystemTx?: undefined | undefined;
|
|
1011
|
+
mint?: undefined | undefined;
|
|
1012
|
+
sourceHash?: undefined | undefined;
|
|
1013
|
+
}) & {};
|
|
1014
|
+
type: "transaction";
|
|
1015
|
+
};
|
|
1016
|
+
readonly transactionReceipt: {
|
|
1017
|
+
exclude: [] | undefined;
|
|
1018
|
+
format: (args: wagmi_chains.OpStackRpcTransactionReceipt) => {
|
|
1019
|
+
blobGasPrice?: bigint | undefined;
|
|
1020
|
+
blobGasUsed?: bigint | undefined;
|
|
1021
|
+
blockHash: viem.Hash;
|
|
1022
|
+
blockNumber: bigint;
|
|
1023
|
+
contractAddress: `0x${string}` | null | undefined;
|
|
1024
|
+
cumulativeGasUsed: bigint;
|
|
1025
|
+
effectiveGasPrice: bigint;
|
|
1026
|
+
from: `0x${string}`;
|
|
1027
|
+
gasUsed: bigint;
|
|
1028
|
+
logs: viem.Log<bigint, number, false>[];
|
|
1029
|
+
logsBloom: viem.Hex;
|
|
1030
|
+
root?: `0x${string}` | undefined;
|
|
1031
|
+
status: "success" | "reverted";
|
|
1032
|
+
to: `0x${string}` | null;
|
|
1033
|
+
transactionHash: viem.Hash;
|
|
1034
|
+
transactionIndex: number;
|
|
1035
|
+
type: viem.TransactionType;
|
|
1036
|
+
l1GasPrice: bigint | null;
|
|
1037
|
+
l1GasUsed: bigint | null;
|
|
1038
|
+
l1Fee: bigint | null;
|
|
1039
|
+
l1FeeScalar: number | null;
|
|
1040
|
+
} & {};
|
|
1041
|
+
type: "transactionReceipt";
|
|
1042
|
+
};
|
|
1043
|
+
};
|
|
1044
|
+
serializers: {
|
|
1045
|
+
readonly transaction: typeof wagmi_chains.serializeTransactionOpStack;
|
|
1046
|
+
};
|
|
1047
|
+
}, {
|
|
1048
|
+
blockExplorers: {
|
|
1049
|
+
readonly default: {
|
|
1050
|
+
readonly name: "PolygonScan";
|
|
1051
|
+
readonly url: "https://polygonscan.com";
|
|
1052
|
+
readonly apiUrl: "https://api.polygonscan.com/api";
|
|
1053
|
+
};
|
|
1054
|
+
};
|
|
1055
|
+
contracts: {
|
|
1056
|
+
readonly multicall3: {
|
|
1057
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
1058
|
+
readonly blockCreated: 25770160;
|
|
1059
|
+
};
|
|
1060
|
+
};
|
|
1061
|
+
ensTlds?: readonly string[] | undefined;
|
|
1062
|
+
id: 137;
|
|
1063
|
+
name: "Polygon";
|
|
1064
|
+
nativeCurrency: {
|
|
1065
|
+
readonly name: "POL";
|
|
1066
|
+
readonly symbol: "POL";
|
|
1067
|
+
readonly decimals: 18;
|
|
1068
|
+
};
|
|
1069
|
+
rpcUrls: {
|
|
1070
|
+
readonly default: {
|
|
1071
|
+
readonly http: readonly ["https://polygon-rpc.com"];
|
|
1072
|
+
};
|
|
1073
|
+
};
|
|
1074
|
+
sourceId?: number | undefined | undefined;
|
|
1075
|
+
testnet?: boolean | undefined | undefined;
|
|
1076
|
+
custom?: Record<string, unknown> | undefined;
|
|
1077
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
1078
|
+
formatters?: undefined;
|
|
1079
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1080
|
+
}, {
|
|
1081
|
+
blockExplorers: {
|
|
1082
|
+
readonly default: {
|
|
1083
|
+
readonly name: "HyperEVMScan";
|
|
1084
|
+
readonly url: "https://hyperevmscan.io/";
|
|
1085
|
+
};
|
|
1086
|
+
};
|
|
1087
|
+
contracts: {
|
|
1088
|
+
readonly multicall3: {
|
|
1089
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
1090
|
+
readonly blockCreated: 13051;
|
|
1091
|
+
};
|
|
1092
|
+
};
|
|
1093
|
+
ensTlds?: readonly string[] | undefined;
|
|
1094
|
+
id: 999;
|
|
1095
|
+
name: "HyperEVM";
|
|
1096
|
+
nativeCurrency: {
|
|
1097
|
+
readonly decimals: 18;
|
|
1098
|
+
readonly name: "HYPE";
|
|
1099
|
+
readonly symbol: "HYPE";
|
|
1100
|
+
};
|
|
1101
|
+
rpcUrls: {
|
|
1102
|
+
readonly default: {
|
|
1103
|
+
readonly http: readonly ["https://rpc.hyperliquid.xyz/evm"];
|
|
1104
|
+
};
|
|
1105
|
+
};
|
|
1106
|
+
sourceId?: number | undefined;
|
|
1107
|
+
testnet?: boolean | undefined;
|
|
1108
|
+
custom?: Record<string, unknown> | undefined;
|
|
1109
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
1110
|
+
formatters?: undefined;
|
|
1111
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1112
|
+
}, {
|
|
1113
|
+
blockExplorers: {
|
|
1114
|
+
readonly default: {
|
|
1115
|
+
readonly name: "LightLink Phoenix Explorer";
|
|
1116
|
+
readonly url: "https://phoenix.lightlink.io";
|
|
1117
|
+
};
|
|
1118
|
+
};
|
|
1119
|
+
contracts: {
|
|
1120
|
+
readonly multicall3: {
|
|
1121
|
+
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
1122
|
+
readonly blockCreated: 125499184;
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
ensTlds?: readonly string[] | undefined;
|
|
1126
|
+
id: 1890;
|
|
1127
|
+
name: "LightLink Phoenix Mainnet";
|
|
1128
|
+
nativeCurrency: {
|
|
1129
|
+
readonly decimals: 18;
|
|
1130
|
+
readonly name: "Ether";
|
|
1131
|
+
readonly symbol: "ETH";
|
|
1132
|
+
};
|
|
1133
|
+
rpcUrls: {
|
|
1134
|
+
readonly default: {
|
|
1135
|
+
readonly http: readonly ["https://replicator.phoenix.lightlink.io/rpc/v1"];
|
|
1136
|
+
};
|
|
1137
|
+
};
|
|
1138
|
+
sourceId?: number | undefined | undefined;
|
|
1139
|
+
testnet: false;
|
|
1140
|
+
custom?: Record<string, unknown> | undefined;
|
|
1141
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
1142
|
+
formatters?: undefined;
|
|
1143
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1144
|
+
readonly network: "lightlink-phoenix";
|
|
1145
|
+
}, {
|
|
1146
|
+
blockExplorers: {
|
|
1147
|
+
readonly default: {
|
|
1148
|
+
readonly name: "KaiaScan";
|
|
1149
|
+
readonly url: "https://kaiascan.io";
|
|
1150
|
+
readonly apiUrl: "https://api-cypress.klaytnscope.com/api";
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
contracts: {
|
|
1154
|
+
readonly multicall3: {
|
|
1155
|
+
readonly address: "0xcA11bde05977b3631167028862bE2a173976CA11";
|
|
1156
|
+
readonly blockCreated: 96002415;
|
|
1157
|
+
};
|
|
1158
|
+
};
|
|
1159
|
+
ensTlds?: readonly string[] | undefined;
|
|
1160
|
+
id: 8217;
|
|
1161
|
+
name: "Kaia";
|
|
1162
|
+
nativeCurrency: {
|
|
1163
|
+
readonly decimals: 18;
|
|
1164
|
+
readonly name: "Kaia";
|
|
1165
|
+
readonly symbol: "KAIA";
|
|
1166
|
+
};
|
|
1167
|
+
rpcUrls: {
|
|
1168
|
+
readonly default: {
|
|
1169
|
+
readonly http: readonly ["https://public-en.node.kaia.io"];
|
|
1170
|
+
};
|
|
1171
|
+
};
|
|
1172
|
+
sourceId?: number | undefined | undefined;
|
|
1173
|
+
testnet?: boolean | undefined | undefined;
|
|
1174
|
+
custom?: Record<string, unknown> | undefined;
|
|
1175
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
1176
|
+
formatters?: undefined;
|
|
1177
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1178
|
+
}, {
|
|
1179
|
+
blockExplorers: {
|
|
1180
|
+
readonly default: {
|
|
1181
|
+
readonly name: "Routescan";
|
|
1182
|
+
readonly url: "https://redbelly.routescan.io";
|
|
1183
|
+
readonly apiUrl: "https://api.routescan.io/v2/network/mainnet/evm/151/etherscan/api";
|
|
1184
|
+
};
|
|
1185
|
+
};
|
|
1186
|
+
contracts?: {
|
|
1187
|
+
[x: string]: viem.ChainContract | {
|
|
1188
|
+
[sourceId: number]: viem.ChainContract | undefined;
|
|
1189
|
+
} | undefined;
|
|
1190
|
+
ensRegistry?: viem.ChainContract | undefined;
|
|
1191
|
+
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
1192
|
+
multicall3?: viem.ChainContract | undefined;
|
|
1193
|
+
universalSignatureVerifier?: viem.ChainContract | undefined;
|
|
1194
|
+
} | undefined;
|
|
1195
|
+
ensTlds?: readonly string[] | undefined;
|
|
1196
|
+
id: 151;
|
|
1197
|
+
name: "Redbelly Network Mainnet";
|
|
1198
|
+
nativeCurrency: {
|
|
1199
|
+
readonly name: "Redbelly Native Coin";
|
|
1200
|
+
readonly symbol: "RBNT";
|
|
1201
|
+
readonly decimals: 18;
|
|
1202
|
+
};
|
|
1203
|
+
rpcUrls: {
|
|
1204
|
+
readonly default: {
|
|
1205
|
+
readonly http: readonly ["https://governors.mainnet.redbelly.network"];
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
sourceId?: number | undefined | undefined;
|
|
1209
|
+
testnet: false;
|
|
1210
|
+
custom?: Record<string, unknown> | undefined;
|
|
1211
|
+
fees?: viem.ChainFees<undefined> | undefined;
|
|
1212
|
+
formatters?: undefined;
|
|
1213
|
+
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
1214
|
+
}], {
|
|
1215
|
+
1: viem.HttpTransport<undefined, false>;
|
|
1216
|
+
43114: viem.HttpTransport<undefined, false>;
|
|
1217
|
+
42161: viem.HttpTransport<undefined, false>;
|
|
1218
|
+
8453: viem.HttpTransport<undefined, false>;
|
|
1219
|
+
56: viem.HttpTransport<undefined, false>;
|
|
1220
|
+
146: viem.HttpTransport<undefined, false>;
|
|
1221
|
+
10: viem.HttpTransport<undefined, false>;
|
|
1222
|
+
137: viem.HttpTransport<undefined, false>;
|
|
1223
|
+
999: viem.HttpTransport<undefined, false>;
|
|
1224
|
+
1890: viem.HttpTransport<undefined, false>;
|
|
1225
|
+
151: viem.HttpTransport<undefined, false>;
|
|
1226
|
+
8217: viem.HttpTransport<undefined, false>;
|
|
1227
|
+
}, readonly wagmi.CreateConnectorFn[]>;
|
|
262
1228
|
/**
|
|
263
1229
|
* Service class for handling EVM chain interactions.
|
|
264
1230
|
* Implements singleton pattern and provides methods for wallet/chain operations.
|
|
@@ -311,24 +1277,15 @@ declare class InjectiveXService extends XService {
|
|
|
311
1277
|
getBalance(address: string | undefined, xToken: XToken): Promise<bigint>;
|
|
312
1278
|
}
|
|
313
1279
|
|
|
314
|
-
declare class
|
|
315
|
-
|
|
1280
|
+
declare class InjectiveXConnector extends XConnector {
|
|
1281
|
+
private wallet;
|
|
1282
|
+
constructor(name: string, wallet: Wallet);
|
|
316
1283
|
getXService(): InjectiveXService;
|
|
317
1284
|
connect(): Promise<XAccount | undefined>;
|
|
318
1285
|
disconnect(): Promise<void>;
|
|
319
|
-
get icon(): string;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
declare class InjectiveMetamaskXConnector extends XConnector {
|
|
323
|
-
constructor();
|
|
324
|
-
getXService(): InjectiveXService;
|
|
325
|
-
connect(): Promise<XAccount | undefined>;
|
|
326
|
-
disconnect(): Promise<void>;
|
|
327
|
-
get icon(): string;
|
|
1286
|
+
get icon(): string | undefined;
|
|
328
1287
|
}
|
|
329
1288
|
|
|
330
|
-
declare const switchEthereumChain: (chainId: any) => Promise<void>;
|
|
331
|
-
|
|
332
1289
|
declare class SolanaXService extends XService {
|
|
333
1290
|
private static instance;
|
|
334
1291
|
connection: Connection | undefined;
|
|
@@ -619,4 +1576,4 @@ declare const useXWagmiStore: zustand.UseBoundStore<Omit<Omit<Omit<zustand.Store
|
|
|
619
1576
|
} | undefined): void;
|
|
620
1577
|
}>;
|
|
621
1578
|
|
|
622
|
-
export { BitcoinXConnector, BitcoinXService, type CurrencyKey, EvmXConnector, EvmXService, IconHanaXConnector, IconXService,
|
|
1579
|
+
export { BitcoinXConnector, BitcoinXService, type CurrencyKey, EvmXConnector, EvmXService, IconHanaXConnector, IconXService, InjectiveXConnector, InjectiveXService, OKXXConnector, STACKS_PROVIDERS, SodaxWalletProvider, type SodaxWalletProviderOptions, type SodaxWalletProviderProps, SolanaXConnector, SolanaXService, type StacksProviderConfig, StacksXConnector, StacksXService, StellarWalletsKitXConnector, StellarXService, SuiXConnector, SuiXService, UnisatXConnector, type WagmiOptions, WalletId, type XAccount, type XConnection, XConnector, XService, XverseXConnector, createWagmiConfig as createWagmi, createWagmiConfig, getWagmiChainId, getXChainType, getXService, isNativeToken, useBitcoinXConnectors, useEvmSwitchChain, useStacksXConnectors, useWalletProvider, useXAccount, useXAccounts, useXBalances, useXConnect, useXConnection, useXConnectors, useXDisconnect, useXService, useXSignMessage, useXWagmiStore };
|