diff --git a/packages/extension/src/providers/common/libs/new-features.ts b/packages/extension/src/providers/common/libs/new-features.ts index 23ccbb44c..10b4f9347 100644 --- a/packages/extension/src/providers/common/libs/new-features.ts +++ b/packages/extension/src/providers/common/libs/new-features.ts @@ -4,6 +4,7 @@ const newNetworks = [ NetworkNames.Telos, NetworkNames.Blast, NetworkNames.Sanko, + NetworkNames.Degen, ]; const newSwaps: NetworkNames[] = []; diff --git a/packages/extension/src/providers/ethereum/libs/activity-handlers/providers/etherscan/configs.ts b/packages/extension/src/providers/ethereum/libs/activity-handlers/providers/etherscan/configs.ts index d4236a785..d9250952a 100644 --- a/packages/extension/src/providers/ethereum/libs/activity-handlers/providers/etherscan/configs.ts +++ b/packages/extension/src/providers/ethereum/libs/activity-handlers/providers/etherscan/configs.ts @@ -56,6 +56,7 @@ const NetworkEndpoints: Record = { [NetworkNames.Rollux]: "https://explorer.rollux.com/", [NetworkNames.Blast]: "https://blastscan.io/", [NetworkNames.Sanko]: "https://explorer.sanko.xyz/", + [NetworkNames.Degen]: "https://explorer.degen.tips/", }; export { NetworkEndpoints }; diff --git a/packages/extension/src/providers/ethereum/libs/assets-handlers/assetinfo-mew.ts b/packages/extension/src/providers/ethereum/libs/assets-handlers/assetinfo-mew.ts index 813dd69f1..f84545f31 100644 --- a/packages/extension/src/providers/ethereum/libs/assets-handlers/assetinfo-mew.ts +++ b/packages/extension/src/providers/ethereum/libs/assets-handlers/assetinfo-mew.ts @@ -131,6 +131,10 @@ const supportedNetworks: Record = { tbName: "sanko", cgPlatform: CoingeckoPlatform.Sanko, }, + [NetworkNames.Degen]: { + tbName: "degen", + cgPlatform: CoingeckoPlatform.Degen, + }, }; const getTokens = ( diff --git a/packages/extension/src/providers/ethereum/libs/assets-handlers/token-lists.ts b/packages/extension/src/providers/ethereum/libs/assets-handlers/token-lists.ts index d991ec416..48243f0e3 100644 --- a/packages/extension/src/providers/ethereum/libs/assets-handlers/token-lists.ts +++ b/packages/extension/src/providers/ethereum/libs/assets-handlers/token-lists.ts @@ -29,6 +29,7 @@ const TokenList: Record = { [NetworkNames.Telos]: `https://tokens.coingecko.com/${CoingeckoPlatform.Telos}/all.json`, [NetworkNames.Blast]: `https://tokens.coingecko.com/${CoingeckoPlatform.Blast}/all.json`, [NetworkNames.Sanko]: `https://tokens.coingecko.com/${CoingeckoPlatform.Sanko}/all.json`, + [NetworkNames.Degen]: `https://tokens.coingecko.com/${CoingeckoPlatform.Degen}/all.json`, }; const getKnownNetworkTokens = async ( diff --git a/packages/extension/src/providers/ethereum/libs/assets-handlers/types/tokenbalance-mew.ts b/packages/extension/src/providers/ethereum/libs/assets-handlers/types/tokenbalance-mew.ts index 531be116e..89093b4b4 100644 --- a/packages/extension/src/providers/ethereum/libs/assets-handlers/types/tokenbalance-mew.ts +++ b/packages/extension/src/providers/ethereum/libs/assets-handlers/types/tokenbalance-mew.ts @@ -51,4 +51,5 @@ export type SupportedNetworkNames = | NetworkNames.Telos | NetworkNames.Rollux | NetworkNames.Sanko + | NetworkNames.Degen | NetworkNames.Blast; diff --git a/packages/extension/src/providers/ethereum/networks/degen.ts b/packages/extension/src/providers/ethereum/networks/degen.ts new file mode 100644 index 000000000..ed7dfded7 --- /dev/null +++ b/packages/extension/src/providers/ethereum/networks/degen.ts @@ -0,0 +1,27 @@ +import { CoingeckoPlatform, NetworkNames } from "@enkryptcom/types"; +import { EvmNetwork, EvmNetworkOptions } from "../types/evm-network"; +import assetsInfoHandler from "@/providers/ethereum/libs/assets-handlers/assetinfo-mew"; +import { EtherscanActivity } from "../libs/activity-handlers"; +import wrapActivityHandler from "@/libs/activity-state/wrap-activity-handler"; + +const ethOptions: EvmNetworkOptions = { + name: NetworkNames.Degen, + name_long: "Degen", + homePage: "https://www.degen.tips/", + blockExplorerTX: "https://explorer.degen.tips/tx/[[txHash]]", + blockExplorerAddr: "https://explorer.degen.tips/address/[[address]]", + chainID: "0x27bc86aa", + isTestNetwork: false, + currencyName: "DEGEN", + currencyNameLong: "DEGEN", + node: "https://rpc.degen.tips", + icon: require("./icons/degen.png"), + coingeckoID: "degen-base", + coingeckoPlatform: CoingeckoPlatform.Degen, + assetsInfoHandler, + activityHandler: wrapActivityHandler(EtherscanActivity), +}; + +const eth = new EvmNetwork(ethOptions); + +export default eth; diff --git a/packages/extension/src/providers/ethereum/networks/icons/degen.png b/packages/extension/src/providers/ethereum/networks/icons/degen.png new file mode 100644 index 000000000..5c4863f66 Binary files /dev/null and b/packages/extension/src/providers/ethereum/networks/icons/degen.png differ diff --git a/packages/extension/src/providers/ethereum/networks/index.ts b/packages/extension/src/providers/ethereum/networks/index.ts index c8665852b..6e12116a4 100644 --- a/packages/extension/src/providers/ethereum/networks/index.ts +++ b/packages/extension/src/providers/ethereum/networks/index.ts @@ -41,6 +41,7 @@ import cagaAnkara from "./cagaAnkara"; import telosNode from "./tlos"; import blastNode from "./blast"; import sankoNode from "./dmt"; +import degenNode from "./degen"; export default { sepolia: sepoliaNode, @@ -95,4 +96,5 @@ export default { telos: telosNode, blast: blastNode, sanko: sankoNode, + degen: degenNode, }; diff --git a/packages/types/src/networks.ts b/packages/types/src/networks.ts index b8d4596dc..48bd18ea7 100644 --- a/packages/types/src/networks.ts +++ b/packages/types/src/networks.ts @@ -76,6 +76,7 @@ export enum NetworkNames { Blast = "blast", Sanko = "sanko", Degen = "degen", + Ham = "ham", } export enum CoingeckoPlatform {