diff --git a/config/global-params.json b/config/global-params.json new file mode 100644 index 0000000..3af5bbf --- /dev/null +++ b/config/global-params.json @@ -0,0 +1,25 @@ +{ + "versions": [ + { + "version": 0, + "activation_height": 192840, + "staking_cap": 50000000000, + "tag": "01020304", + "covenant_pks": [ + "0381b70c01535f5153a8039c21150c53f3e49a083555b57930103db8a7272ff336", + "02159f46467124f6bbba77060520571ddb07c7e95ff54d8b9958ec0b0d59d86c03", + "039705be04f3a3eb5c3d0dd61e648e06ea8170975744594fe702e8088bcceff375", + "02ce138027bfdfb4dd631e9cecf097082c8a505ab16de36f5e3eb816d105ba7575", + "03e15dba250612e79e22abf28a1828ba5e6bdfaaa6ed2d87462b046994c33fa46f" + ], + "covenant_quorum": 3, + "unbonding_time": 1000, + "unbonding_fee": 20000, + "max_staking_amount": 1000000000, + "min_staking_amount": 1000000, + "max_staking_time": 65000, + "min_staking_time": 64000, + "confirmation_depth": 10 + } + ] +} \ No newline at end of file diff --git a/contrib/images/staking-expiry-checker/entrypoint.sh b/contrib/images/staking-expiry-checker/entrypoint.sh index cb0f5ad..f72bd6e 100755 --- a/contrib/images/staking-expiry-checker/entrypoint.sh +++ b/contrib/images/staking-expiry-checker/entrypoint.sh @@ -4,6 +4,7 @@ set -x BINARY=${BINARY:-/bin/staking-expiry-checker} CONFIG=${CONFIG:-/home/staking-expiry-checker/config.yml} +PARAMS=${PARAMS:-/home/staking-expiry-checker/global-params.json} if ! [ -f "${BINARY}" ]; then echo "The binary $(basename "${BINARY}") cannot be found." @@ -15,4 +16,9 @@ if ! [ -f "${CONFIG}" ]; then exit 1 fi -$BINARY --config "$CONFIG" 2>&1 \ No newline at end of file +if ! [ -f "${PARAMS}" ]; then + echo "The global parameters file $(basename "${PARAMS}") cannot be found. Please add the global parameters file to the shared folder. Use the PARAMS environment variable if the name of the global parameters file is not 'global-params.json'" + exit 1 +fi + +$BINARY --config "$CONFIG" --params "$PARAMS" 2>&1 \ No newline at end of file