GeneralMagicio / pairwise-rf4

Pairwise for Optimism RetroPGF4
https://app.pairwise.vote
GNU General Public License v3.0
16 stars 1 forks source link

Weighted-Aggregated-Attestation-API #36

Open MoeNick opened 5 months ago

MoeNick commented 5 months ago

Related to #23 and #24

we should have an aggregated weighted results API which is calculated daily or twice a day. This API is a result of reading all user attestations and weighting them with voting power points and calculating the aggregated results. More information is here: https://www.notion.so/giveth/Weighted-Aggregated-Attestation-APIs-0d7c33180e2744e5943b31f1f53d67d5

Success Criteria

MoeNick commented 5 months ago

@jainkrati I added all notion docs for this issue here. The bad news is we should make it up and working 10th June and end up by 18th.

maryjaf commented 4 months ago

I've tested based on this temp/api https://pairwise.melodicdays.shop/flow/temp/api

I tested with different address and badges and it seems it works correctly and weight of each project in category is calculated correctly

Is this view is fine in point of you for this phase ? @MoeNick https://pairwise.melodicdays.shop/flow/temp/api

MoeNick commented 4 months ago

We should have filtering in API as inputs based on :

We should have project logo we should have ranking as whole without filtering any category.

For success criteria please go to the notion doc attached to teh isssue.

MoeNick commented 4 months ago

Also please lets have staging and production data separated ASAP.

MoeNick commented 4 months ago
  1. We should test on https://rpgf4-be.pairwise.vote/flow/temp/api

  2. Atestations here: https://optimism.easscan.org/schema/view/0x8c12749f56c911dbc13a6a6685b6964c3ea03023f246137e9c53ba97974e4b75

3, The logic is here: https://docs.google.com/spreadsheets/d/1G7Csc9Zp-szcl5xF6wiAyyad3DGiTuYUw1xw_fRHp0Y/edit?gid=321434975#gid=321434975

MoeNick commented 4 months ago

Shall I wait for filtering inputs on API r we can call it done? @mmahdigh @maryjaf

MoeNick commented 3 months ago