giveth-dapps-v2 icon indicating copy to clipboard operation
giveth-dapps-v2 copied to clipboard

Update GIVbacks so donations on polygon zkEVM yield GIVbacks on polygon zkEVM

Open laurenluz opened this issue 1 year ago • 33 comments

laurenluz avatar Jul 17 '24 11:07 laurenluz

Do you mean the documentation @laurenluz ?

WhyldWanderer avatar Jul 22 '24 20:07 WhyldWanderer

noooo, we need to make sure that we are actually giving the GIVbacks on Polygon zkEVM for those donations. When we did this for Optimism, I remember we had to change something in the process or calcualtions to earmark which donations get rewarded on which chain.

This issue is the expansion of that corresponding to our polygon zkevm integration.

laurenluz avatar Jul 24 '24 13:07 laurenluz

Ah okay... I don't think there is much I can do for this issue except testing it after its finished.

This will probably have to be done by @mohammadranjbarz when he returns from vacation.

WhyldWanderer avatar Jul 24 '24 14:07 WhyldWanderer

@laurenluz @WhyldWanderer

Now we distribute Gnosis donations on Gnosis chain and all other donations on `OP**, but we want to distribute ZKEVM donations on the ZKEVM chain like Gnosis am I right?

mohammadranjbarz avatar Aug 18 '24 13:08 mohammadranjbarz

exactly

laurenluz avatar Aug 19 '24 23:08 laurenluz

@HrithikSampson Please work on this task

  1. Clone this repository https://github.com/Giveth/givback-calculation
  2. I will send a .env file in DM for you, you should use it for running locally
  3. You can browse the staging swagger and play a little with APIs https://givback.develop.giveth.io/api-docs
  4. You should modify below endpoints , to add another option like gnosis for the chain or download param
  • https://givback.develop.giveth.io/api-docs/#/default/get_calculate
  • https://givback.develop.giveth.io/api-docs/#/default/get_eligible_donations
  • https://givback.develop.giveth.io/api-docs/#/default/get_not_eligible_donations
  • https://givback.develop.giveth.io/api-docs/#/default/get_calculate_updated
Screenshot 1403-05-30 at 11 23 34 in the morning

mohammadranjbarz avatar Aug 20 '24 07:08 mohammadranjbarz

Hi, I need access to create a branch for creating a pull request.

HrithikSampson avatar Aug 21 '24 18:08 HrithikSampson

Hi, I need access to create a branch for creating a pull request.

@mhmdksh @geleeroyale @Rolazo Can you take care of it?

mohammadranjbarz avatar Aug 22 '24 06:08 mohammadranjbarz

@mohammadranjbarz

Your permissions were elevated to maintainer @HrithikSampson

geleeroyale avatar Aug 22 '24 07:08 geleeroyale

Thanks @geleeroyale

mhmdksh avatar Aug 22 '24 08:08 mhmdksh

Hi @geleeroyale ,

I can't create branches on this repo https://github.com/Giveth/givback-calculation.

I really apologize that I didnt mention the repository to which I needed access to create pull request.

HrithikSampson avatar Aug 22 '24 10:08 HrithikSampson

@HrithikSampson what is the update on this issue?

divine-comedian avatar Sep 20 '24 14:09 divine-comedian

@divine-comedian , this issue is merged. Mohammad merged the pull request, I will ask him once whether the testing is done or it still requires to be done.

HrithikSampson avatar Sep 20 '24 14:09 HrithikSampson

@WhyldWanderer Can you confirm if it's ok or not?

mohammadranjbarz avatar Sep 25 '24 12:09 mohammadranjbarz

Sure! I can take a look @mohammadranjbarz. Its on production now? Which round should this start taking effect?

I had already calculated round 70 and made the forum post but then found that the sponsor donations hadnt been included yet. So now I need to re-calculate and put the new results in the forum post. Do you think it will be weird to change up the distribution method when doing the re-calculation of the round?

WhyldWanderer avatar Sep 26 '24 19:09 WhyldWanderer

@WhyldWanderer , I only know that It is not on production but on staging.

HrithikSampson avatar Sep 27 '24 10:09 HrithikSampson

@HrithikSampson are you sure??

This should have been merged to production along with the GIVeconomy release on zkEVM @mohammadranjbarz

laurenluz avatar Sep 27 '24 11:09 laurenluz

@laurenluz @mohammadranjbarz , I cant find my commit on the master branch. I couldn't find the zkevm option in https://givbacks.giveth.io/api-docs. Should I merge it to production after it is tested

HrithikSampson avatar Sep 27 '24 12:09 HrithikSampson

@laurenluz @mohammadranjbarz , I cant find my commit on the master branch. I couldn't find the zkevm option in https://givbacks.giveth.io/api-docs. Should I merge it to production after it is tested

@laurenluz Yes exactly

mohammadranjbarz avatar Sep 30 '24 11:09 mohammadranjbarz

Maybe we should wait to merge it until the round 70 GIVbacks have been distributed. There was a delay due to qf sponsor donations getting added. I am putting up the new data in the forum post now. Then it should stay for at least 24 hours for any objections before moving to a vote.

I will tag you here once they have been distributed. It should be by Wednesday. Sound good?

WhyldWanderer avatar Sep 30 '24 11:09 WhyldWanderer

@maryjaf @LatifatAbdullahi , this issue is ready to be tested

HrithikSampson avatar Sep 30 '24 11:09 HrithikSampson

https://givback.develop.giveth.io/api-docs/#/default/get_eligible_donations

This address isn't working now @HrithikSampson @mohammadranjbarz

maryjaf avatar Oct 01 '24 19:10 maryjaf

@maryjaf , Can you check again . I think it will work now

HrithikSampson avatar Oct 01 '24 21:10 HrithikSampson

Thanks. @HrithikSampson could you please check this donation https://cardona-zkevm.polygonscan.com/tx/0x3d06b5be32cda3f90020cdc29eaf6a2a2ff3e0e6b0672770a8048740b0d0ca7e

I made this donation and my user isn't in purple list and project is givback eligible, but i havn't seen this donation in response of givback api , the response is empty 0xA1179f64638adb613DDAAc32D918EB6BEB824104 https://staging.giveth.io/project/mejan __ curl: curl -X 'GET'
'https://givback.develop.giveth.io/eligible-donations?chain=zkEVM&startDate=2024%2F10%2F01-00%3A00%3A00&endDate=2024%2F10%2F02-23%3A59%3A59&minEligibleValueUsd=0.00001&givethCommunityProjectSlug=the-giveth-community-of-makers&download=no'
-H 'accept: application/json'

image

maryjaf avatar Oct 02 '24 07:10 maryjaf

Hi @maryjaf , I have filtered it based on the zkevm-mainnet address should I do it for zkevm-cardona

HrithikSampson avatar Oct 02 '24 10:10 HrithikSampson

Hi @maryjaf , I have filtered it based on the zkevm-mainnet address should I do it for zkevm-cardona

@CarlosQ96

maryjaf avatar Oct 02 '24 10:10 maryjaf

Talked with Hrithik, @maryjaf will add the filter. For testing's sake.

CarlosQ96 avatar Oct 02 '24 10:10 CarlosQ96

@maryjaf , the issue is ready to be tested

HrithikSampson avatar Oct 02 '24 12:10 HrithikSampson

For Staging the network is configured to be zkevm cardona and for production it is zkevm mainnet

HrithikSampson avatar Oct 02 '24 14:10 HrithikSampson

Thanks. @HrithikSampson could you please check this donation https://cardona-zkevm.polygonscan.com/tx/0x3d06b5be32cda3f90020cdc29eaf6a2a2ff3e0e6b0672770a8048740b0d0ca7e

I made this donation and my user isn't in purple list and project is givback eligible, but i havn't seen this donation in response of givback api , the response is empty

Thanks @HrithikSampson now it works correctly and I see my zkEVM donation in response of GIVback api

image

maryjaf avatar Oct 02 '24 14:10 maryjaf