Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
🚚 default-config -> config-node + config-router
Browse files Browse the repository at this point in the history
  • Loading branch information
bohendo committed Oct 5, 2020
1 parent f4de0ef commit 5e1f156
Show file tree
Hide file tree
Showing 5 changed files with 80 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*.docker-compose.yml
docker-compose.yml
modules/*/package-lock.json
config.json

# Cache
**/.bot-store
Expand Down
File renamed without changes.
File renamed without changes.
78 changes: 78 additions & 0 deletions config-router.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"adminToken": "cxt1234",
"allowedSwaps": [
{
"fromChainId": 1337,
"toChainId": 1338,
"fromAssetId": "0x0000000000000000000000000000000000000000",
"toAssetId": "0x0000000000000000000000000000000000000000",
"priceType": "hardcoded",
"hardcodedRate": "1"
},
{
"fromChainId": 1337,
"toChainId": 1338,
"fromAssetId": "0x8f0483125FCb9aaAEFA9209D8E9d7b9C8B9Fb90F",
"toAssetId": "0x8f0483125FCb9aaAEFA9209D8E9d7b9C8B9Fb90F",
"priceType": "hardcoded",
"hardcodedRate": "1"
}
],
"authUrl": "http://auth:5040",
"production": false,
"logLevel": "info",
"chainAddresses": {
"1337": {
"channelMastercopyAddress": "0x8CdaF0CD259887258Bc13a92C0a6dA92698644C0",
"channelFactoryAddress": "0xF12b5dd4EAD5F743C6BaA640B0216200e89B60Da",
"linkedTransferDefinition": "0x345cA3e014Aaf5dcA488057592ee47305D9B3e10",
"withdrawDefinition": "0xf25186B5081Ff5cE73482AD761DB0eB0d25abfBF",
"TestToken": "0x8f0483125FCb9aaAEFA9209D8E9d7b9C8B9Fb90F"
},
"1338": {
"channelMastercopyAddress": "0x8CdaF0CD259887258Bc13a92C0a6dA92698644C0",
"channelFactoryAddress": "0xF12b5dd4EAD5F743C6BaA640B0216200e89B60Da",
"linkedTransferDefinition": "0x345cA3e014Aaf5dcA488057592ee47305D9B3e10",
"withdrawDefinition": "0xf25186B5081Ff5cE73482AD761DB0eB0d25abfBF",
"TestToken": "0x8f0483125FCb9aaAEFA9209D8E9d7b9C8B9Fb90F"
}
},
"chainProviders": {
"1337": "http://evm_1337:8545",
"1338": "http://evm_1338:8545"
},
"domainName": "",
"natsUrl": "nats://nats:4222",
"port": 8000,
"redisUrl": "redis://redis:6379",
"rebalanceProfiles": [
{
"chainId": 1337,
"assetId": "0x0000000000000000000000000000000000000000",
"reclaimThreshold": "200000000000000000",
"target": "100000000000000000",
"collateralizeThreshold": "50000000000000000"
},
{
"chainId": 1338,
"assetId": "0x0000000000000000000000000000000000000000",
"reclaimThreshold": "200000000000000000",
"target": "100000000000000000",
"collateralizeThreshold": "50000000000000000"
},
{
"chainId": 1337,
"assetId": "0x8f0483125FCb9aaAEFA9209D8E9d7b9C8B9Fb90F",
"reclaimThreshold": "2000000000000000000",
"target": "1000000000000000000",
"collateralizeThreshold": "500000000000000000"
},
{
"chainId": 1338,
"assetId": "0x8f0483125FCb9aaAEFA9209D8E9d7b9C8B9Fb90F",
"reclaimThreshold": "2000000000000000000",
"target": "1000000000000000000",
"collateralizeThreshold": "500000000000000000"
}
]
}
4 changes: 2 additions & 2 deletions ops/start-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ function fromAddressBook {
';
}

default_config="`cat $root/default-config.json`" # | tr -d '\n\r'`"
override_config="`cat $root/config.json`" # | tr -d '\n\r'`"
default_config="`cat $root/config-node.json`" # | tr -d '\n\r'`"
override_config="`cat $root/config-prod.json`" # | tr -d '\n\r'`"
config="`echo $default_config $override_config | mergeJson`"

function getDefault { echo "$default_config" | jq ".$1" | tr -d '"'; }
Expand Down

0 comments on commit 5e1f156

Please sign in to comment.