@underscore-finance/sdk 0.3.5 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +33 -36
  113. package/dist/contracts/index.d.ts.map +1 -1
  114. package/dist/contracts/index.js +33 -36
  115. package/dist/contracts/sdk.d.ts +66 -72
  116. package/dist/contracts/sdk.d.ts.map +1 -1
  117. package/dist/contracts/sdk.js +66 -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 +75 -0
  233. package/dist/getContracts.d.ts.map +1 -0
  234. package/dist/getContracts.js +62 -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 +33 -0
  239. package/dist/getSwapInstructions.d.ts.map +1 -0
  240. package/dist/getSwapInstructions.js +21 -0
  241. package/dist/index.d.ts +3 -475
  242. package/dist/index.d.ts.map +1 -1
  243. package/dist/index.js +8 -182
  244. package/package.json +2 -2
@@ -0,0 +1,2263 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* @ts-nocheck */
5
+ import { singleQuery, mutate } from '@dappql/async';
6
+ export const abi = [
7
+ {
8
+ anonymous: false,
9
+ inputs: [
10
+ {
11
+ indexed: true,
12
+ name: 'agent',
13
+ type: 'address',
14
+ },
15
+ {
16
+ indexed: false,
17
+ name: 'allowedAssets',
18
+ type: 'uint256',
19
+ },
20
+ {
21
+ indexed: false,
22
+ name: 'allowedLegoIds',
23
+ type: 'uint256',
24
+ },
25
+ ],
26
+ name: 'AgentAdded',
27
+ type: 'event',
28
+ },
29
+ {
30
+ anonymous: false,
31
+ inputs: [
32
+ {
33
+ indexed: true,
34
+ name: 'agent',
35
+ type: 'address',
36
+ },
37
+ {
38
+ indexed: false,
39
+ name: 'allowedAssets',
40
+ type: 'uint256',
41
+ },
42
+ {
43
+ indexed: false,
44
+ name: 'allowedLegoIds',
45
+ type: 'uint256',
46
+ },
47
+ ],
48
+ name: 'AgentModified',
49
+ type: 'event',
50
+ },
51
+ {
52
+ anonymous: false,
53
+ inputs: [
54
+ {
55
+ indexed: true,
56
+ name: 'agent',
57
+ type: 'address',
58
+ },
59
+ {
60
+ indexed: false,
61
+ name: 'prevAllowedAssets',
62
+ type: 'uint256',
63
+ },
64
+ {
65
+ indexed: false,
66
+ name: 'prevAllowedLegoIds',
67
+ type: 'uint256',
68
+ },
69
+ ],
70
+ name: 'AgentDisabled',
71
+ type: 'event',
72
+ },
73
+ {
74
+ anonymous: false,
75
+ inputs: [
76
+ {
77
+ indexed: true,
78
+ name: 'agent',
79
+ type: 'address',
80
+ },
81
+ {
82
+ indexed: true,
83
+ name: 'legoId',
84
+ type: 'uint256',
85
+ },
86
+ ],
87
+ name: 'LegoIdAddedToAgent',
88
+ type: 'event',
89
+ },
90
+ {
91
+ anonymous: false,
92
+ inputs: [
93
+ {
94
+ indexed: true,
95
+ name: 'agent',
96
+ type: 'address',
97
+ },
98
+ {
99
+ indexed: true,
100
+ name: 'asset',
101
+ type: 'address',
102
+ },
103
+ ],
104
+ name: 'AssetAddedToAgent',
105
+ type: 'event',
106
+ },
107
+ {
108
+ anonymous: false,
109
+ inputs: [
110
+ {
111
+ indexed: true,
112
+ name: 'agent',
113
+ type: 'address',
114
+ },
115
+ {
116
+ indexed: false,
117
+ name: 'canDeposit',
118
+ type: 'bool',
119
+ },
120
+ {
121
+ indexed: false,
122
+ name: 'canWithdraw',
123
+ type: 'bool',
124
+ },
125
+ {
126
+ indexed: false,
127
+ name: 'canRebalance',
128
+ type: 'bool',
129
+ },
130
+ {
131
+ indexed: false,
132
+ name: 'canTransfer',
133
+ type: 'bool',
134
+ },
135
+ {
136
+ indexed: false,
137
+ name: 'canSwap',
138
+ type: 'bool',
139
+ },
140
+ {
141
+ indexed: false,
142
+ name: 'canConvert',
143
+ type: 'bool',
144
+ },
145
+ {
146
+ indexed: false,
147
+ name: 'canAddLiq',
148
+ type: 'bool',
149
+ },
150
+ {
151
+ indexed: false,
152
+ name: 'canRemoveLiq',
153
+ type: 'bool',
154
+ },
155
+ {
156
+ indexed: false,
157
+ name: 'canClaimRewards',
158
+ type: 'bool',
159
+ },
160
+ {
161
+ indexed: false,
162
+ name: 'canBorrow',
163
+ type: 'bool',
164
+ },
165
+ {
166
+ indexed: false,
167
+ name: 'canRepay',
168
+ type: 'bool',
169
+ },
170
+ ],
171
+ name: 'AllowedActionsModified',
172
+ type: 'event',
173
+ },
174
+ {
175
+ anonymous: false,
176
+ inputs: [
177
+ {
178
+ indexed: false,
179
+ name: 'canTransfer',
180
+ type: 'bool',
181
+ },
182
+ ],
183
+ name: 'CanTransferToAltOwnerWalletsSet',
184
+ type: 'event',
185
+ },
186
+ {
187
+ anonymous: false,
188
+ inputs: [
189
+ {
190
+ indexed: true,
191
+ name: 'addr',
192
+ type: 'address',
193
+ },
194
+ {
195
+ indexed: false,
196
+ name: 'confirmBlock',
197
+ type: 'uint256',
198
+ },
199
+ ],
200
+ name: 'WhitelistAddrPending',
201
+ type: 'event',
202
+ },
203
+ {
204
+ anonymous: false,
205
+ inputs: [
206
+ {
207
+ indexed: true,
208
+ name: 'addr',
209
+ type: 'address',
210
+ },
211
+ {
212
+ indexed: false,
213
+ name: 'initiatedBlock',
214
+ type: 'uint256',
215
+ },
216
+ {
217
+ indexed: false,
218
+ name: 'confirmBlock',
219
+ type: 'uint256',
220
+ },
221
+ ],
222
+ name: 'WhitelistAddrConfirmed',
223
+ type: 'event',
224
+ },
225
+ {
226
+ anonymous: false,
227
+ inputs: [
228
+ {
229
+ indexed: true,
230
+ name: 'addr',
231
+ type: 'address',
232
+ },
233
+ {
234
+ indexed: false,
235
+ name: 'initiatedBlock',
236
+ type: 'uint256',
237
+ },
238
+ {
239
+ indexed: false,
240
+ name: 'confirmBlock',
241
+ type: 'uint256',
242
+ },
243
+ {
244
+ indexed: true,
245
+ name: 'cancelledBy',
246
+ type: 'address',
247
+ },
248
+ ],
249
+ name: 'WhitelistAddrCancelled',
250
+ type: 'event',
251
+ },
252
+ {
253
+ anonymous: false,
254
+ inputs: [
255
+ {
256
+ indexed: true,
257
+ name: 'addr',
258
+ type: 'address',
259
+ },
260
+ ],
261
+ name: 'WhitelistAddrRemoved',
262
+ type: 'event',
263
+ },
264
+ {
265
+ anonymous: false,
266
+ inputs: [
267
+ {
268
+ indexed: true,
269
+ name: 'addr',
270
+ type: 'address',
271
+ },
272
+ ],
273
+ name: 'WhitelistAddrSetViaMigration',
274
+ type: 'event',
275
+ },
276
+ {
277
+ anonymous: false,
278
+ inputs: [
279
+ {
280
+ indexed: true,
281
+ name: 'asset',
282
+ type: 'address',
283
+ },
284
+ {
285
+ indexed: false,
286
+ name: 'amount',
287
+ type: 'uint256',
288
+ },
289
+ ],
290
+ name: 'ReserveAssetSet',
291
+ type: 'event',
292
+ },
293
+ {
294
+ anonymous: false,
295
+ inputs: [
296
+ {
297
+ indexed: false,
298
+ name: 'canWalletBeAmbassador',
299
+ type: 'bool',
300
+ },
301
+ ],
302
+ name: 'CanWalletBeAmbassadorSet',
303
+ type: 'event',
304
+ },
305
+ {
306
+ anonymous: false,
307
+ inputs: [
308
+ {
309
+ indexed: true,
310
+ name: 'addr',
311
+ type: 'address',
312
+ },
313
+ ],
314
+ name: 'AmbassadorForwarderSet',
315
+ type: 'event',
316
+ },
317
+ {
318
+ anonymous: false,
319
+ inputs: [
320
+ {
321
+ indexed: true,
322
+ name: 'asset',
323
+ type: 'address',
324
+ },
325
+ {
326
+ indexed: true,
327
+ name: 'recipient',
328
+ type: 'address',
329
+ },
330
+ {
331
+ indexed: false,
332
+ name: 'balance',
333
+ type: 'uint256',
334
+ },
335
+ ],
336
+ name: 'FundsRecovered',
337
+ type: 'event',
338
+ },
339
+ {
340
+ anonymous: false,
341
+ inputs: [
342
+ {
343
+ indexed: true,
344
+ name: 'newWallet',
345
+ type: 'address',
346
+ },
347
+ {
348
+ indexed: false,
349
+ name: 'numAssetsToMigrate',
350
+ type: 'uint256',
351
+ },
352
+ {
353
+ indexed: false,
354
+ name: 'numWhitelistToMigrate',
355
+ type: 'uint256',
356
+ },
357
+ ],
358
+ name: 'UserWalletStartMigration',
359
+ type: 'event',
360
+ },
361
+ {
362
+ anonymous: false,
363
+ inputs: [
364
+ {
365
+ indexed: true,
366
+ name: 'oldWallet',
367
+ type: 'address',
368
+ },
369
+ {
370
+ indexed: false,
371
+ name: 'numWhitelistMigrated',
372
+ type: 'uint256',
373
+ },
374
+ {
375
+ indexed: false,
376
+ name: 'numVaultTokensMigrated',
377
+ type: 'uint256',
378
+ },
379
+ {
380
+ indexed: false,
381
+ name: 'numAssetsMigrated',
382
+ type: 'uint256',
383
+ },
384
+ ],
385
+ name: 'UserWalletFinishMigration',
386
+ type: 'event',
387
+ },
388
+ {
389
+ anonymous: false,
390
+ inputs: [
391
+ {
392
+ indexed: true,
393
+ name: 'prevOwner',
394
+ type: 'address',
395
+ },
396
+ {
397
+ indexed: true,
398
+ name: 'newOwner',
399
+ type: 'address',
400
+ },
401
+ {
402
+ indexed: false,
403
+ name: 'confirmBlock',
404
+ type: 'uint256',
405
+ },
406
+ ],
407
+ name: 'OwnershipChangeInitiated',
408
+ type: 'event',
409
+ },
410
+ {
411
+ anonymous: false,
412
+ inputs: [
413
+ {
414
+ indexed: true,
415
+ name: 'prevOwner',
416
+ type: 'address',
417
+ },
418
+ {
419
+ indexed: true,
420
+ name: 'newOwner',
421
+ type: 'address',
422
+ },
423
+ {
424
+ indexed: false,
425
+ name: 'initiatedBlock',
426
+ type: 'uint256',
427
+ },
428
+ {
429
+ indexed: false,
430
+ name: 'confirmBlock',
431
+ type: 'uint256',
432
+ },
433
+ ],
434
+ name: 'OwnershipChangeConfirmed',
435
+ type: 'event',
436
+ },
437
+ {
438
+ anonymous: false,
439
+ inputs: [
440
+ {
441
+ indexed: true,
442
+ name: 'cancelledOwner',
443
+ type: 'address',
444
+ },
445
+ {
446
+ indexed: true,
447
+ name: 'cancelledBy',
448
+ type: 'address',
449
+ },
450
+ {
451
+ indexed: false,
452
+ name: 'initiatedBlock',
453
+ type: 'uint256',
454
+ },
455
+ {
456
+ indexed: false,
457
+ name: 'confirmBlock',
458
+ type: 'uint256',
459
+ },
460
+ ],
461
+ name: 'OwnershipChangeCancelled',
462
+ type: 'event',
463
+ },
464
+ {
465
+ anonymous: false,
466
+ inputs: [
467
+ {
468
+ indexed: false,
469
+ name: 'delayBlocks',
470
+ type: 'uint256',
471
+ },
472
+ ],
473
+ name: 'OwnershipChangeDelaySet',
474
+ type: 'event',
475
+ },
476
+ {
477
+ inputs: [],
478
+ name: 'hasPendingOwnerChange',
479
+ outputs: [
480
+ {
481
+ name: '',
482
+ type: 'bool',
483
+ },
484
+ ],
485
+ stateMutability: 'view',
486
+ type: 'function',
487
+ },
488
+ {
489
+ inputs: [
490
+ {
491
+ name: '_newOwner',
492
+ type: 'address',
493
+ },
494
+ ],
495
+ name: 'changeOwnership',
496
+ outputs: [],
497
+ stateMutability: 'nonpayable',
498
+ type: 'function',
499
+ },
500
+ {
501
+ inputs: [],
502
+ name: 'confirmOwnershipChange',
503
+ outputs: [],
504
+ stateMutability: 'nonpayable',
505
+ type: 'function',
506
+ },
507
+ {
508
+ inputs: [],
509
+ name: 'cancelOwnershipChange',
510
+ outputs: [],
511
+ stateMutability: 'nonpayable',
512
+ type: 'function',
513
+ },
514
+ {
515
+ inputs: [
516
+ {
517
+ name: '_numBlocks',
518
+ type: 'uint256',
519
+ },
520
+ ],
521
+ name: 'setOwnershipChangeDelay',
522
+ outputs: [],
523
+ stateMutability: 'nonpayable',
524
+ type: 'function',
525
+ },
526
+ {
527
+ inputs: [],
528
+ name: 'owner',
529
+ outputs: [
530
+ {
531
+ name: '',
532
+ type: 'address',
533
+ },
534
+ ],
535
+ stateMutability: 'view',
536
+ type: 'function',
537
+ },
538
+ {
539
+ inputs: [],
540
+ name: 'pendingOwner',
541
+ outputs: [
542
+ {
543
+ components: [
544
+ {
545
+ name: 'newOwner',
546
+ type: 'address',
547
+ },
548
+ {
549
+ name: 'initiatedBlock',
550
+ type: 'uint256',
551
+ },
552
+ {
553
+ name: 'confirmBlock',
554
+ type: 'uint256',
555
+ },
556
+ ],
557
+ name: '',
558
+ type: 'tuple',
559
+ },
560
+ ],
561
+ stateMutability: 'view',
562
+ type: 'function',
563
+ },
564
+ {
565
+ inputs: [],
566
+ name: 'ownershipChangeDelay',
567
+ outputs: [
568
+ {
569
+ name: '',
570
+ type: 'uint256',
571
+ },
572
+ ],
573
+ stateMutability: 'view',
574
+ type: 'function',
575
+ },
576
+ {
577
+ inputs: [],
578
+ name: 'MIN_OWNER_CHANGE_DELAY',
579
+ outputs: [
580
+ {
581
+ name: '',
582
+ type: 'uint256',
583
+ },
584
+ ],
585
+ stateMutability: 'view',
586
+ type: 'function',
587
+ },
588
+ {
589
+ inputs: [],
590
+ name: 'MAX_OWNER_CHANGE_DELAY',
591
+ outputs: [
592
+ {
593
+ name: '',
594
+ type: 'uint256',
595
+ },
596
+ ],
597
+ stateMutability: 'view',
598
+ type: 'function',
599
+ },
600
+ {
601
+ inputs: [],
602
+ name: '_ADDY_REGISTRY',
603
+ outputs: [
604
+ {
605
+ name: '',
606
+ type: 'address',
607
+ },
608
+ ],
609
+ stateMutability: 'view',
610
+ type: 'function',
611
+ },
612
+ {
613
+ inputs: [
614
+ {
615
+ name: '_wallet',
616
+ type: 'address',
617
+ },
618
+ ],
619
+ name: 'setWallet',
620
+ outputs: [
621
+ {
622
+ name: '',
623
+ type: 'bool',
624
+ },
625
+ ],
626
+ stateMutability: 'nonpayable',
627
+ type: 'function',
628
+ },
629
+ {
630
+ inputs: [],
631
+ name: 'apiVersion',
632
+ outputs: [
633
+ {
634
+ name: '',
635
+ type: 'string',
636
+ },
637
+ ],
638
+ stateMutability: 'pure',
639
+ type: 'function',
640
+ },
641
+ {
642
+ inputs: [
643
+ {
644
+ name: '_agent',
645
+ type: 'address',
646
+ },
647
+ ],
648
+ name: 'isAgentActive',
649
+ outputs: [
650
+ {
651
+ name: '',
652
+ type: 'bool',
653
+ },
654
+ ],
655
+ stateMutability: 'view',
656
+ type: 'function',
657
+ },
658
+ {
659
+ inputs: [
660
+ {
661
+ name: '_agent',
662
+ type: 'address',
663
+ },
664
+ {
665
+ name: '_action',
666
+ type: 'uint256',
667
+ },
668
+ {
669
+ name: '_assets',
670
+ type: 'address[]',
671
+ },
672
+ {
673
+ name: '_legoIds',
674
+ type: 'uint256[]',
675
+ },
676
+ ],
677
+ name: 'canAgentAccess',
678
+ outputs: [
679
+ {
680
+ name: '',
681
+ type: 'bool',
682
+ },
683
+ ],
684
+ stateMutability: 'view',
685
+ type: 'function',
686
+ },
687
+ {
688
+ inputs: [
689
+ {
690
+ name: '_agent',
691
+ type: 'address',
692
+ },
693
+ ],
694
+ name: 'getAgentSubscriptionStatus',
695
+ outputs: [
696
+ {
697
+ components: [
698
+ {
699
+ name: 'recipient',
700
+ type: 'address',
701
+ },
702
+ {
703
+ name: 'asset',
704
+ type: 'address',
705
+ },
706
+ {
707
+ name: 'amount',
708
+ type: 'uint256',
709
+ },
710
+ {
711
+ name: 'usdValue',
712
+ type: 'uint256',
713
+ },
714
+ {
715
+ name: 'paidThroughBlock',
716
+ type: 'uint256',
717
+ },
718
+ {
719
+ name: 'didChange',
720
+ type: 'bool',
721
+ },
722
+ ],
723
+ name: '',
724
+ type: 'tuple',
725
+ },
726
+ ],
727
+ stateMutability: 'view',
728
+ type: 'function',
729
+ },
730
+ {
731
+ inputs: [],
732
+ name: 'getProtocolSubscriptionStatus',
733
+ outputs: [
734
+ {
735
+ components: [
736
+ {
737
+ name: 'recipient',
738
+ type: 'address',
739
+ },
740
+ {
741
+ name: 'asset',
742
+ type: 'address',
743
+ },
744
+ {
745
+ name: 'amount',
746
+ type: 'uint256',
747
+ },
748
+ {
749
+ name: 'usdValue',
750
+ type: 'uint256',
751
+ },
752
+ {
753
+ name: 'paidThroughBlock',
754
+ type: 'uint256',
755
+ },
756
+ {
757
+ name: 'didChange',
758
+ type: 'bool',
759
+ },
760
+ ],
761
+ name: '',
762
+ type: 'tuple',
763
+ },
764
+ ],
765
+ stateMutability: 'view',
766
+ type: 'function',
767
+ },
768
+ {
769
+ inputs: [
770
+ {
771
+ name: '_agent',
772
+ type: 'address',
773
+ },
774
+ ],
775
+ name: 'canMakeSubscriptionPayments',
776
+ outputs: [
777
+ {
778
+ name: '',
779
+ type: 'bool',
780
+ },
781
+ {
782
+ name: '',
783
+ type: 'bool',
784
+ },
785
+ ],
786
+ stateMutability: 'view',
787
+ type: 'function',
788
+ },
789
+ {
790
+ inputs: [
791
+ {
792
+ name: '_agent',
793
+ type: 'address',
794
+ },
795
+ {
796
+ name: '_action',
797
+ type: 'uint256',
798
+ },
799
+ {
800
+ name: '_assets',
801
+ type: 'address[]',
802
+ },
803
+ {
804
+ name: '_legoIds',
805
+ type: 'uint256[]',
806
+ },
807
+ {
808
+ components: [
809
+ {
810
+ name: 'owner',
811
+ type: 'address',
812
+ },
813
+ {
814
+ name: 'wallet',
815
+ type: 'address',
816
+ },
817
+ {
818
+ name: 'walletConfig',
819
+ type: 'address',
820
+ },
821
+ {
822
+ name: 'addyRegistry',
823
+ type: 'address',
824
+ },
825
+ {
826
+ name: 'agentFactory',
827
+ type: 'address',
828
+ },
829
+ {
830
+ name: 'legoRegistry',
831
+ type: 'address',
832
+ },
833
+ {
834
+ name: 'priceSheets',
835
+ type: 'address',
836
+ },
837
+ {
838
+ name: 'oracleRegistry',
839
+ type: 'address',
840
+ },
841
+ {
842
+ name: 'trialFundsAsset',
843
+ type: 'address',
844
+ },
845
+ {
846
+ name: 'trialFundsInitialAmount',
847
+ type: 'uint256',
848
+ },
849
+ ],
850
+ name: '_cd',
851
+ type: 'tuple',
852
+ },
853
+ ],
854
+ name: 'handleSubscriptionsAndPermissions',
855
+ outputs: [
856
+ {
857
+ components: [
858
+ {
859
+ name: 'recipient',
860
+ type: 'address',
861
+ },
862
+ {
863
+ name: 'asset',
864
+ type: 'address',
865
+ },
866
+ {
867
+ name: 'amount',
868
+ type: 'uint256',
869
+ },
870
+ {
871
+ name: 'usdValue',
872
+ type: 'uint256',
873
+ },
874
+ {
875
+ name: 'paidThroughBlock',
876
+ type: 'uint256',
877
+ },
878
+ {
879
+ name: 'didChange',
880
+ type: 'bool',
881
+ },
882
+ ],
883
+ name: '',
884
+ type: 'tuple',
885
+ },
886
+ {
887
+ components: [
888
+ {
889
+ name: 'recipient',
890
+ type: 'address',
891
+ },
892
+ {
893
+ name: 'asset',
894
+ type: 'address',
895
+ },
896
+ {
897
+ name: 'amount',
898
+ type: 'uint256',
899
+ },
900
+ {
901
+ name: 'usdValue',
902
+ type: 'uint256',
903
+ },
904
+ {
905
+ name: 'paidThroughBlock',
906
+ type: 'uint256',
907
+ },
908
+ {
909
+ name: 'didChange',
910
+ type: 'bool',
911
+ },
912
+ ],
913
+ name: '',
914
+ type: 'tuple',
915
+ },
916
+ ],
917
+ stateMutability: 'nonpayable',
918
+ type: 'function',
919
+ },
920
+ {
921
+ inputs: [
922
+ {
923
+ name: '_asset',
924
+ type: 'address',
925
+ },
926
+ {
927
+ name: '_wantedAmount',
928
+ type: 'uint256',
929
+ },
930
+ {
931
+ name: '_shouldCheckTrialFunds',
932
+ type: 'bool',
933
+ },
934
+ ],
935
+ name: 'getAvailableTxAmount',
936
+ outputs: [
937
+ {
938
+ name: '',
939
+ type: 'uint256',
940
+ },
941
+ ],
942
+ stateMutability: 'view',
943
+ type: 'function',
944
+ },
945
+ {
946
+ inputs: [
947
+ {
948
+ name: '_asset',
949
+ type: 'address',
950
+ },
951
+ {
952
+ name: '_wantedAmount',
953
+ type: 'uint256',
954
+ },
955
+ {
956
+ name: '_shouldCheckTrialFunds',
957
+ type: 'bool',
958
+ },
959
+ {
960
+ components: [
961
+ {
962
+ name: 'owner',
963
+ type: 'address',
964
+ },
965
+ {
966
+ name: 'wallet',
967
+ type: 'address',
968
+ },
969
+ {
970
+ name: 'walletConfig',
971
+ type: 'address',
972
+ },
973
+ {
974
+ name: 'addyRegistry',
975
+ type: 'address',
976
+ },
977
+ {
978
+ name: 'agentFactory',
979
+ type: 'address',
980
+ },
981
+ {
982
+ name: 'legoRegistry',
983
+ type: 'address',
984
+ },
985
+ {
986
+ name: 'priceSheets',
987
+ type: 'address',
988
+ },
989
+ {
990
+ name: 'oracleRegistry',
991
+ type: 'address',
992
+ },
993
+ {
994
+ name: 'trialFundsAsset',
995
+ type: 'address',
996
+ },
997
+ {
998
+ name: 'trialFundsInitialAmount',
999
+ type: 'uint256',
1000
+ },
1001
+ ],
1002
+ name: '_cd',
1003
+ type: 'tuple',
1004
+ },
1005
+ ],
1006
+ name: 'getAvailableTxAmount',
1007
+ outputs: [
1008
+ {
1009
+ name: '',
1010
+ type: 'uint256',
1011
+ },
1012
+ ],
1013
+ stateMutability: 'view',
1014
+ type: 'function',
1015
+ },
1016
+ {
1017
+ inputs: [
1018
+ {
1019
+ name: '_asset',
1020
+ type: 'address',
1021
+ },
1022
+ {
1023
+ name: '_vaultToken',
1024
+ type: 'address',
1025
+ },
1026
+ {
1027
+ name: '_vaultTokenAmountReceived',
1028
+ type: 'uint256',
1029
+ },
1030
+ {
1031
+ name: '_assetAmountDeposited',
1032
+ type: 'uint256',
1033
+ },
1034
+ {
1035
+ name: '_legoRegistry',
1036
+ type: 'address',
1037
+ },
1038
+ ],
1039
+ name: 'updateYieldTrackingOnDeposit',
1040
+ outputs: [],
1041
+ stateMutability: 'nonpayable',
1042
+ type: 'function',
1043
+ },
1044
+ {
1045
+ inputs: [
1046
+ {
1047
+ name: '_vaultToken',
1048
+ type: 'address',
1049
+ },
1050
+ {
1051
+ name: '_vaultTokenAmountBurned',
1052
+ type: 'uint256',
1053
+ },
1054
+ {
1055
+ name: '_asset',
1056
+ type: 'address',
1057
+ },
1058
+ {
1059
+ name: '_assetAmountReceived',
1060
+ type: 'uint256',
1061
+ },
1062
+ {
1063
+ name: '_legoRegistry',
1064
+ type: 'address',
1065
+ },
1066
+ ],
1067
+ name: 'updateYieldTrackingOnWithdrawal',
1068
+ outputs: [
1069
+ {
1070
+ name: '',
1071
+ type: 'uint256',
1072
+ },
1073
+ ],
1074
+ stateMutability: 'nonpayable',
1075
+ type: 'function',
1076
+ },
1077
+ {
1078
+ inputs: [
1079
+ {
1080
+ name: '_tokenIn',
1081
+ type: 'address',
1082
+ },
1083
+ {
1084
+ name: '_tokenOut',
1085
+ type: 'address',
1086
+ },
1087
+ {
1088
+ name: '_tokenOutAmount',
1089
+ type: 'uint256',
1090
+ },
1091
+ {
1092
+ name: '_legoRegistry',
1093
+ type: 'address',
1094
+ },
1095
+ ],
1096
+ name: 'updateYieldTrackingOnSwap',
1097
+ outputs: [],
1098
+ stateMutability: 'nonpayable',
1099
+ type: 'function',
1100
+ },
1101
+ {
1102
+ inputs: [
1103
+ {
1104
+ name: '_asset',
1105
+ type: 'address',
1106
+ },
1107
+ {
1108
+ name: '_amount',
1109
+ type: 'uint256',
1110
+ },
1111
+ {
1112
+ name: '_legoRegistry',
1113
+ type: 'address',
1114
+ },
1115
+ ],
1116
+ name: 'updateYieldTrackingOnEntry',
1117
+ outputs: [],
1118
+ stateMutability: 'nonpayable',
1119
+ type: 'function',
1120
+ },
1121
+ {
1122
+ inputs: [
1123
+ {
1124
+ name: '_asset',
1125
+ type: 'address',
1126
+ },
1127
+ {
1128
+ name: '_legoRegistry',
1129
+ type: 'address',
1130
+ },
1131
+ ],
1132
+ name: 'updateYieldTrackingOnExit',
1133
+ outputs: [],
1134
+ stateMutability: 'nonpayable',
1135
+ type: 'function',
1136
+ },
1137
+ {
1138
+ inputs: [
1139
+ {
1140
+ name: '_newWallet',
1141
+ type: 'address',
1142
+ },
1143
+ ],
1144
+ name: 'startMigrationOut',
1145
+ outputs: [
1146
+ {
1147
+ name: '',
1148
+ type: 'bool',
1149
+ },
1150
+ ],
1151
+ stateMutability: 'nonpayable',
1152
+ type: 'function',
1153
+ },
1154
+ {
1155
+ inputs: [
1156
+ {
1157
+ name: '_newWallet',
1158
+ type: 'address',
1159
+ },
1160
+ {
1161
+ name: '_assetsToMigrate',
1162
+ type: 'address[]',
1163
+ },
1164
+ ],
1165
+ name: 'startMigrationOut',
1166
+ outputs: [
1167
+ {
1168
+ name: '',
1169
+ type: 'bool',
1170
+ },
1171
+ ],
1172
+ stateMutability: 'nonpayable',
1173
+ type: 'function',
1174
+ },
1175
+ {
1176
+ inputs: [
1177
+ {
1178
+ name: '_newWallet',
1179
+ type: 'address',
1180
+ },
1181
+ {
1182
+ name: '_assetsToMigrate',
1183
+ type: 'address[]',
1184
+ },
1185
+ {
1186
+ name: '_whitelistToMigrate',
1187
+ type: 'address[]',
1188
+ },
1189
+ ],
1190
+ name: 'startMigrationOut',
1191
+ outputs: [
1192
+ {
1193
+ name: '',
1194
+ type: 'bool',
1195
+ },
1196
+ ],
1197
+ stateMutability: 'nonpayable',
1198
+ type: 'function',
1199
+ },
1200
+ {
1201
+ inputs: [
1202
+ {
1203
+ name: '_whitelistToMigrate',
1204
+ type: 'address[]',
1205
+ },
1206
+ {
1207
+ name: '_assetsMigrated',
1208
+ type: 'address[]',
1209
+ },
1210
+ {
1211
+ name: '_vaultTokensMigrated',
1212
+ type: 'address[]',
1213
+ },
1214
+ ],
1215
+ name: 'finishMigrationIn',
1216
+ outputs: [
1217
+ {
1218
+ name: '',
1219
+ type: 'bool',
1220
+ },
1221
+ ],
1222
+ stateMutability: 'nonpayable',
1223
+ type: 'function',
1224
+ },
1225
+ {
1226
+ inputs: [
1227
+ {
1228
+ name: '_agent',
1229
+ type: 'address',
1230
+ },
1231
+ ],
1232
+ name: 'addOrModifyAgent',
1233
+ outputs: [
1234
+ {
1235
+ name: '',
1236
+ type: 'bool',
1237
+ },
1238
+ ],
1239
+ stateMutability: 'nonpayable',
1240
+ type: 'function',
1241
+ },
1242
+ {
1243
+ inputs: [
1244
+ {
1245
+ name: '_agent',
1246
+ type: 'address',
1247
+ },
1248
+ {
1249
+ name: '_allowedAssets',
1250
+ type: 'address[]',
1251
+ },
1252
+ ],
1253
+ name: 'addOrModifyAgent',
1254
+ outputs: [
1255
+ {
1256
+ name: '',
1257
+ type: 'bool',
1258
+ },
1259
+ ],
1260
+ stateMutability: 'nonpayable',
1261
+ type: 'function',
1262
+ },
1263
+ {
1264
+ inputs: [
1265
+ {
1266
+ name: '_agent',
1267
+ type: 'address',
1268
+ },
1269
+ {
1270
+ name: '_allowedAssets',
1271
+ type: 'address[]',
1272
+ },
1273
+ {
1274
+ name: '_allowedLegoIds',
1275
+ type: 'uint256[]',
1276
+ },
1277
+ ],
1278
+ name: 'addOrModifyAgent',
1279
+ outputs: [
1280
+ {
1281
+ name: '',
1282
+ type: 'bool',
1283
+ },
1284
+ ],
1285
+ stateMutability: 'nonpayable',
1286
+ type: 'function',
1287
+ },
1288
+ {
1289
+ inputs: [
1290
+ {
1291
+ name: '_agent',
1292
+ type: 'address',
1293
+ },
1294
+ {
1295
+ name: '_allowedAssets',
1296
+ type: 'address[]',
1297
+ },
1298
+ {
1299
+ name: '_allowedLegoIds',
1300
+ type: 'uint256[]',
1301
+ },
1302
+ {
1303
+ components: [
1304
+ {
1305
+ name: 'isSet',
1306
+ type: 'bool',
1307
+ },
1308
+ {
1309
+ name: 'canDeposit',
1310
+ type: 'bool',
1311
+ },
1312
+ {
1313
+ name: 'canWithdraw',
1314
+ type: 'bool',
1315
+ },
1316
+ {
1317
+ name: 'canRebalance',
1318
+ type: 'bool',
1319
+ },
1320
+ {
1321
+ name: 'canTransfer',
1322
+ type: 'bool',
1323
+ },
1324
+ {
1325
+ name: 'canSwap',
1326
+ type: 'bool',
1327
+ },
1328
+ {
1329
+ name: 'canConvert',
1330
+ type: 'bool',
1331
+ },
1332
+ {
1333
+ name: 'canAddLiq',
1334
+ type: 'bool',
1335
+ },
1336
+ {
1337
+ name: 'canRemoveLiq',
1338
+ type: 'bool',
1339
+ },
1340
+ {
1341
+ name: 'canClaimRewards',
1342
+ type: 'bool',
1343
+ },
1344
+ {
1345
+ name: 'canBorrow',
1346
+ type: 'bool',
1347
+ },
1348
+ {
1349
+ name: 'canRepay',
1350
+ type: 'bool',
1351
+ },
1352
+ ],
1353
+ name: '_allowedActions',
1354
+ type: 'tuple',
1355
+ },
1356
+ ],
1357
+ name: 'addOrModifyAgent',
1358
+ outputs: [
1359
+ {
1360
+ name: '',
1361
+ type: 'bool',
1362
+ },
1363
+ ],
1364
+ stateMutability: 'nonpayable',
1365
+ type: 'function',
1366
+ },
1367
+ {
1368
+ inputs: [
1369
+ {
1370
+ name: '_agent',
1371
+ type: 'address',
1372
+ },
1373
+ ],
1374
+ name: 'disableAgent',
1375
+ outputs: [
1376
+ {
1377
+ name: '',
1378
+ type: 'bool',
1379
+ },
1380
+ ],
1381
+ stateMutability: 'nonpayable',
1382
+ type: 'function',
1383
+ },
1384
+ {
1385
+ inputs: [
1386
+ {
1387
+ name: '_agent',
1388
+ type: 'address',
1389
+ },
1390
+ {
1391
+ name: '_legoId',
1392
+ type: 'uint256',
1393
+ },
1394
+ ],
1395
+ name: 'addLegoIdForAgent',
1396
+ outputs: [
1397
+ {
1398
+ name: '',
1399
+ type: 'bool',
1400
+ },
1401
+ ],
1402
+ stateMutability: 'nonpayable',
1403
+ type: 'function',
1404
+ },
1405
+ {
1406
+ inputs: [
1407
+ {
1408
+ name: '_agent',
1409
+ type: 'address',
1410
+ },
1411
+ {
1412
+ name: '_asset',
1413
+ type: 'address',
1414
+ },
1415
+ ],
1416
+ name: 'addAssetForAgent',
1417
+ outputs: [
1418
+ {
1419
+ name: '',
1420
+ type: 'bool',
1421
+ },
1422
+ ],
1423
+ stateMutability: 'nonpayable',
1424
+ type: 'function',
1425
+ },
1426
+ {
1427
+ inputs: [
1428
+ {
1429
+ name: '_agent',
1430
+ type: 'address',
1431
+ },
1432
+ ],
1433
+ name: 'modifyAllowedActions',
1434
+ outputs: [
1435
+ {
1436
+ name: '',
1437
+ type: 'bool',
1438
+ },
1439
+ ],
1440
+ stateMutability: 'nonpayable',
1441
+ type: 'function',
1442
+ },
1443
+ {
1444
+ inputs: [
1445
+ {
1446
+ name: '_agent',
1447
+ type: 'address',
1448
+ },
1449
+ {
1450
+ components: [
1451
+ {
1452
+ name: 'isSet',
1453
+ type: 'bool',
1454
+ },
1455
+ {
1456
+ name: 'canDeposit',
1457
+ type: 'bool',
1458
+ },
1459
+ {
1460
+ name: 'canWithdraw',
1461
+ type: 'bool',
1462
+ },
1463
+ {
1464
+ name: 'canRebalance',
1465
+ type: 'bool',
1466
+ },
1467
+ {
1468
+ name: 'canTransfer',
1469
+ type: 'bool',
1470
+ },
1471
+ {
1472
+ name: 'canSwap',
1473
+ type: 'bool',
1474
+ },
1475
+ {
1476
+ name: 'canConvert',
1477
+ type: 'bool',
1478
+ },
1479
+ {
1480
+ name: 'canAddLiq',
1481
+ type: 'bool',
1482
+ },
1483
+ {
1484
+ name: 'canRemoveLiq',
1485
+ type: 'bool',
1486
+ },
1487
+ {
1488
+ name: 'canClaimRewards',
1489
+ type: 'bool',
1490
+ },
1491
+ {
1492
+ name: 'canBorrow',
1493
+ type: 'bool',
1494
+ },
1495
+ {
1496
+ name: 'canRepay',
1497
+ type: 'bool',
1498
+ },
1499
+ ],
1500
+ name: '_allowedActions',
1501
+ type: 'tuple',
1502
+ },
1503
+ ],
1504
+ name: 'modifyAllowedActions',
1505
+ outputs: [
1506
+ {
1507
+ name: '',
1508
+ type: 'bool',
1509
+ },
1510
+ ],
1511
+ stateMutability: 'nonpayable',
1512
+ type: 'function',
1513
+ },
1514
+ {
1515
+ inputs: [
1516
+ {
1517
+ name: '_recipient',
1518
+ type: 'address',
1519
+ },
1520
+ ],
1521
+ name: 'canTransferToRecipient',
1522
+ outputs: [
1523
+ {
1524
+ name: '',
1525
+ type: 'bool',
1526
+ },
1527
+ ],
1528
+ stateMutability: 'view',
1529
+ type: 'function',
1530
+ },
1531
+ {
1532
+ inputs: [
1533
+ {
1534
+ name: '_wallet',
1535
+ type: 'address',
1536
+ },
1537
+ ],
1538
+ name: 'doesWalletHaveSameOwner',
1539
+ outputs: [
1540
+ {
1541
+ name: '',
1542
+ type: 'bool',
1543
+ },
1544
+ ],
1545
+ stateMutability: 'view',
1546
+ type: 'function',
1547
+ },
1548
+ {
1549
+ inputs: [
1550
+ {
1551
+ name: '_canTransfer',
1552
+ type: 'bool',
1553
+ },
1554
+ ],
1555
+ name: 'setCanTransferToAltOwnerWallets',
1556
+ outputs: [
1557
+ {
1558
+ name: '',
1559
+ type: 'bool',
1560
+ },
1561
+ ],
1562
+ stateMutability: 'nonpayable',
1563
+ type: 'function',
1564
+ },
1565
+ {
1566
+ inputs: [
1567
+ {
1568
+ name: '_addr',
1569
+ type: 'address',
1570
+ },
1571
+ ],
1572
+ name: 'addWhitelistAddr',
1573
+ outputs: [],
1574
+ stateMutability: 'nonpayable',
1575
+ type: 'function',
1576
+ },
1577
+ {
1578
+ inputs: [
1579
+ {
1580
+ name: '_addr',
1581
+ type: 'address',
1582
+ },
1583
+ ],
1584
+ name: 'confirmWhitelistAddr',
1585
+ outputs: [],
1586
+ stateMutability: 'nonpayable',
1587
+ type: 'function',
1588
+ },
1589
+ {
1590
+ inputs: [
1591
+ {
1592
+ name: '_addr',
1593
+ type: 'address',
1594
+ },
1595
+ ],
1596
+ name: 'cancelPendingWhitelistAddr',
1597
+ outputs: [],
1598
+ stateMutability: 'nonpayable',
1599
+ type: 'function',
1600
+ },
1601
+ {
1602
+ inputs: [
1603
+ {
1604
+ name: '_addr',
1605
+ type: 'address',
1606
+ },
1607
+ ],
1608
+ name: 'removeWhitelistAddr',
1609
+ outputs: [],
1610
+ stateMutability: 'nonpayable',
1611
+ type: 'function',
1612
+ },
1613
+ {
1614
+ inputs: [
1615
+ {
1616
+ name: '_asset',
1617
+ type: 'address',
1618
+ },
1619
+ {
1620
+ name: '_amount',
1621
+ type: 'uint256',
1622
+ },
1623
+ ],
1624
+ name: 'setReserveAsset',
1625
+ outputs: [
1626
+ {
1627
+ name: '',
1628
+ type: 'bool',
1629
+ },
1630
+ ],
1631
+ stateMutability: 'nonpayable',
1632
+ type: 'function',
1633
+ },
1634
+ {
1635
+ inputs: [
1636
+ {
1637
+ components: [
1638
+ {
1639
+ name: 'asset',
1640
+ type: 'address',
1641
+ },
1642
+ {
1643
+ name: 'amount',
1644
+ type: 'uint256',
1645
+ },
1646
+ ],
1647
+ name: '_assets',
1648
+ type: 'tuple[]',
1649
+ },
1650
+ ],
1651
+ name: 'setManyReserveAssets',
1652
+ outputs: [
1653
+ {
1654
+ name: '',
1655
+ type: 'bool',
1656
+ },
1657
+ ],
1658
+ stateMutability: 'nonpayable',
1659
+ type: 'function',
1660
+ },
1661
+ {
1662
+ inputs: [],
1663
+ name: 'getProceedsAddr',
1664
+ outputs: [
1665
+ {
1666
+ name: '',
1667
+ type: 'address',
1668
+ },
1669
+ ],
1670
+ stateMutability: 'view',
1671
+ type: 'function',
1672
+ },
1673
+ {
1674
+ inputs: [
1675
+ {
1676
+ name: '_addr',
1677
+ type: 'address',
1678
+ },
1679
+ ],
1680
+ name: 'setAmbassadorForwarder',
1681
+ outputs: [
1682
+ {
1683
+ name: '',
1684
+ type: 'bool',
1685
+ },
1686
+ ],
1687
+ stateMutability: 'nonpayable',
1688
+ type: 'function',
1689
+ },
1690
+ {
1691
+ inputs: [
1692
+ {
1693
+ name: '_canWalletBeAmbassador',
1694
+ type: 'bool',
1695
+ },
1696
+ ],
1697
+ name: 'setCanWalletBeAmbassador',
1698
+ outputs: [
1699
+ {
1700
+ name: '',
1701
+ type: 'bool',
1702
+ },
1703
+ ],
1704
+ stateMutability: 'nonpayable',
1705
+ type: 'function',
1706
+ },
1707
+ {
1708
+ inputs: [
1709
+ {
1710
+ name: '_asset',
1711
+ type: 'address',
1712
+ },
1713
+ ],
1714
+ name: 'recoverFunds',
1715
+ outputs: [
1716
+ {
1717
+ name: '',
1718
+ type: 'bool',
1719
+ },
1720
+ ],
1721
+ stateMutability: 'nonpayable',
1722
+ type: 'function',
1723
+ },
1724
+ {
1725
+ inputs: [],
1726
+ name: 'wallet',
1727
+ outputs: [
1728
+ {
1729
+ name: '',
1730
+ type: 'address',
1731
+ },
1732
+ ],
1733
+ stateMutability: 'view',
1734
+ type: 'function',
1735
+ },
1736
+ {
1737
+ inputs: [],
1738
+ name: 'didSetWallet',
1739
+ outputs: [
1740
+ {
1741
+ name: '',
1742
+ type: 'bool',
1743
+ },
1744
+ ],
1745
+ stateMutability: 'view',
1746
+ type: 'function',
1747
+ },
1748
+ {
1749
+ inputs: [],
1750
+ name: 'protocolSub',
1751
+ outputs: [
1752
+ {
1753
+ components: [
1754
+ {
1755
+ name: 'installBlock',
1756
+ type: 'uint256',
1757
+ },
1758
+ {
1759
+ name: 'paidThroughBlock',
1760
+ type: 'uint256',
1761
+ },
1762
+ ],
1763
+ name: '',
1764
+ type: 'tuple',
1765
+ },
1766
+ ],
1767
+ stateMutability: 'view',
1768
+ type: 'function',
1769
+ },
1770
+ {
1771
+ inputs: [
1772
+ {
1773
+ name: 'arg0',
1774
+ type: 'address',
1775
+ },
1776
+ ],
1777
+ name: 'reserveAssets',
1778
+ outputs: [
1779
+ {
1780
+ name: '',
1781
+ type: 'uint256',
1782
+ },
1783
+ ],
1784
+ stateMutability: 'view',
1785
+ type: 'function',
1786
+ },
1787
+ {
1788
+ inputs: [
1789
+ {
1790
+ name: 'arg0',
1791
+ type: 'address',
1792
+ },
1793
+ ],
1794
+ name: 'agentSettings',
1795
+ outputs: [
1796
+ {
1797
+ components: [
1798
+ {
1799
+ name: 'isActive',
1800
+ type: 'bool',
1801
+ },
1802
+ {
1803
+ name: 'installBlock',
1804
+ type: 'uint256',
1805
+ },
1806
+ {
1807
+ name: 'paidThroughBlock',
1808
+ type: 'uint256',
1809
+ },
1810
+ {
1811
+ name: 'allowedAssets',
1812
+ type: 'address[]',
1813
+ },
1814
+ {
1815
+ name: 'allowedLegoIds',
1816
+ type: 'uint256[]',
1817
+ },
1818
+ {
1819
+ components: [
1820
+ {
1821
+ name: 'isSet',
1822
+ type: 'bool',
1823
+ },
1824
+ {
1825
+ name: 'canDeposit',
1826
+ type: 'bool',
1827
+ },
1828
+ {
1829
+ name: 'canWithdraw',
1830
+ type: 'bool',
1831
+ },
1832
+ {
1833
+ name: 'canRebalance',
1834
+ type: 'bool',
1835
+ },
1836
+ {
1837
+ name: 'canTransfer',
1838
+ type: 'bool',
1839
+ },
1840
+ {
1841
+ name: 'canSwap',
1842
+ type: 'bool',
1843
+ },
1844
+ {
1845
+ name: 'canConvert',
1846
+ type: 'bool',
1847
+ },
1848
+ {
1849
+ name: 'canAddLiq',
1850
+ type: 'bool',
1851
+ },
1852
+ {
1853
+ name: 'canRemoveLiq',
1854
+ type: 'bool',
1855
+ },
1856
+ {
1857
+ name: 'canClaimRewards',
1858
+ type: 'bool',
1859
+ },
1860
+ {
1861
+ name: 'canBorrow',
1862
+ type: 'bool',
1863
+ },
1864
+ {
1865
+ name: 'canRepay',
1866
+ type: 'bool',
1867
+ },
1868
+ ],
1869
+ name: 'allowedActions',
1870
+ type: 'tuple',
1871
+ },
1872
+ ],
1873
+ name: '',
1874
+ type: 'tuple',
1875
+ },
1876
+ ],
1877
+ stateMutability: 'view',
1878
+ type: 'function',
1879
+ },
1880
+ {
1881
+ inputs: [
1882
+ {
1883
+ name: 'arg0',
1884
+ type: 'address',
1885
+ },
1886
+ ],
1887
+ name: 'isRecipientAllowed',
1888
+ outputs: [
1889
+ {
1890
+ name: '',
1891
+ type: 'bool',
1892
+ },
1893
+ ],
1894
+ stateMutability: 'view',
1895
+ type: 'function',
1896
+ },
1897
+ {
1898
+ inputs: [
1899
+ {
1900
+ name: 'arg0',
1901
+ type: 'address',
1902
+ },
1903
+ ],
1904
+ name: 'pendingWhitelist',
1905
+ outputs: [
1906
+ {
1907
+ components: [
1908
+ {
1909
+ name: 'initiatedBlock',
1910
+ type: 'uint256',
1911
+ },
1912
+ {
1913
+ name: 'confirmBlock',
1914
+ type: 'uint256',
1915
+ },
1916
+ ],
1917
+ name: '',
1918
+ type: 'tuple',
1919
+ },
1920
+ ],
1921
+ stateMutability: 'view',
1922
+ type: 'function',
1923
+ },
1924
+ {
1925
+ inputs: [],
1926
+ name: 'canTransferToAltOwnerWallets',
1927
+ outputs: [
1928
+ {
1929
+ name: '',
1930
+ type: 'bool',
1931
+ },
1932
+ ],
1933
+ stateMutability: 'view',
1934
+ type: 'function',
1935
+ },
1936
+ {
1937
+ inputs: [],
1938
+ name: 'canWalletBeAmbassador',
1939
+ outputs: [
1940
+ {
1941
+ name: '',
1942
+ type: 'bool',
1943
+ },
1944
+ ],
1945
+ stateMutability: 'view',
1946
+ type: 'function',
1947
+ },
1948
+ {
1949
+ inputs: [],
1950
+ name: 'ambassadorForwarder',
1951
+ outputs: [
1952
+ {
1953
+ name: '',
1954
+ type: 'address',
1955
+ },
1956
+ ],
1957
+ stateMutability: 'view',
1958
+ type: 'function',
1959
+ },
1960
+ {
1961
+ inputs: [],
1962
+ name: 'myAmbassador',
1963
+ outputs: [
1964
+ {
1965
+ name: '',
1966
+ type: 'address',
1967
+ },
1968
+ ],
1969
+ stateMutability: 'view',
1970
+ type: 'function',
1971
+ },
1972
+ {
1973
+ inputs: [],
1974
+ name: 'didMigrateIn',
1975
+ outputs: [
1976
+ {
1977
+ name: '',
1978
+ type: 'bool',
1979
+ },
1980
+ ],
1981
+ stateMutability: 'view',
1982
+ type: 'function',
1983
+ },
1984
+ {
1985
+ inputs: [],
1986
+ name: 'didMigrateOut',
1987
+ outputs: [
1988
+ {
1989
+ name: '',
1990
+ type: 'bool',
1991
+ },
1992
+ ],
1993
+ stateMutability: 'view',
1994
+ type: 'function',
1995
+ },
1996
+ {
1997
+ inputs: [
1998
+ {
1999
+ name: 'arg0',
2000
+ type: 'address',
2001
+ },
2002
+ ],
2003
+ name: 'isVaultToken',
2004
+ outputs: [
2005
+ {
2006
+ name: '',
2007
+ type: 'bool',
2008
+ },
2009
+ ],
2010
+ stateMutability: 'view',
2011
+ type: 'function',
2012
+ },
2013
+ {
2014
+ inputs: [
2015
+ {
2016
+ name: 'arg0',
2017
+ type: 'address',
2018
+ },
2019
+ ],
2020
+ name: 'vaultTokenAmounts',
2021
+ outputs: [
2022
+ {
2023
+ name: '',
2024
+ type: 'uint256',
2025
+ },
2026
+ ],
2027
+ stateMutability: 'view',
2028
+ type: 'function',
2029
+ },
2030
+ {
2031
+ inputs: [
2032
+ {
2033
+ name: 'arg0',
2034
+ type: 'address',
2035
+ },
2036
+ ],
2037
+ name: 'depositedAmounts',
2038
+ outputs: [
2039
+ {
2040
+ name: '',
2041
+ type: 'uint256',
2042
+ },
2043
+ ],
2044
+ stateMutability: 'view',
2045
+ type: 'function',
2046
+ },
2047
+ {
2048
+ inputs: [],
2049
+ name: 'ADDY_REGISTRY',
2050
+ outputs: [
2051
+ {
2052
+ name: '',
2053
+ type: 'address',
2054
+ },
2055
+ ],
2056
+ stateMutability: 'view',
2057
+ type: 'function',
2058
+ },
2059
+ {
2060
+ inputs: [
2061
+ {
2062
+ name: '_owner',
2063
+ type: 'address',
2064
+ },
2065
+ {
2066
+ name: '_initialAgent',
2067
+ type: 'address',
2068
+ },
2069
+ {
2070
+ name: '_ambassador',
2071
+ type: 'address',
2072
+ },
2073
+ {
2074
+ name: '_addyRegistry',
2075
+ type: 'address',
2076
+ },
2077
+ {
2078
+ name: '_minOwnerChangeDelay',
2079
+ type: 'uint256',
2080
+ },
2081
+ {
2082
+ name: '_maxOwnerChangeDelay',
2083
+ type: 'uint256',
2084
+ },
2085
+ ],
2086
+ outputs: [],
2087
+ stateMutability: 'nonpayable',
2088
+ type: 'constructor',
2089
+ },
2090
+ ];
2091
+ export const deployAddress = '0x61293F1bF484d20dcc841175b4E4A0F46c26658c';
2092
+ function getRequest(method, args, contractAddressOrOptions) {
2093
+ const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
2094
+ const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
2095
+ const call = {
2096
+ contractName: 'v0_3_UserWalletConfig',
2097
+ method,
2098
+ args,
2099
+ address,
2100
+ deployAddress,
2101
+ defaultValue,
2102
+ getAbi: () => abi,
2103
+ with: (options) => {
2104
+ call.address = options.contractAddress;
2105
+ call.defaultValue = options.defaultValue;
2106
+ return call;
2107
+ },
2108
+ defaultTo: (defaultValue) => {
2109
+ call.defaultValue = defaultValue;
2110
+ return call;
2111
+ },
2112
+ at: (address) => {
2113
+ call.address = address;
2114
+ return call;
2115
+ },
2116
+ };
2117
+ return call;
2118
+ }
2119
+ export const call = {
2120
+ hasPendingOwnerChange: (...args) => getRequest('hasPendingOwnerChange', args),
2121
+ owner: (...args) => getRequest('owner', args),
2122
+ pendingOwner: (...args) => getRequest('pendingOwner', args),
2123
+ ownershipChangeDelay: (...args) => getRequest('ownershipChangeDelay', args),
2124
+ MIN_OWNER_CHANGE_DELAY: (...args) => getRequest('MIN_OWNER_CHANGE_DELAY', args),
2125
+ MAX_OWNER_CHANGE_DELAY: (...args) => getRequest('MAX_OWNER_CHANGE_DELAY', args),
2126
+ _ADDY_REGISTRY: (...args) => getRequest('_ADDY_REGISTRY', args),
2127
+ apiVersion: (...args) => getRequest('apiVersion', args),
2128
+ isAgentActive: (...args) => getRequest('isAgentActive', args),
2129
+ canAgentAccess: (...args) => getRequest('canAgentAccess', args),
2130
+ getAgentSubscriptionStatus: (...args) => getRequest('getAgentSubscriptionStatus', args),
2131
+ getProtocolSubscriptionStatus: (...args) => getRequest('getProtocolSubscriptionStatus', args),
2132
+ canMakeSubscriptionPayments: (...args) => getRequest('canMakeSubscriptionPayments', args),
2133
+ getAvailableTxAmount: (...args) => getRequest('getAvailableTxAmount', args),
2134
+ canTransferToRecipient: (...args) => getRequest('canTransferToRecipient', args),
2135
+ doesWalletHaveSameOwner: (...args) => getRequest('doesWalletHaveSameOwner', args),
2136
+ getProceedsAddr: (...args) => getRequest('getProceedsAddr', args),
2137
+ wallet: (...args) => getRequest('wallet', args),
2138
+ didSetWallet: (...args) => getRequest('didSetWallet', args),
2139
+ protocolSub: (...args) => getRequest('protocolSub', args),
2140
+ reserveAssets: (...args) => getRequest('reserveAssets', args),
2141
+ agentSettings: (...args) => getRequest('agentSettings', args),
2142
+ isRecipientAllowed: (...args) => getRequest('isRecipientAllowed', args),
2143
+ pendingWhitelist: (...args) => getRequest('pendingWhitelist', args),
2144
+ canTransferToAltOwnerWallets: (...args) => getRequest('canTransferToAltOwnerWallets', args),
2145
+ canWalletBeAmbassador: (...args) => getRequest('canWalletBeAmbassador', args),
2146
+ ambassadorForwarder: (...args) => getRequest('ambassadorForwarder', args),
2147
+ myAmbassador: (...args) => getRequest('myAmbassador', args),
2148
+ didMigrateIn: (...args) => getRequest('didMigrateIn', args),
2149
+ didMigrateOut: (...args) => getRequest('didMigrateOut', args),
2150
+ isVaultToken: (...args) => getRequest('isVaultToken', args),
2151
+ vaultTokenAmounts: (...args) => getRequest('vaultTokenAmounts', args),
2152
+ depositedAmounts: (...args) => getRequest('depositedAmounts', args),
2153
+ ADDY_REGISTRY: (...args) => getRequest('ADDY_REGISTRY', args),
2154
+ };
2155
+ function getMutation(functionName) {
2156
+ return {
2157
+ contractName: 'v0_3_UserWalletConfig',
2158
+ functionName,
2159
+ deployAddress,
2160
+ argsType: undefined,
2161
+ getAbi: () => abi,
2162
+ };
2163
+ }
2164
+ export const mutation = {
2165
+ changeOwnership: getMutation('changeOwnership'),
2166
+ confirmOwnershipChange: getMutation('confirmOwnershipChange'),
2167
+ cancelOwnershipChange: getMutation('cancelOwnershipChange'),
2168
+ setOwnershipChangeDelay: getMutation('setOwnershipChangeDelay'),
2169
+ setWallet: getMutation('setWallet'),
2170
+ handleSubscriptionsAndPermissions: getMutation('handleSubscriptionsAndPermissions'),
2171
+ updateYieldTrackingOnDeposit: getMutation('updateYieldTrackingOnDeposit'),
2172
+ updateYieldTrackingOnWithdrawal: getMutation('updateYieldTrackingOnWithdrawal'),
2173
+ updateYieldTrackingOnSwap: getMutation('updateYieldTrackingOnSwap'),
2174
+ updateYieldTrackingOnEntry: getMutation('updateYieldTrackingOnEntry'),
2175
+ updateYieldTrackingOnExit: getMutation('updateYieldTrackingOnExit'),
2176
+ startMigrationOut: getMutation('startMigrationOut'),
2177
+ finishMigrationIn: getMutation('finishMigrationIn'),
2178
+ addOrModifyAgent: getMutation('addOrModifyAgent'),
2179
+ disableAgent: getMutation('disableAgent'),
2180
+ addLegoIdForAgent: getMutation('addLegoIdForAgent'),
2181
+ addAssetForAgent: getMutation('addAssetForAgent'),
2182
+ modifyAllowedActions: getMutation('modifyAllowedActions'),
2183
+ setCanTransferToAltOwnerWallets: getMutation('setCanTransferToAltOwnerWallets'),
2184
+ addWhitelistAddr: getMutation('addWhitelistAddr'),
2185
+ confirmWhitelistAddr: getMutation('confirmWhitelistAddr'),
2186
+ cancelPendingWhitelistAddr: getMutation('cancelPendingWhitelistAddr'),
2187
+ removeWhitelistAddr: getMutation('removeWhitelistAddr'),
2188
+ setReserveAsset: getMutation('setReserveAsset'),
2189
+ setManyReserveAssets: getMutation('setManyReserveAssets'),
2190
+ setAmbassadorForwarder: getMutation('setAmbassadorForwarder'),
2191
+ setCanWalletBeAmbassador: getMutation('setCanWalletBeAmbassador'),
2192
+ recoverFunds: getMutation('recoverFunds'),
2193
+ };
2194
+ export function toSdk(deployAddress, publicClient, walletClient) {
2195
+ return {
2196
+ deployAddress,
2197
+ abi,
2198
+ // Queries
2199
+ hasPendingOwnerChange: (...args) => singleQuery(publicClient, call.hasPendingOwnerChange(...args).at(deployAddress)),
2200
+ owner: (...args) => singleQuery(publicClient, call.owner(...args).at(deployAddress)),
2201
+ pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args).at(deployAddress)),
2202
+ ownershipChangeDelay: (...args) => singleQuery(publicClient, call.ownershipChangeDelay(...args).at(deployAddress)),
2203
+ MIN_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MIN_OWNER_CHANGE_DELAY(...args).at(deployAddress)),
2204
+ MAX_OWNER_CHANGE_DELAY: (...args) => singleQuery(publicClient, call.MAX_OWNER_CHANGE_DELAY(...args).at(deployAddress)),
2205
+ _ADDY_REGISTRY: (...args) => singleQuery(publicClient, call._ADDY_REGISTRY(...args).at(deployAddress)),
2206
+ apiVersion: (...args) => singleQuery(publicClient, call.apiVersion(...args).at(deployAddress)),
2207
+ isAgentActive: (...args) => singleQuery(publicClient, call.isAgentActive(...args).at(deployAddress)),
2208
+ canAgentAccess: (...args) => singleQuery(publicClient, call.canAgentAccess(...args).at(deployAddress)),
2209
+ getAgentSubscriptionStatus: (...args) => singleQuery(publicClient, call.getAgentSubscriptionStatus(...args).at(deployAddress)),
2210
+ getProtocolSubscriptionStatus: (...args) => singleQuery(publicClient, call.getProtocolSubscriptionStatus(...args).at(deployAddress)),
2211
+ canMakeSubscriptionPayments: (...args) => singleQuery(publicClient, call.canMakeSubscriptionPayments(...args).at(deployAddress)),
2212
+ getAvailableTxAmount: (...args) => singleQuery(publicClient, call.getAvailableTxAmount(...args).at(deployAddress)),
2213
+ canTransferToRecipient: (...args) => singleQuery(publicClient, call.canTransferToRecipient(...args).at(deployAddress)),
2214
+ doesWalletHaveSameOwner: (...args) => singleQuery(publicClient, call.doesWalletHaveSameOwner(...args).at(deployAddress)),
2215
+ getProceedsAddr: (...args) => singleQuery(publicClient, call.getProceedsAddr(...args).at(deployAddress)),
2216
+ wallet: (...args) => singleQuery(publicClient, call.wallet(...args).at(deployAddress)),
2217
+ didSetWallet: (...args) => singleQuery(publicClient, call.didSetWallet(...args).at(deployAddress)),
2218
+ protocolSub: (...args) => singleQuery(publicClient, call.protocolSub(...args).at(deployAddress)),
2219
+ reserveAssets: (...args) => singleQuery(publicClient, call.reserveAssets(...args).at(deployAddress)),
2220
+ agentSettings: (...args) => singleQuery(publicClient, call.agentSettings(...args).at(deployAddress)),
2221
+ isRecipientAllowed: (...args) => singleQuery(publicClient, call.isRecipientAllowed(...args).at(deployAddress)),
2222
+ pendingWhitelist: (...args) => singleQuery(publicClient, call.pendingWhitelist(...args).at(deployAddress)),
2223
+ canTransferToAltOwnerWallets: (...args) => singleQuery(publicClient, call.canTransferToAltOwnerWallets(...args).at(deployAddress)),
2224
+ canWalletBeAmbassador: (...args) => singleQuery(publicClient, call.canWalletBeAmbassador(...args).at(deployAddress)),
2225
+ ambassadorForwarder: (...args) => singleQuery(publicClient, call.ambassadorForwarder(...args).at(deployAddress)),
2226
+ myAmbassador: (...args) => singleQuery(publicClient, call.myAmbassador(...args).at(deployAddress)),
2227
+ didMigrateIn: (...args) => singleQuery(publicClient, call.didMigrateIn(...args).at(deployAddress)),
2228
+ didMigrateOut: (...args) => singleQuery(publicClient, call.didMigrateOut(...args).at(deployAddress)),
2229
+ isVaultToken: (...args) => singleQuery(publicClient, call.isVaultToken(...args).at(deployAddress)),
2230
+ vaultTokenAmounts: (...args) => singleQuery(publicClient, call.vaultTokenAmounts(...args).at(deployAddress)),
2231
+ depositedAmounts: (...args) => singleQuery(publicClient, call.depositedAmounts(...args).at(deployAddress)),
2232
+ ADDY_REGISTRY: (...args) => singleQuery(publicClient, call.ADDY_REGISTRY(...args).at(deployAddress)),
2233
+ // Mutations
2234
+ changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership, { address: deployAddress })(...args),
2235
+ confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange, { address: deployAddress })(...args),
2236
+ cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange, { address: deployAddress })(...args),
2237
+ setOwnershipChangeDelay: (...args) => mutate(walletClient, mutation.setOwnershipChangeDelay, { address: deployAddress })(...args),
2238
+ setWallet: (...args) => mutate(walletClient, mutation.setWallet, { address: deployAddress })(...args),
2239
+ handleSubscriptionsAndPermissions: (...args) => mutate(walletClient, mutation.handleSubscriptionsAndPermissions, { address: deployAddress })(...args),
2240
+ updateYieldTrackingOnDeposit: (...args) => mutate(walletClient, mutation.updateYieldTrackingOnDeposit, { address: deployAddress })(...args),
2241
+ updateYieldTrackingOnWithdrawal: (...args) => mutate(walletClient, mutation.updateYieldTrackingOnWithdrawal, { address: deployAddress })(...args),
2242
+ updateYieldTrackingOnSwap: (...args) => mutate(walletClient, mutation.updateYieldTrackingOnSwap, { address: deployAddress })(...args),
2243
+ updateYieldTrackingOnEntry: (...args) => mutate(walletClient, mutation.updateYieldTrackingOnEntry, { address: deployAddress })(...args),
2244
+ updateYieldTrackingOnExit: (...args) => mutate(walletClient, mutation.updateYieldTrackingOnExit, { address: deployAddress })(...args),
2245
+ startMigrationOut: (...args) => mutate(walletClient, mutation.startMigrationOut, { address: deployAddress })(...args),
2246
+ finishMigrationIn: (...args) => mutate(walletClient, mutation.finishMigrationIn, { address: deployAddress })(...args),
2247
+ addOrModifyAgent: (...args) => mutate(walletClient, mutation.addOrModifyAgent, { address: deployAddress })(...args),
2248
+ disableAgent: (...args) => mutate(walletClient, mutation.disableAgent, { address: deployAddress })(...args),
2249
+ addLegoIdForAgent: (...args) => mutate(walletClient, mutation.addLegoIdForAgent, { address: deployAddress })(...args),
2250
+ addAssetForAgent: (...args) => mutate(walletClient, mutation.addAssetForAgent, { address: deployAddress })(...args),
2251
+ modifyAllowedActions: (...args) => mutate(walletClient, mutation.modifyAllowedActions, { address: deployAddress })(...args),
2252
+ setCanTransferToAltOwnerWallets: (...args) => mutate(walletClient, mutation.setCanTransferToAltOwnerWallets, { address: deployAddress })(...args),
2253
+ addWhitelistAddr: (...args) => mutate(walletClient, mutation.addWhitelistAddr, { address: deployAddress })(...args),
2254
+ confirmWhitelistAddr: (...args) => mutate(walletClient, mutation.confirmWhitelistAddr, { address: deployAddress })(...args),
2255
+ cancelPendingWhitelistAddr: (...args) => mutate(walletClient, mutation.cancelPendingWhitelistAddr, { address: deployAddress })(...args),
2256
+ removeWhitelistAddr: (...args) => mutate(walletClient, mutation.removeWhitelistAddr, { address: deployAddress })(...args),
2257
+ setReserveAsset: (...args) => mutate(walletClient, mutation.setReserveAsset, { address: deployAddress })(...args),
2258
+ setManyReserveAssets: (...args) => mutate(walletClient, mutation.setManyReserveAssets, { address: deployAddress })(...args),
2259
+ setAmbassadorForwarder: (...args) => mutate(walletClient, mutation.setAmbassadorForwarder, { address: deployAddress })(...args),
2260
+ setCanWalletBeAmbassador: (...args) => mutate(walletClient, mutation.setCanWalletBeAmbassador, { address: deployAddress })(...args),
2261
+ recoverFunds: (...args) => mutate(walletClient, mutation.recoverFunds, { address: deployAddress })(...args),
2262
+ };
2263
+ }