TornadoStakingRewards.abi.json 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273
  1. [
  2. {
  3. "inputs": [
  4. {
  5. "internalType": "address",
  6. "name": "governanceAddress",
  7. "type": "address"
  8. },
  9. {
  10. "internalType": "address",
  11. "name": "tornAddress",
  12. "type": "address"
  13. },
  14. {
  15. "internalType": "bytes32",
  16. "name": "_relayerRegistry",
  17. "type": "bytes32"
  18. }
  19. ],
  20. "stateMutability": "nonpayable",
  21. "type": "constructor"
  22. },
  23. {
  24. "anonymous": false,
  25. "inputs": [
  26. {
  27. "indexed": true,
  28. "internalType": "address",
  29. "name": "account",
  30. "type": "address"
  31. },
  32. {
  33. "indexed": false,
  34. "internalType": "uint256",
  35. "name": "rewardsClaimed",
  36. "type": "uint256"
  37. }
  38. ],
  39. "name": "RewardsClaimed",
  40. "type": "event"
  41. },
  42. {
  43. "anonymous": false,
  44. "inputs": [
  45. {
  46. "indexed": true,
  47. "internalType": "address",
  48. "name": "account",
  49. "type": "address"
  50. },
  51. {
  52. "indexed": false,
  53. "internalType": "uint256",
  54. "name": "rewards",
  55. "type": "uint256"
  56. }
  57. ],
  58. "name": "RewardsUpdated",
  59. "type": "event"
  60. },
  61. {
  62. "inputs": [],
  63. "name": "Governance",
  64. "outputs": [
  65. {
  66. "internalType": "contract ITornadoGovernance",
  67. "name": "",
  68. "type": "address"
  69. }
  70. ],
  71. "stateMutability": "view",
  72. "type": "function"
  73. },
  74. {
  75. "inputs": [],
  76. "name": "accumulatedRewardPerTorn",
  77. "outputs": [
  78. {
  79. "internalType": "uint256",
  80. "name": "",
  81. "type": "uint256"
  82. }
  83. ],
  84. "stateMutability": "view",
  85. "type": "function"
  86. },
  87. {
  88. "inputs": [
  89. {
  90. "internalType": "address",
  91. "name": "",
  92. "type": "address"
  93. }
  94. ],
  95. "name": "accumulatedRewardRateOnLastUpdate",
  96. "outputs": [
  97. {
  98. "internalType": "uint256",
  99. "name": "",
  100. "type": "uint256"
  101. }
  102. ],
  103. "stateMutability": "view",
  104. "type": "function"
  105. },
  106. {
  107. "inputs": [
  108. {
  109. "internalType": "address",
  110. "name": "",
  111. "type": "address"
  112. }
  113. ],
  114. "name": "accumulatedRewards",
  115. "outputs": [
  116. {
  117. "internalType": "uint256",
  118. "name": "",
  119. "type": "uint256"
  120. }
  121. ],
  122. "stateMutability": "view",
  123. "type": "function"
  124. },
  125. {
  126. "inputs": [
  127. {
  128. "internalType": "uint256",
  129. "name": "amount",
  130. "type": "uint256"
  131. }
  132. ],
  133. "name": "addBurnRewards",
  134. "outputs": [],
  135. "stateMutability": "nonpayable",
  136. "type": "function"
  137. },
  138. {
  139. "inputs": [
  140. {
  141. "internalType": "bytes32[]",
  142. "name": "domains",
  143. "type": "bytes32[]"
  144. }
  145. ],
  146. "name": "bulkResolve",
  147. "outputs": [
  148. {
  149. "internalType": "address[]",
  150. "name": "result",
  151. "type": "address[]"
  152. }
  153. ],
  154. "stateMutability": "view",
  155. "type": "function"
  156. },
  157. {
  158. "inputs": [
  159. {
  160. "internalType": "address",
  161. "name": "account",
  162. "type": "address"
  163. }
  164. ],
  165. "name": "checkReward",
  166. "outputs": [
  167. {
  168. "internalType": "uint256",
  169. "name": "rewards",
  170. "type": "uint256"
  171. }
  172. ],
  173. "stateMutability": "view",
  174. "type": "function"
  175. },
  176. {
  177. "inputs": [],
  178. "name": "getReward",
  179. "outputs": [],
  180. "stateMutability": "nonpayable",
  181. "type": "function"
  182. },
  183. {
  184. "inputs": [],
  185. "name": "ratioConstant",
  186. "outputs": [
  187. {
  188. "internalType": "uint256",
  189. "name": "",
  190. "type": "uint256"
  191. }
  192. ],
  193. "stateMutability": "view",
  194. "type": "function"
  195. },
  196. {
  197. "inputs": [],
  198. "name": "relayerRegistry",
  199. "outputs": [
  200. {
  201. "internalType": "address",
  202. "name": "",
  203. "type": "address"
  204. }
  205. ],
  206. "stateMutability": "view",
  207. "type": "function"
  208. },
  209. {
  210. "inputs": [
  211. {
  212. "internalType": "bytes32",
  213. "name": "node",
  214. "type": "bytes32"
  215. }
  216. ],
  217. "name": "resolve",
  218. "outputs": [
  219. {
  220. "internalType": "address",
  221. "name": "",
  222. "type": "address"
  223. }
  224. ],
  225. "stateMutability": "view",
  226. "type": "function"
  227. },
  228. {
  229. "inputs": [],
  230. "name": "torn",
  231. "outputs": [
  232. {
  233. "internalType": "contract IERC20",
  234. "name": "",
  235. "type": "address"
  236. }
  237. ],
  238. "stateMutability": "view",
  239. "type": "function"
  240. },
  241. {
  242. "inputs": [
  243. {
  244. "internalType": "address",
  245. "name": "account",
  246. "type": "address"
  247. },
  248. {
  249. "internalType": "uint256",
  250. "name": "amountLockedBeforehand",
  251. "type": "uint256"
  252. }
  253. ],
  254. "name": "updateRewardsOnLockedBalanceChange",
  255. "outputs": [],
  256. "stateMutability": "nonpayable",
  257. "type": "function"
  258. },
  259. {
  260. "inputs": [
  261. {
  262. "internalType": "uint256",
  263. "name": "amount",
  264. "type": "uint256"
  265. }
  266. ],
  267. "name": "withdrawTorn",
  268. "outputs": [],
  269. "stateMutability": "nonpayable",
  270. "type": "function"
  271. }
  272. ]