diff --git a/INTEGRATION.md b/INTEGRATION.md index f86e237..7c35a37 100644 --- a/INTEGRATION.md +++ b/INTEGRATION.md @@ -217,17 +217,7 @@ app_state.slashing.params.downtime_jail_duration 600s ``` -## PoA - Genesis params - -The PoA module can be configured to pre-define the admin controls. One admin must be set for a valid network. If you do not yet have an admin, set the chain's governance address. (CLI: `appd q auth module-account gov`) - -```json -// base + module accounts, DAOs, and multisigs are supported. -app_state.poa.params.admins -["admin1...", "admin2..."] -``` - -## Staking - Genesis Params +### Staking - Genesis Params You must modify the genesis staking parameters for some other PoA configuration options. diff --git a/README.md b/README.md index 3f4d85b..1d204d1 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,19 @@ Our security policy can be found in the [SECURITY.md](./SECURITY.md) file. ## Integration -Since this module depends on x/staking, carefully read through the [Integration Guide](./INTEGRATION.md) to add it to your network. This design choice was made to allow for the PoA module to have backwards compatibility with: +Since this module depends on `x/staking`, carefully read through the [Integration Guide](./INTEGRATION.md) to add it to your network. This design choice was made to allow for the PoA module to have backwards compatibility with: - Website UIs - Uptime bots - Validator scripts - in-process multi-validator testnets +The default POA administrator is set to the `x/gov` module address. One can change the POA administrator by setting the `POA_ADMIN_ADDRESS` environment variable to a valid address. E.g., + +```bash +# Override the default PoA admin address +POA_ADMIN_ADDRESS="cosmos1hj5fveer5cjtn4wd6wstzugjfdxzl0xpxvjjvr" poad start +```` + ## Configuration After integrating the PoA module into your chain, read the [network considerations](./INTEGRATION.md#network-considerations) before launching the network. diff --git a/simapp/proposal-params.json b/simapp/proposal-params.json deleted file mode 100644 index 6b20084..0000000 --- a/simapp/proposal-params.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "messages": [ - { - "@type": "/strangelove_ventures.poa.v1.MsgUpdateParams", - "sender": "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn", - "params": { - "admins": [ - "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn", - "cosmos10d07y265gmmuvt4z0w9aw880jnsr700j6zn9kn" - ] - } - } - ], - "metadata": "ipfs://CID", - "deposit": "1000000stake", - "title": "title", - "summary": "summary", - "expedited": false -} \ No newline at end of file diff --git a/simapp/test_node.sh b/simapp/test_node.sh index 6b026f6..9153d24 100644 --- a/simapp/test_node.sh +++ b/simapp/test_node.sh @@ -43,11 +43,7 @@ poad tx poa remove-pending $(poad q poa pending-validators --output=json | jq .p # Submit via proposal (who is authority of the simapp for governance) poad tx gov submit-proposal simapp/proposal.json --home=$HOME_DIR --from=acc1 --yes -poad tx gov submit-proposal simapp/proposal-params.json --home=$HOME_DIR --from=acc1 --yes poad tx gov vote 1 yes --home=$HOME_DIR --from=acc1 --yes - -poad q poa params -poad tx poa update-params cosmos1hj5fveer5cjtn4wd6wstzugjfdxzl0xpxvjjvr --home=$HOME_DIR --from=acc1 --yes '