Skip to content

Commit

Permalink
devop: add ham chain
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed Jul 23, 2024
1 parent 5d528b3 commit 312d76f
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/extension/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@enkryptcom/extension",
"version": "1.41.0",
"version": "1.42.0",
"private": true,
"scripts": {
"zip": "cd dist; zip -r release.zip *;",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const newNetworks = [
NetworkNames.Blast,
NetworkNames.Sanko,
NetworkNames.Degen,
NetworkNames.Ham,
];
const newSwaps: NetworkNames[] = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const NetworkEndpoints: Record<string, string> = {
[NetworkNames.Blast]: "https://blastscan.io/",
[NetworkNames.Sanko]: "https://explorer.sanko.xyz/",
[NetworkNames.Degen]: "https://explorer.degen.tips/",
[NetworkNames.Ham]: "https://explorer.ham.fun/",
};

export { NetworkEndpoints };
24 changes: 24 additions & 0 deletions packages/extension/src/providers/ethereum/networks/ham.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { 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 ethOptions: EvmNetworkOptions = {
name: NetworkNames.Ham,
name_long: "Ham Chain",
homePage: "https://ham.fun/",
blockExplorerTX: "https://explorer.ham.fun/tx/[[txHash]]",
blockExplorerAddr: "https://explorer.ham.fun/address/[[address]]",
chainID: "0x13f8",
isTestNetwork: false,
currencyName: "ETH",
currencyNameLong: "Ethereum",
node: "https://rpc.ham.fun",
icon: require("./icons/ham.png"),
coingeckoID: "ethereum",
activityHandler: wrapActivityHandler(EtherscanActivity),
};

const eth = new EvmNetwork(ethOptions);

export default eth;
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/extension/src/providers/ethereum/networks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import telosNode from "./tlos";
import blastNode from "./blast";
import sankoNode from "./dmt";
import degenNode from "./degen";
import hamNode from "./ham";

export default {
sepolia: sepoliaNode,
Expand Down Expand Up @@ -97,4 +98,5 @@ export default {
blast: blastNode,
sanko: sankoNode,
degen: degenNode,
ham: hamNode,
};

1 comment on commit 312d76f

@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.