Skip to content

Commit

Permalink
Merge pull request #566 from enkryptcom/devop/new-networks
Browse files Browse the repository at this point in the history
feat: bitrock network + fraxtal network
  • Loading branch information
kvhnuke authored Nov 26, 2024
2 parents abf56be + cf62e30 commit ba340a8
Show file tree
Hide file tree
Showing 8 changed files with 217 additions and 16 deletions.
86 changes: 70 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,28 +32,82 @@ Enkrypt is a web3 wallet built from the ground up to support the multi-chain fut
## Currently Supported Chains

- Ethereum
- Polygon
- BNB Smart Chain
- Moonbeam
- Moonriver
- Karura EVM
- Ethereum Classic
- Polkadot
- Kusama
- Edgeware
- Bitcoin
- Solana
- Acala
- Karura
- TomoChain
- Amplitude
- Arbitrum
- Gnosis
- Arbitrum Nova
- Arthera
- Astar
- Astar EVM
- Aurora
- Avalanche
- Base
- Bifrost
- Bifrost (Kusama)
- Binance Smart Chain
- Bitcoin Testnet
- Bitrock
- Blast
- Caga Ankara Testnet
- Canto
- Celo
- Degen
- Dogecoin
- Edgeware
- Edgeware EVM
- Ethereum Classic
- Fantom
- Forma
- Fraxtal
- Gnosis
- Godwoken
- Goerli
- Ham Chain
- Immutable zkEVM
- Kadena
- Karura
- Karura EVM
- Klaytn
- Aurora
- Ontology
- Kusama
- Linea
- Litecoin
- Manta Pacific
- Mode
- Moonbeam
- Moonriver
- OKX Chain
- Ontology EVM
- Opal
- opBNB
- Optimism
- Palm Network
- Pendulum
- Polkadot
- Polygon
- Polygon zkEVM
- Proof of Play Apex
- Puppy Net
- Arthera
- Caga Ankara Testnet
- Quartz
- RARI Chain
- Rollux
- Rootstock
- Sanko Chain
- Scroll
- Shibarium
- Shiden
- Shiden EVM
- Sepolia
- Syscoin
- Telos EVM
- Unique
- Vara Network
- Viction
- Westend
- ZChains
- zkSync
- zkSync Goerli
- More coming soon!

Looking to add your project? [Contact us!](https://mewwallet.typeform.com/enkrypt-inquiry?typeform-source=www.enkrypt.com)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ const NetworkEndpoints: Record<string, string> = {
[NetworkNames.Mode]: 'https://explorer.mode.network/',
[NetworkNames.ProofOfPlayApex]: 'https://explorer.apex.proofofplay.com/',
[NetworkNames.Scroll]: 'https://api.scrollscan.com/',
[NetworkNames.Fraxtal]: 'https://api.fraxscan.com/',
};

export { NetworkEndpoints };
25 changes: 25 additions & 0 deletions packages/extension/src/providers/ethereum/networks/bitrock.ts
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 packages/extension/src/providers/ethereum/networks/fraxtal.ts
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;
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.
4 changes: 4 additions & 0 deletions packages/extension/src/providers/ethereum/networks/index.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ import proofOfPlayApexNode from './pop-apex';
import scrollNode from './scroll';
import cotiDevnetNode from './coti-devnet';
import holeskyNode from './holesky';
import bitrockNode from './bitrock';
import fraxtalNode from './fraxtal';

export default {
sepolia: sepoliaNode,
Expand Down Expand Up @@ -131,4 +133,6 @@ export default {
scroll: scrollNode,
cotiDevnet: cotiDevnetNode,
holesky: holeskyNode,
bitrock: bitrockNode,
frax: fraxtalNode,
};
4 changes: 4 additions & 0 deletions packages/types/src/networks.ts
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export enum NetworkNames {
Rari = "rari",
CotiDevnet = "CotiDevnet",
Holesky = "HOLESKY",
Bitrock = "bitrock",
Fraxtal = "fraxtal",
}

export enum CoingeckoPlatform {
Expand Down Expand Up @@ -150,4 +152,6 @@ export enum CoingeckoPlatform {
Mode = "mode",
OpBNB = "opbnb",
Scroll = "scroll",
Bitrock = "bitrock",
Fraxtal = "fraxtal",
}

0 comments on commit ba340a8

Please sign in to comment.