@underscore-finance/sdk 1.1.2 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contracts/AaveV3.d.ts +126 -13
- package/dist/contracts/AaveV3.d.ts.map +1 -1
- package/dist/contracts/AaveV3.js +159 -13
- package/dist/contracts/AeroClassic.d.ts +85 -0
- package/dist/contracts/AeroClassic.d.ts.map +1 -1
- package/dist/contracts/AeroClassic.js +109 -1
- package/dist/contracts/AeroSlipstream.d.ts +119 -0
- package/dist/contracts/AeroSlipstream.d.ts.map +1 -1
- package/dist/contracts/AeroSlipstream.js +151 -1
- package/dist/contracts/AgentSenderGeneric.d.ts +4027 -0
- package/dist/contracts/AgentSenderGeneric.d.ts.map +1 -0
- package/dist/contracts/AgentSenderGeneric.js +5280 -0
- package/dist/contracts/AgentSenderSpecial.d.ts +1968 -0
- package/dist/contracts/AgentSenderSpecial.d.ts.map +1 -0
- package/dist/contracts/AgentSenderSpecial.js +2509 -0
- package/dist/contracts/AgentWrapper.d.ts +170 -1462
- package/dist/contracts/AgentWrapper.d.ts.map +1 -1
- package/dist/contracts/AgentWrapper.js +262 -1869
- package/dist/contracts/AgentWrapperV1.d.ts +3760 -0
- package/dist/contracts/AgentWrapperV1.d.ts.map +1 -0
- package/dist/contracts/AgentWrapperV1.js +4922 -0
- package/dist/contracts/Appraiser.d.ts +18 -459
- package/dist/contracts/Appraiser.d.ts.map +1 -1
- package/dist/contracts/Appraiser.js +75 -649
- package/dist/contracts/Avantis.d.ts +2565 -0
- package/dist/contracts/Avantis.d.ts.map +1 -0
- package/dist/contracts/Avantis.js +3256 -0
- package/dist/contracts/Billing.d.ts +4 -68
- package/dist/contracts/Billing.d.ts.map +1 -1
- package/dist/contracts/Billing.js +5 -82
- package/dist/contracts/ChequeBook.d.ts +52 -1
- package/dist/contracts/ChequeBook.d.ts.map +1 -1
- package/dist/contracts/ChequeBook.js +53 -1
- package/dist/contracts/CompoundV3.d.ts +126 -13
- package/dist/contracts/CompoundV3.d.ts.map +1 -1
- package/dist/contracts/CompoundV3.js +159 -13
- package/dist/contracts/ConvertVaultToken.d.ts +63 -0
- package/dist/contracts/ConvertVaultToken.d.ts.map +1 -0
- package/dist/contracts/ConvertVaultToken.js +75 -0
- package/dist/contracts/Curve.d.ts +14 -0
- package/dist/contracts/Curve.d.ts.map +1 -1
- package/dist/contracts/Curve.js +19 -1
- package/dist/contracts/DefaultsBase.d.ts +45 -56
- package/dist/contracts/DefaultsBase.d.ts.map +1 -1
- package/dist/contracts/DefaultsBase.js +45 -59
- package/dist/contracts/EarnVault.d.ts +1680 -0
- package/dist/contracts/EarnVault.d.ts.map +1 -0
- package/dist/contracts/EarnVault.js +2206 -0
- package/dist/contracts/EarnVaultAgent.d.ts +1004 -0
- package/dist/contracts/EarnVaultAgent.d.ts.map +1 -0
- package/dist/contracts/EarnVaultAgent.js +1273 -0
- package/dist/contracts/EarnVaultAgentSigHelper.d.ts +904 -0
- package/dist/contracts/EarnVaultAgentSigHelper.d.ts.map +1 -0
- package/dist/contracts/EarnVaultAgentSigHelper.js +1198 -0
- package/dist/contracts/Euler.d.ts +131 -14
- package/dist/contracts/Euler.d.ts.map +1 -1
- package/dist/contracts/Euler.js +164 -13
- package/dist/contracts/Fluid.d.ts +159 -14
- package/dist/contracts/Fluid.d.ts.map +1 -1
- package/dist/contracts/Fluid.js +200 -13
- package/dist/contracts/FortyAcres.d.ts +145 -14
- package/dist/contracts/FortyAcres.d.ts.map +1 -1
- package/dist/contracts/FortyAcres.js +182 -13
- package/dist/contracts/Hatchery.d.ts +6 -176
- package/dist/contracts/Hatchery.d.ts.map +1 -1
- package/dist/contracts/Hatchery.js +5 -225
- package/dist/contracts/HighCommand.d.ts +237 -1
- package/dist/contracts/HighCommand.d.ts.map +1 -1
- package/dist/contracts/HighCommand.js +259 -1
- package/dist/contracts/Kernel.d.ts +8 -0
- package/dist/contracts/Kernel.d.ts.map +1 -1
- package/dist/contracts/Kernel.js +9 -1
- package/dist/contracts/LegoBook.js +1 -1
- package/dist/contracts/LegoTools.js +1 -1
- package/dist/contracts/LevgVaultHelper.d.ts +1070 -0
- package/dist/contracts/LevgVaultHelper.d.ts.map +1 -0
- package/dist/contracts/LevgVaultHelper.js +1414 -0
- package/dist/contracts/LootDistributor.d.ts +49 -131
- package/dist/contracts/LootDistributor.d.ts.map +1 -1
- package/dist/contracts/LootDistributor.js +58 -157
- package/dist/contracts/Migrator.d.ts +4 -0
- package/dist/contracts/Migrator.d.ts.map +1 -1
- package/dist/contracts/Migrator.js +5 -1
- package/dist/contracts/MissionControl.d.ts +211 -295
- package/dist/contracts/MissionControl.d.ts.map +1 -1
- package/dist/contracts/MissionControl.js +216 -305
- package/dist/contracts/Moonwell.d.ts +131 -14
- package/dist/contracts/Moonwell.d.ts.map +1 -1
- package/dist/contracts/Moonwell.js +164 -13
- package/dist/contracts/Morpho.d.ts +131 -14
- package/dist/contracts/Morpho.d.ts.map +1 -1
- package/dist/contracts/Morpho.js +164 -13
- package/dist/contracts/Paymaster.d.ts +4 -0
- package/dist/contracts/Paymaster.d.ts.map +1 -1
- package/dist/contracts/Paymaster.js +5 -1
- package/dist/contracts/RipeLego.d.ts +267 -81
- package/dist/contracts/RipeLego.d.ts.map +1 -1
- package/dist/contracts/RipeLego.js +322 -87
- package/dist/contracts/Sentinel.d.ts +275 -7
- package/dist/contracts/Sentinel.d.ts.map +1 -1
- package/dist/contracts/Sentinel.js +331 -7
- package/dist/contracts/SkyPsm.d.ts +2622 -0
- package/dist/contracts/SkyPsm.d.ts.map +1 -0
- package/dist/contracts/SkyPsm.js +3329 -0
- package/dist/contracts/Switchboard.d.ts +7 -0
- package/dist/contracts/Switchboard.d.ts.map +1 -1
- package/dist/contracts/Switchboard.js +9 -1
- package/dist/contracts/SwitchboardAlpha.d.ts +499 -264
- package/dist/contracts/SwitchboardAlpha.d.ts.map +1 -1
- package/dist/contracts/SwitchboardAlpha.js +566 -282
- package/dist/contracts/SwitchboardBravo.d.ts +4 -24
- package/dist/contracts/SwitchboardBravo.d.ts.map +1 -1
- package/dist/contracts/SwitchboardBravo.js +5 -32
- package/dist/contracts/SwitchboardCharlie.d.ts +1796 -343
- package/dist/contracts/SwitchboardCharlie.d.ts.map +1 -1
- package/dist/contracts/SwitchboardCharlie.js +2178 -368
- package/dist/contracts/UnderscoreLego.d.ts +129 -15
- package/dist/contracts/UnderscoreLego.d.ts.map +1 -1
- package/dist/contracts/UnderscoreLego.js +161 -14
- package/dist/contracts/UndyAero.d.ts +1680 -0
- package/dist/contracts/UndyAero.d.ts.map +1 -0
- package/dist/contracts/UndyAero.js +2206 -0
- package/dist/contracts/UndyBtc.d.ts +209 -16
- package/dist/contracts/UndyBtc.d.ts.map +1 -1
- package/dist/contracts/UndyBtc.js +267 -16
- package/dist/contracts/UndyCbeth.d.ts +1680 -0
- package/dist/contracts/UndyCbeth.d.ts.map +1 -0
- package/dist/contracts/UndyCbeth.js +2206 -0
- package/dist/contracts/UndyEth.d.ts +209 -16
- package/dist/contracts/UndyEth.d.ts.map +1 -1
- package/dist/contracts/UndyEth.js +267 -16
- package/dist/contracts/UndyEurc.d.ts +1680 -0
- package/dist/contracts/UndyEurc.d.ts.map +1 -0
- package/dist/contracts/UndyEurc.js +2206 -0
- package/dist/contracts/UndyGho.d.ts +1680 -0
- package/dist/contracts/UndyGho.d.ts.map +1 -0
- package/dist/contracts/UndyGho.js +2206 -0
- package/dist/contracts/UndyUsd.d.ts +209 -16
- package/dist/contracts/UndyUsd.d.ts.map +1 -1
- package/dist/contracts/UndyUsd.js +267 -16
- package/dist/contracts/UndyUsds.d.ts +1680 -0
- package/dist/contracts/UndyUsds.d.ts.map +1 -0
- package/dist/contracts/UndyUsds.js +2206 -0
- package/dist/contracts/UniswapV2.d.ts +85 -0
- package/dist/contracts/UniswapV2.d.ts.map +1 -1
- package/dist/contracts/UniswapV2.js +109 -1
- package/dist/contracts/UniswapV3.d.ts +119 -0
- package/dist/contracts/UniswapV3.d.ts.map +1 -1
- package/dist/contracts/UniswapV3.js +151 -1
- package/dist/contracts/UserWallet.d.ts +12 -8
- package/dist/contracts/UserWallet.d.ts.map +1 -1
- package/dist/contracts/UserWallet.js +13 -9
- package/dist/contracts/UserWalletConfig.d.ts +198 -56
- package/dist/contracts/UserWalletConfig.d.ts.map +1 -1
- package/dist/contracts/UserWalletConfig.js +225 -72
- package/dist/contracts/UserWalletConfigV1.d.ts +3655 -0
- package/dist/contracts/UserWalletConfigV1.d.ts.map +1 -0
- package/dist/contracts/UserWalletConfigV1.js +4251 -0
- package/dist/contracts/UserWalletV1.d.ts +2633 -0
- package/dist/contracts/UserWalletV1.d.ts.map +1 -0
- package/dist/contracts/UserWalletV1.js +3500 -0
- package/dist/contracts/VaultRegistry.d.ts +848 -85
- package/dist/contracts/VaultRegistry.d.ts.map +1 -1
- package/dist/contracts/VaultRegistry.js +1078 -83
- package/dist/contracts/WalletBackpack.d.ts +4 -0
- package/dist/contracts/WalletBackpack.d.ts.map +1 -1
- package/dist/contracts/WalletBackpack.js +5 -1
- package/dist/contracts/Wasabi.d.ts +2579 -0
- package/dist/contracts/Wasabi.d.ts.map +1 -0
- package/dist/contracts/Wasabi.js +3274 -0
- package/dist/contracts/index.d.ts +18 -1
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +18 -1
- package/dist/contracts/sdk.d.ts +36 -2
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +36 -2
- package/dist/getSwapInstructions.js +1 -1
- package/dist/index.d.ts +95 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +45 -7
- package/package.json +3 -3
|
@@ -5,239 +5,27 @@
|
|
|
5
5
|
import { singleQuery, mutate } from '@dappql/async';
|
|
6
6
|
export const abi = [
|
|
7
7
|
{
|
|
8
|
-
name: '
|
|
8
|
+
name: 'AgentAction',
|
|
9
9
|
inputs: [
|
|
10
10
|
{
|
|
11
|
-
name: '
|
|
12
|
-
type: '
|
|
13
|
-
indexed: false,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
name: 'oldNonce',
|
|
17
|
-
type: 'uint256',
|
|
18
|
-
indexed: false,
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
name: 'newNonce',
|
|
22
|
-
type: 'uint256',
|
|
23
|
-
indexed: false,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
anonymous: false,
|
|
27
|
-
type: 'event',
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: 'OwnershipChangeInitiated',
|
|
31
|
-
inputs: [
|
|
32
|
-
{
|
|
33
|
-
name: 'prevOwner',
|
|
34
|
-
type: 'address',
|
|
35
|
-
indexed: true,
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
name: 'newOwner',
|
|
39
|
-
type: 'address',
|
|
40
|
-
indexed: true,
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'confirmBlock',
|
|
44
|
-
type: 'uint256',
|
|
45
|
-
indexed: false,
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
anonymous: false,
|
|
49
|
-
type: 'event',
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: 'OwnershipChangeConfirmed',
|
|
53
|
-
inputs: [
|
|
54
|
-
{
|
|
55
|
-
name: 'prevOwner',
|
|
56
|
-
type: 'address',
|
|
57
|
-
indexed: true,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
name: 'newOwner',
|
|
61
|
-
type: 'address',
|
|
62
|
-
indexed: true,
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: 'initiatedBlock',
|
|
66
|
-
type: 'uint256',
|
|
67
|
-
indexed: false,
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
name: 'confirmBlock',
|
|
71
|
-
type: 'uint256',
|
|
11
|
+
name: 'action',
|
|
12
|
+
type: 'uint8',
|
|
72
13
|
indexed: false,
|
|
73
14
|
},
|
|
74
|
-
],
|
|
75
|
-
anonymous: false,
|
|
76
|
-
type: 'event',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
name: 'OwnershipChangeCancelled',
|
|
80
|
-
inputs: [
|
|
81
15
|
{
|
|
82
|
-
name: '
|
|
16
|
+
name: 'userWallet',
|
|
83
17
|
type: 'address',
|
|
84
18
|
indexed: true,
|
|
85
19
|
},
|
|
86
20
|
{
|
|
87
|
-
name: '
|
|
21
|
+
name: 'sender',
|
|
88
22
|
type: 'address',
|
|
89
23
|
indexed: true,
|
|
90
24
|
},
|
|
91
|
-
{
|
|
92
|
-
name: 'initiatedBlock',
|
|
93
|
-
type: 'uint256',
|
|
94
|
-
indexed: false,
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: 'confirmBlock',
|
|
98
|
-
type: 'uint256',
|
|
99
|
-
indexed: false,
|
|
100
|
-
},
|
|
101
|
-
],
|
|
102
|
-
anonymous: false,
|
|
103
|
-
type: 'event',
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
name: 'OwnershipTimeLockSet',
|
|
107
|
-
inputs: [
|
|
108
|
-
{
|
|
109
|
-
name: 'numBlocks',
|
|
110
|
-
type: 'uint256',
|
|
111
|
-
indexed: false,
|
|
112
|
-
},
|
|
113
25
|
],
|
|
114
26
|
anonymous: false,
|
|
115
27
|
type: 'event',
|
|
116
28
|
},
|
|
117
|
-
{
|
|
118
|
-
stateMutability: 'nonpayable',
|
|
119
|
-
type: 'function',
|
|
120
|
-
name: 'changeOwnership',
|
|
121
|
-
inputs: [
|
|
122
|
-
{
|
|
123
|
-
name: '_newOwner',
|
|
124
|
-
type: 'address',
|
|
125
|
-
},
|
|
126
|
-
],
|
|
127
|
-
outputs: [],
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
stateMutability: 'nonpayable',
|
|
131
|
-
type: 'function',
|
|
132
|
-
name: 'confirmOwnershipChange',
|
|
133
|
-
inputs: [],
|
|
134
|
-
outputs: [],
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
stateMutability: 'nonpayable',
|
|
138
|
-
type: 'function',
|
|
139
|
-
name: 'cancelOwnershipChange',
|
|
140
|
-
inputs: [],
|
|
141
|
-
outputs: [],
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
stateMutability: 'view',
|
|
145
|
-
type: 'function',
|
|
146
|
-
name: 'hasPendingOwnerChange',
|
|
147
|
-
inputs: [],
|
|
148
|
-
outputs: [
|
|
149
|
-
{
|
|
150
|
-
name: '',
|
|
151
|
-
type: 'bool',
|
|
152
|
-
},
|
|
153
|
-
],
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
stateMutability: 'nonpayable',
|
|
157
|
-
type: 'function',
|
|
158
|
-
name: 'setOwnershipTimeLock',
|
|
159
|
-
inputs: [
|
|
160
|
-
{
|
|
161
|
-
name: '_numBlocks',
|
|
162
|
-
type: 'uint256',
|
|
163
|
-
},
|
|
164
|
-
],
|
|
165
|
-
outputs: [],
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
stateMutability: 'view',
|
|
169
|
-
type: 'function',
|
|
170
|
-
name: 'owner',
|
|
171
|
-
inputs: [],
|
|
172
|
-
outputs: [
|
|
173
|
-
{
|
|
174
|
-
name: '',
|
|
175
|
-
type: 'address',
|
|
176
|
-
},
|
|
177
|
-
],
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
stateMutability: 'view',
|
|
181
|
-
type: 'function',
|
|
182
|
-
name: 'ownershipTimeLock',
|
|
183
|
-
inputs: [],
|
|
184
|
-
outputs: [
|
|
185
|
-
{
|
|
186
|
-
name: '',
|
|
187
|
-
type: 'uint256',
|
|
188
|
-
},
|
|
189
|
-
],
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
stateMutability: 'view',
|
|
193
|
-
type: 'function',
|
|
194
|
-
name: 'pendingOwner',
|
|
195
|
-
inputs: [],
|
|
196
|
-
outputs: [
|
|
197
|
-
{
|
|
198
|
-
name: '',
|
|
199
|
-
type: 'tuple',
|
|
200
|
-
components: [
|
|
201
|
-
{
|
|
202
|
-
name: 'newOwner',
|
|
203
|
-
type: 'address',
|
|
204
|
-
},
|
|
205
|
-
{
|
|
206
|
-
name: 'initiatedBlock',
|
|
207
|
-
type: 'uint256',
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
name: 'confirmBlock',
|
|
211
|
-
type: 'uint256',
|
|
212
|
-
},
|
|
213
|
-
],
|
|
214
|
-
},
|
|
215
|
-
],
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
stateMutability: 'view',
|
|
219
|
-
type: 'function',
|
|
220
|
-
name: 'MIN_OWNERSHIP_TIMELOCK',
|
|
221
|
-
inputs: [],
|
|
222
|
-
outputs: [
|
|
223
|
-
{
|
|
224
|
-
name: '',
|
|
225
|
-
type: 'uint256',
|
|
226
|
-
},
|
|
227
|
-
],
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
stateMutability: 'view',
|
|
231
|
-
type: 'function',
|
|
232
|
-
name: 'MAX_OWNERSHIP_TIMELOCK',
|
|
233
|
-
inputs: [],
|
|
234
|
-
outputs: [
|
|
235
|
-
{
|
|
236
|
-
name: '',
|
|
237
|
-
type: 'uint256',
|
|
238
|
-
},
|
|
239
|
-
],
|
|
240
|
-
},
|
|
241
29
|
{
|
|
242
30
|
stateMutability: 'nonpayable',
|
|
243
31
|
type: 'function',
|
|
@@ -365,48 +153,30 @@ export const abi = [
|
|
|
365
153
|
{
|
|
366
154
|
stateMutability: 'nonpayable',
|
|
367
155
|
type: 'function',
|
|
368
|
-
name: '
|
|
156
|
+
name: 'depositForYield',
|
|
369
157
|
inputs: [
|
|
370
158
|
{
|
|
371
159
|
name: '_userWallet',
|
|
372
160
|
type: 'address',
|
|
373
161
|
},
|
|
374
162
|
{
|
|
375
|
-
name: '
|
|
376
|
-
type: '
|
|
163
|
+
name: '_legoId',
|
|
164
|
+
type: 'uint256',
|
|
377
165
|
},
|
|
378
166
|
{
|
|
379
167
|
name: '_asset',
|
|
380
168
|
type: 'address',
|
|
381
169
|
},
|
|
170
|
+
],
|
|
171
|
+
outputs: [
|
|
382
172
|
{
|
|
383
|
-
name: '
|
|
173
|
+
name: '',
|
|
384
174
|
type: 'uint256',
|
|
385
175
|
},
|
|
386
176
|
{
|
|
387
|
-
name: '
|
|
388
|
-
type: '
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
name: '_sig',
|
|
392
|
-
type: 'tuple',
|
|
393
|
-
components: [
|
|
394
|
-
{
|
|
395
|
-
name: 'signature',
|
|
396
|
-
type: 'bytes',
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
name: 'nonce',
|
|
400
|
-
type: 'uint256',
|
|
401
|
-
},
|
|
402
|
-
{
|
|
403
|
-
name: 'expiration',
|
|
404
|
-
type: 'uint256',
|
|
405
|
-
},
|
|
406
|
-
],
|
|
177
|
+
name: '',
|
|
178
|
+
type: 'address',
|
|
407
179
|
},
|
|
408
|
-
],
|
|
409
|
-
outputs: [
|
|
410
180
|
{
|
|
411
181
|
name: '',
|
|
412
182
|
type: 'uint256',
|
|
@@ -434,6 +204,10 @@ export const abi = [
|
|
|
434
204
|
name: '_asset',
|
|
435
205
|
type: 'address',
|
|
436
206
|
},
|
|
207
|
+
{
|
|
208
|
+
name: '_vaultAddr',
|
|
209
|
+
type: 'address',
|
|
210
|
+
},
|
|
437
211
|
],
|
|
438
212
|
outputs: [
|
|
439
213
|
{
|
|
@@ -475,6 +249,10 @@ export const abi = [
|
|
|
475
249
|
name: '_vaultAddr',
|
|
476
250
|
type: 'address',
|
|
477
251
|
},
|
|
252
|
+
{
|
|
253
|
+
name: '_amount',
|
|
254
|
+
type: 'uint256',
|
|
255
|
+
},
|
|
478
256
|
],
|
|
479
257
|
outputs: [
|
|
480
258
|
{
|
|
@@ -520,6 +298,10 @@ export const abi = [
|
|
|
520
298
|
name: '_amount',
|
|
521
299
|
type: 'uint256',
|
|
522
300
|
},
|
|
301
|
+
{
|
|
302
|
+
name: '_extraData',
|
|
303
|
+
type: 'bytes32',
|
|
304
|
+
},
|
|
523
305
|
],
|
|
524
306
|
outputs: [
|
|
525
307
|
{
|
|
@@ -543,7 +325,7 @@ export const abi = [
|
|
|
543
325
|
{
|
|
544
326
|
stateMutability: 'nonpayable',
|
|
545
327
|
type: 'function',
|
|
546
|
-
name: '
|
|
328
|
+
name: 'withdrawFromYield',
|
|
547
329
|
inputs: [
|
|
548
330
|
{
|
|
549
331
|
name: '_userWallet',
|
|
@@ -554,21 +336,9 @@ export const abi = [
|
|
|
554
336
|
type: 'uint256',
|
|
555
337
|
},
|
|
556
338
|
{
|
|
557
|
-
name: '
|
|
558
|
-
type: 'address',
|
|
559
|
-
},
|
|
560
|
-
{
|
|
561
|
-
name: '_vaultAddr',
|
|
339
|
+
name: '_vaultToken',
|
|
562
340
|
type: 'address',
|
|
563
341
|
},
|
|
564
|
-
{
|
|
565
|
-
name: '_amount',
|
|
566
|
-
type: 'uint256',
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
name: '_extraData',
|
|
570
|
-
type: 'bytes32',
|
|
571
|
-
},
|
|
572
342
|
],
|
|
573
343
|
outputs: [
|
|
574
344
|
{
|
|
@@ -592,7 +362,7 @@ export const abi = [
|
|
|
592
362
|
{
|
|
593
363
|
stateMutability: 'nonpayable',
|
|
594
364
|
type: 'function',
|
|
595
|
-
name: '
|
|
365
|
+
name: 'withdrawFromYield',
|
|
596
366
|
inputs: [
|
|
597
367
|
{
|
|
598
368
|
name: '_userWallet',
|
|
@@ -603,171 +373,22 @@ export const abi = [
|
|
|
603
373
|
type: 'uint256',
|
|
604
374
|
},
|
|
605
375
|
{
|
|
606
|
-
name: '
|
|
376
|
+
name: '_vaultToken',
|
|
607
377
|
type: 'address',
|
|
608
378
|
},
|
|
609
379
|
{
|
|
610
|
-
name: '
|
|
611
|
-
type: '
|
|
380
|
+
name: '_amount',
|
|
381
|
+
type: 'uint256',
|
|
612
382
|
},
|
|
383
|
+
],
|
|
384
|
+
outputs: [
|
|
613
385
|
{
|
|
614
|
-
name: '
|
|
386
|
+
name: '',
|
|
615
387
|
type: 'uint256',
|
|
616
388
|
},
|
|
617
389
|
{
|
|
618
|
-
name: '
|
|
619
|
-
type: '
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
name: '_sig',
|
|
623
|
-
type: 'tuple',
|
|
624
|
-
components: [
|
|
625
|
-
{
|
|
626
|
-
name: 'signature',
|
|
627
|
-
type: 'bytes',
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
name: 'nonce',
|
|
631
|
-
type: 'uint256',
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
name: 'expiration',
|
|
635
|
-
type: 'uint256',
|
|
636
|
-
},
|
|
637
|
-
],
|
|
638
|
-
},
|
|
639
|
-
],
|
|
640
|
-
outputs: [
|
|
641
|
-
{
|
|
642
|
-
name: '',
|
|
643
|
-
type: 'uint256',
|
|
644
|
-
},
|
|
645
|
-
{
|
|
646
|
-
name: '',
|
|
647
|
-
type: 'address',
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
name: '',
|
|
651
|
-
type: 'uint256',
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
name: '',
|
|
655
|
-
type: 'uint256',
|
|
656
|
-
},
|
|
657
|
-
],
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
stateMutability: 'nonpayable',
|
|
661
|
-
type: 'function',
|
|
662
|
-
name: 'withdrawFromYield',
|
|
663
|
-
inputs: [
|
|
664
|
-
{
|
|
665
|
-
name: '_userWallet',
|
|
666
|
-
type: 'address',
|
|
667
|
-
},
|
|
668
|
-
{
|
|
669
|
-
name: '_legoId',
|
|
670
|
-
type: 'uint256',
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
name: '_vaultToken',
|
|
674
|
-
type: 'address',
|
|
675
|
-
},
|
|
676
|
-
],
|
|
677
|
-
outputs: [
|
|
678
|
-
{
|
|
679
|
-
name: '',
|
|
680
|
-
type: 'uint256',
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
name: '',
|
|
684
|
-
type: 'address',
|
|
685
|
-
},
|
|
686
|
-
{
|
|
687
|
-
name: '',
|
|
688
|
-
type: 'uint256',
|
|
689
|
-
},
|
|
690
|
-
{
|
|
691
|
-
name: '',
|
|
692
|
-
type: 'uint256',
|
|
693
|
-
},
|
|
694
|
-
],
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
stateMutability: 'nonpayable',
|
|
698
|
-
type: 'function',
|
|
699
|
-
name: 'withdrawFromYield',
|
|
700
|
-
inputs: [
|
|
701
|
-
{
|
|
702
|
-
name: '_userWallet',
|
|
703
|
-
type: 'address',
|
|
704
|
-
},
|
|
705
|
-
{
|
|
706
|
-
name: '_legoId',
|
|
707
|
-
type: 'uint256',
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
name: '_vaultToken',
|
|
711
|
-
type: 'address',
|
|
712
|
-
},
|
|
713
|
-
{
|
|
714
|
-
name: '_amount',
|
|
715
|
-
type: 'uint256',
|
|
716
|
-
},
|
|
717
|
-
],
|
|
718
|
-
outputs: [
|
|
719
|
-
{
|
|
720
|
-
name: '',
|
|
721
|
-
type: 'uint256',
|
|
722
|
-
},
|
|
723
|
-
{
|
|
724
|
-
name: '',
|
|
725
|
-
type: 'address',
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
name: '',
|
|
729
|
-
type: 'uint256',
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
name: '',
|
|
733
|
-
type: 'uint256',
|
|
734
|
-
},
|
|
735
|
-
],
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
stateMutability: 'nonpayable',
|
|
739
|
-
type: 'function',
|
|
740
|
-
name: 'withdrawFromYield',
|
|
741
|
-
inputs: [
|
|
742
|
-
{
|
|
743
|
-
name: '_userWallet',
|
|
744
|
-
type: 'address',
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
name: '_legoId',
|
|
748
|
-
type: 'uint256',
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
name: '_vaultToken',
|
|
752
|
-
type: 'address',
|
|
753
|
-
},
|
|
754
|
-
{
|
|
755
|
-
name: '_amount',
|
|
756
|
-
type: 'uint256',
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
name: '_extraData',
|
|
760
|
-
type: 'bytes32',
|
|
761
|
-
},
|
|
762
|
-
],
|
|
763
|
-
outputs: [
|
|
764
|
-
{
|
|
765
|
-
name: '',
|
|
766
|
-
type: 'uint256',
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
name: '',
|
|
770
|
-
type: 'address',
|
|
390
|
+
name: '',
|
|
391
|
+
type: 'address',
|
|
771
392
|
},
|
|
772
393
|
{
|
|
773
394
|
name: '',
|
|
@@ -804,24 +425,6 @@ export const abi = [
|
|
|
804
425
|
name: '_extraData',
|
|
805
426
|
type: 'bytes32',
|
|
806
427
|
},
|
|
807
|
-
{
|
|
808
|
-
name: '_sig',
|
|
809
|
-
type: 'tuple',
|
|
810
|
-
components: [
|
|
811
|
-
{
|
|
812
|
-
name: 'signature',
|
|
813
|
-
type: 'bytes',
|
|
814
|
-
},
|
|
815
|
-
{
|
|
816
|
-
name: 'nonce',
|
|
817
|
-
type: 'uint256',
|
|
818
|
-
},
|
|
819
|
-
{
|
|
820
|
-
name: 'expiration',
|
|
821
|
-
type: 'uint256',
|
|
822
|
-
},
|
|
823
|
-
],
|
|
824
|
-
},
|
|
825
428
|
],
|
|
826
429
|
outputs: [
|
|
827
430
|
{
|
|
@@ -1033,56 +636,44 @@ export const abi = [
|
|
|
1033
636
|
{
|
|
1034
637
|
stateMutability: 'nonpayable',
|
|
1035
638
|
type: 'function',
|
|
1036
|
-
name: '
|
|
639
|
+
name: 'swapTokens',
|
|
1037
640
|
inputs: [
|
|
1038
641
|
{
|
|
1039
642
|
name: '_userWallet',
|
|
1040
643
|
type: 'address',
|
|
1041
644
|
},
|
|
1042
645
|
{
|
|
1043
|
-
name: '
|
|
1044
|
-
type: '
|
|
1045
|
-
},
|
|
1046
|
-
{
|
|
1047
|
-
name: '_fromVaultToken',
|
|
1048
|
-
type: 'address',
|
|
1049
|
-
},
|
|
1050
|
-
{
|
|
1051
|
-
name: '_toLegoId',
|
|
1052
|
-
type: 'uint256',
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
name: '_toVaultAddr',
|
|
1056
|
-
type: 'address',
|
|
1057
|
-
},
|
|
1058
|
-
{
|
|
1059
|
-
name: '_fromVaultAmount',
|
|
1060
|
-
type: 'uint256',
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
name: '_extraData',
|
|
1064
|
-
type: 'bytes32',
|
|
1065
|
-
},
|
|
1066
|
-
{
|
|
1067
|
-
name: '_sig',
|
|
1068
|
-
type: 'tuple',
|
|
646
|
+
name: '_swapInstructions',
|
|
647
|
+
type: 'tuple[]',
|
|
1069
648
|
components: [
|
|
1070
649
|
{
|
|
1071
|
-
name: '
|
|
1072
|
-
type: '
|
|
650
|
+
name: 'legoId',
|
|
651
|
+
type: 'uint256',
|
|
1073
652
|
},
|
|
1074
653
|
{
|
|
1075
|
-
name: '
|
|
654
|
+
name: 'amountIn',
|
|
1076
655
|
type: 'uint256',
|
|
1077
656
|
},
|
|
1078
657
|
{
|
|
1079
|
-
name: '
|
|
658
|
+
name: 'minAmountOut',
|
|
1080
659
|
type: 'uint256',
|
|
1081
660
|
},
|
|
661
|
+
{
|
|
662
|
+
name: 'tokenPath',
|
|
663
|
+
type: 'address[]',
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
name: 'poolPath',
|
|
667
|
+
type: 'address[]',
|
|
668
|
+
},
|
|
1082
669
|
],
|
|
1083
670
|
},
|
|
1084
671
|
],
|
|
1085
672
|
outputs: [
|
|
673
|
+
{
|
|
674
|
+
name: '',
|
|
675
|
+
type: 'address',
|
|
676
|
+
},
|
|
1086
677
|
{
|
|
1087
678
|
name: '',
|
|
1088
679
|
type: 'uint256',
|
|
@@ -1104,320 +695,37 @@ export const abi = [
|
|
|
1104
695
|
{
|
|
1105
696
|
stateMutability: 'nonpayable',
|
|
1106
697
|
type: 'function',
|
|
1107
|
-
name: '
|
|
698
|
+
name: 'mintOrRedeemAsset',
|
|
1108
699
|
inputs: [
|
|
1109
700
|
{
|
|
1110
701
|
name: '_userWallet',
|
|
1111
702
|
type: 'address',
|
|
1112
703
|
},
|
|
1113
704
|
{
|
|
1114
|
-
name: '
|
|
1115
|
-
type: '
|
|
1116
|
-
components: [
|
|
1117
|
-
{
|
|
1118
|
-
name: 'legoId',
|
|
1119
|
-
type: 'uint256',
|
|
1120
|
-
},
|
|
1121
|
-
{
|
|
1122
|
-
name: 'amountIn',
|
|
1123
|
-
type: 'uint256',
|
|
1124
|
-
},
|
|
1125
|
-
{
|
|
1126
|
-
name: 'minAmountOut',
|
|
1127
|
-
type: 'uint256',
|
|
1128
|
-
},
|
|
1129
|
-
{
|
|
1130
|
-
name: 'tokenPath',
|
|
1131
|
-
type: 'address[]',
|
|
1132
|
-
},
|
|
1133
|
-
{
|
|
1134
|
-
name: 'poolPath',
|
|
1135
|
-
type: 'address[]',
|
|
1136
|
-
},
|
|
1137
|
-
],
|
|
705
|
+
name: '_legoId',
|
|
706
|
+
type: 'uint256',
|
|
1138
707
|
},
|
|
1139
|
-
],
|
|
1140
|
-
outputs: [
|
|
1141
708
|
{
|
|
1142
|
-
name: '',
|
|
709
|
+
name: '_tokenIn',
|
|
710
|
+
type: 'address',
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
name: '_tokenOut',
|
|
1143
714
|
type: 'address',
|
|
1144
715
|
},
|
|
716
|
+
],
|
|
717
|
+
outputs: [
|
|
1145
718
|
{
|
|
1146
719
|
name: '',
|
|
1147
720
|
type: 'uint256',
|
|
1148
721
|
},
|
|
1149
722
|
{
|
|
1150
723
|
name: '',
|
|
1151
|
-
type: '
|
|
724
|
+
type: 'uint256',
|
|
1152
725
|
},
|
|
1153
726
|
{
|
|
1154
727
|
name: '',
|
|
1155
|
-
type: '
|
|
1156
|
-
},
|
|
1157
|
-
{
|
|
1158
|
-
name: '',
|
|
1159
|
-
type: 'uint256',
|
|
1160
|
-
},
|
|
1161
|
-
],
|
|
1162
|
-
},
|
|
1163
|
-
{
|
|
1164
|
-
stateMutability: 'nonpayable',
|
|
1165
|
-
type: 'function',
|
|
1166
|
-
name: 'swapTokens',
|
|
1167
|
-
inputs: [
|
|
1168
|
-
{
|
|
1169
|
-
name: '_userWallet',
|
|
1170
|
-
type: 'address',
|
|
1171
|
-
},
|
|
1172
|
-
{
|
|
1173
|
-
name: '_swapInstructions',
|
|
1174
|
-
type: 'tuple[]',
|
|
1175
|
-
components: [
|
|
1176
|
-
{
|
|
1177
|
-
name: 'legoId',
|
|
1178
|
-
type: 'uint256',
|
|
1179
|
-
},
|
|
1180
|
-
{
|
|
1181
|
-
name: 'amountIn',
|
|
1182
|
-
type: 'uint256',
|
|
1183
|
-
},
|
|
1184
|
-
{
|
|
1185
|
-
name: 'minAmountOut',
|
|
1186
|
-
type: 'uint256',
|
|
1187
|
-
},
|
|
1188
|
-
{
|
|
1189
|
-
name: 'tokenPath',
|
|
1190
|
-
type: 'address[]',
|
|
1191
|
-
},
|
|
1192
|
-
{
|
|
1193
|
-
name: 'poolPath',
|
|
1194
|
-
type: 'address[]',
|
|
1195
|
-
},
|
|
1196
|
-
],
|
|
1197
|
-
},
|
|
1198
|
-
{
|
|
1199
|
-
name: '_sig',
|
|
1200
|
-
type: 'tuple',
|
|
1201
|
-
components: [
|
|
1202
|
-
{
|
|
1203
|
-
name: 'signature',
|
|
1204
|
-
type: 'bytes',
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
name: 'nonce',
|
|
1208
|
-
type: 'uint256',
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
name: 'expiration',
|
|
1212
|
-
type: 'uint256',
|
|
1213
|
-
},
|
|
1214
|
-
],
|
|
1215
|
-
},
|
|
1216
|
-
],
|
|
1217
|
-
outputs: [
|
|
1218
|
-
{
|
|
1219
|
-
name: '',
|
|
1220
|
-
type: 'address',
|
|
1221
|
-
},
|
|
1222
|
-
{
|
|
1223
|
-
name: '',
|
|
1224
|
-
type: 'uint256',
|
|
1225
|
-
},
|
|
1226
|
-
{
|
|
1227
|
-
name: '',
|
|
1228
|
-
type: 'address',
|
|
1229
|
-
},
|
|
1230
|
-
{
|
|
1231
|
-
name: '',
|
|
1232
|
-
type: 'uint256',
|
|
1233
|
-
},
|
|
1234
|
-
{
|
|
1235
|
-
name: '',
|
|
1236
|
-
type: 'uint256',
|
|
1237
|
-
},
|
|
1238
|
-
],
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
stateMutability: 'nonpayable',
|
|
1242
|
-
type: 'function',
|
|
1243
|
-
name: 'mintOrRedeemAsset',
|
|
1244
|
-
inputs: [
|
|
1245
|
-
{
|
|
1246
|
-
name: '_userWallet',
|
|
1247
|
-
type: 'address',
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
name: '_legoId',
|
|
1251
|
-
type: 'uint256',
|
|
1252
|
-
},
|
|
1253
|
-
{
|
|
1254
|
-
name: '_tokenIn',
|
|
1255
|
-
type: 'address',
|
|
1256
|
-
},
|
|
1257
|
-
{
|
|
1258
|
-
name: '_tokenOut',
|
|
1259
|
-
type: 'address',
|
|
1260
|
-
},
|
|
1261
|
-
],
|
|
1262
|
-
outputs: [
|
|
1263
|
-
{
|
|
1264
|
-
name: '',
|
|
1265
|
-
type: 'uint256',
|
|
1266
|
-
},
|
|
1267
|
-
{
|
|
1268
|
-
name: '',
|
|
1269
|
-
type: 'uint256',
|
|
1270
|
-
},
|
|
1271
|
-
{
|
|
1272
|
-
name: '',
|
|
1273
|
-
type: 'bool',
|
|
1274
|
-
},
|
|
1275
|
-
{
|
|
1276
|
-
name: '',
|
|
1277
|
-
type: 'uint256',
|
|
1278
|
-
},
|
|
1279
|
-
],
|
|
1280
|
-
},
|
|
1281
|
-
{
|
|
1282
|
-
stateMutability: 'nonpayable',
|
|
1283
|
-
type: 'function',
|
|
1284
|
-
name: 'mintOrRedeemAsset',
|
|
1285
|
-
inputs: [
|
|
1286
|
-
{
|
|
1287
|
-
name: '_userWallet',
|
|
1288
|
-
type: 'address',
|
|
1289
|
-
},
|
|
1290
|
-
{
|
|
1291
|
-
name: '_legoId',
|
|
1292
|
-
type: 'uint256',
|
|
1293
|
-
},
|
|
1294
|
-
{
|
|
1295
|
-
name: '_tokenIn',
|
|
1296
|
-
type: 'address',
|
|
1297
|
-
},
|
|
1298
|
-
{
|
|
1299
|
-
name: '_tokenOut',
|
|
1300
|
-
type: 'address',
|
|
1301
|
-
},
|
|
1302
|
-
{
|
|
1303
|
-
name: '_amountIn',
|
|
1304
|
-
type: 'uint256',
|
|
1305
|
-
},
|
|
1306
|
-
],
|
|
1307
|
-
outputs: [
|
|
1308
|
-
{
|
|
1309
|
-
name: '',
|
|
1310
|
-
type: 'uint256',
|
|
1311
|
-
},
|
|
1312
|
-
{
|
|
1313
|
-
name: '',
|
|
1314
|
-
type: 'uint256',
|
|
1315
|
-
},
|
|
1316
|
-
{
|
|
1317
|
-
name: '',
|
|
1318
|
-
type: 'bool',
|
|
1319
|
-
},
|
|
1320
|
-
{
|
|
1321
|
-
name: '',
|
|
1322
|
-
type: 'uint256',
|
|
1323
|
-
},
|
|
1324
|
-
],
|
|
1325
|
-
},
|
|
1326
|
-
{
|
|
1327
|
-
stateMutability: 'nonpayable',
|
|
1328
|
-
type: 'function',
|
|
1329
|
-
name: 'mintOrRedeemAsset',
|
|
1330
|
-
inputs: [
|
|
1331
|
-
{
|
|
1332
|
-
name: '_userWallet',
|
|
1333
|
-
type: 'address',
|
|
1334
|
-
},
|
|
1335
|
-
{
|
|
1336
|
-
name: '_legoId',
|
|
1337
|
-
type: 'uint256',
|
|
1338
|
-
},
|
|
1339
|
-
{
|
|
1340
|
-
name: '_tokenIn',
|
|
1341
|
-
type: 'address',
|
|
1342
|
-
},
|
|
1343
|
-
{
|
|
1344
|
-
name: '_tokenOut',
|
|
1345
|
-
type: 'address',
|
|
1346
|
-
},
|
|
1347
|
-
{
|
|
1348
|
-
name: '_amountIn',
|
|
1349
|
-
type: 'uint256',
|
|
1350
|
-
},
|
|
1351
|
-
{
|
|
1352
|
-
name: '_minAmountOut',
|
|
1353
|
-
type: 'uint256',
|
|
1354
|
-
},
|
|
1355
|
-
],
|
|
1356
|
-
outputs: [
|
|
1357
|
-
{
|
|
1358
|
-
name: '',
|
|
1359
|
-
type: 'uint256',
|
|
1360
|
-
},
|
|
1361
|
-
{
|
|
1362
|
-
name: '',
|
|
1363
|
-
type: 'uint256',
|
|
1364
|
-
},
|
|
1365
|
-
{
|
|
1366
|
-
name: '',
|
|
1367
|
-
type: 'bool',
|
|
1368
|
-
},
|
|
1369
|
-
{
|
|
1370
|
-
name: '',
|
|
1371
|
-
type: 'uint256',
|
|
1372
|
-
},
|
|
1373
|
-
],
|
|
1374
|
-
},
|
|
1375
|
-
{
|
|
1376
|
-
stateMutability: 'nonpayable',
|
|
1377
|
-
type: 'function',
|
|
1378
|
-
name: 'mintOrRedeemAsset',
|
|
1379
|
-
inputs: [
|
|
1380
|
-
{
|
|
1381
|
-
name: '_userWallet',
|
|
1382
|
-
type: 'address',
|
|
1383
|
-
},
|
|
1384
|
-
{
|
|
1385
|
-
name: '_legoId',
|
|
1386
|
-
type: 'uint256',
|
|
1387
|
-
},
|
|
1388
|
-
{
|
|
1389
|
-
name: '_tokenIn',
|
|
1390
|
-
type: 'address',
|
|
1391
|
-
},
|
|
1392
|
-
{
|
|
1393
|
-
name: '_tokenOut',
|
|
1394
|
-
type: 'address',
|
|
1395
|
-
},
|
|
1396
|
-
{
|
|
1397
|
-
name: '_amountIn',
|
|
1398
|
-
type: 'uint256',
|
|
1399
|
-
},
|
|
1400
|
-
{
|
|
1401
|
-
name: '_minAmountOut',
|
|
1402
|
-
type: 'uint256',
|
|
1403
|
-
},
|
|
1404
|
-
{
|
|
1405
|
-
name: '_extraData',
|
|
1406
|
-
type: 'bytes32',
|
|
1407
|
-
},
|
|
1408
|
-
],
|
|
1409
|
-
outputs: [
|
|
1410
|
-
{
|
|
1411
|
-
name: '',
|
|
1412
|
-
type: 'uint256',
|
|
1413
|
-
},
|
|
1414
|
-
{
|
|
1415
|
-
name: '',
|
|
1416
|
-
type: 'uint256',
|
|
1417
|
-
},
|
|
1418
|
-
{
|
|
1419
|
-
name: '',
|
|
1420
|
-
type: 'bool',
|
|
728
|
+
type: 'bool',
|
|
1421
729
|
},
|
|
1422
730
|
{
|
|
1423
731
|
name: '',
|
|
@@ -1439,329 +747,16 @@ export const abi = [
|
|
|
1439
747
|
type: 'uint256',
|
|
1440
748
|
},
|
|
1441
749
|
{
|
|
1442
|
-
name: '_tokenIn',
|
|
1443
|
-
type: 'address',
|
|
1444
|
-
},
|
|
1445
|
-
{
|
|
1446
|
-
name: '_tokenOut',
|
|
1447
|
-
type: 'address',
|
|
1448
|
-
},
|
|
1449
|
-
{
|
|
1450
|
-
name: '_amountIn',
|
|
1451
|
-
type: 'uint256',
|
|
1452
|
-
},
|
|
1453
|
-
{
|
|
1454
|
-
name: '_minAmountOut',
|
|
1455
|
-
type: 'uint256',
|
|
1456
|
-
},
|
|
1457
|
-
{
|
|
1458
|
-
name: '_extraData',
|
|
1459
|
-
type: 'bytes32',
|
|
1460
|
-
},
|
|
1461
|
-
{
|
|
1462
|
-
name: '_sig',
|
|
1463
|
-
type: 'tuple',
|
|
1464
|
-
components: [
|
|
1465
|
-
{
|
|
1466
|
-
name: 'signature',
|
|
1467
|
-
type: 'bytes',
|
|
1468
|
-
},
|
|
1469
|
-
{
|
|
1470
|
-
name: 'nonce',
|
|
1471
|
-
type: 'uint256',
|
|
1472
|
-
},
|
|
1473
|
-
{
|
|
1474
|
-
name: 'expiration',
|
|
1475
|
-
type: 'uint256',
|
|
1476
|
-
},
|
|
1477
|
-
],
|
|
1478
|
-
},
|
|
1479
|
-
],
|
|
1480
|
-
outputs: [
|
|
1481
|
-
{
|
|
1482
|
-
name: '',
|
|
1483
|
-
type: 'uint256',
|
|
1484
|
-
},
|
|
1485
|
-
{
|
|
1486
|
-
name: '',
|
|
1487
|
-
type: 'uint256',
|
|
1488
|
-
},
|
|
1489
|
-
{
|
|
1490
|
-
name: '',
|
|
1491
|
-
type: 'bool',
|
|
1492
|
-
},
|
|
1493
|
-
{
|
|
1494
|
-
name: '',
|
|
1495
|
-
type: 'uint256',
|
|
1496
|
-
},
|
|
1497
|
-
],
|
|
1498
|
-
},
|
|
1499
|
-
{
|
|
1500
|
-
stateMutability: 'nonpayable',
|
|
1501
|
-
type: 'function',
|
|
1502
|
-
name: 'confirmMintOrRedeemAsset',
|
|
1503
|
-
inputs: [
|
|
1504
|
-
{
|
|
1505
|
-
name: '_userWallet',
|
|
1506
|
-
type: 'address',
|
|
1507
|
-
},
|
|
1508
|
-
{
|
|
1509
|
-
name: '_legoId',
|
|
1510
|
-
type: 'uint256',
|
|
1511
|
-
},
|
|
1512
|
-
{
|
|
1513
|
-
name: '_tokenIn',
|
|
1514
|
-
type: 'address',
|
|
1515
|
-
},
|
|
1516
|
-
{
|
|
1517
|
-
name: '_tokenOut',
|
|
1518
|
-
type: 'address',
|
|
1519
|
-
},
|
|
1520
|
-
],
|
|
1521
|
-
outputs: [
|
|
1522
|
-
{
|
|
1523
|
-
name: '',
|
|
1524
|
-
type: 'uint256',
|
|
1525
|
-
},
|
|
1526
|
-
{
|
|
1527
|
-
name: '',
|
|
1528
|
-
type: 'uint256',
|
|
1529
|
-
},
|
|
1530
|
-
],
|
|
1531
|
-
},
|
|
1532
|
-
{
|
|
1533
|
-
stateMutability: 'nonpayable',
|
|
1534
|
-
type: 'function',
|
|
1535
|
-
name: 'confirmMintOrRedeemAsset',
|
|
1536
|
-
inputs: [
|
|
1537
|
-
{
|
|
1538
|
-
name: '_userWallet',
|
|
1539
|
-
type: 'address',
|
|
1540
|
-
},
|
|
1541
|
-
{
|
|
1542
|
-
name: '_legoId',
|
|
1543
|
-
type: 'uint256',
|
|
1544
|
-
},
|
|
1545
|
-
{
|
|
1546
|
-
name: '_tokenIn',
|
|
1547
|
-
type: 'address',
|
|
1548
|
-
},
|
|
1549
|
-
{
|
|
1550
|
-
name: '_tokenOut',
|
|
1551
|
-
type: 'address',
|
|
1552
|
-
},
|
|
1553
|
-
{
|
|
1554
|
-
name: '_extraData',
|
|
1555
|
-
type: 'bytes32',
|
|
1556
|
-
},
|
|
1557
|
-
],
|
|
1558
|
-
outputs: [
|
|
1559
|
-
{
|
|
1560
|
-
name: '',
|
|
1561
|
-
type: 'uint256',
|
|
1562
|
-
},
|
|
1563
|
-
{
|
|
1564
|
-
name: '',
|
|
1565
|
-
type: 'uint256',
|
|
1566
|
-
},
|
|
1567
|
-
],
|
|
1568
|
-
},
|
|
1569
|
-
{
|
|
1570
|
-
stateMutability: 'nonpayable',
|
|
1571
|
-
type: 'function',
|
|
1572
|
-
name: 'confirmMintOrRedeemAsset',
|
|
1573
|
-
inputs: [
|
|
1574
|
-
{
|
|
1575
|
-
name: '_userWallet',
|
|
1576
|
-
type: 'address',
|
|
1577
|
-
},
|
|
1578
|
-
{
|
|
1579
|
-
name: '_legoId',
|
|
1580
|
-
type: 'uint256',
|
|
1581
|
-
},
|
|
1582
|
-
{
|
|
1583
|
-
name: '_tokenIn',
|
|
1584
|
-
type: 'address',
|
|
1585
|
-
},
|
|
1586
|
-
{
|
|
1587
|
-
name: '_tokenOut',
|
|
1588
|
-
type: 'address',
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
name: '_extraData',
|
|
1592
|
-
type: 'bytes32',
|
|
1593
|
-
},
|
|
1594
|
-
{
|
|
1595
|
-
name: '_sig',
|
|
1596
|
-
type: 'tuple',
|
|
1597
|
-
components: [
|
|
1598
|
-
{
|
|
1599
|
-
name: 'signature',
|
|
1600
|
-
type: 'bytes',
|
|
1601
|
-
},
|
|
1602
|
-
{
|
|
1603
|
-
name: 'nonce',
|
|
1604
|
-
type: 'uint256',
|
|
1605
|
-
},
|
|
1606
|
-
{
|
|
1607
|
-
name: 'expiration',
|
|
1608
|
-
type: 'uint256',
|
|
1609
|
-
},
|
|
1610
|
-
],
|
|
1611
|
-
},
|
|
1612
|
-
],
|
|
1613
|
-
outputs: [
|
|
1614
|
-
{
|
|
1615
|
-
name: '',
|
|
1616
|
-
type: 'uint256',
|
|
1617
|
-
},
|
|
1618
|
-
{
|
|
1619
|
-
name: '',
|
|
1620
|
-
type: 'uint256',
|
|
1621
|
-
},
|
|
1622
|
-
],
|
|
1623
|
-
},
|
|
1624
|
-
{
|
|
1625
|
-
stateMutability: 'nonpayable',
|
|
1626
|
-
type: 'function',
|
|
1627
|
-
name: 'addCollateral',
|
|
1628
|
-
inputs: [
|
|
1629
|
-
{
|
|
1630
|
-
name: '_userWallet',
|
|
1631
|
-
type: 'address',
|
|
1632
|
-
},
|
|
1633
|
-
{
|
|
1634
|
-
name: '_legoId',
|
|
1635
|
-
type: 'uint256',
|
|
1636
|
-
},
|
|
1637
|
-
{
|
|
1638
|
-
name: '_asset',
|
|
1639
|
-
type: 'address',
|
|
1640
|
-
},
|
|
1641
|
-
],
|
|
1642
|
-
outputs: [
|
|
1643
|
-
{
|
|
1644
|
-
name: '',
|
|
1645
|
-
type: 'uint256',
|
|
1646
|
-
},
|
|
1647
|
-
{
|
|
1648
|
-
name: '',
|
|
1649
|
-
type: 'uint256',
|
|
1650
|
-
},
|
|
1651
|
-
],
|
|
1652
|
-
},
|
|
1653
|
-
{
|
|
1654
|
-
stateMutability: 'nonpayable',
|
|
1655
|
-
type: 'function',
|
|
1656
|
-
name: 'addCollateral',
|
|
1657
|
-
inputs: [
|
|
1658
|
-
{
|
|
1659
|
-
name: '_userWallet',
|
|
1660
|
-
type: 'address',
|
|
1661
|
-
},
|
|
1662
|
-
{
|
|
1663
|
-
name: '_legoId',
|
|
1664
|
-
type: 'uint256',
|
|
1665
|
-
},
|
|
1666
|
-
{
|
|
1667
|
-
name: '_asset',
|
|
1668
|
-
type: 'address',
|
|
1669
|
-
},
|
|
1670
|
-
{
|
|
1671
|
-
name: '_amount',
|
|
1672
|
-
type: 'uint256',
|
|
1673
|
-
},
|
|
1674
|
-
],
|
|
1675
|
-
outputs: [
|
|
1676
|
-
{
|
|
1677
|
-
name: '',
|
|
1678
|
-
type: 'uint256',
|
|
1679
|
-
},
|
|
1680
|
-
{
|
|
1681
|
-
name: '',
|
|
1682
|
-
type: 'uint256',
|
|
1683
|
-
},
|
|
1684
|
-
],
|
|
1685
|
-
},
|
|
1686
|
-
{
|
|
1687
|
-
stateMutability: 'nonpayable',
|
|
1688
|
-
type: 'function',
|
|
1689
|
-
name: 'addCollateral',
|
|
1690
|
-
inputs: [
|
|
1691
|
-
{
|
|
1692
|
-
name: '_userWallet',
|
|
1693
|
-
type: 'address',
|
|
1694
|
-
},
|
|
1695
|
-
{
|
|
1696
|
-
name: '_legoId',
|
|
1697
|
-
type: 'uint256',
|
|
1698
|
-
},
|
|
1699
|
-
{
|
|
1700
|
-
name: '_asset',
|
|
1701
|
-
type: 'address',
|
|
1702
|
-
},
|
|
1703
|
-
{
|
|
1704
|
-
name: '_amount',
|
|
1705
|
-
type: 'uint256',
|
|
1706
|
-
},
|
|
1707
|
-
{
|
|
1708
|
-
name: '_extraData',
|
|
1709
|
-
type: 'bytes32',
|
|
1710
|
-
},
|
|
1711
|
-
],
|
|
1712
|
-
outputs: [
|
|
1713
|
-
{
|
|
1714
|
-
name: '',
|
|
1715
|
-
type: 'uint256',
|
|
1716
|
-
},
|
|
1717
|
-
{
|
|
1718
|
-
name: '',
|
|
1719
|
-
type: 'uint256',
|
|
1720
|
-
},
|
|
1721
|
-
],
|
|
1722
|
-
},
|
|
1723
|
-
{
|
|
1724
|
-
stateMutability: 'nonpayable',
|
|
1725
|
-
type: 'function',
|
|
1726
|
-
name: 'addCollateral',
|
|
1727
|
-
inputs: [
|
|
1728
|
-
{
|
|
1729
|
-
name: '_userWallet',
|
|
1730
|
-
type: 'address',
|
|
1731
|
-
},
|
|
1732
|
-
{
|
|
1733
|
-
name: '_legoId',
|
|
1734
|
-
type: 'uint256',
|
|
1735
|
-
},
|
|
1736
|
-
{
|
|
1737
|
-
name: '_asset',
|
|
750
|
+
name: '_tokenIn',
|
|
1738
751
|
type: 'address',
|
|
1739
752
|
},
|
|
1740
753
|
{
|
|
1741
|
-
name: '
|
|
1742
|
-
type: '
|
|
1743
|
-
},
|
|
1744
|
-
{
|
|
1745
|
-
name: '_extraData',
|
|
1746
|
-
type: 'bytes32',
|
|
754
|
+
name: '_tokenOut',
|
|
755
|
+
type: 'address',
|
|
1747
756
|
},
|
|
1748
757
|
{
|
|
1749
|
-
name: '
|
|
1750
|
-
type: '
|
|
1751
|
-
components: [
|
|
1752
|
-
{
|
|
1753
|
-
name: 'signature',
|
|
1754
|
-
type: 'bytes',
|
|
1755
|
-
},
|
|
1756
|
-
{
|
|
1757
|
-
name: 'nonce',
|
|
1758
|
-
type: 'uint256',
|
|
1759
|
-
},
|
|
1760
|
-
{
|
|
1761
|
-
name: 'expiration',
|
|
1762
|
-
type: 'uint256',
|
|
1763
|
-
},
|
|
1764
|
-
],
|
|
758
|
+
name: '_amountIn',
|
|
759
|
+
type: 'uint256',
|
|
1765
760
|
},
|
|
1766
761
|
],
|
|
1767
762
|
outputs: [
|
|
@@ -1773,12 +768,20 @@ export const abi = [
|
|
|
1773
768
|
name: '',
|
|
1774
769
|
type: 'uint256',
|
|
1775
770
|
},
|
|
771
|
+
{
|
|
772
|
+
name: '',
|
|
773
|
+
type: 'bool',
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
name: '',
|
|
777
|
+
type: 'uint256',
|
|
778
|
+
},
|
|
1776
779
|
],
|
|
1777
780
|
},
|
|
1778
781
|
{
|
|
1779
782
|
stateMutability: 'nonpayable',
|
|
1780
783
|
type: 'function',
|
|
1781
|
-
name: '
|
|
784
|
+
name: 'mintOrRedeemAsset',
|
|
1782
785
|
inputs: [
|
|
1783
786
|
{
|
|
1784
787
|
name: '_userWallet',
|
|
@@ -1789,9 +792,21 @@ export const abi = [
|
|
|
1789
792
|
type: 'uint256',
|
|
1790
793
|
},
|
|
1791
794
|
{
|
|
1792
|
-
name: '
|
|
795
|
+
name: '_tokenIn',
|
|
796
|
+
type: 'address',
|
|
797
|
+
},
|
|
798
|
+
{
|
|
799
|
+
name: '_tokenOut',
|
|
1793
800
|
type: 'address',
|
|
1794
801
|
},
|
|
802
|
+
{
|
|
803
|
+
name: '_amountIn',
|
|
804
|
+
type: 'uint256',
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
name: '_minAmountOut',
|
|
808
|
+
type: 'uint256',
|
|
809
|
+
},
|
|
1795
810
|
],
|
|
1796
811
|
outputs: [
|
|
1797
812
|
{
|
|
@@ -1802,12 +817,20 @@ export const abi = [
|
|
|
1802
817
|
name: '',
|
|
1803
818
|
type: 'uint256',
|
|
1804
819
|
},
|
|
820
|
+
{
|
|
821
|
+
name: '',
|
|
822
|
+
type: 'bool',
|
|
823
|
+
},
|
|
824
|
+
{
|
|
825
|
+
name: '',
|
|
826
|
+
type: 'uint256',
|
|
827
|
+
},
|
|
1805
828
|
],
|
|
1806
829
|
},
|
|
1807
830
|
{
|
|
1808
831
|
stateMutability: 'nonpayable',
|
|
1809
832
|
type: 'function',
|
|
1810
|
-
name: '
|
|
833
|
+
name: 'mintOrRedeemAsset',
|
|
1811
834
|
inputs: [
|
|
1812
835
|
{
|
|
1813
836
|
name: '_userWallet',
|
|
@@ -1818,13 +841,25 @@ export const abi = [
|
|
|
1818
841
|
type: 'uint256',
|
|
1819
842
|
},
|
|
1820
843
|
{
|
|
1821
|
-
name: '
|
|
844
|
+
name: '_tokenIn',
|
|
1822
845
|
type: 'address',
|
|
1823
846
|
},
|
|
1824
847
|
{
|
|
1825
|
-
name: '
|
|
848
|
+
name: '_tokenOut',
|
|
849
|
+
type: 'address',
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
name: '_amountIn',
|
|
1826
853
|
type: 'uint256',
|
|
1827
854
|
},
|
|
855
|
+
{
|
|
856
|
+
name: '_minAmountOut',
|
|
857
|
+
type: 'uint256',
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
name: '_extraData',
|
|
861
|
+
type: 'bytes32',
|
|
862
|
+
},
|
|
1828
863
|
],
|
|
1829
864
|
outputs: [
|
|
1830
865
|
{
|
|
@@ -1835,12 +870,20 @@ export const abi = [
|
|
|
1835
870
|
name: '',
|
|
1836
871
|
type: 'uint256',
|
|
1837
872
|
},
|
|
873
|
+
{
|
|
874
|
+
name: '',
|
|
875
|
+
type: 'bool',
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
name: '',
|
|
879
|
+
type: 'uint256',
|
|
880
|
+
},
|
|
1838
881
|
],
|
|
1839
882
|
},
|
|
1840
883
|
{
|
|
1841
884
|
stateMutability: 'nonpayable',
|
|
1842
885
|
type: 'function',
|
|
1843
|
-
name: '
|
|
886
|
+
name: 'confirmMintOrRedeemAsset',
|
|
1844
887
|
inputs: [
|
|
1845
888
|
{
|
|
1846
889
|
name: '_userWallet',
|
|
@@ -1851,16 +894,12 @@ export const abi = [
|
|
|
1851
894
|
type: 'uint256',
|
|
1852
895
|
},
|
|
1853
896
|
{
|
|
1854
|
-
name: '
|
|
897
|
+
name: '_tokenIn',
|
|
1855
898
|
type: 'address',
|
|
1856
899
|
},
|
|
1857
900
|
{
|
|
1858
|
-
name: '
|
|
1859
|
-
type: '
|
|
1860
|
-
},
|
|
1861
|
-
{
|
|
1862
|
-
name: '_extraData',
|
|
1863
|
-
type: 'bytes32',
|
|
901
|
+
name: '_tokenOut',
|
|
902
|
+
type: 'address',
|
|
1864
903
|
},
|
|
1865
904
|
],
|
|
1866
905
|
outputs: [
|
|
@@ -1877,7 +916,7 @@ export const abi = [
|
|
|
1877
916
|
{
|
|
1878
917
|
stateMutability: 'nonpayable',
|
|
1879
918
|
type: 'function',
|
|
1880
|
-
name: '
|
|
919
|
+
name: 'confirmMintOrRedeemAsset',
|
|
1881
920
|
inputs: [
|
|
1882
921
|
{
|
|
1883
922
|
name: '_userWallet',
|
|
@@ -1888,35 +927,17 @@ export const abi = [
|
|
|
1888
927
|
type: 'uint256',
|
|
1889
928
|
},
|
|
1890
929
|
{
|
|
1891
|
-
name: '
|
|
930
|
+
name: '_tokenIn',
|
|
1892
931
|
type: 'address',
|
|
1893
932
|
},
|
|
1894
933
|
{
|
|
1895
|
-
name: '
|
|
1896
|
-
type: '
|
|
934
|
+
name: '_tokenOut',
|
|
935
|
+
type: 'address',
|
|
1897
936
|
},
|
|
1898
937
|
{
|
|
1899
938
|
name: '_extraData',
|
|
1900
939
|
type: 'bytes32',
|
|
1901
940
|
},
|
|
1902
|
-
{
|
|
1903
|
-
name: '_sig',
|
|
1904
|
-
type: 'tuple',
|
|
1905
|
-
components: [
|
|
1906
|
-
{
|
|
1907
|
-
name: 'signature',
|
|
1908
|
-
type: 'bytes',
|
|
1909
|
-
},
|
|
1910
|
-
{
|
|
1911
|
-
name: 'nonce',
|
|
1912
|
-
type: 'uint256',
|
|
1913
|
-
},
|
|
1914
|
-
{
|
|
1915
|
-
name: 'expiration',
|
|
1916
|
-
type: 'uint256',
|
|
1917
|
-
},
|
|
1918
|
-
],
|
|
1919
|
-
},
|
|
1920
941
|
],
|
|
1921
942
|
outputs: [
|
|
1922
943
|
{
|
|
@@ -1932,7 +953,7 @@ export const abi = [
|
|
|
1932
953
|
{
|
|
1933
954
|
stateMutability: 'nonpayable',
|
|
1934
955
|
type: 'function',
|
|
1935
|
-
name: '
|
|
956
|
+
name: 'addCollateral',
|
|
1936
957
|
inputs: [
|
|
1937
958
|
{
|
|
1938
959
|
name: '_userWallet',
|
|
@@ -1943,7 +964,7 @@ export const abi = [
|
|
|
1943
964
|
type: 'uint256',
|
|
1944
965
|
},
|
|
1945
966
|
{
|
|
1946
|
-
name: '
|
|
967
|
+
name: '_asset',
|
|
1947
968
|
type: 'address',
|
|
1948
969
|
},
|
|
1949
970
|
],
|
|
@@ -1961,7 +982,7 @@ export const abi = [
|
|
|
1961
982
|
{
|
|
1962
983
|
stateMutability: 'nonpayable',
|
|
1963
984
|
type: 'function',
|
|
1964
|
-
name: '
|
|
985
|
+
name: 'addCollateral',
|
|
1965
986
|
inputs: [
|
|
1966
987
|
{
|
|
1967
988
|
name: '_userWallet',
|
|
@@ -1972,7 +993,7 @@ export const abi = [
|
|
|
1972
993
|
type: 'uint256',
|
|
1973
994
|
},
|
|
1974
995
|
{
|
|
1975
|
-
name: '
|
|
996
|
+
name: '_asset',
|
|
1976
997
|
type: 'address',
|
|
1977
998
|
},
|
|
1978
999
|
{
|
|
@@ -1994,7 +1015,7 @@ export const abi = [
|
|
|
1994
1015
|
{
|
|
1995
1016
|
stateMutability: 'nonpayable',
|
|
1996
1017
|
type: 'function',
|
|
1997
|
-
name: '
|
|
1018
|
+
name: 'addCollateral',
|
|
1998
1019
|
inputs: [
|
|
1999
1020
|
{
|
|
2000
1021
|
name: '_userWallet',
|
|
@@ -2005,7 +1026,7 @@ export const abi = [
|
|
|
2005
1026
|
type: 'uint256',
|
|
2006
1027
|
},
|
|
2007
1028
|
{
|
|
2008
|
-
name: '
|
|
1029
|
+
name: '_asset',
|
|
2009
1030
|
type: 'address',
|
|
2010
1031
|
},
|
|
2011
1032
|
{
|
|
@@ -2031,7 +1052,7 @@ export const abi = [
|
|
|
2031
1052
|
{
|
|
2032
1053
|
stateMutability: 'nonpayable',
|
|
2033
1054
|
type: 'function',
|
|
2034
|
-
name: '
|
|
1055
|
+
name: 'removeCollateral',
|
|
2035
1056
|
inputs: [
|
|
2036
1057
|
{
|
|
2037
1058
|
name: '_userWallet',
|
|
@@ -2042,35 +1063,9 @@ export const abi = [
|
|
|
2042
1063
|
type: 'uint256',
|
|
2043
1064
|
},
|
|
2044
1065
|
{
|
|
2045
|
-
name: '
|
|
1066
|
+
name: '_asset',
|
|
2046
1067
|
type: 'address',
|
|
2047
1068
|
},
|
|
2048
|
-
{
|
|
2049
|
-
name: '_amount',
|
|
2050
|
-
type: 'uint256',
|
|
2051
|
-
},
|
|
2052
|
-
{
|
|
2053
|
-
name: '_extraData',
|
|
2054
|
-
type: 'bytes32',
|
|
2055
|
-
},
|
|
2056
|
-
{
|
|
2057
|
-
name: '_sig',
|
|
2058
|
-
type: 'tuple',
|
|
2059
|
-
components: [
|
|
2060
|
-
{
|
|
2061
|
-
name: 'signature',
|
|
2062
|
-
type: 'bytes',
|
|
2063
|
-
},
|
|
2064
|
-
{
|
|
2065
|
-
name: 'nonce',
|
|
2066
|
-
type: 'uint256',
|
|
2067
|
-
},
|
|
2068
|
-
{
|
|
2069
|
-
name: 'expiration',
|
|
2070
|
-
type: 'uint256',
|
|
2071
|
-
},
|
|
2072
|
-
],
|
|
2073
|
-
},
|
|
2074
1069
|
],
|
|
2075
1070
|
outputs: [
|
|
2076
1071
|
{
|
|
@@ -2086,7 +1081,7 @@ export const abi = [
|
|
|
2086
1081
|
{
|
|
2087
1082
|
stateMutability: 'nonpayable',
|
|
2088
1083
|
type: 'function',
|
|
2089
|
-
name: '
|
|
1084
|
+
name: 'removeCollateral',
|
|
2090
1085
|
inputs: [
|
|
2091
1086
|
{
|
|
2092
1087
|
name: '_userWallet',
|
|
@@ -2097,9 +1092,13 @@ export const abi = [
|
|
|
2097
1092
|
type: 'uint256',
|
|
2098
1093
|
},
|
|
2099
1094
|
{
|
|
2100
|
-
name: '
|
|
1095
|
+
name: '_asset',
|
|
2101
1096
|
type: 'address',
|
|
2102
1097
|
},
|
|
1098
|
+
{
|
|
1099
|
+
name: '_amount',
|
|
1100
|
+
type: 'uint256',
|
|
1101
|
+
},
|
|
2103
1102
|
],
|
|
2104
1103
|
outputs: [
|
|
2105
1104
|
{
|
|
@@ -2115,7 +1114,7 @@ export const abi = [
|
|
|
2115
1114
|
{
|
|
2116
1115
|
stateMutability: 'nonpayable',
|
|
2117
1116
|
type: 'function',
|
|
2118
|
-
name: '
|
|
1117
|
+
name: 'removeCollateral',
|
|
2119
1118
|
inputs: [
|
|
2120
1119
|
{
|
|
2121
1120
|
name: '_userWallet',
|
|
@@ -2126,13 +1125,17 @@ export const abi = [
|
|
|
2126
1125
|
type: 'uint256',
|
|
2127
1126
|
},
|
|
2128
1127
|
{
|
|
2129
|
-
name: '
|
|
1128
|
+
name: '_asset',
|
|
2130
1129
|
type: 'address',
|
|
2131
1130
|
},
|
|
2132
1131
|
{
|
|
2133
|
-
name: '
|
|
1132
|
+
name: '_amount',
|
|
2134
1133
|
type: 'uint256',
|
|
2135
1134
|
},
|
|
1135
|
+
{
|
|
1136
|
+
name: '_extraData',
|
|
1137
|
+
type: 'bytes32',
|
|
1138
|
+
},
|
|
2136
1139
|
],
|
|
2137
1140
|
outputs: [
|
|
2138
1141
|
{
|
|
@@ -2148,7 +1151,7 @@ export const abi = [
|
|
|
2148
1151
|
{
|
|
2149
1152
|
stateMutability: 'nonpayable',
|
|
2150
1153
|
type: 'function',
|
|
2151
|
-
name: '
|
|
1154
|
+
name: 'borrow',
|
|
2152
1155
|
inputs: [
|
|
2153
1156
|
{
|
|
2154
1157
|
name: '_userWallet',
|
|
@@ -2159,17 +1162,9 @@ export const abi = [
|
|
|
2159
1162
|
type: 'uint256',
|
|
2160
1163
|
},
|
|
2161
1164
|
{
|
|
2162
|
-
name: '
|
|
1165
|
+
name: '_borrowAsset',
|
|
2163
1166
|
type: 'address',
|
|
2164
1167
|
},
|
|
2165
|
-
{
|
|
2166
|
-
name: '_paymentAmount',
|
|
2167
|
-
type: 'uint256',
|
|
2168
|
-
},
|
|
2169
|
-
{
|
|
2170
|
-
name: '_extraData',
|
|
2171
|
-
type: 'bytes32',
|
|
2172
|
-
},
|
|
2173
1168
|
],
|
|
2174
1169
|
outputs: [
|
|
2175
1170
|
{
|
|
@@ -2185,7 +1180,7 @@ export const abi = [
|
|
|
2185
1180
|
{
|
|
2186
1181
|
stateMutability: 'nonpayable',
|
|
2187
1182
|
type: 'function',
|
|
2188
|
-
name: '
|
|
1183
|
+
name: 'borrow',
|
|
2189
1184
|
inputs: [
|
|
2190
1185
|
{
|
|
2191
1186
|
name: '_userWallet',
|
|
@@ -2196,35 +1191,13 @@ export const abi = [
|
|
|
2196
1191
|
type: 'uint256',
|
|
2197
1192
|
},
|
|
2198
1193
|
{
|
|
2199
|
-
name: '
|
|
1194
|
+
name: '_borrowAsset',
|
|
2200
1195
|
type: 'address',
|
|
2201
1196
|
},
|
|
2202
1197
|
{
|
|
2203
|
-
name: '
|
|
1198
|
+
name: '_amount',
|
|
2204
1199
|
type: 'uint256',
|
|
2205
1200
|
},
|
|
2206
|
-
{
|
|
2207
|
-
name: '_extraData',
|
|
2208
|
-
type: 'bytes32',
|
|
2209
|
-
},
|
|
2210
|
-
{
|
|
2211
|
-
name: '_sig',
|
|
2212
|
-
type: 'tuple',
|
|
2213
|
-
components: [
|
|
2214
|
-
{
|
|
2215
|
-
name: 'signature',
|
|
2216
|
-
type: 'bytes',
|
|
2217
|
-
},
|
|
2218
|
-
{
|
|
2219
|
-
name: 'nonce',
|
|
2220
|
-
type: 'uint256',
|
|
2221
|
-
},
|
|
2222
|
-
{
|
|
2223
|
-
name: 'expiration',
|
|
2224
|
-
type: 'uint256',
|
|
2225
|
-
},
|
|
2226
|
-
],
|
|
2227
|
-
},
|
|
2228
1201
|
],
|
|
2229
1202
|
outputs: [
|
|
2230
1203
|
{
|
|
@@ -2240,7 +1213,7 @@ export const abi = [
|
|
|
2240
1213
|
{
|
|
2241
1214
|
stateMutability: 'nonpayable',
|
|
2242
1215
|
type: 'function',
|
|
2243
|
-
name: '
|
|
1216
|
+
name: 'borrow',
|
|
2244
1217
|
inputs: [
|
|
2245
1218
|
{
|
|
2246
1219
|
name: '_userWallet',
|
|
@@ -2250,6 +1223,18 @@ export const abi = [
|
|
|
2250
1223
|
name: '_legoId',
|
|
2251
1224
|
type: 'uint256',
|
|
2252
1225
|
},
|
|
1226
|
+
{
|
|
1227
|
+
name: '_borrowAsset',
|
|
1228
|
+
type: 'address',
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
name: '_amount',
|
|
1232
|
+
type: 'uint256',
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
name: '_extraData',
|
|
1236
|
+
type: 'bytes32',
|
|
1237
|
+
},
|
|
2253
1238
|
],
|
|
2254
1239
|
outputs: [
|
|
2255
1240
|
{
|
|
@@ -2265,7 +1250,7 @@ export const abi = [
|
|
|
2265
1250
|
{
|
|
2266
1251
|
stateMutability: 'nonpayable',
|
|
2267
1252
|
type: 'function',
|
|
2268
|
-
name: '
|
|
1253
|
+
name: 'repayDebt',
|
|
2269
1254
|
inputs: [
|
|
2270
1255
|
{
|
|
2271
1256
|
name: '_userWallet',
|
|
@@ -2276,7 +1261,7 @@ export const abi = [
|
|
|
2276
1261
|
type: 'uint256',
|
|
2277
1262
|
},
|
|
2278
1263
|
{
|
|
2279
|
-
name: '
|
|
1264
|
+
name: '_paymentAsset',
|
|
2280
1265
|
type: 'address',
|
|
2281
1266
|
},
|
|
2282
1267
|
],
|
|
@@ -2294,7 +1279,7 @@ export const abi = [
|
|
|
2294
1279
|
{
|
|
2295
1280
|
stateMutability: 'nonpayable',
|
|
2296
1281
|
type: 'function',
|
|
2297
|
-
name: '
|
|
1282
|
+
name: 'repayDebt',
|
|
2298
1283
|
inputs: [
|
|
2299
1284
|
{
|
|
2300
1285
|
name: '_userWallet',
|
|
@@ -2305,11 +1290,11 @@ export const abi = [
|
|
|
2305
1290
|
type: 'uint256',
|
|
2306
1291
|
},
|
|
2307
1292
|
{
|
|
2308
|
-
name: '
|
|
1293
|
+
name: '_paymentAsset',
|
|
2309
1294
|
type: 'address',
|
|
2310
1295
|
},
|
|
2311
1296
|
{
|
|
2312
|
-
name: '
|
|
1297
|
+
name: '_paymentAmount',
|
|
2313
1298
|
type: 'uint256',
|
|
2314
1299
|
},
|
|
2315
1300
|
],
|
|
@@ -2327,7 +1312,7 @@ export const abi = [
|
|
|
2327
1312
|
{
|
|
2328
1313
|
stateMutability: 'nonpayable',
|
|
2329
1314
|
type: 'function',
|
|
2330
|
-
name: '
|
|
1315
|
+
name: 'repayDebt',
|
|
2331
1316
|
inputs: [
|
|
2332
1317
|
{
|
|
2333
1318
|
name: '_userWallet',
|
|
@@ -2338,11 +1323,11 @@ export const abi = [
|
|
|
2338
1323
|
type: 'uint256',
|
|
2339
1324
|
},
|
|
2340
1325
|
{
|
|
2341
|
-
name: '
|
|
1326
|
+
name: '_paymentAsset',
|
|
2342
1327
|
type: 'address',
|
|
2343
1328
|
},
|
|
2344
1329
|
{
|
|
2345
|
-
name: '
|
|
1330
|
+
name: '_paymentAmount',
|
|
2346
1331
|
type: 'uint256',
|
|
2347
1332
|
},
|
|
2348
1333
|
{
|
|
@@ -2364,7 +1349,7 @@ export const abi = [
|
|
|
2364
1349
|
{
|
|
2365
1350
|
stateMutability: 'nonpayable',
|
|
2366
1351
|
type: 'function',
|
|
2367
|
-
name: '
|
|
1352
|
+
name: 'claimIncentives',
|
|
2368
1353
|
inputs: [
|
|
2369
1354
|
{
|
|
2370
1355
|
name: '_userWallet',
|
|
@@ -2374,36 +1359,6 @@ export const abi = [
|
|
|
2374
1359
|
name: '_legoId',
|
|
2375
1360
|
type: 'uint256',
|
|
2376
1361
|
},
|
|
2377
|
-
{
|
|
2378
|
-
name: '_rewardToken',
|
|
2379
|
-
type: 'address',
|
|
2380
|
-
},
|
|
2381
|
-
{
|
|
2382
|
-
name: '_rewardAmount',
|
|
2383
|
-
type: 'uint256',
|
|
2384
|
-
},
|
|
2385
|
-
{
|
|
2386
|
-
name: '_extraData',
|
|
2387
|
-
type: 'bytes32',
|
|
2388
|
-
},
|
|
2389
|
-
{
|
|
2390
|
-
name: '_sig',
|
|
2391
|
-
type: 'tuple',
|
|
2392
|
-
components: [
|
|
2393
|
-
{
|
|
2394
|
-
name: 'signature',
|
|
2395
|
-
type: 'bytes',
|
|
2396
|
-
},
|
|
2397
|
-
{
|
|
2398
|
-
name: 'nonce',
|
|
2399
|
-
type: 'uint256',
|
|
2400
|
-
},
|
|
2401
|
-
{
|
|
2402
|
-
name: 'expiration',
|
|
2403
|
-
type: 'uint256',
|
|
2404
|
-
},
|
|
2405
|
-
],
|
|
2406
|
-
},
|
|
2407
1362
|
],
|
|
2408
1363
|
outputs: [
|
|
2409
1364
|
{
|
|
@@ -2419,10 +1374,18 @@ export const abi = [
|
|
|
2419
1374
|
{
|
|
2420
1375
|
stateMutability: 'nonpayable',
|
|
2421
1376
|
type: 'function',
|
|
2422
|
-
name: '
|
|
1377
|
+
name: 'claimIncentives',
|
|
2423
1378
|
inputs: [
|
|
2424
1379
|
{
|
|
2425
|
-
name: '_userWallet',
|
|
1380
|
+
name: '_userWallet',
|
|
1381
|
+
type: 'address',
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
name: '_legoId',
|
|
1385
|
+
type: 'uint256',
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
name: '_rewardToken',
|
|
2426
1389
|
type: 'address',
|
|
2427
1390
|
},
|
|
2428
1391
|
],
|
|
@@ -2440,14 +1403,22 @@ export const abi = [
|
|
|
2440
1403
|
{
|
|
2441
1404
|
stateMutability: 'nonpayable',
|
|
2442
1405
|
type: 'function',
|
|
2443
|
-
name: '
|
|
1406
|
+
name: 'claimIncentives',
|
|
2444
1407
|
inputs: [
|
|
2445
1408
|
{
|
|
2446
1409
|
name: '_userWallet',
|
|
2447
1410
|
type: 'address',
|
|
2448
1411
|
},
|
|
2449
1412
|
{
|
|
2450
|
-
name: '
|
|
1413
|
+
name: '_legoId',
|
|
1414
|
+
type: 'uint256',
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
name: '_rewardToken',
|
|
1418
|
+
type: 'address',
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
name: '_rewardAmount',
|
|
2451
1422
|
type: 'uint256',
|
|
2452
1423
|
},
|
|
2453
1424
|
],
|
|
@@ -2465,33 +1436,27 @@ export const abi = [
|
|
|
2465
1436
|
{
|
|
2466
1437
|
stateMutability: 'nonpayable',
|
|
2467
1438
|
type: 'function',
|
|
2468
|
-
name: '
|
|
1439
|
+
name: 'claimIncentives',
|
|
2469
1440
|
inputs: [
|
|
2470
1441
|
{
|
|
2471
1442
|
name: '_userWallet',
|
|
2472
1443
|
type: 'address',
|
|
2473
1444
|
},
|
|
2474
1445
|
{
|
|
2475
|
-
name: '
|
|
1446
|
+
name: '_legoId',
|
|
2476
1447
|
type: 'uint256',
|
|
2477
1448
|
},
|
|
2478
1449
|
{
|
|
2479
|
-
name: '
|
|
2480
|
-
type: '
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
},
|
|
2490
|
-
{
|
|
2491
|
-
name: 'expiration',
|
|
2492
|
-
type: 'uint256',
|
|
2493
|
-
},
|
|
2494
|
-
],
|
|
1450
|
+
name: '_rewardToken',
|
|
1451
|
+
type: 'address',
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
name: '_rewardAmount',
|
|
1455
|
+
type: 'uint256',
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
name: '_proofs',
|
|
1459
|
+
type: 'bytes32[]',
|
|
2495
1460
|
},
|
|
2496
1461
|
],
|
|
2497
1462
|
outputs: [
|
|
@@ -2508,7 +1473,7 @@ export const abi = [
|
|
|
2508
1473
|
{
|
|
2509
1474
|
stateMutability: 'nonpayable',
|
|
2510
1475
|
type: 'function',
|
|
2511
|
-
name: '
|
|
1476
|
+
name: 'convertWethToEth',
|
|
2512
1477
|
inputs: [
|
|
2513
1478
|
{
|
|
2514
1479
|
name: '_userWallet',
|
|
@@ -2529,7 +1494,7 @@ export const abi = [
|
|
|
2529
1494
|
{
|
|
2530
1495
|
stateMutability: 'nonpayable',
|
|
2531
1496
|
type: 'function',
|
|
2532
|
-
name: '
|
|
1497
|
+
name: 'convertWethToEth',
|
|
2533
1498
|
inputs: [
|
|
2534
1499
|
{
|
|
2535
1500
|
name: '_userWallet',
|
|
@@ -2560,28 +1525,6 @@ export const abi = [
|
|
|
2560
1525
|
name: '_userWallet',
|
|
2561
1526
|
type: 'address',
|
|
2562
1527
|
},
|
|
2563
|
-
{
|
|
2564
|
-
name: '_amount',
|
|
2565
|
-
type: 'uint256',
|
|
2566
|
-
},
|
|
2567
|
-
{
|
|
2568
|
-
name: '_sig',
|
|
2569
|
-
type: 'tuple',
|
|
2570
|
-
components: [
|
|
2571
|
-
{
|
|
2572
|
-
name: 'signature',
|
|
2573
|
-
type: 'bytes',
|
|
2574
|
-
},
|
|
2575
|
-
{
|
|
2576
|
-
name: 'nonce',
|
|
2577
|
-
type: 'uint256',
|
|
2578
|
-
},
|
|
2579
|
-
{
|
|
2580
|
-
name: 'expiration',
|
|
2581
|
-
type: 'uint256',
|
|
2582
|
-
},
|
|
2583
|
-
],
|
|
2584
|
-
},
|
|
2585
1528
|
],
|
|
2586
1529
|
outputs: [
|
|
2587
1530
|
{
|
|
@@ -2597,28 +1540,16 @@ export const abi = [
|
|
|
2597
1540
|
{
|
|
2598
1541
|
stateMutability: 'nonpayable',
|
|
2599
1542
|
type: 'function',
|
|
2600
|
-
name: '
|
|
1543
|
+
name: 'convertEthToWeth',
|
|
2601
1544
|
inputs: [
|
|
2602
1545
|
{
|
|
2603
1546
|
name: '_userWallet',
|
|
2604
1547
|
type: 'address',
|
|
2605
1548
|
},
|
|
2606
1549
|
{
|
|
2607
|
-
name: '
|
|
1550
|
+
name: '_amount',
|
|
2608
1551
|
type: 'uint256',
|
|
2609
1552
|
},
|
|
2610
|
-
{
|
|
2611
|
-
name: '_pool',
|
|
2612
|
-
type: 'address',
|
|
2613
|
-
},
|
|
2614
|
-
{
|
|
2615
|
-
name: '_tokenA',
|
|
2616
|
-
type: 'address',
|
|
2617
|
-
},
|
|
2618
|
-
{
|
|
2619
|
-
name: '_tokenB',
|
|
2620
|
-
type: 'address',
|
|
2621
|
-
},
|
|
2622
1553
|
],
|
|
2623
1554
|
outputs: [
|
|
2624
1555
|
{
|
|
@@ -2629,14 +1560,6 @@ export const abi = [
|
|
|
2629
1560
|
name: '',
|
|
2630
1561
|
type: 'uint256',
|
|
2631
1562
|
},
|
|
2632
|
-
{
|
|
2633
|
-
name: '',
|
|
2634
|
-
type: 'uint256',
|
|
2635
|
-
},
|
|
2636
|
-
{
|
|
2637
|
-
name: '',
|
|
2638
|
-
type: 'uint256',
|
|
2639
|
-
},
|
|
2640
1563
|
],
|
|
2641
1564
|
},
|
|
2642
1565
|
{
|
|
@@ -2664,10 +1587,6 @@ export const abi = [
|
|
|
2664
1587
|
name: '_tokenB',
|
|
2665
1588
|
type: 'address',
|
|
2666
1589
|
},
|
|
2667
|
-
{
|
|
2668
|
-
name: '_amountA',
|
|
2669
|
-
type: 'uint256',
|
|
2670
|
-
},
|
|
2671
1590
|
],
|
|
2672
1591
|
outputs: [
|
|
2673
1592
|
{
|
|
@@ -2717,10 +1636,6 @@ export const abi = [
|
|
|
2717
1636
|
name: '_amountA',
|
|
2718
1637
|
type: 'uint256',
|
|
2719
1638
|
},
|
|
2720
|
-
{
|
|
2721
|
-
name: '_amountB',
|
|
2722
|
-
type: 'uint256',
|
|
2723
|
-
},
|
|
2724
1639
|
],
|
|
2725
1640
|
outputs: [
|
|
2726
1641
|
{
|
|
@@ -2774,10 +1689,6 @@ export const abi = [
|
|
|
2774
1689
|
name: '_amountB',
|
|
2775
1690
|
type: 'uint256',
|
|
2776
1691
|
},
|
|
2777
|
-
{
|
|
2778
|
-
name: '_minAmountA',
|
|
2779
|
-
type: 'uint256',
|
|
2780
|
-
},
|
|
2781
1692
|
],
|
|
2782
1693
|
outputs: [
|
|
2783
1694
|
{
|
|
@@ -2835,10 +1746,6 @@ export const abi = [
|
|
|
2835
1746
|
name: '_minAmountA',
|
|
2836
1747
|
type: 'uint256',
|
|
2837
1748
|
},
|
|
2838
|
-
{
|
|
2839
|
-
name: '_minAmountB',
|
|
2840
|
-
type: 'uint256',
|
|
2841
|
-
},
|
|
2842
1749
|
],
|
|
2843
1750
|
outputs: [
|
|
2844
1751
|
{
|
|
@@ -2900,10 +1807,6 @@ export const abi = [
|
|
|
2900
1807
|
name: '_minAmountB',
|
|
2901
1808
|
type: 'uint256',
|
|
2902
1809
|
},
|
|
2903
|
-
{
|
|
2904
|
-
name: '_minLpAmount',
|
|
2905
|
-
type: 'uint256',
|
|
2906
|
-
},
|
|
2907
1810
|
],
|
|
2908
1811
|
outputs: [
|
|
2909
1812
|
{
|
|
@@ -2969,10 +1872,6 @@ export const abi = [
|
|
|
2969
1872
|
name: '_minLpAmount',
|
|
2970
1873
|
type: 'uint256',
|
|
2971
1874
|
},
|
|
2972
|
-
{
|
|
2973
|
-
name: '_extraData',
|
|
2974
|
-
type: 'bytes32',
|
|
2975
|
-
},
|
|
2976
1875
|
],
|
|
2977
1876
|
outputs: [
|
|
2978
1877
|
{
|
|
@@ -3042,73 +1941,6 @@ export const abi = [
|
|
|
3042
1941
|
name: '_extraData',
|
|
3043
1942
|
type: 'bytes32',
|
|
3044
1943
|
},
|
|
3045
|
-
{
|
|
3046
|
-
name: '_sig',
|
|
3047
|
-
type: 'tuple',
|
|
3048
|
-
components: [
|
|
3049
|
-
{
|
|
3050
|
-
name: 'signature',
|
|
3051
|
-
type: 'bytes',
|
|
3052
|
-
},
|
|
3053
|
-
{
|
|
3054
|
-
name: 'nonce',
|
|
3055
|
-
type: 'uint256',
|
|
3056
|
-
},
|
|
3057
|
-
{
|
|
3058
|
-
name: 'expiration',
|
|
3059
|
-
type: 'uint256',
|
|
3060
|
-
},
|
|
3061
|
-
],
|
|
3062
|
-
},
|
|
3063
|
-
],
|
|
3064
|
-
outputs: [
|
|
3065
|
-
{
|
|
3066
|
-
name: '',
|
|
3067
|
-
type: 'uint256',
|
|
3068
|
-
},
|
|
3069
|
-
{
|
|
3070
|
-
name: '',
|
|
3071
|
-
type: 'uint256',
|
|
3072
|
-
},
|
|
3073
|
-
{
|
|
3074
|
-
name: '',
|
|
3075
|
-
type: 'uint256',
|
|
3076
|
-
},
|
|
3077
|
-
{
|
|
3078
|
-
name: '',
|
|
3079
|
-
type: 'uint256',
|
|
3080
|
-
},
|
|
3081
|
-
],
|
|
3082
|
-
},
|
|
3083
|
-
{
|
|
3084
|
-
stateMutability: 'nonpayable',
|
|
3085
|
-
type: 'function',
|
|
3086
|
-
name: 'removeLiquidity',
|
|
3087
|
-
inputs: [
|
|
3088
|
-
{
|
|
3089
|
-
name: '_userWallet',
|
|
3090
|
-
type: 'address',
|
|
3091
|
-
},
|
|
3092
|
-
{
|
|
3093
|
-
name: '_legoId',
|
|
3094
|
-
type: 'uint256',
|
|
3095
|
-
},
|
|
3096
|
-
{
|
|
3097
|
-
name: '_pool',
|
|
3098
|
-
type: 'address',
|
|
3099
|
-
},
|
|
3100
|
-
{
|
|
3101
|
-
name: '_tokenA',
|
|
3102
|
-
type: 'address',
|
|
3103
|
-
},
|
|
3104
|
-
{
|
|
3105
|
-
name: '_tokenB',
|
|
3106
|
-
type: 'address',
|
|
3107
|
-
},
|
|
3108
|
-
{
|
|
3109
|
-
name: '_lpToken',
|
|
3110
|
-
type: 'address',
|
|
3111
|
-
},
|
|
3112
1944
|
],
|
|
3113
1945
|
outputs: [
|
|
3114
1946
|
{
|
|
@@ -3158,10 +1990,6 @@ export const abi = [
|
|
|
3158
1990
|
name: '_lpToken',
|
|
3159
1991
|
type: 'address',
|
|
3160
1992
|
},
|
|
3161
|
-
{
|
|
3162
|
-
name: '_lpAmount',
|
|
3163
|
-
type: 'uint256',
|
|
3164
|
-
},
|
|
3165
1993
|
],
|
|
3166
1994
|
outputs: [
|
|
3167
1995
|
{
|
|
@@ -3215,10 +2043,6 @@ export const abi = [
|
|
|
3215
2043
|
name: '_lpAmount',
|
|
3216
2044
|
type: 'uint256',
|
|
3217
2045
|
},
|
|
3218
|
-
{
|
|
3219
|
-
name: '_minAmountA',
|
|
3220
|
-
type: 'uint256',
|
|
3221
|
-
},
|
|
3222
2046
|
],
|
|
3223
2047
|
outputs: [
|
|
3224
2048
|
{
|
|
@@ -3276,10 +2100,6 @@ export const abi = [
|
|
|
3276
2100
|
name: '_minAmountA',
|
|
3277
2101
|
type: 'uint256',
|
|
3278
2102
|
},
|
|
3279
|
-
{
|
|
3280
|
-
name: '_minAmountB',
|
|
3281
|
-
type: 'uint256',
|
|
3282
|
-
},
|
|
3283
2103
|
],
|
|
3284
2104
|
outputs: [
|
|
3285
2105
|
{
|
|
@@ -3341,10 +2161,6 @@ export const abi = [
|
|
|
3341
2161
|
name: '_minAmountB',
|
|
3342
2162
|
type: 'uint256',
|
|
3343
2163
|
},
|
|
3344
|
-
{
|
|
3345
|
-
name: '_extraData',
|
|
3346
|
-
type: 'bytes32',
|
|
3347
|
-
},
|
|
3348
2164
|
],
|
|
3349
2165
|
outputs: [
|
|
3350
2166
|
{
|
|
@@ -3410,77 +2226,6 @@ export const abi = [
|
|
|
3410
2226
|
name: '_extraData',
|
|
3411
2227
|
type: 'bytes32',
|
|
3412
2228
|
},
|
|
3413
|
-
{
|
|
3414
|
-
name: '_sig',
|
|
3415
|
-
type: 'tuple',
|
|
3416
|
-
components: [
|
|
3417
|
-
{
|
|
3418
|
-
name: 'signature',
|
|
3419
|
-
type: 'bytes',
|
|
3420
|
-
},
|
|
3421
|
-
{
|
|
3422
|
-
name: 'nonce',
|
|
3423
|
-
type: 'uint256',
|
|
3424
|
-
},
|
|
3425
|
-
{
|
|
3426
|
-
name: 'expiration',
|
|
3427
|
-
type: 'uint256',
|
|
3428
|
-
},
|
|
3429
|
-
],
|
|
3430
|
-
},
|
|
3431
|
-
],
|
|
3432
|
-
outputs: [
|
|
3433
|
-
{
|
|
3434
|
-
name: '',
|
|
3435
|
-
type: 'uint256',
|
|
3436
|
-
},
|
|
3437
|
-
{
|
|
3438
|
-
name: '',
|
|
3439
|
-
type: 'uint256',
|
|
3440
|
-
},
|
|
3441
|
-
{
|
|
3442
|
-
name: '',
|
|
3443
|
-
type: 'uint256',
|
|
3444
|
-
},
|
|
3445
|
-
{
|
|
3446
|
-
name: '',
|
|
3447
|
-
type: 'uint256',
|
|
3448
|
-
},
|
|
3449
|
-
],
|
|
3450
|
-
},
|
|
3451
|
-
{
|
|
3452
|
-
stateMutability: 'nonpayable',
|
|
3453
|
-
type: 'function',
|
|
3454
|
-
name: 'addLiquidityConcentrated',
|
|
3455
|
-
inputs: [
|
|
3456
|
-
{
|
|
3457
|
-
name: '_userWallet',
|
|
3458
|
-
type: 'address',
|
|
3459
|
-
},
|
|
3460
|
-
{
|
|
3461
|
-
name: '_legoId',
|
|
3462
|
-
type: 'uint256',
|
|
3463
|
-
},
|
|
3464
|
-
{
|
|
3465
|
-
name: '_nftAddr',
|
|
3466
|
-
type: 'address',
|
|
3467
|
-
},
|
|
3468
|
-
{
|
|
3469
|
-
name: '_nftTokenId',
|
|
3470
|
-
type: 'uint256',
|
|
3471
|
-
},
|
|
3472
|
-
{
|
|
3473
|
-
name: '_pool',
|
|
3474
|
-
type: 'address',
|
|
3475
|
-
},
|
|
3476
|
-
{
|
|
3477
|
-
name: '_tokenA',
|
|
3478
|
-
type: 'address',
|
|
3479
|
-
},
|
|
3480
|
-
{
|
|
3481
|
-
name: '_tokenB',
|
|
3482
|
-
type: 'address',
|
|
3483
|
-
},
|
|
3484
2229
|
],
|
|
3485
2230
|
outputs: [
|
|
3486
2231
|
{
|
|
@@ -3499,10 +2244,6 @@ export const abi = [
|
|
|
3499
2244
|
name: '',
|
|
3500
2245
|
type: 'uint256',
|
|
3501
2246
|
},
|
|
3502
|
-
{
|
|
3503
|
-
name: '',
|
|
3504
|
-
type: 'uint256',
|
|
3505
|
-
},
|
|
3506
2247
|
],
|
|
3507
2248
|
},
|
|
3508
2249
|
{
|
|
@@ -3536,11 +2277,7 @@ export const abi = [
|
|
|
3536
2277
|
},
|
|
3537
2278
|
{
|
|
3538
2279
|
name: '_tokenB',
|
|
3539
|
-
type: 'address',
|
|
3540
|
-
},
|
|
3541
|
-
{
|
|
3542
|
-
name: '_amountA',
|
|
3543
|
-
type: 'uint256',
|
|
2280
|
+
type: 'address',
|
|
3544
2281
|
},
|
|
3545
2282
|
],
|
|
3546
2283
|
outputs: [
|
|
@@ -3603,10 +2340,6 @@ export const abi = [
|
|
|
3603
2340
|
name: '_amountA',
|
|
3604
2341
|
type: 'uint256',
|
|
3605
2342
|
},
|
|
3606
|
-
{
|
|
3607
|
-
name: '_amountB',
|
|
3608
|
-
type: 'uint256',
|
|
3609
|
-
},
|
|
3610
2343
|
],
|
|
3611
2344
|
outputs: [
|
|
3612
2345
|
{
|
|
@@ -3672,10 +2405,6 @@ export const abi = [
|
|
|
3672
2405
|
name: '_amountB',
|
|
3673
2406
|
type: 'uint256',
|
|
3674
2407
|
},
|
|
3675
|
-
{
|
|
3676
|
-
name: '_tickLower',
|
|
3677
|
-
type: 'int24',
|
|
3678
|
-
},
|
|
3679
2408
|
],
|
|
3680
2409
|
outputs: [
|
|
3681
2410
|
{
|
|
@@ -3745,10 +2474,6 @@ export const abi = [
|
|
|
3745
2474
|
name: '_tickLower',
|
|
3746
2475
|
type: 'int24',
|
|
3747
2476
|
},
|
|
3748
|
-
{
|
|
3749
|
-
name: '_tickUpper',
|
|
3750
|
-
type: 'int24',
|
|
3751
|
-
},
|
|
3752
2477
|
],
|
|
3753
2478
|
outputs: [
|
|
3754
2479
|
{
|
|
@@ -3822,10 +2547,6 @@ export const abi = [
|
|
|
3822
2547
|
name: '_tickUpper',
|
|
3823
2548
|
type: 'int24',
|
|
3824
2549
|
},
|
|
3825
|
-
{
|
|
3826
|
-
name: '_minAmountA',
|
|
3827
|
-
type: 'uint256',
|
|
3828
|
-
},
|
|
3829
2550
|
],
|
|
3830
2551
|
outputs: [
|
|
3831
2552
|
{
|
|
@@ -3903,10 +2624,6 @@ export const abi = [
|
|
|
3903
2624
|
name: '_minAmountA',
|
|
3904
2625
|
type: 'uint256',
|
|
3905
2626
|
},
|
|
3906
|
-
{
|
|
3907
|
-
name: '_minAmountB',
|
|
3908
|
-
type: 'uint256',
|
|
3909
|
-
},
|
|
3910
2627
|
],
|
|
3911
2628
|
outputs: [
|
|
3912
2629
|
{
|
|
@@ -3988,10 +2705,6 @@ export const abi = [
|
|
|
3988
2705
|
name: '_minAmountB',
|
|
3989
2706
|
type: 'uint256',
|
|
3990
2707
|
},
|
|
3991
|
-
{
|
|
3992
|
-
name: '_extraData',
|
|
3993
|
-
type: 'bytes32',
|
|
3994
|
-
},
|
|
3995
2708
|
],
|
|
3996
2709
|
outputs: [
|
|
3997
2710
|
{
|
|
@@ -4077,24 +2790,6 @@ export const abi = [
|
|
|
4077
2790
|
name: '_extraData',
|
|
4078
2791
|
type: 'bytes32',
|
|
4079
2792
|
},
|
|
4080
|
-
{
|
|
4081
|
-
name: '_sig',
|
|
4082
|
-
type: 'tuple',
|
|
4083
|
-
components: [
|
|
4084
|
-
{
|
|
4085
|
-
name: 'signature',
|
|
4086
|
-
type: 'bytes',
|
|
4087
|
-
},
|
|
4088
|
-
{
|
|
4089
|
-
name: 'nonce',
|
|
4090
|
-
type: 'uint256',
|
|
4091
|
-
},
|
|
4092
|
-
{
|
|
4093
|
-
name: 'expiration',
|
|
4094
|
-
type: 'uint256',
|
|
4095
|
-
},
|
|
4096
|
-
],
|
|
4097
|
-
},
|
|
4098
2793
|
],
|
|
4099
2794
|
outputs: [
|
|
4100
2795
|
{
|
|
@@ -4425,354 +3120,85 @@ export const abi = [
|
|
|
4425
3120
|
],
|
|
4426
3121
|
},
|
|
4427
3122
|
{
|
|
4428
|
-
stateMutability: '
|
|
3123
|
+
stateMutability: 'view',
|
|
4429
3124
|
type: 'function',
|
|
4430
|
-
name: '
|
|
3125
|
+
name: 'isSender',
|
|
4431
3126
|
inputs: [
|
|
4432
3127
|
{
|
|
4433
|
-
name: '
|
|
4434
|
-
type: 'address',
|
|
4435
|
-
},
|
|
4436
|
-
{
|
|
4437
|
-
name: '_legoId',
|
|
4438
|
-
type: 'uint256',
|
|
4439
|
-
},
|
|
4440
|
-
{
|
|
4441
|
-
name: '_nftAddr',
|
|
4442
|
-
type: 'address',
|
|
4443
|
-
},
|
|
4444
|
-
{
|
|
4445
|
-
name: '_nftTokenId',
|
|
4446
|
-
type: 'uint256',
|
|
4447
|
-
},
|
|
4448
|
-
{
|
|
4449
|
-
name: '_pool',
|
|
4450
|
-
type: 'address',
|
|
4451
|
-
},
|
|
4452
|
-
{
|
|
4453
|
-
name: '_tokenA',
|
|
4454
|
-
type: 'address',
|
|
4455
|
-
},
|
|
4456
|
-
{
|
|
4457
|
-
name: '_tokenB',
|
|
3128
|
+
name: '_address',
|
|
4458
3129
|
type: 'address',
|
|
4459
3130
|
},
|
|
4460
|
-
{
|
|
4461
|
-
name: '_liqToRemove',
|
|
4462
|
-
type: 'uint256',
|
|
4463
|
-
},
|
|
4464
|
-
{
|
|
4465
|
-
name: '_minAmountA',
|
|
4466
|
-
type: 'uint256',
|
|
4467
|
-
},
|
|
4468
|
-
{
|
|
4469
|
-
name: '_minAmountB',
|
|
4470
|
-
type: 'uint256',
|
|
4471
|
-
},
|
|
4472
|
-
{
|
|
4473
|
-
name: '_extraData',
|
|
4474
|
-
type: 'bytes32',
|
|
4475
|
-
},
|
|
4476
|
-
{
|
|
4477
|
-
name: '_sig',
|
|
4478
|
-
type: 'tuple',
|
|
4479
|
-
components: [
|
|
4480
|
-
{
|
|
4481
|
-
name: 'signature',
|
|
4482
|
-
type: 'bytes',
|
|
4483
|
-
},
|
|
4484
|
-
{
|
|
4485
|
-
name: 'nonce',
|
|
4486
|
-
type: 'uint256',
|
|
4487
|
-
},
|
|
4488
|
-
{
|
|
4489
|
-
name: 'expiration',
|
|
4490
|
-
type: 'uint256',
|
|
4491
|
-
},
|
|
4492
|
-
],
|
|
4493
|
-
},
|
|
4494
3131
|
],
|
|
4495
3132
|
outputs: [
|
|
4496
3133
|
{
|
|
4497
3134
|
name: '',
|
|
4498
|
-
type: '
|
|
4499
|
-
},
|
|
4500
|
-
{
|
|
4501
|
-
name: '',
|
|
4502
|
-
type: 'uint256',
|
|
4503
|
-
},
|
|
4504
|
-
{
|
|
4505
|
-
name: '',
|
|
4506
|
-
type: 'uint256',
|
|
4507
|
-
},
|
|
4508
|
-
{
|
|
4509
|
-
name: '',
|
|
4510
|
-
type: 'uint256',
|
|
3135
|
+
type: 'bool',
|
|
4511
3136
|
},
|
|
4512
3137
|
],
|
|
4513
3138
|
},
|
|
4514
3139
|
{
|
|
4515
3140
|
stateMutability: 'nonpayable',
|
|
4516
3141
|
type: 'function',
|
|
4517
|
-
name: '
|
|
3142
|
+
name: 'addSender',
|
|
4518
3143
|
inputs: [
|
|
4519
3144
|
{
|
|
4520
|
-
name: '
|
|
3145
|
+
name: '_sender',
|
|
4521
3146
|
type: 'address',
|
|
4522
3147
|
},
|
|
4523
|
-
{
|
|
4524
|
-
name: '_instructions',
|
|
4525
|
-
type: 'tuple[]',
|
|
4526
|
-
components: [
|
|
4527
|
-
{
|
|
4528
|
-
name: 'usePrevAmountOut',
|
|
4529
|
-
type: 'bool',
|
|
4530
|
-
},
|
|
4531
|
-
{
|
|
4532
|
-
name: 'action',
|
|
4533
|
-
type: 'uint8',
|
|
4534
|
-
},
|
|
4535
|
-
{
|
|
4536
|
-
name: 'legoId',
|
|
4537
|
-
type: 'uint16',
|
|
4538
|
-
},
|
|
4539
|
-
{
|
|
4540
|
-
name: 'asset',
|
|
4541
|
-
type: 'address',
|
|
4542
|
-
},
|
|
4543
|
-
{
|
|
4544
|
-
name: 'target',
|
|
4545
|
-
type: 'address',
|
|
4546
|
-
},
|
|
4547
|
-
{
|
|
4548
|
-
name: 'amount',
|
|
4549
|
-
type: 'uint256',
|
|
4550
|
-
},
|
|
4551
|
-
{
|
|
4552
|
-
name: 'asset2',
|
|
4553
|
-
type: 'address',
|
|
4554
|
-
},
|
|
4555
|
-
{
|
|
4556
|
-
name: 'amount2',
|
|
4557
|
-
type: 'uint256',
|
|
4558
|
-
},
|
|
4559
|
-
{
|
|
4560
|
-
name: 'minOut1',
|
|
4561
|
-
type: 'uint256',
|
|
4562
|
-
},
|
|
4563
|
-
{
|
|
4564
|
-
name: 'minOut2',
|
|
4565
|
-
type: 'uint256',
|
|
4566
|
-
},
|
|
4567
|
-
{
|
|
4568
|
-
name: 'tickLower',
|
|
4569
|
-
type: 'int24',
|
|
4570
|
-
},
|
|
4571
|
-
{
|
|
4572
|
-
name: 'tickUpper',
|
|
4573
|
-
type: 'int24',
|
|
4574
|
-
},
|
|
4575
|
-
{
|
|
4576
|
-
name: 'extraData',
|
|
4577
|
-
type: 'bytes32',
|
|
4578
|
-
},
|
|
4579
|
-
{
|
|
4580
|
-
name: 'auxData',
|
|
4581
|
-
type: 'bytes32',
|
|
4582
|
-
},
|
|
4583
|
-
{
|
|
4584
|
-
name: 'swapInstructions',
|
|
4585
|
-
type: 'tuple[]',
|
|
4586
|
-
components: [
|
|
4587
|
-
{
|
|
4588
|
-
name: 'legoId',
|
|
4589
|
-
type: 'uint256',
|
|
4590
|
-
},
|
|
4591
|
-
{
|
|
4592
|
-
name: 'amountIn',
|
|
4593
|
-
type: 'uint256',
|
|
4594
|
-
},
|
|
4595
|
-
{
|
|
4596
|
-
name: 'minAmountOut',
|
|
4597
|
-
type: 'uint256',
|
|
4598
|
-
},
|
|
4599
|
-
{
|
|
4600
|
-
name: 'tokenPath',
|
|
4601
|
-
type: 'address[]',
|
|
4602
|
-
},
|
|
4603
|
-
{
|
|
4604
|
-
name: 'poolPath',
|
|
4605
|
-
type: 'address[]',
|
|
4606
|
-
},
|
|
4607
|
-
],
|
|
4608
|
-
},
|
|
4609
|
-
],
|
|
4610
|
-
},
|
|
4611
|
-
],
|
|
4612
|
-
outputs: [
|
|
4613
|
-
{
|
|
4614
|
-
name: '',
|
|
4615
|
-
type: 'bool',
|
|
4616
|
-
},
|
|
4617
3148
|
],
|
|
3149
|
+
outputs: [],
|
|
4618
3150
|
},
|
|
4619
3151
|
{
|
|
4620
3152
|
stateMutability: 'nonpayable',
|
|
4621
3153
|
type: 'function',
|
|
4622
|
-
name: '
|
|
3154
|
+
name: 'removeSender',
|
|
4623
3155
|
inputs: [
|
|
4624
3156
|
{
|
|
4625
|
-
name: '
|
|
3157
|
+
name: '_sender',
|
|
4626
3158
|
type: 'address',
|
|
4627
3159
|
},
|
|
4628
|
-
{
|
|
4629
|
-
name: '_instructions',
|
|
4630
|
-
type: 'tuple[]',
|
|
4631
|
-
components: [
|
|
4632
|
-
{
|
|
4633
|
-
name: 'usePrevAmountOut',
|
|
4634
|
-
type: 'bool',
|
|
4635
|
-
},
|
|
4636
|
-
{
|
|
4637
|
-
name: 'action',
|
|
4638
|
-
type: 'uint8',
|
|
4639
|
-
},
|
|
4640
|
-
{
|
|
4641
|
-
name: 'legoId',
|
|
4642
|
-
type: 'uint16',
|
|
4643
|
-
},
|
|
4644
|
-
{
|
|
4645
|
-
name: 'asset',
|
|
4646
|
-
type: 'address',
|
|
4647
|
-
},
|
|
4648
|
-
{
|
|
4649
|
-
name: 'target',
|
|
4650
|
-
type: 'address',
|
|
4651
|
-
},
|
|
4652
|
-
{
|
|
4653
|
-
name: 'amount',
|
|
4654
|
-
type: 'uint256',
|
|
4655
|
-
},
|
|
4656
|
-
{
|
|
4657
|
-
name: 'asset2',
|
|
4658
|
-
type: 'address',
|
|
4659
|
-
},
|
|
4660
|
-
{
|
|
4661
|
-
name: 'amount2',
|
|
4662
|
-
type: 'uint256',
|
|
4663
|
-
},
|
|
4664
|
-
{
|
|
4665
|
-
name: 'minOut1',
|
|
4666
|
-
type: 'uint256',
|
|
4667
|
-
},
|
|
4668
|
-
{
|
|
4669
|
-
name: 'minOut2',
|
|
4670
|
-
type: 'uint256',
|
|
4671
|
-
},
|
|
4672
|
-
{
|
|
4673
|
-
name: 'tickLower',
|
|
4674
|
-
type: 'int24',
|
|
4675
|
-
},
|
|
4676
|
-
{
|
|
4677
|
-
name: 'tickUpper',
|
|
4678
|
-
type: 'int24',
|
|
4679
|
-
},
|
|
4680
|
-
{
|
|
4681
|
-
name: 'extraData',
|
|
4682
|
-
type: 'bytes32',
|
|
4683
|
-
},
|
|
4684
|
-
{
|
|
4685
|
-
name: 'auxData',
|
|
4686
|
-
type: 'bytes32',
|
|
4687
|
-
},
|
|
4688
|
-
{
|
|
4689
|
-
name: 'swapInstructions',
|
|
4690
|
-
type: 'tuple[]',
|
|
4691
|
-
components: [
|
|
4692
|
-
{
|
|
4693
|
-
name: 'legoId',
|
|
4694
|
-
type: 'uint256',
|
|
4695
|
-
},
|
|
4696
|
-
{
|
|
4697
|
-
name: 'amountIn',
|
|
4698
|
-
type: 'uint256',
|
|
4699
|
-
},
|
|
4700
|
-
{
|
|
4701
|
-
name: 'minAmountOut',
|
|
4702
|
-
type: 'uint256',
|
|
4703
|
-
},
|
|
4704
|
-
{
|
|
4705
|
-
name: 'tokenPath',
|
|
4706
|
-
type: 'address[]',
|
|
4707
|
-
},
|
|
4708
|
-
{
|
|
4709
|
-
name: 'poolPath',
|
|
4710
|
-
type: 'address[]',
|
|
4711
|
-
},
|
|
4712
|
-
],
|
|
4713
|
-
},
|
|
4714
|
-
],
|
|
4715
|
-
},
|
|
4716
|
-
{
|
|
4717
|
-
name: '_sig',
|
|
4718
|
-
type: 'tuple',
|
|
4719
|
-
components: [
|
|
4720
|
-
{
|
|
4721
|
-
name: 'signature',
|
|
4722
|
-
type: 'bytes',
|
|
4723
|
-
},
|
|
4724
|
-
{
|
|
4725
|
-
name: 'nonce',
|
|
4726
|
-
type: 'uint256',
|
|
4727
|
-
},
|
|
4728
|
-
{
|
|
4729
|
-
name: 'expiration',
|
|
4730
|
-
type: 'uint256',
|
|
4731
|
-
},
|
|
4732
|
-
],
|
|
4733
|
-
},
|
|
4734
|
-
],
|
|
4735
|
-
outputs: [
|
|
4736
|
-
{
|
|
4737
|
-
name: '',
|
|
4738
|
-
type: 'bool',
|
|
4739
|
-
},
|
|
4740
3160
|
],
|
|
3161
|
+
outputs: [],
|
|
4741
3162
|
},
|
|
4742
3163
|
{
|
|
4743
|
-
stateMutability: '
|
|
3164
|
+
stateMutability: 'view',
|
|
4744
3165
|
type: 'function',
|
|
4745
|
-
name: '
|
|
4746
|
-
inputs: [
|
|
3166
|
+
name: 'groupId',
|
|
3167
|
+
inputs: [],
|
|
3168
|
+
outputs: [
|
|
4747
3169
|
{
|
|
4748
|
-
name: '
|
|
4749
|
-
type: '
|
|
3170
|
+
name: '',
|
|
3171
|
+
type: 'uint256',
|
|
4750
3172
|
},
|
|
4751
3173
|
],
|
|
4752
|
-
outputs: [],
|
|
4753
3174
|
},
|
|
4754
3175
|
{
|
|
4755
3176
|
stateMutability: 'view',
|
|
4756
3177
|
type: 'function',
|
|
4757
|
-
name: '
|
|
3178
|
+
name: 'senders',
|
|
4758
3179
|
inputs: [
|
|
4759
3180
|
{
|
|
4760
|
-
name: '
|
|
4761
|
-
type: '
|
|
3181
|
+
name: 'arg0',
|
|
3182
|
+
type: 'uint256',
|
|
4762
3183
|
},
|
|
4763
3184
|
],
|
|
4764
3185
|
outputs: [
|
|
4765
3186
|
{
|
|
4766
3187
|
name: '',
|
|
4767
|
-
type: '
|
|
3188
|
+
type: 'address',
|
|
4768
3189
|
},
|
|
4769
3190
|
],
|
|
4770
3191
|
},
|
|
4771
3192
|
{
|
|
4772
3193
|
stateMutability: 'view',
|
|
4773
3194
|
type: 'function',
|
|
4774
|
-
name: '
|
|
4775
|
-
inputs: [
|
|
3195
|
+
name: 'indexOfSender',
|
|
3196
|
+
inputs: [
|
|
3197
|
+
{
|
|
3198
|
+
name: 'arg0',
|
|
3199
|
+
type: 'address',
|
|
3200
|
+
},
|
|
3201
|
+
],
|
|
4776
3202
|
outputs: [
|
|
4777
3203
|
{
|
|
4778
3204
|
name: '',
|
|
@@ -4783,13 +3209,8 @@ export const abi = [
|
|
|
4783
3209
|
{
|
|
4784
3210
|
stateMutability: 'view',
|
|
4785
3211
|
type: 'function',
|
|
4786
|
-
name: '
|
|
4787
|
-
inputs: [
|
|
4788
|
-
{
|
|
4789
|
-
name: 'arg0',
|
|
4790
|
-
type: 'address',
|
|
4791
|
-
},
|
|
4792
|
-
],
|
|
3212
|
+
name: 'numSenders',
|
|
3213
|
+
inputs: [],
|
|
4793
3214
|
outputs: [
|
|
4794
3215
|
{
|
|
4795
3216
|
name: '',
|
|
@@ -4805,27 +3226,15 @@ export const abi = [
|
|
|
4805
3226
|
name: '_undyHq',
|
|
4806
3227
|
type: 'address',
|
|
4807
3228
|
},
|
|
4808
|
-
{
|
|
4809
|
-
name: '_owner',
|
|
4810
|
-
type: 'address',
|
|
4811
|
-
},
|
|
4812
3229
|
{
|
|
4813
3230
|
name: '_groupId',
|
|
4814
3231
|
type: 'uint256',
|
|
4815
3232
|
},
|
|
4816
|
-
{
|
|
4817
|
-
name: '_minTimeLock',
|
|
4818
|
-
type: 'uint256',
|
|
4819
|
-
},
|
|
4820
|
-
{
|
|
4821
|
-
name: '_maxTimeLock',
|
|
4822
|
-
type: 'uint256',
|
|
4823
|
-
},
|
|
4824
3233
|
],
|
|
4825
3234
|
outputs: [],
|
|
4826
3235
|
},
|
|
4827
3236
|
];
|
|
4828
|
-
export const deployAddress = '
|
|
3237
|
+
export const deployAddress = '0x761fCDFfF8B187901eA11415237632A3F7E0203B';
|
|
4829
3238
|
function getRequest(method, args, contractAddressOrOptions) {
|
|
4830
3239
|
const address = typeof contractAddressOrOptions === 'string' ? contractAddressOrOptions : contractAddressOrOptions?.contractAddress;
|
|
4831
3240
|
const defaultValue = typeof contractAddressOrOptions === 'string' ? undefined : contractAddressOrOptions?.defaultValue;
|
|
@@ -4854,15 +3263,11 @@ function getRequest(method, args, contractAddressOrOptions) {
|
|
|
4854
3263
|
return call;
|
|
4855
3264
|
}
|
|
4856
3265
|
export const call = {
|
|
4857
|
-
|
|
4858
|
-
owner: (...args) => getRequest('owner', args),
|
|
4859
|
-
ownershipTimeLock: (...args) => getRequest('ownershipTimeLock', args),
|
|
4860
|
-
pendingOwner: (...args) => getRequest('pendingOwner', args),
|
|
4861
|
-
MIN_OWNERSHIP_TIMELOCK: (...args) => getRequest('MIN_OWNERSHIP_TIMELOCK', args),
|
|
4862
|
-
MAX_OWNERSHIP_TIMELOCK: (...args) => getRequest('MAX_OWNERSHIP_TIMELOCK', args),
|
|
4863
|
-
getNonce: (...args) => getRequest('getNonce', args),
|
|
3266
|
+
isSender: (...args) => getRequest('isSender', args),
|
|
4864
3267
|
groupId: (...args) => getRequest('groupId', args),
|
|
4865
|
-
|
|
3268
|
+
senders: (...args) => getRequest('senders', args),
|
|
3269
|
+
indexOfSender: (...args) => getRequest('indexOfSender', args),
|
|
3270
|
+
numSenders: (...args) => getRequest('numSenders', args),
|
|
4866
3271
|
};
|
|
4867
3272
|
function getMutation(functionName) {
|
|
4868
3273
|
return {
|
|
@@ -4874,10 +3279,6 @@ function getMutation(functionName) {
|
|
|
4874
3279
|
};
|
|
4875
3280
|
}
|
|
4876
3281
|
export const mutation = {
|
|
4877
|
-
changeOwnership: getMutation('changeOwnership'),
|
|
4878
|
-
confirmOwnershipChange: getMutation('confirmOwnershipChange'),
|
|
4879
|
-
cancelOwnershipChange: getMutation('cancelOwnershipChange'),
|
|
4880
|
-
setOwnershipTimeLock: getMutation('setOwnershipTimeLock'),
|
|
4881
3282
|
transferFunds: getMutation('transferFunds'),
|
|
4882
3283
|
depositForYield: getMutation('depositForYield'),
|
|
4883
3284
|
withdrawFromYield: getMutation('withdrawFromYield'),
|
|
@@ -4889,35 +3290,27 @@ export const mutation = {
|
|
|
4889
3290
|
removeCollateral: getMutation('removeCollateral'),
|
|
4890
3291
|
borrow: getMutation('borrow'),
|
|
4891
3292
|
repayDebt: getMutation('repayDebt'),
|
|
4892
|
-
|
|
3293
|
+
claimIncentives: getMutation('claimIncentives'),
|
|
4893
3294
|
convertWethToEth: getMutation('convertWethToEth'),
|
|
4894
3295
|
convertEthToWeth: getMutation('convertEthToWeth'),
|
|
4895
3296
|
addLiquidity: getMutation('addLiquidity'),
|
|
4896
3297
|
removeLiquidity: getMutation('removeLiquidity'),
|
|
4897
3298
|
addLiquidityConcentrated: getMutation('addLiquidityConcentrated'),
|
|
4898
3299
|
removeLiquidityConcentrated: getMutation('removeLiquidityConcentrated'),
|
|
4899
|
-
|
|
4900
|
-
|
|
3300
|
+
addSender: getMutation('addSender'),
|
|
3301
|
+
removeSender: getMutation('removeSender'),
|
|
4901
3302
|
};
|
|
4902
3303
|
export function toSdk(publicClient, walletClient) {
|
|
4903
3304
|
return {
|
|
4904
3305
|
deployAddress,
|
|
4905
3306
|
abi,
|
|
4906
3307
|
// Queries
|
|
4907
|
-
|
|
4908
|
-
owner: (...args) => singleQuery(publicClient, call.owner(...args)),
|
|
4909
|
-
ownershipTimeLock: (...args) => singleQuery(publicClient, call.ownershipTimeLock(...args)),
|
|
4910
|
-
pendingOwner: (...args) => singleQuery(publicClient, call.pendingOwner(...args)),
|
|
4911
|
-
MIN_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MIN_OWNERSHIP_TIMELOCK(...args)),
|
|
4912
|
-
MAX_OWNERSHIP_TIMELOCK: (...args) => singleQuery(publicClient, call.MAX_OWNERSHIP_TIMELOCK(...args)),
|
|
4913
|
-
getNonce: (...args) => singleQuery(publicClient, call.getNonce(...args)),
|
|
3308
|
+
isSender: (...args) => singleQuery(publicClient, call.isSender(...args)),
|
|
4914
3309
|
groupId: (...args) => singleQuery(publicClient, call.groupId(...args)),
|
|
4915
|
-
|
|
3310
|
+
senders: (...args) => singleQuery(publicClient, call.senders(...args)),
|
|
3311
|
+
indexOfSender: (...args) => singleQuery(publicClient, call.indexOfSender(...args)),
|
|
3312
|
+
numSenders: (...args) => singleQuery(publicClient, call.numSenders(...args)),
|
|
4916
3313
|
// Mutations
|
|
4917
|
-
changeOwnership: (...args) => mutate(walletClient, mutation.changeOwnership)(...args),
|
|
4918
|
-
confirmOwnershipChange: (...args) => mutate(walletClient, mutation.confirmOwnershipChange)(...args),
|
|
4919
|
-
cancelOwnershipChange: (...args) => mutate(walletClient, mutation.cancelOwnershipChange)(...args),
|
|
4920
|
-
setOwnershipTimeLock: (...args) => mutate(walletClient, mutation.setOwnershipTimeLock)(...args),
|
|
4921
3314
|
transferFunds: (...args) => mutate(walletClient, mutation.transferFunds)(...args),
|
|
4922
3315
|
depositForYield: (...args) => mutate(walletClient, mutation.depositForYield)(...args),
|
|
4923
3316
|
withdrawFromYield: (...args) => mutate(walletClient, mutation.withdrawFromYield)(...args),
|
|
@@ -4929,14 +3322,14 @@ export function toSdk(publicClient, walletClient) {
|
|
|
4929
3322
|
removeCollateral: (...args) => mutate(walletClient, mutation.removeCollateral)(...args),
|
|
4930
3323
|
borrow: (...args) => mutate(walletClient, mutation.borrow)(...args),
|
|
4931
3324
|
repayDebt: (...args) => mutate(walletClient, mutation.repayDebt)(...args),
|
|
4932
|
-
|
|
3325
|
+
claimIncentives: (...args) => mutate(walletClient, mutation.claimIncentives)(...args),
|
|
4933
3326
|
convertWethToEth: (...args) => mutate(walletClient, mutation.convertWethToEth)(...args),
|
|
4934
3327
|
convertEthToWeth: (...args) => mutate(walletClient, mutation.convertEthToWeth)(...args),
|
|
4935
3328
|
addLiquidity: (...args) => mutate(walletClient, mutation.addLiquidity)(...args),
|
|
4936
3329
|
removeLiquidity: (...args) => mutate(walletClient, mutation.removeLiquidity)(...args),
|
|
4937
3330
|
addLiquidityConcentrated: (...args) => mutate(walletClient, mutation.addLiquidityConcentrated)(...args),
|
|
4938
3331
|
removeLiquidityConcentrated: (...args) => mutate(walletClient, mutation.removeLiquidityConcentrated)(...args),
|
|
4939
|
-
|
|
4940
|
-
|
|
3332
|
+
addSender: (...args) => mutate(walletClient, mutation.addSender)(...args),
|
|
3333
|
+
removeSender: (...args) => mutate(walletClient, mutation.removeSender)(...args),
|
|
4941
3334
|
};
|
|
4942
3335
|
}
|