Skip to content

Commit

Permalink
Merge pull request #18 from CudoVentures/cudos-dev
Browse files Browse the repository at this point in the history
Merge cudos-dev
  • Loading branch information
mlukanova authored May 23, 2022
2 parents 7b0148a + 928b5ff commit aabe619
Show file tree
Hide file tree
Showing 15 changed files with 11,586 additions and 8,760 deletions.
7 changes: 4 additions & 3 deletions config/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,20 @@ DATABASE_CONNECTION_LIMIT=10
#cudos network variables
CHAIN_NAME=<name_to_display_in_keplr_wallet>
CHAIN_ID=
GRAVITY_MODULE_ADDRESS=
RPC=
API=
GAS_PRICE=
GAS=
FEE=
STAKING=<url_for_staking_button_in_keplr_wallet>
PARAMS_ENDPOINT=""
BLOCK_EXPLORER=(http://<explorer-web-address>/transactions)

#orchestrator variables
ERC20_CONTRACT_ADDRESS=
BRIDGE_CONTRACT_ADDRESS=
BRIDGE_FEE=

#ethereum variables
ETHEREUM_GAS_PRICE=
ETHEREUM_GAS=
ETHEREUM_RPC=
ETHEREUM_RPC=
15 changes: 9 additions & 6 deletions config/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,18 @@ const envVariables = [
'SESSION_UNIQUE_KEY',
'CHAIN_NAME',
'CHAIN_ID',
'GRAVITY_MODULE_ADDRESS',
'RPC',
'API',
'GAS_PRICE',
'GAS',
'FEE',
'ERC20_CONTRACT_ADDRESS',
'BRIDGE_CONTRACT_ADDRESS',
'BRIDGE_FEE',
'ETHEREUM_GAS_PRICE',
'ETHEREUM_GAS',
'STAKING'
'STAKING',
'PARAMS_ENDPOINT',
'BLOCK_EXPLORER',
];

if (process.env.NODE_ENV === 'production') {
Expand Down Expand Up @@ -202,20 +203,22 @@ const Config = {
CUDOS_NETWORK: {
CHAIN_NAME: process.env.CHAIN_NAME,
CHAIN_ID: process.env.CHAIN_ID,
GRAVITY_MODULE_ADDRESS: process.env.GRAVITY_MODULE_ADDRESS,
RPC: process.env.RPC,
API: process.env.API,
GAS_PRICE: process.env.GAS_PRICE,
FEE: process.env.FEE,
GAS: process.env.GAS,
STAKING: process.env.STAKING
STAKING: process.env.STAKING,
PARAMS_ENDPOINT: process.env.PARAMS_ENDPOINT,
BLOCK_EXPLORER: process.env.BLOCK_EXPLORER,
MESSAGE_TYPE_URL: '/gravity.v1.MsgSendToEth',
},
ORCHESTRATOR: {
ERC20_CONTRACT_ADDRESS: process.env.ERC20_CONTRACT_ADDRESS,
BRIDGE_CONTRACT_ADDRESS: process.env.BRIDGE_CONTRACT_ADDRESS,
BRIDGE_FEE: process.env.BRIDGE_FEE,
},
ETHEREUM: {
ETHEREUM_GAS_PRICE: process.env.ETHEREUM_GAS_PRICE,
ETHEREUM_GAS: process.env.ETHEREUM_GAS,
ETHEREUM_RPC: process.env.ETHEREUM_RPC,
},
Expand Down
Loading

0 comments on commit aabe619

Please sign in to comment.