File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
docs/src/architecture/08_concepts/catalyst_voting Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,25 @@ Expected witness (includes signature)
128128 ```
129129<!-- markdownlint-enable max-one-sentence-per-line code-block-style -->
130130
131+ ` event_info ` - a set of different identifiers which is uniquely define a particular voting event.
132+
133+ Vote info:
134+
135+ * ` brand_id ` - a unique identifier which represents a "brand" who is running the voting,
136+ e.g. Catalyst, Midnight.
137+ * ` campaign_id ` - a unique identifier which defines a "campaign" of voting,
138+ e.g. "treasury campaign".
139+ * ` event_id ` - a unique identifier which defines an event of voting,
140+ e.g. "Catalyst Fund 1", "Catalyst Fund 2".
141+ * ` category_id ` - a unique identifier which defines a voting category as a collection of proposals,
142+ e.g. "Development & Infrastructure", "Products & Integrations".
143+
144+ Vote:
145+
146+ * ` choice ` - a voter choice.
147+ * ` proof ` - a voter proof, could be ` null ` .
148+ * ` prop_id ` - a proposal id for which ` choice ` is made, could be ` null ` .
149+
131150#### Transaction signing
132151
133152[ COSE] is used to define a transaction's signature structure.
Original file line number Diff line number Diff line change @@ -4,17 +4,18 @@ vote_tx = [
44]
55
66vote_tx_body = [
7- vote_info ,
7+ event_info ,
88 votes,
99 voters_data: encoded_cbor
1010]
1111
12+ event_info = [* UUID]
1213vote_info = {
1314 brand_id: UUID, ; e.g. Midnight, Catalyst etc.
1415 campaign_id: UUID, ; e.g. treasury campaign
1516 event_id: UUID, ; e.g. Fund 1, Fund 2 etc.
1617 category_id: UUID,
17- vote_type: UUID, ; e.g. Public or Private vote
18+ ; vote_type: UUID, ; e.g. Public or Private vote
1819}
1920
2021votes = [+ vote]
You can’t perform that action at this time.
0 commit comments