Skip to content

Commit

Permalink
devop: add holesky chain
Browse files Browse the repository at this point in the history
  • Loading branch information
NickKelly1 committed Sep 12, 2024
1 parent 3531a96 commit 3cb0a2f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions packages/extension/src/providers/ethereum/networks/holesky.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { NetworkNames } from "@enkryptcom/types";
import { EvmNetwork, EvmNetworkOptions } from "../types/evm-network";

const holeskyOptions: EvmNetworkOptions = {
name: NetworkNames.Holesky,
name_long: "Holesky",
homePage: "https://holesky.dev/",
blockExplorerTX: "https://holesky.etherscan.io/tx/[[txHash]]",
blockExplorerAddr: "https://holesky.etherscan.io/address/[[address]]",
chainID: "0x4268",
isTestNetwork: true,
currencyName: "HOL",
currencyNameLong: "Holesky",
node: "wss://nodes.mewapi.io/ws/holesky",
icon: require("./icons/eth.svg"),
activityHandler: () => Promise.resolve([]),
};

const holesky = new EvmNetwork(holeskyOptions);

export default holesky;
2 changes: 2 additions & 0 deletions packages/extension/src/providers/ethereum/networks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ import palmNode from "./palm";
import proofOfPlayApexNode from "./pop-apex";
import scrollNode from "./scroll";
import cotiDevnetNode from "./coti-devnet";
import holeskyNode from "./holesky";

export default {
sepolia: sepoliaNode,
Expand Down Expand Up @@ -129,4 +130,5 @@ export default {
popApex: proofOfPlayApexNode,
scroll: scrollNode,
cotiDevnet: cotiDevnetNode,
holesky: holeskyNode,
};
1 change: 1 addition & 0 deletions packages/types/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export enum NetworkNames {
Scroll = "scroll",
Rari = "rari",
CotiDevnet = "CotiDevnet",
Holesky = "HOLESKY",
}

export enum CoingeckoPlatform {
Expand Down

1 comment on commit 3cb0a2f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.