Skip to content

Commit cb151bb

Browse files
mmioanabassgeta
authored andcommitted
Refactor: Remove unused var from docker and unused supported chains
Refactor: Remove unused var from docker and unused supported chains
1 parent 72afd5d commit cb151bb

3 files changed

Lines changed: 15 additions & 26 deletions

File tree

docker/colony-cdapp-dev-env-proxy-block-ingestor

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,7 @@ FROM colony-cdapp-dev-env/base:latest
22

33
# @TODO maybe add a PROXY_BLOCK_INGESTOR_HASH and fallback to BLOCK_INGESTOR_HASH
44
ENV BLOCK_INGESTOR_HASH=008fe77fd7a4787619653ae309e6e9597b9b6c80
5-
# @TODO do we need here a contract to be in the format:
6-
# {
7-
# name: 'ColonyNetwork',
8-
# address: '0x777760996135F0791E2e1a74aFAa060711197777',
9-
# path: 'colonyNetwork/ColonyNetwork.sol/ColonyNetwork.json',
10-
# },
11-
# also the RPC url needs to be different for each chain
12-
ENV CONTRACT_ADDRESSES='["0x777760996135F0791E2e1a74aFAa060711197777", "0x777760996135F0791E2e1a74aFAa060711197778"]'
5+
136
ENV CHAIN_RPC_ENDPOINTS='["http://network-contracts-remote:8545", "http://network-contracts-remote-2:8545"]'
147
ENV STATS_PORTS='["10002", "10003"]'
158

docker/files/proxy-block-ingestor/run.sh.base

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ else
1717
INDEX=$((CONTAINER_REPLICA_NUMBER - 1))
1818
fi
1919

20-
CONTRACT_ADDRESSES_ARRAY=($(echo "$CONTRACT_ADDRESSES" | jq -r '.[]'))
21-
CONTRACT_ADDRESS=${CONTRACT_ADDRESSES_ARRAY[$INDEX]}
22-
2320
echo "Used contract address: $CONTRACT_ADDRESS"
2421

2522
CHAIN_RPC_ENDPOINTS_ARRAY=($(echo "$CHAIN_RPC_ENDPOINTS" | jq -r '.[]'))
@@ -37,7 +34,6 @@ wget http://network-files:3006/etherrouter-address.json
3734

3835
# Write to env file...
3936
echo "CHAIN_NETWORK_CONTRACT=`jq -r .etherRouterAddress etherrouter-address.json`" >> apps/proxy-chain/.env
40-
echo "CONTRACT_ADDRESS=$CONTRACT_ADDRESS" >> apps/proxy-chain/.env
4137
echo "CHAIN_RPC_ENDPOINT=$CHAIN_RPC_ENDPOINT" >> apps/proxy-chain/.env
4238
echo "STATS_PORT=$STATS_PORT" >> apps/proxy-chain/.env
4339

src/constants/proxyColonies.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,49 +7,49 @@ import PolygonIcon from '~icons/PolygonIcon.tsx';
77
import { type SupportedChain } from '~types/proxyColonies.ts';
88

99
// @TODO this probably needs to be setup more dynamically, but let's hardcode it for now
10-
const ETHEREUM_NETWORK = {
11-
name: 'Ethereum',
12-
chainId: 265669101,
13-
icon: EthereumIcon,
14-
};
1510
const POLYGON_NETWORK = {
1611
name: 'Polygon',
17-
chainId: 265669102,
12+
chainId: 265669101,
1813
icon: PolygonIcon,
1914
};
2015

16+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
17+
const ETHEREUM_NETWORK = {
18+
name: 'Ethereum',
19+
chainId: 265669102,
20+
icon: EthereumIcon,
21+
};
22+
23+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2124
const BASE_NETWORK = {
2225
name: 'Base',
2326
chainId: 265669103,
2427
icon: BaseIcon,
2528
isDisabled: true,
2629
};
2730

31+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2832
const OPTIMISM_NETWORK = {
2933
name: 'Optimism',
3034
chainId: 265669104,
3135
icon: OptimismIcon,
3236
isDisabled: true,
3337
};
38+
39+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3440
const AVALANCHE_NETWORK = {
3541
name: 'Avalanche',
3642
chainId: 265669105,
3743
icon: AvalancheIcon,
3844
isDisabled: true,
3945
};
4046

47+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4148
const BINANCE_NETWORK = {
4249
name: 'Binance',
4350
chainId: 265669106,
4451
icon: BinanceIcon,
4552
isDisabled: true,
4653
};
4754

48-
export const SUPPORTED_CHAINS: SupportedChain[] = [
49-
ETHEREUM_NETWORK,
50-
POLYGON_NETWORK,
51-
BASE_NETWORK,
52-
OPTIMISM_NETWORK,
53-
AVALANCHE_NETWORK,
54-
BINANCE_NETWORK,
55-
];
55+
export const SUPPORTED_CHAINS: SupportedChain[] = [POLYGON_NETWORK];

0 commit comments

Comments
 (0)