governance.adoc 591 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056
  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. :IVotes: pass:normal[xref:governance.adoc#IVotes[`IVotes`]]
  5. :GovernorVotesQuorumFraction: pass:normal[xref:governance.adoc#GovernorVotesQuorumFraction[`GovernorVotesQuorumFraction`]]
  6. :GovernorVotesSuperQuorumFraction: pass:normal[xref:governance.adoc#GovernorVotesSuperQuorumFraction[`GovernorVotesSuperQuorumFraction`]]
  7. :GovernorCountingSimple: pass:normal[xref:governance.adoc#GovernorCountingSimple[`GovernorCountingSimple`]]
  8. :GovernorCountingFractional: pass:normal[xref:governance.adoc#GovernorCountingFractional[`GovernorCountingFractional`]]
  9. :GovernorCountingOverridable: pass:normal[xref:governance.adoc#GovernorCountingOverridable[`GovernorCountingOverridable`]]
  10. :VotesExtended: pass:normal[xref:governance.adoc#VotesExtended[`VotesExtended`]]
  11. :GovernorTimelockAccess: pass:normal[xref:governance.adoc#GovernorTimelockAccess[`GovernorTimelockAccess`]]
  12. :AccessManager: pass:normal[xref:access.adoc#AccessManager[`AccessManager`]]
  13. :GovernorTimelockControl: pass:normal[xref:governance.adoc#GovernorTimelockControl[`GovernorTimelockControl`]]
  14. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  15. :GovernorTimelockCompound: pass:normal[xref:governance.adoc#GovernorTimelockCompound[`GovernorTimelockCompound`]]
  16. :GovernorStorage: pass:normal[xref:governance.adoc#GovernorStorage[`GovernorStorage`]]
  17. :GovernorSettings: pass:normal[xref:governance.adoc#GovernorSettings[`GovernorSettings`]]
  18. :GovernorPreventLateQuorum: pass:normal[xref:governance.adoc#GovernorPreventLateQuorum[`GovernorPreventLateQuorum`]]
  19. :GovernorProposalGuardian: pass:normal[xref:governance.adoc#GovernorProposalGuardian[`GovernorProposalGuardian`]]
  20. :GovernorSuperQuorum: pass:normal[xref:governance.adoc#GovernorSuperQuorum[`GovernorSuperQuorum`]]
  21. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  22. :GovernorNoncesKeyed: pass:normal[xref:governance.adoc#GovernorNoncesKeyed[`GovernorNoncesKeyed`]]
  23. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  24. :Governor-_cancel: pass:normal[xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-[`Governor._cancel`]]
  25. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  26. :xref-IGovernor-name--: xref:governance.adoc#IGovernor-name--
  27. :xref-IGovernor-version--: xref:governance.adoc#IGovernor-version--
  28. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  29. :xref-IGovernor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#IGovernor-hashProposal-address---uint256---bytes---bytes32-
  30. :xref-IGovernor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#IGovernor-getProposalId-address---uint256---bytes---bytes32-
  31. :xref-IGovernor-state-uint256-: xref:governance.adoc#IGovernor-state-uint256-
  32. :xref-IGovernor-proposalThreshold--: xref:governance.adoc#IGovernor-proposalThreshold--
  33. :xref-IGovernor-proposalSnapshot-uint256-: xref:governance.adoc#IGovernor-proposalSnapshot-uint256-
  34. :xref-IGovernor-proposalDeadline-uint256-: xref:governance.adoc#IGovernor-proposalDeadline-uint256-
  35. :xref-IGovernor-proposalProposer-uint256-: xref:governance.adoc#IGovernor-proposalProposer-uint256-
  36. :xref-IGovernor-proposalEta-uint256-: xref:governance.adoc#IGovernor-proposalEta-uint256-
  37. :xref-IGovernor-proposalNeedsQueuing-uint256-: xref:governance.adoc#IGovernor-proposalNeedsQueuing-uint256-
  38. :xref-IGovernor-votingDelay--: xref:governance.adoc#IGovernor-votingDelay--
  39. :xref-IGovernor-votingPeriod--: xref:governance.adoc#IGovernor-votingPeriod--
  40. :xref-IGovernor-quorum-uint256-: xref:governance.adoc#IGovernor-quorum-uint256-
  41. :xref-IGovernor-getVotes-address-uint256-: xref:governance.adoc#IGovernor-getVotes-address-uint256-
  42. :xref-IGovernor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#IGovernor-getVotesWithParams-address-uint256-bytes-
  43. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  44. :xref-IGovernor-propose-address---uint256---bytes---string-: xref:governance.adoc#IGovernor-propose-address---uint256---bytes---string-
  45. :xref-IGovernor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#IGovernor-queue-address---uint256---bytes---bytes32-
  46. :xref-IGovernor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#IGovernor-execute-address---uint256---bytes---bytes32-
  47. :xref-IGovernor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#IGovernor-cancel-address---uint256---bytes---bytes32-
  48. :xref-IGovernor-castVote-uint256-uint8-: xref:governance.adoc#IGovernor-castVote-uint256-uint8-
  49. :xref-IGovernor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#IGovernor-castVoteWithReason-uint256-uint8-string-
  50. :xref-IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  51. :xref-IGovernor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#IGovernor-castVoteBySig-uint256-uint8-address-bytes-
  52. :xref-IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  53. :xref-IERC6372-clock--: xref:interfaces.adoc#IERC6372-clock--
  54. :xref-IERC6372-CLOCK_MODE--: xref:interfaces.adoc#IERC6372-CLOCK_MODE--
  55. :xref-IERC165-supportsInterface-bytes4-: xref:utils.adoc#IERC165-supportsInterface-bytes4-
  56. :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-
  57. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  58. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  59. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  60. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  61. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  62. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  63. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  64. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  65. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  66. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  67. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  68. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  69. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  70. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  71. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  72. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  73. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  74. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  75. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  76. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  77. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  78. :IERC6372-clock: pass:normal[xref:interfaces.adoc#IERC6372-clock--[`IERC6372.clock`]]
  79. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  80. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  81. :IGovernor-votingDelay: pass:normal[xref:governance.adoc#IGovernor-votingDelay--[`IGovernor.votingDelay`]]
  82. :IGovernor-votingPeriod: pass:normal[xref:governance.adoc#IGovernor-votingPeriod--[`IGovernor.votingPeriod`]]
  83. :Governor-_encodeStateBitmap: pass:normal[xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-[`Governor._encodeStateBitmap`]]
  84. :IERC1271-isValidSignature: pass:normal[xref:interfaces.adoc#IERC1271-isValidSignature-bytes32-bytes-[`IERC1271.isValidSignature`]]
  85. :xref-Governor-onlyGovernance--: xref:governance.adoc#Governor-onlyGovernance--
  86. :xref-Governor-constructor-string-: xref:governance.adoc#Governor-constructor-string-
  87. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  88. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  89. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  90. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  91. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  92. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  93. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  94. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  95. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  96. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  97. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  98. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  99. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  100. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  101. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  102. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  103. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  104. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  105. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  106. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  107. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  108. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  109. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  110. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  111. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  112. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  113. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  114. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  115. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  116. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  117. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  118. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  119. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  120. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  121. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  122. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  123. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  124. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  125. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  126. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  127. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  128. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  129. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  130. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  131. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  132. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  133. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  134. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  135. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  136. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  137. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  138. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  139. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  140. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  141. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  142. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  143. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  144. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  145. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  146. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  147. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  148. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  149. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  150. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  151. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  152. :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-
  153. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  154. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  155. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  156. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  157. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  158. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  159. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  160. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  161. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  162. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  163. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  164. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  165. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  166. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  167. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  168. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  169. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  170. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  171. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  172. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  173. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  174. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  175. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  176. :GovernorSettings: pass:normal[xref:governance.adoc#GovernorSettings[`GovernorSettings`]]
  177. :IGovernor-hashProposal: pass:normal[xref:governance.adoc#IGovernor-hashProposal-address---uint256---bytes---bytes32-[`IGovernor.hashProposal`]]
  178. :IGovernor-propose: pass:normal[xref:governance.adoc#IGovernor-propose-address---uint256---bytes---string-[`IGovernor.propose`]]
  179. :IGovernor-ProposalCreated: pass:normal[xref:governance.adoc#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-[`IGovernor.ProposalCreated`]]
  180. :IGovernor-ProposalCanceled: pass:normal[xref:governance.adoc#IGovernor-ProposalCanceled-uint256-[`IGovernor.ProposalCanceled`]]
  181. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  182. :IGovernor-getVotes: pass:normal[xref:governance.adoc#IGovernor-getVotes-address-uint256-[`IGovernor.getVotes`]]
  183. :IGovernor-VoteCast: pass:normal[xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-[`IGovernor.VoteCast`]]
  184. :IGovernor-getVotes: pass:normal[xref:governance.adoc#IGovernor-getVotes-address-uint256-[`IGovernor.getVotes`]]
  185. :IGovernor-VoteCast: pass:normal[xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-[`IGovernor.VoteCast`]]
  186. :IERC721Receiver-onERC721Received: pass:normal[xref:token/ERC721.adoc#IERC721Receiver-onERC721Received-address-address-uint256-bytes-[`IERC721Receiver.onERC721Received`]]
  187. :IERC1155Receiver-onERC1155Received: pass:normal[xref:token/ERC1155.adoc#IERC1155Receiver-onERC1155Received-address-address-uint256-uint256-bytes-[`IERC1155Receiver.onERC1155Received`]]
  188. :IERC1155Receiver-onERC1155BatchReceived: pass:normal[xref:token/ERC1155.adoc#IERC1155Receiver-onERC1155BatchReceived-address-address-uint256---uint256---bytes-[`IERC1155Receiver.onERC1155BatchReceived`]]
  189. :IERC6372-clock: pass:normal[xref:interfaces.adoc#IERC6372-clock--[`IERC6372.clock`]]
  190. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  191. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  192. :xref-GovernorCountingSimple-COUNTING_MODE--: xref:governance.adoc#GovernorCountingSimple-COUNTING_MODE--
  193. :xref-GovernorCountingSimple-hasVoted-uint256-address-: xref:governance.adoc#GovernorCountingSimple-hasVoted-uint256-address-
  194. :xref-GovernorCountingSimple-proposalVotes-uint256-: xref:governance.adoc#GovernorCountingSimple-proposalVotes-uint256-
  195. :xref-GovernorCountingSimple-_quorumReached-uint256-: xref:governance.adoc#GovernorCountingSimple-_quorumReached-uint256-
  196. :xref-GovernorCountingSimple-_voteSucceeded-uint256-: xref:governance.adoc#GovernorCountingSimple-_voteSucceeded-uint256-
  197. :xref-GovernorCountingSimple-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#GovernorCountingSimple-_countVote-uint256-address-uint8-uint256-bytes-
  198. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  199. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  200. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  201. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  202. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  203. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  204. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  205. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  206. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  207. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  208. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  209. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  210. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  211. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  212. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  213. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  214. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  215. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  216. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  217. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  218. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  219. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  220. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  221. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  222. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  223. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  224. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  225. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  226. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  227. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  228. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  229. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  230. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  231. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  232. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  233. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  234. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  235. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  236. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  237. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  238. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  239. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  240. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  241. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  242. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  243. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  244. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  245. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  246. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  247. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  248. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  249. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  250. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  251. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  252. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  253. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  254. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  255. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  256. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  257. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  258. :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-
  259. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  260. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  261. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  262. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  263. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  264. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  265. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  266. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  267. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  268. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  269. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  270. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  271. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  272. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  273. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  274. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  275. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  276. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  277. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  278. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  279. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  280. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  281. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  282. :Governor-_voteSucceeded: pass:normal[xref:governance.adoc#Governor-_voteSucceeded-uint256-[`Governor._voteSucceeded`]]
  283. :Governor-_countVote: pass:normal[xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-[`Governor._countVote`]]
  284. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  285. :GovernorCountingSimple: pass:normal[xref:governance.adoc#GovernorCountingSimple[`GovernorCountingSimple`]]
  286. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  287. :xref-GovernorCountingFractional-COUNTING_MODE--: xref:governance.adoc#GovernorCountingFractional-COUNTING_MODE--
  288. :xref-GovernorCountingFractional-hasVoted-uint256-address-: xref:governance.adoc#GovernorCountingFractional-hasVoted-uint256-address-
  289. :xref-GovernorCountingFractional-usedVotes-uint256-address-: xref:governance.adoc#GovernorCountingFractional-usedVotes-uint256-address-
  290. :xref-GovernorCountingFractional-proposalVotes-uint256-: xref:governance.adoc#GovernorCountingFractional-proposalVotes-uint256-
  291. :xref-GovernorCountingFractional-_quorumReached-uint256-: xref:governance.adoc#GovernorCountingFractional-_quorumReached-uint256-
  292. :xref-GovernorCountingFractional-_voteSucceeded-uint256-: xref:governance.adoc#GovernorCountingFractional-_voteSucceeded-uint256-
  293. :xref-GovernorCountingFractional-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#GovernorCountingFractional-_countVote-uint256-address-uint8-uint256-bytes-
  294. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  295. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  296. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  297. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  298. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  299. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  300. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  301. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  302. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  303. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  304. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  305. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  306. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  307. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  308. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  309. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  310. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  311. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  312. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  313. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  314. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  315. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  316. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  317. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  318. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  319. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  320. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  321. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  322. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  323. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  324. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  325. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  326. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  327. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  328. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  329. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  330. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  331. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  332. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  333. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  334. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  335. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  336. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  337. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  338. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  339. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  340. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  341. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  342. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  343. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  344. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  345. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  346. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  347. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  348. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  349. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  350. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  351. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  352. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  353. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  354. :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-
  355. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  356. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  357. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  358. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  359. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  360. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  361. :xref-GovernorCountingFractional-GovernorExceedRemainingWeight-address-uint256-uint256-: xref:governance.adoc#GovernorCountingFractional-GovernorExceedRemainingWeight-address-uint256-uint256-
  362. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  363. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  364. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  365. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  366. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  367. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  368. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  369. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  370. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  371. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  372. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  373. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  374. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  375. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  376. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  377. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  378. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  379. :xref-GovernorCountingFractional-VOTE_TYPE_FRACTIONAL-uint8: xref:governance.adoc#GovernorCountingFractional-VOTE_TYPE_FRACTIONAL-uint8
  380. :Governor-_voteSucceeded: pass:normal[xref:governance.adoc#Governor-_voteSucceeded-uint256-[`Governor._voteSucceeded`]]
  381. :Governor-_countVote: pass:normal[xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-[`Governor._countVote`]]
  382. :GovernorCountingSimple: pass:normal[xref:governance.adoc#GovernorCountingSimple[`GovernorCountingSimple`]]
  383. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  384. :VotesExtended: pass:normal[xref:governance.adoc#VotesExtended[`VotesExtended`]]
  385. :xref-GovernorCountingOverridable-COUNTING_MODE--: xref:governance.adoc#GovernorCountingOverridable-COUNTING_MODE--
  386. :xref-GovernorCountingOverridable-hasVoted-uint256-address-: xref:governance.adoc#GovernorCountingOverridable-hasVoted-uint256-address-
  387. :xref-GovernorCountingOverridable-hasVotedOverride-uint256-address-: xref:governance.adoc#GovernorCountingOverridable-hasVotedOverride-uint256-address-
  388. :xref-GovernorCountingOverridable-proposalVotes-uint256-: xref:governance.adoc#GovernorCountingOverridable-proposalVotes-uint256-
  389. :xref-GovernorCountingOverridable-_quorumReached-uint256-: xref:governance.adoc#GovernorCountingOverridable-_quorumReached-uint256-
  390. :xref-GovernorCountingOverridable-_voteSucceeded-uint256-: xref:governance.adoc#GovernorCountingOverridable-_voteSucceeded-uint256-
  391. :xref-GovernorCountingOverridable-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#GovernorCountingOverridable-_countVote-uint256-address-uint8-uint256-bytes-
  392. :xref-GovernorCountingOverridable-_countOverride-uint256-address-uint8-: xref:governance.adoc#GovernorCountingOverridable-_countOverride-uint256-address-uint8-
  393. :xref-GovernorCountingOverridable-_castOverride-uint256-address-uint8-string-: xref:governance.adoc#GovernorCountingOverridable-_castOverride-uint256-address-uint8-string-
  394. :xref-GovernorCountingOverridable-castOverrideVote-uint256-uint8-string-: xref:governance.adoc#GovernorCountingOverridable-castOverrideVote-uint256-uint8-string-
  395. :xref-GovernorCountingOverridable-castOverrideVoteBySig-uint256-uint8-address-string-bytes-: xref:governance.adoc#GovernorCountingOverridable-castOverrideVoteBySig-uint256-uint8-address-string-bytes-
  396. :xref-GovernorCountingOverridable-OVERRIDE_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#GovernorCountingOverridable-OVERRIDE_BALLOT_TYPEHASH-bytes32
  397. :xref-GovernorVotes-token--: xref:governance.adoc#GovernorVotes-token--
  398. :xref-GovernorVotes-clock--: xref:governance.adoc#GovernorVotes-clock--
  399. :xref-GovernorVotes-CLOCK_MODE--: xref:governance.adoc#GovernorVotes-CLOCK_MODE--
  400. :xref-GovernorVotes-_getVotes-address-uint256-bytes-: xref:governance.adoc#GovernorVotes-_getVotes-address-uint256-bytes-
  401. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  402. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  403. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  404. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  405. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  406. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  407. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  408. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  409. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  410. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  411. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  412. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  413. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  414. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  415. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  416. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  417. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  418. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  419. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  420. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  421. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  422. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  423. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  424. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  425. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  426. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  427. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  428. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  429. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  430. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  431. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  432. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  433. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  434. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  435. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  436. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  437. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  438. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  439. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  440. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  441. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  442. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  443. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  444. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  445. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  446. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  447. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  448. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  449. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  450. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  451. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  452. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  453. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  454. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  455. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  456. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  457. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  458. :xref-GovernorCountingOverridable-VoteReduced-address-uint256-uint8-uint256-: xref:governance.adoc#GovernorCountingOverridable-VoteReduced-address-uint256-uint8-uint256-
  459. :xref-GovernorCountingOverridable-OverrideVoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#GovernorCountingOverridable-OverrideVoteCast-address-uint256-uint8-uint256-string-
  460. :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-
  461. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  462. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  463. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  464. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  465. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  466. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  467. :xref-GovernorCountingOverridable-GovernorAlreadyOverriddenVote-address-: xref:governance.adoc#GovernorCountingOverridable-GovernorAlreadyOverriddenVote-address-
  468. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  469. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  470. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  471. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  472. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  473. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  474. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  475. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  476. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  477. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  478. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  479. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  480. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  481. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  482. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  483. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  484. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  485. :IGovernor-hasVoted: pass:normal[xref:governance.adoc#IGovernor-hasVoted-uint256-address-[`IGovernor.hasVoted`]]
  486. :Governor-_voteSucceeded: pass:normal[xref:governance.adoc#Governor-_voteSucceeded-uint256-[`Governor._voteSucceeded`]]
  487. :Governor-_countVote: pass:normal[xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-[`Governor._countVote`]]
  488. :Governor-_castVote: pass:normal[xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-[`Governor._castVote`]]
  489. :IGovernor-VoteCast: pass:normal[xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-[`IGovernor.VoteCast`]]
  490. :IGovernor-VoteCastWithParams: pass:normal[xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-[`IGovernor.VoteCastWithParams`]]
  491. :Governor-_countVote: pass:normal[xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-[`Governor._countVote`]]
  492. :Governor-_castVote: pass:normal[xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-[`Governor._castVote`]]
  493. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  494. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  495. :ERC721Votes: pass:normal[xref:token/ERC721.adoc#ERC721Votes[`ERC721Votes`]]
  496. :xref-GovernorVotes-constructor-contract-IVotes-: xref:governance.adoc#GovernorVotes-constructor-contract-IVotes-
  497. :xref-GovernorVotes-token--: xref:governance.adoc#GovernorVotes-token--
  498. :xref-GovernorVotes-clock--: xref:governance.adoc#GovernorVotes-clock--
  499. :xref-GovernorVotes-CLOCK_MODE--: xref:governance.adoc#GovernorVotes-CLOCK_MODE--
  500. :xref-GovernorVotes-_getVotes-address-uint256-bytes-: xref:governance.adoc#GovernorVotes-_getVotes-address-uint256-bytes-
  501. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  502. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  503. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  504. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  505. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  506. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  507. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  508. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  509. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  510. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  511. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  512. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  513. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  514. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  515. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  516. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  517. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  518. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  519. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  520. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  521. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  522. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  523. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  524. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  525. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  526. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  527. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  528. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  529. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  530. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  531. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  532. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  533. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  534. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  535. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  536. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  537. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  538. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  539. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  540. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  541. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  542. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  543. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  544. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  545. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  546. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  547. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  548. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  549. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  550. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  551. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  552. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  553. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  554. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  555. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  556. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  557. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  558. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  559. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  560. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  561. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  562. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  563. :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-
  564. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  565. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  566. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  567. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  568. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  569. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  570. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  571. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  572. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  573. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  574. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  575. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  576. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  577. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  578. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  579. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  580. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  581. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  582. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  583. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  584. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  585. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  586. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  587. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  588. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  589. :xref-GovernorVotesQuorumFraction-constructor-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-constructor-uint256-
  590. :xref-GovernorVotesQuorumFraction-quorumNumerator--: xref:governance.adoc#GovernorVotesQuorumFraction-quorumNumerator--
  591. :xref-GovernorVotesQuorumFraction-quorumNumerator-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-quorumNumerator-uint256-
  592. :xref-GovernorVotesQuorumFraction-quorumDenominator--: xref:governance.adoc#GovernorVotesQuorumFraction-quorumDenominator--
  593. :xref-GovernorVotesQuorumFraction-quorum-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-quorum-uint256-
  594. :xref-GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-
  595. :xref-GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-
  596. :xref-GovernorVotesQuorumFraction-_optimisticUpperLookupRecent-struct-Checkpoints-Trace208-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-_optimisticUpperLookupRecent-struct-Checkpoints-Trace208-uint256-
  597. :xref-GovernorVotes-token--: xref:governance.adoc#GovernorVotes-token--
  598. :xref-GovernorVotes-clock--: xref:governance.adoc#GovernorVotes-clock--
  599. :xref-GovernorVotes-CLOCK_MODE--: xref:governance.adoc#GovernorVotes-CLOCK_MODE--
  600. :xref-GovernorVotes-_getVotes-address-uint256-bytes-: xref:governance.adoc#GovernorVotes-_getVotes-address-uint256-bytes-
  601. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  602. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  603. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  604. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  605. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  606. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  607. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  608. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  609. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  610. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  611. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  612. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  613. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  614. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  615. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  616. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  617. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  618. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  619. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  620. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  621. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  622. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  623. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  624. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  625. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  626. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  627. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  628. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  629. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  630. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  631. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  632. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  633. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  634. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  635. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  636. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  637. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  638. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  639. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  640. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  641. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  642. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  643. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  644. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  645. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  646. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  647. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  648. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  649. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  650. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  651. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  652. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  653. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  654. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  655. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  656. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  657. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  658. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  659. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  660. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  661. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  662. :xref-GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-
  663. :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-
  664. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  665. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  666. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  667. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  668. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  669. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  670. :xref-GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-
  671. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  672. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  673. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  674. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  675. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  676. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  677. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  678. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  679. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  680. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  681. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  682. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  683. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  684. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  685. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  686. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  687. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  688. :GovernorVotesQuorumFraction: pass:normal[xref:governance.adoc#GovernorVotesQuorumFraction[`GovernorVotesQuorumFraction`]]
  689. :xref-GovernorVotesSuperQuorumFraction-constructor-uint256-: xref:governance.adoc#GovernorVotesSuperQuorumFraction-constructor-uint256-
  690. :xref-GovernorVotesSuperQuorumFraction-superQuorumNumerator--: xref:governance.adoc#GovernorVotesSuperQuorumFraction-superQuorumNumerator--
  691. :xref-GovernorVotesSuperQuorumFraction-superQuorumNumerator-uint256-: xref:governance.adoc#GovernorVotesSuperQuorumFraction-superQuorumNumerator-uint256-
  692. :xref-GovernorVotesSuperQuorumFraction-superQuorum-uint256-: xref:governance.adoc#GovernorVotesSuperQuorumFraction-superQuorum-uint256-
  693. :xref-GovernorVotesSuperQuorumFraction-updateSuperQuorumNumerator-uint256-: xref:governance.adoc#GovernorVotesSuperQuorumFraction-updateSuperQuorumNumerator-uint256-
  694. :xref-GovernorVotesSuperQuorumFraction-_updateSuperQuorumNumerator-uint256-: xref:governance.adoc#GovernorVotesSuperQuorumFraction-_updateSuperQuorumNumerator-uint256-
  695. :xref-GovernorVotesSuperQuorumFraction-_updateQuorumNumerator-uint256-: xref:governance.adoc#GovernorVotesSuperQuorumFraction-_updateQuorumNumerator-uint256-
  696. :xref-GovernorVotesSuperQuorumFraction-state-uint256-: xref:governance.adoc#GovernorVotesSuperQuorumFraction-state-uint256-
  697. :xref-GovernorSuperQuorum-proposalVotes-uint256-: xref:governance.adoc#GovernorSuperQuorum-proposalVotes-uint256-
  698. :xref-GovernorVotesQuorumFraction-quorumNumerator--: xref:governance.adoc#GovernorVotesQuorumFraction-quorumNumerator--
  699. :xref-GovernorVotesQuorumFraction-quorumNumerator-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-quorumNumerator-uint256-
  700. :xref-GovernorVotesQuorumFraction-quorumDenominator--: xref:governance.adoc#GovernorVotesQuorumFraction-quorumDenominator--
  701. :xref-GovernorVotesQuorumFraction-quorum-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-quorum-uint256-
  702. :xref-GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-
  703. :xref-GovernorVotesQuorumFraction-_optimisticUpperLookupRecent-struct-Checkpoints-Trace208-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-_optimisticUpperLookupRecent-struct-Checkpoints-Trace208-uint256-
  704. :xref-GovernorVotes-token--: xref:governance.adoc#GovernorVotes-token--
  705. :xref-GovernorVotes-clock--: xref:governance.adoc#GovernorVotes-clock--
  706. :xref-GovernorVotes-CLOCK_MODE--: xref:governance.adoc#GovernorVotes-CLOCK_MODE--
  707. :xref-GovernorVotes-_getVotes-address-uint256-bytes-: xref:governance.adoc#GovernorVotes-_getVotes-address-uint256-bytes-
  708. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  709. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  710. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  711. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  712. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  713. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  714. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  715. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  716. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  717. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  718. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  719. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  720. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  721. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  722. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  723. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  724. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  725. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  726. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  727. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  728. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  729. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  730. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  731. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  732. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  733. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  734. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  735. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  736. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  737. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  738. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  739. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  740. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  741. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  742. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  743. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  744. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  745. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  746. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  747. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  748. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  749. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  750. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  751. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  752. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  753. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  754. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  755. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  756. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  757. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  758. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  759. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  760. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  761. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  762. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  763. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  764. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  765. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  766. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  767. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  768. :xref-GovernorVotesSuperQuorumFraction-SuperQuorumNumeratorUpdated-uint256-uint256-: xref:governance.adoc#GovernorVotesSuperQuorumFraction-SuperQuorumNumeratorUpdated-uint256-uint256-
  769. :xref-GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-
  770. :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-
  771. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  772. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  773. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  774. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  775. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  776. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  777. :xref-GovernorVotesSuperQuorumFraction-GovernorInvalidSuperQuorumFraction-uint256-uint256-: xref:governance.adoc#GovernorVotesSuperQuorumFraction-GovernorInvalidSuperQuorumFraction-uint256-uint256-
  778. :xref-GovernorVotesSuperQuorumFraction-GovernorInvalidSuperQuorumTooSmall-uint256-uint256-: xref:governance.adoc#GovernorVotesSuperQuorumFraction-GovernorInvalidSuperQuorumTooSmall-uint256-uint256-
  779. :xref-GovernorVotesSuperQuorumFraction-GovernorInvalidQuorumTooLarge-uint256-uint256-: xref:governance.adoc#GovernorVotesSuperQuorumFraction-GovernorInvalidQuorumTooLarge-uint256-uint256-
  780. :xref-GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-: xref:governance.adoc#GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-
  781. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  782. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  783. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  784. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  785. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  786. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  787. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  788. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  789. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  790. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  791. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  792. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  793. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  794. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  795. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  796. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  797. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  798. :GovernorSuperQuorum-superQuorum: pass:normal[xref:governance.adoc#GovernorSuperQuorum-superQuorum-uint256-[`GovernorSuperQuorum.superQuorum`]]
  799. :GovernorVotesQuorumFraction-_updateQuorumNumerator: pass:normal[xref:governance.adoc#GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-[`GovernorVotesQuorumFraction._updateQuorumNumerator`]]
  800. :Governor-state: pass:normal[xref:governance.adoc#Governor-state-uint256-[`Governor.state`]]
  801. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  802. :AccessManager: pass:normal[xref:access.adoc#AccessManager[`AccessManager`]]
  803. :GovernorTimelockControl: pass:normal[xref:governance.adoc#GovernorTimelockControl[`GovernorTimelockControl`]]
  804. :GovernorTimelockCompound: pass:normal[xref:governance.adoc#GovernorTimelockCompound[`GovernorTimelockCompound`]]
  805. :AccessManager-execute: pass:normal[xref:access.adoc#AccessManager-execute-address-bytes-[`AccessManager.execute`]]
  806. :AccessManager-schedule: pass:normal[xref:access.adoc#AccessManager-schedule-address-bytes-uint48-[`AccessManager.schedule`]]
  807. :xref-GovernorTimelockAccess-constructor-address-uint32-: xref:governance.adoc#GovernorTimelockAccess-constructor-address-uint32-
  808. :xref-GovernorTimelockAccess-accessManager--: xref:governance.adoc#GovernorTimelockAccess-accessManager--
  809. :xref-GovernorTimelockAccess-baseDelaySeconds--: xref:governance.adoc#GovernorTimelockAccess-baseDelaySeconds--
  810. :xref-GovernorTimelockAccess-setBaseDelaySeconds-uint32-: xref:governance.adoc#GovernorTimelockAccess-setBaseDelaySeconds-uint32-
  811. :xref-GovernorTimelockAccess-_setBaseDelaySeconds-uint32-: xref:governance.adoc#GovernorTimelockAccess-_setBaseDelaySeconds-uint32-
  812. :xref-GovernorTimelockAccess-isAccessManagerIgnored-address-bytes4-: xref:governance.adoc#GovernorTimelockAccess-isAccessManagerIgnored-address-bytes4-
  813. :xref-GovernorTimelockAccess-setAccessManagerIgnored-address-bytes4---bool-: xref:governance.adoc#GovernorTimelockAccess-setAccessManagerIgnored-address-bytes4---bool-
  814. :xref-GovernorTimelockAccess-_setAccessManagerIgnored-address-bytes4-bool-: xref:governance.adoc#GovernorTimelockAccess-_setAccessManagerIgnored-address-bytes4-bool-
  815. :xref-GovernorTimelockAccess-proposalExecutionPlan-uint256-: xref:governance.adoc#GovernorTimelockAccess-proposalExecutionPlan-uint256-
  816. :xref-GovernorTimelockAccess-proposalNeedsQueuing-uint256-: xref:governance.adoc#GovernorTimelockAccess-proposalNeedsQueuing-uint256-
  817. :xref-GovernorTimelockAccess-propose-address---uint256---bytes---string-: xref:governance.adoc#GovernorTimelockAccess-propose-address---uint256---bytes---string-
  818. :xref-GovernorTimelockAccess-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockAccess-_queueOperations-uint256-address---uint256---bytes---bytes32-
  819. :xref-GovernorTimelockAccess-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockAccess-_executeOperations-uint256-address---uint256---bytes---bytes32-
  820. :xref-GovernorTimelockAccess-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockAccess-_cancel-address---uint256---bytes---bytes32-
  821. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  822. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  823. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  824. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  825. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  826. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  827. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  828. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  829. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  830. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  831. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  832. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  833. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  834. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  835. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  836. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  837. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  838. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  839. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  840. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  841. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  842. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  843. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  844. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  845. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  846. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  847. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  848. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  849. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  850. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  851. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  852. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  853. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  854. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  855. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  856. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  857. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  858. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  859. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  860. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  861. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  862. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  863. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  864. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  865. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  866. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  867. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  868. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  869. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  870. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  871. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  872. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  873. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  874. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  875. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  876. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  877. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  878. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  879. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  880. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  881. :xref-GovernorTimelockAccess-BaseDelaySet-uint32-uint32-: xref:governance.adoc#GovernorTimelockAccess-BaseDelaySet-uint32-uint32-
  882. :xref-GovernorTimelockAccess-AccessManagerIgnoredSet-address-bytes4-bool-: xref:governance.adoc#GovernorTimelockAccess-AccessManagerIgnoredSet-address-bytes4-bool-
  883. :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-
  884. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  885. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  886. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  887. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  888. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  889. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  890. :xref-GovernorTimelockAccess-GovernorUnmetDelay-uint256-uint256-: xref:governance.adoc#GovernorTimelockAccess-GovernorUnmetDelay-uint256-uint256-
  891. :xref-GovernorTimelockAccess-GovernorMismatchedNonce-uint256-uint256-uint256-: xref:governance.adoc#GovernorTimelockAccess-GovernorMismatchedNonce-uint256-uint256-uint256-
  892. :xref-GovernorTimelockAccess-GovernorLockedIgnore--: xref:governance.adoc#GovernorTimelockAccess-GovernorLockedIgnore--
  893. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  894. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  895. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  896. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  897. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  898. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  899. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  900. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  901. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  902. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  903. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  904. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  905. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  906. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  907. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  908. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  909. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  910. :AccessManager: pass:normal[xref:access.adoc#AccessManager[`AccessManager`]]
  911. :AccessManager: pass:normal[xref:access.adoc#AccessManager[`AccessManager`]]
  912. :AccessManager: pass:normal[xref:access.adoc#AccessManager[`AccessManager`]]
  913. :AccessManager: pass:normal[xref:access.adoc#AccessManager[`AccessManager`]]
  914. :AccessManager: pass:normal[xref:access.adoc#AccessManager[`AccessManager`]]
  915. :AccessManager-execute: pass:normal[xref:access.adoc#AccessManager-execute-address-bytes-[`AccessManager.execute`]]
  916. :IGovernor-ProposalCanceled: pass:normal[xref:governance.adoc#IGovernor-ProposalCanceled-uint256-[`IGovernor.ProposalCanceled`]]
  917. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  918. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  919. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  920. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  921. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  922. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  923. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  924. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  925. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  926. :Governor-relay: pass:normal[xref:governance.adoc#Governor-relay-address-uint256-bytes-[`Governor.relay`]]
  927. :xref-GovernorTimelockControl-constructor-contract-TimelockController-: xref:governance.adoc#GovernorTimelockControl-constructor-contract-TimelockController-
  928. :xref-GovernorTimelockControl-state-uint256-: xref:governance.adoc#GovernorTimelockControl-state-uint256-
  929. :xref-GovernorTimelockControl-timelock--: xref:governance.adoc#GovernorTimelockControl-timelock--
  930. :xref-GovernorTimelockControl-proposalNeedsQueuing-uint256-: xref:governance.adoc#GovernorTimelockControl-proposalNeedsQueuing-uint256-
  931. :xref-GovernorTimelockControl-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockControl-_queueOperations-uint256-address---uint256---bytes---bytes32-
  932. :xref-GovernorTimelockControl-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockControl-_executeOperations-uint256-address---uint256---bytes---bytes32-
  933. :xref-GovernorTimelockControl-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockControl-_cancel-address---uint256---bytes---bytes32-
  934. :xref-GovernorTimelockControl-_executor--: xref:governance.adoc#GovernorTimelockControl-_executor--
  935. :xref-GovernorTimelockControl-updateTimelock-contract-TimelockController-: xref:governance.adoc#GovernorTimelockControl-updateTimelock-contract-TimelockController-
  936. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  937. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  938. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  939. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  940. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  941. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  942. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  943. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  944. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  945. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  946. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  947. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  948. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  949. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  950. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  951. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  952. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  953. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  954. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  955. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  956. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  957. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  958. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  959. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  960. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  961. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  962. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  963. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  964. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  965. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  966. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  967. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  968. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  969. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  970. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  971. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  972. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  973. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  974. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  975. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  976. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  977. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  978. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  979. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  980. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  981. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  982. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  983. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  984. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  985. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  986. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  987. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  988. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  989. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  990. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  991. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  992. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  993. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  994. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  995. :xref-GovernorTimelockControl-TimelockChange-address-address-: xref:governance.adoc#GovernorTimelockControl-TimelockChange-address-address-
  996. :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-
  997. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  998. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  999. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  1000. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  1001. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  1002. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  1003. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  1004. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  1005. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  1006. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  1007. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  1008. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  1009. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  1010. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  1011. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  1012. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  1013. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  1014. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  1015. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  1016. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  1017. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  1018. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  1019. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  1020. :Governor-state: pass:normal[xref:governance.adoc#Governor-state-uint256-[`Governor.state`]]
  1021. :Governor-_executeOperations: pass:normal[xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-[`Governor._executeOperations`]]
  1022. :Governor-_cancel: pass:normal[xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-[`Governor._cancel`]]
  1023. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  1024. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  1025. :GovernorTimelockCompound-__acceptAdmin: pass:normal[xref:governance.adoc#GovernorTimelockCompound-__acceptAdmin--[`GovernorTimelockCompound.__acceptAdmin`]]
  1026. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  1027. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  1028. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  1029. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  1030. :Governor-relay: pass:normal[xref:governance.adoc#Governor-relay-address-uint256-bytes-[`Governor.relay`]]
  1031. :xref-GovernorTimelockCompound-constructor-contract-ICompoundTimelock-: xref:governance.adoc#GovernorTimelockCompound-constructor-contract-ICompoundTimelock-
  1032. :xref-GovernorTimelockCompound-state-uint256-: xref:governance.adoc#GovernorTimelockCompound-state-uint256-
  1033. :xref-GovernorTimelockCompound-timelock--: xref:governance.adoc#GovernorTimelockCompound-timelock--
  1034. :xref-GovernorTimelockCompound-proposalNeedsQueuing-uint256-: xref:governance.adoc#GovernorTimelockCompound-proposalNeedsQueuing-uint256-
  1035. :xref-GovernorTimelockCompound-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockCompound-_queueOperations-uint256-address---uint256---bytes---bytes32-
  1036. :xref-GovernorTimelockCompound-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockCompound-_executeOperations-uint256-address---uint256---bytes---bytes32-
  1037. :xref-GovernorTimelockCompound-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#GovernorTimelockCompound-_cancel-address---uint256---bytes---bytes32-
  1038. :xref-GovernorTimelockCompound-_executor--: xref:governance.adoc#GovernorTimelockCompound-_executor--
  1039. :xref-GovernorTimelockCompound-__acceptAdmin--: xref:governance.adoc#GovernorTimelockCompound-__acceptAdmin--
  1040. :xref-GovernorTimelockCompound-updateTimelock-contract-ICompoundTimelock-: xref:governance.adoc#GovernorTimelockCompound-updateTimelock-contract-ICompoundTimelock-
  1041. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  1042. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  1043. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  1044. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  1045. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  1046. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  1047. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  1048. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  1049. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  1050. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  1051. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  1052. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  1053. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  1054. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  1055. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  1056. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  1057. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  1058. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  1059. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  1060. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  1061. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  1062. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  1063. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  1064. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  1065. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  1066. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  1067. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  1068. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  1069. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  1070. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  1071. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  1072. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  1073. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  1074. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  1075. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  1076. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  1077. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  1078. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  1079. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  1080. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  1081. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  1082. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  1083. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  1084. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  1085. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  1086. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  1087. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  1088. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  1089. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  1090. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  1091. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  1092. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  1093. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  1094. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  1095. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  1096. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  1097. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  1098. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  1099. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  1100. :xref-GovernorTimelockCompound-TimelockChange-address-address-: xref:governance.adoc#GovernorTimelockCompound-TimelockChange-address-address-
  1101. :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-
  1102. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  1103. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  1104. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  1105. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  1106. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  1107. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  1108. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  1109. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  1110. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  1111. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  1112. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  1113. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  1114. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  1115. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  1116. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  1117. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  1118. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  1119. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  1120. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  1121. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  1122. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  1123. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  1124. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  1125. :Governor-state: pass:normal[xref:governance.adoc#Governor-state-uint256-[`Governor.state`]]
  1126. :Governor-_executeOperations: pass:normal[xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-[`Governor._executeOperations`]]
  1127. :Governor-_cancel: pass:normal[xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-[`Governor._cancel`]]
  1128. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  1129. :xref-GovernorSettings-constructor-uint48-uint32-uint256-: xref:governance.adoc#GovernorSettings-constructor-uint48-uint32-uint256-
  1130. :xref-GovernorSettings-votingDelay--: xref:governance.adoc#GovernorSettings-votingDelay--
  1131. :xref-GovernorSettings-votingPeriod--: xref:governance.adoc#GovernorSettings-votingPeriod--
  1132. :xref-GovernorSettings-proposalThreshold--: xref:governance.adoc#GovernorSettings-proposalThreshold--
  1133. :xref-GovernorSettings-setVotingDelay-uint48-: xref:governance.adoc#GovernorSettings-setVotingDelay-uint48-
  1134. :xref-GovernorSettings-setVotingPeriod-uint32-: xref:governance.adoc#GovernorSettings-setVotingPeriod-uint32-
  1135. :xref-GovernorSettings-setProposalThreshold-uint256-: xref:governance.adoc#GovernorSettings-setProposalThreshold-uint256-
  1136. :xref-GovernorSettings-_setVotingDelay-uint48-: xref:governance.adoc#GovernorSettings-_setVotingDelay-uint48-
  1137. :xref-GovernorSettings-_setVotingPeriod-uint32-: xref:governance.adoc#GovernorSettings-_setVotingPeriod-uint32-
  1138. :xref-GovernorSettings-_setProposalThreshold-uint256-: xref:governance.adoc#GovernorSettings-_setProposalThreshold-uint256-
  1139. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  1140. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  1141. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  1142. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  1143. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  1144. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  1145. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  1146. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  1147. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  1148. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  1149. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  1150. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  1151. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  1152. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  1153. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  1154. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  1155. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  1156. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  1157. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  1158. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  1159. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  1160. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  1161. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  1162. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  1163. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  1164. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  1165. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  1166. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  1167. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  1168. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  1169. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  1170. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  1171. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  1172. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  1173. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  1174. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  1175. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  1176. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  1177. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  1178. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  1179. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  1180. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  1181. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  1182. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  1183. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  1184. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  1185. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  1186. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  1187. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  1188. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  1189. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  1190. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  1191. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  1192. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  1193. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  1194. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  1195. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  1196. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  1197. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  1198. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  1199. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  1200. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  1201. :xref-GovernorSettings-VotingDelaySet-uint256-uint256-: xref:governance.adoc#GovernorSettings-VotingDelaySet-uint256-uint256-
  1202. :xref-GovernorSettings-VotingPeriodSet-uint256-uint256-: xref:governance.adoc#GovernorSettings-VotingPeriodSet-uint256-uint256-
  1203. :xref-GovernorSettings-ProposalThresholdSet-uint256-uint256-: xref:governance.adoc#GovernorSettings-ProposalThresholdSet-uint256-uint256-
  1204. :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-
  1205. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  1206. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  1207. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  1208. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  1209. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  1210. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  1211. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  1212. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  1213. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  1214. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  1215. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  1216. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  1217. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  1218. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  1219. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  1220. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  1221. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  1222. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  1223. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  1224. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  1225. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  1226. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  1227. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  1228. :xref-GovernorPreventLateQuorum-constructor-uint48-: xref:governance.adoc#GovernorPreventLateQuorum-constructor-uint48-
  1229. :xref-GovernorPreventLateQuorum-proposalDeadline-uint256-: xref:governance.adoc#GovernorPreventLateQuorum-proposalDeadline-uint256-
  1230. :xref-GovernorPreventLateQuorum-_tallyUpdated-uint256-: xref:governance.adoc#GovernorPreventLateQuorum-_tallyUpdated-uint256-
  1231. :xref-GovernorPreventLateQuorum-lateQuorumVoteExtension--: xref:governance.adoc#GovernorPreventLateQuorum-lateQuorumVoteExtension--
  1232. :xref-GovernorPreventLateQuorum-setLateQuorumVoteExtension-uint48-: xref:governance.adoc#GovernorPreventLateQuorum-setLateQuorumVoteExtension-uint48-
  1233. :xref-GovernorPreventLateQuorum-_setLateQuorumVoteExtension-uint48-: xref:governance.adoc#GovernorPreventLateQuorum-_setLateQuorumVoteExtension-uint48-
  1234. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  1235. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  1236. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  1237. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  1238. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  1239. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  1240. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  1241. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  1242. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  1243. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  1244. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  1245. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  1246. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  1247. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  1248. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  1249. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  1250. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  1251. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  1252. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  1253. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  1254. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  1255. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  1256. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  1257. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  1258. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  1259. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  1260. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  1261. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  1262. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  1263. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  1264. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  1265. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  1266. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  1267. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  1268. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  1269. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  1270. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  1271. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  1272. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  1273. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  1274. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  1275. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  1276. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  1277. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  1278. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  1279. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  1280. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  1281. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  1282. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  1283. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  1284. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  1285. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  1286. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  1287. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  1288. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  1289. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  1290. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  1291. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  1292. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  1293. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  1294. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  1295. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  1296. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  1297. :xref-GovernorPreventLateQuorum-ProposalExtended-uint256-uint64-: xref:governance.adoc#GovernorPreventLateQuorum-ProposalExtended-uint256-uint64-
  1298. :xref-GovernorPreventLateQuorum-LateQuorumVoteExtensionSet-uint64-uint64-: xref:governance.adoc#GovernorPreventLateQuorum-LateQuorumVoteExtensionSet-uint64-uint64-
  1299. :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-
  1300. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  1301. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  1302. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  1303. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  1304. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  1305. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  1306. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  1307. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  1308. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  1309. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  1310. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  1311. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  1312. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  1313. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  1314. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  1315. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  1316. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  1317. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  1318. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  1319. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  1320. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  1321. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  1322. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  1323. :Governor-proposalDeadline: pass:normal[xref:governance.adoc#Governor-proposalDeadline-uint256-[`Governor.proposalDeadline`]]
  1324. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  1325. :Governor-queue: pass:normal[xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-[`Governor.queue`]]
  1326. :Governor-execute: pass:normal[xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-[`Governor.execute`]]
  1327. :xref-GovernorStorage-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#GovernorStorage-_propose-address---uint256---bytes---string-address-
  1328. :xref-GovernorStorage-queue-uint256-: xref:governance.adoc#GovernorStorage-queue-uint256-
  1329. :xref-GovernorStorage-execute-uint256-: xref:governance.adoc#GovernorStorage-execute-uint256-
  1330. :xref-GovernorStorage-cancel-uint256-: xref:governance.adoc#GovernorStorage-cancel-uint256-
  1331. :xref-GovernorStorage-proposalCount--: xref:governance.adoc#GovernorStorage-proposalCount--
  1332. :xref-GovernorStorage-proposalDetails-uint256-: xref:governance.adoc#GovernorStorage-proposalDetails-uint256-
  1333. :xref-GovernorStorage-proposalDetailsAt-uint256-: xref:governance.adoc#GovernorStorage-proposalDetailsAt-uint256-
  1334. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  1335. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  1336. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  1337. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  1338. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  1339. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  1340. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  1341. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  1342. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  1343. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  1344. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  1345. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  1346. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  1347. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  1348. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  1349. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  1350. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  1351. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  1352. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  1353. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  1354. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  1355. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  1356. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  1357. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  1358. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  1359. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  1360. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  1361. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  1362. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  1363. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  1364. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  1365. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  1366. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  1367. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  1368. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  1369. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  1370. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  1371. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  1372. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  1373. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  1374. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  1375. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  1376. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  1377. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  1378. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  1379. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  1380. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  1381. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  1382. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  1383. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  1384. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  1385. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  1386. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  1387. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  1388. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  1389. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  1390. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  1391. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  1392. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  1393. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  1394. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  1395. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  1396. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  1397. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  1398. :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-
  1399. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  1400. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  1401. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  1402. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  1403. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  1404. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  1405. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  1406. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  1407. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  1408. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  1409. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  1410. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  1411. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  1412. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  1413. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  1414. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  1415. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  1416. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  1417. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  1418. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  1419. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  1420. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  1421. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  1422. :IGovernor-queue: pass:normal[xref:governance.adoc#IGovernor-queue-address---uint256---bytes---bytes32-[`IGovernor.queue`]]
  1423. :IGovernor-execute: pass:normal[xref:governance.adoc#IGovernor-execute-address---uint256---bytes---bytes32-[`IGovernor.execute`]]
  1424. :IGovernor-cancel: pass:normal[xref:governance.adoc#IGovernor-cancel-address---uint256---bytes---bytes32-[`IGovernor.cancel`]]
  1425. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  1426. :xref-GovernorProposalGuardian-proposalGuardian--: xref:governance.adoc#GovernorProposalGuardian-proposalGuardian--
  1427. :xref-GovernorProposalGuardian-setProposalGuardian-address-: xref:governance.adoc#GovernorProposalGuardian-setProposalGuardian-address-
  1428. :xref-GovernorProposalGuardian-_setProposalGuardian-address-: xref:governance.adoc#GovernorProposalGuardian-_setProposalGuardian-address-
  1429. :xref-GovernorProposalGuardian-_validateCancel-uint256-address-: xref:governance.adoc#GovernorProposalGuardian-_validateCancel-uint256-address-
  1430. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  1431. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  1432. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  1433. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  1434. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  1435. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  1436. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  1437. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  1438. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  1439. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  1440. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  1441. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  1442. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  1443. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  1444. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  1445. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  1446. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  1447. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  1448. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  1449. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  1450. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  1451. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  1452. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  1453. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  1454. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  1455. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  1456. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  1457. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  1458. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  1459. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  1460. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  1461. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  1462. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  1463. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  1464. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  1465. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  1466. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  1467. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  1468. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  1469. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  1470. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  1471. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  1472. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  1473. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  1474. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  1475. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  1476. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  1477. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  1478. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  1479. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  1480. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  1481. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  1482. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  1483. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  1484. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  1485. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  1486. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  1487. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  1488. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  1489. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  1490. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  1491. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  1492. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  1493. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  1494. :xref-GovernorProposalGuardian-ProposalGuardianSet-address-address-: xref:governance.adoc#GovernorProposalGuardian-ProposalGuardianSet-address-address-
  1495. :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-
  1496. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  1497. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  1498. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  1499. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  1500. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  1501. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  1502. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  1503. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  1504. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  1505. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  1506. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  1507. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  1508. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  1509. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  1510. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  1511. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  1512. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  1513. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  1514. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  1515. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  1516. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  1517. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  1518. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  1519. :Governor-_validateCancel: pass:normal[xref:governance.adoc#Governor-_validateCancel-uint256-address-[`Governor._validateCancel`]]
  1520. :IGovernor-proposalProposer: pass:normal[xref:governance.adoc#IGovernor-proposalProposer-uint256-[`IGovernor.proposalProposer`]]
  1521. :Governor-_validateCancel: pass:normal[xref:governance.adoc#Governor-_validateCancel-uint256-address-[`Governor._validateCancel`]]
  1522. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  1523. :xref-GovernorSuperQuorum-superQuorum-uint256-: xref:governance.adoc#GovernorSuperQuorum-superQuorum-uint256-
  1524. :xref-GovernorSuperQuorum-proposalVotes-uint256-: xref:governance.adoc#GovernorSuperQuorum-proposalVotes-uint256-
  1525. :xref-GovernorSuperQuorum-state-uint256-: xref:governance.adoc#GovernorSuperQuorum-state-uint256-
  1526. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  1527. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  1528. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  1529. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  1530. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  1531. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  1532. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  1533. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  1534. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  1535. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  1536. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  1537. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  1538. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  1539. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  1540. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  1541. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  1542. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  1543. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  1544. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  1545. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  1546. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  1547. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  1548. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  1549. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  1550. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  1551. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  1552. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  1553. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  1554. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  1555. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  1556. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  1557. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  1558. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  1559. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  1560. :xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-_validateVoteSig-uint256-uint8-address-bytes-
  1561. :xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  1562. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  1563. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  1564. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  1565. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  1566. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  1567. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  1568. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  1569. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  1570. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  1571. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  1572. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  1573. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  1574. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  1575. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  1576. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  1577. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  1578. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  1579. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  1580. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  1581. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  1582. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  1583. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  1584. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  1585. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  1586. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  1587. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  1588. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  1589. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  1590. :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-
  1591. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  1592. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  1593. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  1594. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  1595. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  1596. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  1597. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  1598. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  1599. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  1600. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  1601. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  1602. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  1603. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  1604. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  1605. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  1606. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  1607. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  1608. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  1609. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  1610. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  1611. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  1612. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  1613. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  1614. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  1615. :Governor-state: pass:normal[xref:governance.adoc#Governor-state-uint256-[`Governor.state`]]
  1616. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  1617. :NoncesKeyed: pass:normal[xref:utils.adoc#NoncesKeyed[`NoncesKeyed`]]
  1618. :xref-GovernorNoncesKeyed-_useCheckedNonce-address-uint256-: xref:governance.adoc#GovernorNoncesKeyed-_useCheckedNonce-address-uint256-
  1619. :xref-GovernorNoncesKeyed-_validateVoteSig-uint256-uint8-address-bytes-: xref:governance.adoc#GovernorNoncesKeyed-_validateVoteSig-uint256-uint8-address-bytes-
  1620. :xref-GovernorNoncesKeyed-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#GovernorNoncesKeyed-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-
  1621. :xref-NoncesKeyed-nonces-address-uint192-: xref:utils.adoc#NoncesKeyed-nonces-address-uint192-
  1622. :xref-NoncesKeyed-_useNonce-address-uint192-: xref:utils.adoc#NoncesKeyed-_useNonce-address-uint192-
  1623. :xref-NoncesKeyed-_useCheckedNonce-address-uint192-uint64-: xref:utils.adoc#NoncesKeyed-_useCheckedNonce-address-uint192-uint64-
  1624. :xref-Governor-receive--: xref:governance.adoc#Governor-receive--
  1625. :xref-Governor-supportsInterface-bytes4-: xref:governance.adoc#Governor-supportsInterface-bytes4-
  1626. :xref-Governor-name--: xref:governance.adoc#Governor-name--
  1627. :xref-Governor-version--: xref:governance.adoc#Governor-version--
  1628. :xref-Governor-hashProposal-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-hashProposal-address---uint256---bytes---bytes32-
  1629. :xref-Governor-getProposalId-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-getProposalId-address---uint256---bytes---bytes32-
  1630. :xref-Governor-state-uint256-: xref:governance.adoc#Governor-state-uint256-
  1631. :xref-Governor-proposalThreshold--: xref:governance.adoc#Governor-proposalThreshold--
  1632. :xref-Governor-proposalSnapshot-uint256-: xref:governance.adoc#Governor-proposalSnapshot-uint256-
  1633. :xref-Governor-proposalDeadline-uint256-: xref:governance.adoc#Governor-proposalDeadline-uint256-
  1634. :xref-Governor-proposalProposer-uint256-: xref:governance.adoc#Governor-proposalProposer-uint256-
  1635. :xref-Governor-proposalEta-uint256-: xref:governance.adoc#Governor-proposalEta-uint256-
  1636. :xref-Governor-proposalNeedsQueuing-uint256-: xref:governance.adoc#Governor-proposalNeedsQueuing-uint256-
  1637. :xref-Governor-_checkGovernance--: xref:governance.adoc#Governor-_checkGovernance--
  1638. :xref-Governor-_quorumReached-uint256-: xref:governance.adoc#Governor-_quorumReached-uint256-
  1639. :xref-Governor-_voteSucceeded-uint256-: xref:governance.adoc#Governor-_voteSucceeded-uint256-
  1640. :xref-Governor-_getVotes-address-uint256-bytes-: xref:governance.adoc#Governor-_getVotes-address-uint256-bytes-
  1641. :xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-: xref:governance.adoc#Governor-_countVote-uint256-address-uint8-uint256-bytes-
  1642. :xref-Governor-_tallyUpdated-uint256-: xref:governance.adoc#Governor-_tallyUpdated-uint256-
  1643. :xref-Governor-_defaultParams--: xref:governance.adoc#Governor-_defaultParams--
  1644. :xref-Governor-propose-address---uint256---bytes---string-: xref:governance.adoc#Governor-propose-address---uint256---bytes---string-
  1645. :xref-Governor-_propose-address---uint256---bytes---string-address-: xref:governance.adoc#Governor-_propose-address---uint256---bytes---string-address-
  1646. :xref-Governor-queue-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-queue-address---uint256---bytes---bytes32-
  1647. :xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-
  1648. :xref-Governor-execute-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-execute-address---uint256---bytes---bytes32-
  1649. :xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-
  1650. :xref-Governor-cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-cancel-address---uint256---bytes---bytes32-
  1651. :xref-Governor-_cancel-address---uint256---bytes---bytes32-: xref:governance.adoc#Governor-_cancel-address---uint256---bytes---bytes32-
  1652. :xref-Governor-getVotes-address-uint256-: xref:governance.adoc#Governor-getVotes-address-uint256-
  1653. :xref-Governor-getVotesWithParams-address-uint256-bytes-: xref:governance.adoc#Governor-getVotesWithParams-address-uint256-bytes-
  1654. :xref-Governor-castVote-uint256-uint8-: xref:governance.adoc#Governor-castVote-uint256-uint8-
  1655. :xref-Governor-castVoteWithReason-uint256-uint8-string-: xref:governance.adoc#Governor-castVoteWithReason-uint256-uint8-string-
  1656. :xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-
  1657. :xref-Governor-castVoteBySig-uint256-uint8-address-bytes-: xref:governance.adoc#Governor-castVoteBySig-uint256-uint8-address-bytes-
  1658. :xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-: xref:governance.adoc#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-
  1659. :xref-Governor-_castVote-uint256-address-uint8-string-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-
  1660. :xref-Governor-_castVote-uint256-address-uint8-string-bytes-: xref:governance.adoc#Governor-_castVote-uint256-address-uint8-string-bytes-
  1661. :xref-Governor-relay-address-uint256-bytes-: xref:governance.adoc#Governor-relay-address-uint256-bytes-
  1662. :xref-Governor-_executor--: xref:governance.adoc#Governor-_executor--
  1663. :xref-Governor-onERC721Received-address-address-uint256-bytes-: xref:governance.adoc#Governor-onERC721Received-address-address-uint256-bytes-
  1664. :xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-: xref:governance.adoc#Governor-onERC1155Received-address-address-uint256-uint256-bytes-
  1665. :xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:governance.adoc#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  1666. :xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-: xref:governance.adoc#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-
  1667. :xref-Governor-_validateStateBitmap-uint256-bytes32-: xref:governance.adoc#Governor-_validateStateBitmap-uint256-bytes32-
  1668. :xref-Governor-_isValidDescriptionForProposer-address-string-: xref:governance.adoc#Governor-_isValidDescriptionForProposer-address-string-
  1669. :xref-Governor-_validateCancel-uint256-address-: xref:governance.adoc#Governor-_validateCancel-uint256-address-
  1670. :xref-Governor-clock--: xref:governance.adoc#Governor-clock--
  1671. :xref-Governor-CLOCK_MODE--: xref:governance.adoc#Governor-CLOCK_MODE--
  1672. :xref-Governor-votingDelay--: xref:governance.adoc#Governor-votingDelay--
  1673. :xref-Governor-votingPeriod--: xref:governance.adoc#Governor-votingPeriod--
  1674. :xref-Governor-quorum-uint256-: xref:governance.adoc#Governor-quorum-uint256-
  1675. :xref-Governor-BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-BALLOT_TYPEHASH-bytes32
  1676. :xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32: xref:governance.adoc#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32
  1677. :xref-IGovernor-COUNTING_MODE--: xref:governance.adoc#IGovernor-COUNTING_MODE--
  1678. :xref-IGovernor-hasVoted-uint256-address-: xref:governance.adoc#IGovernor-hasVoted-uint256-address-
  1679. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  1680. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  1681. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  1682. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  1683. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  1684. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  1685. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  1686. :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-
  1687. :xref-IGovernor-ProposalQueued-uint256-uint256-: xref:governance.adoc#IGovernor-ProposalQueued-uint256-uint256-
  1688. :xref-IGovernor-ProposalExecuted-uint256-: xref:governance.adoc#IGovernor-ProposalExecuted-uint256-
  1689. :xref-IGovernor-ProposalCanceled-uint256-: xref:governance.adoc#IGovernor-ProposalCanceled-uint256-
  1690. :xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-: xref:governance.adoc#IGovernor-VoteCast-address-uint256-uint8-uint256-string-
  1691. :xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-: xref:governance.adoc#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-
  1692. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  1693. :xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-
  1694. :xref-IGovernor-GovernorAlreadyCastVote-address-: xref:governance.adoc#IGovernor-GovernorAlreadyCastVote-address-
  1695. :xref-IGovernor-GovernorDisabledDeposit--: xref:governance.adoc#IGovernor-GovernorDisabledDeposit--
  1696. :xref-IGovernor-GovernorOnlyExecutor-address-: xref:governance.adoc#IGovernor-GovernorOnlyExecutor-address-
  1697. :xref-IGovernor-GovernorNonexistentProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNonexistentProposal-uint256-
  1698. :xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-: xref:governance.adoc#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-
  1699. :xref-IGovernor-GovernorInvalidVotingPeriod-uint256-: xref:governance.adoc#IGovernor-GovernorInvalidVotingPeriod-uint256-
  1700. :xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-: xref:governance.adoc#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-
  1701. :xref-IGovernor-GovernorRestrictedProposer-address-: xref:governance.adoc#IGovernor-GovernorRestrictedProposer-address-
  1702. :xref-IGovernor-GovernorInvalidVoteType--: xref:governance.adoc#IGovernor-GovernorInvalidVoteType--
  1703. :xref-IGovernor-GovernorInvalidVoteParams--: xref:governance.adoc#IGovernor-GovernorInvalidVoteParams--
  1704. :xref-IGovernor-GovernorQueueNotImplemented--: xref:governance.adoc#IGovernor-GovernorQueueNotImplemented--
  1705. :xref-IGovernor-GovernorNotQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorNotQueuedProposal-uint256-
  1706. :xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-: xref:governance.adoc#IGovernor-GovernorAlreadyQueuedProposal-uint256-
  1707. :xref-IGovernor-GovernorInvalidSignature-address-: xref:governance.adoc#IGovernor-GovernorInvalidSignature-address-
  1708. :xref-IGovernor-GovernorUnableToCancel-uint256-address-: xref:governance.adoc#IGovernor-GovernorUnableToCancel-uint256-address-
  1709. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  1710. :ERC721Votes: pass:normal[xref:token/ERC721.adoc#ERC721Votes[`ERC721Votes`]]
  1711. :ERC721-balanceOf: pass:normal[xref:token/ERC721.adoc#ERC721-balanceOf-address-[`ERC721.balanceOf`]]
  1712. :ERC721-_update: pass:normal[xref:token/ERC721.adoc#ERC721-_update-address-uint256-address-[`ERC721._update`]]
  1713. :xref-Votes-clock--: xref:governance.adoc#Votes-clock--
  1714. :xref-Votes-CLOCK_MODE--: xref:governance.adoc#Votes-CLOCK_MODE--
  1715. :xref-Votes-_validateTimepoint-uint256-: xref:governance.adoc#Votes-_validateTimepoint-uint256-
  1716. :xref-Votes-getVotes-address-: xref:governance.adoc#Votes-getVotes-address-
  1717. :xref-Votes-getPastVotes-address-uint256-: xref:governance.adoc#Votes-getPastVotes-address-uint256-
  1718. :xref-Votes-getPastTotalSupply-uint256-: xref:governance.adoc#Votes-getPastTotalSupply-uint256-
  1719. :xref-Votes-_getTotalSupply--: xref:governance.adoc#Votes-_getTotalSupply--
  1720. :xref-Votes-delegates-address-: xref:governance.adoc#Votes-delegates-address-
  1721. :xref-Votes-delegate-address-: xref:governance.adoc#Votes-delegate-address-
  1722. :xref-Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-: xref:governance.adoc#Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-
  1723. :xref-Votes-_delegate-address-address-: xref:governance.adoc#Votes-_delegate-address-address-
  1724. :xref-Votes-_transferVotingUnits-address-address-uint256-: xref:governance.adoc#Votes-_transferVotingUnits-address-address-uint256-
  1725. :xref-Votes-_moveDelegateVotes-address-address-uint256-: xref:governance.adoc#Votes-_moveDelegateVotes-address-address-uint256-
  1726. :xref-Votes-_numCheckpoints-address-: xref:governance.adoc#Votes-_numCheckpoints-address-
  1727. :xref-Votes-_checkpoints-address-uint32-: xref:governance.adoc#Votes-_checkpoints-address-uint32-
  1728. :xref-Votes-_getVotingUnits-address-: xref:governance.adoc#Votes-_getVotingUnits-address-
  1729. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  1730. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  1731. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  1732. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  1733. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  1734. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  1735. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  1736. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  1737. :xref-IVotes-DelegateChanged-address-address-address-: xref:governance.adoc#IVotes-DelegateChanged-address-address-address-
  1738. :xref-IVotes-DelegateVotesChanged-address-uint256-uint256-: xref:governance.adoc#IVotes-DelegateVotesChanged-address-uint256-uint256-
  1739. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  1740. :xref-Votes-ERC6372InconsistentClock--: xref:governance.adoc#Votes-ERC6372InconsistentClock--
  1741. :xref-Votes-ERC5805FutureLookup-uint256-uint48-: xref:governance.adoc#Votes-ERC5805FutureLookup-uint256-uint48-
  1742. :xref-IVotes-VotesExpiredSignature-uint256-: xref:governance.adoc#IVotes-VotesExpiredSignature-uint256-
  1743. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  1744. :IVotes-DelegateChanged: pass:normal[xref:governance.adoc#IVotes-DelegateChanged-address-address-address-[`IVotes.DelegateChanged`]]
  1745. :IVotes-DelegateVotesChanged: pass:normal[xref:governance.adoc#IVotes-DelegateVotesChanged-address-uint256-uint256-[`IVotes.DelegateVotesChanged`]]
  1746. :Votes: pass:normal[xref:governance.adoc#Votes[`Votes`]]
  1747. :Votes: pass:normal[xref:governance.adoc#Votes[`Votes`]]
  1748. :Votes: pass:normal[xref:governance.adoc#Votes[`Votes`]]
  1749. :VotesExtended: pass:normal[xref:governance.adoc#VotesExtended[`VotesExtended`]]
  1750. :VotesExtended: pass:normal[xref:governance.adoc#VotesExtended[`VotesExtended`]]
  1751. :ERC20Votes: pass:normal[xref:token/ERC20.adoc#ERC20Votes[`ERC20Votes`]]
  1752. :ERC721Votes: pass:normal[xref:token/ERC721.adoc#ERC721Votes[`ERC721Votes`]]
  1753. :VotesExtended: pass:normal[xref:governance.adoc#VotesExtended[`VotesExtended`]]
  1754. :xref-VotesExtended-getPastDelegate-address-uint256-: xref:governance.adoc#VotesExtended-getPastDelegate-address-uint256-
  1755. :xref-VotesExtended-getPastBalanceOf-address-uint256-: xref:governance.adoc#VotesExtended-getPastBalanceOf-address-uint256-
  1756. :xref-VotesExtended-_delegate-address-address-: xref:governance.adoc#VotesExtended-_delegate-address-address-
  1757. :xref-VotesExtended-_transferVotingUnits-address-address-uint256-: xref:governance.adoc#VotesExtended-_transferVotingUnits-address-address-uint256-
  1758. :xref-Votes-clock--: xref:governance.adoc#Votes-clock--
  1759. :xref-Votes-CLOCK_MODE--: xref:governance.adoc#Votes-CLOCK_MODE--
  1760. :xref-Votes-_validateTimepoint-uint256-: xref:governance.adoc#Votes-_validateTimepoint-uint256-
  1761. :xref-Votes-getVotes-address-: xref:governance.adoc#Votes-getVotes-address-
  1762. :xref-Votes-getPastVotes-address-uint256-: xref:governance.adoc#Votes-getPastVotes-address-uint256-
  1763. :xref-Votes-getPastTotalSupply-uint256-: xref:governance.adoc#Votes-getPastTotalSupply-uint256-
  1764. :xref-Votes-_getTotalSupply--: xref:governance.adoc#Votes-_getTotalSupply--
  1765. :xref-Votes-delegates-address-: xref:governance.adoc#Votes-delegates-address-
  1766. :xref-Votes-delegate-address-: xref:governance.adoc#Votes-delegate-address-
  1767. :xref-Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-: xref:governance.adoc#Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-
  1768. :xref-Votes-_moveDelegateVotes-address-address-uint256-: xref:governance.adoc#Votes-_moveDelegateVotes-address-address-uint256-
  1769. :xref-Votes-_numCheckpoints-address-: xref:governance.adoc#Votes-_numCheckpoints-address-
  1770. :xref-Votes-_checkpoints-address-uint32-: xref:governance.adoc#Votes-_checkpoints-address-uint32-
  1771. :xref-Votes-_getVotingUnits-address-: xref:governance.adoc#Votes-_getVotingUnits-address-
  1772. :xref-Nonces-nonces-address-: xref:utils.adoc#Nonces-nonces-address-
  1773. :xref-Nonces-_useNonce-address-: xref:utils.adoc#Nonces-_useNonce-address-
  1774. :xref-Nonces-_useCheckedNonce-address-uint256-: xref:utils.adoc#Nonces-_useCheckedNonce-address-uint256-
  1775. :xref-EIP712-_domainSeparatorV4--: xref:utils/cryptography.adoc#EIP712-_domainSeparatorV4--
  1776. :xref-EIP712-_hashTypedDataV4-bytes32-: xref:utils/cryptography.adoc#EIP712-_hashTypedDataV4-bytes32-
  1777. :xref-EIP712-eip712Domain--: xref:utils/cryptography.adoc#EIP712-eip712Domain--
  1778. :xref-EIP712-_EIP712Name--: xref:utils/cryptography.adoc#EIP712-_EIP712Name--
  1779. :xref-EIP712-_EIP712Version--: xref:utils/cryptography.adoc#EIP712-_EIP712Version--
  1780. :xref-IVotes-DelegateChanged-address-address-address-: xref:governance.adoc#IVotes-DelegateChanged-address-address-address-
  1781. :xref-IVotes-DelegateVotesChanged-address-uint256-uint256-: xref:governance.adoc#IVotes-DelegateVotesChanged-address-uint256-uint256-
  1782. :xref-IERC5267-EIP712DomainChanged--: xref:interfaces.adoc#IERC5267-EIP712DomainChanged--
  1783. :xref-Votes-ERC6372InconsistentClock--: xref:governance.adoc#Votes-ERC6372InconsistentClock--
  1784. :xref-Votes-ERC5805FutureLookup-uint256-uint48-: xref:governance.adoc#Votes-ERC5805FutureLookup-uint256-uint48-
  1785. :xref-IVotes-VotesExpiredSignature-uint256-: xref:governance.adoc#IVotes-VotesExpiredSignature-uint256-
  1786. :xref-Nonces-InvalidAccountNonce-address-uint256-: xref:utils.adoc#Nonces-InvalidAccountNonce-address-uint256-
  1787. :IVotes-DelegateChanged: pass:normal[xref:governance.adoc#IVotes-DelegateChanged-address-address-address-[`IVotes.DelegateChanged`]]
  1788. :IVotes-DelegateVotesChanged: pass:normal[xref:governance.adoc#IVotes-DelegateVotesChanged-address-uint256-uint256-[`IVotes.DelegateVotesChanged`]]
  1789. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  1790. :Governor: pass:normal[xref:governance.adoc#Governor[`Governor`]]
  1791. :TimelockController: pass:normal[xref:governance.adoc#TimelockController[`TimelockController`]]
  1792. :xref-TimelockController-onlyRoleOrOpenRole-bytes32-: xref:governance.adoc#TimelockController-onlyRoleOrOpenRole-bytes32-
  1793. :xref-TimelockController-constructor-uint256-address---address---address-: xref:governance.adoc#TimelockController-constructor-uint256-address---address---address-
  1794. :xref-TimelockController-receive--: xref:governance.adoc#TimelockController-receive--
  1795. :xref-TimelockController-supportsInterface-bytes4-: xref:governance.adoc#TimelockController-supportsInterface-bytes4-
  1796. :xref-TimelockController-isOperation-bytes32-: xref:governance.adoc#TimelockController-isOperation-bytes32-
  1797. :xref-TimelockController-isOperationPending-bytes32-: xref:governance.adoc#TimelockController-isOperationPending-bytes32-
  1798. :xref-TimelockController-isOperationReady-bytes32-: xref:governance.adoc#TimelockController-isOperationReady-bytes32-
  1799. :xref-TimelockController-isOperationDone-bytes32-: xref:governance.adoc#TimelockController-isOperationDone-bytes32-
  1800. :xref-TimelockController-getTimestamp-bytes32-: xref:governance.adoc#TimelockController-getTimestamp-bytes32-
  1801. :xref-TimelockController-getOperationState-bytes32-: xref:governance.adoc#TimelockController-getOperationState-bytes32-
  1802. :xref-TimelockController-getMinDelay--: xref:governance.adoc#TimelockController-getMinDelay--
  1803. :xref-TimelockController-hashOperation-address-uint256-bytes-bytes32-bytes32-: xref:governance.adoc#TimelockController-hashOperation-address-uint256-bytes-bytes32-bytes32-
  1804. :xref-TimelockController-hashOperationBatch-address---uint256---bytes---bytes32-bytes32-: xref:governance.adoc#TimelockController-hashOperationBatch-address---uint256---bytes---bytes32-bytes32-
  1805. :xref-TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-: xref:governance.adoc#TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-
  1806. :xref-TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-: xref:governance.adoc#TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-
  1807. :xref-TimelockController-cancel-bytes32-: xref:governance.adoc#TimelockController-cancel-bytes32-
  1808. :xref-TimelockController-execute-address-uint256-bytes-bytes32-bytes32-: xref:governance.adoc#TimelockController-execute-address-uint256-bytes-bytes32-bytes32-
  1809. :xref-TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-: xref:governance.adoc#TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-
  1810. :xref-TimelockController-_execute-address-uint256-bytes-: xref:governance.adoc#TimelockController-_execute-address-uint256-bytes-
  1811. :xref-TimelockController-updateDelay-uint256-: xref:governance.adoc#TimelockController-updateDelay-uint256-
  1812. :xref-TimelockController-_encodeStateBitmap-enum-TimelockController-OperationState-: xref:governance.adoc#TimelockController-_encodeStateBitmap-enum-TimelockController-OperationState-
  1813. :xref-TimelockController-PROPOSER_ROLE-bytes32: xref:governance.adoc#TimelockController-PROPOSER_ROLE-bytes32
  1814. :xref-TimelockController-EXECUTOR_ROLE-bytes32: xref:governance.adoc#TimelockController-EXECUTOR_ROLE-bytes32
  1815. :xref-TimelockController-CANCELLER_ROLE-bytes32: xref:governance.adoc#TimelockController-CANCELLER_ROLE-bytes32
  1816. :xref-ERC1155Holder-onERC1155Received-address-address-uint256-uint256-bytes-: xref:token/ERC1155.adoc#ERC1155Holder-onERC1155Received-address-address-uint256-uint256-bytes-
  1817. :xref-ERC1155Holder-onERC1155BatchReceived-address-address-uint256---uint256---bytes-: xref:token/ERC1155.adoc#ERC1155Holder-onERC1155BatchReceived-address-address-uint256---uint256---bytes-
  1818. :xref-ERC721Holder-onERC721Received-address-address-uint256-bytes-: xref:token/ERC721.adoc#ERC721Holder-onERC721Received-address-address-uint256-bytes-
  1819. :xref-AccessControl-hasRole-bytes32-address-: xref:access.adoc#AccessControl-hasRole-bytes32-address-
  1820. :xref-AccessControl-_checkRole-bytes32-: xref:access.adoc#AccessControl-_checkRole-bytes32-
  1821. :xref-AccessControl-_checkRole-bytes32-address-: xref:access.adoc#AccessControl-_checkRole-bytes32-address-
  1822. :xref-AccessControl-getRoleAdmin-bytes32-: xref:access.adoc#AccessControl-getRoleAdmin-bytes32-
  1823. :xref-AccessControl-grantRole-bytes32-address-: xref:access.adoc#AccessControl-grantRole-bytes32-address-
  1824. :xref-AccessControl-revokeRole-bytes32-address-: xref:access.adoc#AccessControl-revokeRole-bytes32-address-
  1825. :xref-AccessControl-renounceRole-bytes32-address-: xref:access.adoc#AccessControl-renounceRole-bytes32-address-
  1826. :xref-AccessControl-_setRoleAdmin-bytes32-bytes32-: xref:access.adoc#AccessControl-_setRoleAdmin-bytes32-bytes32-
  1827. :xref-AccessControl-_grantRole-bytes32-address-: xref:access.adoc#AccessControl-_grantRole-bytes32-address-
  1828. :xref-AccessControl-_revokeRole-bytes32-address-: xref:access.adoc#AccessControl-_revokeRole-bytes32-address-
  1829. :xref-AccessControl-DEFAULT_ADMIN_ROLE-bytes32: xref:access.adoc#AccessControl-DEFAULT_ADMIN_ROLE-bytes32
  1830. :xref-TimelockController-CallScheduled-bytes32-uint256-address-uint256-bytes-bytes32-uint256-: xref:governance.adoc#TimelockController-CallScheduled-bytes32-uint256-address-uint256-bytes-bytes32-uint256-
  1831. :xref-TimelockController-CallExecuted-bytes32-uint256-address-uint256-bytes-: xref:governance.adoc#TimelockController-CallExecuted-bytes32-uint256-address-uint256-bytes-
  1832. :xref-TimelockController-CallSalt-bytes32-bytes32-: xref:governance.adoc#TimelockController-CallSalt-bytes32-bytes32-
  1833. :xref-TimelockController-Cancelled-bytes32-: xref:governance.adoc#TimelockController-Cancelled-bytes32-
  1834. :xref-TimelockController-MinDelayChange-uint256-uint256-: xref:governance.adoc#TimelockController-MinDelayChange-uint256-uint256-
  1835. :xref-IAccessControl-RoleAdminChanged-bytes32-bytes32-bytes32-: xref:access.adoc#IAccessControl-RoleAdminChanged-bytes32-bytes32-bytes32-
  1836. :xref-IAccessControl-RoleGranted-bytes32-address-address-: xref:access.adoc#IAccessControl-RoleGranted-bytes32-address-address-
  1837. :xref-IAccessControl-RoleRevoked-bytes32-address-address-: xref:access.adoc#IAccessControl-RoleRevoked-bytes32-address-address-
  1838. :xref-TimelockController-TimelockInvalidOperationLength-uint256-uint256-uint256-: xref:governance.adoc#TimelockController-TimelockInvalidOperationLength-uint256-uint256-uint256-
  1839. :xref-TimelockController-TimelockInsufficientDelay-uint256-uint256-: xref:governance.adoc#TimelockController-TimelockInsufficientDelay-uint256-uint256-
  1840. :xref-TimelockController-TimelockUnexpectedOperationState-bytes32-bytes32-: xref:governance.adoc#TimelockController-TimelockUnexpectedOperationState-bytes32-bytes32-
  1841. :xref-TimelockController-TimelockUnexecutedPredecessor-bytes32-: xref:governance.adoc#TimelockController-TimelockUnexecutedPredecessor-bytes32-
  1842. :xref-TimelockController-TimelockUnauthorizedCaller-address-: xref:governance.adoc#TimelockController-TimelockUnauthorizedCaller-address-
  1843. :xref-IAccessControl-AccessControlUnauthorizedAccount-address-bytes32-: xref:access.adoc#IAccessControl-AccessControlUnauthorizedAccount-address-bytes32-
  1844. :xref-IAccessControl-AccessControlBadConfirmation--: xref:access.adoc#IAccessControl-AccessControlBadConfirmation--
  1845. :xref-TimelockController-_DONE_TIMESTAMP-uint256: xref:governance.adoc#TimelockController-_DONE_TIMESTAMP-uint256
  1846. :AccessControl: pass:normal[xref:access.adoc#AccessControl[`AccessControl`]]
  1847. = Governance
  1848. [.readme-notice]
  1849. NOTE: This document is better viewed at https://docs.openzeppelin.com/contracts/api/governance
  1850. This directory includes primitives for on-chain governance.
  1851. == Governor
  1852. 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.
  1853. [TIP]
  1854. ====
  1855. For a guided experience, set up your Governor contract using https://wizard.openzeppelin.com/#governor[Contracts Wizard].
  1856. For a written walkthrough, check out our guide on xref:ROOT:governance.adoc[How to set up on-chain governance].
  1857. ====
  1858. * {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.
  1859. Votes modules determine the source of voting power, and sometimes quorum number.
  1860. * {GovernorVotes}: Extracts voting weight from an {IVotes} contract.
  1861. * {GovernorVotesQuorumFraction}: Combines with `GovernorVotes` to set the quorum as a fraction of the total token supply.
  1862. * {GovernorVotesSuperQuorumFraction}: Combines `GovernorSuperQuorum` with `GovernorVotesQuorumFraction` to set the super quorum as a fraction of the total token supply.
  1863. Counting modules determine valid voting options.
  1864. * {GovernorCountingSimple}: Simple voting mechanism with 3 voting options: Against, For and Abstain.
  1865. * {GovernorCountingFractional}: A more modular voting system that allows a user to vote with only part of its voting power, and to split that weight arbitrarily between the 3 different options (Against, For and Abstain).
  1866. * {GovernorCountingOverridable}: An extended version of `GovernorCountingSimple` which allows delegatees to override their delegates while the vote is live. Must be used in conjunction with {VotesExtended}.
  1867. 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.
  1868. * {GovernorTimelockAccess}: Connects with an instance of an {AccessManager}. This allows restrictions (and delays) enforced by the manager to be considered by the Governor and integrated into the AccessManager's "schedule + execute" workflow.
  1869. * {GovernorTimelockControl}: Connects with an instance of {TimelockController}. Allows multiple proposers and executors, in addition to the Governor itself.
  1870. * {GovernorTimelockCompound}: Connects with an instance of Compound's https://github.com/compound-finance/compound-protocol/blob/master/contracts/Timelock.sol[`Timelock`] contract.
  1871. Other extensions can customize the behavior or interface in multiple ways.
  1872. * {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.
  1873. * {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.
  1874. * {GovernorPreventLateQuorum}: Ensures there is a minimum voting period after quorum is reached as a security protection against large voters.
  1875. * {GovernorProposalGuardian}: Adds a proposal guardian that can cancel proposals at any stage in their lifecycle--this permission is passed on to the proposers if the guardian is not set.
  1876. * {GovernorSuperQuorum}: Extension of {Governor} with a super quorum. Proposals that meet the super quorum (and have a majority of for votes) advance to the `Succeeded` state before the proposal deadline.
  1877. * {GovernorNoncesKeyed}: An extension of {Governor} with support for keyed nonces in addition to traditional nonces when voting by signature.
  1878. In addition to modules and extensions, the core contract requires a few virtual functions to be implemented to your particular specifications:
  1879. * <<Governor-votingDelay-,`votingDelay()`>>: Delay (in ERC-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.
  1880. * <<Governor-votingPeriod-,`votingPeriod()`>>: Delay (in ERC-6372 clock) since the proposal starts until voting ends.
  1881. * <<Governor-quorum-uint256-,`quorum(uint256 timepoint)`>>: Quorum required for a proposal to be successful. This function includes a `timepoint` argument (see ERC-6372) so the quorum can adapt through time, for example, to follow a token's `totalSupply`.
  1882. 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.
  1883. === Core
  1884. :ProposalState: pass:normal[xref:#IGovernor-ProposalState[`++ProposalState++`]]
  1885. :GovernorInvalidProposalLength: pass:normal[xref:#IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-[`++GovernorInvalidProposalLength++`]]
  1886. :GovernorAlreadyCastVote: pass:normal[xref:#IGovernor-GovernorAlreadyCastVote-address-[`++GovernorAlreadyCastVote++`]]
  1887. :GovernorDisabledDeposit: pass:normal[xref:#IGovernor-GovernorDisabledDeposit--[`++GovernorDisabledDeposit++`]]
  1888. :GovernorOnlyExecutor: pass:normal[xref:#IGovernor-GovernorOnlyExecutor-address-[`++GovernorOnlyExecutor++`]]
  1889. :GovernorNonexistentProposal: pass:normal[xref:#IGovernor-GovernorNonexistentProposal-uint256-[`++GovernorNonexistentProposal++`]]
  1890. :GovernorUnexpectedProposalState: pass:normal[xref:#IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-[`++GovernorUnexpectedProposalState++`]]
  1891. :GovernorInvalidVotingPeriod: pass:normal[xref:#IGovernor-GovernorInvalidVotingPeriod-uint256-[`++GovernorInvalidVotingPeriod++`]]
  1892. :GovernorInsufficientProposerVotes: pass:normal[xref:#IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-[`++GovernorInsufficientProposerVotes++`]]
  1893. :GovernorRestrictedProposer: pass:normal[xref:#IGovernor-GovernorRestrictedProposer-address-[`++GovernorRestrictedProposer++`]]
  1894. :GovernorInvalidVoteType: pass:normal[xref:#IGovernor-GovernorInvalidVoteType--[`++GovernorInvalidVoteType++`]]
  1895. :GovernorInvalidVoteParams: pass:normal[xref:#IGovernor-GovernorInvalidVoteParams--[`++GovernorInvalidVoteParams++`]]
  1896. :GovernorQueueNotImplemented: pass:normal[xref:#IGovernor-GovernorQueueNotImplemented--[`++GovernorQueueNotImplemented++`]]
  1897. :GovernorNotQueuedProposal: pass:normal[xref:#IGovernor-GovernorNotQueuedProposal-uint256-[`++GovernorNotQueuedProposal++`]]
  1898. :GovernorAlreadyQueuedProposal: pass:normal[xref:#IGovernor-GovernorAlreadyQueuedProposal-uint256-[`++GovernorAlreadyQueuedProposal++`]]
  1899. :GovernorInvalidSignature: pass:normal[xref:#IGovernor-GovernorInvalidSignature-address-[`++GovernorInvalidSignature++`]]
  1900. :GovernorUnableToCancel: pass:normal[xref:#IGovernor-GovernorUnableToCancel-uint256-address-[`++GovernorUnableToCancel++`]]
  1901. :ProposalCreated: pass:normal[xref:#IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-[`++ProposalCreated++`]]
  1902. :ProposalQueued: pass:normal[xref:#IGovernor-ProposalQueued-uint256-uint256-[`++ProposalQueued++`]]
  1903. :ProposalExecuted: pass:normal[xref:#IGovernor-ProposalExecuted-uint256-[`++ProposalExecuted++`]]
  1904. :ProposalCanceled: pass:normal[xref:#IGovernor-ProposalCanceled-uint256-[`++ProposalCanceled++`]]
  1905. :VoteCast: pass:normal[xref:#IGovernor-VoteCast-address-uint256-uint8-uint256-string-[`++VoteCast++`]]
  1906. :VoteCastWithParams: pass:normal[xref:#IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-[`++VoteCastWithParams++`]]
  1907. :name: pass:normal[xref:#IGovernor-name--[`++name++`]]
  1908. :version: pass:normal[xref:#IGovernor-version--[`++version++`]]
  1909. :COUNTING_MODE: pass:normal[xref:#IGovernor-COUNTING_MODE--[`++COUNTING_MODE++`]]
  1910. :hashProposal: pass:normal[xref:#IGovernor-hashProposal-address---uint256---bytes---bytes32-[`++hashProposal++`]]
  1911. :getProposalId: pass:normal[xref:#IGovernor-getProposalId-address---uint256---bytes---bytes32-[`++getProposalId++`]]
  1912. :state: pass:normal[xref:#IGovernor-state-uint256-[`++state++`]]
  1913. :proposalThreshold: pass:normal[xref:#IGovernor-proposalThreshold--[`++proposalThreshold++`]]
  1914. :proposalSnapshot: pass:normal[xref:#IGovernor-proposalSnapshot-uint256-[`++proposalSnapshot++`]]
  1915. :proposalDeadline: pass:normal[xref:#IGovernor-proposalDeadline-uint256-[`++proposalDeadline++`]]
  1916. :proposalProposer: pass:normal[xref:#IGovernor-proposalProposer-uint256-[`++proposalProposer++`]]
  1917. :proposalEta: pass:normal[xref:#IGovernor-proposalEta-uint256-[`++proposalEta++`]]
  1918. :proposalNeedsQueuing: pass:normal[xref:#IGovernor-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  1919. :votingDelay: pass:normal[xref:#IGovernor-votingDelay--[`++votingDelay++`]]
  1920. :votingPeriod: pass:normal[xref:#IGovernor-votingPeriod--[`++votingPeriod++`]]
  1921. :quorum: pass:normal[xref:#IGovernor-quorum-uint256-[`++quorum++`]]
  1922. :getVotes: pass:normal[xref:#IGovernor-getVotes-address-uint256-[`++getVotes++`]]
  1923. :getVotesWithParams: pass:normal[xref:#IGovernor-getVotesWithParams-address-uint256-bytes-[`++getVotesWithParams++`]]
  1924. :hasVoted: pass:normal[xref:#IGovernor-hasVoted-uint256-address-[`++hasVoted++`]]
  1925. :propose: pass:normal[xref:#IGovernor-propose-address---uint256---bytes---string-[`++propose++`]]
  1926. :queue: pass:normal[xref:#IGovernor-queue-address---uint256---bytes---bytes32-[`++queue++`]]
  1927. :execute: pass:normal[xref:#IGovernor-execute-address---uint256---bytes---bytes32-[`++execute++`]]
  1928. :cancel: pass:normal[xref:#IGovernor-cancel-address---uint256---bytes---bytes32-[`++cancel++`]]
  1929. :castVote: pass:normal[xref:#IGovernor-castVote-uint256-uint8-[`++castVote++`]]
  1930. :castVoteWithReason: pass:normal[xref:#IGovernor-castVoteWithReason-uint256-uint8-string-[`++castVoteWithReason++`]]
  1931. :castVoteWithReasonAndParams: pass:normal[xref:#IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-[`++castVoteWithReasonAndParams++`]]
  1932. :castVoteBySig: pass:normal[xref:#IGovernor-castVoteBySig-uint256-uint8-address-bytes-[`++castVoteBySig++`]]
  1933. :castVoteWithReasonAndParamsBySig: pass:normal[xref:#IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-[`++castVoteWithReasonAndParamsBySig++`]]
  1934. :name-: pass:normal[xref:#IGovernor-name--[`++name++`]]
  1935. :version-: pass:normal[xref:#IGovernor-version--[`++version++`]]
  1936. :COUNTING_MODE-: pass:normal[xref:#IGovernor-COUNTING_MODE--[`++COUNTING_MODE++`]]
  1937. :hashProposal-address---uint256---bytes---bytes32: pass:normal[xref:#IGovernor-hashProposal-address---uint256---bytes---bytes32-[`++hashProposal++`]]
  1938. :getProposalId-address---uint256---bytes---bytes32: pass:normal[xref:#IGovernor-getProposalId-address---uint256---bytes---bytes32-[`++getProposalId++`]]
  1939. :state-uint256: pass:normal[xref:#IGovernor-state-uint256-[`++state++`]]
  1940. :proposalThreshold-: pass:normal[xref:#IGovernor-proposalThreshold--[`++proposalThreshold++`]]
  1941. :proposalSnapshot-uint256: pass:normal[xref:#IGovernor-proposalSnapshot-uint256-[`++proposalSnapshot++`]]
  1942. :proposalDeadline-uint256: pass:normal[xref:#IGovernor-proposalDeadline-uint256-[`++proposalDeadline++`]]
  1943. :proposalProposer-uint256: pass:normal[xref:#IGovernor-proposalProposer-uint256-[`++proposalProposer++`]]
  1944. :proposalEta-uint256: pass:normal[xref:#IGovernor-proposalEta-uint256-[`++proposalEta++`]]
  1945. :proposalNeedsQueuing-uint256: pass:normal[xref:#IGovernor-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  1946. :votingDelay-: pass:normal[xref:#IGovernor-votingDelay--[`++votingDelay++`]]
  1947. :votingPeriod-: pass:normal[xref:#IGovernor-votingPeriod--[`++votingPeriod++`]]
  1948. :quorum-uint256: pass:normal[xref:#IGovernor-quorum-uint256-[`++quorum++`]]
  1949. :getVotes-address-uint256: pass:normal[xref:#IGovernor-getVotes-address-uint256-[`++getVotes++`]]
  1950. :getVotesWithParams-address-uint256-bytes: pass:normal[xref:#IGovernor-getVotesWithParams-address-uint256-bytes-[`++getVotesWithParams++`]]
  1951. :hasVoted-uint256-address: pass:normal[xref:#IGovernor-hasVoted-uint256-address-[`++hasVoted++`]]
  1952. :propose-address---uint256---bytes---string: pass:normal[xref:#IGovernor-propose-address---uint256---bytes---string-[`++propose++`]]
  1953. :queue-address---uint256---bytes---bytes32: pass:normal[xref:#IGovernor-queue-address---uint256---bytes---bytes32-[`++queue++`]]
  1954. :execute-address---uint256---bytes---bytes32: pass:normal[xref:#IGovernor-execute-address---uint256---bytes---bytes32-[`++execute++`]]
  1955. :cancel-address---uint256---bytes---bytes32: pass:normal[xref:#IGovernor-cancel-address---uint256---bytes---bytes32-[`++cancel++`]]
  1956. :castVote-uint256-uint8: pass:normal[xref:#IGovernor-castVote-uint256-uint8-[`++castVote++`]]
  1957. :castVoteWithReason-uint256-uint8-string: pass:normal[xref:#IGovernor-castVoteWithReason-uint256-uint8-string-[`++castVoteWithReason++`]]
  1958. :castVoteWithReasonAndParams-uint256-uint8-string-bytes: pass:normal[xref:#IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-[`++castVoteWithReasonAndParams++`]]
  1959. :castVoteBySig-uint256-uint8-address-bytes: pass:normal[xref:#IGovernor-castVoteBySig-uint256-uint8-address-bytes-[`++castVoteBySig++`]]
  1960. :castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes: pass:normal[xref:#IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-[`++castVoteWithReasonAndParamsBySig++`]]
  1961. [.contract]
  1962. [[IGovernor]]
  1963. === `++IGovernor++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/IGovernor.sol[{github-icon},role=heading-link]
  1964. [.hljs-theme-light.nopadding]
  1965. ```solidity
  1966. import "@openzeppelin/contracts/governance/IGovernor.sol";
  1967. ```
  1968. Interface of the {Governor} core.
  1969. NOTE: Event parameters lack the `indexed` keyword for compatibility with GovernorBravo events.
  1970. Making event parameters `indexed` affects how events are decoded, potentially breaking existing indexers.
  1971. [.contract-index]
  1972. .Functions
  1973. --
  1974. * {xref-IGovernor-name--}[`++name()++`]
  1975. * {xref-IGovernor-version--}[`++version()++`]
  1976. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  1977. * {xref-IGovernor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  1978. * {xref-IGovernor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  1979. * {xref-IGovernor-state-uint256-}[`++state(proposalId)++`]
  1980. * {xref-IGovernor-proposalThreshold--}[`++proposalThreshold()++`]
  1981. * {xref-IGovernor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  1982. * {xref-IGovernor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  1983. * {xref-IGovernor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  1984. * {xref-IGovernor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  1985. * {xref-IGovernor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing(proposalId)++`]
  1986. * {xref-IGovernor-votingDelay--}[`++votingDelay()++`]
  1987. * {xref-IGovernor-votingPeriod--}[`++votingPeriod()++`]
  1988. * {xref-IGovernor-quorum-uint256-}[`++quorum(timepoint)++`]
  1989. * {xref-IGovernor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  1990. * {xref-IGovernor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  1991. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  1992. * {xref-IGovernor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  1993. * {xref-IGovernor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  1994. * {xref-IGovernor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  1995. * {xref-IGovernor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  1996. * {xref-IGovernor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  1997. * {xref-IGovernor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  1998. * {xref-IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  1999. * {xref-IGovernor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  2000. * {xref-IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  2001. [.contract-subindex-inherited]
  2002. .IERC6372
  2003. * {xref-IERC6372-clock--}[`++clock()++`]
  2004. * {xref-IERC6372-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  2005. [.contract-subindex-inherited]
  2006. .IERC165
  2007. * {xref-IERC165-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  2008. --
  2009. [.contract-index]
  2010. .Events
  2011. --
  2012. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  2013. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  2014. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  2015. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  2016. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  2017. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  2018. [.contract-subindex-inherited]
  2019. .IERC6372
  2020. [.contract-subindex-inherited]
  2021. .IERC165
  2022. --
  2023. [.contract-index]
  2024. .Errors
  2025. --
  2026. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  2027. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  2028. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  2029. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  2030. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  2031. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  2032. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  2033. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  2034. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  2035. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  2036. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  2037. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  2038. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  2039. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  2040. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  2041. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  2042. [.contract-subindex-inherited]
  2043. .IERC6372
  2044. [.contract-subindex-inherited]
  2045. .IERC165
  2046. --
  2047. [.contract-item]
  2048. [[IGovernor-name--]]
  2049. ==== `[.contract-item-name]#++name++#++() → string++` [.item-kind]#external#
  2050. Name of the governor instance (used in building the EIP-712 domain separator).
  2051. [.contract-item]
  2052. [[IGovernor-version--]]
  2053. ==== `[.contract-item-name]#++version++#++() → string++` [.item-kind]#external#
  2054. Version of the governor instance (used in building the EIP-712 domain separator). Default: "1"
  2055. [.contract-item]
  2056. [[IGovernor-COUNTING_MODE--]]
  2057. ==== `[.contract-item-name]#++COUNTING_MODE++#++() → string++` [.item-kind]#external#
  2058. A description of the possible `support` values for {castVote} and the way these votes are counted, meant to
  2059. be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of
  2060. key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`.
  2061. There are 2 standard keys: `support` and `quorum`.
  2062. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`.
  2063. - `quorum=bravo` means that only For votes are counted towards quorum.
  2064. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum.
  2065. If a counting module makes use of encoded `params`, it should include this under a `params` key with a unique
  2066. name that describes the behavior. For example:
  2067. - `params=fractional` might refer to a scheme where votes are divided fractionally between for/against/abstain.
  2068. - `params=erc721` might refer to a scheme where specific NFTs are delegated to vote.
  2069. NOTE: The string can be decoded by the standard
  2070. https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`]
  2071. JavaScript class.
  2072. [.contract-item]
  2073. [[IGovernor-hashProposal-address---uint256---bytes---bytes32-]]
  2074. ==== `[.contract-item-name]#++hashProposal++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#external#
  2075. Hashing function used to (re)build the proposal id from the proposal details.
  2076. NOTE: For all off-chain and external calls, use {getProposalId}.
  2077. [.contract-item]
  2078. [[IGovernor-getProposalId-address---uint256---bytes---bytes32-]]
  2079. ==== `[.contract-item-name]#++getProposalId++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#external#
  2080. Function used to get the proposal id from the proposal details.
  2081. [.contract-item]
  2082. [[IGovernor-state-uint256-]]
  2083. ==== `[.contract-item-name]#++state++#++(uint256 proposalId) → enum IGovernor.ProposalState++` [.item-kind]#external#
  2084. Current state of a proposal, following Compound's convention
  2085. [.contract-item]
  2086. [[IGovernor-proposalThreshold--]]
  2087. ==== `[.contract-item-name]#++proposalThreshold++#++() → uint256++` [.item-kind]#external#
  2088. The number of votes required in order for a voter to become a proposer.
  2089. [.contract-item]
  2090. [[IGovernor-proposalSnapshot-uint256-]]
  2091. ==== `[.contract-item-name]#++proposalSnapshot++#++(uint256 proposalId) → uint256++` [.item-kind]#external#
  2092. Timepoint used to retrieve user's votes and quorum. If using block number (as per Compound's Comp), the
  2093. snapshot is performed at the end of this block. Hence, voting for this proposal starts at the beginning of the
  2094. following block.
  2095. [.contract-item]
  2096. [[IGovernor-proposalDeadline-uint256-]]
  2097. ==== `[.contract-item-name]#++proposalDeadline++#++(uint256 proposalId) → uint256++` [.item-kind]#external#
  2098. Timepoint at which votes close. If using block number, votes close at the end of this block, so it is
  2099. possible to cast a vote during this block.
  2100. [.contract-item]
  2101. [[IGovernor-proposalProposer-uint256-]]
  2102. ==== `[.contract-item-name]#++proposalProposer++#++(uint256 proposalId) → address++` [.item-kind]#external#
  2103. The account that created a proposal.
  2104. [.contract-item]
  2105. [[IGovernor-proposalEta-uint256-]]
  2106. ==== `[.contract-item-name]#++proposalEta++#++(uint256 proposalId) → uint256++` [.item-kind]#external#
  2107. The time when a queued proposal becomes executable ("ETA"). Unlike {proposalSnapshot} and
  2108. {proposalDeadline}, this doesn't use the governor clock, and instead relies on the executor's clock which may be
  2109. different. In most cases this will be a timestamp.
  2110. [.contract-item]
  2111. [[IGovernor-proposalNeedsQueuing-uint256-]]
  2112. ==== `[.contract-item-name]#++proposalNeedsQueuing++#++(uint256 proposalId) → bool++` [.item-kind]#external#
  2113. Whether a proposal needs to be queued before execution.
  2114. [.contract-item]
  2115. [[IGovernor-votingDelay--]]
  2116. ==== `[.contract-item-name]#++votingDelay++#++() → uint256++` [.item-kind]#external#
  2117. Delay, between the proposal is created and the vote starts. The unit this duration is expressed in depends
  2118. on the clock (see ERC-6372) this contract uses.
  2119. This can be increased to leave time for users to buy voting power, or delegate it, before the voting of a
  2120. proposal starts.
  2121. NOTE: While this interface returns a uint256, timepoints are stored as uint48 following the ERC-6372 clock type.
  2122. Consequently this value must fit in a uint48 (when added to the current clock). See {IERC6372-clock}.
  2123. [.contract-item]
  2124. [[IGovernor-votingPeriod--]]
  2125. ==== `[.contract-item-name]#++votingPeriod++#++() → uint256++` [.item-kind]#external#
  2126. Delay between the vote start and vote end. The unit this duration is expressed in depends on the clock
  2127. (see ERC-6372) this contract uses.
  2128. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting
  2129. duration compared to the voting delay.
  2130. NOTE: This value is stored when the proposal is submitted so that possible changes to the value do not affect
  2131. proposals that have already been submitted. The type used to save it is a uint32. Consequently, while this
  2132. interface returns a uint256, the value it returns should fit in a uint32.
  2133. [.contract-item]
  2134. [[IGovernor-quorum-uint256-]]
  2135. ==== `[.contract-item-name]#++quorum++#++(uint256 timepoint) → uint256++` [.item-kind]#external#
  2136. Minimum number of cast voted required for a proposal to be successful.
  2137. NOTE: The `timepoint` parameter corresponds to the snapshot used for counting vote. This allows to scale the
  2138. quorum depending on values such as the totalSupply of a token at this timepoint (see {ERC20Votes}).
  2139. [.contract-item]
  2140. [[IGovernor-getVotes-address-uint256-]]
  2141. ==== `[.contract-item-name]#++getVotes++#++(address account, uint256 timepoint) → uint256++` [.item-kind]#external#
  2142. Voting power of an `account` at a specific `timepoint`.
  2143. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or
  2144. multiple), {ERC20Votes} tokens.
  2145. [.contract-item]
  2146. [[IGovernor-getVotesWithParams-address-uint256-bytes-]]
  2147. ==== `[.contract-item-name]#++getVotesWithParams++#++(address account, uint256 timepoint, bytes params) → uint256++` [.item-kind]#external#
  2148. Voting power of an `account` at a specific `timepoint` given additional encoded parameters.
  2149. [.contract-item]
  2150. [[IGovernor-hasVoted-uint256-address-]]
  2151. ==== `[.contract-item-name]#++hasVoted++#++(uint256 proposalId, address account) → bool++` [.item-kind]#external#
  2152. Returns whether `account` has cast a vote on `proposalId`.
  2153. [.contract-item]
  2154. [[IGovernor-propose-address---uint256---bytes---string-]]
  2155. ==== `[.contract-item-name]#++propose++#++(address[] targets, uint256[] values, bytes[] calldatas, string description) → uint256 proposalId++` [.item-kind]#external#
  2156. Create a new proposal. Vote start after a delay specified by {IGovernor-votingDelay} and lasts for a
  2157. duration specified by {IGovernor-votingPeriod}.
  2158. Emits a {ProposalCreated} event.
  2159. NOTE: The state of the Governor and `targets` may change between the proposal creation and its execution.
  2160. This may be the result of third party actions on the targeted contracts, or other governor proposals.
  2161. For example, the balance of this contract could be updated or its access control permissions may be modified,
  2162. possibly compromising the proposal's ability to execute successfully (e.g. the governor doesn't have enough
  2163. value to cover a proposal with multiple transfers).
  2164. [.contract-item]
  2165. [[IGovernor-queue-address---uint256---bytes---bytes32-]]
  2166. ==== `[.contract-item-name]#++queue++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256 proposalId++` [.item-kind]#external#
  2167. Queue a proposal. Some governors require this step to be performed before execution can happen. If queuing
  2168. is not necessary, this function may revert.
  2169. Queuing a proposal requires the quorum to be reached, the vote to be successful, and the deadline to be reached.
  2170. Emits a {ProposalQueued} event.
  2171. [.contract-item]
  2172. [[IGovernor-execute-address---uint256---bytes---bytes32-]]
  2173. ==== `[.contract-item-name]#++execute++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256 proposalId++` [.item-kind]#external#
  2174. Execute a successful proposal. This requires the quorum to be reached, the vote to be successful, and the
  2175. deadline to be reached. Depending on the governor it might also be required that the proposal was queued and
  2176. that some delay passed.
  2177. Emits a {ProposalExecuted} event.
  2178. NOTE: Some modules can modify the requirements for execution, for example by adding an additional timelock.
  2179. [.contract-item]
  2180. [[IGovernor-cancel-address---uint256---bytes---bytes32-]]
  2181. ==== `[.contract-item-name]#++cancel++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256 proposalId++` [.item-kind]#external#
  2182. Cancel a proposal. A proposal is cancellable by the proposer, but only while it is Pending state, i.e.
  2183. before the vote starts.
  2184. Emits a {ProposalCanceled} event.
  2185. [.contract-item]
  2186. [[IGovernor-castVote-uint256-uint8-]]
  2187. ==== `[.contract-item-name]#++castVote++#++(uint256 proposalId, uint8 support) → uint256 balance++` [.item-kind]#external#
  2188. Cast a vote
  2189. Emits a {VoteCast} event.
  2190. [.contract-item]
  2191. [[IGovernor-castVoteWithReason-uint256-uint8-string-]]
  2192. ==== `[.contract-item-name]#++castVoteWithReason++#++(uint256 proposalId, uint8 support, string reason) → uint256 balance++` [.item-kind]#external#
  2193. Cast a vote with a reason
  2194. Emits a {VoteCast} event.
  2195. [.contract-item]
  2196. [[IGovernor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-]]
  2197. ==== `[.contract-item-name]#++castVoteWithReasonAndParams++#++(uint256 proposalId, uint8 support, string reason, bytes params) → uint256 balance++` [.item-kind]#external#
  2198. Cast a vote with a reason and additional encoded parameters
  2199. Emits a {VoteCast} or {VoteCastWithParams} event depending on the length of params.
  2200. [.contract-item]
  2201. [[IGovernor-castVoteBySig-uint256-uint8-address-bytes-]]
  2202. ==== `[.contract-item-name]#++castVoteBySig++#++(uint256 proposalId, uint8 support, address voter, bytes signature) → uint256 balance++` [.item-kind]#external#
  2203. Cast a vote using the voter's signature, including ERC-1271 signature support.
  2204. Emits a {VoteCast} event.
  2205. [.contract-item]
  2206. [[IGovernor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-]]
  2207. ==== `[.contract-item-name]#++castVoteWithReasonAndParamsBySig++#++(uint256 proposalId, uint8 support, address voter, string reason, bytes params, bytes signature) → uint256 balance++` [.item-kind]#external#
  2208. Cast a vote with a reason and additional encoded parameters using the voter's signature,
  2209. including ERC-1271 signature support.
  2210. Emits a {VoteCast} or {VoteCastWithParams} event depending on the length of params.
  2211. [.contract-item]
  2212. [[IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-]]
  2213. ==== `[.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#
  2214. Emitted when a proposal is created.
  2215. [.contract-item]
  2216. [[IGovernor-ProposalQueued-uint256-uint256-]]
  2217. ==== `[.contract-item-name]#++ProposalQueued++#++(uint256 proposalId, uint256 etaSeconds)++` [.item-kind]#event#
  2218. Emitted when a proposal is queued.
  2219. [.contract-item]
  2220. [[IGovernor-ProposalExecuted-uint256-]]
  2221. ==== `[.contract-item-name]#++ProposalExecuted++#++(uint256 proposalId)++` [.item-kind]#event#
  2222. Emitted when a proposal is executed.
  2223. [.contract-item]
  2224. [[IGovernor-ProposalCanceled-uint256-]]
  2225. ==== `[.contract-item-name]#++ProposalCanceled++#++(uint256 proposalId)++` [.item-kind]#event#
  2226. Emitted when a proposal is canceled.
  2227. [.contract-item]
  2228. [[IGovernor-VoteCast-address-uint256-uint8-uint256-string-]]
  2229. ==== `[.contract-item-name]#++VoteCast++#++(address indexed voter, uint256 proposalId, uint8 support, uint256 weight, string reason)++` [.item-kind]#event#
  2230. Emitted when a vote is cast without params.
  2231. Note: `support` values should be seen as buckets. Their interpretation depends on the voting module used.
  2232. [.contract-item]
  2233. [[IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-]]
  2234. ==== `[.contract-item-name]#++VoteCastWithParams++#++(address indexed voter, uint256 proposalId, uint8 support, uint256 weight, string reason, bytes params)++` [.item-kind]#event#
  2235. Emitted when a vote is cast with params.
  2236. Note: `support` values should be seen as buckets. Their interpretation depends on the voting module used.
  2237. `params` are additional encoded parameters. Their interpretation also depends on the voting module used.
  2238. [.contract-item]
  2239. [[IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-]]
  2240. ==== `[.contract-item-name]#++GovernorInvalidProposalLength++#++(uint256 targets, uint256 calldatas, uint256 values)++` [.item-kind]#error#
  2241. Empty proposal or a mismatch between the parameters length for a proposal call.
  2242. [.contract-item]
  2243. [[IGovernor-GovernorAlreadyCastVote-address-]]
  2244. ==== `[.contract-item-name]#++GovernorAlreadyCastVote++#++(address voter)++` [.item-kind]#error#
  2245. The vote was already cast.
  2246. [.contract-item]
  2247. [[IGovernor-GovernorDisabledDeposit--]]
  2248. ==== `[.contract-item-name]#++GovernorDisabledDeposit++#++()++` [.item-kind]#error#
  2249. Token deposits are disabled in this contract.
  2250. [.contract-item]
  2251. [[IGovernor-GovernorOnlyExecutor-address-]]
  2252. ==== `[.contract-item-name]#++GovernorOnlyExecutor++#++(address account)++` [.item-kind]#error#
  2253. The `account` is not the governance executor.
  2254. [.contract-item]
  2255. [[IGovernor-GovernorNonexistentProposal-uint256-]]
  2256. ==== `[.contract-item-name]#++GovernorNonexistentProposal++#++(uint256 proposalId)++` [.item-kind]#error#
  2257. The `proposalId` doesn't exist.
  2258. [.contract-item]
  2259. [[IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-]]
  2260. ==== `[.contract-item-name]#++GovernorUnexpectedProposalState++#++(uint256 proposalId, enum IGovernor.ProposalState current, bytes32 expectedStates)++` [.item-kind]#error#
  2261. The current state of a proposal is not the required for performing an operation.
  2262. The `expectedStates` is a bitmap with the bits enabled for each ProposalState enum position
  2263. counting from right to left.
  2264. NOTE: If `expectedState` is `bytes32(0)`, the proposal is expected to not be in any state (i.e. not exist).
  2265. This is the case when a proposal that is expected to be unset is already initiated (the proposal is duplicated).
  2266. See {Governor-_encodeStateBitmap}.
  2267. [.contract-item]
  2268. [[IGovernor-GovernorInvalidVotingPeriod-uint256-]]
  2269. ==== `[.contract-item-name]#++GovernorInvalidVotingPeriod++#++(uint256 votingPeriod)++` [.item-kind]#error#
  2270. The voting period set is not a valid period.
  2271. [.contract-item]
  2272. [[IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-]]
  2273. ==== `[.contract-item-name]#++GovernorInsufficientProposerVotes++#++(address proposer, uint256 votes, uint256 threshold)++` [.item-kind]#error#
  2274. The `proposer` does not have the required votes to create a proposal.
  2275. [.contract-item]
  2276. [[IGovernor-GovernorRestrictedProposer-address-]]
  2277. ==== `[.contract-item-name]#++GovernorRestrictedProposer++#++(address proposer)++` [.item-kind]#error#
  2278. The `proposer` is not allowed to create a proposal.
  2279. [.contract-item]
  2280. [[IGovernor-GovernorInvalidVoteType--]]
  2281. ==== `[.contract-item-name]#++GovernorInvalidVoteType++#++()++` [.item-kind]#error#
  2282. The vote type used is not valid for the corresponding counting module.
  2283. [.contract-item]
  2284. [[IGovernor-GovernorInvalidVoteParams--]]
  2285. ==== `[.contract-item-name]#++GovernorInvalidVoteParams++#++()++` [.item-kind]#error#
  2286. The provided params buffer is not supported by the counting module.
  2287. [.contract-item]
  2288. [[IGovernor-GovernorQueueNotImplemented--]]
  2289. ==== `[.contract-item-name]#++GovernorQueueNotImplemented++#++()++` [.item-kind]#error#
  2290. Queue operation is not implemented for this governor. Execute should be called directly.
  2291. [.contract-item]
  2292. [[IGovernor-GovernorNotQueuedProposal-uint256-]]
  2293. ==== `[.contract-item-name]#++GovernorNotQueuedProposal++#++(uint256 proposalId)++` [.item-kind]#error#
  2294. The proposal hasn't been queued yet.
  2295. [.contract-item]
  2296. [[IGovernor-GovernorAlreadyQueuedProposal-uint256-]]
  2297. ==== `[.contract-item-name]#++GovernorAlreadyQueuedProposal++#++(uint256 proposalId)++` [.item-kind]#error#
  2298. The proposal has already been queued.
  2299. [.contract-item]
  2300. [[IGovernor-GovernorInvalidSignature-address-]]
  2301. ==== `[.contract-item-name]#++GovernorInvalidSignature++#++(address voter)++` [.item-kind]#error#
  2302. The provided signature is not valid for the expected `voter`.
  2303. If the `voter` is a contract, the signature is not valid using {IERC1271-isValidSignature}.
  2304. [.contract-item]
  2305. [[IGovernor-GovernorUnableToCancel-uint256-address-]]
  2306. ==== `[.contract-item-name]#++GovernorUnableToCancel++#++(uint256 proposalId, address account)++` [.item-kind]#error#
  2307. The given `account` is unable to cancel the proposal with given `proposalId`.
  2308. :BALLOT_TYPEHASH: pass:normal[xref:#Governor-BALLOT_TYPEHASH-bytes32[`++BALLOT_TYPEHASH++`]]
  2309. :EXTENDED_BALLOT_TYPEHASH: pass:normal[xref:#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32[`++EXTENDED_BALLOT_TYPEHASH++`]]
  2310. :ProposalCore: pass:normal[xref:#Governor-ProposalCore[`++ProposalCore++`]]
  2311. :onlyGovernance: pass:normal[xref:#Governor-onlyGovernance--[`++onlyGovernance++`]]
  2312. :constructor: pass:normal[xref:#Governor-constructor-string-[`++constructor++`]]
  2313. :receive: pass:normal[xref:#Governor-receive--[`++receive++`]]
  2314. :supportsInterface: pass:normal[xref:#Governor-supportsInterface-bytes4-[`++supportsInterface++`]]
  2315. :name: pass:normal[xref:#Governor-name--[`++name++`]]
  2316. :version: pass:normal[xref:#Governor-version--[`++version++`]]
  2317. :hashProposal: pass:normal[xref:#Governor-hashProposal-address---uint256---bytes---bytes32-[`++hashProposal++`]]
  2318. :getProposalId: pass:normal[xref:#Governor-getProposalId-address---uint256---bytes---bytes32-[`++getProposalId++`]]
  2319. :state: pass:normal[xref:#Governor-state-uint256-[`++state++`]]
  2320. :proposalThreshold: pass:normal[xref:#Governor-proposalThreshold--[`++proposalThreshold++`]]
  2321. :proposalSnapshot: pass:normal[xref:#Governor-proposalSnapshot-uint256-[`++proposalSnapshot++`]]
  2322. :proposalDeadline: pass:normal[xref:#Governor-proposalDeadline-uint256-[`++proposalDeadline++`]]
  2323. :proposalProposer: pass:normal[xref:#Governor-proposalProposer-uint256-[`++proposalProposer++`]]
  2324. :proposalEta: pass:normal[xref:#Governor-proposalEta-uint256-[`++proposalEta++`]]
  2325. :proposalNeedsQueuing: pass:normal[xref:#Governor-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  2326. :_checkGovernance: pass:normal[xref:#Governor-_checkGovernance--[`++_checkGovernance++`]]
  2327. :_quorumReached: pass:normal[xref:#Governor-_quorumReached-uint256-[`++_quorumReached++`]]
  2328. :_voteSucceeded: pass:normal[xref:#Governor-_voteSucceeded-uint256-[`++_voteSucceeded++`]]
  2329. :_getVotes: pass:normal[xref:#Governor-_getVotes-address-uint256-bytes-[`++_getVotes++`]]
  2330. :_countVote: pass:normal[xref:#Governor-_countVote-uint256-address-uint8-uint256-bytes-[`++_countVote++`]]
  2331. :_tallyUpdated: pass:normal[xref:#Governor-_tallyUpdated-uint256-[`++_tallyUpdated++`]]
  2332. :_defaultParams: pass:normal[xref:#Governor-_defaultParams--[`++_defaultParams++`]]
  2333. :propose: pass:normal[xref:#Governor-propose-address---uint256---bytes---string-[`++propose++`]]
  2334. :_propose: pass:normal[xref:#Governor-_propose-address---uint256---bytes---string-address-[`++_propose++`]]
  2335. :queue: pass:normal[xref:#Governor-queue-address---uint256---bytes---bytes32-[`++queue++`]]
  2336. :_queueOperations: pass:normal[xref:#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-[`++_queueOperations++`]]
  2337. :execute: pass:normal[xref:#Governor-execute-address---uint256---bytes---bytes32-[`++execute++`]]
  2338. :_executeOperations: pass:normal[xref:#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-[`++_executeOperations++`]]
  2339. :cancel: pass:normal[xref:#Governor-cancel-address---uint256---bytes---bytes32-[`++cancel++`]]
  2340. :_cancel: pass:normal[xref:#Governor-_cancel-address---uint256---bytes---bytes32-[`++_cancel++`]]
  2341. :getVotes: pass:normal[xref:#Governor-getVotes-address-uint256-[`++getVotes++`]]
  2342. :getVotesWithParams: pass:normal[xref:#Governor-getVotesWithParams-address-uint256-bytes-[`++getVotesWithParams++`]]
  2343. :castVote: pass:normal[xref:#Governor-castVote-uint256-uint8-[`++castVote++`]]
  2344. :castVoteWithReason: pass:normal[xref:#Governor-castVoteWithReason-uint256-uint8-string-[`++castVoteWithReason++`]]
  2345. :castVoteWithReasonAndParams: pass:normal[xref:#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-[`++castVoteWithReasonAndParams++`]]
  2346. :castVoteBySig: pass:normal[xref:#Governor-castVoteBySig-uint256-uint8-address-bytes-[`++castVoteBySig++`]]
  2347. :castVoteWithReasonAndParamsBySig: pass:normal[xref:#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-[`++castVoteWithReasonAndParamsBySig++`]]
  2348. :_validateVoteSig: pass:normal[xref:#Governor-_validateVoteSig-uint256-uint8-address-bytes-[`++_validateVoteSig++`]]
  2349. :_validateExtendedVoteSig: pass:normal[xref:#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-[`++_validateExtendedVoteSig++`]]
  2350. :_castVote: pass:normal[xref:#Governor-_castVote-uint256-address-uint8-string-[`++_castVote++`]]
  2351. :_castVote: pass:normal[xref:#Governor-_castVote-uint256-address-uint8-string-bytes-[`++_castVote++`]]
  2352. :relay: pass:normal[xref:#Governor-relay-address-uint256-bytes-[`++relay++`]]
  2353. :_executor: pass:normal[xref:#Governor-_executor--[`++_executor++`]]
  2354. :onERC721Received: pass:normal[xref:#Governor-onERC721Received-address-address-uint256-bytes-[`++onERC721Received++`]]
  2355. :onERC1155Received: pass:normal[xref:#Governor-onERC1155Received-address-address-uint256-uint256-bytes-[`++onERC1155Received++`]]
  2356. :onERC1155BatchReceived: pass:normal[xref:#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-[`++onERC1155BatchReceived++`]]
  2357. :_encodeStateBitmap: pass:normal[xref:#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-[`++_encodeStateBitmap++`]]
  2358. :_validateStateBitmap: pass:normal[xref:#Governor-_validateStateBitmap-uint256-bytes32-[`++_validateStateBitmap++`]]
  2359. :_isValidDescriptionForProposer: pass:normal[xref:#Governor-_isValidDescriptionForProposer-address-string-[`++_isValidDescriptionForProposer++`]]
  2360. :_validateCancel: pass:normal[xref:#Governor-_validateCancel-uint256-address-[`++_validateCancel++`]]
  2361. :clock: pass:normal[xref:#Governor-clock--[`++clock++`]]
  2362. :CLOCK_MODE: pass:normal[xref:#Governor-CLOCK_MODE--[`++CLOCK_MODE++`]]
  2363. :votingDelay: pass:normal[xref:#Governor-votingDelay--[`++votingDelay++`]]
  2364. :votingPeriod: pass:normal[xref:#Governor-votingPeriod--[`++votingPeriod++`]]
  2365. :quorum: pass:normal[xref:#Governor-quorum-uint256-[`++quorum++`]]
  2366. :constructor-string: pass:normal[xref:#Governor-constructor-string-[`++constructor++`]]
  2367. :receive-: pass:normal[xref:#Governor-receive--[`++receive++`]]
  2368. :supportsInterface-bytes4: pass:normal[xref:#Governor-supportsInterface-bytes4-[`++supportsInterface++`]]
  2369. :name-: pass:normal[xref:#Governor-name--[`++name++`]]
  2370. :version-: pass:normal[xref:#Governor-version--[`++version++`]]
  2371. :hashProposal-address---uint256---bytes---bytes32: pass:normal[xref:#Governor-hashProposal-address---uint256---bytes---bytes32-[`++hashProposal++`]]
  2372. :getProposalId-address---uint256---bytes---bytes32: pass:normal[xref:#Governor-getProposalId-address---uint256---bytes---bytes32-[`++getProposalId++`]]
  2373. :state-uint256: pass:normal[xref:#Governor-state-uint256-[`++state++`]]
  2374. :proposalThreshold-: pass:normal[xref:#Governor-proposalThreshold--[`++proposalThreshold++`]]
  2375. :proposalSnapshot-uint256: pass:normal[xref:#Governor-proposalSnapshot-uint256-[`++proposalSnapshot++`]]
  2376. :proposalDeadline-uint256: pass:normal[xref:#Governor-proposalDeadline-uint256-[`++proposalDeadline++`]]
  2377. :proposalProposer-uint256: pass:normal[xref:#Governor-proposalProposer-uint256-[`++proposalProposer++`]]
  2378. :proposalEta-uint256: pass:normal[xref:#Governor-proposalEta-uint256-[`++proposalEta++`]]
  2379. :proposalNeedsQueuing-uint256: pass:normal[xref:#Governor-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  2380. :_checkGovernance-: pass:normal[xref:#Governor-_checkGovernance--[`++_checkGovernance++`]]
  2381. :_quorumReached-uint256: pass:normal[xref:#Governor-_quorumReached-uint256-[`++_quorumReached++`]]
  2382. :_voteSucceeded-uint256: pass:normal[xref:#Governor-_voteSucceeded-uint256-[`++_voteSucceeded++`]]
  2383. :_getVotes-address-uint256-bytes: pass:normal[xref:#Governor-_getVotes-address-uint256-bytes-[`++_getVotes++`]]
  2384. :_countVote-uint256-address-uint8-uint256-bytes: pass:normal[xref:#Governor-_countVote-uint256-address-uint8-uint256-bytes-[`++_countVote++`]]
  2385. :_tallyUpdated-uint256: pass:normal[xref:#Governor-_tallyUpdated-uint256-[`++_tallyUpdated++`]]
  2386. :_defaultParams-: pass:normal[xref:#Governor-_defaultParams--[`++_defaultParams++`]]
  2387. :propose-address---uint256---bytes---string: pass:normal[xref:#Governor-propose-address---uint256---bytes---string-[`++propose++`]]
  2388. :_propose-address---uint256---bytes---string-address: pass:normal[xref:#Governor-_propose-address---uint256---bytes---string-address-[`++_propose++`]]
  2389. :queue-address---uint256---bytes---bytes32: pass:normal[xref:#Governor-queue-address---uint256---bytes---bytes32-[`++queue++`]]
  2390. :_queueOperations-uint256-address---uint256---bytes---bytes32: pass:normal[xref:#Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-[`++_queueOperations++`]]
  2391. :execute-address---uint256---bytes---bytes32: pass:normal[xref:#Governor-execute-address---uint256---bytes---bytes32-[`++execute++`]]
  2392. :_executeOperations-uint256-address---uint256---bytes---bytes32: pass:normal[xref:#Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-[`++_executeOperations++`]]
  2393. :cancel-address---uint256---bytes---bytes32: pass:normal[xref:#Governor-cancel-address---uint256---bytes---bytes32-[`++cancel++`]]
  2394. :_cancel-address---uint256---bytes---bytes32: pass:normal[xref:#Governor-_cancel-address---uint256---bytes---bytes32-[`++_cancel++`]]
  2395. :getVotes-address-uint256: pass:normal[xref:#Governor-getVotes-address-uint256-[`++getVotes++`]]
  2396. :getVotesWithParams-address-uint256-bytes: pass:normal[xref:#Governor-getVotesWithParams-address-uint256-bytes-[`++getVotesWithParams++`]]
  2397. :castVote-uint256-uint8: pass:normal[xref:#Governor-castVote-uint256-uint8-[`++castVote++`]]
  2398. :castVoteWithReason-uint256-uint8-string: pass:normal[xref:#Governor-castVoteWithReason-uint256-uint8-string-[`++castVoteWithReason++`]]
  2399. :castVoteWithReasonAndParams-uint256-uint8-string-bytes: pass:normal[xref:#Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-[`++castVoteWithReasonAndParams++`]]
  2400. :castVoteBySig-uint256-uint8-address-bytes: pass:normal[xref:#Governor-castVoteBySig-uint256-uint8-address-bytes-[`++castVoteBySig++`]]
  2401. :castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes: pass:normal[xref:#Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-[`++castVoteWithReasonAndParamsBySig++`]]
  2402. :_validateVoteSig-uint256-uint8-address-bytes: pass:normal[xref:#Governor-_validateVoteSig-uint256-uint8-address-bytes-[`++_validateVoteSig++`]]
  2403. :_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes: pass:normal[xref:#Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-[`++_validateExtendedVoteSig++`]]
  2404. :_castVote-uint256-address-uint8-string: pass:normal[xref:#Governor-_castVote-uint256-address-uint8-string-[`++_castVote++`]]
  2405. :_castVote-uint256-address-uint8-string-bytes: pass:normal[xref:#Governor-_castVote-uint256-address-uint8-string-bytes-[`++_castVote++`]]
  2406. :relay-address-uint256-bytes: pass:normal[xref:#Governor-relay-address-uint256-bytes-[`++relay++`]]
  2407. :_executor-: pass:normal[xref:#Governor-_executor--[`++_executor++`]]
  2408. :onERC721Received-address-address-uint256-bytes: pass:normal[xref:#Governor-onERC721Received-address-address-uint256-bytes-[`++onERC721Received++`]]
  2409. :onERC1155Received-address-address-uint256-uint256-bytes: pass:normal[xref:#Governor-onERC1155Received-address-address-uint256-uint256-bytes-[`++onERC1155Received++`]]
  2410. :onERC1155BatchReceived-address-address-uint256---uint256---bytes: pass:normal[xref:#Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-[`++onERC1155BatchReceived++`]]
  2411. :_encodeStateBitmap-enum-IGovernor-ProposalState: pass:normal[xref:#Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-[`++_encodeStateBitmap++`]]
  2412. :_validateStateBitmap-uint256-bytes32: pass:normal[xref:#Governor-_validateStateBitmap-uint256-bytes32-[`++_validateStateBitmap++`]]
  2413. :_isValidDescriptionForProposer-address-string: pass:normal[xref:#Governor-_isValidDescriptionForProposer-address-string-[`++_isValidDescriptionForProposer++`]]
  2414. :_validateCancel-uint256-address: pass:normal[xref:#Governor-_validateCancel-uint256-address-[`++_validateCancel++`]]
  2415. :clock-: pass:normal[xref:#Governor-clock--[`++clock++`]]
  2416. :CLOCK_MODE-: pass:normal[xref:#Governor-CLOCK_MODE--[`++CLOCK_MODE++`]]
  2417. :votingDelay-: pass:normal[xref:#Governor-votingDelay--[`++votingDelay++`]]
  2418. :votingPeriod-: pass:normal[xref:#Governor-votingPeriod--[`++votingPeriod++`]]
  2419. :quorum-uint256: pass:normal[xref:#Governor-quorum-uint256-[`++quorum++`]]
  2420. :BALLOT_TYPEHASH-bytes32: pass:normal[xref:#Governor-BALLOT_TYPEHASH-bytes32[`++BALLOT_TYPEHASH++`]]
  2421. :EXTENDED_BALLOT_TYPEHASH-bytes32: pass:normal[xref:#Governor-EXTENDED_BALLOT_TYPEHASH-bytes32[`++EXTENDED_BALLOT_TYPEHASH++`]]
  2422. [.contract]
  2423. [[Governor]]
  2424. === `++Governor++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/Governor.sol[{github-icon},role=heading-link]
  2425. [.hljs-theme-light.nopadding]
  2426. ```solidity
  2427. import "@openzeppelin/contracts/governance/Governor.sol";
  2428. ```
  2429. Core of the governance system, designed to be extended through various modules.
  2430. This contract is abstract and requires several functions to be implemented in various modules:
  2431. - A counting module must implement {_quorumReached}, {_voteSucceeded} and {_countVote}
  2432. - A voting module must implement {_getVotes}
  2433. - Additionally, {votingPeriod}, {votingDelay}, and {quorum} must also be implemented
  2434. [.contract-index]
  2435. .Modifiers
  2436. --
  2437. * {xref-Governor-onlyGovernance--}[`++onlyGovernance()++`]
  2438. --
  2439. [.contract-index]
  2440. .Functions
  2441. --
  2442. * {xref-Governor-constructor-string-}[`++constructor(name_)++`]
  2443. * {xref-Governor-receive--}[`++receive()++`]
  2444. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  2445. * {xref-Governor-name--}[`++name()++`]
  2446. * {xref-Governor-version--}[`++version()++`]
  2447. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  2448. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  2449. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  2450. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  2451. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  2452. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  2453. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  2454. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  2455. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  2456. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  2457. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  2458. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  2459. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  2460. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  2461. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  2462. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  2463. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  2464. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  2465. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  2466. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  2467. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  2468. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  2469. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  2470. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  2471. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  2472. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  2473. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  2474. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  2475. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  2476. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  2477. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  2478. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  2479. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  2480. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  2481. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  2482. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  2483. * {xref-Governor-_executor--}[`++_executor()++`]
  2484. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  2485. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  2486. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  2487. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  2488. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  2489. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  2490. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  2491. * {xref-Governor-clock--}[`++clock()++`]
  2492. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  2493. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  2494. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  2495. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  2496. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  2497. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  2498. [.contract-subindex-inherited]
  2499. .IERC1155Receiver
  2500. [.contract-subindex-inherited]
  2501. .IERC721Receiver
  2502. [.contract-subindex-inherited]
  2503. .IGovernor
  2504. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  2505. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  2506. [.contract-subindex-inherited]
  2507. .IERC6372
  2508. [.contract-subindex-inherited]
  2509. .Nonces
  2510. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  2511. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  2512. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  2513. [.contract-subindex-inherited]
  2514. .EIP712
  2515. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  2516. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  2517. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  2518. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  2519. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  2520. [.contract-subindex-inherited]
  2521. .IERC5267
  2522. [.contract-subindex-inherited]
  2523. .ERC165
  2524. [.contract-subindex-inherited]
  2525. .IERC165
  2526. --
  2527. [.contract-index]
  2528. .Events
  2529. --
  2530. [.contract-subindex-inherited]
  2531. .IERC1155Receiver
  2532. [.contract-subindex-inherited]
  2533. .IERC721Receiver
  2534. [.contract-subindex-inherited]
  2535. .IGovernor
  2536. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  2537. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  2538. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  2539. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  2540. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  2541. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  2542. [.contract-subindex-inherited]
  2543. .IERC6372
  2544. [.contract-subindex-inherited]
  2545. .Nonces
  2546. [.contract-subindex-inherited]
  2547. .EIP712
  2548. [.contract-subindex-inherited]
  2549. .IERC5267
  2550. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  2551. [.contract-subindex-inherited]
  2552. .ERC165
  2553. [.contract-subindex-inherited]
  2554. .IERC165
  2555. --
  2556. [.contract-index]
  2557. .Errors
  2558. --
  2559. [.contract-subindex-inherited]
  2560. .IERC1155Receiver
  2561. [.contract-subindex-inherited]
  2562. .IERC721Receiver
  2563. [.contract-subindex-inherited]
  2564. .IGovernor
  2565. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  2566. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  2567. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  2568. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  2569. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  2570. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  2571. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  2572. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  2573. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  2574. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  2575. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  2576. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  2577. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  2578. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  2579. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  2580. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  2581. [.contract-subindex-inherited]
  2582. .IERC6372
  2583. [.contract-subindex-inherited]
  2584. .Nonces
  2585. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  2586. [.contract-subindex-inherited]
  2587. .EIP712
  2588. [.contract-subindex-inherited]
  2589. .IERC5267
  2590. [.contract-subindex-inherited]
  2591. .ERC165
  2592. [.contract-subindex-inherited]
  2593. .IERC165
  2594. --
  2595. [.contract-item]
  2596. [[Governor-onlyGovernance--]]
  2597. ==== `[.contract-item-name]#++onlyGovernance++#++()++` [.item-kind]#modifier#
  2598. Restricts a function so it can only be executed through governance proposals. For example, governance
  2599. parameter setters in {GovernorSettings} are protected using this modifier.
  2600. The governance executing address may be different from the Governor's own address, for example it could be a
  2601. timelock. This can be customized by modules by overriding {_executor}. The executor is only able to invoke these
  2602. functions during the execution of the governor's {execute} function, and not under any other circumstances. Thus,
  2603. for example, additional timelock proposers are not able to change governance parameters without going through the
  2604. governance protocol (since v4.6).
  2605. [.contract-item]
  2606. [[Governor-constructor-string-]]
  2607. ==== `[.contract-item-name]#++constructor++#++(string name_)++` [.item-kind]#internal#
  2608. Sets the value for {name} and {version}
  2609. [.contract-item]
  2610. [[Governor-receive--]]
  2611. ==== `[.contract-item-name]#++receive++#++()++` [.item-kind]#external#
  2612. Function to receive ETH that will be handled by the governor (disabled if executor is a third party contract)
  2613. [.contract-item]
  2614. [[Governor-supportsInterface-bytes4-]]
  2615. ==== `[.contract-item-name]#++supportsInterface++#++(bytes4 interfaceId) → bool++` [.item-kind]#public#
  2616. Returns true if this contract implements the interface defined by
  2617. `interfaceId`. See the corresponding
  2618. https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[ERC section]
  2619. to learn more about how these ids are created.
  2620. This function call must use less than 30 000 gas.
  2621. [.contract-item]
  2622. [[Governor-name--]]
  2623. ==== `[.contract-item-name]#++name++#++() → string++` [.item-kind]#public#
  2624. Name of the governor instance (used in building the EIP-712 domain separator).
  2625. [.contract-item]
  2626. [[Governor-version--]]
  2627. ==== `[.contract-item-name]#++version++#++() → string++` [.item-kind]#public#
  2628. Version of the governor instance (used in building the EIP-712 domain separator). Default: "1"
  2629. [.contract-item]
  2630. [[Governor-hashProposal-address---uint256---bytes---bytes32-]]
  2631. ==== `[.contract-item-name]#++hashProposal++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#public#
  2632. See {IGovernor-hashProposal}.
  2633. The proposal id is produced by hashing the ABI encoded `targets` array, the `values` array, the `calldatas` array
  2634. and the descriptionHash (bytes32 which itself is the keccak256 hash of the description string). This proposal id
  2635. can be produced from the proposal data which is part of the {ProposalCreated} event. It can even be computed in
  2636. advance, before the proposal is submitted.
  2637. Note that the chainId and the governor address are not part of the proposal id computation. Consequently, the
  2638. same proposal (with same operation and same description) will have the same id if submitted on multiple governors
  2639. across multiple networks. This also means that in order to execute the same operation twice (on the same
  2640. governor) the proposer will have to change the description in order to avoid proposal id conflicts.
  2641. [.contract-item]
  2642. [[Governor-getProposalId-address---uint256---bytes---bytes32-]]
  2643. ==== `[.contract-item-name]#++getProposalId++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#public#
  2644. Function used to get the proposal id from the proposal details.
  2645. [.contract-item]
  2646. [[Governor-state-uint256-]]
  2647. ==== `[.contract-item-name]#++state++#++(uint256 proposalId) → enum IGovernor.ProposalState++` [.item-kind]#public#
  2648. Current state of a proposal, following Compound's convention
  2649. [.contract-item]
  2650. [[Governor-proposalThreshold--]]
  2651. ==== `[.contract-item-name]#++proposalThreshold++#++() → uint256++` [.item-kind]#public#
  2652. The number of votes required in order for a voter to become a proposer.
  2653. [.contract-item]
  2654. [[Governor-proposalSnapshot-uint256-]]
  2655. ==== `[.contract-item-name]#++proposalSnapshot++#++(uint256 proposalId) → uint256++` [.item-kind]#public#
  2656. Timepoint used to retrieve user's votes and quorum. If using block number (as per Compound's Comp), the
  2657. snapshot is performed at the end of this block. Hence, voting for this proposal starts at the beginning of the
  2658. following block.
  2659. [.contract-item]
  2660. [[Governor-proposalDeadline-uint256-]]
  2661. ==== `[.contract-item-name]#++proposalDeadline++#++(uint256 proposalId) → uint256++` [.item-kind]#public#
  2662. Timepoint at which votes close. If using block number, votes close at the end of this block, so it is
  2663. possible to cast a vote during this block.
  2664. [.contract-item]
  2665. [[Governor-proposalProposer-uint256-]]
  2666. ==== `[.contract-item-name]#++proposalProposer++#++(uint256 proposalId) → address++` [.item-kind]#public#
  2667. The account that created a proposal.
  2668. [.contract-item]
  2669. [[Governor-proposalEta-uint256-]]
  2670. ==== `[.contract-item-name]#++proposalEta++#++(uint256 proposalId) → uint256++` [.item-kind]#public#
  2671. The time when a queued proposal becomes executable ("ETA"). Unlike {proposalSnapshot} and
  2672. {proposalDeadline}, this doesn't use the governor clock, and instead relies on the executor's clock which may be
  2673. different. In most cases this will be a timestamp.
  2674. [.contract-item]
  2675. [[Governor-proposalNeedsQueuing-uint256-]]
  2676. ==== `[.contract-item-name]#++proposalNeedsQueuing++#++(uint256) → bool++` [.item-kind]#public#
  2677. Whether a proposal needs to be queued before execution.
  2678. [.contract-item]
  2679. [[Governor-_checkGovernance--]]
  2680. ==== `[.contract-item-name]#++_checkGovernance++#++()++` [.item-kind]#internal#
  2681. Reverts if the `msg.sender` is not the executor. In case the executor is not this contract
  2682. itself, the function reverts if `msg.data` is not whitelisted as a result of an {execute}
  2683. operation. See {onlyGovernance}.
  2684. [.contract-item]
  2685. [[Governor-_quorumReached-uint256-]]
  2686. ==== `[.contract-item-name]#++_quorumReached++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  2687. Amount of votes already cast passes the threshold limit.
  2688. [.contract-item]
  2689. [[Governor-_voteSucceeded-uint256-]]
  2690. ==== `[.contract-item-name]#++_voteSucceeded++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  2691. Is the proposal successful or not.
  2692. [.contract-item]
  2693. [[Governor-_getVotes-address-uint256-bytes-]]
  2694. ==== `[.contract-item-name]#++_getVotes++#++(address account, uint256 timepoint, bytes params) → uint256++` [.item-kind]#internal#
  2695. Get the voting weight of `account` at a specific `timepoint`, for a vote as described by `params`.
  2696. [.contract-item]
  2697. [[Governor-_countVote-uint256-address-uint8-uint256-bytes-]]
  2698. ==== `[.contract-item-name]#++_countVote++#++(uint256 proposalId, address account, uint8 support, uint256 totalWeight, bytes params) → uint256++` [.item-kind]#internal#
  2699. Register a vote for `proposalId` by `account` with a given `support`, voting `weight` and voting `params`.
  2700. Note: Support is generic and can represent various things depending on the voting system used.
  2701. [.contract-item]
  2702. [[Governor-_tallyUpdated-uint256-]]
  2703. ==== `[.contract-item-name]#++_tallyUpdated++#++(uint256 proposalId)++` [.item-kind]#internal#
  2704. Hook that should be called every time the tally for a proposal is updated.
  2705. Note: This function must run successfully. Reverts will result in the bricking of governance
  2706. [.contract-item]
  2707. [[Governor-_defaultParams--]]
  2708. ==== `[.contract-item-name]#++_defaultParams++#++() → bytes++` [.item-kind]#internal#
  2709. Default additional encoded parameters used by castVote methods that don't include them
  2710. Note: Should be overridden by specific implementations to use an appropriate value, the
  2711. meaning of the additional params, in the context of that implementation
  2712. [.contract-item]
  2713. [[Governor-propose-address---uint256---bytes---string-]]
  2714. ==== `[.contract-item-name]#++propose++#++(address[] targets, uint256[] values, bytes[] calldatas, string description) → uint256++` [.item-kind]#public#
  2715. See {IGovernor-propose}. This function has opt-in frontrunning protection, described in {_isValidDescriptionForProposer}.
  2716. [.contract-item]
  2717. [[Governor-_propose-address---uint256---bytes---string-address-]]
  2718. ==== `[.contract-item-name]#++_propose++#++(address[] targets, uint256[] values, bytes[] calldatas, string description, address proposer) → uint256 proposalId++` [.item-kind]#internal#
  2719. Internal propose mechanism. Can be overridden to add more logic on proposal creation.
  2720. Emits a {IGovernor-ProposalCreated} event.
  2721. [.contract-item]
  2722. [[Governor-queue-address---uint256---bytes---bytes32-]]
  2723. ==== `[.contract-item-name]#++queue++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#public#
  2724. Queue a proposal. Some governors require this step to be performed before execution can happen. If queuing
  2725. is not necessary, this function may revert.
  2726. Queuing a proposal requires the quorum to be reached, the vote to be successful, and the deadline to be reached.
  2727. Emits a {ProposalQueued} event.
  2728. [.contract-item]
  2729. [[Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-]]
  2730. ==== `[.contract-item-name]#++_queueOperations++#++(uint256, address[], uint256[], bytes[], bytes32) → uint48++` [.item-kind]#internal#
  2731. Internal queuing mechanism. Can be overridden (without a super call) to modify the way queuing is
  2732. performed (for example adding a vault/timelock).
  2733. This is empty by default, and must be overridden to implement queuing.
  2734. This function returns a timestamp that describes the expected ETA for execution. If the returned value is 0
  2735. (which is the default value), the core will consider queueing did not succeed, and the public {queue} function
  2736. will revert.
  2737. NOTE: Calling this function directly will NOT check the current state of the proposal, or emit the
  2738. `ProposalQueued` event. Queuing a proposal should be done using {queue}.
  2739. [.contract-item]
  2740. [[Governor-execute-address---uint256---bytes---bytes32-]]
  2741. ==== `[.contract-item-name]#++execute++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#public#
  2742. Execute a successful proposal. This requires the quorum to be reached, the vote to be successful, and the
  2743. deadline to be reached. Depending on the governor it might also be required that the proposal was queued and
  2744. that some delay passed.
  2745. Emits a {ProposalExecuted} event.
  2746. NOTE: Some modules can modify the requirements for execution, for example by adding an additional timelock.
  2747. [.contract-item]
  2748. [[Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-]]
  2749. ==== `[.contract-item-name]#++_executeOperations++#++(uint256, address[] targets, uint256[] values, bytes[] calldatas, bytes32)++` [.item-kind]#internal#
  2750. Internal execution mechanism. Can be overridden (without a super call) to modify the way execution is
  2751. performed (for example adding a vault/timelock).
  2752. NOTE: Calling this function directly will NOT check the current state of the proposal, set the executed flag to
  2753. true or emit the `ProposalExecuted` event. Executing a proposal should be done using {execute}.
  2754. [.contract-item]
  2755. [[Governor-cancel-address---uint256---bytes---bytes32-]]
  2756. ==== `[.contract-item-name]#++cancel++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#public#
  2757. Cancel a proposal. A proposal is cancellable by the proposer, but only while it is Pending state, i.e.
  2758. before the vote starts.
  2759. Emits a {ProposalCanceled} event.
  2760. [.contract-item]
  2761. [[Governor-_cancel-address---uint256---bytes---bytes32-]]
  2762. ==== `[.contract-item-name]#++_cancel++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#internal#
  2763. Internal cancel mechanism with minimal restrictions. A proposal can be cancelled in any state other than
  2764. Canceled, Expired, or Executed. Once cancelled a proposal can't be re-submitted.
  2765. Emits a {IGovernor-ProposalCanceled} event.
  2766. [.contract-item]
  2767. [[Governor-getVotes-address-uint256-]]
  2768. ==== `[.contract-item-name]#++getVotes++#++(address account, uint256 timepoint) → uint256++` [.item-kind]#public#
  2769. Voting power of an `account` at a specific `timepoint`.
  2770. Note: this can be implemented in a number of ways, for example by reading the delegated balance from one (or
  2771. multiple), {ERC20Votes} tokens.
  2772. [.contract-item]
  2773. [[Governor-getVotesWithParams-address-uint256-bytes-]]
  2774. ==== `[.contract-item-name]#++getVotesWithParams++#++(address account, uint256 timepoint, bytes params) → uint256++` [.item-kind]#public#
  2775. Voting power of an `account` at a specific `timepoint` given additional encoded parameters.
  2776. [.contract-item]
  2777. [[Governor-castVote-uint256-uint8-]]
  2778. ==== `[.contract-item-name]#++castVote++#++(uint256 proposalId, uint8 support) → uint256++` [.item-kind]#public#
  2779. Cast a vote
  2780. Emits a {VoteCast} event.
  2781. [.contract-item]
  2782. [[Governor-castVoteWithReason-uint256-uint8-string-]]
  2783. ==== `[.contract-item-name]#++castVoteWithReason++#++(uint256 proposalId, uint8 support, string reason) → uint256++` [.item-kind]#public#
  2784. Cast a vote with a reason
  2785. Emits a {VoteCast} event.
  2786. [.contract-item]
  2787. [[Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-]]
  2788. ==== `[.contract-item-name]#++castVoteWithReasonAndParams++#++(uint256 proposalId, uint8 support, string reason, bytes params) → uint256++` [.item-kind]#public#
  2789. Cast a vote with a reason and additional encoded parameters
  2790. Emits a {VoteCast} or {VoteCastWithParams} event depending on the length of params.
  2791. [.contract-item]
  2792. [[Governor-castVoteBySig-uint256-uint8-address-bytes-]]
  2793. ==== `[.contract-item-name]#++castVoteBySig++#++(uint256 proposalId, uint8 support, address voter, bytes signature) → uint256++` [.item-kind]#public#
  2794. Cast a vote using the voter's signature, including ERC-1271 signature support.
  2795. Emits a {VoteCast} event.
  2796. [.contract-item]
  2797. [[Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-]]
  2798. ==== `[.contract-item-name]#++castVoteWithReasonAndParamsBySig++#++(uint256 proposalId, uint8 support, address voter, string reason, bytes params, bytes signature) → uint256++` [.item-kind]#public#
  2799. Cast a vote with a reason and additional encoded parameters using the voter's signature,
  2800. including ERC-1271 signature support.
  2801. Emits a {VoteCast} or {VoteCastWithParams} event depending on the length of params.
  2802. [.contract-item]
  2803. [[Governor-_validateVoteSig-uint256-uint8-address-bytes-]]
  2804. ==== `[.contract-item-name]#++_validateVoteSig++#++(uint256 proposalId, uint8 support, address voter, bytes signature) → bool++` [.item-kind]#internal#
  2805. Validate the `signature` used in {castVoteBySig} function.
  2806. [.contract-item]
  2807. [[Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-]]
  2808. ==== `[.contract-item-name]#++_validateExtendedVoteSig++#++(uint256 proposalId, uint8 support, address voter, string reason, bytes params, bytes signature) → bool++` [.item-kind]#internal#
  2809. Validate the `signature` used in {castVoteWithReasonAndParamsBySig} function.
  2810. [.contract-item]
  2811. [[Governor-_castVote-uint256-address-uint8-string-]]
  2812. ==== `[.contract-item-name]#++_castVote++#++(uint256 proposalId, address account, uint8 support, string reason) → uint256++` [.item-kind]#internal#
  2813. Internal vote casting mechanism: Check that the vote is pending, that it has not been cast yet, retrieve
  2814. voting weight using {IGovernor-getVotes} and call the {_countVote} internal function. Uses the _defaultParams().
  2815. Emits a {IGovernor-VoteCast} event.
  2816. [.contract-item]
  2817. [[Governor-_castVote-uint256-address-uint8-string-bytes-]]
  2818. ==== `[.contract-item-name]#++_castVote++#++(uint256 proposalId, address account, uint8 support, string reason, bytes params) → uint256++` [.item-kind]#internal#
  2819. Internal vote casting mechanism: Check that the vote is pending, that it has not been cast yet, retrieve
  2820. voting weight using {IGovernor-getVotes} and call the {_countVote} internal function.
  2821. Emits a {IGovernor-VoteCast} event.
  2822. [.contract-item]
  2823. [[Governor-relay-address-uint256-bytes-]]
  2824. ==== `[.contract-item-name]#++relay++#++(address target, uint256 value, bytes data)++` [.item-kind]#external#
  2825. Relays a transaction or function call to an arbitrary target. In cases where the governance executor
  2826. is some contract other than the governor itself, like when using a timelock, this function can be invoked
  2827. in a governance proposal to recover tokens or Ether that was sent to the governor contract by mistake.
  2828. Note that if the executor is simply the governor itself, use of `relay` is redundant.
  2829. [.contract-item]
  2830. [[Governor-_executor--]]
  2831. ==== `[.contract-item-name]#++_executor++#++() → address++` [.item-kind]#internal#
  2832. Address through which the governor executes action. Will be overloaded by module that execute actions
  2833. through another contract such as a timelock.
  2834. [.contract-item]
  2835. [[Governor-onERC721Received-address-address-uint256-bytes-]]
  2836. ==== `[.contract-item-name]#++onERC721Received++#++(address, address, uint256, bytes) → bytes4++` [.item-kind]#public#
  2837. See {IERC721Receiver-onERC721Received}.
  2838. Receiving tokens is disabled if the governance executor is other than the governor itself (eg. when using with a timelock).
  2839. [.contract-item]
  2840. [[Governor-onERC1155Received-address-address-uint256-uint256-bytes-]]
  2841. ==== `[.contract-item-name]#++onERC1155Received++#++(address, address, uint256, uint256, bytes) → bytes4++` [.item-kind]#public#
  2842. See {IERC1155Receiver-onERC1155Received}.
  2843. Receiving tokens is disabled if the governance executor is other than the governor itself (eg. when using with a timelock).
  2844. [.contract-item]
  2845. [[Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-]]
  2846. ==== `[.contract-item-name]#++onERC1155BatchReceived++#++(address, address, uint256[], uint256[], bytes) → bytes4++` [.item-kind]#public#
  2847. See {IERC1155Receiver-onERC1155BatchReceived}.
  2848. Receiving tokens is disabled if the governance executor is other than the governor itself (eg. when using with a timelock).
  2849. [.contract-item]
  2850. [[Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-]]
  2851. ==== `[.contract-item-name]#++_encodeStateBitmap++#++(enum IGovernor.ProposalState proposalState) → bytes32++` [.item-kind]#internal#
  2852. Encodes a `ProposalState` into a `bytes32` representation where each bit enabled corresponds to
  2853. the underlying position in the `ProposalState` enum. For example:
  2854. 0x000...10000
  2855. ^^^^^^------ ...
  2856. ^----- Succeeded
  2857. ^---- Defeated
  2858. ^--- Canceled
  2859. ^-- Active
  2860. ^- Pending
  2861. [.contract-item]
  2862. [[Governor-_validateStateBitmap-uint256-bytes32-]]
  2863. ==== `[.contract-item-name]#++_validateStateBitmap++#++(uint256 proposalId, bytes32 allowedStates) → enum IGovernor.ProposalState++` [.item-kind]#internal#
  2864. Check that the current state of a proposal matches the requirements described by the `allowedStates` bitmap.
  2865. This bitmap should be built using `_encodeStateBitmap`.
  2866. If requirements are not met, reverts with a {GovernorUnexpectedProposalState} error.
  2867. [.contract-item]
  2868. [[Governor-_isValidDescriptionForProposer-address-string-]]
  2869. ==== `[.contract-item-name]#++_isValidDescriptionForProposer++#++(address proposer, string description) → bool++` [.item-kind]#internal#
  2870. [.contract-item]
  2871. [[Governor-_validateCancel-uint256-address-]]
  2872. ==== `[.contract-item-name]#++_validateCancel++#++(uint256 proposalId, address caller) → bool++` [.item-kind]#internal#
  2873. Check if the `caller` can cancel the proposal with the given `proposalId`.
  2874. The default implementation allows the proposal proposer to cancel the proposal during the pending state.
  2875. [.contract-item]
  2876. [[Governor-clock--]]
  2877. ==== `[.contract-item-name]#++clock++#++() → uint48++` [.item-kind]#public#
  2878. Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting).
  2879. [.contract-item]
  2880. [[Governor-CLOCK_MODE--]]
  2881. ==== `[.contract-item-name]#++CLOCK_MODE++#++() → string++` [.item-kind]#public#
  2882. Description of the clock
  2883. [.contract-item]
  2884. [[Governor-votingDelay--]]
  2885. ==== `[.contract-item-name]#++votingDelay++#++() → uint256++` [.item-kind]#public#
  2886. Delay, between the proposal is created and the vote starts. The unit this duration is expressed in depends
  2887. on the clock (see ERC-6372) this contract uses.
  2888. This can be increased to leave time for users to buy voting power, or delegate it, before the voting of a
  2889. proposal starts.
  2890. NOTE: While this interface returns a uint256, timepoints are stored as uint48 following the ERC-6372 clock type.
  2891. Consequently this value must fit in a uint48 (when added to the current clock). See {IERC6372-clock}.
  2892. [.contract-item]
  2893. [[Governor-votingPeriod--]]
  2894. ==== `[.contract-item-name]#++votingPeriod++#++() → uint256++` [.item-kind]#public#
  2895. Delay between the vote start and vote end. The unit this duration is expressed in depends on the clock
  2896. (see ERC-6372) this contract uses.
  2897. NOTE: The {votingDelay} can delay the start of the vote. This must be considered when setting the voting
  2898. duration compared to the voting delay.
  2899. NOTE: This value is stored when the proposal is submitted so that possible changes to the value do not affect
  2900. proposals that have already been submitted. The type used to save it is a uint32. Consequently, while this
  2901. interface returns a uint256, the value it returns should fit in a uint32.
  2902. [.contract-item]
  2903. [[Governor-quorum-uint256-]]
  2904. ==== `[.contract-item-name]#++quorum++#++(uint256 timepoint) → uint256++` [.item-kind]#public#
  2905. Minimum number of cast voted required for a proposal to be successful.
  2906. NOTE: The `timepoint` parameter corresponds to the snapshot used for counting vote. This allows to scale the
  2907. quorum depending on values such as the totalSupply of a token at this timepoint (see {ERC20Votes}).
  2908. [.contract-item]
  2909. [[Governor-BALLOT_TYPEHASH-bytes32]]
  2910. ==== `[.contract-item-name]#++BALLOT_TYPEHASH++#++() → bytes32++` [.item-kind]#public#
  2911. [.contract-item]
  2912. [[Governor-EXTENDED_BALLOT_TYPEHASH-bytes32]]
  2913. ==== `[.contract-item-name]#++EXTENDED_BALLOT_TYPEHASH++#++() → bytes32++` [.item-kind]#public#
  2914. === Modules
  2915. :VoteType: pass:normal[xref:#GovernorCountingSimple-VoteType[`++VoteType++`]]
  2916. :ProposalVote: pass:normal[xref:#GovernorCountingSimple-ProposalVote[`++ProposalVote++`]]
  2917. :COUNTING_MODE: pass:normal[xref:#GovernorCountingSimple-COUNTING_MODE--[`++COUNTING_MODE++`]]
  2918. :hasVoted: pass:normal[xref:#GovernorCountingSimple-hasVoted-uint256-address-[`++hasVoted++`]]
  2919. :proposalVotes: pass:normal[xref:#GovernorCountingSimple-proposalVotes-uint256-[`++proposalVotes++`]]
  2920. :_quorumReached: pass:normal[xref:#GovernorCountingSimple-_quorumReached-uint256-[`++_quorumReached++`]]
  2921. :_voteSucceeded: pass:normal[xref:#GovernorCountingSimple-_voteSucceeded-uint256-[`++_voteSucceeded++`]]
  2922. :_countVote: pass:normal[xref:#GovernorCountingSimple-_countVote-uint256-address-uint8-uint256-bytes-[`++_countVote++`]]
  2923. :COUNTING_MODE-: pass:normal[xref:#GovernorCountingSimple-COUNTING_MODE--[`++COUNTING_MODE++`]]
  2924. :hasVoted-uint256-address: pass:normal[xref:#GovernorCountingSimple-hasVoted-uint256-address-[`++hasVoted++`]]
  2925. :proposalVotes-uint256: pass:normal[xref:#GovernorCountingSimple-proposalVotes-uint256-[`++proposalVotes++`]]
  2926. :_quorumReached-uint256: pass:normal[xref:#GovernorCountingSimple-_quorumReached-uint256-[`++_quorumReached++`]]
  2927. :_voteSucceeded-uint256: pass:normal[xref:#GovernorCountingSimple-_voteSucceeded-uint256-[`++_voteSucceeded++`]]
  2928. :_countVote-uint256-address-uint8-uint256-bytes: pass:normal[xref:#GovernorCountingSimple-_countVote-uint256-address-uint8-uint256-bytes-[`++_countVote++`]]
  2929. [.contract]
  2930. [[GovernorCountingSimple]]
  2931. === `++GovernorCountingSimple++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorCountingSimple.sol[{github-icon},role=heading-link]
  2932. [.hljs-theme-light.nopadding]
  2933. ```solidity
  2934. import "@openzeppelin/contracts/governance/extensions/GovernorCountingSimple.sol";
  2935. ```
  2936. Extension of {Governor} for simple, 3 options, vote counting.
  2937. [.contract-index]
  2938. .Functions
  2939. --
  2940. * {xref-GovernorCountingSimple-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  2941. * {xref-GovernorCountingSimple-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  2942. * {xref-GovernorCountingSimple-proposalVotes-uint256-}[`++proposalVotes(proposalId)++`]
  2943. * {xref-GovernorCountingSimple-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  2944. * {xref-GovernorCountingSimple-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  2945. * {xref-GovernorCountingSimple-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, )++`]
  2946. [.contract-subindex-inherited]
  2947. .Governor
  2948. * {xref-Governor-receive--}[`++receive()++`]
  2949. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  2950. * {xref-Governor-name--}[`++name()++`]
  2951. * {xref-Governor-version--}[`++version()++`]
  2952. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  2953. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  2954. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  2955. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  2956. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  2957. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  2958. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  2959. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  2960. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  2961. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  2962. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  2963. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  2964. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  2965. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  2966. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  2967. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  2968. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  2969. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  2970. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  2971. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  2972. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  2973. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  2974. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  2975. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  2976. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  2977. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  2978. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  2979. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  2980. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  2981. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  2982. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  2983. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  2984. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  2985. * {xref-Governor-_executor--}[`++_executor()++`]
  2986. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  2987. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  2988. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  2989. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  2990. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  2991. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  2992. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  2993. * {xref-Governor-clock--}[`++clock()++`]
  2994. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  2995. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  2996. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  2997. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  2998. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  2999. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  3000. [.contract-subindex-inherited]
  3001. .IERC1155Receiver
  3002. [.contract-subindex-inherited]
  3003. .IERC721Receiver
  3004. [.contract-subindex-inherited]
  3005. .IGovernor
  3006. [.contract-subindex-inherited]
  3007. .IERC6372
  3008. [.contract-subindex-inherited]
  3009. .Nonces
  3010. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  3011. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  3012. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  3013. [.contract-subindex-inherited]
  3014. .EIP712
  3015. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  3016. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  3017. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  3018. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  3019. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  3020. [.contract-subindex-inherited]
  3021. .IERC5267
  3022. [.contract-subindex-inherited]
  3023. .ERC165
  3024. [.contract-subindex-inherited]
  3025. .IERC165
  3026. --
  3027. [.contract-index]
  3028. .Events
  3029. --
  3030. [.contract-subindex-inherited]
  3031. .Governor
  3032. [.contract-subindex-inherited]
  3033. .IERC1155Receiver
  3034. [.contract-subindex-inherited]
  3035. .IERC721Receiver
  3036. [.contract-subindex-inherited]
  3037. .IGovernor
  3038. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  3039. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  3040. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  3041. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  3042. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  3043. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  3044. [.contract-subindex-inherited]
  3045. .IERC6372
  3046. [.contract-subindex-inherited]
  3047. .Nonces
  3048. [.contract-subindex-inherited]
  3049. .EIP712
  3050. [.contract-subindex-inherited]
  3051. .IERC5267
  3052. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  3053. [.contract-subindex-inherited]
  3054. .ERC165
  3055. [.contract-subindex-inherited]
  3056. .IERC165
  3057. --
  3058. [.contract-index]
  3059. .Errors
  3060. --
  3061. [.contract-subindex-inherited]
  3062. .Governor
  3063. [.contract-subindex-inherited]
  3064. .IERC1155Receiver
  3065. [.contract-subindex-inherited]
  3066. .IERC721Receiver
  3067. [.contract-subindex-inherited]
  3068. .IGovernor
  3069. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  3070. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  3071. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  3072. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  3073. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  3074. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  3075. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  3076. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  3077. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  3078. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  3079. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  3080. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  3081. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  3082. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  3083. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  3084. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  3085. [.contract-subindex-inherited]
  3086. .IERC6372
  3087. [.contract-subindex-inherited]
  3088. .Nonces
  3089. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  3090. [.contract-subindex-inherited]
  3091. .EIP712
  3092. [.contract-subindex-inherited]
  3093. .IERC5267
  3094. [.contract-subindex-inherited]
  3095. .ERC165
  3096. [.contract-subindex-inherited]
  3097. .IERC165
  3098. --
  3099. [.contract-item]
  3100. [[GovernorCountingSimple-COUNTING_MODE--]]
  3101. ==== `[.contract-item-name]#++COUNTING_MODE++#++() → string++` [.item-kind]#public#
  3102. A description of the possible `support` values for {castVote} and the way these votes are counted, meant to
  3103. be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of
  3104. key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`.
  3105. There are 2 standard keys: `support` and `quorum`.
  3106. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`.
  3107. - `quorum=bravo` means that only For votes are counted towards quorum.
  3108. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum.
  3109. If a counting module makes use of encoded `params`, it should include this under a `params` key with a unique
  3110. name that describes the behavior. For example:
  3111. - `params=fractional` might refer to a scheme where votes are divided fractionally between for/against/abstain.
  3112. - `params=erc721` might refer to a scheme where specific NFTs are delegated to vote.
  3113. NOTE: The string can be decoded by the standard
  3114. https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`]
  3115. JavaScript class.
  3116. [.contract-item]
  3117. [[GovernorCountingSimple-hasVoted-uint256-address-]]
  3118. ==== `[.contract-item-name]#++hasVoted++#++(uint256 proposalId, address account) → bool++` [.item-kind]#public#
  3119. Returns whether `account` has cast a vote on `proposalId`.
  3120. [.contract-item]
  3121. [[GovernorCountingSimple-proposalVotes-uint256-]]
  3122. ==== `[.contract-item-name]#++proposalVotes++#++(uint256 proposalId) → uint256 againstVotes, uint256 forVotes, uint256 abstainVotes++` [.item-kind]#public#
  3123. Accessor to the internal vote counts.
  3124. [.contract-item]
  3125. [[GovernorCountingSimple-_quorumReached-uint256-]]
  3126. ==== `[.contract-item-name]#++_quorumReached++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  3127. Amount of votes already cast passes the threshold limit.
  3128. [.contract-item]
  3129. [[GovernorCountingSimple-_voteSucceeded-uint256-]]
  3130. ==== `[.contract-item-name]#++_voteSucceeded++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  3131. See {Governor-_voteSucceeded}. In this module, the forVotes must be strictly over the againstVotes.
  3132. [.contract-item]
  3133. [[GovernorCountingSimple-_countVote-uint256-address-uint8-uint256-bytes-]]
  3134. ==== `[.contract-item-name]#++_countVote++#++(uint256 proposalId, address account, uint8 support, uint256 totalWeight, bytes) → uint256++` [.item-kind]#internal#
  3135. See {Governor-_countVote}. In this module, the support follows the `VoteType` enum (from Governor Bravo).
  3136. :VOTE_TYPE_FRACTIONAL: pass:normal[xref:#GovernorCountingFractional-VOTE_TYPE_FRACTIONAL-uint8[`++VOTE_TYPE_FRACTIONAL++`]]
  3137. :ProposalVote: pass:normal[xref:#GovernorCountingFractional-ProposalVote[`++ProposalVote++`]]
  3138. :GovernorExceedRemainingWeight: pass:normal[xref:#GovernorCountingFractional-GovernorExceedRemainingWeight-address-uint256-uint256-[`++GovernorExceedRemainingWeight++`]]
  3139. :COUNTING_MODE: pass:normal[xref:#GovernorCountingFractional-COUNTING_MODE--[`++COUNTING_MODE++`]]
  3140. :hasVoted: pass:normal[xref:#GovernorCountingFractional-hasVoted-uint256-address-[`++hasVoted++`]]
  3141. :usedVotes: pass:normal[xref:#GovernorCountingFractional-usedVotes-uint256-address-[`++usedVotes++`]]
  3142. :proposalVotes: pass:normal[xref:#GovernorCountingFractional-proposalVotes-uint256-[`++proposalVotes++`]]
  3143. :_quorumReached: pass:normal[xref:#GovernorCountingFractional-_quorumReached-uint256-[`++_quorumReached++`]]
  3144. :_voteSucceeded: pass:normal[xref:#GovernorCountingFractional-_voteSucceeded-uint256-[`++_voteSucceeded++`]]
  3145. :_countVote: pass:normal[xref:#GovernorCountingFractional-_countVote-uint256-address-uint8-uint256-bytes-[`++_countVote++`]]
  3146. :COUNTING_MODE-: pass:normal[xref:#GovernorCountingFractional-COUNTING_MODE--[`++COUNTING_MODE++`]]
  3147. :hasVoted-uint256-address: pass:normal[xref:#GovernorCountingFractional-hasVoted-uint256-address-[`++hasVoted++`]]
  3148. :usedVotes-uint256-address: pass:normal[xref:#GovernorCountingFractional-usedVotes-uint256-address-[`++usedVotes++`]]
  3149. :proposalVotes-uint256: pass:normal[xref:#GovernorCountingFractional-proposalVotes-uint256-[`++proposalVotes++`]]
  3150. :_quorumReached-uint256: pass:normal[xref:#GovernorCountingFractional-_quorumReached-uint256-[`++_quorumReached++`]]
  3151. :_voteSucceeded-uint256: pass:normal[xref:#GovernorCountingFractional-_voteSucceeded-uint256-[`++_voteSucceeded++`]]
  3152. :_countVote-uint256-address-uint8-uint256-bytes: pass:normal[xref:#GovernorCountingFractional-_countVote-uint256-address-uint8-uint256-bytes-[`++_countVote++`]]
  3153. [.contract]
  3154. [[GovernorCountingFractional]]
  3155. === `++GovernorCountingFractional++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorCountingFractional.sol[{github-icon},role=heading-link]
  3156. [.hljs-theme-light.nopadding]
  3157. ```solidity
  3158. import "@openzeppelin/contracts/governance/extensions/GovernorCountingFractional.sol";
  3159. ```
  3160. Extension of {Governor} for fractional voting.
  3161. Similar to {GovernorCountingSimple}, this contract is a votes counting module for {Governor} that supports 3 options:
  3162. Against, For, Abstain. Additionally, it includes a fourth option: Fractional, which allows voters to split their voting
  3163. power amongst the other 3 options.
  3164. Votes cast with the Fractional support must be accompanied by a `params` argument that is three packed `uint128` values
  3165. representing the weight the delegate assigns to Against, For, and Abstain respectively. For those votes cast for the other
  3166. 3 options, the `params` argument must be empty.
  3167. This is mostly useful when the delegate is a contract that implements its own rules for voting. These delegate-contracts
  3168. can cast fractional votes according to the preferences of multiple entities delegating their voting power.
  3169. Some example use cases include:
  3170. * Voting from tokens that are held by a DeFi pool
  3171. * Voting from an L2 with tokens held by a bridge
  3172. * Voting privately from a shielded pool using zero knowledge proofs.
  3173. Based on ScopeLift's https://github.com/ScopeLift/flexible-voting/blob/e5de2efd1368387b840931f19f3c184c85842761/src/GovernorCountingFractional.sol[`GovernorCountingFractional`]
  3174. _Available since v5.1._
  3175. [.contract-index]
  3176. .Functions
  3177. --
  3178. * {xref-GovernorCountingFractional-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  3179. * {xref-GovernorCountingFractional-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  3180. * {xref-GovernorCountingFractional-usedVotes-uint256-address-}[`++usedVotes(proposalId, account)++`]
  3181. * {xref-GovernorCountingFractional-proposalVotes-uint256-}[`++proposalVotes(proposalId)++`]
  3182. * {xref-GovernorCountingFractional-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  3183. * {xref-GovernorCountingFractional-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  3184. * {xref-GovernorCountingFractional-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  3185. [.contract-subindex-inherited]
  3186. .Governor
  3187. * {xref-Governor-receive--}[`++receive()++`]
  3188. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  3189. * {xref-Governor-name--}[`++name()++`]
  3190. * {xref-Governor-version--}[`++version()++`]
  3191. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  3192. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  3193. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  3194. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  3195. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  3196. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  3197. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  3198. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  3199. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  3200. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  3201. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  3202. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  3203. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  3204. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  3205. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  3206. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  3207. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  3208. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  3209. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  3210. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  3211. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  3212. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  3213. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  3214. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  3215. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  3216. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  3217. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  3218. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  3219. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  3220. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  3221. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  3222. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  3223. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  3224. * {xref-Governor-_executor--}[`++_executor()++`]
  3225. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  3226. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  3227. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  3228. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  3229. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  3230. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  3231. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  3232. * {xref-Governor-clock--}[`++clock()++`]
  3233. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  3234. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  3235. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  3236. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  3237. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  3238. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  3239. [.contract-subindex-inherited]
  3240. .IERC1155Receiver
  3241. [.contract-subindex-inherited]
  3242. .IERC721Receiver
  3243. [.contract-subindex-inherited]
  3244. .IGovernor
  3245. [.contract-subindex-inherited]
  3246. .IERC6372
  3247. [.contract-subindex-inherited]
  3248. .Nonces
  3249. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  3250. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  3251. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  3252. [.contract-subindex-inherited]
  3253. .EIP712
  3254. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  3255. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  3256. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  3257. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  3258. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  3259. [.contract-subindex-inherited]
  3260. .IERC5267
  3261. [.contract-subindex-inherited]
  3262. .ERC165
  3263. [.contract-subindex-inherited]
  3264. .IERC165
  3265. --
  3266. [.contract-index]
  3267. .Events
  3268. --
  3269. [.contract-subindex-inherited]
  3270. .Governor
  3271. [.contract-subindex-inherited]
  3272. .IERC1155Receiver
  3273. [.contract-subindex-inherited]
  3274. .IERC721Receiver
  3275. [.contract-subindex-inherited]
  3276. .IGovernor
  3277. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  3278. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  3279. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  3280. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  3281. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  3282. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  3283. [.contract-subindex-inherited]
  3284. .IERC6372
  3285. [.contract-subindex-inherited]
  3286. .Nonces
  3287. [.contract-subindex-inherited]
  3288. .EIP712
  3289. [.contract-subindex-inherited]
  3290. .IERC5267
  3291. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  3292. [.contract-subindex-inherited]
  3293. .ERC165
  3294. [.contract-subindex-inherited]
  3295. .IERC165
  3296. --
  3297. [.contract-index]
  3298. .Errors
  3299. --
  3300. * {xref-GovernorCountingFractional-GovernorExceedRemainingWeight-address-uint256-uint256-}[`++GovernorExceedRemainingWeight(voter, usedVotes, remainingWeight)++`]
  3301. [.contract-subindex-inherited]
  3302. .Governor
  3303. [.contract-subindex-inherited]
  3304. .IERC1155Receiver
  3305. [.contract-subindex-inherited]
  3306. .IERC721Receiver
  3307. [.contract-subindex-inherited]
  3308. .IGovernor
  3309. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  3310. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  3311. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  3312. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  3313. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  3314. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  3315. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  3316. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  3317. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  3318. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  3319. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  3320. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  3321. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  3322. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  3323. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  3324. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  3325. [.contract-subindex-inherited]
  3326. .IERC6372
  3327. [.contract-subindex-inherited]
  3328. .Nonces
  3329. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  3330. [.contract-subindex-inherited]
  3331. .EIP712
  3332. [.contract-subindex-inherited]
  3333. .IERC5267
  3334. [.contract-subindex-inherited]
  3335. .ERC165
  3336. [.contract-subindex-inherited]
  3337. .IERC165
  3338. --
  3339. [.contract-index]
  3340. .Internal Variables
  3341. --
  3342. * {xref-GovernorCountingFractional-VOTE_TYPE_FRACTIONAL-uint8}[`++uint8 constant VOTE_TYPE_FRACTIONAL++`]
  3343. [.contract-subindex-inherited]
  3344. .Governor
  3345. [.contract-subindex-inherited]
  3346. .IERC1155Receiver
  3347. [.contract-subindex-inherited]
  3348. .IERC721Receiver
  3349. [.contract-subindex-inherited]
  3350. .IGovernor
  3351. [.contract-subindex-inherited]
  3352. .IERC6372
  3353. [.contract-subindex-inherited]
  3354. .Nonces
  3355. [.contract-subindex-inherited]
  3356. .EIP712
  3357. [.contract-subindex-inherited]
  3358. .IERC5267
  3359. [.contract-subindex-inherited]
  3360. .ERC165
  3361. [.contract-subindex-inherited]
  3362. .IERC165
  3363. --
  3364. [.contract-item]
  3365. [[GovernorCountingFractional-COUNTING_MODE--]]
  3366. ==== `[.contract-item-name]#++COUNTING_MODE++#++() → string++` [.item-kind]#public#
  3367. A description of the possible `support` values for {castVote} and the way these votes are counted, meant to
  3368. be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of
  3369. key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`.
  3370. There are 2 standard keys: `support` and `quorum`.
  3371. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`.
  3372. - `quorum=bravo` means that only For votes are counted towards quorum.
  3373. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum.
  3374. If a counting module makes use of encoded `params`, it should include this under a `params` key with a unique
  3375. name that describes the behavior. For example:
  3376. - `params=fractional` might refer to a scheme where votes are divided fractionally between for/against/abstain.
  3377. - `params=erc721` might refer to a scheme where specific NFTs are delegated to vote.
  3378. NOTE: The string can be decoded by the standard
  3379. https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`]
  3380. JavaScript class.
  3381. [.contract-item]
  3382. [[GovernorCountingFractional-hasVoted-uint256-address-]]
  3383. ==== `[.contract-item-name]#++hasVoted++#++(uint256 proposalId, address account) → bool++` [.item-kind]#public#
  3384. Returns whether `account` has cast a vote on `proposalId`.
  3385. [.contract-item]
  3386. [[GovernorCountingFractional-usedVotes-uint256-address-]]
  3387. ==== `[.contract-item-name]#++usedVotes++#++(uint256 proposalId, address account) → uint256++` [.item-kind]#public#
  3388. Get the number of votes already cast by `account` for a proposal with `proposalId`. Useful for
  3389. integrations that allow delegates to cast rolling, partial votes.
  3390. [.contract-item]
  3391. [[GovernorCountingFractional-proposalVotes-uint256-]]
  3392. ==== `[.contract-item-name]#++proposalVotes++#++(uint256 proposalId) → uint256 againstVotes, uint256 forVotes, uint256 abstainVotes++` [.item-kind]#public#
  3393. Get current distribution of votes for a given proposal.
  3394. [.contract-item]
  3395. [[GovernorCountingFractional-_quorumReached-uint256-]]
  3396. ==== `[.contract-item-name]#++_quorumReached++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  3397. Amount of votes already cast passes the threshold limit.
  3398. [.contract-item]
  3399. [[GovernorCountingFractional-_voteSucceeded-uint256-]]
  3400. ==== `[.contract-item-name]#++_voteSucceeded++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  3401. See {Governor-_voteSucceeded}. In this module, forVotes must be > againstVotes.
  3402. [.contract-item]
  3403. [[GovernorCountingFractional-_countVote-uint256-address-uint8-uint256-bytes-]]
  3404. ==== `[.contract-item-name]#++_countVote++#++(uint256 proposalId, address account, uint8 support, uint256 totalWeight, bytes params) → uint256++` [.item-kind]#internal#
  3405. See {Governor-_countVote}. Function that records the delegate's votes.
  3406. Executing this function consumes (part of) the delegate's weight on the proposal. This weight can be
  3407. distributed amongst the 3 options (Against, For, Abstain) by specifying a fractional `support`.
  3408. This counting module supports two vote casting modes: nominal and fractional.
  3409. - Nominal: A nominal vote is cast by setting `support` to one of the 3 bravo options (Against, For, Abstain).
  3410. - Fractional: A fractional vote is cast by setting `support` to `type(uint8).max` (255).
  3411. Casting a nominal vote requires `params` to be empty and consumes the delegate's full remaining weight on the
  3412. proposal for the specified `support` option. This is similar to the {GovernorCountingSimple} module and follows
  3413. the `VoteType` enum from Governor Bravo. As a consequence, no vote weight remains unspent so no further voting
  3414. is possible (for this `proposalId` and this `account`).
  3415. Casting a fractional vote consumes a fraction of the delegate's remaining weight on the proposal according to the
  3416. weights the delegate assigns to each support option (Against, For, Abstain respectively). The sum total of the
  3417. three decoded vote weights _must_ be less than or equal to the delegate's remaining weight on the proposal (i.e.
  3418. their checkpointed total weight minus votes already cast on the proposal). This format can be produced using:
  3419. `abi.encodePacked(uint128(againstVotes), uint128(forVotes), uint128(abstainVotes))`
  3420. NOTE: Consider that fractional voting restricts the number of casted votes (in each category) to 128 bits.
  3421. Depending on how many decimals the underlying token has, a single voter may require to split their vote into
  3422. multiple vote operations. For precision higher than ~30 decimals, large token holders may require a
  3423. potentially large number of calls to cast all their votes. The voter has the possibility to cast all the
  3424. remaining votes in a single operation using the traditional "bravo" vote.
  3425. [.contract-item]
  3426. [[GovernorCountingFractional-GovernorExceedRemainingWeight-address-uint256-uint256-]]
  3427. ==== `[.contract-item-name]#++GovernorExceedRemainingWeight++#++(address voter, uint256 usedVotes, uint256 remainingWeight)++` [.item-kind]#error#
  3428. A fractional vote params uses more votes than are available for that user.
  3429. [.contract-item]
  3430. [[GovernorCountingFractional-VOTE_TYPE_FRACTIONAL-uint8]]
  3431. ==== `uint8 [.contract-item-name]#++VOTE_TYPE_FRACTIONAL++#` [.item-kind]#internal constant#
  3432. :OVERRIDE_BALLOT_TYPEHASH: pass:normal[xref:#GovernorCountingOverridable-OVERRIDE_BALLOT_TYPEHASH-bytes32[`++OVERRIDE_BALLOT_TYPEHASH++`]]
  3433. :VoteType: pass:normal[xref:#GovernorCountingOverridable-VoteType[`++VoteType++`]]
  3434. :VoteReceipt: pass:normal[xref:#GovernorCountingOverridable-VoteReceipt[`++VoteReceipt++`]]
  3435. :ProposalVote: pass:normal[xref:#GovernorCountingOverridable-ProposalVote[`++ProposalVote++`]]
  3436. :VoteReduced: pass:normal[xref:#GovernorCountingOverridable-VoteReduced-address-uint256-uint8-uint256-[`++VoteReduced++`]]
  3437. :OverrideVoteCast: pass:normal[xref:#GovernorCountingOverridable-OverrideVoteCast-address-uint256-uint8-uint256-string-[`++OverrideVoteCast++`]]
  3438. :GovernorAlreadyOverriddenVote: pass:normal[xref:#GovernorCountingOverridable-GovernorAlreadyOverriddenVote-address-[`++GovernorAlreadyOverriddenVote++`]]
  3439. :COUNTING_MODE: pass:normal[xref:#GovernorCountingOverridable-COUNTING_MODE--[`++COUNTING_MODE++`]]
  3440. :hasVoted: pass:normal[xref:#GovernorCountingOverridable-hasVoted-uint256-address-[`++hasVoted++`]]
  3441. :hasVotedOverride: pass:normal[xref:#GovernorCountingOverridable-hasVotedOverride-uint256-address-[`++hasVotedOverride++`]]
  3442. :proposalVotes: pass:normal[xref:#GovernorCountingOverridable-proposalVotes-uint256-[`++proposalVotes++`]]
  3443. :_quorumReached: pass:normal[xref:#GovernorCountingOverridable-_quorumReached-uint256-[`++_quorumReached++`]]
  3444. :_voteSucceeded: pass:normal[xref:#GovernorCountingOverridable-_voteSucceeded-uint256-[`++_voteSucceeded++`]]
  3445. :_countVote: pass:normal[xref:#GovernorCountingOverridable-_countVote-uint256-address-uint8-uint256-bytes-[`++_countVote++`]]
  3446. :_countOverride: pass:normal[xref:#GovernorCountingOverridable-_countOverride-uint256-address-uint8-[`++_countOverride++`]]
  3447. :_castOverride: pass:normal[xref:#GovernorCountingOverridable-_castOverride-uint256-address-uint8-string-[`++_castOverride++`]]
  3448. :castOverrideVote: pass:normal[xref:#GovernorCountingOverridable-castOverrideVote-uint256-uint8-string-[`++castOverrideVote++`]]
  3449. :castOverrideVoteBySig: pass:normal[xref:#GovernorCountingOverridable-castOverrideVoteBySig-uint256-uint8-address-string-bytes-[`++castOverrideVoteBySig++`]]
  3450. :COUNTING_MODE-: pass:normal[xref:#GovernorCountingOverridable-COUNTING_MODE--[`++COUNTING_MODE++`]]
  3451. :hasVoted-uint256-address: pass:normal[xref:#GovernorCountingOverridable-hasVoted-uint256-address-[`++hasVoted++`]]
  3452. :hasVotedOverride-uint256-address: pass:normal[xref:#GovernorCountingOverridable-hasVotedOverride-uint256-address-[`++hasVotedOverride++`]]
  3453. :proposalVotes-uint256: pass:normal[xref:#GovernorCountingOverridable-proposalVotes-uint256-[`++proposalVotes++`]]
  3454. :_quorumReached-uint256: pass:normal[xref:#GovernorCountingOverridable-_quorumReached-uint256-[`++_quorumReached++`]]
  3455. :_voteSucceeded-uint256: pass:normal[xref:#GovernorCountingOverridable-_voteSucceeded-uint256-[`++_voteSucceeded++`]]
  3456. :_countVote-uint256-address-uint8-uint256-bytes: pass:normal[xref:#GovernorCountingOverridable-_countVote-uint256-address-uint8-uint256-bytes-[`++_countVote++`]]
  3457. :_countOverride-uint256-address-uint8: pass:normal[xref:#GovernorCountingOverridable-_countOverride-uint256-address-uint8-[`++_countOverride++`]]
  3458. :_castOverride-uint256-address-uint8-string: pass:normal[xref:#GovernorCountingOverridable-_castOverride-uint256-address-uint8-string-[`++_castOverride++`]]
  3459. :castOverrideVote-uint256-uint8-string: pass:normal[xref:#GovernorCountingOverridable-castOverrideVote-uint256-uint8-string-[`++castOverrideVote++`]]
  3460. :castOverrideVoteBySig-uint256-uint8-address-string-bytes: pass:normal[xref:#GovernorCountingOverridable-castOverrideVoteBySig-uint256-uint8-address-string-bytes-[`++castOverrideVoteBySig++`]]
  3461. :OVERRIDE_BALLOT_TYPEHASH-bytes32: pass:normal[xref:#GovernorCountingOverridable-OVERRIDE_BALLOT_TYPEHASH-bytes32[`++OVERRIDE_BALLOT_TYPEHASH++`]]
  3462. [.contract]
  3463. [[GovernorCountingOverridable]]
  3464. === `++GovernorCountingOverridable++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorCountingOverridable.sol[{github-icon},role=heading-link]
  3465. [.hljs-theme-light.nopadding]
  3466. ```solidity
  3467. import "@openzeppelin/contracts/governance/extensions/GovernorCountingOverridable.sol";
  3468. ```
  3469. Extension of {Governor} which enables delegators to override the vote of their delegates. This module requires a
  3470. token that inherits {VotesExtended}.
  3471. [.contract-index]
  3472. .Functions
  3473. --
  3474. * {xref-GovernorCountingOverridable-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  3475. * {xref-GovernorCountingOverridable-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  3476. * {xref-GovernorCountingOverridable-hasVotedOverride-uint256-address-}[`++hasVotedOverride(proposalId, account)++`]
  3477. * {xref-GovernorCountingOverridable-proposalVotes-uint256-}[`++proposalVotes(proposalId)++`]
  3478. * {xref-GovernorCountingOverridable-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  3479. * {xref-GovernorCountingOverridable-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  3480. * {xref-GovernorCountingOverridable-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, )++`]
  3481. * {xref-GovernorCountingOverridable-_countOverride-uint256-address-uint8-}[`++_countOverride(proposalId, account, support)++`]
  3482. * {xref-GovernorCountingOverridable-_castOverride-uint256-address-uint8-string-}[`++_castOverride(proposalId, account, support, reason)++`]
  3483. * {xref-GovernorCountingOverridable-castOverrideVote-uint256-uint8-string-}[`++castOverrideVote(proposalId, support, reason)++`]
  3484. * {xref-GovernorCountingOverridable-castOverrideVoteBySig-uint256-uint8-address-string-bytes-}[`++castOverrideVoteBySig(proposalId, support, voter, reason, signature)++`]
  3485. * {xref-GovernorCountingOverridable-OVERRIDE_BALLOT_TYPEHASH-bytes32}[`++OVERRIDE_BALLOT_TYPEHASH()++`]
  3486. [.contract-subindex-inherited]
  3487. .GovernorVotes
  3488. * {xref-GovernorVotes-token--}[`++token()++`]
  3489. * {xref-GovernorVotes-clock--}[`++clock()++`]
  3490. * {xref-GovernorVotes-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  3491. * {xref-GovernorVotes-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, )++`]
  3492. [.contract-subindex-inherited]
  3493. .Governor
  3494. * {xref-Governor-receive--}[`++receive()++`]
  3495. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  3496. * {xref-Governor-name--}[`++name()++`]
  3497. * {xref-Governor-version--}[`++version()++`]
  3498. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  3499. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  3500. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  3501. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  3502. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  3503. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  3504. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  3505. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  3506. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  3507. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  3508. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  3509. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  3510. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  3511. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  3512. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  3513. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  3514. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  3515. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  3516. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  3517. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  3518. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  3519. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  3520. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  3521. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  3522. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  3523. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  3524. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  3525. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  3526. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  3527. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  3528. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  3529. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  3530. * {xref-Governor-_executor--}[`++_executor()++`]
  3531. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  3532. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  3533. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  3534. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  3535. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  3536. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  3537. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  3538. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  3539. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  3540. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  3541. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  3542. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  3543. [.contract-subindex-inherited]
  3544. .IERC1155Receiver
  3545. [.contract-subindex-inherited]
  3546. .IERC721Receiver
  3547. [.contract-subindex-inherited]
  3548. .IGovernor
  3549. [.contract-subindex-inherited]
  3550. .IERC6372
  3551. [.contract-subindex-inherited]
  3552. .Nonces
  3553. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  3554. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  3555. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  3556. [.contract-subindex-inherited]
  3557. .EIP712
  3558. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  3559. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  3560. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  3561. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  3562. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  3563. [.contract-subindex-inherited]
  3564. .IERC5267
  3565. [.contract-subindex-inherited]
  3566. .ERC165
  3567. [.contract-subindex-inherited]
  3568. .IERC165
  3569. --
  3570. [.contract-index]
  3571. .Events
  3572. --
  3573. * {xref-GovernorCountingOverridable-VoteReduced-address-uint256-uint8-uint256-}[`++VoteReduced(delegate, proposalId, support, weight)++`]
  3574. * {xref-GovernorCountingOverridable-OverrideVoteCast-address-uint256-uint8-uint256-string-}[`++OverrideVoteCast(voter, proposalId, support, weight, reason)++`]
  3575. [.contract-subindex-inherited]
  3576. .GovernorVotes
  3577. [.contract-subindex-inherited]
  3578. .Governor
  3579. [.contract-subindex-inherited]
  3580. .IERC1155Receiver
  3581. [.contract-subindex-inherited]
  3582. .IERC721Receiver
  3583. [.contract-subindex-inherited]
  3584. .IGovernor
  3585. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  3586. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  3587. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  3588. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  3589. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  3590. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  3591. [.contract-subindex-inherited]
  3592. .IERC6372
  3593. [.contract-subindex-inherited]
  3594. .Nonces
  3595. [.contract-subindex-inherited]
  3596. .EIP712
  3597. [.contract-subindex-inherited]
  3598. .IERC5267
  3599. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  3600. [.contract-subindex-inherited]
  3601. .ERC165
  3602. [.contract-subindex-inherited]
  3603. .IERC165
  3604. --
  3605. [.contract-index]
  3606. .Errors
  3607. --
  3608. * {xref-GovernorCountingOverridable-GovernorAlreadyOverriddenVote-address-}[`++GovernorAlreadyOverriddenVote(account)++`]
  3609. [.contract-subindex-inherited]
  3610. .GovernorVotes
  3611. [.contract-subindex-inherited]
  3612. .Governor
  3613. [.contract-subindex-inherited]
  3614. .IERC1155Receiver
  3615. [.contract-subindex-inherited]
  3616. .IERC721Receiver
  3617. [.contract-subindex-inherited]
  3618. .IGovernor
  3619. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  3620. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  3621. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  3622. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  3623. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  3624. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  3625. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  3626. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  3627. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  3628. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  3629. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  3630. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  3631. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  3632. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  3633. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  3634. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  3635. [.contract-subindex-inherited]
  3636. .IERC6372
  3637. [.contract-subindex-inherited]
  3638. .Nonces
  3639. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  3640. [.contract-subindex-inherited]
  3641. .EIP712
  3642. [.contract-subindex-inherited]
  3643. .IERC5267
  3644. [.contract-subindex-inherited]
  3645. .ERC165
  3646. [.contract-subindex-inherited]
  3647. .IERC165
  3648. --
  3649. [.contract-item]
  3650. [[GovernorCountingOverridable-COUNTING_MODE--]]
  3651. ==== `[.contract-item-name]#++COUNTING_MODE++#++() → string++` [.item-kind]#public#
  3652. A description of the possible `support` values for {castVote} and the way these votes are counted, meant to
  3653. be consumed by UIs to show correct vote options and interpret the results. The string is a URL-encoded sequence of
  3654. key-value pairs that each describe one aspect, for example `support=bravo&quorum=for,abstain`.
  3655. There are 2 standard keys: `support` and `quorum`.
  3656. - `support=bravo` refers to the vote options 0 = Against, 1 = For, 2 = Abstain, as in `GovernorBravo`.
  3657. - `quorum=bravo` means that only For votes are counted towards quorum.
  3658. - `quorum=for,abstain` means that both For and Abstain votes are counted towards quorum.
  3659. If a counting module makes use of encoded `params`, it should include this under a `params` key with a unique
  3660. name that describes the behavior. For example:
  3661. - `params=fractional` might refer to a scheme where votes are divided fractionally between for/against/abstain.
  3662. - `params=erc721` might refer to a scheme where specific NFTs are delegated to vote.
  3663. NOTE: The string can be decoded by the standard
  3664. https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams[`URLSearchParams`]
  3665. JavaScript class.
  3666. [.contract-item]
  3667. [[GovernorCountingOverridable-hasVoted-uint256-address-]]
  3668. ==== `[.contract-item-name]#++hasVoted++#++(uint256 proposalId, address account) → bool++` [.item-kind]#public#
  3669. See {IGovernor-hasVoted}.
  3670. NOTE: Calling {castVote} (or similar) casts a vote using the voting power that is delegated to the voter.
  3671. Conversely, calling {castOverrideVote} (or similar) uses the voting power of the account itself, from its asset
  3672. balances. Casting an "override vote" does not count as voting and won't be reflected by this getter. Consider
  3673. using {hasVotedOverride} to check if an account has casted an "override vote" for a given proposal id.
  3674. [.contract-item]
  3675. [[GovernorCountingOverridable-hasVotedOverride-uint256-address-]]
  3676. ==== `[.contract-item-name]#++hasVotedOverride++#++(uint256 proposalId, address account) → bool++` [.item-kind]#public#
  3677. Check if an `account` has overridden their delegate for a proposal.
  3678. [.contract-item]
  3679. [[GovernorCountingOverridable-proposalVotes-uint256-]]
  3680. ==== `[.contract-item-name]#++proposalVotes++#++(uint256 proposalId) → uint256 againstVotes, uint256 forVotes, uint256 abstainVotes++` [.item-kind]#public#
  3681. Accessor to the internal vote counts.
  3682. [.contract-item]
  3683. [[GovernorCountingOverridable-_quorumReached-uint256-]]
  3684. ==== `[.contract-item-name]#++_quorumReached++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  3685. Amount of votes already cast passes the threshold limit.
  3686. [.contract-item]
  3687. [[GovernorCountingOverridable-_voteSucceeded-uint256-]]
  3688. ==== `[.contract-item-name]#++_voteSucceeded++#++(uint256 proposalId) → bool++` [.item-kind]#internal#
  3689. See {Governor-_voteSucceeded}. In this module, the forVotes must be strictly over the againstVotes.
  3690. [.contract-item]
  3691. [[GovernorCountingOverridable-_countVote-uint256-address-uint8-uint256-bytes-]]
  3692. ==== `[.contract-item-name]#++_countVote++#++(uint256 proposalId, address account, uint8 support, uint256 totalWeight, bytes) → uint256++` [.item-kind]#internal#
  3693. See {Governor-_countVote}. In this module, the support follows the `VoteType` enum (from Governor Bravo).
  3694. NOTE: called by {Governor-_castVote} which emits the {IGovernor-VoteCast} (or {IGovernor-VoteCastWithParams})
  3695. event.
  3696. [.contract-item]
  3697. [[GovernorCountingOverridable-_countOverride-uint256-address-uint8-]]
  3698. ==== `[.contract-item-name]#++_countOverride++#++(uint256 proposalId, address account, uint8 support) → uint256++` [.item-kind]#internal#
  3699. Variant of {Governor-_countVote} that deals with vote overrides.
  3700. NOTE: See {hasVoted} for more details about the difference between {castVote} and {castOverrideVote}.
  3701. [.contract-item]
  3702. [[GovernorCountingOverridable-_castOverride-uint256-address-uint8-string-]]
  3703. ==== `[.contract-item-name]#++_castOverride++#++(uint256 proposalId, address account, uint8 support, string reason) → uint256++` [.item-kind]#internal#
  3704. Variant of {Governor-_castVote} that deals with vote overrides. Returns the overridden weight.
  3705. [.contract-item]
  3706. [[GovernorCountingOverridable-castOverrideVote-uint256-uint8-string-]]
  3707. ==== `[.contract-item-name]#++castOverrideVote++#++(uint256 proposalId, uint8 support, string reason) → uint256++` [.item-kind]#public#
  3708. Public function for casting an override vote. Returns the overridden weight.
  3709. [.contract-item]
  3710. [[GovernorCountingOverridable-castOverrideVoteBySig-uint256-uint8-address-string-bytes-]]
  3711. ==== `[.contract-item-name]#++castOverrideVoteBySig++#++(uint256 proposalId, uint8 support, address voter, string reason, bytes signature) → uint256++` [.item-kind]#public#
  3712. Public function for casting an override vote using a voter's signature. Returns the overridden weight.
  3713. [.contract-item]
  3714. [[GovernorCountingOverridable-OVERRIDE_BALLOT_TYPEHASH-bytes32]]
  3715. ==== `[.contract-item-name]#++OVERRIDE_BALLOT_TYPEHASH++#++() → bytes32++` [.item-kind]#public#
  3716. [.contract-item]
  3717. [[GovernorCountingOverridable-VoteReduced-address-uint256-uint8-uint256-]]
  3718. ==== `[.contract-item-name]#++VoteReduced++#++(address indexed delegate, uint256 proposalId, uint8 support, uint256 weight)++` [.item-kind]#event#
  3719. The votes casted by `delegate` were reduced by `weight` after an override vote was casted by the original token holder
  3720. [.contract-item]
  3721. [[GovernorCountingOverridable-OverrideVoteCast-address-uint256-uint8-uint256-string-]]
  3722. ==== `[.contract-item-name]#++OverrideVoteCast++#++(address indexed voter, uint256 proposalId, uint8 support, uint256 weight, string reason)++` [.item-kind]#event#
  3723. A delegated vote on `proposalId` was overridden by `weight`
  3724. [.contract-item]
  3725. [[GovernorCountingOverridable-GovernorAlreadyOverriddenVote-address-]]
  3726. ==== `[.contract-item-name]#++GovernorAlreadyOverriddenVote++#++(address account)++` [.item-kind]#error#
  3727. :constructor: pass:normal[xref:#GovernorVotes-constructor-contract-IVotes-[`++constructor++`]]
  3728. :token: pass:normal[xref:#GovernorVotes-token--[`++token++`]]
  3729. :clock: pass:normal[xref:#GovernorVotes-clock--[`++clock++`]]
  3730. :CLOCK_MODE: pass:normal[xref:#GovernorVotes-CLOCK_MODE--[`++CLOCK_MODE++`]]
  3731. :_getVotes: pass:normal[xref:#GovernorVotes-_getVotes-address-uint256-bytes-[`++_getVotes++`]]
  3732. :constructor-contract-IVotes: pass:normal[xref:#GovernorVotes-constructor-contract-IVotes-[`++constructor++`]]
  3733. :token-: pass:normal[xref:#GovernorVotes-token--[`++token++`]]
  3734. :clock-: pass:normal[xref:#GovernorVotes-clock--[`++clock++`]]
  3735. :CLOCK_MODE-: pass:normal[xref:#GovernorVotes-CLOCK_MODE--[`++CLOCK_MODE++`]]
  3736. :_getVotes-address-uint256-bytes: pass:normal[xref:#GovernorVotes-_getVotes-address-uint256-bytes-[`++_getVotes++`]]
  3737. [.contract]
  3738. [[GovernorVotes]]
  3739. === `++GovernorVotes++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorVotes.sol[{github-icon},role=heading-link]
  3740. [.hljs-theme-light.nopadding]
  3741. ```solidity
  3742. import "@openzeppelin/contracts/governance/extensions/GovernorVotes.sol";
  3743. ```
  3744. Extension of {Governor} for voting weight extraction from an {ERC20Votes} token, or since v4.5 an {ERC721Votes}
  3745. token.
  3746. [.contract-index]
  3747. .Functions
  3748. --
  3749. * {xref-GovernorVotes-constructor-contract-IVotes-}[`++constructor(tokenAddress)++`]
  3750. * {xref-GovernorVotes-token--}[`++token()++`]
  3751. * {xref-GovernorVotes-clock--}[`++clock()++`]
  3752. * {xref-GovernorVotes-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  3753. * {xref-GovernorVotes-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, )++`]
  3754. [.contract-subindex-inherited]
  3755. .Governor
  3756. * {xref-Governor-receive--}[`++receive()++`]
  3757. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  3758. * {xref-Governor-name--}[`++name()++`]
  3759. * {xref-Governor-version--}[`++version()++`]
  3760. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  3761. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  3762. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  3763. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  3764. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  3765. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  3766. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  3767. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  3768. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  3769. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  3770. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  3771. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  3772. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  3773. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  3774. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  3775. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  3776. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  3777. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  3778. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  3779. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  3780. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  3781. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  3782. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  3783. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  3784. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  3785. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  3786. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  3787. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  3788. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  3789. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  3790. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  3791. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  3792. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  3793. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  3794. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  3795. * {xref-Governor-_executor--}[`++_executor()++`]
  3796. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  3797. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  3798. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  3799. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  3800. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  3801. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  3802. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  3803. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  3804. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  3805. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  3806. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  3807. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  3808. [.contract-subindex-inherited]
  3809. .IERC1155Receiver
  3810. [.contract-subindex-inherited]
  3811. .IERC721Receiver
  3812. [.contract-subindex-inherited]
  3813. .IGovernor
  3814. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  3815. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  3816. [.contract-subindex-inherited]
  3817. .IERC6372
  3818. [.contract-subindex-inherited]
  3819. .Nonces
  3820. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  3821. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  3822. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  3823. [.contract-subindex-inherited]
  3824. .EIP712
  3825. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  3826. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  3827. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  3828. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  3829. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  3830. [.contract-subindex-inherited]
  3831. .IERC5267
  3832. [.contract-subindex-inherited]
  3833. .ERC165
  3834. [.contract-subindex-inherited]
  3835. .IERC165
  3836. --
  3837. [.contract-index]
  3838. .Events
  3839. --
  3840. [.contract-subindex-inherited]
  3841. .Governor
  3842. [.contract-subindex-inherited]
  3843. .IERC1155Receiver
  3844. [.contract-subindex-inherited]
  3845. .IERC721Receiver
  3846. [.contract-subindex-inherited]
  3847. .IGovernor
  3848. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  3849. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  3850. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  3851. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  3852. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  3853. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  3854. [.contract-subindex-inherited]
  3855. .IERC6372
  3856. [.contract-subindex-inherited]
  3857. .Nonces
  3858. [.contract-subindex-inherited]
  3859. .EIP712
  3860. [.contract-subindex-inherited]
  3861. .IERC5267
  3862. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  3863. [.contract-subindex-inherited]
  3864. .ERC165
  3865. [.contract-subindex-inherited]
  3866. .IERC165
  3867. --
  3868. [.contract-index]
  3869. .Errors
  3870. --
  3871. [.contract-subindex-inherited]
  3872. .Governor
  3873. [.contract-subindex-inherited]
  3874. .IERC1155Receiver
  3875. [.contract-subindex-inherited]
  3876. .IERC721Receiver
  3877. [.contract-subindex-inherited]
  3878. .IGovernor
  3879. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  3880. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  3881. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  3882. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  3883. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  3884. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  3885. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  3886. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  3887. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  3888. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  3889. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  3890. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  3891. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  3892. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  3893. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  3894. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  3895. [.contract-subindex-inherited]
  3896. .IERC6372
  3897. [.contract-subindex-inherited]
  3898. .Nonces
  3899. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  3900. [.contract-subindex-inherited]
  3901. .EIP712
  3902. [.contract-subindex-inherited]
  3903. .IERC5267
  3904. [.contract-subindex-inherited]
  3905. .ERC165
  3906. [.contract-subindex-inherited]
  3907. .IERC165
  3908. --
  3909. [.contract-item]
  3910. [[GovernorVotes-constructor-contract-IVotes-]]
  3911. ==== `[.contract-item-name]#++constructor++#++(contract IVotes tokenAddress)++` [.item-kind]#internal#
  3912. [.contract-item]
  3913. [[GovernorVotes-token--]]
  3914. ==== `[.contract-item-name]#++token++#++() → contract IERC5805++` [.item-kind]#public#
  3915. The token that voting power is sourced from.
  3916. [.contract-item]
  3917. [[GovernorVotes-clock--]]
  3918. ==== `[.contract-item-name]#++clock++#++() → uint48++` [.item-kind]#public#
  3919. Clock (as specified in ERC-6372) is set to match the token's clock. Fallback to block numbers if the token
  3920. does not implement ERC-6372.
  3921. [.contract-item]
  3922. [[GovernorVotes-CLOCK_MODE--]]
  3923. ==== `[.contract-item-name]#++CLOCK_MODE++#++() → string++` [.item-kind]#public#
  3924. Machine-readable description of the clock as specified in ERC-6372.
  3925. [.contract-item]
  3926. [[GovernorVotes-_getVotes-address-uint256-bytes-]]
  3927. ==== `[.contract-item-name]#++_getVotes++#++(address account, uint256 timepoint, bytes) → uint256++` [.item-kind]#internal#
  3928. :QuorumNumeratorUpdated: pass:normal[xref:#GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-[`++QuorumNumeratorUpdated++`]]
  3929. :GovernorInvalidQuorumFraction: pass:normal[xref:#GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-[`++GovernorInvalidQuorumFraction++`]]
  3930. :constructor: pass:normal[xref:#GovernorVotesQuorumFraction-constructor-uint256-[`++constructor++`]]
  3931. :quorumNumerator: pass:normal[xref:#GovernorVotesQuorumFraction-quorumNumerator--[`++quorumNumerator++`]]
  3932. :quorumNumerator: pass:normal[xref:#GovernorVotesQuorumFraction-quorumNumerator-uint256-[`++quorumNumerator++`]]
  3933. :quorumDenominator: pass:normal[xref:#GovernorVotesQuorumFraction-quorumDenominator--[`++quorumDenominator++`]]
  3934. :quorum: pass:normal[xref:#GovernorVotesQuorumFraction-quorum-uint256-[`++quorum++`]]
  3935. :updateQuorumNumerator: pass:normal[xref:#GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-[`++updateQuorumNumerator++`]]
  3936. :_updateQuorumNumerator: pass:normal[xref:#GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-[`++_updateQuorumNumerator++`]]
  3937. :_optimisticUpperLookupRecent: pass:normal[xref:#GovernorVotesQuorumFraction-_optimisticUpperLookupRecent-struct-Checkpoints-Trace208-uint256-[`++_optimisticUpperLookupRecent++`]]
  3938. :constructor-uint256: pass:normal[xref:#GovernorVotesQuorumFraction-constructor-uint256-[`++constructor++`]]
  3939. :quorumNumerator-: pass:normal[xref:#GovernorVotesQuorumFraction-quorumNumerator--[`++quorumNumerator++`]]
  3940. :quorumNumerator-uint256: pass:normal[xref:#GovernorVotesQuorumFraction-quorumNumerator-uint256-[`++quorumNumerator++`]]
  3941. :quorumDenominator-: pass:normal[xref:#GovernorVotesQuorumFraction-quorumDenominator--[`++quorumDenominator++`]]
  3942. :quorum-uint256: pass:normal[xref:#GovernorVotesQuorumFraction-quorum-uint256-[`++quorum++`]]
  3943. :updateQuorumNumerator-uint256: pass:normal[xref:#GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-[`++updateQuorumNumerator++`]]
  3944. :_updateQuorumNumerator-uint256: pass:normal[xref:#GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-[`++_updateQuorumNumerator++`]]
  3945. :_optimisticUpperLookupRecent-struct-Checkpoints-Trace208-uint256: pass:normal[xref:#GovernorVotesQuorumFraction-_optimisticUpperLookupRecent-struct-Checkpoints-Trace208-uint256-[`++_optimisticUpperLookupRecent++`]]
  3946. [.contract]
  3947. [[GovernorVotesQuorumFraction]]
  3948. === `++GovernorVotesQuorumFraction++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorVotesQuorumFraction.sol[{github-icon},role=heading-link]
  3949. [.hljs-theme-light.nopadding]
  3950. ```solidity
  3951. import "@openzeppelin/contracts/governance/extensions/GovernorVotesQuorumFraction.sol";
  3952. ```
  3953. Extension of {Governor} for voting weight extraction from an {ERC20Votes} token and a quorum expressed as a
  3954. fraction of the total supply.
  3955. [.contract-index]
  3956. .Functions
  3957. --
  3958. * {xref-GovernorVotesQuorumFraction-constructor-uint256-}[`++constructor(quorumNumeratorValue)++`]
  3959. * {xref-GovernorVotesQuorumFraction-quorumNumerator--}[`++quorumNumerator()++`]
  3960. * {xref-GovernorVotesQuorumFraction-quorumNumerator-uint256-}[`++quorumNumerator(timepoint)++`]
  3961. * {xref-GovernorVotesQuorumFraction-quorumDenominator--}[`++quorumDenominator()++`]
  3962. * {xref-GovernorVotesQuorumFraction-quorum-uint256-}[`++quorum(timepoint)++`]
  3963. * {xref-GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-}[`++updateQuorumNumerator(newQuorumNumerator)++`]
  3964. * {xref-GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-}[`++_updateQuorumNumerator(newQuorumNumerator)++`]
  3965. * {xref-GovernorVotesQuorumFraction-_optimisticUpperLookupRecent-struct-Checkpoints-Trace208-uint256-}[`++_optimisticUpperLookupRecent(ckpts, timepoint)++`]
  3966. [.contract-subindex-inherited]
  3967. .GovernorVotes
  3968. * {xref-GovernorVotes-token--}[`++token()++`]
  3969. * {xref-GovernorVotes-clock--}[`++clock()++`]
  3970. * {xref-GovernorVotes-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  3971. * {xref-GovernorVotes-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, )++`]
  3972. [.contract-subindex-inherited]
  3973. .Governor
  3974. * {xref-Governor-receive--}[`++receive()++`]
  3975. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  3976. * {xref-Governor-name--}[`++name()++`]
  3977. * {xref-Governor-version--}[`++version()++`]
  3978. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  3979. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  3980. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  3981. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  3982. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  3983. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  3984. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  3985. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  3986. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  3987. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  3988. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  3989. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  3990. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  3991. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  3992. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  3993. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  3994. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  3995. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  3996. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  3997. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  3998. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  3999. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  4000. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  4001. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  4002. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  4003. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  4004. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  4005. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  4006. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  4007. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  4008. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  4009. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  4010. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  4011. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  4012. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  4013. * {xref-Governor-_executor--}[`++_executor()++`]
  4014. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  4015. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  4016. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  4017. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  4018. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  4019. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  4020. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  4021. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  4022. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  4023. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  4024. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  4025. [.contract-subindex-inherited]
  4026. .IERC1155Receiver
  4027. [.contract-subindex-inherited]
  4028. .IERC721Receiver
  4029. [.contract-subindex-inherited]
  4030. .IGovernor
  4031. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  4032. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  4033. [.contract-subindex-inherited]
  4034. .IERC6372
  4035. [.contract-subindex-inherited]
  4036. .Nonces
  4037. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  4038. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  4039. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  4040. [.contract-subindex-inherited]
  4041. .EIP712
  4042. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  4043. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  4044. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  4045. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  4046. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  4047. [.contract-subindex-inherited]
  4048. .IERC5267
  4049. [.contract-subindex-inherited]
  4050. .ERC165
  4051. [.contract-subindex-inherited]
  4052. .IERC165
  4053. --
  4054. [.contract-index]
  4055. .Events
  4056. --
  4057. * {xref-GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-}[`++QuorumNumeratorUpdated(oldQuorumNumerator, newQuorumNumerator)++`]
  4058. [.contract-subindex-inherited]
  4059. .GovernorVotes
  4060. [.contract-subindex-inherited]
  4061. .Governor
  4062. [.contract-subindex-inherited]
  4063. .IERC1155Receiver
  4064. [.contract-subindex-inherited]
  4065. .IERC721Receiver
  4066. [.contract-subindex-inherited]
  4067. .IGovernor
  4068. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  4069. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  4070. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  4071. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  4072. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  4073. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  4074. [.contract-subindex-inherited]
  4075. .IERC6372
  4076. [.contract-subindex-inherited]
  4077. .Nonces
  4078. [.contract-subindex-inherited]
  4079. .EIP712
  4080. [.contract-subindex-inherited]
  4081. .IERC5267
  4082. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  4083. [.contract-subindex-inherited]
  4084. .ERC165
  4085. [.contract-subindex-inherited]
  4086. .IERC165
  4087. --
  4088. [.contract-index]
  4089. .Errors
  4090. --
  4091. * {xref-GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-}[`++GovernorInvalidQuorumFraction(quorumNumerator, quorumDenominator)++`]
  4092. [.contract-subindex-inherited]
  4093. .GovernorVotes
  4094. [.contract-subindex-inherited]
  4095. .Governor
  4096. [.contract-subindex-inherited]
  4097. .IERC1155Receiver
  4098. [.contract-subindex-inherited]
  4099. .IERC721Receiver
  4100. [.contract-subindex-inherited]
  4101. .IGovernor
  4102. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  4103. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  4104. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  4105. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  4106. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  4107. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  4108. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  4109. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  4110. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  4111. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  4112. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  4113. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  4114. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  4115. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  4116. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  4117. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  4118. [.contract-subindex-inherited]
  4119. .IERC6372
  4120. [.contract-subindex-inherited]
  4121. .Nonces
  4122. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  4123. [.contract-subindex-inherited]
  4124. .EIP712
  4125. [.contract-subindex-inherited]
  4126. .IERC5267
  4127. [.contract-subindex-inherited]
  4128. .ERC165
  4129. [.contract-subindex-inherited]
  4130. .IERC165
  4131. --
  4132. [.contract-item]
  4133. [[GovernorVotesQuorumFraction-constructor-uint256-]]
  4134. ==== `[.contract-item-name]#++constructor++#++(uint256 quorumNumeratorValue)++` [.item-kind]#internal#
  4135. Initialize quorum as a fraction of the token's total supply.
  4136. The fraction is specified as `numerator / denominator`. By default the denominator is 100, so quorum is
  4137. specified as a percent: a numerator of 10 corresponds to quorum being 10% of total supply. The denominator can be
  4138. customized by overriding {quorumDenominator}.
  4139. [.contract-item]
  4140. [[GovernorVotesQuorumFraction-quorumNumerator--]]
  4141. ==== `[.contract-item-name]#++quorumNumerator++#++() → uint256++` [.item-kind]#public#
  4142. Returns the current quorum numerator. See {quorumDenominator}.
  4143. [.contract-item]
  4144. [[GovernorVotesQuorumFraction-quorumNumerator-uint256-]]
  4145. ==== `[.contract-item-name]#++quorumNumerator++#++(uint256 timepoint) → uint256++` [.item-kind]#public#
  4146. Returns the quorum numerator at a specific timepoint. See {quorumDenominator}.
  4147. [.contract-item]
  4148. [[GovernorVotesQuorumFraction-quorumDenominator--]]
  4149. ==== `[.contract-item-name]#++quorumDenominator++#++() → uint256++` [.item-kind]#public#
  4150. Returns the quorum denominator. Defaults to 100, but may be overridden.
  4151. [.contract-item]
  4152. [[GovernorVotesQuorumFraction-quorum-uint256-]]
  4153. ==== `[.contract-item-name]#++quorum++#++(uint256 timepoint) → uint256++` [.item-kind]#public#
  4154. Returns the quorum for a timepoint, in terms of number of votes: `supply * numerator / denominator`.
  4155. [.contract-item]
  4156. [[GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-]]
  4157. ==== `[.contract-item-name]#++updateQuorumNumerator++#++(uint256 newQuorumNumerator)++` [.item-kind]#external#
  4158. Changes the quorum numerator.
  4159. Emits a {QuorumNumeratorUpdated} event.
  4160. Requirements:
  4161. - Must be called through a governance proposal.
  4162. - New numerator must be smaller or equal to the denominator.
  4163. [.contract-item]
  4164. [[GovernorVotesQuorumFraction-_updateQuorumNumerator-uint256-]]
  4165. ==== `[.contract-item-name]#++_updateQuorumNumerator++#++(uint256 newQuorumNumerator)++` [.item-kind]#internal#
  4166. Changes the quorum numerator.
  4167. Emits a {QuorumNumeratorUpdated} event.
  4168. Requirements:
  4169. - New numerator must be smaller or equal to the denominator.
  4170. [.contract-item]
  4171. [[GovernorVotesQuorumFraction-_optimisticUpperLookupRecent-struct-Checkpoints-Trace208-uint256-]]
  4172. ==== `[.contract-item-name]#++_optimisticUpperLookupRecent++#++(struct Checkpoints.Trace208 ckpts, uint256 timepoint) → uint256++` [.item-kind]#internal#
  4173. Returns the numerator at a specific timepoint.
  4174. [.contract-item]
  4175. [[GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-]]
  4176. ==== `[.contract-item-name]#++QuorumNumeratorUpdated++#++(uint256 oldQuorumNumerator, uint256 newQuorumNumerator)++` [.item-kind]#event#
  4177. [.contract-item]
  4178. [[GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-]]
  4179. ==== `[.contract-item-name]#++GovernorInvalidQuorumFraction++#++(uint256 quorumNumerator, uint256 quorumDenominator)++` [.item-kind]#error#
  4180. The quorum set is not a valid fraction.
  4181. :SuperQuorumNumeratorUpdated: pass:normal[xref:#GovernorVotesSuperQuorumFraction-SuperQuorumNumeratorUpdated-uint256-uint256-[`++SuperQuorumNumeratorUpdated++`]]
  4182. :GovernorInvalidSuperQuorumFraction: pass:normal[xref:#GovernorVotesSuperQuorumFraction-GovernorInvalidSuperQuorumFraction-uint256-uint256-[`++GovernorInvalidSuperQuorumFraction++`]]
  4183. :GovernorInvalidSuperQuorumTooSmall: pass:normal[xref:#GovernorVotesSuperQuorumFraction-GovernorInvalidSuperQuorumTooSmall-uint256-uint256-[`++GovernorInvalidSuperQuorumTooSmall++`]]
  4184. :GovernorInvalidQuorumTooLarge: pass:normal[xref:#GovernorVotesSuperQuorumFraction-GovernorInvalidQuorumTooLarge-uint256-uint256-[`++GovernorInvalidQuorumTooLarge++`]]
  4185. :constructor: pass:normal[xref:#GovernorVotesSuperQuorumFraction-constructor-uint256-[`++constructor++`]]
  4186. :superQuorumNumerator: pass:normal[xref:#GovernorVotesSuperQuorumFraction-superQuorumNumerator--[`++superQuorumNumerator++`]]
  4187. :superQuorumNumerator: pass:normal[xref:#GovernorVotesSuperQuorumFraction-superQuorumNumerator-uint256-[`++superQuorumNumerator++`]]
  4188. :superQuorum: pass:normal[xref:#GovernorVotesSuperQuorumFraction-superQuorum-uint256-[`++superQuorum++`]]
  4189. :updateSuperQuorumNumerator: pass:normal[xref:#GovernorVotesSuperQuorumFraction-updateSuperQuorumNumerator-uint256-[`++updateSuperQuorumNumerator++`]]
  4190. :_updateSuperQuorumNumerator: pass:normal[xref:#GovernorVotesSuperQuorumFraction-_updateSuperQuorumNumerator-uint256-[`++_updateSuperQuorumNumerator++`]]
  4191. :_updateQuorumNumerator: pass:normal[xref:#GovernorVotesSuperQuorumFraction-_updateQuorumNumerator-uint256-[`++_updateQuorumNumerator++`]]
  4192. :state: pass:normal[xref:#GovernorVotesSuperQuorumFraction-state-uint256-[`++state++`]]
  4193. :constructor-uint256: pass:normal[xref:#GovernorVotesSuperQuorumFraction-constructor-uint256-[`++constructor++`]]
  4194. :superQuorumNumerator-: pass:normal[xref:#GovernorVotesSuperQuorumFraction-superQuorumNumerator--[`++superQuorumNumerator++`]]
  4195. :superQuorumNumerator-uint256: pass:normal[xref:#GovernorVotesSuperQuorumFraction-superQuorumNumerator-uint256-[`++superQuorumNumerator++`]]
  4196. :superQuorum-uint256: pass:normal[xref:#GovernorVotesSuperQuorumFraction-superQuorum-uint256-[`++superQuorum++`]]
  4197. :updateSuperQuorumNumerator-uint256: pass:normal[xref:#GovernorVotesSuperQuorumFraction-updateSuperQuorumNumerator-uint256-[`++updateSuperQuorumNumerator++`]]
  4198. :_updateSuperQuorumNumerator-uint256: pass:normal[xref:#GovernorVotesSuperQuorumFraction-_updateSuperQuorumNumerator-uint256-[`++_updateSuperQuorumNumerator++`]]
  4199. :_updateQuorumNumerator-uint256: pass:normal[xref:#GovernorVotesSuperQuorumFraction-_updateQuorumNumerator-uint256-[`++_updateQuorumNumerator++`]]
  4200. :state-uint256: pass:normal[xref:#GovernorVotesSuperQuorumFraction-state-uint256-[`++state++`]]
  4201. [.contract]
  4202. [[GovernorVotesSuperQuorumFraction]]
  4203. === `++GovernorVotesSuperQuorumFraction++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorVotesSuperQuorumFraction.sol[{github-icon},role=heading-link]
  4204. [.hljs-theme-light.nopadding]
  4205. ```solidity
  4206. import "@openzeppelin/contracts/governance/extensions/GovernorVotesSuperQuorumFraction.sol";
  4207. ```
  4208. Extension of {GovernorVotesQuorumFraction} with a super quorum expressed as a
  4209. fraction of the total supply. Proposals that meet the super quorum (and have a majority of for votes) advance to
  4210. the `Succeeded` state before the proposal deadline.
  4211. [.contract-index]
  4212. .Functions
  4213. --
  4214. * {xref-GovernorVotesSuperQuorumFraction-constructor-uint256-}[`++constructor(superQuorumNumeratorValue)++`]
  4215. * {xref-GovernorVotesSuperQuorumFraction-superQuorumNumerator--}[`++superQuorumNumerator()++`]
  4216. * {xref-GovernorVotesSuperQuorumFraction-superQuorumNumerator-uint256-}[`++superQuorumNumerator(timepoint)++`]
  4217. * {xref-GovernorVotesSuperQuorumFraction-superQuorum-uint256-}[`++superQuorum(timepoint)++`]
  4218. * {xref-GovernorVotesSuperQuorumFraction-updateSuperQuorumNumerator-uint256-}[`++updateSuperQuorumNumerator(newSuperQuorumNumerator)++`]
  4219. * {xref-GovernorVotesSuperQuorumFraction-_updateSuperQuorumNumerator-uint256-}[`++_updateSuperQuorumNumerator(newSuperQuorumNumerator)++`]
  4220. * {xref-GovernorVotesSuperQuorumFraction-_updateQuorumNumerator-uint256-}[`++_updateQuorumNumerator(newQuorumNumerator)++`]
  4221. * {xref-GovernorVotesSuperQuorumFraction-state-uint256-}[`++state(proposalId)++`]
  4222. [.contract-subindex-inherited]
  4223. .GovernorSuperQuorum
  4224. * {xref-GovernorSuperQuorum-proposalVotes-uint256-}[`++proposalVotes(proposalId)++`]
  4225. [.contract-subindex-inherited]
  4226. .GovernorVotesQuorumFraction
  4227. * {xref-GovernorVotesQuorumFraction-quorumNumerator--}[`++quorumNumerator()++`]
  4228. * {xref-GovernorVotesQuorumFraction-quorumNumerator-uint256-}[`++quorumNumerator(timepoint)++`]
  4229. * {xref-GovernorVotesQuorumFraction-quorumDenominator--}[`++quorumDenominator()++`]
  4230. * {xref-GovernorVotesQuorumFraction-quorum-uint256-}[`++quorum(timepoint)++`]
  4231. * {xref-GovernorVotesQuorumFraction-updateQuorumNumerator-uint256-}[`++updateQuorumNumerator(newQuorumNumerator)++`]
  4232. * {xref-GovernorVotesQuorumFraction-_optimisticUpperLookupRecent-struct-Checkpoints-Trace208-uint256-}[`++_optimisticUpperLookupRecent(ckpts, timepoint)++`]
  4233. [.contract-subindex-inherited]
  4234. .GovernorVotes
  4235. * {xref-GovernorVotes-token--}[`++token()++`]
  4236. * {xref-GovernorVotes-clock--}[`++clock()++`]
  4237. * {xref-GovernorVotes-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  4238. * {xref-GovernorVotes-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, )++`]
  4239. [.contract-subindex-inherited]
  4240. .Governor
  4241. * {xref-Governor-receive--}[`++receive()++`]
  4242. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  4243. * {xref-Governor-name--}[`++name()++`]
  4244. * {xref-Governor-version--}[`++version()++`]
  4245. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  4246. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  4247. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  4248. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  4249. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  4250. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  4251. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  4252. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  4253. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  4254. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  4255. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  4256. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  4257. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  4258. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  4259. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  4260. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  4261. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  4262. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  4263. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  4264. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  4265. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  4266. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  4267. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  4268. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  4269. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  4270. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  4271. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  4272. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  4273. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  4274. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  4275. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  4276. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  4277. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  4278. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  4279. * {xref-Governor-_executor--}[`++_executor()++`]
  4280. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  4281. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  4282. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  4283. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  4284. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  4285. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  4286. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  4287. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  4288. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  4289. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  4290. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  4291. [.contract-subindex-inherited]
  4292. .IERC1155Receiver
  4293. [.contract-subindex-inherited]
  4294. .IERC721Receiver
  4295. [.contract-subindex-inherited]
  4296. .IGovernor
  4297. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  4298. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  4299. [.contract-subindex-inherited]
  4300. .IERC6372
  4301. [.contract-subindex-inherited]
  4302. .Nonces
  4303. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  4304. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  4305. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  4306. [.contract-subindex-inherited]
  4307. .EIP712
  4308. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  4309. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  4310. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  4311. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  4312. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  4313. [.contract-subindex-inherited]
  4314. .IERC5267
  4315. [.contract-subindex-inherited]
  4316. .ERC165
  4317. [.contract-subindex-inherited]
  4318. .IERC165
  4319. --
  4320. [.contract-index]
  4321. .Events
  4322. --
  4323. * {xref-GovernorVotesSuperQuorumFraction-SuperQuorumNumeratorUpdated-uint256-uint256-}[`++SuperQuorumNumeratorUpdated(oldSuperQuorumNumerator, newSuperQuorumNumerator)++`]
  4324. [.contract-subindex-inherited]
  4325. .GovernorSuperQuorum
  4326. [.contract-subindex-inherited]
  4327. .GovernorVotesQuorumFraction
  4328. * {xref-GovernorVotesQuorumFraction-QuorumNumeratorUpdated-uint256-uint256-}[`++QuorumNumeratorUpdated(oldQuorumNumerator, newQuorumNumerator)++`]
  4329. [.contract-subindex-inherited]
  4330. .GovernorVotes
  4331. [.contract-subindex-inherited]
  4332. .Governor
  4333. [.contract-subindex-inherited]
  4334. .IERC1155Receiver
  4335. [.contract-subindex-inherited]
  4336. .IERC721Receiver
  4337. [.contract-subindex-inherited]
  4338. .IGovernor
  4339. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  4340. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  4341. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  4342. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  4343. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  4344. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  4345. [.contract-subindex-inherited]
  4346. .IERC6372
  4347. [.contract-subindex-inherited]
  4348. .Nonces
  4349. [.contract-subindex-inherited]
  4350. .EIP712
  4351. [.contract-subindex-inherited]
  4352. .IERC5267
  4353. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  4354. [.contract-subindex-inherited]
  4355. .ERC165
  4356. [.contract-subindex-inherited]
  4357. .IERC165
  4358. --
  4359. [.contract-index]
  4360. .Errors
  4361. --
  4362. * {xref-GovernorVotesSuperQuorumFraction-GovernorInvalidSuperQuorumFraction-uint256-uint256-}[`++GovernorInvalidSuperQuorumFraction(superQuorumNumerator, denominator)++`]
  4363. * {xref-GovernorVotesSuperQuorumFraction-GovernorInvalidSuperQuorumTooSmall-uint256-uint256-}[`++GovernorInvalidSuperQuorumTooSmall(superQuorumNumerator, quorumNumerator)++`]
  4364. * {xref-GovernorVotesSuperQuorumFraction-GovernorInvalidQuorumTooLarge-uint256-uint256-}[`++GovernorInvalidQuorumTooLarge(quorumNumerator, superQuorumNumerator)++`]
  4365. [.contract-subindex-inherited]
  4366. .GovernorSuperQuorum
  4367. [.contract-subindex-inherited]
  4368. .GovernorVotesQuorumFraction
  4369. * {xref-GovernorVotesQuorumFraction-GovernorInvalidQuorumFraction-uint256-uint256-}[`++GovernorInvalidQuorumFraction(quorumNumerator, quorumDenominator)++`]
  4370. [.contract-subindex-inherited]
  4371. .GovernorVotes
  4372. [.contract-subindex-inherited]
  4373. .Governor
  4374. [.contract-subindex-inherited]
  4375. .IERC1155Receiver
  4376. [.contract-subindex-inherited]
  4377. .IERC721Receiver
  4378. [.contract-subindex-inherited]
  4379. .IGovernor
  4380. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  4381. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  4382. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  4383. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  4384. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  4385. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  4386. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  4387. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  4388. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  4389. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  4390. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  4391. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  4392. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  4393. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  4394. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  4395. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  4396. [.contract-subindex-inherited]
  4397. .IERC6372
  4398. [.contract-subindex-inherited]
  4399. .Nonces
  4400. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  4401. [.contract-subindex-inherited]
  4402. .EIP712
  4403. [.contract-subindex-inherited]
  4404. .IERC5267
  4405. [.contract-subindex-inherited]
  4406. .ERC165
  4407. [.contract-subindex-inherited]
  4408. .IERC165
  4409. --
  4410. [.contract-item]
  4411. [[GovernorVotesSuperQuorumFraction-constructor-uint256-]]
  4412. ==== `[.contract-item-name]#++constructor++#++(uint256 superQuorumNumeratorValue)++` [.item-kind]#internal#
  4413. Initialize super quorum as a fraction of the token's total supply.
  4414. The super quorum is specified as a fraction of the token's total supply and has to
  4415. be greater than the quorum.
  4416. [.contract-item]
  4417. [[GovernorVotesSuperQuorumFraction-superQuorumNumerator--]]
  4418. ==== `[.contract-item-name]#++superQuorumNumerator++#++() → uint256++` [.item-kind]#public#
  4419. Returns the current super quorum numerator.
  4420. [.contract-item]
  4421. [[GovernorVotesSuperQuorumFraction-superQuorumNumerator-uint256-]]
  4422. ==== `[.contract-item-name]#++superQuorumNumerator++#++(uint256 timepoint) → uint256++` [.item-kind]#public#
  4423. Returns the super quorum numerator at a specific `timepoint`.
  4424. [.contract-item]
  4425. [[GovernorVotesSuperQuorumFraction-superQuorum-uint256-]]
  4426. ==== `[.contract-item-name]#++superQuorum++#++(uint256 timepoint) → uint256++` [.item-kind]#public#
  4427. Returns the super quorum for a `timepoint`, in terms of number of votes: `supply * numerator / denominator`.
  4428. See {GovernorSuperQuorum-superQuorum} for more details.
  4429. [.contract-item]
  4430. [[GovernorVotesSuperQuorumFraction-updateSuperQuorumNumerator-uint256-]]
  4431. ==== `[.contract-item-name]#++updateSuperQuorumNumerator++#++(uint256 newSuperQuorumNumerator)++` [.item-kind]#public#
  4432. Changes the super quorum numerator.
  4433. Emits a {SuperQuorumNumeratorUpdated} event.
  4434. Requirements:
  4435. - Must be called through a governance proposal.
  4436. - New super quorum numerator must be smaller or equal to the denominator.
  4437. - New super quorum numerator must be greater than or equal to the quorum numerator.
  4438. [.contract-item]
  4439. [[GovernorVotesSuperQuorumFraction-_updateSuperQuorumNumerator-uint256-]]
  4440. ==== `[.contract-item-name]#++_updateSuperQuorumNumerator++#++(uint256 newSuperQuorumNumerator)++` [.item-kind]#internal#
  4441. Changes the super quorum numerator.
  4442. Emits a {SuperQuorumNumeratorUpdated} event.
  4443. Requirements:
  4444. - New super quorum numerator must be smaller or equal to the denominator.
  4445. - New super quorum numerator must be greater than or equal to the quorum numerator.
  4446. [.contract-item]
  4447. [[GovernorVotesSuperQuorumFraction-_updateQuorumNumerator-uint256-]]
  4448. ==== `[.contract-item-name]#++_updateQuorumNumerator++#++(uint256 newQuorumNumerator)++` [.item-kind]#internal#
  4449. Overrides {GovernorVotesQuorumFraction-_updateQuorumNumerator} to ensure the super
  4450. quorum numerator is greater than or equal to the quorum numerator.
  4451. [.contract-item]
  4452. [[GovernorVotesSuperQuorumFraction-state-uint256-]]
  4453. ==== `[.contract-item-name]#++state++#++(uint256 proposalId) → enum IGovernor.ProposalState++` [.item-kind]#public#
  4454. Overridden version of the {Governor-state} function that checks if the proposal has reached the super
  4455. quorum.
  4456. NOTE: If the proposal reaches super quorum but {_voteSucceeded} returns false, eg, assuming the super quorum
  4457. has been set low enough that both FOR and AGAINST votes have exceeded it and AGAINST votes exceed FOR votes,
  4458. the proposal continues to be active until {_voteSucceeded} returns true or the proposal deadline is reached.
  4459. This means that with a low super quorum it is also possible that a vote can succeed prematurely before enough
  4460. AGAINST voters have a chance to vote. Hence, it is recommended to set a high enough super quorum to avoid these
  4461. types of scenarios.
  4462. [.contract-item]
  4463. [[GovernorVotesSuperQuorumFraction-SuperQuorumNumeratorUpdated-uint256-uint256-]]
  4464. ==== `[.contract-item-name]#++SuperQuorumNumeratorUpdated++#++(uint256 oldSuperQuorumNumerator, uint256 newSuperQuorumNumerator)++` [.item-kind]#event#
  4465. [.contract-item]
  4466. [[GovernorVotesSuperQuorumFraction-GovernorInvalidSuperQuorumFraction-uint256-uint256-]]
  4467. ==== `[.contract-item-name]#++GovernorInvalidSuperQuorumFraction++#++(uint256 superQuorumNumerator, uint256 denominator)++` [.item-kind]#error#
  4468. The super quorum set is not valid as it exceeds the quorum denominator.
  4469. [.contract-item]
  4470. [[GovernorVotesSuperQuorumFraction-GovernorInvalidSuperQuorumTooSmall-uint256-uint256-]]
  4471. ==== `[.contract-item-name]#++GovernorInvalidSuperQuorumTooSmall++#++(uint256 superQuorumNumerator, uint256 quorumNumerator)++` [.item-kind]#error#
  4472. The super quorum set is not valid as it is smaller or equal to the quorum.
  4473. [.contract-item]
  4474. [[GovernorVotesSuperQuorumFraction-GovernorInvalidQuorumTooLarge-uint256-uint256-]]
  4475. ==== `[.contract-item-name]#++GovernorInvalidQuorumTooLarge++#++(uint256 quorumNumerator, uint256 superQuorumNumerator)++` [.item-kind]#error#
  4476. The quorum set is not valid as it exceeds the super quorum.
  4477. === Extensions
  4478. :ExecutionPlan: pass:normal[xref:#GovernorTimelockAccess-ExecutionPlan[`++ExecutionPlan++`]]
  4479. :GovernorUnmetDelay: pass:normal[xref:#GovernorTimelockAccess-GovernorUnmetDelay-uint256-uint256-[`++GovernorUnmetDelay++`]]
  4480. :GovernorMismatchedNonce: pass:normal[xref:#GovernorTimelockAccess-GovernorMismatchedNonce-uint256-uint256-uint256-[`++GovernorMismatchedNonce++`]]
  4481. :GovernorLockedIgnore: pass:normal[xref:#GovernorTimelockAccess-GovernorLockedIgnore--[`++GovernorLockedIgnore++`]]
  4482. :BaseDelaySet: pass:normal[xref:#GovernorTimelockAccess-BaseDelaySet-uint32-uint32-[`++BaseDelaySet++`]]
  4483. :AccessManagerIgnoredSet: pass:normal[xref:#GovernorTimelockAccess-AccessManagerIgnoredSet-address-bytes4-bool-[`++AccessManagerIgnoredSet++`]]
  4484. :constructor: pass:normal[xref:#GovernorTimelockAccess-constructor-address-uint32-[`++constructor++`]]
  4485. :accessManager: pass:normal[xref:#GovernorTimelockAccess-accessManager--[`++accessManager++`]]
  4486. :baseDelaySeconds: pass:normal[xref:#GovernorTimelockAccess-baseDelaySeconds--[`++baseDelaySeconds++`]]
  4487. :setBaseDelaySeconds: pass:normal[xref:#GovernorTimelockAccess-setBaseDelaySeconds-uint32-[`++setBaseDelaySeconds++`]]
  4488. :_setBaseDelaySeconds: pass:normal[xref:#GovernorTimelockAccess-_setBaseDelaySeconds-uint32-[`++_setBaseDelaySeconds++`]]
  4489. :isAccessManagerIgnored: pass:normal[xref:#GovernorTimelockAccess-isAccessManagerIgnored-address-bytes4-[`++isAccessManagerIgnored++`]]
  4490. :setAccessManagerIgnored: pass:normal[xref:#GovernorTimelockAccess-setAccessManagerIgnored-address-bytes4---bool-[`++setAccessManagerIgnored++`]]
  4491. :_setAccessManagerIgnored: pass:normal[xref:#GovernorTimelockAccess-_setAccessManagerIgnored-address-bytes4-bool-[`++_setAccessManagerIgnored++`]]
  4492. :proposalExecutionPlan: pass:normal[xref:#GovernorTimelockAccess-proposalExecutionPlan-uint256-[`++proposalExecutionPlan++`]]
  4493. :proposalNeedsQueuing: pass:normal[xref:#GovernorTimelockAccess-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  4494. :propose: pass:normal[xref:#GovernorTimelockAccess-propose-address---uint256---bytes---string-[`++propose++`]]
  4495. :_queueOperations: pass:normal[xref:#GovernorTimelockAccess-_queueOperations-uint256-address---uint256---bytes---bytes32-[`++_queueOperations++`]]
  4496. :_executeOperations: pass:normal[xref:#GovernorTimelockAccess-_executeOperations-uint256-address---uint256---bytes---bytes32-[`++_executeOperations++`]]
  4497. :_cancel: pass:normal[xref:#GovernorTimelockAccess-_cancel-address---uint256---bytes---bytes32-[`++_cancel++`]]
  4498. :constructor-address-uint32: pass:normal[xref:#GovernorTimelockAccess-constructor-address-uint32-[`++constructor++`]]
  4499. :accessManager-: pass:normal[xref:#GovernorTimelockAccess-accessManager--[`++accessManager++`]]
  4500. :baseDelaySeconds-: pass:normal[xref:#GovernorTimelockAccess-baseDelaySeconds--[`++baseDelaySeconds++`]]
  4501. :setBaseDelaySeconds-uint32: pass:normal[xref:#GovernorTimelockAccess-setBaseDelaySeconds-uint32-[`++setBaseDelaySeconds++`]]
  4502. :_setBaseDelaySeconds-uint32: pass:normal[xref:#GovernorTimelockAccess-_setBaseDelaySeconds-uint32-[`++_setBaseDelaySeconds++`]]
  4503. :isAccessManagerIgnored-address-bytes4: pass:normal[xref:#GovernorTimelockAccess-isAccessManagerIgnored-address-bytes4-[`++isAccessManagerIgnored++`]]
  4504. :setAccessManagerIgnored-address-bytes4---bool: pass:normal[xref:#GovernorTimelockAccess-setAccessManagerIgnored-address-bytes4---bool-[`++setAccessManagerIgnored++`]]
  4505. :_setAccessManagerIgnored-address-bytes4-bool: pass:normal[xref:#GovernorTimelockAccess-_setAccessManagerIgnored-address-bytes4-bool-[`++_setAccessManagerIgnored++`]]
  4506. :proposalExecutionPlan-uint256: pass:normal[xref:#GovernorTimelockAccess-proposalExecutionPlan-uint256-[`++proposalExecutionPlan++`]]
  4507. :proposalNeedsQueuing-uint256: pass:normal[xref:#GovernorTimelockAccess-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  4508. :propose-address---uint256---bytes---string: pass:normal[xref:#GovernorTimelockAccess-propose-address---uint256---bytes---string-[`++propose++`]]
  4509. :_queueOperations-uint256-address---uint256---bytes---bytes32: pass:normal[xref:#GovernorTimelockAccess-_queueOperations-uint256-address---uint256---bytes---bytes32-[`++_queueOperations++`]]
  4510. :_executeOperations-uint256-address---uint256---bytes---bytes32: pass:normal[xref:#GovernorTimelockAccess-_executeOperations-uint256-address---uint256---bytes---bytes32-[`++_executeOperations++`]]
  4511. :_cancel-address---uint256---bytes---bytes32: pass:normal[xref:#GovernorTimelockAccess-_cancel-address---uint256---bytes---bytes32-[`++_cancel++`]]
  4512. [.contract]
  4513. [[GovernorTimelockAccess]]
  4514. === `++GovernorTimelockAccess++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorTimelockAccess.sol[{github-icon},role=heading-link]
  4515. [.hljs-theme-light.nopadding]
  4516. ```solidity
  4517. import "@openzeppelin/contracts/governance/extensions/GovernorTimelockAccess.sol";
  4518. ```
  4519. This module connects a {Governor} instance to an {AccessManager} instance, allowing the governor to make calls
  4520. that are delay-restricted by the manager using the normal {queue} workflow. An optional base delay is applied to
  4521. operations that are not delayed externally by the manager. Execution of a proposal will be delayed as much as
  4522. necessary to meet the required delays of all of its operations.
  4523. This extension allows the governor to hold and use its own assets and permissions, unlike {GovernorTimelockControl}
  4524. and {GovernorTimelockCompound}, where the timelock is a separate contract that must be the one to hold assets and
  4525. permissions. Operations that are delay-restricted by the manager, however, will be executed through the
  4526. {AccessManager-execute} function.
  4527. ==== Security Considerations
  4528. Some operations may be cancelable in the `AccessManager` by the admin or a set of guardians, depending on the
  4529. restricted function being invoked. Since proposals are atomic, the cancellation by a guardian of a single operation
  4530. in a proposal will cause all of the proposal to become unable to execute. Consider proposing cancellable operations
  4531. separately.
  4532. By default, function calls will be routed through the associated `AccessManager` whenever it claims the target
  4533. function to be restricted by it. However, admins may configure the manager to make that claim for functions that a
  4534. governor would want to call directly (e.g., token transfers) in an attempt to deny it access to those functions. To
  4535. mitigate this attack vector, the governor is able to ignore the restrictions claimed by the `AccessManager` using
  4536. {setAccessManagerIgnored}. While permanent denial of service is mitigated, temporary DoS may still be technically
  4537. possible. All of the governor's own functions (e.g., {setBaseDelaySeconds}) ignore the `AccessManager` by default.
  4538. NOTE: `AccessManager` does not support scheduling more than one operation with the same target and calldata at
  4539. the same time. See {AccessManager-schedule} for a workaround.
  4540. [.contract-index]
  4541. .Functions
  4542. --
  4543. * {xref-GovernorTimelockAccess-constructor-address-uint32-}[`++constructor(manager, initialBaseDelay)++`]
  4544. * {xref-GovernorTimelockAccess-accessManager--}[`++accessManager()++`]
  4545. * {xref-GovernorTimelockAccess-baseDelaySeconds--}[`++baseDelaySeconds()++`]
  4546. * {xref-GovernorTimelockAccess-setBaseDelaySeconds-uint32-}[`++setBaseDelaySeconds(newBaseDelay)++`]
  4547. * {xref-GovernorTimelockAccess-_setBaseDelaySeconds-uint32-}[`++_setBaseDelaySeconds(newBaseDelay)++`]
  4548. * {xref-GovernorTimelockAccess-isAccessManagerIgnored-address-bytes4-}[`++isAccessManagerIgnored(target, selector)++`]
  4549. * {xref-GovernorTimelockAccess-setAccessManagerIgnored-address-bytes4---bool-}[`++setAccessManagerIgnored(target, selectors, ignored)++`]
  4550. * {xref-GovernorTimelockAccess-_setAccessManagerIgnored-address-bytes4-bool-}[`++_setAccessManagerIgnored(target, selector, ignored)++`]
  4551. * {xref-GovernorTimelockAccess-proposalExecutionPlan-uint256-}[`++proposalExecutionPlan(proposalId)++`]
  4552. * {xref-GovernorTimelockAccess-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing(proposalId)++`]
  4553. * {xref-GovernorTimelockAccess-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  4554. * {xref-GovernorTimelockAccess-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(proposalId, targets, , calldatas, )++`]
  4555. * {xref-GovernorTimelockAccess-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(proposalId, targets, values, calldatas, )++`]
  4556. * {xref-GovernorTimelockAccess-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  4557. [.contract-subindex-inherited]
  4558. .Governor
  4559. * {xref-Governor-receive--}[`++receive()++`]
  4560. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  4561. * {xref-Governor-name--}[`++name()++`]
  4562. * {xref-Governor-version--}[`++version()++`]
  4563. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  4564. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  4565. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  4566. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  4567. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  4568. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  4569. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  4570. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  4571. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  4572. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  4573. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  4574. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  4575. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  4576. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  4577. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  4578. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  4579. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  4580. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  4581. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  4582. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  4583. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  4584. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  4585. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  4586. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  4587. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  4588. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  4589. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  4590. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  4591. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  4592. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  4593. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  4594. * {xref-Governor-_executor--}[`++_executor()++`]
  4595. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  4596. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  4597. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  4598. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  4599. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  4600. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  4601. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  4602. * {xref-Governor-clock--}[`++clock()++`]
  4603. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  4604. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  4605. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  4606. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  4607. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  4608. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  4609. [.contract-subindex-inherited]
  4610. .IERC1155Receiver
  4611. [.contract-subindex-inherited]
  4612. .IERC721Receiver
  4613. [.contract-subindex-inherited]
  4614. .IGovernor
  4615. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  4616. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  4617. [.contract-subindex-inherited]
  4618. .IERC6372
  4619. [.contract-subindex-inherited]
  4620. .Nonces
  4621. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  4622. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  4623. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  4624. [.contract-subindex-inherited]
  4625. .EIP712
  4626. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  4627. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  4628. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  4629. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  4630. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  4631. [.contract-subindex-inherited]
  4632. .IERC5267
  4633. [.contract-subindex-inherited]
  4634. .ERC165
  4635. [.contract-subindex-inherited]
  4636. .IERC165
  4637. --
  4638. [.contract-index]
  4639. .Events
  4640. --
  4641. * {xref-GovernorTimelockAccess-BaseDelaySet-uint32-uint32-}[`++BaseDelaySet(oldBaseDelaySeconds, newBaseDelaySeconds)++`]
  4642. * {xref-GovernorTimelockAccess-AccessManagerIgnoredSet-address-bytes4-bool-}[`++AccessManagerIgnoredSet(target, selector, ignored)++`]
  4643. [.contract-subindex-inherited]
  4644. .Governor
  4645. [.contract-subindex-inherited]
  4646. .IERC1155Receiver
  4647. [.contract-subindex-inherited]
  4648. .IERC721Receiver
  4649. [.contract-subindex-inherited]
  4650. .IGovernor
  4651. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  4652. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  4653. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  4654. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  4655. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  4656. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  4657. [.contract-subindex-inherited]
  4658. .IERC6372
  4659. [.contract-subindex-inherited]
  4660. .Nonces
  4661. [.contract-subindex-inherited]
  4662. .EIP712
  4663. [.contract-subindex-inherited]
  4664. .IERC5267
  4665. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  4666. [.contract-subindex-inherited]
  4667. .ERC165
  4668. [.contract-subindex-inherited]
  4669. .IERC165
  4670. --
  4671. [.contract-index]
  4672. .Errors
  4673. --
  4674. * {xref-GovernorTimelockAccess-GovernorUnmetDelay-uint256-uint256-}[`++GovernorUnmetDelay(proposalId, neededTimestamp)++`]
  4675. * {xref-GovernorTimelockAccess-GovernorMismatchedNonce-uint256-uint256-uint256-}[`++GovernorMismatchedNonce(proposalId, expectedNonce, actualNonce)++`]
  4676. * {xref-GovernorTimelockAccess-GovernorLockedIgnore--}[`++GovernorLockedIgnore()++`]
  4677. [.contract-subindex-inherited]
  4678. .Governor
  4679. [.contract-subindex-inherited]
  4680. .IERC1155Receiver
  4681. [.contract-subindex-inherited]
  4682. .IERC721Receiver
  4683. [.contract-subindex-inherited]
  4684. .IGovernor
  4685. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  4686. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  4687. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  4688. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  4689. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  4690. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  4691. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  4692. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  4693. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  4694. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  4695. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  4696. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  4697. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  4698. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  4699. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  4700. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  4701. [.contract-subindex-inherited]
  4702. .IERC6372
  4703. [.contract-subindex-inherited]
  4704. .Nonces
  4705. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  4706. [.contract-subindex-inherited]
  4707. .EIP712
  4708. [.contract-subindex-inherited]
  4709. .IERC5267
  4710. [.contract-subindex-inherited]
  4711. .ERC165
  4712. [.contract-subindex-inherited]
  4713. .IERC165
  4714. --
  4715. [.contract-item]
  4716. [[GovernorTimelockAccess-constructor-address-uint32-]]
  4717. ==== `[.contract-item-name]#++constructor++#++(address manager, uint32 initialBaseDelay)++` [.item-kind]#internal#
  4718. Initialize the governor with an {AccessManager} and initial base delay.
  4719. [.contract-item]
  4720. [[GovernorTimelockAccess-accessManager--]]
  4721. ==== `[.contract-item-name]#++accessManager++#++() → contract IAccessManager++` [.item-kind]#public#
  4722. Returns the {AccessManager} instance associated to this governor.
  4723. [.contract-item]
  4724. [[GovernorTimelockAccess-baseDelaySeconds--]]
  4725. ==== `[.contract-item-name]#++baseDelaySeconds++#++() → uint32++` [.item-kind]#public#
  4726. Base delay that will be applied to all function calls. Some may be further delayed by their associated
  4727. `AccessManager` authority; in this case the final delay will be the maximum of the base delay and the one
  4728. demanded by the authority.
  4729. NOTE: Execution delays are processed by the `AccessManager` contracts, and according to that contract are
  4730. expressed in seconds. Therefore, the base delay is also in seconds, regardless of the governor's clock mode.
  4731. [.contract-item]
  4732. [[GovernorTimelockAccess-setBaseDelaySeconds-uint32-]]
  4733. ==== `[.contract-item-name]#++setBaseDelaySeconds++#++(uint32 newBaseDelay)++` [.item-kind]#public#
  4734. Change the value of {baseDelaySeconds}. This operation can only be invoked through a governance proposal.
  4735. [.contract-item]
  4736. [[GovernorTimelockAccess-_setBaseDelaySeconds-uint32-]]
  4737. ==== `[.contract-item-name]#++_setBaseDelaySeconds++#++(uint32 newBaseDelay)++` [.item-kind]#internal#
  4738. Change the value of {baseDelaySeconds}. Internal function without access control.
  4739. [.contract-item]
  4740. [[GovernorTimelockAccess-isAccessManagerIgnored-address-bytes4-]]
  4741. ==== `[.contract-item-name]#++isAccessManagerIgnored++#++(address target, bytes4 selector) → bool++` [.item-kind]#public#
  4742. Check if restrictions from the associated {AccessManager} are ignored for a target function. Returns true
  4743. when the target function will be invoked directly regardless of `AccessManager` settings for the function.
  4744. See {setAccessManagerIgnored} and Security Considerations above.
  4745. [.contract-item]
  4746. [[GovernorTimelockAccess-setAccessManagerIgnored-address-bytes4---bool-]]
  4747. ==== `[.contract-item-name]#++setAccessManagerIgnored++#++(address target, bytes4[] selectors, bool ignored)++` [.item-kind]#public#
  4748. Configure whether restrictions from the associated {AccessManager} are ignored for a target function.
  4749. See Security Considerations above.
  4750. [.contract-item]
  4751. [[GovernorTimelockAccess-_setAccessManagerIgnored-address-bytes4-bool-]]
  4752. ==== `[.contract-item-name]#++_setAccessManagerIgnored++#++(address target, bytes4 selector, bool ignored)++` [.item-kind]#internal#
  4753. Internal version of {setAccessManagerIgnored} without access restriction.
  4754. [.contract-item]
  4755. [[GovernorTimelockAccess-proposalExecutionPlan-uint256-]]
  4756. ==== `[.contract-item-name]#++proposalExecutionPlan++#++(uint256 proposalId) → uint32 delay, bool[] indirect, bool[] withDelay++` [.item-kind]#public#
  4757. Public accessor to check the execution plan, including the number of seconds that the proposal will be
  4758. delayed since queuing, an array indicating which of the proposal actions will be executed indirectly through
  4759. the associated {AccessManager}, and another indicating which will be scheduled in {queue}. Note that
  4760. those that must be scheduled are cancellable by `AccessManager` guardians.
  4761. [.contract-item]
  4762. [[GovernorTimelockAccess-proposalNeedsQueuing-uint256-]]
  4763. ==== `[.contract-item-name]#++proposalNeedsQueuing++#++(uint256 proposalId) → bool++` [.item-kind]#public#
  4764. [.contract-item]
  4765. [[GovernorTimelockAccess-propose-address---uint256---bytes---string-]]
  4766. ==== `[.contract-item-name]#++propose++#++(address[] targets, uint256[] values, bytes[] calldatas, string description) → uint256++` [.item-kind]#public#
  4767. [.contract-item]
  4768. [[GovernorTimelockAccess-_queueOperations-uint256-address---uint256---bytes---bytes32-]]
  4769. ==== `[.contract-item-name]#++_queueOperations++#++(uint256 proposalId, address[] targets, uint256[], bytes[] calldatas, bytes32) → uint48++` [.item-kind]#internal#
  4770. Mechanism to queue a proposal, potentially scheduling some of its operations in the AccessManager.
  4771. NOTE: The execution delay is chosen based on the delay information retrieved in {propose}. This value may be
  4772. off if the delay was updated since proposal creation. In this case, the proposal needs to be recreated.
  4773. [.contract-item]
  4774. [[GovernorTimelockAccess-_executeOperations-uint256-address---uint256---bytes---bytes32-]]
  4775. ==== `[.contract-item-name]#++_executeOperations++#++(uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32)++` [.item-kind]#internal#
  4776. Mechanism to execute a proposal, potentially going through {AccessManager-execute} for delayed operations.
  4777. [.contract-item]
  4778. [[GovernorTimelockAccess-_cancel-address---uint256---bytes---bytes32-]]
  4779. ==== `[.contract-item-name]#++_cancel++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#internal#
  4780. Internal cancel mechanism with minimal restrictions. A proposal can be cancelled in any state other than
  4781. Canceled, Expired, or Executed. Once cancelled a proposal can't be re-submitted.
  4782. Emits a {IGovernor-ProposalCanceled} event.
  4783. [.contract-item]
  4784. [[GovernorTimelockAccess-BaseDelaySet-uint32-uint32-]]
  4785. ==== `[.contract-item-name]#++BaseDelaySet++#++(uint32 oldBaseDelaySeconds, uint32 newBaseDelaySeconds)++` [.item-kind]#event#
  4786. [.contract-item]
  4787. [[GovernorTimelockAccess-AccessManagerIgnoredSet-address-bytes4-bool-]]
  4788. ==== `[.contract-item-name]#++AccessManagerIgnoredSet++#++(address target, bytes4 selector, bool ignored)++` [.item-kind]#event#
  4789. [.contract-item]
  4790. [[GovernorTimelockAccess-GovernorUnmetDelay-uint256-uint256-]]
  4791. ==== `[.contract-item-name]#++GovernorUnmetDelay++#++(uint256 proposalId, uint256 neededTimestamp)++` [.item-kind]#error#
  4792. [.contract-item]
  4793. [[GovernorTimelockAccess-GovernorMismatchedNonce-uint256-uint256-uint256-]]
  4794. ==== `[.contract-item-name]#++GovernorMismatchedNonce++#++(uint256 proposalId, uint256 expectedNonce, uint256 actualNonce)++` [.item-kind]#error#
  4795. [.contract-item]
  4796. [[GovernorTimelockAccess-GovernorLockedIgnore--]]
  4797. ==== `[.contract-item-name]#++GovernorLockedIgnore++#++()++` [.item-kind]#error#
  4798. :TimelockChange: pass:normal[xref:#GovernorTimelockControl-TimelockChange-address-address-[`++TimelockChange++`]]
  4799. :constructor: pass:normal[xref:#GovernorTimelockControl-constructor-contract-TimelockController-[`++constructor++`]]
  4800. :state: pass:normal[xref:#GovernorTimelockControl-state-uint256-[`++state++`]]
  4801. :timelock: pass:normal[xref:#GovernorTimelockControl-timelock--[`++timelock++`]]
  4802. :proposalNeedsQueuing: pass:normal[xref:#GovernorTimelockControl-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  4803. :_queueOperations: pass:normal[xref:#GovernorTimelockControl-_queueOperations-uint256-address---uint256---bytes---bytes32-[`++_queueOperations++`]]
  4804. :_executeOperations: pass:normal[xref:#GovernorTimelockControl-_executeOperations-uint256-address---uint256---bytes---bytes32-[`++_executeOperations++`]]
  4805. :_cancel: pass:normal[xref:#GovernorTimelockControl-_cancel-address---uint256---bytes---bytes32-[`++_cancel++`]]
  4806. :_executor: pass:normal[xref:#GovernorTimelockControl-_executor--[`++_executor++`]]
  4807. :updateTimelock: pass:normal[xref:#GovernorTimelockControl-updateTimelock-contract-TimelockController-[`++updateTimelock++`]]
  4808. :constructor-contract-TimelockController: pass:normal[xref:#GovernorTimelockControl-constructor-contract-TimelockController-[`++constructor++`]]
  4809. :state-uint256: pass:normal[xref:#GovernorTimelockControl-state-uint256-[`++state++`]]
  4810. :timelock-: pass:normal[xref:#GovernorTimelockControl-timelock--[`++timelock++`]]
  4811. :proposalNeedsQueuing-uint256: pass:normal[xref:#GovernorTimelockControl-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  4812. :_queueOperations-uint256-address---uint256---bytes---bytes32: pass:normal[xref:#GovernorTimelockControl-_queueOperations-uint256-address---uint256---bytes---bytes32-[`++_queueOperations++`]]
  4813. :_executeOperations-uint256-address---uint256---bytes---bytes32: pass:normal[xref:#GovernorTimelockControl-_executeOperations-uint256-address---uint256---bytes---bytes32-[`++_executeOperations++`]]
  4814. :_cancel-address---uint256---bytes---bytes32: pass:normal[xref:#GovernorTimelockControl-_cancel-address---uint256---bytes---bytes32-[`++_cancel++`]]
  4815. :_executor-: pass:normal[xref:#GovernorTimelockControl-_executor--[`++_executor++`]]
  4816. :updateTimelock-contract-TimelockController: pass:normal[xref:#GovernorTimelockControl-updateTimelock-contract-TimelockController-[`++updateTimelock++`]]
  4817. [.contract]
  4818. [[GovernorTimelockControl]]
  4819. === `++GovernorTimelockControl++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorTimelockControl.sol[{github-icon},role=heading-link]
  4820. [.hljs-theme-light.nopadding]
  4821. ```solidity
  4822. import "@openzeppelin/contracts/governance/extensions/GovernorTimelockControl.sol";
  4823. ```
  4824. Extension of {Governor} that binds the execution process to an instance of {TimelockController}. This adds a
  4825. delay, enforced by the {TimelockController} to all successful proposal (in addition to the voting duration). The
  4826. {Governor} needs the proposer (and ideally the executor and canceller) roles for the {Governor} to work properly.
  4827. Using this model means the proposal will be operated by the {TimelockController} and not by the {Governor}. Thus,
  4828. the assets and permissions must be attached to the {TimelockController}. Any asset sent to the {Governor} will be
  4829. inaccessible from a proposal, unless executed via {Governor-relay}.
  4830. WARNING: Setting up the TimelockController to have additional proposers or cancelers besides the governor is very
  4831. risky, as it grants them the ability to: 1) execute operations as the timelock, and thus possibly performing
  4832. operations or accessing funds that are expected to only be accessible through a vote, and 2) block governance
  4833. proposals that have been approved by the voters, effectively executing a Denial of Service attack.
  4834. [.contract-index]
  4835. .Functions
  4836. --
  4837. * {xref-GovernorTimelockControl-constructor-contract-TimelockController-}[`++constructor(timelockAddress)++`]
  4838. * {xref-GovernorTimelockControl-state-uint256-}[`++state(proposalId)++`]
  4839. * {xref-GovernorTimelockControl-timelock--}[`++timelock()++`]
  4840. * {xref-GovernorTimelockControl-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  4841. * {xref-GovernorTimelockControl-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(proposalId, targets, values, calldatas, descriptionHash)++`]
  4842. * {xref-GovernorTimelockControl-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(proposalId, targets, values, calldatas, descriptionHash)++`]
  4843. * {xref-GovernorTimelockControl-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  4844. * {xref-GovernorTimelockControl-_executor--}[`++_executor()++`]
  4845. * {xref-GovernorTimelockControl-updateTimelock-contract-TimelockController-}[`++updateTimelock(newTimelock)++`]
  4846. [.contract-subindex-inherited]
  4847. .Governor
  4848. * {xref-Governor-receive--}[`++receive()++`]
  4849. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  4850. * {xref-Governor-name--}[`++name()++`]
  4851. * {xref-Governor-version--}[`++version()++`]
  4852. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  4853. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  4854. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  4855. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  4856. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  4857. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  4858. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  4859. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  4860. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  4861. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  4862. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  4863. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  4864. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  4865. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  4866. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  4867. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  4868. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  4869. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  4870. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  4871. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  4872. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  4873. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  4874. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  4875. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  4876. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  4877. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  4878. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  4879. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  4880. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  4881. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  4882. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  4883. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  4884. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  4885. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  4886. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  4887. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  4888. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  4889. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  4890. * {xref-Governor-clock--}[`++clock()++`]
  4891. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  4892. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  4893. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  4894. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  4895. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  4896. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  4897. [.contract-subindex-inherited]
  4898. .IERC1155Receiver
  4899. [.contract-subindex-inherited]
  4900. .IERC721Receiver
  4901. [.contract-subindex-inherited]
  4902. .IGovernor
  4903. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  4904. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  4905. [.contract-subindex-inherited]
  4906. .IERC6372
  4907. [.contract-subindex-inherited]
  4908. .Nonces
  4909. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  4910. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  4911. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  4912. [.contract-subindex-inherited]
  4913. .EIP712
  4914. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  4915. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  4916. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  4917. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  4918. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  4919. [.contract-subindex-inherited]
  4920. .IERC5267
  4921. [.contract-subindex-inherited]
  4922. .ERC165
  4923. [.contract-subindex-inherited]
  4924. .IERC165
  4925. --
  4926. [.contract-index]
  4927. .Events
  4928. --
  4929. * {xref-GovernorTimelockControl-TimelockChange-address-address-}[`++TimelockChange(oldTimelock, newTimelock)++`]
  4930. [.contract-subindex-inherited]
  4931. .Governor
  4932. [.contract-subindex-inherited]
  4933. .IERC1155Receiver
  4934. [.contract-subindex-inherited]
  4935. .IERC721Receiver
  4936. [.contract-subindex-inherited]
  4937. .IGovernor
  4938. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  4939. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  4940. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  4941. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  4942. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  4943. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  4944. [.contract-subindex-inherited]
  4945. .IERC6372
  4946. [.contract-subindex-inherited]
  4947. .Nonces
  4948. [.contract-subindex-inherited]
  4949. .EIP712
  4950. [.contract-subindex-inherited]
  4951. .IERC5267
  4952. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  4953. [.contract-subindex-inherited]
  4954. .ERC165
  4955. [.contract-subindex-inherited]
  4956. .IERC165
  4957. --
  4958. [.contract-index]
  4959. .Errors
  4960. --
  4961. [.contract-subindex-inherited]
  4962. .Governor
  4963. [.contract-subindex-inherited]
  4964. .IERC1155Receiver
  4965. [.contract-subindex-inherited]
  4966. .IERC721Receiver
  4967. [.contract-subindex-inherited]
  4968. .IGovernor
  4969. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  4970. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  4971. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  4972. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  4973. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  4974. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  4975. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  4976. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  4977. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  4978. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  4979. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  4980. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  4981. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  4982. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  4983. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  4984. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  4985. [.contract-subindex-inherited]
  4986. .IERC6372
  4987. [.contract-subindex-inherited]
  4988. .Nonces
  4989. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  4990. [.contract-subindex-inherited]
  4991. .EIP712
  4992. [.contract-subindex-inherited]
  4993. .IERC5267
  4994. [.contract-subindex-inherited]
  4995. .ERC165
  4996. [.contract-subindex-inherited]
  4997. .IERC165
  4998. --
  4999. [.contract-item]
  5000. [[GovernorTimelockControl-constructor-contract-TimelockController-]]
  5001. ==== `[.contract-item-name]#++constructor++#++(contract TimelockController timelockAddress)++` [.item-kind]#internal#
  5002. Set the timelock.
  5003. [.contract-item]
  5004. [[GovernorTimelockControl-state-uint256-]]
  5005. ==== `[.contract-item-name]#++state++#++(uint256 proposalId) → enum IGovernor.ProposalState++` [.item-kind]#public#
  5006. Overridden version of the {Governor-state} function that considers the status reported by the timelock.
  5007. [.contract-item]
  5008. [[GovernorTimelockControl-timelock--]]
  5009. ==== `[.contract-item-name]#++timelock++#++() → address++` [.item-kind]#public#
  5010. Public accessor to check the address of the timelock
  5011. [.contract-item]
  5012. [[GovernorTimelockControl-proposalNeedsQueuing-uint256-]]
  5013. ==== `[.contract-item-name]#++proposalNeedsQueuing++#++(uint256) → bool++` [.item-kind]#public#
  5014. [.contract-item]
  5015. [[GovernorTimelockControl-_queueOperations-uint256-address---uint256---bytes---bytes32-]]
  5016. ==== `[.contract-item-name]#++_queueOperations++#++(uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint48++` [.item-kind]#internal#
  5017. Function to queue a proposal to the timelock.
  5018. [.contract-item]
  5019. [[GovernorTimelockControl-_executeOperations-uint256-address---uint256---bytes---bytes32-]]
  5020. ==== `[.contract-item-name]#++_executeOperations++#++(uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash)++` [.item-kind]#internal#
  5021. Overridden version of the {Governor-_executeOperations} function that runs the already queued proposal
  5022. through the timelock.
  5023. [.contract-item]
  5024. [[GovernorTimelockControl-_cancel-address---uint256---bytes---bytes32-]]
  5025. ==== `[.contract-item-name]#++_cancel++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#internal#
  5026. Overridden version of the {Governor-_cancel} function to cancel the timelocked proposal if it has already
  5027. been queued.
  5028. [.contract-item]
  5029. [[GovernorTimelockControl-_executor--]]
  5030. ==== `[.contract-item-name]#++_executor++#++() → address++` [.item-kind]#internal#
  5031. Address through which the governor executes action. In this case, the timelock.
  5032. [.contract-item]
  5033. [[GovernorTimelockControl-updateTimelock-contract-TimelockController-]]
  5034. ==== `[.contract-item-name]#++updateTimelock++#++(contract TimelockController newTimelock)++` [.item-kind]#external#
  5035. Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates
  5036. must be proposed, scheduled, and executed through governance proposals.
  5037. CAUTION: It is not recommended to change the timelock while there are other queued governance proposals.
  5038. [.contract-item]
  5039. [[GovernorTimelockControl-TimelockChange-address-address-]]
  5040. ==== `[.contract-item-name]#++TimelockChange++#++(address oldTimelock, address newTimelock)++` [.item-kind]#event#
  5041. Emitted when the timelock controller used for proposal execution is modified.
  5042. :TimelockChange: pass:normal[xref:#GovernorTimelockCompound-TimelockChange-address-address-[`++TimelockChange++`]]
  5043. :constructor: pass:normal[xref:#GovernorTimelockCompound-constructor-contract-ICompoundTimelock-[`++constructor++`]]
  5044. :state: pass:normal[xref:#GovernorTimelockCompound-state-uint256-[`++state++`]]
  5045. :timelock: pass:normal[xref:#GovernorTimelockCompound-timelock--[`++timelock++`]]
  5046. :proposalNeedsQueuing: pass:normal[xref:#GovernorTimelockCompound-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  5047. :_queueOperations: pass:normal[xref:#GovernorTimelockCompound-_queueOperations-uint256-address---uint256---bytes---bytes32-[`++_queueOperations++`]]
  5048. :_executeOperations: pass:normal[xref:#GovernorTimelockCompound-_executeOperations-uint256-address---uint256---bytes---bytes32-[`++_executeOperations++`]]
  5049. :_cancel: pass:normal[xref:#GovernorTimelockCompound-_cancel-address---uint256---bytes---bytes32-[`++_cancel++`]]
  5050. :_executor: pass:normal[xref:#GovernorTimelockCompound-_executor--[`++_executor++`]]
  5051. :__acceptAdmin: pass:normal[xref:#GovernorTimelockCompound-__acceptAdmin--[`++__acceptAdmin++`]]
  5052. :updateTimelock: pass:normal[xref:#GovernorTimelockCompound-updateTimelock-contract-ICompoundTimelock-[`++updateTimelock++`]]
  5053. :constructor-contract-ICompoundTimelock: pass:normal[xref:#GovernorTimelockCompound-constructor-contract-ICompoundTimelock-[`++constructor++`]]
  5054. :state-uint256: pass:normal[xref:#GovernorTimelockCompound-state-uint256-[`++state++`]]
  5055. :timelock-: pass:normal[xref:#GovernorTimelockCompound-timelock--[`++timelock++`]]
  5056. :proposalNeedsQueuing-uint256: pass:normal[xref:#GovernorTimelockCompound-proposalNeedsQueuing-uint256-[`++proposalNeedsQueuing++`]]
  5057. :_queueOperations-uint256-address---uint256---bytes---bytes32: pass:normal[xref:#GovernorTimelockCompound-_queueOperations-uint256-address---uint256---bytes---bytes32-[`++_queueOperations++`]]
  5058. :_executeOperations-uint256-address---uint256---bytes---bytes32: pass:normal[xref:#GovernorTimelockCompound-_executeOperations-uint256-address---uint256---bytes---bytes32-[`++_executeOperations++`]]
  5059. :_cancel-address---uint256---bytes---bytes32: pass:normal[xref:#GovernorTimelockCompound-_cancel-address---uint256---bytes---bytes32-[`++_cancel++`]]
  5060. :_executor-: pass:normal[xref:#GovernorTimelockCompound-_executor--[`++_executor++`]]
  5061. :__acceptAdmin-: pass:normal[xref:#GovernorTimelockCompound-__acceptAdmin--[`++__acceptAdmin++`]]
  5062. :updateTimelock-contract-ICompoundTimelock: pass:normal[xref:#GovernorTimelockCompound-updateTimelock-contract-ICompoundTimelock-[`++updateTimelock++`]]
  5063. [.contract]
  5064. [[GovernorTimelockCompound]]
  5065. === `++GovernorTimelockCompound++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorTimelockCompound.sol[{github-icon},role=heading-link]
  5066. [.hljs-theme-light.nopadding]
  5067. ```solidity
  5068. import "@openzeppelin/contracts/governance/extensions/GovernorTimelockCompound.sol";
  5069. ```
  5070. Extension of {Governor} that binds the execution process to a Compound Timelock. This adds a delay, enforced by
  5071. the external timelock to all successful proposals (in addition to the voting duration). The {Governor} needs to be
  5072. the admin of the timelock for any operation to be performed. A public, unrestricted,
  5073. {GovernorTimelockCompound-__acceptAdmin} is available to accept ownership of the timelock.
  5074. Using this model means the proposal will be operated by the {TimelockController} and not by the {Governor}. Thus,
  5075. the assets and permissions must be attached to the {TimelockController}. Any asset sent to the {Governor} will be
  5076. inaccessible from a proposal, unless executed via {Governor-relay}.
  5077. [.contract-index]
  5078. .Functions
  5079. --
  5080. * {xref-GovernorTimelockCompound-constructor-contract-ICompoundTimelock-}[`++constructor(timelockAddress)++`]
  5081. * {xref-GovernorTimelockCompound-state-uint256-}[`++state(proposalId)++`]
  5082. * {xref-GovernorTimelockCompound-timelock--}[`++timelock()++`]
  5083. * {xref-GovernorTimelockCompound-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  5084. * {xref-GovernorTimelockCompound-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(proposalId, targets, values, calldatas, )++`]
  5085. * {xref-GovernorTimelockCompound-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(proposalId, targets, values, calldatas, )++`]
  5086. * {xref-GovernorTimelockCompound-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  5087. * {xref-GovernorTimelockCompound-_executor--}[`++_executor()++`]
  5088. * {xref-GovernorTimelockCompound-__acceptAdmin--}[`++__acceptAdmin()++`]
  5089. * {xref-GovernorTimelockCompound-updateTimelock-contract-ICompoundTimelock-}[`++updateTimelock(newTimelock)++`]
  5090. [.contract-subindex-inherited]
  5091. .Governor
  5092. * {xref-Governor-receive--}[`++receive()++`]
  5093. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  5094. * {xref-Governor-name--}[`++name()++`]
  5095. * {xref-Governor-version--}[`++version()++`]
  5096. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  5097. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  5098. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  5099. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  5100. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  5101. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  5102. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  5103. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  5104. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  5105. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  5106. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  5107. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  5108. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  5109. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  5110. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  5111. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  5112. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  5113. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  5114. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  5115. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  5116. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  5117. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  5118. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  5119. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  5120. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  5121. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  5122. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  5123. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  5124. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  5125. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  5126. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  5127. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  5128. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  5129. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  5130. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  5131. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  5132. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  5133. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  5134. * {xref-Governor-clock--}[`++clock()++`]
  5135. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  5136. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  5137. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  5138. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  5139. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  5140. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  5141. [.contract-subindex-inherited]
  5142. .IERC1155Receiver
  5143. [.contract-subindex-inherited]
  5144. .IERC721Receiver
  5145. [.contract-subindex-inherited]
  5146. .IGovernor
  5147. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  5148. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  5149. [.contract-subindex-inherited]
  5150. .IERC6372
  5151. [.contract-subindex-inherited]
  5152. .Nonces
  5153. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  5154. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  5155. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  5156. [.contract-subindex-inherited]
  5157. .EIP712
  5158. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  5159. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  5160. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  5161. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  5162. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  5163. [.contract-subindex-inherited]
  5164. .IERC5267
  5165. [.contract-subindex-inherited]
  5166. .ERC165
  5167. [.contract-subindex-inherited]
  5168. .IERC165
  5169. --
  5170. [.contract-index]
  5171. .Events
  5172. --
  5173. * {xref-GovernorTimelockCompound-TimelockChange-address-address-}[`++TimelockChange(oldTimelock, newTimelock)++`]
  5174. [.contract-subindex-inherited]
  5175. .Governor
  5176. [.contract-subindex-inherited]
  5177. .IERC1155Receiver
  5178. [.contract-subindex-inherited]
  5179. .IERC721Receiver
  5180. [.contract-subindex-inherited]
  5181. .IGovernor
  5182. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  5183. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  5184. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  5185. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  5186. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  5187. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  5188. [.contract-subindex-inherited]
  5189. .IERC6372
  5190. [.contract-subindex-inherited]
  5191. .Nonces
  5192. [.contract-subindex-inherited]
  5193. .EIP712
  5194. [.contract-subindex-inherited]
  5195. .IERC5267
  5196. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  5197. [.contract-subindex-inherited]
  5198. .ERC165
  5199. [.contract-subindex-inherited]
  5200. .IERC165
  5201. --
  5202. [.contract-index]
  5203. .Errors
  5204. --
  5205. [.contract-subindex-inherited]
  5206. .Governor
  5207. [.contract-subindex-inherited]
  5208. .IERC1155Receiver
  5209. [.contract-subindex-inherited]
  5210. .IERC721Receiver
  5211. [.contract-subindex-inherited]
  5212. .IGovernor
  5213. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  5214. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  5215. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  5216. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  5217. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  5218. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  5219. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  5220. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  5221. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  5222. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  5223. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  5224. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  5225. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  5226. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  5227. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  5228. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  5229. [.contract-subindex-inherited]
  5230. .IERC6372
  5231. [.contract-subindex-inherited]
  5232. .Nonces
  5233. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  5234. [.contract-subindex-inherited]
  5235. .EIP712
  5236. [.contract-subindex-inherited]
  5237. .IERC5267
  5238. [.contract-subindex-inherited]
  5239. .ERC165
  5240. [.contract-subindex-inherited]
  5241. .IERC165
  5242. --
  5243. [.contract-item]
  5244. [[GovernorTimelockCompound-constructor-contract-ICompoundTimelock-]]
  5245. ==== `[.contract-item-name]#++constructor++#++(contract ICompoundTimelock timelockAddress)++` [.item-kind]#internal#
  5246. Set the timelock.
  5247. [.contract-item]
  5248. [[GovernorTimelockCompound-state-uint256-]]
  5249. ==== `[.contract-item-name]#++state++#++(uint256 proposalId) → enum IGovernor.ProposalState++` [.item-kind]#public#
  5250. Overridden version of the {Governor-state} function with added support for the `Expired` state.
  5251. [.contract-item]
  5252. [[GovernorTimelockCompound-timelock--]]
  5253. ==== `[.contract-item-name]#++timelock++#++() → address++` [.item-kind]#public#
  5254. Public accessor to check the address of the timelock
  5255. [.contract-item]
  5256. [[GovernorTimelockCompound-proposalNeedsQueuing-uint256-]]
  5257. ==== `[.contract-item-name]#++proposalNeedsQueuing++#++(uint256) → bool++` [.item-kind]#public#
  5258. [.contract-item]
  5259. [[GovernorTimelockCompound-_queueOperations-uint256-address---uint256---bytes---bytes32-]]
  5260. ==== `[.contract-item-name]#++_queueOperations++#++(uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32) → uint48++` [.item-kind]#internal#
  5261. Function to queue a proposal to the timelock.
  5262. [.contract-item]
  5263. [[GovernorTimelockCompound-_executeOperations-uint256-address---uint256---bytes---bytes32-]]
  5264. ==== `[.contract-item-name]#++_executeOperations++#++(uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32)++` [.item-kind]#internal#
  5265. Overridden version of the {Governor-_executeOperations} function that run the already queued proposal
  5266. through the timelock.
  5267. [.contract-item]
  5268. [[GovernorTimelockCompound-_cancel-address---uint256---bytes---bytes32-]]
  5269. ==== `[.contract-item-name]#++_cancel++#++(address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash) → uint256++` [.item-kind]#internal#
  5270. Overridden version of the {Governor-_cancel} function to cancel the timelocked proposal if it has already
  5271. been queued.
  5272. [.contract-item]
  5273. [[GovernorTimelockCompound-_executor--]]
  5274. ==== `[.contract-item-name]#++_executor++#++() → address++` [.item-kind]#internal#
  5275. Address through which the governor executes action. In this case, the timelock.
  5276. [.contract-item]
  5277. [[GovernorTimelockCompound-__acceptAdmin--]]
  5278. ==== `[.contract-item-name]#++__acceptAdmin++#++()++` [.item-kind]#public#
  5279. Accept admin right over the timelock.
  5280. [.contract-item]
  5281. [[GovernorTimelockCompound-updateTimelock-contract-ICompoundTimelock-]]
  5282. ==== `[.contract-item-name]#++updateTimelock++#++(contract ICompoundTimelock newTimelock)++` [.item-kind]#external#
  5283. Public endpoint to update the underlying timelock instance. Restricted to the timelock itself, so updates
  5284. must be proposed, scheduled, and executed through governance proposals.
  5285. For security reasons, the timelock must be handed over to another admin before setting up a new one. The two
  5286. operations (hand over the timelock) and do the update can be batched in a single proposal.
  5287. Note that if the timelock admin has been handed over in a previous operation, we refuse updates made through the
  5288. timelock if admin of the timelock has already been accepted and the operation is executed outside the scope of
  5289. governance.
  5290. CAUTION: It is not recommended to change the timelock while there are other queued governance proposals.
  5291. [.contract-item]
  5292. [[GovernorTimelockCompound-TimelockChange-address-address-]]
  5293. ==== `[.contract-item-name]#++TimelockChange++#++(address oldTimelock, address newTimelock)++` [.item-kind]#event#
  5294. Emitted when the timelock controller used for proposal execution is modified.
  5295. :VotingDelaySet: pass:normal[xref:#GovernorSettings-VotingDelaySet-uint256-uint256-[`++VotingDelaySet++`]]
  5296. :VotingPeriodSet: pass:normal[xref:#GovernorSettings-VotingPeriodSet-uint256-uint256-[`++VotingPeriodSet++`]]
  5297. :ProposalThresholdSet: pass:normal[xref:#GovernorSettings-ProposalThresholdSet-uint256-uint256-[`++ProposalThresholdSet++`]]
  5298. :constructor: pass:normal[xref:#GovernorSettings-constructor-uint48-uint32-uint256-[`++constructor++`]]
  5299. :votingDelay: pass:normal[xref:#GovernorSettings-votingDelay--[`++votingDelay++`]]
  5300. :votingPeriod: pass:normal[xref:#GovernorSettings-votingPeriod--[`++votingPeriod++`]]
  5301. :proposalThreshold: pass:normal[xref:#GovernorSettings-proposalThreshold--[`++proposalThreshold++`]]
  5302. :setVotingDelay: pass:normal[xref:#GovernorSettings-setVotingDelay-uint48-[`++setVotingDelay++`]]
  5303. :setVotingPeriod: pass:normal[xref:#GovernorSettings-setVotingPeriod-uint32-[`++setVotingPeriod++`]]
  5304. :setProposalThreshold: pass:normal[xref:#GovernorSettings-setProposalThreshold-uint256-[`++setProposalThreshold++`]]
  5305. :_setVotingDelay: pass:normal[xref:#GovernorSettings-_setVotingDelay-uint48-[`++_setVotingDelay++`]]
  5306. :_setVotingPeriod: pass:normal[xref:#GovernorSettings-_setVotingPeriod-uint32-[`++_setVotingPeriod++`]]
  5307. :_setProposalThreshold: pass:normal[xref:#GovernorSettings-_setProposalThreshold-uint256-[`++_setProposalThreshold++`]]
  5308. :constructor-uint48-uint32-uint256: pass:normal[xref:#GovernorSettings-constructor-uint48-uint32-uint256-[`++constructor++`]]
  5309. :votingDelay-: pass:normal[xref:#GovernorSettings-votingDelay--[`++votingDelay++`]]
  5310. :votingPeriod-: pass:normal[xref:#GovernorSettings-votingPeriod--[`++votingPeriod++`]]
  5311. :proposalThreshold-: pass:normal[xref:#GovernorSettings-proposalThreshold--[`++proposalThreshold++`]]
  5312. :setVotingDelay-uint48: pass:normal[xref:#GovernorSettings-setVotingDelay-uint48-[`++setVotingDelay++`]]
  5313. :setVotingPeriod-uint32: pass:normal[xref:#GovernorSettings-setVotingPeriod-uint32-[`++setVotingPeriod++`]]
  5314. :setProposalThreshold-uint256: pass:normal[xref:#GovernorSettings-setProposalThreshold-uint256-[`++setProposalThreshold++`]]
  5315. :_setVotingDelay-uint48: pass:normal[xref:#GovernorSettings-_setVotingDelay-uint48-[`++_setVotingDelay++`]]
  5316. :_setVotingPeriod-uint32: pass:normal[xref:#GovernorSettings-_setVotingPeriod-uint32-[`++_setVotingPeriod++`]]
  5317. :_setProposalThreshold-uint256: pass:normal[xref:#GovernorSettings-_setProposalThreshold-uint256-[`++_setProposalThreshold++`]]
  5318. [.contract]
  5319. [[GovernorSettings]]
  5320. === `++GovernorSettings++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorSettings.sol[{github-icon},role=heading-link]
  5321. [.hljs-theme-light.nopadding]
  5322. ```solidity
  5323. import "@openzeppelin/contracts/governance/extensions/GovernorSettings.sol";
  5324. ```
  5325. Extension of {Governor} for settings updatable through governance.
  5326. [.contract-index]
  5327. .Functions
  5328. --
  5329. * {xref-GovernorSettings-constructor-uint48-uint32-uint256-}[`++constructor(initialVotingDelay, initialVotingPeriod, initialProposalThreshold)++`]
  5330. * {xref-GovernorSettings-votingDelay--}[`++votingDelay()++`]
  5331. * {xref-GovernorSettings-votingPeriod--}[`++votingPeriod()++`]
  5332. * {xref-GovernorSettings-proposalThreshold--}[`++proposalThreshold()++`]
  5333. * {xref-GovernorSettings-setVotingDelay-uint48-}[`++setVotingDelay(newVotingDelay)++`]
  5334. * {xref-GovernorSettings-setVotingPeriod-uint32-}[`++setVotingPeriod(newVotingPeriod)++`]
  5335. * {xref-GovernorSettings-setProposalThreshold-uint256-}[`++setProposalThreshold(newProposalThreshold)++`]
  5336. * {xref-GovernorSettings-_setVotingDelay-uint48-}[`++_setVotingDelay(newVotingDelay)++`]
  5337. * {xref-GovernorSettings-_setVotingPeriod-uint32-}[`++_setVotingPeriod(newVotingPeriod)++`]
  5338. * {xref-GovernorSettings-_setProposalThreshold-uint256-}[`++_setProposalThreshold(newProposalThreshold)++`]
  5339. [.contract-subindex-inherited]
  5340. .Governor
  5341. * {xref-Governor-receive--}[`++receive()++`]
  5342. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  5343. * {xref-Governor-name--}[`++name()++`]
  5344. * {xref-Governor-version--}[`++version()++`]
  5345. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  5346. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  5347. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  5348. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  5349. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  5350. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  5351. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  5352. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  5353. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  5354. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  5355. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  5356. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  5357. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  5358. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  5359. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  5360. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  5361. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  5362. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  5363. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  5364. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  5365. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  5366. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  5367. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  5368. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  5369. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  5370. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  5371. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  5372. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  5373. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  5374. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  5375. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  5376. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  5377. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  5378. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  5379. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  5380. * {xref-Governor-_executor--}[`++_executor()++`]
  5381. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  5382. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  5383. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  5384. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  5385. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  5386. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  5387. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  5388. * {xref-Governor-clock--}[`++clock()++`]
  5389. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  5390. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  5391. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  5392. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  5393. [.contract-subindex-inherited]
  5394. .IERC1155Receiver
  5395. [.contract-subindex-inherited]
  5396. .IERC721Receiver
  5397. [.contract-subindex-inherited]
  5398. .IGovernor
  5399. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  5400. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  5401. [.contract-subindex-inherited]
  5402. .IERC6372
  5403. [.contract-subindex-inherited]
  5404. .Nonces
  5405. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  5406. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  5407. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  5408. [.contract-subindex-inherited]
  5409. .EIP712
  5410. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  5411. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  5412. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  5413. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  5414. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  5415. [.contract-subindex-inherited]
  5416. .IERC5267
  5417. [.contract-subindex-inherited]
  5418. .ERC165
  5419. [.contract-subindex-inherited]
  5420. .IERC165
  5421. --
  5422. [.contract-index]
  5423. .Events
  5424. --
  5425. * {xref-GovernorSettings-VotingDelaySet-uint256-uint256-}[`++VotingDelaySet(oldVotingDelay, newVotingDelay)++`]
  5426. * {xref-GovernorSettings-VotingPeriodSet-uint256-uint256-}[`++VotingPeriodSet(oldVotingPeriod, newVotingPeriod)++`]
  5427. * {xref-GovernorSettings-ProposalThresholdSet-uint256-uint256-}[`++ProposalThresholdSet(oldProposalThreshold, newProposalThreshold)++`]
  5428. [.contract-subindex-inherited]
  5429. .Governor
  5430. [.contract-subindex-inherited]
  5431. .IERC1155Receiver
  5432. [.contract-subindex-inherited]
  5433. .IERC721Receiver
  5434. [.contract-subindex-inherited]
  5435. .IGovernor
  5436. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  5437. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  5438. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  5439. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  5440. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  5441. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  5442. [.contract-subindex-inherited]
  5443. .IERC6372
  5444. [.contract-subindex-inherited]
  5445. .Nonces
  5446. [.contract-subindex-inherited]
  5447. .EIP712
  5448. [.contract-subindex-inherited]
  5449. .IERC5267
  5450. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  5451. [.contract-subindex-inherited]
  5452. .ERC165
  5453. [.contract-subindex-inherited]
  5454. .IERC165
  5455. --
  5456. [.contract-index]
  5457. .Errors
  5458. --
  5459. [.contract-subindex-inherited]
  5460. .Governor
  5461. [.contract-subindex-inherited]
  5462. .IERC1155Receiver
  5463. [.contract-subindex-inherited]
  5464. .IERC721Receiver
  5465. [.contract-subindex-inherited]
  5466. .IGovernor
  5467. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  5468. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  5469. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  5470. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  5471. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  5472. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  5473. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  5474. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  5475. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  5476. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  5477. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  5478. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  5479. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  5480. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  5481. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  5482. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  5483. [.contract-subindex-inherited]
  5484. .IERC6372
  5485. [.contract-subindex-inherited]
  5486. .Nonces
  5487. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  5488. [.contract-subindex-inherited]
  5489. .EIP712
  5490. [.contract-subindex-inherited]
  5491. .IERC5267
  5492. [.contract-subindex-inherited]
  5493. .ERC165
  5494. [.contract-subindex-inherited]
  5495. .IERC165
  5496. --
  5497. [.contract-item]
  5498. [[GovernorSettings-constructor-uint48-uint32-uint256-]]
  5499. ==== `[.contract-item-name]#++constructor++#++(uint48 initialVotingDelay, uint32 initialVotingPeriod, uint256 initialProposalThreshold)++` [.item-kind]#internal#
  5500. Initialize the governance parameters.
  5501. [.contract-item]
  5502. [[GovernorSettings-votingDelay--]]
  5503. ==== `[.contract-item-name]#++votingDelay++#++() → uint256++` [.item-kind]#public#
  5504. [.contract-item]
  5505. [[GovernorSettings-votingPeriod--]]
  5506. ==== `[.contract-item-name]#++votingPeriod++#++() → uint256++` [.item-kind]#public#
  5507. [.contract-item]
  5508. [[GovernorSettings-proposalThreshold--]]
  5509. ==== `[.contract-item-name]#++proposalThreshold++#++() → uint256++` [.item-kind]#public#
  5510. The number of votes required in order for a voter to become a proposer.
  5511. [.contract-item]
  5512. [[GovernorSettings-setVotingDelay-uint48-]]
  5513. ==== `[.contract-item-name]#++setVotingDelay++#++(uint48 newVotingDelay)++` [.item-kind]#public#
  5514. Update the voting delay. This operation can only be performed through a governance proposal.
  5515. Emits a {VotingDelaySet} event.
  5516. [.contract-item]
  5517. [[GovernorSettings-setVotingPeriod-uint32-]]
  5518. ==== `[.contract-item-name]#++setVotingPeriod++#++(uint32 newVotingPeriod)++` [.item-kind]#public#
  5519. Update the voting period. This operation can only be performed through a governance proposal.
  5520. Emits a {VotingPeriodSet} event.
  5521. [.contract-item]
  5522. [[GovernorSettings-setProposalThreshold-uint256-]]
  5523. ==== `[.contract-item-name]#++setProposalThreshold++#++(uint256 newProposalThreshold)++` [.item-kind]#public#
  5524. Update the proposal threshold. This operation can only be performed through a governance proposal.
  5525. Emits a {ProposalThresholdSet} event.
  5526. [.contract-item]
  5527. [[GovernorSettings-_setVotingDelay-uint48-]]
  5528. ==== `[.contract-item-name]#++_setVotingDelay++#++(uint48 newVotingDelay)++` [.item-kind]#internal#
  5529. Internal setter for the voting delay.
  5530. Emits a {VotingDelaySet} event.
  5531. [.contract-item]
  5532. [[GovernorSettings-_setVotingPeriod-uint32-]]
  5533. ==== `[.contract-item-name]#++_setVotingPeriod++#++(uint32 newVotingPeriod)++` [.item-kind]#internal#
  5534. Internal setter for the voting period.
  5535. Emits a {VotingPeriodSet} event.
  5536. [.contract-item]
  5537. [[GovernorSettings-_setProposalThreshold-uint256-]]
  5538. ==== `[.contract-item-name]#++_setProposalThreshold++#++(uint256 newProposalThreshold)++` [.item-kind]#internal#
  5539. Internal setter for the proposal threshold.
  5540. Emits a {ProposalThresholdSet} event.
  5541. [.contract-item]
  5542. [[GovernorSettings-VotingDelaySet-uint256-uint256-]]
  5543. ==== `[.contract-item-name]#++VotingDelaySet++#++(uint256 oldVotingDelay, uint256 newVotingDelay)++` [.item-kind]#event#
  5544. [.contract-item]
  5545. [[GovernorSettings-VotingPeriodSet-uint256-uint256-]]
  5546. ==== `[.contract-item-name]#++VotingPeriodSet++#++(uint256 oldVotingPeriod, uint256 newVotingPeriod)++` [.item-kind]#event#
  5547. [.contract-item]
  5548. [[GovernorSettings-ProposalThresholdSet-uint256-uint256-]]
  5549. ==== `[.contract-item-name]#++ProposalThresholdSet++#++(uint256 oldProposalThreshold, uint256 newProposalThreshold)++` [.item-kind]#event#
  5550. :ProposalExtended: pass:normal[xref:#GovernorPreventLateQuorum-ProposalExtended-uint256-uint64-[`++ProposalExtended++`]]
  5551. :LateQuorumVoteExtensionSet: pass:normal[xref:#GovernorPreventLateQuorum-LateQuorumVoteExtensionSet-uint64-uint64-[`++LateQuorumVoteExtensionSet++`]]
  5552. :constructor: pass:normal[xref:#GovernorPreventLateQuorum-constructor-uint48-[`++constructor++`]]
  5553. :proposalDeadline: pass:normal[xref:#GovernorPreventLateQuorum-proposalDeadline-uint256-[`++proposalDeadline++`]]
  5554. :_tallyUpdated: pass:normal[xref:#GovernorPreventLateQuorum-_tallyUpdated-uint256-[`++_tallyUpdated++`]]
  5555. :lateQuorumVoteExtension: pass:normal[xref:#GovernorPreventLateQuorum-lateQuorumVoteExtension--[`++lateQuorumVoteExtension++`]]
  5556. :setLateQuorumVoteExtension: pass:normal[xref:#GovernorPreventLateQuorum-setLateQuorumVoteExtension-uint48-[`++setLateQuorumVoteExtension++`]]
  5557. :_setLateQuorumVoteExtension: pass:normal[xref:#GovernorPreventLateQuorum-_setLateQuorumVoteExtension-uint48-[`++_setLateQuorumVoteExtension++`]]
  5558. :constructor-uint48: pass:normal[xref:#GovernorPreventLateQuorum-constructor-uint48-[`++constructor++`]]
  5559. :proposalDeadline-uint256: pass:normal[xref:#GovernorPreventLateQuorum-proposalDeadline-uint256-[`++proposalDeadline++`]]
  5560. :_tallyUpdated-uint256: pass:normal[xref:#GovernorPreventLateQuorum-_tallyUpdated-uint256-[`++_tallyUpdated++`]]
  5561. :lateQuorumVoteExtension-: pass:normal[xref:#GovernorPreventLateQuorum-lateQuorumVoteExtension--[`++lateQuorumVoteExtension++`]]
  5562. :setLateQuorumVoteExtension-uint48: pass:normal[xref:#GovernorPreventLateQuorum-setLateQuorumVoteExtension-uint48-[`++setLateQuorumVoteExtension++`]]
  5563. :_setLateQuorumVoteExtension-uint48: pass:normal[xref:#GovernorPreventLateQuorum-_setLateQuorumVoteExtension-uint48-[`++_setLateQuorumVoteExtension++`]]
  5564. [.contract]
  5565. [[GovernorPreventLateQuorum]]
  5566. === `++GovernorPreventLateQuorum++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorPreventLateQuorum.sol[{github-icon},role=heading-link]
  5567. [.hljs-theme-light.nopadding]
  5568. ```solidity
  5569. import "@openzeppelin/contracts/governance/extensions/GovernorPreventLateQuorum.sol";
  5570. ```
  5571. A module that ensures there is a minimum voting period after quorum is reached. This prevents a large voter from
  5572. swaying a vote and triggering quorum at the last minute, by ensuring there is always time for other voters to react
  5573. and try to oppose the decision.
  5574. If a vote causes quorum to be reached, the proposal's voting period may be extended so that it does not end before at
  5575. least a specified time has passed (the "vote extension" parameter). This parameter can be set through a governance
  5576. proposal.
  5577. [.contract-index]
  5578. .Functions
  5579. --
  5580. * {xref-GovernorPreventLateQuorum-constructor-uint48-}[`++constructor(initialVoteExtension)++`]
  5581. * {xref-GovernorPreventLateQuorum-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  5582. * {xref-GovernorPreventLateQuorum-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  5583. * {xref-GovernorPreventLateQuorum-lateQuorumVoteExtension--}[`++lateQuorumVoteExtension()++`]
  5584. * {xref-GovernorPreventLateQuorum-setLateQuorumVoteExtension-uint48-}[`++setLateQuorumVoteExtension(newVoteExtension)++`]
  5585. * {xref-GovernorPreventLateQuorum-_setLateQuorumVoteExtension-uint48-}[`++_setLateQuorumVoteExtension(newVoteExtension)++`]
  5586. [.contract-subindex-inherited]
  5587. .Governor
  5588. * {xref-Governor-receive--}[`++receive()++`]
  5589. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  5590. * {xref-Governor-name--}[`++name()++`]
  5591. * {xref-Governor-version--}[`++version()++`]
  5592. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  5593. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  5594. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  5595. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  5596. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  5597. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  5598. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  5599. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  5600. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  5601. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  5602. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  5603. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  5604. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  5605. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  5606. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  5607. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  5608. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  5609. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  5610. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  5611. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  5612. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  5613. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  5614. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  5615. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  5616. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  5617. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  5618. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  5619. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  5620. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  5621. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  5622. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  5623. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  5624. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  5625. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  5626. * {xref-Governor-_executor--}[`++_executor()++`]
  5627. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  5628. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  5629. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  5630. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  5631. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  5632. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  5633. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  5634. * {xref-Governor-clock--}[`++clock()++`]
  5635. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  5636. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  5637. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  5638. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  5639. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  5640. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  5641. [.contract-subindex-inherited]
  5642. .IERC1155Receiver
  5643. [.contract-subindex-inherited]
  5644. .IERC721Receiver
  5645. [.contract-subindex-inherited]
  5646. .IGovernor
  5647. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  5648. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  5649. [.contract-subindex-inherited]
  5650. .IERC6372
  5651. [.contract-subindex-inherited]
  5652. .Nonces
  5653. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  5654. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  5655. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  5656. [.contract-subindex-inherited]
  5657. .EIP712
  5658. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  5659. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  5660. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  5661. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  5662. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  5663. [.contract-subindex-inherited]
  5664. .IERC5267
  5665. [.contract-subindex-inherited]
  5666. .ERC165
  5667. [.contract-subindex-inherited]
  5668. .IERC165
  5669. --
  5670. [.contract-index]
  5671. .Events
  5672. --
  5673. * {xref-GovernorPreventLateQuorum-ProposalExtended-uint256-uint64-}[`++ProposalExtended(proposalId, extendedDeadline)++`]
  5674. * {xref-GovernorPreventLateQuorum-LateQuorumVoteExtensionSet-uint64-uint64-}[`++LateQuorumVoteExtensionSet(oldVoteExtension, newVoteExtension)++`]
  5675. [.contract-subindex-inherited]
  5676. .Governor
  5677. [.contract-subindex-inherited]
  5678. .IERC1155Receiver
  5679. [.contract-subindex-inherited]
  5680. .IERC721Receiver
  5681. [.contract-subindex-inherited]
  5682. .IGovernor
  5683. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  5684. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  5685. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  5686. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  5687. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  5688. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  5689. [.contract-subindex-inherited]
  5690. .IERC6372
  5691. [.contract-subindex-inherited]
  5692. .Nonces
  5693. [.contract-subindex-inherited]
  5694. .EIP712
  5695. [.contract-subindex-inherited]
  5696. .IERC5267
  5697. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  5698. [.contract-subindex-inherited]
  5699. .ERC165
  5700. [.contract-subindex-inherited]
  5701. .IERC165
  5702. --
  5703. [.contract-index]
  5704. .Errors
  5705. --
  5706. [.contract-subindex-inherited]
  5707. .Governor
  5708. [.contract-subindex-inherited]
  5709. .IERC1155Receiver
  5710. [.contract-subindex-inherited]
  5711. .IERC721Receiver
  5712. [.contract-subindex-inherited]
  5713. .IGovernor
  5714. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  5715. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  5716. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  5717. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  5718. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  5719. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  5720. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  5721. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  5722. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  5723. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  5724. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  5725. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  5726. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  5727. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  5728. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  5729. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  5730. [.contract-subindex-inherited]
  5731. .IERC6372
  5732. [.contract-subindex-inherited]
  5733. .Nonces
  5734. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  5735. [.contract-subindex-inherited]
  5736. .EIP712
  5737. [.contract-subindex-inherited]
  5738. .IERC5267
  5739. [.contract-subindex-inherited]
  5740. .ERC165
  5741. [.contract-subindex-inherited]
  5742. .IERC165
  5743. --
  5744. [.contract-item]
  5745. [[GovernorPreventLateQuorum-constructor-uint48-]]
  5746. ==== `[.contract-item-name]#++constructor++#++(uint48 initialVoteExtension)++` [.item-kind]#internal#
  5747. Initializes the vote extension parameter: the time in either number of blocks or seconds (depending on the
  5748. governor clock mode) that is required to pass since the moment a proposal reaches quorum until its voting period
  5749. ends. If necessary the voting period will be extended beyond the one set during proposal creation.
  5750. [.contract-item]
  5751. [[GovernorPreventLateQuorum-proposalDeadline-uint256-]]
  5752. ==== `[.contract-item-name]#++proposalDeadline++#++(uint256 proposalId) → uint256++` [.item-kind]#public#
  5753. Returns the proposal deadline, which may have been extended beyond that set at proposal creation, if the
  5754. proposal reached quorum late in the voting period. See {Governor-proposalDeadline}.
  5755. [.contract-item]
  5756. [[GovernorPreventLateQuorum-_tallyUpdated-uint256-]]
  5757. ==== `[.contract-item-name]#++_tallyUpdated++#++(uint256 proposalId)++` [.item-kind]#internal#
  5758. Vote tally updated and detects if it caused quorum to be reached, potentially extending the voting period.
  5759. May emit a {ProposalExtended} event.
  5760. [.contract-item]
  5761. [[GovernorPreventLateQuorum-lateQuorumVoteExtension--]]
  5762. ==== `[.contract-item-name]#++lateQuorumVoteExtension++#++() → uint48++` [.item-kind]#public#
  5763. Returns the current value of the vote extension parameter: the number of blocks that are required to pass
  5764. from the time a proposal reaches quorum until its voting period ends.
  5765. [.contract-item]
  5766. [[GovernorPreventLateQuorum-setLateQuorumVoteExtension-uint48-]]
  5767. ==== `[.contract-item-name]#++setLateQuorumVoteExtension++#++(uint48 newVoteExtension)++` [.item-kind]#public#
  5768. Changes the {lateQuorumVoteExtension}. This operation can only be performed by the governance executor,
  5769. generally through a governance proposal.
  5770. Emits a {LateQuorumVoteExtensionSet} event.
  5771. [.contract-item]
  5772. [[GovernorPreventLateQuorum-_setLateQuorumVoteExtension-uint48-]]
  5773. ==== `[.contract-item-name]#++_setLateQuorumVoteExtension++#++(uint48 newVoteExtension)++` [.item-kind]#internal#
  5774. Changes the {lateQuorumVoteExtension}. This is an internal function that can be exposed in a public function
  5775. like {setLateQuorumVoteExtension} if another access control mechanism is needed.
  5776. Emits a {LateQuorumVoteExtensionSet} event.
  5777. [.contract-item]
  5778. [[GovernorPreventLateQuorum-ProposalExtended-uint256-uint64-]]
  5779. ==== `[.contract-item-name]#++ProposalExtended++#++(uint256 indexed proposalId, uint64 extendedDeadline)++` [.item-kind]#event#
  5780. Emitted when a proposal deadline is pushed back due to reaching quorum late in its voting period.
  5781. [.contract-item]
  5782. [[GovernorPreventLateQuorum-LateQuorumVoteExtensionSet-uint64-uint64-]]
  5783. ==== `[.contract-item-name]#++LateQuorumVoteExtensionSet++#++(uint64 oldVoteExtension, uint64 newVoteExtension)++` [.item-kind]#event#
  5784. Emitted when the {lateQuorumVoteExtension} parameter is changed.
  5785. :ProposalDetails: pass:normal[xref:#GovernorStorage-ProposalDetails[`++ProposalDetails++`]]
  5786. :_propose: pass:normal[xref:#GovernorStorage-_propose-address---uint256---bytes---string-address-[`++_propose++`]]
  5787. :queue: pass:normal[xref:#GovernorStorage-queue-uint256-[`++queue++`]]
  5788. :execute: pass:normal[xref:#GovernorStorage-execute-uint256-[`++execute++`]]
  5789. :cancel: pass:normal[xref:#GovernorStorage-cancel-uint256-[`++cancel++`]]
  5790. :proposalCount: pass:normal[xref:#GovernorStorage-proposalCount--[`++proposalCount++`]]
  5791. :proposalDetails: pass:normal[xref:#GovernorStorage-proposalDetails-uint256-[`++proposalDetails++`]]
  5792. :proposalDetailsAt: pass:normal[xref:#GovernorStorage-proposalDetailsAt-uint256-[`++proposalDetailsAt++`]]
  5793. :_propose-address---uint256---bytes---string-address: pass:normal[xref:#GovernorStorage-_propose-address---uint256---bytes---string-address-[`++_propose++`]]
  5794. :queue-uint256: pass:normal[xref:#GovernorStorage-queue-uint256-[`++queue++`]]
  5795. :execute-uint256: pass:normal[xref:#GovernorStorage-execute-uint256-[`++execute++`]]
  5796. :cancel-uint256: pass:normal[xref:#GovernorStorage-cancel-uint256-[`++cancel++`]]
  5797. :proposalCount-: pass:normal[xref:#GovernorStorage-proposalCount--[`++proposalCount++`]]
  5798. :proposalDetails-uint256: pass:normal[xref:#GovernorStorage-proposalDetails-uint256-[`++proposalDetails++`]]
  5799. :proposalDetailsAt-uint256: pass:normal[xref:#GovernorStorage-proposalDetailsAt-uint256-[`++proposalDetailsAt++`]]
  5800. [.contract]
  5801. [[GovernorStorage]]
  5802. === `++GovernorStorage++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorStorage.sol[{github-icon},role=heading-link]
  5803. [.hljs-theme-light.nopadding]
  5804. ```solidity
  5805. import "@openzeppelin/contracts/governance/extensions/GovernorStorage.sol";
  5806. ```
  5807. Extension of {Governor} that implements storage of proposal details. This modules also provides primitives for
  5808. the enumerability of proposals.
  5809. Use cases for this module include:
  5810. - UIs that explore the proposal state without relying on event indexing.
  5811. - Using only the proposalId as an argument in the {Governor-queue} and {Governor-execute} functions for L2 chains
  5812. where storage is cheap compared to calldata.
  5813. [.contract-index]
  5814. .Functions
  5815. --
  5816. * {xref-GovernorStorage-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  5817. * {xref-GovernorStorage-queue-uint256-}[`++queue(proposalId)++`]
  5818. * {xref-GovernorStorage-execute-uint256-}[`++execute(proposalId)++`]
  5819. * {xref-GovernorStorage-cancel-uint256-}[`++cancel(proposalId)++`]
  5820. * {xref-GovernorStorage-proposalCount--}[`++proposalCount()++`]
  5821. * {xref-GovernorStorage-proposalDetails-uint256-}[`++proposalDetails(proposalId)++`]
  5822. * {xref-GovernorStorage-proposalDetailsAt-uint256-}[`++proposalDetailsAt(index)++`]
  5823. [.contract-subindex-inherited]
  5824. .Governor
  5825. * {xref-Governor-receive--}[`++receive()++`]
  5826. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  5827. * {xref-Governor-name--}[`++name()++`]
  5828. * {xref-Governor-version--}[`++version()++`]
  5829. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  5830. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  5831. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  5832. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  5833. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  5834. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  5835. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  5836. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  5837. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  5838. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  5839. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  5840. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  5841. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  5842. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  5843. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  5844. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  5845. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  5846. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  5847. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  5848. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  5849. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  5850. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  5851. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  5852. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  5853. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  5854. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  5855. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  5856. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  5857. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  5858. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  5859. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  5860. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  5861. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  5862. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  5863. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  5864. * {xref-Governor-_executor--}[`++_executor()++`]
  5865. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  5866. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  5867. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  5868. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  5869. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  5870. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  5871. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  5872. * {xref-Governor-clock--}[`++clock()++`]
  5873. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  5874. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  5875. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  5876. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  5877. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  5878. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  5879. [.contract-subindex-inherited]
  5880. .IERC1155Receiver
  5881. [.contract-subindex-inherited]
  5882. .IERC721Receiver
  5883. [.contract-subindex-inherited]
  5884. .IGovernor
  5885. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  5886. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  5887. [.contract-subindex-inherited]
  5888. .IERC6372
  5889. [.contract-subindex-inherited]
  5890. .Nonces
  5891. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  5892. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  5893. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  5894. [.contract-subindex-inherited]
  5895. .EIP712
  5896. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  5897. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  5898. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  5899. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  5900. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  5901. [.contract-subindex-inherited]
  5902. .IERC5267
  5903. [.contract-subindex-inherited]
  5904. .ERC165
  5905. [.contract-subindex-inherited]
  5906. .IERC165
  5907. --
  5908. [.contract-index]
  5909. .Events
  5910. --
  5911. [.contract-subindex-inherited]
  5912. .Governor
  5913. [.contract-subindex-inherited]
  5914. .IERC1155Receiver
  5915. [.contract-subindex-inherited]
  5916. .IERC721Receiver
  5917. [.contract-subindex-inherited]
  5918. .IGovernor
  5919. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  5920. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  5921. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  5922. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  5923. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  5924. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  5925. [.contract-subindex-inherited]
  5926. .IERC6372
  5927. [.contract-subindex-inherited]
  5928. .Nonces
  5929. [.contract-subindex-inherited]
  5930. .EIP712
  5931. [.contract-subindex-inherited]
  5932. .IERC5267
  5933. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  5934. [.contract-subindex-inherited]
  5935. .ERC165
  5936. [.contract-subindex-inherited]
  5937. .IERC165
  5938. --
  5939. [.contract-index]
  5940. .Errors
  5941. --
  5942. [.contract-subindex-inherited]
  5943. .Governor
  5944. [.contract-subindex-inherited]
  5945. .IERC1155Receiver
  5946. [.contract-subindex-inherited]
  5947. .IERC721Receiver
  5948. [.contract-subindex-inherited]
  5949. .IGovernor
  5950. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  5951. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  5952. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  5953. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  5954. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  5955. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  5956. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  5957. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  5958. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  5959. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  5960. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  5961. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  5962. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  5963. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  5964. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  5965. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  5966. [.contract-subindex-inherited]
  5967. .IERC6372
  5968. [.contract-subindex-inherited]
  5969. .Nonces
  5970. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  5971. [.contract-subindex-inherited]
  5972. .EIP712
  5973. [.contract-subindex-inherited]
  5974. .IERC5267
  5975. [.contract-subindex-inherited]
  5976. .ERC165
  5977. [.contract-subindex-inherited]
  5978. .IERC165
  5979. --
  5980. [.contract-item]
  5981. [[GovernorStorage-_propose-address---uint256---bytes---string-address-]]
  5982. ==== `[.contract-item-name]#++_propose++#++(address[] targets, uint256[] values, bytes[] calldatas, string description, address proposer) → uint256++` [.item-kind]#internal#
  5983. Hook into the proposing mechanism
  5984. [.contract-item]
  5985. [[GovernorStorage-queue-uint256-]]
  5986. ==== `[.contract-item-name]#++queue++#++(uint256 proposalId)++` [.item-kind]#public#
  5987. Version of {IGovernor-queue} with only `proposalId` as an argument.
  5988. [.contract-item]
  5989. [[GovernorStorage-execute-uint256-]]
  5990. ==== `[.contract-item-name]#++execute++#++(uint256 proposalId)++` [.item-kind]#public#
  5991. Version of {IGovernor-execute} with only `proposalId` as an argument.
  5992. [.contract-item]
  5993. [[GovernorStorage-cancel-uint256-]]
  5994. ==== `[.contract-item-name]#++cancel++#++(uint256 proposalId)++` [.item-kind]#public#
  5995. ProposalId version of {IGovernor-cancel}.
  5996. [.contract-item]
  5997. [[GovernorStorage-proposalCount--]]
  5998. ==== `[.contract-item-name]#++proposalCount++#++() → uint256++` [.item-kind]#public#
  5999. Returns the number of stored proposals.
  6000. [.contract-item]
  6001. [[GovernorStorage-proposalDetails-uint256-]]
  6002. ==== `[.contract-item-name]#++proposalDetails++#++(uint256 proposalId) → address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash++` [.item-kind]#public#
  6003. Returns the details of a proposalId. Reverts if `proposalId` is not a known proposal.
  6004. [.contract-item]
  6005. [[GovernorStorage-proposalDetailsAt-uint256-]]
  6006. ==== `[.contract-item-name]#++proposalDetailsAt++#++(uint256 index) → uint256 proposalId, address[] targets, uint256[] values, bytes[] calldatas, bytes32 descriptionHash++` [.item-kind]#public#
  6007. Returns the details (including the proposalId) of a proposal given its sequential index.
  6008. :ProposalGuardianSet: pass:normal[xref:#GovernorProposalGuardian-ProposalGuardianSet-address-address-[`++ProposalGuardianSet++`]]
  6009. :proposalGuardian: pass:normal[xref:#GovernorProposalGuardian-proposalGuardian--[`++proposalGuardian++`]]
  6010. :setProposalGuardian: pass:normal[xref:#GovernorProposalGuardian-setProposalGuardian-address-[`++setProposalGuardian++`]]
  6011. :_setProposalGuardian: pass:normal[xref:#GovernorProposalGuardian-_setProposalGuardian-address-[`++_setProposalGuardian++`]]
  6012. :_validateCancel: pass:normal[xref:#GovernorProposalGuardian-_validateCancel-uint256-address-[`++_validateCancel++`]]
  6013. :proposalGuardian-: pass:normal[xref:#GovernorProposalGuardian-proposalGuardian--[`++proposalGuardian++`]]
  6014. :setProposalGuardian-address: pass:normal[xref:#GovernorProposalGuardian-setProposalGuardian-address-[`++setProposalGuardian++`]]
  6015. :_setProposalGuardian-address: pass:normal[xref:#GovernorProposalGuardian-_setProposalGuardian-address-[`++_setProposalGuardian++`]]
  6016. :_validateCancel-uint256-address: pass:normal[xref:#GovernorProposalGuardian-_validateCancel-uint256-address-[`++_validateCancel++`]]
  6017. [.contract]
  6018. [[GovernorProposalGuardian]]
  6019. === `++GovernorProposalGuardian++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorProposalGuardian.sol[{github-icon},role=heading-link]
  6020. [.hljs-theme-light.nopadding]
  6021. ```solidity
  6022. import "@openzeppelin/contracts/governance/extensions/GovernorProposalGuardian.sol";
  6023. ```
  6024. Extension of {Governor} which adds a proposal guardian that can cancel proposals at any stage in the proposal's lifecycle.
  6025. NOTE: if the proposal guardian is not configured, then proposers take this role for their proposals.
  6026. [.contract-index]
  6027. .Functions
  6028. --
  6029. * {xref-GovernorProposalGuardian-proposalGuardian--}[`++proposalGuardian()++`]
  6030. * {xref-GovernorProposalGuardian-setProposalGuardian-address-}[`++setProposalGuardian(newProposalGuardian)++`]
  6031. * {xref-GovernorProposalGuardian-_setProposalGuardian-address-}[`++_setProposalGuardian(newProposalGuardian)++`]
  6032. * {xref-GovernorProposalGuardian-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  6033. [.contract-subindex-inherited]
  6034. .Governor
  6035. * {xref-Governor-receive--}[`++receive()++`]
  6036. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  6037. * {xref-Governor-name--}[`++name()++`]
  6038. * {xref-Governor-version--}[`++version()++`]
  6039. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  6040. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  6041. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  6042. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  6043. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  6044. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  6045. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  6046. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  6047. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  6048. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  6049. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  6050. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  6051. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  6052. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  6053. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  6054. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  6055. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  6056. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  6057. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  6058. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  6059. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  6060. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  6061. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  6062. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  6063. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  6064. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  6065. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  6066. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  6067. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  6068. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  6069. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  6070. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  6071. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  6072. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  6073. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  6074. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  6075. * {xref-Governor-_executor--}[`++_executor()++`]
  6076. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  6077. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  6078. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  6079. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  6080. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  6081. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  6082. * {xref-Governor-clock--}[`++clock()++`]
  6083. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  6084. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  6085. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  6086. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  6087. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  6088. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  6089. [.contract-subindex-inherited]
  6090. .IERC1155Receiver
  6091. [.contract-subindex-inherited]
  6092. .IERC721Receiver
  6093. [.contract-subindex-inherited]
  6094. .IGovernor
  6095. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  6096. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  6097. [.contract-subindex-inherited]
  6098. .IERC6372
  6099. [.contract-subindex-inherited]
  6100. .Nonces
  6101. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  6102. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  6103. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  6104. [.contract-subindex-inherited]
  6105. .EIP712
  6106. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  6107. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  6108. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  6109. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  6110. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  6111. [.contract-subindex-inherited]
  6112. .IERC5267
  6113. [.contract-subindex-inherited]
  6114. .ERC165
  6115. [.contract-subindex-inherited]
  6116. .IERC165
  6117. --
  6118. [.contract-index]
  6119. .Events
  6120. --
  6121. * {xref-GovernorProposalGuardian-ProposalGuardianSet-address-address-}[`++ProposalGuardianSet(oldProposalGuardian, newProposalGuardian)++`]
  6122. [.contract-subindex-inherited]
  6123. .Governor
  6124. [.contract-subindex-inherited]
  6125. .IERC1155Receiver
  6126. [.contract-subindex-inherited]
  6127. .IERC721Receiver
  6128. [.contract-subindex-inherited]
  6129. .IGovernor
  6130. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  6131. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  6132. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  6133. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  6134. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  6135. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  6136. [.contract-subindex-inherited]
  6137. .IERC6372
  6138. [.contract-subindex-inherited]
  6139. .Nonces
  6140. [.contract-subindex-inherited]
  6141. .EIP712
  6142. [.contract-subindex-inherited]
  6143. .IERC5267
  6144. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  6145. [.contract-subindex-inherited]
  6146. .ERC165
  6147. [.contract-subindex-inherited]
  6148. .IERC165
  6149. --
  6150. [.contract-index]
  6151. .Errors
  6152. --
  6153. [.contract-subindex-inherited]
  6154. .Governor
  6155. [.contract-subindex-inherited]
  6156. .IERC1155Receiver
  6157. [.contract-subindex-inherited]
  6158. .IERC721Receiver
  6159. [.contract-subindex-inherited]
  6160. .IGovernor
  6161. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  6162. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  6163. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  6164. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  6165. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  6166. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  6167. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  6168. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  6169. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  6170. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  6171. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  6172. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  6173. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  6174. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  6175. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  6176. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  6177. [.contract-subindex-inherited]
  6178. .IERC6372
  6179. [.contract-subindex-inherited]
  6180. .Nonces
  6181. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  6182. [.contract-subindex-inherited]
  6183. .EIP712
  6184. [.contract-subindex-inherited]
  6185. .IERC5267
  6186. [.contract-subindex-inherited]
  6187. .ERC165
  6188. [.contract-subindex-inherited]
  6189. .IERC165
  6190. --
  6191. [.contract-item]
  6192. [[GovernorProposalGuardian-proposalGuardian--]]
  6193. ==== `[.contract-item-name]#++proposalGuardian++#++() → address++` [.item-kind]#public#
  6194. Getter that returns the address of the proposal guardian.
  6195. [.contract-item]
  6196. [[GovernorProposalGuardian-setProposalGuardian-address-]]
  6197. ==== `[.contract-item-name]#++setProposalGuardian++#++(address newProposalGuardian)++` [.item-kind]#public#
  6198. Update the proposal guardian's address. This operation can only be performed through a governance proposal.
  6199. Emits a {ProposalGuardianSet} event.
  6200. [.contract-item]
  6201. [[GovernorProposalGuardian-_setProposalGuardian-address-]]
  6202. ==== `[.contract-item-name]#++_setProposalGuardian++#++(address newProposalGuardian)++` [.item-kind]#internal#
  6203. Internal setter for the proposal guardian.
  6204. Emits a {ProposalGuardianSet} event.
  6205. [.contract-item]
  6206. [[GovernorProposalGuardian-_validateCancel-uint256-address-]]
  6207. ==== `[.contract-item-name]#++_validateCancel++#++(uint256 proposalId, address caller) → bool++` [.item-kind]#internal#
  6208. Override {Governor-_validateCancel} to implement the extended cancellation logic.
  6209. * The {proposalGuardian} can cancel any proposal at any point.
  6210. * If no proposal guardian is set, the {IGovernor-proposalProposer} can cancel their proposals at any point.
  6211. * In any case, permissions defined in {Governor-_validateCancel} (or another override) remains valid.
  6212. [.contract-item]
  6213. [[GovernorProposalGuardian-ProposalGuardianSet-address-address-]]
  6214. ==== `[.contract-item-name]#++ProposalGuardianSet++#++(address oldProposalGuardian, address newProposalGuardian)++` [.item-kind]#event#
  6215. :superQuorum: pass:normal[xref:#GovernorSuperQuorum-superQuorum-uint256-[`++superQuorum++`]]
  6216. :proposalVotes: pass:normal[xref:#GovernorSuperQuorum-proposalVotes-uint256-[`++proposalVotes++`]]
  6217. :state: pass:normal[xref:#GovernorSuperQuorum-state-uint256-[`++state++`]]
  6218. :superQuorum-uint256: pass:normal[xref:#GovernorSuperQuorum-superQuorum-uint256-[`++superQuorum++`]]
  6219. :proposalVotes-uint256: pass:normal[xref:#GovernorSuperQuorum-proposalVotes-uint256-[`++proposalVotes++`]]
  6220. :state-uint256: pass:normal[xref:#GovernorSuperQuorum-state-uint256-[`++state++`]]
  6221. [.contract]
  6222. [[GovernorSuperQuorum]]
  6223. === `++GovernorSuperQuorum++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorSuperQuorum.sol[{github-icon},role=heading-link]
  6224. [.hljs-theme-light.nopadding]
  6225. ```solidity
  6226. import "@openzeppelin/contracts/governance/extensions/GovernorSuperQuorum.sol";
  6227. ```
  6228. Extension of {Governor} with a super quorum. Proposals that meet the super quorum (and have a majority of for
  6229. votes) advance to the `Succeeded` state before the proposal deadline. Counting modules that want to use this
  6230. extension must implement {proposalVotes}.
  6231. [.contract-index]
  6232. .Functions
  6233. --
  6234. * {xref-GovernorSuperQuorum-superQuorum-uint256-}[`++superQuorum(timepoint)++`]
  6235. * {xref-GovernorSuperQuorum-proposalVotes-uint256-}[`++proposalVotes(proposalId)++`]
  6236. * {xref-GovernorSuperQuorum-state-uint256-}[`++state(proposalId)++`]
  6237. [.contract-subindex-inherited]
  6238. .Governor
  6239. * {xref-Governor-receive--}[`++receive()++`]
  6240. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  6241. * {xref-Governor-name--}[`++name()++`]
  6242. * {xref-Governor-version--}[`++version()++`]
  6243. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  6244. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  6245. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  6246. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  6247. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  6248. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  6249. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  6250. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  6251. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  6252. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  6253. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  6254. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  6255. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  6256. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  6257. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  6258. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  6259. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  6260. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  6261. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  6262. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  6263. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  6264. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  6265. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  6266. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  6267. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  6268. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  6269. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  6270. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  6271. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  6272. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  6273. * {xref-Governor-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  6274. * {xref-Governor-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  6275. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  6276. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  6277. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  6278. * {xref-Governor-_executor--}[`++_executor()++`]
  6279. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  6280. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  6281. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  6282. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  6283. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  6284. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  6285. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  6286. * {xref-Governor-clock--}[`++clock()++`]
  6287. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  6288. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  6289. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  6290. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  6291. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  6292. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  6293. [.contract-subindex-inherited]
  6294. .IERC1155Receiver
  6295. [.contract-subindex-inherited]
  6296. .IERC721Receiver
  6297. [.contract-subindex-inherited]
  6298. .IGovernor
  6299. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  6300. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  6301. [.contract-subindex-inherited]
  6302. .IERC6372
  6303. [.contract-subindex-inherited]
  6304. .Nonces
  6305. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  6306. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  6307. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  6308. [.contract-subindex-inherited]
  6309. .EIP712
  6310. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  6311. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  6312. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  6313. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  6314. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  6315. [.contract-subindex-inherited]
  6316. .IERC5267
  6317. [.contract-subindex-inherited]
  6318. .ERC165
  6319. [.contract-subindex-inherited]
  6320. .IERC165
  6321. --
  6322. [.contract-index]
  6323. .Events
  6324. --
  6325. [.contract-subindex-inherited]
  6326. .Governor
  6327. [.contract-subindex-inherited]
  6328. .IERC1155Receiver
  6329. [.contract-subindex-inherited]
  6330. .IERC721Receiver
  6331. [.contract-subindex-inherited]
  6332. .IGovernor
  6333. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  6334. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  6335. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  6336. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  6337. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  6338. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  6339. [.contract-subindex-inherited]
  6340. .IERC6372
  6341. [.contract-subindex-inherited]
  6342. .Nonces
  6343. [.contract-subindex-inherited]
  6344. .EIP712
  6345. [.contract-subindex-inherited]
  6346. .IERC5267
  6347. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  6348. [.contract-subindex-inherited]
  6349. .ERC165
  6350. [.contract-subindex-inherited]
  6351. .IERC165
  6352. --
  6353. [.contract-index]
  6354. .Errors
  6355. --
  6356. [.contract-subindex-inherited]
  6357. .Governor
  6358. [.contract-subindex-inherited]
  6359. .IERC1155Receiver
  6360. [.contract-subindex-inherited]
  6361. .IERC721Receiver
  6362. [.contract-subindex-inherited]
  6363. .IGovernor
  6364. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  6365. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  6366. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  6367. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  6368. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  6369. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  6370. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  6371. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  6372. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  6373. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  6374. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  6375. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  6376. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  6377. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  6378. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  6379. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  6380. [.contract-subindex-inherited]
  6381. .IERC6372
  6382. [.contract-subindex-inherited]
  6383. .Nonces
  6384. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  6385. [.contract-subindex-inherited]
  6386. .EIP712
  6387. [.contract-subindex-inherited]
  6388. .IERC5267
  6389. [.contract-subindex-inherited]
  6390. .ERC165
  6391. [.contract-subindex-inherited]
  6392. .IERC165
  6393. --
  6394. [.contract-item]
  6395. [[GovernorSuperQuorum-superQuorum-uint256-]]
  6396. ==== `[.contract-item-name]#++superQuorum++#++(uint256 timepoint) → uint256++` [.item-kind]#public#
  6397. Minimum number of cast votes required for a proposal to reach super quorum. Only FOR votes are counted
  6398. towards the super quorum. Once the super quorum is reached, an active proposal can proceed to the next state
  6399. without waiting for the proposal deadline.
  6400. NOTE: The `timepoint` parameter corresponds to the snapshot used for counting the vote. This enables scaling of the
  6401. quorum depending on values such as the `totalSupply` of a token at this timepoint (see {ERC20Votes}).
  6402. NOTE: Make sure the value specified for the super quorum is greater than {quorum}, otherwise, it may be
  6403. possible to pass a proposal with less votes than the default quorum.
  6404. [.contract-item]
  6405. [[GovernorSuperQuorum-proposalVotes-uint256-]]
  6406. ==== `[.contract-item-name]#++proposalVotes++#++(uint256 proposalId) → uint256 againstVotes, uint256 forVotes, uint256 abstainVotes++` [.item-kind]#public#
  6407. Accessor to the internal vote counts. This must be implemented by the counting module. Counting modules
  6408. that don't implement this function are incompatible with this module
  6409. [.contract-item]
  6410. [[GovernorSuperQuorum-state-uint256-]]
  6411. ==== `[.contract-item-name]#++state++#++(uint256 proposalId) → enum IGovernor.ProposalState++` [.item-kind]#public#
  6412. Overridden version of the {Governor-state} function that checks if the proposal has reached the super
  6413. quorum.
  6414. NOTE: If the proposal reaches super quorum but {_voteSucceeded} returns false, eg, assuming the super quorum
  6415. has been set low enough that both FOR and AGAINST votes have exceeded it and AGAINST votes exceed FOR votes,
  6416. the proposal continues to be active until {_voteSucceeded} returns true or the proposal deadline is reached.
  6417. This means that with a low super quorum it is also possible that a vote can succeed prematurely before enough
  6418. AGAINST voters have a chance to vote. Hence, it is recommended to set a high enough super quorum to avoid these
  6419. types of scenarios.
  6420. :_useCheckedNonce: pass:normal[xref:#GovernorNoncesKeyed-_useCheckedNonce-address-uint256-[`++_useCheckedNonce++`]]
  6421. :_validateVoteSig: pass:normal[xref:#GovernorNoncesKeyed-_validateVoteSig-uint256-uint8-address-bytes-[`++_validateVoteSig++`]]
  6422. :_validateExtendedVoteSig: pass:normal[xref:#GovernorNoncesKeyed-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-[`++_validateExtendedVoteSig++`]]
  6423. :_useCheckedNonce-address-uint256: pass:normal[xref:#GovernorNoncesKeyed-_useCheckedNonce-address-uint256-[`++_useCheckedNonce++`]]
  6424. :_validateVoteSig-uint256-uint8-address-bytes: pass:normal[xref:#GovernorNoncesKeyed-_validateVoteSig-uint256-uint8-address-bytes-[`++_validateVoteSig++`]]
  6425. :_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes: pass:normal[xref:#GovernorNoncesKeyed-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-[`++_validateExtendedVoteSig++`]]
  6426. [.contract]
  6427. [[GovernorNoncesKeyed]]
  6428. === `++GovernorNoncesKeyed++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/extensions/GovernorNoncesKeyed.sol[{github-icon},role=heading-link]
  6429. [.hljs-theme-light.nopadding]
  6430. ```solidity
  6431. import "@openzeppelin/contracts/governance/extensions/GovernorNoncesKeyed.sol";
  6432. ```
  6433. An extension of {Governor} that extends existing nonce management to use {NoncesKeyed}, where the key is the low-order 192 bits of the `proposalId`.
  6434. This is useful for voting by signature while maintaining separate sequences of nonces for each proposal.
  6435. NOTE: Traditional (un-keyed) nonces are still supported and can continue to be used as if this extension was not present.
  6436. [.contract-index]
  6437. .Functions
  6438. --
  6439. * {xref-GovernorNoncesKeyed-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  6440. * {xref-GovernorNoncesKeyed-_validateVoteSig-uint256-uint8-address-bytes-}[`++_validateVoteSig(proposalId, support, voter, signature)++`]
  6441. * {xref-GovernorNoncesKeyed-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-}[`++_validateExtendedVoteSig(proposalId, support, voter, reason, params, signature)++`]
  6442. [.contract-subindex-inherited]
  6443. .NoncesKeyed
  6444. * {xref-NoncesKeyed-nonces-address-uint192-}[`++nonces(owner, key)++`]
  6445. * {xref-NoncesKeyed-_useNonce-address-uint192-}[`++_useNonce(owner, key)++`]
  6446. * {xref-NoncesKeyed-_useCheckedNonce-address-uint192-uint64-}[`++_useCheckedNonce(owner, key, nonce)++`]
  6447. [.contract-subindex-inherited]
  6448. .Governor
  6449. * {xref-Governor-receive--}[`++receive()++`]
  6450. * {xref-Governor-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  6451. * {xref-Governor-name--}[`++name()++`]
  6452. * {xref-Governor-version--}[`++version()++`]
  6453. * {xref-Governor-hashProposal-address---uint256---bytes---bytes32-}[`++hashProposal(targets, values, calldatas, descriptionHash)++`]
  6454. * {xref-Governor-getProposalId-address---uint256---bytes---bytes32-}[`++getProposalId(targets, values, calldatas, descriptionHash)++`]
  6455. * {xref-Governor-state-uint256-}[`++state(proposalId)++`]
  6456. * {xref-Governor-proposalThreshold--}[`++proposalThreshold()++`]
  6457. * {xref-Governor-proposalSnapshot-uint256-}[`++proposalSnapshot(proposalId)++`]
  6458. * {xref-Governor-proposalDeadline-uint256-}[`++proposalDeadline(proposalId)++`]
  6459. * {xref-Governor-proposalProposer-uint256-}[`++proposalProposer(proposalId)++`]
  6460. * {xref-Governor-proposalEta-uint256-}[`++proposalEta(proposalId)++`]
  6461. * {xref-Governor-proposalNeedsQueuing-uint256-}[`++proposalNeedsQueuing()++`]
  6462. * {xref-Governor-_checkGovernance--}[`++_checkGovernance()++`]
  6463. * {xref-Governor-_quorumReached-uint256-}[`++_quorumReached(proposalId)++`]
  6464. * {xref-Governor-_voteSucceeded-uint256-}[`++_voteSucceeded(proposalId)++`]
  6465. * {xref-Governor-_getVotes-address-uint256-bytes-}[`++_getVotes(account, timepoint, params)++`]
  6466. * {xref-Governor-_countVote-uint256-address-uint8-uint256-bytes-}[`++_countVote(proposalId, account, support, totalWeight, params)++`]
  6467. * {xref-Governor-_tallyUpdated-uint256-}[`++_tallyUpdated(proposalId)++`]
  6468. * {xref-Governor-_defaultParams--}[`++_defaultParams()++`]
  6469. * {xref-Governor-propose-address---uint256---bytes---string-}[`++propose(targets, values, calldatas, description)++`]
  6470. * {xref-Governor-_propose-address---uint256---bytes---string-address-}[`++_propose(targets, values, calldatas, description, proposer)++`]
  6471. * {xref-Governor-queue-address---uint256---bytes---bytes32-}[`++queue(targets, values, calldatas, descriptionHash)++`]
  6472. * {xref-Governor-_queueOperations-uint256-address---uint256---bytes---bytes32-}[`++_queueOperations(, , , , )++`]
  6473. * {xref-Governor-execute-address---uint256---bytes---bytes32-}[`++execute(targets, values, calldatas, descriptionHash)++`]
  6474. * {xref-Governor-_executeOperations-uint256-address---uint256---bytes---bytes32-}[`++_executeOperations(, targets, values, calldatas, )++`]
  6475. * {xref-Governor-cancel-address---uint256---bytes---bytes32-}[`++cancel(targets, values, calldatas, descriptionHash)++`]
  6476. * {xref-Governor-_cancel-address---uint256---bytes---bytes32-}[`++_cancel(targets, values, calldatas, descriptionHash)++`]
  6477. * {xref-Governor-getVotes-address-uint256-}[`++getVotes(account, timepoint)++`]
  6478. * {xref-Governor-getVotesWithParams-address-uint256-bytes-}[`++getVotesWithParams(account, timepoint, params)++`]
  6479. * {xref-Governor-castVote-uint256-uint8-}[`++castVote(proposalId, support)++`]
  6480. * {xref-Governor-castVoteWithReason-uint256-uint8-string-}[`++castVoteWithReason(proposalId, support, reason)++`]
  6481. * {xref-Governor-castVoteWithReasonAndParams-uint256-uint8-string-bytes-}[`++castVoteWithReasonAndParams(proposalId, support, reason, params)++`]
  6482. * {xref-Governor-castVoteBySig-uint256-uint8-address-bytes-}[`++castVoteBySig(proposalId, support, voter, signature)++`]
  6483. * {xref-Governor-castVoteWithReasonAndParamsBySig-uint256-uint8-address-string-bytes-bytes-}[`++castVoteWithReasonAndParamsBySig(proposalId, support, voter, reason, params, signature)++`]
  6484. * {xref-Governor-_castVote-uint256-address-uint8-string-}[`++_castVote(proposalId, account, support, reason)++`]
  6485. * {xref-Governor-_castVote-uint256-address-uint8-string-bytes-}[`++_castVote(proposalId, account, support, reason, params)++`]
  6486. * {xref-Governor-relay-address-uint256-bytes-}[`++relay(target, value, data)++`]
  6487. * {xref-Governor-_executor--}[`++_executor()++`]
  6488. * {xref-Governor-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  6489. * {xref-Governor-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  6490. * {xref-Governor-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  6491. * {xref-Governor-_encodeStateBitmap-enum-IGovernor-ProposalState-}[`++_encodeStateBitmap(proposalState)++`]
  6492. * {xref-Governor-_validateStateBitmap-uint256-bytes32-}[`++_validateStateBitmap(proposalId, allowedStates)++`]
  6493. * {xref-Governor-_isValidDescriptionForProposer-address-string-}[`++_isValidDescriptionForProposer(proposer, description)++`]
  6494. * {xref-Governor-_validateCancel-uint256-address-}[`++_validateCancel(proposalId, caller)++`]
  6495. * {xref-Governor-clock--}[`++clock()++`]
  6496. * {xref-Governor-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  6497. * {xref-Governor-votingDelay--}[`++votingDelay()++`]
  6498. * {xref-Governor-votingPeriod--}[`++votingPeriod()++`]
  6499. * {xref-Governor-quorum-uint256-}[`++quorum(timepoint)++`]
  6500. * {xref-Governor-BALLOT_TYPEHASH-bytes32}[`++BALLOT_TYPEHASH()++`]
  6501. * {xref-Governor-EXTENDED_BALLOT_TYPEHASH-bytes32}[`++EXTENDED_BALLOT_TYPEHASH()++`]
  6502. [.contract-subindex-inherited]
  6503. .IERC1155Receiver
  6504. [.contract-subindex-inherited]
  6505. .IERC721Receiver
  6506. [.contract-subindex-inherited]
  6507. .IGovernor
  6508. * {xref-IGovernor-COUNTING_MODE--}[`++COUNTING_MODE()++`]
  6509. * {xref-IGovernor-hasVoted-uint256-address-}[`++hasVoted(proposalId, account)++`]
  6510. [.contract-subindex-inherited]
  6511. .IERC6372
  6512. [.contract-subindex-inherited]
  6513. .Nonces
  6514. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  6515. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  6516. [.contract-subindex-inherited]
  6517. .EIP712
  6518. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  6519. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  6520. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  6521. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  6522. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  6523. [.contract-subindex-inherited]
  6524. .IERC5267
  6525. [.contract-subindex-inherited]
  6526. .ERC165
  6527. [.contract-subindex-inherited]
  6528. .IERC165
  6529. --
  6530. [.contract-index]
  6531. .Events
  6532. --
  6533. [.contract-subindex-inherited]
  6534. .NoncesKeyed
  6535. [.contract-subindex-inherited]
  6536. .Governor
  6537. [.contract-subindex-inherited]
  6538. .IERC1155Receiver
  6539. [.contract-subindex-inherited]
  6540. .IERC721Receiver
  6541. [.contract-subindex-inherited]
  6542. .IGovernor
  6543. * {xref-IGovernor-ProposalCreated-uint256-address-address---uint256---string---bytes---uint256-uint256-string-}[`++ProposalCreated(proposalId, proposer, targets, values, signatures, calldatas, voteStart, voteEnd, description)++`]
  6544. * {xref-IGovernor-ProposalQueued-uint256-uint256-}[`++ProposalQueued(proposalId, etaSeconds)++`]
  6545. * {xref-IGovernor-ProposalExecuted-uint256-}[`++ProposalExecuted(proposalId)++`]
  6546. * {xref-IGovernor-ProposalCanceled-uint256-}[`++ProposalCanceled(proposalId)++`]
  6547. * {xref-IGovernor-VoteCast-address-uint256-uint8-uint256-string-}[`++VoteCast(voter, proposalId, support, weight, reason)++`]
  6548. * {xref-IGovernor-VoteCastWithParams-address-uint256-uint8-uint256-string-bytes-}[`++VoteCastWithParams(voter, proposalId, support, weight, reason, params)++`]
  6549. [.contract-subindex-inherited]
  6550. .IERC6372
  6551. [.contract-subindex-inherited]
  6552. .Nonces
  6553. [.contract-subindex-inherited]
  6554. .EIP712
  6555. [.contract-subindex-inherited]
  6556. .IERC5267
  6557. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  6558. [.contract-subindex-inherited]
  6559. .ERC165
  6560. [.contract-subindex-inherited]
  6561. .IERC165
  6562. --
  6563. [.contract-index]
  6564. .Errors
  6565. --
  6566. [.contract-subindex-inherited]
  6567. .NoncesKeyed
  6568. [.contract-subindex-inherited]
  6569. .Governor
  6570. [.contract-subindex-inherited]
  6571. .IERC1155Receiver
  6572. [.contract-subindex-inherited]
  6573. .IERC721Receiver
  6574. [.contract-subindex-inherited]
  6575. .IGovernor
  6576. * {xref-IGovernor-GovernorInvalidProposalLength-uint256-uint256-uint256-}[`++GovernorInvalidProposalLength(targets, calldatas, values)++`]
  6577. * {xref-IGovernor-GovernorAlreadyCastVote-address-}[`++GovernorAlreadyCastVote(voter)++`]
  6578. * {xref-IGovernor-GovernorDisabledDeposit--}[`++GovernorDisabledDeposit()++`]
  6579. * {xref-IGovernor-GovernorOnlyExecutor-address-}[`++GovernorOnlyExecutor(account)++`]
  6580. * {xref-IGovernor-GovernorNonexistentProposal-uint256-}[`++GovernorNonexistentProposal(proposalId)++`]
  6581. * {xref-IGovernor-GovernorUnexpectedProposalState-uint256-enum-IGovernor-ProposalState-bytes32-}[`++GovernorUnexpectedProposalState(proposalId, current, expectedStates)++`]
  6582. * {xref-IGovernor-GovernorInvalidVotingPeriod-uint256-}[`++GovernorInvalidVotingPeriod(votingPeriod)++`]
  6583. * {xref-IGovernor-GovernorInsufficientProposerVotes-address-uint256-uint256-}[`++GovernorInsufficientProposerVotes(proposer, votes, threshold)++`]
  6584. * {xref-IGovernor-GovernorRestrictedProposer-address-}[`++GovernorRestrictedProposer(proposer)++`]
  6585. * {xref-IGovernor-GovernorInvalidVoteType--}[`++GovernorInvalidVoteType()++`]
  6586. * {xref-IGovernor-GovernorInvalidVoteParams--}[`++GovernorInvalidVoteParams()++`]
  6587. * {xref-IGovernor-GovernorQueueNotImplemented--}[`++GovernorQueueNotImplemented()++`]
  6588. * {xref-IGovernor-GovernorNotQueuedProposal-uint256-}[`++GovernorNotQueuedProposal(proposalId)++`]
  6589. * {xref-IGovernor-GovernorAlreadyQueuedProposal-uint256-}[`++GovernorAlreadyQueuedProposal(proposalId)++`]
  6590. * {xref-IGovernor-GovernorInvalidSignature-address-}[`++GovernorInvalidSignature(voter)++`]
  6591. * {xref-IGovernor-GovernorUnableToCancel-uint256-address-}[`++GovernorUnableToCancel(proposalId, account)++`]
  6592. [.contract-subindex-inherited]
  6593. .IERC6372
  6594. [.contract-subindex-inherited]
  6595. .Nonces
  6596. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  6597. [.contract-subindex-inherited]
  6598. .EIP712
  6599. [.contract-subindex-inherited]
  6600. .IERC5267
  6601. [.contract-subindex-inherited]
  6602. .ERC165
  6603. [.contract-subindex-inherited]
  6604. .IERC165
  6605. --
  6606. [.contract-item]
  6607. [[GovernorNoncesKeyed-_useCheckedNonce-address-uint256-]]
  6608. ==== `[.contract-item-name]#++_useCheckedNonce++#++(address owner, uint256 nonce)++` [.item-kind]#internal#
  6609. [.contract-item]
  6610. [[GovernorNoncesKeyed-_validateVoteSig-uint256-uint8-address-bytes-]]
  6611. ==== `[.contract-item-name]#++_validateVoteSig++#++(uint256 proposalId, uint8 support, address voter, bytes signature) → bool++` [.item-kind]#internal#
  6612. Check the signature against keyed nonce and falls back to the traditional nonce.
  6613. NOTE: This function won't call `super._validateVoteSig` if the keyed nonce is valid.
  6614. Side effects may be skipped depending on the linearization of the function.
  6615. [.contract-item]
  6616. [[GovernorNoncesKeyed-_validateExtendedVoteSig-uint256-uint8-address-string-bytes-bytes-]]
  6617. ==== `[.contract-item-name]#++_validateExtendedVoteSig++#++(uint256 proposalId, uint8 support, address voter, string reason, bytes params, bytes signature) → bool++` [.item-kind]#internal#
  6618. Check the signature against keyed nonce and falls back to the traditional nonce.
  6619. NOTE: This function won't call `super._validateExtendedVoteSig` if the keyed nonce is valid.
  6620. Side effects may be skipped depending on the linearization of the function.
  6621. == Utils
  6622. :ERC6372InconsistentClock: pass:normal[xref:#Votes-ERC6372InconsistentClock--[`++ERC6372InconsistentClock++`]]
  6623. :ERC5805FutureLookup: pass:normal[xref:#Votes-ERC5805FutureLookup-uint256-uint48-[`++ERC5805FutureLookup++`]]
  6624. :clock: pass:normal[xref:#Votes-clock--[`++clock++`]]
  6625. :CLOCK_MODE: pass:normal[xref:#Votes-CLOCK_MODE--[`++CLOCK_MODE++`]]
  6626. :_validateTimepoint: pass:normal[xref:#Votes-_validateTimepoint-uint256-[`++_validateTimepoint++`]]
  6627. :getVotes: pass:normal[xref:#Votes-getVotes-address-[`++getVotes++`]]
  6628. :getPastVotes: pass:normal[xref:#Votes-getPastVotes-address-uint256-[`++getPastVotes++`]]
  6629. :getPastTotalSupply: pass:normal[xref:#Votes-getPastTotalSupply-uint256-[`++getPastTotalSupply++`]]
  6630. :_getTotalSupply: pass:normal[xref:#Votes-_getTotalSupply--[`++_getTotalSupply++`]]
  6631. :delegates: pass:normal[xref:#Votes-delegates-address-[`++delegates++`]]
  6632. :delegate: pass:normal[xref:#Votes-delegate-address-[`++delegate++`]]
  6633. :delegateBySig: pass:normal[xref:#Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-[`++delegateBySig++`]]
  6634. :_delegate: pass:normal[xref:#Votes-_delegate-address-address-[`++_delegate++`]]
  6635. :_transferVotingUnits: pass:normal[xref:#Votes-_transferVotingUnits-address-address-uint256-[`++_transferVotingUnits++`]]
  6636. :_moveDelegateVotes: pass:normal[xref:#Votes-_moveDelegateVotes-address-address-uint256-[`++_moveDelegateVotes++`]]
  6637. :_numCheckpoints: pass:normal[xref:#Votes-_numCheckpoints-address-[`++_numCheckpoints++`]]
  6638. :_checkpoints: pass:normal[xref:#Votes-_checkpoints-address-uint32-[`++_checkpoints++`]]
  6639. :_getVotingUnits: pass:normal[xref:#Votes-_getVotingUnits-address-[`++_getVotingUnits++`]]
  6640. :clock-: pass:normal[xref:#Votes-clock--[`++clock++`]]
  6641. :CLOCK_MODE-: pass:normal[xref:#Votes-CLOCK_MODE--[`++CLOCK_MODE++`]]
  6642. :_validateTimepoint-uint256: pass:normal[xref:#Votes-_validateTimepoint-uint256-[`++_validateTimepoint++`]]
  6643. :getVotes-address: pass:normal[xref:#Votes-getVotes-address-[`++getVotes++`]]
  6644. :getPastVotes-address-uint256: pass:normal[xref:#Votes-getPastVotes-address-uint256-[`++getPastVotes++`]]
  6645. :getPastTotalSupply-uint256: pass:normal[xref:#Votes-getPastTotalSupply-uint256-[`++getPastTotalSupply++`]]
  6646. :_getTotalSupply-: pass:normal[xref:#Votes-_getTotalSupply--[`++_getTotalSupply++`]]
  6647. :delegates-address: pass:normal[xref:#Votes-delegates-address-[`++delegates++`]]
  6648. :delegate-address: pass:normal[xref:#Votes-delegate-address-[`++delegate++`]]
  6649. :delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32: pass:normal[xref:#Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-[`++delegateBySig++`]]
  6650. :_delegate-address-address: pass:normal[xref:#Votes-_delegate-address-address-[`++_delegate++`]]
  6651. :_transferVotingUnits-address-address-uint256: pass:normal[xref:#Votes-_transferVotingUnits-address-address-uint256-[`++_transferVotingUnits++`]]
  6652. :_moveDelegateVotes-address-address-uint256: pass:normal[xref:#Votes-_moveDelegateVotes-address-address-uint256-[`++_moveDelegateVotes++`]]
  6653. :_numCheckpoints-address: pass:normal[xref:#Votes-_numCheckpoints-address-[`++_numCheckpoints++`]]
  6654. :_checkpoints-address-uint32: pass:normal[xref:#Votes-_checkpoints-address-uint32-[`++_checkpoints++`]]
  6655. :_getVotingUnits-address: pass:normal[xref:#Votes-_getVotingUnits-address-[`++_getVotingUnits++`]]
  6656. [.contract]
  6657. [[Votes]]
  6658. === `++Votes++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/utils/Votes.sol[{github-icon},role=heading-link]
  6659. [.hljs-theme-light.nopadding]
  6660. ```solidity
  6661. import "@openzeppelin/contracts/governance/utils/Votes.sol";
  6662. ```
  6663. This is a base abstract contract that tracks voting units, which are a measure of voting power that can be
  6664. transferred, and provides a system of vote delegation, where an account can delegate its voting units to a sort of
  6665. "representative" that will pool delegated voting units from different accounts and can then use it to vote in
  6666. decisions. In fact, voting units _must_ be delegated in order to count as actual votes, and an account has to
  6667. delegate those votes to itself if it wishes to participate in decisions and does not have a trusted representative.
  6668. This contract is often combined with a token contract such that voting units correspond to token units. For an
  6669. example, see {ERC721Votes}.
  6670. The full history of delegate votes is tracked on-chain so that governance protocols can consider votes as distributed
  6671. at a particular block number to protect against flash loans and double voting. The opt-in delegate system makes the
  6672. cost of this history tracking optional.
  6673. When using this module the derived contract must implement {_getVotingUnits} (for example, make it return
  6674. {ERC721-balanceOf}), and can use {_transferVotingUnits} to track a change in the distribution of those units (in the
  6675. previous example, it would be included in {ERC721-_update}).
  6676. [.contract-index]
  6677. .Functions
  6678. --
  6679. * {xref-Votes-clock--}[`++clock()++`]
  6680. * {xref-Votes-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  6681. * {xref-Votes-_validateTimepoint-uint256-}[`++_validateTimepoint(timepoint)++`]
  6682. * {xref-Votes-getVotes-address-}[`++getVotes(account)++`]
  6683. * {xref-Votes-getPastVotes-address-uint256-}[`++getPastVotes(account, timepoint)++`]
  6684. * {xref-Votes-getPastTotalSupply-uint256-}[`++getPastTotalSupply(timepoint)++`]
  6685. * {xref-Votes-_getTotalSupply--}[`++_getTotalSupply()++`]
  6686. * {xref-Votes-delegates-address-}[`++delegates(account)++`]
  6687. * {xref-Votes-delegate-address-}[`++delegate(delegatee)++`]
  6688. * {xref-Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-}[`++delegateBySig(delegatee, nonce, expiry, v, r, s)++`]
  6689. * {xref-Votes-_delegate-address-address-}[`++_delegate(account, delegatee)++`]
  6690. * {xref-Votes-_transferVotingUnits-address-address-uint256-}[`++_transferVotingUnits(from, to, amount)++`]
  6691. * {xref-Votes-_moveDelegateVotes-address-address-uint256-}[`++_moveDelegateVotes(from, to, amount)++`]
  6692. * {xref-Votes-_numCheckpoints-address-}[`++_numCheckpoints(account)++`]
  6693. * {xref-Votes-_checkpoints-address-uint32-}[`++_checkpoints(account, pos)++`]
  6694. * {xref-Votes-_getVotingUnits-address-}[`++_getVotingUnits()++`]
  6695. [.contract-subindex-inherited]
  6696. .IERC5805
  6697. [.contract-subindex-inherited]
  6698. .IVotes
  6699. [.contract-subindex-inherited]
  6700. .IERC6372
  6701. [.contract-subindex-inherited]
  6702. .Nonces
  6703. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  6704. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  6705. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  6706. [.contract-subindex-inherited]
  6707. .EIP712
  6708. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  6709. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  6710. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  6711. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  6712. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  6713. [.contract-subindex-inherited]
  6714. .IERC5267
  6715. --
  6716. [.contract-index]
  6717. .Events
  6718. --
  6719. [.contract-subindex-inherited]
  6720. .IERC5805
  6721. [.contract-subindex-inherited]
  6722. .IVotes
  6723. * {xref-IVotes-DelegateChanged-address-address-address-}[`++DelegateChanged(delegator, fromDelegate, toDelegate)++`]
  6724. * {xref-IVotes-DelegateVotesChanged-address-uint256-uint256-}[`++DelegateVotesChanged(delegate, previousVotes, newVotes)++`]
  6725. [.contract-subindex-inherited]
  6726. .IERC6372
  6727. [.contract-subindex-inherited]
  6728. .Nonces
  6729. [.contract-subindex-inherited]
  6730. .EIP712
  6731. [.contract-subindex-inherited]
  6732. .IERC5267
  6733. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  6734. --
  6735. [.contract-index]
  6736. .Errors
  6737. --
  6738. * {xref-Votes-ERC6372InconsistentClock--}[`++ERC6372InconsistentClock()++`]
  6739. * {xref-Votes-ERC5805FutureLookup-uint256-uint48-}[`++ERC5805FutureLookup(timepoint, clock)++`]
  6740. [.contract-subindex-inherited]
  6741. .IERC5805
  6742. [.contract-subindex-inherited]
  6743. .IVotes
  6744. * {xref-IVotes-VotesExpiredSignature-uint256-}[`++VotesExpiredSignature(expiry)++`]
  6745. [.contract-subindex-inherited]
  6746. .IERC6372
  6747. [.contract-subindex-inherited]
  6748. .Nonces
  6749. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  6750. [.contract-subindex-inherited]
  6751. .EIP712
  6752. [.contract-subindex-inherited]
  6753. .IERC5267
  6754. --
  6755. [.contract-item]
  6756. [[Votes-clock--]]
  6757. ==== `[.contract-item-name]#++clock++#++() → uint48++` [.item-kind]#public#
  6758. Clock used for flagging checkpoints. Can be overridden to implement timestamp based
  6759. checkpoints (and voting), in which case {CLOCK_MODE} should be overridden as well to match.
  6760. [.contract-item]
  6761. [[Votes-CLOCK_MODE--]]
  6762. ==== `[.contract-item-name]#++CLOCK_MODE++#++() → string++` [.item-kind]#public#
  6763. Machine-readable description of the clock as specified in ERC-6372.
  6764. [.contract-item]
  6765. [[Votes-_validateTimepoint-uint256-]]
  6766. ==== `[.contract-item-name]#++_validateTimepoint++#++(uint256 timepoint) → uint48++` [.item-kind]#internal#
  6767. Validate that a timepoint is in the past, and return it as a uint48.
  6768. [.contract-item]
  6769. [[Votes-getVotes-address-]]
  6770. ==== `[.contract-item-name]#++getVotes++#++(address account) → uint256++` [.item-kind]#public#
  6771. Returns the current amount of votes that `account` has.
  6772. [.contract-item]
  6773. [[Votes-getPastVotes-address-uint256-]]
  6774. ==== `[.contract-item-name]#++getPastVotes++#++(address account, uint256 timepoint) → uint256++` [.item-kind]#public#
  6775. Returns the amount of votes that `account` had at a specific moment in the past. If the `clock()` is
  6776. configured to use block numbers, this will return the value at the end of the corresponding block.
  6777. Requirements:
  6778. - `timepoint` must be in the past. If operating using block numbers, the block must be already mined.
  6779. [.contract-item]
  6780. [[Votes-getPastTotalSupply-uint256-]]
  6781. ==== `[.contract-item-name]#++getPastTotalSupply++#++(uint256 timepoint) → uint256++` [.item-kind]#public#
  6782. Returns the total supply of votes available at a specific moment in the past. If the `clock()` is
  6783. configured to use block numbers, this will return the value at the end of the corresponding block.
  6784. NOTE: This value is the sum of all available votes, which is not necessarily the sum of all delegated votes.
  6785. Votes that have not been delegated are still part of total supply, even though they would not participate in a
  6786. vote.
  6787. Requirements:
  6788. - `timepoint` must be in the past. If operating using block numbers, the block must be already mined.
  6789. [.contract-item]
  6790. [[Votes-_getTotalSupply--]]
  6791. ==== `[.contract-item-name]#++_getTotalSupply++#++() → uint256++` [.item-kind]#internal#
  6792. Returns the current total supply of votes.
  6793. [.contract-item]
  6794. [[Votes-delegates-address-]]
  6795. ==== `[.contract-item-name]#++delegates++#++(address account) → address++` [.item-kind]#public#
  6796. Returns the delegate that `account` has chosen.
  6797. [.contract-item]
  6798. [[Votes-delegate-address-]]
  6799. ==== `[.contract-item-name]#++delegate++#++(address delegatee)++` [.item-kind]#public#
  6800. Delegates votes from the sender to `delegatee`.
  6801. [.contract-item]
  6802. [[Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-]]
  6803. ==== `[.contract-item-name]#++delegateBySig++#++(address delegatee, uint256 nonce, uint256 expiry, uint8 v, bytes32 r, bytes32 s)++` [.item-kind]#public#
  6804. Delegates votes from signer to `delegatee`.
  6805. [.contract-item]
  6806. [[Votes-_delegate-address-address-]]
  6807. ==== `[.contract-item-name]#++_delegate++#++(address account, address delegatee)++` [.item-kind]#internal#
  6808. Delegate all of `account`'s voting units to `delegatee`.
  6809. Emits events {IVotes-DelegateChanged} and {IVotes-DelegateVotesChanged}.
  6810. [.contract-item]
  6811. [[Votes-_transferVotingUnits-address-address-uint256-]]
  6812. ==== `[.contract-item-name]#++_transferVotingUnits++#++(address from, address to, uint256 amount)++` [.item-kind]#internal#
  6813. Transfers, mints, or burns voting units. To register a mint, `from` should be zero. To register a burn, `to`
  6814. should be zero. Total supply of voting units will be adjusted with mints and burns.
  6815. [.contract-item]
  6816. [[Votes-_moveDelegateVotes-address-address-uint256-]]
  6817. ==== `[.contract-item-name]#++_moveDelegateVotes++#++(address from, address to, uint256 amount)++` [.item-kind]#internal#
  6818. Moves delegated votes from one delegate to another.
  6819. [.contract-item]
  6820. [[Votes-_numCheckpoints-address-]]
  6821. ==== `[.contract-item-name]#++_numCheckpoints++#++(address account) → uint32++` [.item-kind]#internal#
  6822. Get number of checkpoints for `account`.
  6823. [.contract-item]
  6824. [[Votes-_checkpoints-address-uint32-]]
  6825. ==== `[.contract-item-name]#++_checkpoints++#++(address account, uint32 pos) → struct Checkpoints.Checkpoint208++` [.item-kind]#internal#
  6826. Get the `pos`-th checkpoint for `account`.
  6827. [.contract-item]
  6828. [[Votes-_getVotingUnits-address-]]
  6829. ==== `[.contract-item-name]#++_getVotingUnits++#++(address) → uint256++` [.item-kind]#internal#
  6830. Must return the voting units held by an account.
  6831. [.contract-item]
  6832. [[Votes-ERC6372InconsistentClock--]]
  6833. ==== `[.contract-item-name]#++ERC6372InconsistentClock++#++()++` [.item-kind]#error#
  6834. The clock was incorrectly modified.
  6835. [.contract-item]
  6836. [[Votes-ERC5805FutureLookup-uint256-uint48-]]
  6837. ==== `[.contract-item-name]#++ERC5805FutureLookup++#++(uint256 timepoint, uint48 clock)++` [.item-kind]#error#
  6838. Lookup to future votes is not available.
  6839. :getPastDelegate: pass:normal[xref:#VotesExtended-getPastDelegate-address-uint256-[`++getPastDelegate++`]]
  6840. :getPastBalanceOf: pass:normal[xref:#VotesExtended-getPastBalanceOf-address-uint256-[`++getPastBalanceOf++`]]
  6841. :_delegate: pass:normal[xref:#VotesExtended-_delegate-address-address-[`++_delegate++`]]
  6842. :_transferVotingUnits: pass:normal[xref:#VotesExtended-_transferVotingUnits-address-address-uint256-[`++_transferVotingUnits++`]]
  6843. :getPastDelegate-address-uint256: pass:normal[xref:#VotesExtended-getPastDelegate-address-uint256-[`++getPastDelegate++`]]
  6844. :getPastBalanceOf-address-uint256: pass:normal[xref:#VotesExtended-getPastBalanceOf-address-uint256-[`++getPastBalanceOf++`]]
  6845. :_delegate-address-address: pass:normal[xref:#VotesExtended-_delegate-address-address-[`++_delegate++`]]
  6846. :_transferVotingUnits-address-address-uint256: pass:normal[xref:#VotesExtended-_transferVotingUnits-address-address-uint256-[`++_transferVotingUnits++`]]
  6847. [.contract]
  6848. [[VotesExtended]]
  6849. === `++VotesExtended++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/utils/VotesExtended.sol[{github-icon},role=heading-link]
  6850. [.hljs-theme-light.nopadding]
  6851. ```solidity
  6852. import "@openzeppelin/contracts/governance/utils/VotesExtended.sol";
  6853. ```
  6854. Extension of {Votes} that adds checkpoints for delegations and balances.
  6855. WARNING: While this contract extends {Votes}, valid uses of {Votes} may not be compatible with
  6856. {VotesExtended} without additional considerations. This implementation of {_transferVotingUnits} must
  6857. run AFTER the voting weight movement is registered, such that it is reflected on {_getVotingUnits}.
  6858. Said differently, {VotesExtended} MUST be integrated in a way that calls {_transferVotingUnits} AFTER the
  6859. asset transfer is registered and balances are updated:
  6860. ```solidity
  6861. contract VotingToken is Token, VotesExtended {
  6862. function transfer(address from, address to, uint256 tokenId) public override {
  6863. super.transfer(from, to, tokenId); // <- Perform the transfer first ...
  6864. _transferVotingUnits(from, to, 1); // <- ... then call _transferVotingUnits.
  6865. }
  6866. function _getVotingUnits(address account) internal view override returns (uint256) {
  6867. return balanceOf(account);
  6868. }
  6869. }
  6870. ```
  6871. {ERC20Votes} and {ERC721Votes} follow this pattern and are thus safe to use with {VotesExtended}.
  6872. [.contract-index]
  6873. .Functions
  6874. --
  6875. * {xref-VotesExtended-getPastDelegate-address-uint256-}[`++getPastDelegate(account, timepoint)++`]
  6876. * {xref-VotesExtended-getPastBalanceOf-address-uint256-}[`++getPastBalanceOf(account, timepoint)++`]
  6877. * {xref-VotesExtended-_delegate-address-address-}[`++_delegate(account, delegatee)++`]
  6878. * {xref-VotesExtended-_transferVotingUnits-address-address-uint256-}[`++_transferVotingUnits(from, to, amount)++`]
  6879. [.contract-subindex-inherited]
  6880. .Votes
  6881. * {xref-Votes-clock--}[`++clock()++`]
  6882. * {xref-Votes-CLOCK_MODE--}[`++CLOCK_MODE()++`]
  6883. * {xref-Votes-_validateTimepoint-uint256-}[`++_validateTimepoint(timepoint)++`]
  6884. * {xref-Votes-getVotes-address-}[`++getVotes(account)++`]
  6885. * {xref-Votes-getPastVotes-address-uint256-}[`++getPastVotes(account, timepoint)++`]
  6886. * {xref-Votes-getPastTotalSupply-uint256-}[`++getPastTotalSupply(timepoint)++`]
  6887. * {xref-Votes-_getTotalSupply--}[`++_getTotalSupply()++`]
  6888. * {xref-Votes-delegates-address-}[`++delegates(account)++`]
  6889. * {xref-Votes-delegate-address-}[`++delegate(delegatee)++`]
  6890. * {xref-Votes-delegateBySig-address-uint256-uint256-uint8-bytes32-bytes32-}[`++delegateBySig(delegatee, nonce, expiry, v, r, s)++`]
  6891. * {xref-Votes-_moveDelegateVotes-address-address-uint256-}[`++_moveDelegateVotes(from, to, amount)++`]
  6892. * {xref-Votes-_numCheckpoints-address-}[`++_numCheckpoints(account)++`]
  6893. * {xref-Votes-_checkpoints-address-uint32-}[`++_checkpoints(account, pos)++`]
  6894. * {xref-Votes-_getVotingUnits-address-}[`++_getVotingUnits()++`]
  6895. [.contract-subindex-inherited]
  6896. .IERC5805
  6897. [.contract-subindex-inherited]
  6898. .IVotes
  6899. [.contract-subindex-inherited]
  6900. .IERC6372
  6901. [.contract-subindex-inherited]
  6902. .Nonces
  6903. * {xref-Nonces-nonces-address-}[`++nonces(owner)++`]
  6904. * {xref-Nonces-_useNonce-address-}[`++_useNonce(owner)++`]
  6905. * {xref-Nonces-_useCheckedNonce-address-uint256-}[`++_useCheckedNonce(owner, nonce)++`]
  6906. [.contract-subindex-inherited]
  6907. .EIP712
  6908. * {xref-EIP712-_domainSeparatorV4--}[`++_domainSeparatorV4()++`]
  6909. * {xref-EIP712-_hashTypedDataV4-bytes32-}[`++_hashTypedDataV4(structHash)++`]
  6910. * {xref-EIP712-eip712Domain--}[`++eip712Domain()++`]
  6911. * {xref-EIP712-_EIP712Name--}[`++_EIP712Name()++`]
  6912. * {xref-EIP712-_EIP712Version--}[`++_EIP712Version()++`]
  6913. [.contract-subindex-inherited]
  6914. .IERC5267
  6915. --
  6916. [.contract-index]
  6917. .Events
  6918. --
  6919. [.contract-subindex-inherited]
  6920. .Votes
  6921. [.contract-subindex-inherited]
  6922. .IERC5805
  6923. [.contract-subindex-inherited]
  6924. .IVotes
  6925. * {xref-IVotes-DelegateChanged-address-address-address-}[`++DelegateChanged(delegator, fromDelegate, toDelegate)++`]
  6926. * {xref-IVotes-DelegateVotesChanged-address-uint256-uint256-}[`++DelegateVotesChanged(delegate, previousVotes, newVotes)++`]
  6927. [.contract-subindex-inherited]
  6928. .IERC6372
  6929. [.contract-subindex-inherited]
  6930. .Nonces
  6931. [.contract-subindex-inherited]
  6932. .EIP712
  6933. [.contract-subindex-inherited]
  6934. .IERC5267
  6935. * {xref-IERC5267-EIP712DomainChanged--}[`++EIP712DomainChanged()++`]
  6936. --
  6937. [.contract-index]
  6938. .Errors
  6939. --
  6940. [.contract-subindex-inherited]
  6941. .Votes
  6942. * {xref-Votes-ERC6372InconsistentClock--}[`++ERC6372InconsistentClock()++`]
  6943. * {xref-Votes-ERC5805FutureLookup-uint256-uint48-}[`++ERC5805FutureLookup(timepoint, clock)++`]
  6944. [.contract-subindex-inherited]
  6945. .IERC5805
  6946. [.contract-subindex-inherited]
  6947. .IVotes
  6948. * {xref-IVotes-VotesExpiredSignature-uint256-}[`++VotesExpiredSignature(expiry)++`]
  6949. [.contract-subindex-inherited]
  6950. .IERC6372
  6951. [.contract-subindex-inherited]
  6952. .Nonces
  6953. * {xref-Nonces-InvalidAccountNonce-address-uint256-}[`++InvalidAccountNonce(account, currentNonce)++`]
  6954. [.contract-subindex-inherited]
  6955. .EIP712
  6956. [.contract-subindex-inherited]
  6957. .IERC5267
  6958. --
  6959. [.contract-item]
  6960. [[VotesExtended-getPastDelegate-address-uint256-]]
  6961. ==== `[.contract-item-name]#++getPastDelegate++#++(address account, uint256 timepoint) → address++` [.item-kind]#public#
  6962. Returns the delegate of an `account` at a specific moment in the past. If the `clock()` is
  6963. configured to use block numbers, this will return the value at the end of the corresponding block.
  6964. Requirements:
  6965. - `timepoint` must be in the past. If operating using block numbers, the block must be already mined.
  6966. [.contract-item]
  6967. [[VotesExtended-getPastBalanceOf-address-uint256-]]
  6968. ==== `[.contract-item-name]#++getPastBalanceOf++#++(address account, uint256 timepoint) → uint256++` [.item-kind]#public#
  6969. Returns the `balanceOf` of an `account` at a specific moment in the past. If the `clock()` is
  6970. configured to use block numbers, this will return the value at the end of the corresponding block.
  6971. Requirements:
  6972. - `timepoint` must be in the past. If operating using block numbers, the block must be already mined.
  6973. [.contract-item]
  6974. [[VotesExtended-_delegate-address-address-]]
  6975. ==== `[.contract-item-name]#++_delegate++#++(address account, address delegatee)++` [.item-kind]#internal#
  6976. Delegate all of `account`'s voting units to `delegatee`.
  6977. Emits events {IVotes-DelegateChanged} and {IVotes-DelegateVotesChanged}.
  6978. [.contract-item]
  6979. [[VotesExtended-_transferVotingUnits-address-address-uint256-]]
  6980. ==== `[.contract-item-name]#++_transferVotingUnits++#++(address from, address to, uint256 amount)++` [.item-kind]#internal#
  6981. Transfers, mints, or burns voting units. To register a mint, `from` should be zero. To register a burn, `to`
  6982. should be zero. Total supply of voting units will be adjusted with mints and burns.
  6983. == Timelock
  6984. 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}.
  6985. :PROPOSER_ROLE: pass:normal[xref:#TimelockController-PROPOSER_ROLE-bytes32[`++PROPOSER_ROLE++`]]
  6986. :EXECUTOR_ROLE: pass:normal[xref:#TimelockController-EXECUTOR_ROLE-bytes32[`++EXECUTOR_ROLE++`]]
  6987. :CANCELLER_ROLE: pass:normal[xref:#TimelockController-CANCELLER_ROLE-bytes32[`++CANCELLER_ROLE++`]]
  6988. :_DONE_TIMESTAMP: pass:normal[xref:#TimelockController-_DONE_TIMESTAMP-uint256[`++_DONE_TIMESTAMP++`]]
  6989. :OperationState: pass:normal[xref:#TimelockController-OperationState[`++OperationState++`]]
  6990. :TimelockInvalidOperationLength: pass:normal[xref:#TimelockController-TimelockInvalidOperationLength-uint256-uint256-uint256-[`++TimelockInvalidOperationLength++`]]
  6991. :TimelockInsufficientDelay: pass:normal[xref:#TimelockController-TimelockInsufficientDelay-uint256-uint256-[`++TimelockInsufficientDelay++`]]
  6992. :TimelockUnexpectedOperationState: pass:normal[xref:#TimelockController-TimelockUnexpectedOperationState-bytes32-bytes32-[`++TimelockUnexpectedOperationState++`]]
  6993. :TimelockUnexecutedPredecessor: pass:normal[xref:#TimelockController-TimelockUnexecutedPredecessor-bytes32-[`++TimelockUnexecutedPredecessor++`]]
  6994. :TimelockUnauthorizedCaller: pass:normal[xref:#TimelockController-TimelockUnauthorizedCaller-address-[`++TimelockUnauthorizedCaller++`]]
  6995. :CallScheduled: pass:normal[xref:#TimelockController-CallScheduled-bytes32-uint256-address-uint256-bytes-bytes32-uint256-[`++CallScheduled++`]]
  6996. :CallExecuted: pass:normal[xref:#TimelockController-CallExecuted-bytes32-uint256-address-uint256-bytes-[`++CallExecuted++`]]
  6997. :CallSalt: pass:normal[xref:#TimelockController-CallSalt-bytes32-bytes32-[`++CallSalt++`]]
  6998. :Cancelled: pass:normal[xref:#TimelockController-Cancelled-bytes32-[`++Cancelled++`]]
  6999. :MinDelayChange: pass:normal[xref:#TimelockController-MinDelayChange-uint256-uint256-[`++MinDelayChange++`]]
  7000. :constructor: pass:normal[xref:#TimelockController-constructor-uint256-address---address---address-[`++constructor++`]]
  7001. :onlyRoleOrOpenRole: pass:normal[xref:#TimelockController-onlyRoleOrOpenRole-bytes32-[`++onlyRoleOrOpenRole++`]]
  7002. :receive: pass:normal[xref:#TimelockController-receive--[`++receive++`]]
  7003. :supportsInterface: pass:normal[xref:#TimelockController-supportsInterface-bytes4-[`++supportsInterface++`]]
  7004. :isOperation: pass:normal[xref:#TimelockController-isOperation-bytes32-[`++isOperation++`]]
  7005. :isOperationPending: pass:normal[xref:#TimelockController-isOperationPending-bytes32-[`++isOperationPending++`]]
  7006. :isOperationReady: pass:normal[xref:#TimelockController-isOperationReady-bytes32-[`++isOperationReady++`]]
  7007. :isOperationDone: pass:normal[xref:#TimelockController-isOperationDone-bytes32-[`++isOperationDone++`]]
  7008. :getTimestamp: pass:normal[xref:#TimelockController-getTimestamp-bytes32-[`++getTimestamp++`]]
  7009. :getOperationState: pass:normal[xref:#TimelockController-getOperationState-bytes32-[`++getOperationState++`]]
  7010. :getMinDelay: pass:normal[xref:#TimelockController-getMinDelay--[`++getMinDelay++`]]
  7011. :hashOperation: pass:normal[xref:#TimelockController-hashOperation-address-uint256-bytes-bytes32-bytes32-[`++hashOperation++`]]
  7012. :hashOperationBatch: pass:normal[xref:#TimelockController-hashOperationBatch-address---uint256---bytes---bytes32-bytes32-[`++hashOperationBatch++`]]
  7013. :schedule: pass:normal[xref:#TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-[`++schedule++`]]
  7014. :scheduleBatch: pass:normal[xref:#TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-[`++scheduleBatch++`]]
  7015. :cancel: pass:normal[xref:#TimelockController-cancel-bytes32-[`++cancel++`]]
  7016. :execute: pass:normal[xref:#TimelockController-execute-address-uint256-bytes-bytes32-bytes32-[`++execute++`]]
  7017. :executeBatch: pass:normal[xref:#TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-[`++executeBatch++`]]
  7018. :_execute: pass:normal[xref:#TimelockController-_execute-address-uint256-bytes-[`++_execute++`]]
  7019. :updateDelay: pass:normal[xref:#TimelockController-updateDelay-uint256-[`++updateDelay++`]]
  7020. :_encodeStateBitmap: pass:normal[xref:#TimelockController-_encodeStateBitmap-enum-TimelockController-OperationState-[`++_encodeStateBitmap++`]]
  7021. :constructor-uint256-address---address---address: pass:normal[xref:#TimelockController-constructor-uint256-address---address---address-[`++constructor++`]]
  7022. :receive-: pass:normal[xref:#TimelockController-receive--[`++receive++`]]
  7023. :supportsInterface-bytes4: pass:normal[xref:#TimelockController-supportsInterface-bytes4-[`++supportsInterface++`]]
  7024. :isOperation-bytes32: pass:normal[xref:#TimelockController-isOperation-bytes32-[`++isOperation++`]]
  7025. :isOperationPending-bytes32: pass:normal[xref:#TimelockController-isOperationPending-bytes32-[`++isOperationPending++`]]
  7026. :isOperationReady-bytes32: pass:normal[xref:#TimelockController-isOperationReady-bytes32-[`++isOperationReady++`]]
  7027. :isOperationDone-bytes32: pass:normal[xref:#TimelockController-isOperationDone-bytes32-[`++isOperationDone++`]]
  7028. :getTimestamp-bytes32: pass:normal[xref:#TimelockController-getTimestamp-bytes32-[`++getTimestamp++`]]
  7029. :getOperationState-bytes32: pass:normal[xref:#TimelockController-getOperationState-bytes32-[`++getOperationState++`]]
  7030. :getMinDelay-: pass:normal[xref:#TimelockController-getMinDelay--[`++getMinDelay++`]]
  7031. :hashOperation-address-uint256-bytes-bytes32-bytes32: pass:normal[xref:#TimelockController-hashOperation-address-uint256-bytes-bytes32-bytes32-[`++hashOperation++`]]
  7032. :hashOperationBatch-address---uint256---bytes---bytes32-bytes32: pass:normal[xref:#TimelockController-hashOperationBatch-address---uint256---bytes---bytes32-bytes32-[`++hashOperationBatch++`]]
  7033. :schedule-address-uint256-bytes-bytes32-bytes32-uint256: pass:normal[xref:#TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-[`++schedule++`]]
  7034. :scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256: pass:normal[xref:#TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-[`++scheduleBatch++`]]
  7035. :cancel-bytes32: pass:normal[xref:#TimelockController-cancel-bytes32-[`++cancel++`]]
  7036. :execute-address-uint256-bytes-bytes32-bytes32: pass:normal[xref:#TimelockController-execute-address-uint256-bytes-bytes32-bytes32-[`++execute++`]]
  7037. :executeBatch-address---uint256---bytes---bytes32-bytes32: pass:normal[xref:#TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-[`++executeBatch++`]]
  7038. :_execute-address-uint256-bytes: pass:normal[xref:#TimelockController-_execute-address-uint256-bytes-[`++_execute++`]]
  7039. :updateDelay-uint256: pass:normal[xref:#TimelockController-updateDelay-uint256-[`++updateDelay++`]]
  7040. :_encodeStateBitmap-enum-TimelockController-OperationState: pass:normal[xref:#TimelockController-_encodeStateBitmap-enum-TimelockController-OperationState-[`++_encodeStateBitmap++`]]
  7041. :PROPOSER_ROLE-bytes32: pass:normal[xref:#TimelockController-PROPOSER_ROLE-bytes32[`++PROPOSER_ROLE++`]]
  7042. :EXECUTOR_ROLE-bytes32: pass:normal[xref:#TimelockController-EXECUTOR_ROLE-bytes32[`++EXECUTOR_ROLE++`]]
  7043. :CANCELLER_ROLE-bytes32: pass:normal[xref:#TimelockController-CANCELLER_ROLE-bytes32[`++CANCELLER_ROLE++`]]
  7044. [.contract]
  7045. [[TimelockController]]
  7046. === `++TimelockController++` link:https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v5.4.0/contracts/governance/TimelockController.sol[{github-icon},role=heading-link]
  7047. [.hljs-theme-light.nopadding]
  7048. ```solidity
  7049. import "@openzeppelin/contracts/governance/TimelockController.sol";
  7050. ```
  7051. Contract module which acts as a timelocked controller. When set as the
  7052. owner of an `Ownable` smart contract, it enforces a timelock on all
  7053. `onlyOwner` maintenance operations. This gives time for users of the
  7054. controlled contract to exit before a potentially dangerous maintenance
  7055. operation is applied.
  7056. By default, this contract is self administered, meaning administration tasks
  7057. have to go through the timelock process. The proposer (resp executor) role
  7058. is in charge of proposing (resp executing) operations. A common use case is
  7059. to position this {TimelockController} as the owner of a smart contract, with
  7060. a multisig or a DAO as the sole proposer.
  7061. [.contract-index]
  7062. .Modifiers
  7063. --
  7064. * {xref-TimelockController-onlyRoleOrOpenRole-bytes32-}[`++onlyRoleOrOpenRole(role)++`]
  7065. --
  7066. [.contract-index]
  7067. .Functions
  7068. --
  7069. * {xref-TimelockController-constructor-uint256-address---address---address-}[`++constructor(minDelay, proposers, executors, admin)++`]
  7070. * {xref-TimelockController-receive--}[`++receive()++`]
  7071. * {xref-TimelockController-supportsInterface-bytes4-}[`++supportsInterface(interfaceId)++`]
  7072. * {xref-TimelockController-isOperation-bytes32-}[`++isOperation(id)++`]
  7073. * {xref-TimelockController-isOperationPending-bytes32-}[`++isOperationPending(id)++`]
  7074. * {xref-TimelockController-isOperationReady-bytes32-}[`++isOperationReady(id)++`]
  7075. * {xref-TimelockController-isOperationDone-bytes32-}[`++isOperationDone(id)++`]
  7076. * {xref-TimelockController-getTimestamp-bytes32-}[`++getTimestamp(id)++`]
  7077. * {xref-TimelockController-getOperationState-bytes32-}[`++getOperationState(id)++`]
  7078. * {xref-TimelockController-getMinDelay--}[`++getMinDelay()++`]
  7079. * {xref-TimelockController-hashOperation-address-uint256-bytes-bytes32-bytes32-}[`++hashOperation(target, value, data, predecessor, salt)++`]
  7080. * {xref-TimelockController-hashOperationBatch-address---uint256---bytes---bytes32-bytes32-}[`++hashOperationBatch(targets, values, payloads, predecessor, salt)++`]
  7081. * {xref-TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-}[`++schedule(target, value, data, predecessor, salt, delay)++`]
  7082. * {xref-TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-}[`++scheduleBatch(targets, values, payloads, predecessor, salt, delay)++`]
  7083. * {xref-TimelockController-cancel-bytes32-}[`++cancel(id)++`]
  7084. * {xref-TimelockController-execute-address-uint256-bytes-bytes32-bytes32-}[`++execute(target, value, payload, predecessor, salt)++`]
  7085. * {xref-TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-}[`++executeBatch(targets, values, payloads, predecessor, salt)++`]
  7086. * {xref-TimelockController-_execute-address-uint256-bytes-}[`++_execute(target, value, data)++`]
  7087. * {xref-TimelockController-updateDelay-uint256-}[`++updateDelay(newDelay)++`]
  7088. * {xref-TimelockController-_encodeStateBitmap-enum-TimelockController-OperationState-}[`++_encodeStateBitmap(operationState)++`]
  7089. * {xref-TimelockController-PROPOSER_ROLE-bytes32}[`++PROPOSER_ROLE()++`]
  7090. * {xref-TimelockController-EXECUTOR_ROLE-bytes32}[`++EXECUTOR_ROLE()++`]
  7091. * {xref-TimelockController-CANCELLER_ROLE-bytes32}[`++CANCELLER_ROLE()++`]
  7092. [.contract-subindex-inherited]
  7093. .ERC1155Holder
  7094. * {xref-ERC1155Holder-onERC1155Received-address-address-uint256-uint256-bytes-}[`++onERC1155Received(, , , , )++`]
  7095. * {xref-ERC1155Holder-onERC1155BatchReceived-address-address-uint256---uint256---bytes-}[`++onERC1155BatchReceived(, , , , )++`]
  7096. [.contract-subindex-inherited]
  7097. .IERC1155Receiver
  7098. [.contract-subindex-inherited]
  7099. .ERC721Holder
  7100. * {xref-ERC721Holder-onERC721Received-address-address-uint256-bytes-}[`++onERC721Received(, , , )++`]
  7101. [.contract-subindex-inherited]
  7102. .IERC721Receiver
  7103. [.contract-subindex-inherited]
  7104. .AccessControl
  7105. * {xref-AccessControl-hasRole-bytes32-address-}[`++hasRole(role, account)++`]
  7106. * {xref-AccessControl-_checkRole-bytes32-}[`++_checkRole(role)++`]
  7107. * {xref-AccessControl-_checkRole-bytes32-address-}[`++_checkRole(role, account)++`]
  7108. * {xref-AccessControl-getRoleAdmin-bytes32-}[`++getRoleAdmin(role)++`]
  7109. * {xref-AccessControl-grantRole-bytes32-address-}[`++grantRole(role, account)++`]
  7110. * {xref-AccessControl-revokeRole-bytes32-address-}[`++revokeRole(role, account)++`]
  7111. * {xref-AccessControl-renounceRole-bytes32-address-}[`++renounceRole(role, callerConfirmation)++`]
  7112. * {xref-AccessControl-_setRoleAdmin-bytes32-bytes32-}[`++_setRoleAdmin(role, adminRole)++`]
  7113. * {xref-AccessControl-_grantRole-bytes32-address-}[`++_grantRole(role, account)++`]
  7114. * {xref-AccessControl-_revokeRole-bytes32-address-}[`++_revokeRole(role, account)++`]
  7115. * {xref-AccessControl-DEFAULT_ADMIN_ROLE-bytes32}[`++DEFAULT_ADMIN_ROLE()++`]
  7116. [.contract-subindex-inherited]
  7117. .ERC165
  7118. [.contract-subindex-inherited]
  7119. .IERC165
  7120. [.contract-subindex-inherited]
  7121. .IAccessControl
  7122. --
  7123. [.contract-index]
  7124. .Events
  7125. --
  7126. * {xref-TimelockController-CallScheduled-bytes32-uint256-address-uint256-bytes-bytes32-uint256-}[`++CallScheduled(id, index, target, value, data, predecessor, delay)++`]
  7127. * {xref-TimelockController-CallExecuted-bytes32-uint256-address-uint256-bytes-}[`++CallExecuted(id, index, target, value, data)++`]
  7128. * {xref-TimelockController-CallSalt-bytes32-bytes32-}[`++CallSalt(id, salt)++`]
  7129. * {xref-TimelockController-Cancelled-bytes32-}[`++Cancelled(id)++`]
  7130. * {xref-TimelockController-MinDelayChange-uint256-uint256-}[`++MinDelayChange(oldDuration, newDuration)++`]
  7131. [.contract-subindex-inherited]
  7132. .ERC1155Holder
  7133. [.contract-subindex-inherited]
  7134. .IERC1155Receiver
  7135. [.contract-subindex-inherited]
  7136. .ERC721Holder
  7137. [.contract-subindex-inherited]
  7138. .IERC721Receiver
  7139. [.contract-subindex-inherited]
  7140. .AccessControl
  7141. [.contract-subindex-inherited]
  7142. .ERC165
  7143. [.contract-subindex-inherited]
  7144. .IERC165
  7145. [.contract-subindex-inherited]
  7146. .IAccessControl
  7147. * {xref-IAccessControl-RoleAdminChanged-bytes32-bytes32-bytes32-}[`++RoleAdminChanged(role, previousAdminRole, newAdminRole)++`]
  7148. * {xref-IAccessControl-RoleGranted-bytes32-address-address-}[`++RoleGranted(role, account, sender)++`]
  7149. * {xref-IAccessControl-RoleRevoked-bytes32-address-address-}[`++RoleRevoked(role, account, sender)++`]
  7150. --
  7151. [.contract-index]
  7152. .Errors
  7153. --
  7154. * {xref-TimelockController-TimelockInvalidOperationLength-uint256-uint256-uint256-}[`++TimelockInvalidOperationLength(targets, payloads, values)++`]
  7155. * {xref-TimelockController-TimelockInsufficientDelay-uint256-uint256-}[`++TimelockInsufficientDelay(delay, minDelay)++`]
  7156. * {xref-TimelockController-TimelockUnexpectedOperationState-bytes32-bytes32-}[`++TimelockUnexpectedOperationState(operationId, expectedStates)++`]
  7157. * {xref-TimelockController-TimelockUnexecutedPredecessor-bytes32-}[`++TimelockUnexecutedPredecessor(predecessorId)++`]
  7158. * {xref-TimelockController-TimelockUnauthorizedCaller-address-}[`++TimelockUnauthorizedCaller(caller)++`]
  7159. [.contract-subindex-inherited]
  7160. .ERC1155Holder
  7161. [.contract-subindex-inherited]
  7162. .IERC1155Receiver
  7163. [.contract-subindex-inherited]
  7164. .ERC721Holder
  7165. [.contract-subindex-inherited]
  7166. .IERC721Receiver
  7167. [.contract-subindex-inherited]
  7168. .AccessControl
  7169. [.contract-subindex-inherited]
  7170. .ERC165
  7171. [.contract-subindex-inherited]
  7172. .IERC165
  7173. [.contract-subindex-inherited]
  7174. .IAccessControl
  7175. * {xref-IAccessControl-AccessControlUnauthorizedAccount-address-bytes32-}[`++AccessControlUnauthorizedAccount(account, neededRole)++`]
  7176. * {xref-IAccessControl-AccessControlBadConfirmation--}[`++AccessControlBadConfirmation()++`]
  7177. --
  7178. [.contract-index]
  7179. .Internal Variables
  7180. --
  7181. * {xref-TimelockController-_DONE_TIMESTAMP-uint256}[`++uint256 constant _DONE_TIMESTAMP++`]
  7182. [.contract-subindex-inherited]
  7183. .ERC1155Holder
  7184. [.contract-subindex-inherited]
  7185. .IERC1155Receiver
  7186. [.contract-subindex-inherited]
  7187. .ERC721Holder
  7188. [.contract-subindex-inherited]
  7189. .IERC721Receiver
  7190. [.contract-subindex-inherited]
  7191. .AccessControl
  7192. [.contract-subindex-inherited]
  7193. .ERC165
  7194. [.contract-subindex-inherited]
  7195. .IERC165
  7196. [.contract-subindex-inherited]
  7197. .IAccessControl
  7198. --
  7199. [.contract-item]
  7200. [[TimelockController-onlyRoleOrOpenRole-bytes32-]]
  7201. ==== `[.contract-item-name]#++onlyRoleOrOpenRole++#++(bytes32 role)++` [.item-kind]#modifier#
  7202. Modifier to make a function callable only by a certain role. In
  7203. addition to checking the sender's role, `address(0)` 's role is also
  7204. considered. Granting a role to `address(0)` is equivalent to enabling
  7205. this role for everyone.
  7206. [.contract-item]
  7207. [[TimelockController-constructor-uint256-address---address---address-]]
  7208. ==== `[.contract-item-name]#++constructor++#++(uint256 minDelay, address[] proposers, address[] executors, address admin)++` [.item-kind]#public#
  7209. Initializes the contract with the following parameters:
  7210. - `minDelay`: initial minimum delay in seconds for operations
  7211. - `proposers`: accounts to be granted proposer and canceller roles
  7212. - `executors`: accounts to be granted executor role
  7213. - `admin`: optional account to be granted admin role; disable with zero address
  7214. IMPORTANT: The optional admin can aid with initial configuration of roles after deployment
  7215. without being subject to delay, but this role should be subsequently renounced in favor of
  7216. administration through timelocked proposals. Previous versions of this contract would assign
  7217. this admin to the deployer automatically and should be renounced as well.
  7218. [.contract-item]
  7219. [[TimelockController-receive--]]
  7220. ==== `[.contract-item-name]#++receive++#++()++` [.item-kind]#external#
  7221. Contract might receive/hold ETH as part of the maintenance process.
  7222. [.contract-item]
  7223. [[TimelockController-supportsInterface-bytes4-]]
  7224. ==== `[.contract-item-name]#++supportsInterface++#++(bytes4 interfaceId) → bool++` [.item-kind]#public#
  7225. [.contract-item]
  7226. [[TimelockController-isOperation-bytes32-]]
  7227. ==== `[.contract-item-name]#++isOperation++#++(bytes32 id) → bool++` [.item-kind]#public#
  7228. Returns whether an id corresponds to a registered operation. This
  7229. includes both Waiting, Ready, and Done operations.
  7230. [.contract-item]
  7231. [[TimelockController-isOperationPending-bytes32-]]
  7232. ==== `[.contract-item-name]#++isOperationPending++#++(bytes32 id) → bool++` [.item-kind]#public#
  7233. Returns whether an operation is pending or not. Note that a "pending" operation may also be "ready".
  7234. [.contract-item]
  7235. [[TimelockController-isOperationReady-bytes32-]]
  7236. ==== `[.contract-item-name]#++isOperationReady++#++(bytes32 id) → bool++` [.item-kind]#public#
  7237. Returns whether an operation is ready for execution. Note that a "ready" operation is also "pending".
  7238. [.contract-item]
  7239. [[TimelockController-isOperationDone-bytes32-]]
  7240. ==== `[.contract-item-name]#++isOperationDone++#++(bytes32 id) → bool++` [.item-kind]#public#
  7241. Returns whether an operation is done or not.
  7242. [.contract-item]
  7243. [[TimelockController-getTimestamp-bytes32-]]
  7244. ==== `[.contract-item-name]#++getTimestamp++#++(bytes32 id) → uint256++` [.item-kind]#public#
  7245. Returns the timestamp at which an operation becomes ready (0 for
  7246. unset operations, 1 for done operations).
  7247. [.contract-item]
  7248. [[TimelockController-getOperationState-bytes32-]]
  7249. ==== `[.contract-item-name]#++getOperationState++#++(bytes32 id) → enum TimelockController.OperationState++` [.item-kind]#public#
  7250. Returns operation state.
  7251. [.contract-item]
  7252. [[TimelockController-getMinDelay--]]
  7253. ==== `[.contract-item-name]#++getMinDelay++#++() → uint256++` [.item-kind]#public#
  7254. Returns the minimum delay in seconds for an operation to become valid.
  7255. This value can be changed by executing an operation that calls `updateDelay`.
  7256. [.contract-item]
  7257. [[TimelockController-hashOperation-address-uint256-bytes-bytes32-bytes32-]]
  7258. ==== `[.contract-item-name]#++hashOperation++#++(address target, uint256 value, bytes data, bytes32 predecessor, bytes32 salt) → bytes32++` [.item-kind]#public#
  7259. Returns the identifier of an operation containing a single
  7260. transaction.
  7261. [.contract-item]
  7262. [[TimelockController-hashOperationBatch-address---uint256---bytes---bytes32-bytes32-]]
  7263. ==== `[.contract-item-name]#++hashOperationBatch++#++(address[] targets, uint256[] values, bytes[] payloads, bytes32 predecessor, bytes32 salt) → bytes32++` [.item-kind]#public#
  7264. Returns the identifier of an operation containing a batch of
  7265. transactions.
  7266. [.contract-item]
  7267. [[TimelockController-schedule-address-uint256-bytes-bytes32-bytes32-uint256-]]
  7268. ==== `[.contract-item-name]#++schedule++#++(address target, uint256 value, bytes data, bytes32 predecessor, bytes32 salt, uint256 delay)++` [.item-kind]#public#
  7269. Schedule an operation containing a single transaction.
  7270. Emits {CallSalt} if salt is nonzero, and {CallScheduled}.
  7271. Requirements:
  7272. - the caller must have the 'proposer' role.
  7273. [.contract-item]
  7274. [[TimelockController-scheduleBatch-address---uint256---bytes---bytes32-bytes32-uint256-]]
  7275. ==== `[.contract-item-name]#++scheduleBatch++#++(address[] targets, uint256[] values, bytes[] payloads, bytes32 predecessor, bytes32 salt, uint256 delay)++` [.item-kind]#public#
  7276. Schedule an operation containing a batch of transactions.
  7277. Emits {CallSalt} if salt is nonzero, and one {CallScheduled} event per transaction in the batch.
  7278. Requirements:
  7279. - the caller must have the 'proposer' role.
  7280. [.contract-item]
  7281. [[TimelockController-cancel-bytes32-]]
  7282. ==== `[.contract-item-name]#++cancel++#++(bytes32 id)++` [.item-kind]#public#
  7283. Cancel an operation.
  7284. Requirements:
  7285. - the caller must have the 'canceller' role.
  7286. [.contract-item]
  7287. [[TimelockController-execute-address-uint256-bytes-bytes32-bytes32-]]
  7288. ==== `[.contract-item-name]#++execute++#++(address target, uint256 value, bytes payload, bytes32 predecessor, bytes32 salt)++` [.item-kind]#public#
  7289. Execute an (ready) operation containing a single transaction.
  7290. Emits a {CallExecuted} event.
  7291. Requirements:
  7292. - the caller must have the 'executor' role.
  7293. [.contract-item]
  7294. [[TimelockController-executeBatch-address---uint256---bytes---bytes32-bytes32-]]
  7295. ==== `[.contract-item-name]#++executeBatch++#++(address[] targets, uint256[] values, bytes[] payloads, bytes32 predecessor, bytes32 salt)++` [.item-kind]#public#
  7296. Execute an (ready) operation containing a batch of transactions.
  7297. Emits one {CallExecuted} event per transaction in the batch.
  7298. Requirements:
  7299. - the caller must have the 'executor' role.
  7300. [.contract-item]
  7301. [[TimelockController-_execute-address-uint256-bytes-]]
  7302. ==== `[.contract-item-name]#++_execute++#++(address target, uint256 value, bytes data)++` [.item-kind]#internal#
  7303. Execute an operation's call.
  7304. [.contract-item]
  7305. [[TimelockController-updateDelay-uint256-]]
  7306. ==== `[.contract-item-name]#++updateDelay++#++(uint256 newDelay)++` [.item-kind]#external#
  7307. Changes the minimum timelock duration for future operations.
  7308. Emits a {MinDelayChange} event.
  7309. Requirements:
  7310. - the caller must be the timelock itself. This can only be achieved by scheduling and later executing
  7311. an operation where the timelock is the target and the data is the ABI-encoded call to this function.
  7312. [.contract-item]
  7313. [[TimelockController-_encodeStateBitmap-enum-TimelockController-OperationState-]]
  7314. ==== `[.contract-item-name]#++_encodeStateBitmap++#++(enum TimelockController.OperationState operationState) → bytes32++` [.item-kind]#internal#
  7315. Encodes a `OperationState` into a `bytes32` representation where each bit enabled corresponds to
  7316. the underlying position in the `OperationState` enum. For example:
  7317. 0x000...1000
  7318. ^^^^^^----- ...
  7319. ^---- Done
  7320. ^--- Ready
  7321. ^-- Waiting
  7322. ^- Unset
  7323. [.contract-item]
  7324. [[TimelockController-PROPOSER_ROLE-bytes32]]
  7325. ==== `[.contract-item-name]#++PROPOSER_ROLE++#++() → bytes32++` [.item-kind]#public#
  7326. [.contract-item]
  7327. [[TimelockController-EXECUTOR_ROLE-bytes32]]
  7328. ==== `[.contract-item-name]#++EXECUTOR_ROLE++#++() → bytes32++` [.item-kind]#public#
  7329. [.contract-item]
  7330. [[TimelockController-CANCELLER_ROLE-bytes32]]
  7331. ==== `[.contract-item-name]#++CANCELLER_ROLE++#++() → bytes32++` [.item-kind]#public#
  7332. [.contract-item]
  7333. [[TimelockController-CallScheduled-bytes32-uint256-address-uint256-bytes-bytes32-uint256-]]
  7334. ==== `[.contract-item-name]#++CallScheduled++#++(bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data, bytes32 predecessor, uint256 delay)++` [.item-kind]#event#
  7335. Emitted when a call is scheduled as part of operation `id`.
  7336. [.contract-item]
  7337. [[TimelockController-CallExecuted-bytes32-uint256-address-uint256-bytes-]]
  7338. ==== `[.contract-item-name]#++CallExecuted++#++(bytes32 indexed id, uint256 indexed index, address target, uint256 value, bytes data)++` [.item-kind]#event#
  7339. Emitted when a call is performed as part of operation `id`.
  7340. [.contract-item]
  7341. [[TimelockController-CallSalt-bytes32-bytes32-]]
  7342. ==== `[.contract-item-name]#++CallSalt++#++(bytes32 indexed id, bytes32 salt)++` [.item-kind]#event#
  7343. Emitted when new proposal is scheduled with non-zero salt.
  7344. [.contract-item]
  7345. [[TimelockController-Cancelled-bytes32-]]
  7346. ==== `[.contract-item-name]#++Cancelled++#++(bytes32 indexed id)++` [.item-kind]#event#
  7347. Emitted when operation `id` is cancelled.
  7348. [.contract-item]
  7349. [[TimelockController-MinDelayChange-uint256-uint256-]]
  7350. ==== `[.contract-item-name]#++MinDelayChange++#++(uint256 oldDuration, uint256 newDuration)++` [.item-kind]#event#
  7351. Emitted when the minimum delay for future operations is modified.
  7352. [.contract-item]
  7353. [[TimelockController-TimelockInvalidOperationLength-uint256-uint256-uint256-]]
  7354. ==== `[.contract-item-name]#++TimelockInvalidOperationLength++#++(uint256 targets, uint256 payloads, uint256 values)++` [.item-kind]#error#
  7355. Mismatch between the parameters length for an operation call.
  7356. [.contract-item]
  7357. [[TimelockController-TimelockInsufficientDelay-uint256-uint256-]]
  7358. ==== `[.contract-item-name]#++TimelockInsufficientDelay++#++(uint256 delay, uint256 minDelay)++` [.item-kind]#error#
  7359. The schedule operation doesn't meet the minimum delay.
  7360. [.contract-item]
  7361. [[TimelockController-TimelockUnexpectedOperationState-bytes32-bytes32-]]
  7362. ==== `[.contract-item-name]#++TimelockUnexpectedOperationState++#++(bytes32 operationId, bytes32 expectedStates)++` [.item-kind]#error#
  7363. The current state of an operation is not as required.
  7364. The `expectedStates` is a bitmap with the bits enabled for each OperationState enum position
  7365. counting from right to left.
  7366. See {_encodeStateBitmap}.
  7367. [.contract-item]
  7368. [[TimelockController-TimelockUnexecutedPredecessor-bytes32-]]
  7369. ==== `[.contract-item-name]#++TimelockUnexecutedPredecessor++#++(bytes32 predecessorId)++` [.item-kind]#error#
  7370. The predecessor to an operation not yet done.
  7371. [.contract-item]
  7372. [[TimelockController-TimelockUnauthorizedCaller-address-]]
  7373. ==== `[.contract-item-name]#++TimelockUnauthorizedCaller++#++(address caller)++` [.item-kind]#error#
  7374. The caller account is not authorized.
  7375. [.contract-item]
  7376. [[TimelockController-_DONE_TIMESTAMP-uint256]]
  7377. ==== `uint256 [.contract-item-name]#++_DONE_TIMESTAMP++#` [.item-kind]#internal constant#
  7378. [[timelock-terminology]]
  7379. ==== Terminology
  7380. * *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. If the operation contains multiple transactions (batch mode), they are executed atomically. Operations are identified by the hash of their content.
  7381. * *Operation status:*
  7382. ** *Unset:* An operation that is not part of the timelock mechanism.
  7383. ** *Waiting:* An operation that has been scheduled, before the timer expires.
  7384. ** *Ready:* An operation that has been scheduled, after the timer expires.
  7385. ** *Pending:* An operation that is either waiting or ready.
  7386. ** *Done:* An operation that has been executed.
  7387. * *Predecessor*: An (optional) dependency between operations. An operation can depend on another operation (its predecessor), forcing the execution order of these two operations.
  7388. * *Role*:
  7389. ** *Admin:* An address (smart contract or EOA) that is in charge of granting the roles of Proposer and Executor.
  7390. ** *Proposer:* An address (smart contract or EOA) that is in charge of scheduling (and cancelling) operations.
  7391. ** *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.
  7392. [[timelock-operation]]
  7393. ==== Operation structure
  7394. 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.
  7395. Both operations contain:
  7396. * *Target*, the address of the smart contract that the timelock should operate on.
  7397. * *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.
  7398. * *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:
  7399. ```javascript
  7400. const data = timelock.contract.methods.grantRole(ROLE, ACCOUNT).encodeABI()
  7401. ```
  7402. * *Predecessor*, that specifies a dependency between operations. This dependency is optional. Use `bytes32(0)` if the operation does not have any dependency.
  7403. * *Salt*, used to disambiguate two otherwise identical operations. This can be any random value.
  7404. In the case of batched operations, `target`, `value` and `data` are specified as arrays, which must be of the same length.
  7405. [[timelock-operation-lifecycle]]
  7406. ==== Operation lifecycle
  7407. Timelocked operations are identified by a unique id (their hash) and follow a specific lifecycle:
  7408. `Unset` -> `Pending` -> `Pending` + `Ready` -> `Done`
  7409. * 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.
  7410. * Once the timer expires, the operation automatically gets the `Ready` state. At this point, it can be executed.
  7411. * 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.
  7412. * 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 rescheduled.
  7413. Operations status can be queried using the functions:
  7414. * xref:api:governance.adoc#TimelockController-isOperationPending-bytes32-[`isOperationPending(bytes32)`]
  7415. * xref:api:governance.adoc#TimelockController-isOperationReady-bytes32-[`isOperationReady(bytes32)`]
  7416. * xref:api:governance.adoc#TimelockController-isOperationDone-bytes32-[`isOperationDone(bytes32)`]
  7417. [[timelock-roles]]
  7418. ==== Roles
  7419. [[timelock-admin]]
  7420. ===== Admin
  7421. 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.
  7422. [[timelock-proposer]]
  7423. ===== Proposer
  7424. 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.
  7425. 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.
  7426. This role is identified by the *PROPOSER_ROLE* value: `0xb09aa5aeb3702cfd50b6b62bc4532604938f21248a27a1d5ca736082b6819cc1`
  7427. [[timelock-executor]]
  7428. ===== Executor
  7429. 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.
  7430. This role is identified by the *EXECUTOR_ROLE* value: `0xd8aa0f3194971a2a116679f7c2090f6939c8d4e01a2a8d7e41d55e5351469e63`
  7431. 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.