@underscore-finance/sdk 1.2.18 → 1.2.19

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