governance.adoc 320 KB

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