@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
|
@@ -2,202 +2,22 @@ import { PublicClient, WalletClient } from 'viem';
|
|
|
2
2
|
type ExtractArgs<T> = T extends (...args: infer P) => any ? P : never;
|
|
3
3
|
type Address = `0x${string}`;
|
|
4
4
|
export declare const abi: readonly [{
|
|
5
|
-
readonly name: "
|
|
5
|
+
readonly name: "AgentAction";
|
|
6
6
|
readonly inputs: readonly [{
|
|
7
|
-
readonly name: "
|
|
8
|
-
readonly type: "
|
|
9
|
-
readonly indexed: false;
|
|
10
|
-
}, {
|
|
11
|
-
readonly name: "oldNonce";
|
|
12
|
-
readonly type: "uint256";
|
|
13
|
-
readonly indexed: false;
|
|
14
|
-
}, {
|
|
15
|
-
readonly name: "newNonce";
|
|
16
|
-
readonly type: "uint256";
|
|
17
|
-
readonly indexed: false;
|
|
18
|
-
}];
|
|
19
|
-
readonly anonymous: false;
|
|
20
|
-
readonly type: "event";
|
|
21
|
-
}, {
|
|
22
|
-
readonly name: "OwnershipChangeInitiated";
|
|
23
|
-
readonly inputs: readonly [{
|
|
24
|
-
readonly name: "prevOwner";
|
|
25
|
-
readonly type: "address";
|
|
26
|
-
readonly indexed: true;
|
|
27
|
-
}, {
|
|
28
|
-
readonly name: "newOwner";
|
|
29
|
-
readonly type: "address";
|
|
30
|
-
readonly indexed: true;
|
|
31
|
-
}, {
|
|
32
|
-
readonly name: "confirmBlock";
|
|
33
|
-
readonly type: "uint256";
|
|
34
|
-
readonly indexed: false;
|
|
35
|
-
}];
|
|
36
|
-
readonly anonymous: false;
|
|
37
|
-
readonly type: "event";
|
|
38
|
-
}, {
|
|
39
|
-
readonly name: "OwnershipChangeConfirmed";
|
|
40
|
-
readonly inputs: readonly [{
|
|
41
|
-
readonly name: "prevOwner";
|
|
42
|
-
readonly type: "address";
|
|
43
|
-
readonly indexed: true;
|
|
44
|
-
}, {
|
|
45
|
-
readonly name: "newOwner";
|
|
46
|
-
readonly type: "address";
|
|
47
|
-
readonly indexed: true;
|
|
48
|
-
}, {
|
|
49
|
-
readonly name: "initiatedBlock";
|
|
50
|
-
readonly type: "uint256";
|
|
7
|
+
readonly name: "action";
|
|
8
|
+
readonly type: "uint8";
|
|
51
9
|
readonly indexed: false;
|
|
52
10
|
}, {
|
|
53
|
-
readonly name: "
|
|
54
|
-
readonly type: "uint256";
|
|
55
|
-
readonly indexed: false;
|
|
56
|
-
}];
|
|
57
|
-
readonly anonymous: false;
|
|
58
|
-
readonly type: "event";
|
|
59
|
-
}, {
|
|
60
|
-
readonly name: "OwnershipChangeCancelled";
|
|
61
|
-
readonly inputs: readonly [{
|
|
62
|
-
readonly name: "cancelledOwner";
|
|
11
|
+
readonly name: "userWallet";
|
|
63
12
|
readonly type: "address";
|
|
64
13
|
readonly indexed: true;
|
|
65
14
|
}, {
|
|
66
|
-
readonly name: "
|
|
15
|
+
readonly name: "sender";
|
|
67
16
|
readonly type: "address";
|
|
68
17
|
readonly indexed: true;
|
|
69
|
-
}, {
|
|
70
|
-
readonly name: "initiatedBlock";
|
|
71
|
-
readonly type: "uint256";
|
|
72
|
-
readonly indexed: false;
|
|
73
|
-
}, {
|
|
74
|
-
readonly name: "confirmBlock";
|
|
75
|
-
readonly type: "uint256";
|
|
76
|
-
readonly indexed: false;
|
|
77
18
|
}];
|
|
78
19
|
readonly anonymous: false;
|
|
79
20
|
readonly type: "event";
|
|
80
|
-
}, {
|
|
81
|
-
readonly name: "OwnershipTimeLockSet";
|
|
82
|
-
readonly inputs: readonly [{
|
|
83
|
-
readonly name: "numBlocks";
|
|
84
|
-
readonly type: "uint256";
|
|
85
|
-
readonly indexed: false;
|
|
86
|
-
}];
|
|
87
|
-
readonly anonymous: false;
|
|
88
|
-
readonly type: "event";
|
|
89
|
-
}, {
|
|
90
|
-
readonly stateMutability: "nonpayable";
|
|
91
|
-
readonly type: "function";
|
|
92
|
-
readonly name: "changeOwnership";
|
|
93
|
-
readonly inputs: readonly [{
|
|
94
|
-
readonly name: "_newOwner";
|
|
95
|
-
readonly type: "address";
|
|
96
|
-
}];
|
|
97
|
-
readonly outputs: readonly [];
|
|
98
|
-
}, {
|
|
99
|
-
readonly stateMutability: "nonpayable";
|
|
100
|
-
readonly type: "function";
|
|
101
|
-
readonly name: "confirmOwnershipChange";
|
|
102
|
-
readonly inputs: readonly [];
|
|
103
|
-
readonly outputs: readonly [];
|
|
104
|
-
}, {
|
|
105
|
-
readonly stateMutability: "nonpayable";
|
|
106
|
-
readonly type: "function";
|
|
107
|
-
readonly name: "cancelOwnershipChange";
|
|
108
|
-
readonly inputs: readonly [];
|
|
109
|
-
readonly outputs: readonly [];
|
|
110
|
-
}, {
|
|
111
|
-
readonly stateMutability: "view";
|
|
112
|
-
readonly type: "function";
|
|
113
|
-
readonly name: "hasPendingOwnerChange";
|
|
114
|
-
readonly inputs: readonly [];
|
|
115
|
-
readonly outputs: readonly [{
|
|
116
|
-
readonly name: "";
|
|
117
|
-
readonly type: "bool";
|
|
118
|
-
}];
|
|
119
|
-
}, {
|
|
120
|
-
readonly stateMutability: "nonpayable";
|
|
121
|
-
readonly type: "function";
|
|
122
|
-
readonly name: "setOwnershipTimeLock";
|
|
123
|
-
readonly inputs: readonly [{
|
|
124
|
-
readonly name: "_numBlocks";
|
|
125
|
-
readonly type: "uint256";
|
|
126
|
-
}];
|
|
127
|
-
readonly outputs: readonly [];
|
|
128
|
-
}, {
|
|
129
|
-
readonly stateMutability: "view";
|
|
130
|
-
readonly type: "function";
|
|
131
|
-
readonly name: "owner";
|
|
132
|
-
readonly inputs: readonly [];
|
|
133
|
-
readonly outputs: readonly [{
|
|
134
|
-
readonly name: "";
|
|
135
|
-
readonly type: "address";
|
|
136
|
-
}];
|
|
137
|
-
}, {
|
|
138
|
-
readonly stateMutability: "view";
|
|
139
|
-
readonly type: "function";
|
|
140
|
-
readonly name: "ownershipTimeLock";
|
|
141
|
-
readonly inputs: readonly [];
|
|
142
|
-
readonly outputs: readonly [{
|
|
143
|
-
readonly name: "";
|
|
144
|
-
readonly type: "uint256";
|
|
145
|
-
}];
|
|
146
|
-
}, {
|
|
147
|
-
readonly stateMutability: "view";
|
|
148
|
-
readonly type: "function";
|
|
149
|
-
readonly name: "pendingOwner";
|
|
150
|
-
readonly inputs: readonly [];
|
|
151
|
-
readonly outputs: readonly [{
|
|
152
|
-
readonly name: "";
|
|
153
|
-
readonly type: "tuple";
|
|
154
|
-
readonly components: readonly [{
|
|
155
|
-
readonly name: "newOwner";
|
|
156
|
-
readonly type: "address";
|
|
157
|
-
}, {
|
|
158
|
-
readonly name: "initiatedBlock";
|
|
159
|
-
readonly type: "uint256";
|
|
160
|
-
}, {
|
|
161
|
-
readonly name: "confirmBlock";
|
|
162
|
-
readonly type: "uint256";
|
|
163
|
-
}];
|
|
164
|
-
}];
|
|
165
|
-
}, {
|
|
166
|
-
readonly stateMutability: "view";
|
|
167
|
-
readonly type: "function";
|
|
168
|
-
readonly name: "MIN_OWNERSHIP_TIMELOCK";
|
|
169
|
-
readonly inputs: readonly [];
|
|
170
|
-
readonly outputs: readonly [{
|
|
171
|
-
readonly name: "";
|
|
172
|
-
readonly type: "uint256";
|
|
173
|
-
}];
|
|
174
|
-
}, {
|
|
175
|
-
readonly stateMutability: "view";
|
|
176
|
-
readonly type: "function";
|
|
177
|
-
readonly name: "MAX_OWNERSHIP_TIMELOCK";
|
|
178
|
-
readonly inputs: readonly [];
|
|
179
|
-
readonly outputs: readonly [{
|
|
180
|
-
readonly name: "";
|
|
181
|
-
readonly type: "uint256";
|
|
182
|
-
}];
|
|
183
|
-
}, {
|
|
184
|
-
readonly stateMutability: "nonpayable";
|
|
185
|
-
readonly type: "function";
|
|
186
|
-
readonly name: "transferFunds";
|
|
187
|
-
readonly inputs: readonly [{
|
|
188
|
-
readonly name: "_userWallet";
|
|
189
|
-
readonly type: "address";
|
|
190
|
-
}, {
|
|
191
|
-
readonly name: "_recipient";
|
|
192
|
-
readonly type: "address";
|
|
193
|
-
}];
|
|
194
|
-
readonly outputs: readonly [{
|
|
195
|
-
readonly name: "";
|
|
196
|
-
readonly type: "uint256";
|
|
197
|
-
}, {
|
|
198
|
-
readonly name: "";
|
|
199
|
-
readonly type: "uint256";
|
|
200
|
-
}];
|
|
201
21
|
}, {
|
|
202
22
|
readonly stateMutability: "nonpayable";
|
|
203
23
|
readonly type: "function";
|
|
@@ -208,9 +28,6 @@ export declare const abi: readonly [{
|
|
|
208
28
|
}, {
|
|
209
29
|
readonly name: "_recipient";
|
|
210
30
|
readonly type: "address";
|
|
211
|
-
}, {
|
|
212
|
-
readonly name: "_asset";
|
|
213
|
-
readonly type: "address";
|
|
214
31
|
}];
|
|
215
32
|
readonly outputs: readonly [{
|
|
216
33
|
readonly name: "";
|
|
@@ -232,9 +49,6 @@ export declare const abi: readonly [{
|
|
|
232
49
|
}, {
|
|
233
50
|
readonly name: "_asset";
|
|
234
51
|
readonly type: "address";
|
|
235
|
-
}, {
|
|
236
|
-
readonly name: "_amount";
|
|
237
|
-
readonly type: "uint256";
|
|
238
52
|
}];
|
|
239
53
|
readonly outputs: readonly [{
|
|
240
54
|
readonly name: "";
|
|
@@ -259,9 +73,6 @@ export declare const abi: readonly [{
|
|
|
259
73
|
}, {
|
|
260
74
|
readonly name: "_amount";
|
|
261
75
|
readonly type: "uint256";
|
|
262
|
-
}, {
|
|
263
|
-
readonly name: "_isCheque";
|
|
264
|
-
readonly type: "bool";
|
|
265
76
|
}];
|
|
266
77
|
readonly outputs: readonly [{
|
|
267
78
|
readonly name: "";
|
|
@@ -289,50 +100,10 @@ export declare const abi: readonly [{
|
|
|
289
100
|
}, {
|
|
290
101
|
readonly name: "_isCheque";
|
|
291
102
|
readonly type: "bool";
|
|
292
|
-
}, {
|
|
293
|
-
readonly name: "_sig";
|
|
294
|
-
readonly type: "tuple";
|
|
295
|
-
readonly components: readonly [{
|
|
296
|
-
readonly name: "signature";
|
|
297
|
-
readonly type: "bytes";
|
|
298
|
-
}, {
|
|
299
|
-
readonly name: "nonce";
|
|
300
|
-
readonly type: "uint256";
|
|
301
|
-
}, {
|
|
302
|
-
readonly name: "expiration";
|
|
303
|
-
readonly type: "uint256";
|
|
304
|
-
}];
|
|
305
|
-
}];
|
|
306
|
-
readonly outputs: readonly [{
|
|
307
|
-
readonly name: "";
|
|
308
|
-
readonly type: "uint256";
|
|
309
|
-
}, {
|
|
310
|
-
readonly name: "";
|
|
311
|
-
readonly type: "uint256";
|
|
312
|
-
}];
|
|
313
|
-
}, {
|
|
314
|
-
readonly stateMutability: "nonpayable";
|
|
315
|
-
readonly type: "function";
|
|
316
|
-
readonly name: "depositForYield";
|
|
317
|
-
readonly inputs: readonly [{
|
|
318
|
-
readonly name: "_userWallet";
|
|
319
|
-
readonly type: "address";
|
|
320
|
-
}, {
|
|
321
|
-
readonly name: "_legoId";
|
|
322
|
-
readonly type: "uint256";
|
|
323
|
-
}, {
|
|
324
|
-
readonly name: "_asset";
|
|
325
|
-
readonly type: "address";
|
|
326
103
|
}];
|
|
327
104
|
readonly outputs: readonly [{
|
|
328
105
|
readonly name: "";
|
|
329
106
|
readonly type: "uint256";
|
|
330
|
-
}, {
|
|
331
|
-
readonly name: "";
|
|
332
|
-
readonly type: "address";
|
|
333
|
-
}, {
|
|
334
|
-
readonly name: "";
|
|
335
|
-
readonly type: "uint256";
|
|
336
107
|
}, {
|
|
337
108
|
readonly name: "";
|
|
338
109
|
readonly type: "uint256";
|
|
@@ -350,9 +121,6 @@ export declare const abi: readonly [{
|
|
|
350
121
|
}, {
|
|
351
122
|
readonly name: "_asset";
|
|
352
123
|
readonly type: "address";
|
|
353
|
-
}, {
|
|
354
|
-
readonly name: "_vaultAddr";
|
|
355
|
-
readonly type: "address";
|
|
356
124
|
}];
|
|
357
125
|
readonly outputs: readonly [{
|
|
358
126
|
readonly name: "";
|
|
@@ -383,9 +151,6 @@ export declare const abi: readonly [{
|
|
|
383
151
|
}, {
|
|
384
152
|
readonly name: "_vaultAddr";
|
|
385
153
|
readonly type: "address";
|
|
386
|
-
}, {
|
|
387
|
-
readonly name: "_amount";
|
|
388
|
-
readonly type: "uint256";
|
|
389
154
|
}];
|
|
390
155
|
readonly outputs: readonly [{
|
|
391
156
|
readonly name: "";
|
|
@@ -419,9 +184,6 @@ export declare const abi: readonly [{
|
|
|
419
184
|
}, {
|
|
420
185
|
readonly name: "_amount";
|
|
421
186
|
readonly type: "uint256";
|
|
422
|
-
}, {
|
|
423
|
-
readonly name: "_extraData";
|
|
424
|
-
readonly type: "bytes32";
|
|
425
187
|
}];
|
|
426
188
|
readonly outputs: readonly [{
|
|
427
189
|
readonly name: "";
|
|
@@ -458,46 +220,6 @@ export declare const abi: readonly [{
|
|
|
458
220
|
}, {
|
|
459
221
|
readonly name: "_extraData";
|
|
460
222
|
readonly type: "bytes32";
|
|
461
|
-
}, {
|
|
462
|
-
readonly name: "_sig";
|
|
463
|
-
readonly type: "tuple";
|
|
464
|
-
readonly components: readonly [{
|
|
465
|
-
readonly name: "signature";
|
|
466
|
-
readonly type: "bytes";
|
|
467
|
-
}, {
|
|
468
|
-
readonly name: "nonce";
|
|
469
|
-
readonly type: "uint256";
|
|
470
|
-
}, {
|
|
471
|
-
readonly name: "expiration";
|
|
472
|
-
readonly type: "uint256";
|
|
473
|
-
}];
|
|
474
|
-
}];
|
|
475
|
-
readonly outputs: readonly [{
|
|
476
|
-
readonly name: "";
|
|
477
|
-
readonly type: "uint256";
|
|
478
|
-
}, {
|
|
479
|
-
readonly name: "";
|
|
480
|
-
readonly type: "address";
|
|
481
|
-
}, {
|
|
482
|
-
readonly name: "";
|
|
483
|
-
readonly type: "uint256";
|
|
484
|
-
}, {
|
|
485
|
-
readonly name: "";
|
|
486
|
-
readonly type: "uint256";
|
|
487
|
-
}];
|
|
488
|
-
}, {
|
|
489
|
-
readonly stateMutability: "nonpayable";
|
|
490
|
-
readonly type: "function";
|
|
491
|
-
readonly name: "withdrawFromYield";
|
|
492
|
-
readonly inputs: readonly [{
|
|
493
|
-
readonly name: "_userWallet";
|
|
494
|
-
readonly type: "address";
|
|
495
|
-
}, {
|
|
496
|
-
readonly name: "_legoId";
|
|
497
|
-
readonly type: "uint256";
|
|
498
|
-
}, {
|
|
499
|
-
readonly name: "_vaultToken";
|
|
500
|
-
readonly type: "address";
|
|
501
223
|
}];
|
|
502
224
|
readonly outputs: readonly [{
|
|
503
225
|
readonly name: "";
|
|
@@ -525,9 +247,6 @@ export declare const abi: readonly [{
|
|
|
525
247
|
}, {
|
|
526
248
|
readonly name: "_vaultToken";
|
|
527
249
|
readonly type: "address";
|
|
528
|
-
}, {
|
|
529
|
-
readonly name: "_amount";
|
|
530
|
-
readonly type: "uint256";
|
|
531
250
|
}];
|
|
532
251
|
readonly outputs: readonly [{
|
|
533
252
|
readonly name: "";
|
|
@@ -558,9 +277,6 @@ export declare const abi: readonly [{
|
|
|
558
277
|
}, {
|
|
559
278
|
readonly name: "_amount";
|
|
560
279
|
readonly type: "uint256";
|
|
561
|
-
}, {
|
|
562
|
-
readonly name: "_extraData";
|
|
563
|
-
readonly type: "bytes32";
|
|
564
280
|
}];
|
|
565
281
|
readonly outputs: readonly [{
|
|
566
282
|
readonly name: "";
|
|
@@ -594,19 +310,6 @@ export declare const abi: readonly [{
|
|
|
594
310
|
}, {
|
|
595
311
|
readonly name: "_extraData";
|
|
596
312
|
readonly type: "bytes32";
|
|
597
|
-
}, {
|
|
598
|
-
readonly name: "_sig";
|
|
599
|
-
readonly type: "tuple";
|
|
600
|
-
readonly components: readonly [{
|
|
601
|
-
readonly name: "signature";
|
|
602
|
-
readonly type: "bytes";
|
|
603
|
-
}, {
|
|
604
|
-
readonly name: "nonce";
|
|
605
|
-
readonly type: "uint256";
|
|
606
|
-
}, {
|
|
607
|
-
readonly name: "expiration";
|
|
608
|
-
readonly type: "uint256";
|
|
609
|
-
}];
|
|
610
313
|
}];
|
|
611
314
|
readonly outputs: readonly [{
|
|
612
315
|
readonly name: "";
|
|
@@ -762,59 +465,7 @@ export declare const abi: readonly [{
|
|
|
762
465
|
}, {
|
|
763
466
|
readonly stateMutability: "nonpayable";
|
|
764
467
|
readonly type: "function";
|
|
765
|
-
readonly name: "
|
|
766
|
-
readonly inputs: readonly [{
|
|
767
|
-
readonly name: "_userWallet";
|
|
768
|
-
readonly type: "address";
|
|
769
|
-
}, {
|
|
770
|
-
readonly name: "_fromLegoId";
|
|
771
|
-
readonly type: "uint256";
|
|
772
|
-
}, {
|
|
773
|
-
readonly name: "_fromVaultToken";
|
|
774
|
-
readonly type: "address";
|
|
775
|
-
}, {
|
|
776
|
-
readonly name: "_toLegoId";
|
|
777
|
-
readonly type: "uint256";
|
|
778
|
-
}, {
|
|
779
|
-
readonly name: "_toVaultAddr";
|
|
780
|
-
readonly type: "address";
|
|
781
|
-
}, {
|
|
782
|
-
readonly name: "_fromVaultAmount";
|
|
783
|
-
readonly type: "uint256";
|
|
784
|
-
}, {
|
|
785
|
-
readonly name: "_extraData";
|
|
786
|
-
readonly type: "bytes32";
|
|
787
|
-
}, {
|
|
788
|
-
readonly name: "_sig";
|
|
789
|
-
readonly type: "tuple";
|
|
790
|
-
readonly components: readonly [{
|
|
791
|
-
readonly name: "signature";
|
|
792
|
-
readonly type: "bytes";
|
|
793
|
-
}, {
|
|
794
|
-
readonly name: "nonce";
|
|
795
|
-
readonly type: "uint256";
|
|
796
|
-
}, {
|
|
797
|
-
readonly name: "expiration";
|
|
798
|
-
readonly type: "uint256";
|
|
799
|
-
}];
|
|
800
|
-
}];
|
|
801
|
-
readonly outputs: readonly [{
|
|
802
|
-
readonly name: "";
|
|
803
|
-
readonly type: "uint256";
|
|
804
|
-
}, {
|
|
805
|
-
readonly name: "";
|
|
806
|
-
readonly type: "address";
|
|
807
|
-
}, {
|
|
808
|
-
readonly name: "";
|
|
809
|
-
readonly type: "uint256";
|
|
810
|
-
}, {
|
|
811
|
-
readonly name: "";
|
|
812
|
-
readonly type: "uint256";
|
|
813
|
-
}];
|
|
814
|
-
}, {
|
|
815
|
-
readonly stateMutability: "nonpayable";
|
|
816
|
-
readonly type: "function";
|
|
817
|
-
readonly name: "swapTokens";
|
|
468
|
+
readonly name: "swapTokens";
|
|
818
469
|
readonly inputs: readonly [{
|
|
819
470
|
readonly name: "_userWallet";
|
|
820
471
|
readonly type: "address";
|
|
@@ -854,92 +505,6 @@ export declare const abi: readonly [{
|
|
|
854
505
|
readonly name: "";
|
|
855
506
|
readonly type: "uint256";
|
|
856
507
|
}];
|
|
857
|
-
}, {
|
|
858
|
-
readonly stateMutability: "nonpayable";
|
|
859
|
-
readonly type: "function";
|
|
860
|
-
readonly name: "swapTokens";
|
|
861
|
-
readonly inputs: readonly [{
|
|
862
|
-
readonly name: "_userWallet";
|
|
863
|
-
readonly type: "address";
|
|
864
|
-
}, {
|
|
865
|
-
readonly name: "_swapInstructions";
|
|
866
|
-
readonly type: "tuple[]";
|
|
867
|
-
readonly components: readonly [{
|
|
868
|
-
readonly name: "legoId";
|
|
869
|
-
readonly type: "uint256";
|
|
870
|
-
}, {
|
|
871
|
-
readonly name: "amountIn";
|
|
872
|
-
readonly type: "uint256";
|
|
873
|
-
}, {
|
|
874
|
-
readonly name: "minAmountOut";
|
|
875
|
-
readonly type: "uint256";
|
|
876
|
-
}, {
|
|
877
|
-
readonly name: "tokenPath";
|
|
878
|
-
readonly type: "address[]";
|
|
879
|
-
}, {
|
|
880
|
-
readonly name: "poolPath";
|
|
881
|
-
readonly type: "address[]";
|
|
882
|
-
}];
|
|
883
|
-
}, {
|
|
884
|
-
readonly name: "_sig";
|
|
885
|
-
readonly type: "tuple";
|
|
886
|
-
readonly components: readonly [{
|
|
887
|
-
readonly name: "signature";
|
|
888
|
-
readonly type: "bytes";
|
|
889
|
-
}, {
|
|
890
|
-
readonly name: "nonce";
|
|
891
|
-
readonly type: "uint256";
|
|
892
|
-
}, {
|
|
893
|
-
readonly name: "expiration";
|
|
894
|
-
readonly type: "uint256";
|
|
895
|
-
}];
|
|
896
|
-
}];
|
|
897
|
-
readonly outputs: readonly [{
|
|
898
|
-
readonly name: "";
|
|
899
|
-
readonly type: "address";
|
|
900
|
-
}, {
|
|
901
|
-
readonly name: "";
|
|
902
|
-
readonly type: "uint256";
|
|
903
|
-
}, {
|
|
904
|
-
readonly name: "";
|
|
905
|
-
readonly type: "address";
|
|
906
|
-
}, {
|
|
907
|
-
readonly name: "";
|
|
908
|
-
readonly type: "uint256";
|
|
909
|
-
}, {
|
|
910
|
-
readonly name: "";
|
|
911
|
-
readonly type: "uint256";
|
|
912
|
-
}];
|
|
913
|
-
}, {
|
|
914
|
-
readonly stateMutability: "nonpayable";
|
|
915
|
-
readonly type: "function";
|
|
916
|
-
readonly name: "mintOrRedeemAsset";
|
|
917
|
-
readonly inputs: readonly [{
|
|
918
|
-
readonly name: "_userWallet";
|
|
919
|
-
readonly type: "address";
|
|
920
|
-
}, {
|
|
921
|
-
readonly name: "_legoId";
|
|
922
|
-
readonly type: "uint256";
|
|
923
|
-
}, {
|
|
924
|
-
readonly name: "_tokenIn";
|
|
925
|
-
readonly type: "address";
|
|
926
|
-
}, {
|
|
927
|
-
readonly name: "_tokenOut";
|
|
928
|
-
readonly type: "address";
|
|
929
|
-
}];
|
|
930
|
-
readonly outputs: readonly [{
|
|
931
|
-
readonly name: "";
|
|
932
|
-
readonly type: "uint256";
|
|
933
|
-
}, {
|
|
934
|
-
readonly name: "";
|
|
935
|
-
readonly type: "uint256";
|
|
936
|
-
}, {
|
|
937
|
-
readonly name: "";
|
|
938
|
-
readonly type: "bool";
|
|
939
|
-
}, {
|
|
940
|
-
readonly name: "";
|
|
941
|
-
readonly type: "uint256";
|
|
942
|
-
}];
|
|
943
508
|
}, {
|
|
944
509
|
readonly stateMutability: "nonpayable";
|
|
945
510
|
readonly type: "function";
|
|
@@ -956,9 +521,6 @@ export declare const abi: readonly [{
|
|
|
956
521
|
}, {
|
|
957
522
|
readonly name: "_tokenOut";
|
|
958
523
|
readonly type: "address";
|
|
959
|
-
}, {
|
|
960
|
-
readonly name: "_amountIn";
|
|
961
|
-
readonly type: "uint256";
|
|
962
524
|
}];
|
|
963
525
|
readonly outputs: readonly [{
|
|
964
526
|
readonly name: "";
|
|
@@ -992,9 +554,6 @@ export declare const abi: readonly [{
|
|
|
992
554
|
}, {
|
|
993
555
|
readonly name: "_amountIn";
|
|
994
556
|
readonly type: "uint256";
|
|
995
|
-
}, {
|
|
996
|
-
readonly name: "_minAmountOut";
|
|
997
|
-
readonly type: "uint256";
|
|
998
557
|
}];
|
|
999
558
|
readonly outputs: readonly [{
|
|
1000
559
|
readonly name: "";
|
|
@@ -1031,9 +590,6 @@ export declare const abi: readonly [{
|
|
|
1031
590
|
}, {
|
|
1032
591
|
readonly name: "_minAmountOut";
|
|
1033
592
|
readonly type: "uint256";
|
|
1034
|
-
}, {
|
|
1035
|
-
readonly name: "_extraData";
|
|
1036
|
-
readonly type: "bytes32";
|
|
1037
593
|
}];
|
|
1038
594
|
readonly outputs: readonly [{
|
|
1039
595
|
readonly name: "";
|
|
@@ -1073,19 +629,6 @@ export declare const abi: readonly [{
|
|
|
1073
629
|
}, {
|
|
1074
630
|
readonly name: "_extraData";
|
|
1075
631
|
readonly type: "bytes32";
|
|
1076
|
-
}, {
|
|
1077
|
-
readonly name: "_sig";
|
|
1078
|
-
readonly type: "tuple";
|
|
1079
|
-
readonly components: readonly [{
|
|
1080
|
-
readonly name: "signature";
|
|
1081
|
-
readonly type: "bytes";
|
|
1082
|
-
}, {
|
|
1083
|
-
readonly name: "nonce";
|
|
1084
|
-
readonly type: "uint256";
|
|
1085
|
-
}, {
|
|
1086
|
-
readonly name: "expiration";
|
|
1087
|
-
readonly type: "uint256";
|
|
1088
|
-
}];
|
|
1089
632
|
}];
|
|
1090
633
|
readonly outputs: readonly [{
|
|
1091
634
|
readonly name: "";
|
|
@@ -1151,91 +694,6 @@ export declare const abi: readonly [{
|
|
|
1151
694
|
readonly name: "";
|
|
1152
695
|
readonly type: "uint256";
|
|
1153
696
|
}];
|
|
1154
|
-
}, {
|
|
1155
|
-
readonly stateMutability: "nonpayable";
|
|
1156
|
-
readonly type: "function";
|
|
1157
|
-
readonly name: "confirmMintOrRedeemAsset";
|
|
1158
|
-
readonly inputs: readonly [{
|
|
1159
|
-
readonly name: "_userWallet";
|
|
1160
|
-
readonly type: "address";
|
|
1161
|
-
}, {
|
|
1162
|
-
readonly name: "_legoId";
|
|
1163
|
-
readonly type: "uint256";
|
|
1164
|
-
}, {
|
|
1165
|
-
readonly name: "_tokenIn";
|
|
1166
|
-
readonly type: "address";
|
|
1167
|
-
}, {
|
|
1168
|
-
readonly name: "_tokenOut";
|
|
1169
|
-
readonly type: "address";
|
|
1170
|
-
}, {
|
|
1171
|
-
readonly name: "_extraData";
|
|
1172
|
-
readonly type: "bytes32";
|
|
1173
|
-
}, {
|
|
1174
|
-
readonly name: "_sig";
|
|
1175
|
-
readonly type: "tuple";
|
|
1176
|
-
readonly components: readonly [{
|
|
1177
|
-
readonly name: "signature";
|
|
1178
|
-
readonly type: "bytes";
|
|
1179
|
-
}, {
|
|
1180
|
-
readonly name: "nonce";
|
|
1181
|
-
readonly type: "uint256";
|
|
1182
|
-
}, {
|
|
1183
|
-
readonly name: "expiration";
|
|
1184
|
-
readonly type: "uint256";
|
|
1185
|
-
}];
|
|
1186
|
-
}];
|
|
1187
|
-
readonly outputs: readonly [{
|
|
1188
|
-
readonly name: "";
|
|
1189
|
-
readonly type: "uint256";
|
|
1190
|
-
}, {
|
|
1191
|
-
readonly name: "";
|
|
1192
|
-
readonly type: "uint256";
|
|
1193
|
-
}];
|
|
1194
|
-
}, {
|
|
1195
|
-
readonly stateMutability: "nonpayable";
|
|
1196
|
-
readonly type: "function";
|
|
1197
|
-
readonly name: "addCollateral";
|
|
1198
|
-
readonly inputs: readonly [{
|
|
1199
|
-
readonly name: "_userWallet";
|
|
1200
|
-
readonly type: "address";
|
|
1201
|
-
}, {
|
|
1202
|
-
readonly name: "_legoId";
|
|
1203
|
-
readonly type: "uint256";
|
|
1204
|
-
}, {
|
|
1205
|
-
readonly name: "_asset";
|
|
1206
|
-
readonly type: "address";
|
|
1207
|
-
}];
|
|
1208
|
-
readonly outputs: readonly [{
|
|
1209
|
-
readonly name: "";
|
|
1210
|
-
readonly type: "uint256";
|
|
1211
|
-
}, {
|
|
1212
|
-
readonly name: "";
|
|
1213
|
-
readonly type: "uint256";
|
|
1214
|
-
}];
|
|
1215
|
-
}, {
|
|
1216
|
-
readonly stateMutability: "nonpayable";
|
|
1217
|
-
readonly type: "function";
|
|
1218
|
-
readonly name: "addCollateral";
|
|
1219
|
-
readonly inputs: readonly [{
|
|
1220
|
-
readonly name: "_userWallet";
|
|
1221
|
-
readonly type: "address";
|
|
1222
|
-
}, {
|
|
1223
|
-
readonly name: "_legoId";
|
|
1224
|
-
readonly type: "uint256";
|
|
1225
|
-
}, {
|
|
1226
|
-
readonly name: "_asset";
|
|
1227
|
-
readonly type: "address";
|
|
1228
|
-
}, {
|
|
1229
|
-
readonly name: "_amount";
|
|
1230
|
-
readonly type: "uint256";
|
|
1231
|
-
}];
|
|
1232
|
-
readonly outputs: readonly [{
|
|
1233
|
-
readonly name: "";
|
|
1234
|
-
readonly type: "uint256";
|
|
1235
|
-
}, {
|
|
1236
|
-
readonly name: "";
|
|
1237
|
-
readonly type: "uint256";
|
|
1238
|
-
}];
|
|
1239
697
|
}, {
|
|
1240
698
|
readonly stateMutability: "nonpayable";
|
|
1241
699
|
readonly type: "function";
|
|
@@ -1249,12 +707,6 @@ export declare const abi: readonly [{
|
|
|
1249
707
|
}, {
|
|
1250
708
|
readonly name: "_asset";
|
|
1251
709
|
readonly type: "address";
|
|
1252
|
-
}, {
|
|
1253
|
-
readonly name: "_amount";
|
|
1254
|
-
readonly type: "uint256";
|
|
1255
|
-
}, {
|
|
1256
|
-
readonly name: "_extraData";
|
|
1257
|
-
readonly type: "bytes32";
|
|
1258
710
|
}];
|
|
1259
711
|
readonly outputs: readonly [{
|
|
1260
712
|
readonly name: "";
|
|
@@ -1277,208 +729,8 @@ export declare const abi: readonly [{
|
|
|
1277
729
|
readonly name: "_asset";
|
|
1278
730
|
readonly type: "address";
|
|
1279
731
|
}, {
|
|
1280
|
-
readonly name: "_amount";
|
|
1281
|
-
readonly type: "uint256";
|
|
1282
|
-
}, {
|
|
1283
|
-
readonly name: "_extraData";
|
|
1284
|
-
readonly type: "bytes32";
|
|
1285
|
-
}, {
|
|
1286
|
-
readonly name: "_sig";
|
|
1287
|
-
readonly type: "tuple";
|
|
1288
|
-
readonly components: readonly [{
|
|
1289
|
-
readonly name: "signature";
|
|
1290
|
-
readonly type: "bytes";
|
|
1291
|
-
}, {
|
|
1292
|
-
readonly name: "nonce";
|
|
1293
|
-
readonly type: "uint256";
|
|
1294
|
-
}, {
|
|
1295
|
-
readonly name: "expiration";
|
|
1296
|
-
readonly type: "uint256";
|
|
1297
|
-
}];
|
|
1298
|
-
}];
|
|
1299
|
-
readonly outputs: readonly [{
|
|
1300
|
-
readonly name: "";
|
|
1301
|
-
readonly type: "uint256";
|
|
1302
|
-
}, {
|
|
1303
|
-
readonly name: "";
|
|
1304
|
-
readonly type: "uint256";
|
|
1305
|
-
}];
|
|
1306
|
-
}, {
|
|
1307
|
-
readonly stateMutability: "nonpayable";
|
|
1308
|
-
readonly type: "function";
|
|
1309
|
-
readonly name: "removeCollateral";
|
|
1310
|
-
readonly inputs: readonly [{
|
|
1311
|
-
readonly name: "_userWallet";
|
|
1312
|
-
readonly type: "address";
|
|
1313
|
-
}, {
|
|
1314
|
-
readonly name: "_legoId";
|
|
1315
|
-
readonly type: "uint256";
|
|
1316
|
-
}, {
|
|
1317
|
-
readonly name: "_asset";
|
|
1318
|
-
readonly type: "address";
|
|
1319
|
-
}];
|
|
1320
|
-
readonly outputs: readonly [{
|
|
1321
|
-
readonly name: "";
|
|
1322
|
-
readonly type: "uint256";
|
|
1323
|
-
}, {
|
|
1324
|
-
readonly name: "";
|
|
1325
|
-
readonly type: "uint256";
|
|
1326
|
-
}];
|
|
1327
|
-
}, {
|
|
1328
|
-
readonly stateMutability: "nonpayable";
|
|
1329
|
-
readonly type: "function";
|
|
1330
|
-
readonly name: "removeCollateral";
|
|
1331
|
-
readonly inputs: readonly [{
|
|
1332
|
-
readonly name: "_userWallet";
|
|
1333
|
-
readonly type: "address";
|
|
1334
|
-
}, {
|
|
1335
|
-
readonly name: "_legoId";
|
|
1336
|
-
readonly type: "uint256";
|
|
1337
|
-
}, {
|
|
1338
|
-
readonly name: "_asset";
|
|
1339
|
-
readonly type: "address";
|
|
1340
|
-
}, {
|
|
1341
|
-
readonly name: "_amount";
|
|
1342
|
-
readonly type: "uint256";
|
|
1343
|
-
}];
|
|
1344
|
-
readonly outputs: readonly [{
|
|
1345
|
-
readonly name: "";
|
|
1346
|
-
readonly type: "uint256";
|
|
1347
|
-
}, {
|
|
1348
|
-
readonly name: "";
|
|
1349
|
-
readonly type: "uint256";
|
|
1350
|
-
}];
|
|
1351
|
-
}, {
|
|
1352
|
-
readonly stateMutability: "nonpayable";
|
|
1353
|
-
readonly type: "function";
|
|
1354
|
-
readonly name: "removeCollateral";
|
|
1355
|
-
readonly inputs: readonly [{
|
|
1356
|
-
readonly name: "_userWallet";
|
|
1357
|
-
readonly type: "address";
|
|
1358
|
-
}, {
|
|
1359
|
-
readonly name: "_legoId";
|
|
1360
|
-
readonly type: "uint256";
|
|
1361
|
-
}, {
|
|
1362
|
-
readonly name: "_asset";
|
|
1363
|
-
readonly type: "address";
|
|
1364
|
-
}, {
|
|
1365
|
-
readonly name: "_amount";
|
|
1366
|
-
readonly type: "uint256";
|
|
1367
|
-
}, {
|
|
1368
|
-
readonly name: "_extraData";
|
|
1369
|
-
readonly type: "bytes32";
|
|
1370
|
-
}];
|
|
1371
|
-
readonly outputs: readonly [{
|
|
1372
|
-
readonly name: "";
|
|
1373
|
-
readonly type: "uint256";
|
|
1374
|
-
}, {
|
|
1375
|
-
readonly name: "";
|
|
1376
|
-
readonly type: "uint256";
|
|
1377
|
-
}];
|
|
1378
|
-
}, {
|
|
1379
|
-
readonly stateMutability: "nonpayable";
|
|
1380
|
-
readonly type: "function";
|
|
1381
|
-
readonly name: "removeCollateral";
|
|
1382
|
-
readonly inputs: readonly [{
|
|
1383
|
-
readonly name: "_userWallet";
|
|
1384
|
-
readonly type: "address";
|
|
1385
|
-
}, {
|
|
1386
|
-
readonly name: "_legoId";
|
|
1387
|
-
readonly type: "uint256";
|
|
1388
|
-
}, {
|
|
1389
|
-
readonly name: "_asset";
|
|
1390
|
-
readonly type: "address";
|
|
1391
|
-
}, {
|
|
1392
|
-
readonly name: "_amount";
|
|
1393
|
-
readonly type: "uint256";
|
|
1394
|
-
}, {
|
|
1395
|
-
readonly name: "_extraData";
|
|
1396
|
-
readonly type: "bytes32";
|
|
1397
|
-
}, {
|
|
1398
|
-
readonly name: "_sig";
|
|
1399
|
-
readonly type: "tuple";
|
|
1400
|
-
readonly components: readonly [{
|
|
1401
|
-
readonly name: "signature";
|
|
1402
|
-
readonly type: "bytes";
|
|
1403
|
-
}, {
|
|
1404
|
-
readonly name: "nonce";
|
|
1405
|
-
readonly type: "uint256";
|
|
1406
|
-
}, {
|
|
1407
|
-
readonly name: "expiration";
|
|
1408
|
-
readonly type: "uint256";
|
|
1409
|
-
}];
|
|
1410
|
-
}];
|
|
1411
|
-
readonly outputs: readonly [{
|
|
1412
|
-
readonly name: "";
|
|
1413
|
-
readonly type: "uint256";
|
|
1414
|
-
}, {
|
|
1415
|
-
readonly name: "";
|
|
1416
|
-
readonly type: "uint256";
|
|
1417
|
-
}];
|
|
1418
|
-
}, {
|
|
1419
|
-
readonly stateMutability: "nonpayable";
|
|
1420
|
-
readonly type: "function";
|
|
1421
|
-
readonly name: "borrow";
|
|
1422
|
-
readonly inputs: readonly [{
|
|
1423
|
-
readonly name: "_userWallet";
|
|
1424
|
-
readonly type: "address";
|
|
1425
|
-
}, {
|
|
1426
|
-
readonly name: "_legoId";
|
|
1427
|
-
readonly type: "uint256";
|
|
1428
|
-
}, {
|
|
1429
|
-
readonly name: "_borrowAsset";
|
|
1430
|
-
readonly type: "address";
|
|
1431
|
-
}];
|
|
1432
|
-
readonly outputs: readonly [{
|
|
1433
|
-
readonly name: "";
|
|
1434
|
-
readonly type: "uint256";
|
|
1435
|
-
}, {
|
|
1436
|
-
readonly name: "";
|
|
1437
|
-
readonly type: "uint256";
|
|
1438
|
-
}];
|
|
1439
|
-
}, {
|
|
1440
|
-
readonly stateMutability: "nonpayable";
|
|
1441
|
-
readonly type: "function";
|
|
1442
|
-
readonly name: "borrow";
|
|
1443
|
-
readonly inputs: readonly [{
|
|
1444
|
-
readonly name: "_userWallet";
|
|
1445
|
-
readonly type: "address";
|
|
1446
|
-
}, {
|
|
1447
|
-
readonly name: "_legoId";
|
|
1448
|
-
readonly type: "uint256";
|
|
1449
|
-
}, {
|
|
1450
|
-
readonly name: "_borrowAsset";
|
|
1451
|
-
readonly type: "address";
|
|
1452
|
-
}, {
|
|
1453
|
-
readonly name: "_amount";
|
|
1454
|
-
readonly type: "uint256";
|
|
1455
|
-
}];
|
|
1456
|
-
readonly outputs: readonly [{
|
|
1457
|
-
readonly name: "";
|
|
1458
|
-
readonly type: "uint256";
|
|
1459
|
-
}, {
|
|
1460
|
-
readonly name: "";
|
|
1461
|
-
readonly type: "uint256";
|
|
1462
|
-
}];
|
|
1463
|
-
}, {
|
|
1464
|
-
readonly stateMutability: "nonpayable";
|
|
1465
|
-
readonly type: "function";
|
|
1466
|
-
readonly name: "borrow";
|
|
1467
|
-
readonly inputs: readonly [{
|
|
1468
|
-
readonly name: "_userWallet";
|
|
1469
|
-
readonly type: "address";
|
|
1470
|
-
}, {
|
|
1471
|
-
readonly name: "_legoId";
|
|
1472
|
-
readonly type: "uint256";
|
|
1473
|
-
}, {
|
|
1474
|
-
readonly name: "_borrowAsset";
|
|
1475
|
-
readonly type: "address";
|
|
1476
|
-
}, {
|
|
1477
|
-
readonly name: "_amount";
|
|
1478
|
-
readonly type: "uint256";
|
|
1479
|
-
}, {
|
|
1480
|
-
readonly name: "_extraData";
|
|
1481
|
-
readonly type: "bytes32";
|
|
732
|
+
readonly name: "_amount";
|
|
733
|
+
readonly type: "uint256";
|
|
1482
734
|
}];
|
|
1483
735
|
readonly outputs: readonly [{
|
|
1484
736
|
readonly name: "";
|
|
@@ -1490,7 +742,7 @@ export declare const abi: readonly [{
|
|
|
1490
742
|
}, {
|
|
1491
743
|
readonly stateMutability: "nonpayable";
|
|
1492
744
|
readonly type: "function";
|
|
1493
|
-
readonly name: "
|
|
745
|
+
readonly name: "addCollateral";
|
|
1494
746
|
readonly inputs: readonly [{
|
|
1495
747
|
readonly name: "_userWallet";
|
|
1496
748
|
readonly type: "address";
|
|
@@ -1498,7 +750,7 @@ export declare const abi: readonly [{
|
|
|
1498
750
|
readonly name: "_legoId";
|
|
1499
751
|
readonly type: "uint256";
|
|
1500
752
|
}, {
|
|
1501
|
-
readonly name: "
|
|
753
|
+
readonly name: "_asset";
|
|
1502
754
|
readonly type: "address";
|
|
1503
755
|
}, {
|
|
1504
756
|
readonly name: "_amount";
|
|
@@ -1506,19 +758,6 @@ export declare const abi: readonly [{
|
|
|
1506
758
|
}, {
|
|
1507
759
|
readonly name: "_extraData";
|
|
1508
760
|
readonly type: "bytes32";
|
|
1509
|
-
}, {
|
|
1510
|
-
readonly name: "_sig";
|
|
1511
|
-
readonly type: "tuple";
|
|
1512
|
-
readonly components: readonly [{
|
|
1513
|
-
readonly name: "signature";
|
|
1514
|
-
readonly type: "bytes";
|
|
1515
|
-
}, {
|
|
1516
|
-
readonly name: "nonce";
|
|
1517
|
-
readonly type: "uint256";
|
|
1518
|
-
}, {
|
|
1519
|
-
readonly name: "expiration";
|
|
1520
|
-
readonly type: "uint256";
|
|
1521
|
-
}];
|
|
1522
761
|
}];
|
|
1523
762
|
readonly outputs: readonly [{
|
|
1524
763
|
readonly name: "";
|
|
@@ -1530,7 +769,7 @@ export declare const abi: readonly [{
|
|
|
1530
769
|
}, {
|
|
1531
770
|
readonly stateMutability: "nonpayable";
|
|
1532
771
|
readonly type: "function";
|
|
1533
|
-
readonly name: "
|
|
772
|
+
readonly name: "removeCollateral";
|
|
1534
773
|
readonly inputs: readonly [{
|
|
1535
774
|
readonly name: "_userWallet";
|
|
1536
775
|
readonly type: "address";
|
|
@@ -1538,7 +777,7 @@ export declare const abi: readonly [{
|
|
|
1538
777
|
readonly name: "_legoId";
|
|
1539
778
|
readonly type: "uint256";
|
|
1540
779
|
}, {
|
|
1541
|
-
readonly name: "
|
|
780
|
+
readonly name: "_asset";
|
|
1542
781
|
readonly type: "address";
|
|
1543
782
|
}];
|
|
1544
783
|
readonly outputs: readonly [{
|
|
@@ -1551,7 +790,7 @@ export declare const abi: readonly [{
|
|
|
1551
790
|
}, {
|
|
1552
791
|
readonly stateMutability: "nonpayable";
|
|
1553
792
|
readonly type: "function";
|
|
1554
|
-
readonly name: "
|
|
793
|
+
readonly name: "removeCollateral";
|
|
1555
794
|
readonly inputs: readonly [{
|
|
1556
795
|
readonly name: "_userWallet";
|
|
1557
796
|
readonly type: "address";
|
|
@@ -1559,10 +798,10 @@ export declare const abi: readonly [{
|
|
|
1559
798
|
readonly name: "_legoId";
|
|
1560
799
|
readonly type: "uint256";
|
|
1561
800
|
}, {
|
|
1562
|
-
readonly name: "
|
|
801
|
+
readonly name: "_asset";
|
|
1563
802
|
readonly type: "address";
|
|
1564
803
|
}, {
|
|
1565
|
-
readonly name: "
|
|
804
|
+
readonly name: "_amount";
|
|
1566
805
|
readonly type: "uint256";
|
|
1567
806
|
}];
|
|
1568
807
|
readonly outputs: readonly [{
|
|
@@ -1575,7 +814,7 @@ export declare const abi: readonly [{
|
|
|
1575
814
|
}, {
|
|
1576
815
|
readonly stateMutability: "nonpayable";
|
|
1577
816
|
readonly type: "function";
|
|
1578
|
-
readonly name: "
|
|
817
|
+
readonly name: "removeCollateral";
|
|
1579
818
|
readonly inputs: readonly [{
|
|
1580
819
|
readonly name: "_userWallet";
|
|
1581
820
|
readonly type: "address";
|
|
@@ -1583,10 +822,10 @@ export declare const abi: readonly [{
|
|
|
1583
822
|
readonly name: "_legoId";
|
|
1584
823
|
readonly type: "uint256";
|
|
1585
824
|
}, {
|
|
1586
|
-
readonly name: "
|
|
825
|
+
readonly name: "_asset";
|
|
1587
826
|
readonly type: "address";
|
|
1588
827
|
}, {
|
|
1589
|
-
readonly name: "
|
|
828
|
+
readonly name: "_amount";
|
|
1590
829
|
readonly type: "uint256";
|
|
1591
830
|
}, {
|
|
1592
831
|
readonly name: "_extraData";
|
|
@@ -1602,7 +841,7 @@ export declare const abi: readonly [{
|
|
|
1602
841
|
}, {
|
|
1603
842
|
readonly stateMutability: "nonpayable";
|
|
1604
843
|
readonly type: "function";
|
|
1605
|
-
readonly name: "
|
|
844
|
+
readonly name: "borrow";
|
|
1606
845
|
readonly inputs: readonly [{
|
|
1607
846
|
readonly name: "_userWallet";
|
|
1608
847
|
readonly type: "address";
|
|
@@ -1610,27 +849,8 @@ export declare const abi: readonly [{
|
|
|
1610
849
|
readonly name: "_legoId";
|
|
1611
850
|
readonly type: "uint256";
|
|
1612
851
|
}, {
|
|
1613
|
-
readonly name: "
|
|
852
|
+
readonly name: "_borrowAsset";
|
|
1614
853
|
readonly type: "address";
|
|
1615
|
-
}, {
|
|
1616
|
-
readonly name: "_paymentAmount";
|
|
1617
|
-
readonly type: "uint256";
|
|
1618
|
-
}, {
|
|
1619
|
-
readonly name: "_extraData";
|
|
1620
|
-
readonly type: "bytes32";
|
|
1621
|
-
}, {
|
|
1622
|
-
readonly name: "_sig";
|
|
1623
|
-
readonly type: "tuple";
|
|
1624
|
-
readonly components: readonly [{
|
|
1625
|
-
readonly name: "signature";
|
|
1626
|
-
readonly type: "bytes";
|
|
1627
|
-
}, {
|
|
1628
|
-
readonly name: "nonce";
|
|
1629
|
-
readonly type: "uint256";
|
|
1630
|
-
}, {
|
|
1631
|
-
readonly name: "expiration";
|
|
1632
|
-
readonly type: "uint256";
|
|
1633
|
-
}];
|
|
1634
854
|
}];
|
|
1635
855
|
readonly outputs: readonly [{
|
|
1636
856
|
readonly name: "";
|
|
@@ -1642,13 +862,19 @@ export declare const abi: readonly [{
|
|
|
1642
862
|
}, {
|
|
1643
863
|
readonly stateMutability: "nonpayable";
|
|
1644
864
|
readonly type: "function";
|
|
1645
|
-
readonly name: "
|
|
865
|
+
readonly name: "borrow";
|
|
1646
866
|
readonly inputs: readonly [{
|
|
1647
867
|
readonly name: "_userWallet";
|
|
1648
868
|
readonly type: "address";
|
|
1649
869
|
}, {
|
|
1650
870
|
readonly name: "_legoId";
|
|
1651
871
|
readonly type: "uint256";
|
|
872
|
+
}, {
|
|
873
|
+
readonly name: "_borrowAsset";
|
|
874
|
+
readonly type: "address";
|
|
875
|
+
}, {
|
|
876
|
+
readonly name: "_amount";
|
|
877
|
+
readonly type: "uint256";
|
|
1652
878
|
}];
|
|
1653
879
|
readonly outputs: readonly [{
|
|
1654
880
|
readonly name: "";
|
|
@@ -1660,7 +886,7 @@ export declare const abi: readonly [{
|
|
|
1660
886
|
}, {
|
|
1661
887
|
readonly stateMutability: "nonpayable";
|
|
1662
888
|
readonly type: "function";
|
|
1663
|
-
readonly name: "
|
|
889
|
+
readonly name: "borrow";
|
|
1664
890
|
readonly inputs: readonly [{
|
|
1665
891
|
readonly name: "_userWallet";
|
|
1666
892
|
readonly type: "address";
|
|
@@ -1668,8 +894,14 @@ export declare const abi: readonly [{
|
|
|
1668
894
|
readonly name: "_legoId";
|
|
1669
895
|
readonly type: "uint256";
|
|
1670
896
|
}, {
|
|
1671
|
-
readonly name: "
|
|
897
|
+
readonly name: "_borrowAsset";
|
|
1672
898
|
readonly type: "address";
|
|
899
|
+
}, {
|
|
900
|
+
readonly name: "_amount";
|
|
901
|
+
readonly type: "uint256";
|
|
902
|
+
}, {
|
|
903
|
+
readonly name: "_extraData";
|
|
904
|
+
readonly type: "bytes32";
|
|
1673
905
|
}];
|
|
1674
906
|
readonly outputs: readonly [{
|
|
1675
907
|
readonly name: "";
|
|
@@ -1681,7 +913,7 @@ export declare const abi: readonly [{
|
|
|
1681
913
|
}, {
|
|
1682
914
|
readonly stateMutability: "nonpayable";
|
|
1683
915
|
readonly type: "function";
|
|
1684
|
-
readonly name: "
|
|
916
|
+
readonly name: "repayDebt";
|
|
1685
917
|
readonly inputs: readonly [{
|
|
1686
918
|
readonly name: "_userWallet";
|
|
1687
919
|
readonly type: "address";
|
|
@@ -1689,11 +921,8 @@ export declare const abi: readonly [{
|
|
|
1689
921
|
readonly name: "_legoId";
|
|
1690
922
|
readonly type: "uint256";
|
|
1691
923
|
}, {
|
|
1692
|
-
readonly name: "
|
|
924
|
+
readonly name: "_paymentAsset";
|
|
1693
925
|
readonly type: "address";
|
|
1694
|
-
}, {
|
|
1695
|
-
readonly name: "_rewardAmount";
|
|
1696
|
-
readonly type: "uint256";
|
|
1697
926
|
}];
|
|
1698
927
|
readonly outputs: readonly [{
|
|
1699
928
|
readonly name: "";
|
|
@@ -1705,7 +934,7 @@ export declare const abi: readonly [{
|
|
|
1705
934
|
}, {
|
|
1706
935
|
readonly stateMutability: "nonpayable";
|
|
1707
936
|
readonly type: "function";
|
|
1708
|
-
readonly name: "
|
|
937
|
+
readonly name: "repayDebt";
|
|
1709
938
|
readonly inputs: readonly [{
|
|
1710
939
|
readonly name: "_userWallet";
|
|
1711
940
|
readonly type: "address";
|
|
@@ -1713,14 +942,11 @@ export declare const abi: readonly [{
|
|
|
1713
942
|
readonly name: "_legoId";
|
|
1714
943
|
readonly type: "uint256";
|
|
1715
944
|
}, {
|
|
1716
|
-
readonly name: "
|
|
945
|
+
readonly name: "_paymentAsset";
|
|
1717
946
|
readonly type: "address";
|
|
1718
947
|
}, {
|
|
1719
|
-
readonly name: "
|
|
948
|
+
readonly name: "_paymentAmount";
|
|
1720
949
|
readonly type: "uint256";
|
|
1721
|
-
}, {
|
|
1722
|
-
readonly name: "_extraData";
|
|
1723
|
-
readonly type: "bytes32";
|
|
1724
950
|
}];
|
|
1725
951
|
readonly outputs: readonly [{
|
|
1726
952
|
readonly name: "";
|
|
@@ -1732,7 +958,7 @@ export declare const abi: readonly [{
|
|
|
1732
958
|
}, {
|
|
1733
959
|
readonly stateMutability: "nonpayable";
|
|
1734
960
|
readonly type: "function";
|
|
1735
|
-
readonly name: "
|
|
961
|
+
readonly name: "repayDebt";
|
|
1736
962
|
readonly inputs: readonly [{
|
|
1737
963
|
readonly name: "_userWallet";
|
|
1738
964
|
readonly type: "address";
|
|
@@ -1740,27 +966,14 @@ export declare const abi: readonly [{
|
|
|
1740
966
|
readonly name: "_legoId";
|
|
1741
967
|
readonly type: "uint256";
|
|
1742
968
|
}, {
|
|
1743
|
-
readonly name: "
|
|
969
|
+
readonly name: "_paymentAsset";
|
|
1744
970
|
readonly type: "address";
|
|
1745
971
|
}, {
|
|
1746
|
-
readonly name: "
|
|
972
|
+
readonly name: "_paymentAmount";
|
|
1747
973
|
readonly type: "uint256";
|
|
1748
974
|
}, {
|
|
1749
975
|
readonly name: "_extraData";
|
|
1750
976
|
readonly type: "bytes32";
|
|
1751
|
-
}, {
|
|
1752
|
-
readonly name: "_sig";
|
|
1753
|
-
readonly type: "tuple";
|
|
1754
|
-
readonly components: readonly [{
|
|
1755
|
-
readonly name: "signature";
|
|
1756
|
-
readonly type: "bytes";
|
|
1757
|
-
}, {
|
|
1758
|
-
readonly name: "nonce";
|
|
1759
|
-
readonly type: "uint256";
|
|
1760
|
-
}, {
|
|
1761
|
-
readonly name: "expiration";
|
|
1762
|
-
readonly type: "uint256";
|
|
1763
|
-
}];
|
|
1764
977
|
}];
|
|
1765
978
|
readonly outputs: readonly [{
|
|
1766
979
|
readonly name: "";
|
|
@@ -1772,10 +985,13 @@ export declare const abi: readonly [{
|
|
|
1772
985
|
}, {
|
|
1773
986
|
readonly stateMutability: "nonpayable";
|
|
1774
987
|
readonly type: "function";
|
|
1775
|
-
readonly name: "
|
|
988
|
+
readonly name: "claimIncentives";
|
|
1776
989
|
readonly inputs: readonly [{
|
|
1777
990
|
readonly name: "_userWallet";
|
|
1778
991
|
readonly type: "address";
|
|
992
|
+
}, {
|
|
993
|
+
readonly name: "_legoId";
|
|
994
|
+
readonly type: "uint256";
|
|
1779
995
|
}];
|
|
1780
996
|
readonly outputs: readonly [{
|
|
1781
997
|
readonly name: "";
|
|
@@ -1787,13 +1003,16 @@ export declare const abi: readonly [{
|
|
|
1787
1003
|
}, {
|
|
1788
1004
|
readonly stateMutability: "nonpayable";
|
|
1789
1005
|
readonly type: "function";
|
|
1790
|
-
readonly name: "
|
|
1006
|
+
readonly name: "claimIncentives";
|
|
1791
1007
|
readonly inputs: readonly [{
|
|
1792
1008
|
readonly name: "_userWallet";
|
|
1793
1009
|
readonly type: "address";
|
|
1794
1010
|
}, {
|
|
1795
|
-
readonly name: "
|
|
1011
|
+
readonly name: "_legoId";
|
|
1796
1012
|
readonly type: "uint256";
|
|
1013
|
+
}, {
|
|
1014
|
+
readonly name: "_rewardToken";
|
|
1015
|
+
readonly type: "address";
|
|
1797
1016
|
}];
|
|
1798
1017
|
readonly outputs: readonly [{
|
|
1799
1018
|
readonly name: "";
|
|
@@ -1805,26 +1024,19 @@ export declare const abi: readonly [{
|
|
|
1805
1024
|
}, {
|
|
1806
1025
|
readonly stateMutability: "nonpayable";
|
|
1807
1026
|
readonly type: "function";
|
|
1808
|
-
readonly name: "
|
|
1027
|
+
readonly name: "claimIncentives";
|
|
1809
1028
|
readonly inputs: readonly [{
|
|
1810
1029
|
readonly name: "_userWallet";
|
|
1811
1030
|
readonly type: "address";
|
|
1812
1031
|
}, {
|
|
1813
|
-
readonly name: "
|
|
1032
|
+
readonly name: "_legoId";
|
|
1814
1033
|
readonly type: "uint256";
|
|
1815
1034
|
}, {
|
|
1816
|
-
readonly name: "
|
|
1817
|
-
readonly type: "
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
}, {
|
|
1822
|
-
readonly name: "nonce";
|
|
1823
|
-
readonly type: "uint256";
|
|
1824
|
-
}, {
|
|
1825
|
-
readonly name: "expiration";
|
|
1826
|
-
readonly type: "uint256";
|
|
1827
|
-
}];
|
|
1035
|
+
readonly name: "_rewardToken";
|
|
1036
|
+
readonly type: "address";
|
|
1037
|
+
}, {
|
|
1038
|
+
readonly name: "_rewardAmount";
|
|
1039
|
+
readonly type: "uint256";
|
|
1828
1040
|
}];
|
|
1829
1041
|
readonly outputs: readonly [{
|
|
1830
1042
|
readonly name: "";
|
|
@@ -1836,10 +1048,22 @@ export declare const abi: readonly [{
|
|
|
1836
1048
|
}, {
|
|
1837
1049
|
readonly stateMutability: "nonpayable";
|
|
1838
1050
|
readonly type: "function";
|
|
1839
|
-
readonly name: "
|
|
1051
|
+
readonly name: "claimIncentives";
|
|
1840
1052
|
readonly inputs: readonly [{
|
|
1841
1053
|
readonly name: "_userWallet";
|
|
1842
1054
|
readonly type: "address";
|
|
1055
|
+
}, {
|
|
1056
|
+
readonly name: "_legoId";
|
|
1057
|
+
readonly type: "uint256";
|
|
1058
|
+
}, {
|
|
1059
|
+
readonly name: "_rewardToken";
|
|
1060
|
+
readonly type: "address";
|
|
1061
|
+
}, {
|
|
1062
|
+
readonly name: "_rewardAmount";
|
|
1063
|
+
readonly type: "uint256";
|
|
1064
|
+
}, {
|
|
1065
|
+
readonly name: "_proofs";
|
|
1066
|
+
readonly type: "bytes32[]";
|
|
1843
1067
|
}];
|
|
1844
1068
|
readonly outputs: readonly [{
|
|
1845
1069
|
readonly name: "";
|
|
@@ -1851,13 +1075,10 @@ export declare const abi: readonly [{
|
|
|
1851
1075
|
}, {
|
|
1852
1076
|
readonly stateMutability: "nonpayable";
|
|
1853
1077
|
readonly type: "function";
|
|
1854
|
-
readonly name: "
|
|
1078
|
+
readonly name: "convertWethToEth";
|
|
1855
1079
|
readonly inputs: readonly [{
|
|
1856
1080
|
readonly name: "_userWallet";
|
|
1857
1081
|
readonly type: "address";
|
|
1858
|
-
}, {
|
|
1859
|
-
readonly name: "_amount";
|
|
1860
|
-
readonly type: "uint256";
|
|
1861
1082
|
}];
|
|
1862
1083
|
readonly outputs: readonly [{
|
|
1863
1084
|
readonly name: "";
|
|
@@ -1869,26 +1090,13 @@ export declare const abi: readonly [{
|
|
|
1869
1090
|
}, {
|
|
1870
1091
|
readonly stateMutability: "nonpayable";
|
|
1871
1092
|
readonly type: "function";
|
|
1872
|
-
readonly name: "
|
|
1093
|
+
readonly name: "convertWethToEth";
|
|
1873
1094
|
readonly inputs: readonly [{
|
|
1874
1095
|
readonly name: "_userWallet";
|
|
1875
1096
|
readonly type: "address";
|
|
1876
1097
|
}, {
|
|
1877
1098
|
readonly name: "_amount";
|
|
1878
1099
|
readonly type: "uint256";
|
|
1879
|
-
}, {
|
|
1880
|
-
readonly name: "_sig";
|
|
1881
|
-
readonly type: "tuple";
|
|
1882
|
-
readonly components: readonly [{
|
|
1883
|
-
readonly name: "signature";
|
|
1884
|
-
readonly type: "bytes";
|
|
1885
|
-
}, {
|
|
1886
|
-
readonly name: "nonce";
|
|
1887
|
-
readonly type: "uint256";
|
|
1888
|
-
}, {
|
|
1889
|
-
readonly name: "expiration";
|
|
1890
|
-
readonly type: "uint256";
|
|
1891
|
-
}];
|
|
1892
1100
|
}];
|
|
1893
1101
|
readonly outputs: readonly [{
|
|
1894
1102
|
readonly name: "";
|
|
@@ -1900,22 +1108,10 @@ export declare const abi: readonly [{
|
|
|
1900
1108
|
}, {
|
|
1901
1109
|
readonly stateMutability: "nonpayable";
|
|
1902
1110
|
readonly type: "function";
|
|
1903
|
-
readonly name: "
|
|
1111
|
+
readonly name: "convertEthToWeth";
|
|
1904
1112
|
readonly inputs: readonly [{
|
|
1905
1113
|
readonly name: "_userWallet";
|
|
1906
1114
|
readonly type: "address";
|
|
1907
|
-
}, {
|
|
1908
|
-
readonly name: "_legoId";
|
|
1909
|
-
readonly type: "uint256";
|
|
1910
|
-
}, {
|
|
1911
|
-
readonly name: "_pool";
|
|
1912
|
-
readonly type: "address";
|
|
1913
|
-
}, {
|
|
1914
|
-
readonly name: "_tokenA";
|
|
1915
|
-
readonly type: "address";
|
|
1916
|
-
}, {
|
|
1917
|
-
readonly name: "_tokenB";
|
|
1918
|
-
readonly type: "address";
|
|
1919
1115
|
}];
|
|
1920
1116
|
readonly outputs: readonly [{
|
|
1921
1117
|
readonly name: "";
|
|
@@ -1923,34 +1119,16 @@ export declare const abi: readonly [{
|
|
|
1923
1119
|
}, {
|
|
1924
1120
|
readonly name: "";
|
|
1925
1121
|
readonly type: "uint256";
|
|
1926
|
-
}, {
|
|
1927
|
-
readonly name: "";
|
|
1928
|
-
readonly type: "uint256";
|
|
1929
|
-
}, {
|
|
1930
|
-
readonly name: "";
|
|
1931
|
-
readonly type: "uint256";
|
|
1932
1122
|
}];
|
|
1933
1123
|
}, {
|
|
1934
1124
|
readonly stateMutability: "nonpayable";
|
|
1935
1125
|
readonly type: "function";
|
|
1936
|
-
readonly name: "
|
|
1126
|
+
readonly name: "convertEthToWeth";
|
|
1937
1127
|
readonly inputs: readonly [{
|
|
1938
1128
|
readonly name: "_userWallet";
|
|
1939
1129
|
readonly type: "address";
|
|
1940
1130
|
}, {
|
|
1941
|
-
readonly name: "
|
|
1942
|
-
readonly type: "uint256";
|
|
1943
|
-
}, {
|
|
1944
|
-
readonly name: "_pool";
|
|
1945
|
-
readonly type: "address";
|
|
1946
|
-
}, {
|
|
1947
|
-
readonly name: "_tokenA";
|
|
1948
|
-
readonly type: "address";
|
|
1949
|
-
}, {
|
|
1950
|
-
readonly name: "_tokenB";
|
|
1951
|
-
readonly type: "address";
|
|
1952
|
-
}, {
|
|
1953
|
-
readonly name: "_amountA";
|
|
1131
|
+
readonly name: "_amount";
|
|
1954
1132
|
readonly type: "uint256";
|
|
1955
1133
|
}];
|
|
1956
1134
|
readonly outputs: readonly [{
|
|
@@ -1959,12 +1137,6 @@ export declare const abi: readonly [{
|
|
|
1959
1137
|
}, {
|
|
1960
1138
|
readonly name: "";
|
|
1961
1139
|
readonly type: "uint256";
|
|
1962
|
-
}, {
|
|
1963
|
-
readonly name: "";
|
|
1964
|
-
readonly type: "uint256";
|
|
1965
|
-
}, {
|
|
1966
|
-
readonly name: "";
|
|
1967
|
-
readonly type: "uint256";
|
|
1968
1140
|
}];
|
|
1969
1141
|
}, {
|
|
1970
1142
|
readonly stateMutability: "nonpayable";
|
|
@@ -1985,12 +1157,6 @@ export declare const abi: readonly [{
|
|
|
1985
1157
|
}, {
|
|
1986
1158
|
readonly name: "_tokenB";
|
|
1987
1159
|
readonly type: "address";
|
|
1988
|
-
}, {
|
|
1989
|
-
readonly name: "_amountA";
|
|
1990
|
-
readonly type: "uint256";
|
|
1991
|
-
}, {
|
|
1992
|
-
readonly name: "_amountB";
|
|
1993
|
-
readonly type: "uint256";
|
|
1994
1160
|
}];
|
|
1995
1161
|
readonly outputs: readonly [{
|
|
1996
1162
|
readonly name: "";
|
|
@@ -2027,12 +1193,6 @@ export declare const abi: readonly [{
|
|
|
2027
1193
|
}, {
|
|
2028
1194
|
readonly name: "_amountA";
|
|
2029
1195
|
readonly type: "uint256";
|
|
2030
|
-
}, {
|
|
2031
|
-
readonly name: "_amountB";
|
|
2032
|
-
readonly type: "uint256";
|
|
2033
|
-
}, {
|
|
2034
|
-
readonly name: "_minAmountA";
|
|
2035
|
-
readonly type: "uint256";
|
|
2036
1196
|
}];
|
|
2037
1197
|
readonly outputs: readonly [{
|
|
2038
1198
|
readonly name: "";
|
|
@@ -2072,12 +1232,6 @@ export declare const abi: readonly [{
|
|
|
2072
1232
|
}, {
|
|
2073
1233
|
readonly name: "_amountB";
|
|
2074
1234
|
readonly type: "uint256";
|
|
2075
|
-
}, {
|
|
2076
|
-
readonly name: "_minAmountA";
|
|
2077
|
-
readonly type: "uint256";
|
|
2078
|
-
}, {
|
|
2079
|
-
readonly name: "_minAmountB";
|
|
2080
|
-
readonly type: "uint256";
|
|
2081
1235
|
}];
|
|
2082
1236
|
readonly outputs: readonly [{
|
|
2083
1237
|
readonly name: "";
|
|
@@ -2120,12 +1274,6 @@ export declare const abi: readonly [{
|
|
|
2120
1274
|
}, {
|
|
2121
1275
|
readonly name: "_minAmountA";
|
|
2122
1276
|
readonly type: "uint256";
|
|
2123
|
-
}, {
|
|
2124
|
-
readonly name: "_minAmountB";
|
|
2125
|
-
readonly type: "uint256";
|
|
2126
|
-
}, {
|
|
2127
|
-
readonly name: "_minLpAmount";
|
|
2128
|
-
readonly type: "uint256";
|
|
2129
1277
|
}];
|
|
2130
1278
|
readonly outputs: readonly [{
|
|
2131
1279
|
readonly name: "";
|
|
@@ -2171,12 +1319,6 @@ export declare const abi: readonly [{
|
|
|
2171
1319
|
}, {
|
|
2172
1320
|
readonly name: "_minAmountB";
|
|
2173
1321
|
readonly type: "uint256";
|
|
2174
|
-
}, {
|
|
2175
|
-
readonly name: "_minLpAmount";
|
|
2176
|
-
readonly type: "uint256";
|
|
2177
|
-
}, {
|
|
2178
|
-
readonly name: "_extraData";
|
|
2179
|
-
readonly type: "bytes32";
|
|
2180
1322
|
}];
|
|
2181
1323
|
readonly outputs: readonly [{
|
|
2182
1324
|
readonly name: "";
|
|
@@ -2221,62 +1363,10 @@ export declare const abi: readonly [{
|
|
|
2221
1363
|
readonly type: "uint256";
|
|
2222
1364
|
}, {
|
|
2223
1365
|
readonly name: "_minAmountB";
|
|
2224
|
-
readonly type: "uint256";
|
|
2225
|
-
}, {
|
|
2226
|
-
readonly name: "_minLpAmount";
|
|
2227
|
-
readonly type: "uint256";
|
|
2228
|
-
}, {
|
|
2229
|
-
readonly name: "_extraData";
|
|
2230
|
-
readonly type: "bytes32";
|
|
2231
|
-
}, {
|
|
2232
|
-
readonly name: "_sig";
|
|
2233
|
-
readonly type: "tuple";
|
|
2234
|
-
readonly components: readonly [{
|
|
2235
|
-
readonly name: "signature";
|
|
2236
|
-
readonly type: "bytes";
|
|
2237
|
-
}, {
|
|
2238
|
-
readonly name: "nonce";
|
|
2239
|
-
readonly type: "uint256";
|
|
2240
|
-
}, {
|
|
2241
|
-
readonly name: "expiration";
|
|
2242
|
-
readonly type: "uint256";
|
|
2243
|
-
}];
|
|
2244
|
-
}];
|
|
2245
|
-
readonly outputs: readonly [{
|
|
2246
|
-
readonly name: "";
|
|
2247
|
-
readonly type: "uint256";
|
|
2248
|
-
}, {
|
|
2249
|
-
readonly name: "";
|
|
2250
|
-
readonly type: "uint256";
|
|
2251
|
-
}, {
|
|
2252
|
-
readonly name: "";
|
|
2253
|
-
readonly type: "uint256";
|
|
2254
|
-
}, {
|
|
2255
|
-
readonly name: "";
|
|
2256
|
-
readonly type: "uint256";
|
|
2257
|
-
}];
|
|
2258
|
-
}, {
|
|
2259
|
-
readonly stateMutability: "nonpayable";
|
|
2260
|
-
readonly type: "function";
|
|
2261
|
-
readonly name: "removeLiquidity";
|
|
2262
|
-
readonly inputs: readonly [{
|
|
2263
|
-
readonly name: "_userWallet";
|
|
2264
|
-
readonly type: "address";
|
|
2265
|
-
}, {
|
|
2266
|
-
readonly name: "_legoId";
|
|
2267
|
-
readonly type: "uint256";
|
|
2268
|
-
}, {
|
|
2269
|
-
readonly name: "_pool";
|
|
2270
|
-
readonly type: "address";
|
|
2271
|
-
}, {
|
|
2272
|
-
readonly name: "_tokenA";
|
|
2273
|
-
readonly type: "address";
|
|
2274
|
-
}, {
|
|
2275
|
-
readonly name: "_tokenB";
|
|
2276
|
-
readonly type: "address";
|
|
1366
|
+
readonly type: "uint256";
|
|
2277
1367
|
}, {
|
|
2278
|
-
readonly name: "
|
|
2279
|
-
readonly type: "
|
|
1368
|
+
readonly name: "_minLpAmount";
|
|
1369
|
+
readonly type: "uint256";
|
|
2280
1370
|
}];
|
|
2281
1371
|
readonly outputs: readonly [{
|
|
2282
1372
|
readonly name: "";
|
|
@@ -2294,7 +1384,7 @@ export declare const abi: readonly [{
|
|
|
2294
1384
|
}, {
|
|
2295
1385
|
readonly stateMutability: "nonpayable";
|
|
2296
1386
|
readonly type: "function";
|
|
2297
|
-
readonly name: "
|
|
1387
|
+
readonly name: "addLiquidity";
|
|
2298
1388
|
readonly inputs: readonly [{
|
|
2299
1389
|
readonly name: "_userWallet";
|
|
2300
1390
|
readonly type: "address";
|
|
@@ -2311,11 +1401,23 @@ export declare const abi: readonly [{
|
|
|
2311
1401
|
readonly name: "_tokenB";
|
|
2312
1402
|
readonly type: "address";
|
|
2313
1403
|
}, {
|
|
2314
|
-
readonly name: "
|
|
2315
|
-
readonly type: "
|
|
1404
|
+
readonly name: "_amountA";
|
|
1405
|
+
readonly type: "uint256";
|
|
2316
1406
|
}, {
|
|
2317
|
-
readonly name: "
|
|
1407
|
+
readonly name: "_amountB";
|
|
1408
|
+
readonly type: "uint256";
|
|
1409
|
+
}, {
|
|
1410
|
+
readonly name: "_minAmountA";
|
|
2318
1411
|
readonly type: "uint256";
|
|
1412
|
+
}, {
|
|
1413
|
+
readonly name: "_minAmountB";
|
|
1414
|
+
readonly type: "uint256";
|
|
1415
|
+
}, {
|
|
1416
|
+
readonly name: "_minLpAmount";
|
|
1417
|
+
readonly type: "uint256";
|
|
1418
|
+
}, {
|
|
1419
|
+
readonly name: "_extraData";
|
|
1420
|
+
readonly type: "bytes32";
|
|
2319
1421
|
}];
|
|
2320
1422
|
readonly outputs: readonly [{
|
|
2321
1423
|
readonly name: "";
|
|
@@ -2352,12 +1454,6 @@ export declare const abi: readonly [{
|
|
|
2352
1454
|
}, {
|
|
2353
1455
|
readonly name: "_lpToken";
|
|
2354
1456
|
readonly type: "address";
|
|
2355
|
-
}, {
|
|
2356
|
-
readonly name: "_lpAmount";
|
|
2357
|
-
readonly type: "uint256";
|
|
2358
|
-
}, {
|
|
2359
|
-
readonly name: "_minAmountA";
|
|
2360
|
-
readonly type: "uint256";
|
|
2361
1457
|
}];
|
|
2362
1458
|
readonly outputs: readonly [{
|
|
2363
1459
|
readonly name: "";
|
|
@@ -2397,12 +1493,6 @@ export declare const abi: readonly [{
|
|
|
2397
1493
|
}, {
|
|
2398
1494
|
readonly name: "_lpAmount";
|
|
2399
1495
|
readonly type: "uint256";
|
|
2400
|
-
}, {
|
|
2401
|
-
readonly name: "_minAmountA";
|
|
2402
|
-
readonly type: "uint256";
|
|
2403
|
-
}, {
|
|
2404
|
-
readonly name: "_minAmountB";
|
|
2405
|
-
readonly type: "uint256";
|
|
2406
1496
|
}];
|
|
2407
1497
|
readonly outputs: readonly [{
|
|
2408
1498
|
readonly name: "";
|
|
@@ -2445,12 +1535,6 @@ export declare const abi: readonly [{
|
|
|
2445
1535
|
}, {
|
|
2446
1536
|
readonly name: "_minAmountA";
|
|
2447
1537
|
readonly type: "uint256";
|
|
2448
|
-
}, {
|
|
2449
|
-
readonly name: "_minAmountB";
|
|
2450
|
-
readonly type: "uint256";
|
|
2451
|
-
}, {
|
|
2452
|
-
readonly name: "_extraData";
|
|
2453
|
-
readonly type: "bytes32";
|
|
2454
1538
|
}];
|
|
2455
1539
|
readonly outputs: readonly [{
|
|
2456
1540
|
readonly name: "";
|
|
@@ -2496,22 +1580,6 @@ export declare const abi: readonly [{
|
|
|
2496
1580
|
}, {
|
|
2497
1581
|
readonly name: "_minAmountB";
|
|
2498
1582
|
readonly type: "uint256";
|
|
2499
|
-
}, {
|
|
2500
|
-
readonly name: "_extraData";
|
|
2501
|
-
readonly type: "bytes32";
|
|
2502
|
-
}, {
|
|
2503
|
-
readonly name: "_sig";
|
|
2504
|
-
readonly type: "tuple";
|
|
2505
|
-
readonly components: readonly [{
|
|
2506
|
-
readonly name: "signature";
|
|
2507
|
-
readonly type: "bytes";
|
|
2508
|
-
}, {
|
|
2509
|
-
readonly name: "nonce";
|
|
2510
|
-
readonly type: "uint256";
|
|
2511
|
-
}, {
|
|
2512
|
-
readonly name: "expiration";
|
|
2513
|
-
readonly type: "uint256";
|
|
2514
|
-
}];
|
|
2515
1583
|
}];
|
|
2516
1584
|
readonly outputs: readonly [{
|
|
2517
1585
|
readonly name: "";
|
|
@@ -2529,19 +1597,13 @@ export declare const abi: readonly [{
|
|
|
2529
1597
|
}, {
|
|
2530
1598
|
readonly stateMutability: "nonpayable";
|
|
2531
1599
|
readonly type: "function";
|
|
2532
|
-
readonly name: "
|
|
1600
|
+
readonly name: "removeLiquidity";
|
|
2533
1601
|
readonly inputs: readonly [{
|
|
2534
1602
|
readonly name: "_userWallet";
|
|
2535
1603
|
readonly type: "address";
|
|
2536
1604
|
}, {
|
|
2537
1605
|
readonly name: "_legoId";
|
|
2538
1606
|
readonly type: "uint256";
|
|
2539
|
-
}, {
|
|
2540
|
-
readonly name: "_nftAddr";
|
|
2541
|
-
readonly type: "address";
|
|
2542
|
-
}, {
|
|
2543
|
-
readonly name: "_nftTokenId";
|
|
2544
|
-
readonly type: "uint256";
|
|
2545
1607
|
}, {
|
|
2546
1608
|
readonly name: "_pool";
|
|
2547
1609
|
readonly type: "address";
|
|
@@ -2551,11 +1613,23 @@ export declare const abi: readonly [{
|
|
|
2551
1613
|
}, {
|
|
2552
1614
|
readonly name: "_tokenB";
|
|
2553
1615
|
readonly type: "address";
|
|
2554
|
-
}
|
|
2555
|
-
|
|
2556
|
-
readonly
|
|
1616
|
+
}, {
|
|
1617
|
+
readonly name: "_lpToken";
|
|
1618
|
+
readonly type: "address";
|
|
1619
|
+
}, {
|
|
1620
|
+
readonly name: "_lpAmount";
|
|
1621
|
+
readonly type: "uint256";
|
|
1622
|
+
}, {
|
|
1623
|
+
readonly name: "_minAmountA";
|
|
2557
1624
|
readonly type: "uint256";
|
|
2558
1625
|
}, {
|
|
1626
|
+
readonly name: "_minAmountB";
|
|
1627
|
+
readonly type: "uint256";
|
|
1628
|
+
}, {
|
|
1629
|
+
readonly name: "_extraData";
|
|
1630
|
+
readonly type: "bytes32";
|
|
1631
|
+
}];
|
|
1632
|
+
readonly outputs: readonly [{
|
|
2559
1633
|
readonly name: "";
|
|
2560
1634
|
readonly type: "uint256";
|
|
2561
1635
|
}, {
|
|
@@ -2593,9 +1667,6 @@ export declare const abi: readonly [{
|
|
|
2593
1667
|
}, {
|
|
2594
1668
|
readonly name: "_tokenB";
|
|
2595
1669
|
readonly type: "address";
|
|
2596
|
-
}, {
|
|
2597
|
-
readonly name: "_amountA";
|
|
2598
|
-
readonly type: "uint256";
|
|
2599
1670
|
}];
|
|
2600
1671
|
readonly outputs: readonly [{
|
|
2601
1672
|
readonly name: "";
|
|
@@ -2641,9 +1712,6 @@ export declare const abi: readonly [{
|
|
|
2641
1712
|
}, {
|
|
2642
1713
|
readonly name: "_amountA";
|
|
2643
1714
|
readonly type: "uint256";
|
|
2644
|
-
}, {
|
|
2645
|
-
readonly name: "_amountB";
|
|
2646
|
-
readonly type: "uint256";
|
|
2647
1715
|
}];
|
|
2648
1716
|
readonly outputs: readonly [{
|
|
2649
1717
|
readonly name: "";
|
|
@@ -2692,9 +1760,6 @@ export declare const abi: readonly [{
|
|
|
2692
1760
|
}, {
|
|
2693
1761
|
readonly name: "_amountB";
|
|
2694
1762
|
readonly type: "uint256";
|
|
2695
|
-
}, {
|
|
2696
|
-
readonly name: "_tickLower";
|
|
2697
|
-
readonly type: "int24";
|
|
2698
1763
|
}];
|
|
2699
1764
|
readonly outputs: readonly [{
|
|
2700
1765
|
readonly name: "";
|
|
@@ -2746,9 +1811,6 @@ export declare const abi: readonly [{
|
|
|
2746
1811
|
}, {
|
|
2747
1812
|
readonly name: "_tickLower";
|
|
2748
1813
|
readonly type: "int24";
|
|
2749
|
-
}, {
|
|
2750
|
-
readonly name: "_tickUpper";
|
|
2751
|
-
readonly type: "int24";
|
|
2752
1814
|
}];
|
|
2753
1815
|
readonly outputs: readonly [{
|
|
2754
1816
|
readonly name: "";
|
|
@@ -2803,9 +1865,6 @@ export declare const abi: readonly [{
|
|
|
2803
1865
|
}, {
|
|
2804
1866
|
readonly name: "_tickUpper";
|
|
2805
1867
|
readonly type: "int24";
|
|
2806
|
-
}, {
|
|
2807
|
-
readonly name: "_minAmountA";
|
|
2808
|
-
readonly type: "uint256";
|
|
2809
1868
|
}];
|
|
2810
1869
|
readonly outputs: readonly [{
|
|
2811
1870
|
readonly name: "";
|
|
@@ -2863,9 +1922,6 @@ export declare const abi: readonly [{
|
|
|
2863
1922
|
}, {
|
|
2864
1923
|
readonly name: "_minAmountA";
|
|
2865
1924
|
readonly type: "uint256";
|
|
2866
|
-
}, {
|
|
2867
|
-
readonly name: "_minAmountB";
|
|
2868
|
-
readonly type: "uint256";
|
|
2869
1925
|
}];
|
|
2870
1926
|
readonly outputs: readonly [{
|
|
2871
1927
|
readonly name: "";
|
|
@@ -2926,9 +1982,6 @@ export declare const abi: readonly [{
|
|
|
2926
1982
|
}, {
|
|
2927
1983
|
readonly name: "_minAmountB";
|
|
2928
1984
|
readonly type: "uint256";
|
|
2929
|
-
}, {
|
|
2930
|
-
readonly name: "_extraData";
|
|
2931
|
-
readonly type: "bytes32";
|
|
2932
1985
|
}];
|
|
2933
1986
|
readonly outputs: readonly [{
|
|
2934
1987
|
readonly name: "";
|
|
@@ -2992,19 +2045,6 @@ export declare const abi: readonly [{
|
|
|
2992
2045
|
}, {
|
|
2993
2046
|
readonly name: "_extraData";
|
|
2994
2047
|
readonly type: "bytes32";
|
|
2995
|
-
}, {
|
|
2996
|
-
readonly name: "_sig";
|
|
2997
|
-
readonly type: "tuple";
|
|
2998
|
-
readonly components: readonly [{
|
|
2999
|
-
readonly name: "signature";
|
|
3000
|
-
readonly type: "bytes";
|
|
3001
|
-
}, {
|
|
3002
|
-
readonly name: "nonce";
|
|
3003
|
-
readonly type: "uint256";
|
|
3004
|
-
}, {
|
|
3005
|
-
readonly name: "expiration";
|
|
3006
|
-
readonly type: "uint256";
|
|
3007
|
-
}];
|
|
3008
2048
|
}];
|
|
3009
2049
|
readonly outputs: readonly [{
|
|
3010
2050
|
readonly name: "";
|
|
@@ -3248,141 +2288,12 @@ export declare const abi: readonly [{
|
|
|
3248
2288
|
readonly type: "uint256";
|
|
3249
2289
|
}];
|
|
3250
2290
|
}, {
|
|
3251
|
-
readonly stateMutability: "
|
|
3252
|
-
readonly type: "function";
|
|
3253
|
-
readonly name: "removeLiquidityConcentrated";
|
|
3254
|
-
readonly inputs: readonly [{
|
|
3255
|
-
readonly name: "_userWallet";
|
|
3256
|
-
readonly type: "address";
|
|
3257
|
-
}, {
|
|
3258
|
-
readonly name: "_legoId";
|
|
3259
|
-
readonly type: "uint256";
|
|
3260
|
-
}, {
|
|
3261
|
-
readonly name: "_nftAddr";
|
|
3262
|
-
readonly type: "address";
|
|
3263
|
-
}, {
|
|
3264
|
-
readonly name: "_nftTokenId";
|
|
3265
|
-
readonly type: "uint256";
|
|
3266
|
-
}, {
|
|
3267
|
-
readonly name: "_pool";
|
|
3268
|
-
readonly type: "address";
|
|
3269
|
-
}, {
|
|
3270
|
-
readonly name: "_tokenA";
|
|
3271
|
-
readonly type: "address";
|
|
3272
|
-
}, {
|
|
3273
|
-
readonly name: "_tokenB";
|
|
3274
|
-
readonly type: "address";
|
|
3275
|
-
}, {
|
|
3276
|
-
readonly name: "_liqToRemove";
|
|
3277
|
-
readonly type: "uint256";
|
|
3278
|
-
}, {
|
|
3279
|
-
readonly name: "_minAmountA";
|
|
3280
|
-
readonly type: "uint256";
|
|
3281
|
-
}, {
|
|
3282
|
-
readonly name: "_minAmountB";
|
|
3283
|
-
readonly type: "uint256";
|
|
3284
|
-
}, {
|
|
3285
|
-
readonly name: "_extraData";
|
|
3286
|
-
readonly type: "bytes32";
|
|
3287
|
-
}, {
|
|
3288
|
-
readonly name: "_sig";
|
|
3289
|
-
readonly type: "tuple";
|
|
3290
|
-
readonly components: readonly [{
|
|
3291
|
-
readonly name: "signature";
|
|
3292
|
-
readonly type: "bytes";
|
|
3293
|
-
}, {
|
|
3294
|
-
readonly name: "nonce";
|
|
3295
|
-
readonly type: "uint256";
|
|
3296
|
-
}, {
|
|
3297
|
-
readonly name: "expiration";
|
|
3298
|
-
readonly type: "uint256";
|
|
3299
|
-
}];
|
|
3300
|
-
}];
|
|
3301
|
-
readonly outputs: readonly [{
|
|
3302
|
-
readonly name: "";
|
|
3303
|
-
readonly type: "uint256";
|
|
3304
|
-
}, {
|
|
3305
|
-
readonly name: "";
|
|
3306
|
-
readonly type: "uint256";
|
|
3307
|
-
}, {
|
|
3308
|
-
readonly name: "";
|
|
3309
|
-
readonly type: "uint256";
|
|
3310
|
-
}, {
|
|
3311
|
-
readonly name: "";
|
|
3312
|
-
readonly type: "uint256";
|
|
3313
|
-
}];
|
|
3314
|
-
}, {
|
|
3315
|
-
readonly stateMutability: "nonpayable";
|
|
2291
|
+
readonly stateMutability: "view";
|
|
3316
2292
|
readonly type: "function";
|
|
3317
|
-
readonly name: "
|
|
2293
|
+
readonly name: "isSender";
|
|
3318
2294
|
readonly inputs: readonly [{
|
|
3319
|
-
readonly name: "
|
|
2295
|
+
readonly name: "_address";
|
|
3320
2296
|
readonly type: "address";
|
|
3321
|
-
}, {
|
|
3322
|
-
readonly name: "_instructions";
|
|
3323
|
-
readonly type: "tuple[]";
|
|
3324
|
-
readonly components: readonly [{
|
|
3325
|
-
readonly name: "usePrevAmountOut";
|
|
3326
|
-
readonly type: "bool";
|
|
3327
|
-
}, {
|
|
3328
|
-
readonly name: "action";
|
|
3329
|
-
readonly type: "uint8";
|
|
3330
|
-
}, {
|
|
3331
|
-
readonly name: "legoId";
|
|
3332
|
-
readonly type: "uint16";
|
|
3333
|
-
}, {
|
|
3334
|
-
readonly name: "asset";
|
|
3335
|
-
readonly type: "address";
|
|
3336
|
-
}, {
|
|
3337
|
-
readonly name: "target";
|
|
3338
|
-
readonly type: "address";
|
|
3339
|
-
}, {
|
|
3340
|
-
readonly name: "amount";
|
|
3341
|
-
readonly type: "uint256";
|
|
3342
|
-
}, {
|
|
3343
|
-
readonly name: "asset2";
|
|
3344
|
-
readonly type: "address";
|
|
3345
|
-
}, {
|
|
3346
|
-
readonly name: "amount2";
|
|
3347
|
-
readonly type: "uint256";
|
|
3348
|
-
}, {
|
|
3349
|
-
readonly name: "minOut1";
|
|
3350
|
-
readonly type: "uint256";
|
|
3351
|
-
}, {
|
|
3352
|
-
readonly name: "minOut2";
|
|
3353
|
-
readonly type: "uint256";
|
|
3354
|
-
}, {
|
|
3355
|
-
readonly name: "tickLower";
|
|
3356
|
-
readonly type: "int24";
|
|
3357
|
-
}, {
|
|
3358
|
-
readonly name: "tickUpper";
|
|
3359
|
-
readonly type: "int24";
|
|
3360
|
-
}, {
|
|
3361
|
-
readonly name: "extraData";
|
|
3362
|
-
readonly type: "bytes32";
|
|
3363
|
-
}, {
|
|
3364
|
-
readonly name: "auxData";
|
|
3365
|
-
readonly type: "bytes32";
|
|
3366
|
-
}, {
|
|
3367
|
-
readonly name: "swapInstructions";
|
|
3368
|
-
readonly type: "tuple[]";
|
|
3369
|
-
readonly components: readonly [{
|
|
3370
|
-
readonly name: "legoId";
|
|
3371
|
-
readonly type: "uint256";
|
|
3372
|
-
}, {
|
|
3373
|
-
readonly name: "amountIn";
|
|
3374
|
-
readonly type: "uint256";
|
|
3375
|
-
}, {
|
|
3376
|
-
readonly name: "minAmountOut";
|
|
3377
|
-
readonly type: "uint256";
|
|
3378
|
-
}, {
|
|
3379
|
-
readonly name: "tokenPath";
|
|
3380
|
-
readonly type: "address[]";
|
|
3381
|
-
}, {
|
|
3382
|
-
readonly name: "poolPath";
|
|
3383
|
-
readonly type: "address[]";
|
|
3384
|
-
}];
|
|
3385
|
-
}];
|
|
3386
2297
|
}];
|
|
3387
2298
|
readonly outputs: readonly [{
|
|
3388
2299
|
readonly name: "";
|
|
@@ -3391,110 +2302,26 @@ export declare const abi: readonly [{
|
|
|
3391
2302
|
}, {
|
|
3392
2303
|
readonly stateMutability: "nonpayable";
|
|
3393
2304
|
readonly type: "function";
|
|
3394
|
-
readonly name: "
|
|
2305
|
+
readonly name: "addSender";
|
|
3395
2306
|
readonly inputs: readonly [{
|
|
3396
|
-
readonly name: "
|
|
2307
|
+
readonly name: "_sender";
|
|
3397
2308
|
readonly type: "address";
|
|
3398
|
-
}, {
|
|
3399
|
-
readonly name: "_instructions";
|
|
3400
|
-
readonly type: "tuple[]";
|
|
3401
|
-
readonly components: readonly [{
|
|
3402
|
-
readonly name: "usePrevAmountOut";
|
|
3403
|
-
readonly type: "bool";
|
|
3404
|
-
}, {
|
|
3405
|
-
readonly name: "action";
|
|
3406
|
-
readonly type: "uint8";
|
|
3407
|
-
}, {
|
|
3408
|
-
readonly name: "legoId";
|
|
3409
|
-
readonly type: "uint16";
|
|
3410
|
-
}, {
|
|
3411
|
-
readonly name: "asset";
|
|
3412
|
-
readonly type: "address";
|
|
3413
|
-
}, {
|
|
3414
|
-
readonly name: "target";
|
|
3415
|
-
readonly type: "address";
|
|
3416
|
-
}, {
|
|
3417
|
-
readonly name: "amount";
|
|
3418
|
-
readonly type: "uint256";
|
|
3419
|
-
}, {
|
|
3420
|
-
readonly name: "asset2";
|
|
3421
|
-
readonly type: "address";
|
|
3422
|
-
}, {
|
|
3423
|
-
readonly name: "amount2";
|
|
3424
|
-
readonly type: "uint256";
|
|
3425
|
-
}, {
|
|
3426
|
-
readonly name: "minOut1";
|
|
3427
|
-
readonly type: "uint256";
|
|
3428
|
-
}, {
|
|
3429
|
-
readonly name: "minOut2";
|
|
3430
|
-
readonly type: "uint256";
|
|
3431
|
-
}, {
|
|
3432
|
-
readonly name: "tickLower";
|
|
3433
|
-
readonly type: "int24";
|
|
3434
|
-
}, {
|
|
3435
|
-
readonly name: "tickUpper";
|
|
3436
|
-
readonly type: "int24";
|
|
3437
|
-
}, {
|
|
3438
|
-
readonly name: "extraData";
|
|
3439
|
-
readonly type: "bytes32";
|
|
3440
|
-
}, {
|
|
3441
|
-
readonly name: "auxData";
|
|
3442
|
-
readonly type: "bytes32";
|
|
3443
|
-
}, {
|
|
3444
|
-
readonly name: "swapInstructions";
|
|
3445
|
-
readonly type: "tuple[]";
|
|
3446
|
-
readonly components: readonly [{
|
|
3447
|
-
readonly name: "legoId";
|
|
3448
|
-
readonly type: "uint256";
|
|
3449
|
-
}, {
|
|
3450
|
-
readonly name: "amountIn";
|
|
3451
|
-
readonly type: "uint256";
|
|
3452
|
-
}, {
|
|
3453
|
-
readonly name: "minAmountOut";
|
|
3454
|
-
readonly type: "uint256";
|
|
3455
|
-
}, {
|
|
3456
|
-
readonly name: "tokenPath";
|
|
3457
|
-
readonly type: "address[]";
|
|
3458
|
-
}, {
|
|
3459
|
-
readonly name: "poolPath";
|
|
3460
|
-
readonly type: "address[]";
|
|
3461
|
-
}];
|
|
3462
|
-
}];
|
|
3463
|
-
}, {
|
|
3464
|
-
readonly name: "_sig";
|
|
3465
|
-
readonly type: "tuple";
|
|
3466
|
-
readonly components: readonly [{
|
|
3467
|
-
readonly name: "signature";
|
|
3468
|
-
readonly type: "bytes";
|
|
3469
|
-
}, {
|
|
3470
|
-
readonly name: "nonce";
|
|
3471
|
-
readonly type: "uint256";
|
|
3472
|
-
}, {
|
|
3473
|
-
readonly name: "expiration";
|
|
3474
|
-
readonly type: "uint256";
|
|
3475
|
-
}];
|
|
3476
|
-
}];
|
|
3477
|
-
readonly outputs: readonly [{
|
|
3478
|
-
readonly name: "";
|
|
3479
|
-
readonly type: "bool";
|
|
3480
2309
|
}];
|
|
2310
|
+
readonly outputs: readonly [];
|
|
3481
2311
|
}, {
|
|
3482
2312
|
readonly stateMutability: "nonpayable";
|
|
3483
2313
|
readonly type: "function";
|
|
3484
|
-
readonly name: "
|
|
2314
|
+
readonly name: "removeSender";
|
|
3485
2315
|
readonly inputs: readonly [{
|
|
3486
|
-
readonly name: "
|
|
2316
|
+
readonly name: "_sender";
|
|
3487
2317
|
readonly type: "address";
|
|
3488
2318
|
}];
|
|
3489
2319
|
readonly outputs: readonly [];
|
|
3490
2320
|
}, {
|
|
3491
2321
|
readonly stateMutability: "view";
|
|
3492
2322
|
readonly type: "function";
|
|
3493
|
-
readonly name: "
|
|
3494
|
-
readonly inputs: readonly [
|
|
3495
|
-
readonly name: "_userWallet";
|
|
3496
|
-
readonly type: "address";
|
|
3497
|
-
}];
|
|
2323
|
+
readonly name: "groupId";
|
|
2324
|
+
readonly inputs: readonly [];
|
|
3498
2325
|
readonly outputs: readonly [{
|
|
3499
2326
|
readonly name: "";
|
|
3500
2327
|
readonly type: "uint256";
|
|
@@ -3502,16 +2329,19 @@ export declare const abi: readonly [{
|
|
|
3502
2329
|
}, {
|
|
3503
2330
|
readonly stateMutability: "view";
|
|
3504
2331
|
readonly type: "function";
|
|
3505
|
-
readonly name: "
|
|
3506
|
-
readonly inputs: readonly [
|
|
2332
|
+
readonly name: "senders";
|
|
2333
|
+
readonly inputs: readonly [{
|
|
2334
|
+
readonly name: "arg0";
|
|
2335
|
+
readonly type: "uint256";
|
|
2336
|
+
}];
|
|
3507
2337
|
readonly outputs: readonly [{
|
|
3508
2338
|
readonly name: "";
|
|
3509
|
-
readonly type: "
|
|
2339
|
+
readonly type: "address";
|
|
3510
2340
|
}];
|
|
3511
2341
|
}, {
|
|
3512
2342
|
readonly stateMutability: "view";
|
|
3513
2343
|
readonly type: "function";
|
|
3514
|
-
readonly name: "
|
|
2344
|
+
readonly name: "indexOfSender";
|
|
3515
2345
|
readonly inputs: readonly [{
|
|
3516
2346
|
readonly name: "arg0";
|
|
3517
2347
|
readonly type: "address";
|
|
@@ -3520,180 +2350,66 @@ export declare const abi: readonly [{
|
|
|
3520
2350
|
readonly name: "";
|
|
3521
2351
|
readonly type: "uint256";
|
|
3522
2352
|
}];
|
|
2353
|
+
}, {
|
|
2354
|
+
readonly stateMutability: "view";
|
|
2355
|
+
readonly type: "function";
|
|
2356
|
+
readonly name: "numSenders";
|
|
2357
|
+
readonly inputs: readonly [];
|
|
2358
|
+
readonly outputs: readonly [{
|
|
2359
|
+
readonly name: "";
|
|
2360
|
+
readonly type: "uint256";
|
|
2361
|
+
}];
|
|
3523
2362
|
}, {
|
|
3524
2363
|
readonly stateMutability: "nonpayable";
|
|
3525
2364
|
readonly type: "constructor";
|
|
3526
2365
|
readonly inputs: readonly [{
|
|
3527
2366
|
readonly name: "_undyHq";
|
|
3528
2367
|
readonly type: "address";
|
|
3529
|
-
}, {
|
|
3530
|
-
readonly name: "_owner";
|
|
3531
|
-
readonly type: "address";
|
|
3532
2368
|
}, {
|
|
3533
2369
|
readonly name: "_groupId";
|
|
3534
2370
|
readonly type: "uint256";
|
|
3535
|
-
}, {
|
|
3536
|
-
readonly name: "_minTimeLock";
|
|
3537
|
-
readonly type: "uint256";
|
|
3538
|
-
}, {
|
|
3539
|
-
readonly name: "_maxTimeLock";
|
|
3540
|
-
readonly type: "uint256";
|
|
3541
2371
|
}];
|
|
3542
2372
|
readonly outputs: readonly [];
|
|
3543
2373
|
}];
|
|
3544
2374
|
export declare const deployAddress: Address | undefined;
|
|
3545
2375
|
export type Contract = {
|
|
3546
2376
|
calls: {
|
|
3547
|
-
|
|
3548
|
-
owner: () => Promise<`0x${string}`>;
|
|
3549
|
-
ownershipTimeLock: () => Promise<bigint>;
|
|
3550
|
-
pendingOwner: () => Promise<{
|
|
3551
|
-
newOwner: `0x${string}`;
|
|
3552
|
-
initiatedBlock: bigint;
|
|
3553
|
-
confirmBlock: bigint;
|
|
3554
|
-
}>;
|
|
3555
|
-
MIN_OWNERSHIP_TIMELOCK: () => Promise<bigint>;
|
|
3556
|
-
MAX_OWNERSHIP_TIMELOCK: () => Promise<bigint>;
|
|
3557
|
-
getNonce: (userWallet: `0x${string}`) => Promise<bigint>;
|
|
2377
|
+
isSender: (address: `0x${string}`) => Promise<boolean>;
|
|
3558
2378
|
groupId: () => Promise<bigint>;
|
|
3559
|
-
|
|
2379
|
+
senders: (arg0: bigint) => Promise<`0x${string}`>;
|
|
2380
|
+
indexOfSender: (arg0: `0x${string}`) => Promise<bigint>;
|
|
2381
|
+
numSenders: () => Promise<bigint>;
|
|
3560
2382
|
};
|
|
3561
2383
|
mutations: {
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
transferFunds: (userWallet: `0x${string}`, recipient: `0x${string}`, asset?: `0x${string}`, amount?: bigint, isCheque?: boolean, sig?: {
|
|
3567
|
-
signature: `0x${string}`;
|
|
3568
|
-
nonce: bigint;
|
|
3569
|
-
expiration: bigint;
|
|
3570
|
-
}) => Promise<[bigint, bigint]>;
|
|
3571
|
-
depositForYield: (userWallet: `0x${string}`, legoId: bigint, asset: `0x${string}`, vaultAddr?: `0x${string}`, amount?: bigint, extraData?: `0x${string}`, sig?: {
|
|
3572
|
-
signature: `0x${string}`;
|
|
3573
|
-
nonce: bigint;
|
|
3574
|
-
expiration: bigint;
|
|
3575
|
-
}) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
|
|
3576
|
-
withdrawFromYield: (userWallet: `0x${string}`, legoId: bigint, vaultToken: `0x${string}`, amount?: bigint, extraData?: `0x${string}`, sig?: {
|
|
3577
|
-
signature: `0x${string}`;
|
|
3578
|
-
nonce: bigint;
|
|
3579
|
-
expiration: bigint;
|
|
3580
|
-
}) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
|
|
3581
|
-
rebalanceYieldPosition: (userWallet: `0x${string}`, fromLegoId: bigint, fromVaultToken: `0x${string}`, toLegoId: bigint, toVaultAddr?: `0x${string}`, fromVaultAmount?: bigint, extraData?: `0x${string}`, sig?: {
|
|
3582
|
-
signature: `0x${string}`;
|
|
3583
|
-
nonce: bigint;
|
|
3584
|
-
expiration: bigint;
|
|
3585
|
-
}) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
|
|
2384
|
+
transferFunds: (userWallet: `0x${string}`, recipient: `0x${string}`, asset?: `0x${string}`, amount?: bigint, isCheque?: boolean) => Promise<[bigint, bigint]>;
|
|
2385
|
+
depositForYield: (userWallet: `0x${string}`, legoId: bigint, asset: `0x${string}`, vaultAddr?: `0x${string}`, amount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
|
|
2386
|
+
withdrawFromYield: (userWallet: `0x${string}`, legoId: bigint, vaultToken: `0x${string}`, amount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
|
|
2387
|
+
rebalanceYieldPosition: (userWallet: `0x${string}`, fromLegoId: bigint, fromVaultToken: `0x${string}`, toLegoId: bigint, toVaultAddr?: `0x${string}`, fromVaultAmount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, `0x${string}`, bigint, bigint]>;
|
|
3586
2388
|
swapTokens: (userWallet: `0x${string}`, swapInstructions: {
|
|
3587
2389
|
legoId: bigint;
|
|
3588
2390
|
amountIn: bigint;
|
|
3589
2391
|
minAmountOut: bigint;
|
|
3590
2392
|
tokenPath: `0x${string}`[];
|
|
3591
2393
|
poolPath: `0x${string}`[];
|
|
3592
|
-
}[],
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
}) => Promise<[bigint, bigint
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
}) => Promise<
|
|
3607
|
-
|
|
3608
|
-
signature: `0x${string}`;
|
|
3609
|
-
nonce: bigint;
|
|
3610
|
-
expiration: bigint;
|
|
3611
|
-
}) => Promise<[bigint, bigint]>;
|
|
3612
|
-
removeCollateral: (userWallet: `0x${string}`, legoId: bigint, asset: `0x${string}`, amount?: bigint, extraData?: `0x${string}`, sig?: {
|
|
3613
|
-
signature: `0x${string}`;
|
|
3614
|
-
nonce: bigint;
|
|
3615
|
-
expiration: bigint;
|
|
3616
|
-
}) => Promise<[bigint, bigint]>;
|
|
3617
|
-
borrow: (userWallet: `0x${string}`, legoId: bigint, borrowAsset: `0x${string}`, amount?: bigint, extraData?: `0x${string}`, sig?: {
|
|
3618
|
-
signature: `0x${string}`;
|
|
3619
|
-
nonce: bigint;
|
|
3620
|
-
expiration: bigint;
|
|
3621
|
-
}) => Promise<[bigint, bigint]>;
|
|
3622
|
-
repayDebt: (userWallet: `0x${string}`, legoId: bigint, paymentAsset: `0x${string}`, paymentAmount?: bigint, extraData?: `0x${string}`, sig?: {
|
|
3623
|
-
signature: `0x${string}`;
|
|
3624
|
-
nonce: bigint;
|
|
3625
|
-
expiration: bigint;
|
|
3626
|
-
}) => Promise<[bigint, bigint]>;
|
|
3627
|
-
claimRewards: (userWallet: `0x${string}`, legoId: bigint, rewardToken?: `0x${string}`, rewardAmount?: bigint, extraData?: `0x${string}`, sig?: {
|
|
3628
|
-
signature: `0x${string}`;
|
|
3629
|
-
nonce: bigint;
|
|
3630
|
-
expiration: bigint;
|
|
3631
|
-
}) => Promise<[bigint, bigint]>;
|
|
3632
|
-
convertWethToEth: (userWallet: `0x${string}`, amount?: bigint, sig?: {
|
|
3633
|
-
signature: `0x${string}`;
|
|
3634
|
-
nonce: bigint;
|
|
3635
|
-
expiration: bigint;
|
|
3636
|
-
}) => Promise<[bigint, bigint]>;
|
|
3637
|
-
convertEthToWeth: (userWallet: `0x${string}`, amount?: bigint, sig?: {
|
|
3638
|
-
signature: `0x${string}`;
|
|
3639
|
-
nonce: bigint;
|
|
3640
|
-
expiration: bigint;
|
|
3641
|
-
}) => Promise<[bigint, bigint]>;
|
|
3642
|
-
addLiquidity: (userWallet: `0x${string}`, legoId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA?: bigint, amountB?: bigint, minAmountA?: bigint, minAmountB?: bigint, minLpAmount?: bigint, extraData?: `0x${string}`, sig?: {
|
|
3643
|
-
signature: `0x${string}`;
|
|
3644
|
-
nonce: bigint;
|
|
3645
|
-
expiration: bigint;
|
|
3646
|
-
}) => Promise<[bigint, bigint, bigint, bigint]>;
|
|
3647
|
-
removeLiquidity: (userWallet: `0x${string}`, legoId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, lpToken: `0x${string}`, lpAmount?: bigint, minAmountA?: bigint, minAmountB?: bigint, extraData?: `0x${string}`, sig?: {
|
|
3648
|
-
signature: `0x${string}`;
|
|
3649
|
-
nonce: bigint;
|
|
3650
|
-
expiration: bigint;
|
|
3651
|
-
}) => Promise<[bigint, bigint, bigint, bigint]>;
|
|
3652
|
-
addLiquidityConcentrated: (userWallet: `0x${string}`, legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA?: bigint, amountB?: bigint, tickLower?: unknown, tickUpper?: unknown, minAmountA?: bigint, minAmountB?: bigint, extraData?: `0x${string}`, sig?: {
|
|
3653
|
-
signature: `0x${string}`;
|
|
3654
|
-
nonce: bigint;
|
|
3655
|
-
expiration: bigint;
|
|
3656
|
-
}) => Promise<[bigint, bigint, bigint, bigint, bigint]>;
|
|
3657
|
-
removeLiquidityConcentrated: (userWallet: `0x${string}`, legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, liqToRemove?: bigint, minAmountA?: bigint, minAmountB?: bigint, extraData?: `0x${string}`, sig?: {
|
|
3658
|
-
signature: `0x${string}`;
|
|
3659
|
-
nonce: bigint;
|
|
3660
|
-
expiration: bigint;
|
|
3661
|
-
}) => Promise<[bigint, bigint, bigint, bigint]>;
|
|
3662
|
-
performBatchActions: (userWallet: `0x${string}`, instructions: {
|
|
3663
|
-
usePrevAmountOut: boolean;
|
|
3664
|
-
action: number;
|
|
3665
|
-
legoId: number;
|
|
3666
|
-
asset: `0x${string}`;
|
|
3667
|
-
target: `0x${string}`;
|
|
3668
|
-
amount: bigint;
|
|
3669
|
-
asset2: `0x${string}`;
|
|
3670
|
-
amount2: bigint;
|
|
3671
|
-
minOut1: bigint;
|
|
3672
|
-
minOut2: bigint;
|
|
3673
|
-
tickLower: unknown;
|
|
3674
|
-
tickUpper: unknown;
|
|
3675
|
-
extraData: `0x${string}`;
|
|
3676
|
-
auxData: `0x${string}`;
|
|
3677
|
-
swapInstructions: {
|
|
3678
|
-
legoId: bigint;
|
|
3679
|
-
amountIn: bigint;
|
|
3680
|
-
minAmountOut: bigint;
|
|
3681
|
-
tokenPath: `0x${string}`[];
|
|
3682
|
-
poolPath: `0x${string}`[];
|
|
3683
|
-
}[];
|
|
3684
|
-
}[], sig?: {
|
|
3685
|
-
signature: `0x${string}`;
|
|
3686
|
-
nonce: bigint;
|
|
3687
|
-
expiration: bigint;
|
|
3688
|
-
}) => Promise<boolean>;
|
|
3689
|
-
incrementNonce: (userWallet: `0x${string}`) => Promise<void>;
|
|
2394
|
+
}[]) => Promise<[`0x${string}`, bigint, `0x${string}`, bigint, bigint]>;
|
|
2395
|
+
mintOrRedeemAsset: (userWallet: `0x${string}`, legoId: bigint, tokenIn: `0x${string}`, tokenOut: `0x${string}`, amountIn?: bigint, minAmountOut?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint, boolean, bigint]>;
|
|
2396
|
+
confirmMintOrRedeemAsset: (userWallet: `0x${string}`, legoId: bigint, tokenIn: `0x${string}`, tokenOut: `0x${string}`, extraData?: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
2397
|
+
addCollateral: (userWallet: `0x${string}`, legoId: bigint, asset: `0x${string}`, amount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
2398
|
+
removeCollateral: (userWallet: `0x${string}`, legoId: bigint, asset: `0x${string}`, amount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
2399
|
+
borrow: (userWallet: `0x${string}`, legoId: bigint, borrowAsset: `0x${string}`, amount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
2400
|
+
repayDebt: (userWallet: `0x${string}`, legoId: bigint, paymentAsset: `0x${string}`, paymentAmount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint]>;
|
|
2401
|
+
claimIncentives: (userWallet: `0x${string}`, legoId: bigint, rewardToken?: `0x${string}`, rewardAmount?: bigint, proofs?: `0x${string}`[]) => Promise<[bigint, bigint]>;
|
|
2402
|
+
convertWethToEth: (userWallet: `0x${string}`, amount?: bigint) => Promise<[bigint, bigint]>;
|
|
2403
|
+
convertEthToWeth: (userWallet: `0x${string}`, amount?: bigint) => Promise<[bigint, bigint]>;
|
|
2404
|
+
addLiquidity: (userWallet: `0x${string}`, legoId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA?: bigint, amountB?: bigint, minAmountA?: bigint, minAmountB?: bigint, minLpAmount?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint, bigint, bigint]>;
|
|
2405
|
+
removeLiquidity: (userWallet: `0x${string}`, legoId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, lpToken: `0x${string}`, lpAmount?: bigint, minAmountA?: bigint, minAmountB?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint, bigint, bigint]>;
|
|
2406
|
+
addLiquidityConcentrated: (userWallet: `0x${string}`, legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, amountA?: bigint, amountB?: bigint, tickLower?: unknown, tickUpper?: unknown, minAmountA?: bigint, minAmountB?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint, bigint, bigint, bigint]>;
|
|
2407
|
+
removeLiquidityConcentrated: (userWallet: `0x${string}`, legoId: bigint, nftAddr: `0x${string}`, nftTokenId: bigint, pool: `0x${string}`, tokenA: `0x${string}`, tokenB: `0x${string}`, liqToRemove?: bigint, minAmountA?: bigint, minAmountB?: bigint, extraData?: `0x${string}`) => Promise<[bigint, bigint, bigint, bigint]>;
|
|
2408
|
+
addSender: (sender: `0x${string}`) => Promise<void>;
|
|
2409
|
+
removeSender: (sender: `0x${string}`) => Promise<void>;
|
|
3690
2410
|
};
|
|
3691
2411
|
events: {
|
|
3692
|
-
|
|
3693
|
-
OwnershipChangeInitiated: (prevOwner: `0x${string}`, newOwner: `0x${string}`, confirmBlock: bigint) => Promise<void>;
|
|
3694
|
-
OwnershipChangeConfirmed: (prevOwner: `0x${string}`, newOwner: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
3695
|
-
OwnershipChangeCancelled: (cancelledOwner: `0x${string}`, cancelledBy: `0x${string}`, initiatedBlock: bigint, confirmBlock: bigint) => Promise<void>;
|
|
3696
|
-
OwnershipTimeLockSet: (numBlocks: bigint) => Promise<void>;
|
|
2412
|
+
AgentAction: (action: number, userWallet: `0x${string}`, sender: `0x${string}`) => Promise<void>;
|
|
3697
2413
|
};
|
|
3698
2414
|
};
|
|
3699
2415
|
export type Calls = keyof Contract['calls'];
|
|
@@ -3734,19 +2450,11 @@ export declare const mutation: {
|
|
|
3734
2450
|
export type SDK = {
|
|
3735
2451
|
deployAddress: Address | undefined;
|
|
3736
2452
|
abi: typeof abi;
|
|
3737
|
-
|
|
3738
|
-
owner: (...args: ExtractArgs<Contract['calls']['owner']>) => Promise<CallReturn<'owner'>>;
|
|
3739
|
-
ownershipTimeLock: (...args: ExtractArgs<Contract['calls']['ownershipTimeLock']>) => Promise<CallReturn<'ownershipTimeLock'>>;
|
|
3740
|
-
pendingOwner: (...args: ExtractArgs<Contract['calls']['pendingOwner']>) => Promise<CallReturn<'pendingOwner'>>;
|
|
3741
|
-
MIN_OWNERSHIP_TIMELOCK: (...args: ExtractArgs<Contract['calls']['MIN_OWNERSHIP_TIMELOCK']>) => Promise<CallReturn<'MIN_OWNERSHIP_TIMELOCK'>>;
|
|
3742
|
-
MAX_OWNERSHIP_TIMELOCK: (...args: ExtractArgs<Contract['calls']['MAX_OWNERSHIP_TIMELOCK']>) => Promise<CallReturn<'MAX_OWNERSHIP_TIMELOCK'>>;
|
|
3743
|
-
getNonce: (...args: ExtractArgs<Contract['calls']['getNonce']>) => Promise<CallReturn<'getNonce'>>;
|
|
2453
|
+
isSender: (...args: ExtractArgs<Contract['calls']['isSender']>) => Promise<CallReturn<'isSender'>>;
|
|
3744
2454
|
groupId: (...args: ExtractArgs<Contract['calls']['groupId']>) => Promise<CallReturn<'groupId'>>;
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
cancelOwnershipChange: (...args: ExtractArgs<Contract['mutations']['cancelOwnershipChange']>) => Promise<Address>;
|
|
3749
|
-
setOwnershipTimeLock: (...args: ExtractArgs<Contract['mutations']['setOwnershipTimeLock']>) => Promise<Address>;
|
|
2455
|
+
senders: (...args: ExtractArgs<Contract['calls']['senders']>) => Promise<CallReturn<'senders'>>;
|
|
2456
|
+
indexOfSender: (...args: ExtractArgs<Contract['calls']['indexOfSender']>) => Promise<CallReturn<'indexOfSender'>>;
|
|
2457
|
+
numSenders: (...args: ExtractArgs<Contract['calls']['numSenders']>) => Promise<CallReturn<'numSenders'>>;
|
|
3750
2458
|
transferFunds: (...args: ExtractArgs<Contract['mutations']['transferFunds']>) => Promise<Address>;
|
|
3751
2459
|
depositForYield: (...args: ExtractArgs<Contract['mutations']['depositForYield']>) => Promise<Address>;
|
|
3752
2460
|
withdrawFromYield: (...args: ExtractArgs<Contract['mutations']['withdrawFromYield']>) => Promise<Address>;
|
|
@@ -3758,15 +2466,15 @@ export type SDK = {
|
|
|
3758
2466
|
removeCollateral: (...args: ExtractArgs<Contract['mutations']['removeCollateral']>) => Promise<Address>;
|
|
3759
2467
|
borrow: (...args: ExtractArgs<Contract['mutations']['borrow']>) => Promise<Address>;
|
|
3760
2468
|
repayDebt: (...args: ExtractArgs<Contract['mutations']['repayDebt']>) => Promise<Address>;
|
|
3761
|
-
|
|
2469
|
+
claimIncentives: (...args: ExtractArgs<Contract['mutations']['claimIncentives']>) => Promise<Address>;
|
|
3762
2470
|
convertWethToEth: (...args: ExtractArgs<Contract['mutations']['convertWethToEth']>) => Promise<Address>;
|
|
3763
2471
|
convertEthToWeth: (...args: ExtractArgs<Contract['mutations']['convertEthToWeth']>) => Promise<Address>;
|
|
3764
2472
|
addLiquidity: (...args: ExtractArgs<Contract['mutations']['addLiquidity']>) => Promise<Address>;
|
|
3765
2473
|
removeLiquidity: (...args: ExtractArgs<Contract['mutations']['removeLiquidity']>) => Promise<Address>;
|
|
3766
2474
|
addLiquidityConcentrated: (...args: ExtractArgs<Contract['mutations']['addLiquidityConcentrated']>) => Promise<Address>;
|
|
3767
2475
|
removeLiquidityConcentrated: (...args: ExtractArgs<Contract['mutations']['removeLiquidityConcentrated']>) => Promise<Address>;
|
|
3768
|
-
|
|
3769
|
-
|
|
2476
|
+
addSender: (...args: ExtractArgs<Contract['mutations']['addSender']>) => Promise<Address>;
|
|
2477
|
+
removeSender: (...args: ExtractArgs<Contract['mutations']['removeSender']>) => Promise<Address>;
|
|
3770
2478
|
};
|
|
3771
2479
|
export declare function toSdk(publicClient?: PublicClient, walletClient?: WalletClient): SDK;
|
|
3772
2480
|
export {};
|