Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CSUB-1082 Networks selection screen needs update to show only CreditcoinTest #120

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 14 additions & 17 deletions src/config/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ const makeCreditcoinNetwork = ({

const makeNetworkList = () => {
const networks: Networks = {};
if (
import.meta.env.VITE_ENVIRONMENT === 'test' ||
import.meta.env.VITE_ENVIRONMENT === undefined
) {
if (import.meta.env.VITE_ENVIRONMENT !== 'prod') {
networks.creditcoinDev = makeCreditcoinNetwork({
name: 'creditcoinDev',
endpoints: {
Expand Down Expand Up @@ -112,19 +109,19 @@ const makeNetworkList = () => {
subscanEndpoint: 'https://subscan-cc3-testnet.creditcoin.network',
subscanUrl: 'https://creditcoin3-testnet.subscan.io',
});
networks.creditcoin = makeCreditcoinNetwork({
name: 'creditcoin',
endpoints: {
lightClient: null,
defaultRpcEndpoint: 'Gluwa',
rpcEndpoints: {
Gluwa: 'wss://rpc.cc3-mainnet.creditcoin.network/ws',
},
},
namespace: 'creditcoin-mainnet',
subscanEndpoint: 'http://127.0.0.1:4399',
subscanUrl: 'https://creditcoin3.subscan.io',
});
// networks.creditcoin = makeCreditcoinNetwork({
// name: 'creditcoin',
// endpoints: {
// lightClient: null,
// defaultRpcEndpoint: 'Gluwa',
// rpcEndpoints: {
// Gluwa: 'wss://rpc.cc3-mainnet.creditcoin.network/ws',
// },
// },
// namespace: 'creditcoin-mainnet',
// subscanEndpoint: 'http://127.0.0.1:4399',
// subscanUrl: 'https://creditcoin3.subscan.io',
// });
if (import.meta.env.DEV) {
networks.creditcoinLocal = makeCreditcoinNetwork({
name: 'creditcoinLocal',
Expand Down
5 changes: 2 additions & 3 deletions src/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ export const AppVersion = '1.0.8';
export const DappName = 'Creditcoin Staking Dashboard';
export const CreditcoinUrl = 'https://creditcoin.org';
export const DefaultNetwork =
import.meta.env.VITE_ENVIRONMENT === 'test' ||
import.meta.env.VITE_ENVIRONMENT === undefined
import.meta.env.VITE_ENVIRONMENT === 'test'
? 'creditcoinDev'
: 'creditcoin';
: 'creditcoinTest';
export const ManualSigners = ['ledger', 'vault'];
/*
* Data Structure Helpers
Expand Down
Loading