Aggregator.abi.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. [
  2. {
  3. "inputs": [
  4. {
  5. "internalType": "bytes32[]",
  6. "name": "domains",
  7. "type": "bytes32[]"
  8. }
  9. ],
  10. "name": "bulkResolve",
  11. "outputs": [
  12. {
  13. "internalType": "address[]",
  14. "name": "result",
  15. "type": "address[]"
  16. }
  17. ],
  18. "stateMutability": "nonpayable",
  19. "type": "function"
  20. },
  21. {
  22. "inputs": [
  23. {
  24. "internalType": "contract Governance",
  25. "name": "governance",
  26. "type": "address"
  27. }
  28. ],
  29. "name": "getAllProposals",
  30. "outputs": [
  31. {
  32. "components": [
  33. {
  34. "internalType": "address",
  35. "name": "proposer",
  36. "type": "address"
  37. },
  38. {
  39. "internalType": "address",
  40. "name": "target",
  41. "type": "address"
  42. },
  43. {
  44. "internalType": "uint256",
  45. "name": "startTime",
  46. "type": "uint256"
  47. },
  48. {
  49. "internalType": "uint256",
  50. "name": "endTime",
  51. "type": "uint256"
  52. },
  53. {
  54. "internalType": "uint256",
  55. "name": "forVotes",
  56. "type": "uint256"
  57. },
  58. {
  59. "internalType": "uint256",
  60. "name": "againstVotes",
  61. "type": "uint256"
  62. },
  63. {
  64. "internalType": "bool",
  65. "name": "executed",
  66. "type": "bool"
  67. },
  68. {
  69. "internalType": "bool",
  70. "name": "extended",
  71. "type": "bool"
  72. },
  73. {
  74. "internalType": "enum Governance.ProposalState",
  75. "name": "state",
  76. "type": "uint8"
  77. }
  78. ],
  79. "internalType": "struct GovernanceAggregator.Proposal[]",
  80. "name": "proposals",
  81. "type": "tuple[]"
  82. }
  83. ],
  84. "stateMutability": "view",
  85. "type": "function"
  86. },
  87. {
  88. "inputs": [
  89. {
  90. "internalType": "contract Governance",
  91. "name": "governance",
  92. "type": "address"
  93. },
  94. {
  95. "internalType": "address[]",
  96. "name": "accs",
  97. "type": "address[]"
  98. }
  99. ],
  100. "name": "getGovernanceBalances",
  101. "outputs": [
  102. {
  103. "internalType": "uint256[]",
  104. "name": "amounts",
  105. "type": "uint256[]"
  106. }
  107. ],
  108. "stateMutability": "view",
  109. "type": "function"
  110. },
  111. {
  112. "inputs": [
  113. {
  114. "internalType": "address[]",
  115. "name": "fromTokens",
  116. "type": "address[]"
  117. },
  118. {
  119. "internalType": "uint256[]",
  120. "name": "oneUnitAmounts",
  121. "type": "uint256[]"
  122. }
  123. ],
  124. "name": "getPricesInETH",
  125. "outputs": [
  126. {
  127. "internalType": "uint256[]",
  128. "name": "prices",
  129. "type": "uint256[]"
  130. }
  131. ],
  132. "stateMutability": "view",
  133. "type": "function"
  134. },
  135. {
  136. "inputs": [
  137. {
  138. "internalType": "contract Governance",
  139. "name": "governance",
  140. "type": "address"
  141. },
  142. {
  143. "internalType": "address",
  144. "name": "account",
  145. "type": "address"
  146. }
  147. ],
  148. "name": "getUserData",
  149. "outputs": [
  150. {
  151. "internalType": "uint256",
  152. "name": "balance",
  153. "type": "uint256"
  154. },
  155. {
  156. "internalType": "uint256",
  157. "name": "latestProposalId",
  158. "type": "uint256"
  159. },
  160. {
  161. "internalType": "uint256",
  162. "name": "latestProposalIdState",
  163. "type": "uint256"
  164. },
  165. {
  166. "internalType": "uint256",
  167. "name": "timelock",
  168. "type": "uint256"
  169. },
  170. {
  171. "internalType": "address",
  172. "name": "delegatee",
  173. "type": "address"
  174. }
  175. ],
  176. "stateMutability": "view",
  177. "type": "function"
  178. },
  179. {
  180. "inputs": [
  181. {
  182. "internalType": "contract Miner",
  183. "name": "miner",
  184. "type": "address"
  185. },
  186. {
  187. "internalType": "address[]",
  188. "name": "instances",
  189. "type": "address[]"
  190. }
  191. ],
  192. "name": "minerRates",
  193. "outputs": [
  194. {
  195. "internalType": "uint256[]",
  196. "name": "_rates",
  197. "type": "uint256[]"
  198. }
  199. ],
  200. "stateMutability": "view",
  201. "type": "function"
  202. },
  203. {
  204. "inputs": [
  205. {
  206. "internalType": "bytes32",
  207. "name": "node",
  208. "type": "bytes32"
  209. }
  210. ],
  211. "name": "resolve",
  212. "outputs": [
  213. {
  214. "internalType": "address",
  215. "name": "",
  216. "type": "address"
  217. }
  218. ],
  219. "stateMutability": "view",
  220. "type": "function"
  221. },
  222. {
  223. "inputs": [
  224. {
  225. "internalType": "contract RewardSwap",
  226. "name": "swap",
  227. "type": "address"
  228. }
  229. ],
  230. "name": "swapState",
  231. "outputs": [
  232. {
  233. "internalType": "uint256",
  234. "name": "balance",
  235. "type": "uint256"
  236. },
  237. {
  238. "internalType": "uint256",
  239. "name": "poolWeight",
  240. "type": "uint256"
  241. }
  242. ],
  243. "stateMutability": "view",
  244. "type": "function"
  245. },
  246. {
  247. "inputs": [
  248. {
  249. "internalType": "contract Miner",
  250. "name": "miner",
  251. "type": "address"
  252. },
  253. {
  254. "internalType": "address[]",
  255. "name": "instances",
  256. "type": "address[]"
  257. },
  258. {
  259. "internalType": "contract RewardSwap",
  260. "name": "swap",
  261. "type": "address"
  262. }
  263. ],
  264. "name": "miningData",
  265. "outputs": [
  266. {
  267. "internalType": "uint256[]",
  268. "name": "_rates",
  269. "type": "uint256[]"
  270. },
  271. {
  272. "internalType": "uint256",
  273. "name": "balance",
  274. "type": "uint256"
  275. },
  276. {
  277. "internalType": "uint256",
  278. "name": "poolWeight",
  279. "type": "uint256"
  280. }
  281. ],
  282. "stateMutability": "view",
  283. "type": "function"
  284. },
  285. {
  286. "inputs": [
  287. {
  288. "internalType": "address[]",
  289. "name": "fromTokens",
  290. "type": "address[]"
  291. },
  292. {
  293. "internalType": "uint256[]",
  294. "name": "oneUnitAmounts",
  295. "type": "uint256[]"
  296. },
  297. {
  298. "internalType": "contract RewardSwap",
  299. "name": "swap",
  300. "type": "address"
  301. }
  302. ],
  303. "name": "marketData",
  304. "outputs": [
  305. {
  306. "internalType": "uint256[]",
  307. "name": "prices",
  308. "type": "uint256[]"
  309. },
  310. {
  311. "internalType": "uint256",
  312. "name": "balance",
  313. "type": "uint256"
  314. }
  315. ],
  316. "stateMutability": "view",
  317. "type": "function"
  318. }
  319. ]