Governance.abi.json 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. [
  2. {
  3. "inputs": [
  4. { "internalType": "address", "name": "_gasCompLogic", "type": "address" },
  5. { "internalType": "address", "name": "_userVault", "type": "address" }
  6. ],
  7. "stateMutability": "nonpayable",
  8. "type": "constructor"
  9. },
  10. {
  11. "anonymous": false,
  12. "inputs": [
  13. { "indexed": true, "internalType": "address", "name": "account", "type": "address" },
  14. { "indexed": true, "internalType": "address", "name": "to", "type": "address" }
  15. ],
  16. "name": "Delegated",
  17. "type": "event"
  18. },
  19. {
  20. "anonymous": false,
  21. "inputs": [
  22. { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" },
  23. { "indexed": true, "internalType": "address", "name": "proposer", "type": "address" },
  24. { "indexed": false, "internalType": "address", "name": "target", "type": "address" },
  25. { "indexed": false, "internalType": "uint256", "name": "startTime", "type": "uint256" },
  26. { "indexed": false, "internalType": "uint256", "name": "endTime", "type": "uint256" },
  27. { "indexed": false, "internalType": "string", "name": "description", "type": "string" }
  28. ],
  29. "name": "ProposalCreated",
  30. "type": "event"
  31. },
  32. {
  33. "anonymous": false,
  34. "inputs": [{ "indexed": true, "internalType": "uint256", "name": "proposalId", "type": "uint256" }],
  35. "name": "ProposalExecuted",
  36. "type": "event"
  37. },
  38. {
  39. "anonymous": false,
  40. "inputs": [
  41. { "indexed": true, "internalType": "address", "name": "account", "type": "address" },
  42. { "indexed": true, "internalType": "address", "name": "from", "type": "address" }
  43. ],
  44. "name": "Undelegated",
  45. "type": "event"
  46. },
  47. {
  48. "anonymous": false,
  49. "inputs": [
  50. { "indexed": true, "internalType": "uint256", "name": "proposalId", "type": "uint256" },
  51. { "indexed": true, "internalType": "address", "name": "voter", "type": "address" },
  52. { "indexed": true, "internalType": "bool", "name": "support", "type": "bool" },
  53. { "indexed": false, "internalType": "uint256", "name": "votes", "type": "uint256" }
  54. ],
  55. "name": "Voted",
  56. "type": "event"
  57. },
  58. {
  59. "inputs": [],
  60. "name": "CLOSING_PERIOD",
  61. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  62. "stateMutability": "view",
  63. "type": "function"
  64. },
  65. {
  66. "inputs": [],
  67. "name": "EXECUTION_DELAY",
  68. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  69. "stateMutability": "view",
  70. "type": "function"
  71. },
  72. {
  73. "inputs": [],
  74. "name": "EXECUTION_EXPIRATION",
  75. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  76. "stateMutability": "view",
  77. "type": "function"
  78. },
  79. {
  80. "inputs": [],
  81. "name": "PROPOSAL_THRESHOLD",
  82. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  83. "stateMutability": "view",
  84. "type": "function"
  85. },
  86. {
  87. "inputs": [],
  88. "name": "QUORUM_VOTES",
  89. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  90. "stateMutability": "view",
  91. "type": "function"
  92. },
  93. {
  94. "inputs": [],
  95. "name": "VOTE_EXTEND_TIME",
  96. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  97. "stateMutability": "view",
  98. "type": "function"
  99. },
  100. {
  101. "inputs": [],
  102. "name": "VOTING_DELAY",
  103. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  104. "stateMutability": "view",
  105. "type": "function"
  106. },
  107. {
  108. "inputs": [],
  109. "name": "VOTING_PERIOD",
  110. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  111. "stateMutability": "view",
  112. "type": "function"
  113. },
  114. {
  115. "inputs": [{ "internalType": "bytes32[]", "name": "domains", "type": "bytes32[]" }],
  116. "name": "bulkResolve",
  117. "outputs": [{ "internalType": "address[]", "name": "result", "type": "address[]" }],
  118. "stateMutability": "view",
  119. "type": "function"
  120. },
  121. {
  122. "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
  123. "name": "canWithdrawAfter",
  124. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  125. "stateMutability": "view",
  126. "type": "function"
  127. },
  128. {
  129. "inputs": [
  130. { "internalType": "address[]", "name": "from", "type": "address[]" },
  131. { "internalType": "uint256", "name": "proposalId", "type": "uint256" },
  132. { "internalType": "bool", "name": "support", "type": "bool" }
  133. ],
  134. "name": "castDelegatedVote",
  135. "outputs": [],
  136. "stateMutability": "nonpayable",
  137. "type": "function"
  138. },
  139. {
  140. "inputs": [
  141. { "internalType": "uint256", "name": "proposalId", "type": "uint256" },
  142. { "internalType": "bool", "name": "support", "type": "bool" }
  143. ],
  144. "name": "castVote",
  145. "outputs": [],
  146. "stateMutability": "nonpayable",
  147. "type": "function"
  148. },
  149. {
  150. "inputs": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }],
  151. "name": "checkIfQuorumReached",
  152. "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
  153. "stateMutability": "view",
  154. "type": "function"
  155. },
  156. {
  157. "inputs": [{ "internalType": "address", "name": "to", "type": "address" }],
  158. "name": "delegate",
  159. "outputs": [],
  160. "stateMutability": "nonpayable",
  161. "type": "function"
  162. },
  163. {
  164. "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
  165. "name": "delegatedTo",
  166. "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
  167. "stateMutability": "view",
  168. "type": "function"
  169. },
  170. {
  171. "inputs": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }],
  172. "name": "execute",
  173. "outputs": [],
  174. "stateMutability": "payable",
  175. "type": "function"
  176. },
  177. {
  178. "inputs": [],
  179. "name": "gasCompensationVault",
  180. "outputs": [{ "internalType": "contract IGasCompensationVault", "name": "", "type": "address" }],
  181. "stateMutability": "view",
  182. "type": "function"
  183. },
  184. {
  185. "inputs": [
  186. { "internalType": "uint256", "name": "proposalId", "type": "uint256" },
  187. { "internalType": "address", "name": "voter", "type": "address" }
  188. ],
  189. "name": "getReceipt",
  190. "outputs": [
  191. {
  192. "components": [
  193. { "internalType": "bool", "name": "hasVoted", "type": "bool" },
  194. { "internalType": "bool", "name": "support", "type": "bool" },
  195. { "internalType": "uint256", "name": "votes", "type": "uint256" }
  196. ],
  197. "internalType": "struct Governance.Receipt",
  198. "name": "",
  199. "type": "tuple"
  200. }
  201. ],
  202. "stateMutability": "view",
  203. "type": "function"
  204. },
  205. {
  206. "inputs": [
  207. { "internalType": "uint256", "name": "proposalId", "type": "uint256" },
  208. { "internalType": "address", "name": "account", "type": "address" }
  209. ],
  210. "name": "hasAccountVoted",
  211. "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
  212. "stateMutability": "view",
  213. "type": "function"
  214. },
  215. {
  216. "inputs": [{ "internalType": "bytes32", "name": "_torn", "type": "bytes32" }],
  217. "name": "initialize",
  218. "outputs": [],
  219. "stateMutability": "nonpayable",
  220. "type": "function"
  221. },
  222. {
  223. "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
  224. "name": "latestProposalIds",
  225. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  226. "stateMutability": "view",
  227. "type": "function"
  228. },
  229. {
  230. "inputs": [
  231. { "internalType": "address", "name": "owner", "type": "address" },
  232. { "internalType": "uint256", "name": "amount", "type": "uint256" },
  233. { "internalType": "uint256", "name": "deadline", "type": "uint256" },
  234. { "internalType": "uint8", "name": "v", "type": "uint8" },
  235. { "internalType": "bytes32", "name": "r", "type": "bytes32" },
  236. { "internalType": "bytes32", "name": "s", "type": "bytes32" }
  237. ],
  238. "name": "lock",
  239. "outputs": [],
  240. "stateMutability": "nonpayable",
  241. "type": "function"
  242. },
  243. {
  244. "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }],
  245. "name": "lockWithApproval",
  246. "outputs": [],
  247. "stateMutability": "nonpayable",
  248. "type": "function"
  249. },
  250. {
  251. "inputs": [{ "internalType": "address", "name": "", "type": "address" }],
  252. "name": "lockedBalance",
  253. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  254. "stateMutability": "view",
  255. "type": "function"
  256. },
  257. {
  258. "inputs": [],
  259. "name": "proposalCount",
  260. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  261. "stateMutability": "view",
  262. "type": "function"
  263. },
  264. {
  265. "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  266. "name": "proposals",
  267. "outputs": [
  268. { "internalType": "address", "name": "proposer", "type": "address" },
  269. { "internalType": "address", "name": "target", "type": "address" },
  270. { "internalType": "uint256", "name": "startTime", "type": "uint256" },
  271. { "internalType": "uint256", "name": "endTime", "type": "uint256" },
  272. { "internalType": "uint256", "name": "forVotes", "type": "uint256" },
  273. { "internalType": "uint256", "name": "againstVotes", "type": "uint256" },
  274. { "internalType": "bool", "name": "executed", "type": "bool" },
  275. { "internalType": "bool", "name": "extended", "type": "bool" }
  276. ],
  277. "stateMutability": "view",
  278. "type": "function"
  279. },
  280. {
  281. "inputs": [
  282. { "internalType": "address", "name": "target", "type": "address" },
  283. { "internalType": "string", "name": "description", "type": "string" }
  284. ],
  285. "name": "propose",
  286. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  287. "stateMutability": "nonpayable",
  288. "type": "function"
  289. },
  290. {
  291. "inputs": [
  292. { "internalType": "address", "name": "from", "type": "address" },
  293. { "internalType": "address", "name": "target", "type": "address" },
  294. { "internalType": "string", "name": "description", "type": "string" }
  295. ],
  296. "name": "proposeByDelegate",
  297. "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
  298. "stateMutability": "nonpayable",
  299. "type": "function"
  300. },
  301. {
  302. "inputs": [{ "internalType": "bytes32", "name": "node", "type": "bytes32" }],
  303. "name": "resolve",
  304. "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
  305. "stateMutability": "view",
  306. "type": "function"
  307. },
  308. {
  309. "inputs": [],
  310. "name": "returnMultisigAddress",
  311. "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
  312. "stateMutability": "pure",
  313. "type": "function"
  314. },
  315. {
  316. "inputs": [{ "internalType": "uint256", "name": "closingPeriod", "type": "uint256" }],
  317. "name": "setClosingPeriod",
  318. "outputs": [],
  319. "stateMutability": "nonpayable",
  320. "type": "function"
  321. },
  322. {
  323. "inputs": [{ "internalType": "uint256", "name": "executionDelay", "type": "uint256" }],
  324. "name": "setExecutionDelay",
  325. "outputs": [],
  326. "stateMutability": "nonpayable",
  327. "type": "function"
  328. },
  329. {
  330. "inputs": [{ "internalType": "uint256", "name": "executionExpiration", "type": "uint256" }],
  331. "name": "setExecutionExpiration",
  332. "outputs": [],
  333. "stateMutability": "nonpayable",
  334. "type": "function"
  335. },
  336. {
  337. "inputs": [{ "internalType": "uint256", "name": "gasCompensationsLimit", "type": "uint256" }],
  338. "name": "setGasCompensations",
  339. "outputs": [],
  340. "stateMutability": "nonpayable",
  341. "type": "function"
  342. },
  343. {
  344. "inputs": [{ "internalType": "uint256", "name": "proposalThreshold", "type": "uint256" }],
  345. "name": "setProposalThreshold",
  346. "outputs": [],
  347. "stateMutability": "nonpayable",
  348. "type": "function"
  349. },
  350. {
  351. "inputs": [{ "internalType": "uint256", "name": "quorumVotes", "type": "uint256" }],
  352. "name": "setQuorumVotes",
  353. "outputs": [],
  354. "stateMutability": "nonpayable",
  355. "type": "function"
  356. },
  357. {
  358. "inputs": [{ "internalType": "uint256", "name": "voteExtendTime", "type": "uint256" }],
  359. "name": "setVoteExtendTime",
  360. "outputs": [],
  361. "stateMutability": "nonpayable",
  362. "type": "function"
  363. },
  364. {
  365. "inputs": [{ "internalType": "uint256", "name": "votingDelay", "type": "uint256" }],
  366. "name": "setVotingDelay",
  367. "outputs": [],
  368. "stateMutability": "nonpayable",
  369. "type": "function"
  370. },
  371. {
  372. "inputs": [{ "internalType": "uint256", "name": "votingPeriod", "type": "uint256" }],
  373. "name": "setVotingPeriod",
  374. "outputs": [],
  375. "stateMutability": "nonpayable",
  376. "type": "function"
  377. },
  378. {
  379. "inputs": [{ "internalType": "uint256", "name": "proposalId", "type": "uint256" }],
  380. "name": "state",
  381. "outputs": [{ "internalType": "enum Governance.ProposalState", "name": "", "type": "uint8" }],
  382. "stateMutability": "view",
  383. "type": "function"
  384. },
  385. {
  386. "inputs": [],
  387. "name": "torn",
  388. "outputs": [{ "internalType": "contract TORN", "name": "", "type": "address" }],
  389. "stateMutability": "view",
  390. "type": "function"
  391. },
  392. { "inputs": [], "name": "undelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" },
  393. {
  394. "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }],
  395. "name": "unlock",
  396. "outputs": [],
  397. "stateMutability": "nonpayable",
  398. "type": "function"
  399. },
  400. {
  401. "inputs": [],
  402. "name": "userVault",
  403. "outputs": [{ "internalType": "contract ITornadoVault", "name": "", "type": "address" }],
  404. "stateMutability": "view",
  405. "type": "function"
  406. },
  407. {
  408. "inputs": [],
  409. "name": "version",
  410. "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
  411. "stateMutability": "pure",
  412. "type": "function"
  413. },
  414. {
  415. "inputs": [{ "internalType": "uint256", "name": "amount", "type": "uint256" }],
  416. "name": "withdrawFromHelper",
  417. "outputs": [],
  418. "stateMutability": "nonpayable",
  419. "type": "function"
  420. },
  421. { "stateMutability": "payable", "type": "receive" }
  422. ]