@underscore-finance/sdk 1.2.18 → 1.2.19

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