-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ThunderDeliverer-add-fraxtal' into devop/new-networks
- Loading branch information
Showing
6 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
packages/extension/src/providers/ethereum/networks/fraxtal.ts
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,26 @@ | ||
import icon from './icons/fraxtal.svg'; | ||
import { CoingeckoPlatform, NetworkNames } from '@enkryptcom/types'; | ||
import { EvmNetwork, EvmNetworkOptions } from '../types/evm-network'; | ||
import { EtherscanActivity } from '../libs/activity-handlers'; | ||
import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler'; | ||
|
||
const fraxtalOptions: EvmNetworkOptions = { | ||
name: NetworkNames.Fraxtal, | ||
name_long: 'Fraxtal', | ||
homePage: 'https://www.frax.com/', | ||
blockExplorerTX: 'https://fraxscan.com/tx/[[txHash]]', | ||
blockExplorerAddr: 'https://fraxscan.com/address/[[address]]', | ||
chainID: '0xfc', | ||
isTestNetwork: false, | ||
currencyName: 'frxETH', | ||
currencyNameLong: 'Frax Ether', | ||
node: 'https://rpc.frax.com', | ||
icon, | ||
coingeckoID: 'fraxtal', | ||
coingeckoPlatform: CoingeckoPlatform.Fraxtal, | ||
activityHandler: wrapActivityHandler(EtherscanActivity), | ||
}; | ||
|
||
const fraxtal = new EvmNetwork(fraxtalOptions); | ||
|
||
export default fraxtal; |
32 changes: 32 additions & 0 deletions
32
packages/extension/src/providers/ethereum/networks/icons/fraxtal.svg
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