@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
@@ -3,1187 +3,1187 @@
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: [
198
- {
199
- name: '',
200
- type: 'tuple',
201
- components: [
193
+ "stateMutability": "view",
194
+ "type": "function",
195
+ "name": "pendingOwner",
196
+ "inputs": [],
197
+ "outputs": [
198
+ {
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: 'depositForYield',
246
- inputs: [
243
+ "stateMutability": "nonpayable",
244
+ "type": "function",
245
+ "name": "depositForYield",
246
+ "inputs": [
247
247
  {
248
- name: '_userWallet',
249
- type: 'address',
248
+ "name": "_userWallet",
249
+ "type": "address"
250
250
  },
251
251
  {
252
- name: '_legoId',
253
- type: 'uint256',
252
+ "name": "_legoId",
253
+ "type": "uint256"
254
254
  },
255
255
  {
256
- name: '_asset',
257
- type: 'address',
258
- },
256
+ "name": "_asset",
257
+ "type": "address"
258
+ }
259
259
  ],
260
- outputs: [
260
+ "outputs": [
261
261
  {
262
- name: '',
263
- type: 'uint256',
262
+ "name": "",
263
+ "type": "uint256"
264
264
  },
265
265
  {
266
- name: '',
267
- type: 'address',
266
+ "name": "",
267
+ "type": "address"
268
268
  },
269
269
  {
270
- name: '',
271
- type: 'uint256',
270
+ "name": "",
271
+ "type": "uint256"
272
272
  },
273
273
  {
274
- name: '',
275
- type: 'uint256',
276
- },
277
- ],
274
+ "name": "",
275
+ "type": "uint256"
276
+ }
277
+ ]
278
278
  },
279
279
  {
280
- stateMutability: 'nonpayable',
281
- type: 'function',
282
- name: 'depositForYield',
283
- inputs: [
280
+ "stateMutability": "nonpayable",
281
+ "type": "function",
282
+ "name": "depositForYield",
283
+ "inputs": [
284
284
  {
285
- name: '_userWallet',
286
- type: 'address',
285
+ "name": "_userWallet",
286
+ "type": "address"
287
287
  },
288
288
  {
289
- name: '_legoId',
290
- type: 'uint256',
289
+ "name": "_legoId",
290
+ "type": "uint256"
291
291
  },
292
292
  {
293
- name: '_asset',
294
- type: 'address',
293
+ "name": "_asset",
294
+ "type": "address"
295
295
  },
296
296
  {
297
- name: '_vaultAddr',
298
- type: 'address',
299
- },
297
+ "name": "_vaultAddr",
298
+ "type": "address"
299
+ }
300
300
  ],
301
- outputs: [
301
+ "outputs": [
302
302
  {
303
- name: '',
304
- type: 'uint256',
303
+ "name": "",
304
+ "type": "uint256"
305
305
  },
306
306
  {
307
- name: '',
308
- type: 'address',
307
+ "name": "",
308
+ "type": "address"
309
309
  },
310
310
  {
311
- name: '',
312
- type: 'uint256',
311
+ "name": "",
312
+ "type": "uint256"
313
313
  },
314
314
  {
315
- name: '',
316
- type: 'uint256',
317
- },
318
- ],
315
+ "name": "",
316
+ "type": "uint256"
317
+ }
318
+ ]
319
319
  },
320
320
  {
321
- stateMutability: 'nonpayable',
322
- type: 'function',
323
- name: 'depositForYield',
324
- inputs: [
321
+ "stateMutability": "nonpayable",
322
+ "type": "function",
323
+ "name": "depositForYield",
324
+ "inputs": [
325
325
  {
326
- name: '_userWallet',
327
- type: 'address',
326
+ "name": "_userWallet",
327
+ "type": "address"
328
328
  },
329
329
  {
330
- name: '_legoId',
331
- type: 'uint256',
330
+ "name": "_legoId",
331
+ "type": "uint256"
332
332
  },
333
333
  {
334
- name: '_asset',
335
- type: 'address',
334
+ "name": "_asset",
335
+ "type": "address"
336
336
  },
337
337
  {
338
- name: '_vaultAddr',
339
- type: 'address',
338
+ "name": "_vaultAddr",
339
+ "type": "address"
340
340
  },
341
341
  {
342
- name: '_amount',
343
- type: 'uint256',
344
- },
342
+ "name": "_amount",
343
+ "type": "uint256"
344
+ }
345
345
  ],
346
- outputs: [
346
+ "outputs": [
347
347
  {
348
- name: '',
349
- type: 'uint256',
348
+ "name": "",
349
+ "type": "uint256"
350
350
  },
351
351
  {
352
- name: '',
353
- type: 'address',
352
+ "name": "",
353
+ "type": "address"
354
354
  },
355
355
  {
356
- name: '',
357
- type: 'uint256',
356
+ "name": "",
357
+ "type": "uint256"
358
358
  },
359
359
  {
360
- name: '',
361
- type: 'uint256',
362
- },
363
- ],
360
+ "name": "",
361
+ "type": "uint256"
362
+ }
363
+ ]
364
364
  },
365
365
  {
366
- stateMutability: 'nonpayable',
367
- type: 'function',
368
- name: 'depositForYield',
369
- inputs: [
366
+ "stateMutability": "nonpayable",
367
+ "type": "function",
368
+ "name": "depositForYield",
369
+ "inputs": [
370
370
  {
371
- name: '_userWallet',
372
- type: 'address',
371
+ "name": "_userWallet",
372
+ "type": "address"
373
373
  },
374
374
  {
375
- name: '_legoId',
376
- type: 'uint256',
375
+ "name": "_legoId",
376
+ "type": "uint256"
377
377
  },
378
378
  {
379
- name: '_asset',
380
- type: 'address',
379
+ "name": "_asset",
380
+ "type": "address"
381
381
  },
382
382
  {
383
- name: '_vaultAddr',
384
- type: 'address',
383
+ "name": "_vaultAddr",
384
+ "type": "address"
385
385
  },
386
386
  {
387
- name: '_amount',
388
- type: 'uint256',
387
+ "name": "_amount",
388
+ "type": "uint256"
389
389
  },
390
390
  {
391
- name: '_extraData',
392
- type: 'bytes32',
393
- },
391
+ "name": "_extraData",
392
+ "type": "bytes32"
393
+ }
394
394
  ],
395
- outputs: [
395
+ "outputs": [
396
396
  {
397
- name: '',
398
- type: 'uint256',
397
+ "name": "",
398
+ "type": "uint256"
399
399
  },
400
400
  {
401
- name: '',
402
- type: 'address',
401
+ "name": "",
402
+ "type": "address"
403
403
  },
404
404
  {
405
- name: '',
406
- type: 'uint256',
405
+ "name": "",
406
+ "type": "uint256"
407
407
  },
408
408
  {
409
- name: '',
410
- type: 'uint256',
411
- },
412
- ],
409
+ "name": "",
410
+ "type": "uint256"
411
+ }
412
+ ]
413
413
  },
414
414
  {
415
- stateMutability: 'nonpayable',
416
- type: 'function',
417
- name: 'depositForYield',
418
- inputs: [
415
+ "stateMutability": "nonpayable",
416
+ "type": "function",
417
+ "name": "depositForYield",
418
+ "inputs": [
419
419
  {
420
- name: '_userWallet',
421
- type: 'address',
420
+ "name": "_userWallet",
421
+ "type": "address"
422
422
  },
423
423
  {
424
- name: '_legoId',
425
- type: 'uint256',
424
+ "name": "_legoId",
425
+ "type": "uint256"
426
426
  },
427
427
  {
428
- name: '_asset',
429
- type: 'address',
428
+ "name": "_asset",
429
+ "type": "address"
430
430
  },
431
431
  {
432
- name: '_vaultAddr',
433
- type: 'address',
432
+ "name": "_vaultAddr",
433
+ "type": "address"
434
434
  },
435
435
  {
436
- name: '_amount',
437
- type: 'uint256',
436
+ "name": "_amount",
437
+ "type": "uint256"
438
438
  },
439
439
  {
440
- name: '_extraData',
441
- type: 'bytes32',
440
+ "name": "_extraData",
441
+ "type": "bytes32"
442
442
  },
443
443
  {
444
- name: '_sig',
445
- type: 'tuple',
446
- components: [
444
+ "name": "_sig",
445
+ "type": "tuple",
446
+ "components": [
447
447
  {
448
- name: 'signature',
449
- type: 'bytes',
448
+ "name": "signature",
449
+ "type": "bytes"
450
450
  },
451
451
  {
452
- name: 'nonce',
453
- type: 'uint256',
452
+ "name": "nonce",
453
+ "type": "uint256"
454
454
  },
455
455
  {
456
- name: 'expiration',
457
- type: 'uint256',
458
- },
459
- ],
460
- },
456
+ "name": "expiration",
457
+ "type": "uint256"
458
+ }
459
+ ]
460
+ }
461
461
  ],
462
- outputs: [
462
+ "outputs": [
463
463
  {
464
- name: '',
465
- type: 'uint256',
464
+ "name": "",
465
+ "type": "uint256"
466
466
  },
467
467
  {
468
- name: '',
469
- type: 'address',
468
+ "name": "",
469
+ "type": "address"
470
470
  },
471
471
  {
472
- name: '',
473
- type: 'uint256',
472
+ "name": "",
473
+ "type": "uint256"
474
474
  },
475
475
  {
476
- name: '',
477
- type: 'uint256',
478
- },
479
- ],
476
+ "name": "",
477
+ "type": "uint256"
478
+ }
479
+ ]
480
480
  },
481
481
  {
482
- stateMutability: 'nonpayable',
483
- type: 'function',
484
- name: 'withdrawFromYield',
485
- inputs: [
482
+ "stateMutability": "nonpayable",
483
+ "type": "function",
484
+ "name": "withdrawFromYield",
485
+ "inputs": [
486
486
  {
487
- name: '_userWallet',
488
- type: 'address',
487
+ "name": "_userWallet",
488
+ "type": "address"
489
489
  },
490
490
  {
491
- name: '_legoId',
492
- type: 'uint256',
491
+ "name": "_legoId",
492
+ "type": "uint256"
493
493
  },
494
494
  {
495
- name: '_vaultToken',
496
- type: 'address',
497
- },
495
+ "name": "_vaultToken",
496
+ "type": "address"
497
+ }
498
498
  ],
499
- outputs: [
499
+ "outputs": [
500
500
  {
501
- name: '',
502
- type: 'uint256',
501
+ "name": "",
502
+ "type": "uint256"
503
503
  },
504
504
  {
505
- name: '',
506
- type: 'address',
505
+ "name": "",
506
+ "type": "address"
507
507
  },
508
508
  {
509
- name: '',
510
- type: 'uint256',
509
+ "name": "",
510
+ "type": "uint256"
511
511
  },
512
512
  {
513
- name: '',
514
- type: 'uint256',
515
- },
516
- ],
513
+ "name": "",
514
+ "type": "uint256"
515
+ }
516
+ ]
517
517
  },
518
518
  {
519
- stateMutability: 'nonpayable',
520
- type: 'function',
521
- name: 'withdrawFromYield',
522
- inputs: [
519
+ "stateMutability": "nonpayable",
520
+ "type": "function",
521
+ "name": "withdrawFromYield",
522
+ "inputs": [
523
523
  {
524
- name: '_userWallet',
525
- type: 'address',
524
+ "name": "_userWallet",
525
+ "type": "address"
526
526
  },
527
527
  {
528
- name: '_legoId',
529
- type: 'uint256',
528
+ "name": "_legoId",
529
+ "type": "uint256"
530
530
  },
531
531
  {
532
- name: '_vaultToken',
533
- type: 'address',
532
+ "name": "_vaultToken",
533
+ "type": "address"
534
534
  },
535
535
  {
536
- name: '_amount',
537
- type: 'uint256',
538
- },
536
+ "name": "_amount",
537
+ "type": "uint256"
538
+ }
539
539
  ],
540
- outputs: [
540
+ "outputs": [
541
541
  {
542
- name: '',
543
- type: 'uint256',
542
+ "name": "",
543
+ "type": "uint256"
544
544
  },
545
545
  {
546
- name: '',
547
- type: 'address',
546
+ "name": "",
547
+ "type": "address"
548
548
  },
549
549
  {
550
- name: '',
551
- type: 'uint256',
550
+ "name": "",
551
+ "type": "uint256"
552
552
  },
553
553
  {
554
- name: '',
555
- type: 'uint256',
556
- },
557
- ],
554
+ "name": "",
555
+ "type": "uint256"
556
+ }
557
+ ]
558
558
  },
559
559
  {
560
- stateMutability: 'nonpayable',
561
- type: 'function',
562
- name: 'withdrawFromYield',
563
- inputs: [
560
+ "stateMutability": "nonpayable",
561
+ "type": "function",
562
+ "name": "withdrawFromYield",
563
+ "inputs": [
564
564
  {
565
- name: '_userWallet',
566
- type: 'address',
565
+ "name": "_userWallet",
566
+ "type": "address"
567
567
  },
568
568
  {
569
- name: '_legoId',
570
- type: 'uint256',
569
+ "name": "_legoId",
570
+ "type": "uint256"
571
571
  },
572
572
  {
573
- name: '_vaultToken',
574
- type: 'address',
573
+ "name": "_vaultToken",
574
+ "type": "address"
575
575
  },
576
576
  {
577
- name: '_amount',
578
- type: 'uint256',
577
+ "name": "_amount",
578
+ "type": "uint256"
579
579
  },
580
580
  {
581
- name: '_extraData',
582
- type: 'bytes32',
583
- },
581
+ "name": "_extraData",
582
+ "type": "bytes32"
583
+ }
584
584
  ],
585
- outputs: [
585
+ "outputs": [
586
586
  {
587
- name: '',
588
- type: 'uint256',
587
+ "name": "",
588
+ "type": "uint256"
589
589
  },
590
590
  {
591
- name: '',
592
- type: 'address',
591
+ "name": "",
592
+ "type": "address"
593
593
  },
594
594
  {
595
- name: '',
596
- type: 'uint256',
595
+ "name": "",
596
+ "type": "uint256"
597
597
  },
598
598
  {
599
- name: '',
600
- type: 'uint256',
601
- },
602
- ],
599
+ "name": "",
600
+ "type": "uint256"
601
+ }
602
+ ]
603
603
  },
604
604
  {
605
- stateMutability: 'nonpayable',
606
- type: 'function',
607
- name: 'withdrawFromYield',
608
- inputs: [
605
+ "stateMutability": "nonpayable",
606
+ "type": "function",
607
+ "name": "withdrawFromYield",
608
+ "inputs": [
609
609
  {
610
- name: '_userWallet',
611
- type: 'address',
610
+ "name": "_userWallet",
611
+ "type": "address"
612
612
  },
613
613
  {
614
- name: '_legoId',
615
- type: 'uint256',
614
+ "name": "_legoId",
615
+ "type": "uint256"
616
616
  },
617
617
  {
618
- name: '_vaultToken',
619
- type: 'address',
618
+ "name": "_vaultToken",
619
+ "type": "address"
620
620
  },
621
621
  {
622
- name: '_amount',
623
- type: 'uint256',
622
+ "name": "_amount",
623
+ "type": "uint256"
624
624
  },
625
625
  {
626
- name: '_extraData',
627
- type: 'bytes32',
626
+ "name": "_extraData",
627
+ "type": "bytes32"
628
628
  },
629
629
  {
630
- name: '_sig',
631
- type: 'tuple',
632
- components: [
630
+ "name": "_sig",
631
+ "type": "tuple",
632
+ "components": [
633
633
  {
634
- name: 'signature',
635
- type: 'bytes',
634
+ "name": "signature",
635
+ "type": "bytes"
636
636
  },
637
637
  {
638
- name: 'nonce',
639
- type: 'uint256',
638
+ "name": "nonce",
639
+ "type": "uint256"
640
640
  },
641
641
  {
642
- name: 'expiration',
643
- type: 'uint256',
644
- },
645
- ],
646
- },
642
+ "name": "expiration",
643
+ "type": "uint256"
644
+ }
645
+ ]
646
+ }
647
647
  ],
648
- outputs: [
648
+ "outputs": [
649
649
  {
650
- name: '',
651
- type: 'uint256',
650
+ "name": "",
651
+ "type": "uint256"
652
652
  },
653
653
  {
654
- name: '',
655
- type: 'address',
654
+ "name": "",
655
+ "type": "address"
656
656
  },
657
657
  {
658
- name: '',
659
- type: 'uint256',
658
+ "name": "",
659
+ "type": "uint256"
660
660
  },
661
661
  {
662
- name: '',
663
- type: 'uint256',
664
- },
665
- ],
662
+ "name": "",
663
+ "type": "uint256"
664
+ }
665
+ ]
666
666
  },
667
667
  {
668
- stateMutability: 'nonpayable',
669
- type: 'function',
670
- name: 'swapTokens',
671
- inputs: [
668
+ "stateMutability": "nonpayable",
669
+ "type": "function",
670
+ "name": "swapTokens",
671
+ "inputs": [
672
672
  {
673
- name: '_userWallet',
674
- type: 'address',
673
+ "name": "_userWallet",
674
+ "type": "address"
675
675
  },
676
676
  {
677
- name: '_swapInstructions',
678
- type: 'tuple[]',
679
- components: [
677
+ "name": "_swapInstructions",
678
+ "type": "tuple[]",
679
+ "components": [
680
680
  {
681
- name: 'legoId',
682
- type: 'uint256',
681
+ "name": "legoId",
682
+ "type": "uint256"
683
683
  },
684
684
  {
685
- name: 'amountIn',
686
- type: 'uint256',
685
+ "name": "amountIn",
686
+ "type": "uint256"
687
687
  },
688
688
  {
689
- name: 'minAmountOut',
690
- type: 'uint256',
689
+ "name": "minAmountOut",
690
+ "type": "uint256"
691
691
  },
692
692
  {
693
- name: 'tokenPath',
694
- type: 'address[]',
693
+ "name": "tokenPath",
694
+ "type": "address[]"
695
695
  },
696
696
  {
697
- name: 'poolPath',
698
- type: 'address[]',
699
- },
700
- ],
701
- },
697
+ "name": "poolPath",
698
+ "type": "address[]"
699
+ }
700
+ ]
701
+ }
702
702
  ],
703
- outputs: [
703
+ "outputs": [
704
704
  {
705
- name: '',
706
- type: 'address',
705
+ "name": "",
706
+ "type": "address"
707
707
  },
708
708
  {
709
- name: '',
710
- type: 'uint256',
709
+ "name": "",
710
+ "type": "uint256"
711
711
  },
712
712
  {
713
- name: '',
714
- type: 'address',
713
+ "name": "",
714
+ "type": "address"
715
715
  },
716
716
  {
717
- name: '',
718
- type: 'uint256',
717
+ "name": "",
718
+ "type": "uint256"
719
719
  },
720
720
  {
721
- name: '',
722
- type: 'uint256',
723
- },
724
- ],
721
+ "name": "",
722
+ "type": "uint256"
723
+ }
724
+ ]
725
725
  },
726
726
  {
727
- stateMutability: 'nonpayable',
728
- type: 'function',
729
- name: 'swapTokens',
730
- inputs: [
727
+ "stateMutability": "nonpayable",
728
+ "type": "function",
729
+ "name": "swapTokens",
730
+ "inputs": [
731
731
  {
732
- name: '_userWallet',
733
- type: 'address',
732
+ "name": "_userWallet",
733
+ "type": "address"
734
734
  },
735
735
  {
736
- name: '_swapInstructions',
737
- type: 'tuple[]',
738
- components: [
736
+ "name": "_swapInstructions",
737
+ "type": "tuple[]",
738
+ "components": [
739
739
  {
740
- name: 'legoId',
741
- type: 'uint256',
740
+ "name": "legoId",
741
+ "type": "uint256"
742
742
  },
743
743
  {
744
- name: 'amountIn',
745
- type: 'uint256',
744
+ "name": "amountIn",
745
+ "type": "uint256"
746
746
  },
747
747
  {
748
- name: 'minAmountOut',
749
- type: 'uint256',
748
+ "name": "minAmountOut",
749
+ "type": "uint256"
750
750
  },
751
751
  {
752
- name: 'tokenPath',
753
- type: 'address[]',
752
+ "name": "tokenPath",
753
+ "type": "address[]"
754
754
  },
755
755
  {
756
- name: 'poolPath',
757
- type: 'address[]',
758
- },
759
- ],
756
+ "name": "poolPath",
757
+ "type": "address[]"
758
+ }
759
+ ]
760
760
  },
761
761
  {
762
- name: '_sig',
763
- type: 'tuple',
764
- components: [
762
+ "name": "_sig",
763
+ "type": "tuple",
764
+ "components": [
765
765
  {
766
- name: 'signature',
767
- type: 'bytes',
766
+ "name": "signature",
767
+ "type": "bytes"
768
768
  },
769
769
  {
770
- name: 'nonce',
771
- type: 'uint256',
770
+ "name": "nonce",
771
+ "type": "uint256"
772
772
  },
773
773
  {
774
- name: 'expiration',
775
- type: 'uint256',
776
- },
777
- ],
778
- },
774
+ "name": "expiration",
775
+ "type": "uint256"
776
+ }
777
+ ]
778
+ }
779
779
  ],
780
- outputs: [
780
+ "outputs": [
781
781
  {
782
- name: '',
783
- type: 'address',
782
+ "name": "",
783
+ "type": "address"
784
784
  },
785
785
  {
786
- name: '',
787
- type: 'uint256',
786
+ "name": "",
787
+ "type": "uint256"
788
788
  },
789
789
  {
790
- name: '',
791
- type: 'address',
790
+ "name": "",
791
+ "type": "address"
792
792
  },
793
793
  {
794
- name: '',
795
- type: 'uint256',
794
+ "name": "",
795
+ "type": "uint256"
796
796
  },
797
797
  {
798
- name: '',
799
- type: 'uint256',
800
- },
801
- ],
798
+ "name": "",
799
+ "type": "uint256"
800
+ }
801
+ ]
802
802
  },
803
803
  {
804
- stateMutability: 'nonpayable',
805
- type: 'function',
806
- name: 'claimIncentives',
807
- inputs: [
804
+ "stateMutability": "nonpayable",
805
+ "type": "function",
806
+ "name": "claimIncentives",
807
+ "inputs": [
808
808
  {
809
- name: '_userWallet',
810
- type: 'address',
809
+ "name": "_userWallet",
810
+ "type": "address"
811
811
  },
812
812
  {
813
- name: '_legoId',
814
- type: 'uint256',
815
- },
813
+ "name": "_legoId",
814
+ "type": "uint256"
815
+ }
816
816
  ],
817
- outputs: [
817
+ "outputs": [
818
818
  {
819
- name: '',
820
- type: 'uint256',
819
+ "name": "",
820
+ "type": "uint256"
821
821
  },
822
822
  {
823
- name: '',
824
- type: 'uint256',
825
- },
826
- ],
823
+ "name": "",
824
+ "type": "uint256"
825
+ }
826
+ ]
827
827
  },
828
828
  {
829
- stateMutability: 'nonpayable',
830
- type: 'function',
831
- name: 'claimIncentives',
832
- inputs: [
829
+ "stateMutability": "nonpayable",
830
+ "type": "function",
831
+ "name": "claimIncentives",
832
+ "inputs": [
833
833
  {
834
- name: '_userWallet',
835
- type: 'address',
834
+ "name": "_userWallet",
835
+ "type": "address"
836
836
  },
837
837
  {
838
- name: '_legoId',
839
- type: 'uint256',
838
+ "name": "_legoId",
839
+ "type": "uint256"
840
840
  },
841
841
  {
842
- name: '_rewardToken',
843
- type: 'address',
844
- },
842
+ "name": "_rewardToken",
843
+ "type": "address"
844
+ }
845
845
  ],
846
- outputs: [
846
+ "outputs": [
847
847
  {
848
- name: '',
849
- type: 'uint256',
848
+ "name": "",
849
+ "type": "uint256"
850
850
  },
851
851
  {
852
- name: '',
853
- type: 'uint256',
854
- },
855
- ],
852
+ "name": "",
853
+ "type": "uint256"
854
+ }
855
+ ]
856
856
  },
857
857
  {
858
- stateMutability: 'nonpayable',
859
- type: 'function',
860
- name: 'claimIncentives',
861
- inputs: [
858
+ "stateMutability": "nonpayable",
859
+ "type": "function",
860
+ "name": "claimIncentives",
861
+ "inputs": [
862
862
  {
863
- name: '_userWallet',
864
- type: 'address',
863
+ "name": "_userWallet",
864
+ "type": "address"
865
865
  },
866
866
  {
867
- name: '_legoId',
868
- type: 'uint256',
867
+ "name": "_legoId",
868
+ "type": "uint256"
869
869
  },
870
870
  {
871
- name: '_rewardToken',
872
- type: 'address',
871
+ "name": "_rewardToken",
872
+ "type": "address"
873
873
  },
874
874
  {
875
- name: '_rewardAmount',
876
- type: 'uint256',
877
- },
875
+ "name": "_rewardAmount",
876
+ "type": "uint256"
877
+ }
878
878
  ],
879
- outputs: [
879
+ "outputs": [
880
880
  {
881
- name: '',
882
- type: 'uint256',
881
+ "name": "",
882
+ "type": "uint256"
883
883
  },
884
884
  {
885
- name: '',
886
- type: 'uint256',
887
- },
888
- ],
885
+ "name": "",
886
+ "type": "uint256"
887
+ }
888
+ ]
889
889
  },
890
890
  {
891
- stateMutability: 'nonpayable',
892
- type: 'function',
893
- name: 'claimIncentives',
894
- inputs: [
891
+ "stateMutability": "nonpayable",
892
+ "type": "function",
893
+ "name": "claimIncentives",
894
+ "inputs": [
895
895
  {
896
- name: '_userWallet',
897
- type: 'address',
896
+ "name": "_userWallet",
897
+ "type": "address"
898
898
  },
899
899
  {
900
- name: '_legoId',
901
- type: 'uint256',
900
+ "name": "_legoId",
901
+ "type": "uint256"
902
902
  },
903
903
  {
904
- name: '_rewardToken',
905
- type: 'address',
904
+ "name": "_rewardToken",
905
+ "type": "address"
906
906
  },
907
907
  {
908
- name: '_rewardAmount',
909
- type: 'uint256',
908
+ "name": "_rewardAmount",
909
+ "type": "uint256"
910
910
  },
911
911
  {
912
- name: '_proofs',
913
- type: 'bytes32[]',
914
- },
912
+ "name": "_proofs",
913
+ "type": "bytes32[]"
914
+ }
915
915
  ],
916
- outputs: [
916
+ "outputs": [
917
917
  {
918
- name: '',
919
- type: 'uint256',
918
+ "name": "",
919
+ "type": "uint256"
920
920
  },
921
921
  {
922
- name: '',
923
- type: 'uint256',
924
- },
925
- ],
922
+ "name": "",
923
+ "type": "uint256"
924
+ }
925
+ ]
926
926
  },
927
927
  {
928
- stateMutability: 'nonpayable',
929
- type: 'function',
930
- name: 'claimIncentives',
931
- inputs: [
928
+ "stateMutability": "nonpayable",
929
+ "type": "function",
930
+ "name": "claimIncentives",
931
+ "inputs": [
932
932
  {
933
- name: '_userWallet',
934
- type: 'address',
933
+ "name": "_userWallet",
934
+ "type": "address"
935
935
  },
936
936
  {
937
- name: '_legoId',
938
- type: 'uint256',
937
+ "name": "_legoId",
938
+ "type": "uint256"
939
939
  },
940
940
  {
941
- name: '_rewardToken',
942
- type: 'address',
941
+ "name": "_rewardToken",
942
+ "type": "address"
943
943
  },
944
944
  {
945
- name: '_rewardAmount',
946
- type: 'uint256',
945
+ "name": "_rewardAmount",
946
+ "type": "uint256"
947
947
  },
948
948
  {
949
- name: '_proofs',
950
- type: 'bytes32[]',
949
+ "name": "_proofs",
950
+ "type": "bytes32[]"
951
951
  },
952
952
  {
953
- name: '_sig',
954
- type: 'tuple',
955
- components: [
953
+ "name": "_sig",
954
+ "type": "tuple",
955
+ "components": [
956
956
  {
957
- name: 'signature',
958
- type: 'bytes',
957
+ "name": "signature",
958
+ "type": "bytes"
959
959
  },
960
960
  {
961
- name: 'nonce',
962
- type: 'uint256',
961
+ "name": "nonce",
962
+ "type": "uint256"
963
963
  },
964
964
  {
965
- name: 'expiration',
966
- type: 'uint256',
967
- },
968
- ],
969
- },
965
+ "name": "expiration",
966
+ "type": "uint256"
967
+ }
968
+ ]
969
+ }
970
970
  ],
971
- outputs: [
971
+ "outputs": [
972
972
  {
973
- name: '',
974
- type: 'uint256',
973
+ "name": "",
974
+ "type": "uint256"
975
975
  },
976
976
  {
977
- name: '',
978
- type: 'uint256',
979
- },
980
- ],
977
+ "name": "",
978
+ "type": "uint256"
979
+ }
980
+ ]
981
981
  },
982
982
  {
983
- stateMutability: 'nonpayable',
984
- type: 'function',
985
- name: 'performBatchActions',
986
- inputs: [
983
+ "stateMutability": "nonpayable",
984
+ "type": "function",
985
+ "name": "performBatchActions",
986
+ "inputs": [
987
987
  {
988
- name: '_userWallet',
989
- type: 'address',
988
+ "name": "_userWallet",
989
+ "type": "address"
990
990
  },
991
991
  {
992
- name: '_instructions',
993
- type: 'tuple[]',
994
- components: [
992
+ "name": "_instructions",
993
+ "type": "tuple[]",
994
+ "components": [
995
995
  {
996
- name: 'usePrevAmountOut',
997
- type: 'bool',
996
+ "name": "usePrevAmountOut",
997
+ "type": "bool"
998
998
  },
999
999
  {
1000
- name: 'action',
1001
- type: 'uint8',
1000
+ "name": "action",
1001
+ "type": "uint8"
1002
1002
  },
1003
1003
  {
1004
- name: 'legoId',
1005
- type: 'uint16',
1004
+ "name": "legoId",
1005
+ "type": "uint16"
1006
1006
  },
1007
1007
  {
1008
- name: 'asset',
1009
- type: 'address',
1008
+ "name": "asset",
1009
+ "type": "address"
1010
1010
  },
1011
1011
  {
1012
- name: 'target',
1013
- type: 'address',
1012
+ "name": "target",
1013
+ "type": "address"
1014
1014
  },
1015
1015
  {
1016
- name: 'amount',
1017
- type: 'uint256',
1016
+ "name": "amount",
1017
+ "type": "uint256"
1018
1018
  },
1019
1019
  {
1020
- name: 'extraData',
1021
- type: 'bytes32',
1022
- },
1023
- ],
1024
- },
1020
+ "name": "extraData",
1021
+ "type": "bytes32"
1022
+ }
1023
+ ]
1024
+ }
1025
1025
  ],
1026
- outputs: [
1026
+ "outputs": [
1027
1027
  {
1028
- name: '',
1029
- type: 'bool',
1030
- },
1031
- ],
1028
+ "name": "",
1029
+ "type": "bool"
1030
+ }
1031
+ ]
1032
1032
  },
1033
1033
  {
1034
- stateMutability: 'nonpayable',
1035
- type: 'function',
1036
- name: 'performBatchActions',
1037
- inputs: [
1034
+ "stateMutability": "nonpayable",
1035
+ "type": "function",
1036
+ "name": "performBatchActions",
1037
+ "inputs": [
1038
1038
  {
1039
- name: '_userWallet',
1040
- type: 'address',
1039
+ "name": "_userWallet",
1040
+ "type": "address"
1041
1041
  },
1042
1042
  {
1043
- name: '_instructions',
1044
- type: 'tuple[]',
1045
- components: [
1043
+ "name": "_instructions",
1044
+ "type": "tuple[]",
1045
+ "components": [
1046
1046
  {
1047
- name: 'usePrevAmountOut',
1048
- type: 'bool',
1047
+ "name": "usePrevAmountOut",
1048
+ "type": "bool"
1049
1049
  },
1050
1050
  {
1051
- name: 'action',
1052
- type: 'uint8',
1051
+ "name": "action",
1052
+ "type": "uint8"
1053
1053
  },
1054
1054
  {
1055
- name: 'legoId',
1056
- type: 'uint16',
1055
+ "name": "legoId",
1056
+ "type": "uint16"
1057
1057
  },
1058
1058
  {
1059
- name: 'asset',
1060
- type: 'address',
1059
+ "name": "asset",
1060
+ "type": "address"
1061
1061
  },
1062
1062
  {
1063
- name: 'target',
1064
- type: 'address',
1063
+ "name": "target",
1064
+ "type": "address"
1065
1065
  },
1066
1066
  {
1067
- name: 'amount',
1068
- type: 'uint256',
1067
+ "name": "amount",
1068
+ "type": "uint256"
1069
1069
  },
1070
1070
  {
1071
- name: 'extraData',
1072
- type: 'bytes32',
1073
- },
1074
- ],
1071
+ "name": "extraData",
1072
+ "type": "bytes32"
1073
+ }
1074
+ ]
1075
1075
  },
1076
1076
  {
1077
- name: '_sig',
1078
- type: 'tuple',
1079
- components: [
1077
+ "name": "_sig",
1078
+ "type": "tuple",
1079
+ "components": [
1080
1080
  {
1081
- name: 'signature',
1082
- type: 'bytes',
1081
+ "name": "signature",
1082
+ "type": "bytes"
1083
1083
  },
1084
1084
  {
1085
- name: 'nonce',
1086
- type: 'uint256',
1085
+ "name": "nonce",
1086
+ "type": "uint256"
1087
1087
  },
1088
1088
  {
1089
- name: 'expiration',
1090
- type: 'uint256',
1091
- },
1092
- ],
1093
- },
1089
+ "name": "expiration",
1090
+ "type": "uint256"
1091
+ }
1092
+ ]
1093
+ }
1094
1094
  ],
1095
- outputs: [
1095
+ "outputs": [
1096
1096
  {
1097
- name: '',
1098
- type: 'bool',
1099
- },
1100
- ],
1097
+ "name": "",
1098
+ "type": "bool"
1099
+ }
1100
+ ]
1101
1101
  },
1102
1102
  {
1103
- stateMutability: 'nonpayable',
1104
- type: 'function',
1105
- name: 'incrementNonce',
1106
- inputs: [
1107
- {
1108
- name: '_userWallet',
1109
- type: 'address',
1110
- },
1103
+ "stateMutability": "nonpayable",
1104
+ "type": "function",
1105
+ "name": "incrementNonce",
1106
+ "inputs": [
1107
+ {
1108
+ "name": "_userWallet",
1109
+ "type": "address"
1110
+ }
1111
1111
  ],
1112
- outputs: [],
1112
+ "outputs": []
1113
1113
  },
1114
1114
  {
1115
- stateMutability: 'view',
1116
- type: 'function',
1117
- name: 'getNonce',
1118
- inputs: [
1119
- {
1120
- name: '_userWallet',
1121
- type: 'address',
1122
- },
1115
+ "stateMutability": "view",
1116
+ "type": "function",
1117
+ "name": "getNonce",
1118
+ "inputs": [
1119
+ {
1120
+ "name": "_userWallet",
1121
+ "type": "address"
1122
+ }
1123
1123
  ],
1124
- outputs: [
1124
+ "outputs": [
1125
1125
  {
1126
- name: '',
1127
- type: 'uint256',
1128
- },
1129
- ],
1126
+ "name": "",
1127
+ "type": "uint256"
1128
+ }
1129
+ ]
1130
1130
  },
1131
1131
  {
1132
- stateMutability: 'view',
1133
- type: 'function',
1134
- name: 'groupId',
1135
- inputs: [],
1136
- outputs: [
1137
- {
1138
- name: '',
1139
- type: 'uint256',
1140
- },
1141
- ],
1132
+ "stateMutability": "view",
1133
+ "type": "function",
1134
+ "name": "groupId",
1135
+ "inputs": [],
1136
+ "outputs": [
1137
+ {
1138
+ "name": "",
1139
+ "type": "uint256"
1140
+ }
1141
+ ]
1142
1142
  },
1143
1143
  {
1144
- stateMutability: 'view',
1145
- type: 'function',
1146
- name: 'currentNonce',
1147
- inputs: [
1148
- {
1149
- name: 'arg0',
1150
- type: 'address',
1151
- },
1144
+ "stateMutability": "view",
1145
+ "type": "function",
1146
+ "name": "currentNonce",
1147
+ "inputs": [
1148
+ {
1149
+ "name": "arg0",
1150
+ "type": "address"
1151
+ }
1152
1152
  ],
1153
- outputs: [
1153
+ "outputs": [
1154
1154
  {
1155
- name: '',
1156
- type: 'uint256',
1157
- },
1158
- ],
1155
+ "name": "",
1156
+ "type": "uint256"
1157
+ }
1158
+ ]
1159
1159
  },
1160
1160
  {
1161
- stateMutability: 'nonpayable',
1162
- type: 'constructor',
1163
- inputs: [
1161
+ "stateMutability": "nonpayable",
1162
+ "type": "constructor",
1163
+ "inputs": [
1164
1164
  {
1165
- name: '_undyHq',
1166
- type: 'address',
1165
+ "name": "_undyHq",
1166
+ "type": "address"
1167
1167
  },
1168
1168
  {
1169
- name: '_owner',
1170
- type: 'address',
1169
+ "name": "_owner",
1170
+ "type": "address"
1171
1171
  },
1172
1172
  {
1173
- name: '_groupId',
1174
- type: 'uint256',
1173
+ "name": "_groupId",
1174
+ "type": "uint256"
1175
1175
  },
1176
1176
  {
1177
- name: '_minTimeLock',
1178
- type: 'uint256',
1177
+ "name": "_minTimeLock",
1178
+ "type": "uint256"
1179
1179
  },
1180
1180
  {
1181
- name: '_maxTimeLock',
1182
- type: 'uint256',
1183
- },
1181
+ "name": "_maxTimeLock",
1182
+ "type": "uint256"
1183
+ }
1184
1184
  ],
1185
- outputs: [],
1186
- },
1185
+ "outputs": []
1186
+ }
1187
1187
  ];
1188
1188
  export const deployAddress = '0x8d6DD438B9748DCA269033A01B1581EE8ef21e3b';
1189
1189
  function getRequest(method, args, contractAddressOrOptions) {
@@ -1265,26 +1265,11 @@ export function toSdk(publicClient, walletClient, addressResolver) {
1265
1265
  deployAddress,
1266
1266
  abi,
1267
1267
  events: {
1268
- NonceIncremented: {
1269
- topic: getEventTopic('NonceIncremented'),
1270
- parse: (events) => parseEvents('NonceIncremented', events),
1271
- },
1272
- OwnershipChangeInitiated: {
1273
- topic: getEventTopic('OwnershipChangeInitiated'),
1274
- parse: (events) => parseEvents('OwnershipChangeInitiated', events),
1275
- },
1276
- OwnershipChangeConfirmed: {
1277
- topic: getEventTopic('OwnershipChangeConfirmed'),
1278
- parse: (events) => parseEvents('OwnershipChangeConfirmed', events),
1279
- },
1280
- OwnershipChangeCancelled: {
1281
- topic: getEventTopic('OwnershipChangeCancelled'),
1282
- parse: (events) => parseEvents('OwnershipChangeCancelled', events),
1283
- },
1284
- OwnershipTimeLockSet: {
1285
- topic: getEventTopic('OwnershipTimeLockSet'),
1286
- parse: (events) => parseEvents('OwnershipTimeLockSet', events),
1287
- },
1268
+ NonceIncremented: { topic: getEventTopic('NonceIncremented'), parse: (events) => parseEvents('NonceIncremented', events) },
1269
+ OwnershipChangeInitiated: { topic: getEventTopic('OwnershipChangeInitiated'), parse: (events) => parseEvents('OwnershipChangeInitiated', events) },
1270
+ OwnershipChangeConfirmed: { topic: getEventTopic('OwnershipChangeConfirmed'), parse: (events) => parseEvents('OwnershipChangeConfirmed', events) },
1271
+ OwnershipChangeCancelled: { topic: getEventTopic('OwnershipChangeCancelled'), parse: (events) => parseEvents('OwnershipChangeCancelled', events) },
1272
+ OwnershipTimeLockSet: { topic: getEventTopic('OwnershipTimeLockSet'), parse: (events) => parseEvents('OwnershipTimeLockSet', events) },
1288
1273
  },
1289
1274
  // Queries
1290
1275
  hasPendingOwnerChange: (...args) => singleQuery(publicClient, call.hasPendingOwnerChange(...args), {}, addressResolver),