idl.json 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018
  1. {
  2. "version": "3.0.0",
  3. "name": "spl_governance",
  4. "instructions": [
  5. {
  6. "name": "createRealm",
  7. "accounts": [
  8. {
  9. "name": "realmAddress",
  10. "isMut": true,
  11. "isSigner": false
  12. },
  13. {
  14. "name": "realmAuthority",
  15. "isMut": false,
  16. "isSigner": false
  17. },
  18. {
  19. "name": "communityTokenMint",
  20. "isMut": false,
  21. "isSigner": false
  22. },
  23. {
  24. "name": "communityTokenHoldingAddress",
  25. "isMut": true,
  26. "isSigner": false
  27. },
  28. {
  29. "name": "payer",
  30. "isMut": true,
  31. "isSigner": true
  32. },
  33. {
  34. "name": "systemProgram",
  35. "isMut": false,
  36. "isSigner": false
  37. },
  38. {
  39. "name": "tokenProgram",
  40. "isMut": false,
  41. "isSigner": false
  42. },
  43. {
  44. "name": "rent",
  45. "isMut": false,
  46. "isSigner": false
  47. }
  48. ],
  49. "args": [
  50. {
  51. "name": "name",
  52. "type": "string"
  53. },
  54. {
  55. "name": "configArgs",
  56. "type": {
  57. "defined": "RealmConfigArgs"
  58. }
  59. }
  60. ]
  61. },
  62. {
  63. "name": "depositGoverningTokens",
  64. "accounts": [
  65. {
  66. "name": "realm",
  67. "isMut": false,
  68. "isSigner": false
  69. },
  70. {
  71. "name": "governingTokenHoldingAddress",
  72. "isMut": true,
  73. "isSigner": false
  74. },
  75. {
  76. "name": "governingTokenSource",
  77. "isMut": true,
  78. "isSigner": false
  79. },
  80. {
  81. "name": "governingTokenOwner",
  82. "isMut": false,
  83. "isSigner": true
  84. },
  85. {
  86. "name": "governingTokenTransferAuthority",
  87. "isMut": false,
  88. "isSigner": true
  89. },
  90. {
  91. "name": "tokenOwnerRecordAddress",
  92. "isMut": true,
  93. "isSigner": false
  94. },
  95. {
  96. "name": "payer",
  97. "isMut": true,
  98. "isSigner": true
  99. },
  100. {
  101. "name": "systemProgram",
  102. "isMut": false,
  103. "isSigner": false
  104. },
  105. {
  106. "name": "tokenProgram",
  107. "isMut": false,
  108. "isSigner": false
  109. }
  110. ],
  111. "args": [
  112. {
  113. "name": "amount",
  114. "type": "u64"
  115. }
  116. ]
  117. },
  118. {
  119. "name": "withdrawGoverningTokens",
  120. "accounts": [
  121. {
  122. "name": "realm",
  123. "isMut": false,
  124. "isSigner": false
  125. },
  126. {
  127. "name": "governingTokenHoldingAddress",
  128. "isMut": true,
  129. "isSigner": false
  130. },
  131. {
  132. "name": "governingTokenDestination",
  133. "isMut": true,
  134. "isSigner": false
  135. },
  136. {
  137. "name": "governingTokenOwner",
  138. "isMut": false,
  139. "isSigner": true
  140. },
  141. {
  142. "name": "tokenOwnerRecordAddress",
  143. "isMut": true,
  144. "isSigner": false
  145. },
  146. {
  147. "name": "tokenProgram",
  148. "isMut": false,
  149. "isSigner": false
  150. }
  151. ],
  152. "args": []
  153. },
  154. {
  155. "name": "setGovernanceDelegate",
  156. "accounts": [
  157. {
  158. "name": "governanceAuthority",
  159. "isMut": false,
  160. "isSigner": true
  161. },
  162. {
  163. "name": "voteRecordAddress",
  164. "isMut": true,
  165. "isSigner": false
  166. }
  167. ],
  168. "args": [
  169. {
  170. "name": "newGovernanceDelegate",
  171. "type": {
  172. "option": "publicKey"
  173. }
  174. }
  175. ]
  176. },
  177. {
  178. "name": "createGovernance",
  179. "accounts": [
  180. {
  181. "name": "realm",
  182. "isMut": false,
  183. "isSigner": false
  184. },
  185. {
  186. "name": "governanceAddress",
  187. "isMut": true,
  188. "isSigner": false
  189. },
  190. {
  191. "name": "governedAccountAddress",
  192. "isMut": false,
  193. "isSigner": false
  194. },
  195. {
  196. "name": "tokenOwnerRecord",
  197. "isMut": false,
  198. "isSigner": false
  199. },
  200. {
  201. "name": "payer",
  202. "isMut": true,
  203. "isSigner": true
  204. },
  205. {
  206. "name": "systemProgram",
  207. "isMut": false,
  208. "isSigner": false
  209. },
  210. {
  211. "name": "createAuthority",
  212. "isMut": false,
  213. "isSigner": true
  214. }
  215. ],
  216. "args": [
  217. {
  218. "name": "config",
  219. "type": {
  220. "defined": "GovernanceConfig"
  221. }
  222. }
  223. ]
  224. },
  225. {
  226. "name": "createProgramGovernance",
  227. "accounts": [
  228. {
  229. "name": "realm",
  230. "isMut": false,
  231. "isSigner": false
  232. },
  233. {
  234. "name": "programGovernanceAddress",
  235. "isMut": true,
  236. "isSigner": false
  237. },
  238. {
  239. "name": "governedProgram",
  240. "isMut": false,
  241. "isSigner": false
  242. },
  243. {
  244. "name": "governedProgramDataAddress",
  245. "isMut": true,
  246. "isSigner": false
  247. },
  248. {
  249. "name": "governedProgramUpgradeAuthority",
  250. "isMut": false,
  251. "isSigner": true
  252. },
  253. {
  254. "name": "tokenOwnerRecord",
  255. "isMut": false,
  256. "isSigner": false
  257. },
  258. {
  259. "name": "payer",
  260. "isMut": true,
  261. "isSigner": true
  262. },
  263. {
  264. "name": "bpfLoaderUpgradeable",
  265. "isMut": false,
  266. "isSigner": false
  267. },
  268. {
  269. "name": "systemProgram",
  270. "isMut": false,
  271. "isSigner": false
  272. },
  273. {
  274. "name": "createAuthority",
  275. "isMut": false,
  276. "isSigner": true
  277. }
  278. ],
  279. "args": [
  280. {
  281. "name": "config",
  282. "type": {
  283. "defined": "GovernanceConfig"
  284. }
  285. },
  286. {
  287. "name": "transferUpgradeAuthority",
  288. "type": "bool"
  289. }
  290. ]
  291. },
  292. {
  293. "name": "createProposal",
  294. "accounts": [
  295. {
  296. "name": "realm",
  297. "isMut": false,
  298. "isSigner": false
  299. },
  300. {
  301. "name": "proposalAddress",
  302. "isMut": true,
  303. "isSigner": false
  304. },
  305. {
  306. "name": "governance",
  307. "isMut": true,
  308. "isSigner": false
  309. },
  310. {
  311. "name": "proposalOwnerRecord",
  312. "isMut": true,
  313. "isSigner": false
  314. },
  315. {
  316. "name": "governingTokenMint",
  317. "isMut": false,
  318. "isSigner": false
  319. },
  320. {
  321. "name": "governanceAuthority",
  322. "isMut": false,
  323. "isSigner": true
  324. },
  325. {
  326. "name": "payer",
  327. "isMut": true,
  328. "isSigner": true
  329. },
  330. {
  331. "name": "systemProgram",
  332. "isMut": false,
  333. "isSigner": false
  334. }
  335. ],
  336. "args": [
  337. {
  338. "name": "name",
  339. "type": "string"
  340. },
  341. {
  342. "name": "descriptionLink",
  343. "type": "string"
  344. },
  345. {
  346. "name": "voteType",
  347. "type": {
  348. "defined": "VoteType"
  349. }
  350. },
  351. {
  352. "name": "options",
  353. "type": {
  354. "vec": "string"
  355. }
  356. },
  357. {
  358. "name": "useDenyOption",
  359. "type": "bool"
  360. }
  361. ]
  362. },
  363. {
  364. "name": "addSignatory",
  365. "accounts": [
  366. {
  367. "name": "proposal",
  368. "isMut": true,
  369. "isSigner": false
  370. },
  371. {
  372. "name": "tokenOwnerRecord",
  373. "isMut": false,
  374. "isSigner": false
  375. },
  376. {
  377. "name": "governanceAuthority",
  378. "isMut": false,
  379. "isSigner": true
  380. },
  381. {
  382. "name": "signatoryRecordAddress",
  383. "isMut": true,
  384. "isSigner": false
  385. },
  386. {
  387. "name": "payer",
  388. "isMut": true,
  389. "isSigner": true
  390. },
  391. {
  392. "name": "systemProgram",
  393. "isMut": false,
  394. "isSigner": false
  395. }
  396. ],
  397. "args": [
  398. {
  399. "name": "signatory",
  400. "type": "publicKey"
  401. }
  402. ]
  403. },
  404. {
  405. "name": "removeSignatory",
  406. "accounts": [
  407. {
  408. "name": "proposal",
  409. "isMut": true,
  410. "isSigner": false
  411. },
  412. {
  413. "name": "tokenOwnerRecord",
  414. "isMut": false,
  415. "isSigner": false
  416. },
  417. {
  418. "name": "governanceAuthority",
  419. "isMut": false,
  420. "isSigner": true
  421. },
  422. {
  423. "name": "signatoryRecordAddress",
  424. "isMut": true,
  425. "isSigner": false
  426. },
  427. {
  428. "name": "beneficiary",
  429. "isMut": true,
  430. "isSigner": false
  431. }
  432. ],
  433. "args": [
  434. {
  435. "name": "signatory",
  436. "type": "publicKey"
  437. }
  438. ]
  439. },
  440. {
  441. "name": "insertTransaction",
  442. "accounts": [
  443. {
  444. "name": "governance",
  445. "isMut": false,
  446. "isSigner": false
  447. },
  448. {
  449. "name": "proposal",
  450. "isMut": true,
  451. "isSigner": false
  452. },
  453. {
  454. "name": "tokenOwnerRecord",
  455. "isMut": false,
  456. "isSigner": false
  457. },
  458. {
  459. "name": "governanceAuthority",
  460. "isMut": false,
  461. "isSigner": true
  462. },
  463. {
  464. "name": "proposalTransactionAddress",
  465. "isMut": true,
  466. "isSigner": false
  467. },
  468. {
  469. "name": "payer",
  470. "isMut": true,
  471. "isSigner": true
  472. },
  473. {
  474. "name": "systemProgram",
  475. "isMut": false,
  476. "isSigner": false
  477. },
  478. {
  479. "name": "rent",
  480. "isMut": false,
  481. "isSigner": false
  482. }
  483. ],
  484. "args": [
  485. {
  486. "name": "optionIndex",
  487. "type": "u8"
  488. },
  489. {
  490. "name": "index",
  491. "type": "u16"
  492. },
  493. {
  494. "name": "holdUpTime",
  495. "type": "u32"
  496. },
  497. {
  498. "name": "instructions",
  499. "type": {
  500. "vec": {
  501. "defined": "InstructionData"
  502. }
  503. }
  504. }
  505. ]
  506. },
  507. {
  508. "name": "removeTransaction",
  509. "accounts": [
  510. {
  511. "name": "proposal",
  512. "isMut": true,
  513. "isSigner": false
  514. },
  515. {
  516. "name": "tokenOwnerRecord",
  517. "isMut": false,
  518. "isSigner": false
  519. },
  520. {
  521. "name": "governanceAuthority",
  522. "isMut": false,
  523. "isSigner": true
  524. },
  525. {
  526. "name": "proposalTransaction",
  527. "isMut": true,
  528. "isSigner": false
  529. },
  530. {
  531. "name": "beneficiary",
  532. "isMut": true,
  533. "isSigner": false
  534. }
  535. ],
  536. "args": []
  537. },
  538. {
  539. "name": "cancelProposal",
  540. "accounts": [
  541. {
  542. "name": "realm",
  543. "isMut": true,
  544. "isSigner": false
  545. },
  546. {
  547. "name": "governance",
  548. "isMut": true,
  549. "isSigner": false
  550. },
  551. {
  552. "name": "proposal",
  553. "isMut": true,
  554. "isSigner": false
  555. },
  556. {
  557. "name": "proposalOwnerRecord",
  558. "isMut": true,
  559. "isSigner": false
  560. },
  561. {
  562. "name": "governanceAuthority",
  563. "isMut": false,
  564. "isSigner": true
  565. }
  566. ],
  567. "args": []
  568. },
  569. {
  570. "name": "signOffProposal",
  571. "accounts": [
  572. {
  573. "name": "realm",
  574. "isMut": true,
  575. "isSigner": false
  576. },
  577. {
  578. "name": "governance",
  579. "isMut": true,
  580. "isSigner": false
  581. },
  582. {
  583. "name": "proposal",
  584. "isMut": true,
  585. "isSigner": false
  586. },
  587. {
  588. "name": "signatory",
  589. "isMut": false,
  590. "isSigner": true
  591. }
  592. ],
  593. "args": []
  594. },
  595. {
  596. "name": "castVote",
  597. "accounts": [
  598. {
  599. "name": "realm",
  600. "isMut": true,
  601. "isSigner": false
  602. },
  603. {
  604. "name": "governance",
  605. "isMut": true,
  606. "isSigner": false
  607. },
  608. {
  609. "name": "proposal",
  610. "isMut": true,
  611. "isSigner": false
  612. },
  613. {
  614. "name": "proposalOwnerRecord",
  615. "isMut": true,
  616. "isSigner": false
  617. },
  618. {
  619. "name": "voterTokenOwnerRecord",
  620. "isMut": true,
  621. "isSigner": false
  622. },
  623. {
  624. "name": "governanceAuthority",
  625. "isMut": false,
  626. "isSigner": true
  627. },
  628. {
  629. "name": "voteRecordAddress",
  630. "isMut": true,
  631. "isSigner": false
  632. },
  633. {
  634. "name": "voteGoverningTokenMint",
  635. "isMut": false,
  636. "isSigner": false
  637. },
  638. {
  639. "name": "payer",
  640. "isMut": true,
  641. "isSigner": true
  642. },
  643. {
  644. "name": "systemProgram",
  645. "isMut": false,
  646. "isSigner": false
  647. }
  648. ],
  649. "args": [
  650. {
  651. "name": "vote",
  652. "type": {
  653. "defined": "Vote"
  654. }
  655. }
  656. ]
  657. },
  658. {
  659. "name": "finalizeVote",
  660. "accounts": [
  661. {
  662. "name": "realm",
  663. "isMut": true,
  664. "isSigner": false
  665. },
  666. {
  667. "name": "governance",
  668. "isMut": true,
  669. "isSigner": false
  670. },
  671. {
  672. "name": "proposal",
  673. "isMut": true,
  674. "isSigner": false
  675. },
  676. {
  677. "name": "proposalOwnerRecord",
  678. "isMut": true,
  679. "isSigner": false
  680. },
  681. {
  682. "name": "governingTokenMint",
  683. "isMut": false,
  684. "isSigner": false
  685. }
  686. ],
  687. "args": []
  688. },
  689. {
  690. "name": "relinquishVote",
  691. "accounts": [
  692. {
  693. "name": "realm",
  694. "isMut": false,
  695. "isSigner": false
  696. },
  697. {
  698. "name": "governance",
  699. "isMut": false,
  700. "isSigner": false
  701. },
  702. {
  703. "name": "proposal",
  704. "isMut": true,
  705. "isSigner": false
  706. },
  707. {
  708. "name": "tokenOwnerRecord",
  709. "isMut": true,
  710. "isSigner": false
  711. },
  712. {
  713. "name": "voteRecordAddress",
  714. "isMut": true,
  715. "isSigner": false
  716. },
  717. {
  718. "name": "voteGoverningTokenMint",
  719. "isMut": false,
  720. "isSigner": false
  721. }
  722. ],
  723. "args": []
  724. },
  725. {
  726. "name": "executeTransaction",
  727. "accounts": [
  728. {
  729. "name": "governance",
  730. "isMut": false,
  731. "isSigner": false
  732. },
  733. {
  734. "name": "proposal",
  735. "isMut": true,
  736. "isSigner": false
  737. },
  738. {
  739. "name": "proposalTransaction",
  740. "isMut": true,
  741. "isSigner": false
  742. },
  743. {
  744. "name": "instructionProgram",
  745. "isMut": false,
  746. "isSigner": false
  747. }
  748. ],
  749. "args": []
  750. },
  751. {
  752. "name": "createMintGovernance",
  753. "accounts": [
  754. {
  755. "name": "realm",
  756. "isMut": false,
  757. "isSigner": false
  758. },
  759. {
  760. "name": "mintGovernanceAddress",
  761. "isMut": true,
  762. "isSigner": false
  763. },
  764. {
  765. "name": "governedMint",
  766. "isMut": true,
  767. "isSigner": false
  768. },
  769. {
  770. "name": "governedMintAuthority",
  771. "isMut": false,
  772. "isSigner": true
  773. },
  774. {
  775. "name": "tokenOwnerRecord",
  776. "isMut": false,
  777. "isSigner": false
  778. },
  779. {
  780. "name": "payer",
  781. "isMut": true,
  782. "isSigner": true
  783. },
  784. {
  785. "name": "tokenProgram",
  786. "isMut": false,
  787. "isSigner": false
  788. },
  789. {
  790. "name": "systemProgram",
  791. "isMut": false,
  792. "isSigner": false
  793. },
  794. {
  795. "name": "createAuthority",
  796. "isMut": false,
  797. "isSigner": true
  798. }
  799. ],
  800. "args": [
  801. {
  802. "name": "config",
  803. "type": {
  804. "defined": "GovernanceConfig"
  805. }
  806. },
  807. {
  808. "name": "transferMintAuthorities",
  809. "type": "bool"
  810. }
  811. ]
  812. },
  813. {
  814. "name": "createTokenGovernance",
  815. "accounts": [
  816. {
  817. "name": "realm",
  818. "isMut": false,
  819. "isSigner": false
  820. },
  821. {
  822. "name": "tokenGovernanceAddress",
  823. "isMut": true,
  824. "isSigner": false
  825. },
  826. {
  827. "name": "governedToken",
  828. "isMut": true,
  829. "isSigner": false
  830. },
  831. {
  832. "name": "governedTokenOwner",
  833. "isMut": false,
  834. "isSigner": true
  835. },
  836. {
  837. "name": "tokenOwnerRecord",
  838. "isMut": false,
  839. "isSigner": false
  840. },
  841. {
  842. "name": "payer",
  843. "isMut": true,
  844. "isSigner": true
  845. },
  846. {
  847. "name": "tokenProgram",
  848. "isMut": false,
  849. "isSigner": false
  850. },
  851. {
  852. "name": "systemProgram",
  853. "isMut": false,
  854. "isSigner": false
  855. },
  856. {
  857. "name": "createAuthority",
  858. "isMut": false,
  859. "isSigner": true
  860. }
  861. ],
  862. "args": [
  863. {
  864. "name": "config",
  865. "type": {
  866. "defined": "GovernanceConfig"
  867. }
  868. },
  869. {
  870. "name": "transferAccountAuthorities",
  871. "type": "bool"
  872. }
  873. ]
  874. },
  875. {
  876. "name": "setGovernanceConfig",
  877. "accounts": [
  878. {
  879. "name": "governance",
  880. "isMut": true,
  881. "isSigner": true
  882. }
  883. ],
  884. "args": [
  885. {
  886. "name": "config",
  887. "type": {
  888. "defined": "GovernanceConfig"
  889. }
  890. }
  891. ]
  892. },
  893. {
  894. "name": "flagTransactionError",
  895. "accounts": [
  896. {
  897. "name": "proposal",
  898. "isMut": true,
  899. "isSigner": false
  900. },
  901. {
  902. "name": "tokenOwnerRecord",
  903. "isMut": false,
  904. "isSigner": false
  905. },
  906. {
  907. "name": "governanceAuthority",
  908. "isMut": false,
  909. "isSigner": true
  910. },
  911. {
  912. "name": "proposalTransaction",
  913. "isMut": true,
  914. "isSigner": false
  915. }
  916. ],
  917. "args": []
  918. },
  919. {
  920. "name": "setRealmAuthority",
  921. "accounts": [
  922. {
  923. "name": "realm",
  924. "isMut": true,
  925. "isSigner": false
  926. },
  927. {
  928. "name": "realmAuthority",
  929. "isMut": false,
  930. "isSigner": true
  931. }
  932. ],
  933. "args": [
  934. {
  935. "name": "action",
  936. "type": {
  937. "defined": "SetRealmAuthorityAction"
  938. }
  939. }
  940. ]
  941. },
  942. {
  943. "name": "setRealmConfig",
  944. "accounts": [
  945. {
  946. "name": "realm",
  947. "isMut": true,
  948. "isSigner": false
  949. },
  950. {
  951. "name": "realmAuthority",
  952. "isMut": false,
  953. "isSigner": true
  954. }
  955. ],
  956. "args": [
  957. {
  958. "name": "configArgs",
  959. "type": {
  960. "defined": "RealmConfigArgs"
  961. }
  962. }
  963. ]
  964. },
  965. {
  966. "name": "createTokenOwnerRecord",
  967. "accounts": [
  968. {
  969. "name": "realm",
  970. "isMut": false,
  971. "isSigner": false
  972. },
  973. {
  974. "name": "governingTokenOwner",
  975. "isMut": false,
  976. "isSigner": false
  977. },
  978. {
  979. "name": "tokenOwnerRecordAddress",
  980. "isMut": true,
  981. "isSigner": false
  982. },
  983. {
  984. "name": "governingTokenMint",
  985. "isMut": false,
  986. "isSigner": false
  987. },
  988. {
  989. "name": "payer",
  990. "isMut": true,
  991. "isSigner": true
  992. },
  993. {
  994. "name": "systemProgram",
  995. "isMut": false,
  996. "isSigner": false
  997. }
  998. ],
  999. "args": []
  1000. },
  1001. {
  1002. "name": "updateProgramMetadata",
  1003. "accounts": [
  1004. {
  1005. "name": "programMetadataAddress",
  1006. "isMut": true,
  1007. "isSigner": false
  1008. },
  1009. {
  1010. "name": "payer",
  1011. "isMut": true,
  1012. "isSigner": true
  1013. },
  1014. {
  1015. "name": "systemProgram",
  1016. "isMut": false,
  1017. "isSigner": false
  1018. }
  1019. ],
  1020. "args": []
  1021. },
  1022. {
  1023. "name": "createNativeTreasury",
  1024. "accounts": [
  1025. {
  1026. "name": "governance",
  1027. "isMut": false,
  1028. "isSigner": false
  1029. },
  1030. {
  1031. "name": "nativeTreasuryAddress",
  1032. "isMut": true,
  1033. "isSigner": false
  1034. },
  1035. {
  1036. "name": "payer",
  1037. "isMut": true,
  1038. "isSigner": true
  1039. },
  1040. {
  1041. "name": "systemProgram",
  1042. "isMut": false,
  1043. "isSigner": false
  1044. }
  1045. ],
  1046. "args": []
  1047. }
  1048. ],
  1049. "accounts": [
  1050. {
  1051. "name": "RealmV2",
  1052. "type": {
  1053. "kind": "struct",
  1054. "fields": [
  1055. {
  1056. "name": "accountType",
  1057. "type": {
  1058. "defined": "GovernanceAccountType"
  1059. }
  1060. },
  1061. {
  1062. "name": "communityMint",
  1063. "type": "publicKey"
  1064. },
  1065. {
  1066. "name": "config",
  1067. "type": {
  1068. "defined": "RealmConfig"
  1069. }
  1070. },
  1071. {
  1072. "name": "reserved",
  1073. "type": {
  1074. "array": [
  1075. "u8",
  1076. 6
  1077. ]
  1078. }
  1079. },
  1080. {
  1081. "name": "votingProposalCount",
  1082. "type": "u16"
  1083. },
  1084. {
  1085. "name": "authority",
  1086. "type": {
  1087. "option": "publicKey"
  1088. }
  1089. },
  1090. {
  1091. "name": "name",
  1092. "type": "string"
  1093. },
  1094. {
  1095. "name": "reservedV2",
  1096. "type": {
  1097. "array": [
  1098. "u8",
  1099. 128
  1100. ]
  1101. }
  1102. }
  1103. ]
  1104. }
  1105. },
  1106. {
  1107. "name": "ProposalV2",
  1108. "type": {
  1109. "kind": "struct",
  1110. "fields": [
  1111. {
  1112. "name": "accountType",
  1113. "type": {
  1114. "defined": "GovernanceAccountType"
  1115. }
  1116. },
  1117. {
  1118. "name": "governance",
  1119. "type": "publicKey"
  1120. },
  1121. {
  1122. "name": "governingTokenMint",
  1123. "type": "publicKey"
  1124. },
  1125. {
  1126. "name": "state",
  1127. "type": {
  1128. "defined": "ProposalState"
  1129. }
  1130. },
  1131. {
  1132. "name": "tokenOwnerRecord",
  1133. "type": "publicKey"
  1134. },
  1135. {
  1136. "name": "signatoriesCount",
  1137. "type": "u8"
  1138. },
  1139. {
  1140. "name": "signatoriesSignedOffCount",
  1141. "type": "u8"
  1142. },
  1143. {
  1144. "name": "voteType",
  1145. "type": {
  1146. "defined": "VoteType"
  1147. }
  1148. },
  1149. {
  1150. "name": "options",
  1151. "type": {
  1152. "vec": {
  1153. "defined": "ProposalOption"
  1154. }
  1155. }
  1156. },
  1157. {
  1158. "name": "denyVoteWeight",
  1159. "type": {
  1160. "option": "u64"
  1161. }
  1162. },
  1163. {
  1164. "name": "reserved1",
  1165. "type": "u8"
  1166. },
  1167. {
  1168. "name": "abstainVoteWeight",
  1169. "type": {
  1170. "option": "u64"
  1171. }
  1172. },
  1173. {
  1174. "name": "startVotingAt",
  1175. "type": {
  1176. "option": "i64"
  1177. }
  1178. },
  1179. {
  1180. "name": "draftAt",
  1181. "type": "i64"
  1182. },
  1183. {
  1184. "name": "signingOffAt",
  1185. "type": {
  1186. "option": "i64"
  1187. }
  1188. },
  1189. {
  1190. "name": "votingAt",
  1191. "type": {
  1192. "option": "i64"
  1193. }
  1194. },
  1195. {
  1196. "name": "votingAtSlot",
  1197. "type": {
  1198. "option": "u64"
  1199. }
  1200. },
  1201. {
  1202. "name": "votingCompletedAt",
  1203. "type": {
  1204. "option": "i64"
  1205. }
  1206. },
  1207. {
  1208. "name": "executingAt",
  1209. "type": {
  1210. "option": "i64"
  1211. }
  1212. },
  1213. {
  1214. "name": "closedAt",
  1215. "type": {
  1216. "option": "i64"
  1217. }
  1218. },
  1219. {
  1220. "name": "executionFlags",
  1221. "type": {
  1222. "defined": "InstructionExecutionFlags"
  1223. }
  1224. },
  1225. {
  1226. "name": "maxVoteWeight",
  1227. "type": {
  1228. "option": "u64"
  1229. }
  1230. },
  1231. {
  1232. "name": "maxVotingTime",
  1233. "type": {
  1234. "option": "u32"
  1235. }
  1236. },
  1237. {
  1238. "name": "voteThreshold",
  1239. "type": {
  1240. "option": {
  1241. "defined": "VoteThreshold"
  1242. }
  1243. }
  1244. },
  1245. {
  1246. "name": "reserved",
  1247. "type": {
  1248. "array": [
  1249. "u8",
  1250. 64
  1251. ]
  1252. }
  1253. },
  1254. {
  1255. "name": "name",
  1256. "type": "string"
  1257. },
  1258. {
  1259. "name": "descriptionLink",
  1260. "type": "string"
  1261. },
  1262. {
  1263. "name": "vetoVoteWeight",
  1264. "type": "u64"
  1265. }
  1266. ]
  1267. }
  1268. },
  1269. {
  1270. "name": "ProgramMetadata",
  1271. "type": {
  1272. "kind": "struct",
  1273. "fields": [
  1274. {
  1275. "name": "accountType",
  1276. "type": {
  1277. "defined": "GovernanceAccountType"
  1278. }
  1279. },
  1280. {
  1281. "name": "updatedAt",
  1282. "type": "u64"
  1283. },
  1284. {
  1285. "name": "version",
  1286. "type": "string"
  1287. },
  1288. {
  1289. "name": "reserved",
  1290. "type": {
  1291. "array": [
  1292. "u8",
  1293. 64
  1294. ]
  1295. }
  1296. }
  1297. ]
  1298. }
  1299. },
  1300. {
  1301. "name": "SignatoryRecordV2",
  1302. "type": {
  1303. "kind": "struct",
  1304. "fields": [
  1305. {
  1306. "name": "accountType",
  1307. "type": {
  1308. "defined": "GovernanceAccountType"
  1309. }
  1310. },
  1311. {
  1312. "name": "proposal",
  1313. "type": "publicKey"
  1314. },
  1315. {
  1316. "name": "signatory",
  1317. "type": "publicKey"
  1318. },
  1319. {
  1320. "name": "signedOff",
  1321. "type": "bool"
  1322. },
  1323. {
  1324. "name": "reservedV2",
  1325. "type": {
  1326. "array": [
  1327. "u8",
  1328. 8
  1329. ]
  1330. }
  1331. }
  1332. ]
  1333. }
  1334. },
  1335. {
  1336. "name": "RealmV1",
  1337. "type": {
  1338. "kind": "struct",
  1339. "fields": [
  1340. {
  1341. "name": "accountType",
  1342. "type": {
  1343. "defined": "GovernanceAccountType"
  1344. }
  1345. },
  1346. {
  1347. "name": "communityMint",
  1348. "type": "publicKey"
  1349. },
  1350. {
  1351. "name": "config",
  1352. "type": {
  1353. "defined": "RealmConfig"
  1354. }
  1355. },
  1356. {
  1357. "name": "reserved",
  1358. "type": {
  1359. "array": [
  1360. "u8",
  1361. 6
  1362. ]
  1363. }
  1364. },
  1365. {
  1366. "name": "votingProposalCount",
  1367. "type": "u16"
  1368. },
  1369. {
  1370. "name": "authority",
  1371. "type": {
  1372. "option": "publicKey"
  1373. }
  1374. },
  1375. {
  1376. "name": "name",
  1377. "type": "string"
  1378. }
  1379. ]
  1380. }
  1381. },
  1382. {
  1383. "name": "TokenOwnerRecordV1",
  1384. "type": {
  1385. "kind": "struct",
  1386. "fields": [
  1387. {
  1388. "name": "accountType",
  1389. "type": {
  1390. "defined": "GovernanceAccountType"
  1391. }
  1392. },
  1393. {
  1394. "name": "realm",
  1395. "type": "publicKey"
  1396. },
  1397. {
  1398. "name": "governingTokenMint",
  1399. "type": "publicKey"
  1400. },
  1401. {
  1402. "name": "governingTokenOwner",
  1403. "type": "publicKey"
  1404. },
  1405. {
  1406. "name": "governingTokenDepositAmount",
  1407. "type": "u64"
  1408. },
  1409. {
  1410. "name": "unrelinquishedVotesCount",
  1411. "type": "u32"
  1412. },
  1413. {
  1414. "name": "totalVotesCount",
  1415. "type": "u32"
  1416. },
  1417. {
  1418. "name": "outstandingProposalCount",
  1419. "type": "u8"
  1420. },
  1421. {
  1422. "name": "reserved",
  1423. "type": {
  1424. "array": [
  1425. "u8",
  1426. 7
  1427. ]
  1428. }
  1429. },
  1430. {
  1431. "name": "governanceDelegate",
  1432. "type": {
  1433. "option": "publicKey"
  1434. }
  1435. }
  1436. ]
  1437. }
  1438. },
  1439. {
  1440. "name": "GovernanceV1",
  1441. "type": {
  1442. "kind": "struct",
  1443. "fields": [
  1444. {
  1445. "name": "accountType",
  1446. "type": {
  1447. "defined": "GovernanceAccountType"
  1448. }
  1449. },
  1450. {
  1451. "name": "realm",
  1452. "type": "publicKey"
  1453. },
  1454. {
  1455. "name": "governedAccount",
  1456. "type": "publicKey"
  1457. },
  1458. {
  1459. "name": "proposalsCount",
  1460. "type": "u32"
  1461. },
  1462. {
  1463. "name": "config",
  1464. "type": {
  1465. "defined": "GovernanceConfig"
  1466. }
  1467. },
  1468. {
  1469. "name": "reserved",
  1470. "type": {
  1471. "array": [
  1472. "u8",
  1473. 6
  1474. ]
  1475. }
  1476. },
  1477. {
  1478. "name": "votingProposalCount",
  1479. "type": "u16"
  1480. }
  1481. ]
  1482. }
  1483. },
  1484. {
  1485. "name": "ProposalV1",
  1486. "type": {
  1487. "kind": "struct",
  1488. "fields": [
  1489. {
  1490. "name": "accountType",
  1491. "type": {
  1492. "defined": "GovernanceAccountType"
  1493. }
  1494. },
  1495. {
  1496. "name": "governance",
  1497. "type": "publicKey"
  1498. },
  1499. {
  1500. "name": "governingTokenMint",
  1501. "type": "publicKey"
  1502. },
  1503. {
  1504. "name": "state",
  1505. "type": {
  1506. "defined": "ProposalState"
  1507. }
  1508. },
  1509. {
  1510. "name": "tokenOwnerRecord",
  1511. "type": "publicKey"
  1512. },
  1513. {
  1514. "name": "signatoriesCount",
  1515. "type": "u8"
  1516. },
  1517. {
  1518. "name": "signatoriesSignedOffCount",
  1519. "type": "u8"
  1520. },
  1521. {
  1522. "name": "yesVotesCount",
  1523. "type": "u64"
  1524. },
  1525. {
  1526. "name": "noVotesCount",
  1527. "type": "u64"
  1528. },
  1529. {
  1530. "name": "instructionsExecutedCount",
  1531. "type": "u16"
  1532. },
  1533. {
  1534. "name": "instructionsCount",
  1535. "type": "u16"
  1536. },
  1537. {
  1538. "name": "instructionsNextIndex",
  1539. "type": "u16"
  1540. },
  1541. {
  1542. "name": "draftAt",
  1543. "type": "i64"
  1544. },
  1545. {
  1546. "name": "signingOffAt",
  1547. "type": {
  1548. "option": "i64"
  1549. }
  1550. },
  1551. {
  1552. "name": "votingAt",
  1553. "type": {
  1554. "option": "i64"
  1555. }
  1556. },
  1557. {
  1558. "name": "votingAtSlot",
  1559. "type": {
  1560. "option": "u64"
  1561. }
  1562. },
  1563. {
  1564. "name": "votingCompletedAt",
  1565. "type": {
  1566. "option": "i64"
  1567. }
  1568. },
  1569. {
  1570. "name": "executingAt",
  1571. "type": {
  1572. "option": "i64"
  1573. }
  1574. },
  1575. {
  1576. "name": "closedAt",
  1577. "type": {
  1578. "option": "i64"
  1579. }
  1580. },
  1581. {
  1582. "name": "executionFlags",
  1583. "type": {
  1584. "defined": "InstructionExecutionFlags"
  1585. }
  1586. },
  1587. {
  1588. "name": "maxVoteWeight",
  1589. "type": {
  1590. "option": "u64"
  1591. }
  1592. },
  1593. {
  1594. "name": "voteThreshold",
  1595. "type": {
  1596. "option": {
  1597. "defined": "VoteThreshold"
  1598. }
  1599. }
  1600. },
  1601. {
  1602. "name": "name",
  1603. "type": "string"
  1604. },
  1605. {
  1606. "name": "descriptionLink",
  1607. "type": "string"
  1608. }
  1609. ]
  1610. }
  1611. },
  1612. {
  1613. "name": "SignatoryRecordV1",
  1614. "type": {
  1615. "kind": "struct",
  1616. "fields": [
  1617. {
  1618. "name": "accountType",
  1619. "type": {
  1620. "defined": "GovernanceAccountType"
  1621. }
  1622. },
  1623. {
  1624. "name": "proposal",
  1625. "type": "publicKey"
  1626. },
  1627. {
  1628. "name": "signatory",
  1629. "type": "publicKey"
  1630. },
  1631. {
  1632. "name": "signedOff",
  1633. "type": "bool"
  1634. }
  1635. ]
  1636. }
  1637. },
  1638. {
  1639. "name": "VoteRecordV1",
  1640. "type": {
  1641. "kind": "struct",
  1642. "fields": [
  1643. {
  1644. "name": "accountType",
  1645. "type": {
  1646. "defined": "GovernanceAccountType"
  1647. }
  1648. },
  1649. {
  1650. "name": "proposal",
  1651. "type": "publicKey"
  1652. },
  1653. {
  1654. "name": "governingTokenOwner",
  1655. "type": "publicKey"
  1656. },
  1657. {
  1658. "name": "isRelinquished",
  1659. "type": "bool"
  1660. },
  1661. {
  1662. "name": "voteWeight",
  1663. "type": {
  1664. "defined": "VoteWeightV1"
  1665. }
  1666. }
  1667. ]
  1668. }
  1669. },
  1670. {
  1671. "name": "GovernanceV2",
  1672. "type": {
  1673. "kind": "struct",
  1674. "fields": [
  1675. {
  1676. "name": "accountType",
  1677. "type": {
  1678. "defined": "GovernanceAccountType"
  1679. }
  1680. },
  1681. {
  1682. "name": "realm",
  1683. "type": "publicKey"
  1684. },
  1685. {
  1686. "name": "governedAccount",
  1687. "type": "publicKey"
  1688. },
  1689. {
  1690. "name": "proposalsCount",
  1691. "type": "u32"
  1692. },
  1693. {
  1694. "name": "config",
  1695. "type": {
  1696. "defined": "GovernanceConfig"
  1697. }
  1698. },
  1699. {
  1700. "name": "reserved",
  1701. "type": {
  1702. "array": [
  1703. "u8",
  1704. 6
  1705. ]
  1706. }
  1707. },
  1708. {
  1709. "name": "votingProposalCount",
  1710. "type": "u16"
  1711. },
  1712. {
  1713. "name": "reservedV2",
  1714. "type": {
  1715. "array": [
  1716. "u8",
  1717. 128
  1718. ]
  1719. }
  1720. }
  1721. ]
  1722. }
  1723. },
  1724. {
  1725. "name": "VoteRecordV2",
  1726. "type": {
  1727. "kind": "struct",
  1728. "fields": [
  1729. {
  1730. "name": "accountType",
  1731. "type": {
  1732. "defined": "GovernanceAccountType"
  1733. }
  1734. },
  1735. {
  1736. "name": "proposal",
  1737. "type": "publicKey"
  1738. },
  1739. {
  1740. "name": "governingTokenOwner",
  1741. "type": "publicKey"
  1742. },
  1743. {
  1744. "name": "isRelinquished",
  1745. "type": "bool"
  1746. },
  1747. {
  1748. "name": "voterWeight",
  1749. "type": "u64"
  1750. },
  1751. {
  1752. "name": "vote",
  1753. "type": {
  1754. "defined": "Vote"
  1755. }
  1756. },
  1757. {
  1758. "name": "reservedV2",
  1759. "type": {
  1760. "array": [
  1761. "u8",
  1762. 8
  1763. ]
  1764. }
  1765. }
  1766. ]
  1767. }
  1768. },
  1769. {
  1770. "name": "TokenOwnerRecordV2",
  1771. "type": {
  1772. "kind": "struct",
  1773. "fields": [
  1774. {
  1775. "name": "accountType",
  1776. "type": {
  1777. "defined": "GovernanceAccountType"
  1778. }
  1779. },
  1780. {
  1781. "name": "realm",
  1782. "type": "publicKey"
  1783. },
  1784. {
  1785. "name": "governingTokenMint",
  1786. "type": "publicKey"
  1787. },
  1788. {
  1789. "name": "governingTokenOwner",
  1790. "type": "publicKey"
  1791. },
  1792. {
  1793. "name": "governingTokenDepositAmount",
  1794. "type": "u64"
  1795. },
  1796. {
  1797. "name": "unrelinquishedVotesCount",
  1798. "type": "u32"
  1799. },
  1800. {
  1801. "name": "totalVotesCount",
  1802. "type": "u32"
  1803. },
  1804. {
  1805. "name": "outstandingProposalCount",
  1806. "type": "u8"
  1807. },
  1808. {
  1809. "name": "reserved",
  1810. "type": {
  1811. "array": [
  1812. "u8",
  1813. 7
  1814. ]
  1815. }
  1816. },
  1817. {
  1818. "name": "governanceDelegate",
  1819. "type": {
  1820. "option": "publicKey"
  1821. }
  1822. },
  1823. {
  1824. "name": "reservedV2",
  1825. "type": {
  1826. "array": [
  1827. "u8",
  1828. 128
  1829. ]
  1830. }
  1831. }
  1832. ]
  1833. }
  1834. },
  1835. {
  1836. "name": "RealmConfigAccount",
  1837. "type": {
  1838. "kind": "struct",
  1839. "fields": [
  1840. {
  1841. "name": "accountType",
  1842. "type": {
  1843. "defined": "GovernanceAccountType"
  1844. }
  1845. },
  1846. {
  1847. "name": "realm",
  1848. "type": "publicKey"
  1849. },
  1850. {
  1851. "name": "communityVoterWeightAddin",
  1852. "type": {
  1853. "option": "publicKey"
  1854. }
  1855. },
  1856. {
  1857. "name": "maxCommunityVoterWeightAddin",
  1858. "type": {
  1859. "option": "publicKey"
  1860. }
  1861. },
  1862. {
  1863. "name": "councilVoterWeightAddin",
  1864. "type": {
  1865. "option": "publicKey"
  1866. }
  1867. },
  1868. {
  1869. "name": "councilMaxVoteWeightAddin",
  1870. "type": {
  1871. "option": "publicKey"
  1872. }
  1873. },
  1874. {
  1875. "name": "reserved",
  1876. "type": {
  1877. "array": [
  1878. "u8",
  1879. 128
  1880. ]
  1881. }
  1882. }
  1883. ]
  1884. }
  1885. },
  1886. {
  1887. "name": "ProposalTransactionV2",
  1888. "type": {
  1889. "kind": "struct",
  1890. "fields": [
  1891. {
  1892. "name": "accountType",
  1893. "type": {
  1894. "defined": "GovernanceAccountType"
  1895. }
  1896. },
  1897. {
  1898. "name": "proposal",
  1899. "type": "publicKey"
  1900. },
  1901. {
  1902. "name": "optionIndex",
  1903. "type": "u8"
  1904. },
  1905. {
  1906. "name": "transactionIndex",
  1907. "type": "u16"
  1908. },
  1909. {
  1910. "name": "holdUpTime",
  1911. "type": "u32"
  1912. },
  1913. {
  1914. "name": "instructions",
  1915. "type": {
  1916. "vec": {
  1917. "defined": "InstructionData"
  1918. }
  1919. }
  1920. },
  1921. {
  1922. "name": "executedAt",
  1923. "type": {
  1924. "option": "i64"
  1925. }
  1926. },
  1927. {
  1928. "name": "executionStatus",
  1929. "type": {
  1930. "defined": "TransactionExecutionStatus"
  1931. }
  1932. },
  1933. {
  1934. "name": "reservedV2",
  1935. "type": {
  1936. "array": [
  1937. "u8",
  1938. 8
  1939. ]
  1940. }
  1941. }
  1942. ]
  1943. }
  1944. }
  1945. ],
  1946. "types": [
  1947. {
  1948. "name": "NativeTreasury",
  1949. "type": {
  1950. "kind": "struct",
  1951. "fields": []
  1952. }
  1953. },
  1954. {
  1955. "name": "RealmConfigArgs",
  1956. "type": {
  1957. "kind": "struct",
  1958. "fields": [
  1959. {
  1960. "name": "useCouncilMint",
  1961. "type": "bool"
  1962. },
  1963. {
  1964. "name": "minCommunityWeightToCreateGovernance",
  1965. "type": "u64"
  1966. },
  1967. {
  1968. "name": "communityMintMaxVoteWeightSource",
  1969. "type": {
  1970. "defined": "MintMaxVoteWeightSource"
  1971. }
  1972. },
  1973. {
  1974. "name": "useCommunityVoterWeightAddin",
  1975. "type": "bool"
  1976. },
  1977. {
  1978. "name": "useMaxCommunityVoterWeightAddin",
  1979. "type": "bool"
  1980. }
  1981. ]
  1982. }
  1983. },
  1984. {
  1985. "name": "RealmConfig",
  1986. "type": {
  1987. "kind": "struct",
  1988. "fields": [
  1989. {
  1990. "name": "useCommunityVoterWeightAddin",
  1991. "type": "bool"
  1992. },
  1993. {
  1994. "name": "useMaxCommunityVoterWeightAddin",
  1995. "type": "bool"
  1996. },
  1997. {
  1998. "name": "reserved",
  1999. "type": {
  2000. "array": [
  2001. "u8",
  2002. 6
  2003. ]
  2004. }
  2005. },
  2006. {
  2007. "name": "minCommunityWeightToCreateGovernance",
  2008. "type": "u64"
  2009. },
  2010. {
  2011. "name": "communityMintMaxVoteWeightSource",
  2012. "type": {
  2013. "defined": "MintMaxVoteWeightSource"
  2014. }
  2015. },
  2016. {
  2017. "name": "councilMint",
  2018. "type": {
  2019. "option": "publicKey"
  2020. }
  2021. }
  2022. ]
  2023. }
  2024. },
  2025. {
  2026. "name": "ProposalOption",
  2027. "type": {
  2028. "kind": "struct",
  2029. "fields": [
  2030. {
  2031. "name": "label",
  2032. "type": "string"
  2033. },
  2034. {
  2035. "name": "voteWeight",
  2036. "type": "u64"
  2037. },
  2038. {
  2039. "name": "voteResult",
  2040. "type": {
  2041. "defined": "OptionVoteResult"
  2042. }
  2043. },
  2044. {
  2045. "name": "transactionsExecutedCount",
  2046. "type": "u16"
  2047. },
  2048. {
  2049. "name": "transactionsCount",
  2050. "type": "u16"
  2051. },
  2052. {
  2053. "name": "transactionsNextIndex",
  2054. "type": "u16"
  2055. }
  2056. ]
  2057. }
  2058. },
  2059. {
  2060. "name": "GovernanceConfig",
  2061. "type": {
  2062. "kind": "struct",
  2063. "fields": [
  2064. {
  2065. "name": "communityVoteThreshold",
  2066. "type": {
  2067. "defined": "VoteThreshold"
  2068. }
  2069. },
  2070. {
  2071. "name": "minCommunityWeightToCreateProposal",
  2072. "type": "u64"
  2073. },
  2074. {
  2075. "name": "minTransactionHoldUpTime",
  2076. "type": "u32"
  2077. },
  2078. {
  2079. "name": "maxVotingTime",
  2080. "type": "u32"
  2081. },
  2082. {
  2083. "name": "voteTipping",
  2084. "type": {
  2085. "defined": "VoteTipping"
  2086. }
  2087. },
  2088. {
  2089. "name": "councilVoteThreshold",
  2090. "type": {
  2091. "defined": "VoteThreshold"
  2092. }
  2093. },
  2094. {
  2095. "name": "councilVetoVoteThreshold",
  2096. "type": {
  2097. "defined": "VoteThreshold"
  2098. }
  2099. },
  2100. {
  2101. "name": "minCouncilWeightToCreateProposal",
  2102. "type": "u64"
  2103. }
  2104. ]
  2105. }
  2106. },
  2107. {
  2108. "name": "AccountMetaData",
  2109. "type": {
  2110. "kind": "struct",
  2111. "fields": [
  2112. {
  2113. "name": "pubkey",
  2114. "type": "publicKey"
  2115. },
  2116. {
  2117. "name": "isSigner",
  2118. "type": "bool"
  2119. },
  2120. {
  2121. "name": "isWritable",
  2122. "type": "bool"
  2123. }
  2124. ]
  2125. }
  2126. },
  2127. {
  2128. "name": "InstructionData",
  2129. "type": {
  2130. "kind": "struct",
  2131. "fields": [
  2132. {
  2133. "name": "programId",
  2134. "type": "publicKey"
  2135. },
  2136. {
  2137. "name": "accounts",
  2138. "type": {
  2139. "vec": {
  2140. "defined": "AccountMetaData"
  2141. }
  2142. }
  2143. },
  2144. {
  2145. "name": "data",
  2146. "type": "bytes"
  2147. }
  2148. ]
  2149. }
  2150. },
  2151. {
  2152. "name": "ProposalInstructionV1",
  2153. "type": {
  2154. "kind": "struct",
  2155. "fields": [
  2156. {
  2157. "name": "accountType",
  2158. "type": {
  2159. "defined": "GovernanceAccountType"
  2160. }
  2161. },
  2162. {
  2163. "name": "proposal",
  2164. "type": "publicKey"
  2165. },
  2166. {
  2167. "name": "instructionIndex",
  2168. "type": "u16"
  2169. },
  2170. {
  2171. "name": "holdUpTime",
  2172. "type": "u32"
  2173. },
  2174. {
  2175. "name": "instruction",
  2176. "type": {
  2177. "defined": "InstructionData"
  2178. }
  2179. },
  2180. {
  2181. "name": "executedAt",
  2182. "type": {
  2183. "option": "i64"
  2184. }
  2185. },
  2186. {
  2187. "name": "executionStatus",
  2188. "type": {
  2189. "defined": "TransactionExecutionStatus"
  2190. }
  2191. }
  2192. ]
  2193. }
  2194. },
  2195. {
  2196. "name": "VoteChoice",
  2197. "type": {
  2198. "kind": "struct",
  2199. "fields": [
  2200. {
  2201. "name": "rank",
  2202. "type": "u8"
  2203. },
  2204. {
  2205. "name": "weightPercentage",
  2206. "type": "u8"
  2207. }
  2208. ]
  2209. }
  2210. },
  2211. {
  2212. "name": "MintMaxVoteWeightSource",
  2213. "type": {
  2214. "kind": "enum",
  2215. "variants": [
  2216. {
  2217. "name": "SupplyFraction",
  2218. "fields": [
  2219. "u64"
  2220. ]
  2221. },
  2222. {
  2223. "name": "Absolute",
  2224. "fields": [
  2225. "u64"
  2226. ]
  2227. }
  2228. ]
  2229. }
  2230. },
  2231. {
  2232. "name": "GovernanceAccountType",
  2233. "type": {
  2234. "kind": "enum",
  2235. "variants": [
  2236. {
  2237. "name": "Uninitialized"
  2238. },
  2239. {
  2240. "name": "RealmV1"
  2241. },
  2242. {
  2243. "name": "TokenOwnerRecordV1"
  2244. },
  2245. {
  2246. "name": "GovernanceV1"
  2247. },
  2248. {
  2249. "name": "ProgramGovernanceV1"
  2250. },
  2251. {
  2252. "name": "ProposalV1"
  2253. },
  2254. {
  2255. "name": "SignatoryRecordV1"
  2256. },
  2257. {
  2258. "name": "VoteRecordV1"
  2259. },
  2260. {
  2261. "name": "ProposalInstructionV1"
  2262. },
  2263. {
  2264. "name": "MintGovernanceV1"
  2265. },
  2266. {
  2267. "name": "TokenGovernanceV1"
  2268. },
  2269. {
  2270. "name": "RealmConfig"
  2271. },
  2272. {
  2273. "name": "VoteRecordV2"
  2274. },
  2275. {
  2276. "name": "ProposalTransactionV2"
  2277. },
  2278. {
  2279. "name": "ProposalV2"
  2280. },
  2281. {
  2282. "name": "ProgramMetadata"
  2283. },
  2284. {
  2285. "name": "RealmV2"
  2286. },
  2287. {
  2288. "name": "TokenOwnerRecordV2"
  2289. },
  2290. {
  2291. "name": "GovernanceV2"
  2292. },
  2293. {
  2294. "name": "ProgramGovernanceV2"
  2295. },
  2296. {
  2297. "name": "MintGovernanceV2"
  2298. },
  2299. {
  2300. "name": "TokenGovernanceV2"
  2301. },
  2302. {
  2303. "name": "SignatoryRecordV2"
  2304. }
  2305. ]
  2306. }
  2307. },
  2308. {
  2309. "name": "OptionVoteResult",
  2310. "type": {
  2311. "kind": "enum",
  2312. "variants": [
  2313. {
  2314. "name": "None"
  2315. },
  2316. {
  2317. "name": "Succeeded"
  2318. },
  2319. {
  2320. "name": "Defeated"
  2321. }
  2322. ]
  2323. }
  2324. },
  2325. {
  2326. "name": "ProposalState",
  2327. "type": {
  2328. "kind": "enum",
  2329. "variants": [
  2330. {
  2331. "name": "Draft"
  2332. },
  2333. {
  2334. "name": "SigningOff"
  2335. },
  2336. {
  2337. "name": "Voting"
  2338. },
  2339. {
  2340. "name": "Succeeded"
  2341. },
  2342. {
  2343. "name": "Executing"
  2344. },
  2345. {
  2346. "name": "Completed"
  2347. },
  2348. {
  2349. "name": "Cancelled"
  2350. },
  2351. {
  2352. "name": "Defeated"
  2353. },
  2354. {
  2355. "name": "ExecutingWithErrors"
  2356. },
  2357. {
  2358. "name": "Vetoed"
  2359. }
  2360. ]
  2361. }
  2362. },
  2363. {
  2364. "name": "VoteType",
  2365. "type": {
  2366. "kind": "enum",
  2367. "variants": [
  2368. {
  2369. "name": "SingleChoice"
  2370. },
  2371. {
  2372. "name": "MultiChoice",
  2373. "fields": [
  2374. {
  2375. "name": "max_voter_options",
  2376. "type": "u8"
  2377. },
  2378. {
  2379. "name": "max_winning_options",
  2380. "type": "u8"
  2381. }
  2382. ]
  2383. }
  2384. ]
  2385. }
  2386. },
  2387. {
  2388. "name": "InstructionExecutionFlags",
  2389. "type": {
  2390. "kind": "enum",
  2391. "variants": [
  2392. {
  2393. "name": "None"
  2394. },
  2395. {
  2396. "name": "Ordered"
  2397. },
  2398. {
  2399. "name": "UseTransaction"
  2400. }
  2401. ]
  2402. }
  2403. },
  2404. {
  2405. "name": "VoteThreshold",
  2406. "type": {
  2407. "kind": "enum",
  2408. "variants": [
  2409. {
  2410. "name": "YesVotePercentage",
  2411. "fields": [
  2412. "u8"
  2413. ]
  2414. },
  2415. {
  2416. "name": "QuorumPercentage",
  2417. "fields": [
  2418. "u8"
  2419. ]
  2420. },
  2421. {
  2422. "name": "Disabled"
  2423. }
  2424. ]
  2425. }
  2426. },
  2427. {
  2428. "name": "VoteTipping",
  2429. "type": {
  2430. "kind": "enum",
  2431. "variants": [
  2432. {
  2433. "name": "Strict"
  2434. },
  2435. {
  2436. "name": "Early"
  2437. },
  2438. {
  2439. "name": "Disabled"
  2440. }
  2441. ]
  2442. }
  2443. },
  2444. {
  2445. "name": "TransactionExecutionStatus",
  2446. "type": {
  2447. "kind": "enum",
  2448. "variants": [
  2449. {
  2450. "name": "None"
  2451. },
  2452. {
  2453. "name": "Success"
  2454. },
  2455. {
  2456. "name": "Error"
  2457. }
  2458. ]
  2459. }
  2460. },
  2461. {
  2462. "name": "VoteWeightV1",
  2463. "type": {
  2464. "kind": "enum",
  2465. "variants": [
  2466. {
  2467. "name": "Yes",
  2468. "fields": [
  2469. "u64"
  2470. ]
  2471. },
  2472. {
  2473. "name": "No",
  2474. "fields": [
  2475. "u64"
  2476. ]
  2477. }
  2478. ]
  2479. }
  2480. },
  2481. {
  2482. "name": "Vote",
  2483. "type": {
  2484. "kind": "enum",
  2485. "variants": [
  2486. {
  2487. "name": "Approve",
  2488. "fields": [
  2489. {
  2490. "vec": {
  2491. "defined": "VoteChoice"
  2492. }
  2493. }
  2494. ]
  2495. },
  2496. {
  2497. "name": "Deny"
  2498. },
  2499. {
  2500. "name": "Abstain"
  2501. },
  2502. {
  2503. "name": "Veto"
  2504. }
  2505. ]
  2506. }
  2507. },
  2508. {
  2509. "name": "SetRealmAuthorityAction",
  2510. "type": {
  2511. "kind": "enum",
  2512. "variants": [
  2513. {
  2514. "name": "SetUnchecked"
  2515. },
  2516. {
  2517. "name": "SetChecked"
  2518. },
  2519. {
  2520. "name": "Remove"
  2521. }
  2522. ]
  2523. }
  2524. }
  2525. ],
  2526. "errors": [
  2527. {
  2528. "code": 500,
  2529. "name": "InvalidInstruction",
  2530. "msg": "Invalid instruction passed to program"
  2531. },
  2532. {
  2533. "code": 501,
  2534. "name": "RealmAlreadyExists",
  2535. "msg": "Realm with the given name and governing mints already exists"
  2536. },
  2537. {
  2538. "code": 502,
  2539. "name": "InvalidRealm",
  2540. "msg": "Invalid realm"
  2541. },
  2542. {
  2543. "code": 503,
  2544. "name": "InvalidGoverningTokenMint",
  2545. "msg": "Invalid Governing Token Mint"
  2546. },
  2547. {
  2548. "code": 504,
  2549. "name": "GoverningTokenOwnerMustSign",
  2550. "msg": "Governing Token Owner must sign transaction"
  2551. },
  2552. {
  2553. "code": 505,
  2554. "name": "GoverningTokenOwnerOrDelegateMustSign",
  2555. "msg": "Governing Token Owner or Delegate must sign transaction"
  2556. },
  2557. {
  2558. "code": 506,
  2559. "name": "AllVotesMustBeRelinquishedToWithdrawGoverningTokens",
  2560. "msg": "All votes must be relinquished to withdraw governing tokens"
  2561. },
  2562. {
  2563. "code": 507,
  2564. "name": "InvalidTokenOwnerRecordAccountAddress",
  2565. "msg": "Invalid Token Owner Record account address"
  2566. },
  2567. {
  2568. "code": 508,
  2569. "name": "InvalidGoverningMintForTokenOwnerRecord",
  2570. "msg": "Invalid GoverningMint for TokenOwnerRecord"
  2571. },
  2572. {
  2573. "code": 509,
  2574. "name": "InvalidRealmForTokenOwnerRecord",
  2575. "msg": "Invalid Realm for TokenOwnerRecord"
  2576. },
  2577. {
  2578. "code": 510,
  2579. "name": "InvalidProposalForProposalTransaction",
  2580. "msg": "Invalid Proposal for ProposalTransaction,"
  2581. },
  2582. {
  2583. "code": 511,
  2584. "name": "InvalidSignatoryAddress",
  2585. "msg": "Invalid Signatory account address"
  2586. },
  2587. {
  2588. "code": 512,
  2589. "name": "SignatoryAlreadySignedOff",
  2590. "msg": "Signatory already signed off"
  2591. },
  2592. {
  2593. "code": 513,
  2594. "name": "SignatoryMustSign",
  2595. "msg": "Signatory must sign"
  2596. },
  2597. {
  2598. "code": 514,
  2599. "name": "InvalidProposalOwnerAccount",
  2600. "msg": "Invalid Proposal Owner"
  2601. },
  2602. {
  2603. "code": 515,
  2604. "name": "InvalidProposalForVoterRecord",
  2605. "msg": "Invalid Proposal for VoterRecord"
  2606. },
  2607. {
  2608. "code": 516,
  2609. "name": "InvalidGoverningTokenOwnerForVoteRecord",
  2610. "msg": "Invalid GoverningTokenOwner for VoteRecord"
  2611. },
  2612. {
  2613. "code": 517,
  2614. "name": "InvalidVoteThresholdPercentage",
  2615. "msg": "Invalid Governance config: Vote threshold percentage out of range"
  2616. },
  2617. {
  2618. "code": 518,
  2619. "name": "ProposalAlreadyExists",
  2620. "msg": "Proposal for the given Governance, Governing Token Mint and index already exists"
  2621. },
  2622. {
  2623. "code": 519,
  2624. "name": "VoteAlreadyExists",
  2625. "msg": "Token Owner already voted on the Proposal"
  2626. },
  2627. {
  2628. "code": 520,
  2629. "name": "NotEnoughTokensToCreateProposal",
  2630. "msg": "Owner doesn't have enough governing tokens to create Proposal"
  2631. },
  2632. {
  2633. "code": 521,
  2634. "name": "InvalidStateCannotEditSignatories",
  2635. "msg": "Invalid State: Can't edit Signatories"
  2636. },
  2637. {
  2638. "code": 522,
  2639. "name": "InvalidProposalState",
  2640. "msg": "Invalid Proposal state"
  2641. },
  2642. {
  2643. "code": 523,
  2644. "name": "InvalidStateCannotEditTransactions",
  2645. "msg": "Invalid State: Can't edit transactions"
  2646. },
  2647. {
  2648. "code": 524,
  2649. "name": "InvalidStateCannotExecuteTransaction",
  2650. "msg": "Invalid State: Can't execute transaction"
  2651. },
  2652. {
  2653. "code": 525,
  2654. "name": "CannotExecuteTransactionWithinHoldUpTime",
  2655. "msg": "Can't execute transaction within its hold up time"
  2656. },
  2657. {
  2658. "code": 526,
  2659. "name": "TransactionAlreadyExecuted",
  2660. "msg": "Transaction already executed"
  2661. },
  2662. {
  2663. "code": 527,
  2664. "name": "InvalidTransactionIndex",
  2665. "msg": "Invalid Transaction index"
  2666. },
  2667. {
  2668. "code": 528,
  2669. "name": "TransactionHoldUpTimeBelowRequiredMin",
  2670. "msg": "Transaction hold up time is below the min specified by Governance"
  2671. },
  2672. {
  2673. "code": 529,
  2674. "name": "TransactionAlreadyExists",
  2675. "msg": "Transaction at the given index for the Proposal already exists"
  2676. },
  2677. {
  2678. "code": 530,
  2679. "name": "InvalidStateCannotSignOff",
  2680. "msg": "Invalid State: Can't sign off"
  2681. },
  2682. {
  2683. "code": 531,
  2684. "name": "InvalidStateCannotVote",
  2685. "msg": "Invalid State: Can't vote"
  2686. },
  2687. {
  2688. "code": 532,
  2689. "name": "InvalidStateCannotFinalize",
  2690. "msg": "Invalid State: Can't finalize vote"
  2691. },
  2692. {
  2693. "code": 533,
  2694. "name": "InvalidStateCannotCancelProposal",
  2695. "msg": "Invalid State: Can't cancel Proposal"
  2696. },
  2697. {
  2698. "code": 534,
  2699. "name": "VoteAlreadyRelinquished",
  2700. "msg": "Vote already relinquished"
  2701. },
  2702. {
  2703. "code": 535,
  2704. "name": "CannotFinalizeVotingInProgress",
  2705. "msg": "Can't finalize vote. Voting still in progress"
  2706. },
  2707. {
  2708. "code": 536,
  2709. "name": "ProposalVotingTimeExpired",
  2710. "msg": "Proposal voting time expired"
  2711. },
  2712. {
  2713. "code": 537,
  2714. "name": "InvalidSignatoryMint",
  2715. "msg": "Invalid Signatory Mint"
  2716. },
  2717. {
  2718. "code": 538,
  2719. "name": "InvalidGovernanceForProposal",
  2720. "msg": "Proposal does not belong to the given Governance"
  2721. },
  2722. {
  2723. "code": 539,
  2724. "name": "InvalidGoverningMintForProposal",
  2725. "msg": "Proposal does not belong to given Governing Mint"
  2726. },
  2727. {
  2728. "code": 540,
  2729. "name": "MintAuthorityMustSign",
  2730. "msg": "Current mint authority must sign transaction"
  2731. },
  2732. {
  2733. "code": 541,
  2734. "name": "InvalidMintAuthority",
  2735. "msg": "Invalid mint authority"
  2736. },
  2737. {
  2738. "code": 542,
  2739. "name": "MintHasNoAuthority",
  2740. "msg": "Mint has no authority"
  2741. },
  2742. {
  2743. "code": 543,
  2744. "name": "SplTokenAccountWithInvalidOwner",
  2745. "msg": "Invalid Token account owner"
  2746. },
  2747. {
  2748. "code": 544,
  2749. "name": "SplTokenMintWithInvalidOwner",
  2750. "msg": "Invalid Mint account owner"
  2751. },
  2752. {
  2753. "code": 545,
  2754. "name": "SplTokenAccountNotInitialized",
  2755. "msg": "Token Account is not initialized"
  2756. },
  2757. {
  2758. "code": 546,
  2759. "name": "SplTokenAccountDoesNotExist",
  2760. "msg": "Token Account doesn't exist"
  2761. },
  2762. {
  2763. "code": 547,
  2764. "name": "SplTokenInvalidTokenAccountData",
  2765. "msg": "Token account data is invalid"
  2766. },
  2767. {
  2768. "code": 548,
  2769. "name": "SplTokenInvalidMintAccountData",
  2770. "msg": "Token mint account data is invalid"
  2771. },
  2772. {
  2773. "code": 549,
  2774. "name": "SplTokenMintNotInitialized",
  2775. "msg": "Token Mint account is not initialized"
  2776. },
  2777. {
  2778. "code": 550,
  2779. "name": "SplTokenMintDoesNotExist",
  2780. "msg": "Token Mint account doesn't exist"
  2781. },
  2782. {
  2783. "code": 551,
  2784. "name": "InvalidProgramDataAccountAddress",
  2785. "msg": "Invalid ProgramData account address"
  2786. },
  2787. {
  2788. "code": 552,
  2789. "name": "InvalidProgramDataAccountData",
  2790. "msg": "Invalid ProgramData account Data"
  2791. },
  2792. {
  2793. "code": 553,
  2794. "name": "InvalidUpgradeAuthority",
  2795. "msg": "Provided upgrade authority doesn't match current program upgrade authority"
  2796. },
  2797. {
  2798. "code": 554,
  2799. "name": "UpgradeAuthorityMustSign",
  2800. "msg": "Current program upgrade authority must sign transaction"
  2801. },
  2802. {
  2803. "code": 555,
  2804. "name": "ProgramNotUpgradable",
  2805. "msg": "Given program is not upgradable"
  2806. },
  2807. {
  2808. "code": 556,
  2809. "name": "InvalidTokenOwner",
  2810. "msg": "Invalid token owner"
  2811. },
  2812. {
  2813. "code": 557,
  2814. "name": "TokenOwnerMustSign",
  2815. "msg": "Current token owner must sign transaction"
  2816. },
  2817. {
  2818. "code": 558,
  2819. "name": "VoteThresholdTypeNotSupported",
  2820. "msg": "Given VoteThresholdType is not supported"
  2821. },
  2822. {
  2823. "code": 559,
  2824. "name": "VoteWeightSourceNotSupported",
  2825. "msg": "Given VoteWeightSource is not supported"
  2826. },
  2827. {
  2828. "code": 560,
  2829. "name": "GoverningTokenMintNotAllowedToVote",
  2830. "msg": "GoverningTokenMint not allowed to vote"
  2831. },
  2832. {
  2833. "code": 561,
  2834. "name": "GovernancePdaMustSign",
  2835. "msg": "Governance PDA must sign"
  2836. },
  2837. {
  2838. "code": 562,
  2839. "name": "TransactionAlreadyFlaggedWithError",
  2840. "msg": "Transaction already flagged with error"
  2841. },
  2842. {
  2843. "code": 563,
  2844. "name": "InvalidRealmForGovernance",
  2845. "msg": "Invalid Realm for Governance"
  2846. },
  2847. {
  2848. "code": 564,
  2849. "name": "InvalidAuthorityForRealm",
  2850. "msg": "Invalid Authority for Realm"
  2851. },
  2852. {
  2853. "code": 565,
  2854. "name": "RealmHasNoAuthority",
  2855. "msg": "Realm has no authority"
  2856. },
  2857. {
  2858. "code": 566,
  2859. "name": "RealmAuthorityMustSign",
  2860. "msg": "Realm authority must sign"
  2861. },
  2862. {
  2863. "code": 567,
  2864. "name": "InvalidGoverningTokenHoldingAccount",
  2865. "msg": "Invalid governing token holding account"
  2866. },
  2867. {
  2868. "code": 568,
  2869. "name": "RealmCouncilMintChangeIsNotSupported",
  2870. "msg": "Realm council mint change is not supported"
  2871. },
  2872. {
  2873. "code": 569,
  2874. "name": "MintMaxVoteWeightSourceNotSupported",
  2875. "msg": "Not supported mint max vote weight source"
  2876. },
  2877. {
  2878. "code": 570,
  2879. "name": "InvalidMaxVoteWeightSupplyFraction",
  2880. "msg": "Invalid max vote weight supply fraction"
  2881. },
  2882. {
  2883. "code": 571,
  2884. "name": "NotEnoughTokensToCreateGovernance",
  2885. "msg": "Owner doesn't have enough governing tokens to create Governance"
  2886. },
  2887. {
  2888. "code": 572,
  2889. "name": "TooManyOutstandingProposals",
  2890. "msg": "Too many outstanding proposals"
  2891. },
  2892. {
  2893. "code": 573,
  2894. "name": "AllProposalsMustBeFinalisedToWithdrawGoverningTokens",
  2895. "msg": "All proposals must be finalized to withdraw governing tokens"
  2896. },
  2897. {
  2898. "code": 574,
  2899. "name": "InvalidVoterWeightRecordForRealm",
  2900. "msg": "Invalid VoterWeightRecord for Realm"
  2901. },
  2902. {
  2903. "code": 575,
  2904. "name": "InvalidVoterWeightRecordForGoverningTokenMint",
  2905. "msg": "Invalid VoterWeightRecord for GoverningTokenMint"
  2906. },
  2907. {
  2908. "code": 576,
  2909. "name": "InvalidVoterWeightRecordForTokenOwner",
  2910. "msg": "Invalid VoterWeightRecord for TokenOwner"
  2911. },
  2912. {
  2913. "code": 577,
  2914. "name": "VoterWeightRecordExpired",
  2915. "msg": "VoterWeightRecord expired"
  2916. },
  2917. {
  2918. "code": 578,
  2919. "name": "InvalidRealmConfigForRealm",
  2920. "msg": "Invalid RealmConfig for Realm"
  2921. },
  2922. {
  2923. "code": 579,
  2924. "name": "TokenOwnerRecordAlreadyExists",
  2925. "msg": "TokenOwnerRecord already exists"
  2926. },
  2927. {
  2928. "code": 580,
  2929. "name": "GoverningTokenDepositsNotAllowed",
  2930. "msg": "Governing token deposits not allowed"
  2931. },
  2932. {
  2933. "code": 581,
  2934. "name": "InvalidVoteChoiceWeightPercentage",
  2935. "msg": "Invalid vote choice weight percentage"
  2936. },
  2937. {
  2938. "code": 582,
  2939. "name": "VoteTypeNotSupported",
  2940. "msg": "Vote type not supported"
  2941. },
  2942. {
  2943. "code": 583,
  2944. "name": "InvalidProposalOptions",
  2945. "msg": "Invalid proposal options"
  2946. },
  2947. {
  2948. "code": 584,
  2949. "name": "ProposalIsNotExecutable",
  2950. "msg": "Proposal is not not executable"
  2951. },
  2952. {
  2953. "code": 585,
  2954. "name": "InvalidVote",
  2955. "msg": "Invalid vote"
  2956. },
  2957. {
  2958. "code": 586,
  2959. "name": "CannotExecuteDefeatedOption",
  2960. "msg": "Cannot execute defeated option"
  2961. },
  2962. {
  2963. "code": 587,
  2964. "name": "VoterWeightRecordInvalidAction",
  2965. "msg": "VoterWeightRecord invalid action"
  2966. },
  2967. {
  2968. "code": 588,
  2969. "name": "VoterWeightRecordInvalidActionTarget",
  2970. "msg": "VoterWeightRecord invalid action target"
  2971. },
  2972. {
  2973. "code": 589,
  2974. "name": "InvalidMaxVoterWeightRecordForRealm",
  2975. "msg": "Invalid MaxVoterWeightRecord for Realm"
  2976. },
  2977. {
  2978. "code": 590,
  2979. "name": "InvalidMaxVoterWeightRecordForGoverningTokenMint",
  2980. "msg": "Invalid MaxVoterWeightRecord for GoverningTokenMint"
  2981. },
  2982. {
  2983. "code": 591,
  2984. "name": "MaxVoterWeightRecordExpired",
  2985. "msg": "MaxVoterWeightRecord expired"
  2986. },
  2987. {
  2988. "code": 592,
  2989. "name": "NotSupportedVoteType",
  2990. "msg": "Not supported VoteType"
  2991. },
  2992. {
  2993. "code": 593,
  2994. "name": "RealmConfigChangeNotAllowed",
  2995. "msg": "RealmConfig change not allowed"
  2996. },
  2997. {
  2998. "code": 594,
  2999. "name": "GovernanceConfigChangeNotAllowed",
  3000. "msg": "GovernanceConfig change not allowed"
  3001. },
  3002. {
  3003. "code": 595,
  3004. "name": "AtLeastOneVoteThresholdRequired",
  3005. "msg": "At least one VoteThreshold is required"
  3006. },
  3007. {
  3008. "code": 596,
  3009. "name": "ReservedBufferMustBeEmpty",
  3010. "msg": "Reserved buffer must be empty"
  3011. },
  3012. {
  3013. "code": 597,
  3014. "name": "CannotRelinquishInFinalizingState",
  3015. "msg": "Cannot Relinquish in Finalizing state"
  3016. }
  3017. ]
  3018. }