Make chain ID, prefix and gas price configurable
This commit is contained in:
parent
9ef02bf8f0
commit
392747b154
@ -8,6 +8,8 @@ services:
|
|||||||
CERC_LACONICD_RPC_ENDPOINT: ${CERC_LACONICD_RPC_ENDPOINT:-http://laconicd:26657}
|
CERC_LACONICD_RPC_ENDPOINT: ${CERC_LACONICD_RPC_ENDPOINT:-http://laconicd:26657}
|
||||||
CERC_FAUCET_KEY: ${CERC_FAUCET_KEY}
|
CERC_FAUCET_KEY: ${CERC_FAUCET_KEY}
|
||||||
CERC_LACONICD_CHAIN_ID: ${CERC_LACONICD_CHAIN_ID:-laconic_9000-1}
|
CERC_LACONICD_CHAIN_ID: ${CERC_LACONICD_CHAIN_ID:-laconic_9000-1}
|
||||||
|
CERC_LACONICD_PREFIX: ${CERC_LACONICD_PREFIX:-laconic}
|
||||||
|
CERC_LACONICD_GAS_PRICE: ${CERC_LACONICD_GAS_PRICE:-1}
|
||||||
volumes:
|
volumes:
|
||||||
- faucet-data:/app/db
|
- faucet-data:/app/db
|
||||||
- ../config/laconic-shopify-faucet/start-faucet.sh:/app/start-faucet.sh
|
- ../config/laconic-shopify-faucet/start-faucet.sh:/app/start-faucet.sh
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
[upstream]
|
[upstream]
|
||||||
rpcEndpoint = "REPLACE_WITH_CERC_LACONICD_RPC_ENDPOINT"
|
rpcEndpoint = "REPLACE_WITH_CERC_LACONICD_RPC_ENDPOINT"
|
||||||
chainId = "laconic_9000-1"
|
chainId = "REPLACE_WITH_CERC_LACONICD_CHAIN_ID"
|
||||||
denom = "alnt"
|
prefix = "REPLACE_WITH_CERC_LACONICD_PREFIX"
|
||||||
prefix = "laconic"
|
gasPrice = "REPLACE_WITH_CERC_LACONICD_GAS_PRICE"
|
||||||
gasPrice = "1"
|
|
||||||
faucetKey = "REPLACE_WITH_CERC_FAUCET_KEY"
|
faucetKey = "REPLACE_WITH_CERC_FAUCET_KEY"
|
||||||
|
denom = "alnt"
|
||||||
|
|
||||||
[server]
|
[server]
|
||||||
port=3000
|
port=3000
|
||||||
|
@ -19,6 +19,9 @@ echo "Using laconicd RPC endpoint: $CERC_LACONICD_RPC_ENDPOINT"
|
|||||||
|
|
||||||
FAUCET_CONFIG=$(echo "$config_template" | \
|
FAUCET_CONFIG=$(echo "$config_template" | \
|
||||||
sed -E "s|REPLACE_WITH_CERC_FAUCET_KEY|${CERC_FAUCET_KEY}|g; \
|
sed -E "s|REPLACE_WITH_CERC_FAUCET_KEY|${CERC_FAUCET_KEY}|g; \
|
||||||
|
s|REPLACE_WITH_CERC_LACONICD_CHAIN_ID|${CERC_LACONICD_CHAIN_ID}|g; \
|
||||||
|
s|REPLACE_WITH_CERC_LACONICD_PREFIX|${CERC_LACONICD_PREFIX}|g; \
|
||||||
|
s|REPLACE_WITH_CERC_LACONICD_GAS_PRICE|${CERC_LACONICD_GAS_PRICE}|g; \
|
||||||
s|REPLACE_WITH_CERC_LACONICD_RPC_ENDPOINT|${CERC_LACONICD_RPC_ENDPOINT}|g; ")
|
s|REPLACE_WITH_CERC_LACONICD_RPC_ENDPOINT|${CERC_LACONICD_RPC_ENDPOINT}|g; ")
|
||||||
|
|
||||||
echo "$FAUCET_CONFIG" > $target_config
|
echo "$FAUCET_CONFIG" > $target_config
|
||||||
|
@ -62,6 +62,12 @@ Instructions for running the laconic faucet
|
|||||||
|
|
||||||
# laconicd chain id (default: laconic_9000-1)
|
# laconicd chain id (default: laconic_9000-1)
|
||||||
CERC_LACONICD_CHAIN_ID=
|
CERC_LACONICD_CHAIN_ID=
|
||||||
|
|
||||||
|
# laconicd address prefix (default: laconic)
|
||||||
|
CERC_LACONICD_PREFIX=
|
||||||
|
|
||||||
|
# laconicd gas price (default: 1)
|
||||||
|
CERC_LACONICD_GAS_PRICE=
|
||||||
```
|
```
|
||||||
|
|
||||||
## Start the deployment
|
## Start the deployment
|
||||||
|
Loading…
Reference in New Issue
Block a user