@underscore-finance/sdk 1.2.17 → 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 (177) 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 +1 -1
  12. package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -1
  13. package/dist/contracts/AgentSenderGeneric.js +3093 -3108
  14. package/dist/contracts/AgentSenderSpecial.d.ts +1 -1
  15. package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -1
  16. package/dist/contracts/AgentSenderSpecial.js +1495 -1510
  17. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts +1 -1
  18. package/dist/contracts/AgentSenderSpecialSigHelper.d.ts.map +1 -1
  19. package/dist/contracts/AgentSenderSpecialSigHelper.js +1733 -1733
  20. package/dist/contracts/AgentWrapper.d.ts +1 -1
  21. package/dist/contracts/AgentWrapper.d.ts.map +1 -1
  22. package/dist/contracts/AgentWrapper.js +1926 -1929
  23. package/dist/contracts/AgentWrapperV1.d.ts +1 -1
  24. package/dist/contracts/AgentWrapperV1.d.ts.map +1 -1
  25. package/dist/contracts/AgentWrapperV1.js +2727 -2742
  26. package/dist/contracts/AgentWrapperV2.d.ts +1 -1
  27. package/dist/contracts/AgentWrapperV2.d.ts.map +1 -1
  28. package/dist/contracts/AgentWrapperV2.js +1832 -1835
  29. package/dist/contracts/Appraiser.d.ts.map +1 -1
  30. package/dist/contracts/Appraiser.js +404 -410
  31. package/dist/contracts/Avantis.d.ts.map +1 -1
  32. package/dist/contracts/Avantis.js +1905 -1929
  33. package/dist/contracts/Billing.d.ts.map +1 -1
  34. package/dist/contracts/Billing.js +235 -247
  35. package/dist/contracts/ChequeBook.d.ts.map +1 -1
  36. package/dist/contracts/ChequeBook.js +868 -877
  37. package/dist/contracts/CompoundV3.d.ts.map +1 -1
  38. package/dist/contracts/CompoundV3.js +1919 -1943
  39. package/dist/contracts/ConvertVaultToken.d.ts.map +1 -1
  40. package/dist/contracts/ConvertVaultToken.js +31 -31
  41. package/dist/contracts/Curve.d.ts.map +1 -1
  42. package/dist/contracts/Curve.js +787 -802
  43. package/dist/contracts/DefaultsBase.d.ts.map +1 -1
  44. package/dist/contracts/DefaultsBase.js +178 -178
  45. package/dist/contracts/ERC20.d.ts.map +1 -1
  46. package/dist/contracts/ERC20.js +186 -192
  47. package/dist/contracts/EarnVault.d.ts.map +1 -1
  48. package/dist/contracts/EarnVault.js +1262 -1292
  49. package/dist/contracts/EarnVaultAgent.d.ts.map +1 -1
  50. package/dist/contracts/EarnVaultAgent.js +745 -760
  51. package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -1
  52. package/dist/contracts/EarnVaultAgentSigHelper.js +665 -665
  53. package/dist/contracts/Euler.d.ts.map +1 -1
  54. package/dist/contracts/Euler.js +1948 -1975
  55. package/dist/contracts/ExtraFi.d.ts.map +1 -1
  56. package/dist/contracts/ExtraFi.js +1929 -1953
  57. package/dist/contracts/Fluid.d.ts.map +1 -1
  58. package/dist/contracts/Fluid.js +1927 -1951
  59. package/dist/contracts/FortyAcres.d.ts.map +1 -1
  60. package/dist/contracts/FortyAcres.js +1916 -1940
  61. package/dist/contracts/Hatchery.d.ts.map +1 -1
  62. package/dist/contracts/Hatchery.js +255 -264
  63. package/dist/contracts/Helpers.d.ts.map +1 -1
  64. package/dist/contracts/Helpers.js +1069 -1123
  65. package/dist/contracts/HighCommand.d.ts.map +1 -1
  66. package/dist/contracts/HighCommand.js +1395 -1407
  67. package/dist/contracts/Kernel.d.ts.map +1 -1
  68. package/dist/contracts/Kernel.js +224 -236
  69. package/dist/contracts/Ledger.d.ts +9 -12
  70. package/dist/contracts/Ledger.d.ts.map +1 -1
  71. package/dist/contracts/Ledger.js +480 -486
  72. package/dist/contracts/LegoBook.d.ts.map +1 -1
  73. package/dist/contracts/LegoBook.js +1069 -1123
  74. package/dist/contracts/LegoTools.d.ts +16 -22
  75. package/dist/contracts/LegoTools.d.ts.map +1 -1
  76. package/dist/contracts/LegoTools.js +1420 -1426
  77. package/dist/contracts/LevgVault.d.ts.map +1 -1
  78. package/dist/contracts/LevgVault.js +1544 -1580
  79. package/dist/contracts/LevgVaultAgent.d.ts.map +1 -1
  80. package/dist/contracts/LevgVaultAgent.js +1514 -1529
  81. package/dist/contracts/LevgVaultAgentSigHelper.d.ts.map +1 -1
  82. package/dist/contracts/LevgVaultAgentSigHelper.js +1769 -1769
  83. package/dist/contracts/LevgVaultHelper.d.ts.map +1 -1
  84. package/dist/contracts/LevgVaultHelper.js +732 -732
  85. package/dist/contracts/LevgVaultTools.d.ts.map +1 -1
  86. package/dist/contracts/LevgVaultTools.js +2118 -2118
  87. package/dist/contracts/LootDistributor.d.ts.map +1 -1
  88. package/dist/contracts/LootDistributor.js +753 -789
  89. package/dist/contracts/Migrator.d.ts.map +1 -1
  90. package/dist/contracts/Migrator.js +168 -174
  91. package/dist/contracts/MissionControl.d.ts.map +1 -1
  92. package/dist/contracts/MissionControl.js +956 -962
  93. package/dist/contracts/Moonwell.d.ts.map +1 -1
  94. package/dist/contracts/Moonwell.js +1918 -1942
  95. package/dist/contracts/Morpho.d.ts.map +1 -1
  96. package/dist/contracts/Morpho.js +1948 -1975
  97. package/dist/contracts/Paymaster.d.ts.map +1 -1
  98. package/dist/contracts/Paymaster.js +1203 -1224
  99. package/dist/contracts/RipeLego.d.ts.map +1 -1
  100. package/dist/contracts/RipeLego.js +2134 -2176
  101. package/dist/contracts/Sentinel.d.ts +32 -41
  102. package/dist/contracts/Sentinel.d.ts.map +1 -1
  103. package/dist/contracts/Sentinel.js +1398 -1398
  104. package/dist/contracts/SignatureHelper.d.ts.map +1 -1
  105. package/dist/contracts/SignatureHelper.js +3202 -3202
  106. package/dist/contracts/SignatureHelperV1.d.ts +1 -1
  107. package/dist/contracts/SignatureHelperV1.d.ts.map +1 -1
  108. package/dist/contracts/SignatureHelperV1.js +3223 -3223
  109. package/dist/contracts/SkyPsm.d.ts.map +1 -1
  110. package/dist/contracts/SkyPsm.js +1953 -1980
  111. package/dist/contracts/Switchboard.d.ts.map +1 -1
  112. package/dist/contracts/Switchboard.js +1085 -1139
  113. package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
  114. package/dist/contracts/SwitchboardAlpha.js +2333 -2474
  115. package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
  116. package/dist/contracts/SwitchboardBravo.js +1138 -1216
  117. package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
  118. package/dist/contracts/SwitchboardCharlie.js +2295 -2475
  119. package/dist/contracts/UnderscoreLego.d.ts.map +1 -1
  120. package/dist/contracts/UnderscoreLego.js +1894 -1918
  121. package/dist/contracts/UndyAero.d.ts.map +1 -1
  122. package/dist/contracts/UndyAero.js +1342 -1372
  123. package/dist/contracts/UndyBtc.d.ts.map +1 -1
  124. package/dist/contracts/UndyBtc.js +1342 -1372
  125. package/dist/contracts/UndyCbeth.d.ts.map +1 -1
  126. package/dist/contracts/UndyCbeth.js +1342 -1372
  127. package/dist/contracts/UndyEth.d.ts.map +1 -1
  128. package/dist/contracts/UndyEth.js +1342 -1372
  129. package/dist/contracts/UndyEurc.d.ts.map +1 -1
  130. package/dist/contracts/UndyEurc.js +1342 -1372
  131. package/dist/contracts/UndyGho.d.ts.map +1 -1
  132. package/dist/contracts/UndyGho.js +1342 -1372
  133. package/dist/contracts/UndyHq.d.ts.map +1 -1
  134. package/dist/contracts/UndyHq.js +1234 -1300
  135. package/dist/contracts/UndyRewardsLego.d.ts.map +1 -1
  136. package/dist/contracts/UndyRewardsLego.js +1120 -1120
  137. package/dist/contracts/UndyUsd.d.ts.map +1 -1
  138. package/dist/contracts/UndyUsd.js +1342 -1372
  139. package/dist/contracts/UndyUsds.d.ts.map +1 -1
  140. package/dist/contracts/UndyUsds.js +1342 -1372
  141. package/dist/contracts/UndyVirtual.d.ts.map +1 -1
  142. package/dist/contracts/UndyVirtual.js +1363 -1396
  143. package/dist/contracts/UniswapV2.d.ts.map +1 -1
  144. package/dist/contracts/UniswapV2.js +1518 -1533
  145. package/dist/contracts/UniswapV3.d.ts.map +1 -1
  146. package/dist/contracts/UniswapV3.js +1620 -1641
  147. package/dist/contracts/UserWallet.d.ts.map +1 -1
  148. package/dist/contracts/UserWallet.js +1999 -2005
  149. package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
  150. package/dist/contracts/UserWalletConfig.js +2572 -2593
  151. package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -1
  152. package/dist/contracts/UserWalletConfigV1.js +2327 -2348
  153. package/dist/contracts/UserWalletSignatureHelper.d.ts +1 -1
  154. package/dist/contracts/UserWalletSignatureHelper.d.ts.map +1 -1
  155. package/dist/contracts/UserWalletSignatureHelper.js +3458 -3458
  156. package/dist/contracts/UserWalletV1.d.ts.map +1 -1
  157. package/dist/contracts/UserWalletV1.js +1914 -1920
  158. package/dist/contracts/VaultRegistry.d.ts +11 -14
  159. package/dist/contracts/VaultRegistry.d.ts.map +1 -1
  160. package/dist/contracts/VaultRegistry.js +2343 -2439
  161. package/dist/contracts/WalletBackpack.d.ts.map +1 -1
  162. package/dist/contracts/WalletBackpack.js +926 -965
  163. package/dist/contracts/Wasabi.d.ts.map +1 -1
  164. package/dist/contracts/Wasabi.js +1916 -1940
  165. package/dist/contracts/sdk.d.ts +8 -8
  166. package/dist/contracts/sdk.d.ts.map +1 -1
  167. package/dist/contracts/sdk.js +8 -8
  168. package/dist/index.d.ts.map +1 -1
  169. package/dist/index.js +9 -5
  170. package/package.json +44 -24
  171. package/LICENSE +0 -41
  172. package/dist/contracts/Agent.d.ts +0 -3773
  173. package/dist/contracts/Agent.d.ts.map +0 -1
  174. package/dist/contracts/Agent.js +0 -4942
  175. package/dist/getContracts.d.ts +0 -77
  176. package/dist/getContracts.d.ts.map +0 -1
  177. package/dist/getContracts.js +0 -64
@@ -5,1148 +5,1148 @@
5
5
  import { singleQuery } from '@dappql/async';
6
6
  export const abi = [
7
7
  {
8
- stateMutability: 'view',
9
- type: 'function',
10
- name: 'getDepositForYieldHash',
11
- inputs: [
8
+ "stateMutability": "view",
9
+ "type": "function",
10
+ "name": "getDepositForYieldHash",
11
+ "inputs": [
12
12
  {
13
- name: '_agentWrapper',
14
- type: 'address',
13
+ "name": "_agentWrapper",
14
+ "type": "address"
15
15
  },
16
16
  {
17
- name: '_userWallet',
18
- type: 'address',
17
+ "name": "_userWallet",
18
+ "type": "address"
19
19
  },
20
20
  {
21
- name: '_legoId',
22
- type: 'uint256',
21
+ "name": "_legoId",
22
+ "type": "uint256"
23
23
  },
24
24
  {
25
- name: '_asset',
26
- type: 'address',
27
- },
25
+ "name": "_asset",
26
+ "type": "address"
27
+ }
28
28
  ],
29
- outputs: [
29
+ "outputs": [
30
30
  {
31
- name: '',
32
- type: 'bytes32',
31
+ "name": "",
32
+ "type": "bytes32"
33
33
  },
34
34
  {
35
- name: '',
36
- type: 'uint256',
35
+ "name": "",
36
+ "type": "uint256"
37
37
  },
38
38
  {
39
- name: '',
40
- type: 'uint256',
41
- },
42
- ],
39
+ "name": "",
40
+ "type": "uint256"
41
+ }
42
+ ]
43
43
  },
44
44
  {
45
- stateMutability: 'view',
46
- type: 'function',
47
- name: 'getDepositForYieldHash',
48
- inputs: [
45
+ "stateMutability": "view",
46
+ "type": "function",
47
+ "name": "getDepositForYieldHash",
48
+ "inputs": [
49
49
  {
50
- name: '_agentWrapper',
51
- type: 'address',
50
+ "name": "_agentWrapper",
51
+ "type": "address"
52
52
  },
53
53
  {
54
- name: '_userWallet',
55
- type: 'address',
54
+ "name": "_userWallet",
55
+ "type": "address"
56
56
  },
57
57
  {
58
- name: '_legoId',
59
- type: 'uint256',
58
+ "name": "_legoId",
59
+ "type": "uint256"
60
60
  },
61
61
  {
62
- name: '_asset',
63
- type: 'address',
62
+ "name": "_asset",
63
+ "type": "address"
64
64
  },
65
65
  {
66
- name: '_vaultAddr',
67
- type: 'address',
68
- },
66
+ "name": "_vaultAddr",
67
+ "type": "address"
68
+ }
69
69
  ],
70
- outputs: [
70
+ "outputs": [
71
71
  {
72
- name: '',
73
- type: 'bytes32',
72
+ "name": "",
73
+ "type": "bytes32"
74
74
  },
75
75
  {
76
- name: '',
77
- type: 'uint256',
76
+ "name": "",
77
+ "type": "uint256"
78
78
  },
79
79
  {
80
- name: '',
81
- type: 'uint256',
82
- },
83
- ],
80
+ "name": "",
81
+ "type": "uint256"
82
+ }
83
+ ]
84
84
  },
85
85
  {
86
- stateMutability: 'view',
87
- type: 'function',
88
- name: 'getDepositForYieldHash',
89
- inputs: [
86
+ "stateMutability": "view",
87
+ "type": "function",
88
+ "name": "getDepositForYieldHash",
89
+ "inputs": [
90
90
  {
91
- name: '_agentWrapper',
92
- type: 'address',
91
+ "name": "_agentWrapper",
92
+ "type": "address"
93
93
  },
94
94
  {
95
- name: '_userWallet',
96
- type: 'address',
95
+ "name": "_userWallet",
96
+ "type": "address"
97
97
  },
98
98
  {
99
- name: '_legoId',
100
- type: 'uint256',
99
+ "name": "_legoId",
100
+ "type": "uint256"
101
101
  },
102
102
  {
103
- name: '_asset',
104
- type: 'address',
103
+ "name": "_asset",
104
+ "type": "address"
105
105
  },
106
106
  {
107
- name: '_vaultAddr',
108
- type: 'address',
107
+ "name": "_vaultAddr",
108
+ "type": "address"
109
109
  },
110
110
  {
111
- name: '_amount',
112
- type: 'uint256',
113
- },
111
+ "name": "_amount",
112
+ "type": "uint256"
113
+ }
114
114
  ],
115
- outputs: [
115
+ "outputs": [
116
116
  {
117
- name: '',
118
- type: 'bytes32',
117
+ "name": "",
118
+ "type": "bytes32"
119
119
  },
120
120
  {
121
- name: '',
122
- type: 'uint256',
121
+ "name": "",
122
+ "type": "uint256"
123
123
  },
124
124
  {
125
- name: '',
126
- type: 'uint256',
127
- },
128
- ],
125
+ "name": "",
126
+ "type": "uint256"
127
+ }
128
+ ]
129
129
  },
130
130
  {
131
- stateMutability: 'view',
132
- type: 'function',
133
- name: 'getDepositForYieldHash',
134
- inputs: [
131
+ "stateMutability": "view",
132
+ "type": "function",
133
+ "name": "getDepositForYieldHash",
134
+ "inputs": [
135
135
  {
136
- name: '_agentWrapper',
137
- type: 'address',
136
+ "name": "_agentWrapper",
137
+ "type": "address"
138
138
  },
139
139
  {
140
- name: '_userWallet',
141
- type: 'address',
140
+ "name": "_userWallet",
141
+ "type": "address"
142
142
  },
143
143
  {
144
- name: '_legoId',
145
- type: 'uint256',
144
+ "name": "_legoId",
145
+ "type": "uint256"
146
146
  },
147
147
  {
148
- name: '_asset',
149
- type: 'address',
148
+ "name": "_asset",
149
+ "type": "address"
150
150
  },
151
151
  {
152
- name: '_vaultAddr',
153
- type: 'address',
152
+ "name": "_vaultAddr",
153
+ "type": "address"
154
154
  },
155
155
  {
156
- name: '_amount',
157
- type: 'uint256',
156
+ "name": "_amount",
157
+ "type": "uint256"
158
158
  },
159
159
  {
160
- name: '_extraData',
161
- type: 'bytes32',
162
- },
160
+ "name": "_extraData",
161
+ "type": "bytes32"
162
+ }
163
163
  ],
164
- outputs: [
164
+ "outputs": [
165
165
  {
166
- name: '',
167
- type: 'bytes32',
166
+ "name": "",
167
+ "type": "bytes32"
168
168
  },
169
169
  {
170
- name: '',
171
- type: 'uint256',
170
+ "name": "",
171
+ "type": "uint256"
172
172
  },
173
173
  {
174
- name: '',
175
- type: 'uint256',
176
- },
177
- ],
174
+ "name": "",
175
+ "type": "uint256"
176
+ }
177
+ ]
178
178
  },
179
179
  {
180
- stateMutability: 'view',
181
- type: 'function',
182
- name: 'getDepositForYieldHash',
183
- inputs: [
180
+ "stateMutability": "view",
181
+ "type": "function",
182
+ "name": "getDepositForYieldHash",
183
+ "inputs": [
184
184
  {
185
- name: '_agentWrapper',
186
- type: 'address',
185
+ "name": "_agentWrapper",
186
+ "type": "address"
187
187
  },
188
188
  {
189
- name: '_userWallet',
190
- type: 'address',
189
+ "name": "_userWallet",
190
+ "type": "address"
191
191
  },
192
192
  {
193
- name: '_legoId',
194
- type: 'uint256',
193
+ "name": "_legoId",
194
+ "type": "uint256"
195
195
  },
196
196
  {
197
- name: '_asset',
198
- type: 'address',
197
+ "name": "_asset",
198
+ "type": "address"
199
199
  },
200
200
  {
201
- name: '_vaultAddr',
202
- type: 'address',
201
+ "name": "_vaultAddr",
202
+ "type": "address"
203
203
  },
204
204
  {
205
- name: '_amount',
206
- type: 'uint256',
205
+ "name": "_amount",
206
+ "type": "uint256"
207
207
  },
208
208
  {
209
- name: '_extraData',
210
- type: 'bytes32',
209
+ "name": "_extraData",
210
+ "type": "bytes32"
211
211
  },
212
212
  {
213
- name: '_nonce',
214
- type: 'uint256',
215
- },
213
+ "name": "_nonce",
214
+ "type": "uint256"
215
+ }
216
216
  ],
217
- outputs: [
217
+ "outputs": [
218
218
  {
219
- name: '',
220
- type: 'bytes32',
219
+ "name": "",
220
+ "type": "bytes32"
221
221
  },
222
222
  {
223
- name: '',
224
- type: 'uint256',
223
+ "name": "",
224
+ "type": "uint256"
225
225
  },
226
226
  {
227
- name: '',
228
- type: 'uint256',
229
- },
230
- ],
227
+ "name": "",
228
+ "type": "uint256"
229
+ }
230
+ ]
231
231
  },
232
232
  {
233
- stateMutability: 'view',
234
- type: 'function',
235
- name: 'getDepositForYieldHash',
236
- inputs: [
233
+ "stateMutability": "view",
234
+ "type": "function",
235
+ "name": "getDepositForYieldHash",
236
+ "inputs": [
237
237
  {
238
- name: '_agentWrapper',
239
- type: 'address',
238
+ "name": "_agentWrapper",
239
+ "type": "address"
240
240
  },
241
241
  {
242
- name: '_userWallet',
243
- type: 'address',
242
+ "name": "_userWallet",
243
+ "type": "address"
244
244
  },
245
245
  {
246
- name: '_legoId',
247
- type: 'uint256',
246
+ "name": "_legoId",
247
+ "type": "uint256"
248
248
  },
249
249
  {
250
- name: '_asset',
251
- type: 'address',
250
+ "name": "_asset",
251
+ "type": "address"
252
252
  },
253
253
  {
254
- name: '_vaultAddr',
255
- type: 'address',
254
+ "name": "_vaultAddr",
255
+ "type": "address"
256
256
  },
257
257
  {
258
- name: '_amount',
259
- type: 'uint256',
258
+ "name": "_amount",
259
+ "type": "uint256"
260
260
  },
261
261
  {
262
- name: '_extraData',
263
- type: 'bytes32',
262
+ "name": "_extraData",
263
+ "type": "bytes32"
264
264
  },
265
265
  {
266
- name: '_nonce',
267
- type: 'uint256',
266
+ "name": "_nonce",
267
+ "type": "uint256"
268
268
  },
269
269
  {
270
- name: '_expiration',
271
- type: 'uint256',
272
- },
270
+ "name": "_expiration",
271
+ "type": "uint256"
272
+ }
273
273
  ],
274
- outputs: [
274
+ "outputs": [
275
275
  {
276
- name: '',
277
- type: 'bytes32',
276
+ "name": "",
277
+ "type": "bytes32"
278
278
  },
279
279
  {
280
- name: '',
281
- type: 'uint256',
280
+ "name": "",
281
+ "type": "uint256"
282
282
  },
283
283
  {
284
- name: '',
285
- type: 'uint256',
286
- },
287
- ],
284
+ "name": "",
285
+ "type": "uint256"
286
+ }
287
+ ]
288
288
  },
289
289
  {
290
- stateMutability: 'view',
291
- type: 'function',
292
- name: 'getWithdrawFromYieldHash',
293
- inputs: [
290
+ "stateMutability": "view",
291
+ "type": "function",
292
+ "name": "getWithdrawFromYieldHash",
293
+ "inputs": [
294
294
  {
295
- name: '_agentWrapper',
296
- type: 'address',
295
+ "name": "_agentWrapper",
296
+ "type": "address"
297
297
  },
298
298
  {
299
- name: '_userWallet',
300
- type: 'address',
299
+ "name": "_userWallet",
300
+ "type": "address"
301
301
  },
302
302
  {
303
- name: '_legoId',
304
- type: 'uint256',
303
+ "name": "_legoId",
304
+ "type": "uint256"
305
305
  },
306
306
  {
307
- name: '_vaultToken',
308
- type: 'address',
309
- },
307
+ "name": "_vaultToken",
308
+ "type": "address"
309
+ }
310
310
  ],
311
- outputs: [
311
+ "outputs": [
312
312
  {
313
- name: '',
314
- type: 'bytes32',
313
+ "name": "",
314
+ "type": "bytes32"
315
315
  },
316
316
  {
317
- name: '',
318
- type: 'uint256',
317
+ "name": "",
318
+ "type": "uint256"
319
319
  },
320
320
  {
321
- name: '',
322
- type: 'uint256',
323
- },
324
- ],
321
+ "name": "",
322
+ "type": "uint256"
323
+ }
324
+ ]
325
325
  },
326
326
  {
327
- stateMutability: 'view',
328
- type: 'function',
329
- name: 'getWithdrawFromYieldHash',
330
- inputs: [
327
+ "stateMutability": "view",
328
+ "type": "function",
329
+ "name": "getWithdrawFromYieldHash",
330
+ "inputs": [
331
331
  {
332
- name: '_agentWrapper',
333
- type: 'address',
332
+ "name": "_agentWrapper",
333
+ "type": "address"
334
334
  },
335
335
  {
336
- name: '_userWallet',
337
- type: 'address',
336
+ "name": "_userWallet",
337
+ "type": "address"
338
338
  },
339
339
  {
340
- name: '_legoId',
341
- type: 'uint256',
340
+ "name": "_legoId",
341
+ "type": "uint256"
342
342
  },
343
343
  {
344
- name: '_vaultToken',
345
- type: 'address',
344
+ "name": "_vaultToken",
345
+ "type": "address"
346
346
  },
347
347
  {
348
- name: '_amount',
349
- type: 'uint256',
350
- },
348
+ "name": "_amount",
349
+ "type": "uint256"
350
+ }
351
351
  ],
352
- outputs: [
352
+ "outputs": [
353
353
  {
354
- name: '',
355
- type: 'bytes32',
354
+ "name": "",
355
+ "type": "bytes32"
356
356
  },
357
357
  {
358
- name: '',
359
- type: 'uint256',
358
+ "name": "",
359
+ "type": "uint256"
360
360
  },
361
361
  {
362
- name: '',
363
- type: 'uint256',
364
- },
365
- ],
362
+ "name": "",
363
+ "type": "uint256"
364
+ }
365
+ ]
366
366
  },
367
367
  {
368
- stateMutability: 'view',
369
- type: 'function',
370
- name: 'getWithdrawFromYieldHash',
371
- inputs: [
368
+ "stateMutability": "view",
369
+ "type": "function",
370
+ "name": "getWithdrawFromYieldHash",
371
+ "inputs": [
372
372
  {
373
- name: '_agentWrapper',
374
- type: 'address',
373
+ "name": "_agentWrapper",
374
+ "type": "address"
375
375
  },
376
376
  {
377
- name: '_userWallet',
378
- type: 'address',
377
+ "name": "_userWallet",
378
+ "type": "address"
379
379
  },
380
380
  {
381
- name: '_legoId',
382
- type: 'uint256',
381
+ "name": "_legoId",
382
+ "type": "uint256"
383
383
  },
384
384
  {
385
- name: '_vaultToken',
386
- type: 'address',
385
+ "name": "_vaultToken",
386
+ "type": "address"
387
387
  },
388
388
  {
389
- name: '_amount',
390
- type: 'uint256',
389
+ "name": "_amount",
390
+ "type": "uint256"
391
391
  },
392
392
  {
393
- name: '_extraData',
394
- type: 'bytes32',
395
- },
393
+ "name": "_extraData",
394
+ "type": "bytes32"
395
+ }
396
396
  ],
397
- outputs: [
397
+ "outputs": [
398
398
  {
399
- name: '',
400
- type: 'bytes32',
399
+ "name": "",
400
+ "type": "bytes32"
401
401
  },
402
402
  {
403
- name: '',
404
- type: 'uint256',
403
+ "name": "",
404
+ "type": "uint256"
405
405
  },
406
406
  {
407
- name: '',
408
- type: 'uint256',
409
- },
410
- ],
407
+ "name": "",
408
+ "type": "uint256"
409
+ }
410
+ ]
411
411
  },
412
412
  {
413
- stateMutability: 'view',
414
- type: 'function',
415
- name: 'getWithdrawFromYieldHash',
416
- inputs: [
413
+ "stateMutability": "view",
414
+ "type": "function",
415
+ "name": "getWithdrawFromYieldHash",
416
+ "inputs": [
417
417
  {
418
- name: '_agentWrapper',
419
- type: 'address',
418
+ "name": "_agentWrapper",
419
+ "type": "address"
420
420
  },
421
421
  {
422
- name: '_userWallet',
423
- type: 'address',
422
+ "name": "_userWallet",
423
+ "type": "address"
424
424
  },
425
425
  {
426
- name: '_legoId',
427
- type: 'uint256',
426
+ "name": "_legoId",
427
+ "type": "uint256"
428
428
  },
429
429
  {
430
- name: '_vaultToken',
431
- type: 'address',
430
+ "name": "_vaultToken",
431
+ "type": "address"
432
432
  },
433
433
  {
434
- name: '_amount',
435
- type: 'uint256',
434
+ "name": "_amount",
435
+ "type": "uint256"
436
436
  },
437
437
  {
438
- name: '_extraData',
439
- type: 'bytes32',
438
+ "name": "_extraData",
439
+ "type": "bytes32"
440
440
  },
441
441
  {
442
- name: '_nonce',
443
- type: 'uint256',
444
- },
442
+ "name": "_nonce",
443
+ "type": "uint256"
444
+ }
445
445
  ],
446
- outputs: [
446
+ "outputs": [
447
447
  {
448
- name: '',
449
- type: 'bytes32',
448
+ "name": "",
449
+ "type": "bytes32"
450
450
  },
451
451
  {
452
- name: '',
453
- type: 'uint256',
452
+ "name": "",
453
+ "type": "uint256"
454
454
  },
455
455
  {
456
- name: '',
457
- type: 'uint256',
458
- },
459
- ],
456
+ "name": "",
457
+ "type": "uint256"
458
+ }
459
+ ]
460
460
  },
461
461
  {
462
- stateMutability: 'view',
463
- type: 'function',
464
- name: 'getWithdrawFromYieldHash',
465
- inputs: [
462
+ "stateMutability": "view",
463
+ "type": "function",
464
+ "name": "getWithdrawFromYieldHash",
465
+ "inputs": [
466
466
  {
467
- name: '_agentWrapper',
468
- type: 'address',
467
+ "name": "_agentWrapper",
468
+ "type": "address"
469
469
  },
470
470
  {
471
- name: '_userWallet',
472
- type: 'address',
471
+ "name": "_userWallet",
472
+ "type": "address"
473
473
  },
474
474
  {
475
- name: '_legoId',
476
- type: 'uint256',
475
+ "name": "_legoId",
476
+ "type": "uint256"
477
477
  },
478
478
  {
479
- name: '_vaultToken',
480
- type: 'address',
479
+ "name": "_vaultToken",
480
+ "type": "address"
481
481
  },
482
482
  {
483
- name: '_amount',
484
- type: 'uint256',
483
+ "name": "_amount",
484
+ "type": "uint256"
485
485
  },
486
486
  {
487
- name: '_extraData',
488
- type: 'bytes32',
487
+ "name": "_extraData",
488
+ "type": "bytes32"
489
489
  },
490
490
  {
491
- name: '_nonce',
492
- type: 'uint256',
491
+ "name": "_nonce",
492
+ "type": "uint256"
493
493
  },
494
494
  {
495
- name: '_expiration',
496
- type: 'uint256',
497
- },
495
+ "name": "_expiration",
496
+ "type": "uint256"
497
+ }
498
498
  ],
499
- outputs: [
499
+ "outputs": [
500
500
  {
501
- name: '',
502
- type: 'bytes32',
501
+ "name": "",
502
+ "type": "bytes32"
503
503
  },
504
504
  {
505
- name: '',
506
- type: 'uint256',
505
+ "name": "",
506
+ "type": "uint256"
507
507
  },
508
508
  {
509
- name: '',
510
- type: 'uint256',
511
- },
512
- ],
509
+ "name": "",
510
+ "type": "uint256"
511
+ }
512
+ ]
513
513
  },
514
514
  {
515
- stateMutability: 'view',
516
- type: 'function',
517
- name: 'getSwapTokensHash',
518
- inputs: [
515
+ "stateMutability": "view",
516
+ "type": "function",
517
+ "name": "getSwapTokensHash",
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: '_swapInstructions',
529
- type: 'tuple[]',
530
- components: [
528
+ "name": "_swapInstructions",
529
+ "type": "tuple[]",
530
+ "components": [
531
531
  {
532
- name: 'legoId',
533
- type: 'uint256',
532
+ "name": "legoId",
533
+ "type": "uint256"
534
534
  },
535
535
  {
536
- name: 'amountIn',
537
- type: 'uint256',
536
+ "name": "amountIn",
537
+ "type": "uint256"
538
538
  },
539
539
  {
540
- name: 'minAmountOut',
541
- type: 'uint256',
540
+ "name": "minAmountOut",
541
+ "type": "uint256"
542
542
  },
543
543
  {
544
- name: 'tokenPath',
545
- type: 'address[]',
544
+ "name": "tokenPath",
545
+ "type": "address[]"
546
546
  },
547
547
  {
548
- name: 'poolPath',
549
- type: 'address[]',
550
- },
551
- ],
552
- },
548
+ "name": "poolPath",
549
+ "type": "address[]"
550
+ }
551
+ ]
552
+ }
553
553
  ],
554
- outputs: [
554
+ "outputs": [
555
555
  {
556
- name: '',
557
- type: 'bytes32',
556
+ "name": "",
557
+ "type": "bytes32"
558
558
  },
559
559
  {
560
- name: '',
561
- type: 'uint256',
560
+ "name": "",
561
+ "type": "uint256"
562
562
  },
563
563
  {
564
- name: '',
565
- type: 'uint256',
566
- },
567
- ],
564
+ "name": "",
565
+ "type": "uint256"
566
+ }
567
+ ]
568
568
  },
569
569
  {
570
- stateMutability: 'view',
571
- type: 'function',
572
- name: 'getSwapTokensHash',
573
- inputs: [
570
+ "stateMutability": "view",
571
+ "type": "function",
572
+ "name": "getSwapTokensHash",
573
+ "inputs": [
574
574
  {
575
- name: '_agentWrapper',
576
- type: 'address',
575
+ "name": "_agentWrapper",
576
+ "type": "address"
577
577
  },
578
578
  {
579
- name: '_userWallet',
580
- type: 'address',
579
+ "name": "_userWallet",
580
+ "type": "address"
581
581
  },
582
582
  {
583
- name: '_swapInstructions',
584
- type: 'tuple[]',
585
- components: [
583
+ "name": "_swapInstructions",
584
+ "type": "tuple[]",
585
+ "components": [
586
586
  {
587
- name: 'legoId',
588
- type: 'uint256',
587
+ "name": "legoId",
588
+ "type": "uint256"
589
589
  },
590
590
  {
591
- name: 'amountIn',
592
- type: 'uint256',
591
+ "name": "amountIn",
592
+ "type": "uint256"
593
593
  },
594
594
  {
595
- name: 'minAmountOut',
596
- type: 'uint256',
595
+ "name": "minAmountOut",
596
+ "type": "uint256"
597
597
  },
598
598
  {
599
- name: 'tokenPath',
600
- type: 'address[]',
599
+ "name": "tokenPath",
600
+ "type": "address[]"
601
601
  },
602
602
  {
603
- name: 'poolPath',
604
- type: 'address[]',
605
- },
606
- ],
603
+ "name": "poolPath",
604
+ "type": "address[]"
605
+ }
606
+ ]
607
607
  },
608
608
  {
609
- name: '_nonce',
610
- type: 'uint256',
611
- },
609
+ "name": "_nonce",
610
+ "type": "uint256"
611
+ }
612
612
  ],
613
- outputs: [
613
+ "outputs": [
614
614
  {
615
- name: '',
616
- type: 'bytes32',
615
+ "name": "",
616
+ "type": "bytes32"
617
617
  },
618
618
  {
619
- name: '',
620
- type: 'uint256',
619
+ "name": "",
620
+ "type": "uint256"
621
621
  },
622
622
  {
623
- name: '',
624
- type: 'uint256',
625
- },
626
- ],
623
+ "name": "",
624
+ "type": "uint256"
625
+ }
626
+ ]
627
627
  },
628
628
  {
629
- stateMutability: 'view',
630
- type: 'function',
631
- name: 'getSwapTokensHash',
632
- inputs: [
629
+ "stateMutability": "view",
630
+ "type": "function",
631
+ "name": "getSwapTokensHash",
632
+ "inputs": [
633
633
  {
634
- name: '_agentWrapper',
635
- type: 'address',
634
+ "name": "_agentWrapper",
635
+ "type": "address"
636
636
  },
637
637
  {
638
- name: '_userWallet',
639
- type: 'address',
638
+ "name": "_userWallet",
639
+ "type": "address"
640
640
  },
641
641
  {
642
- name: '_swapInstructions',
643
- type: 'tuple[]',
644
- components: [
642
+ "name": "_swapInstructions",
643
+ "type": "tuple[]",
644
+ "components": [
645
645
  {
646
- name: 'legoId',
647
- type: 'uint256',
646
+ "name": "legoId",
647
+ "type": "uint256"
648
648
  },
649
649
  {
650
- name: 'amountIn',
651
- type: 'uint256',
650
+ "name": "amountIn",
651
+ "type": "uint256"
652
652
  },
653
653
  {
654
- name: 'minAmountOut',
655
- type: 'uint256',
654
+ "name": "minAmountOut",
655
+ "type": "uint256"
656
656
  },
657
657
  {
658
- name: 'tokenPath',
659
- type: 'address[]',
658
+ "name": "tokenPath",
659
+ "type": "address[]"
660
660
  },
661
661
  {
662
- name: 'poolPath',
663
- type: 'address[]',
664
- },
665
- ],
662
+ "name": "poolPath",
663
+ "type": "address[]"
664
+ }
665
+ ]
666
666
  },
667
667
  {
668
- name: '_nonce',
669
- type: 'uint256',
668
+ "name": "_nonce",
669
+ "type": "uint256"
670
670
  },
671
671
  {
672
- name: '_expiration',
673
- type: 'uint256',
674
- },
672
+ "name": "_expiration",
673
+ "type": "uint256"
674
+ }
675
675
  ],
676
- outputs: [
676
+ "outputs": [
677
677
  {
678
- name: '',
679
- type: 'bytes32',
678
+ "name": "",
679
+ "type": "bytes32"
680
680
  },
681
681
  {
682
- name: '',
683
- type: 'uint256',
682
+ "name": "",
683
+ "type": "uint256"
684
684
  },
685
685
  {
686
- name: '',
687
- type: 'uint256',
688
- },
689
- ],
686
+ "name": "",
687
+ "type": "uint256"
688
+ }
689
+ ]
690
690
  },
691
691
  {
692
- stateMutability: 'view',
693
- type: 'function',
694
- name: 'getClaimIncentivesHash',
695
- inputs: [
692
+ "stateMutability": "view",
693
+ "type": "function",
694
+ "name": "getClaimIncentivesHash",
695
+ "inputs": [
696
696
  {
697
- name: '_agentWrapper',
698
- type: 'address',
697
+ "name": "_agentWrapper",
698
+ "type": "address"
699
699
  },
700
700
  {
701
- name: '_userWallet',
702
- type: 'address',
701
+ "name": "_userWallet",
702
+ "type": "address"
703
703
  },
704
704
  {
705
- name: '_legoId',
706
- type: 'uint256',
707
- },
705
+ "name": "_legoId",
706
+ "type": "uint256"
707
+ }
708
708
  ],
709
- outputs: [
709
+ "outputs": [
710
710
  {
711
- name: '',
712
- type: 'bytes32',
711
+ "name": "",
712
+ "type": "bytes32"
713
713
  },
714
714
  {
715
- name: '',
716
- type: 'uint256',
715
+ "name": "",
716
+ "type": "uint256"
717
717
  },
718
718
  {
719
- name: '',
720
- type: 'uint256',
721
- },
722
- ],
719
+ "name": "",
720
+ "type": "uint256"
721
+ }
722
+ ]
723
723
  },
724
724
  {
725
- stateMutability: 'view',
726
- type: 'function',
727
- name: 'getClaimIncentivesHash',
728
- inputs: [
725
+ "stateMutability": "view",
726
+ "type": "function",
727
+ "name": "getClaimIncentivesHash",
728
+ "inputs": [
729
729
  {
730
- name: '_agentWrapper',
731
- type: 'address',
730
+ "name": "_agentWrapper",
731
+ "type": "address"
732
732
  },
733
733
  {
734
- name: '_userWallet',
735
- type: 'address',
734
+ "name": "_userWallet",
735
+ "type": "address"
736
736
  },
737
737
  {
738
- name: '_legoId',
739
- type: 'uint256',
738
+ "name": "_legoId",
739
+ "type": "uint256"
740
740
  },
741
741
  {
742
- name: '_rewardToken',
743
- type: 'address',
744
- },
742
+ "name": "_rewardToken",
743
+ "type": "address"
744
+ }
745
745
  ],
746
- outputs: [
746
+ "outputs": [
747
747
  {
748
- name: '',
749
- type: 'bytes32',
748
+ "name": "",
749
+ "type": "bytes32"
750
750
  },
751
751
  {
752
- name: '',
753
- type: 'uint256',
752
+ "name": "",
753
+ "type": "uint256"
754
754
  },
755
755
  {
756
- name: '',
757
- type: 'uint256',
758
- },
759
- ],
756
+ "name": "",
757
+ "type": "uint256"
758
+ }
759
+ ]
760
760
  },
761
761
  {
762
- stateMutability: 'view',
763
- type: 'function',
764
- name: 'getClaimIncentivesHash',
765
- inputs: [
762
+ "stateMutability": "view",
763
+ "type": "function",
764
+ "name": "getClaimIncentivesHash",
765
+ "inputs": [
766
766
  {
767
- name: '_agentWrapper',
768
- type: 'address',
767
+ "name": "_agentWrapper",
768
+ "type": "address"
769
769
  },
770
770
  {
771
- name: '_userWallet',
772
- type: 'address',
771
+ "name": "_userWallet",
772
+ "type": "address"
773
773
  },
774
774
  {
775
- name: '_legoId',
776
- type: 'uint256',
775
+ "name": "_legoId",
776
+ "type": "uint256"
777
777
  },
778
778
  {
779
- name: '_rewardToken',
780
- type: 'address',
779
+ "name": "_rewardToken",
780
+ "type": "address"
781
781
  },
782
782
  {
783
- name: '_rewardAmount',
784
- type: 'uint256',
785
- },
783
+ "name": "_rewardAmount",
784
+ "type": "uint256"
785
+ }
786
786
  ],
787
- outputs: [
787
+ "outputs": [
788
788
  {
789
- name: '',
790
- type: 'bytes32',
789
+ "name": "",
790
+ "type": "bytes32"
791
791
  },
792
792
  {
793
- name: '',
794
- type: 'uint256',
793
+ "name": "",
794
+ "type": "uint256"
795
795
  },
796
796
  {
797
- name: '',
798
- type: 'uint256',
799
- },
800
- ],
797
+ "name": "",
798
+ "type": "uint256"
799
+ }
800
+ ]
801
801
  },
802
802
  {
803
- stateMutability: 'view',
804
- type: 'function',
805
- name: 'getClaimIncentivesHash',
806
- inputs: [
803
+ "stateMutability": "view",
804
+ "type": "function",
805
+ "name": "getClaimIncentivesHash",
806
+ "inputs": [
807
807
  {
808
- name: '_agentWrapper',
809
- type: 'address',
808
+ "name": "_agentWrapper",
809
+ "type": "address"
810
810
  },
811
811
  {
812
- name: '_userWallet',
813
- type: 'address',
812
+ "name": "_userWallet",
813
+ "type": "address"
814
814
  },
815
815
  {
816
- name: '_legoId',
817
- type: 'uint256',
816
+ "name": "_legoId",
817
+ "type": "uint256"
818
818
  },
819
819
  {
820
- name: '_rewardToken',
821
- type: 'address',
820
+ "name": "_rewardToken",
821
+ "type": "address"
822
822
  },
823
823
  {
824
- name: '_rewardAmount',
825
- type: 'uint256',
824
+ "name": "_rewardAmount",
825
+ "type": "uint256"
826
826
  },
827
827
  {
828
- name: '_proofs',
829
- type: 'bytes32[]',
830
- },
828
+ "name": "_proofs",
829
+ "type": "bytes32[]"
830
+ }
831
831
  ],
832
- outputs: [
832
+ "outputs": [
833
833
  {
834
- name: '',
835
- type: 'bytes32',
834
+ "name": "",
835
+ "type": "bytes32"
836
836
  },
837
837
  {
838
- name: '',
839
- type: 'uint256',
838
+ "name": "",
839
+ "type": "uint256"
840
840
  },
841
841
  {
842
- name: '',
843
- type: 'uint256',
844
- },
845
- ],
842
+ "name": "",
843
+ "type": "uint256"
844
+ }
845
+ ]
846
846
  },
847
847
  {
848
- stateMutability: 'view',
849
- type: 'function',
850
- name: 'getClaimIncentivesHash',
851
- inputs: [
848
+ "stateMutability": "view",
849
+ "type": "function",
850
+ "name": "getClaimIncentivesHash",
851
+ "inputs": [
852
852
  {
853
- name: '_agentWrapper',
854
- type: 'address',
853
+ "name": "_agentWrapper",
854
+ "type": "address"
855
855
  },
856
856
  {
857
- name: '_userWallet',
858
- type: 'address',
857
+ "name": "_userWallet",
858
+ "type": "address"
859
859
  },
860
860
  {
861
- name: '_legoId',
862
- type: 'uint256',
861
+ "name": "_legoId",
862
+ "type": "uint256"
863
863
  },
864
864
  {
865
- name: '_rewardToken',
866
- type: 'address',
865
+ "name": "_rewardToken",
866
+ "type": "address"
867
867
  },
868
868
  {
869
- name: '_rewardAmount',
870
- type: 'uint256',
869
+ "name": "_rewardAmount",
870
+ "type": "uint256"
871
871
  },
872
872
  {
873
- name: '_proofs',
874
- type: 'bytes32[]',
873
+ "name": "_proofs",
874
+ "type": "bytes32[]"
875
875
  },
876
876
  {
877
- name: '_nonce',
878
- type: 'uint256',
879
- },
877
+ "name": "_nonce",
878
+ "type": "uint256"
879
+ }
880
880
  ],
881
- outputs: [
881
+ "outputs": [
882
882
  {
883
- name: '',
884
- type: 'bytes32',
883
+ "name": "",
884
+ "type": "bytes32"
885
885
  },
886
886
  {
887
- name: '',
888
- type: 'uint256',
887
+ "name": "",
888
+ "type": "uint256"
889
889
  },
890
890
  {
891
- name: '',
892
- type: 'uint256',
893
- },
894
- ],
891
+ "name": "",
892
+ "type": "uint256"
893
+ }
894
+ ]
895
895
  },
896
896
  {
897
- stateMutability: 'view',
898
- type: 'function',
899
- name: 'getClaimIncentivesHash',
900
- inputs: [
897
+ "stateMutability": "view",
898
+ "type": "function",
899
+ "name": "getClaimIncentivesHash",
900
+ "inputs": [
901
901
  {
902
- name: '_agentWrapper',
903
- type: 'address',
902
+ "name": "_agentWrapper",
903
+ "type": "address"
904
904
  },
905
905
  {
906
- name: '_userWallet',
907
- type: 'address',
906
+ "name": "_userWallet",
907
+ "type": "address"
908
908
  },
909
909
  {
910
- name: '_legoId',
911
- type: 'uint256',
910
+ "name": "_legoId",
911
+ "type": "uint256"
912
912
  },
913
913
  {
914
- name: '_rewardToken',
915
- type: 'address',
914
+ "name": "_rewardToken",
915
+ "type": "address"
916
916
  },
917
917
  {
918
- name: '_rewardAmount',
919
- type: 'uint256',
918
+ "name": "_rewardAmount",
919
+ "type": "uint256"
920
920
  },
921
921
  {
922
- name: '_proofs',
923
- type: 'bytes32[]',
922
+ "name": "_proofs",
923
+ "type": "bytes32[]"
924
924
  },
925
925
  {
926
- name: '_nonce',
927
- type: 'uint256',
926
+ "name": "_nonce",
927
+ "type": "uint256"
928
928
  },
929
929
  {
930
- name: '_expiration',
931
- type: 'uint256',
932
- },
930
+ "name": "_expiration",
931
+ "type": "uint256"
932
+ }
933
933
  ],
934
- outputs: [
934
+ "outputs": [
935
935
  {
936
- name: '',
937
- type: 'bytes32',
936
+ "name": "",
937
+ "type": "bytes32"
938
938
  },
939
939
  {
940
- name: '',
941
- type: 'uint256',
940
+ "name": "",
941
+ "type": "uint256"
942
942
  },
943
943
  {
944
- name: '',
945
- type: 'uint256',
946
- },
947
- ],
944
+ "name": "",
945
+ "type": "uint256"
946
+ }
947
+ ]
948
948
  },
949
949
  {
950
- stateMutability: 'view',
951
- type: 'function',
952
- name: 'getBatchActionsHash',
953
- inputs: [
950
+ "stateMutability": "view",
951
+ "type": "function",
952
+ "name": "getBatchActionsHash",
953
+ "inputs": [
954
954
  {
955
- name: '_agentWrapper',
956
- type: 'address',
955
+ "name": "_agentWrapper",
956
+ "type": "address"
957
957
  },
958
958
  {
959
- name: '_userWallet',
960
- type: 'address',
959
+ "name": "_userWallet",
960
+ "type": "address"
961
961
  },
962
962
  {
963
- name: '_instructions',
964
- type: 'tuple[]',
965
- components: [
963
+ "name": "_instructions",
964
+ "type": "tuple[]",
965
+ "components": [
966
966
  {
967
- name: 'usePrevAmountOut',
968
- type: 'bool',
967
+ "name": "usePrevAmountOut",
968
+ "type": "bool"
969
969
  },
970
970
  {
971
- name: 'action',
972
- type: 'uint8',
971
+ "name": "action",
972
+ "type": "uint8"
973
973
  },
974
974
  {
975
- name: 'legoId',
976
- type: 'uint16',
975
+ "name": "legoId",
976
+ "type": "uint16"
977
977
  },
978
978
  {
979
- name: 'asset',
980
- type: 'address',
979
+ "name": "asset",
980
+ "type": "address"
981
981
  },
982
982
  {
983
- name: 'target',
984
- type: 'address',
983
+ "name": "target",
984
+ "type": "address"
985
985
  },
986
986
  {
987
- name: 'amount',
988
- type: 'uint256',
987
+ "name": "amount",
988
+ "type": "uint256"
989
989
  },
990
990
  {
991
- name: 'extraData',
992
- type: 'bytes32',
993
- },
994
- ],
995
- },
991
+ "name": "extraData",
992
+ "type": "bytes32"
993
+ }
994
+ ]
995
+ }
996
996
  ],
997
- outputs: [
997
+ "outputs": [
998
998
  {
999
- name: '',
1000
- type: 'bytes32',
999
+ "name": "",
1000
+ "type": "bytes32"
1001
1001
  },
1002
1002
  {
1003
- name: '',
1004
- type: 'uint256',
1003
+ "name": "",
1004
+ "type": "uint256"
1005
1005
  },
1006
1006
  {
1007
- name: '',
1008
- type: 'uint256',
1009
- },
1010
- ],
1007
+ "name": "",
1008
+ "type": "uint256"
1009
+ }
1010
+ ]
1011
1011
  },
1012
1012
  {
1013
- stateMutability: 'view',
1014
- type: 'function',
1015
- name: 'getBatchActionsHash',
1016
- inputs: [
1013
+ "stateMutability": "view",
1014
+ "type": "function",
1015
+ "name": "getBatchActionsHash",
1016
+ "inputs": [
1017
1017
  {
1018
- name: '_agentWrapper',
1019
- type: 'address',
1018
+ "name": "_agentWrapper",
1019
+ "type": "address"
1020
1020
  },
1021
1021
  {
1022
- name: '_userWallet',
1023
- type: 'address',
1022
+ "name": "_userWallet",
1023
+ "type": "address"
1024
1024
  },
1025
1025
  {
1026
- name: '_instructions',
1027
- type: 'tuple[]',
1028
- components: [
1026
+ "name": "_instructions",
1027
+ "type": "tuple[]",
1028
+ "components": [
1029
1029
  {
1030
- name: 'usePrevAmountOut',
1031
- type: 'bool',
1030
+ "name": "usePrevAmountOut",
1031
+ "type": "bool"
1032
1032
  },
1033
1033
  {
1034
- name: 'action',
1035
- type: 'uint8',
1034
+ "name": "action",
1035
+ "type": "uint8"
1036
1036
  },
1037
1037
  {
1038
- name: 'legoId',
1039
- type: 'uint16',
1038
+ "name": "legoId",
1039
+ "type": "uint16"
1040
1040
  },
1041
1041
  {
1042
- name: 'asset',
1043
- type: 'address',
1042
+ "name": "asset",
1043
+ "type": "address"
1044
1044
  },
1045
1045
  {
1046
- name: 'target',
1047
- type: 'address',
1046
+ "name": "target",
1047
+ "type": "address"
1048
1048
  },
1049
1049
  {
1050
- name: 'amount',
1051
- type: 'uint256',
1050
+ "name": "amount",
1051
+ "type": "uint256"
1052
1052
  },
1053
1053
  {
1054
- name: 'extraData',
1055
- type: 'bytes32',
1056
- },
1057
- ],
1054
+ "name": "extraData",
1055
+ "type": "bytes32"
1056
+ }
1057
+ ]
1058
1058
  },
1059
1059
  {
1060
- name: '_nonce',
1061
- type: 'uint256',
1062
- },
1060
+ "name": "_nonce",
1061
+ "type": "uint256"
1062
+ }
1063
1063
  ],
1064
- outputs: [
1064
+ "outputs": [
1065
1065
  {
1066
- name: '',
1067
- type: 'bytes32',
1066
+ "name": "",
1067
+ "type": "bytes32"
1068
1068
  },
1069
1069
  {
1070
- name: '',
1071
- type: 'uint256',
1070
+ "name": "",
1071
+ "type": "uint256"
1072
1072
  },
1073
1073
  {
1074
- name: '',
1075
- type: 'uint256',
1076
- },
1077
- ],
1074
+ "name": "",
1075
+ "type": "uint256"
1076
+ }
1077
+ ]
1078
1078
  },
1079
1079
  {
1080
- stateMutability: 'view',
1081
- type: 'function',
1082
- name: 'getBatchActionsHash',
1083
- inputs: [
1080
+ "stateMutability": "view",
1081
+ "type": "function",
1082
+ "name": "getBatchActionsHash",
1083
+ "inputs": [
1084
1084
  {
1085
- name: '_agentWrapper',
1086
- type: 'address',
1085
+ "name": "_agentWrapper",
1086
+ "type": "address"
1087
1087
  },
1088
1088
  {
1089
- name: '_userWallet',
1090
- type: 'address',
1089
+ "name": "_userWallet",
1090
+ "type": "address"
1091
1091
  },
1092
1092
  {
1093
- name: '_instructions',
1094
- type: 'tuple[]',
1095
- components: [
1093
+ "name": "_instructions",
1094
+ "type": "tuple[]",
1095
+ "components": [
1096
1096
  {
1097
- name: 'usePrevAmountOut',
1098
- type: 'bool',
1097
+ "name": "usePrevAmountOut",
1098
+ "type": "bool"
1099
1099
  },
1100
1100
  {
1101
- name: 'action',
1102
- type: 'uint8',
1101
+ "name": "action",
1102
+ "type": "uint8"
1103
1103
  },
1104
1104
  {
1105
- name: 'legoId',
1106
- type: 'uint16',
1105
+ "name": "legoId",
1106
+ "type": "uint16"
1107
1107
  },
1108
1108
  {
1109
- name: 'asset',
1110
- type: 'address',
1109
+ "name": "asset",
1110
+ "type": "address"
1111
1111
  },
1112
1112
  {
1113
- name: 'target',
1114
- type: 'address',
1113
+ "name": "target",
1114
+ "type": "address"
1115
1115
  },
1116
1116
  {
1117
- name: 'amount',
1118
- type: 'uint256',
1117
+ "name": "amount",
1118
+ "type": "uint256"
1119
1119
  },
1120
1120
  {
1121
- name: 'extraData',
1122
- type: 'bytes32',
1123
- },
1124
- ],
1121
+ "name": "extraData",
1122
+ "type": "bytes32"
1123
+ }
1124
+ ]
1125
1125
  },
1126
1126
  {
1127
- name: '_nonce',
1128
- type: 'uint256',
1127
+ "name": "_nonce",
1128
+ "type": "uint256"
1129
1129
  },
1130
1130
  {
1131
- name: '_expiration',
1132
- type: 'uint256',
1133
- },
1131
+ "name": "_expiration",
1132
+ "type": "uint256"
1133
+ }
1134
1134
  ],
1135
- outputs: [
1135
+ "outputs": [
1136
1136
  {
1137
- name: '',
1138
- type: 'bytes32',
1137
+ "name": "",
1138
+ "type": "bytes32"
1139
1139
  },
1140
1140
  {
1141
- name: '',
1142
- type: 'uint256',
1141
+ "name": "",
1142
+ "type": "uint256"
1143
1143
  },
1144
1144
  {
1145
- name: '',
1146
- type: 'uint256',
1147
- },
1148
- ],
1149
- },
1145
+ "name": "",
1146
+ "type": "uint256"
1147
+ }
1148
+ ]
1149
+ }
1150
1150
  ];
1151
1151
  export const deployAddress = '0x2E9e0BB2A734d0B025843FAf27CbfF648E848F8B';
1152
1152
  function getRequest(method, args, contractAddressOrOptions) {