governance.adoc 325 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290
  1. :github-icon: pass:[<svg class="icon"><use href="#github-icon"/></svg>]
  2. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  3. :GovernorVotes: pass:normal[xref:governance.adoc#GovernorVotes[`GovernorVotes`]]
  4. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  5. :ERC721Votes: pass:normal[xref:token/ERC721.adoc#ERC721Votes[`ERC721Votes`]]
  6. :GovernorVotesQuorumFraction: pass:normal[xref:governance.adoc#GovernorVotesQuorumFraction[`GovernorVotesQuorumFraction`]]
  7. :GovernorCountingSimple: pass:normal[xref:governance.adoc#GovernorCountingSimple[`GovernorCountingSimple`]]
  8. :GovernorTimelockControl: pass:normal[xref:governance.adoc#GovernorTimelockControl[`GovernorTimelockControl`]]
  9. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  10. :GovernorTimelockCompound: pass:normal[xref:governance.adoc#GovernorTimelockCompound[`GovernorTimelockCompound`]]
  11. :GovernorStorage: pass:normal[xref:governance.adoc#GovernorStorage[`GovernorStorage`]]
  12. :GovernorSettings: pass:normal[xref:governance.adoc#GovernorSettings[`GovernorSettings`]]
  13. :GovernorPreventLateQuorum: pass:normal[xref:governance.adoc#GovernorPreventLateQuorum[`GovernorPreventLateQuorum`]]
  14. :Governor-_cancel: pass:normal[xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-[`Governor._cancel`]]
  15. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  16. :xref-IGovernor-name--: xref:governance.adoc#IGovernor-name--
  17. :xref-IGovernor-version--: xref:governance.adoc#IGovernor-version--
  18. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  19. :xref-IGovernor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#IGovernor-hashProposal-address---uint256---bytes---bytes32-
  20. :xref-IGovernor-state-uint256-: xref:governance.adoc#IGovernor-state-uint256-
  21. :xref-IGovernor-proposalThreshold--: xref:governance.adoc#IGovernor-proposalThreshold--
  22. :xref-IGovernor-proposalSnapshot-uint256-: xref:governance.adoc#IGovernor-proposalSnapshot-uint256-
  23. :xref-IGovernor-proposalDeadline-uint256-: xref:governance.adoc#IGovernor-proposalDeadline-uint256-
  24. :xref-IGovernor-proposalProposer-uint256-: xref:governance.adoc#IGovernor-proposalProposer-uint256-
  25. :xref-IGovernor-proposalEta-uint256-: xref:governance.adoc#IGovernor-proposalEta-uint256-
  26. :xref-IGovernor-proposalNeedsQueuing-uint256-: xref:governance.adoc#IGovernor-proposalNeedsQueuing-uint256-
  27. :xref-IGovernor-votingDelay--: xref:governance.adoc#IGovernor-votingDelay--
  28. :xref-IGovernor-votingPeriod--: xref:governance.adoc#IGovernor-votingPeriod--
  29. :xref-IGovernor-quorum-uint256-: xref:governance.adoc#IGovernor-quorum-uint256-
  30. :xref-IGovernor-getVotes-address-uint256-: xref:governance.adoc#IGovernor-getVotes-address-uint256-
  31. :xref-IGovernor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#IGovernor-getVotesWithParams-address-uint256-bytes-
  32. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  33. :xref-IGovernor-propose-address---uint256---bytes---string-: xref:governance.adoc#IGovernor-propose-address---uint256---bytes---string-
  34. :xref-IGovernor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#IGovernor-queue-address---uint256---bytes---bytes32-
  35. :xref-IGovernor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#IGovernor-execute-address---uint256---bytes---bytes32-
  36. :xref-IGovernor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#IGovernor-cancel-address---uint256---bytes---bytes32-
  37. :xref-IGovernor-castVote-uint256-uint8-: xref:governance.adoc#IGovernor-castVote-uint256-uint8-
  38. :xref-IGovernor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#IGovernor-castVoteWithReason-uint256-uint8-string-
  39. :xref-IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  40. :xref-IGovernor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#IGovernor-castVoteBySig-uint256-uint8-address-bytes-
  41. :xref-IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  42. :xref-IERC6372-clock--: xref:interfaces.adoc#IERC6372-clock--
  43. :xref-IERC6372-CLOCK_MODE--: xref:interfaces.adoc#IERC6372-CLOCK_MODE--
  44. :xref-IERC165-supportsInterface-bytes4-: xref:utils.adoc#IERC165-supportsInterface-bytes4-
  45. :xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-: xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-
  46. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  47. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  48. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  49. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  50. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  51. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  52. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  53. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  54. :xref-IGovernor-GovernorOnlyProposer-address-: xref:governance.adoc#IGovernor-GovernorOnlyProposer-address-
  55. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  56. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  57. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  58. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  59. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  60. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  61. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  62. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  63. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  64. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  65. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  66. :IERC6372-clock: pass:normal[xref:interfaces.adoc#IERC6372-clock--[`IERC6372.clock`]]
  67. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  68. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  69. :IGovernor-votingDelay: pass:normal[xref:governance.adoc#IGovernor-votingDelay--[`IGovernor.votingDelay`]]
  70. :IGovernor-votingPeriod: pass:normal[xref:governance.adoc#IGovernor-votingPeriod--[`IGovernor.votingPeriod`]]
  71. :Governor-_encodeStateBitmap: pass:normal[xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-[`Governor._encodeStateBitmap`]]
  72. :IERC1271-isValidSignature: pass:normal[xref:interfaces.adoc#IERC1271-isValidSignature-bytes32-bytes-[`IERC1271.isValidSignature`]]
  73. :xref-Governor-onlyGovernance--: xref:governance.adoc#Governor-onlyGovernance--
  74. :xref-Governor-constructor-string-: xref:governance.adoc#Governor-constructor-string-
  75. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  76. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  77. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  78. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  79. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  80. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  81. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  82. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  83. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  84. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  85. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  86. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  87. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  88. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  89. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  90. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  91. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  92. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  93. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  94. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  95. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  96. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  97. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  98. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  99. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  100. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  101. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  102. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  103. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  104. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  105. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  106. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  107. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  108. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  109. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  110. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  111. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  112. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  113. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  114. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  115. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  116. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  117. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  118. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  119. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  120. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  121. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  122. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  123. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  124. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  125. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  126. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  127. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  128. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  129. :xref-EIP712-_domainSeparatorV4--: xref:utils.adoc#EIP712-_domainSeparatorV4--
  130. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils.adoc#EIP712-_hashTypedDataV4-bytes32-
  131. :xref-EIP712-eip712Domain--: xref:utils.adoc#EIP712-eip712Domain--
  132. :xref-EIP712-_EIP712Name--: xref:utils.adoc#EIP712-_EIP712Name--
  133. :xref-EIP712-_EIP712Version--: xref:utils.adoc#EIP712-_EIP712Version--
  134. :xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-: xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-
  135. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  136. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  137. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  138. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  139. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  140. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  141. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  142. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  143. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  144. :xref-IGovernor-GovernorOnlyProposer-address-: xref:governance.adoc#IGovernor-GovernorOnlyProposer-address-
  145. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  146. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  147. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  148. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  149. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  150. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  151. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  152. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  153. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  154. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  155. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  156. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  157. :GovernorSettings: pass:normal[xref:governance.adoc#GovernorSettings[`GovernorSettings`]]
  158. :IERC165-supportsInterface: pass:normal[xref:utils.adoc#IERC165-supportsInterface-bytes4-[`IERC165.supportsInterface`]]
  159. :IGovernor-name: pass:normal[xref:governance.adoc#IGovernor-name--[`IGovernor.name`]]
  160. :IGovernor-version: pass:normal[xref:governance.adoc#IGovernor-version--[`IGovernor.version`]]
  161. :IGovernor-hashProposal: pass:normal[xref:governance.adoc#IGovernor-hashProposal-address---uint256---bytes---bytes32-[`IGovernor.hashProposal`]]
  162. :IGovernor-state: pass:normal[xref:governance.adoc#IGovernor-state-uint256-[`IGovernor.state`]]
  163. :IGovernor-proposalThreshold: pass:normal[xref:governance.adoc#IGovernor-proposalThreshold--[`IGovernor.proposalThreshold`]]
  164. :IGovernor-proposalSnapshot: pass:normal[xref:governance.adoc#IGovernor-proposalSnapshot-uint256-[`IGovernor.proposalSnapshot`]]
  165. :IGovernor-proposalDeadline: pass:normal[xref:governance.adoc#IGovernor-proposalDeadline-uint256-[`IGovernor.proposalDeadline`]]
  166. :IGovernor-proposalProposer: pass:normal[xref:governance.adoc#IGovernor-proposalProposer-uint256-[`IGovernor.proposalProposer`]]
  167. :IGovernor-proposalEta: pass:normal[xref:governance.adoc#IGovernor-proposalEta-uint256-[`IGovernor.proposalEta`]]
  168. :IGovernor-proposalNeedsQueuing: pass:normal[xref:governance.adoc#IGovernor-proposalNeedsQueuing-uint256-[`IGovernor.proposalNeedsQueuing`]]
  169. :IGovernor-propose: pass:normal[xref:governance.adoc#IGovernor-propose-address---uint256---bytes---string-[`IGovernor.propose`]]
  170. :IGovernor-ProposalCreated: pass:normal[xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-[`IGovernor.ProposalCreated`]]
  171. :IGovernor-queue: pass:normal[xref:governance.adoc#IGovernor-queue-address---uint256---bytes---bytes32-[`IGovernor.queue`]]
  172. :IGovernor-execute: pass:normal[xref:governance.adoc#IGovernor-execute-address---uint256---bytes---bytes32-[`IGovernor.execute`]]
  173. :IGovernor-cancel: pass:normal[xref:governance.adoc#IGovernor-cancel-address---uint256---bytes---bytes32-[`IGovernor.cancel`]]
  174. :IGovernor-ProposalCanceled: pass:normal[xref:governance.adoc#IGovernor-ProposalCanceled-uint256-[`IGovernor.ProposalCanceled`]]
  175. :IGovernor-getVotes: pass:normal[xref:governance.adoc#IGovernor-getVotes-address-uint256-[`IGovernor.getVotes`]]
  176. :IGovernor-getVotesWithParams: pass:normal[xref:governance.adoc#IGovernor-getVotesWithParams-address-uint256-bytes-[`IGovernor.getVotesWithParams`]]
  177. :IGovernor-castVote: pass:normal[xref:governance.adoc#IGovernor-castVote-uint256-uint8-[`IGovernor.castVote`]]
  178. :IGovernor-castVoteWithReason: pass:normal[xref:governance.adoc#IGovernor-castVoteWithReason-uint256-uint8-string-[`IGovernor.castVoteWithReason`]]
  179. :IGovernor-castVoteWithReasonAndParams: pass:normal[xref:governance.adoc#IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-[`IGovernor.castVoteWithReasonAndParams`]]
  180. :IGovernor-castVoteBySig: pass:normal[xref:governance.adoc#IGovernor-castVoteBySig-uint256-uint8-address-bytes-[`IGovernor.castVoteBySig`]]
  181. :IGovernor-castVoteWithReasonAndParamsBySig: pass:normal[xref:governance.adoc#IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-[`IGovernor.castVoteWithReasonAndParamsBySig`]]
  182. :IGovernor-getVotes: pass:normal[xref:governance.adoc#IGovernor-getVotes-address-uint256-[`IGovernor.getVotes`]]
  183. :IGovernor-VoteCast: pass:normal[xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-[`IGovernor.VoteCast`]]
  184. :IGovernor-getVotes: pass:normal[xref:governance.adoc#IGovernor-getVotes-address-uint256-[`IGovernor.getVotes`]]
  185. :IGovernor-VoteCast: pass:normal[xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-[`IGovernor.VoteCast`]]
  186. :IERC721Receiver-onERC721Received: pass:normal[xref:token/ERC721.adoc#IERC721Receiver-onERC721Received-address-address-uint256-bytes-[`IERC721Receiver.onERC721Received`]]
  187. :IERC1155Receiver-onERC1155Received: pass:normal[xref:token/ERC1155.adoc#IERC1155Receiver-onERC1155Received-address-address-uint256-uint256-bytes-[`IERC1155Receiver.onERC1155Received`]]
  188. :IERC1155Receiver-onERC1155BatchReceived: pass:normal[xref:token/ERC1155.adoc#IERC1155Receiver-onERC1155BatchReceived-address-address-uint256---uint256---bytes-[`IERC1155Receiver.onERC1155BatchReceived`]]
  189. :IERC6372-clock: pass:normal[xref:interfaces.adoc#IERC6372-clock--[`IERC6372.clock`]]
  190. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  191. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  192. :xref-GovernorCountingSimple-COUNTING_MODE--: xref:governance.adoc#GovernorCountingSimple-COUNTING_MODE--
  193. :xref-GovernorCountingSimple-hasVoted-uint256-address-: xref:governance.adoc#GovernorCountingSimple-hasVoted-uint256-address-
  194. :xref-GovernorCountingSimple-proposalVotes-uint256-: xref:governance.adoc#GovernorCountingSimple-proposalVotes-uint256-
  195. :xref-GovernorCountingSimple-_quorumReached-uint256-: xref:governance.adoc#GovernorCountingSimple-_quorumReached-uint256-
  196. :xref-GovernorCountingSimple-_voteSucceeded-uint256-: xref:governance.adoc#GovernorCountingSimple-_voteSucceeded-uint256-
  197. :xref-GovernorCountingSimple-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#GovernorCountingSimple-_countVote-uint256-address-uint8-uint256-bytes-
  198. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  199. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  200. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  201. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  202. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  203. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  204. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  205. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  206. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  207. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  208. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  209. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  210. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  211. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  212. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  213. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  214. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  215. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  216. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  217. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  218. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  219. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  220. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  221. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  222. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  223. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  224. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  225. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  226. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  227. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  228. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  229. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  230. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  231. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  232. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  233. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  234. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  235. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  236. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  237. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  238. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  239. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  240. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  241. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  242. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  243. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  244. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  245. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  246. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  247. :xref-EIP712-_domainSeparatorV4--: xref:utils.adoc#EIP712-_domainSeparatorV4--
  248. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils.adoc#EIP712-_hashTypedDataV4-bytes32-
  249. :xref-EIP712-eip712Domain--: xref:utils.adoc#EIP712-eip712Domain--
  250. :xref-EIP712-_EIP712Name--: xref:utils.adoc#EIP712-_EIP712Name--
  251. :xref-EIP712-_EIP712Version--: xref:utils.adoc#EIP712-_EIP712Version--
  252. :xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-: xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-
  253. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  254. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  255. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  256. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  257. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  258. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  259. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  260. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  261. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  262. :xref-IGovernor-GovernorOnlyProposer-address-: xref:governance.adoc#IGovernor-GovernorOnlyProposer-address-
  263. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  264. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  265. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  266. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  267. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  268. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  269. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  270. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  271. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  272. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  273. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  274. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  275. :IGovernor-COUNTING_MODE: pass:normal[xref:governance.adoc#IGovernor-COUNTING_MODE--[`IGovernor.COUNTING_MODE`]]
  276. :IGovernor-hasVoted: pass:normal[xref:governance.adoc#IGovernor-hasVoted-uint256-address-[`IGovernor.hasVoted`]]
  277. :Governor-_quorumReached: pass:normal[xref:governance.adoc#Governor-_quorumReached-uint256-[`Governor._quorumReached`]]
  278. :Governor-_voteSucceeded: pass:normal[xref:governance.adoc#Governor-_voteSucceeded-uint256-[`Governor._voteSucceeded`]]
  279. :Governor-_countVote: pass:normal[xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-[`Governor._countVote`]]
  280. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  281. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  282. :ERC721Votes: pass:normal[xref:token/ERC721.adoc#ERC721Votes[`ERC721Votes`]]
  283. :xref-GovernorVotes-constructor-contract-IVotes-: xref:governance.adoc#GovernorVotes-constructor-contract-IVotes-
  284. :xref-GovernorVotes-token--: xref:governance.adoc#GovernorVotes-token--
  285. :xref-GovernorVotes-clock--: xref:governance.adoc#GovernorVotes-clock--
  286. :xref-GovernorVotes-CLOCK_MODE--: xref:governance.adoc#GovernorVotes-CLOCK_MODE--
  287. :xref-GovernorVotes-_getVotes-address-uint256-bytes-: xref:governance.adoc#GovernorVotes-_getVotes-address-uint256-bytes-
  288. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  289. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  290. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  291. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  292. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  293. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  294. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  295. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  296. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  297. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  298. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  299. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  300. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  301. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  302. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  303. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  304. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  305. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  306. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  307. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  308. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  309. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  310. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  311. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  312. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  313. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  314. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  315. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  316. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  317. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  318. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  319. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  320. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  321. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  322. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  323. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  324. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  325. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  326. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  327. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  328. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  329. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  330. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  331. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  332. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  333. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  334. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  335. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  336. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  337. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  338. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  339. :xref-EIP712-_domainSeparatorV4--: xref:utils.adoc#EIP712-_domainSeparatorV4--
  340. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils.adoc#EIP712-_hashTypedDataV4-bytes32-
  341. :xref-EIP712-eip712Domain--: xref:utils.adoc#EIP712-eip712Domain--
  342. :xref-EIP712-_EIP712Name--: xref:utils.adoc#EIP712-_EIP712Name--
  343. :xref-EIP712-_EIP712Version--: xref:utils.adoc#EIP712-_EIP712Version--
  344. :xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-: xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-
  345. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  346. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  347. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  348. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  349. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  350. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  351. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  352. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  353. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  354. :xref-IGovernor-GovernorOnlyProposer-address-: xref:governance.adoc#IGovernor-GovernorOnlyProposer-address-
  355. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  356. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  357. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  358. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  359. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  360. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  361. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  362. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  363. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  364. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  365. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  366. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  367. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  368. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  369. :xref-GovernorVotesQuorumFraction-constructor-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-constructor-uint256-
  370. :xref-GovernorVotesQuorumFraction-quorumNumerator--: xref:governance.adoc#GovernorVotesQuorumFraction-quorumNumerator--
  371. :xref-GovernorVotesQuorumFraction-quorumNumerator-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-quorumNumerator-uint256-
  372. :xref-GovernorVotesQuorumFraction-quorumDenominator--: xref:governance.adoc#GovernorVotesQuorumFraction-quorumDenominator--
  373. :xref-GovernorVotesQuorumFraction-quorum-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-quorum-uint256-
  374. :xref-GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-
  375. :xref-GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-
  376. :xref-GovernorVotes-token--: xref:governance.adoc#GovernorVotes-token--
  377. :xref-GovernorVotes-clock--: xref:governance.adoc#GovernorVotes-clock--
  378. :xref-GovernorVotes-CLOCK_MODE--: xref:governance.adoc#GovernorVotes-CLOCK_MODE--
  379. :xref-GovernorVotes-_getVotes-address-uint256-bytes-: xref:governance.adoc#GovernorVotes-_getVotes-address-uint256-bytes-
  380. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  381. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  382. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  383. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  384. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  385. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  386. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  387. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  388. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  389. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  390. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  391. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  392. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  393. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  394. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  395. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  396. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  397. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  398. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  399. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  400. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  401. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  402. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  403. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  404. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  405. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  406. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  407. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  408. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  409. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  410. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  411. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  412. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  413. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  414. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  415. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  416. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  417. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  418. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  419. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  420. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  421. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  422. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  423. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  424. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  425. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  426. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  427. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  428. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  429. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  430. :xref-EIP712-_domainSeparatorV4--: xref:utils.adoc#EIP712-_domainSeparatorV4--
  431. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils.adoc#EIP712-_hashTypedDataV4-bytes32-
  432. :xref-EIP712-eip712Domain--: xref:utils.adoc#EIP712-eip712Domain--
  433. :xref-EIP712-_EIP712Name--: xref:utils.adoc#EIP712-_EIP712Name--
  434. :xref-EIP712-_EIP712Version--: xref:utils.adoc#EIP712-_EIP712Version--
  435. :xref-GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-
  436. :xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-: xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-
  437. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  438. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  439. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  440. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  441. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  442. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  443. :xref-GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-
  444. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  445. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  446. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  447. :xref-IGovernor-GovernorOnlyProposer-address-: xref:governance.adoc#IGovernor-GovernorOnlyProposer-address-
  448. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  449. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  450. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  451. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  452. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  453. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  454. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  455. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  456. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  457. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  458. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  459. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  460. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  461. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  462. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  463. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  464. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  465. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  466. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  467. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  468. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  469. :Governor-relay: pass:normal[xref:governance.adoc#Governor-relay-address-uint256-bytes-[`Governor.relay`]]
  470. :AccessManager-schedule: pass:normal[xref:access.adoc#AccessManager-schedule-address-bytes-uint48-[`AccessManager.schedule`]]
  471. :xref-GovernorTimelockControl-constructor-contract-TimelockController-: xref:governance.adoc#GovernorTimelockControl-constructor-contract-TimelockController-
  472. :xref-GovernorTimelockControl-state-uint256-: xref:governance.adoc#GovernorTimelockControl-state-uint256-
  473. :xref-GovernorTimelockControl-timelock--: xref:governance.adoc#GovernorTimelockControl-timelock--
  474. :xref-GovernorTimelockControl-proposalNeedsQueuing-uint256-: xref:governance.adoc#GovernorTimelockControl-proposalNeedsQueuing-uint256-
  475. :xref-GovernorTimelockControl-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockControl-_queueOperations-uint256-address---uint256---bytes---bytes32-
  476. :xref-GovernorTimelockControl-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockControl-_executeOperations-uint256-address---uint256---bytes---bytes32-
  477. :xref-GovernorTimelockControl-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockControl-_cancel-address---uint256---bytes---bytes32-
  478. :xref-GovernorTimelockControl-_executor--: xref:governance.adoc#GovernorTimelockControl-_executor--
  479. :xref-GovernorTimelockControl-updateTimelock-contract-TimelockController-: xref:governance.adoc#GovernorTimelockControl-updateTimelock-contract-TimelockController-
  480. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  481. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  482. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  483. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  484. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  485. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  486. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  487. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  488. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  489. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  490. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  491. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  492. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  493. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  494. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  495. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  496. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  497. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  498. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  499. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  500. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  501. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  502. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  503. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  504. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  505. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  506. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  507. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  508. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  509. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  510. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  511. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  512. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  513. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  514. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  515. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  516. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  517. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  518. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  519. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  520. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  521. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  522. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  523. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  524. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  525. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  526. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  527. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  528. :xref-EIP712-_domainSeparatorV4--: xref:utils.adoc#EIP712-_domainSeparatorV4--
  529. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils.adoc#EIP712-_hashTypedDataV4-bytes32-
  530. :xref-EIP712-eip712Domain--: xref:utils.adoc#EIP712-eip712Domain--
  531. :xref-EIP712-_EIP712Name--: xref:utils.adoc#EIP712-_EIP712Name--
  532. :xref-EIP712-_EIP712Version--: xref:utils.adoc#EIP712-_EIP712Version--
  533. :xref-GovernorTimelockControl-TimelockChange-address-address-: xref:governance.adoc#GovernorTimelockControl-TimelockChange-address-address-
  534. :xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-: xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-
  535. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  536. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  537. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  538. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  539. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  540. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  541. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  542. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  543. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  544. :xref-IGovernor-GovernorOnlyProposer-address-: xref:governance.adoc#IGovernor-GovernorOnlyProposer-address-
  545. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  546. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  547. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  548. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  549. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  550. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  551. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  552. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  553. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  554. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  555. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  556. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  557. :Governor-state: pass:normal[xref:governance.adoc#Governor-state-uint256-[`Governor.state`]]
  558. :IGovernor-proposalNeedsQueuing: pass:normal[xref:governance.adoc#IGovernor-proposalNeedsQueuing-uint256-[`IGovernor.proposalNeedsQueuing`]]
  559. :Governor-_executeOperations: pass:normal[xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-[`Governor._executeOperations`]]
  560. :Governor-_cancel: pass:normal[xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-[`Governor._cancel`]]
  561. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  562. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  563. :GovernorTimelockCompound-__acceptAdmin: pass:normal[xref:governance.adoc#GovernorTimelockCompound-__acceptAdmin--[`GovernorTimelockCompound.__acceptAdmin`]]
  564. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  565. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  566. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  567. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  568. :xref-GovernorTimelockCompound-constructor-contract-ICompoundTimelock-: xref:governance.adoc#GovernorTimelockCompound-constructor-contract-ICompoundTimelock-
  569. :xref-GovernorTimelockCompound-state-uint256-: xref:governance.adoc#GovernorTimelockCompound-state-uint256-
  570. :xref-GovernorTimelockCompound-timelock--: xref:governance.adoc#GovernorTimelockCompound-timelock--
  571. :xref-GovernorTimelockCompound-proposalNeedsQueuing-uint256-: xref:governance.adoc#GovernorTimelockCompound-proposalNeedsQueuing-uint256-
  572. :xref-GovernorTimelockCompound-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockCompound-_queueOperations-uint256-address---uint256---bytes---bytes32-
  573. :xref-GovernorTimelockCompound-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockCompound-_executeOperations-uint256-address---uint256---bytes---bytes32-
  574. :xref-GovernorTimelockCompound-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockCompound-_cancel-address---uint256---bytes---bytes32-
  575. :xref-GovernorTimelockCompound-_executor--: xref:governance.adoc#GovernorTimelockCompound-_executor--
  576. :xref-GovernorTimelockCompound-__acceptAdmin--: xref:governance.adoc#GovernorTimelockCompound-__acceptAdmin--
  577. :xref-GovernorTimelockCompound-updateTimelock-contract-ICompoundTimelock-: xref:governance.adoc#GovernorTimelockCompound-updateTimelock-contract-ICompoundTimelock-
  578. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  579. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  580. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  581. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  582. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  583. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  584. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  585. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  586. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  587. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  588. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  589. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  590. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  591. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  592. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  593. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  594. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  595. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  596. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  597. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  598. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  599. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  600. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  601. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  602. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  603. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  604. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  605. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  606. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  607. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  608. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  609. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  610. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  611. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  612. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  613. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  614. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  615. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  616. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  617. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  618. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  619. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  620. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  621. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  622. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  623. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  624. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  625. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  626. :xref-EIP712-_domainSeparatorV4--: xref:utils.adoc#EIP712-_domainSeparatorV4--
  627. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils.adoc#EIP712-_hashTypedDataV4-bytes32-
  628. :xref-EIP712-eip712Domain--: xref:utils.adoc#EIP712-eip712Domain--
  629. :xref-EIP712-_EIP712Name--: xref:utils.adoc#EIP712-_EIP712Name--
  630. :xref-EIP712-_EIP712Version--: xref:utils.adoc#EIP712-_EIP712Version--
  631. :xref-GovernorTimelockCompound-TimelockChange-address-address-: xref:governance.adoc#GovernorTimelockCompound-TimelockChange-address-address-
  632. :xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-: xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-
  633. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  634. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  635. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  636. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  637. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  638. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  639. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  640. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  641. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  642. :xref-IGovernor-GovernorOnlyProposer-address-: xref:governance.adoc#IGovernor-GovernorOnlyProposer-address-
  643. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  644. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  645. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  646. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  647. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  648. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  649. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  650. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  651. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  652. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  653. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  654. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  655. :Governor-state: pass:normal[xref:governance.adoc#Governor-state-uint256-[`Governor.state`]]
  656. :IGovernor-proposalNeedsQueuing: pass:normal[xref:governance.adoc#IGovernor-proposalNeedsQueuing-uint256-[`IGovernor.proposalNeedsQueuing`]]
  657. :Governor-_executeOperations: pass:normal[xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-[`Governor._executeOperations`]]
  658. :Governor-_cancel: pass:normal[xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-[`Governor._cancel`]]
  659. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  660. :xref-GovernorSettings-constructor-uint48-uint32-uint256-: xref:governance.adoc#GovernorSettings-constructor-uint48-uint32-uint256-
  661. :xref-GovernorSettings-votingDelay--: xref:governance.adoc#GovernorSettings-votingDelay--
  662. :xref-GovernorSettings-votingPeriod--: xref:governance.adoc#GovernorSettings-votingPeriod--
  663. :xref-GovernorSettings-proposalThreshold--: xref:governance.adoc#GovernorSettings-proposalThreshold--
  664. :xref-GovernorSettings-setVotingDelay-uint48-: xref:governance.adoc#GovernorSettings-setVotingDelay-uint48-
  665. :xref-GovernorSettings-setVotingPeriod-uint32-: xref:governance.adoc#GovernorSettings-setVotingPeriod-uint32-
  666. :xref-GovernorSettings-setProposalThreshold-uint256-: xref:governance.adoc#GovernorSettings-setProposalThreshold-uint256-
  667. :xref-GovernorSettings-_setVotingDelay-uint48-: xref:governance.adoc#GovernorSettings-_setVotingDelay-uint48-
  668. :xref-GovernorSettings-_setVotingPeriod-uint32-: xref:governance.adoc#GovernorSettings-_setVotingPeriod-uint32-
  669. :xref-GovernorSettings-_setProposalThreshold-uint256-: xref:governance.adoc#GovernorSettings-_setProposalThreshold-uint256-
  670. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  671. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  672. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  673. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  674. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  675. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  676. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  677. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  678. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  679. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  680. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  681. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  682. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  683. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  684. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  685. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  686. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  687. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  688. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  689. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  690. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  691. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  692. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  693. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  694. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  695. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  696. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  697. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  698. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  699. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  700. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  701. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  702. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  703. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  704. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  705. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  706. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  707. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  708. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  709. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  710. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  711. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  712. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  713. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  714. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  715. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  716. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  717. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  718. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  719. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  720. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  721. :xref-EIP712-_domainSeparatorV4--: xref:utils.adoc#EIP712-_domainSeparatorV4--
  722. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils.adoc#EIP712-_hashTypedDataV4-bytes32-
  723. :xref-EIP712-eip712Domain--: xref:utils.adoc#EIP712-eip712Domain--
  724. :xref-EIP712-_EIP712Name--: xref:utils.adoc#EIP712-_EIP712Name--
  725. :xref-EIP712-_EIP712Version--: xref:utils.adoc#EIP712-_EIP712Version--
  726. :xref-GovernorSettings-VotingDelaySet-uint256-uint256-: xref:governance.adoc#GovernorSettings-VotingDelaySet-uint256-uint256-
  727. :xref-GovernorSettings-VotingPeriodSet-uint256-uint256-: xref:governance.adoc#GovernorSettings-VotingPeriodSet-uint256-uint256-
  728. :xref-GovernorSettings-ProposalThresholdSet-uint256-uint256-: xref:governance.adoc#GovernorSettings-ProposalThresholdSet-uint256-uint256-
  729. :xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-: xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-
  730. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  731. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  732. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  733. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  734. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  735. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  736. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  737. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  738. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  739. :xref-IGovernor-GovernorOnlyProposer-address-: xref:governance.adoc#IGovernor-GovernorOnlyProposer-address-
  740. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  741. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  742. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  743. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  744. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  745. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  746. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  747. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  748. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  749. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  750. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  751. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  752. :IGovernor-votingDelay: pass:normal[xref:governance.adoc#IGovernor-votingDelay--[`IGovernor.votingDelay`]]
  753. :IGovernor-votingPeriod: pass:normal[xref:governance.adoc#IGovernor-votingPeriod--[`IGovernor.votingPeriod`]]
  754. :Governor-proposalThreshold: pass:normal[xref:governance.adoc#Governor-proposalThreshold--[`Governor.proposalThreshold`]]
  755. :xref-GovernorPreventLateQuorum-constructor-uint48-: xref:governance.adoc#GovernorPreventLateQuorum-constructor-uint48-
  756. :xref-GovernorPreventLateQuorum-proposalDeadline-uint256-: xref:governance.adoc#GovernorPreventLateQuorum-proposalDeadline-uint256-
  757. :xref-GovernorPreventLateQuorum-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#GovernorPreventLateQuorum-_castVote-uint256-address-uint8-string-bytes-
  758. :xref-GovernorPreventLateQuorum-lateQuorumVoteExtension--: xref:governance.adoc#GovernorPreventLateQuorum-lateQuorumVoteExtension--
  759. :xref-GovernorPreventLateQuorum-setLateQuorumVoteExtension-uint48-: xref:governance.adoc#GovernorPreventLateQuorum-setLateQuorumVoteExtension-uint48-
  760. :xref-GovernorPreventLateQuorum-_setLateQuorumVoteExtension-uint48-: xref:governance.adoc#GovernorPreventLateQuorum-_setLateQuorumVoteExtension-uint48-
  761. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  762. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  763. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  764. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  765. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  766. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  767. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  768. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  769. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  770. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  771. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  772. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  773. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  774. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  775. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  776. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  777. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  778. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  779. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  780. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  781. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  782. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  783. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  784. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  785. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  786. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  787. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  788. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  789. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  790. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  791. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  792. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  793. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  794. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  795. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  796. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  797. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  798. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  799. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  800. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  801. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  802. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  803. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  804. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  805. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  806. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  807. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  808. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  809. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  810. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  811. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  812. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  813. :xref-EIP712-_domainSeparatorV4--: xref:utils.adoc#EIP712-_domainSeparatorV4--
  814. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils.adoc#EIP712-_hashTypedDataV4-bytes32-
  815. :xref-EIP712-eip712Domain--: xref:utils.adoc#EIP712-eip712Domain--
  816. :xref-EIP712-_EIP712Name--: xref:utils.adoc#EIP712-_EIP712Name--
  817. :xref-EIP712-_EIP712Version--: xref:utils.adoc#EIP712-_EIP712Version--
  818. :xref-GovernorPreventLateQuorum-ProposalExtended-uint256-uint64-: xref:governance.adoc#GovernorPreventLateQuorum-ProposalExtended-uint256-uint64-
  819. :xref-GovernorPreventLateQuorum-LateQuorumVoteExtensionSet-uint64-uint64-: xref:governance.adoc#GovernorPreventLateQuorum-LateQuorumVoteExtensionSet-uint64-uint64-
  820. :xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-: xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-
  821. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  822. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  823. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  824. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  825. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  826. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  827. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  828. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  829. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  830. :xref-IGovernor-GovernorOnlyProposer-address-: xref:governance.adoc#IGovernor-GovernorOnlyProposer-address-
  831. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  832. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  833. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  834. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  835. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  836. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  837. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  838. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  839. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  840. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  841. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  842. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  843. :Governor-proposalDeadline: pass:normal[xref:governance.adoc#Governor-proposalDeadline-uint256-[`Governor.proposalDeadline`]]
  844. :Governor-_castVote: pass:normal[xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-[`Governor._castVote`]]
  845. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  846. :Governor-queue: pass:normal[xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-[`Governor.queue`]]
  847. :Governor-execute: pass:normal[xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-[`Governor.execute`]]
  848. :xref-GovernorStorage-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#GovernorStorage-_propose-address---uint256---bytes---string-address-
  849. :xref-GovernorStorage-queue-uint256-: xref:governance.adoc#GovernorStorage-queue-uint256-
  850. :xref-GovernorStorage-execute-uint256-: xref:governance.adoc#GovernorStorage-execute-uint256-
  851. :xref-GovernorStorage-cancel-uint256-: xref:governance.adoc#GovernorStorage-cancel-uint256-
  852. :xref-GovernorStorage-proposalCount--: xref:governance.adoc#GovernorStorage-proposalCount--
  853. :xref-GovernorStorage-proposalDetails-uint256-: xref:governance.adoc#GovernorStorage-proposalDetails-uint256-
  854. :xref-GovernorStorage-proposalDetailsAt-uint256-: xref:governance.adoc#GovernorStorage-proposalDetailsAt-uint256-
  855. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  856. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  857. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  858. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  859. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  860. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  861. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  862. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  863. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  864. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  865. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  866. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  867. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  868. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  869. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  870. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  871. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  872. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  873. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  874. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  875. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  876. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  877. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  878. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  879. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  880. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  881. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  882. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  883. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  884. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  885. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  886. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  887. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  888. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  889. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  890. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  891. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  892. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  893. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  894. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  895. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  896. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  897. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  898. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  899. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  900. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  901. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  902. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  903. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  904. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  905. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  906. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  907. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  908. :xref-EIP712-_domainSeparatorV4--: xref:utils.adoc#EIP712-_domainSeparatorV4--
  909. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils.adoc#EIP712-_hashTypedDataV4-bytes32-
  910. :xref-EIP712-eip712Domain--: xref:utils.adoc#EIP712-eip712Domain--
  911. :xref-EIP712-_EIP712Name--: xref:utils.adoc#EIP712-_EIP712Name--
  912. :xref-EIP712-_EIP712Version--: xref:utils.adoc#EIP712-_EIP712Version--
  913. :xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-: xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-
  914. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  915. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  916. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  917. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  918. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  919. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  920. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  921. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  922. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  923. :xref-IGovernor-GovernorOnlyProposer-address-: xref:governance.adoc#IGovernor-GovernorOnlyProposer-address-
  924. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  925. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  926. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  927. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  928. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  929. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  930. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  931. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  932. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  933. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  934. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  935. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  936. :IGovernor-execute: pass:normal[xref:governance.adoc#IGovernor-execute-address---uint256---bytes---bytes32-[`IGovernor.execute`]]
  937. :IGovernor-cancel: pass:normal[xref:governance.adoc#IGovernor-cancel-address---uint256---bytes---bytes32-[`IGovernor.cancel`]]
  938. :ERC721Votes: pass:normal[xref:token/ERC721.adoc#ERC721Votes[`ERC721Votes`]]
  939. :ERC721-balanceOf: pass:normal[xref:token/ERC721.adoc#ERC721-balanceOf-address-[`ERC721.balanceOf`]]
  940. :xref-Votes-clock--: xref:governance.adoc#Votes-clock--
  941. :xref-Votes-CLOCK_MODE--: xref:governance.adoc#Votes-CLOCK_MODE--
  942. :xref-Votes-getVotes-address-: xref:governance.adoc#Votes-getVotes-address-
  943. :xref-Votes-getPastVotes-address-uint256-: xref:governance.adoc#Votes-getPastVotes-address-uint256-
  944. :xref-Votes-getPastTotalSupply-uint256-: xref:governance.adoc#Votes-getPastTotalSupply-uint256-
  945. :xref-Votes-_getTotalSupply--: xref:governance.adoc#Votes-_getTotalSupply--
  946. :xref-Votes-delegates-address-: xref:governance.adoc#Votes-delegates-address-
  947. :xref-Votes-delegate-address-: xref:governance.adoc#Votes-delegate-address-
  948. :xref-Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-: xref:governance.adoc#Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-
  949. :xref-Votes-_delegate-address-address-: xref:governance.adoc#Votes-_delegate-address-address-
  950. :xref-Votes-_transferVotingUnits-address-address-uint256-: xref:governance.adoc#Votes-_transferVotingUnits-address-address-uint256-
  951. :xref-Votes-_numCheckpoints-address-: xref:governance.adoc#Votes-_numCheckpoints-address-
  952. :xref-Votes-_checkpoints-address-uint32-: xref:governance.adoc#Votes-_checkpoints-address-uint32-
  953. :xref-Votes-_getVotingUnits-address-: xref:governance.adoc#Votes-_getVotingUnits-address-
  954. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  955. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  956. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  957. :xref-EIP712-_domainSeparatorV4--: xref:utils.adoc#EIP712-_domainSeparatorV4--
  958. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils.adoc#EIP712-_hashTypedDataV4-bytes32-
  959. :xref-EIP712-eip712Domain--: xref:utils.adoc#EIP712-eip712Domain--
  960. :xref-EIP712-_EIP712Name--: xref:utils.adoc#EIP712-_EIP712Name--
  961. :xref-EIP712-_EIP712Version--: xref:utils.adoc#EIP712-_EIP712Version--
  962. :xref-IVotes-DelegateChanged-address-address-address-: xref:governance.adoc#IVotes-DelegateChanged-address-address-address-
  963. :xref-IVotes-DelegateVotesChanged-address-uint256-uint256-: xref:governance.adoc#IVotes-DelegateVotesChanged-address-uint256-uint256-
  964. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  965. :xref-Votes-ERC6372InconsistentClock--: xref:governance.adoc#Votes-ERC6372InconsistentClock--
  966. :xref-Votes-ERC5805FutureLookup-uint256-uint48-: xref:governance.adoc#Votes-ERC5805FutureLookup-uint256-uint48-
  967. :xref-IVotes-VotesExpiredSignature-uint256-: xref:governance.adoc#IVotes-VotesExpiredSignature-uint256-
  968. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  969. :IVotes-DelegateChanged: pass:normal[xref:governance.adoc#IVotes-DelegateChanged-address-address-address-[`IVotes.DelegateChanged`]]
  970. :IVotes-DelegateVotesChanged: pass:normal[xref:governance.adoc#IVotes-DelegateVotesChanged-address-uint256-uint256-[`IVotes.DelegateVotesChanged`]]
  971. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  972. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  973. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  974. :xref-TimelockController-onlyRoleOrOpenRole-bytes32-: xref:governance.adoc#TimelockController-onlyRoleOrOpenRole-bytes32-
  975. :xref-TimelockController-constructor-uint256-address---address---address-: xref:governance.adoc#TimelockController-constructor-uint256-address---address---address-
  976. :xref-TimelockController-receive--: xref:governance.adoc#TimelockController-receive--
  977. :xref-TimelockController-supportsInterface-bytes4-: xref:governance.adoc#TimelockController-supportsInterface-bytes4-
  978. :xref-TimelockController-isOperation-bytes32-: xref:governance.adoc#TimelockController-isOperation-bytes32-
  979. :xref-TimelockController-isOperationPending-bytes32-: xref:governance.adoc#TimelockController-isOperationPending-bytes32-
  980. :xref-TimelockController-isOperationReady-bytes32-: xref:governance.adoc#TimelockController-isOperationReady-bytes32-
  981. :xref-TimelockController-isOperationDone-bytes32-: xref:governance.adoc#TimelockController-isOperationDone-bytes32-
  982. :xref-TimelockController-getTimestamp-bytes32-: xref:governance.adoc#TimelockController-getTimestamp-bytes32-
  983. :xref-TimelockController-getOperationState-bytes32-: xref:governance.adoc#TimelockController-getOperationState-bytes32-
  984. :xref-TimelockController-getMinDelay--: xref:governance.adoc#TimelockController-getMinDelay--
  985. :xref-TimelockController-hashOperation-address-uint256-bytes-bytes32-bytes32-: xref:governance.adoc#TimelockController-hashOperation-address-uint256-bytes-bytes32-bytes32-
  986. :xref-TimelockController-hashOperationBatch-address---uint256---bytes---bytes32-bytes32-: xref:governance.adoc#TimelockController-hashOperationBatch-address---uint256---bytes---bytes32-bytes32-
  987. :xref-TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-: xref:governance.adoc#TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-
  988. :xref-TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-: xref:governance.adoc#TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-
  989. :xref-TimelockController-cancel-bytes32-: xref:governance.adoc#TimelockController-cancel-bytes32-
  990. :xref-TimelockController-execute-address-uint256-bytes-bytes32-bytes32-: xref:governance.adoc#TimelockController-execute-address-uint256-bytes-bytes32-bytes32-
  991. :xref-TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-: xref:governance.adoc#TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-
  992. :xref-TimelockController-_execute-address-uint256-bytes-: xref:governance.adoc#TimelockController-_execute-address-uint256-bytes-
  993. :xref-TimelockController-updateDelay-uint256-: xref:governance.adoc#TimelockController-updateDelay-uint256-
  994. :xref-TimelockController-_encodeStateBitmap-enum-TimelockController-OperationState-: xref:governance.adoc#TimelockController-_encodeStateBitmap-enum-TimelockController-OperationState-
  995. :xref-TimelockController-PROPOSER_ROLE-bytes32: xref:governance.adoc#TimelockController-PROPOSER_ROLE-bytes32
  996. :xref-TimelockController-EXECUTOR_ROLE-bytes32: xref:governance.adoc#TimelockController-EXECUTOR_ROLE-bytes32
  997. :xref-TimelockController-CANCELLER_ROLE-bytes32: xref:governance.adoc#TimelockController-CANCELLER_ROLE-bytes32
  998. :xref-ERC1155Holder-onERC1155Received-address-address-uint256-uint256-bytes-: xref:token/ERC1155.adoc#ERC1155Holder-onERC1155Received-address-address-uint256-uint256-bytes-
  999. :xref-ERC1155Holder-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:token/ERC1155.adoc#ERC1155Holder-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  1000. :xref-ERC721Holder-onERC721Received-address-address-uint256-bytes-: xref:token/ERC721.adoc#ERC721Holder-onERC721Received-address-address-uint256-bytes-
  1001. :xref-AccessControl-hasRole-bytes32-address-: xref:access.adoc#AccessControl-hasRole-bytes32-address-
  1002. :xref-AccessControl-_checkRole-bytes32-: xref:access.adoc#AccessControl-_checkRole-bytes32-
  1003. :xref-AccessControl-_checkRole-bytes32-address-: xref:access.adoc#AccessControl-_checkRole-bytes32-address-
  1004. :xref-AccessControl-getRoleAdmin-bytes32-: xref:access.adoc#AccessControl-getRoleAdmin-bytes32-
  1005. :xref-AccessControl-grantRole-bytes32-address-: xref:access.adoc#AccessControl-grantRole-bytes32-address-
  1006. :xref-AccessControl-revokeRole-bytes32-address-: xref:access.adoc#AccessControl-revokeRole-bytes32-address-
  1007. :xref-AccessControl-renounceRole-bytes32-address-: xref:access.adoc#AccessControl-renounceRole-bytes32-address-
  1008. :xref-AccessControl-_setRoleAdmin-bytes32-bytes32-: xref:access.adoc#AccessControl-_setRoleAdmin-bytes32-bytes32-
  1009. :xref-AccessControl-_grantRole-bytes32-address-: xref:access.adoc#AccessControl-_grantRole-bytes32-address-
  1010. :xref-AccessControl-_revokeRole-bytes32-address-: xref:access.adoc#AccessControl-_revokeRole-bytes32-address-
  1011. :xref-AccessControl-DEFAULT_ADMIN_ROLE-bytes32: xref:access.adoc#AccessControl-DEFAULT_ADMIN_ROLE-bytes32
  1012. :xref-TimelockController-CallScheduled-bytes32-uint256-address-uint256-bytes-bytes32-uint256-: xref:governance.adoc#TimelockController-CallScheduled-bytes32-uint256-address-uint256-bytes-bytes32-uint256-
  1013. :xref-TimelockController-CallExecuted-bytes32-uint256-address-uint256-bytes-: xref:governance.adoc#TimelockController-CallExecuted-bytes32-uint256-address-uint256-bytes-
  1014. :xref-TimelockController-CallSalt-bytes32-bytes32-: xref:governance.adoc#TimelockController-CallSalt-bytes32-bytes32-
  1015. :xref-TimelockController-Cancelled-bytes32-: xref:governance.adoc#TimelockController-Cancelled-bytes32-
  1016. :xref-TimelockController-MinDelayChange-uint256-uint256-: xref:governance.adoc#TimelockController-MinDelayChange-uint256-uint256-
  1017. :xref-IAccessControl-RoleAdminChanged-bytes32-bytes32-bytes32-: xref:access.adoc#IAccessControl-RoleAdminChanged-bytes32-bytes32-bytes32-
  1018. :xref-IAccessControl-RoleGranted-bytes32-address-address-: xref:access.adoc#IAccessControl-RoleGranted-bytes32-address-address-
  1019. :xref-IAccessControl-RoleRevoked-bytes32-address-address-: xref:access.adoc#IAccessControl-RoleRevoked-bytes32-address-address-
  1020. :xref-TimelockController-TimelockInvalidOperationLength-uint256-uint256-uint256-: xref:governance.adoc#TimelockController-TimelockInvalidOperationLength-uint256-uint256-uint256-
  1021. :xref-TimelockController-TimelockInsufficientDelay-uint256-uint256-: xref:governance.adoc#TimelockController-TimelockInsufficientDelay-uint256-uint256-
  1022. :xref-TimelockController-TimelockUnexpectedOperationState-bytes32-bytes32-: xref:governance.adoc#TimelockController-TimelockUnexpectedOperationState-bytes32-bytes32-
  1023. :xref-TimelockController-TimelockUnexecutedPredecessor-bytes32-: xref:governance.adoc#TimelockController-TimelockUnexecutedPredecessor-bytes32-
  1024. :xref-TimelockController-TimelockUnauthorizedCaller-address-: xref:governance.adoc#TimelockController-TimelockUnauthorizedCaller-address-
  1025. :xref-IAccessControl-AccessControlUnauthorizedAccount-address-bytes32-: xref:access.adoc#IAccessControl-AccessControlUnauthorizedAccount-address-bytes32-
  1026. :xref-IAccessControl-AccessControlBadConfirmation--: xref:access.adoc#IAccessControl-AccessControlBadConfirmation--
  1027. :IERC165-supportsInterface: pass:normal[xref:utils.adoc#IERC165-supportsInterface-bytes4-[`IERC165.supportsInterface`]]
  1028. :AccessControl: pass:normal[xref:access.adoc#AccessControl[`AccessControl`]]
  1029. = Governance
  1030. [.readme-notice]
  1031. NOTE: This document is better viewed at https://docs.openzeppelin.com/contracts/api/governance
  1032. This directory includes primitives for on-chain governance.
  1033. == Governor
  1034. This modular system of Governor contracts allows the deployment on-chain voting protocols similar to https://compound.finance/docs/governance[Compound's Governor Alpha & Bravo] and beyond, through the ability to easily customize multiple aspects of the protocol.
  1035. [TIP]
  1036. ====
  1037. For a guided experience, set up your Governor contract using https://wizard.openzeppelin.com/#governor[Contracts Wizard].
  1038. For a written walkthrough, check out our guide on xref:ROOT:governance.adoc[How to set up on-chain governance].
  1039. ====
  1040. * {Governor}: The core contract that contains all the logic and primitives. It is abstract and requires choosing one of each of the modules below, or custom ones.
  1041. Votes modules determine the source of voting power, and sometimes quorum number.
  1042. * {GovernorVotes}: Extracts voting weight from an {ERC20Votes}, or since v4.5 an {ERC721Votes} token.
  1043. * {GovernorVotesQuorumFraction}: Combines with `GovernorVotes` to set the quorum as a fraction of the total token supply.
  1044. Counting modules determine valid voting options.
  1045. * {GovernorCountingSimple}: Simple voting mechanism with 3 voting options: Against, For and Abstain.
  1046. Timelock extensions add a delay for governance decisions to be executed. The workflow is extended to require a `queue` step before execution. With these modules, proposals are executed by the external timelock contract, thus it is the timelock that has to hold the assets that are being governed.
  1047. * {GovernorTimelockControl}: Connects with an instance of {TimelockController}. Allows multiple proposers and executors, in addition to the Governor itself.
  1048. * {GovernorTimelockCompound}: Connects with an instance of Compound's https://github.com/compound-finance/compound-protocol/blob/master/contracts/Timelock.sol[`Timelock`] contract.
  1049. Other extensions can customize the behavior or interface in multiple ways.
  1050. * {GovernorStorage}: Stores the proposal details onchain and provides enumerability of the proposals. This can be useful for some L2 chains where storage is cheap compared to calldata.
  1051. * {GovernorSettings}: Manages some of the settings (voting delay, voting period duration, and proposal threshold) in a way that can be updated through a governance proposal, without requiring an upgrade.
  1052. * {GovernorPreventLateQuorum}: Ensures there is a minimum voting period after quorum is reached as a security protection against large voters.
  1053. In addition to modules and extensions, the core contract requires a few virtual functions to be implemented to your particular specifications:
  1054. * <<Governor-votingDelay-,`votingDelay()`>>: Delay (in EIP-6372 clock) since the proposal is submitted until voting power is fixed and voting starts. This can be used to enforce a delay after a proposal is published for users to buy tokens, or delegate their votes.
  1055. * <<Governor-votingPeriod-,`votingPeriod()`>>: Delay (in EIP-6372 clock) since the proposal starts until voting ends.
  1056. * <<Governor-quorum-uint256-,`quorum(uint256 timepoint)`>>: Quorum required for a proposal to be successful. This function includes a `timepoint` argument (see EIP-6372) so the quorum can adapt through time, for example, to follow a token's `totalSupply`.
  1057. NOTE: Functions of the `Governor` contract do not include access control. If you want to restrict access, you should add these checks by overloading the particular functions. Among these, {Governor-_cancel} is internal by default, and you will have to expose it (with the right access control mechanism) yourself if this function is needed.
  1058. === Core
  1059. :ProposalState: pass:normal[xref:#IGovernor-ProposalState[`++ProposalState++`]]
  1060. :GovernorInvalidProposalLength: pass:normal[xref:#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-[`++GovernorInvalidProposalLength++`]]
  1061. :GovernorAlreadyCastVote: pass:normal[xref:#IGovernor-GovernorAlreadyCastVote-address-[`++GovernorAlreadyCastVote++`]]
  1062. :GovernorDisabledDeposit: pass:normal[xref:#IGovernor-GovernorDisabledDeposit--[`++GovernorDisabledDeposit++`]]
  1063. :GovernorOnlyProposer: pass:normal[xref:#IGovernor-GovernorOnlyProposer-address-[`++GovernorOnlyProposer++`]]
  1064. :GovernorOnlyExecutor: pass:normal[xref:#IGovernor-GovernorOnlyExecutor-address-[`++GovernorOnlyExecutor++`]]
  1065. :GovernorNonexistentProposal: pass:normal[xref:#IGovernor-GovernorNonexistentProposal-uint256-[`++GovernorNonexistentProposal++`]]
  1066. :GovernorUnexpectedProposalState: pass:normal[xref:#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-[`++GovernorUnexpectedProposalState++`]]
  1067. :GovernorInvalidVotingPeriod: pass:normal[xref:#IGovernor-GovernorInvalidVotingPeriod-uint256-[`++GovernorInvalidVotingPeriod++`]]
  1068. :GovernorInsufficientProposerVotes: pass:normal[xref:#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-[`++GovernorInsufficientProposerVotes++`]]
  1069. :GovernorRestrictedProposer: pass:normal[xref:#IGovernor-GovernorRestrictedProposer-address-[`++GovernorRestrictedProposer++`]]
  1070. :GovernorInvalidVoteType: pass:normal[xref:#IGovernor-GovernorInvalidVoteType--[`++GovernorInvalidVoteType++`]]
  1071. :GovernorQueueNotImplemented: pass:normal[xref:#IGovernor-GovernorQueueNotImplemented--[`++GovernorQueueNotImplemented++`]]
  1072. :GovernorNotQueuedProposal: pass:normal[xref:#IGovernor-GovernorNotQueuedProposal-uint256-[`++GovernorNotQueuedProposal++`]]
  1073. :GovernorAlreadyQueuedProposal: pass:normal[xref:#IGovernor-GovernorAlreadyQueuedProposal-uint256-[`++GovernorAlreadyQueuedProposal++`]]
  1074. :GovernorInvalidSignature: pass:normal[xref:#IGovernor-GovernorInvalidSignature-address-[`++GovernorInvalidSignature++`]]
  1075. :ProposalCreated: pass:normal[xref:#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-[`++ProposalCreated++`]]
  1076. :ProposalQueued: pass:normal[xref:#IGovernor-ProposalQueued-uint256-uint256-[`++ProposalQueued++`]]
  1077. :ProposalExecuted: pass:normal[xref:#IGovernor-ProposalExecuted-uint256-[`++ProposalExecuted++`]]
  1078. :ProposalCanceled: pass:normal[xref:#IGovernor-ProposalCanceled-uint256-[`++ProposalCanceled++`]]
  1079. :VoteCast: pass:normal[xref:#IGovernor-VoteCast-address-uint256-uint8-uint256-string-[`++VoteCast++`]]
  1080. :VoteCastWithParams: pass:normal[xref:#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-[`++VoteCastWithParams++`]]
  1081. :name: pass:normal[xref:#IGovernor-name--[`++name++`]]
  1082. :version: pass:normal[xref:#IGovernor-version--[`++version++`]]
  1083. :COUNTING_MODE: pass:normal[xref:#IGovernor-COUNTING_MODE--[`++COUNTING_MODE++`]]
  1084. :hashProposal: pass:normal[xref:#IGovernor-hashProposal-address---uint256---bytes---bytes32-[`++hashProposal++`]]
  1085. :state: pass:normal[xref:#IGovernor-state-uint256-[`++state++`]]
  1086. :proposalThreshold: pass:normal[xref:#IGovernor-proposalThreshold--[`++proposalThreshold++`]]
  1087. :proposalSnapshot: pass:normal[xref:#IGovernor-proposalSnapshot-uint256-[`++proposalSnapshot++`]]
  1088. :proposalDeadline: pass:normal[xref:#IGovernor-proposalDeadline-uint256-[`++proposalDeadline++`]]
  1089. :proposalProposer: pass:normal[xref:#IGovernor-proposalProposer-uint256-[`++proposalProposer++`]]
  1090. :proposalEta: pass:normal[xref:#IGovernor-proposalEta-uint256-[`++proposalEta++`]]
  1091. :proposalNeedsQueuing: pass:normal[xref:#IGovernor-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  1092. :votingDelay: pass:normal[xref:#IGovernor-votingDelay--[`++votingDelay++`]]
  1093. :votingPeriod: pass:normal[xref:#IGovernor-votingPeriod--[`++votingPeriod++`]]
  1094. :quorum: pass:normal[xref:#IGovernor-quorum-uint256-[`++quorum++`]]
  1095. :getVotes: pass:normal[xref:#IGovernor-getVotes-address-uint256-[`++getVotes++`]]
  1096. :getVotesWithParams: pass:normal[xref:#IGovernor-getVotesWithParams-address-uint256-bytes-[`++getVotesWithParams++`]]
  1097. :hasVoted: pass:normal[xref:#IGovernor-hasVoted-uint256-address-[`++hasVoted++`]]
  1098. :propose: pass:normal[xref:#IGovernor-propose-address---uint256---bytes---string-[`++propose++`]]
  1099. :queue: pass:normal[xref:#IGovernor-queue-address---uint256---bytes---bytes32-[`++queue++`]]
  1100. :execute: pass:normal[xref:#IGovernor-execute-address---uint256---bytes---bytes32-[`++execute++`]]
  1101. :cancel: pass:normal[xref:#IGovernor-cancel-address---uint256---bytes---bytes32-[`++cancel++`]]
  1102. :castVote: pass:normal[xref:#IGovernor-castVote-uint256-uint8-[`++castVote++`]]
  1103. :castVoteWithReason: pass:normal[xref:#IGovernor-castVoteWithReason-uint256-uint8-string-[`++castVoteWithReason++`]]
  1104. :castVoteWithReasonAndParams: pass:normal[xref:#IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-[`++castVoteWithReasonAndParams++`]]
  1105. :castVoteBySig: pass:normal[xref:#IGovernor-castVoteBySig-uint256-uint8-address-bytes-[`++castVoteBySig++`]]
  1106. :castVoteWithReasonAndParamsBySig: pass:normal[xref:#IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-[`++castVoteWithReasonAndParamsBySig++`]]
  1107. [.contract]
  1108. [[IGovernor]]
  1109. === `++IGovernor++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/IGovernor.sol[{github-icon},role=heading-link]
  1110. [.hljs-theme-light.nopadding]
  1111. ```solidity
  1112. import "@openzeppelin/contracts/governance/IGovernor.sol";
  1113. ```
  1114. Interface of the {Governor} core.
  1115. [.contract-index]
  1116. .Functions
  1117. --
  1118. * {xref-IGovernor-name--}[`++name()++`]
  1119. * {xref-IGovernor-version--}[`++version()++`]
  1120. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  1121. * {xref-IGovernor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  1122. * {xref-IGovernor-state-uint256-}[`++state(proposalId)++`]
  1123. * {xref-IGovernor-proposalThreshold--}[`++proposalThreshold()++`]
  1124. * {xref-IGovernor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  1125. * {xref-IGovernor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  1126. * {xref-IGovernor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  1127. * {xref-IGovernor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  1128. * {xref-IGovernor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing(proposalId)++`]
  1129. * {xref-IGovernor-votingDelay--}[`++votingDelay()++`]
  1130. * {xref-IGovernor-votingPeriod--}[`++votingPeriod()++`]
  1131. * {xref-IGovernor-quorum-uint256-}[`++quorum(timepoint)++`]
  1132. * {xref-IGovernor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  1133. * {xref-IGovernor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  1134. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  1135. * {xref-IGovernor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  1136. * {xref-IGovernor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  1137. * {xref-IGovernor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  1138. * {xref-IGovernor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  1139. * {xref-IGovernor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  1140. * {xref-IGovernor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  1141. * {xref-IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  1142. * {xref-IGovernor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  1143. * {xref-IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  1144. [.contract-subindex-inherited]
  1145. .IERC6372
  1146. * {xref-IERC6372-clock--}[`++clock()++`]
  1147. * {xref-IERC6372-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  1148. [.contract-subindex-inherited]
  1149. .IERC165
  1150. * {xref-IERC165-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  1151. --
  1152. [.contract-index]
  1153. .Events
  1154. --
  1155. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  1156. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  1157. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  1158. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  1159. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  1160. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  1161. [.contract-subindex-inherited]
  1162. .IERC6372
  1163. [.contract-subindex-inherited]
  1164. .IERC165
  1165. --
  1166. [.contract-index]
  1167. .Errors
  1168. --
  1169. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  1170. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  1171. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  1172. * {xref-IGovernor-GovernorOnlyProposer-address-}[`++GovernorOnlyProposer(account)++`]
  1173. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  1174. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  1175. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  1176. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  1177. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  1178. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  1179. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  1180. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  1181. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  1182. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  1183. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  1184. [.contract-subindex-inherited]
  1185. .IERC6372
  1186. [.contract-subindex-inherited]
  1187. .IERC165
  1188. --
  1189. [.contract-item]
  1190. [[IGovernor-name--]]
  1191. ==== `[.contract-item-name]#++name++#++() → string++` [.item-kind]#external#
  1192. Name of the governor instance (used in building the ERC712 domain separator).
  1193. [.contract-item]
  1194. [[IGovernor-version--]]
  1195. ==== `[.contract-item-name]#++version++#++() → string++` [.item-kind]#external#
  1196. Version of the governor instance (used in building the ERC712 domain separator). Default: "1"
  1197. [.contract-item]
  1198. [[IGovernor-COUNTING_MODE--]]
  1199. ==== `[.contract-item-name]#++COUNTING_MODE++#++() → string++` [.item-kind]#external#
  1200. A description of the possible `support` values for {castVote} and the way these votes are counted, meant to
  1201. be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of
  1202. key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`.
  1203. There are 2 standard keys: `support` and `quorum`.
  1204. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`.
  1205. - `quorum=bravo` means that only For votes are counted towards quorum.
  1206. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum.
  1207. If a counting module makes use of encoded `params`, it should include this under a `params` key with a unique
  1208. name that describes the behavior. For example:
  1209. - `params=fractional` might refer to a scheme where votes are divided fractionally between for/against/abstain.
  1210. - `params=erc721` might refer to a scheme where specific NFTs are delegated to vote.
  1211. NOTE: The string can be decoded by the standard
  1212. https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`]
  1213. JavaScript class.
  1214. [.contract-item]
  1215. [[IGovernor-hashProposal-address---uint256---bytes---bytes32-]]
  1216. ==== `[.contract-item-name]#++hashProposal++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#external#
  1217. Hashing function used to (re)build the proposal id from the proposal details..
  1218. [.contract-item]
  1219. [[IGovernor-state-uint256-]]
  1220. ==== `[.contract-item-name]#++state++#++(uint256 proposalId) → enum IGovernor.ProposalState++` [.item-kind]#external#
  1221. Current state of a proposal, following Compound's convention
  1222. [.contract-item]
  1223. [[IGovernor-proposalThreshold--]]
  1224. ==== `[.contract-item-name]#++proposalThreshold++#++() → uint256++` [.item-kind]#external#
  1225. The number of votes required in order for a voter to become a proposer.
  1226. [.contract-item]
  1227. [[IGovernor-proposalSnapshot-uint256-]]
  1228. ==== `[.contract-item-name]#++proposalSnapshot++#++(uint256 proposalId) → uint256++` [.item-kind]#external#
  1229. Timepoint used to retrieve user's votes and quorum. If using block number (as per Compound's Comp), the
  1230. snapshot is performed at the end of this block. Hence, voting for this proposal starts at the beginning of the
  1231. following block.
  1232. [.contract-item]
  1233. [[IGovernor-proposalDeadline-uint256-]]
  1234. ==== `[.contract-item-name]#++proposalDeadline++#++(uint256 proposalId) → uint256++` [.item-kind]#external#
  1235. Timepoint at which votes close. If using block number, votes close at the end of this block, so it is
  1236. possible to cast a vote during this block.
  1237. [.contract-item]
  1238. [[IGovernor-proposalProposer-uint256-]]
  1239. ==== `[.contract-item-name]#++proposalProposer++#++(uint256 proposalId) → address++` [.item-kind]#external#
  1240. The account that created a proposal.
  1241. [.contract-item]
  1242. [[IGovernor-proposalEta-uint256-]]
  1243. ==== `[.contract-item-name]#++proposalEta++#++(uint256 proposalId) → uint256++` [.item-kind]#external#
  1244. The time when a queued proposal becomes executable ("ETA"). Unlike {proposalSnapshot} and
  1245. {proposalDeadline}, this doesn't use the governor clock, and instead relies on the executor's clock which may be
  1246. different. In most cases this will be a timestamp.
  1247. [.contract-item]
  1248. [[IGovernor-proposalNeedsQueuing-uint256-]]
  1249. ==== `[.contract-item-name]#++proposalNeedsQueuing++#++(uint256 proposalId) → bool++` [.item-kind]#external#
  1250. Whether a proposal needs to be queued before execution.
  1251. [.contract-item]
  1252. [[IGovernor-votingDelay--]]
  1253. ==== `[.contract-item-name]#++votingDelay++#++() → uint256++` [.item-kind]#external#
  1254. Delay, between the proposal is created and the vote starts. The unit this duration is expressed in depends
  1255. on the clock (see EIP-6372) this contract uses.
  1256. This can be increased to leave time for users to buy voting power, or delegate it, before the voting of a
  1257. proposal starts.
  1258. NOTE: While this interface returns a uint256, timepoints are stored as uint48 following the ERC-6372 clock type.
  1259. Consequently this value must fit in a uint48 (when added to the current clock). See {IERC6372-clock}.
  1260. [.contract-item]
  1261. [[IGovernor-votingPeriod--]]
  1262. ==== `[.contract-item-name]#++votingPeriod++#++() → uint256++` [.item-kind]#external#
  1263. Delay between the vote start and vote end. The unit this duration is expressed in depends on the clock
  1264. (see EIP-6372) this contract uses.
  1265. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting
  1266. duration compared to the voting delay.
  1267. NOTE: This value is stored when the proposal is submitted so that possible changes to the value do not affect
  1268. proposals that have already been submitted. The type used to save it is a uint32. Consequently, while this
  1269. interface returns a uint256, the value it returns should fit in a uint32.
  1270. [.contract-item]
  1271. [[IGovernor-quorum-uint256-]]
  1272. ==== `[.contract-item-name]#++quorum++#++(uint256 timepoint) → uint256++` [.item-kind]#external#
  1273. Minimum number of cast voted required for a proposal to be successful.
  1274. NOTE: The `timepoint` parameter corresponds to the snapshot used for counting vote. This allows to scale the
  1275. quorum depending on values such as the totalSupply of a token at this timepoint (see {ERC20Votes}).
  1276. [.contract-item]
  1277. [[IGovernor-getVotes-address-uint256-]]
  1278. ==== `[.contract-item-name]#++getVotes++#++(address account, uint256 timepoint) → uint256++` [.item-kind]#external#
  1279. Voting power of an `account` at a specific `timepoint`.
  1280. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or
  1281. multiple), {ERC20Votes} tokens.
  1282. [.contract-item]
  1283. [[IGovernor-getVotesWithParams-address-uint256-bytes-]]
  1284. ==== `[.contract-item-name]#++getVotesWithParams++#++(address account, uint256 timepoint, bytes params) → uint256++` [.item-kind]#external#
  1285. Voting power of an `account` at a specific `timepoint` given additional encoded parameters.
  1286. [.contract-item]
  1287. [[IGovernor-hasVoted-uint256-address-]]
  1288. ==== `[.contract-item-name]#++hasVoted++#++(uint256 proposalId, address account) → bool++` [.item-kind]#external#
  1289. Returns whether `account` has cast a vote on `proposalId`.
  1290. [.contract-item]
  1291. [[IGovernor-propose-address---uint256---bytes---string-]]
  1292. ==== `[.contract-item-name]#++propose++#++(address[] targets, uint256[] values, bytes[] calldatas, string description) → uint256 proposalId++` [.item-kind]#external#
  1293. Create a new proposal. Vote start after a delay specified by {IGovernor-votingDelay} and lasts for a
  1294. duration specified by {IGovernor-votingPeriod}.
  1295. Emits a {ProposalCreated} event.
  1296. [.contract-item]
  1297. [[IGovernor-queue-address---uint256---bytes---bytes32-]]
  1298. ==== `[.contract-item-name]#++queue++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256 proposalId++` [.item-kind]#external#
  1299. Queue a proposal. Some governors require this step to be performed before execution can happen. If queuing
  1300. is not necessary, this function may revert.
  1301. Queuing a proposal requires the quorum to be reached, the vote to be successful, and the deadline to be reached.
  1302. Emits a {ProposalQueued} event.
  1303. [.contract-item]
  1304. [[IGovernor-execute-address---uint256---bytes---bytes32-]]
  1305. ==== `[.contract-item-name]#++execute++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256 proposalId++` [.item-kind]#external#
  1306. Execute a successful proposal. This requires the quorum to be reached, the vote to be successful, and the
  1307. deadline to be reached. Depending on the governor it might also be required that the proposal was queued and
  1308. that some delay passed.
  1309. Emits a {ProposalExecuted} event.
  1310. NOTE: Some modules can modify the requirements for execution, for example by adding an additional timelock.
  1311. [.contract-item]
  1312. [[IGovernor-cancel-address---uint256---bytes---bytes32-]]
  1313. ==== `[.contract-item-name]#++cancel++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256 proposalId++` [.item-kind]#external#
  1314. Cancel a proposal. A proposal is cancellable by the proposer, but only while it is Pending state, i.e.
  1315. before the vote starts.
  1316. Emits a {ProposalCanceled} event.
  1317. [.contract-item]
  1318. [[IGovernor-castVote-uint256-uint8-]]
  1319. ==== `[.contract-item-name]#++castVote++#++(uint256 proposalId, uint8 support) → uint256 balance++` [.item-kind]#external#
  1320. Cast a vote
  1321. Emits a {VoteCast} event.
  1322. [.contract-item]
  1323. [[IGovernor-castVoteWithReason-uint256-uint8-string-]]
  1324. ==== `[.contract-item-name]#++castVoteWithReason++#++(uint256 proposalId, uint8 support, string reason) → uint256 balance++` [.item-kind]#external#
  1325. Cast a vote with a reason
  1326. Emits a {VoteCast} event.
  1327. [.contract-item]
  1328. [[IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-]]
  1329. ==== `[.contract-item-name]#++castVoteWithReasonAndParams++#++(uint256 proposalId, uint8 support, string reason, bytes params) → uint256 balance++` [.item-kind]#external#
  1330. Cast a vote with a reason and additional encoded parameters
  1331. Emits a {VoteCast} or {VoteCastWithParams} event depending on the length of params.
  1332. [.contract-item]
  1333. [[IGovernor-castVoteBySig-uint256-uint8-address-bytes-]]
  1334. ==== `[.contract-item-name]#++castVoteBySig++#++(uint256 proposalId, uint8 support, address voter, bytes signature) → uint256 balance++` [.item-kind]#external#
  1335. Cast a vote using the voter's signature, including ERC-1271 signature support.
  1336. Emits a {VoteCast} event.
  1337. [.contract-item]
  1338. [[IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-]]
  1339. ==== `[.contract-item-name]#++castVoteWithReasonAndParamsBySig++#++(uint256 proposalId, uint8 support, address voter, string reason, bytes params, bytes signature) → uint256 balance++` [.item-kind]#external#
  1340. Cast a vote with a reason and additional encoded parameters using the voter's signature,
  1341. including ERC-1271 signature support.
  1342. Emits a {VoteCast} or {VoteCastWithParams} event depending on the length of params.
  1343. [.contract-item]
  1344. [[IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-]]
  1345. ==== `[.contract-item-name]#++ProposalCreated++#++(uint256 proposalId, address proposer, address[] targets, uint256[] values, string[] signatures, bytes[] calldatas, uint256 voteStart, uint256 voteEnd, string description)++` [.item-kind]#event#
  1346. Emitted when a proposal is created.
  1347. [.contract-item]
  1348. [[IGovernor-ProposalQueued-uint256-uint256-]]
  1349. ==== `[.contract-item-name]#++ProposalQueued++#++(uint256 proposalId, uint256 etaSeconds)++` [.item-kind]#event#
  1350. Emitted when a proposal is queued.
  1351. [.contract-item]
  1352. [[IGovernor-ProposalExecuted-uint256-]]
  1353. ==== `[.contract-item-name]#++ProposalExecuted++#++(uint256 proposalId)++` [.item-kind]#event#
  1354. Emitted when a proposal is executed.
  1355. [.contract-item]
  1356. [[IGovernor-ProposalCanceled-uint256-]]
  1357. ==== `[.contract-item-name]#++ProposalCanceled++#++(uint256 proposalId)++` [.item-kind]#event#
  1358. Emitted when a proposal is canceled.
  1359. [.contract-item]
  1360. [[IGovernor-VoteCast-address-uint256-uint8-uint256-string-]]
  1361. ==== `[.contract-item-name]#++VoteCast++#++(address indexed voter, uint256 proposalId, uint8 support, uint256 weight, string reason)++` [.item-kind]#event#
  1362. Emitted when a vote is cast without params.
  1363. Note: `support` values should be seen as buckets. Their interpretation depends on the voting module used.
  1364. [.contract-item]
  1365. [[IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-]]
  1366. ==== `[.contract-item-name]#++VoteCastWithParams++#++(address indexed voter, uint256 proposalId, uint8 support, uint256 weight, string reason, bytes params)++` [.item-kind]#event#
  1367. Emitted when a vote is cast with params.
  1368. Note: `support` values should be seen as buckets. Their interpretation depends on the voting module used.
  1369. `params` are additional encoded parameters. Their interpepretation also depends on the voting module used.
  1370. [.contract-item]
  1371. [[IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-]]
  1372. ==== `[.contract-item-name]#++GovernorInvalidProposalLength++#++(uint256 targets, uint256 calldatas, uint256 values)++` [.item-kind]#error#
  1373. Empty proposal or a mismatch between the parameters length for a proposal call.
  1374. [.contract-item]
  1375. [[IGovernor-GovernorAlreadyCastVote-address-]]
  1376. ==== `[.contract-item-name]#++GovernorAlreadyCastVote++#++(address voter)++` [.item-kind]#error#
  1377. The vote was already cast.
  1378. [.contract-item]
  1379. [[IGovernor-GovernorDisabledDeposit--]]
  1380. ==== `[.contract-item-name]#++GovernorDisabledDeposit++#++()++` [.item-kind]#error#
  1381. Token deposits are disabled in this contract.
  1382. [.contract-item]
  1383. [[IGovernor-GovernorOnlyProposer-address-]]
  1384. ==== `[.contract-item-name]#++GovernorOnlyProposer++#++(address account)++` [.item-kind]#error#
  1385. The `account` is not a proposer.
  1386. [.contract-item]
  1387. [[IGovernor-GovernorOnlyExecutor-address-]]
  1388. ==== `[.contract-item-name]#++GovernorOnlyExecutor++#++(address account)++` [.item-kind]#error#
  1389. The `account` is not the governance executor.
  1390. [.contract-item]
  1391. [[IGovernor-GovernorNonexistentProposal-uint256-]]
  1392. ==== `[.contract-item-name]#++GovernorNonexistentProposal++#++(uint256 proposalId)++` [.item-kind]#error#
  1393. The `proposalId` doesn't exist.
  1394. [.contract-item]
  1395. [[IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-]]
  1396. ==== `[.contract-item-name]#++GovernorUnexpectedProposalState++#++(uint256 proposalId, enum IGovernor.ProposalState current, bytes32 expectedStates)++` [.item-kind]#error#
  1397. The current state of a proposal is not the required for performing an operation.
  1398. The `expectedStates` is a bitmap with the bits enabled for each ProposalState enum position
  1399. counting from right to left.
  1400. NOTE: If `expectedState` is `bytes32(0)`, the proposal is expected to not be in any state (i.e. not exist).
  1401. This is the case when a proposal that is expected to be unset is already initiated (the proposal is duplicated).
  1402. See {Governor-_encodeStateBitmap}.
  1403. [.contract-item]
  1404. [[IGovernor-GovernorInvalidVotingPeriod-uint256-]]
  1405. ==== `[.contract-item-name]#++GovernorInvalidVotingPeriod++#++(uint256 votingPeriod)++` [.item-kind]#error#
  1406. The voting period set is not a valid period.
  1407. [.contract-item]
  1408. [[IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-]]
  1409. ==== `[.contract-item-name]#++GovernorInsufficientProposerVotes++#++(address proposer, uint256 votes, uint256 threshold)++` [.item-kind]#error#
  1410. The `proposer` does not have the required votes to create a proposal.
  1411. [.contract-item]
  1412. [[IGovernor-GovernorRestrictedProposer-address-]]
  1413. ==== `[.contract-item-name]#++GovernorRestrictedProposer++#++(address proposer)++` [.item-kind]#error#
  1414. The `proposer` is not allowed to create a proposal.
  1415. [.contract-item]
  1416. [[IGovernor-GovernorInvalidVoteType--]]
  1417. ==== `[.contract-item-name]#++GovernorInvalidVoteType++#++()++` [.item-kind]#error#
  1418. The vote type used is not valid for the corresponding counting module.
  1419. [.contract-item]
  1420. [[IGovernor-GovernorQueueNotImplemented--]]
  1421. ==== `[.contract-item-name]#++GovernorQueueNotImplemented++#++()++` [.item-kind]#error#
  1422. Queue operation is not implemented for this governor. Execute should be called directly.
  1423. [.contract-item]
  1424. [[IGovernor-GovernorNotQueuedProposal-uint256-]]
  1425. ==== `[.contract-item-name]#++GovernorNotQueuedProposal++#++(uint256 proposalId)++` [.item-kind]#error#
  1426. The proposal hasn't been queued yet.
  1427. [.contract-item]
  1428. [[IGovernor-GovernorAlreadyQueuedProposal-uint256-]]
  1429. ==== `[.contract-item-name]#++GovernorAlreadyQueuedProposal++#++(uint256 proposalId)++` [.item-kind]#error#
  1430. The proposal has already been queued.
  1431. [.contract-item]
  1432. [[IGovernor-GovernorInvalidSignature-address-]]
  1433. ==== `[.contract-item-name]#++GovernorInvalidSignature++#++(address voter)++` [.item-kind]#error#
  1434. The provided signature is not valid for the expected `voter`.
  1435. If the `voter` is a contract, the signature is not valid using {IERC1271-isValidSignature}.
  1436. :BALLOT_TYPEHASH: pass:normal[xref:#Governor-BALLOT_TYPEHASH-bytes32[`++BALLOT_TYPEHASH++`]]
  1437. :EXTENDED_BALLOT_TYPEHASH: pass:normal[xref:#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32[`++EXTENDED_BALLOT_TYPEHASH++`]]
  1438. :ProposalCore: pass:normal[xref:#Governor-ProposalCore[`++ProposalCore++`]]
  1439. :onlyGovernance: pass:normal[xref:#Governor-onlyGovernance--[`++onlyGovernance++`]]
  1440. :constructor: pass:normal[xref:#Governor-constructor-string-[`++constructor++`]]
  1441. :receive: pass:normal[xref:#Governor-receive--[`++receive++`]]
  1442. :supportsInterface: pass:normal[xref:#Governor-supportsInterface-bytes4-[`++supportsInterface++`]]
  1443. :name: pass:normal[xref:#Governor-name--[`++name++`]]
  1444. :version: pass:normal[xref:#Governor-version--[`++version++`]]
  1445. :hashProposal: pass:normal[xref:#Governor-hashProposal-address---uint256---bytes---bytes32-[`++hashProposal++`]]
  1446. :state: pass:normal[xref:#Governor-state-uint256-[`++state++`]]
  1447. :proposalThreshold: pass:normal[xref:#Governor-proposalThreshold--[`++proposalThreshold++`]]
  1448. :proposalSnapshot: pass:normal[xref:#Governor-proposalSnapshot-uint256-[`++proposalSnapshot++`]]
  1449. :proposalDeadline: pass:normal[xref:#Governor-proposalDeadline-uint256-[`++proposalDeadline++`]]
  1450. :proposalProposer: pass:normal[xref:#Governor-proposalProposer-uint256-[`++proposalProposer++`]]
  1451. :proposalEta: pass:normal[xref:#Governor-proposalEta-uint256-[`++proposalEta++`]]
  1452. :proposalNeedsQueuing: pass:normal[xref:#Governor-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  1453. :_checkGovernance: pass:normal[xref:#Governor-_checkGovernance--[`++_checkGovernance++`]]
  1454. :_quorumReached: pass:normal[xref:#Governor-_quorumReached-uint256-[`++_quorumReached++`]]
  1455. :_voteSucceeded: pass:normal[xref:#Governor-_voteSucceeded-uint256-[`++_voteSucceeded++`]]
  1456. :_getVotes: pass:normal[xref:#Governor-_getVotes-address-uint256-bytes-[`++_getVotes++`]]
  1457. :_countVote: pass:normal[xref:#Governor-_countVote-uint256-address-uint8-uint256-bytes-[`++_countVote++`]]
  1458. :_defaultParams: pass:normal[xref:#Governor-_defaultParams--[`++_defaultParams++`]]
  1459. :propose: pass:normal[xref:#Governor-propose-address---uint256---bytes---string-[`++propose++`]]
  1460. :_propose: pass:normal[xref:#Governor-_propose-address---uint256---bytes---string-address-[`++_propose++`]]
  1461. :queue: pass:normal[xref:#Governor-queue-address---uint256---bytes---bytes32-[`++queue++`]]
  1462. :_queueOperations: pass:normal[xref:#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-[`++_queueOperations++`]]
  1463. :execute: pass:normal[xref:#Governor-execute-address---uint256---bytes---bytes32-[`++execute++`]]
  1464. :_executeOperations: pass:normal[xref:#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-[`++_executeOperations++`]]
  1465. :cancel: pass:normal[xref:#Governor-cancel-address---uint256---bytes---bytes32-[`++cancel++`]]
  1466. :_cancel: pass:normal[xref:#Governor-_cancel-address---uint256---bytes---bytes32-[`++_cancel++`]]
  1467. :getVotes: pass:normal[xref:#Governor-getVotes-address-uint256-[`++getVotes++`]]
  1468. :getVotesWithParams: pass:normal[xref:#Governor-getVotesWithParams-address-uint256-bytes-[`++getVotesWithParams++`]]
  1469. :castVote: pass:normal[xref:#Governor-castVote-uint256-uint8-[`++castVote++`]]
  1470. :castVoteWithReason: pass:normal[xref:#Governor-castVoteWithReason-uint256-uint8-string-[`++castVoteWithReason++`]]
  1471. :castVoteWithReasonAndParams: pass:normal[xref:#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-[`++castVoteWithReasonAndParams++`]]
  1472. :castVoteBySig: pass:normal[xref:#Governor-castVoteBySig-uint256-uint8-address-bytes-[`++castVoteBySig++`]]
  1473. :castVoteWithReasonAndParamsBySig: pass:normal[xref:#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-[`++castVoteWithReasonAndParamsBySig++`]]
  1474. :_castVote: pass:normal[xref:#Governor-_castVote-uint256-address-uint8-string-[`++_castVote++`]]
  1475. :_castVote: pass:normal[xref:#Governor-_castVote-uint256-address-uint8-string-bytes-[`++_castVote++`]]
  1476. :relay: pass:normal[xref:#Governor-relay-address-uint256-bytes-[`++relay++`]]
  1477. :_executor: pass:normal[xref:#Governor-_executor--[`++_executor++`]]
  1478. :onERC721Received: pass:normal[xref:#Governor-onERC721Received-address-address-uint256-bytes-[`++onERC721Received++`]]
  1479. :onERC1155Received: pass:normal[xref:#Governor-onERC1155Received-address-address-uint256-uint256-bytes-[`++onERC1155Received++`]]
  1480. :onERC1155BatchReceived: pass:normal[xref:#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-[`++onERC1155BatchReceived++`]]
  1481. :_encodeStateBitmap: pass:normal[xref:#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-[`++_encodeStateBitmap++`]]
  1482. :_isValidDescriptionForProposer: pass:normal[xref:#Governor-_isValidDescriptionForProposer-address-string-[`++_isValidDescriptionForProposer++`]]
  1483. :clock: pass:normal[xref:#Governor-clock--[`++clock++`]]
  1484. :CLOCK_MODE: pass:normal[xref:#Governor-CLOCK_MODE--[`++CLOCK_MODE++`]]
  1485. :votingDelay: pass:normal[xref:#Governor-votingDelay--[`++votingDelay++`]]
  1486. :votingPeriod: pass:normal[xref:#Governor-votingPeriod--[`++votingPeriod++`]]
  1487. :quorum: pass:normal[xref:#Governor-quorum-uint256-[`++quorum++`]]
  1488. [.contract]
  1489. [[Governor]]
  1490. === `++Governor++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/Governor.sol[{github-icon},role=heading-link]
  1491. [.hljs-theme-light.nopadding]
  1492. ```solidity
  1493. import "@openzeppelin/contracts/governance/Governor.sol";
  1494. ```
  1495. Core of the governance system, designed to be extended through various modules.
  1496. This contract is abstract and requires several functions to be implemented in various modules:
  1497. - A counting module must implement {quorum}, {_quorumReached}, {_voteSucceeded} and {_countVote}
  1498. - A voting module must implement {_getVotes}
  1499. - Additionally, {votingPeriod} must also be implemented
  1500. [.contract-index]
  1501. .Modifiers
  1502. --
  1503. * {xref-Governor-onlyGovernance--}[`++onlyGovernance()++`]
  1504. --
  1505. [.contract-index]
  1506. .Functions
  1507. --
  1508. * {xref-Governor-constructor-string-}[`++constructor(name_)++`]
  1509. * {xref-Governor-receive--}[`++receive()++`]
  1510. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  1511. * {xref-Governor-name--}[`++name()++`]
  1512. * {xref-Governor-version--}[`++version()++`]
  1513. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  1514. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  1515. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  1516. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  1517. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  1518. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  1519. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  1520. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  1521. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  1522. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  1523. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  1524. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  1525. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, weight, params)++`]
  1526. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  1527. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  1528. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  1529. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  1530. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  1531. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  1532. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  1533. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  1534. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  1535. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  1536. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  1537. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  1538. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  1539. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  1540. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  1541. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  1542. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  1543. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  1544. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  1545. * {xref-Governor-_executor--}[`++_executor()++`]
  1546. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  1547. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  1548. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  1549. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  1550. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  1551. * {xref-Governor-clock--}[`++clock()++`]
  1552. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  1553. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  1554. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  1555. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  1556. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  1557. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  1558. [.contract-subindex-inherited]
  1559. .IERC1155Receiver
  1560. [.contract-subindex-inherited]
  1561. .IERC721Receiver
  1562. [.contract-subindex-inherited]
  1563. .IGovernor
  1564. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  1565. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  1566. [.contract-subindex-inherited]
  1567. .IERC6372
  1568. [.contract-subindex-inherited]
  1569. .Nonces
  1570. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  1571. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  1572. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  1573. [.contract-subindex-inherited]
  1574. .EIP712
  1575. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  1576. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  1577. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  1578. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  1579. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  1580. [.contract-subindex-inherited]
  1581. .IERC5267
  1582. [.contract-subindex-inherited]
  1583. .ERC165
  1584. [.contract-subindex-inherited]
  1585. .IERC165
  1586. --
  1587. [.contract-index]
  1588. .Events
  1589. --
  1590. [.contract-subindex-inherited]
  1591. .IERC1155Receiver
  1592. [.contract-subindex-inherited]
  1593. .IERC721Receiver
  1594. [.contract-subindex-inherited]
  1595. .IGovernor
  1596. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  1597. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  1598. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  1599. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  1600. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  1601. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  1602. [.contract-subindex-inherited]
  1603. .IERC6372
  1604. [.contract-subindex-inherited]
  1605. .Nonces
  1606. [.contract-subindex-inherited]
  1607. .EIP712
  1608. [.contract-subindex-inherited]
  1609. .IERC5267
  1610. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  1611. [.contract-subindex-inherited]
  1612. .ERC165
  1613. [.contract-subindex-inherited]
  1614. .IERC165
  1615. --
  1616. [.contract-index]
  1617. .Errors
  1618. --
  1619. [.contract-subindex-inherited]
  1620. .IERC1155Receiver
  1621. [.contract-subindex-inherited]
  1622. .IERC721Receiver
  1623. [.contract-subindex-inherited]
  1624. .IGovernor
  1625. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  1626. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  1627. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  1628. * {xref-IGovernor-GovernorOnlyProposer-address-}[`++GovernorOnlyProposer(account)++`]
  1629. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  1630. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  1631. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  1632. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  1633. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  1634. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  1635. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  1636. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  1637. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  1638. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  1639. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  1640. [.contract-subindex-inherited]
  1641. .IERC6372
  1642. [.contract-subindex-inherited]
  1643. .Nonces
  1644. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  1645. [.contract-subindex-inherited]
  1646. .EIP712
  1647. [.contract-subindex-inherited]
  1648. .IERC5267
  1649. [.contract-subindex-inherited]
  1650. .ERC165
  1651. [.contract-subindex-inherited]
  1652. .IERC165
  1653. --
  1654. [.contract-item]
  1655. [[Governor-onlyGovernance--]]
  1656. ==== `[.contract-item-name]#++onlyGovernance++#++()++` [.item-kind]#modifier#
  1657. Restricts a function so it can only be executed through governance proposals. For example, governance
  1658. parameter setters in {GovernorSettings} are protected using this modifier.
  1659. The governance executing address may be different from the Governor's own address, for example it could be a
  1660. timelock. This can be customized by modules by overriding {_executor}. The executor is only able to invoke these
  1661. functions during the execution of the governor's {execute} function, and not under any other circumstances. Thus,
  1662. for example, additional timelock proposers are not able to change governance parameters without going through the
  1663. governance protocol (since v4.6).
  1664. [.contract-item]
  1665. [[Governor-constructor-string-]]
  1666. ==== `[.contract-item-name]#++constructor++#++(string name_)++` [.item-kind]#internal#
  1667. Sets the value for {name} and {version}
  1668. [.contract-item]
  1669. [[Governor-receive--]]
  1670. ==== `[.contract-item-name]#++receive++#++()++` [.item-kind]#external#
  1671. Function to receive ETH that will be handled by the governor (disabled if executor is a third party contract)
  1672. [.contract-item]
  1673. [[Governor-supportsInterface-bytes4-]]
  1674. ==== `[.contract-item-name]#++supportsInterface++#++(bytes4 interfaceId) → bool++` [.item-kind]#public#
  1675. See {IERC165-supportsInterface}.
  1676. [.contract-item]
  1677. [[Governor-name--]]
  1678. ==== `[.contract-item-name]#++name++#++() → string++` [.item-kind]#public#
  1679. See {IGovernor-name}.
  1680. [.contract-item]
  1681. [[Governor-version--]]
  1682. ==== `[.contract-item-name]#++version++#++() → string++` [.item-kind]#public#
  1683. See {IGovernor-version}.
  1684. [.contract-item]
  1685. [[Governor-hashProposal-address---uint256---bytes---bytes32-]]
  1686. ==== `[.contract-item-name]#++hashProposal++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#public#
  1687. See {IGovernor-hashProposal}.
  1688. The proposal id is produced by hashing the ABI encoded `targets` array, the `values` array, the `calldatas` array
  1689. and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id
  1690. can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in
  1691. advance, before the proposal is submitted.
  1692. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the
  1693. same proposal (with same operation and same description) will have the same id if submitted on multiple governors
  1694. across multiple networks. This also means that in order to execute the same operation twice (on the same
  1695. governor) the proposer will have to change the description in order to avoid proposal id conflicts.
  1696. [.contract-item]
  1697. [[Governor-state-uint256-]]
  1698. ==== `[.contract-item-name]#++state++#++(uint256 proposalId) → enum IGovernor.ProposalState++` [.item-kind]#public#
  1699. See {IGovernor-state}.
  1700. [.contract-item]
  1701. [[Governor-proposalThreshold--]]
  1702. ==== `[.contract-item-name]#++proposalThreshold++#++() → uint256++` [.item-kind]#public#
  1703. See {IGovernor-proposalThreshold}.
  1704. [.contract-item]
  1705. [[Governor-proposalSnapshot-uint256-]]
  1706. ==== `[.contract-item-name]#++proposalSnapshot++#++(uint256 proposalId) → uint256++` [.item-kind]#public#
  1707. See {IGovernor-proposalSnapshot}.
  1708. [.contract-item]
  1709. [[Governor-proposalDeadline-uint256-]]
  1710. ==== `[.contract-item-name]#++proposalDeadline++#++(uint256 proposalId) → uint256++` [.item-kind]#public#
  1711. See {IGovernor-proposalDeadline}.
  1712. [.contract-item]
  1713. [[Governor-proposalProposer-uint256-]]
  1714. ==== `[.contract-item-name]#++proposalProposer++#++(uint256 proposalId) → address++` [.item-kind]#public#
  1715. See {IGovernor-proposalProposer}.
  1716. [.contract-item]
  1717. [[Governor-proposalEta-uint256-]]
  1718. ==== `[.contract-item-name]#++proposalEta++#++(uint256 proposalId) → uint256++` [.item-kind]#public#
  1719. See {IGovernor-proposalEta}.
  1720. [.contract-item]
  1721. [[Governor-proposalNeedsQueuing-uint256-]]
  1722. ==== `[.contract-item-name]#++proposalNeedsQueuing++#++(uint256) → bool++` [.item-kind]#public#
  1723. See {IGovernor-proposalNeedsQueuing}.
  1724. [.contract-item]
  1725. [[Governor-_checkGovernance--]]
  1726. ==== `[.contract-item-name]#++_checkGovernance++#++()++` [.item-kind]#internal#
  1727. Reverts if the `msg.sender` is not the executor. In case the executor is not this contract
  1728. itself, the function reverts if `msg.data` is not whitelisted as a result of an {execute}
  1729. operation. See {onlyGovernance}.
  1730. [.contract-item]
  1731. [[Governor-_quorumReached-uint256-]]
  1732. ==== `[.contract-item-name]#++_quorumReached++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  1733. Amount of votes already cast passes the threshold limit.
  1734. [.contract-item]
  1735. [[Governor-_voteSucceeded-uint256-]]
  1736. ==== `[.contract-item-name]#++_voteSucceeded++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  1737. Is the proposal successful or not.
  1738. [.contract-item]
  1739. [[Governor-_getVotes-address-uint256-bytes-]]
  1740. ==== `[.contract-item-name]#++_getVotes++#++(address account, uint256 timepoint, bytes params) → uint256++` [.item-kind]#internal#
  1741. Get the voting weight of `account` at a specific `timepoint`, for a vote as described by `params`.
  1742. [.contract-item]
  1743. [[Governor-_countVote-uint256-address-uint8-uint256-bytes-]]
  1744. ==== `[.contract-item-name]#++_countVote++#++(uint256 proposalId, address account, uint8 support, uint256 weight, bytes params)++` [.item-kind]#internal#
  1745. Register a vote for `proposalId` by `account` with a given `support`, voting `weight` and voting `params`.
  1746. Note: Support is generic and can represent various things depending on the voting system used.
  1747. [.contract-item]
  1748. [[Governor-_defaultParams--]]
  1749. ==== `[.contract-item-name]#++_defaultParams++#++() → bytes++` [.item-kind]#internal#
  1750. Default additional encoded parameters used by castVote methods that don't include them
  1751. Note: Should be overridden by specific implementations to use an appropriate value, the
  1752. meaning of the additional params, in the context of that implementation
  1753. [.contract-item]
  1754. [[Governor-propose-address---uint256---bytes---string-]]
  1755. ==== `[.contract-item-name]#++propose++#++(address[] targets, uint256[] values, bytes[] calldatas, string description) → uint256++` [.item-kind]#public#
  1756. See {IGovernor-propose}. This function has opt-in frontrunning protection, described in {_isValidDescriptionForProposer}.
  1757. [.contract-item]
  1758. [[Governor-_propose-address---uint256---bytes---string-address-]]
  1759. ==== `[.contract-item-name]#++_propose++#++(address[] targets, uint256[] values, bytes[] calldatas, string description, address proposer) → uint256 proposalId++` [.item-kind]#internal#
  1760. Internal propose mechanism. Can be overridden to add more logic on proposal creation.
  1761. Emits a {IGovernor-ProposalCreated} event.
  1762. [.contract-item]
  1763. [[Governor-queue-address---uint256---bytes---bytes32-]]
  1764. ==== `[.contract-item-name]#++queue++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#public#
  1765. See {IGovernor-queue}.
  1766. [.contract-item]
  1767. [[Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-]]
  1768. ==== `[.contract-item-name]#++_queueOperations++#++(uint256, address[], uint256[], bytes[], bytes32) → uint48++` [.item-kind]#internal#
  1769. Internal queuing mechanism. Can be overridden (without a super call) to modify the way queuing is
  1770. performed (for example adding a vault/timelock).
  1771. This is empty by default, and must be overridden to implement queuing.
  1772. This function returns a timestamp that describes the expected ETA for execution. If the returned value is 0
  1773. (which is the default value), the core will consider queueing did not succeed, and the public {queue} function
  1774. will revert.
  1775. NOTE: Calling this function directly will NOT check the current state of the proposal, or emit the
  1776. `ProposalQueued` event. Queuing a proposal should be done using {queue}.
  1777. [.contract-item]
  1778. [[Governor-execute-address---uint256---bytes---bytes32-]]
  1779. ==== `[.contract-item-name]#++execute++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#public#
  1780. See {IGovernor-execute}.
  1781. [.contract-item]
  1782. [[Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-]]
  1783. ==== `[.contract-item-name]#++_executeOperations++#++(uint256, address[] targets, uint256[] values, bytes[] calldatas, bytes32)++` [.item-kind]#internal#
  1784. Internal execution mechanism. Can be overridden (without a super call) to modify the way execution is
  1785. performed (for example adding a vault/timelock).
  1786. NOTE: Calling this function directly will NOT check the current state of the proposal, set the executed flag to
  1787. true or emit the `ProposalExecuted` event. Executing a proposal should be done using {execute} or {_execute}.
  1788. [.contract-item]
  1789. [[Governor-cancel-address---uint256---bytes---bytes32-]]
  1790. ==== `[.contract-item-name]#++cancel++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#public#
  1791. See {IGovernor-cancel}.
  1792. [.contract-item]
  1793. [[Governor-_cancel-address---uint256---bytes---bytes32-]]
  1794. ==== `[.contract-item-name]#++_cancel++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#internal#
  1795. Internal cancel mechanism with minimal restrictions. A proposal can be cancelled in any state other than
  1796. Canceled, Expired, or Executed. Once cancelled a proposal can't be re-submitted.
  1797. Emits a {IGovernor-ProposalCanceled} event.
  1798. [.contract-item]
  1799. [[Governor-getVotes-address-uint256-]]
  1800. ==== `[.contract-item-name]#++getVotes++#++(address account, uint256 timepoint) → uint256++` [.item-kind]#public#
  1801. See {IGovernor-getVotes}.
  1802. [.contract-item]
  1803. [[Governor-getVotesWithParams-address-uint256-bytes-]]
  1804. ==== `[.contract-item-name]#++getVotesWithParams++#++(address account, uint256 timepoint, bytes params) → uint256++` [.item-kind]#public#
  1805. See {IGovernor-getVotesWithParams}.
  1806. [.contract-item]
  1807. [[Governor-castVote-uint256-uint8-]]
  1808. ==== `[.contract-item-name]#++castVote++#++(uint256 proposalId, uint8 support) → uint256++` [.item-kind]#public#
  1809. See {IGovernor-castVote}.
  1810. [.contract-item]
  1811. [[Governor-castVoteWithReason-uint256-uint8-string-]]
  1812. ==== `[.contract-item-name]#++castVoteWithReason++#++(uint256 proposalId, uint8 support, string reason) → uint256++` [.item-kind]#public#
  1813. See {IGovernor-castVoteWithReason}.
  1814. [.contract-item]
  1815. [[Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-]]
  1816. ==== `[.contract-item-name]#++castVoteWithReasonAndParams++#++(uint256 proposalId, uint8 support, string reason, bytes params) → uint256++` [.item-kind]#public#
  1817. See {IGovernor-castVoteWithReasonAndParams}.
  1818. [.contract-item]
  1819. [[Governor-castVoteBySig-uint256-uint8-address-bytes-]]
  1820. ==== `[.contract-item-name]#++castVoteBySig++#++(uint256 proposalId, uint8 support, address voter, bytes signature) → uint256++` [.item-kind]#public#
  1821. See {IGovernor-castVoteBySig}.
  1822. [.contract-item]
  1823. [[Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-]]
  1824. ==== `[.contract-item-name]#++castVoteWithReasonAndParamsBySig++#++(uint256 proposalId, uint8 support, address voter, string reason, bytes params, bytes signature) → uint256++` [.item-kind]#public#
  1825. See {IGovernor-castVoteWithReasonAndParamsBySig}.
  1826. [.contract-item]
  1827. [[Governor-_castVote-uint256-address-uint8-string-]]
  1828. ==== `[.contract-item-name]#++_castVote++#++(uint256 proposalId, address account, uint8 support, string reason) → uint256++` [.item-kind]#internal#
  1829. Internal vote casting mechanism: Check that the vote is pending, that it has not been cast yet, retrieve
  1830. voting weight using {IGovernor-getVotes} and call the {_countVote} internal function. Uses the _defaultParams().
  1831. Emits a {IGovernor-VoteCast} event.
  1832. [.contract-item]
  1833. [[Governor-_castVote-uint256-address-uint8-string-bytes-]]
  1834. ==== `[.contract-item-name]#++_castVote++#++(uint256 proposalId, address account, uint8 support, string reason, bytes params) → uint256++` [.item-kind]#internal#
  1835. Internal vote casting mechanism: Check that the vote is pending, that it has not been cast yet, retrieve
  1836. voting weight using {IGovernor-getVotes} and call the {_countVote} internal function.
  1837. Emits a {IGovernor-VoteCast} event.
  1838. [.contract-item]
  1839. [[Governor-relay-address-uint256-bytes-]]
  1840. ==== `[.contract-item-name]#++relay++#++(address target, uint256 value, bytes data)++` [.item-kind]#external#
  1841. Relays a transaction or function call to an arbitrary target. In cases where the governance executor
  1842. is some contract other than the governor itself, like when using a timelock, this function can be invoked
  1843. in a governance proposal to recover tokens or Ether that was sent to the governor contract by mistake.
  1844. Note that if the executor is simply the governor itself, use of `relay` is redundant.
  1845. [.contract-item]
  1846. [[Governor-_executor--]]
  1847. ==== `[.contract-item-name]#++_executor++#++() → address++` [.item-kind]#internal#
  1848. Address through which the governor executes action. Will be overloaded by module that execute actions
  1849. through another contract such as a timelock.
  1850. [.contract-item]
  1851. [[Governor-onERC721Received-address-address-uint256-bytes-]]
  1852. ==== `[.contract-item-name]#++onERC721Received++#++(address, address, uint256, bytes) → bytes4++` [.item-kind]#public#
  1853. See {IERC721Receiver-onERC721Received}.
  1854. Receiving tokens is disabled if the governance executor is other than the governor itself (eg. when using with a timelock).
  1855. [.contract-item]
  1856. [[Governor-onERC1155Received-address-address-uint256-uint256-bytes-]]
  1857. ==== `[.contract-item-name]#++onERC1155Received++#++(address, address, uint256, uint256, bytes) → bytes4++` [.item-kind]#public#
  1858. See {IERC1155Receiver-onERC1155Received}.
  1859. Receiving tokens is disabled if the governance executor is other than the governor itself (eg. when using with a timelock).
  1860. [.contract-item]
  1861. [[Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-]]
  1862. ==== `[.contract-item-name]#++onERC1155BatchReceived++#++(address, address, uint256[], uint256[], bytes) → bytes4++` [.item-kind]#public#
  1863. See {IERC1155Receiver-onERC1155BatchReceived}.
  1864. Receiving tokens is disabled if the governance executor is other than the governor itself (eg. when using with a timelock).
  1865. [.contract-item]
  1866. [[Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-]]
  1867. ==== `[.contract-item-name]#++_encodeStateBitmap++#++(enum IGovernor.ProposalState proposalState) → bytes32++` [.item-kind]#internal#
  1868. Encodes a `ProposalState` into a `bytes32` representation where each bit enabled corresponds to
  1869. the underlying position in the `ProposalState` enum. For example:
  1870. 0x000...10000
  1871. ^^^^^^------ ...
  1872. ^----- Succeeded
  1873. ^---- Defeated
  1874. ^--- Canceled
  1875. ^-- Active
  1876. ^- Pending
  1877. [.contract-item]
  1878. [[Governor-_isValidDescriptionForProposer-address-string-]]
  1879. ==== `[.contract-item-name]#++_isValidDescriptionForProposer++#++(address proposer, string description) → bool++` [.item-kind]#internal#
  1880. [.contract-item]
  1881. [[Governor-clock--]]
  1882. ==== `[.contract-item-name]#++clock++#++() → uint48++` [.item-kind]#public#
  1883. Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting).
  1884. [.contract-item]
  1885. [[Governor-CLOCK_MODE--]]
  1886. ==== `[.contract-item-name]#++CLOCK_MODE++#++() → string++` [.item-kind]#public#
  1887. Description of the clock
  1888. [.contract-item]
  1889. [[Governor-votingDelay--]]
  1890. ==== `[.contract-item-name]#++votingDelay++#++() → uint256++` [.item-kind]#public#
  1891. Delay, between the proposal is created and the vote starts. The unit this duration is expressed in depends
  1892. on the clock (see EIP-6372) this contract uses.
  1893. This can be increased to leave time for users to buy voting power, or delegate it, before the voting of a
  1894. proposal starts.
  1895. NOTE: While this interface returns a uint256, timepoints are stored as uint48 following the ERC-6372 clock type.
  1896. Consequently this value must fit in a uint48 (when added to the current clock). See {IERC6372-clock}.
  1897. [.contract-item]
  1898. [[Governor-votingPeriod--]]
  1899. ==== `[.contract-item-name]#++votingPeriod++#++() → uint256++` [.item-kind]#public#
  1900. Delay between the vote start and vote end. The unit this duration is expressed in depends on the clock
  1901. (see EIP-6372) this contract uses.
  1902. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting
  1903. duration compared to the voting delay.
  1904. NOTE: This value is stored when the proposal is submitted so that possible changes to the value do not affect
  1905. proposals that have already been submitted. The type used to save it is a uint32. Consequently, while this
  1906. interface returns a uint256, the value it returns should fit in a uint32.
  1907. [.contract-item]
  1908. [[Governor-quorum-uint256-]]
  1909. ==== `[.contract-item-name]#++quorum++#++(uint256 timepoint) → uint256++` [.item-kind]#public#
  1910. Minimum number of cast voted required for a proposal to be successful.
  1911. NOTE: The `timepoint` parameter corresponds to the snapshot used for counting vote. This allows to scale the
  1912. quorum depending on values such as the totalSupply of a token at this timepoint (see {ERC20Votes}).
  1913. [.contract-item]
  1914. [[Governor-BALLOT_TYPEHASH-bytes32]]
  1915. ==== `[.contract-item-name]#++BALLOT_TYPEHASH++#++() → bytes32++` [.item-kind]#public#
  1916. [.contract-item]
  1917. [[Governor-EXTENDED_BALLOT_TYPEHASH-bytes32]]
  1918. ==== `[.contract-item-name]#++EXTENDED_BALLOT_TYPEHASH++#++() → bytes32++` [.item-kind]#public#
  1919. === Modules
  1920. :VoteType: pass:normal[xref:#GovernorCountingSimple-VoteType[`++VoteType++`]]
  1921. :ProposalVote: pass:normal[xref:#GovernorCountingSimple-ProposalVote[`++ProposalVote++`]]
  1922. :COUNTING_MODE: pass:normal[xref:#GovernorCountingSimple-COUNTING_MODE--[`++COUNTING_MODE++`]]
  1923. :hasVoted: pass:normal[xref:#GovernorCountingSimple-hasVoted-uint256-address-[`++hasVoted++`]]
  1924. :proposalVotes: pass:normal[xref:#GovernorCountingSimple-proposalVotes-uint256-[`++proposalVotes++`]]
  1925. :_quorumReached: pass:normal[xref:#GovernorCountingSimple-_quorumReached-uint256-[`++_quorumReached++`]]
  1926. :_voteSucceeded: pass:normal[xref:#GovernorCountingSimple-_voteSucceeded-uint256-[`++_voteSucceeded++`]]
  1927. :_countVote: pass:normal[xref:#GovernorCountingSimple-_countVote-uint256-address-uint8-uint256-bytes-[`++_countVote++`]]
  1928. [.contract]
  1929. [[GovernorCountingSimple]]
  1930. === `++GovernorCountingSimple++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/extensions/GovernorCountingSimple.sol[{github-icon},role=heading-link]
  1931. [.hljs-theme-light.nopadding]
  1932. ```solidity
  1933. import "@openzeppelin/contracts/governance/extensions/GovernorCountingSimple.sol";
  1934. ```
  1935. Extension of {Governor} for simple, 3 options, vote counting.
  1936. [.contract-index]
  1937. .Functions
  1938. --
  1939. * {xref-GovernorCountingSimple-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  1940. * {xref-GovernorCountingSimple-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  1941. * {xref-GovernorCountingSimple-proposalVotes-uint256-}[`++proposalVotes(proposalId)++`]
  1942. * {xref-GovernorCountingSimple-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  1943. * {xref-GovernorCountingSimple-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  1944. * {xref-GovernorCountingSimple-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, weight, )++`]
  1945. [.contract-subindex-inherited]
  1946. .Governor
  1947. * {xref-Governor-receive--}[`++receive()++`]
  1948. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  1949. * {xref-Governor-name--}[`++name()++`]
  1950. * {xref-Governor-version--}[`++version()++`]
  1951. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  1952. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  1953. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  1954. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  1955. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  1956. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  1957. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  1958. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  1959. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  1960. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  1961. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  1962. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  1963. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  1964. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  1965. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  1966. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  1967. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  1968. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  1969. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  1970. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  1971. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  1972. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  1973. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  1974. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  1975. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  1976. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  1977. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  1978. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  1979. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  1980. * {xref-Governor-_executor--}[`++_executor()++`]
  1981. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  1982. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  1983. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  1984. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  1985. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  1986. * {xref-Governor-clock--}[`++clock()++`]
  1987. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  1988. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  1989. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  1990. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  1991. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  1992. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  1993. [.contract-subindex-inherited]
  1994. .IERC1155Receiver
  1995. [.contract-subindex-inherited]
  1996. .IERC721Receiver
  1997. [.contract-subindex-inherited]
  1998. .IGovernor
  1999. [.contract-subindex-inherited]
  2000. .IERC6372
  2001. [.contract-subindex-inherited]
  2002. .Nonces
  2003. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  2004. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  2005. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  2006. [.contract-subindex-inherited]
  2007. .EIP712
  2008. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  2009. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  2010. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  2011. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  2012. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  2013. [.contract-subindex-inherited]
  2014. .IERC5267
  2015. [.contract-subindex-inherited]
  2016. .ERC165
  2017. [.contract-subindex-inherited]
  2018. .IERC165
  2019. --
  2020. [.contract-index]
  2021. .Events
  2022. --
  2023. [.contract-subindex-inherited]
  2024. .Governor
  2025. [.contract-subindex-inherited]
  2026. .IERC1155Receiver
  2027. [.contract-subindex-inherited]
  2028. .IERC721Receiver
  2029. [.contract-subindex-inherited]
  2030. .IGovernor
  2031. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  2032. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  2033. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  2034. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  2035. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  2036. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  2037. [.contract-subindex-inherited]
  2038. .IERC6372
  2039. [.contract-subindex-inherited]
  2040. .Nonces
  2041. [.contract-subindex-inherited]
  2042. .EIP712
  2043. [.contract-subindex-inherited]
  2044. .IERC5267
  2045. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  2046. [.contract-subindex-inherited]
  2047. .ERC165
  2048. [.contract-subindex-inherited]
  2049. .IERC165
  2050. --
  2051. [.contract-index]
  2052. .Errors
  2053. --
  2054. [.contract-subindex-inherited]
  2055. .Governor
  2056. [.contract-subindex-inherited]
  2057. .IERC1155Receiver
  2058. [.contract-subindex-inherited]
  2059. .IERC721Receiver
  2060. [.contract-subindex-inherited]
  2061. .IGovernor
  2062. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  2063. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  2064. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  2065. * {xref-IGovernor-GovernorOnlyProposer-address-}[`++GovernorOnlyProposer(account)++`]
  2066. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  2067. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  2068. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  2069. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  2070. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  2071. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  2072. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  2073. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  2074. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  2075. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  2076. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  2077. [.contract-subindex-inherited]
  2078. .IERC6372
  2079. [.contract-subindex-inherited]
  2080. .Nonces
  2081. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  2082. [.contract-subindex-inherited]
  2083. .EIP712
  2084. [.contract-subindex-inherited]
  2085. .IERC5267
  2086. [.contract-subindex-inherited]
  2087. .ERC165
  2088. [.contract-subindex-inherited]
  2089. .IERC165
  2090. --
  2091. [.contract-item]
  2092. [[GovernorCountingSimple-COUNTING_MODE--]]
  2093. ==== `[.contract-item-name]#++COUNTING_MODE++#++() → string++` [.item-kind]#public#
  2094. See {IGovernor-COUNTING_MODE}.
  2095. [.contract-item]
  2096. [[GovernorCountingSimple-hasVoted-uint256-address-]]
  2097. ==== `[.contract-item-name]#++hasVoted++#++(uint256 proposalId, address account) → bool++` [.item-kind]#public#
  2098. See {IGovernor-hasVoted}.
  2099. [.contract-item]
  2100. [[GovernorCountingSimple-proposalVotes-uint256-]]
  2101. ==== `[.contract-item-name]#++proposalVotes++#++(uint256 proposalId) → uint256 againstVotes, uint256 forVotes, uint256 abstainVotes++` [.item-kind]#public#
  2102. Accessor to the internal vote counts.
  2103. [.contract-item]
  2104. [[GovernorCountingSimple-_quorumReached-uint256-]]
  2105. ==== `[.contract-item-name]#++_quorumReached++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  2106. See {Governor-_quorumReached}.
  2107. [.contract-item]
  2108. [[GovernorCountingSimple-_voteSucceeded-uint256-]]
  2109. ==== `[.contract-item-name]#++_voteSucceeded++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  2110. See {Governor-_voteSucceeded}. In this module, the forVotes must be strictly over the againstVotes.
  2111. [.contract-item]
  2112. [[GovernorCountingSimple-_countVote-uint256-address-uint8-uint256-bytes-]]
  2113. ==== `[.contract-item-name]#++_countVote++#++(uint256 proposalId, address account, uint8 support, uint256 weight, bytes)++` [.item-kind]#internal#
  2114. See {Governor-_countVote}. In this module, the support follows the `VoteType` enum (from Governor Bravo).
  2115. :constructor: pass:normal[xref:#GovernorVotes-constructor-contract-IVotes-[`++constructor++`]]
  2116. :token: pass:normal[xref:#GovernorVotes-token--[`++token++`]]
  2117. :clock: pass:normal[xref:#GovernorVotes-clock--[`++clock++`]]
  2118. :CLOCK_MODE: pass:normal[xref:#GovernorVotes-CLOCK_MODE--[`++CLOCK_MODE++`]]
  2119. :_getVotes: pass:normal[xref:#GovernorVotes-_getVotes-address-uint256-bytes-[`++_getVotes++`]]
  2120. [.contract]
  2121. [[GovernorVotes]]
  2122. === `++GovernorVotes++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/extensions/GovernorVotes.sol[{github-icon},role=heading-link]
  2123. [.hljs-theme-light.nopadding]
  2124. ```solidity
  2125. import "@openzeppelin/contracts/governance/extensions/GovernorVotes.sol";
  2126. ```
  2127. Extension of {Governor} for voting weight extraction from an {ERC20Votes} token, or since v4.5 an {ERC721Votes}
  2128. token.
  2129. [.contract-index]
  2130. .Functions
  2131. --
  2132. * {xref-GovernorVotes-constructor-contract-IVotes-}[`++constructor(tokenAddress)++`]
  2133. * {xref-GovernorVotes-token--}[`++token()++`]
  2134. * {xref-GovernorVotes-clock--}[`++clock()++`]
  2135. * {xref-GovernorVotes-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  2136. * {xref-GovernorVotes-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, )++`]
  2137. [.contract-subindex-inherited]
  2138. .Governor
  2139. * {xref-Governor-receive--}[`++receive()++`]
  2140. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  2141. * {xref-Governor-name--}[`++name()++`]
  2142. * {xref-Governor-version--}[`++version()++`]
  2143. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  2144. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  2145. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  2146. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  2147. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  2148. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  2149. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  2150. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  2151. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  2152. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  2153. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  2154. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, weight, params)++`]
  2155. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  2156. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  2157. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  2158. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  2159. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  2160. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  2161. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  2162. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  2163. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  2164. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  2165. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  2166. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  2167. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  2168. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  2169. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  2170. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  2171. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  2172. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  2173. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  2174. * {xref-Governor-_executor--}[`++_executor()++`]
  2175. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  2176. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  2177. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  2178. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  2179. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  2180. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  2181. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  2182. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  2183. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  2184. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  2185. [.contract-subindex-inherited]
  2186. .IERC1155Receiver
  2187. [.contract-subindex-inherited]
  2188. .IERC721Receiver
  2189. [.contract-subindex-inherited]
  2190. .IGovernor
  2191. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  2192. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  2193. [.contract-subindex-inherited]
  2194. .IERC6372
  2195. [.contract-subindex-inherited]
  2196. .Nonces
  2197. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  2198. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  2199. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  2200. [.contract-subindex-inherited]
  2201. .EIP712
  2202. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  2203. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  2204. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  2205. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  2206. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  2207. [.contract-subindex-inherited]
  2208. .IERC5267
  2209. [.contract-subindex-inherited]
  2210. .ERC165
  2211. [.contract-subindex-inherited]
  2212. .IERC165
  2213. --
  2214. [.contract-index]
  2215. .Events
  2216. --
  2217. [.contract-subindex-inherited]
  2218. .Governor
  2219. [.contract-subindex-inherited]
  2220. .IERC1155Receiver
  2221. [.contract-subindex-inherited]
  2222. .IERC721Receiver
  2223. [.contract-subindex-inherited]
  2224. .IGovernor
  2225. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  2226. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  2227. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  2228. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  2229. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  2230. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  2231. [.contract-subindex-inherited]
  2232. .IERC6372
  2233. [.contract-subindex-inherited]
  2234. .Nonces
  2235. [.contract-subindex-inherited]
  2236. .EIP712
  2237. [.contract-subindex-inherited]
  2238. .IERC5267
  2239. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  2240. [.contract-subindex-inherited]
  2241. .ERC165
  2242. [.contract-subindex-inherited]
  2243. .IERC165
  2244. --
  2245. [.contract-index]
  2246. .Errors
  2247. --
  2248. [.contract-subindex-inherited]
  2249. .Governor
  2250. [.contract-subindex-inherited]
  2251. .IERC1155Receiver
  2252. [.contract-subindex-inherited]
  2253. .IERC721Receiver
  2254. [.contract-subindex-inherited]
  2255. .IGovernor
  2256. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  2257. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  2258. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  2259. * {xref-IGovernor-GovernorOnlyProposer-address-}[`++GovernorOnlyProposer(account)++`]
  2260. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  2261. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  2262. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  2263. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  2264. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  2265. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  2266. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  2267. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  2268. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  2269. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  2270. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  2271. [.contract-subindex-inherited]
  2272. .IERC6372
  2273. [.contract-subindex-inherited]
  2274. .Nonces
  2275. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  2276. [.contract-subindex-inherited]
  2277. .EIP712
  2278. [.contract-subindex-inherited]
  2279. .IERC5267
  2280. [.contract-subindex-inherited]
  2281. .ERC165
  2282. [.contract-subindex-inherited]
  2283. .IERC165
  2284. --
  2285. [.contract-item]
  2286. [[GovernorVotes-constructor-contract-IVotes-]]
  2287. ==== `[.contract-item-name]#++constructor++#++(contract IVotes tokenAddress)++` [.item-kind]#internal#
  2288. [.contract-item]
  2289. [[GovernorVotes-token--]]
  2290. ==== `[.contract-item-name]#++token++#++() → contract IERC5805++` [.item-kind]#public#
  2291. The token that voting power is sourced from.
  2292. [.contract-item]
  2293. [[GovernorVotes-clock--]]
  2294. ==== `[.contract-item-name]#++clock++#++() → uint48++` [.item-kind]#public#
  2295. Clock (as specified in EIP-6372) is set to match the token's clock. Fallback to block numbers if the token
  2296. does not implement EIP-6372.
  2297. [.contract-item]
  2298. [[GovernorVotes-CLOCK_MODE--]]
  2299. ==== `[.contract-item-name]#++CLOCK_MODE++#++() → string++` [.item-kind]#public#
  2300. Machine-readable description of the clock as specified in EIP-6372.
  2301. [.contract-item]
  2302. [[GovernorVotes-_getVotes-address-uint256-bytes-]]
  2303. ==== `[.contract-item-name]#++_getVotes++#++(address account, uint256 timepoint, bytes) → uint256++` [.item-kind]#internal#
  2304. :QuorumNumeratorUpdated: pass:normal[xref:#GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-[`++QuorumNumeratorUpdated++`]]
  2305. :GovernorInvalidQuorumFraction: pass:normal[xref:#GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-[`++GovernorInvalidQuorumFraction++`]]
  2306. :constructor: pass:normal[xref:#GovernorVotesQuorumFraction-constructor-uint256-[`++constructor++`]]
  2307. :quorumNumerator: pass:normal[xref:#GovernorVotesQuorumFraction-quorumNumerator--[`++quorumNumerator++`]]
  2308. :quorumNumerator: pass:normal[xref:#GovernorVotesQuorumFraction-quorumNumerator-uint256-[`++quorumNumerator++`]]
  2309. :quorumDenominator: pass:normal[xref:#GovernorVotesQuorumFraction-quorumDenominator--[`++quorumDenominator++`]]
  2310. :quorum: pass:normal[xref:#GovernorVotesQuorumFraction-quorum-uint256-[`++quorum++`]]
  2311. :updateQuorumNumerator: pass:normal[xref:#GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-[`++updateQuorumNumerator++`]]
  2312. :_updateQuorumNumerator: pass:normal[xref:#GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-[`++_updateQuorumNumerator++`]]
  2313. [.contract]
  2314. [[GovernorVotesQuorumFraction]]
  2315. === `++GovernorVotesQuorumFraction++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/extensions/GovernorVotesQuorumFraction.sol[{github-icon},role=heading-link]
  2316. [.hljs-theme-light.nopadding]
  2317. ```solidity
  2318. import "@openzeppelin/contracts/governance/extensions/GovernorVotesQuorumFraction.sol";
  2319. ```
  2320. Extension of {Governor} for voting weight extraction from an {ERC20Votes} token and a quorum expressed as a
  2321. fraction of the total supply.
  2322. [.contract-index]
  2323. .Functions
  2324. --
  2325. * {xref-GovernorVotesQuorumFraction-constructor-uint256-}[`++constructor(quorumNumeratorValue)++`]
  2326. * {xref-GovernorVotesQuorumFraction-quorumNumerator--}[`++quorumNumerator()++`]
  2327. * {xref-GovernorVotesQuorumFraction-quorumNumerator-uint256-}[`++quorumNumerator(timepoint)++`]
  2328. * {xref-GovernorVotesQuorumFraction-quorumDenominator--}[`++quorumDenominator()++`]
  2329. * {xref-GovernorVotesQuorumFraction-quorum-uint256-}[`++quorum(timepoint)++`]
  2330. * {xref-GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-}[`++updateQuorumNumerator(newQuorumNumerator)++`]
  2331. * {xref-GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-}[`++_updateQuorumNumerator(newQuorumNumerator)++`]
  2332. [.contract-subindex-inherited]
  2333. .GovernorVotes
  2334. * {xref-GovernorVotes-token--}[`++token()++`]
  2335. * {xref-GovernorVotes-clock--}[`++clock()++`]
  2336. * {xref-GovernorVotes-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  2337. * {xref-GovernorVotes-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, )++`]
  2338. [.contract-subindex-inherited]
  2339. .Governor
  2340. * {xref-Governor-receive--}[`++receive()++`]
  2341. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  2342. * {xref-Governor-name--}[`++name()++`]
  2343. * {xref-Governor-version--}[`++version()++`]
  2344. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  2345. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  2346. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  2347. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  2348. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  2349. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  2350. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  2351. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  2352. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  2353. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  2354. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  2355. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, weight, params)++`]
  2356. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  2357. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  2358. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  2359. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  2360. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  2361. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  2362. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  2363. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  2364. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  2365. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  2366. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  2367. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  2368. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  2369. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  2370. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  2371. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  2372. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  2373. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  2374. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  2375. * {xref-Governor-_executor--}[`++_executor()++`]
  2376. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  2377. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  2378. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  2379. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  2380. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  2381. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  2382. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  2383. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  2384. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  2385. [.contract-subindex-inherited]
  2386. .IERC1155Receiver
  2387. [.contract-subindex-inherited]
  2388. .IERC721Receiver
  2389. [.contract-subindex-inherited]
  2390. .IGovernor
  2391. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  2392. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  2393. [.contract-subindex-inherited]
  2394. .IERC6372
  2395. [.contract-subindex-inherited]
  2396. .Nonces
  2397. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  2398. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  2399. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  2400. [.contract-subindex-inherited]
  2401. .EIP712
  2402. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  2403. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  2404. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  2405. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  2406. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  2407. [.contract-subindex-inherited]
  2408. .IERC5267
  2409. [.contract-subindex-inherited]
  2410. .ERC165
  2411. [.contract-subindex-inherited]
  2412. .IERC165
  2413. --
  2414. [.contract-index]
  2415. .Events
  2416. --
  2417. * {xref-GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-}[`++QuorumNumeratorUpdated(oldQuorumNumerator, newQuorumNumerator)++`]
  2418. [.contract-subindex-inherited]
  2419. .GovernorVotes
  2420. [.contract-subindex-inherited]
  2421. .Governor
  2422. [.contract-subindex-inherited]
  2423. .IERC1155Receiver
  2424. [.contract-subindex-inherited]
  2425. .IERC721Receiver
  2426. [.contract-subindex-inherited]
  2427. .IGovernor
  2428. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  2429. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  2430. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  2431. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  2432. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  2433. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  2434. [.contract-subindex-inherited]
  2435. .IERC6372
  2436. [.contract-subindex-inherited]
  2437. .Nonces
  2438. [.contract-subindex-inherited]
  2439. .EIP712
  2440. [.contract-subindex-inherited]
  2441. .IERC5267
  2442. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  2443. [.contract-subindex-inherited]
  2444. .ERC165
  2445. [.contract-subindex-inherited]
  2446. .IERC165
  2447. --
  2448. [.contract-index]
  2449. .Errors
  2450. --
  2451. * {xref-GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-}[`++GovernorInvalidQuorumFraction(quorumNumerator, quorumDenominator)++`]
  2452. [.contract-subindex-inherited]
  2453. .GovernorVotes
  2454. [.contract-subindex-inherited]
  2455. .Governor
  2456. [.contract-subindex-inherited]
  2457. .IERC1155Receiver
  2458. [.contract-subindex-inherited]
  2459. .IERC721Receiver
  2460. [.contract-subindex-inherited]
  2461. .IGovernor
  2462. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  2463. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  2464. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  2465. * {xref-IGovernor-GovernorOnlyProposer-address-}[`++GovernorOnlyProposer(account)++`]
  2466. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  2467. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  2468. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  2469. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  2470. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  2471. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  2472. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  2473. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  2474. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  2475. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  2476. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  2477. [.contract-subindex-inherited]
  2478. .IERC6372
  2479. [.contract-subindex-inherited]
  2480. .Nonces
  2481. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  2482. [.contract-subindex-inherited]
  2483. .EIP712
  2484. [.contract-subindex-inherited]
  2485. .IERC5267
  2486. [.contract-subindex-inherited]
  2487. .ERC165
  2488. [.contract-subindex-inherited]
  2489. .IERC165
  2490. --
  2491. [.contract-item]
  2492. [[GovernorVotesQuorumFraction-constructor-uint256-]]
  2493. ==== `[.contract-item-name]#++constructor++#++(uint256 quorumNumeratorValue)++` [.item-kind]#internal#
  2494. Initialize quorum as a fraction of the token's total supply.
  2495. The fraction is specified as `numerator / denominator`. By default the denominator is 100, so quorum is
  2496. specified as a percent: a numerator of 10 corresponds to quorum being 10% of total supply. The denominator can be
  2497. customized by overriding {quorumDenominator}.
  2498. [.contract-item]
  2499. [[GovernorVotesQuorumFraction-quorumNumerator--]]
  2500. ==== `[.contract-item-name]#++quorumNumerator++#++() → uint256++` [.item-kind]#public#
  2501. Returns the current quorum numerator. See {quorumDenominator}.
  2502. [.contract-item]
  2503. [[GovernorVotesQuorumFraction-quorumNumerator-uint256-]]
  2504. ==== `[.contract-item-name]#++quorumNumerator++#++(uint256 timepoint) → uint256++` [.item-kind]#public#
  2505. Returns the quorum numerator at a specific timepoint. See {quorumDenominator}.
  2506. [.contract-item]
  2507. [[GovernorVotesQuorumFraction-quorumDenominator--]]
  2508. ==== `[.contract-item-name]#++quorumDenominator++#++() → uint256++` [.item-kind]#public#
  2509. Returns the quorum denominator. Defaults to 100, but may be overridden.
  2510. [.contract-item]
  2511. [[GovernorVotesQuorumFraction-quorum-uint256-]]
  2512. ==== `[.contract-item-name]#++quorum++#++(uint256 timepoint) → uint256++` [.item-kind]#public#
  2513. Returns the quorum for a timepoint, in terms of number of votes: `supply * numerator / denominator`.
  2514. [.contract-item]
  2515. [[GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-]]
  2516. ==== `[.contract-item-name]#++updateQuorumNumerator++#++(uint256 newQuorumNumerator)++` [.item-kind]#external#
  2517. Changes the quorum numerator.
  2518. Emits a {QuorumNumeratorUpdated} event.
  2519. Requirements:
  2520. - Must be called through a governance proposal.
  2521. - New numerator must be smaller or equal to the denominator.
  2522. [.contract-item]
  2523. [[GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-]]
  2524. ==== `[.contract-item-name]#++_updateQuorumNumerator++#++(uint256 newQuorumNumerator)++` [.item-kind]#internal#
  2525. Changes the quorum numerator.
  2526. Emits a {QuorumNumeratorUpdated} event.
  2527. Requirements:
  2528. - New numerator must be smaller or equal to the denominator.
  2529. [.contract-item]
  2530. [[GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-]]
  2531. ==== `[.contract-item-name]#++QuorumNumeratorUpdated++#++(uint256 oldQuorumNumerator, uint256 newQuorumNumerator)++` [.item-kind]#event#
  2532. [.contract-item]
  2533. [[GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-]]
  2534. ==== `[.contract-item-name]#++GovernorInvalidQuorumFraction++#++(uint256 quorumNumerator, uint256 quorumDenominator)++` [.item-kind]#error#
  2535. The quorum set is not a valid fraction.
  2536. === Extensions
  2537. :TimelockChange: pass:normal[xref:#GovernorTimelockControl-TimelockChange-address-address-[`++TimelockChange++`]]
  2538. :constructor: pass:normal[xref:#GovernorTimelockControl-constructor-contract-TimelockController-[`++constructor++`]]
  2539. :state: pass:normal[xref:#GovernorTimelockControl-state-uint256-[`++state++`]]
  2540. :timelock: pass:normal[xref:#GovernorTimelockControl-timelock--[`++timelock++`]]
  2541. :proposalNeedsQueuing: pass:normal[xref:#GovernorTimelockControl-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  2542. :_queueOperations: pass:normal[xref:#GovernorTimelockControl-_queueOperations-uint256-address---uint256---bytes---bytes32-[`++_queueOperations++`]]
  2543. :_executeOperations: pass:normal[xref:#GovernorTimelockControl-_executeOperations-uint256-address---uint256---bytes---bytes32-[`++_executeOperations++`]]
  2544. :_cancel: pass:normal[xref:#GovernorTimelockControl-_cancel-address---uint256---bytes---bytes32-[`++_cancel++`]]
  2545. :_executor: pass:normal[xref:#GovernorTimelockControl-_executor--[`++_executor++`]]
  2546. :updateTimelock: pass:normal[xref:#GovernorTimelockControl-updateTimelock-contract-TimelockController-[`++updateTimelock++`]]
  2547. [.contract]
  2548. [[GovernorTimelockControl]]
  2549. === `++GovernorTimelockControl++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/extensions/GovernorTimelockControl.sol[{github-icon},role=heading-link]
  2550. [.hljs-theme-light.nopadding]
  2551. ```solidity
  2552. import "@openzeppelin/contracts/governance/extensions/GovernorTimelockControl.sol";
  2553. ```
  2554. Extension of {Governor} that binds the execution process to an instance of {TimelockController}. This adds a
  2555. delay, enforced by the {TimelockController} to all successful proposal (in addition to the voting duration). The
  2556. {Governor} needs the proposer (and ideally the executor) roles for the {Governor} to work properly.
  2557. Using this model means the proposal will be operated by the {TimelockController} and not by the {Governor}. Thus,
  2558. the assets and permissions must be attached to the {TimelockController}. Any asset sent to the {Governor} will be
  2559. inaccessible from a proposal, unless executed via {Governor-relay}.
  2560. WARNING: Setting up the TimelockController to have additional proposers or cancellers besides the governor is very
  2561. risky, as it grants them the ability to: 1) execute operations as the timelock, and thus possibly performing
  2562. operations or accessing funds that are expected to only be accessible through a vote, and 2) block governance
  2563. proposals that have been approved by the voters, effectively executing a Denial of Service attack.
  2564. NOTE: `AccessManager` does not support scheduling more than one operation with the same target and calldata at
  2565. the same time. See {AccessManager-schedule} for a workaround.
  2566. [.contract-index]
  2567. .Functions
  2568. --
  2569. * {xref-GovernorTimelockControl-constructor-contract-TimelockController-}[`++constructor(timelockAddress)++`]
  2570. * {xref-GovernorTimelockControl-state-uint256-}[`++state(proposalId)++`]
  2571. * {xref-GovernorTimelockControl-timelock--}[`++timelock()++`]
  2572. * {xref-GovernorTimelockControl-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  2573. * {xref-GovernorTimelockControl-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(proposalId, targets, values, calldatas, descriptionHash)++`]
  2574. * {xref-GovernorTimelockControl-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(proposalId, targets, values, calldatas, descriptionHash)++`]
  2575. * {xref-GovernorTimelockControl-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  2576. * {xref-GovernorTimelockControl-_executor--}[`++_executor()++`]
  2577. * {xref-GovernorTimelockControl-updateTimelock-contract-TimelockController-}[`++updateTimelock(newTimelock)++`]
  2578. [.contract-subindex-inherited]
  2579. .Governor
  2580. * {xref-Governor-receive--}[`++receive()++`]
  2581. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  2582. * {xref-Governor-name--}[`++name()++`]
  2583. * {xref-Governor-version--}[`++version()++`]
  2584. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  2585. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  2586. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  2587. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  2588. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  2589. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  2590. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  2591. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  2592. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  2593. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  2594. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, weight, params)++`]
  2595. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  2596. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  2597. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  2598. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  2599. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  2600. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  2601. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  2602. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  2603. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  2604. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  2605. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  2606. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  2607. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  2608. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  2609. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  2610. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  2611. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  2612. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  2613. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  2614. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  2615. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  2616. * {xref-Governor-clock--}[`++clock()++`]
  2617. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  2618. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  2619. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  2620. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  2621. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  2622. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  2623. [.contract-subindex-inherited]
  2624. .IERC1155Receiver
  2625. [.contract-subindex-inherited]
  2626. .IERC721Receiver
  2627. [.contract-subindex-inherited]
  2628. .IGovernor
  2629. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  2630. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  2631. [.contract-subindex-inherited]
  2632. .IERC6372
  2633. [.contract-subindex-inherited]
  2634. .Nonces
  2635. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  2636. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  2637. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  2638. [.contract-subindex-inherited]
  2639. .EIP712
  2640. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  2641. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  2642. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  2643. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  2644. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  2645. [.contract-subindex-inherited]
  2646. .IERC5267
  2647. [.contract-subindex-inherited]
  2648. .ERC165
  2649. [.contract-subindex-inherited]
  2650. .IERC165
  2651. --
  2652. [.contract-index]
  2653. .Events
  2654. --
  2655. * {xref-GovernorTimelockControl-TimelockChange-address-address-}[`++TimelockChange(oldTimelock, newTimelock)++`]
  2656. [.contract-subindex-inherited]
  2657. .Governor
  2658. [.contract-subindex-inherited]
  2659. .IERC1155Receiver
  2660. [.contract-subindex-inherited]
  2661. .IERC721Receiver
  2662. [.contract-subindex-inherited]
  2663. .IGovernor
  2664. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  2665. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  2666. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  2667. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  2668. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  2669. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  2670. [.contract-subindex-inherited]
  2671. .IERC6372
  2672. [.contract-subindex-inherited]
  2673. .Nonces
  2674. [.contract-subindex-inherited]
  2675. .EIP712
  2676. [.contract-subindex-inherited]
  2677. .IERC5267
  2678. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  2679. [.contract-subindex-inherited]
  2680. .ERC165
  2681. [.contract-subindex-inherited]
  2682. .IERC165
  2683. --
  2684. [.contract-index]
  2685. .Errors
  2686. --
  2687. [.contract-subindex-inherited]
  2688. .Governor
  2689. [.contract-subindex-inherited]
  2690. .IERC1155Receiver
  2691. [.contract-subindex-inherited]
  2692. .IERC721Receiver
  2693. [.contract-subindex-inherited]
  2694. .IGovernor
  2695. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  2696. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  2697. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  2698. * {xref-IGovernor-GovernorOnlyProposer-address-}[`++GovernorOnlyProposer(account)++`]
  2699. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  2700. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  2701. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  2702. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  2703. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  2704. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  2705. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  2706. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  2707. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  2708. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  2709. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  2710. [.contract-subindex-inherited]
  2711. .IERC6372
  2712. [.contract-subindex-inherited]
  2713. .Nonces
  2714. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  2715. [.contract-subindex-inherited]
  2716. .EIP712
  2717. [.contract-subindex-inherited]
  2718. .IERC5267
  2719. [.contract-subindex-inherited]
  2720. .ERC165
  2721. [.contract-subindex-inherited]
  2722. .IERC165
  2723. --
  2724. [.contract-item]
  2725. [[GovernorTimelockControl-constructor-contract-TimelockController-]]
  2726. ==== `[.contract-item-name]#++constructor++#++(contract TimelockController timelockAddress)++` [.item-kind]#internal#
  2727. Set the timelock.
  2728. [.contract-item]
  2729. [[GovernorTimelockControl-state-uint256-]]
  2730. ==== `[.contract-item-name]#++state++#++(uint256 proposalId) → enum IGovernor.ProposalState++` [.item-kind]#public#
  2731. Overridden version of the {Governor-state} function that considers the status reported by the timelock.
  2732. [.contract-item]
  2733. [[GovernorTimelockControl-timelock--]]
  2734. ==== `[.contract-item-name]#++timelock++#++() → address++` [.item-kind]#public#
  2735. Public accessor to check the address of the timelock
  2736. [.contract-item]
  2737. [[GovernorTimelockControl-proposalNeedsQueuing-uint256-]]
  2738. ==== `[.contract-item-name]#++proposalNeedsQueuing++#++(uint256) → bool++` [.item-kind]#public#
  2739. See {IGovernor-proposalNeedsQueuing}.
  2740. [.contract-item]
  2741. [[GovernorTimelockControl-_queueOperations-uint256-address---uint256---bytes---bytes32-]]
  2742. ==== `[.contract-item-name]#++_queueOperations++#++(uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint48++` [.item-kind]#internal#
  2743. Function to queue a proposal to the timelock.
  2744. [.contract-item]
  2745. [[GovernorTimelockControl-_executeOperations-uint256-address---uint256---bytes---bytes32-]]
  2746. ==== `[.contract-item-name]#++_executeOperations++#++(uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash)++` [.item-kind]#internal#
  2747. Overridden version of the {Governor-_executeOperations} function that runs the already queued proposal
  2748. through the timelock.
  2749. [.contract-item]
  2750. [[GovernorTimelockControl-_cancel-address---uint256---bytes---bytes32-]]
  2751. ==== `[.contract-item-name]#++_cancel++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#internal#
  2752. Overridden version of the {Governor-_cancel} function to cancel the timelocked proposal if it has already
  2753. been queued.
  2754. [.contract-item]
  2755. [[GovernorTimelockControl-_executor--]]
  2756. ==== `[.contract-item-name]#++_executor++#++() → address++` [.item-kind]#internal#
  2757. Address through which the governor executes action. In this case, the timelock.
  2758. [.contract-item]
  2759. [[GovernorTimelockControl-updateTimelock-contract-TimelockController-]]
  2760. ==== `[.contract-item-name]#++updateTimelock++#++(contract TimelockController newTimelock)++` [.item-kind]#external#
  2761. Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates
  2762. must be proposed, scheduled, and executed through governance proposals.
  2763. CAUTION: It is not recommended to change the timelock while there are other queued governance proposals.
  2764. [.contract-item]
  2765. [[GovernorTimelockControl-TimelockChange-address-address-]]
  2766. ==== `[.contract-item-name]#++TimelockChange++#++(address oldTimelock, address newTimelock)++` [.item-kind]#event#
  2767. Emitted when the timelock controller used for proposal execution is modified.
  2768. :TimelockChange: pass:normal[xref:#GovernorTimelockCompound-TimelockChange-address-address-[`++TimelockChange++`]]
  2769. :constructor: pass:normal[xref:#GovernorTimelockCompound-constructor-contract-ICompoundTimelock-[`++constructor++`]]
  2770. :state: pass:normal[xref:#GovernorTimelockCompound-state-uint256-[`++state++`]]
  2771. :timelock: pass:normal[xref:#GovernorTimelockCompound-timelock--[`++timelock++`]]
  2772. :proposalNeedsQueuing: pass:normal[xref:#GovernorTimelockCompound-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  2773. :_queueOperations: pass:normal[xref:#GovernorTimelockCompound-_queueOperations-uint256-address---uint256---bytes---bytes32-[`++_queueOperations++`]]
  2774. :_executeOperations: pass:normal[xref:#GovernorTimelockCompound-_executeOperations-uint256-address---uint256---bytes---bytes32-[`++_executeOperations++`]]
  2775. :_cancel: pass:normal[xref:#GovernorTimelockCompound-_cancel-address---uint256---bytes---bytes32-[`++_cancel++`]]
  2776. :_executor: pass:normal[xref:#GovernorTimelockCompound-_executor--[`++_executor++`]]
  2777. :__acceptAdmin: pass:normal[xref:#GovernorTimelockCompound-__acceptAdmin--[`++__acceptAdmin++`]]
  2778. :updateTimelock: pass:normal[xref:#GovernorTimelockCompound-updateTimelock-contract-ICompoundTimelock-[`++updateTimelock++`]]
  2779. [.contract]
  2780. [[GovernorTimelockCompound]]
  2781. === `++GovernorTimelockCompound++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/extensions/GovernorTimelockCompound.sol[{github-icon},role=heading-link]
  2782. [.hljs-theme-light.nopadding]
  2783. ```solidity
  2784. import "@openzeppelin/contracts/governance/extensions/GovernorTimelockCompound.sol";
  2785. ```
  2786. Extension of {Governor} that binds the execution process to a Compound Timelock. This adds a delay, enforced by
  2787. the external timelock to all successful proposal (in addition to the voting duration). The {Governor} needs to be
  2788. the admin of the timelock for any operation to be performed. A public, unrestricted,
  2789. {GovernorTimelockCompound-__acceptAdmin} is available to accept ownership of the timelock.
  2790. Using this model means the proposal will be operated by the {TimelockController} and not by the {Governor}. Thus,
  2791. the assets and permissions must be attached to the {TimelockController}. Any asset sent to the {Governor} will be
  2792. inaccessible.
  2793. [.contract-index]
  2794. .Functions
  2795. --
  2796. * {xref-GovernorTimelockCompound-constructor-contract-ICompoundTimelock-}[`++constructor(timelockAddress)++`]
  2797. * {xref-GovernorTimelockCompound-state-uint256-}[`++state(proposalId)++`]
  2798. * {xref-GovernorTimelockCompound-timelock--}[`++timelock()++`]
  2799. * {xref-GovernorTimelockCompound-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  2800. * {xref-GovernorTimelockCompound-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(proposalId, targets, values, calldatas, )++`]
  2801. * {xref-GovernorTimelockCompound-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(proposalId, targets, values, calldatas, )++`]
  2802. * {xref-GovernorTimelockCompound-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  2803. * {xref-GovernorTimelockCompound-_executor--}[`++_executor()++`]
  2804. * {xref-GovernorTimelockCompound-__acceptAdmin--}[`++__acceptAdmin()++`]
  2805. * {xref-GovernorTimelockCompound-updateTimelock-contract-ICompoundTimelock-}[`++updateTimelock(newTimelock)++`]
  2806. [.contract-subindex-inherited]
  2807. .Governor
  2808. * {xref-Governor-receive--}[`++receive()++`]
  2809. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  2810. * {xref-Governor-name--}[`++name()++`]
  2811. * {xref-Governor-version--}[`++version()++`]
  2812. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  2813. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  2814. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  2815. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  2816. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  2817. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  2818. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  2819. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  2820. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  2821. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  2822. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, weight, params)++`]
  2823. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  2824. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  2825. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  2826. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  2827. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  2828. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  2829. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  2830. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  2831. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  2832. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  2833. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  2834. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  2835. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  2836. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  2837. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  2838. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  2839. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  2840. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  2841. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  2842. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  2843. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  2844. * {xref-Governor-clock--}[`++clock()++`]
  2845. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  2846. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  2847. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  2848. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  2849. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  2850. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  2851. [.contract-subindex-inherited]
  2852. .IERC1155Receiver
  2853. [.contract-subindex-inherited]
  2854. .IERC721Receiver
  2855. [.contract-subindex-inherited]
  2856. .IGovernor
  2857. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  2858. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  2859. [.contract-subindex-inherited]
  2860. .IERC6372
  2861. [.contract-subindex-inherited]
  2862. .Nonces
  2863. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  2864. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  2865. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  2866. [.contract-subindex-inherited]
  2867. .EIP712
  2868. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  2869. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  2870. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  2871. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  2872. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  2873. [.contract-subindex-inherited]
  2874. .IERC5267
  2875. [.contract-subindex-inherited]
  2876. .ERC165
  2877. [.contract-subindex-inherited]
  2878. .IERC165
  2879. --
  2880. [.contract-index]
  2881. .Events
  2882. --
  2883. * {xref-GovernorTimelockCompound-TimelockChange-address-address-}[`++TimelockChange(oldTimelock, newTimelock)++`]
  2884. [.contract-subindex-inherited]
  2885. .Governor
  2886. [.contract-subindex-inherited]
  2887. .IERC1155Receiver
  2888. [.contract-subindex-inherited]
  2889. .IERC721Receiver
  2890. [.contract-subindex-inherited]
  2891. .IGovernor
  2892. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  2893. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  2894. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  2895. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  2896. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  2897. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  2898. [.contract-subindex-inherited]
  2899. .IERC6372
  2900. [.contract-subindex-inherited]
  2901. .Nonces
  2902. [.contract-subindex-inherited]
  2903. .EIP712
  2904. [.contract-subindex-inherited]
  2905. .IERC5267
  2906. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  2907. [.contract-subindex-inherited]
  2908. .ERC165
  2909. [.contract-subindex-inherited]
  2910. .IERC165
  2911. --
  2912. [.contract-index]
  2913. .Errors
  2914. --
  2915. [.contract-subindex-inherited]
  2916. .Governor
  2917. [.contract-subindex-inherited]
  2918. .IERC1155Receiver
  2919. [.contract-subindex-inherited]
  2920. .IERC721Receiver
  2921. [.contract-subindex-inherited]
  2922. .IGovernor
  2923. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  2924. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  2925. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  2926. * {xref-IGovernor-GovernorOnlyProposer-address-}[`++GovernorOnlyProposer(account)++`]
  2927. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  2928. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  2929. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  2930. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  2931. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  2932. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  2933. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  2934. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  2935. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  2936. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  2937. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  2938. [.contract-subindex-inherited]
  2939. .IERC6372
  2940. [.contract-subindex-inherited]
  2941. .Nonces
  2942. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  2943. [.contract-subindex-inherited]
  2944. .EIP712
  2945. [.contract-subindex-inherited]
  2946. .IERC5267
  2947. [.contract-subindex-inherited]
  2948. .ERC165
  2949. [.contract-subindex-inherited]
  2950. .IERC165
  2951. --
  2952. [.contract-item]
  2953. [[GovernorTimelockCompound-constructor-contract-ICompoundTimelock-]]
  2954. ==== `[.contract-item-name]#++constructor++#++(contract ICompoundTimelock timelockAddress)++` [.item-kind]#internal#
  2955. Set the timelock.
  2956. [.contract-item]
  2957. [[GovernorTimelockCompound-state-uint256-]]
  2958. ==== `[.contract-item-name]#++state++#++(uint256 proposalId) → enum IGovernor.ProposalState++` [.item-kind]#public#
  2959. Overridden version of the {Governor-state} function with added support for the `Expired` state.
  2960. [.contract-item]
  2961. [[GovernorTimelockCompound-timelock--]]
  2962. ==== `[.contract-item-name]#++timelock++#++() → address++` [.item-kind]#public#
  2963. Public accessor to check the address of the timelock
  2964. [.contract-item]
  2965. [[GovernorTimelockCompound-proposalNeedsQueuing-uint256-]]
  2966. ==== `[.contract-item-name]#++proposalNeedsQueuing++#++(uint256) → bool++` [.item-kind]#public#
  2967. See {IGovernor-proposalNeedsQueuing}.
  2968. [.contract-item]
  2969. [[GovernorTimelockCompound-_queueOperations-uint256-address---uint256---bytes---bytes32-]]
  2970. ==== `[.contract-item-name]#++_queueOperations++#++(uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32) → uint48++` [.item-kind]#internal#
  2971. Function to queue a proposal to the timelock.
  2972. [.contract-item]
  2973. [[GovernorTimelockCompound-_executeOperations-uint256-address---uint256---bytes---bytes32-]]
  2974. ==== `[.contract-item-name]#++_executeOperations++#++(uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32)++` [.item-kind]#internal#
  2975. Overridden version of the {Governor-_executeOperations} function that run the already queued proposal
  2976. through the timelock.
  2977. [.contract-item]
  2978. [[GovernorTimelockCompound-_cancel-address---uint256---bytes---bytes32-]]
  2979. ==== `[.contract-item-name]#++_cancel++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#internal#
  2980. Overridden version of the {Governor-_cancel} function to cancel the timelocked proposal if it has already
  2981. been queued.
  2982. [.contract-item]
  2983. [[GovernorTimelockCompound-_executor--]]
  2984. ==== `[.contract-item-name]#++_executor++#++() → address++` [.item-kind]#internal#
  2985. Address through which the governor executes action. In this case, the timelock.
  2986. [.contract-item]
  2987. [[GovernorTimelockCompound-__acceptAdmin--]]
  2988. ==== `[.contract-item-name]#++__acceptAdmin++#++()++` [.item-kind]#public#
  2989. Accept admin right over the timelock.
  2990. [.contract-item]
  2991. [[GovernorTimelockCompound-updateTimelock-contract-ICompoundTimelock-]]
  2992. ==== `[.contract-item-name]#++updateTimelock++#++(contract ICompoundTimelock newTimelock)++` [.item-kind]#external#
  2993. Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates
  2994. must be proposed, scheduled, and executed through governance proposals.
  2995. For security reasons, the timelock must be handed over to another admin before setting up a new one. The two
  2996. operations (hand over the timelock) and do the update can be batched in a single proposal.
  2997. Note that if the timelock admin has been handed over in a previous operation, we refuse updates made through the
  2998. timelock if admin of the timelock has already been accepted and the operation is executed outside the scope of
  2999. governance.
  3000. CAUTION: It is not recommended to change the timelock while there are other queued governance proposals.
  3001. [.contract-item]
  3002. [[GovernorTimelockCompound-TimelockChange-address-address-]]
  3003. ==== `[.contract-item-name]#++TimelockChange++#++(address oldTimelock, address newTimelock)++` [.item-kind]#event#
  3004. Emitted when the timelock controller used for proposal execution is modified.
  3005. :VotingDelaySet: pass:normal[xref:#GovernorSettings-VotingDelaySet-uint256-uint256-[`++VotingDelaySet++`]]
  3006. :VotingPeriodSet: pass:normal[xref:#GovernorSettings-VotingPeriodSet-uint256-uint256-[`++VotingPeriodSet++`]]
  3007. :ProposalThresholdSet: pass:normal[xref:#GovernorSettings-ProposalThresholdSet-uint256-uint256-[`++ProposalThresholdSet++`]]
  3008. :constructor: pass:normal[xref:#GovernorSettings-constructor-uint48-uint32-uint256-[`++constructor++`]]
  3009. :votingDelay: pass:normal[xref:#GovernorSettings-votingDelay--[`++votingDelay++`]]
  3010. :votingPeriod: pass:normal[xref:#GovernorSettings-votingPeriod--[`++votingPeriod++`]]
  3011. :proposalThreshold: pass:normal[xref:#GovernorSettings-proposalThreshold--[`++proposalThreshold++`]]
  3012. :setVotingDelay: pass:normal[xref:#GovernorSettings-setVotingDelay-uint48-[`++setVotingDelay++`]]
  3013. :setVotingPeriod: pass:normal[xref:#GovernorSettings-setVotingPeriod-uint32-[`++setVotingPeriod++`]]
  3014. :setProposalThreshold: pass:normal[xref:#GovernorSettings-setProposalThreshold-uint256-[`++setProposalThreshold++`]]
  3015. :_setVotingDelay: pass:normal[xref:#GovernorSettings-_setVotingDelay-uint48-[`++_setVotingDelay++`]]
  3016. :_setVotingPeriod: pass:normal[xref:#GovernorSettings-_setVotingPeriod-uint32-[`++_setVotingPeriod++`]]
  3017. :_setProposalThreshold: pass:normal[xref:#GovernorSettings-_setProposalThreshold-uint256-[`++_setProposalThreshold++`]]
  3018. [.contract]
  3019. [[GovernorSettings]]
  3020. === `++GovernorSettings++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/extensions/GovernorSettings.sol[{github-icon},role=heading-link]
  3021. [.hljs-theme-light.nopadding]
  3022. ```solidity
  3023. import "@openzeppelin/contracts/governance/extensions/GovernorSettings.sol";
  3024. ```
  3025. Extension of {Governor} for settings updatable through governance.
  3026. [.contract-index]
  3027. .Functions
  3028. --
  3029. * {xref-GovernorSettings-constructor-uint48-uint32-uint256-}[`++constructor(initialVotingDelay, initialVotingPeriod, initialProposalThreshold)++`]
  3030. * {xref-GovernorSettings-votingDelay--}[`++votingDelay()++`]
  3031. * {xref-GovernorSettings-votingPeriod--}[`++votingPeriod()++`]
  3032. * {xref-GovernorSettings-proposalThreshold--}[`++proposalThreshold()++`]
  3033. * {xref-GovernorSettings-setVotingDelay-uint48-}[`++setVotingDelay(newVotingDelay)++`]
  3034. * {xref-GovernorSettings-setVotingPeriod-uint32-}[`++setVotingPeriod(newVotingPeriod)++`]
  3035. * {xref-GovernorSettings-setProposalThreshold-uint256-}[`++setProposalThreshold(newProposalThreshold)++`]
  3036. * {xref-GovernorSettings-_setVotingDelay-uint48-}[`++_setVotingDelay(newVotingDelay)++`]
  3037. * {xref-GovernorSettings-_setVotingPeriod-uint32-}[`++_setVotingPeriod(newVotingPeriod)++`]
  3038. * {xref-GovernorSettings-_setProposalThreshold-uint256-}[`++_setProposalThreshold(newProposalThreshold)++`]
  3039. [.contract-subindex-inherited]
  3040. .Governor
  3041. * {xref-Governor-receive--}[`++receive()++`]
  3042. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  3043. * {xref-Governor-name--}[`++name()++`]
  3044. * {xref-Governor-version--}[`++version()++`]
  3045. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  3046. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  3047. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  3048. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  3049. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  3050. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  3051. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  3052. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  3053. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  3054. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  3055. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  3056. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, weight, params)++`]
  3057. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  3058. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  3059. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  3060. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  3061. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  3062. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  3063. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  3064. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  3065. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  3066. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  3067. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  3068. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  3069. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  3070. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  3071. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  3072. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  3073. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  3074. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  3075. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  3076. * {xref-Governor-_executor--}[`++_executor()++`]
  3077. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  3078. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  3079. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  3080. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  3081. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  3082. * {xref-Governor-clock--}[`++clock()++`]
  3083. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  3084. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  3085. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  3086. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  3087. [.contract-subindex-inherited]
  3088. .IERC1155Receiver
  3089. [.contract-subindex-inherited]
  3090. .IERC721Receiver
  3091. [.contract-subindex-inherited]
  3092. .IGovernor
  3093. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  3094. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  3095. [.contract-subindex-inherited]
  3096. .IERC6372
  3097. [.contract-subindex-inherited]
  3098. .Nonces
  3099. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  3100. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  3101. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  3102. [.contract-subindex-inherited]
  3103. .EIP712
  3104. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  3105. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  3106. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  3107. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  3108. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  3109. [.contract-subindex-inherited]
  3110. .IERC5267
  3111. [.contract-subindex-inherited]
  3112. .ERC165
  3113. [.contract-subindex-inherited]
  3114. .IERC165
  3115. --
  3116. [.contract-index]
  3117. .Events
  3118. --
  3119. * {xref-GovernorSettings-VotingDelaySet-uint256-uint256-}[`++VotingDelaySet(oldVotingDelay, newVotingDelay)++`]
  3120. * {xref-GovernorSettings-VotingPeriodSet-uint256-uint256-}[`++VotingPeriodSet(oldVotingPeriod, newVotingPeriod)++`]
  3121. * {xref-GovernorSettings-ProposalThresholdSet-uint256-uint256-}[`++ProposalThresholdSet(oldProposalThreshold, newProposalThreshold)++`]
  3122. [.contract-subindex-inherited]
  3123. .Governor
  3124. [.contract-subindex-inherited]
  3125. .IERC1155Receiver
  3126. [.contract-subindex-inherited]
  3127. .IERC721Receiver
  3128. [.contract-subindex-inherited]
  3129. .IGovernor
  3130. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  3131. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  3132. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  3133. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  3134. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  3135. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  3136. [.contract-subindex-inherited]
  3137. .IERC6372
  3138. [.contract-subindex-inherited]
  3139. .Nonces
  3140. [.contract-subindex-inherited]
  3141. .EIP712
  3142. [.contract-subindex-inherited]
  3143. .IERC5267
  3144. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  3145. [.contract-subindex-inherited]
  3146. .ERC165
  3147. [.contract-subindex-inherited]
  3148. .IERC165
  3149. --
  3150. [.contract-index]
  3151. .Errors
  3152. --
  3153. [.contract-subindex-inherited]
  3154. .Governor
  3155. [.contract-subindex-inherited]
  3156. .IERC1155Receiver
  3157. [.contract-subindex-inherited]
  3158. .IERC721Receiver
  3159. [.contract-subindex-inherited]
  3160. .IGovernor
  3161. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  3162. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  3163. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  3164. * {xref-IGovernor-GovernorOnlyProposer-address-}[`++GovernorOnlyProposer(account)++`]
  3165. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  3166. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  3167. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  3168. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  3169. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  3170. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  3171. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  3172. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  3173. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  3174. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  3175. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  3176. [.contract-subindex-inherited]
  3177. .IERC6372
  3178. [.contract-subindex-inherited]
  3179. .Nonces
  3180. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  3181. [.contract-subindex-inherited]
  3182. .EIP712
  3183. [.contract-subindex-inherited]
  3184. .IERC5267
  3185. [.contract-subindex-inherited]
  3186. .ERC165
  3187. [.contract-subindex-inherited]
  3188. .IERC165
  3189. --
  3190. [.contract-item]
  3191. [[GovernorSettings-constructor-uint48-uint32-uint256-]]
  3192. ==== `[.contract-item-name]#++constructor++#++(uint48 initialVotingDelay, uint32 initialVotingPeriod, uint256 initialProposalThreshold)++` [.item-kind]#internal#
  3193. Initialize the governance parameters.
  3194. [.contract-item]
  3195. [[GovernorSettings-votingDelay--]]
  3196. ==== `[.contract-item-name]#++votingDelay++#++() → uint256++` [.item-kind]#public#
  3197. See {IGovernor-votingDelay}.
  3198. [.contract-item]
  3199. [[GovernorSettings-votingPeriod--]]
  3200. ==== `[.contract-item-name]#++votingPeriod++#++() → uint256++` [.item-kind]#public#
  3201. See {IGovernor-votingPeriod}.
  3202. [.contract-item]
  3203. [[GovernorSettings-proposalThreshold--]]
  3204. ==== `[.contract-item-name]#++proposalThreshold++#++() → uint256++` [.item-kind]#public#
  3205. See {Governor-proposalThreshold}.
  3206. [.contract-item]
  3207. [[GovernorSettings-setVotingDelay-uint48-]]
  3208. ==== `[.contract-item-name]#++setVotingDelay++#++(uint48 newVotingDelay)++` [.item-kind]#public#
  3209. Update the voting delay. This operation can only be performed through a governance proposal.
  3210. Emits a {VotingDelaySet} event.
  3211. [.contract-item]
  3212. [[GovernorSettings-setVotingPeriod-uint32-]]
  3213. ==== `[.contract-item-name]#++setVotingPeriod++#++(uint32 newVotingPeriod)++` [.item-kind]#public#
  3214. Update the voting period. This operation can only be performed through a governance proposal.
  3215. Emits a {VotingPeriodSet} event.
  3216. [.contract-item]
  3217. [[GovernorSettings-setProposalThreshold-uint256-]]
  3218. ==== `[.contract-item-name]#++setProposalThreshold++#++(uint256 newProposalThreshold)++` [.item-kind]#public#
  3219. Update the proposal threshold. This operation can only be performed through a governance proposal.
  3220. Emits a {ProposalThresholdSet} event.
  3221. [.contract-item]
  3222. [[GovernorSettings-_setVotingDelay-uint48-]]
  3223. ==== `[.contract-item-name]#++_setVotingDelay++#++(uint48 newVotingDelay)++` [.item-kind]#internal#
  3224. Internal setter for the voting delay.
  3225. Emits a {VotingDelaySet} event.
  3226. [.contract-item]
  3227. [[GovernorSettings-_setVotingPeriod-uint32-]]
  3228. ==== `[.contract-item-name]#++_setVotingPeriod++#++(uint32 newVotingPeriod)++` [.item-kind]#internal#
  3229. Internal setter for the voting period.
  3230. Emits a {VotingPeriodSet} event.
  3231. [.contract-item]
  3232. [[GovernorSettings-_setProposalThreshold-uint256-]]
  3233. ==== `[.contract-item-name]#++_setProposalThreshold++#++(uint256 newProposalThreshold)++` [.item-kind]#internal#
  3234. Internal setter for the proposal threshold.
  3235. Emits a {ProposalThresholdSet} event.
  3236. [.contract-item]
  3237. [[GovernorSettings-VotingDelaySet-uint256-uint256-]]
  3238. ==== `[.contract-item-name]#++VotingDelaySet++#++(uint256 oldVotingDelay, uint256 newVotingDelay)++` [.item-kind]#event#
  3239. [.contract-item]
  3240. [[GovernorSettings-VotingPeriodSet-uint256-uint256-]]
  3241. ==== `[.contract-item-name]#++VotingPeriodSet++#++(uint256 oldVotingPeriod, uint256 newVotingPeriod)++` [.item-kind]#event#
  3242. [.contract-item]
  3243. [[GovernorSettings-ProposalThresholdSet-uint256-uint256-]]
  3244. ==== `[.contract-item-name]#++ProposalThresholdSet++#++(uint256 oldProposalThreshold, uint256 newProposalThreshold)++` [.item-kind]#event#
  3245. :ProposalExtended: pass:normal[xref:#GovernorPreventLateQuorum-ProposalExtended-uint256-uint64-[`++ProposalExtended++`]]
  3246. :LateQuorumVoteExtensionSet: pass:normal[xref:#GovernorPreventLateQuorum-LateQuorumVoteExtensionSet-uint64-uint64-[`++LateQuorumVoteExtensionSet++`]]
  3247. :constructor: pass:normal[xref:#GovernorPreventLateQuorum-constructor-uint48-[`++constructor++`]]
  3248. :proposalDeadline: pass:normal[xref:#GovernorPreventLateQuorum-proposalDeadline-uint256-[`++proposalDeadline++`]]
  3249. :_castVote: pass:normal[xref:#GovernorPreventLateQuorum-_castVote-uint256-address-uint8-string-bytes-[`++_castVote++`]]
  3250. :lateQuorumVoteExtension: pass:normal[xref:#GovernorPreventLateQuorum-lateQuorumVoteExtension--[`++lateQuorumVoteExtension++`]]
  3251. :setLateQuorumVoteExtension: pass:normal[xref:#GovernorPreventLateQuorum-setLateQuorumVoteExtension-uint48-[`++setLateQuorumVoteExtension++`]]
  3252. :_setLateQuorumVoteExtension: pass:normal[xref:#GovernorPreventLateQuorum-_setLateQuorumVoteExtension-uint48-[`++_setLateQuorumVoteExtension++`]]
  3253. [.contract]
  3254. [[GovernorPreventLateQuorum]]
  3255. === `++GovernorPreventLateQuorum++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/extensions/GovernorPreventLateQuorum.sol[{github-icon},role=heading-link]
  3256. [.hljs-theme-light.nopadding]
  3257. ```solidity
  3258. import "@openzeppelin/contracts/governance/extensions/GovernorPreventLateQuorum.sol";
  3259. ```
  3260. A module that ensures there is a minimum voting period after quorum is reached. This prevents a large voter from
  3261. swaying a vote and triggering quorum at the last minute, by ensuring there is always time for other voters to react
  3262. and try to oppose the decision.
  3263. If a vote causes quorum to be reached, the proposal's voting period may be extended so that it does not end before at
  3264. least a specified time has passed (the "vote extension" parameter). This parameter can be set through a governance
  3265. proposal.
  3266. [.contract-index]
  3267. .Functions
  3268. --
  3269. * {xref-GovernorPreventLateQuorum-constructor-uint48-}[`++constructor(initialVoteExtension)++`]
  3270. * {xref-GovernorPreventLateQuorum-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  3271. * {xref-GovernorPreventLateQuorum-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  3272. * {xref-GovernorPreventLateQuorum-lateQuorumVoteExtension--}[`++lateQuorumVoteExtension()++`]
  3273. * {xref-GovernorPreventLateQuorum-setLateQuorumVoteExtension-uint48-}[`++setLateQuorumVoteExtension(newVoteExtension)++`]
  3274. * {xref-GovernorPreventLateQuorum-_setLateQuorumVoteExtension-uint48-}[`++_setLateQuorumVoteExtension(newVoteExtension)++`]
  3275. [.contract-subindex-inherited]
  3276. .Governor
  3277. * {xref-Governor-receive--}[`++receive()++`]
  3278. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  3279. * {xref-Governor-name--}[`++name()++`]
  3280. * {xref-Governor-version--}[`++version()++`]
  3281. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  3282. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  3283. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  3284. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  3285. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  3286. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  3287. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  3288. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  3289. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  3290. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  3291. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  3292. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, weight, params)++`]
  3293. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  3294. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  3295. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  3296. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  3297. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  3298. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  3299. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  3300. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  3301. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  3302. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  3303. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  3304. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  3305. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  3306. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  3307. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  3308. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  3309. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  3310. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  3311. * {xref-Governor-_executor--}[`++_executor()++`]
  3312. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  3313. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  3314. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  3315. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  3316. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  3317. * {xref-Governor-clock--}[`++clock()++`]
  3318. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  3319. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  3320. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  3321. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  3322. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  3323. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  3324. [.contract-subindex-inherited]
  3325. .IERC1155Receiver
  3326. [.contract-subindex-inherited]
  3327. .IERC721Receiver
  3328. [.contract-subindex-inherited]
  3329. .IGovernor
  3330. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  3331. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  3332. [.contract-subindex-inherited]
  3333. .IERC6372
  3334. [.contract-subindex-inherited]
  3335. .Nonces
  3336. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  3337. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  3338. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  3339. [.contract-subindex-inherited]
  3340. .EIP712
  3341. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  3342. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  3343. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  3344. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  3345. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  3346. [.contract-subindex-inherited]
  3347. .IERC5267
  3348. [.contract-subindex-inherited]
  3349. .ERC165
  3350. [.contract-subindex-inherited]
  3351. .IERC165
  3352. --
  3353. [.contract-index]
  3354. .Events
  3355. --
  3356. * {xref-GovernorPreventLateQuorum-ProposalExtended-uint256-uint64-}[`++ProposalExtended(proposalId, extendedDeadline)++`]
  3357. * {xref-GovernorPreventLateQuorum-LateQuorumVoteExtensionSet-uint64-uint64-}[`++LateQuorumVoteExtensionSet(oldVoteExtension, newVoteExtension)++`]
  3358. [.contract-subindex-inherited]
  3359. .Governor
  3360. [.contract-subindex-inherited]
  3361. .IERC1155Receiver
  3362. [.contract-subindex-inherited]
  3363. .IERC721Receiver
  3364. [.contract-subindex-inherited]
  3365. .IGovernor
  3366. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  3367. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  3368. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  3369. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  3370. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  3371. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  3372. [.contract-subindex-inherited]
  3373. .IERC6372
  3374. [.contract-subindex-inherited]
  3375. .Nonces
  3376. [.contract-subindex-inherited]
  3377. .EIP712
  3378. [.contract-subindex-inherited]
  3379. .IERC5267
  3380. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  3381. [.contract-subindex-inherited]
  3382. .ERC165
  3383. [.contract-subindex-inherited]
  3384. .IERC165
  3385. --
  3386. [.contract-index]
  3387. .Errors
  3388. --
  3389. [.contract-subindex-inherited]
  3390. .Governor
  3391. [.contract-subindex-inherited]
  3392. .IERC1155Receiver
  3393. [.contract-subindex-inherited]
  3394. .IERC721Receiver
  3395. [.contract-subindex-inherited]
  3396. .IGovernor
  3397. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  3398. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  3399. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  3400. * {xref-IGovernor-GovernorOnlyProposer-address-}[`++GovernorOnlyProposer(account)++`]
  3401. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  3402. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  3403. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  3404. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  3405. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  3406. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  3407. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  3408. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  3409. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  3410. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  3411. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  3412. [.contract-subindex-inherited]
  3413. .IERC6372
  3414. [.contract-subindex-inherited]
  3415. .Nonces
  3416. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  3417. [.contract-subindex-inherited]
  3418. .EIP712
  3419. [.contract-subindex-inherited]
  3420. .IERC5267
  3421. [.contract-subindex-inherited]
  3422. .ERC165
  3423. [.contract-subindex-inherited]
  3424. .IERC165
  3425. --
  3426. [.contract-item]
  3427. [[GovernorPreventLateQuorum-constructor-uint48-]]
  3428. ==== `[.contract-item-name]#++constructor++#++(uint48 initialVoteExtension)++` [.item-kind]#internal#
  3429. Initializes the vote extension parameter: the time in either number of blocks or seconds (depending on the
  3430. governor clock mode) that is required to pass since the moment a proposal reaches quorum until its voting period
  3431. ends. If necessary the voting period will be extended beyond the one set during proposal creation.
  3432. [.contract-item]
  3433. [[GovernorPreventLateQuorum-proposalDeadline-uint256-]]
  3434. ==== `[.contract-item-name]#++proposalDeadline++#++(uint256 proposalId) → uint256++` [.item-kind]#public#
  3435. Returns the proposal deadline, which may have been extended beyond that set at proposal creation, if the
  3436. proposal reached quorum late in the voting period. See {Governor-proposalDeadline}.
  3437. [.contract-item]
  3438. [[GovernorPreventLateQuorum-_castVote-uint256-address-uint8-string-bytes-]]
  3439. ==== `[.contract-item-name]#++_castVote++#++(uint256 proposalId, address account, uint8 support, string reason, bytes params) → uint256++` [.item-kind]#internal#
  3440. Casts a vote and detects if it caused quorum to be reached, potentially extending the voting period. See
  3441. {Governor-_castVote}.
  3442. May emit a {ProposalExtended} event.
  3443. [.contract-item]
  3444. [[GovernorPreventLateQuorum-lateQuorumVoteExtension--]]
  3445. ==== `[.contract-item-name]#++lateQuorumVoteExtension++#++() → uint48++` [.item-kind]#public#
  3446. Returns the current value of the vote extension parameter: the number of blocks that are required to pass
  3447. from the time a proposal reaches quorum until its voting period ends.
  3448. [.contract-item]
  3449. [[GovernorPreventLateQuorum-setLateQuorumVoteExtension-uint48-]]
  3450. ==== `[.contract-item-name]#++setLateQuorumVoteExtension++#++(uint48 newVoteExtension)++` [.item-kind]#public#
  3451. Changes the {lateQuorumVoteExtension}. This operation can only be performed by the governance executor,
  3452. generally through a governance proposal.
  3453. Emits a {LateQuorumVoteExtensionSet} event.
  3454. [.contract-item]
  3455. [[GovernorPreventLateQuorum-_setLateQuorumVoteExtension-uint48-]]
  3456. ==== `[.contract-item-name]#++_setLateQuorumVoteExtension++#++(uint48 newVoteExtension)++` [.item-kind]#internal#
  3457. Changes the {lateQuorumVoteExtension}. This is an internal function that can be exposed in a public function
  3458. like {setLateQuorumVoteExtension} if another access control mechanism is needed.
  3459. Emits a {LateQuorumVoteExtensionSet} event.
  3460. [.contract-item]
  3461. [[GovernorPreventLateQuorum-ProposalExtended-uint256-uint64-]]
  3462. ==== `[.contract-item-name]#++ProposalExtended++#++(uint256 indexed proposalId, uint64 extendedDeadline)++` [.item-kind]#event#
  3463. Emitted when a proposal deadline is pushed back due to reaching quorum late in its voting period.
  3464. [.contract-item]
  3465. [[GovernorPreventLateQuorum-LateQuorumVoteExtensionSet-uint64-uint64-]]
  3466. ==== `[.contract-item-name]#++LateQuorumVoteExtensionSet++#++(uint64 oldVoteExtension, uint64 newVoteExtension)++` [.item-kind]#event#
  3467. Emitted when the {lateQuorumVoteExtension} parameter is changed.
  3468. :ProposalDetails: pass:normal[xref:#GovernorStorage-ProposalDetails[`++ProposalDetails++`]]
  3469. :_propose: pass:normal[xref:#GovernorStorage-_propose-address---uint256---bytes---string-address-[`++_propose++`]]
  3470. :queue: pass:normal[xref:#GovernorStorage-queue-uint256-[`++queue++`]]
  3471. :execute: pass:normal[xref:#GovernorStorage-execute-uint256-[`++execute++`]]
  3472. :cancel: pass:normal[xref:#GovernorStorage-cancel-uint256-[`++cancel++`]]
  3473. :proposalCount: pass:normal[xref:#GovernorStorage-proposalCount--[`++proposalCount++`]]
  3474. :proposalDetails: pass:normal[xref:#GovernorStorage-proposalDetails-uint256-[`++proposalDetails++`]]
  3475. :proposalDetailsAt: pass:normal[xref:#GovernorStorage-proposalDetailsAt-uint256-[`++proposalDetailsAt++`]]
  3476. [.contract]
  3477. [[GovernorStorage]]
  3478. === `++GovernorStorage++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/extensions/GovernorStorage.sol[{github-icon},role=heading-link]
  3479. [.hljs-theme-light.nopadding]
  3480. ```solidity
  3481. import "@openzeppelin/contracts/governance/extensions/GovernorStorage.sol";
  3482. ```
  3483. Extension of {Governor} that implements storage of proposal details. This modules also provides primitives for
  3484. the enumerability of proposals.
  3485. Use cases for this module include:
  3486. - UIs that explore the proposal state without relying on event indexing.
  3487. - Using only the proposalId as an argument in the {Governor-queue} and {Governor-execute} functions for L2 chains
  3488. where storage is cheap compared to calldata.
  3489. [.contract-index]
  3490. .Functions
  3491. --
  3492. * {xref-GovernorStorage-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  3493. * {xref-GovernorStorage-queue-uint256-}[`++queue(proposalId)++`]
  3494. * {xref-GovernorStorage-execute-uint256-}[`++execute(proposalId)++`]
  3495. * {xref-GovernorStorage-cancel-uint256-}[`++cancel(proposalId)++`]
  3496. * {xref-GovernorStorage-proposalCount--}[`++proposalCount()++`]
  3497. * {xref-GovernorStorage-proposalDetails-uint256-}[`++proposalDetails(proposalId)++`]
  3498. * {xref-GovernorStorage-proposalDetailsAt-uint256-}[`++proposalDetailsAt(index)++`]
  3499. [.contract-subindex-inherited]
  3500. .Governor
  3501. * {xref-Governor-receive--}[`++receive()++`]
  3502. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  3503. * {xref-Governor-name--}[`++name()++`]
  3504. * {xref-Governor-version--}[`++version()++`]
  3505. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  3506. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  3507. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  3508. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  3509. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  3510. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  3511. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  3512. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  3513. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  3514. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  3515. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  3516. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  3517. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, weight, params)++`]
  3518. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  3519. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  3520. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  3521. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  3522. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  3523. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  3524. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  3525. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  3526. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  3527. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  3528. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  3529. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  3530. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  3531. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  3532. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  3533. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  3534. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  3535. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  3536. * {xref-Governor-_executor--}[`++_executor()++`]
  3537. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  3538. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  3539. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  3540. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  3541. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  3542. * {xref-Governor-clock--}[`++clock()++`]
  3543. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  3544. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  3545. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  3546. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  3547. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  3548. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  3549. [.contract-subindex-inherited]
  3550. .IERC1155Receiver
  3551. [.contract-subindex-inherited]
  3552. .IERC721Receiver
  3553. [.contract-subindex-inherited]
  3554. .IGovernor
  3555. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  3556. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  3557. [.contract-subindex-inherited]
  3558. .IERC6372
  3559. [.contract-subindex-inherited]
  3560. .Nonces
  3561. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  3562. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  3563. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  3564. [.contract-subindex-inherited]
  3565. .EIP712
  3566. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  3567. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  3568. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  3569. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  3570. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  3571. [.contract-subindex-inherited]
  3572. .IERC5267
  3573. [.contract-subindex-inherited]
  3574. .ERC165
  3575. [.contract-subindex-inherited]
  3576. .IERC165
  3577. --
  3578. [.contract-index]
  3579. .Events
  3580. --
  3581. [.contract-subindex-inherited]
  3582. .Governor
  3583. [.contract-subindex-inherited]
  3584. .IERC1155Receiver
  3585. [.contract-subindex-inherited]
  3586. .IERC721Receiver
  3587. [.contract-subindex-inherited]
  3588. .IGovernor
  3589. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  3590. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  3591. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  3592. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  3593. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  3594. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  3595. [.contract-subindex-inherited]
  3596. .IERC6372
  3597. [.contract-subindex-inherited]
  3598. .Nonces
  3599. [.contract-subindex-inherited]
  3600. .EIP712
  3601. [.contract-subindex-inherited]
  3602. .IERC5267
  3603. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  3604. [.contract-subindex-inherited]
  3605. .ERC165
  3606. [.contract-subindex-inherited]
  3607. .IERC165
  3608. --
  3609. [.contract-index]
  3610. .Errors
  3611. --
  3612. [.contract-subindex-inherited]
  3613. .Governor
  3614. [.contract-subindex-inherited]
  3615. .IERC1155Receiver
  3616. [.contract-subindex-inherited]
  3617. .IERC721Receiver
  3618. [.contract-subindex-inherited]
  3619. .IGovernor
  3620. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  3621. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  3622. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  3623. * {xref-IGovernor-GovernorOnlyProposer-address-}[`++GovernorOnlyProposer(account)++`]
  3624. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  3625. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  3626. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  3627. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  3628. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  3629. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  3630. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  3631. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  3632. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  3633. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  3634. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  3635. [.contract-subindex-inherited]
  3636. .IERC6372
  3637. [.contract-subindex-inherited]
  3638. .Nonces
  3639. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  3640. [.contract-subindex-inherited]
  3641. .EIP712
  3642. [.contract-subindex-inherited]
  3643. .IERC5267
  3644. [.contract-subindex-inherited]
  3645. .ERC165
  3646. [.contract-subindex-inherited]
  3647. .IERC165
  3648. --
  3649. [.contract-item]
  3650. [[GovernorStorage-_propose-address---uint256---bytes---string-address-]]
  3651. ==== `[.contract-item-name]#++_propose++#++(address[] targets, uint256[] values, bytes[] calldatas, string description, address proposer) → uint256++` [.item-kind]#internal#
  3652. Hook into the proposing mechanism
  3653. [.contract-item]
  3654. [[GovernorStorage-queue-uint256-]]
  3655. ==== `[.contract-item-name]#++queue++#++(uint256 proposalId)++` [.item-kind]#public#
  3656. Version of {IGovernorTimelock-queue} with only `proposalId` as an argument.
  3657. [.contract-item]
  3658. [[GovernorStorage-execute-uint256-]]
  3659. ==== `[.contract-item-name]#++execute++#++(uint256 proposalId)++` [.item-kind]#public#
  3660. Version of {IGovernor-execute} with only `proposalId` as an argument.
  3661. [.contract-item]
  3662. [[GovernorStorage-cancel-uint256-]]
  3663. ==== `[.contract-item-name]#++cancel++#++(uint256 proposalId)++` [.item-kind]#public#
  3664. ProposalId version of {IGovernor-cancel}.
  3665. [.contract-item]
  3666. [[GovernorStorage-proposalCount--]]
  3667. ==== `[.contract-item-name]#++proposalCount++#++() → uint256++` [.item-kind]#public#
  3668. Returns the number of stored proposals.
  3669. [.contract-item]
  3670. [[GovernorStorage-proposalDetails-uint256-]]
  3671. ==== `[.contract-item-name]#++proposalDetails++#++(uint256 proposalId) → address[], uint256[], bytes[], bytes32++` [.item-kind]#public#
  3672. Returns the details of a proposalId. Reverts if `proposalId` is not a known proposal.
  3673. [.contract-item]
  3674. [[GovernorStorage-proposalDetailsAt-uint256-]]
  3675. ==== `[.contract-item-name]#++proposalDetailsAt++#++(uint256 index) → uint256, address[], uint256[], bytes[], bytes32++` [.item-kind]#public#
  3676. Returns the details (including the proposalId) of a proposal given its sequential index.
  3677. == Utils
  3678. :ERC6372InconsistentClock: pass:normal[xref:#Votes-ERC6372InconsistentClock--[`++ERC6372InconsistentClock++`]]
  3679. :ERC5805FutureLookup: pass:normal[xref:#Votes-ERC5805FutureLookup-uint256-uint48-[`++ERC5805FutureLookup++`]]
  3680. :clock: pass:normal[xref:#Votes-clock--[`++clock++`]]
  3681. :CLOCK_MODE: pass:normal[xref:#Votes-CLOCK_MODE--[`++CLOCK_MODE++`]]
  3682. :getVotes: pass:normal[xref:#Votes-getVotes-address-[`++getVotes++`]]
  3683. :getPastVotes: pass:normal[xref:#Votes-getPastVotes-address-uint256-[`++getPastVotes++`]]
  3684. :getPastTotalSupply: pass:normal[xref:#Votes-getPastTotalSupply-uint256-[`++getPastTotalSupply++`]]
  3685. :_getTotalSupply: pass:normal[xref:#Votes-_getTotalSupply--[`++_getTotalSupply++`]]
  3686. :delegates: pass:normal[xref:#Votes-delegates-address-[`++delegates++`]]
  3687. :delegate: pass:normal[xref:#Votes-delegate-address-[`++delegate++`]]
  3688. :delegateBySig: pass:normal[xref:#Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-[`++delegateBySig++`]]
  3689. :_delegate: pass:normal[xref:#Votes-_delegate-address-address-[`++_delegate++`]]
  3690. :_transferVotingUnits: pass:normal[xref:#Votes-_transferVotingUnits-address-address-uint256-[`++_transferVotingUnits++`]]
  3691. :_numCheckpoints: pass:normal[xref:#Votes-_numCheckpoints-address-[`++_numCheckpoints++`]]
  3692. :_checkpoints: pass:normal[xref:#Votes-_checkpoints-address-uint32-[`++_checkpoints++`]]
  3693. :_getVotingUnits: pass:normal[xref:#Votes-_getVotingUnits-address-[`++_getVotingUnits++`]]
  3694. [.contract]
  3695. [[Votes]]
  3696. === `++Votes++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/utils/Votes.sol[{github-icon},role=heading-link]
  3697. [.hljs-theme-light.nopadding]
  3698. ```solidity
  3699. import "@openzeppelin/contracts/governance/utils/Votes.sol";
  3700. ```
  3701. This is a base abstract contract that tracks voting units, which are a measure of voting power that can be
  3702. transferred, and provides a system of vote delegation, where an account can delegate its voting units to a sort of
  3703. "representative" that will pool delegated voting units from different accounts and can then use it to vote in
  3704. decisions. In fact, voting units _must_ be delegated in order to count as actual votes, and an account has to
  3705. delegate those votes to itself if it wishes to participate in decisions and does not have a trusted representative.
  3706. This contract is often combined with a token contract such that voting units correspond to token units. For an
  3707. example, see {ERC721Votes}.
  3708. The full history of delegate votes is tracked on-chain so that governance protocols can consider votes as distributed
  3709. at a particular block number to protect against flash loans and double voting. The opt-in delegate system makes the
  3710. cost of this history tracking optional.
  3711. When using this module the derived contract must implement {_getVotingUnits} (for example, make it return
  3712. {ERC721-balanceOf}), and can use {_transferVotingUnits} to track a change in the distribution of those units (in the
  3713. previous example, it would be included in {ERC721-_beforeTokenTransfer}).
  3714. [.contract-index]
  3715. .Functions
  3716. --
  3717. * {xref-Votes-clock--}[`++clock()++`]
  3718. * {xref-Votes-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  3719. * {xref-Votes-getVotes-address-}[`++getVotes(account)++`]
  3720. * {xref-Votes-getPastVotes-address-uint256-}[`++getPastVotes(account, timepoint)++`]
  3721. * {xref-Votes-getPastTotalSupply-uint256-}[`++getPastTotalSupply(timepoint)++`]
  3722. * {xref-Votes-_getTotalSupply--}[`++_getTotalSupply()++`]
  3723. * {xref-Votes-delegates-address-}[`++delegates(account)++`]
  3724. * {xref-Votes-delegate-address-}[`++delegate(delegatee)++`]
  3725. * {xref-Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-}[`++delegateBySig(delegatee, nonce, expiry, v, r, s)++`]
  3726. * {xref-Votes-_delegate-address-address-}[`++_delegate(account, delegatee)++`]
  3727. * {xref-Votes-_transferVotingUnits-address-address-uint256-}[`++_transferVotingUnits(from, to, amount)++`]
  3728. * {xref-Votes-_numCheckpoints-address-}[`++_numCheckpoints(account)++`]
  3729. * {xref-Votes-_checkpoints-address-uint32-}[`++_checkpoints(account, pos)++`]
  3730. * {xref-Votes-_getVotingUnits-address-}[`++_getVotingUnits()++`]
  3731. [.contract-subindex-inherited]
  3732. .IERC5805
  3733. [.contract-subindex-inherited]
  3734. .IVotes
  3735. [.contract-subindex-inherited]
  3736. .IERC6372
  3737. [.contract-subindex-inherited]
  3738. .Nonces
  3739. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  3740. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  3741. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  3742. [.contract-subindex-inherited]
  3743. .EIP712
  3744. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  3745. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  3746. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  3747. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  3748. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  3749. [.contract-subindex-inherited]
  3750. .IERC5267
  3751. --
  3752. [.contract-index]
  3753. .Events
  3754. --
  3755. [.contract-subindex-inherited]
  3756. .IERC5805
  3757. [.contract-subindex-inherited]
  3758. .IVotes
  3759. * {xref-IVotes-DelegateChanged-address-address-address-}[`++DelegateChanged(delegator, fromDelegate, toDelegate)++`]
  3760. * {xref-IVotes-DelegateVotesChanged-address-uint256-uint256-}[`++DelegateVotesChanged(delegate, previousVotes, newVotes)++`]
  3761. [.contract-subindex-inherited]
  3762. .IERC6372
  3763. [.contract-subindex-inherited]
  3764. .Nonces
  3765. [.contract-subindex-inherited]
  3766. .EIP712
  3767. [.contract-subindex-inherited]
  3768. .IERC5267
  3769. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  3770. --
  3771. [.contract-index]
  3772. .Errors
  3773. --
  3774. * {xref-Votes-ERC6372InconsistentClock--}[`++ERC6372InconsistentClock()++`]
  3775. * {xref-Votes-ERC5805FutureLookup-uint256-uint48-}[`++ERC5805FutureLookup(timepoint, clock)++`]
  3776. [.contract-subindex-inherited]
  3777. .IERC5805
  3778. [.contract-subindex-inherited]
  3779. .IVotes
  3780. * {xref-IVotes-VotesExpiredSignature-uint256-}[`++VotesExpiredSignature(expiry)++`]
  3781. [.contract-subindex-inherited]
  3782. .IERC6372
  3783. [.contract-subindex-inherited]
  3784. .Nonces
  3785. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  3786. [.contract-subindex-inherited]
  3787. .EIP712
  3788. [.contract-subindex-inherited]
  3789. .IERC5267
  3790. --
  3791. [.contract-item]
  3792. [[Votes-clock--]]
  3793. ==== `[.contract-item-name]#++clock++#++() → uint48++` [.item-kind]#public#
  3794. Clock used for flagging checkpoints. Can be overridden to implement timestamp based
  3795. checkpoints (and voting), in which case {CLOCK_MODE} should be overridden as well to match.
  3796. [.contract-item]
  3797. [[Votes-CLOCK_MODE--]]
  3798. ==== `[.contract-item-name]#++CLOCK_MODE++#++() → string++` [.item-kind]#public#
  3799. Machine-readable description of the clock as specified in EIP-6372.
  3800. [.contract-item]
  3801. [[Votes-getVotes-address-]]
  3802. ==== `[.contract-item-name]#++getVotes++#++(address account) → uint256++` [.item-kind]#public#
  3803. Returns the current amount of votes that `account` has.
  3804. [.contract-item]
  3805. [[Votes-getPastVotes-address-uint256-]]
  3806. ==== `[.contract-item-name]#++getPastVotes++#++(address account, uint256 timepoint) → uint256++` [.item-kind]#public#
  3807. Returns the amount of votes that `account` had at a specific moment in the past. If the `clock()` is
  3808. configured to use block numbers, this will return the value at the end of the corresponding block.
  3809. Requirements:
  3810. - `timepoint` must be in the past. If operating using block numbers, the block must be already mined.
  3811. [.contract-item]
  3812. [[Votes-getPastTotalSupply-uint256-]]
  3813. ==== `[.contract-item-name]#++getPastTotalSupply++#++(uint256 timepoint) → uint256++` [.item-kind]#public#
  3814. Returns the total supply of votes available at a specific moment in the past. If the `clock()` is
  3815. configured to use block numbers, this will return the value at the end of the corresponding block.
  3816. NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes.
  3817. Votes that have not been delegated are still part of total supply, even though they would not participate in a
  3818. vote.
  3819. Requirements:
  3820. - `timepoint` must be in the past. If operating using block numbers, the block must be already mined.
  3821. [.contract-item]
  3822. [[Votes-_getTotalSupply--]]
  3823. ==== `[.contract-item-name]#++_getTotalSupply++#++() → uint256++` [.item-kind]#internal#
  3824. Returns the current total supply of votes.
  3825. [.contract-item]
  3826. [[Votes-delegates-address-]]
  3827. ==== `[.contract-item-name]#++delegates++#++(address account) → address++` [.item-kind]#public#
  3828. Returns the delegate that `account` has chosen.
  3829. [.contract-item]
  3830. [[Votes-delegate-address-]]
  3831. ==== `[.contract-item-name]#++delegate++#++(address delegatee)++` [.item-kind]#public#
  3832. Delegates votes from the sender to `delegatee`.
  3833. [.contract-item]
  3834. [[Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-]]
  3835. ==== `[.contract-item-name]#++delegateBySig++#++(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s)++` [.item-kind]#public#
  3836. Delegates votes from signer to `delegatee`.
  3837. [.contract-item]
  3838. [[Votes-_delegate-address-address-]]
  3839. ==== `[.contract-item-name]#++_delegate++#++(address account, address delegatee)++` [.item-kind]#internal#
  3840. Delegate all of `account`'s voting units to `delegatee`.
  3841. Emits events {IVotes-DelegateChanged} and {IVotes-DelegateVotesChanged}.
  3842. [.contract-item]
  3843. [[Votes-_transferVotingUnits-address-address-uint256-]]
  3844. ==== `[.contract-item-name]#++_transferVotingUnits++#++(address from, address to, uint256 amount)++` [.item-kind]#internal#
  3845. Transfers, mints, or burns voting units. To register a mint, `from` should be zero. To register a burn, `to`
  3846. should be zero. Total supply of voting units will be adjusted with mints and burns.
  3847. [.contract-item]
  3848. [[Votes-_numCheckpoints-address-]]
  3849. ==== `[.contract-item-name]#++_numCheckpoints++#++(address account) → uint32++` [.item-kind]#internal#
  3850. Get number of checkpoints for `account`.
  3851. [.contract-item]
  3852. [[Votes-_checkpoints-address-uint32-]]
  3853. ==== `[.contract-item-name]#++_checkpoints++#++(address account, uint32 pos) → struct Checkpoints.Checkpoint208++` [.item-kind]#internal#
  3854. Get the `pos`-th checkpoint for `account`.
  3855. [.contract-item]
  3856. [[Votes-_getVotingUnits-address-]]
  3857. ==== `[.contract-item-name]#++_getVotingUnits++#++(address) → uint256++` [.item-kind]#internal#
  3858. Must return the voting units held by an account.
  3859. [.contract-item]
  3860. [[Votes-ERC6372InconsistentClock--]]
  3861. ==== `[.contract-item-name]#++ERC6372InconsistentClock++#++()++` [.item-kind]#error#
  3862. The clock was incorrectly modified.
  3863. [.contract-item]
  3864. [[Votes-ERC5805FutureLookup-uint256-uint48-]]
  3865. ==== `[.contract-item-name]#++ERC5805FutureLookup++#++(uint256 timepoint, uint48 clock)++` [.item-kind]#error#
  3866. Lookup to future votes is not available.
  3867. == Timelock
  3868. In a governance system, the {TimelockController} contract is in charge of introducing a delay between a proposal and its execution. It can be used with or without a {Governor}.
  3869. :PROPOSER_ROLE: pass:normal[xref:#TimelockController-PROPOSER_ROLE-bytes32[`++PROPOSER_ROLE++`]]
  3870. :EXECUTOR_ROLE: pass:normal[xref:#TimelockController-EXECUTOR_ROLE-bytes32[`++EXECUTOR_ROLE++`]]
  3871. :CANCELLER_ROLE: pass:normal[xref:#TimelockController-CANCELLER_ROLE-bytes32[`++CANCELLER_ROLE++`]]
  3872. :_DONE_TIMESTAMP: pass:normal[xref:#TimelockController-_DONE_TIMESTAMP-uint256[`++_DONE_TIMESTAMP++`]]
  3873. :OperationState: pass:normal[xref:#TimelockController-OperationState[`++OperationState++`]]
  3874. :TimelockInvalidOperationLength: pass:normal[xref:#TimelockController-TimelockInvalidOperationLength-uint256-uint256-uint256-[`++TimelockInvalidOperationLength++`]]
  3875. :TimelockInsufficientDelay: pass:normal[xref:#TimelockController-TimelockInsufficientDelay-uint256-uint256-[`++TimelockInsufficientDelay++`]]
  3876. :TimelockUnexpectedOperationState: pass:normal[xref:#TimelockController-TimelockUnexpectedOperationState-bytes32-bytes32-[`++TimelockUnexpectedOperationState++`]]
  3877. :TimelockUnexecutedPredecessor: pass:normal[xref:#TimelockController-TimelockUnexecutedPredecessor-bytes32-[`++TimelockUnexecutedPredecessor++`]]
  3878. :TimelockUnauthorizedCaller: pass:normal[xref:#TimelockController-TimelockUnauthorizedCaller-address-[`++TimelockUnauthorizedCaller++`]]
  3879. :CallScheduled: pass:normal[xref:#TimelockController-CallScheduled-bytes32-uint256-address-uint256-bytes-bytes32-uint256-[`++CallScheduled++`]]
  3880. :CallExecuted: pass:normal[xref:#TimelockController-CallExecuted-bytes32-uint256-address-uint256-bytes-[`++CallExecuted++`]]
  3881. :CallSalt: pass:normal[xref:#TimelockController-CallSalt-bytes32-bytes32-[`++CallSalt++`]]
  3882. :Cancelled: pass:normal[xref:#TimelockController-Cancelled-bytes32-[`++Cancelled++`]]
  3883. :MinDelayChange: pass:normal[xref:#TimelockController-MinDelayChange-uint256-uint256-[`++MinDelayChange++`]]
  3884. :constructor: pass:normal[xref:#TimelockController-constructor-uint256-address---address---address-[`++constructor++`]]
  3885. :onlyRoleOrOpenRole: pass:normal[xref:#TimelockController-onlyRoleOrOpenRole-bytes32-[`++onlyRoleOrOpenRole++`]]
  3886. :receive: pass:normal[xref:#TimelockController-receive--[`++receive++`]]
  3887. :supportsInterface: pass:normal[xref:#TimelockController-supportsInterface-bytes4-[`++supportsInterface++`]]
  3888. :isOperation: pass:normal[xref:#TimelockController-isOperation-bytes32-[`++isOperation++`]]
  3889. :isOperationPending: pass:normal[xref:#TimelockController-isOperationPending-bytes32-[`++isOperationPending++`]]
  3890. :isOperationReady: pass:normal[xref:#TimelockController-isOperationReady-bytes32-[`++isOperationReady++`]]
  3891. :isOperationDone: pass:normal[xref:#TimelockController-isOperationDone-bytes32-[`++isOperationDone++`]]
  3892. :getTimestamp: pass:normal[xref:#TimelockController-getTimestamp-bytes32-[`++getTimestamp++`]]
  3893. :getOperationState: pass:normal[xref:#TimelockController-getOperationState-bytes32-[`++getOperationState++`]]
  3894. :getMinDelay: pass:normal[xref:#TimelockController-getMinDelay--[`++getMinDelay++`]]
  3895. :hashOperation: pass:normal[xref:#TimelockController-hashOperation-address-uint256-bytes-bytes32-bytes32-[`++hashOperation++`]]
  3896. :hashOperationBatch: pass:normal[xref:#TimelockController-hashOperationBatch-address---uint256---bytes---bytes32-bytes32-[`++hashOperationBatch++`]]
  3897. :schedule: pass:normal[xref:#TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-[`++schedule++`]]
  3898. :scheduleBatch: pass:normal[xref:#TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-[`++scheduleBatch++`]]
  3899. :cancel: pass:normal[xref:#TimelockController-cancel-bytes32-[`++cancel++`]]
  3900. :execute: pass:normal[xref:#TimelockController-execute-address-uint256-bytes-bytes32-bytes32-[`++execute++`]]
  3901. :executeBatch: pass:normal[xref:#TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-[`++executeBatch++`]]
  3902. :_execute: pass:normal[xref:#TimelockController-_execute-address-uint256-bytes-[`++_execute++`]]
  3903. :updateDelay: pass:normal[xref:#TimelockController-updateDelay-uint256-[`++updateDelay++`]]
  3904. :_encodeStateBitmap: pass:normal[xref:#TimelockController-_encodeStateBitmap-enum-TimelockController-OperationState-[`++_encodeStateBitmap++`]]
  3905. [.contract]
  3906. [[TimelockController]]
  3907. === `++TimelockController++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.0.0-rc.2/contracts/governance/TimelockController.sol[{github-icon},role=heading-link]
  3908. [.hljs-theme-light.nopadding]
  3909. ```solidity
  3910. import "@openzeppelin/contracts/governance/TimelockController.sol";
  3911. ```
  3912. Contract module which acts as a timelocked controller. When set as the
  3913. owner of an `Ownable` smart contract, it enforces a timelock on all
  3914. `onlyOwner` maintenance operations. This gives time for users of the
  3915. controlled contract to exit before a potentially dangerous maintenance
  3916. operation is applied.
  3917. By default, this contract is self administered, meaning administration tasks
  3918. have to go through the timelock process. The proposer (resp executor) role
  3919. is in charge of proposing (resp executing) operations. A common use case is
  3920. to position this {TimelockController} as the owner of a smart contract, with
  3921. a multisig or a DAO as the sole proposer.
  3922. [.contract-index]
  3923. .Modifiers
  3924. --
  3925. * {xref-TimelockController-onlyRoleOrOpenRole-bytes32-}[`++onlyRoleOrOpenRole(role)++`]
  3926. --
  3927. [.contract-index]
  3928. .Functions
  3929. --
  3930. * {xref-TimelockController-constructor-uint256-address---address---address-}[`++constructor(minDelay, proposers, executors, admin)++`]
  3931. * {xref-TimelockController-receive--}[`++receive()++`]
  3932. * {xref-TimelockController-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  3933. * {xref-TimelockController-isOperation-bytes32-}[`++isOperation(id)++`]
  3934. * {xref-TimelockController-isOperationPending-bytes32-}[`++isOperationPending(id)++`]
  3935. * {xref-TimelockController-isOperationReady-bytes32-}[`++isOperationReady(id)++`]
  3936. * {xref-TimelockController-isOperationDone-bytes32-}[`++isOperationDone(id)++`]
  3937. * {xref-TimelockController-getTimestamp-bytes32-}[`++getTimestamp(id)++`]
  3938. * {xref-TimelockController-getOperationState-bytes32-}[`++getOperationState(id)++`]
  3939. * {xref-TimelockController-getMinDelay--}[`++getMinDelay()++`]
  3940. * {xref-TimelockController-hashOperation-address-uint256-bytes-bytes32-bytes32-}[`++hashOperation(target, value, data, predecessor, salt)++`]
  3941. * {xref-TimelockController-hashOperationBatch-address---uint256---bytes---bytes32-bytes32-}[`++hashOperationBatch(targets, values, payloads, predecessor, salt)++`]
  3942. * {xref-TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-}[`++schedule(target, value, data, predecessor, salt, delay)++`]
  3943. * {xref-TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-}[`++scheduleBatch(targets, values, payloads, predecessor, salt, delay)++`]
  3944. * {xref-TimelockController-cancel-bytes32-}[`++cancel(id)++`]
  3945. * {xref-TimelockController-execute-address-uint256-bytes-bytes32-bytes32-}[`++execute(target, value, payload, predecessor, salt)++`]
  3946. * {xref-TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-}[`++executeBatch(targets, values, payloads, predecessor, salt)++`]
  3947. * {xref-TimelockController-_execute-address-uint256-bytes-}[`++_execute(target, value, data)++`]
  3948. * {xref-TimelockController-updateDelay-uint256-}[`++updateDelay(newDelay)++`]
  3949. * {xref-TimelockController-_encodeStateBitmap-enum-TimelockController-OperationState-}[`++_encodeStateBitmap(operationState)++`]
  3950. * {xref-TimelockController-PROPOSER_ROLE-bytes32}[`++PROPOSER_ROLE()++`]
  3951. * {xref-TimelockController-EXECUTOR_ROLE-bytes32}[`++EXECUTOR_ROLE()++`]
  3952. * {xref-TimelockController-CANCELLER_ROLE-bytes32}[`++CANCELLER_ROLE()++`]
  3953. [.contract-subindex-inherited]
  3954. .ERC1155Holder
  3955. * {xref-ERC1155Holder-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  3956. * {xref-ERC1155Holder-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  3957. [.contract-subindex-inherited]
  3958. .IERC1155Receiver
  3959. [.contract-subindex-inherited]
  3960. .ERC721Holder
  3961. * {xref-ERC721Holder-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  3962. [.contract-subindex-inherited]
  3963. .IERC721Receiver
  3964. [.contract-subindex-inherited]
  3965. .AccessControl
  3966. * {xref-AccessControl-hasRole-bytes32-address-}[`++hasRole(role, account)++`]
  3967. * {xref-AccessControl-_checkRole-bytes32-}[`++_checkRole(role)++`]
  3968. * {xref-AccessControl-_checkRole-bytes32-address-}[`++_checkRole(role, account)++`]
  3969. * {xref-AccessControl-getRoleAdmin-bytes32-}[`++getRoleAdmin(role)++`]
  3970. * {xref-AccessControl-grantRole-bytes32-address-}[`++grantRole(role, account)++`]
  3971. * {xref-AccessControl-revokeRole-bytes32-address-}[`++revokeRole(role, account)++`]
  3972. * {xref-AccessControl-renounceRole-bytes32-address-}[`++renounceRole(role, callerConfirmation)++`]
  3973. * {xref-AccessControl-_setRoleAdmin-bytes32-bytes32-}[`++_setRoleAdmin(role, adminRole)++`]
  3974. * {xref-AccessControl-_grantRole-bytes32-address-}[`++_grantRole(role, account)++`]
  3975. * {xref-AccessControl-_revokeRole-bytes32-address-}[`++_revokeRole(role, account)++`]
  3976. * {xref-AccessControl-DEFAULT_ADMIN_ROLE-bytes32}[`++DEFAULT_ADMIN_ROLE()++`]
  3977. [.contract-subindex-inherited]
  3978. .ERC165
  3979. [.contract-subindex-inherited]
  3980. .IERC165
  3981. [.contract-subindex-inherited]
  3982. .IAccessControl
  3983. --
  3984. [.contract-index]
  3985. .Events
  3986. --
  3987. * {xref-TimelockController-CallScheduled-bytes32-uint256-address-uint256-bytes-bytes32-uint256-}[`++CallScheduled(id, index, target, value, data, predecessor, delay)++`]
  3988. * {xref-TimelockController-CallExecuted-bytes32-uint256-address-uint256-bytes-}[`++CallExecuted(id, index, target, value, data)++`]
  3989. * {xref-TimelockController-CallSalt-bytes32-bytes32-}[`++CallSalt(id, salt)++`]
  3990. * {xref-TimelockController-Cancelled-bytes32-}[`++Cancelled(id)++`]
  3991. * {xref-TimelockController-MinDelayChange-uint256-uint256-}[`++MinDelayChange(oldDuration, newDuration)++`]
  3992. [.contract-subindex-inherited]
  3993. .ERC1155Holder
  3994. [.contract-subindex-inherited]
  3995. .IERC1155Receiver
  3996. [.contract-subindex-inherited]
  3997. .ERC721Holder
  3998. [.contract-subindex-inherited]
  3999. .IERC721Receiver
  4000. [.contract-subindex-inherited]
  4001. .AccessControl
  4002. [.contract-subindex-inherited]
  4003. .ERC165
  4004. [.contract-subindex-inherited]
  4005. .IERC165
  4006. [.contract-subindex-inherited]
  4007. .IAccessControl
  4008. * {xref-IAccessControl-RoleAdminChanged-bytes32-bytes32-bytes32-}[`++RoleAdminChanged(role, previousAdminRole, newAdminRole)++`]
  4009. * {xref-IAccessControl-RoleGranted-bytes32-address-address-}[`++RoleGranted(role, account, sender)++`]
  4010. * {xref-IAccessControl-RoleRevoked-bytes32-address-address-}[`++RoleRevoked(role, account, sender)++`]
  4011. --
  4012. [.contract-index]
  4013. .Errors
  4014. --
  4015. * {xref-TimelockController-TimelockInvalidOperationLength-uint256-uint256-uint256-}[`++TimelockInvalidOperationLength(targets, payloads, values)++`]
  4016. * {xref-TimelockController-TimelockInsufficientDelay-uint256-uint256-}[`++TimelockInsufficientDelay(delay, minDelay)++`]
  4017. * {xref-TimelockController-TimelockUnexpectedOperationState-bytes32-bytes32-}[`++TimelockUnexpectedOperationState(operationId, expectedStates)++`]
  4018. * {xref-TimelockController-TimelockUnexecutedPredecessor-bytes32-}[`++TimelockUnexecutedPredecessor(predecessorId)++`]
  4019. * {xref-TimelockController-TimelockUnauthorizedCaller-address-}[`++TimelockUnauthorizedCaller(caller)++`]
  4020. [.contract-subindex-inherited]
  4021. .ERC1155Holder
  4022. [.contract-subindex-inherited]
  4023. .IERC1155Receiver
  4024. [.contract-subindex-inherited]
  4025. .ERC721Holder
  4026. [.contract-subindex-inherited]
  4027. .IERC721Receiver
  4028. [.contract-subindex-inherited]
  4029. .AccessControl
  4030. [.contract-subindex-inherited]
  4031. .ERC165
  4032. [.contract-subindex-inherited]
  4033. .IERC165
  4034. [.contract-subindex-inherited]
  4035. .IAccessControl
  4036. * {xref-IAccessControl-AccessControlUnauthorizedAccount-address-bytes32-}[`++AccessControlUnauthorizedAccount(account, neededRole)++`]
  4037. * {xref-IAccessControl-AccessControlBadConfirmation--}[`++AccessControlBadConfirmation()++`]
  4038. --
  4039. [.contract-item]
  4040. [[TimelockController-onlyRoleOrOpenRole-bytes32-]]
  4041. ==== `[.contract-item-name]#++onlyRoleOrOpenRole++#++(bytes32 role)++` [.item-kind]#modifier#
  4042. Modifier to make a function callable only by a certain role. In
  4043. addition to checking the sender's role, `address(0)` 's role is also
  4044. considered. Granting a role to `address(0)` is equivalent to enabling
  4045. this role for everyone.
  4046. [.contract-item]
  4047. [[TimelockController-constructor-uint256-address---address---address-]]
  4048. ==== `[.contract-item-name]#++constructor++#++(uint256 minDelay, address[] proposers, address[] executors, address admin)++` [.item-kind]#public#
  4049. Initializes the contract with the following parameters:
  4050. - `minDelay`: initial minimum delay in seconds for operations
  4051. - `proposers`: accounts to be granted proposer and canceller roles
  4052. - `executors`: accounts to be granted executor role
  4053. - `admin`: optional account to be granted admin role; disable with zero address
  4054. IMPORTANT: The optional admin can aid with initial configuration of roles after deployment
  4055. without being subject to delay, but this role should be subsequently renounced in favor of
  4056. administration through timelocked proposals. Previous versions of this contract would assign
  4057. this admin to the deployer automatically and should be renounced as well.
  4058. [.contract-item]
  4059. [[TimelockController-receive--]]
  4060. ==== `[.contract-item-name]#++receive++#++()++` [.item-kind]#external#
  4061. Contract might receive/hold ETH as part of the maintenance process.
  4062. [.contract-item]
  4063. [[TimelockController-supportsInterface-bytes4-]]
  4064. ==== `[.contract-item-name]#++supportsInterface++#++(bytes4 interfaceId) → bool++` [.item-kind]#public#
  4065. See {IERC165-supportsInterface}.
  4066. [.contract-item]
  4067. [[TimelockController-isOperation-bytes32-]]
  4068. ==== `[.contract-item-name]#++isOperation++#++(bytes32 id) → bool++` [.item-kind]#public#
  4069. Returns whether an id corresponds to a registered operation. This
  4070. includes both Waiting, Ready, and Done operations.
  4071. [.contract-item]
  4072. [[TimelockController-isOperationPending-bytes32-]]
  4073. ==== `[.contract-item-name]#++isOperationPending++#++(bytes32 id) → bool++` [.item-kind]#public#
  4074. Returns whether an operation is pending or not. Note that a "pending" operation may also be "ready".
  4075. [.contract-item]
  4076. [[TimelockController-isOperationReady-bytes32-]]
  4077. ==== `[.contract-item-name]#++isOperationReady++#++(bytes32 id) → bool++` [.item-kind]#public#
  4078. Returns whether an operation is ready for execution. Note that a "ready" operation is also "pending".
  4079. [.contract-item]
  4080. [[TimelockController-isOperationDone-bytes32-]]
  4081. ==== `[.contract-item-name]#++isOperationDone++#++(bytes32 id) → bool++` [.item-kind]#public#
  4082. Returns whether an operation is done or not.
  4083. [.contract-item]
  4084. [[TimelockController-getTimestamp-bytes32-]]
  4085. ==== `[.contract-item-name]#++getTimestamp++#++(bytes32 id) → uint256++` [.item-kind]#public#
  4086. Returns the timestamp at which an operation becomes ready (0 for
  4087. unset operations, 1 for done operations).
  4088. [.contract-item]
  4089. [[TimelockController-getOperationState-bytes32-]]
  4090. ==== `[.contract-item-name]#++getOperationState++#++(bytes32 id) → enum TimelockController.OperationState++` [.item-kind]#public#
  4091. Returns operation state.
  4092. [.contract-item]
  4093. [[TimelockController-getMinDelay--]]
  4094. ==== `[.contract-item-name]#++getMinDelay++#++() → uint256++` [.item-kind]#public#
  4095. Returns the minimum delay in seconds for an operation to become valid.
  4096. This value can be changed by executing an operation that calls `updateDelay`.
  4097. [.contract-item]
  4098. [[TimelockController-hashOperation-address-uint256-bytes-bytes32-bytes32-]]
  4099. ==== `[.contract-item-name]#++hashOperation++#++(address target, uint256 value, bytes data, bytes32 predecessor, bytes32 salt) → bytes32++` [.item-kind]#public#
  4100. Returns the identifier of an operation containing a single
  4101. transaction.
  4102. [.contract-item]
  4103. [[TimelockController-hashOperationBatch-address---uint256---bytes---bytes32-bytes32-]]
  4104. ==== `[.contract-item-name]#++hashOperationBatch++#++(address[] targets, uint256[] values, bytes[] payloads, bytes32 predecessor, bytes32 salt) → bytes32++` [.item-kind]#public#
  4105. Returns the identifier of an operation containing a batch of
  4106. transactions.
  4107. [.contract-item]
  4108. [[TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-]]
  4109. ==== `[.contract-item-name]#++schedule++#++(address target, uint256 value, bytes data, bytes32 predecessor, bytes32 salt, uint256 delay)++` [.item-kind]#public#
  4110. Schedule an operation containing a single transaction.
  4111. Emits {CallSalt} if salt is nonzero, and {CallScheduled}.
  4112. Requirements:
  4113. - the caller must have the 'proposer' role.
  4114. [.contract-item]
  4115. [[TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-]]
  4116. ==== `[.contract-item-name]#++scheduleBatch++#++(address[] targets, uint256[] values, bytes[] payloads, bytes32 predecessor, bytes32 salt, uint256 delay)++` [.item-kind]#public#
  4117. Schedule an operation containing a batch of transactions.
  4118. Emits {CallSalt} if salt is nonzero, and one {CallScheduled} event per transaction in the batch.
  4119. Requirements:
  4120. - the caller must have the 'proposer' role.
  4121. [.contract-item]
  4122. [[TimelockController-cancel-bytes32-]]
  4123. ==== `[.contract-item-name]#++cancel++#++(bytes32 id)++` [.item-kind]#public#
  4124. Cancel an operation.
  4125. Requirements:
  4126. - the caller must have the 'canceller' role.
  4127. [.contract-item]
  4128. [[TimelockController-execute-address-uint256-bytes-bytes32-bytes32-]]
  4129. ==== `[.contract-item-name]#++execute++#++(address target, uint256 value, bytes payload, bytes32 predecessor, bytes32 salt)++` [.item-kind]#public#
  4130. Execute an (ready) operation containing a single transaction.
  4131. Emits a {CallExecuted} event.
  4132. Requirements:
  4133. - the caller must have the 'executor' role.
  4134. [.contract-item]
  4135. [[TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-]]
  4136. ==== `[.contract-item-name]#++executeBatch++#++(address[] targets, uint256[] values, bytes[] payloads, bytes32 predecessor, bytes32 salt)++` [.item-kind]#public#
  4137. Execute an (ready) operation containing a batch of transactions.
  4138. Emits one {CallExecuted} event per transaction in the batch.
  4139. Requirements:
  4140. - the caller must have the 'executor' role.
  4141. [.contract-item]
  4142. [[TimelockController-_execute-address-uint256-bytes-]]
  4143. ==== `[.contract-item-name]#++_execute++#++(address target, uint256 value, bytes data)++` [.item-kind]#internal#
  4144. Execute an operation's call.
  4145. [.contract-item]
  4146. [[TimelockController-updateDelay-uint256-]]
  4147. ==== `[.contract-item-name]#++updateDelay++#++(uint256 newDelay)++` [.item-kind]#external#
  4148. Changes the minimum timelock duration for future operations.
  4149. Emits a {MinDelayChange} event.
  4150. Requirements:
  4151. - the caller must be the timelock itself. This can only be achieved by scheduling and later executing
  4152. an operation where the timelock is the target and the data is the ABI-encoded call to this function.
  4153. [.contract-item]
  4154. [[TimelockController-_encodeStateBitmap-enum-TimelockController-OperationState-]]
  4155. ==== `[.contract-item-name]#++_encodeStateBitmap++#++(enum TimelockController.OperationState operationState) → bytes32++` [.item-kind]#internal#
  4156. Encodes a `OperationState` into a `bytes32` representation where each bit enabled corresponds to
  4157. the underlying position in the `OperationState` enum. For example:
  4158. 0x000...1000
  4159. ^^^^^^----- ...
  4160. ^---- Done
  4161. ^--- Ready
  4162. ^-- Waiting
  4163. ^- Unset
  4164. [.contract-item]
  4165. [[TimelockController-PROPOSER_ROLE-bytes32]]
  4166. ==== `[.contract-item-name]#++PROPOSER_ROLE++#++() → bytes32++` [.item-kind]#public#
  4167. [.contract-item]
  4168. [[TimelockController-EXECUTOR_ROLE-bytes32]]
  4169. ==== `[.contract-item-name]#++EXECUTOR_ROLE++#++() → bytes32++` [.item-kind]#public#
  4170. [.contract-item]
  4171. [[TimelockController-CANCELLER_ROLE-bytes32]]
  4172. ==== `[.contract-item-name]#++CANCELLER_ROLE++#++() → bytes32++` [.item-kind]#public#
  4173. [.contract-item]
  4174. [[TimelockController-CallScheduled-bytes32-uint256-address-uint256-bytes-bytes32-uint256-]]
  4175. ==== `[.contract-item-name]#++CallScheduled++#++(bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data, bytes32 predecessor, uint256 delay)++` [.item-kind]#event#
  4176. Emitted when a call is scheduled as part of operation `id`.
  4177. [.contract-item]
  4178. [[TimelockController-CallExecuted-bytes32-uint256-address-uint256-bytes-]]
  4179. ==== `[.contract-item-name]#++CallExecuted++#++(bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data)++` [.item-kind]#event#
  4180. Emitted when a call is performed as part of operation `id`.
  4181. [.contract-item]
  4182. [[TimelockController-CallSalt-bytes32-bytes32-]]
  4183. ==== `[.contract-item-name]#++CallSalt++#++(bytes32 indexed id, bytes32 salt)++` [.item-kind]#event#
  4184. Emitted when new proposal is scheduled with non-zero salt.
  4185. [.contract-item]
  4186. [[TimelockController-Cancelled-bytes32-]]
  4187. ==== `[.contract-item-name]#++Cancelled++#++(bytes32 indexed id)++` [.item-kind]#event#
  4188. Emitted when operation `id` is cancelled.
  4189. [.contract-item]
  4190. [[TimelockController-MinDelayChange-uint256-uint256-]]
  4191. ==== `[.contract-item-name]#++MinDelayChange++#++(uint256 oldDuration, uint256 newDuration)++` [.item-kind]#event#
  4192. Emitted when the minimum delay for future operations is modified.
  4193. [.contract-item]
  4194. [[TimelockController-TimelockInvalidOperationLength-uint256-uint256-uint256-]]
  4195. ==== `[.contract-item-name]#++TimelockInvalidOperationLength++#++(uint256 targets, uint256 payloads, uint256 values)++` [.item-kind]#error#
  4196. Mismatch between the parameters length for an operation call.
  4197. [.contract-item]
  4198. [[TimelockController-TimelockInsufficientDelay-uint256-uint256-]]
  4199. ==== `[.contract-item-name]#++TimelockInsufficientDelay++#++(uint256 delay, uint256 minDelay)++` [.item-kind]#error#
  4200. The schedule operation doesn't meet the minimum delay.
  4201. [.contract-item]
  4202. [[TimelockController-TimelockUnexpectedOperationState-bytes32-bytes32-]]
  4203. ==== `[.contract-item-name]#++TimelockUnexpectedOperationState++#++(bytes32 operationId, bytes32 expectedStates)++` [.item-kind]#error#
  4204. The current state of an operation is not as required.
  4205. The `expectedStates` is a bitmap with the bits enabled for each OperationState enum position
  4206. counting from right to left.
  4207. See {_encodeStateBitmap}.
  4208. [.contract-item]
  4209. [[TimelockController-TimelockUnexecutedPredecessor-bytes32-]]
  4210. ==== `[.contract-item-name]#++TimelockUnexecutedPredecessor++#++(bytes32 predecessorId)++` [.item-kind]#error#
  4211. The predecessor to an operation not yet done.
  4212. [.contract-item]
  4213. [[TimelockController-TimelockUnauthorizedCaller-address-]]
  4214. ==== `[.contract-item-name]#++TimelockUnauthorizedCaller++#++(address caller)++` [.item-kind]#error#
  4215. The caller account is not authorized.
  4216. [[timelock-terminology]]
  4217. ==== Terminology
  4218. * *Operation:* A transaction (or a set of transactions) that is the subject of the timelock. It has to be scheduled by a proposer and executed by an executor. The timelock enforces a minimum delay between the proposition and the execution (see xref:access-control.adoc#operation_lifecycle[operation lifecycle]). If the operation contains multiple transactions (batch mode), they are executed atomically. Operations are identified by the hash of their content.
  4219. * *Operation status:*
  4220. ** *Unset:* An operation that is not part of the timelock mechanism.
  4221. ** *Waiting:* An operation that has been scheduled, before the timer expires.
  4222. ** *Ready:* An operation that has been scheduled, after the timer expires.
  4223. ** *Pending:* An operation that is either waiting or ready.
  4224. ** *Done:* An operation that has been executed.
  4225. * *Predecessor*: An (optional) dependency between operations. An operation can depend on another operation (its predecessor), forcing the execution order of these two operations.
  4226. * *Role*:
  4227. ** *Admin:* An address (smart contract or EOA) that is in charge of granting the roles of Proposer and Executor.
  4228. ** *Proposer:* An address (smart contract or EOA) that is in charge of scheduling (and cancelling) operations.
  4229. ** *Executor:* An address (smart contract or EOA) that is in charge of executing operations once the timelock has expired. This role can be given to the zero address to allow anyone to execute operations.
  4230. [[timelock-operation]]
  4231. ==== Operation structure
  4232. Operation executed by the xref:api:governance.adoc#TimelockController[`TimelockController`] can contain one or multiple subsequent calls. Depending on whether you need to multiple calls to be executed atomically, you can either use simple or batched operations.
  4233. Both operations contain:
  4234. * *Target*, the address of the smart contract that the timelock should operate on.
  4235. * *Value*, in wei, that should be sent with the transaction. Most of the time this will be 0. Ether can be deposited before-end or passed along when executing the transaction.
  4236. * *Data*, containing the encoded function selector and parameters of the call. This can be produced using a number of tools. For example, a maintenance operation granting role `ROLE` to `ACCOUNT` can be encoded using web3js as follows:
  4237. ```javascript
  4238. const data = timelock.contract.methods.grantRole(ROLE, ACCOUNT).encodeABI()
  4239. ```
  4240. * *Predecessor*, that specifies a dependency between operations. This dependency is optional. Use `bytes32(0)` if the operation does not have any dependency.
  4241. * *Salt*, used to disambiguate two otherwise identical operations. This can be any random value.
  4242. In the case of batched operations, `target`, `value` and `data` are specified as arrays, which must be of the same length.
  4243. [[timelock-operation-lifecycle]]
  4244. ==== Operation lifecycle
  4245. Timelocked operations are identified by a unique id (their hash) and follow a specific lifecycle:
  4246. `Unset` -> `Pending` -> `Pending` + `Ready` -> `Done`
  4247. * By calling xref:api:governance.adoc#TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-[`schedule`] (or xref:api:governance.adoc#TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-[`scheduleBatch`]), a proposer moves the operation from the `Unset` to the `Pending` state. This starts a timer that must be longer than the minimum delay. The timer expires at a timestamp accessible through the xref:api:governance.adoc#TimelockController-getTimestamp-bytes32-[`getTimestamp`] method.
  4248. * Once the timer expires, the operation automatically gets the `Ready` state. At this point, it can be executed.
  4249. * By calling xref:api:governance.adoc#TimelockController-TimelockController-execute-address-uint256-bytes-bytes32-bytes32-[`execute`] (or xref:api:governance.adoc#TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-[`executeBatch`]), an executor triggers the operation's underlying transactions and moves it to the `Done` state. If the operation has a predecessor, it has to be in the `Done` state for this transition to succeed.
  4250. * xref:api:governance.adoc#TimelockController-TimelockController-cancel-bytes32-[`cancel`] allows proposers to cancel any `Pending` operation. This resets the operation to the `Unset` state. It is thus possible for a proposer to re-schedule an operation that has been cancelled. In this case, the timer restarts when the operation is re-scheduled.
  4251. Operations status can be queried using the functions:
  4252. * xref:api:governance.adoc#TimelockController-isOperationPending-bytes32-[`isOperationPending(bytes32)`]
  4253. * xref:api:governance.adoc#TimelockController-isOperationReady-bytes32-[`isOperationReady(bytes32)`]
  4254. * xref:api:governance.adoc#TimelockController-isOperationDone-bytes32-[`isOperationDone(bytes32)`]
  4255. [[timelock-roles]]
  4256. ==== Roles
  4257. [[timelock-admin]]
  4258. ===== Admin
  4259. The admins are in charge of managing proposers and executors. For the timelock to be self-governed, this role should only be given to the timelock itself. Upon deployment, the admin role can be granted to any address (in addition to the timelock itself). After further configuration and testing, this optional admin should renounce its role such that all further maintenance operations have to go through the timelock process.
  4260. [[timelock-proposer]]
  4261. ===== Proposer
  4262. The proposers are in charge of scheduling (and cancelling) operations. This is a critical role, that should be given to governing entities. This could be an EOA, a multisig, or a DAO.
  4263. WARNING: *Proposer fight:* Having multiple proposers, while providing redundancy in case one becomes unavailable, can be dangerous. As proposer have their say on all operations, they could cancel operations they disagree with, including operations to remove them for the proposers.
  4264. This role is identified by the *PROPOSER_ROLE* value: `0xb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1`
  4265. [[timelock-executor]]
  4266. ===== Executor
  4267. The executors are in charge of executing the operations scheduled by the proposers once the timelock expires. Logic dictates that multisig or DAO that are proposers should also be executors in order to guarantee operations that have been scheduled will eventually be executed. However, having additional executors can reduce the cost (the executing transaction does not require validation by the multisig or DAO that proposed it), while ensuring whoever is in charge of execution cannot trigger actions that have not been scheduled by the proposers. Alternatively, it is possible to allow _any_ address to execute a proposal once the timelock has expired by granting the executor role to the zero address.
  4268. This role is identified by the *EXECUTOR_ROLE* value: `0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63`
  4269. WARNING: A live contract without at least one proposer and one executor is locked. Make sure these roles are filled by reliable entities before the deployer renounces its administrative rights in favour of the timelock contract itself. See the {AccessControl} documentation to learn more about role management.