Increase Active Governance Framework Version
MOD-GF-MSG-2
Post a message that activates the next Governance Framework version of the target subject — either an Ecosystem (set --ecosystem-id) or the signing Corporation's own CGF (omit --ecosystem-id). It sets the subject's active_version to active_version + 1.
Prerequisites
This is a delegable transaction executed on behalf of a Corporation. Before running it you need:
- A Corporation (
policy_address) — see Create a Corporation. - The policy funded with
uvnafor fees. - An operator granted authorization for
/verana.gf.v1.MsgIncreaseActiveGovernanceFrameworkVersionvia Grant Operator Authorization. - A draft version
active_version + 1that already exists and contains a document in the subject's default language — add the document first.
Sign with --from <operator> and pass the corporation's policy_address as [corporation] and the operator as [operator].
Message Parameters
| Name | Description | Mandatory |
|---|---|---|
corporation | policy_address of the Corporation on whose behalf the message is executed | yes |
operator | Operator account authorized to run this message | yes |
--ecosystem-id | Target Ecosystem ID. Omit to target the signing Corporation's own CGF. | no |
Post the Message
- CLI
- Frontend
Usage
veranad tx gf increase-active-gf-version [corporation] [operator] \
--ecosystem-id <id> \
--from <operator> --chain-id <chain-id> --keyring-backend test --fees <amount> --gas auto --node $NODE_RPC
Example
veranad tx gf increase-active-gf-version $CORPORATION $OPERATOR \
--ecosystem-id 1 \
--from $OPERATOR --chain-id $CHAIN_ID --keyring-backend test --fees 750000uvna --gas auto --node $NODE_RPC
Example response:
code: 0
events:
- type: message
attributes:
- key: action
value: /verana.gf.v1.MsgIncreaseActiveGovernanceFrameworkVersion
- key: module
value: gf
- type: increase_active_gf_version
attributes:
- key: corporation
value: verana1dlszg2sst9r69my4f84l3mj66zxcf3umcgujys30t84srg95dgvs9v9a3a
- key: ecosystem_id
value: "1"
- key: gfv_id
value: "6"
- key: version
value: "2"
gas_used: "72819"
txhash: C59BCD21E030A9105D032792E59265AEEC986D5DA3F72B0BD15208E190B31E62
If no document exists in the default language for the next version, the transaction is rejected:
no GFV for next version 4: no governance framework version available to activate
tip
TODO: describe here