-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v4.2.0
- Loading branch information
Showing
120 changed files
with
5,258 additions
and
3,296 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { NetworkId, NetworkNameById, NetworkIdByName } from '@synthetixio/contracts-interface'; | ||
import { OPTIMISM_NETWORKS } from '@synthetixio/optimism-networks'; | ||
|
||
export const getBaseUrl = (networkId: NetworkId) => { | ||
if (networkId === 10 || networkId === 420) { | ||
return OPTIMISM_NETWORKS[networkId as NetworkId]?.blockExplorerUrls[0]; | ||
} else if ((networkId as NetworkId) === NetworkIdByName.mainnet) { | ||
return 'https://etherscan.io'; | ||
} | ||
return `https://${NetworkNameById[networkId]}.etherscan.io`; | ||
}; | ||
|
||
export const generateExplorerFunctions = (baseUrl: string) => ({ | ||
baseLink: baseUrl, | ||
txLink: (txId: string) => `${baseUrl}/tx/${txId}`, | ||
addressLink: (address: string) => `${baseUrl}/address/${address}`, | ||
tokenLink: (address: string) => `${baseUrl}/token/${address}`, | ||
blockLink: (blockNumber: string) => `${baseUrl}/block/${blockNumber}`, | ||
}); |
Oops, something went wrong.
8ab8c35
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
kwenta – ./
kwenta-kwenta.vercel.app
kwenta-git-main-kwenta.vercel.app
kwenta.io