@ripe-finance/sdk 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/LICENSE +41 -0
  2. package/README.md +44 -0
  3. package/dist/contracts/AddyRegistry.d.ts +1109 -0
  4. package/dist/contracts/AddyRegistry.d.ts.map +1 -0
  5. package/dist/contracts/AddyRegistry.js +1392 -0
  6. package/dist/contracts/AddyRegistry_v1.d.ts +473 -0
  7. package/dist/contracts/AddyRegistry_v1.d.ts.map +1 -0
  8. package/dist/contracts/AddyRegistry_v1.js +594 -0
  9. package/dist/contracts/AddyRegistry_v2.d.ts +1050 -0
  10. package/dist/contracts/AddyRegistry_v2.d.ts.map +1 -0
  11. package/dist/contracts/AddyRegistry_v2.js +1313 -0
  12. package/dist/contracts/Agent.d.ts +2709 -0
  13. package/dist/contracts/Agent.d.ts.map +1 -0
  14. package/dist/contracts/Agent.js +3458 -0
  15. package/dist/contracts/AgentFactory.d.ts +1665 -0
  16. package/dist/contracts/AgentFactory.d.ts.map +1 -0
  17. package/dist/contracts/AgentFactory.js +2078 -0
  18. package/dist/contracts/AgentFactory_v1.d.ts +1054 -0
  19. package/dist/contracts/AgentFactory_v1.d.ts.map +1 -0
  20. package/dist/contracts/AgentFactory_v1.js +1336 -0
  21. package/dist/contracts/AgentFactory_v2.d.ts +1275 -0
  22. package/dist/contracts/AgentFactory_v2.d.ts.map +1 -0
  23. package/dist/contracts/AgentFactory_v2.js +1609 -0
  24. package/dist/contracts/AgentTemplate.d.ts +2629 -0
  25. package/dist/contracts/AgentTemplate.d.ts.map +1 -0
  26. package/dist/contracts/AgentTemplate.js +3370 -0
  27. package/dist/contracts/Agent_v1.d.ts +2631 -0
  28. package/dist/contracts/Agent_v1.d.ts.map +1 -0
  29. package/dist/contracts/Agent_v1.js +3372 -0
  30. package/dist/contracts/Agent_v2.d.ts +2709 -0
  31. package/dist/contracts/Agent_v2.d.ts.map +1 -0
  32. package/dist/contracts/Agent_v2.js +3458 -0
  33. package/dist/contracts/AuctionHouse.d.ts +1566 -0
  34. package/dist/contracts/AuctionHouse.d.ts.map +1 -0
  35. package/dist/contracts/AuctionHouse.js +1814 -0
  36. package/dist/contracts/AuctionHouseNFT.d.ts +259 -0
  37. package/dist/contracts/AuctionHouseNFT.d.ts.map +1 -0
  38. package/dist/contracts/AuctionHouseNFT.js +295 -0
  39. package/dist/contracts/BlueChipYieldPrices.d.ts +1916 -0
  40. package/dist/contracts/BlueChipYieldPrices.d.ts.map +1 -0
  41. package/dist/contracts/BlueChipYieldPrices.js +2414 -0
  42. package/dist/contracts/Boardroom.d.ts +276 -0
  43. package/dist/contracts/Boardroom.d.ts.map +1 -0
  44. package/dist/contracts/Boardroom.js +317 -0
  45. package/dist/contracts/BondRoom.d.ts +539 -0
  46. package/dist/contracts/BondRoom.d.ts.map +1 -0
  47. package/dist/contracts/BondRoom.js +640 -0
  48. package/dist/contracts/ChainlinkFeeds.d.ts +706 -0
  49. package/dist/contracts/ChainlinkFeeds.d.ts.map +1 -0
  50. package/dist/contracts/ChainlinkFeeds.js +900 -0
  51. package/dist/contracts/ChainlinkPrices.d.ts +1594 -0
  52. package/dist/contracts/ChainlinkPrices.d.ts.map +1 -0
  53. package/dist/contracts/ChainlinkPrices.js +2023 -0
  54. package/dist/contracts/Contributor.d.ts +731 -0
  55. package/dist/contracts/Contributor.d.ts.map +1 -0
  56. package/dist/contracts/Contributor.js +896 -0
  57. package/dist/contracts/CreditEngine.d.ts +2295 -0
  58. package/dist/contracts/CreditEngine.d.ts.map +1 -0
  59. package/dist/contracts/CreditEngine.js +2662 -0
  60. package/dist/contracts/CurvePrices.d.ts +2041 -0
  61. package/dist/contracts/CurvePrices.d.ts.map +1 -0
  62. package/dist/contracts/CurvePrices.js +2523 -0
  63. package/dist/contracts/DefaultsBase.d.ts +470 -0
  64. package/dist/contracts/DefaultsBase.d.ts.map +1 -0
  65. package/dist/contracts/DefaultsBase.js +512 -0
  66. package/dist/contracts/ERC20.d.ts +271 -0
  67. package/dist/contracts/ERC20.d.ts.map +1 -0
  68. package/dist/contracts/ERC20.js +339 -0
  69. package/dist/contracts/Endaoment.d.ts +2208 -0
  70. package/dist/contracts/Endaoment.d.ts.map +1 -0
  71. package/dist/contracts/Endaoment.js +2877 -0
  72. package/dist/contracts/GreenPool.d.ts +1248 -0
  73. package/dist/contracts/GreenPool.d.ts.map +1 -0
  74. package/dist/contracts/GreenPool.js +1614 -0
  75. package/dist/contracts/GreenToken.d.ts +776 -0
  76. package/dist/contracts/GreenToken.d.ts.map +1 -0
  77. package/dist/contracts/GreenToken.js +990 -0
  78. package/dist/contracts/HumanResources.d.ts +1176 -0
  79. package/dist/contracts/HumanResources.d.ts.map +1 -0
  80. package/dist/contracts/HumanResources.js +1464 -0
  81. package/dist/contracts/Ledger.d.ts +2312 -0
  82. package/dist/contracts/Ledger.d.ts.map +1 -0
  83. package/dist/contracts/Ledger.js +2712 -0
  84. package/dist/contracts/LegoAaveV3.d.ts +1033 -0
  85. package/dist/contracts/LegoAaveV3.d.ts.map +1 -0
  86. package/dist/contracts/LegoAaveV3.js +1330 -0
  87. package/dist/contracts/LegoAeroClassic.d.ts +1204 -0
  88. package/dist/contracts/LegoAeroClassic.d.ts.map +1 -0
  89. package/dist/contracts/LegoAeroClassic.js +1546 -0
  90. package/dist/contracts/LegoAeroSlipstream.d.ts +1300 -0
  91. package/dist/contracts/LegoAeroSlipstream.d.ts.map +1 -0
  92. package/dist/contracts/LegoAeroSlipstream.js +1671 -0
  93. package/dist/contracts/LegoCommon.d.ts +164 -0
  94. package/dist/contracts/LegoCommon.d.ts.map +1 -0
  95. package/dist/contracts/LegoCommon.js +202 -0
  96. package/dist/contracts/LegoCompoundV3.d.ts +1060 -0
  97. package/dist/contracts/LegoCompoundV3.d.ts.map +1 -0
  98. package/dist/contracts/LegoCompoundV3.js +1365 -0
  99. package/dist/contracts/LegoCredit.d.ts +140 -0
  100. package/dist/contracts/LegoCredit.d.ts.map +1 -0
  101. package/dist/contracts/LegoCredit.js +179 -0
  102. package/dist/contracts/LegoCurve.d.ts +1189 -0
  103. package/dist/contracts/LegoCurve.d.ts.map +1 -0
  104. package/dist/contracts/LegoCurve.js +1519 -0
  105. package/dist/contracts/LegoDex.d.ts +587 -0
  106. package/dist/contracts/LegoDex.d.ts.map +1 -0
  107. package/dist/contracts/LegoDex.js +774 -0
  108. package/dist/contracts/LegoEuler.d.ts +1074 -0
  109. package/dist/contracts/LegoEuler.d.ts.map +1 -0
  110. package/dist/contracts/LegoEuler.js +1383 -0
  111. package/dist/contracts/LegoFluid.d.ts +1025 -0
  112. package/dist/contracts/LegoFluid.d.ts.map +1 -0
  113. package/dist/contracts/LegoFluid.js +1320 -0
  114. package/dist/contracts/LegoHelper.d.ts +1563 -0
  115. package/dist/contracts/LegoHelper.d.ts.map +1 -0
  116. package/dist/contracts/LegoHelper.js +1947 -0
  117. package/dist/contracts/LegoMoonwell.d.ts +1042 -0
  118. package/dist/contracts/LegoMoonwell.d.ts.map +1 -0
  119. package/dist/contracts/LegoMoonwell.js +1342 -0
  120. package/dist/contracts/LegoMorpho.d.ts +1074 -0
  121. package/dist/contracts/LegoMorpho.d.ts.map +1 -0
  122. package/dist/contracts/LegoMorpho.js +1383 -0
  123. package/dist/contracts/LegoRegistry.d.ts +1079 -0
  124. package/dist/contracts/LegoRegistry.d.ts.map +1 -0
  125. package/dist/contracts/LegoRegistry.js +1368 -0
  126. package/dist/contracts/LegoSky.d.ts +923 -0
  127. package/dist/contracts/LegoSky.d.ts.map +1 -0
  128. package/dist/contracts/LegoSky.js +1180 -0
  129. package/dist/contracts/LegoUniswapV2.d.ts +1204 -0
  130. package/dist/contracts/LegoUniswapV2.d.ts.map +1 -0
  131. package/dist/contracts/LegoUniswapV2.js +1546 -0
  132. package/dist/contracts/LegoUniswapV3.d.ts +1338 -0
  133. package/dist/contracts/LegoUniswapV3.d.ts.map +1 -0
  134. package/dist/contracts/LegoUniswapV3.js +1718 -0
  135. package/dist/contracts/LegoYield.d.ts +390 -0
  136. package/dist/contracts/LegoYield.d.ts.map +1 -0
  137. package/dist/contracts/LegoYield.js +511 -0
  138. package/dist/contracts/Lootbox.d.ts +1258 -0
  139. package/dist/contracts/Lootbox.d.ts.map +1 -0
  140. package/dist/contracts/Lootbox.js +1435 -0
  141. package/dist/contracts/MissionControl.d.ts +2642 -0
  142. package/dist/contracts/MissionControl.d.ts.map +1 -0
  143. package/dist/contracts/MissionControl.js +2957 -0
  144. package/dist/contracts/OracleParser.d.ts +207 -0
  145. package/dist/contracts/OracleParser.d.ts.map +1 -0
  146. package/dist/contracts/OracleParser.js +264 -0
  147. package/dist/contracts/OracleRegistry.d.ts +1221 -0
  148. package/dist/contracts/OracleRegistry.d.ts.map +1 -0
  149. package/dist/contracts/OracleRegistry.js +1562 -0
  150. package/dist/contracts/PriceDesk.d.ts +1581 -0
  151. package/dist/contracts/PriceDesk.d.ts.map +1 -0
  152. package/dist/contracts/PriceDesk.js +1993 -0
  153. package/dist/contracts/PriceSheets.d.ts +1127 -0
  154. package/dist/contracts/PriceSheets.d.ts.map +1 -0
  155. package/dist/contracts/PriceSheets.js +1383 -0
  156. package/dist/contracts/PythFeeds.d.ts +640 -0
  157. package/dist/contracts/PythFeeds.d.ts.map +1 -0
  158. package/dist/contracts/PythFeeds.js +813 -0
  159. package/dist/contracts/PythPrices.d.ts +1435 -0
  160. package/dist/contracts/PythPrices.d.ts.map +1 -0
  161. package/dist/contracts/PythPrices.js +1819 -0
  162. package/dist/contracts/RebaseErc20.d.ts +1080 -0
  163. package/dist/contracts/RebaseErc20.d.ts.map +1 -0
  164. package/dist/contracts/RebaseErc20.js +1312 -0
  165. package/dist/contracts/RipeGov.d.ts +2157 -0
  166. package/dist/contracts/RipeGov.d.ts.map +1 -0
  167. package/dist/contracts/RipeGov.js +2529 -0
  168. package/dist/contracts/RipeHq.d.ts +1612 -0
  169. package/dist/contracts/RipeHq.d.ts.map +1 -0
  170. package/dist/contracts/RipeHq.js +2029 -0
  171. package/dist/contracts/RipeToken.d.ts +776 -0
  172. package/dist/contracts/RipeToken.d.ts.map +1 -0
  173. package/dist/contracts/RipeToken.js +990 -0
  174. package/dist/contracts/SavingsGreen.d.ts +1160 -0
  175. package/dist/contracts/SavingsGreen.d.ts.map +1 -0
  176. package/dist/contracts/SavingsGreen.js +1505 -0
  177. package/dist/contracts/SimpleErc20.d.ts +1028 -0
  178. package/dist/contracts/SimpleErc20.d.ts.map +1 -0
  179. package/dist/contracts/SimpleErc20.js +1243 -0
  180. package/dist/contracts/StabilityPool.d.ts +1843 -0
  181. package/dist/contracts/StabilityPool.d.ts.map +1 -0
  182. package/dist/contracts/StabilityPool.js +2229 -0
  183. package/dist/contracts/StorkFeeds.d.ts +640 -0
  184. package/dist/contracts/StorkFeeds.d.ts.map +1 -0
  185. package/dist/contracts/StorkFeeds.js +813 -0
  186. package/dist/contracts/StorkPrices.d.ts +1435 -0
  187. package/dist/contracts/StorkPrices.d.ts.map +1 -0
  188. package/dist/contracts/StorkPrices.js +1819 -0
  189. package/dist/contracts/Switchboard.d.ts +1416 -0
  190. package/dist/contracts/Switchboard.d.ts.map +1 -0
  191. package/dist/contracts/Switchboard.js +1767 -0
  192. package/dist/contracts/SwitchboardAlpha.d.ts +2647 -0
  193. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -0
  194. package/dist/contracts/SwitchboardAlpha.js +3301 -0
  195. package/dist/contracts/SwitchboardBravo.d.ts +2833 -0
  196. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -0
  197. package/dist/contracts/SwitchboardBravo.js +3640 -0
  198. package/dist/contracts/SwitchboardCharlie.d.ts +3651 -0
  199. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  200. package/dist/contracts/SwitchboardCharlie.js +4642 -0
  201. package/dist/contracts/SwitchboardDelta.d.ts +1490 -0
  202. package/dist/contracts/SwitchboardDelta.d.ts.map +1 -0
  203. package/dist/contracts/SwitchboardDelta.js +1872 -0
  204. package/dist/contracts/Teller.d.ts +2664 -0
  205. package/dist/contracts/Teller.d.ts.map +1 -0
  206. package/dist/contracts/Teller.js +3518 -0
  207. package/dist/contracts/TrainingWheels.d.ts +321 -0
  208. package/dist/contracts/TrainingWheels.d.ts.map +1 -0
  209. package/dist/contracts/TrainingWheels.js +376 -0
  210. package/dist/contracts/UserWallet.d.ts +1975 -0
  211. package/dist/contracts/UserWallet.d.ts.map +1 -0
  212. package/dist/contracts/UserWallet.js +2577 -0
  213. package/dist/contracts/UserWalletConfig.d.ts +1852 -0
  214. package/dist/contracts/UserWalletConfig.d.ts.map +1 -0
  215. package/dist/contracts/UserWalletConfig.js +2263 -0
  216. package/dist/contracts/UserWalletConfig_v1.d.ts +1400 -0
  217. package/dist/contracts/UserWalletConfig_v1.d.ts.map +1 -0
  218. package/dist/contracts/UserWalletConfig_v1.js +1676 -0
  219. package/dist/contracts/UserWalletConfig_v2.d.ts +1468 -0
  220. package/dist/contracts/UserWalletConfig_v2.d.ts.map +1 -0
  221. package/dist/contracts/UserWalletConfig_v2.js +1764 -0
  222. package/dist/contracts/UserWallet_v1.d.ts +1980 -0
  223. package/dist/contracts/UserWallet_v1.d.ts.map +1 -0
  224. package/dist/contracts/UserWallet_v1.js +2581 -0
  225. package/dist/contracts/UserWallet_v2.d.ts +1958 -0
  226. package/dist/contracts/UserWallet_v2.d.ts.map +1 -0
  227. package/dist/contracts/UserWallet_v2.js +2553 -0
  228. package/dist/contracts/VaultBook.d.ts +1416 -0
  229. package/dist/contracts/VaultBook.d.ts.map +1 -0
  230. package/dist/contracts/VaultBook.js +1767 -0
  231. package/dist/contracts/WalletConfig.d.ts +1398 -0
  232. package/dist/contracts/WalletConfig.d.ts.map +1 -0
  233. package/dist/contracts/WalletConfig.js +1674 -0
  234. package/dist/contracts/WalletFunds.d.ts +1978 -0
  235. package/dist/contracts/WalletFunds.d.ts.map +1 -0
  236. package/dist/contracts/WalletFunds.js +2579 -0
  237. package/dist/contracts/index.d.ts +37 -0
  238. package/dist/contracts/index.d.ts.map +1 -0
  239. package/dist/contracts/index.js +40 -0
  240. package/dist/contracts/sdk.d.ts +77 -0
  241. package/dist/contracts/sdk.d.ts.map +1 -0
  242. package/dist/contracts/sdk.js +80 -0
  243. package/dist/index.d.ts +2907 -0
  244. package/dist/index.d.ts.map +1 -0
  245. package/dist/index.js +317 -0
  246. package/package.json +36 -0
@@ -0,0 +1,1872 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ export const abi = [
7
+ {
8
+ name: 'PendingHrContribTemplateChange',
9
+ inputs: [
10
+ {
11
+ name: 'contribTemplate',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'confirmationBlock',
17
+ type: 'uint256',
18
+ indexed: false,
19
+ },
20
+ {
21
+ name: 'actionId',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ ],
26
+ anonymous: false,
27
+ type: 'event',
28
+ },
29
+ {
30
+ name: 'PendingHrMaxCompensationChange',
31
+ inputs: [
32
+ {
33
+ name: 'maxCompensation',
34
+ type: 'uint256',
35
+ indexed: false,
36
+ },
37
+ {
38
+ name: 'confirmationBlock',
39
+ type: 'uint256',
40
+ indexed: false,
41
+ },
42
+ {
43
+ name: 'actionId',
44
+ type: 'uint256',
45
+ indexed: false,
46
+ },
47
+ ],
48
+ anonymous: false,
49
+ type: 'event',
50
+ },
51
+ {
52
+ name: 'PendingHrMinCliffLengthChange',
53
+ inputs: [
54
+ {
55
+ name: 'minCliffLength',
56
+ type: 'uint256',
57
+ indexed: false,
58
+ },
59
+ {
60
+ name: 'confirmationBlock',
61
+ type: 'uint256',
62
+ indexed: false,
63
+ },
64
+ {
65
+ name: 'actionId',
66
+ type: 'uint256',
67
+ indexed: false,
68
+ },
69
+ ],
70
+ anonymous: false,
71
+ type: 'event',
72
+ },
73
+ {
74
+ name: 'PendingHrMaxStartDelayChange',
75
+ inputs: [
76
+ {
77
+ name: 'maxStartDelay',
78
+ type: 'uint256',
79
+ indexed: false,
80
+ },
81
+ {
82
+ name: 'confirmationBlock',
83
+ type: 'uint256',
84
+ indexed: false,
85
+ },
86
+ {
87
+ name: 'actionId',
88
+ type: 'uint256',
89
+ indexed: false,
90
+ },
91
+ ],
92
+ anonymous: false,
93
+ type: 'event',
94
+ },
95
+ {
96
+ name: 'PendingHrVestingLengthBoundariesChange',
97
+ inputs: [
98
+ {
99
+ name: 'minVestingLength',
100
+ type: 'uint256',
101
+ indexed: false,
102
+ },
103
+ {
104
+ name: 'maxVestingLength',
105
+ type: 'uint256',
106
+ indexed: false,
107
+ },
108
+ {
109
+ name: 'confirmationBlock',
110
+ type: 'uint256',
111
+ indexed: false,
112
+ },
113
+ {
114
+ name: 'actionId',
115
+ type: 'uint256',
116
+ indexed: false,
117
+ },
118
+ ],
119
+ anonymous: false,
120
+ type: 'event',
121
+ },
122
+ {
123
+ name: 'PendingManagerSet',
124
+ inputs: [
125
+ {
126
+ name: 'contributor',
127
+ type: 'address',
128
+ indexed: true,
129
+ },
130
+ {
131
+ name: 'manager',
132
+ type: 'address',
133
+ indexed: true,
134
+ },
135
+ {
136
+ name: 'confirmationBlock',
137
+ type: 'uint256',
138
+ indexed: false,
139
+ },
140
+ {
141
+ name: 'actionId',
142
+ type: 'uint256',
143
+ indexed: false,
144
+ },
145
+ ],
146
+ anonymous: false,
147
+ type: 'event',
148
+ },
149
+ {
150
+ name: 'PendingCancelPaycheckSet',
151
+ inputs: [
152
+ {
153
+ name: 'contributor',
154
+ type: 'address',
155
+ indexed: true,
156
+ },
157
+ {
158
+ name: 'confirmationBlock',
159
+ type: 'uint256',
160
+ indexed: false,
161
+ },
162
+ {
163
+ name: 'actionId',
164
+ type: 'uint256',
165
+ indexed: false,
166
+ },
167
+ ],
168
+ anonymous: false,
169
+ type: 'event',
170
+ },
171
+ {
172
+ name: 'RipeCheckCashedFromSwitchboard',
173
+ inputs: [
174
+ {
175
+ name: 'contributor',
176
+ type: 'address',
177
+ indexed: true,
178
+ },
179
+ {
180
+ name: 'cashedBy',
181
+ type: 'address',
182
+ indexed: true,
183
+ },
184
+ {
185
+ name: 'amount',
186
+ type: 'uint256',
187
+ indexed: false,
188
+ },
189
+ ],
190
+ anonymous: false,
191
+ type: 'event',
192
+ },
193
+ {
194
+ name: 'RipeTransferCancelledFromSwitchboard',
195
+ inputs: [
196
+ {
197
+ name: 'contributor',
198
+ type: 'address',
199
+ indexed: true,
200
+ },
201
+ {
202
+ name: 'cancelledBy',
203
+ type: 'address',
204
+ indexed: true,
205
+ },
206
+ ],
207
+ anonymous: false,
208
+ type: 'event',
209
+ },
210
+ {
211
+ name: 'OwnershipChangeCancelledFromSwitchboard',
212
+ inputs: [
213
+ {
214
+ name: 'contributor',
215
+ type: 'address',
216
+ indexed: true,
217
+ },
218
+ {
219
+ name: 'cancelledBy',
220
+ type: 'address',
221
+ indexed: true,
222
+ },
223
+ ],
224
+ anonymous: false,
225
+ type: 'event',
226
+ },
227
+ {
228
+ name: 'ContributorFrozenFromSwitchboard',
229
+ inputs: [
230
+ {
231
+ name: 'contributor',
232
+ type: 'address',
233
+ indexed: true,
234
+ },
235
+ {
236
+ name: 'frozenBy',
237
+ type: 'address',
238
+ indexed: true,
239
+ },
240
+ {
241
+ name: 'shouldFreeze',
242
+ type: 'bool',
243
+ indexed: false,
244
+ },
245
+ ],
246
+ anonymous: false,
247
+ type: 'event',
248
+ },
249
+ {
250
+ name: 'PendingRipeBondConfigSet',
251
+ inputs: [
252
+ {
253
+ name: 'asset',
254
+ type: 'address',
255
+ indexed: true,
256
+ },
257
+ {
258
+ name: 'amountPerEpoch',
259
+ type: 'uint256',
260
+ indexed: false,
261
+ },
262
+ {
263
+ name: 'minRipePerUnit',
264
+ type: 'uint256',
265
+ indexed: false,
266
+ },
267
+ {
268
+ name: 'maxRipePerUnit',
269
+ type: 'uint256',
270
+ indexed: false,
271
+ },
272
+ {
273
+ name: 'maxRipePerUnitLockBonus',
274
+ type: 'uint256',
275
+ indexed: false,
276
+ },
277
+ {
278
+ name: 'shouldAutoRestart',
279
+ type: 'bool',
280
+ indexed: false,
281
+ },
282
+ {
283
+ name: 'restartDelayBlocks',
284
+ type: 'uint256',
285
+ indexed: false,
286
+ },
287
+ {
288
+ name: 'confirmationBlock',
289
+ type: 'uint256',
290
+ indexed: false,
291
+ },
292
+ {
293
+ name: 'actionId',
294
+ type: 'uint256',
295
+ indexed: false,
296
+ },
297
+ ],
298
+ anonymous: false,
299
+ type: 'event',
300
+ },
301
+ {
302
+ name: 'PendingRipeBondEpochLengthSet',
303
+ inputs: [
304
+ {
305
+ name: 'epochLength',
306
+ type: 'uint256',
307
+ indexed: false,
308
+ },
309
+ {
310
+ name: 'confirmationBlock',
311
+ type: 'uint256',
312
+ indexed: false,
313
+ },
314
+ {
315
+ name: 'actionId',
316
+ type: 'uint256',
317
+ indexed: false,
318
+ },
319
+ ],
320
+ anonymous: false,
321
+ type: 'event',
322
+ },
323
+ {
324
+ name: 'PendingStartEpochAtBlockSet',
325
+ inputs: [
326
+ {
327
+ name: 'startBlock',
328
+ type: 'uint256',
329
+ indexed: false,
330
+ },
331
+ {
332
+ name: 'confirmationBlock',
333
+ type: 'uint256',
334
+ indexed: false,
335
+ },
336
+ {
337
+ name: 'actionId',
338
+ type: 'uint256',
339
+ indexed: false,
340
+ },
341
+ ],
342
+ anonymous: false,
343
+ type: 'event',
344
+ },
345
+ {
346
+ name: 'CanPurchaseRipeBondModified',
347
+ inputs: [
348
+ {
349
+ name: 'canPurchaseRipeBond',
350
+ type: 'bool',
351
+ indexed: false,
352
+ },
353
+ {
354
+ name: 'modifier',
355
+ type: 'address',
356
+ indexed: true,
357
+ },
358
+ ],
359
+ anonymous: false,
360
+ type: 'event',
361
+ },
362
+ {
363
+ name: 'PendingBadDebtSet',
364
+ inputs: [
365
+ {
366
+ name: 'badDebt',
367
+ type: 'uint256',
368
+ indexed: false,
369
+ },
370
+ {
371
+ name: 'confirmationBlock',
372
+ type: 'uint256',
373
+ indexed: false,
374
+ },
375
+ {
376
+ name: 'actionId',
377
+ type: 'uint256',
378
+ indexed: false,
379
+ },
380
+ ],
381
+ anonymous: false,
382
+ type: 'event',
383
+ },
384
+ {
385
+ name: 'HrContribTemplateSet',
386
+ inputs: [
387
+ {
388
+ name: 'contribTemplate',
389
+ type: 'address',
390
+ indexed: true,
391
+ },
392
+ ],
393
+ anonymous: false,
394
+ type: 'event',
395
+ },
396
+ {
397
+ name: 'HrMaxCompensationSet',
398
+ inputs: [
399
+ {
400
+ name: 'maxCompensation',
401
+ type: 'uint256',
402
+ indexed: false,
403
+ },
404
+ ],
405
+ anonymous: false,
406
+ type: 'event',
407
+ },
408
+ {
409
+ name: 'HrMinCliffLengthSet',
410
+ inputs: [
411
+ {
412
+ name: 'minCliffLength',
413
+ type: 'uint256',
414
+ indexed: false,
415
+ },
416
+ ],
417
+ anonymous: false,
418
+ type: 'event',
419
+ },
420
+ {
421
+ name: 'HrMaxStartDelaySet',
422
+ inputs: [
423
+ {
424
+ name: 'maxStartDelay',
425
+ type: 'uint256',
426
+ indexed: false,
427
+ },
428
+ ],
429
+ anonymous: false,
430
+ type: 'event',
431
+ },
432
+ {
433
+ name: 'HrVestingLengthBoundariesSet',
434
+ inputs: [
435
+ {
436
+ name: 'minVestingLength',
437
+ type: 'uint256',
438
+ indexed: false,
439
+ },
440
+ {
441
+ name: 'maxVestingLength',
442
+ type: 'uint256',
443
+ indexed: false,
444
+ },
445
+ ],
446
+ anonymous: false,
447
+ type: 'event',
448
+ },
449
+ {
450
+ name: 'HrContributorManagerSet',
451
+ inputs: [
452
+ {
453
+ name: 'contributor',
454
+ type: 'address',
455
+ indexed: true,
456
+ },
457
+ {
458
+ name: 'manager',
459
+ type: 'address',
460
+ indexed: true,
461
+ },
462
+ ],
463
+ anonymous: false,
464
+ type: 'event',
465
+ },
466
+ {
467
+ name: 'HrContributorCancelPaycheckSet',
468
+ inputs: [
469
+ {
470
+ name: 'contributor',
471
+ type: 'address',
472
+ indexed: true,
473
+ },
474
+ ],
475
+ anonymous: false,
476
+ type: 'event',
477
+ },
478
+ {
479
+ name: 'RipeBondConfigSet',
480
+ inputs: [
481
+ {
482
+ name: 'asset',
483
+ type: 'address',
484
+ indexed: true,
485
+ },
486
+ {
487
+ name: 'amountPerEpoch',
488
+ type: 'uint256',
489
+ indexed: false,
490
+ },
491
+ {
492
+ name: 'minRipePerUnit',
493
+ type: 'uint256',
494
+ indexed: false,
495
+ },
496
+ {
497
+ name: 'maxRipePerUnit',
498
+ type: 'uint256',
499
+ indexed: false,
500
+ },
501
+ {
502
+ name: 'maxRipePerUnitLockBonus',
503
+ type: 'uint256',
504
+ indexed: false,
505
+ },
506
+ {
507
+ name: 'shouldAutoRestart',
508
+ type: 'bool',
509
+ indexed: false,
510
+ },
511
+ ],
512
+ anonymous: false,
513
+ type: 'event',
514
+ },
515
+ {
516
+ name: 'RipeBondEpochLengthSet',
517
+ inputs: [
518
+ {
519
+ name: 'epochLength',
520
+ type: 'uint256',
521
+ indexed: false,
522
+ },
523
+ ],
524
+ anonymous: false,
525
+ type: 'event',
526
+ },
527
+ {
528
+ name: 'RipeBondStartEpochAtBlockSet',
529
+ inputs: [
530
+ {
531
+ name: 'startBlock',
532
+ type: 'uint256',
533
+ indexed: false,
534
+ },
535
+ ],
536
+ anonymous: false,
537
+ type: 'event',
538
+ },
539
+ {
540
+ name: 'BadDebtSet',
541
+ inputs: [
542
+ {
543
+ name: 'badDebt',
544
+ type: 'uint256',
545
+ indexed: false,
546
+ },
547
+ ],
548
+ anonymous: false,
549
+ type: 'event',
550
+ },
551
+ {
552
+ name: 'GovChangeTimeLockModified',
553
+ inputs: [
554
+ {
555
+ name: 'prevTimeLock',
556
+ type: 'uint256',
557
+ indexed: false,
558
+ },
559
+ {
560
+ name: 'newTimeLock',
561
+ type: 'uint256',
562
+ indexed: false,
563
+ },
564
+ ],
565
+ anonymous: false,
566
+ type: 'event',
567
+ },
568
+ {
569
+ name: 'ExpirationSet',
570
+ inputs: [
571
+ {
572
+ name: 'expiration',
573
+ type: 'uint256',
574
+ indexed: false,
575
+ },
576
+ ],
577
+ anonymous: false,
578
+ type: 'event',
579
+ },
580
+ {
581
+ name: 'ActionTimeLockSet',
582
+ inputs: [
583
+ {
584
+ name: 'newTimeLock',
585
+ type: 'uint256',
586
+ indexed: false,
587
+ },
588
+ {
589
+ name: 'prevTimeLock',
590
+ type: 'uint256',
591
+ indexed: false,
592
+ },
593
+ ],
594
+ anonymous: false,
595
+ type: 'event',
596
+ },
597
+ {
598
+ name: 'GovChangeStarted',
599
+ inputs: [
600
+ {
601
+ name: 'prevGov',
602
+ type: 'address',
603
+ indexed: true,
604
+ },
605
+ {
606
+ name: 'newGov',
607
+ type: 'address',
608
+ indexed: true,
609
+ },
610
+ {
611
+ name: 'confirmBlock',
612
+ type: 'uint256',
613
+ indexed: false,
614
+ },
615
+ ],
616
+ anonymous: false,
617
+ type: 'event',
618
+ },
619
+ {
620
+ name: 'GovChangeConfirmed',
621
+ inputs: [
622
+ {
623
+ name: 'prevGov',
624
+ type: 'address',
625
+ indexed: true,
626
+ },
627
+ {
628
+ name: 'newGov',
629
+ type: 'address',
630
+ indexed: true,
631
+ },
632
+ {
633
+ name: 'initiatedBlock',
634
+ type: 'uint256',
635
+ indexed: false,
636
+ },
637
+ {
638
+ name: 'confirmBlock',
639
+ type: 'uint256',
640
+ indexed: false,
641
+ },
642
+ ],
643
+ anonymous: false,
644
+ type: 'event',
645
+ },
646
+ {
647
+ name: 'GovChangeCancelled',
648
+ inputs: [
649
+ {
650
+ name: 'cancelledGov',
651
+ type: 'address',
652
+ indexed: true,
653
+ },
654
+ {
655
+ name: 'initiatedBlock',
656
+ type: 'uint256',
657
+ indexed: false,
658
+ },
659
+ {
660
+ name: 'confirmBlock',
661
+ type: 'uint256',
662
+ indexed: false,
663
+ },
664
+ ],
665
+ anonymous: false,
666
+ type: 'event',
667
+ },
668
+ {
669
+ name: 'RipeHqSetupFinished',
670
+ inputs: [
671
+ {
672
+ name: 'prevGov',
673
+ type: 'address',
674
+ indexed: true,
675
+ },
676
+ {
677
+ name: 'newGov',
678
+ type: 'address',
679
+ indexed: true,
680
+ },
681
+ {
682
+ name: 'timeLock',
683
+ type: 'uint256',
684
+ indexed: false,
685
+ },
686
+ ],
687
+ anonymous: false,
688
+ type: 'event',
689
+ },
690
+ {
691
+ stateMutability: 'view',
692
+ type: 'function',
693
+ name: 'getRipeHqFromGov',
694
+ inputs: [],
695
+ outputs: [
696
+ {
697
+ name: '',
698
+ type: 'address',
699
+ },
700
+ ],
701
+ },
702
+ {
703
+ stateMutability: 'view',
704
+ type: 'function',
705
+ name: 'canGovern',
706
+ inputs: [
707
+ {
708
+ name: '_addr',
709
+ type: 'address',
710
+ },
711
+ ],
712
+ outputs: [
713
+ {
714
+ name: '',
715
+ type: 'bool',
716
+ },
717
+ ],
718
+ },
719
+ {
720
+ stateMutability: 'view',
721
+ type: 'function',
722
+ name: 'getGovernors',
723
+ inputs: [],
724
+ outputs: [
725
+ {
726
+ name: '',
727
+ type: 'address[]',
728
+ },
729
+ ],
730
+ },
731
+ {
732
+ stateMutability: 'view',
733
+ type: 'function',
734
+ name: 'hasPendingGovChange',
735
+ inputs: [],
736
+ outputs: [
737
+ {
738
+ name: '',
739
+ type: 'bool',
740
+ },
741
+ ],
742
+ },
743
+ {
744
+ stateMutability: 'nonpayable',
745
+ type: 'function',
746
+ name: 'startGovernanceChange',
747
+ inputs: [
748
+ {
749
+ name: '_newGov',
750
+ type: 'address',
751
+ },
752
+ ],
753
+ outputs: [],
754
+ },
755
+ {
756
+ stateMutability: 'nonpayable',
757
+ type: 'function',
758
+ name: 'confirmGovernanceChange',
759
+ inputs: [],
760
+ outputs: [],
761
+ },
762
+ {
763
+ stateMutability: 'nonpayable',
764
+ type: 'function',
765
+ name: 'cancelGovernanceChange',
766
+ inputs: [],
767
+ outputs: [],
768
+ },
769
+ {
770
+ stateMutability: 'nonpayable',
771
+ type: 'function',
772
+ name: 'setGovTimeLock',
773
+ inputs: [
774
+ {
775
+ name: '_numBlocks',
776
+ type: 'uint256',
777
+ },
778
+ ],
779
+ outputs: [
780
+ {
781
+ name: '',
782
+ type: 'bool',
783
+ },
784
+ ],
785
+ },
786
+ {
787
+ stateMutability: 'view',
788
+ type: 'function',
789
+ name: 'isValidGovTimeLock',
790
+ inputs: [
791
+ {
792
+ name: '_newTimeLock',
793
+ type: 'uint256',
794
+ },
795
+ ],
796
+ outputs: [
797
+ {
798
+ name: '',
799
+ type: 'bool',
800
+ },
801
+ ],
802
+ },
803
+ {
804
+ stateMutability: 'view',
805
+ type: 'function',
806
+ name: 'minGovChangeTimeLock',
807
+ inputs: [],
808
+ outputs: [
809
+ {
810
+ name: '',
811
+ type: 'uint256',
812
+ },
813
+ ],
814
+ },
815
+ {
816
+ stateMutability: 'view',
817
+ type: 'function',
818
+ name: 'maxGovChangeTimeLock',
819
+ inputs: [],
820
+ outputs: [
821
+ {
822
+ name: '',
823
+ type: 'uint256',
824
+ },
825
+ ],
826
+ },
827
+ {
828
+ stateMutability: 'nonpayable',
829
+ type: 'function',
830
+ name: 'finishRipeHqSetup',
831
+ inputs: [
832
+ {
833
+ name: '_newGov',
834
+ type: 'address',
835
+ },
836
+ ],
837
+ outputs: [
838
+ {
839
+ name: '',
840
+ type: 'bool',
841
+ },
842
+ ],
843
+ },
844
+ {
845
+ stateMutability: 'nonpayable',
846
+ type: 'function',
847
+ name: 'finishRipeHqSetup',
848
+ inputs: [
849
+ {
850
+ name: '_newGov',
851
+ type: 'address',
852
+ },
853
+ {
854
+ name: '_timeLock',
855
+ type: 'uint256',
856
+ },
857
+ ],
858
+ outputs: [
859
+ {
860
+ name: '',
861
+ type: 'bool',
862
+ },
863
+ ],
864
+ },
865
+ {
866
+ stateMutability: 'view',
867
+ type: 'function',
868
+ name: 'governance',
869
+ inputs: [],
870
+ outputs: [
871
+ {
872
+ name: '',
873
+ type: 'address',
874
+ },
875
+ ],
876
+ },
877
+ {
878
+ stateMutability: 'view',
879
+ type: 'function',
880
+ name: 'pendingGov',
881
+ inputs: [],
882
+ outputs: [
883
+ {
884
+ name: '',
885
+ type: 'tuple',
886
+ components: [
887
+ {
888
+ name: 'newGov',
889
+ type: 'address',
890
+ },
891
+ {
892
+ name: 'initiatedBlock',
893
+ type: 'uint256',
894
+ },
895
+ {
896
+ name: 'confirmBlock',
897
+ type: 'uint256',
898
+ },
899
+ ],
900
+ },
901
+ ],
902
+ },
903
+ {
904
+ stateMutability: 'view',
905
+ type: 'function',
906
+ name: 'numGovChanges',
907
+ inputs: [],
908
+ outputs: [
909
+ {
910
+ name: '',
911
+ type: 'uint256',
912
+ },
913
+ ],
914
+ },
915
+ {
916
+ stateMutability: 'view',
917
+ type: 'function',
918
+ name: 'govChangeTimeLock',
919
+ inputs: [],
920
+ outputs: [
921
+ {
922
+ name: '',
923
+ type: 'uint256',
924
+ },
925
+ ],
926
+ },
927
+ {
928
+ stateMutability: 'view',
929
+ type: 'function',
930
+ name: 'canConfirmAction',
931
+ inputs: [
932
+ {
933
+ name: '_actionId',
934
+ type: 'uint256',
935
+ },
936
+ ],
937
+ outputs: [
938
+ {
939
+ name: '',
940
+ type: 'bool',
941
+ },
942
+ ],
943
+ },
944
+ {
945
+ stateMutability: 'view',
946
+ type: 'function',
947
+ name: 'isExpired',
948
+ inputs: [
949
+ {
950
+ name: '_actionId',
951
+ type: 'uint256',
952
+ },
953
+ ],
954
+ outputs: [
955
+ {
956
+ name: '',
957
+ type: 'bool',
958
+ },
959
+ ],
960
+ },
961
+ {
962
+ stateMutability: 'view',
963
+ type: 'function',
964
+ name: 'hasPendingAction',
965
+ inputs: [
966
+ {
967
+ name: '_actionId',
968
+ type: 'uint256',
969
+ },
970
+ ],
971
+ outputs: [
972
+ {
973
+ name: '',
974
+ type: 'bool',
975
+ },
976
+ ],
977
+ },
978
+ {
979
+ stateMutability: 'view',
980
+ type: 'function',
981
+ name: 'getActionConfirmationBlock',
982
+ inputs: [
983
+ {
984
+ name: '_actionId',
985
+ type: 'uint256',
986
+ },
987
+ ],
988
+ outputs: [
989
+ {
990
+ name: '',
991
+ type: 'uint256',
992
+ },
993
+ ],
994
+ },
995
+ {
996
+ stateMutability: 'nonpayable',
997
+ type: 'function',
998
+ name: 'setActionTimeLock',
999
+ inputs: [
1000
+ {
1001
+ name: '_newTimeLock',
1002
+ type: 'uint256',
1003
+ },
1004
+ ],
1005
+ outputs: [
1006
+ {
1007
+ name: '',
1008
+ type: 'bool',
1009
+ },
1010
+ ],
1011
+ },
1012
+ {
1013
+ stateMutability: 'view',
1014
+ type: 'function',
1015
+ name: 'isValidActionTimeLock',
1016
+ inputs: [
1017
+ {
1018
+ name: '_newTimeLock',
1019
+ type: 'uint256',
1020
+ },
1021
+ ],
1022
+ outputs: [
1023
+ {
1024
+ name: '',
1025
+ type: 'bool',
1026
+ },
1027
+ ],
1028
+ },
1029
+ {
1030
+ stateMutability: 'view',
1031
+ type: 'function',
1032
+ name: 'minActionTimeLock',
1033
+ inputs: [],
1034
+ outputs: [
1035
+ {
1036
+ name: '',
1037
+ type: 'uint256',
1038
+ },
1039
+ ],
1040
+ },
1041
+ {
1042
+ stateMutability: 'view',
1043
+ type: 'function',
1044
+ name: 'maxActionTimeLock',
1045
+ inputs: [],
1046
+ outputs: [
1047
+ {
1048
+ name: '',
1049
+ type: 'uint256',
1050
+ },
1051
+ ],
1052
+ },
1053
+ {
1054
+ stateMutability: 'nonpayable',
1055
+ type: 'function',
1056
+ name: 'setExpiration',
1057
+ inputs: [
1058
+ {
1059
+ name: '_expiration',
1060
+ type: 'uint256',
1061
+ },
1062
+ ],
1063
+ outputs: [
1064
+ {
1065
+ name: '',
1066
+ type: 'bool',
1067
+ },
1068
+ ],
1069
+ },
1070
+ {
1071
+ stateMutability: 'nonpayable',
1072
+ type: 'function',
1073
+ name: 'setActionTimeLockAfterSetup',
1074
+ inputs: [],
1075
+ outputs: [
1076
+ {
1077
+ name: '',
1078
+ type: 'bool',
1079
+ },
1080
+ ],
1081
+ },
1082
+ {
1083
+ stateMutability: 'nonpayable',
1084
+ type: 'function',
1085
+ name: 'setActionTimeLockAfterSetup',
1086
+ inputs: [
1087
+ {
1088
+ name: '_newTimeLock',
1089
+ type: 'uint256',
1090
+ },
1091
+ ],
1092
+ outputs: [
1093
+ {
1094
+ name: '',
1095
+ type: 'bool',
1096
+ },
1097
+ ],
1098
+ },
1099
+ {
1100
+ stateMutability: 'view',
1101
+ type: 'function',
1102
+ name: 'pendingActions',
1103
+ inputs: [
1104
+ {
1105
+ name: 'arg0',
1106
+ type: 'uint256',
1107
+ },
1108
+ ],
1109
+ outputs: [
1110
+ {
1111
+ name: '',
1112
+ type: 'tuple',
1113
+ components: [
1114
+ {
1115
+ name: 'initiatedBlock',
1116
+ type: 'uint256',
1117
+ },
1118
+ {
1119
+ name: 'confirmBlock',
1120
+ type: 'uint256',
1121
+ },
1122
+ {
1123
+ name: 'expiration',
1124
+ type: 'uint256',
1125
+ },
1126
+ ],
1127
+ },
1128
+ ],
1129
+ },
1130
+ {
1131
+ stateMutability: 'view',
1132
+ type: 'function',
1133
+ name: 'actionId',
1134
+ inputs: [],
1135
+ outputs: [
1136
+ {
1137
+ name: '',
1138
+ type: 'uint256',
1139
+ },
1140
+ ],
1141
+ },
1142
+ {
1143
+ stateMutability: 'view',
1144
+ type: 'function',
1145
+ name: 'actionTimeLock',
1146
+ inputs: [],
1147
+ outputs: [
1148
+ {
1149
+ name: '',
1150
+ type: 'uint256',
1151
+ },
1152
+ ],
1153
+ },
1154
+ {
1155
+ stateMutability: 'view',
1156
+ type: 'function',
1157
+ name: 'expiration',
1158
+ inputs: [],
1159
+ outputs: [
1160
+ {
1161
+ name: '',
1162
+ type: 'uint256',
1163
+ },
1164
+ ],
1165
+ },
1166
+ {
1167
+ stateMutability: 'nonpayable',
1168
+ type: 'function',
1169
+ name: 'setContributorTemplate',
1170
+ inputs: [
1171
+ {
1172
+ name: '_contribTemplate',
1173
+ type: 'address',
1174
+ },
1175
+ ],
1176
+ outputs: [
1177
+ {
1178
+ name: '',
1179
+ type: 'uint256',
1180
+ },
1181
+ ],
1182
+ },
1183
+ {
1184
+ stateMutability: 'nonpayable',
1185
+ type: 'function',
1186
+ name: 'setMaxCompensation',
1187
+ inputs: [
1188
+ {
1189
+ name: '_maxComp',
1190
+ type: 'uint256',
1191
+ },
1192
+ ],
1193
+ outputs: [
1194
+ {
1195
+ name: '',
1196
+ type: 'uint256',
1197
+ },
1198
+ ],
1199
+ },
1200
+ {
1201
+ stateMutability: 'nonpayable',
1202
+ type: 'function',
1203
+ name: 'setMinCliffLength',
1204
+ inputs: [
1205
+ {
1206
+ name: '_minCliffLength',
1207
+ type: 'uint256',
1208
+ },
1209
+ ],
1210
+ outputs: [
1211
+ {
1212
+ name: '',
1213
+ type: 'uint256',
1214
+ },
1215
+ ],
1216
+ },
1217
+ {
1218
+ stateMutability: 'nonpayable',
1219
+ type: 'function',
1220
+ name: 'setMaxStartDelay',
1221
+ inputs: [
1222
+ {
1223
+ name: '_maxStartDelay',
1224
+ type: 'uint256',
1225
+ },
1226
+ ],
1227
+ outputs: [
1228
+ {
1229
+ name: '',
1230
+ type: 'uint256',
1231
+ },
1232
+ ],
1233
+ },
1234
+ {
1235
+ stateMutability: 'nonpayable',
1236
+ type: 'function',
1237
+ name: 'setVestingLengthBoundaries',
1238
+ inputs: [
1239
+ {
1240
+ name: '_minVestingLength',
1241
+ type: 'uint256',
1242
+ },
1243
+ {
1244
+ name: '_maxVestingLength',
1245
+ type: 'uint256',
1246
+ },
1247
+ ],
1248
+ outputs: [
1249
+ {
1250
+ name: '',
1251
+ type: 'uint256',
1252
+ },
1253
+ ],
1254
+ },
1255
+ {
1256
+ stateMutability: 'nonpayable',
1257
+ type: 'function',
1258
+ name: 'cancelPaycheckForContributor',
1259
+ inputs: [
1260
+ {
1261
+ name: '_contributor',
1262
+ type: 'address',
1263
+ },
1264
+ ],
1265
+ outputs: [
1266
+ {
1267
+ name: '',
1268
+ type: 'uint256',
1269
+ },
1270
+ ],
1271
+ },
1272
+ {
1273
+ stateMutability: 'nonpayable',
1274
+ type: 'function',
1275
+ name: 'setManagerForContributor',
1276
+ inputs: [
1277
+ {
1278
+ name: '_contributor',
1279
+ type: 'address',
1280
+ },
1281
+ {
1282
+ name: '_manager',
1283
+ type: 'address',
1284
+ },
1285
+ ],
1286
+ outputs: [
1287
+ {
1288
+ name: '',
1289
+ type: 'uint256',
1290
+ },
1291
+ ],
1292
+ },
1293
+ {
1294
+ stateMutability: 'nonpayable',
1295
+ type: 'function',
1296
+ name: 'cashRipeCheckForContributor',
1297
+ inputs: [
1298
+ {
1299
+ name: '_contributor',
1300
+ type: 'address',
1301
+ },
1302
+ ],
1303
+ outputs: [
1304
+ {
1305
+ name: '',
1306
+ type: 'bool',
1307
+ },
1308
+ ],
1309
+ },
1310
+ {
1311
+ stateMutability: 'nonpayable',
1312
+ type: 'function',
1313
+ name: 'cancelRipeTransferForContributor',
1314
+ inputs: [
1315
+ {
1316
+ name: '_contributor',
1317
+ type: 'address',
1318
+ },
1319
+ ],
1320
+ outputs: [
1321
+ {
1322
+ name: '',
1323
+ type: 'bool',
1324
+ },
1325
+ ],
1326
+ },
1327
+ {
1328
+ stateMutability: 'nonpayable',
1329
+ type: 'function',
1330
+ name: 'cancelOwnershipChangeForContributor',
1331
+ inputs: [
1332
+ {
1333
+ name: '_contributor',
1334
+ type: 'address',
1335
+ },
1336
+ ],
1337
+ outputs: [
1338
+ {
1339
+ name: '',
1340
+ type: 'bool',
1341
+ },
1342
+ ],
1343
+ },
1344
+ {
1345
+ stateMutability: 'nonpayable',
1346
+ type: 'function',
1347
+ name: 'freezeContributor',
1348
+ inputs: [
1349
+ {
1350
+ name: '_contributor',
1351
+ type: 'address',
1352
+ },
1353
+ {
1354
+ name: '_shouldFreeze',
1355
+ type: 'bool',
1356
+ },
1357
+ ],
1358
+ outputs: [
1359
+ {
1360
+ name: '',
1361
+ type: 'bool',
1362
+ },
1363
+ ],
1364
+ },
1365
+ {
1366
+ stateMutability: 'nonpayable',
1367
+ type: 'function',
1368
+ name: 'setRipeBondConfig',
1369
+ inputs: [
1370
+ {
1371
+ name: '_asset',
1372
+ type: 'address',
1373
+ },
1374
+ {
1375
+ name: '_amountPerEpoch',
1376
+ type: 'uint256',
1377
+ },
1378
+ {
1379
+ name: '_minRipePerUnit',
1380
+ type: 'uint256',
1381
+ },
1382
+ {
1383
+ name: '_maxRipePerUnit',
1384
+ type: 'uint256',
1385
+ },
1386
+ {
1387
+ name: '_maxRipePerUnitLockBonus',
1388
+ type: 'uint256',
1389
+ },
1390
+ {
1391
+ name: '_shouldAutoRestart',
1392
+ type: 'bool',
1393
+ },
1394
+ {
1395
+ name: '_restartDelayBlocks',
1396
+ type: 'uint256',
1397
+ },
1398
+ ],
1399
+ outputs: [
1400
+ {
1401
+ name: '',
1402
+ type: 'uint256',
1403
+ },
1404
+ ],
1405
+ },
1406
+ {
1407
+ stateMutability: 'nonpayable',
1408
+ type: 'function',
1409
+ name: 'setRipeBondEpochLength',
1410
+ inputs: [
1411
+ {
1412
+ name: '_epochLength',
1413
+ type: 'uint256',
1414
+ },
1415
+ ],
1416
+ outputs: [
1417
+ {
1418
+ name: '',
1419
+ type: 'uint256',
1420
+ },
1421
+ ],
1422
+ },
1423
+ {
1424
+ stateMutability: 'nonpayable',
1425
+ type: 'function',
1426
+ name: 'setStartEpochAtBlock',
1427
+ inputs: [],
1428
+ outputs: [
1429
+ {
1430
+ name: '',
1431
+ type: 'uint256',
1432
+ },
1433
+ ],
1434
+ },
1435
+ {
1436
+ stateMutability: 'nonpayable',
1437
+ type: 'function',
1438
+ name: 'setStartEpochAtBlock',
1439
+ inputs: [
1440
+ {
1441
+ name: '_block',
1442
+ type: 'uint256',
1443
+ },
1444
+ ],
1445
+ outputs: [
1446
+ {
1447
+ name: '',
1448
+ type: 'uint256',
1449
+ },
1450
+ ],
1451
+ },
1452
+ {
1453
+ stateMutability: 'nonpayable',
1454
+ type: 'function',
1455
+ name: 'setCanPurchaseRipeBond',
1456
+ inputs: [
1457
+ {
1458
+ name: '_canBond',
1459
+ type: 'bool',
1460
+ },
1461
+ ],
1462
+ outputs: [
1463
+ {
1464
+ name: '',
1465
+ type: 'bool',
1466
+ },
1467
+ ],
1468
+ },
1469
+ {
1470
+ stateMutability: 'nonpayable',
1471
+ type: 'function',
1472
+ name: 'setBadDebt',
1473
+ inputs: [
1474
+ {
1475
+ name: '_amount',
1476
+ type: 'uint256',
1477
+ },
1478
+ ],
1479
+ outputs: [
1480
+ {
1481
+ name: '',
1482
+ type: 'uint256',
1483
+ },
1484
+ ],
1485
+ },
1486
+ {
1487
+ stateMutability: 'nonpayable',
1488
+ type: 'function',
1489
+ name: 'executePendingAction',
1490
+ inputs: [
1491
+ {
1492
+ name: '_aid',
1493
+ type: 'uint256',
1494
+ },
1495
+ ],
1496
+ outputs: [
1497
+ {
1498
+ name: '',
1499
+ type: 'bool',
1500
+ },
1501
+ ],
1502
+ },
1503
+ {
1504
+ stateMutability: 'nonpayable',
1505
+ type: 'function',
1506
+ name: 'cancelPendingAction',
1507
+ inputs: [
1508
+ {
1509
+ name: '_aid',
1510
+ type: 'uint256',
1511
+ },
1512
+ ],
1513
+ outputs: [
1514
+ {
1515
+ name: '',
1516
+ type: 'bool',
1517
+ },
1518
+ ],
1519
+ },
1520
+ {
1521
+ stateMutability: 'view',
1522
+ type: 'function',
1523
+ name: 'actionType',
1524
+ inputs: [
1525
+ {
1526
+ name: 'arg0',
1527
+ type: 'uint256',
1528
+ },
1529
+ ],
1530
+ outputs: [
1531
+ {
1532
+ name: '',
1533
+ type: 'uint256',
1534
+ },
1535
+ ],
1536
+ },
1537
+ {
1538
+ stateMutability: 'view',
1539
+ type: 'function',
1540
+ name: 'pendingHrConfig',
1541
+ inputs: [
1542
+ {
1543
+ name: 'arg0',
1544
+ type: 'uint256',
1545
+ },
1546
+ ],
1547
+ outputs: [
1548
+ {
1549
+ name: '',
1550
+ type: 'tuple',
1551
+ components: [
1552
+ {
1553
+ name: 'contribTemplate',
1554
+ type: 'address',
1555
+ },
1556
+ {
1557
+ name: 'maxCompensation',
1558
+ type: 'uint256',
1559
+ },
1560
+ {
1561
+ name: 'minCliffLength',
1562
+ type: 'uint256',
1563
+ },
1564
+ {
1565
+ name: 'maxStartDelay',
1566
+ type: 'uint256',
1567
+ },
1568
+ {
1569
+ name: 'minVestingLength',
1570
+ type: 'uint256',
1571
+ },
1572
+ {
1573
+ name: 'maxVestingLength',
1574
+ type: 'uint256',
1575
+ },
1576
+ ],
1577
+ },
1578
+ ],
1579
+ },
1580
+ {
1581
+ stateMutability: 'view',
1582
+ type: 'function',
1583
+ name: 'pendingManager',
1584
+ inputs: [
1585
+ {
1586
+ name: 'arg0',
1587
+ type: 'uint256',
1588
+ },
1589
+ ],
1590
+ outputs: [
1591
+ {
1592
+ name: '',
1593
+ type: 'tuple',
1594
+ components: [
1595
+ {
1596
+ name: 'contributor',
1597
+ type: 'address',
1598
+ },
1599
+ {
1600
+ name: 'pendingManager',
1601
+ type: 'address',
1602
+ },
1603
+ ],
1604
+ },
1605
+ ],
1606
+ },
1607
+ {
1608
+ stateMutability: 'view',
1609
+ type: 'function',
1610
+ name: 'pendingCancelPaycheck',
1611
+ inputs: [
1612
+ {
1613
+ name: 'arg0',
1614
+ type: 'uint256',
1615
+ },
1616
+ ],
1617
+ outputs: [
1618
+ {
1619
+ name: '',
1620
+ type: 'address',
1621
+ },
1622
+ ],
1623
+ },
1624
+ {
1625
+ stateMutability: 'view',
1626
+ type: 'function',
1627
+ name: 'pendingRipeBondConfig',
1628
+ inputs: [
1629
+ {
1630
+ name: 'arg0',
1631
+ type: 'uint256',
1632
+ },
1633
+ ],
1634
+ outputs: [
1635
+ {
1636
+ name: '',
1637
+ type: 'tuple',
1638
+ components: [
1639
+ {
1640
+ name: 'asset',
1641
+ type: 'address',
1642
+ },
1643
+ {
1644
+ name: 'amountPerEpoch',
1645
+ type: 'uint256',
1646
+ },
1647
+ {
1648
+ name: 'canBond',
1649
+ type: 'bool',
1650
+ },
1651
+ {
1652
+ name: 'minRipePerUnit',
1653
+ type: 'uint256',
1654
+ },
1655
+ {
1656
+ name: 'maxRipePerUnit',
1657
+ type: 'uint256',
1658
+ },
1659
+ {
1660
+ name: 'maxRipePerUnitLockBonus',
1661
+ type: 'uint256',
1662
+ },
1663
+ {
1664
+ name: 'epochLength',
1665
+ type: 'uint256',
1666
+ },
1667
+ {
1668
+ name: 'shouldAutoRestart',
1669
+ type: 'bool',
1670
+ },
1671
+ {
1672
+ name: 'restartDelayBlocks',
1673
+ type: 'uint256',
1674
+ },
1675
+ ],
1676
+ },
1677
+ ],
1678
+ },
1679
+ {
1680
+ stateMutability: 'view',
1681
+ type: 'function',
1682
+ name: 'pendingRipeBondConfigValue',
1683
+ inputs: [
1684
+ {
1685
+ name: 'arg0',
1686
+ type: 'uint256',
1687
+ },
1688
+ ],
1689
+ outputs: [
1690
+ {
1691
+ name: '',
1692
+ type: 'uint256',
1693
+ },
1694
+ ],
1695
+ },
1696
+ {
1697
+ stateMutability: 'nonpayable',
1698
+ type: 'constructor',
1699
+ inputs: [
1700
+ {
1701
+ name: '_ripeHq',
1702
+ type: 'address',
1703
+ },
1704
+ {
1705
+ name: '_minConfigTimeLock',
1706
+ type: 'uint256',
1707
+ },
1708
+ {
1709
+ name: '_maxConfigTimeLock',
1710
+ type: 'uint256',
1711
+ },
1712
+ ],
1713
+ outputs: [],
1714
+ },
1715
+ ];
1716
+ export const deployAddress = '0xbBDd02FfB71b0f3C5A5433C9b647f8dcd2282eF4';
1717
+ function getRequest(method, args, contractAddressOrOptions) {
1718
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1719
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1720
+ const call = {
1721
+ contractName: 'SwitchboardDelta',
1722
+ method,
1723
+ args,
1724
+ address,
1725
+ deployAddress,
1726
+ defaultValue,
1727
+ getAbi: () => abi,
1728
+ with: (options) => {
1729
+ call.address = options.contractAddress;
1730
+ call.defaultValue = options.defaultValue;
1731
+ return call;
1732
+ },
1733
+ defaultTo: (defaultValue) => {
1734
+ call.defaultValue = defaultValue;
1735
+ return call;
1736
+ },
1737
+ at: (address) => {
1738
+ call.address = address;
1739
+ return call;
1740
+ },
1741
+ };
1742
+ return call;
1743
+ }
1744
+ export const call = {
1745
+ getRipeHqFromGov: (...args) => getRequest('getRipeHqFromGov', args),
1746
+ canGovern: (...args) => getRequest('canGovern', args),
1747
+ getGovernors: (...args) => getRequest('getGovernors', args),
1748
+ hasPendingGovChange: (...args) => getRequest('hasPendingGovChange', args),
1749
+ isValidGovTimeLock: (...args) => getRequest('isValidGovTimeLock', args),
1750
+ minGovChangeTimeLock: (...args) => getRequest('minGovChangeTimeLock', args),
1751
+ maxGovChangeTimeLock: (...args) => getRequest('maxGovChangeTimeLock', args),
1752
+ governance: (...args) => getRequest('governance', args),
1753
+ pendingGov: (...args) => getRequest('pendingGov', args),
1754
+ numGovChanges: (...args) => getRequest('numGovChanges', args),
1755
+ govChangeTimeLock: (...args) => getRequest('govChangeTimeLock', args),
1756
+ canConfirmAction: (...args) => getRequest('canConfirmAction', args),
1757
+ isExpired: (...args) => getRequest('isExpired', args),
1758
+ hasPendingAction: (...args) => getRequest('hasPendingAction', args),
1759
+ getActionConfirmationBlock: (...args) => getRequest('getActionConfirmationBlock', args),
1760
+ isValidActionTimeLock: (...args) => getRequest('isValidActionTimeLock', args),
1761
+ minActionTimeLock: (...args) => getRequest('minActionTimeLock', args),
1762
+ maxActionTimeLock: (...args) => getRequest('maxActionTimeLock', args),
1763
+ pendingActions: (...args) => getRequest('pendingActions', args),
1764
+ actionId: (...args) => getRequest('actionId', args),
1765
+ actionTimeLock: (...args) => getRequest('actionTimeLock', args),
1766
+ expiration: (...args) => getRequest('expiration', args),
1767
+ actionType: (...args) => getRequest('actionType', args),
1768
+ pendingHrConfig: (...args) => getRequest('pendingHrConfig', args),
1769
+ pendingManager: (...args) => getRequest('pendingManager', args),
1770
+ pendingCancelPaycheck: (...args) => getRequest('pendingCancelPaycheck', args),
1771
+ pendingRipeBondConfig: (...args) => getRequest('pendingRipeBondConfig', args),
1772
+ pendingRipeBondConfigValue: (...args) => getRequest('pendingRipeBondConfigValue', args),
1773
+ };
1774
+ function getMutation(functionName) {
1775
+ return {
1776
+ contractName: 'SwitchboardDelta',
1777
+ functionName,
1778
+ deployAddress,
1779
+ argsType: undefined,
1780
+ getAbi: () => abi,
1781
+ };
1782
+ }
1783
+ export const mutation = {
1784
+ startGovernanceChange: getMutation('startGovernanceChange'),
1785
+ confirmGovernanceChange: getMutation('confirmGovernanceChange'),
1786
+ cancelGovernanceChange: getMutation('cancelGovernanceChange'),
1787
+ setGovTimeLock: getMutation('setGovTimeLock'),
1788
+ finishRipeHqSetup: getMutation('finishRipeHqSetup'),
1789
+ setActionTimeLock: getMutation('setActionTimeLock'),
1790
+ setExpiration: getMutation('setExpiration'),
1791
+ setActionTimeLockAfterSetup: getMutation('setActionTimeLockAfterSetup'),
1792
+ setContributorTemplate: getMutation('setContributorTemplate'),
1793
+ setMaxCompensation: getMutation('setMaxCompensation'),
1794
+ setMinCliffLength: getMutation('setMinCliffLength'),
1795
+ setMaxStartDelay: getMutation('setMaxStartDelay'),
1796
+ setVestingLengthBoundaries: getMutation('setVestingLengthBoundaries'),
1797
+ cancelPaycheckForContributor: getMutation('cancelPaycheckForContributor'),
1798
+ setManagerForContributor: getMutation('setManagerForContributor'),
1799
+ cashRipeCheckForContributor: getMutation('cashRipeCheckForContributor'),
1800
+ cancelRipeTransferForContributor: getMutation('cancelRipeTransferForContributor'),
1801
+ cancelOwnershipChangeForContributor: getMutation('cancelOwnershipChangeForContributor'),
1802
+ freezeContributor: getMutation('freezeContributor'),
1803
+ setRipeBondConfig: getMutation('setRipeBondConfig'),
1804
+ setRipeBondEpochLength: getMutation('setRipeBondEpochLength'),
1805
+ setStartEpochAtBlock: getMutation('setStartEpochAtBlock'),
1806
+ setCanPurchaseRipeBond: getMutation('setCanPurchaseRipeBond'),
1807
+ setBadDebt: getMutation('setBadDebt'),
1808
+ executePendingAction: getMutation('executePendingAction'),
1809
+ cancelPendingAction: getMutation('cancelPendingAction'),
1810
+ };
1811
+ export function toSdk(publicClient, walletClient) {
1812
+ return {
1813
+ deployAddress,
1814
+ abi,
1815
+ // Queries
1816
+ getRipeHqFromGov: (...args) => singleQuery(publicClient, call.getRipeHqFromGov(...args)),
1817
+ canGovern: (...args) => singleQuery(publicClient, call.canGovern(...args)),
1818
+ getGovernors: (...args) => singleQuery(publicClient, call.getGovernors(...args)),
1819
+ hasPendingGovChange: (...args) => singleQuery(publicClient, call.hasPendingGovChange(...args)),
1820
+ isValidGovTimeLock: (...args) => singleQuery(publicClient, call.isValidGovTimeLock(...args)),
1821
+ minGovChangeTimeLock: (...args) => singleQuery(publicClient, call.minGovChangeTimeLock(...args)),
1822
+ maxGovChangeTimeLock: (...args) => singleQuery(publicClient, call.maxGovChangeTimeLock(...args)),
1823
+ governance: (...args) => singleQuery(publicClient, call.governance(...args)),
1824
+ pendingGov: (...args) => singleQuery(publicClient, call.pendingGov(...args)),
1825
+ numGovChanges: (...args) => singleQuery(publicClient, call.numGovChanges(...args)),
1826
+ govChangeTimeLock: (...args) => singleQuery(publicClient, call.govChangeTimeLock(...args)),
1827
+ canConfirmAction: (...args) => singleQuery(publicClient, call.canConfirmAction(...args)),
1828
+ isExpired: (...args) => singleQuery(publicClient, call.isExpired(...args)),
1829
+ hasPendingAction: (...args) => singleQuery(publicClient, call.hasPendingAction(...args)),
1830
+ getActionConfirmationBlock: (...args) => singleQuery(publicClient, call.getActionConfirmationBlock(...args)),
1831
+ isValidActionTimeLock: (...args) => singleQuery(publicClient, call.isValidActionTimeLock(...args)),
1832
+ minActionTimeLock: (...args) => singleQuery(publicClient, call.minActionTimeLock(...args)),
1833
+ maxActionTimeLock: (...args) => singleQuery(publicClient, call.maxActionTimeLock(...args)),
1834
+ pendingActions: (...args) => singleQuery(publicClient, call.pendingActions(...args)),
1835
+ actionId: (...args) => singleQuery(publicClient, call.actionId(...args)),
1836
+ actionTimeLock: (...args) => singleQuery(publicClient, call.actionTimeLock(...args)),
1837
+ expiration: (...args) => singleQuery(publicClient, call.expiration(...args)),
1838
+ actionType: (...args) => singleQuery(publicClient, call.actionType(...args)),
1839
+ pendingHrConfig: (...args) => singleQuery(publicClient, call.pendingHrConfig(...args)),
1840
+ pendingManager: (...args) => singleQuery(publicClient, call.pendingManager(...args)),
1841
+ pendingCancelPaycheck: (...args) => singleQuery(publicClient, call.pendingCancelPaycheck(...args)),
1842
+ pendingRipeBondConfig: (...args) => singleQuery(publicClient, call.pendingRipeBondConfig(...args)),
1843
+ pendingRipeBondConfigValue: (...args) => singleQuery(publicClient, call.pendingRipeBondConfigValue(...args)),
1844
+ // Mutations
1845
+ startGovernanceChange: (...args) => mutate(walletClient, mutation.startGovernanceChange)(...args),
1846
+ confirmGovernanceChange: (...args) => mutate(walletClient, mutation.confirmGovernanceChange)(...args),
1847
+ cancelGovernanceChange: (...args) => mutate(walletClient, mutation.cancelGovernanceChange)(...args),
1848
+ setGovTimeLock: (...args) => mutate(walletClient, mutation.setGovTimeLock)(...args),
1849
+ finishRipeHqSetup: (...args) => mutate(walletClient, mutation.finishRipeHqSetup)(...args),
1850
+ setActionTimeLock: (...args) => mutate(walletClient, mutation.setActionTimeLock)(...args),
1851
+ setExpiration: (...args) => mutate(walletClient, mutation.setExpiration)(...args),
1852
+ setActionTimeLockAfterSetup: (...args) => mutate(walletClient, mutation.setActionTimeLockAfterSetup)(...args),
1853
+ setContributorTemplate: (...args) => mutate(walletClient, mutation.setContributorTemplate)(...args),
1854
+ setMaxCompensation: (...args) => mutate(walletClient, mutation.setMaxCompensation)(...args),
1855
+ setMinCliffLength: (...args) => mutate(walletClient, mutation.setMinCliffLength)(...args),
1856
+ setMaxStartDelay: (...args) => mutate(walletClient, mutation.setMaxStartDelay)(...args),
1857
+ setVestingLengthBoundaries: (...args) => mutate(walletClient, mutation.setVestingLengthBoundaries)(...args),
1858
+ cancelPaycheckForContributor: (...args) => mutate(walletClient, mutation.cancelPaycheckForContributor)(...args),
1859
+ setManagerForContributor: (...args) => mutate(walletClient, mutation.setManagerForContributor)(...args),
1860
+ cashRipeCheckForContributor: (...args) => mutate(walletClient, mutation.cashRipeCheckForContributor)(...args),
1861
+ cancelRipeTransferForContributor: (...args) => mutate(walletClient, mutation.cancelRipeTransferForContributor)(...args),
1862
+ cancelOwnershipChangeForContributor: (...args) => mutate(walletClient, mutation.cancelOwnershipChangeForContributor)(...args),
1863
+ freezeContributor: (...args) => mutate(walletClient, mutation.freezeContributor)(...args),
1864
+ setRipeBondConfig: (...args) => mutate(walletClient, mutation.setRipeBondConfig)(...args),
1865
+ setRipeBondEpochLength: (...args) => mutate(walletClient, mutation.setRipeBondEpochLength)(...args),
1866
+ setStartEpochAtBlock: (...args) => mutate(walletClient, mutation.setStartEpochAtBlock)(...args),
1867
+ setCanPurchaseRipeBond: (...args) => mutate(walletClient, mutation.setCanPurchaseRipeBond)(...args),
1868
+ setBadDebt: (...args) => mutate(walletClient, mutation.setBadDebt)(...args),
1869
+ executePendingAction: (...args) => mutate(walletClient, mutation.executePendingAction)(...args),
1870
+ cancelPendingAction: (...args) => mutate(walletClient, mutation.cancelPendingAction)(...args),
1871
+ };
1872
+ }