File tree Expand file tree Collapse file tree
files/proxy-block-ingestor Expand file tree Collapse file tree Original file line number Diff line number Diff 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
44ENV 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+
136ENV CHAIN_RPC_ENDPOINTS='["http://network-contracts-remote:8545", "http://network-contracts-remote-2:8545"]'
147ENV STATS_PORTS='["10002", "10003"]'
158
Original file line number Diff line number Diff line change 1717 INDEX=$(( CONTAINER_REPLICA_NUMBER - 1 ))
1818fi
1919
20- CONTRACT_ADDRESSES_ARRAY=($( echo " $CONTRACT_ADDRESSES " | jq -r ' .[]' ) )
21- CONTRACT_ADDRESS=${CONTRACT_ADDRESSES_ARRAY[$INDEX]}
22-
2320echo " Used contract address: $CONTRACT_ADDRESS "
2421
2522CHAIN_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...
3936echo " CHAIN_NETWORK_CONTRACT=` jq -r .etherRouterAddress etherrouter-address.json` " >> apps/proxy-chain/.env
40- echo " CONTRACT_ADDRESS=$CONTRACT_ADDRESS " >> apps/proxy-chain/.env
4137echo " CHAIN_RPC_ENDPOINT=$CHAIN_RPC_ENDPOINT " >> apps/proxy-chain/.env
4238echo " STATS_PORT=$STATS_PORT " >> apps/proxy-chain/.env
4339
Original file line number Diff line number Diff line change @@ -7,49 +7,49 @@ import PolygonIcon from '~icons/PolygonIcon.tsx';
77import { 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- } ;
1510const 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
2124const 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
2832const 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
3440const 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
4148const 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 ] ;
You can’t perform that action at this time.
0 commit comments