Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add 5ireChain #602

Merged
merged 4 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ Enkrypt is a web3 wallet built from the ground up to support the multi-chain fut
- ZChains
- zkSync
- zkSync Goerli
- 5ireChain
- More coming soon!

Looking to add your project? [Contact us!](https://mewwallet.typeform.com/enkrypt-inquiry?typeform-source=www.enkrypt.com)
Expand Down
31 changes: 31 additions & 0 deletions packages/extension/src/providers/ethereum/networks/5ire.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import icon from './icons/5ire.svg';
import wrapActivityHandler from '@/libs/activity-state/wrap-activity-handler';
import { CoingeckoPlatform, NetworkNames } from '@enkryptcom/types';
import { EtherscanActivity } from '../libs/activity-handlers';
import { EvmNetwork, EvmNetworkOptions } from '../types/evm-network';
import assetsInfoHandler from '@/providers/ethereum/libs/assets-handlers/assetinfo-mew';

const fireOptions: EvmNetworkOptions = {
name: NetworkNames.Fire,
name_long: '5ireChain',
homePage: 'https://www.5ire.org',
blockExplorerTX: 'https://5irescan.io/tx/[[txHash]]',
blockExplorerAddr: 'https://5irescan.io/address/[[address]]',
chainID: '0x3e3',
isTestNetwork: false,
currencyName: '5IRE',
currencyNameLong: '5ire',
node: 'https://rpc.5ire.network',
icon,
coingeckoID: '5ire',
coingeckoPlatform: CoingeckoPlatform.Fire,
assetsInfoHandler,
activityHandler: wrapActivityHandler(EtherscanActivity),
};

const fire = new EvmNetwork(fireOptions);

export default fire;



Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions packages/types/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ export enum NetworkNames {
Holesky = "HOLESKY",
Bitrock = "bitrock",
Fraxtal = "fraxtal",
Fire = "5ire",
}

export enum CoingeckoPlatform {
Expand Down Expand Up @@ -154,4 +155,5 @@ export enum CoingeckoPlatform {
Scroll = "scroll",
Bitrock = "bitrock",
Fraxtal = "fraxtal",
Fire = "5ire",
}