@@ -52,6 +52,8 @@ export type ZkSyncNetwork = {
5252 onramp ?: boolean ;
5353 showPartnerLinks ?: boolean ;
5454 } ;
55+ nativeCurrency ?: { name : string ; symbol : string ; decimals : number ; iconUrl : string ; l1Address : string } ;
56+ nativeBridgingOnly ?: boolean ;
5557 getTokens ?: ( ) => Token [ ] | Promise < Token [ ] > ; // If blockExplorerApi is specified, tokens will be fetched from there. Otherwise, this function will be used.
5658} ;
5759
@@ -105,6 +107,7 @@ const publicChains: ZkSyncNetwork[] = [
105107 blockExplorerUrl : "https://sepolia-era.zksync.network" ,
106108 blockExplorerApi : "https://block-explorer-api.sepolia.zksync.dev" ,
107109 displaySettings : {
110+ onramp : false ,
108111 showPartnerLinks : true ,
109112 } ,
110113 l1Network : l1Networks . sepolia ,
@@ -119,6 +122,74 @@ const publicChains: ZkSyncNetwork[] = [
119122 l1Network : l1Networks . sepolia ,
120123 hidden : true ,
121124 } ,
125+ {
126+ id : 9075 ,
127+ key : "gateway" ,
128+ name : "ZKsync Gateway Mainnet" ,
129+ rpcUrl : "https://rpc.era-gateway-mainnet.zksync.dev" ,
130+ blockExplorerUrl : "https://explorer.era-gateway-mainnet.zksync.dev" ,
131+ blockExplorerApi : "https://block-explorer-api.era-gateway-mainnet.zksync.dev" ,
132+ l1Network : l1Networks . mainnet ,
133+ displaySettings : {
134+ onramp : false ,
135+ showPartnerLinks : false ,
136+ } ,
137+ nativeCurrency : {
138+ name : "ZKsync" ,
139+ symbol : "ZK" ,
140+ decimals : 18 ,
141+ iconUrl : "img/era.svg" ,
142+ l1Address : "0x66A5cFB2e9c529f14FE6364Ad1075dF3a649C0A5" ,
143+ } ,
144+ nativeBridgingOnly : true ,
145+ getTokens : ( ) => {
146+ return [
147+ {
148+ address : L2_BASE_TOKEN_ADDRESS ,
149+ l1Address : "0x2569600E58850a0AaD61F7Dd2569516C3d909521" ,
150+ name : "ZKsync" ,
151+ symbol : "ZK" ,
152+ decimals : 18 ,
153+ iconUrl : "/img/era.svg" ,
154+ isETH : false ,
155+ } ,
156+ ] ;
157+ } ,
158+ } ,
159+ {
160+ id : 32657 ,
161+ key : "gateway-testnet" ,
162+ name : "ZKsync Gateway Testnet" ,
163+ rpcUrl : "https://rpc.era-gateway-testnet.zksync.dev" ,
164+ blockExplorerUrl : "https://explorer.era-gateway-testnet.zksync.dev" ,
165+ blockExplorerApi : "https://block-explorer.era-gateway-testnet.zksync.dev" ,
166+ l1Network : l1Networks . sepolia ,
167+ displaySettings : {
168+ onramp : false ,
169+ showPartnerLinks : false ,
170+ } ,
171+ nativeCurrency : {
172+ name : "ZKsync" ,
173+ symbol : "ZK" ,
174+ decimals : 18 ,
175+ iconUrl : "img/era.svg" ,
176+ l1Address : "0x2569600E58850a0AaD61F7Dd2569516C3d909521" ,
177+ } ,
178+ nativeBridgingOnly : true ,
179+ getTokens : ( ) => {
180+ return [
181+ {
182+ address : L2_BASE_TOKEN_ADDRESS ,
183+ l1Address : "0x2569600E58850a0AaD61F7Dd2569516C3d909521" ,
184+ name : "ZKsync" ,
185+ symbol : "ZK" ,
186+ decimals : 18 ,
187+ iconUrl : "/img/era.svg" ,
188+ isETH : false ,
189+ } ,
190+ ] ;
191+ } ,
192+ } ,
122193] ;
123194
124195const getHyperchains = ( ) : ZkSyncNetwork [ ] => {
0 commit comments