Skip to content

Commit

Permalink
devop: minor fixes to rollux and syscoin pr
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed May 15, 2024
1 parent 38b3212 commit c5a699d
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 9 deletions.
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.39.0",
"version": "1.40.0",
"private": true,
"scripts": {
"zip": "cd dist; zip -r release.zip *;",
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/manifest/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "https://www.enkrypt.com",
"homepage_url": "https://www.enkrypt.com",
"version": "",
"name": "Enkrypt: Multichain Crypto Wallet",
"name": "Enkrypt Crypto Wallet: ETH, BTC, KDA & more!",
"short_name": "Enkrypt",
"permissions": [
"storage",
Expand Down
6 changes: 5 additions & 1 deletion packages/extension/src/providers/common/libs/new-features.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { NetworkNames } from "@enkryptcom/types";

const newNetworks = [NetworkNames.Kadena];
const newNetworks = [
NetworkNames.Kadena,
NetworkNames.Rollux,
NetworkNames.Syscoin,
];
const newSwaps = [NetworkNames.MaticZK, NetworkNames.Base];

export { newNetworks, newSwaps };
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ const supportedNetworks: Record<SupportedNetworkNames, SupportedNetwork> = {
tbName: "shib",
cgPlatform: CoingeckoPlatform.Shibarium,
},
[NetworkNames.Rollux]: {
tbName: "rollux",
cgPlatform: CoingeckoPlatform.Rollux,
},
};

const getTokens = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const TokenList: Record<SupportedNetworkNames, string> = {
[NetworkNames.Celo]: `https://tokens.coingecko.com/${CoingeckoPlatform.Celo}/all.json`,
[NetworkNames.TomoChain]: `https://tokens.coingecko.com/${CoingeckoPlatform.TomoChain}/all.json`,
[NetworkNames.Shibarium]: `https://tokens.coingecko.com/${CoingeckoPlatform.Shibarium}/all.json`,
[NetworkNames.Rollux]: `https://tokens.coingecko.com/${CoingeckoPlatform.Rollux}/all.json`,
};

const getKnownNetworkTokens = async (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ export type SupportedNetworkNames =
| NetworkNames.Shibarium
| NetworkNames.MaticZK
| NetworkNames.Celo
| NetworkNames.ZkSync;
| NetworkNames.ZkSync
| NetworkNames.Rollux;
6 changes: 5 additions & 1 deletion packages/extension/src/providers/ethereum/networks/rlx.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { NetworkNames } from "@enkryptcom/types";
import { NetworkNames, CoingeckoPlatform } 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";
import assetsInfoHandler from "@/providers/ethereum/libs/assets-handlers/assetinfo-mew";

const rolluxOptions: EvmNetworkOptions = {
name: NetworkNames.Rollux,
Expand All @@ -14,7 +15,10 @@ const rolluxOptions: EvmNetworkOptions = {
currencyName: "SYS",
currencyNameLong: "Syscoin",
node: "wss://rpc.rollux.com/wss",
coingeckoID: "syscoin",
coingeckoPlatform: CoingeckoPlatform.Rollux,
icon: require("./icons/sys_rollux.svg"),
assetsInfoHandler,
activityHandler: wrapActivityHandler(EtherscanActivity),
};

Expand Down
4 changes: 3 additions & 1 deletion packages/extension/src/providers/ethereum/networks/sys.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NetworkNames } from "@enkryptcom/types";
import { NetworkNames, CoingeckoPlatform } 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";
Expand All @@ -15,6 +15,8 @@ const syscoinOptions: EvmNetworkOptions = {
currencyNameLong: "Syscoin",
node: "wss://rpc.syscoin.org/wss",
icon: require("./icons/sys_nevm.svg"),
coingeckoID: "syscoin",
coingeckoPlatform: CoingeckoPlatform.Syscoin,
activityHandler: wrapActivityHandler(EtherscanActivity),
};

Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/providers/ethereum/networks/trlx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const rolluxTestOptions: EvmNetworkOptions = {
blockExplorerTX: "https://rollux.tanenbaum.io/tx/[[txHash]]",
blockExplorerAddr: "https://rollux.tanenbaum.io/address/[[address]]",
chainID: "0xdea8",
isTestNetwork: false,
isTestNetwork: true,
currencyName: "TSYS",
currencyNameLong: "Test Syscoin",
node: "wss://rpc-tanenbaum.rollux.com/wss",
Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/providers/ethereum/networks/tsys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const syscoinTestOptions: EvmNetworkOptions = {
blockExplorerTX: "https://tanenbaum.io/tx/[[txHash]]",
blockExplorerAddr: "https://tanenbaum.io/address/[[address]]",
chainID: "0x1644",
isTestNetwork: false,
isTestNetwork: true,
currencyName: "TSYS",
currencyNameLong: "Test Syscoin",
node: "wss://rpc.tanenbaum.io/wss",
Expand Down
4 changes: 3 additions & 1 deletion packages/types/src/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export enum NetworkNames {
Syscoin = "SYS",
RolluxTest = "TRLX",
Rollux = "RLX",
CagaAnkara = "CagaAnkara"
CagaAnkara = "CagaAnkara",
}

export enum CoingeckoPlatform {
Expand Down Expand Up @@ -111,4 +111,6 @@ export enum CoingeckoPlatform {
Celo = "celo",
Shibarium = "shibarium",
Kadena = "kadena",
Syscoin = "syscoin",
Rollux = "rollux",
}

1 comment on commit c5a699d

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