Skip to content

Commit

Permalink
Merge pull request #80 from zer0-os/feat/quorum
Browse files Browse the repository at this point in the history
feat: add quorum to query
  • Loading branch information
Whytecrowe authored Oct 16, 2023
2 parents fbde4d6 + 2063715 commit 6bb30dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/client/DAOClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ class DAOClient implements zDAO {
snapshot: Number(proposal.snapshot),
scores: proposal.scores,
votes: proposal.votes,
quorum: proposal.quorum,
},
{
strategies: this.options.strategies,
Expand Down
1 change: 1 addition & 0 deletions src/snapshot-io/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ class SnapshotClient {
snapshot: Number(response.snapshot),
scores: response.scores,
votes: response.votes,
quorum: response.quorum,
};
return proposal;

Expand Down
1 change: 1 addition & 0 deletions src/snapshot-io/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export interface SnapshotProposal {
snapshot: number; // snapshot block number
scores: number[]; // scores per all the choices
votes: number; // number of voters
quorum?: number;
}

export interface SnapshotProposalResponse {
Expand Down
1 change: 1 addition & 0 deletions src/types/structures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,5 @@ export interface ProposalProperties {
scores: number[]; // scores per all the choices
votes: number; // number of voters
metadata?: TokenMetaData; // token meta data is stored in ipfs
quorum?: number;
}

0 comments on commit 6bb30dc

Please sign in to comment.