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