-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/publish on chain results (#543)
* chore: drafting onchain tx w/ tally results * chore: implemented all the wiring for a new command to submit centralised tally results * chore: added mainnet results
- Loading branch information
Showing
9 changed files
with
206 additions
and
11 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
...s/voting-admin-app/src/main/java/org/cardano/foundation/voting/domain/CategoryResult.java
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,18 @@ | ||
package org.cardano.foundation.voting.domain; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Builder | ||
@ToString | ||
public class CategoryResult { | ||
|
||
private String id; | ||
|
||
private List<ProposalResult> proposalResults; | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...dmin-app/src/main/java/org/cardano/foundation/voting/domain/CreateTallyResultCommand.java
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,24 @@ | ||
package org.cardano.foundation.voting.domain; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@Builder | ||
@ToString | ||
public class CreateTallyResultCommand { | ||
|
||
private String id; | ||
|
||
@Builder.Default | ||
private boolean gdprProtection = false; | ||
|
||
@Builder.Default | ||
private boolean showVoteCount = false; | ||
|
||
private List<CategoryResult> categoryResults; | ||
|
||
} |
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
20 changes: 20 additions & 0 deletions
20
...s/voting-admin-app/src/main/java/org/cardano/foundation/voting/domain/ProposalResult.java
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,20 @@ | ||
package org.cardano.foundation.voting.domain; | ||
|
||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.ToString; | ||
|
||
@Getter | ||
@Builder | ||
@ToString | ||
public class ProposalResult { | ||
|
||
private String id; | ||
|
||
private String name; | ||
|
||
private String voteCount; | ||
|
||
private String votingPower; | ||
|
||
} |
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
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
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