Skip to content

Commit 0ce7e32

Browse files
committed
wip
1 parent 06f11ec commit 0ce7e32

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

docs/src/architecture/08_concepts/catalyst_voting/transaction.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

docs/src/architecture/08_concepts/catalyst_voting/tx_v2.cddl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@ vote_tx = [
44
]
55

66
vote_tx_body = [
7-
vote_info,
7+
event_info,
88
votes,
99
voters_data: encoded_cbor
1010
]
1111

12+
event_info = [* UUID]
1213
vote_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

2021
votes = [+ vote]

0 commit comments

Comments
 (0)