@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,1505 @@
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: 'Transfer',
9
+ inputs: [
10
+ {
11
+ name: 'sender',
12
+ type: 'address',
13
+ indexed: true,
14
+ },
15
+ {
16
+ name: 'recipient',
17
+ type: 'address',
18
+ indexed: true,
19
+ },
20
+ {
21
+ name: 'amount',
22
+ type: 'uint256',
23
+ indexed: false,
24
+ },
25
+ ],
26
+ anonymous: false,
27
+ type: 'event',
28
+ },
29
+ {
30
+ name: 'Approval',
31
+ inputs: [
32
+ {
33
+ name: 'owner',
34
+ type: 'address',
35
+ indexed: true,
36
+ },
37
+ {
38
+ name: 'spender',
39
+ type: 'address',
40
+ indexed: true,
41
+ },
42
+ {
43
+ name: 'amount',
44
+ type: 'uint256',
45
+ indexed: false,
46
+ },
47
+ ],
48
+ anonymous: false,
49
+ type: 'event',
50
+ },
51
+ {
52
+ name: 'BlacklistModified',
53
+ inputs: [
54
+ {
55
+ name: 'addr',
56
+ type: 'address',
57
+ indexed: true,
58
+ },
59
+ {
60
+ name: 'isBlacklisted',
61
+ type: 'bool',
62
+ indexed: false,
63
+ },
64
+ ],
65
+ anonymous: false,
66
+ type: 'event',
67
+ },
68
+ {
69
+ name: 'HqChangeInitiated',
70
+ inputs: [
71
+ {
72
+ name: 'prevHq',
73
+ type: 'address',
74
+ indexed: true,
75
+ },
76
+ {
77
+ name: 'newHq',
78
+ type: 'address',
79
+ indexed: true,
80
+ },
81
+ {
82
+ name: 'confirmBlock',
83
+ type: 'uint256',
84
+ indexed: false,
85
+ },
86
+ ],
87
+ anonymous: false,
88
+ type: 'event',
89
+ },
90
+ {
91
+ name: 'HqChangeConfirmed',
92
+ inputs: [
93
+ {
94
+ name: 'prevHq',
95
+ type: 'address',
96
+ indexed: true,
97
+ },
98
+ {
99
+ name: 'newHq',
100
+ type: 'address',
101
+ indexed: true,
102
+ },
103
+ {
104
+ name: 'initiatedBlock',
105
+ type: 'uint256',
106
+ indexed: false,
107
+ },
108
+ {
109
+ name: 'confirmBlock',
110
+ type: 'uint256',
111
+ indexed: false,
112
+ },
113
+ ],
114
+ anonymous: false,
115
+ type: 'event',
116
+ },
117
+ {
118
+ name: 'HqChangeCancelled',
119
+ inputs: [
120
+ {
121
+ name: 'cancelledHq',
122
+ type: 'address',
123
+ indexed: true,
124
+ },
125
+ {
126
+ name: 'initiatedBlock',
127
+ type: 'uint256',
128
+ indexed: false,
129
+ },
130
+ {
131
+ name: 'confirmBlock',
132
+ type: 'uint256',
133
+ indexed: false,
134
+ },
135
+ ],
136
+ anonymous: false,
137
+ type: 'event',
138
+ },
139
+ {
140
+ name: 'HqChangeTimeLockModified',
141
+ inputs: [
142
+ {
143
+ name: 'prevTimeLock',
144
+ type: 'uint256',
145
+ indexed: false,
146
+ },
147
+ {
148
+ name: 'newTimeLock',
149
+ type: 'uint256',
150
+ indexed: false,
151
+ },
152
+ ],
153
+ anonymous: false,
154
+ type: 'event',
155
+ },
156
+ {
157
+ name: 'TokenPauseModified',
158
+ inputs: [
159
+ {
160
+ name: 'isPaused',
161
+ type: 'bool',
162
+ indexed: false,
163
+ },
164
+ ],
165
+ anonymous: false,
166
+ type: 'event',
167
+ },
168
+ {
169
+ name: 'InitialRipeHqSet',
170
+ inputs: [
171
+ {
172
+ name: 'hq',
173
+ type: 'address',
174
+ indexed: true,
175
+ },
176
+ {
177
+ name: 'timeLock',
178
+ type: 'uint256',
179
+ indexed: false,
180
+ },
181
+ ],
182
+ anonymous: false,
183
+ type: 'event',
184
+ },
185
+ {
186
+ name: 'Deposit',
187
+ inputs: [
188
+ {
189
+ name: 'sender',
190
+ type: 'address',
191
+ indexed: true,
192
+ },
193
+ {
194
+ name: 'owner',
195
+ type: 'address',
196
+ indexed: true,
197
+ },
198
+ {
199
+ name: 'assets',
200
+ type: 'uint256',
201
+ indexed: false,
202
+ },
203
+ {
204
+ name: 'shares',
205
+ type: 'uint256',
206
+ indexed: false,
207
+ },
208
+ ],
209
+ anonymous: false,
210
+ type: 'event',
211
+ },
212
+ {
213
+ name: 'Withdraw',
214
+ inputs: [
215
+ {
216
+ name: 'sender',
217
+ type: 'address',
218
+ indexed: true,
219
+ },
220
+ {
221
+ name: 'receiver',
222
+ type: 'address',
223
+ indexed: true,
224
+ },
225
+ {
226
+ name: 'owner',
227
+ type: 'address',
228
+ indexed: true,
229
+ },
230
+ {
231
+ name: 'assets',
232
+ type: 'uint256',
233
+ indexed: false,
234
+ },
235
+ {
236
+ name: 'shares',
237
+ type: 'uint256',
238
+ indexed: false,
239
+ },
240
+ ],
241
+ anonymous: false,
242
+ type: 'event',
243
+ },
244
+ {
245
+ stateMutability: 'view',
246
+ type: 'function',
247
+ name: 'name',
248
+ inputs: [],
249
+ outputs: [
250
+ {
251
+ name: '',
252
+ type: 'string',
253
+ },
254
+ ],
255
+ },
256
+ {
257
+ stateMutability: 'view',
258
+ type: 'function',
259
+ name: 'symbol',
260
+ inputs: [],
261
+ outputs: [
262
+ {
263
+ name: '',
264
+ type: 'string',
265
+ },
266
+ ],
267
+ },
268
+ {
269
+ stateMutability: 'view',
270
+ type: 'function',
271
+ name: 'decimals',
272
+ inputs: [],
273
+ outputs: [
274
+ {
275
+ name: '',
276
+ type: 'uint8',
277
+ },
278
+ ],
279
+ },
280
+ {
281
+ stateMutability: 'nonpayable',
282
+ type: 'function',
283
+ name: 'transfer',
284
+ inputs: [
285
+ {
286
+ name: '_recipient',
287
+ type: 'address',
288
+ },
289
+ {
290
+ name: '_amount',
291
+ type: 'uint256',
292
+ },
293
+ ],
294
+ outputs: [
295
+ {
296
+ name: '',
297
+ type: 'bool',
298
+ },
299
+ ],
300
+ },
301
+ {
302
+ stateMutability: 'nonpayable',
303
+ type: 'function',
304
+ name: 'transferFrom',
305
+ inputs: [
306
+ {
307
+ name: '_sender',
308
+ type: 'address',
309
+ },
310
+ {
311
+ name: '_recipient',
312
+ type: 'address',
313
+ },
314
+ {
315
+ name: '_amount',
316
+ type: 'uint256',
317
+ },
318
+ ],
319
+ outputs: [
320
+ {
321
+ name: '',
322
+ type: 'bool',
323
+ },
324
+ ],
325
+ },
326
+ {
327
+ stateMutability: 'nonpayable',
328
+ type: 'function',
329
+ name: 'approve',
330
+ inputs: [
331
+ {
332
+ name: '_spender',
333
+ type: 'address',
334
+ },
335
+ {
336
+ name: '_amount',
337
+ type: 'uint256',
338
+ },
339
+ ],
340
+ outputs: [
341
+ {
342
+ name: '',
343
+ type: 'bool',
344
+ },
345
+ ],
346
+ },
347
+ {
348
+ stateMutability: 'nonpayable',
349
+ type: 'function',
350
+ name: 'increaseAllowance',
351
+ inputs: [
352
+ {
353
+ name: '_spender',
354
+ type: 'address',
355
+ },
356
+ {
357
+ name: '_amount',
358
+ type: 'uint256',
359
+ },
360
+ ],
361
+ outputs: [
362
+ {
363
+ name: '',
364
+ type: 'bool',
365
+ },
366
+ ],
367
+ },
368
+ {
369
+ stateMutability: 'nonpayable',
370
+ type: 'function',
371
+ name: 'decreaseAllowance',
372
+ inputs: [
373
+ {
374
+ name: '_spender',
375
+ type: 'address',
376
+ },
377
+ {
378
+ name: '_amount',
379
+ type: 'uint256',
380
+ },
381
+ ],
382
+ outputs: [
383
+ {
384
+ name: '',
385
+ type: 'bool',
386
+ },
387
+ ],
388
+ },
389
+ {
390
+ stateMutability: 'nonpayable',
391
+ type: 'function',
392
+ name: 'burn',
393
+ inputs: [
394
+ {
395
+ name: '_amount',
396
+ type: 'uint256',
397
+ },
398
+ ],
399
+ outputs: [
400
+ {
401
+ name: '',
402
+ type: 'bool',
403
+ },
404
+ ],
405
+ },
406
+ {
407
+ stateMutability: 'view',
408
+ type: 'function',
409
+ name: 'DOMAIN_SEPARATOR',
410
+ inputs: [],
411
+ outputs: [
412
+ {
413
+ name: '',
414
+ type: 'bytes32',
415
+ },
416
+ ],
417
+ },
418
+ {
419
+ stateMutability: 'nonpayable',
420
+ type: 'function',
421
+ name: 'permit',
422
+ inputs: [
423
+ {
424
+ name: '_owner',
425
+ type: 'address',
426
+ },
427
+ {
428
+ name: '_spender',
429
+ type: 'address',
430
+ },
431
+ {
432
+ name: '_value',
433
+ type: 'uint256',
434
+ },
435
+ {
436
+ name: '_deadline',
437
+ type: 'uint256',
438
+ },
439
+ {
440
+ name: '_signature',
441
+ type: 'bytes',
442
+ },
443
+ ],
444
+ outputs: [
445
+ {
446
+ name: '',
447
+ type: 'bool',
448
+ },
449
+ ],
450
+ },
451
+ {
452
+ stateMutability: 'nonpayable',
453
+ type: 'function',
454
+ name: 'setBlacklist',
455
+ inputs: [
456
+ {
457
+ name: '_addr',
458
+ type: 'address',
459
+ },
460
+ {
461
+ name: '_shouldBlacklist',
462
+ type: 'bool',
463
+ },
464
+ ],
465
+ outputs: [
466
+ {
467
+ name: '',
468
+ type: 'bool',
469
+ },
470
+ ],
471
+ },
472
+ {
473
+ stateMutability: 'nonpayable',
474
+ type: 'function',
475
+ name: 'burnBlacklistTokens',
476
+ inputs: [
477
+ {
478
+ name: '_addr',
479
+ type: 'address',
480
+ },
481
+ ],
482
+ outputs: [
483
+ {
484
+ name: '',
485
+ type: 'bool',
486
+ },
487
+ ],
488
+ },
489
+ {
490
+ stateMutability: 'nonpayable',
491
+ type: 'function',
492
+ name: 'burnBlacklistTokens',
493
+ inputs: [
494
+ {
495
+ name: '_addr',
496
+ type: 'address',
497
+ },
498
+ {
499
+ name: '_amount',
500
+ type: 'uint256',
501
+ },
502
+ ],
503
+ outputs: [
504
+ {
505
+ name: '',
506
+ type: 'bool',
507
+ },
508
+ ],
509
+ },
510
+ {
511
+ stateMutability: 'view',
512
+ type: 'function',
513
+ name: 'hasPendingHqChange',
514
+ inputs: [],
515
+ outputs: [
516
+ {
517
+ name: '',
518
+ type: 'bool',
519
+ },
520
+ ],
521
+ },
522
+ {
523
+ stateMutability: 'nonpayable',
524
+ type: 'function',
525
+ name: 'initiateHqChange',
526
+ inputs: [
527
+ {
528
+ name: '_newHq',
529
+ type: 'address',
530
+ },
531
+ ],
532
+ outputs: [],
533
+ },
534
+ {
535
+ stateMutability: 'nonpayable',
536
+ type: 'function',
537
+ name: 'confirmHqChange',
538
+ inputs: [],
539
+ outputs: [
540
+ {
541
+ name: '',
542
+ type: 'bool',
543
+ },
544
+ ],
545
+ },
546
+ {
547
+ stateMutability: 'nonpayable',
548
+ type: 'function',
549
+ name: 'cancelHqChange',
550
+ inputs: [],
551
+ outputs: [],
552
+ },
553
+ {
554
+ stateMutability: 'view',
555
+ type: 'function',
556
+ name: 'isValidNewRipeHq',
557
+ inputs: [
558
+ {
559
+ name: '_newHq',
560
+ type: 'address',
561
+ },
562
+ ],
563
+ outputs: [
564
+ {
565
+ name: '',
566
+ type: 'bool',
567
+ },
568
+ ],
569
+ },
570
+ {
571
+ stateMutability: 'nonpayable',
572
+ type: 'function',
573
+ name: 'setHqChangeTimeLock',
574
+ inputs: [
575
+ {
576
+ name: '_newTimeLock',
577
+ type: 'uint256',
578
+ },
579
+ ],
580
+ outputs: [
581
+ {
582
+ name: '',
583
+ type: 'bool',
584
+ },
585
+ ],
586
+ },
587
+ {
588
+ stateMutability: 'view',
589
+ type: 'function',
590
+ name: 'isValidHqChangeTimeLock',
591
+ inputs: [
592
+ {
593
+ name: '_newTimeLock',
594
+ type: 'uint256',
595
+ },
596
+ ],
597
+ outputs: [
598
+ {
599
+ name: '',
600
+ type: 'bool',
601
+ },
602
+ ],
603
+ },
604
+ {
605
+ stateMutability: 'view',
606
+ type: 'function',
607
+ name: 'minHqTimeLock',
608
+ inputs: [],
609
+ outputs: [
610
+ {
611
+ name: '',
612
+ type: 'uint256',
613
+ },
614
+ ],
615
+ },
616
+ {
617
+ stateMutability: 'view',
618
+ type: 'function',
619
+ name: 'maxHqTimeLock',
620
+ inputs: [],
621
+ outputs: [
622
+ {
623
+ name: '',
624
+ type: 'uint256',
625
+ },
626
+ ],
627
+ },
628
+ {
629
+ stateMutability: 'nonpayable',
630
+ type: 'function',
631
+ name: 'pause',
632
+ inputs: [
633
+ {
634
+ name: '_shouldPause',
635
+ type: 'bool',
636
+ },
637
+ ],
638
+ outputs: [],
639
+ },
640
+ {
641
+ stateMutability: 'nonpayable',
642
+ type: 'function',
643
+ name: 'finishTokenSetup',
644
+ inputs: [
645
+ {
646
+ name: '_newHq',
647
+ type: 'address',
648
+ },
649
+ ],
650
+ outputs: [
651
+ {
652
+ name: '',
653
+ type: 'bool',
654
+ },
655
+ ],
656
+ },
657
+ {
658
+ stateMutability: 'nonpayable',
659
+ type: 'function',
660
+ name: 'finishTokenSetup',
661
+ inputs: [
662
+ {
663
+ name: '_newHq',
664
+ type: 'address',
665
+ },
666
+ {
667
+ name: '_timeLock',
668
+ type: 'uint256',
669
+ },
670
+ ],
671
+ outputs: [
672
+ {
673
+ name: '',
674
+ type: 'bool',
675
+ },
676
+ ],
677
+ },
678
+ {
679
+ stateMutability: 'view',
680
+ type: 'function',
681
+ name: 'ripeHq',
682
+ inputs: [],
683
+ outputs: [
684
+ {
685
+ name: '',
686
+ type: 'address',
687
+ },
688
+ ],
689
+ },
690
+ {
691
+ stateMutability: 'view',
692
+ type: 'function',
693
+ name: 'blacklisted',
694
+ inputs: [
695
+ {
696
+ name: 'arg0',
697
+ type: 'address',
698
+ },
699
+ ],
700
+ outputs: [
701
+ {
702
+ name: '',
703
+ type: 'bool',
704
+ },
705
+ ],
706
+ },
707
+ {
708
+ stateMutability: 'view',
709
+ type: 'function',
710
+ name: 'isPaused',
711
+ inputs: [],
712
+ outputs: [
713
+ {
714
+ name: '',
715
+ type: 'bool',
716
+ },
717
+ ],
718
+ },
719
+ {
720
+ stateMutability: 'view',
721
+ type: 'function',
722
+ name: 'pendingHq',
723
+ inputs: [],
724
+ outputs: [
725
+ {
726
+ name: '',
727
+ type: 'tuple',
728
+ components: [
729
+ {
730
+ name: 'newHq',
731
+ type: 'address',
732
+ },
733
+ {
734
+ name: 'initiatedBlock',
735
+ type: 'uint256',
736
+ },
737
+ {
738
+ name: 'confirmBlock',
739
+ type: 'uint256',
740
+ },
741
+ ],
742
+ },
743
+ ],
744
+ },
745
+ {
746
+ stateMutability: 'view',
747
+ type: 'function',
748
+ name: 'hqChangeTimeLock',
749
+ inputs: [],
750
+ outputs: [
751
+ {
752
+ name: '',
753
+ type: 'uint256',
754
+ },
755
+ ],
756
+ },
757
+ {
758
+ stateMutability: 'view',
759
+ type: 'function',
760
+ name: 'balanceOf',
761
+ inputs: [
762
+ {
763
+ name: 'arg0',
764
+ type: 'address',
765
+ },
766
+ ],
767
+ outputs: [
768
+ {
769
+ name: '',
770
+ type: 'uint256',
771
+ },
772
+ ],
773
+ },
774
+ {
775
+ stateMutability: 'view',
776
+ type: 'function',
777
+ name: 'allowance',
778
+ inputs: [
779
+ {
780
+ name: 'arg0',
781
+ type: 'address',
782
+ },
783
+ {
784
+ name: 'arg1',
785
+ type: 'address',
786
+ },
787
+ ],
788
+ outputs: [
789
+ {
790
+ name: '',
791
+ type: 'uint256',
792
+ },
793
+ ],
794
+ },
795
+ {
796
+ stateMutability: 'view',
797
+ type: 'function',
798
+ name: 'totalSupply',
799
+ inputs: [],
800
+ outputs: [
801
+ {
802
+ name: '',
803
+ type: 'uint256',
804
+ },
805
+ ],
806
+ },
807
+ {
808
+ stateMutability: 'view',
809
+ type: 'function',
810
+ name: 'TOKEN_NAME',
811
+ inputs: [],
812
+ outputs: [
813
+ {
814
+ name: '',
815
+ type: 'string',
816
+ },
817
+ ],
818
+ },
819
+ {
820
+ stateMutability: 'view',
821
+ type: 'function',
822
+ name: 'TOKEN_SYMBOL',
823
+ inputs: [],
824
+ outputs: [
825
+ {
826
+ name: '',
827
+ type: 'string',
828
+ },
829
+ ],
830
+ },
831
+ {
832
+ stateMutability: 'view',
833
+ type: 'function',
834
+ name: 'TOKEN_DECIMALS',
835
+ inputs: [],
836
+ outputs: [
837
+ {
838
+ name: '',
839
+ type: 'uint8',
840
+ },
841
+ ],
842
+ },
843
+ {
844
+ stateMutability: 'view',
845
+ type: 'function',
846
+ name: 'VERSION',
847
+ inputs: [],
848
+ outputs: [
849
+ {
850
+ name: '',
851
+ type: 'string',
852
+ },
853
+ ],
854
+ },
855
+ {
856
+ stateMutability: 'view',
857
+ type: 'function',
858
+ name: 'nonces',
859
+ inputs: [
860
+ {
861
+ name: 'arg0',
862
+ type: 'address',
863
+ },
864
+ ],
865
+ outputs: [
866
+ {
867
+ name: '',
868
+ type: 'uint256',
869
+ },
870
+ ],
871
+ },
872
+ {
873
+ stateMutability: 'view',
874
+ type: 'function',
875
+ name: 'asset',
876
+ inputs: [],
877
+ outputs: [
878
+ {
879
+ name: '',
880
+ type: 'address',
881
+ },
882
+ ],
883
+ },
884
+ {
885
+ stateMutability: 'view',
886
+ type: 'function',
887
+ name: 'totalAssets',
888
+ inputs: [],
889
+ outputs: [
890
+ {
891
+ name: '',
892
+ type: 'uint256',
893
+ },
894
+ ],
895
+ },
896
+ {
897
+ stateMutability: 'view',
898
+ type: 'function',
899
+ name: 'maxDeposit',
900
+ inputs: [
901
+ {
902
+ name: '_receiver',
903
+ type: 'address',
904
+ },
905
+ ],
906
+ outputs: [
907
+ {
908
+ name: '',
909
+ type: 'uint256',
910
+ },
911
+ ],
912
+ },
913
+ {
914
+ stateMutability: 'view',
915
+ type: 'function',
916
+ name: 'previewDeposit',
917
+ inputs: [
918
+ {
919
+ name: '_assets',
920
+ type: 'uint256',
921
+ },
922
+ ],
923
+ outputs: [
924
+ {
925
+ name: '',
926
+ type: 'uint256',
927
+ },
928
+ ],
929
+ },
930
+ {
931
+ stateMutability: 'nonpayable',
932
+ type: 'function',
933
+ name: 'deposit',
934
+ inputs: [
935
+ {
936
+ name: '_assets',
937
+ type: 'uint256',
938
+ },
939
+ ],
940
+ outputs: [
941
+ {
942
+ name: '',
943
+ type: 'uint256',
944
+ },
945
+ ],
946
+ },
947
+ {
948
+ stateMutability: 'nonpayable',
949
+ type: 'function',
950
+ name: 'deposit',
951
+ inputs: [
952
+ {
953
+ name: '_assets',
954
+ type: 'uint256',
955
+ },
956
+ {
957
+ name: '_receiver',
958
+ type: 'address',
959
+ },
960
+ ],
961
+ outputs: [
962
+ {
963
+ name: '',
964
+ type: 'uint256',
965
+ },
966
+ ],
967
+ },
968
+ {
969
+ stateMutability: 'view',
970
+ type: 'function',
971
+ name: 'maxMint',
972
+ inputs: [
973
+ {
974
+ name: '_receiver',
975
+ type: 'address',
976
+ },
977
+ ],
978
+ outputs: [
979
+ {
980
+ name: '',
981
+ type: 'uint256',
982
+ },
983
+ ],
984
+ },
985
+ {
986
+ stateMutability: 'view',
987
+ type: 'function',
988
+ name: 'previewMint',
989
+ inputs: [
990
+ {
991
+ name: '_shares',
992
+ type: 'uint256',
993
+ },
994
+ ],
995
+ outputs: [
996
+ {
997
+ name: '',
998
+ type: 'uint256',
999
+ },
1000
+ ],
1001
+ },
1002
+ {
1003
+ stateMutability: 'nonpayable',
1004
+ type: 'function',
1005
+ name: 'mint',
1006
+ inputs: [
1007
+ {
1008
+ name: '_shares',
1009
+ type: 'uint256',
1010
+ },
1011
+ ],
1012
+ outputs: [
1013
+ {
1014
+ name: '',
1015
+ type: 'uint256',
1016
+ },
1017
+ ],
1018
+ },
1019
+ {
1020
+ stateMutability: 'nonpayable',
1021
+ type: 'function',
1022
+ name: 'mint',
1023
+ inputs: [
1024
+ {
1025
+ name: '_shares',
1026
+ type: 'uint256',
1027
+ },
1028
+ {
1029
+ name: '_receiver',
1030
+ type: 'address',
1031
+ },
1032
+ ],
1033
+ outputs: [
1034
+ {
1035
+ name: '',
1036
+ type: 'uint256',
1037
+ },
1038
+ ],
1039
+ },
1040
+ {
1041
+ stateMutability: 'view',
1042
+ type: 'function',
1043
+ name: 'maxWithdraw',
1044
+ inputs: [
1045
+ {
1046
+ name: '_owner',
1047
+ type: 'address',
1048
+ },
1049
+ ],
1050
+ outputs: [
1051
+ {
1052
+ name: '',
1053
+ type: 'uint256',
1054
+ },
1055
+ ],
1056
+ },
1057
+ {
1058
+ stateMutability: 'view',
1059
+ type: 'function',
1060
+ name: 'previewWithdraw',
1061
+ inputs: [
1062
+ {
1063
+ name: '_assets',
1064
+ type: 'uint256',
1065
+ },
1066
+ ],
1067
+ outputs: [
1068
+ {
1069
+ name: '',
1070
+ type: 'uint256',
1071
+ },
1072
+ ],
1073
+ },
1074
+ {
1075
+ stateMutability: 'nonpayable',
1076
+ type: 'function',
1077
+ name: 'withdraw',
1078
+ inputs: [
1079
+ {
1080
+ name: '_assets',
1081
+ type: 'uint256',
1082
+ },
1083
+ ],
1084
+ outputs: [
1085
+ {
1086
+ name: '',
1087
+ type: 'uint256',
1088
+ },
1089
+ ],
1090
+ },
1091
+ {
1092
+ stateMutability: 'nonpayable',
1093
+ type: 'function',
1094
+ name: 'withdraw',
1095
+ inputs: [
1096
+ {
1097
+ name: '_assets',
1098
+ type: 'uint256',
1099
+ },
1100
+ {
1101
+ name: '_receiver',
1102
+ type: 'address',
1103
+ },
1104
+ ],
1105
+ outputs: [
1106
+ {
1107
+ name: '',
1108
+ type: 'uint256',
1109
+ },
1110
+ ],
1111
+ },
1112
+ {
1113
+ stateMutability: 'nonpayable',
1114
+ type: 'function',
1115
+ name: 'withdraw',
1116
+ inputs: [
1117
+ {
1118
+ name: '_assets',
1119
+ type: 'uint256',
1120
+ },
1121
+ {
1122
+ name: '_receiver',
1123
+ type: 'address',
1124
+ },
1125
+ {
1126
+ name: '_owner',
1127
+ type: 'address',
1128
+ },
1129
+ ],
1130
+ outputs: [
1131
+ {
1132
+ name: '',
1133
+ type: 'uint256',
1134
+ },
1135
+ ],
1136
+ },
1137
+ {
1138
+ stateMutability: 'view',
1139
+ type: 'function',
1140
+ name: 'maxRedeem',
1141
+ inputs: [
1142
+ {
1143
+ name: '_owner',
1144
+ type: 'address',
1145
+ },
1146
+ ],
1147
+ outputs: [
1148
+ {
1149
+ name: '',
1150
+ type: 'uint256',
1151
+ },
1152
+ ],
1153
+ },
1154
+ {
1155
+ stateMutability: 'view',
1156
+ type: 'function',
1157
+ name: 'previewRedeem',
1158
+ inputs: [
1159
+ {
1160
+ name: '_shares',
1161
+ type: 'uint256',
1162
+ },
1163
+ ],
1164
+ outputs: [
1165
+ {
1166
+ name: '',
1167
+ type: 'uint256',
1168
+ },
1169
+ ],
1170
+ },
1171
+ {
1172
+ stateMutability: 'nonpayable',
1173
+ type: 'function',
1174
+ name: 'redeem',
1175
+ inputs: [
1176
+ {
1177
+ name: '_shares',
1178
+ type: 'uint256',
1179
+ },
1180
+ ],
1181
+ outputs: [
1182
+ {
1183
+ name: '',
1184
+ type: 'uint256',
1185
+ },
1186
+ ],
1187
+ },
1188
+ {
1189
+ stateMutability: 'nonpayable',
1190
+ type: 'function',
1191
+ name: 'redeem',
1192
+ inputs: [
1193
+ {
1194
+ name: '_shares',
1195
+ type: 'uint256',
1196
+ },
1197
+ {
1198
+ name: '_receiver',
1199
+ type: 'address',
1200
+ },
1201
+ ],
1202
+ outputs: [
1203
+ {
1204
+ name: '',
1205
+ type: 'uint256',
1206
+ },
1207
+ ],
1208
+ },
1209
+ {
1210
+ stateMutability: 'nonpayable',
1211
+ type: 'function',
1212
+ name: 'redeem',
1213
+ inputs: [
1214
+ {
1215
+ name: '_shares',
1216
+ type: 'uint256',
1217
+ },
1218
+ {
1219
+ name: '_receiver',
1220
+ type: 'address',
1221
+ },
1222
+ {
1223
+ name: '_owner',
1224
+ type: 'address',
1225
+ },
1226
+ ],
1227
+ outputs: [
1228
+ {
1229
+ name: '',
1230
+ type: 'uint256',
1231
+ },
1232
+ ],
1233
+ },
1234
+ {
1235
+ stateMutability: 'view',
1236
+ type: 'function',
1237
+ name: 'convertToShares',
1238
+ inputs: [
1239
+ {
1240
+ name: '_assets',
1241
+ type: 'uint256',
1242
+ },
1243
+ ],
1244
+ outputs: [
1245
+ {
1246
+ name: '',
1247
+ type: 'uint256',
1248
+ },
1249
+ ],
1250
+ },
1251
+ {
1252
+ stateMutability: 'view',
1253
+ type: 'function',
1254
+ name: 'convertToAssets',
1255
+ inputs: [
1256
+ {
1257
+ name: '_shares',
1258
+ type: 'uint256',
1259
+ },
1260
+ ],
1261
+ outputs: [
1262
+ {
1263
+ name: '',
1264
+ type: 'uint256',
1265
+ },
1266
+ ],
1267
+ },
1268
+ {
1269
+ stateMutability: 'view',
1270
+ type: 'function',
1271
+ name: 'getLastUnderlying',
1272
+ inputs: [
1273
+ {
1274
+ name: '_shares',
1275
+ type: 'uint256',
1276
+ },
1277
+ ],
1278
+ outputs: [
1279
+ {
1280
+ name: '',
1281
+ type: 'uint256',
1282
+ },
1283
+ ],
1284
+ },
1285
+ {
1286
+ stateMutability: 'view',
1287
+ type: 'function',
1288
+ name: 'pricePerShare',
1289
+ inputs: [],
1290
+ outputs: [
1291
+ {
1292
+ name: '',
1293
+ type: 'uint256',
1294
+ },
1295
+ ],
1296
+ },
1297
+ {
1298
+ stateMutability: 'view',
1299
+ type: 'function',
1300
+ name: 'lastPricePerShare',
1301
+ inputs: [],
1302
+ outputs: [
1303
+ {
1304
+ name: '',
1305
+ type: 'uint256',
1306
+ },
1307
+ ],
1308
+ },
1309
+ {
1310
+ stateMutability: 'nonpayable',
1311
+ type: 'constructor',
1312
+ inputs: [
1313
+ {
1314
+ name: '_asset',
1315
+ type: 'address',
1316
+ },
1317
+ {
1318
+ name: '_ripeHq',
1319
+ type: 'address',
1320
+ },
1321
+ {
1322
+ name: '_initialGov',
1323
+ type: 'address',
1324
+ },
1325
+ {
1326
+ name: '_minHqTimeLock',
1327
+ type: 'uint256',
1328
+ },
1329
+ {
1330
+ name: '_maxHqTimeLock',
1331
+ type: 'uint256',
1332
+ },
1333
+ {
1334
+ name: '_initialSupply',
1335
+ type: 'uint256',
1336
+ },
1337
+ {
1338
+ name: '_initialSupplyRecipient',
1339
+ type: 'address',
1340
+ },
1341
+ ],
1342
+ outputs: [],
1343
+ },
1344
+ ];
1345
+ export const deployAddress = '0xaa0f13488CE069A7B5a099457c753A7CFBE04d36';
1346
+ function getRequest(method, args, contractAddressOrOptions) {
1347
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
1348
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
1349
+ const call = {
1350
+ contractName: 'SavingsGreen',
1351
+ method,
1352
+ args,
1353
+ address,
1354
+ deployAddress,
1355
+ defaultValue,
1356
+ getAbi: () => abi,
1357
+ with: (options) => {
1358
+ call.address = options.contractAddress;
1359
+ call.defaultValue = options.defaultValue;
1360
+ return call;
1361
+ },
1362
+ defaultTo: (defaultValue) => {
1363
+ call.defaultValue = defaultValue;
1364
+ return call;
1365
+ },
1366
+ at: (address) => {
1367
+ call.address = address;
1368
+ return call;
1369
+ },
1370
+ };
1371
+ return call;
1372
+ }
1373
+ export const call = {
1374
+ name: (...args) => getRequest('name', args),
1375
+ symbol: (...args) => getRequest('symbol', args),
1376
+ decimals: (...args) => getRequest('decimals', args),
1377
+ DOMAIN_SEPARATOR: (...args) => getRequest('DOMAIN_SEPARATOR', args),
1378
+ hasPendingHqChange: (...args) => getRequest('hasPendingHqChange', args),
1379
+ isValidNewRipeHq: (...args) => getRequest('isValidNewRipeHq', args),
1380
+ isValidHqChangeTimeLock: (...args) => getRequest('isValidHqChangeTimeLock', args),
1381
+ minHqTimeLock: (...args) => getRequest('minHqTimeLock', args),
1382
+ maxHqTimeLock: (...args) => getRequest('maxHqTimeLock', args),
1383
+ ripeHq: (...args) => getRequest('ripeHq', args),
1384
+ blacklisted: (...args) => getRequest('blacklisted', args),
1385
+ isPaused: (...args) => getRequest('isPaused', args),
1386
+ pendingHq: (...args) => getRequest('pendingHq', args),
1387
+ hqChangeTimeLock: (...args) => getRequest('hqChangeTimeLock', args),
1388
+ balanceOf: (...args) => getRequest('balanceOf', args),
1389
+ allowance: (...args) => getRequest('allowance', args),
1390
+ totalSupply: (...args) => getRequest('totalSupply', args),
1391
+ TOKEN_NAME: (...args) => getRequest('TOKEN_NAME', args),
1392
+ TOKEN_SYMBOL: (...args) => getRequest('TOKEN_SYMBOL', args),
1393
+ TOKEN_DECIMALS: (...args) => getRequest('TOKEN_DECIMALS', args),
1394
+ VERSION: (...args) => getRequest('VERSION', args),
1395
+ nonces: (...args) => getRequest('nonces', args),
1396
+ asset: (...args) => getRequest('asset', args),
1397
+ totalAssets: (...args) => getRequest('totalAssets', args),
1398
+ maxDeposit: (...args) => getRequest('maxDeposit', args),
1399
+ previewDeposit: (...args) => getRequest('previewDeposit', args),
1400
+ maxMint: (...args) => getRequest('maxMint', args),
1401
+ previewMint: (...args) => getRequest('previewMint', args),
1402
+ maxWithdraw: (...args) => getRequest('maxWithdraw', args),
1403
+ previewWithdraw: (...args) => getRequest('previewWithdraw', args),
1404
+ maxRedeem: (...args) => getRequest('maxRedeem', args),
1405
+ previewRedeem: (...args) => getRequest('previewRedeem', args),
1406
+ convertToShares: (...args) => getRequest('convertToShares', args),
1407
+ convertToAssets: (...args) => getRequest('convertToAssets', args),
1408
+ getLastUnderlying: (...args) => getRequest('getLastUnderlying', args),
1409
+ pricePerShare: (...args) => getRequest('pricePerShare', args),
1410
+ lastPricePerShare: (...args) => getRequest('lastPricePerShare', args),
1411
+ };
1412
+ function getMutation(functionName) {
1413
+ return {
1414
+ contractName: 'SavingsGreen',
1415
+ functionName,
1416
+ deployAddress,
1417
+ argsType: undefined,
1418
+ getAbi: () => abi,
1419
+ };
1420
+ }
1421
+ export const mutation = {
1422
+ transfer: getMutation('transfer'),
1423
+ transferFrom: getMutation('transferFrom'),
1424
+ approve: getMutation('approve'),
1425
+ increaseAllowance: getMutation('increaseAllowance'),
1426
+ decreaseAllowance: getMutation('decreaseAllowance'),
1427
+ burn: getMutation('burn'),
1428
+ permit: getMutation('permit'),
1429
+ setBlacklist: getMutation('setBlacklist'),
1430
+ burnBlacklistTokens: getMutation('burnBlacklistTokens'),
1431
+ initiateHqChange: getMutation('initiateHqChange'),
1432
+ confirmHqChange: getMutation('confirmHqChange'),
1433
+ cancelHqChange: getMutation('cancelHqChange'),
1434
+ setHqChangeTimeLock: getMutation('setHqChangeTimeLock'),
1435
+ pause: getMutation('pause'),
1436
+ finishTokenSetup: getMutation('finishTokenSetup'),
1437
+ deposit: getMutation('deposit'),
1438
+ mint: getMutation('mint'),
1439
+ withdraw: getMutation('withdraw'),
1440
+ redeem: getMutation('redeem'),
1441
+ };
1442
+ export function toSdk(publicClient, walletClient) {
1443
+ return {
1444
+ deployAddress,
1445
+ abi,
1446
+ // Queries
1447
+ name: (...args) => singleQuery(publicClient, call.name(...args)),
1448
+ symbol: (...args) => singleQuery(publicClient, call.symbol(...args)),
1449
+ decimals: (...args) => singleQuery(publicClient, call.decimals(...args)),
1450
+ DOMAIN_SEPARATOR: (...args) => singleQuery(publicClient, call.DOMAIN_SEPARATOR(...args)),
1451
+ hasPendingHqChange: (...args) => singleQuery(publicClient, call.hasPendingHqChange(...args)),
1452
+ isValidNewRipeHq: (...args) => singleQuery(publicClient, call.isValidNewRipeHq(...args)),
1453
+ isValidHqChangeTimeLock: (...args) => singleQuery(publicClient, call.isValidHqChangeTimeLock(...args)),
1454
+ minHqTimeLock: (...args) => singleQuery(publicClient, call.minHqTimeLock(...args)),
1455
+ maxHqTimeLock: (...args) => singleQuery(publicClient, call.maxHqTimeLock(...args)),
1456
+ ripeHq: (...args) => singleQuery(publicClient, call.ripeHq(...args)),
1457
+ blacklisted: (...args) => singleQuery(publicClient, call.blacklisted(...args)),
1458
+ isPaused: (...args) => singleQuery(publicClient, call.isPaused(...args)),
1459
+ pendingHq: (...args) => singleQuery(publicClient, call.pendingHq(...args)),
1460
+ hqChangeTimeLock: (...args) => singleQuery(publicClient, call.hqChangeTimeLock(...args)),
1461
+ balanceOf: (...args) => singleQuery(publicClient, call.balanceOf(...args)),
1462
+ allowance: (...args) => singleQuery(publicClient, call.allowance(...args)),
1463
+ totalSupply: (...args) => singleQuery(publicClient, call.totalSupply(...args)),
1464
+ TOKEN_NAME: (...args) => singleQuery(publicClient, call.TOKEN_NAME(...args)),
1465
+ TOKEN_SYMBOL: (...args) => singleQuery(publicClient, call.TOKEN_SYMBOL(...args)),
1466
+ TOKEN_DECIMALS: (...args) => singleQuery(publicClient, call.TOKEN_DECIMALS(...args)),
1467
+ VERSION: (...args) => singleQuery(publicClient, call.VERSION(...args)),
1468
+ nonces: (...args) => singleQuery(publicClient, call.nonces(...args)),
1469
+ asset: (...args) => singleQuery(publicClient, call.asset(...args)),
1470
+ totalAssets: (...args) => singleQuery(publicClient, call.totalAssets(...args)),
1471
+ maxDeposit: (...args) => singleQuery(publicClient, call.maxDeposit(...args)),
1472
+ previewDeposit: (...args) => singleQuery(publicClient, call.previewDeposit(...args)),
1473
+ maxMint: (...args) => singleQuery(publicClient, call.maxMint(...args)),
1474
+ previewMint: (...args) => singleQuery(publicClient, call.previewMint(...args)),
1475
+ maxWithdraw: (...args) => singleQuery(publicClient, call.maxWithdraw(...args)),
1476
+ previewWithdraw: (...args) => singleQuery(publicClient, call.previewWithdraw(...args)),
1477
+ maxRedeem: (...args) => singleQuery(publicClient, call.maxRedeem(...args)),
1478
+ previewRedeem: (...args) => singleQuery(publicClient, call.previewRedeem(...args)),
1479
+ convertToShares: (...args) => singleQuery(publicClient, call.convertToShares(...args)),
1480
+ convertToAssets: (...args) => singleQuery(publicClient, call.convertToAssets(...args)),
1481
+ getLastUnderlying: (...args) => singleQuery(publicClient, call.getLastUnderlying(...args)),
1482
+ pricePerShare: (...args) => singleQuery(publicClient, call.pricePerShare(...args)),
1483
+ lastPricePerShare: (...args) => singleQuery(publicClient, call.lastPricePerShare(...args)),
1484
+ // Mutations
1485
+ transfer: (...args) => mutate(walletClient, mutation.transfer)(...args),
1486
+ transferFrom: (...args) => mutate(walletClient, mutation.transferFrom)(...args),
1487
+ approve: (...args) => mutate(walletClient, mutation.approve)(...args),
1488
+ increaseAllowance: (...args) => mutate(walletClient, mutation.increaseAllowance)(...args),
1489
+ decreaseAllowance: (...args) => mutate(walletClient, mutation.decreaseAllowance)(...args),
1490
+ burn: (...args) => mutate(walletClient, mutation.burn)(...args),
1491
+ permit: (...args) => mutate(walletClient, mutation.permit)(...args),
1492
+ setBlacklist: (...args) => mutate(walletClient, mutation.setBlacklist)(...args),
1493
+ burnBlacklistTokens: (...args) => mutate(walletClient, mutation.burnBlacklistTokens)(...args),
1494
+ initiateHqChange: (...args) => mutate(walletClient, mutation.initiateHqChange)(...args),
1495
+ confirmHqChange: (...args) => mutate(walletClient, mutation.confirmHqChange)(...args),
1496
+ cancelHqChange: (...args) => mutate(walletClient, mutation.cancelHqChange)(...args),
1497
+ setHqChangeTimeLock: (...args) => mutate(walletClient, mutation.setHqChangeTimeLock)(...args),
1498
+ pause: (...args) => mutate(walletClient, mutation.pause)(...args),
1499
+ finishTokenSetup: (...args) => mutate(walletClient, mutation.finishTokenSetup)(...args),
1500
+ deposit: (...args) => mutate(walletClient, mutation.deposit)(...args),
1501
+ mint: (...args) => mutate(walletClient, mutation.mint)(...args),
1502
+ withdraw: (...args) => mutate(walletClient, mutation.withdraw)(...args),
1503
+ redeem: (...args) => mutate(walletClient, mutation.redeem)(...args),
1504
+ };
1505
+ }