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