@underscore-finance/sdk 0.3.5 → 1.0.1

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