Skip to content

Commit

Permalink
fix: bigdipper settings changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed May 10, 2020
1 parent f513bda commit facb79d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
7 changes: 4 additions & 3 deletions packages/deployment/bigdipper/ag-bigdipper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
set -e
ncf=`curl -Ss https://testnet.agoric.com/network-config`
l=`echo "$ncf" | jq '.rpcAddrs | length'`
eval rp=`echo "$ncf" | jq ".rpcAddrs[$(( RANDOM % l ))]"`
eval cn=`echo "$ncf" | jq '.chainName'`
rp=`echo "$ncf" | jq -r ".rpcAddrs[$(( RANDOM % l ))]"`
cn=`echo "$ncf" | jq -r '.chainName'`

case $cn in
testnet-1.16.8) db=meteor ;;
*) db=`echo "$cn" | sed -e 's/\./-/g'` ;;
esac

export MONGO_URL=mongodb://localhost:27017/"$db"
GTM=`cat google-tag-manager.txt || true`

test -d "portal-$cn" && ln -sfT "portal-$cn" portal
cd portal
export METEOR_SETTINGS=`sed -e "s/@CHAIN_NAME@/$cn/; s/@RPC@/$rp/" settings.json`
export METEOR_SETTINGS=`sed -e "s/@GTM@/$GTM/; s/@CHAIN_NAME@/$cn/; s/@RPC@/$rp/" settings.json`
exec /usr/bin/node main.js
exit $?
37 changes: 25 additions & 12 deletions packages/deployment/bigdipper/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,34 @@
"public":{
"chainName": "Agoric Testnet",
"chainId": "@CHAIN_NAME@",
"gtm": "{Add your Google Tag Manager ID here}",
"gtm": "@GTM@",
"slashingWindow": 10000,
"uptimeWindow": 250,
"initialPageSize": 30,
"bech32PrefixAccAddr": "cosmos",
"bech32PrefixAccPub": "cosmospub",
"bech32PrefixValAddr": "cosmosvaloper",
"bech32PrefixValPub": "cosmosvaloperpub",
"bech32PrefixConsAddr": "cosmosvalcons",
"bech32PrefixConsPub": "cosmosvalconspub",
"stakingDenom": "stake",
"stakingDenomPlural": "stakes",
"mintingDenom": null,
"stakingFraction": 1000000,
"powerReduction": 0,
"validatorStatus0": 1,
"bech32PrefixAccAddr": "agoric",
"bech32PrefixAccPub": "agoricpub",
"bech32PrefixValAddr": "agoricvaloper",
"bech32PrefixValPub": "agoricvaloperpub",
"bech32PrefixConsAddr": "agoricvalcons",
"bech32PrefixConsPub": "agoricvalconspub",
"bondDenom": "uagstake",
"powerReduction": 1000000,
"coins": [
{
"denom": "uagstake",
"displayName": "AGSTAKE",
"displayNamePlural": "AGSTAKES",
"fraction": 1000000
},
{
"denom": "uag",
"displayName": "AG",
"displayNamePlural": "AGS",
"fraction": 1000000
}

],
"gasPrice": 0.00,
"coingeckoId": null
},
Expand Down

0 comments on commit facb79d

Please sign in to comment.