From ac65d9b28f28e4f071930dedca37d9b2f30315d1 Mon Sep 17 00:00:00 2001 From: J M Rossy Date: Fri, 8 Mar 2024 19:16:47 -0500 Subject: [PATCH] Fix build errors --- src/app/delegate/page.tsx | 2 +- src/config/proposals.json | 237 ++++++++++++----------- src/features/delegation/useDelegatees.ts | 1 + 3 files changed, 126 insertions(+), 114 deletions(-) diff --git a/src/app/delegate/page.tsx b/src/app/delegate/page.tsx index d751ea0..a7df64b 100644 --- a/src/app/delegate/page.tsx +++ b/src/app/delegate/page.tsx @@ -36,7 +36,7 @@ function DelegateeTableSection() { ); } -export function RegisterCtaCard() { +function RegisterCtaCard() { return (
diff --git a/src/config/proposals.json b/src/config/proposals.json index ba0f482..db48272 100644 --- a/src/config/proposals.json +++ b/src/config/proposals.json @@ -9,7 +9,7 @@ "timestamp": 1587945600000, "timestampExecuted": 1588377600000, "votes": { - "yes": "47289167708371578826000184", + "yes": "47269167708371578826000184", "no": "0", "abstain": "0" } @@ -24,7 +24,7 @@ "timestamp": 1589241600000, "timestampExecuted": 1589760000000, "votes": { - "yes": "47289167708371578826000184", + "yes": "47269167708371578826000184", "no": "0", "abstain": "0" } @@ -39,7 +39,7 @@ "timestamp": 1589241600000, "timestampExecuted": 1589846400000, "votes": { - "yes": "47319167708371578826000184", + "yes": "47289167708371578826000184", "no": "0", "abstain": "0" } @@ -54,9 +54,9 @@ "timestamp": 1591228800000, "timestampExecuted": 1591747200000, "votes": { - "yes": "40858591270595015390033927", - "no": "1198856108223741491911052", - "abstain": "237903145716562339407887" + "yes": "40798431067491882546900421", + "no": "1180114487318868621657700", + "abstain": "207823044164995917841134" } }, { @@ -83,7 +83,7 @@ "timestamp": 1591833600000, "timestampExecuted": 1592179200000, "votes": { - "yes": "80229930830851598702838210", + "yes": "80060067096823183870206334", "no": "0", "abstain": "0" } @@ -98,7 +98,7 @@ "timestamp": 1592956800000, "timestampExecuted": 1593388800000, "votes": { - "yes": "54508650095916107454843606", + "yes": "54498587627928053362379838", "no": "100287589138478055314", "abstain": "0" } @@ -113,7 +113,7 @@ "timestamp": 1594598400000, "timestampExecuted": 1595030400000, "votes": { - "yes": "90719933576498978928565318", + "yes": "75720173192940534191885033", "no": "0", "abstain": "0" } @@ -128,7 +128,7 @@ "timestamp": 1594684800000, "timestampExecuted": 1595116800000, "votes": { - "yes": "81190456086893677574820165", + "yes": "81129923143440074525361270", "no": "0", "abstain": "50568109559179342231748" } @@ -171,9 +171,9 @@ "timestamp": 1602633600000, "timestampExecuted": 1603152000000, "votes": { - "yes": "85991911982042656872846949", + "yes": "84998274338414390498723885", "no": "10021535285303751245082", - "abstain": "10021535098855609127113" + "abstain": "0" } }, { @@ -186,9 +186,9 @@ "timestamp": 1602806400000, "timestampExecuted": 1604966400000, "votes": { - "yes": "76980501848951418784024799", + "yes": "76912041967793436515277287", "no": "0", - "abstain": "24908234000000000" + "abstain": "0" } }, { @@ -216,7 +216,7 @@ "timestamp": 1605225600000, "timestampExecuted": 1609891200000, "votes": { - "yes": "103007040368424061493111944", + "yes": "103007036099608974790850579", "no": "0", "abstain": "0" } @@ -231,7 +231,7 @@ "timestamp": 1606780800000, "timestampExecuted": 1609891200000, "votes": { - "yes": "126705116447774711062654199", + "yes": "126507521007697108271914452", "no": "0", "abstain": "0" } @@ -261,7 +261,7 @@ "timestamp": 1606953600000, "timestampExecuted": 1609977600000, "votes": { - "yes": "69746820041429462473005332", + "yes": "69743253629092775034035913", "no": "0", "abstain": "0" } @@ -276,9 +276,9 @@ "timestamp": 1609804800000, "timestampExecuted": 1613088000000, "votes": { - "yes": "61100133162596152514560627", + "yes": "61088429998090062536220067", "no": "0", - "abstain": "100130035103841460866" + "abstain": "0" } }, { @@ -291,9 +291,9 @@ "timestamp": 1611705600000, "timestampExecuted": 1616803200000, "votes": { - "yes": "58932615136762473635972927", - "no": "20000000000000000", - "abstain": "135937233167593181417065" + "yes": "58858301719481425594241600", + "no": "0", + "abstain": "135937213167593181417065" } }, { @@ -321,7 +321,7 @@ "timestamp": 1614556800000, "timestampExecuted": 1616716800000, "votes": { - "yes": "70408180936987574853647403", + "yes": "70300012545688464098690442", "no": "0", "abstain": "209390424080555902329" } @@ -336,7 +336,7 @@ "timestamp": 1614124800000, "timestampExecuted": 1616716800000, "votes": { - "yes": "82545520417599936697739846", + "yes": "82450248306837298224458625", "no": "0", "abstain": "3300000000000000000" } @@ -352,9 +352,9 @@ "timestamp": 1615420800000, "timestampExecuted": 1619136000000, "votes": { - "yes": "87228537778532875757142096", - "no": "6020027004929277061", - "abstain": "126350374650837467775" + "yes": "72728333352949908955049430", + "no": "0", + "abstain": "126330347645908190714" } }, { @@ -367,7 +367,7 @@ "timestamp": 1614556800000, "timestampExecuted": 1616716800000, "votes": { - "yes": "81822013745355861283132596", + "yes": "81683908188869530914665961", "no": "0", "abstain": "0" } @@ -390,7 +390,7 @@ "timestamp": 1614556800000, "timestampExecuted": 1616803200000, "votes": { - "yes": "64705112991612988028906023", + "yes": "64609841044036279890131987", "no": "0", "abstain": "83555805795126038880305" } @@ -405,7 +405,7 @@ "timestamp": 1619395200000, "timestampExecuted": 1621555200000, "votes": { - "yes": "45644822504505393249173739", + "yes": "45633414758271036189687489", "no": "10553792753199462843062", "abstain": "545546399933816990245" } @@ -420,7 +420,7 @@ "timestamp": 1619395200000, "timestampExecuted": 1626393600000, "votes": { - "yes": "45374014432565095682462430", + "yes": "45363374048641058396195998", "no": "0", "abstain": "88113300123093505779" } @@ -435,9 +435,9 @@ "timestamp": 1623628800000, "timestampExecuted": 1627171200000, "votes": { - "yes": "67061476420567681389049238", - "no": "183508206589956582243901", - "abstain": "442903372629947822497" + "yes": "66683629708768636071803141", + "no": "182213952849912195242328", + "abstain": "262037326073332989533" } }, { @@ -449,7 +449,7 @@ "id": 41, "timestamp": 1592179200000, "votes": { - "yes": "71038254215763215191052000", + "yes": "70967299928443625209593775", "no": "0", "abstain": "0" } @@ -464,7 +464,7 @@ "timestamp": 1622505600000, "timestampExecuted": 1626393600000, "votes": { - "yes": "51334143483738610869169468", + "yes": "51270912112806344153712281", "no": "2854552519952610967", "abstain": "57299747538580964745" } @@ -478,7 +478,7 @@ "id": 34, "timestamp": 1624924800000, "votes": { - "yes": "66384813054646547312239796", + "yes": "66384801162069247496893620", "no": "0", "abstain": "0" } @@ -492,7 +492,7 @@ "id": 35, "timestamp": 1625097600000, "votes": { - "yes": "61036105031264311179240146", + "yes": "61036087638687011363893970", "no": "0", "abstain": "7087934212776212659354" } @@ -523,7 +523,7 @@ "url": "https://forum.celo.org/t/core-contracts-release-5/1263", "timestamp": 1628726400000, "votes": { - "yes": "56188124009732425442058816", + "yes": "56110410870524061731486676", "no": "0", "abstain": "0" } @@ -538,9 +538,9 @@ "url": "https://forum.celo.org/t/the-celo-ecosystem-treasury/1313", "timestamp": 1630281600000, "votes": { - "yes": "42592985269679990863163016", + "yes": "42587102469962151313157684", "no": "55384138154729899797349", - "abstain": "309105220446328370382030" + "abstain": "308915220446328370382032" } }, { @@ -552,7 +552,7 @@ "id": 39, "timestamp": 1630886400000, "votes": { - "yes": "75907998046078704661341147", + "yes": "75500934829653925858381678", "no": "0", "abstain": "0" } @@ -567,9 +567,9 @@ "url": "https://forum.celo.org/t/discussions-for-cgp-40-proposal-to-reduce-exchange-spreads/1619", "timestamp": 1632960000000, "votes": { - "yes": "38996484540719997808222501", + "yes": "38332821337600824796317378", "no": "52153069002022884513", - "abstain": "10539736549181377133841" + "abstain": "10511536549181377133841" } }, { @@ -582,7 +582,7 @@ "url": "https://forum.celo.org/t/cbrl-stable-asset/1281", "timestamp": 1633737600000, "votes": { - "yes": "57307399260060336337130334", + "yes": "57263292140431187354710326", "no": "0", "abstain": "146040746568147364431762" } @@ -606,9 +606,9 @@ "url": "https://forum.celo.org/t/economic-parameters-bucket-sizes-and-reserve-allocation-cgp-40-cgp-43/1997", "timestamp": 1635379200000, "votes": { - "yes": "57317176276611156318884906", + "yes": "57221052290761445296211634", "no": "276379329980356359107", - "abstain": "75863544218740711044592" + "abstain": "75855429510460100287215" } }, { @@ -621,7 +621,7 @@ "url": "https://forum.celo.org/t/cbrl-stable-asset/1281", "timestamp": null, "votes": { - "yes": "50732694805358378317814537", + "yes": "50710033423514639286959022", "no": "0", "abstain": "145901405568291985651533" } @@ -636,7 +636,7 @@ "url": "https://forum.celo.org/t/cbrl-stable-asset/1281", "timestamp": 1635724800000, "votes": { - "yes": "50903722839650194855155581", + "yes": "50903720233223991859224157", "no": "544360904616382680995", "abstain": "145976023638923066199205" } @@ -660,7 +660,7 @@ "url": "https://forum.celo.org/t/discussion-for-cgp-48-reserve-gift-policy/2771", "timestamp": 1643673600000, "votes": { - "yes": "59056648909421891429081801", + "yes": "58988778382908240253240786", "no": "0", "abstain": "75548715583139773115010" } @@ -684,7 +684,7 @@ "url": "https://forum.celo.org/t/core-contracts-release-6/2936", "timestamp": 1644796800000, "votes": { - "yes": "59734685717221736210631025", + "yes": "59715585717221736210631025", "no": "0", "abstain": "359526753344999981048" } @@ -699,9 +699,9 @@ "url": "https://forum.celo.org/t/economic-parameters-bucket-sizes-and-reserve-allocation-cgp-40-cgp-43/1997", "timestamp": 1646611200000, "votes": { - "yes": "57317176276611156318884906", + "yes": "57221052290761445296211634", "no": "276379329980356359107", - "abstain": "75863544218740711044592" + "abstain": "75855429510460100287215" } }, { @@ -714,7 +714,7 @@ "url": "https://forum.celo.org/t/the-climate-collective-treasury/3157 / https://forum.celo.org/t/the-climate-collective-treasury-v2/3388", "timestamp": 1647907200000, "votes": { - "yes": "31558965122744303487245608", + "yes": "30935284987366547563656181", "no": "725682802512600759393", "abstain": "75746403979022166944992" } @@ -730,8 +730,8 @@ "timestamp": 1648944000000, "timestampExecuted": 1655337600000, "votes": { - "yes": "56120992039869308562951706", - "no": "32863333858890917933721", + "yes": "55987290592209324784163930", + "no": "0", "abstain": "2806110189097605318077" } }, @@ -743,7 +743,7 @@ "stage": 6, "id": 61, "votes": { - "yes": "51875217960255207280384739", + "yes": "51307645401546757244913913", "no": "725682802512600759393", "abstain": "3446233190230796658307" } @@ -758,7 +758,7 @@ "url": "https://forum.celo.org/t/core-contracts-release-7/3778", "timestamp": 1654646400000, "votes": { - "yes": "28149862222989766747291592", + "yes": "27985292778305984201838830", "no": "0", "abstain": "0" } @@ -773,9 +773,9 @@ "url": "https://forum.celo.org/t/reserve-mandate-1-1-stable-value-asset-basket/3663", "timestamp": 1655164800000, "votes": { - "yes": "35281248046079367039995069", + "yes": "35190262901086989771179107", "no": "0", - "abstain": "806683713447281588778" + "abstain": "725682802512600759393" } }, { @@ -789,9 +789,9 @@ "timestamp": 1655164800000, "timestampExecuted": 1662868800000, "votes": { - "yes": "31492865679213418274488087", + "yes": "31429986697155303205733085", "no": "0", - "abstain": "136327817625545237962367" + "abstain": "91295397096074802834234" } }, { @@ -804,7 +804,7 @@ "url": "https://forum.celo.org/t/discussion-ggp-58-increase-creal-bucket-size/3867", "timestamp": 1655856000000, "votes": { - "yes": "41396136105681444510135370", + "yes": "41350049451807327809226044", "no": "7334113863168256727575", "abstain": "88266616630991218106" } @@ -842,7 +842,7 @@ "url": "https://forum.celo.org/t/core-contracts-release-8/4050", "timestamp": 1659657600000, "votes": { - "yes": "38176639347993396302861520", + "yes": "38153769973467104619361438", "no": "0", "abstain": "276577887888032165393" } @@ -875,7 +875,7 @@ "url": "https://forum.celo.org/t/discussion-cgp-61-on-chain-68-governance-owned-cusd-usdc-liquidity/4036/16", "timestamp": 1669248000000, "votes": { - "yes": "1389435195287482919553401", + "yes": "1343856663748733480738249", "no": "6249479338999907781857", "abstain": "0" } @@ -890,7 +890,7 @@ "url": "https://forum.celo.org/t/upcoming-cgp-increase-target-level-of-stable-holdings-in-the-reserve/3380", "timestamp": 1652400000000, "votes": { - "yes": "43931950463631604752329099", + "yes": "43863575117002617919188820", "no": "62566510522318008418598", "abstain": "5324883450962081614345" } @@ -905,7 +905,7 @@ "url": "https://forum.celo.org/t/decentralized-oracles/3610", "timestamp": 1670198400000, "votes": { - "yes": "37077121793899840859813653", + "yes": "37031421262361091420998501", "no": "0", "abstain": "67803267041424221467206" } @@ -935,7 +935,7 @@ "url": "https://forum.celo.org/t/discussion-cgp-61-on-chain-68-governance-owned-cusd-usdc-liquidity/4036/20", "timestamp": 1669248000000, "votes": { - "yes": "30364431154224877713453045", + "yes": "30313500331772080555707670", "no": "0", "abstain": "90000000000000000000" } @@ -992,7 +992,7 @@ "url": "https://forum.celo.org/t/proposal-mu01-phase1-multicollateral-mento/5245", "timestamp": 1679443200000, "votes": { - "yes": "64238536035492422911495000", + "yes": "64099740639316921291985641", "no": "0", "abstain": "0" } @@ -1027,7 +1027,7 @@ "timestamp": 1681344000000, "timestampExecuted": 1680307200000, "votes": { - "yes": "42911574448473561084525389", + "yes": "42906384448473561084001101", "no": "0", "abstain": "0" } @@ -1043,9 +1043,9 @@ "timestamp": 1681171200000, "timestampExecuted": 1684108800000, "votes": { - "yes": "25769330577850033440378795", + "yes": "25711431965295393119447668", "no": "0", - "abstain": "23130899399737195538414" + "abstain": "0" } }, { @@ -1058,7 +1058,7 @@ "url": "https://forum.celo.org/t/mento-reserve-returning-celo/5236/36", "timestamp": 1682035200000, "votes": { - "yes": "33576686084724765590730045", + "yes": "33569686084724765590730045", "no": "0", "abstain": "0" } @@ -1073,7 +1073,7 @@ "url": "https://forum.celo.org/t/climate-collective-1-year-anniversary-heres-to-many-more/5585", "timestamp": 1682380800000, "votes": { - "yes": "61374659968601299620987287", + "yes": "61319197551208724589415984", "no": "0", "abstain": "0" } @@ -1118,9 +1118,9 @@ "url": "https://forum.celo.org/t/credit-collective-hello-world/5789", "timestamp": 1688688000000, "votes": { - "yes": "31170330246893457925717004", - "no": "58397418126354249203737", - "abstain": "75982107790616601575060" + "yes": "31085353663787484060504514", + "no": "47170090444806460195294", + "abstain": "45739145467092901031881" } }, { @@ -1142,8 +1142,8 @@ "url": "https://forum.celo.org/t/mento-upgrade-1-deployment-timeline/5219/11", "timestamp": 1689206400000, "votes": { - "yes": "42806122841092480519859941", - "no": "91822868944893116849246", + "yes": "42676912676478021040157750", + "no": "68491158078010068880211", "abstain": "0" } }, @@ -1156,8 +1156,8 @@ "id": 116, "url": "https://forum.celo.org/t/clabs-proposal-for-celo-to-transition-to-an-ethereum-l2/6109", "votes": { - "yes": "60383539243646574420448561", - "no": "1262630393046422252257", + "yes": "56379426830837975461273849", + "no": "631815196523211126128", "abstain": "1208349168052521966511" } }, @@ -1171,8 +1171,8 @@ "url": "https://forum.celo.org/t/celo-asia-dao-proposal/5957/14", "timestamp": 1690070400000, "votes": { - "yes": "39333722624784411049483741", - "no": "229132234878706704693360", + "yes": "39326915841257352258395359", + "no": "199724868923396539851168", "abstain": "326446225974738950174491" } }, @@ -1194,7 +1194,7 @@ "id": 121, "timestamp": 1690934400000, "votes": { - "yes": "30466599927132305392091056", + "yes": "30465515654372272025827980", "no": "0", "abstain": "34454406776205459854542" } @@ -1209,7 +1209,7 @@ "url": "https://forum.celo.org/t/proposal-web3-x-sdg-event-proposal-for-road-to-cop28/6225", "timestamp": 1691539200000, "votes": { - "yes": "5944330373237990299768281", + "yes": "5868677592519829030112781", "no": "3981177506285977333215913", "abstain": "12928081448219028458643353" } @@ -1225,8 +1225,8 @@ "timestamp": 1691452800000, "votes": { "yes": "7269953581442468028056097", - "no": "3840726115876468321552528", - "abstain": "7665877589545812248908930" + "no": "2031955343939578305866879", + "abstain": "7089181822045726440880013" } }, { @@ -1249,9 +1249,9 @@ "url": "https://forum.celo.org/t/dunia-launching-exof-on-celo/6261", "timestamp": 1692230400000, "votes": { - "yes": "42025709584966988666168677", + "yes": "42025709584766985646215114", "no": "0", - "abstain": "33125451360312527629139" + "abstain": "0" } }, { @@ -1264,8 +1264,8 @@ "url": "https://forum.celo.org/t/centrifuge-deployment-on-celo/6405", "timestamp": 1692662400000, "votes": { - "yes": "28806592739401409708223329", - "no": "84902945445862578277514", + "yes": "28793309039170175595470594", + "no": "70730114863751422033247", "abstain": "5947503845300733363513806" } }, @@ -1289,7 +1289,7 @@ "url": "https://forum.celo.org/t/proposal-mento-upgrade-mu03-enable-more-trading-pairs-and-continue-phasing-out-v1/6462", "timestamp": 1693440000000, "votes": { - "yes": "34242044144783361443061799", + "yes": "34230276888250510846954997", "no": "0", "abstain": "44296211694012768302221" } @@ -1304,9 +1304,9 @@ "url": "https://forum.celo.org/t/dunia-launching-exof-on-celo/6261", "timestamp": 1694476800000, "votes": { - "yes": "22226730528007822709286307", - "no": "4805864259336", - "abstain": "3023700278226710379" + "yes": "22159710438470755103488231", + "no": "2402932129668", + "abstain": "1007900092742236793" } }, { @@ -1319,7 +1319,7 @@ "url": "https://forum.celo.org/t/contracts-release-10-proposal-on-chain/6563", "timestamp": 1694649600000, "votes": { - "yes": "42893716822546468500990731", + "yes": "42859415387690776131628163", "no": "0", "abstain": "0" } @@ -1334,8 +1334,8 @@ "url": "https://forum.celo.org/t/contract-release-10-proposal-on-chain/6563", "timestamp": 1694736000000, "votes": { - "yes": "22096055057658346004988221", - "no": "3295623417791330783571", + "yes": "22062838572949541958208931", + "no": "1098541139263776927857", "abstain": "0" } }, @@ -1426,9 +1426,9 @@ "url": "https://forum.celo.org/t/proposal-mento-upgrade-mu04-phase-out-v1-fully-transition-to-v2-and-update-stabletoken/7034", "timestamp": 1701820800000, "votes": { - "yes": "12272849496369048425168393", + "yes": "12232619413616882032990872", "no": "0", - "abstain": "1786287" + "abstain": "595429" } }, { @@ -1451,9 +1451,9 @@ "url": "https://forum.celo.org/t/strategic-grant-for-accelerating-celo-ecosystem-adoption-across-africa/6969", "timestamp": 1702339200000, "votes": { - "yes": "20715762879734778974914588", - "no": "227474173823319683741441", - "abstain": "6859973988489822588783054" + "yes": "20092872810275359501536560", + "no": "168962630221108878742750", + "abstain": "192622881787119739101389" } }, { @@ -1476,9 +1476,9 @@ "url": "https://forum.celo.org/t/yield-rewards-on-reserve-collateral/6881", "timestamp": 1704758400000, "votes": { - "yes": "11532094275711556482492677", - "no": "11891087631451812135378", - "abstain": "9523955913023456161160300" + "yes": "11373824497322679685390627", + "no": "0", + "abstain": "9523949799537262483874416" } }, { @@ -1491,9 +1491,9 @@ "url": "https://forum.celo.org/t/decentralized-oracles/3610", "timestamp": 1705017600000, "votes": { - "yes": "6871439468949013539132958", + "yes": "6726299202779345091956486", "no": "5656869535319053206506", - "abstain": "44943347570292389380032" + "abstain": "44943347570292389380027" } }, { @@ -1506,9 +1506,9 @@ "url": "https://forum.celo.org/t/draft-celo-governance-guidelines-and-public-goods-funding-strategy-h1-2024/7200", "timestamp": 1707264000000, "votes": { - "yes": "9256657233078009207218239", + "yes": "8897838893054228916470163", "no": "261165375571665767347710", - "abstain": "409897516051612662654361" + "abstain": "409882703529883880165591" } }, { @@ -1521,11 +1521,22 @@ "url": "https://forum.celo.org/t/celo-ecosystem-liquidity-operation-guild-celo-guild-allocate-portion-of-celo-in-the-celo-community-fund-to-solve-liquidity-challenges-faced-by-celo-projects-and-accelerate-the-growth-of-the-celo-ecosystem/7243", "timestamp": 1706745600000, "votes": { - "yes": "1560550082447172971121219", - "no": "1600262924046367878765150", - "abstain": "200496495487691533008725" + "yes": "1465259593739980890539168", + "no": "1591915530485972681158979", + "abstain": "188575726339874855387444" } }, + { + "cgp": 117, + "cgpUrl": "https://raw.githubusercontent.com/celo-org/governance/main/CGPs/cgp-0117.md", + "title": "Celo Core Contracts Release 11", + "author": "Martin Volpe (@martinvol), Pavel Hornak (@pahor167)", + "stage": 1, + "id": 159, + "url": "https://forum.celo.org/t/core-contracts-release-11/", + "timestamp": 1708560000000, + "timestampExecuted": null + }, { "cgp": 119, "cgpUrl": "https://raw.githubusercontent.com/celo-org/governance/main/CGPs/cgp-0119.md", diff --git a/src/features/delegation/useDelegatees.ts b/src/features/delegation/useDelegatees.ts index 888f267..f52d798 100644 --- a/src/features/delegation/useDelegatees.ts +++ b/src/features/delegation/useDelegatees.ts @@ -89,6 +89,7 @@ async function fetchDelegateeStats( delegatees[address] = { ...metadata[i], + address, lockedBalance, votingPower, delegatedBalance,