-
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 pull request #566 from enkryptcom/devop/new-networks
feat: bitrock network + fraxtal network
- Loading branch information
Showing
8 changed files
with
217 additions
and
16 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
25 changes: 25 additions & 0 deletions
25
packages/extension/src/providers/ethereum/networks/bitrock.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,25 @@ | ||
import icon from './icons/bitrock.svg'; | ||
import { CoingeckoPlatform, NetworkNames } from '@enkryptcom/types'; | ||
import { EvmNetwork, EvmNetworkOptions } from '../types/evm-network'; | ||
import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler'; | ||
|
||
const bitrockOptions: EvmNetworkOptions = { | ||
name: NetworkNames.Bitrock, | ||
name_long: 'Bitrock Chain', | ||
homePage: 'https://bit-rock.io/', | ||
blockExplorerTX: 'https://explorer.bit-rock.io/tx/[[txHash]]', | ||
blockExplorerAddr: 'https://explorer.bit-rock.io/address/[[address]]', | ||
chainID: '0x1c03', | ||
isTestNetwork: false, | ||
currencyName: 'BROCK', | ||
currencyNameLong: 'Bitrock', | ||
node: 'https://brockrpc.io', | ||
icon, | ||
coingeckoID: 'bitrock', | ||
coingeckoPlatform: CoingeckoPlatform.Bitrock, | ||
activityHandler: wrapActivityHandler(() => Promise.resolve([])), | ||
}; | ||
|
||
const bitrock = new EvmNetwork(bitrockOptions); | ||
|
||
export default bitrock; |
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; |
55 changes: 55 additions & 0 deletions
55
packages/extension/src/providers/ethereum/networks/icons/bitrock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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