Skip to content

Commit

Permalink
Add quantifier information to attestations
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferlund committed Oct 16, 2023
1 parent f944fc4 commit b21fea3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/model/eas/eas.constants.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export const EAS_ADDRESS = '0x4200000000000000000000000000000000000021';

export const ATTESTATION_SCHEMA_UID =
'0x1c622d3fdb24759ed71266b218c4750ad54549a7612451851f3b0432ce167e68';
'0x5f2b0ffc7e874c2624e38aea44a5e68bebe69dbd7e181cdbb8ab657d05b74301';

export const ATTESTATION_SCHEMA =
'string period,string username,uint16 received_score,uint16 given_score,bool top_10_receiver,bool top_50_receiver,bool top_100_receiver,bool top_10_giver,bool top_50_giver,bool top_100_giver';
'string period,string username,bool quantifier,uint16 received_score,uint16 given_score,bool top_10_receiver,bool top_50_receiver,bool top_100_receiver,bool top_10_giver,bool top_50_giver,bool top_100_giver';

export const ATTESTATION_REPORT_MANIFEST_URL =
'https://raw.githubusercontent.com/givepraise/reports/main/reports/attestations/manifest.json';
1 change: 1 addition & 0 deletions packages/frontend/src/model/eas/types/attestation.type.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export type Attestation = {
username: string;
period: string;
quantifier: string;
received_score: string;
given_score: string;
top_10_receiver: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export function CreateAttestationsDialog({
csvObjects.push({
period: periodId,
username: attestation.users_username,
quantifier: attestation.quantifier.toString(),
received_score: attestation.total_received_praise_score.toString(),
given_score: attestation.total_given_praise_score.toString(),
top_10_receiver: attestation.top_10_receiver.toString(),
Expand Down

0 comments on commit b21fea3

Please sign in to comment.