@underscore-finance/sdk 1.0.12 → 1.1.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 (307) hide show
  1. package/dist/contracts/AaveV3.d.ts +603 -279
  2. package/dist/contracts/AaveV3.d.ts.map +1 -1
  3. package/dist/contracts/AaveV3.js +718 -331
  4. package/dist/contracts/AeroClassic.d.ts +4 -17
  5. package/dist/contracts/AeroClassic.d.ts.map +1 -1
  6. package/dist/contracts/AeroClassic.js +5 -24
  7. package/dist/contracts/AeroSlipstream.d.ts +4 -17
  8. package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
  9. package/dist/contracts/AeroSlipstream.js +5 -24
  10. package/dist/contracts/Appraiser.d.ts +4 -0
  11. package/dist/contracts/Appraiser.d.ts.map +1 -1
  12. package/dist/contracts/Appraiser.js +5 -1
  13. package/dist/contracts/CompoundV3.d.ts +556 -246
  14. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  15. package/dist/contracts/CompoundV3.js +695 -327
  16. package/dist/contracts/Curve.d.ts +4 -17
  17. package/dist/contracts/Curve.d.ts.map +1 -1
  18. package/dist/contracts/Curve.js +5 -24
  19. package/dist/contracts/Euler.d.ts +581 -253
  20. package/dist/contracts/Euler.d.ts.map +1 -1
  21. package/dist/contracts/Euler.js +714 -324
  22. package/dist/contracts/Fluid.d.ts +644 -302
  23. package/dist/contracts/Fluid.d.ts.map +1 -1
  24. package/dist/contracts/Fluid.js +743 -334
  25. package/dist/contracts/{Agent_v1.d.ts → FortyAcres.d.ts} +1516 -1699
  26. package/dist/contracts/FortyAcres.d.ts.map +1 -0
  27. package/dist/contracts/{AgentTemplate.js → FortyAcres.js} +1681 -1946
  28. package/dist/contracts/LegoBook.d.ts +7 -0
  29. package/dist/contracts/LegoBook.d.ts.map +1 -1
  30. package/dist/contracts/LegoBook.js +9 -1
  31. package/dist/contracts/LegoTools.d.ts +4 -0
  32. package/dist/contracts/LegoTools.d.ts.map +1 -1
  33. package/dist/contracts/LegoTools.js +5 -1
  34. package/dist/contracts/Moonwell.d.ts +582 -254
  35. package/dist/contracts/Moonwell.d.ts.map +1 -1
  36. package/dist/contracts/Moonwell.js +705 -315
  37. package/dist/contracts/Morpho.d.ts +580 -252
  38. package/dist/contracts/Morpho.d.ts.map +1 -1
  39. package/dist/contracts/Morpho.js +723 -333
  40. package/dist/contracts/RipeLego.d.ts +719 -363
  41. package/dist/contracts/RipeLego.d.ts.map +1 -1
  42. package/dist/contracts/RipeLego.js +839 -413
  43. package/dist/contracts/SignatureHelperV1.d.ts +229 -229
  44. package/dist/contracts/SignatureHelperV1.js +333 -333
  45. package/dist/contracts/SwitchboardCharlie.d.ts +1470 -0
  46. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -0
  47. package/dist/contracts/{v0_3_OracleRegistry.js → SwitchboardCharlie.js} +954 -691
  48. package/dist/contracts/{v0_1_Agent.d.ts → UnderscoreLego.d.ts} +1469 -1663
  49. package/dist/contracts/UnderscoreLego.d.ts.map +1 -0
  50. package/dist/contracts/{Agent_v1.js → UnderscoreLego.js} +1601 -1882
  51. package/dist/contracts/UndyBtc.d.ts +1487 -0
  52. package/dist/contracts/UndyBtc.d.ts.map +1 -0
  53. package/dist/contracts/{LegoUniswapV3.js → UndyBtc.js} +991 -754
  54. package/dist/contracts/UndyEth.d.ts +1487 -0
  55. package/dist/contracts/UndyEth.d.ts.map +1 -0
  56. package/dist/contracts/{v0_3_LegoUniswapV3.js → UndyEth.js} +991 -754
  57. package/dist/contracts/UndyRewardsLego.d.ts +3 -0
  58. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  59. package/dist/contracts/UndyRewardsLego.js +5 -1
  60. package/dist/contracts/UndyUsd.d.ts +1487 -0
  61. package/dist/contracts/UndyUsd.d.ts.map +1 -0
  62. package/dist/contracts/{LegoAeroSlipstream.js → UndyUsd.js} +1009 -725
  63. package/dist/contracts/UniswapV2.d.ts +4 -17
  64. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  65. package/dist/contracts/UniswapV2.js +5 -24
  66. package/dist/contracts/UniswapV3.d.ts +4 -17
  67. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  68. package/dist/contracts/UniswapV3.js +5 -24
  69. package/dist/contracts/VaultRegistry.d.ts +2265 -0
  70. package/dist/contracts/VaultRegistry.d.ts.map +1 -0
  71. package/dist/contracts/VaultRegistry.js +2848 -0
  72. package/dist/contracts/index.d.ts +7 -0
  73. package/dist/contracts/index.d.ts.map +1 -1
  74. package/dist/contracts/index.js +7 -0
  75. package/dist/contracts/sdk.d.ts +14 -0
  76. package/dist/contracts/sdk.d.ts.map +1 -1
  77. package/dist/contracts/sdk.js +14 -0
  78. package/package.json +1 -1
  79. package/dist/contracts/AddyRegistry.d.ts +0 -1109
  80. package/dist/contracts/AddyRegistry.d.ts.map +0 -1
  81. package/dist/contracts/AddyRegistry.js +0 -1392
  82. package/dist/contracts/AddyRegistry_v1.d.ts +0 -473
  83. package/dist/contracts/AddyRegistry_v1.d.ts.map +0 -1
  84. package/dist/contracts/AddyRegistry_v1.js +0 -594
  85. package/dist/contracts/AddyRegistry_v2.d.ts +0 -1050
  86. package/dist/contracts/AddyRegistry_v2.d.ts.map +0 -1
  87. package/dist/contracts/AddyRegistry_v2.js +0 -1313
  88. package/dist/contracts/AgentFactory.d.ts +0 -1665
  89. package/dist/contracts/AgentFactory.d.ts.map +0 -1
  90. package/dist/contracts/AgentFactory.js +0 -2078
  91. package/dist/contracts/AgentFactory_v1.d.ts +0 -1054
  92. package/dist/contracts/AgentFactory_v1.d.ts.map +0 -1
  93. package/dist/contracts/AgentFactory_v1.js +0 -1336
  94. package/dist/contracts/AgentFactory_v2.d.ts +0 -1275
  95. package/dist/contracts/AgentFactory_v2.d.ts.map +0 -1
  96. package/dist/contracts/AgentFactory_v2.js +0 -1609
  97. package/dist/contracts/AgentTemplate.d.ts +0 -2629
  98. package/dist/contracts/AgentTemplate.d.ts.map +0 -1
  99. package/dist/contracts/Agent_v1.d.ts.map +0 -1
  100. package/dist/contracts/Agent_v2.d.ts +0 -2709
  101. package/dist/contracts/Agent_v2.d.ts.map +0 -1
  102. package/dist/contracts/Agent_v2.js +0 -3458
  103. package/dist/contracts/ChainlinkFeeds.d.ts +0 -706
  104. package/dist/contracts/ChainlinkFeeds.d.ts.map +0 -1
  105. package/dist/contracts/ChainlinkFeeds.js +0 -900
  106. package/dist/contracts/LegoAaveV3.d.ts +0 -1033
  107. package/dist/contracts/LegoAaveV3.d.ts.map +0 -1
  108. package/dist/contracts/LegoAaveV3.js +0 -1330
  109. package/dist/contracts/LegoAeroClassic.d.ts +0 -1204
  110. package/dist/contracts/LegoAeroClassic.d.ts.map +0 -1
  111. package/dist/contracts/LegoAeroClassic.js +0 -1546
  112. package/dist/contracts/LegoAeroSlipstream.d.ts +0 -1300
  113. package/dist/contracts/LegoAeroSlipstream.d.ts.map +0 -1
  114. package/dist/contracts/LegoCommon.d.ts +0 -164
  115. package/dist/contracts/LegoCommon.d.ts.map +0 -1
  116. package/dist/contracts/LegoCommon.js +0 -202
  117. package/dist/contracts/LegoCompoundV3.d.ts +0 -1060
  118. package/dist/contracts/LegoCompoundV3.d.ts.map +0 -1
  119. package/dist/contracts/LegoCompoundV3.js +0 -1365
  120. package/dist/contracts/LegoCredit.d.ts +0 -140
  121. package/dist/contracts/LegoCredit.d.ts.map +0 -1
  122. package/dist/contracts/LegoCredit.js +0 -179
  123. package/dist/contracts/LegoCurve.d.ts +0 -1189
  124. package/dist/contracts/LegoCurve.d.ts.map +0 -1
  125. package/dist/contracts/LegoCurve.js +0 -1519
  126. package/dist/contracts/LegoDex.d.ts +0 -587
  127. package/dist/contracts/LegoDex.d.ts.map +0 -1
  128. package/dist/contracts/LegoDex.js +0 -774
  129. package/dist/contracts/LegoEuler.d.ts +0 -1074
  130. package/dist/contracts/LegoEuler.d.ts.map +0 -1
  131. package/dist/contracts/LegoEuler.js +0 -1383
  132. package/dist/contracts/LegoFluid.d.ts +0 -1025
  133. package/dist/contracts/LegoFluid.d.ts.map +0 -1
  134. package/dist/contracts/LegoFluid.js +0 -1320
  135. package/dist/contracts/LegoHelper.d.ts +0 -1563
  136. package/dist/contracts/LegoHelper.d.ts.map +0 -1
  137. package/dist/contracts/LegoHelper.js +0 -1947
  138. package/dist/contracts/LegoMoonwell.d.ts +0 -1042
  139. package/dist/contracts/LegoMoonwell.d.ts.map +0 -1
  140. package/dist/contracts/LegoMoonwell.js +0 -1342
  141. package/dist/contracts/LegoMorpho.d.ts +0 -1074
  142. package/dist/contracts/LegoMorpho.d.ts.map +0 -1
  143. package/dist/contracts/LegoMorpho.js +0 -1383
  144. package/dist/contracts/LegoRegistry.d.ts +0 -1079
  145. package/dist/contracts/LegoRegistry.d.ts.map +0 -1
  146. package/dist/contracts/LegoRegistry.js +0 -1368
  147. package/dist/contracts/LegoSky.d.ts +0 -923
  148. package/dist/contracts/LegoSky.d.ts.map +0 -1
  149. package/dist/contracts/LegoSky.js +0 -1180
  150. package/dist/contracts/LegoUniswapV0_2.d.ts +0 -1204
  151. package/dist/contracts/LegoUniswapV0_2.d.ts.map +0 -1
  152. package/dist/contracts/LegoUniswapV0_2.js +0 -1546
  153. package/dist/contracts/LegoUniswapV2.d.ts +0 -1204
  154. package/dist/contracts/LegoUniswapV2.d.ts.map +0 -1
  155. package/dist/contracts/LegoUniswapV2.js +0 -1546
  156. package/dist/contracts/LegoUniswapV3.d.ts +0 -1338
  157. package/dist/contracts/LegoUniswapV3.d.ts.map +0 -1
  158. package/dist/contracts/LegoYield.d.ts +0 -390
  159. package/dist/contracts/LegoYield.d.ts.map +0 -1
  160. package/dist/contracts/LegoYield.js +0 -511
  161. package/dist/contracts/OracleParser.d.ts +0 -207
  162. package/dist/contracts/OracleParser.d.ts.map +0 -1
  163. package/dist/contracts/OracleParser.js +0 -264
  164. package/dist/contracts/OracleRegistry.d.ts +0 -1221
  165. package/dist/contracts/OracleRegistry.d.ts.map +0 -1
  166. package/dist/contracts/OracleRegistry.js +0 -1562
  167. package/dist/contracts/PriceSheets.d.ts +0 -1127
  168. package/dist/contracts/PriceSheets.d.ts.map +0 -1
  169. package/dist/contracts/PriceSheets.js +0 -1383
  170. package/dist/contracts/PythFeeds.d.ts +0 -640
  171. package/dist/contracts/PythFeeds.d.ts.map +0 -1
  172. package/dist/contracts/PythFeeds.js +0 -813
  173. package/dist/contracts/StorkFeeds.d.ts +0 -640
  174. package/dist/contracts/StorkFeeds.d.ts.map +0 -1
  175. package/dist/contracts/StorkFeeds.js +0 -813
  176. package/dist/contracts/UserWalletConfig_v1.d.ts +0 -1400
  177. package/dist/contracts/UserWalletConfig_v1.d.ts.map +0 -1
  178. package/dist/contracts/UserWalletConfig_v1.js +0 -1676
  179. package/dist/contracts/UserWalletConfig_v2.d.ts +0 -1468
  180. package/dist/contracts/UserWalletConfig_v2.d.ts.map +0 -1
  181. package/dist/contracts/UserWalletConfig_v2.js +0 -1764
  182. package/dist/contracts/UserWallet_v1.d.ts +0 -1980
  183. package/dist/contracts/UserWallet_v1.d.ts.map +0 -1
  184. package/dist/contracts/UserWallet_v1.js +0 -2581
  185. package/dist/contracts/UserWallet_v2.d.ts +0 -1958
  186. package/dist/contracts/UserWallet_v2.d.ts.map +0 -1
  187. package/dist/contracts/UserWallet_v2.js +0 -2553
  188. package/dist/contracts/WalletConfig.d.ts +0 -1398
  189. package/dist/contracts/WalletConfig.d.ts.map +0 -1
  190. package/dist/contracts/WalletConfig.js +0 -1674
  191. package/dist/contracts/WalletFunds.d.ts +0 -1978
  192. package/dist/contracts/WalletFunds.d.ts.map +0 -1
  193. package/dist/contracts/WalletFunds.js +0 -2579
  194. package/dist/contracts/v0_1_AddyRegistry.d.ts +0 -473
  195. package/dist/contracts/v0_1_AddyRegistry.d.ts.map +0 -1
  196. package/dist/contracts/v0_1_AddyRegistry.js +0 -594
  197. package/dist/contracts/v0_1_Agent.d.ts.map +0 -1
  198. package/dist/contracts/v0_1_Agent.js +0 -3372
  199. package/dist/contracts/v0_1_AgentFactory.d.ts +0 -1054
  200. package/dist/contracts/v0_1_AgentFactory.d.ts.map +0 -1
  201. package/dist/contracts/v0_1_AgentFactory.js +0 -1336
  202. package/dist/contracts/v0_1_UserWallet.d.ts +0 -1980
  203. package/dist/contracts/v0_1_UserWallet.d.ts.map +0 -1
  204. package/dist/contracts/v0_1_UserWallet.js +0 -2581
  205. package/dist/contracts/v0_1_UserWalletConfig.d.ts +0 -1400
  206. package/dist/contracts/v0_1_UserWalletConfig.d.ts.map +0 -1
  207. package/dist/contracts/v0_1_UserWalletConfig.js +0 -1676
  208. package/dist/contracts/v0_2_AddyRegistry.d.ts +0 -1050
  209. package/dist/contracts/v0_2_AddyRegistry.d.ts.map +0 -1
  210. package/dist/contracts/v0_2_AddyRegistry.js +0 -1313
  211. package/dist/contracts/v0_2_Agent.d.ts +0 -2709
  212. package/dist/contracts/v0_2_Agent.d.ts.map +0 -1
  213. package/dist/contracts/v0_2_Agent.js +0 -3458
  214. package/dist/contracts/v0_2_AgentFactory.d.ts +0 -1275
  215. package/dist/contracts/v0_2_AgentFactory.d.ts.map +0 -1
  216. package/dist/contracts/v0_2_AgentFactory.js +0 -1609
  217. package/dist/contracts/v0_2_UserWallet.d.ts +0 -1958
  218. package/dist/contracts/v0_2_UserWallet.d.ts.map +0 -1
  219. package/dist/contracts/v0_2_UserWallet.js +0 -2553
  220. package/dist/contracts/v0_2_UserWalletConfig.d.ts +0 -1468
  221. package/dist/contracts/v0_2_UserWalletConfig.d.ts.map +0 -1
  222. package/dist/contracts/v0_2_UserWalletConfig.js +0 -1764
  223. package/dist/contracts/v0_3_AddyRegistry.d.ts +0 -1109
  224. package/dist/contracts/v0_3_AddyRegistry.d.ts.map +0 -1
  225. package/dist/contracts/v0_3_AddyRegistry.js +0 -1392
  226. package/dist/contracts/v0_3_Agent.d.ts +0 -2709
  227. package/dist/contracts/v0_3_Agent.d.ts.map +0 -1
  228. package/dist/contracts/v0_3_Agent.js +0 -3458
  229. package/dist/contracts/v0_3_AgentFactory.d.ts +0 -1665
  230. package/dist/contracts/v0_3_AgentFactory.d.ts.map +0 -1
  231. package/dist/contracts/v0_3_AgentFactory.js +0 -2078
  232. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts +0 -706
  233. package/dist/contracts/v0_3_ChainlinkFeeds.d.ts.map +0 -1
  234. package/dist/contracts/v0_3_ChainlinkFeeds.js +0 -900
  235. package/dist/contracts/v0_3_LegoAaveV3.d.ts +0 -1033
  236. package/dist/contracts/v0_3_LegoAaveV3.d.ts.map +0 -1
  237. package/dist/contracts/v0_3_LegoAaveV3.js +0 -1330
  238. package/dist/contracts/v0_3_LegoAeroClassic.d.ts +0 -1204
  239. package/dist/contracts/v0_3_LegoAeroClassic.d.ts.map +0 -1
  240. package/dist/contracts/v0_3_LegoAeroClassic.js +0 -1546
  241. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts +0 -1300
  242. package/dist/contracts/v0_3_LegoAeroSlipstream.d.ts.map +0 -1
  243. package/dist/contracts/v0_3_LegoAeroSlipstream.js +0 -1671
  244. package/dist/contracts/v0_3_LegoCommon.d.ts +0 -164
  245. package/dist/contracts/v0_3_LegoCommon.d.ts.map +0 -1
  246. package/dist/contracts/v0_3_LegoCommon.js +0 -202
  247. package/dist/contracts/v0_3_LegoCompoundV3.d.ts +0 -1060
  248. package/dist/contracts/v0_3_LegoCompoundV3.d.ts.map +0 -1
  249. package/dist/contracts/v0_3_LegoCompoundV3.js +0 -1365
  250. package/dist/contracts/v0_3_LegoCredit.d.ts +0 -140
  251. package/dist/contracts/v0_3_LegoCredit.d.ts.map +0 -1
  252. package/dist/contracts/v0_3_LegoCredit.js +0 -179
  253. package/dist/contracts/v0_3_LegoCurve.d.ts +0 -1189
  254. package/dist/contracts/v0_3_LegoCurve.d.ts.map +0 -1
  255. package/dist/contracts/v0_3_LegoCurve.js +0 -1519
  256. package/dist/contracts/v0_3_LegoDex.d.ts +0 -587
  257. package/dist/contracts/v0_3_LegoDex.d.ts.map +0 -1
  258. package/dist/contracts/v0_3_LegoDex.js +0 -774
  259. package/dist/contracts/v0_3_LegoEuler.d.ts +0 -1074
  260. package/dist/contracts/v0_3_LegoEuler.d.ts.map +0 -1
  261. package/dist/contracts/v0_3_LegoEuler.js +0 -1383
  262. package/dist/contracts/v0_3_LegoFluid.d.ts +0 -1025
  263. package/dist/contracts/v0_3_LegoFluid.d.ts.map +0 -1
  264. package/dist/contracts/v0_3_LegoFluid.js +0 -1320
  265. package/dist/contracts/v0_3_LegoHelper.d.ts +0 -1563
  266. package/dist/contracts/v0_3_LegoHelper.d.ts.map +0 -1
  267. package/dist/contracts/v0_3_LegoHelper.js +0 -1947
  268. package/dist/contracts/v0_3_LegoMoonwell.d.ts +0 -1042
  269. package/dist/contracts/v0_3_LegoMoonwell.d.ts.map +0 -1
  270. package/dist/contracts/v0_3_LegoMoonwell.js +0 -1342
  271. package/dist/contracts/v0_3_LegoMorpho.d.ts +0 -1074
  272. package/dist/contracts/v0_3_LegoMorpho.d.ts.map +0 -1
  273. package/dist/contracts/v0_3_LegoMorpho.js +0 -1383
  274. package/dist/contracts/v0_3_LegoRegistry.d.ts +0 -1079
  275. package/dist/contracts/v0_3_LegoRegistry.d.ts.map +0 -1
  276. package/dist/contracts/v0_3_LegoRegistry.js +0 -1368
  277. package/dist/contracts/v0_3_LegoSky.d.ts +0 -923
  278. package/dist/contracts/v0_3_LegoSky.d.ts.map +0 -1
  279. package/dist/contracts/v0_3_LegoSky.js +0 -1180
  280. package/dist/contracts/v0_3_LegoUniswapV3.d.ts +0 -1338
  281. package/dist/contracts/v0_3_LegoUniswapV3.d.ts.map +0 -1
  282. package/dist/contracts/v0_3_LegoYield.d.ts +0 -390
  283. package/dist/contracts/v0_3_LegoYield.d.ts.map +0 -1
  284. package/dist/contracts/v0_3_LegoYield.js +0 -511
  285. package/dist/contracts/v0_3_OracleParser.d.ts +0 -207
  286. package/dist/contracts/v0_3_OracleParser.d.ts.map +0 -1
  287. package/dist/contracts/v0_3_OracleParser.js +0 -264
  288. package/dist/contracts/v0_3_OracleRegistry.d.ts +0 -1221
  289. package/dist/contracts/v0_3_OracleRegistry.d.ts.map +0 -1
  290. package/dist/contracts/v0_3_PriceSheets.d.ts +0 -1127
  291. package/dist/contracts/v0_3_PriceSheets.d.ts.map +0 -1
  292. package/dist/contracts/v0_3_PriceSheets.js +0 -1383
  293. package/dist/contracts/v0_3_PythFeeds.d.ts +0 -640
  294. package/dist/contracts/v0_3_PythFeeds.d.ts.map +0 -1
  295. package/dist/contracts/v0_3_PythFeeds.js +0 -813
  296. package/dist/contracts/v0_3_StorkFeeds.d.ts +0 -640
  297. package/dist/contracts/v0_3_StorkFeeds.d.ts.map +0 -1
  298. package/dist/contracts/v0_3_StorkFeeds.js +0 -813
  299. package/dist/contracts/v0_3_UserWallet.d.ts +0 -1975
  300. package/dist/contracts/v0_3_UserWallet.d.ts.map +0 -1
  301. package/dist/contracts/v0_3_UserWallet.js +0 -2577
  302. package/dist/contracts/v0_3_UserWalletConfig.d.ts +0 -1852
  303. package/dist/contracts/v0_3_UserWalletConfig.d.ts.map +0 -1
  304. package/dist/contracts/v0_3_UserWalletConfig.js +0 -2263
  305. package/dist/getLegacyContracts.d.ts +0 -69
  306. package/dist/getLegacyContracts.d.ts.map +0 -1
  307. package/dist/getLegacyContracts.js +0 -55
@@ -1,1609 +0,0 @@
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
- }