@velora-dex/widget 0.1.2 → 0.1.3

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.
Files changed (213) hide show
  1. package/dist/components/web3/providers.d.ts +3 -0
  2. package/dist/components/web3/providers.d.ts.map +1 -1
  3. package/dist/components/web3/providers.js +18 -3
  4. package/dist/components/web3/providers.js.map +1 -1
  5. package/dist/components/widget/AppHeader/Activities/Drawers.d.ts.map +1 -1
  6. package/dist/components/widget/AppHeader/Activities/Drawers.js +33 -29
  7. package/dist/components/widget/AppHeader/Activities/Drawers.js.map +1 -1
  8. package/dist/components/widget/AppHeader/Activities/hooks.d.ts.map +1 -1
  9. package/dist/components/widget/AppHeader/Activities/hooks.js +193 -106
  10. package/dist/components/widget/AppHeader/Activities/hooks.js.map +1 -1
  11. package/dist/components/widget/AppHeader/TradeModeSwitcher.d.ts.map +1 -1
  12. package/dist/components/widget/AppHeader/TradeModeSwitcher.js +67 -42
  13. package/dist/components/widget/AppHeader/TradeModeSwitcher.js.map +1 -1
  14. package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.d.ts.map +1 -1
  15. package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js +207 -191
  16. package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js.map +1 -1
  17. package/dist/components/widget/ReceiverAddress/state/subscriptions.d.ts.map +1 -1
  18. package/dist/components/widget/ReceiverAddress/state/subscriptions.js +10 -3
  19. package/dist/components/widget/ReceiverAddress/state/subscriptions.js.map +1 -1
  20. package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/FillOtcReviewAndConfirm.d.ts.map +1 -1
  21. package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/FillOtcReviewAndConfirm.js +37 -39
  22. package/dist/components/widget/ReviewAndConfirm/FillOtcReviewAndConfirm/FillOtcReviewAndConfirm.js.map +1 -1
  23. package/dist/components/widget/TokenInput/EmptyInput.d.ts +1 -1
  24. package/dist/components/widget/TokenInput/EmptyInput.d.ts.map +1 -1
  25. package/dist/components/widget/TokenInput/EmptyInput.js +16 -14
  26. package/dist/components/widget/TokenInput/EmptyInput.js.map +1 -1
  27. package/dist/components/widget/TokenInput/index.d.ts.map +1 -1
  28. package/dist/components/widget/TokenInput/index.js +92 -91
  29. package/dist/components/widget/TokenInput/index.js.map +1 -1
  30. package/dist/components/widget/TokenSwitcher/TokenSwitcher.d.ts.map +1 -1
  31. package/dist/components/widget/TokenSwitcher/TokenSwitcher.js +34 -31
  32. package/dist/components/widget/TokenSwitcher/TokenSwitcher.js.map +1 -1
  33. package/dist/configurator/Configurator.d.ts.map +1 -1
  34. package/dist/core/Updaters.d.ts.map +1 -1
  35. package/dist/core/Updaters.js +9 -5
  36. package/dist/core/Updaters.js.map +1 -1
  37. package/dist/core/across/utils.d.ts.map +1 -1
  38. package/dist/core/across/utils.js +4 -4
  39. package/dist/core/across/utils.js.map +1 -1
  40. package/dist/core/constants.d.ts +5 -0
  41. package/dist/core/constants.d.ts.map +1 -1
  42. package/dist/core/constants.js +11 -1
  43. package/dist/core/constants.js.map +1 -1
  44. package/dist/core/index.d.ts.map +1 -1
  45. package/dist/core/index.js +191 -120
  46. package/dist/core/index.js.map +1 -1
  47. package/dist/core/inputs/hooks/types.d.ts +1 -1
  48. package/dist/core/inputs/hooks/types.d.ts.map +1 -1
  49. package/dist/core/inputs/hooks/useTokenFromInputProps.d.ts.map +1 -1
  50. package/dist/core/inputs/hooks/useTokenFromInputProps.js +36 -43
  51. package/dist/core/inputs/hooks/useTokenFromInputProps.js.map +1 -1
  52. package/dist/core/inputs/hooks/useTokenSwitcherProps.d.ts.map +1 -1
  53. package/dist/core/inputs/hooks/useTokenSwitcherProps.js +17 -7
  54. package/dist/core/inputs/hooks/useTokenSwitcherProps.js.map +1 -1
  55. package/dist/core/inputs/hooks/useTokenToInputProps.d.ts.map +1 -1
  56. package/dist/core/inputs/hooks/useTokenToInputProps.js +64 -77
  57. package/dist/core/inputs/hooks/useTokenToInputProps.js.map +1 -1
  58. package/dist/core/inputs/state/selectedTokenActionsAtom.d.ts +1 -1
  59. package/dist/core/inputs/state/selectedTokenActionsAtom.d.ts.map +1 -1
  60. package/dist/core/inputs/state/selectedTokenActionsAtom.js +58 -28
  61. package/dist/core/inputs/state/selectedTokenActionsAtom.js.map +1 -1
  62. package/dist/core/inputs/state/setTokenByAddressAtom.d.ts.map +1 -1
  63. package/dist/core/inputs/state/setTokenByAddressAtom.js +10 -9
  64. package/dist/core/inputs/state/setTokenByAddressAtom.js.map +1 -1
  65. package/dist/core/inputs/state/subscriptions.d.ts.map +1 -1
  66. package/dist/core/inputs/state/subscriptions.js +2 -1
  67. package/dist/core/inputs/state/subscriptions.js.map +1 -1
  68. package/dist/core/limit/state/selectedTokenActionsAtom.d.ts.map +1 -1
  69. package/dist/core/limit/state/selectedTokenActionsAtom.js +3 -3
  70. package/dist/core/limit/state/selectedTokenActionsAtom.js.map +1 -1
  71. package/dist/core/limit/useLimitTokenFromInputProps.d.ts.map +1 -1
  72. package/dist/core/limit/useLimitTokenFromInputProps.js +35 -42
  73. package/dist/core/limit/useLimitTokenFromInputProps.js.map +1 -1
  74. package/dist/core/limit/useLimitTokenToInputProps.d.ts.map +1 -1
  75. package/dist/core/limit/useLimitTokenToInputProps.js +9 -20
  76. package/dist/core/limit/useLimitTokenToInputProps.js.map +1 -1
  77. package/dist/core/otc/state/selectedTokenActionsAtom.d.ts.map +1 -1
  78. package/dist/core/otc/state/selectedTokenActionsAtom.js +3 -3
  79. package/dist/core/otc/state/selectedTokenActionsAtom.js.map +1 -1
  80. package/dist/core/otc/useOtcTokenFromInputProps.d.ts.map +1 -1
  81. package/dist/core/otc/useOtcTokenFromInputProps.js +35 -42
  82. package/dist/core/otc/useOtcTokenFromInputProps.js.map +1 -1
  83. package/dist/core/otc/useOtcTokenToInputProps.d.ts.map +1 -1
  84. package/dist/core/otc/useOtcTokenToInputProps.js +9 -20
  85. package/dist/core/otc/useOtcTokenToInputProps.js.map +1 -1
  86. package/dist/core/state/configActionsAtom.d.ts +5 -2
  87. package/dist/core/state/configActionsAtom.d.ts.map +1 -1
  88. package/dist/core/state/configActionsAtom.js +24 -12
  89. package/dist/core/state/configActionsAtom.js.map +1 -1
  90. package/dist/core/state/configAtom.d.ts +33 -11
  91. package/dist/core/state/configAtom.d.ts.map +1 -1
  92. package/dist/core/state/configAtom.js +15 -1
  93. package/dist/core/state/configAtom.js.map +1 -1
  94. package/dist/core/state/configEffectAtom.d.ts +5 -0
  95. package/dist/core/state/configEffectAtom.d.ts.map +1 -0
  96. package/dist/core/state/configEffectAtom.js +56 -0
  97. package/dist/core/state/configEffectAtom.js.map +1 -0
  98. package/dist/core/state/enabledChainsAtom.d.ts +10 -0
  99. package/dist/core/state/enabledChainsAtom.d.ts.map +1 -0
  100. package/dist/core/state/enabledChainsAtom.js +101 -0
  101. package/dist/core/state/enabledChainsAtom.js.map +1 -0
  102. package/dist/core/state/enabledTradeModesAtom.d.ts +3 -0
  103. package/dist/core/state/enabledTradeModesAtom.d.ts.map +1 -0
  104. package/dist/core/state/enabledTradeModesAtom.js +31 -0
  105. package/dist/core/state/enabledTradeModesAtom.js.map +1 -0
  106. package/dist/core/state/tradeModeAtom.d.ts +2 -1
  107. package/dist/core/state/tradeModeAtom.d.ts.map +1 -1
  108. package/dist/core/state/tradeModeAtom.js +9 -2
  109. package/dist/core/state/tradeModeAtom.js.map +1 -1
  110. package/dist/core/subscriptions.d.ts.map +1 -1
  111. package/dist/core/subscriptions.js +0 -2
  112. package/dist/core/subscriptions.js.map +1 -1
  113. package/dist/core/types.d.ts +12 -0
  114. package/dist/core/types.d.ts.map +1 -1
  115. package/dist/hooks/otc/mutations/useFillOrder.js +4 -1
  116. package/dist/hooks/otc/mutations/useFillOrder.js.map +1 -1
  117. package/dist/hooks/swap/prices/delta/queries/useBridgeInfo.d.ts +5 -2
  118. package/dist/hooks/swap/prices/delta/queries/useBridgeInfo.d.ts.map +1 -1
  119. package/dist/hooks/swap/prices/delta/queries/useBridgeInfo.js +19 -2
  120. package/dist/hooks/swap/prices/delta/queries/useBridgeInfo.js.map +1 -1
  121. package/dist/hooks/tokens/data/useCombineTokensWithFetched.d.ts.map +1 -1
  122. package/dist/hooks/tokens/data/useCombineTokensWithFetched.js +41 -39
  123. package/dist/hooks/tokens/data/useCombineTokensWithFetched.js.map +1 -1
  124. package/dist/hooks/txs/queries/useAwaitTx.d.ts.map +1 -1
  125. package/dist/hooks/txs/queries/useAwaitTx.js +11 -7
  126. package/dist/hooks/txs/queries/useAwaitTx.js.map +1 -1
  127. package/dist/hooks/useAvailableCrosses.d.ts +3 -2
  128. package/dist/hooks/useAvailableCrosses.d.ts.map +1 -1
  129. package/dist/hooks/useAvailableCrosses.js +23 -20
  130. package/dist/hooks/useAvailableCrosses.js.map +1 -1
  131. package/dist/hooks/useGlobalDeltaEnabled.d.ts +1 -0
  132. package/dist/hooks/useGlobalDeltaEnabled.d.ts.map +1 -1
  133. package/dist/hooks/useGlobalDeltaEnabled.js +22 -17
  134. package/dist/hooks/useGlobalDeltaEnabled.js.map +1 -1
  135. package/dist/hooks/useSelectableDestChains.d.ts +14 -0
  136. package/dist/hooks/useSelectableDestChains.d.ts.map +1 -0
  137. package/dist/hooks/useSelectableDestChains.js +91 -0
  138. package/dist/hooks/useSelectableDestChains.js.map +1 -0
  139. package/dist/index.d.ts +2 -0
  140. package/dist/index.d.ts.map +1 -1
  141. package/dist/index.js +1 -0
  142. package/dist/index.js.map +1 -1
  143. package/dist/lib/constants/delta.js +1 -1
  144. package/dist/lib/constants/delta.js.map +1 -1
  145. package/dist/lib/constants/index.js +1 -1
  146. package/dist/lib/constants/index.js.map +1 -1
  147. package/dist/lib/tradeMode.d.ts +4 -0
  148. package/dist/lib/tradeMode.d.ts.map +1 -0
  149. package/dist/lib/tradeMode.js +8 -0
  150. package/dist/lib/tradeMode.js.map +1 -0
  151. package/dist/lib/utils/atomWithCompare.d.ts +2 -0
  152. package/dist/lib/utils/atomWithCompare.d.ts.map +1 -0
  153. package/dist/lib/utils/atomWithCompare.js +13 -0
  154. package/dist/lib/utils/atomWithCompare.js.map +1 -0
  155. package/dist/lib/utils/index.d.ts +2 -0
  156. package/dist/lib/utils/index.d.ts.map +1 -1
  157. package/dist/lib/utils/index.js +17 -1
  158. package/dist/lib/utils/index.js.map +1 -1
  159. package/dist/lib/web3/wagmi/config.d.ts.map +1 -1
  160. package/dist/lib/web3/wagmi/config.js +2 -1
  161. package/dist/lib/web3/wagmi/config.js.map +1 -1
  162. package/dist/lib/web3/wagmi/constants.d.ts +2 -1
  163. package/dist/lib/web3/wagmi/constants.d.ts.map +1 -1
  164. package/dist/lib/web3/wagmi/constants.js.map +1 -1
  165. package/dist/lib/web3/wagmi/switchChain.d.ts +1169 -0
  166. package/dist/lib/web3/wagmi/switchChain.d.ts.map +1 -0
  167. package/dist/lib/web3/wagmi/switchChain.js +23 -0
  168. package/dist/lib/web3/wagmi/switchChain.js.map +1 -0
  169. package/dist/lib/web3/wagmi/types.d.ts +2 -2
  170. package/dist/lib/web3/wagmi/types.d.ts.map +1 -1
  171. package/dist/styles.css +3 -0
  172. package/dist/tokens/lists/constants.d.ts +1 -0
  173. package/dist/tokens/lists/constants.d.ts.map +1 -1
  174. package/dist/tokens/lists/constants.js +6 -2
  175. package/dist/tokens/lists/constants.js.map +1 -1
  176. package/dist/tokens/lists/lists.json.d.ts +23 -44
  177. package/dist/tokens/lists/lists.json.js +354 -1
  178. package/dist/tokens/lists/lists.json.js.map +1 -1
  179. package/dist/tokens/lists/state/effects.d.ts +2 -0
  180. package/dist/tokens/lists/state/effects.d.ts.map +1 -0
  181. package/dist/tokens/lists/state/effects.js +25 -0
  182. package/dist/tokens/lists/state/effects.js.map +1 -0
  183. package/dist/tokens/lists/state/tokenListsActionsAtom.js +3 -3
  184. package/dist/tokens/lists/state/tokenListsActionsAtom.js.map +1 -1
  185. package/dist/tokens/lists/state/tokenListsStateAtom.d.ts +16 -7
  186. package/dist/tokens/lists/state/tokenListsStateAtom.d.ts.map +1 -1
  187. package/dist/tokens/lists/state/tokenListsStateAtom.js +50 -5
  188. package/dist/tokens/lists/state/tokenListsStateAtom.js.map +1 -1
  189. package/dist/tokens/lists/types.d.ts.map +1 -1
  190. package/dist/tokens/lists/utils.js +1 -1
  191. package/dist/tokens/queries.d.ts +4 -2
  192. package/dist/tokens/queries.d.ts.map +1 -1
  193. package/dist/tokens/queries.js +25 -15
  194. package/dist/tokens/queries.js.map +1 -1
  195. package/dist/tokens/state/fromListsAtom.js +4 -4
  196. package/dist/tokens/state/fromListsAtom.js.map +1 -1
  197. package/dist/transactions/queries/ensureTxReceipt.d.ts +3 -2
  198. package/dist/transactions/queries/ensureTxReceipt.d.ts.map +1 -1
  199. package/dist/transactions/queries/ensureTxReceipt.js +26 -6
  200. package/dist/transactions/queries/ensureTxReceipt.js.map +1 -1
  201. package/dist/transactions/state/hooks/useTransactions.d.ts +2 -0
  202. package/dist/transactions/state/hooks/useTransactions.d.ts.map +1 -1
  203. package/dist/transactions/state/hooks/useTransactions.js +59 -1
  204. package/dist/transactions/state/hooks/useTransactions.js.map +1 -1
  205. package/package.json +5 -4
  206. package/dist/tokens/lists/hooks.d.ts +0 -2
  207. package/dist/tokens/lists/hooks.d.ts.map +0 -1
  208. package/dist/tokens/lists/hooks.js +0 -26
  209. package/dist/tokens/lists/hooks.js.map +0 -1
  210. package/dist/tokens/lists/state/observer.d.ts +0 -2
  211. package/dist/tokens/lists/state/observer.d.ts.map +0 -1
  212. package/dist/tokens/lists/state/observer.js +0 -18
  213. package/dist/tokens/lists/state/observer.js.map +0 -1
@@ -0,0 +1,1169 @@
1
+ import { SupportedChainId } from './types';
2
+ export declare function switchChain({ chainId }: {
3
+ chainId: SupportedChainId;
4
+ }): Promise<{
5
+ blockExplorers: {
6
+ readonly default: {
7
+ readonly name: "Etherscan";
8
+ readonly url: "https://etherscan.io";
9
+ readonly apiUrl: "https://api.etherscan.io/api";
10
+ };
11
+ };
12
+ blockTime?: number | undefined | undefined;
13
+ contracts: {
14
+ readonly ensRegistry: {
15
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
16
+ };
17
+ readonly ensUniversalResolver: {
18
+ readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
19
+ readonly blockCreated: 19258213;
20
+ };
21
+ readonly multicall3: {
22
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
23
+ readonly blockCreated: 14353601;
24
+ };
25
+ };
26
+ ensTlds?: readonly string[] | undefined;
27
+ id: 1;
28
+ name: "Ethereum";
29
+ nativeCurrency: {
30
+ readonly name: "Ether";
31
+ readonly symbol: "ETH";
32
+ readonly decimals: 18;
33
+ };
34
+ experimental_preconfirmationTime?: number | undefined | undefined;
35
+ rpcUrls: {
36
+ readonly default: {
37
+ readonly http: readonly ["https://eth.merkle.io"];
38
+ };
39
+ };
40
+ sourceId?: number | undefined | undefined;
41
+ testnet?: boolean | undefined | undefined;
42
+ custom?: Record<string, unknown> | undefined;
43
+ fees?: import('viem').ChainFees<undefined> | undefined;
44
+ formatters?: undefined;
45
+ serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
46
+ } | {
47
+ blockExplorers: {
48
+ readonly default: {
49
+ readonly name: "PolygonScan";
50
+ readonly url: "https://polygonscan.com";
51
+ readonly apiUrl: "https://api.polygonscan.com/api";
52
+ };
53
+ };
54
+ blockTime?: number | undefined | undefined;
55
+ contracts: {
56
+ readonly multicall3: {
57
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
58
+ readonly blockCreated: 25770160;
59
+ };
60
+ };
61
+ ensTlds?: readonly string[] | undefined;
62
+ id: 137;
63
+ name: "Polygon";
64
+ nativeCurrency: {
65
+ readonly name: "POL";
66
+ readonly symbol: "POL";
67
+ readonly decimals: 18;
68
+ };
69
+ experimental_preconfirmationTime?: number | undefined | undefined;
70
+ rpcUrls: {
71
+ readonly default: {
72
+ readonly http: readonly ["https://polygon-rpc.com"];
73
+ };
74
+ };
75
+ sourceId?: number | undefined | undefined;
76
+ testnet?: boolean | undefined | undefined;
77
+ custom?: Record<string, unknown> | undefined;
78
+ fees?: import('viem').ChainFees<undefined> | undefined;
79
+ formatters?: undefined;
80
+ serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
81
+ } | {
82
+ blockExplorers: {
83
+ readonly default: {
84
+ readonly name: "BscScan";
85
+ readonly url: "https://bscscan.com";
86
+ readonly apiUrl: "https://api.bscscan.com/api";
87
+ };
88
+ };
89
+ blockTime?: number | undefined | undefined;
90
+ contracts: {
91
+ readonly multicall3: {
92
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
93
+ readonly blockCreated: 15921452;
94
+ };
95
+ };
96
+ ensTlds?: readonly string[] | undefined;
97
+ id: 56;
98
+ name: "BNB Smart Chain";
99
+ nativeCurrency: {
100
+ readonly decimals: 18;
101
+ readonly name: "BNB";
102
+ readonly symbol: "BNB";
103
+ };
104
+ experimental_preconfirmationTime?: number | undefined | undefined;
105
+ rpcUrls: {
106
+ readonly default: {
107
+ readonly http: readonly ["https://56.rpc.thirdweb.com"];
108
+ };
109
+ };
110
+ sourceId?: number | undefined | undefined;
111
+ testnet?: boolean | undefined | undefined;
112
+ custom?: Record<string, unknown> | undefined;
113
+ fees?: import('viem').ChainFees<undefined> | undefined;
114
+ formatters?: undefined;
115
+ serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
116
+ } | {
117
+ blockExplorers: {
118
+ readonly default: {
119
+ readonly name: "SnowTrace";
120
+ readonly url: "https://snowtrace.io";
121
+ readonly apiUrl: "https://api.snowtrace.io";
122
+ };
123
+ };
124
+ blockTime?: number | undefined | undefined;
125
+ contracts: {
126
+ readonly multicall3: {
127
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
128
+ readonly blockCreated: 11907934;
129
+ };
130
+ };
131
+ ensTlds?: readonly string[] | undefined;
132
+ id: 43114;
133
+ name: "Avalanche";
134
+ nativeCurrency: {
135
+ readonly decimals: 18;
136
+ readonly name: "Avalanche";
137
+ readonly symbol: "AVAX";
138
+ };
139
+ experimental_preconfirmationTime?: number | undefined | undefined;
140
+ rpcUrls: {
141
+ readonly default: {
142
+ readonly http: readonly ["https://api.avax.network/ext/bc/C/rpc"];
143
+ };
144
+ };
145
+ sourceId?: number | undefined | undefined;
146
+ testnet?: boolean | undefined | undefined;
147
+ custom?: Record<string, unknown> | undefined;
148
+ fees?: import('viem').ChainFees<undefined> | undefined;
149
+ formatters?: undefined;
150
+ serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
151
+ } | {
152
+ blockExplorers: {
153
+ readonly default: {
154
+ readonly name: "Arbiscan";
155
+ readonly url: "https://arbiscan.io";
156
+ readonly apiUrl: "https://api.arbiscan.io/api";
157
+ };
158
+ };
159
+ blockTime: 250;
160
+ contracts: {
161
+ readonly multicall3: {
162
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
163
+ readonly blockCreated: 7654707;
164
+ };
165
+ };
166
+ ensTlds?: readonly string[] | undefined;
167
+ id: 42161;
168
+ name: "Arbitrum One";
169
+ nativeCurrency: {
170
+ readonly name: "Ether";
171
+ readonly symbol: "ETH";
172
+ readonly decimals: 18;
173
+ };
174
+ experimental_preconfirmationTime?: number | undefined | undefined;
175
+ rpcUrls: {
176
+ readonly default: {
177
+ readonly http: readonly ["https://arb1.arbitrum.io/rpc"];
178
+ };
179
+ };
180
+ sourceId?: number | undefined | undefined;
181
+ testnet?: boolean | undefined | undefined;
182
+ custom?: Record<string, unknown> | undefined;
183
+ fees?: import('viem').ChainFees<undefined> | undefined;
184
+ formatters?: undefined;
185
+ serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
186
+ } | {
187
+ blockExplorers: {
188
+ readonly default: {
189
+ readonly name: "Optimism Explorer";
190
+ readonly url: "https://optimistic.etherscan.io";
191
+ readonly apiUrl: "https://api-optimistic.etherscan.io/api";
192
+ };
193
+ };
194
+ blockTime: 2000;
195
+ contracts: {
196
+ readonly disputeGameFactory: {
197
+ readonly 1: {
198
+ readonly address: "0xe5965Ab5962eDc7477C8520243A95517CD252fA9";
199
+ };
200
+ };
201
+ readonly l2OutputOracle: {
202
+ readonly 1: {
203
+ readonly address: "0xdfe97868233d1aa22e815a266982f2cf17685a27";
204
+ };
205
+ };
206
+ readonly multicall3: {
207
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
208
+ readonly blockCreated: 4286263;
209
+ };
210
+ readonly portal: {
211
+ readonly 1: {
212
+ readonly address: "0xbEb5Fc579115071764c7423A4f12eDde41f106Ed";
213
+ };
214
+ };
215
+ readonly l1StandardBridge: {
216
+ readonly 1: {
217
+ readonly address: "0x99C9fc46f92E8a1c0deC1b1747d010903E884bE1";
218
+ };
219
+ };
220
+ readonly gasPriceOracle: {
221
+ readonly address: "0x420000000000000000000000000000000000000F";
222
+ };
223
+ readonly l1Block: {
224
+ readonly address: "0x4200000000000000000000000000000000000015";
225
+ };
226
+ readonly l2CrossDomainMessenger: {
227
+ readonly address: "0x4200000000000000000000000000000000000007";
228
+ };
229
+ readonly l2Erc721Bridge: {
230
+ readonly address: "0x4200000000000000000000000000000000000014";
231
+ };
232
+ readonly l2StandardBridge: {
233
+ readonly address: "0x4200000000000000000000000000000000000010";
234
+ };
235
+ readonly l2ToL1MessagePasser: {
236
+ readonly address: "0x4200000000000000000000000000000000000016";
237
+ };
238
+ };
239
+ ensTlds?: readonly string[] | undefined;
240
+ id: 10;
241
+ name: "OP Mainnet";
242
+ nativeCurrency: {
243
+ readonly name: "Ether";
244
+ readonly symbol: "ETH";
245
+ readonly decimals: 18;
246
+ };
247
+ experimental_preconfirmationTime?: number | undefined | undefined;
248
+ rpcUrls: {
249
+ readonly default: {
250
+ readonly http: readonly ["https://mainnet.optimism.io"];
251
+ };
252
+ };
253
+ sourceId: 1;
254
+ testnet?: boolean | undefined | undefined;
255
+ custom?: Record<string, unknown> | undefined;
256
+ fees?: import('viem').ChainFees<undefined> | undefined;
257
+ formatters: {
258
+ readonly block: {
259
+ exclude: [] | undefined;
260
+ format: (args: import('viem/chains').OpStackRpcBlock) => {
261
+ baseFeePerGas: bigint | null;
262
+ blobGasUsed: bigint;
263
+ difficulty: bigint;
264
+ excessBlobGas: bigint;
265
+ extraData: import('viem').Hex;
266
+ gasLimit: bigint;
267
+ gasUsed: bigint;
268
+ hash: `0x${string}` | null;
269
+ logsBloom: `0x${string}` | null;
270
+ miner: import('viem').Address;
271
+ mixHash: import('viem').Hash;
272
+ nonce: `0x${string}` | null;
273
+ number: bigint | null;
274
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
275
+ parentHash: import('viem').Hash;
276
+ receiptsRoot: import('viem').Hex;
277
+ sealFields: import('viem').Hex[];
278
+ sha3Uncles: import('viem').Hash;
279
+ size: bigint;
280
+ stateRoot: import('viem').Hash;
281
+ timestamp: bigint;
282
+ totalDifficulty: bigint | null;
283
+ transactions: `0x${string}`[] | import('viem/chains').OpStackTransaction<boolean>[];
284
+ transactionsRoot: import('viem').Hash;
285
+ uncles: import('viem').Hash[];
286
+ withdrawals?: import('viem').Withdrawal[] | undefined | undefined;
287
+ withdrawalsRoot?: `0x${string}` | undefined;
288
+ } & {};
289
+ type: "block";
290
+ };
291
+ readonly transaction: {
292
+ exclude: [] | undefined;
293
+ format: (args: import('viem/chains').OpStackRpcTransaction) => ({
294
+ blockHash: `0x${string}` | null;
295
+ blockNumber: bigint | null;
296
+ from: import('viem').Address;
297
+ gas: bigint;
298
+ hash: import('viem').Hash;
299
+ input: import('viem').Hex;
300
+ nonce: number;
301
+ r: import('viem').Hex;
302
+ s: import('viem').Hex;
303
+ to: import('viem').Address | null;
304
+ transactionIndex: number | null;
305
+ typeHex: import('viem').Hex | null;
306
+ v: bigint;
307
+ value: bigint;
308
+ yParity: number;
309
+ gasPrice?: undefined | undefined;
310
+ maxFeePerBlobGas?: undefined | undefined;
311
+ maxFeePerGas: bigint;
312
+ maxPriorityFeePerGas: bigint;
313
+ isSystemTx?: boolean;
314
+ mint?: bigint | undefined | undefined;
315
+ sourceHash: import('viem').Hex;
316
+ type: "deposit";
317
+ } | {
318
+ r: import('viem').Hex;
319
+ s: import('viem').Hex;
320
+ v: bigint;
321
+ to: import('viem').Address | null;
322
+ from: import('viem').Address;
323
+ gas: bigint;
324
+ nonce: number;
325
+ value: bigint;
326
+ blockHash: `0x${string}` | null;
327
+ blockNumber: bigint | null;
328
+ hash: import('viem').Hash;
329
+ input: import('viem').Hex;
330
+ transactionIndex: number | null;
331
+ typeHex: import('viem').Hex | null;
332
+ accessList?: undefined | undefined;
333
+ authorizationList?: undefined | undefined;
334
+ blobVersionedHashes?: undefined | undefined;
335
+ chainId?: number | undefined;
336
+ yParity?: undefined | undefined;
337
+ type: "legacy";
338
+ gasPrice: bigint;
339
+ maxFeePerBlobGas?: undefined | undefined;
340
+ maxFeePerGas?: undefined | undefined;
341
+ maxPriorityFeePerGas?: undefined | undefined;
342
+ isSystemTx?: undefined | undefined;
343
+ mint?: undefined | undefined;
344
+ sourceHash?: undefined | undefined;
345
+ } | {
346
+ blockHash: `0x${string}` | null;
347
+ blockNumber: bigint | null;
348
+ from: import('viem').Address;
349
+ gas: bigint;
350
+ hash: import('viem').Hash;
351
+ input: import('viem').Hex;
352
+ nonce: number;
353
+ r: import('viem').Hex;
354
+ s: import('viem').Hex;
355
+ to: import('viem').Address | null;
356
+ transactionIndex: number | null;
357
+ typeHex: import('viem').Hex | null;
358
+ v: bigint;
359
+ value: bigint;
360
+ yParity: number;
361
+ accessList: import('viem').AccessList;
362
+ authorizationList?: undefined | undefined;
363
+ blobVersionedHashes?: undefined | undefined;
364
+ chainId: number;
365
+ type: "eip2930";
366
+ gasPrice: bigint;
367
+ maxFeePerBlobGas?: undefined | undefined;
368
+ maxFeePerGas?: undefined | undefined;
369
+ maxPriorityFeePerGas?: undefined | undefined;
370
+ isSystemTx?: undefined | undefined;
371
+ mint?: undefined | undefined;
372
+ sourceHash?: undefined | undefined;
373
+ } | {
374
+ blockHash: `0x${string}` | null;
375
+ blockNumber: bigint | null;
376
+ from: import('viem').Address;
377
+ gas: bigint;
378
+ hash: import('viem').Hash;
379
+ input: import('viem').Hex;
380
+ nonce: number;
381
+ r: import('viem').Hex;
382
+ s: import('viem').Hex;
383
+ to: import('viem').Address | null;
384
+ transactionIndex: number | null;
385
+ typeHex: import('viem').Hex | null;
386
+ v: bigint;
387
+ value: bigint;
388
+ yParity: number;
389
+ accessList: import('viem').AccessList;
390
+ authorizationList?: undefined | undefined;
391
+ blobVersionedHashes?: undefined | undefined;
392
+ chainId: number;
393
+ type: "eip1559";
394
+ gasPrice?: undefined | undefined;
395
+ maxFeePerBlobGas?: undefined | undefined;
396
+ maxFeePerGas: bigint;
397
+ maxPriorityFeePerGas: bigint;
398
+ isSystemTx?: undefined | undefined;
399
+ mint?: undefined | undefined;
400
+ sourceHash?: undefined | undefined;
401
+ } | {
402
+ blockHash: `0x${string}` | null;
403
+ blockNumber: bigint | null;
404
+ from: import('viem').Address;
405
+ gas: bigint;
406
+ hash: import('viem').Hash;
407
+ input: import('viem').Hex;
408
+ nonce: number;
409
+ r: import('viem').Hex;
410
+ s: import('viem').Hex;
411
+ to: import('viem').Address | null;
412
+ transactionIndex: number | null;
413
+ typeHex: import('viem').Hex | null;
414
+ v: bigint;
415
+ value: bigint;
416
+ yParity: number;
417
+ accessList: import('viem').AccessList;
418
+ authorizationList?: undefined | undefined;
419
+ blobVersionedHashes: readonly import('viem').Hex[];
420
+ chainId: number;
421
+ type: "eip4844";
422
+ gasPrice?: undefined | undefined;
423
+ maxFeePerBlobGas: bigint;
424
+ maxFeePerGas: bigint;
425
+ maxPriorityFeePerGas: bigint;
426
+ isSystemTx?: undefined | undefined;
427
+ mint?: undefined | undefined;
428
+ sourceHash?: undefined | undefined;
429
+ } | {
430
+ blockHash: `0x${string}` | null;
431
+ blockNumber: bigint | null;
432
+ from: import('viem').Address;
433
+ gas: bigint;
434
+ hash: import('viem').Hash;
435
+ input: import('viem').Hex;
436
+ nonce: number;
437
+ r: import('viem').Hex;
438
+ s: import('viem').Hex;
439
+ to: import('viem').Address | null;
440
+ transactionIndex: number | null;
441
+ typeHex: import('viem').Hex | null;
442
+ v: bigint;
443
+ value: bigint;
444
+ yParity: number;
445
+ accessList: import('viem').AccessList;
446
+ authorizationList: import('viem').SignedAuthorizationList;
447
+ blobVersionedHashes?: undefined | undefined;
448
+ chainId: number;
449
+ type: "eip7702";
450
+ gasPrice?: undefined | undefined;
451
+ maxFeePerBlobGas?: undefined | undefined;
452
+ maxFeePerGas: bigint;
453
+ maxPriorityFeePerGas: bigint;
454
+ isSystemTx?: undefined | undefined;
455
+ mint?: undefined | undefined;
456
+ sourceHash?: undefined | undefined;
457
+ }) & {};
458
+ type: "transaction";
459
+ };
460
+ readonly transactionReceipt: {
461
+ exclude: [] | undefined;
462
+ format: (args: import('viem/chains').OpStackRpcTransactionReceipt) => {
463
+ blobGasPrice?: bigint | undefined;
464
+ blobGasUsed?: bigint | undefined;
465
+ blockHash: import('viem').Hash;
466
+ blockNumber: bigint;
467
+ contractAddress: import('viem').Address | null | undefined;
468
+ cumulativeGasUsed: bigint;
469
+ effectiveGasPrice: bigint;
470
+ from: import('viem').Address;
471
+ gasUsed: bigint;
472
+ logs: import('viem').Log<bigint, number, false>[];
473
+ logsBloom: import('viem').Hex;
474
+ root?: `0x${string}` | undefined;
475
+ status: "success" | "reverted";
476
+ to: import('viem').Address | null;
477
+ transactionHash: import('viem').Hash;
478
+ transactionIndex: number;
479
+ type: import('viem').TransactionType;
480
+ l1GasPrice: bigint | null;
481
+ l1GasUsed: bigint | null;
482
+ l1Fee: bigint | null;
483
+ l1FeeScalar: number | null;
484
+ } & {};
485
+ type: "transactionReceipt";
486
+ };
487
+ };
488
+ serializers: {
489
+ readonly transaction: typeof import('viem/chains').serializeTransactionOpStack;
490
+ };
491
+ } | {
492
+ blockExplorers: {
493
+ readonly default: {
494
+ readonly name: "Basescan";
495
+ readonly url: "https://basescan.org";
496
+ readonly apiUrl: "https://api.basescan.org/api";
497
+ };
498
+ };
499
+ blockTime: 2000;
500
+ contracts: {
501
+ readonly disputeGameFactory: {
502
+ readonly 1: {
503
+ readonly address: "0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e";
504
+ };
505
+ };
506
+ readonly l2OutputOracle: {
507
+ readonly 1: {
508
+ readonly address: "0x56315b90c40730925ec5485cf004d835058518A0";
509
+ };
510
+ };
511
+ readonly multicall3: {
512
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
513
+ readonly blockCreated: 5022;
514
+ };
515
+ readonly portal: {
516
+ readonly 1: {
517
+ readonly address: "0x49048044D57e1C92A77f79988d21Fa8fAF74E97e";
518
+ readonly blockCreated: 17482143;
519
+ };
520
+ };
521
+ readonly l1StandardBridge: {
522
+ readonly 1: {
523
+ readonly address: "0x3154Cf16ccdb4C6d922629664174b904d80F2C35";
524
+ readonly blockCreated: 17482143;
525
+ };
526
+ };
527
+ readonly gasPriceOracle: {
528
+ readonly address: "0x420000000000000000000000000000000000000F";
529
+ };
530
+ readonly l1Block: {
531
+ readonly address: "0x4200000000000000000000000000000000000015";
532
+ };
533
+ readonly l2CrossDomainMessenger: {
534
+ readonly address: "0x4200000000000000000000000000000000000007";
535
+ };
536
+ readonly l2Erc721Bridge: {
537
+ readonly address: "0x4200000000000000000000000000000000000014";
538
+ };
539
+ readonly l2StandardBridge: {
540
+ readonly address: "0x4200000000000000000000000000000000000010";
541
+ };
542
+ readonly l2ToL1MessagePasser: {
543
+ readonly address: "0x4200000000000000000000000000000000000016";
544
+ };
545
+ };
546
+ ensTlds?: readonly string[] | undefined;
547
+ id: 8453;
548
+ name: "Base";
549
+ nativeCurrency: {
550
+ readonly name: "Ether";
551
+ readonly symbol: "ETH";
552
+ readonly decimals: 18;
553
+ };
554
+ experimental_preconfirmationTime?: number | undefined | undefined;
555
+ rpcUrls: {
556
+ readonly default: {
557
+ readonly http: readonly ["https://mainnet.base.org"];
558
+ };
559
+ };
560
+ sourceId: 1;
561
+ testnet?: boolean | undefined | undefined;
562
+ custom?: Record<string, unknown> | undefined;
563
+ fees?: import('viem').ChainFees<undefined> | undefined;
564
+ formatters: {
565
+ readonly block: {
566
+ exclude: [] | undefined;
567
+ format: (args: import('viem/chains').OpStackRpcBlock) => {
568
+ baseFeePerGas: bigint | null;
569
+ blobGasUsed: bigint;
570
+ difficulty: bigint;
571
+ excessBlobGas: bigint;
572
+ extraData: import('viem').Hex;
573
+ gasLimit: bigint;
574
+ gasUsed: bigint;
575
+ hash: `0x${string}` | null;
576
+ logsBloom: `0x${string}` | null;
577
+ miner: import('viem').Address;
578
+ mixHash: import('viem').Hash;
579
+ nonce: `0x${string}` | null;
580
+ number: bigint | null;
581
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
582
+ parentHash: import('viem').Hash;
583
+ receiptsRoot: import('viem').Hex;
584
+ sealFields: import('viem').Hex[];
585
+ sha3Uncles: import('viem').Hash;
586
+ size: bigint;
587
+ stateRoot: import('viem').Hash;
588
+ timestamp: bigint;
589
+ totalDifficulty: bigint | null;
590
+ transactions: `0x${string}`[] | import('viem/chains').OpStackTransaction<boolean>[];
591
+ transactionsRoot: import('viem').Hash;
592
+ uncles: import('viem').Hash[];
593
+ withdrawals?: import('viem').Withdrawal[] | undefined | undefined;
594
+ withdrawalsRoot?: `0x${string}` | undefined;
595
+ } & {};
596
+ type: "block";
597
+ };
598
+ readonly transaction: {
599
+ exclude: [] | undefined;
600
+ format: (args: import('viem/chains').OpStackRpcTransaction) => ({
601
+ blockHash: `0x${string}` | null;
602
+ blockNumber: bigint | null;
603
+ from: import('viem').Address;
604
+ gas: bigint;
605
+ hash: import('viem').Hash;
606
+ input: import('viem').Hex;
607
+ nonce: number;
608
+ r: import('viem').Hex;
609
+ s: import('viem').Hex;
610
+ to: import('viem').Address | null;
611
+ transactionIndex: number | null;
612
+ typeHex: import('viem').Hex | null;
613
+ v: bigint;
614
+ value: bigint;
615
+ yParity: number;
616
+ gasPrice?: undefined | undefined;
617
+ maxFeePerBlobGas?: undefined | undefined;
618
+ maxFeePerGas: bigint;
619
+ maxPriorityFeePerGas: bigint;
620
+ isSystemTx?: boolean;
621
+ mint?: bigint | undefined | undefined;
622
+ sourceHash: import('viem').Hex;
623
+ type: "deposit";
624
+ } | {
625
+ r: import('viem').Hex;
626
+ s: import('viem').Hex;
627
+ v: bigint;
628
+ to: import('viem').Address | null;
629
+ from: import('viem').Address;
630
+ gas: bigint;
631
+ nonce: number;
632
+ value: bigint;
633
+ blockHash: `0x${string}` | null;
634
+ blockNumber: bigint | null;
635
+ hash: import('viem').Hash;
636
+ input: import('viem').Hex;
637
+ transactionIndex: number | null;
638
+ typeHex: import('viem').Hex | null;
639
+ accessList?: undefined | undefined;
640
+ authorizationList?: undefined | undefined;
641
+ blobVersionedHashes?: undefined | undefined;
642
+ chainId?: number | undefined;
643
+ yParity?: undefined | undefined;
644
+ type: "legacy";
645
+ gasPrice: bigint;
646
+ maxFeePerBlobGas?: undefined | undefined;
647
+ maxFeePerGas?: undefined | undefined;
648
+ maxPriorityFeePerGas?: undefined | undefined;
649
+ isSystemTx?: undefined | undefined;
650
+ mint?: undefined | undefined;
651
+ sourceHash?: undefined | undefined;
652
+ } | {
653
+ blockHash: `0x${string}` | null;
654
+ blockNumber: bigint | null;
655
+ from: import('viem').Address;
656
+ gas: bigint;
657
+ hash: import('viem').Hash;
658
+ input: import('viem').Hex;
659
+ nonce: number;
660
+ r: import('viem').Hex;
661
+ s: import('viem').Hex;
662
+ to: import('viem').Address | null;
663
+ transactionIndex: number | null;
664
+ typeHex: import('viem').Hex | null;
665
+ v: bigint;
666
+ value: bigint;
667
+ yParity: number;
668
+ accessList: import('viem').AccessList;
669
+ authorizationList?: undefined | undefined;
670
+ blobVersionedHashes?: undefined | undefined;
671
+ chainId: number;
672
+ type: "eip2930";
673
+ gasPrice: bigint;
674
+ maxFeePerBlobGas?: undefined | undefined;
675
+ maxFeePerGas?: undefined | undefined;
676
+ maxPriorityFeePerGas?: undefined | undefined;
677
+ isSystemTx?: undefined | undefined;
678
+ mint?: undefined | undefined;
679
+ sourceHash?: undefined | undefined;
680
+ } | {
681
+ blockHash: `0x${string}` | null;
682
+ blockNumber: bigint | null;
683
+ from: import('viem').Address;
684
+ gas: bigint;
685
+ hash: import('viem').Hash;
686
+ input: import('viem').Hex;
687
+ nonce: number;
688
+ r: import('viem').Hex;
689
+ s: import('viem').Hex;
690
+ to: import('viem').Address | null;
691
+ transactionIndex: number | null;
692
+ typeHex: import('viem').Hex | null;
693
+ v: bigint;
694
+ value: bigint;
695
+ yParity: number;
696
+ accessList: import('viem').AccessList;
697
+ authorizationList?: undefined | undefined;
698
+ blobVersionedHashes?: undefined | undefined;
699
+ chainId: number;
700
+ type: "eip1559";
701
+ gasPrice?: undefined | undefined;
702
+ maxFeePerBlobGas?: undefined | undefined;
703
+ maxFeePerGas: bigint;
704
+ maxPriorityFeePerGas: bigint;
705
+ isSystemTx?: undefined | undefined;
706
+ mint?: undefined | undefined;
707
+ sourceHash?: undefined | undefined;
708
+ } | {
709
+ blockHash: `0x${string}` | null;
710
+ blockNumber: bigint | null;
711
+ from: import('viem').Address;
712
+ gas: bigint;
713
+ hash: import('viem').Hash;
714
+ input: import('viem').Hex;
715
+ nonce: number;
716
+ r: import('viem').Hex;
717
+ s: import('viem').Hex;
718
+ to: import('viem').Address | null;
719
+ transactionIndex: number | null;
720
+ typeHex: import('viem').Hex | null;
721
+ v: bigint;
722
+ value: bigint;
723
+ yParity: number;
724
+ accessList: import('viem').AccessList;
725
+ authorizationList?: undefined | undefined;
726
+ blobVersionedHashes: readonly import('viem').Hex[];
727
+ chainId: number;
728
+ type: "eip4844";
729
+ gasPrice?: undefined | undefined;
730
+ maxFeePerBlobGas: bigint;
731
+ maxFeePerGas: bigint;
732
+ maxPriorityFeePerGas: bigint;
733
+ isSystemTx?: undefined | undefined;
734
+ mint?: undefined | undefined;
735
+ sourceHash?: undefined | undefined;
736
+ } | {
737
+ blockHash: `0x${string}` | null;
738
+ blockNumber: bigint | null;
739
+ from: import('viem').Address;
740
+ gas: bigint;
741
+ hash: import('viem').Hash;
742
+ input: import('viem').Hex;
743
+ nonce: number;
744
+ r: import('viem').Hex;
745
+ s: import('viem').Hex;
746
+ to: import('viem').Address | null;
747
+ transactionIndex: number | null;
748
+ typeHex: import('viem').Hex | null;
749
+ v: bigint;
750
+ value: bigint;
751
+ yParity: number;
752
+ accessList: import('viem').AccessList;
753
+ authorizationList: import('viem').SignedAuthorizationList;
754
+ blobVersionedHashes?: undefined | undefined;
755
+ chainId: number;
756
+ type: "eip7702";
757
+ gasPrice?: undefined | undefined;
758
+ maxFeePerBlobGas?: undefined | undefined;
759
+ maxFeePerGas: bigint;
760
+ maxPriorityFeePerGas: bigint;
761
+ isSystemTx?: undefined | undefined;
762
+ mint?: undefined | undefined;
763
+ sourceHash?: undefined | undefined;
764
+ }) & {};
765
+ type: "transaction";
766
+ };
767
+ readonly transactionReceipt: {
768
+ exclude: [] | undefined;
769
+ format: (args: import('viem/chains').OpStackRpcTransactionReceipt) => {
770
+ blobGasPrice?: bigint | undefined;
771
+ blobGasUsed?: bigint | undefined;
772
+ blockHash: import('viem').Hash;
773
+ blockNumber: bigint;
774
+ contractAddress: import('viem').Address | null | undefined;
775
+ cumulativeGasUsed: bigint;
776
+ effectiveGasPrice: bigint;
777
+ from: import('viem').Address;
778
+ gasUsed: bigint;
779
+ logs: import('viem').Log<bigint, number, false>[];
780
+ logsBloom: import('viem').Hex;
781
+ root?: `0x${string}` | undefined;
782
+ status: "success" | "reverted";
783
+ to: import('viem').Address | null;
784
+ transactionHash: import('viem').Hash;
785
+ transactionIndex: number;
786
+ type: import('viem').TransactionType;
787
+ l1GasPrice: bigint | null;
788
+ l1GasUsed: bigint | null;
789
+ l1Fee: bigint | null;
790
+ l1FeeScalar: number | null;
791
+ } & {};
792
+ type: "transactionReceipt";
793
+ };
794
+ };
795
+ serializers: {
796
+ readonly transaction: typeof import('viem/chains').serializeTransactionOpStack;
797
+ };
798
+ } | {
799
+ blockExplorers: {
800
+ readonly default: {
801
+ readonly name: "Gnosisscan";
802
+ readonly url: "https://gnosisscan.io";
803
+ readonly apiUrl: "https://api.gnosisscan.io/api";
804
+ };
805
+ };
806
+ blockTime?: number | undefined | undefined;
807
+ contracts: {
808
+ readonly multicall3: {
809
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
810
+ readonly blockCreated: 21022491;
811
+ };
812
+ };
813
+ ensTlds?: readonly string[] | undefined;
814
+ id: 100;
815
+ name: "Gnosis";
816
+ nativeCurrency: {
817
+ readonly decimals: 18;
818
+ readonly name: "xDAI";
819
+ readonly symbol: "XDAI";
820
+ };
821
+ experimental_preconfirmationTime?: number | undefined | undefined;
822
+ rpcUrls: {
823
+ readonly default: {
824
+ readonly http: readonly ["https://rpc.gnosischain.com"];
825
+ readonly webSocket: readonly ["wss://rpc.gnosischain.com/wss"];
826
+ };
827
+ };
828
+ sourceId?: number | undefined | undefined;
829
+ testnet?: boolean | undefined | undefined;
830
+ custom?: Record<string, unknown> | undefined;
831
+ fees?: import('viem').ChainFees<undefined> | undefined;
832
+ formatters?: undefined;
833
+ serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
834
+ } | {
835
+ blockExplorers: {
836
+ readonly default: {
837
+ readonly name: "Sonic Explorer";
838
+ readonly url: "https://sonicscan.org";
839
+ };
840
+ };
841
+ blockTime?: number | undefined | undefined;
842
+ contracts: {
843
+ readonly multicall3: {
844
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
845
+ readonly blockCreated: 60;
846
+ };
847
+ };
848
+ ensTlds?: readonly string[] | undefined;
849
+ id: 146;
850
+ name: "Sonic";
851
+ nativeCurrency: {
852
+ readonly decimals: 18;
853
+ readonly name: "Sonic";
854
+ readonly symbol: "S";
855
+ };
856
+ experimental_preconfirmationTime?: number | undefined | undefined;
857
+ rpcUrls: {
858
+ readonly default: {
859
+ readonly http: readonly ["https://rpc.soniclabs.com"];
860
+ };
861
+ };
862
+ sourceId?: number | undefined | undefined;
863
+ testnet: false;
864
+ custom?: Record<string, unknown> | undefined;
865
+ fees?: import('viem').ChainFees<undefined> | undefined;
866
+ formatters?: undefined;
867
+ serializers?: import('viem').ChainSerializers<undefined, import('viem').TransactionSerializable> | undefined;
868
+ } | {
869
+ blockExplorers: {
870
+ readonly default: {
871
+ readonly name: "Uniscan";
872
+ readonly url: "https://uniscan.xyz";
873
+ readonly apiUrl: "https://api.uniscan.xyz/api";
874
+ };
875
+ };
876
+ blockTime: 2000;
877
+ contracts: {
878
+ readonly multicall3: {
879
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
880
+ readonly blockCreated: 0;
881
+ };
882
+ readonly disputeGameFactory: {
883
+ readonly 1: {
884
+ readonly address: "0x2F12d621a16e2d3285929C9996f478508951dFe4";
885
+ };
886
+ };
887
+ readonly portal: {
888
+ readonly 1: {
889
+ readonly address: "0x0bd48f6B86a26D3a217d0Fa6FfE2B491B956A7a2";
890
+ };
891
+ };
892
+ readonly l1StandardBridge: {
893
+ readonly 1: {
894
+ readonly address: "0x81014F44b0a345033bB2b3B21C7a1A308B35fEeA";
895
+ };
896
+ };
897
+ readonly gasPriceOracle: {
898
+ readonly address: "0x420000000000000000000000000000000000000F";
899
+ };
900
+ readonly l1Block: {
901
+ readonly address: "0x4200000000000000000000000000000000000015";
902
+ };
903
+ readonly l2CrossDomainMessenger: {
904
+ readonly address: "0x4200000000000000000000000000000000000007";
905
+ };
906
+ readonly l2Erc721Bridge: {
907
+ readonly address: "0x4200000000000000000000000000000000000014";
908
+ };
909
+ readonly l2StandardBridge: {
910
+ readonly address: "0x4200000000000000000000000000000000000010";
911
+ };
912
+ readonly l2ToL1MessagePasser: {
913
+ readonly address: "0x4200000000000000000000000000000000000016";
914
+ };
915
+ };
916
+ ensTlds?: readonly string[] | undefined;
917
+ id: 130;
918
+ name: "Unichain";
919
+ nativeCurrency: {
920
+ readonly name: "Ether";
921
+ readonly symbol: "ETH";
922
+ readonly decimals: 18;
923
+ };
924
+ experimental_preconfirmationTime?: number | undefined | undefined;
925
+ rpcUrls: {
926
+ readonly default: {
927
+ readonly http: readonly ["https://mainnet.unichain.org/"];
928
+ };
929
+ };
930
+ sourceId: 1;
931
+ testnet?: boolean | undefined | undefined;
932
+ custom?: Record<string, unknown> | undefined;
933
+ fees?: import('viem').ChainFees<undefined> | undefined;
934
+ formatters: {
935
+ readonly block: {
936
+ exclude: [] | undefined;
937
+ format: (args: import('viem/chains').OpStackRpcBlock) => {
938
+ baseFeePerGas: bigint | null;
939
+ blobGasUsed: bigint;
940
+ difficulty: bigint;
941
+ excessBlobGas: bigint;
942
+ extraData: import('viem').Hex;
943
+ gasLimit: bigint;
944
+ gasUsed: bigint;
945
+ hash: `0x${string}` | null;
946
+ logsBloom: `0x${string}` | null;
947
+ miner: import('viem').Address;
948
+ mixHash: import('viem').Hash;
949
+ nonce: `0x${string}` | null;
950
+ number: bigint | null;
951
+ parentBeaconBlockRoot?: `0x${string}` | undefined;
952
+ parentHash: import('viem').Hash;
953
+ receiptsRoot: import('viem').Hex;
954
+ sealFields: import('viem').Hex[];
955
+ sha3Uncles: import('viem').Hash;
956
+ size: bigint;
957
+ stateRoot: import('viem').Hash;
958
+ timestamp: bigint;
959
+ totalDifficulty: bigint | null;
960
+ transactions: `0x${string}`[] | import('viem/chains').OpStackTransaction<boolean>[];
961
+ transactionsRoot: import('viem').Hash;
962
+ uncles: import('viem').Hash[];
963
+ withdrawals?: import('viem').Withdrawal[] | undefined | undefined;
964
+ withdrawalsRoot?: `0x${string}` | undefined;
965
+ } & {};
966
+ type: "block";
967
+ };
968
+ readonly transaction: {
969
+ exclude: [] | undefined;
970
+ format: (args: import('viem/chains').OpStackRpcTransaction) => ({
971
+ blockHash: `0x${string}` | null;
972
+ blockNumber: bigint | null;
973
+ from: import('viem').Address;
974
+ gas: bigint;
975
+ hash: import('viem').Hash;
976
+ input: import('viem').Hex;
977
+ nonce: number;
978
+ r: import('viem').Hex;
979
+ s: import('viem').Hex;
980
+ to: import('viem').Address | null;
981
+ transactionIndex: number | null;
982
+ typeHex: import('viem').Hex | null;
983
+ v: bigint;
984
+ value: bigint;
985
+ yParity: number;
986
+ gasPrice?: undefined | undefined;
987
+ maxFeePerBlobGas?: undefined | undefined;
988
+ maxFeePerGas: bigint;
989
+ maxPriorityFeePerGas: bigint;
990
+ isSystemTx?: boolean;
991
+ mint?: bigint | undefined | undefined;
992
+ sourceHash: import('viem').Hex;
993
+ type: "deposit";
994
+ } | {
995
+ r: import('viem').Hex;
996
+ s: import('viem').Hex;
997
+ v: bigint;
998
+ to: import('viem').Address | null;
999
+ from: import('viem').Address;
1000
+ gas: bigint;
1001
+ nonce: number;
1002
+ value: bigint;
1003
+ blockHash: `0x${string}` | null;
1004
+ blockNumber: bigint | null;
1005
+ hash: import('viem').Hash;
1006
+ input: import('viem').Hex;
1007
+ transactionIndex: number | null;
1008
+ typeHex: import('viem').Hex | null;
1009
+ accessList?: undefined | undefined;
1010
+ authorizationList?: undefined | undefined;
1011
+ blobVersionedHashes?: undefined | undefined;
1012
+ chainId?: number | undefined;
1013
+ yParity?: undefined | undefined;
1014
+ type: "legacy";
1015
+ gasPrice: bigint;
1016
+ maxFeePerBlobGas?: undefined | undefined;
1017
+ maxFeePerGas?: undefined | undefined;
1018
+ maxPriorityFeePerGas?: undefined | undefined;
1019
+ isSystemTx?: undefined | undefined;
1020
+ mint?: undefined | undefined;
1021
+ sourceHash?: undefined | undefined;
1022
+ } | {
1023
+ blockHash: `0x${string}` | null;
1024
+ blockNumber: bigint | null;
1025
+ from: import('viem').Address;
1026
+ gas: bigint;
1027
+ hash: import('viem').Hash;
1028
+ input: import('viem').Hex;
1029
+ nonce: number;
1030
+ r: import('viem').Hex;
1031
+ s: import('viem').Hex;
1032
+ to: import('viem').Address | null;
1033
+ transactionIndex: number | null;
1034
+ typeHex: import('viem').Hex | null;
1035
+ v: bigint;
1036
+ value: bigint;
1037
+ yParity: number;
1038
+ accessList: import('viem').AccessList;
1039
+ authorizationList?: undefined | undefined;
1040
+ blobVersionedHashes?: undefined | undefined;
1041
+ chainId: number;
1042
+ type: "eip2930";
1043
+ gasPrice: bigint;
1044
+ maxFeePerBlobGas?: undefined | undefined;
1045
+ maxFeePerGas?: undefined | undefined;
1046
+ maxPriorityFeePerGas?: undefined | undefined;
1047
+ isSystemTx?: undefined | undefined;
1048
+ mint?: undefined | undefined;
1049
+ sourceHash?: undefined | undefined;
1050
+ } | {
1051
+ blockHash: `0x${string}` | null;
1052
+ blockNumber: bigint | null;
1053
+ from: import('viem').Address;
1054
+ gas: bigint;
1055
+ hash: import('viem').Hash;
1056
+ input: import('viem').Hex;
1057
+ nonce: number;
1058
+ r: import('viem').Hex;
1059
+ s: import('viem').Hex;
1060
+ to: import('viem').Address | null;
1061
+ transactionIndex: number | null;
1062
+ typeHex: import('viem').Hex | null;
1063
+ v: bigint;
1064
+ value: bigint;
1065
+ yParity: number;
1066
+ accessList: import('viem').AccessList;
1067
+ authorizationList?: undefined | undefined;
1068
+ blobVersionedHashes?: undefined | undefined;
1069
+ chainId: number;
1070
+ type: "eip1559";
1071
+ gasPrice?: undefined | undefined;
1072
+ maxFeePerBlobGas?: undefined | undefined;
1073
+ maxFeePerGas: bigint;
1074
+ maxPriorityFeePerGas: bigint;
1075
+ isSystemTx?: undefined | undefined;
1076
+ mint?: undefined | undefined;
1077
+ sourceHash?: undefined | undefined;
1078
+ } | {
1079
+ blockHash: `0x${string}` | null;
1080
+ blockNumber: bigint | null;
1081
+ from: import('viem').Address;
1082
+ gas: bigint;
1083
+ hash: import('viem').Hash;
1084
+ input: import('viem').Hex;
1085
+ nonce: number;
1086
+ r: import('viem').Hex;
1087
+ s: import('viem').Hex;
1088
+ to: import('viem').Address | null;
1089
+ transactionIndex: number | null;
1090
+ typeHex: import('viem').Hex | null;
1091
+ v: bigint;
1092
+ value: bigint;
1093
+ yParity: number;
1094
+ accessList: import('viem').AccessList;
1095
+ authorizationList?: undefined | undefined;
1096
+ blobVersionedHashes: readonly import('viem').Hex[];
1097
+ chainId: number;
1098
+ type: "eip4844";
1099
+ gasPrice?: undefined | undefined;
1100
+ maxFeePerBlobGas: bigint;
1101
+ maxFeePerGas: bigint;
1102
+ maxPriorityFeePerGas: bigint;
1103
+ isSystemTx?: undefined | undefined;
1104
+ mint?: undefined | undefined;
1105
+ sourceHash?: undefined | undefined;
1106
+ } | {
1107
+ blockHash: `0x${string}` | null;
1108
+ blockNumber: bigint | null;
1109
+ from: import('viem').Address;
1110
+ gas: bigint;
1111
+ hash: import('viem').Hash;
1112
+ input: import('viem').Hex;
1113
+ nonce: number;
1114
+ r: import('viem').Hex;
1115
+ s: import('viem').Hex;
1116
+ to: import('viem').Address | null;
1117
+ transactionIndex: number | null;
1118
+ typeHex: import('viem').Hex | null;
1119
+ v: bigint;
1120
+ value: bigint;
1121
+ yParity: number;
1122
+ accessList: import('viem').AccessList;
1123
+ authorizationList: import('viem').SignedAuthorizationList;
1124
+ blobVersionedHashes?: undefined | undefined;
1125
+ chainId: number;
1126
+ type: "eip7702";
1127
+ gasPrice?: undefined | undefined;
1128
+ maxFeePerBlobGas?: undefined | undefined;
1129
+ maxFeePerGas: bigint;
1130
+ maxPriorityFeePerGas: bigint;
1131
+ isSystemTx?: undefined | undefined;
1132
+ mint?: undefined | undefined;
1133
+ sourceHash?: undefined | undefined;
1134
+ }) & {};
1135
+ type: "transaction";
1136
+ };
1137
+ readonly transactionReceipt: {
1138
+ exclude: [] | undefined;
1139
+ format: (args: import('viem/chains').OpStackRpcTransactionReceipt) => {
1140
+ blobGasPrice?: bigint | undefined;
1141
+ blobGasUsed?: bigint | undefined;
1142
+ blockHash: import('viem').Hash;
1143
+ blockNumber: bigint;
1144
+ contractAddress: import('viem').Address | null | undefined;
1145
+ cumulativeGasUsed: bigint;
1146
+ effectiveGasPrice: bigint;
1147
+ from: import('viem').Address;
1148
+ gasUsed: bigint;
1149
+ logs: import('viem').Log<bigint, number, false>[];
1150
+ logsBloom: import('viem').Hex;
1151
+ root?: `0x${string}` | undefined;
1152
+ status: "success" | "reverted";
1153
+ to: import('viem').Address | null;
1154
+ transactionHash: import('viem').Hash;
1155
+ transactionIndex: number;
1156
+ type: import('viem').TransactionType;
1157
+ l1GasPrice: bigint | null;
1158
+ l1GasUsed: bigint | null;
1159
+ l1Fee: bigint | null;
1160
+ l1FeeScalar: number | null;
1161
+ } & {};
1162
+ type: "transactionReceipt";
1163
+ };
1164
+ };
1165
+ serializers: {
1166
+ readonly transaction: typeof import('viem/chains').serializeTransactionOpStack;
1167
+ };
1168
+ } | undefined>;
1169
+ //# sourceMappingURL=switchChain.d.ts.map