Skip to main content
Version: v4 (next)

Add a Governance Framework Document

MOD-TR-MSG-2

Post a message that will modify the ledger state by adding an ecosystem governance framework document to a trust registry. This operation is delegable.

This can target an existing governance framework version or create a new version. The target version must be greater than the current active_version.

tip

Only the authority (group account) that controls the trust registry can execute this method. The operator must be authorized by the authority.

Message Parameters

NameDescriptionMandatory
authorityGroup account that controls the trust registryyes
trust-registry-idID of the trust registry for which to add the EGF documentyes
doc-languageLanguage of the added document (BCP 47 tag)yes
doc-urlURL of the EGF in the specified languageyes
doc-digest-sriHash (e.g., SHA-384) with SRI format prefixyes
versionVersion of the EGF this document will be added toyes

Post the Message

Usage

veranad tx tr add-governance-framework-document [authority] [trust-registry-id] [doc-language] [doc-url] [doc-digest-sri] [version] \
--from <operator> --chain-id <chain-id> --keyring-backend test --fees <amount> --gas auto --node $NODE_RPC

Note: The following examples assume you have set TRUST_REG_ID and AUTHORITY_ACC environment variables.

Example #1: Add document for next version

TRUST_REG_ID=5
veranad tx tr add-governance-framework-document $AUTHORITY_ACC ${TRUST_REG_ID} en \
https://example.com/doc2 sha384-MzNNbQTWCSUSi0bbz7dbua+RcENv7C6FvlmYJ1Y+I727HsPOHdzwELMYO9Mz68M26 2 \
--from $USER_ACC --chain-id ${CHAIN_ID} --keyring-backend test --fees 600000uvna --node $NODE_RPC

Example #2: Add document in different language for same version

TRUST_REG_ID=5
veranad tx tr add-governance-framework-document $AUTHORITY_ACC ${TRUST_REG_ID} fr \
https://example.com/doc2-fr sha384-MzNNbQTWCSUSi0bbz7dbua+RcENv7C6FvlmYJ1Y+I727HsPOHdzwELMYO9Mz68M26 2 \
--from $USER_ACC --chain-id ${CHAIN_ID} --keyring-backend test --fees 600000uvna --node $NODE_RPC

Example #3: Add document for version 3

TRUST_REG_ID=5
veranad tx tr add-governance-framework-document $AUTHORITY_ACC ${TRUST_REG_ID} es \
https://example.com/doc3-es sha384-MzNNbQTWCSUSi0bbz7dbua+RcENv7C6FvlmYJ1Y+I727HsPOHdzwELMYO9Mz68M26 3 \
--from $USER_ACC --chain-id ${CHAIN_ID} --keyring-backend test --fees 600000uvna --node $NODE_RPC