-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: adds gov groups metadata spec (#13118)
- Loading branch information
Showing
4 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!-- | ||
order: 8 | ||
--> | ||
|
||
# Metadata | ||
|
||
The gov module has two locations for metadata where users can provide further context about the on-chain actions they are taking. By default all metadata fields have a 255 character length field where metadata can be stored in json format, either on-chain or off-chain depending on the amount of data required. Here we provide a recommendation for the json structure and where the data should be stored. There are two important factors in making these recommendations. First, that the gov and group modules are consistent with one another, note the number of proposals made by all groups may be quite large. Second, that client applications such as block explorers and governance interfaces have confidence in the consistency of metadata structure accross chains. | ||
|
||
## Proposal | ||
Location: off-chain as json object stored on IPFS (mirrors [group proposal](../../group/spec/06_metadata.md#proposal)) | ||
|
||
```json | ||
{ | ||
"title": "", | ||
"authors": "", | ||
"summary": "", | ||
"details": "", | ||
"proposalForumURL": "", | ||
"voteOptionContext": "", | ||
} | ||
``` | ||
|
||
## Vote | ||
Location: on-chain as json within 255 character limit (mirrors [group vote](../../group/spec/06_metadata.md#vote)) | ||
|
||
```json | ||
{ | ||
"justification": "", | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!-- | ||
order: 6 | ||
--> | ||
|
||
# Metadata | ||
|
||
The group module has four locations for metadata where users can provide further context about the on-chain actions they are taking. By default all metadata fields have a 255 character length field where metadata can be stored in json format, either on-chain or off-chain depending on the amount of data required. Here we provide a recommendation for the json structure and where the data should be stored. There are two important factors in making these recommendations. First, that the group and gov modules are consistent with one another, note the number of proposals made by all groups may be quite large. Second, that client applications such as block explorers and governance interfaces have confidence in the consistency of metadata structure accross chains. | ||
|
||
## Proposal | ||
Location: off-chain as json object stored on IPFS (mirrors [gov proposal](../../gov/spec/08_metadata.md#proposal)) | ||
|
||
```json | ||
{ | ||
"title": "", | ||
"authors": "", | ||
"summary": "", | ||
"details": "", | ||
"proposalForumURL": "", | ||
"voteOptionContext": "", | ||
} | ||
``` | ||
|
||
## Vote | ||
Location: on-chain as json within 255 character limit (mirrors [gov vote](../../gov/spec/08_metadata.md#vote)) | ||
|
||
```json | ||
{ | ||
"justification": "", | ||
} | ||
``` | ||
|
||
## Group | ||
Location: off-chain as json object stored on IPFS | ||
|
||
```json | ||
{ | ||
"name": "", | ||
"description": "", | ||
"groupWebsiteURL": "", | ||
"groupForumURL": "", | ||
} | ||
``` | ||
|
||
## Decision policy | ||
Location: on-chain as json within 255 character limit | ||
|
||
```json | ||
{ | ||
"name": "", | ||
"description": "", | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters