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