Skip to content

Commit

Permalink
devop: add coti devnet network
Browse files Browse the repository at this point in the history
  • Loading branch information
NickKelly1 committed Aug 24, 2024
1 parent f333e24 commit 32e7098
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/extension/src/providers/ethereum/networks/coti-devnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { NetworkNames } from "@enkryptcom/types";
import { EvmNetwork, EvmNetworkOptions } from "../types/evm-network";
import wrapActivityHandler from "@/libs/activity-state/wrap-activity-handler";

const cotiDevnetOptions: EvmNetworkOptions = {
name: NetworkNames.CotiDevnet,
name_long: "COTI Devnet",
homePage: "https://coti.io/",
blockExplorerTX: "https://explorer-devnet.coti.io/tx/[[txHash]]",
blockExplorerAddr: "https://explorer-devnet.coti.io/address/[[address]]",
chainID: "0xc767a8",
isTestNetwork: true,
currencyName: "COTI2",
currencyNameLong: "COTI2 Devnet",
node: "https://devnet.coti.io/rpc",
icon: require("./icons/coti.png"),
activityHandler: wrapActivityHandler(() => Promise.resolve([])),
};

const cotiDevnet = new EvmNetwork(cotiDevnetOptions);

export default cotiDevnet;
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 @@ -57,6 +57,7 @@ import opbnbNode from "./op-bnb";
import palmNode from "./palm";
import proofOfPlayApexNode from "./pop-apex";
import scrollNode from "./scroll";
import cotiDevnetNode from "./coti-devnet";

export default {
sepolia: sepoliaNode,
Expand Down Expand Up @@ -127,4 +128,5 @@ export default {
palm: palmNode,
popApex: proofOfPlayApexNode,
scroll: scrollNode,
cotiDevnet: cotiDevnetNode,
};
1 change: 1 addition & 0 deletions packages/types/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export enum NetworkNames {
ProofOfPlayApex = "ProofOfPlayApex",
Scroll = "scroll",
Rari = "rari",
CotiDevnet = "CotiDevnet",
}

export enum CoingeckoPlatform {
Expand Down

1 comment on commit 32e7098

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