File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -56,4 +56,5 @@ export const lens: ChainInfo = {
5656 url : 'https://lens.xyz/bridge' ,
5757 } ,
5858 ] ,
59+ isZkSync : true ,
5960}
Original file line number Diff line number Diff line change @@ -149,4 +149,9 @@ export interface ChainInfo {
149149 [ key : string ] : ChainRpcUrls
150150 default : ChainRpcUrls
151151 }
152+
153+ /**
154+ * Whether the chain is zkSync based.
155+ */
156+ readonly isZkSync ?: boolean
152157}
Original file line number Diff line number Diff line change @@ -38,3 +38,7 @@ export function isAdditionalTargetChain(chainId: ChainId): chainId is Additional
3838export function isTargetChainId ( chainId : ChainId ) : chainId is TargetChainId {
3939 return isSupportedChain ( chainId ) || isAdditionalTargetChain ( chainId )
4040}
41+
42+ export function isZkSyncChain ( chainId : ChainId ) : boolean {
43+ return ! ! getChainInfo ( chainId ) ?. isZkSync
44+ }
You can’t perform that action at this time.
0 commit comments