@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
|
@@ -68,6 +68,9 @@ export declare const abi: readonly [{
|
|
|
68
68
|
}, {
|
|
69
69
|
readonly name: "billing";
|
|
70
70
|
readonly type: "address";
|
|
71
|
+
}, {
|
|
72
|
+
readonly name: "vaultRegistry";
|
|
73
|
+
readonly type: "address";
|
|
71
74
|
}];
|
|
72
75
|
}];
|
|
73
76
|
}, {
|
|
@@ -143,12 +146,6 @@ export declare const abi: readonly [{
|
|
|
143
146
|
}, {
|
|
144
147
|
readonly name: "configTemplate";
|
|
145
148
|
readonly type: "address";
|
|
146
|
-
}, {
|
|
147
|
-
readonly name: "trialAsset";
|
|
148
|
-
readonly type: "address";
|
|
149
|
-
}, {
|
|
150
|
-
readonly name: "trialAmount";
|
|
151
|
-
readonly type: "uint256";
|
|
152
149
|
}, {
|
|
153
150
|
readonly name: "numUserWalletsAllowed";
|
|
154
151
|
readonly type: "uint256";
|
|
@@ -161,12 +158,12 @@ export declare const abi: readonly [{
|
|
|
161
158
|
}, {
|
|
162
159
|
readonly name: "maxKeyActionTimeLock";
|
|
163
160
|
readonly type: "uint256";
|
|
164
|
-
}, {
|
|
165
|
-
readonly name: "defaultStaleBlocks";
|
|
166
|
-
readonly type: "uint256";
|
|
167
161
|
}, {
|
|
168
162
|
readonly name: "depositRewardsAsset";
|
|
169
163
|
readonly type: "address";
|
|
164
|
+
}, {
|
|
165
|
+
readonly name: "lootClaimCoolOffPeriod";
|
|
166
|
+
readonly type: "uint256";
|
|
170
167
|
}, {
|
|
171
168
|
readonly name: "txFees";
|
|
172
169
|
readonly type: "tuple";
|
|
@@ -194,23 +191,24 @@ export declare const abi: readonly [{
|
|
|
194
191
|
readonly type: "uint256";
|
|
195
192
|
}];
|
|
196
193
|
}, {
|
|
197
|
-
readonly name: "
|
|
198
|
-
readonly type: "
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
194
|
+
readonly name: "yieldConfig";
|
|
195
|
+
readonly type: "tuple";
|
|
196
|
+
readonly components: readonly [{
|
|
197
|
+
readonly name: "maxYieldIncrease";
|
|
198
|
+
readonly type: "uint256";
|
|
199
|
+
}, {
|
|
200
|
+
readonly name: "performanceFee";
|
|
201
|
+
readonly type: "uint256";
|
|
202
|
+
}, {
|
|
203
|
+
readonly name: "ambassadorBonusRatio";
|
|
204
|
+
readonly type: "uint256";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "bonusRatio";
|
|
207
|
+
readonly type: "uint256";
|
|
208
|
+
}, {
|
|
209
|
+
readonly name: "bonusAsset";
|
|
210
|
+
readonly type: "address";
|
|
211
|
+
}];
|
|
214
212
|
}];
|
|
215
213
|
}];
|
|
216
214
|
readonly outputs: readonly [];
|
|
@@ -227,6 +225,18 @@ export declare const abi: readonly [{
|
|
|
227
225
|
}, {
|
|
228
226
|
readonly name: "managerActivationLength";
|
|
229
227
|
readonly type: "uint256";
|
|
228
|
+
}, {
|
|
229
|
+
readonly name: "mustHaveUsdValueOnSwaps";
|
|
230
|
+
readonly type: "bool";
|
|
231
|
+
}, {
|
|
232
|
+
readonly name: "maxNumSwapsPerPeriod";
|
|
233
|
+
readonly type: "uint256";
|
|
234
|
+
}, {
|
|
235
|
+
readonly name: "maxSlippageOnSwaps";
|
|
236
|
+
readonly type: "uint256";
|
|
237
|
+
}, {
|
|
238
|
+
readonly name: "onlyApprovedYieldOpps";
|
|
239
|
+
readonly type: "bool";
|
|
230
240
|
}];
|
|
231
241
|
}];
|
|
232
242
|
readonly outputs: readonly [];
|
|
@@ -306,6 +316,18 @@ export declare const abi: readonly [{
|
|
|
306
316
|
}, {
|
|
307
317
|
readonly name: "managerActivationLength";
|
|
308
318
|
readonly type: "uint256";
|
|
319
|
+
}, {
|
|
320
|
+
readonly name: "mustHaveUsdValueOnSwaps";
|
|
321
|
+
readonly type: "bool";
|
|
322
|
+
}, {
|
|
323
|
+
readonly name: "maxNumSwapsPerPeriod";
|
|
324
|
+
readonly type: "uint256";
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "maxSlippageOnSwaps";
|
|
327
|
+
readonly type: "uint256";
|
|
328
|
+
}, {
|
|
329
|
+
readonly name: "onlyApprovedYieldOpps";
|
|
330
|
+
readonly type: "bool";
|
|
309
331
|
}, {
|
|
310
332
|
readonly name: "payeePeriod";
|
|
311
333
|
readonly type: "uint256";
|
|
@@ -327,12 +349,6 @@ export declare const abi: readonly [{
|
|
|
327
349
|
}, {
|
|
328
350
|
readonly name: "chequeDefaultExpiryBlocks";
|
|
329
351
|
readonly type: "uint256";
|
|
330
|
-
}, {
|
|
331
|
-
readonly name: "trialAsset";
|
|
332
|
-
readonly type: "address";
|
|
333
|
-
}, {
|
|
334
|
-
readonly name: "trialAmount";
|
|
335
|
-
readonly type: "uint256";
|
|
336
352
|
}, {
|
|
337
353
|
readonly name: "minKeyActionTimeLock";
|
|
338
354
|
readonly type: "uint256";
|
|
@@ -341,56 +357,6 @@ export declare const abi: readonly [{
|
|
|
341
357
|
readonly type: "uint256";
|
|
342
358
|
}];
|
|
343
359
|
}];
|
|
344
|
-
}, {
|
|
345
|
-
readonly stateMutability: "view";
|
|
346
|
-
readonly type: "function";
|
|
347
|
-
readonly name: "getLootDistroConfig";
|
|
348
|
-
readonly inputs: readonly [{
|
|
349
|
-
readonly name: "_asset";
|
|
350
|
-
readonly type: "address";
|
|
351
|
-
}];
|
|
352
|
-
readonly outputs: readonly [{
|
|
353
|
-
readonly name: "";
|
|
354
|
-
readonly type: "tuple";
|
|
355
|
-
readonly components: readonly [{
|
|
356
|
-
readonly name: "ambassador";
|
|
357
|
-
readonly type: "address";
|
|
358
|
-
}, {
|
|
359
|
-
readonly name: "ambassadorRevShare";
|
|
360
|
-
readonly type: "tuple";
|
|
361
|
-
readonly components: readonly [{
|
|
362
|
-
readonly name: "swapRatio";
|
|
363
|
-
readonly type: "uint256";
|
|
364
|
-
}, {
|
|
365
|
-
readonly name: "rewardsRatio";
|
|
366
|
-
readonly type: "uint256";
|
|
367
|
-
}, {
|
|
368
|
-
readonly name: "yieldRatio";
|
|
369
|
-
readonly type: "uint256";
|
|
370
|
-
}];
|
|
371
|
-
}, {
|
|
372
|
-
readonly name: "ambassadorBonusRatio";
|
|
373
|
-
readonly type: "uint256";
|
|
374
|
-
}, {
|
|
375
|
-
readonly name: "bonusRatio";
|
|
376
|
-
readonly type: "uint256";
|
|
377
|
-
}, {
|
|
378
|
-
readonly name: "altBonusAsset";
|
|
379
|
-
readonly type: "address";
|
|
380
|
-
}, {
|
|
381
|
-
readonly name: "underlyingAsset";
|
|
382
|
-
readonly type: "address";
|
|
383
|
-
}, {
|
|
384
|
-
readonly name: "decimals";
|
|
385
|
-
readonly type: "uint256";
|
|
386
|
-
}, {
|
|
387
|
-
readonly name: "legoId";
|
|
388
|
-
readonly type: "uint256";
|
|
389
|
-
}, {
|
|
390
|
-
readonly name: "legoAddr";
|
|
391
|
-
readonly type: "address";
|
|
392
|
-
}];
|
|
393
|
-
}];
|
|
394
360
|
}, {
|
|
395
361
|
readonly stateMutability: "view";
|
|
396
362
|
readonly type: "function";
|
|
@@ -417,15 +383,6 @@ export declare const abi: readonly [{
|
|
|
417
383
|
readonly name: "_config";
|
|
418
384
|
readonly type: "tuple";
|
|
419
385
|
readonly components: readonly [{
|
|
420
|
-
readonly name: "agentTemplate";
|
|
421
|
-
readonly type: "address";
|
|
422
|
-
}, {
|
|
423
|
-
readonly name: "numAgentsAllowed";
|
|
424
|
-
readonly type: "uint256";
|
|
425
|
-
}, {
|
|
426
|
-
readonly name: "enforceCreatorWhitelist";
|
|
427
|
-
readonly type: "bool";
|
|
428
|
-
}, {
|
|
429
386
|
readonly name: "startingAgent";
|
|
430
387
|
readonly type: "address";
|
|
431
388
|
}, {
|
|
@@ -443,34 +400,6 @@ export declare const abi: readonly [{
|
|
|
443
400
|
readonly type: "address";
|
|
444
401
|
}];
|
|
445
402
|
readonly outputs: readonly [];
|
|
446
|
-
}, {
|
|
447
|
-
readonly stateMutability: "view";
|
|
448
|
-
readonly type: "function";
|
|
449
|
-
readonly name: "getAgentCreationConfig";
|
|
450
|
-
readonly inputs: readonly [{
|
|
451
|
-
readonly name: "_creator";
|
|
452
|
-
readonly type: "address";
|
|
453
|
-
}];
|
|
454
|
-
readonly outputs: readonly [{
|
|
455
|
-
readonly name: "";
|
|
456
|
-
readonly type: "tuple";
|
|
457
|
-
readonly components: readonly [{
|
|
458
|
-
readonly name: "agentTemplate";
|
|
459
|
-
readonly type: "address";
|
|
460
|
-
}, {
|
|
461
|
-
readonly name: "numAgentsAllowed";
|
|
462
|
-
readonly type: "uint256";
|
|
463
|
-
}, {
|
|
464
|
-
readonly name: "isCreatorAllowed";
|
|
465
|
-
readonly type: "bool";
|
|
466
|
-
}, {
|
|
467
|
-
readonly name: "minTimeLock";
|
|
468
|
-
readonly type: "uint256";
|
|
469
|
-
}, {
|
|
470
|
-
readonly name: "maxTimeLock";
|
|
471
|
-
readonly type: "uint256";
|
|
472
|
-
}];
|
|
473
|
-
}];
|
|
474
403
|
}, {
|
|
475
404
|
readonly stateMutability: "nonpayable";
|
|
476
405
|
readonly type: "function";
|
|
@@ -482,14 +411,8 @@ export declare const abi: readonly [{
|
|
|
482
411
|
readonly name: "_config";
|
|
483
412
|
readonly type: "tuple";
|
|
484
413
|
readonly components: readonly [{
|
|
485
|
-
readonly name: "
|
|
486
|
-
readonly type: "
|
|
487
|
-
}, {
|
|
488
|
-
readonly name: "decimals";
|
|
489
|
-
readonly type: "uint256";
|
|
490
|
-
}, {
|
|
491
|
-
readonly name: "staleBlocks";
|
|
492
|
-
readonly type: "uint256";
|
|
414
|
+
readonly name: "hasConfig";
|
|
415
|
+
readonly type: "bool";
|
|
493
416
|
}, {
|
|
494
417
|
readonly name: "txFees";
|
|
495
418
|
readonly type: "tuple";
|
|
@@ -520,15 +443,6 @@ export declare const abi: readonly [{
|
|
|
520
443
|
readonly name: "yieldConfig";
|
|
521
444
|
readonly type: "tuple";
|
|
522
445
|
readonly components: readonly [{
|
|
523
|
-
readonly name: "isYieldAsset";
|
|
524
|
-
readonly type: "bool";
|
|
525
|
-
}, {
|
|
526
|
-
readonly name: "isRebasing";
|
|
527
|
-
readonly type: "bool";
|
|
528
|
-
}, {
|
|
529
|
-
readonly name: "underlyingAsset";
|
|
530
|
-
readonly type: "address";
|
|
531
|
-
}, {
|
|
532
446
|
readonly name: "maxYieldIncrease";
|
|
533
447
|
readonly type: "uint256";
|
|
534
448
|
}, {
|
|
@@ -541,7 +455,7 @@ export declare const abi: readonly [{
|
|
|
541
455
|
readonly name: "bonusRatio";
|
|
542
456
|
readonly type: "uint256";
|
|
543
457
|
}, {
|
|
544
|
-
readonly name: "
|
|
458
|
+
readonly name: "bonusAsset";
|
|
545
459
|
readonly type: "address";
|
|
546
460
|
}];
|
|
547
461
|
}];
|
|
@@ -559,6 +473,33 @@ export declare const abi: readonly [{
|
|
|
559
473
|
readonly type: "bool";
|
|
560
474
|
}];
|
|
561
475
|
readonly outputs: readonly [];
|
|
476
|
+
}, {
|
|
477
|
+
readonly stateMutability: "view";
|
|
478
|
+
readonly type: "function";
|
|
479
|
+
readonly name: "getSwapFee";
|
|
480
|
+
readonly inputs: readonly [{
|
|
481
|
+
readonly name: "_tokenIn";
|
|
482
|
+
readonly type: "address";
|
|
483
|
+
}, {
|
|
484
|
+
readonly name: "_tokenOut";
|
|
485
|
+
readonly type: "address";
|
|
486
|
+
}];
|
|
487
|
+
readonly outputs: readonly [{
|
|
488
|
+
readonly name: "";
|
|
489
|
+
readonly type: "uint256";
|
|
490
|
+
}];
|
|
491
|
+
}, {
|
|
492
|
+
readonly stateMutability: "view";
|
|
493
|
+
readonly type: "function";
|
|
494
|
+
readonly name: "getRewardsFee";
|
|
495
|
+
readonly inputs: readonly [{
|
|
496
|
+
readonly name: "_asset";
|
|
497
|
+
readonly type: "address";
|
|
498
|
+
}];
|
|
499
|
+
readonly outputs: readonly [{
|
|
500
|
+
readonly name: "";
|
|
501
|
+
readonly type: "uint256";
|
|
502
|
+
}];
|
|
562
503
|
}, {
|
|
563
504
|
readonly stateMutability: "view";
|
|
564
505
|
readonly type: "function";
|
|
@@ -576,18 +517,9 @@ export declare const abi: readonly [{
|
|
|
576
517
|
}, {
|
|
577
518
|
readonly name: "legoAddr";
|
|
578
519
|
readonly type: "address";
|
|
579
|
-
}, {
|
|
580
|
-
readonly name: "decimals";
|
|
581
|
-
readonly type: "uint256";
|
|
582
|
-
}, {
|
|
583
|
-
readonly name: "staleBlocks";
|
|
584
|
-
readonly type: "uint256";
|
|
585
520
|
}, {
|
|
586
521
|
readonly name: "isYieldAsset";
|
|
587
522
|
readonly type: "bool";
|
|
588
|
-
}, {
|
|
589
|
-
readonly name: "isRebasing";
|
|
590
|
-
readonly type: "bool";
|
|
591
523
|
}, {
|
|
592
524
|
readonly name: "underlyingAsset";
|
|
593
525
|
readonly type: "address";
|
|
@@ -597,6 +529,12 @@ export declare const abi: readonly [{
|
|
|
597
529
|
}, {
|
|
598
530
|
readonly name: "performanceFee";
|
|
599
531
|
readonly type: "uint256";
|
|
532
|
+
}, {
|
|
533
|
+
readonly name: "isRebasing";
|
|
534
|
+
readonly type: "bool";
|
|
535
|
+
}, {
|
|
536
|
+
readonly name: "decimals";
|
|
537
|
+
readonly type: "uint256";
|
|
600
538
|
}];
|
|
601
539
|
}];
|
|
602
540
|
}, {
|
|
@@ -616,12 +554,6 @@ export declare const abi: readonly [{
|
|
|
616
554
|
}, {
|
|
617
555
|
readonly name: "legoAddr";
|
|
618
556
|
readonly type: "address";
|
|
619
|
-
}, {
|
|
620
|
-
readonly name: "decimals";
|
|
621
|
-
readonly type: "uint256";
|
|
622
|
-
}, {
|
|
623
|
-
readonly name: "staleBlocks";
|
|
624
|
-
readonly type: "uint256";
|
|
625
557
|
}, {
|
|
626
558
|
readonly name: "isYieldAsset";
|
|
627
559
|
readonly type: "bool";
|
|
@@ -633,29 +565,49 @@ export declare const abi: readonly [{
|
|
|
633
565
|
}, {
|
|
634
566
|
readonly stateMutability: "view";
|
|
635
567
|
readonly type: "function";
|
|
636
|
-
readonly name: "
|
|
637
|
-
readonly inputs: readonly [{
|
|
638
|
-
readonly name: "_tokenIn";
|
|
639
|
-
readonly type: "address";
|
|
640
|
-
}, {
|
|
641
|
-
readonly name: "_tokenOut";
|
|
642
|
-
readonly type: "address";
|
|
643
|
-
}];
|
|
644
|
-
readonly outputs: readonly [{
|
|
645
|
-
readonly name: "";
|
|
646
|
-
readonly type: "uint256";
|
|
647
|
-
}];
|
|
648
|
-
}, {
|
|
649
|
-
readonly stateMutability: "view";
|
|
650
|
-
readonly type: "function";
|
|
651
|
-
readonly name: "getRewardsFee";
|
|
568
|
+
readonly name: "getLootDistroConfig";
|
|
652
569
|
readonly inputs: readonly [{
|
|
653
570
|
readonly name: "_asset";
|
|
654
571
|
readonly type: "address";
|
|
655
572
|
}];
|
|
656
573
|
readonly outputs: readonly [{
|
|
657
574
|
readonly name: "";
|
|
658
|
-
readonly type: "
|
|
575
|
+
readonly type: "tuple";
|
|
576
|
+
readonly components: readonly [{
|
|
577
|
+
readonly name: "legoId";
|
|
578
|
+
readonly type: "uint256";
|
|
579
|
+
}, {
|
|
580
|
+
readonly name: "legoAddr";
|
|
581
|
+
readonly type: "address";
|
|
582
|
+
}, {
|
|
583
|
+
readonly name: "underlyingAsset";
|
|
584
|
+
readonly type: "address";
|
|
585
|
+
}, {
|
|
586
|
+
readonly name: "ambassador";
|
|
587
|
+
readonly type: "address";
|
|
588
|
+
}, {
|
|
589
|
+
readonly name: "ambassadorRevShare";
|
|
590
|
+
readonly type: "tuple";
|
|
591
|
+
readonly components: readonly [{
|
|
592
|
+
readonly name: "swapRatio";
|
|
593
|
+
readonly type: "uint256";
|
|
594
|
+
}, {
|
|
595
|
+
readonly name: "rewardsRatio";
|
|
596
|
+
readonly type: "uint256";
|
|
597
|
+
}, {
|
|
598
|
+
readonly name: "yieldRatio";
|
|
599
|
+
readonly type: "uint256";
|
|
600
|
+
}];
|
|
601
|
+
}, {
|
|
602
|
+
readonly name: "ambassadorBonusRatio";
|
|
603
|
+
readonly type: "uint256";
|
|
604
|
+
}, {
|
|
605
|
+
readonly name: "bonusRatio";
|
|
606
|
+
readonly type: "uint256";
|
|
607
|
+
}, {
|
|
608
|
+
readonly name: "bonusAsset";
|
|
609
|
+
readonly type: "address";
|
|
610
|
+
}];
|
|
659
611
|
}];
|
|
660
612
|
}, {
|
|
661
613
|
readonly stateMutability: "nonpayable";
|
|
@@ -707,12 +659,6 @@ export declare const abi: readonly [{
|
|
|
707
659
|
}, {
|
|
708
660
|
readonly name: "configTemplate";
|
|
709
661
|
readonly type: "address";
|
|
710
|
-
}, {
|
|
711
|
-
readonly name: "trialAsset";
|
|
712
|
-
readonly type: "address";
|
|
713
|
-
}, {
|
|
714
|
-
readonly name: "trialAmount";
|
|
715
|
-
readonly type: "uint256";
|
|
716
662
|
}, {
|
|
717
663
|
readonly name: "numUserWalletsAllowed";
|
|
718
664
|
readonly type: "uint256";
|
|
@@ -725,12 +671,12 @@ export declare const abi: readonly [{
|
|
|
725
671
|
}, {
|
|
726
672
|
readonly name: "maxKeyActionTimeLock";
|
|
727
673
|
readonly type: "uint256";
|
|
728
|
-
}, {
|
|
729
|
-
readonly name: "defaultStaleBlocks";
|
|
730
|
-
readonly type: "uint256";
|
|
731
674
|
}, {
|
|
732
675
|
readonly name: "depositRewardsAsset";
|
|
733
676
|
readonly type: "address";
|
|
677
|
+
}, {
|
|
678
|
+
readonly name: "lootClaimCoolOffPeriod";
|
|
679
|
+
readonly type: "uint256";
|
|
734
680
|
}, {
|
|
735
681
|
readonly name: "txFees";
|
|
736
682
|
readonly type: "tuple";
|
|
@@ -758,23 +704,24 @@ export declare const abi: readonly [{
|
|
|
758
704
|
readonly type: "uint256";
|
|
759
705
|
}];
|
|
760
706
|
}, {
|
|
761
|
-
readonly name: "
|
|
762
|
-
readonly type: "
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
707
|
+
readonly name: "yieldConfig";
|
|
708
|
+
readonly type: "tuple";
|
|
709
|
+
readonly components: readonly [{
|
|
710
|
+
readonly name: "maxYieldIncrease";
|
|
711
|
+
readonly type: "uint256";
|
|
712
|
+
}, {
|
|
713
|
+
readonly name: "performanceFee";
|
|
714
|
+
readonly type: "uint256";
|
|
715
|
+
}, {
|
|
716
|
+
readonly name: "ambassadorBonusRatio";
|
|
717
|
+
readonly type: "uint256";
|
|
718
|
+
}, {
|
|
719
|
+
readonly name: "bonusRatio";
|
|
720
|
+
readonly type: "uint256";
|
|
721
|
+
}, {
|
|
722
|
+
readonly name: "bonusAsset";
|
|
723
|
+
readonly type: "address";
|
|
724
|
+
}];
|
|
778
725
|
}];
|
|
779
726
|
}];
|
|
780
727
|
}, {
|
|
@@ -786,15 +733,6 @@ export declare const abi: readonly [{
|
|
|
786
733
|
readonly name: "";
|
|
787
734
|
readonly type: "tuple";
|
|
788
735
|
readonly components: readonly [{
|
|
789
|
-
readonly name: "agentTemplate";
|
|
790
|
-
readonly type: "address";
|
|
791
|
-
}, {
|
|
792
|
-
readonly name: "numAgentsAllowed";
|
|
793
|
-
readonly type: "uint256";
|
|
794
|
-
}, {
|
|
795
|
-
readonly name: "enforceCreatorWhitelist";
|
|
796
|
-
readonly type: "bool";
|
|
797
|
-
}, {
|
|
798
736
|
readonly name: "startingAgent";
|
|
799
737
|
readonly type: "address";
|
|
800
738
|
}, {
|
|
@@ -816,6 +754,18 @@ export declare const abi: readonly [{
|
|
|
816
754
|
}, {
|
|
817
755
|
readonly name: "managerActivationLength";
|
|
818
756
|
readonly type: "uint256";
|
|
757
|
+
}, {
|
|
758
|
+
readonly name: "mustHaveUsdValueOnSwaps";
|
|
759
|
+
readonly type: "bool";
|
|
760
|
+
}, {
|
|
761
|
+
readonly name: "maxNumSwapsPerPeriod";
|
|
762
|
+
readonly type: "uint256";
|
|
763
|
+
}, {
|
|
764
|
+
readonly name: "maxSlippageOnSwaps";
|
|
765
|
+
readonly type: "uint256";
|
|
766
|
+
}, {
|
|
767
|
+
readonly name: "onlyApprovedYieldOpps";
|
|
768
|
+
readonly type: "bool";
|
|
819
769
|
}];
|
|
820
770
|
}];
|
|
821
771
|
}, {
|
|
@@ -871,14 +821,8 @@ export declare const abi: readonly [{
|
|
|
871
821
|
readonly name: "";
|
|
872
822
|
readonly type: "tuple";
|
|
873
823
|
readonly components: readonly [{
|
|
874
|
-
readonly name: "
|
|
875
|
-
readonly type: "
|
|
876
|
-
}, {
|
|
877
|
-
readonly name: "decimals";
|
|
878
|
-
readonly type: "uint256";
|
|
879
|
-
}, {
|
|
880
|
-
readonly name: "staleBlocks";
|
|
881
|
-
readonly type: "uint256";
|
|
824
|
+
readonly name: "hasConfig";
|
|
825
|
+
readonly type: "bool";
|
|
882
826
|
}, {
|
|
883
827
|
readonly name: "txFees";
|
|
884
828
|
readonly type: "tuple";
|
|
@@ -909,15 +853,6 @@ export declare const abi: readonly [{
|
|
|
909
853
|
readonly name: "yieldConfig";
|
|
910
854
|
readonly type: "tuple";
|
|
911
855
|
readonly components: readonly [{
|
|
912
|
-
readonly name: "isYieldAsset";
|
|
913
|
-
readonly type: "bool";
|
|
914
|
-
}, {
|
|
915
|
-
readonly name: "isRebasing";
|
|
916
|
-
readonly type: "bool";
|
|
917
|
-
}, {
|
|
918
|
-
readonly name: "underlyingAsset";
|
|
919
|
-
readonly type: "address";
|
|
920
|
-
}, {
|
|
921
856
|
readonly name: "maxYieldIncrease";
|
|
922
857
|
readonly type: "uint256";
|
|
923
858
|
}, {
|
|
@@ -930,7 +865,7 @@ export declare const abi: readonly [{
|
|
|
930
865
|
readonly name: "bonusRatio";
|
|
931
866
|
readonly type: "uint256";
|
|
932
867
|
}, {
|
|
933
|
-
readonly name: "
|
|
868
|
+
readonly name: "bonusAsset";
|
|
934
869
|
readonly type: "address";
|
|
935
870
|
}];
|
|
936
871
|
}];
|
|
@@ -1010,6 +945,7 @@ export type Contract = {
|
|
|
1010
945
|
appraiser: `0x${string}`;
|
|
1011
946
|
walletBackpack: `0x${string}`;
|
|
1012
947
|
billing: `0x${string}`;
|
|
948
|
+
vaultRegistry: `0x${string}`;
|
|
1013
949
|
}>;
|
|
1014
950
|
getUndyHq: () => Promise<`0x${string}`>;
|
|
1015
951
|
canMintUndy: () => Promise<boolean>;
|
|
@@ -1023,6 +959,10 @@ export type Contract = {
|
|
|
1023
959
|
startingAgentActivationLength: bigint;
|
|
1024
960
|
managerPeriod: bigint;
|
|
1025
961
|
managerActivationLength: bigint;
|
|
962
|
+
mustHaveUsdValueOnSwaps: boolean;
|
|
963
|
+
maxNumSwapsPerPeriod: bigint;
|
|
964
|
+
maxSlippageOnSwaps: bigint;
|
|
965
|
+
onlyApprovedYieldOpps: boolean;
|
|
1026
966
|
payeePeriod: bigint;
|
|
1027
967
|
payeeActivationLength: bigint;
|
|
1028
968
|
chequeMaxNumActiveCheques: bigint;
|
|
@@ -1030,67 +970,52 @@ export type Contract = {
|
|
|
1030
970
|
chequePeriodLength: bigint;
|
|
1031
971
|
chequeExpensiveDelayBlocks: bigint;
|
|
1032
972
|
chequeDefaultExpiryBlocks: bigint;
|
|
1033
|
-
trialAsset: `0x${string}`;
|
|
1034
|
-
trialAmount: bigint;
|
|
1035
973
|
minKeyActionTimeLock: bigint;
|
|
1036
974
|
maxKeyActionTimeLock: bigint;
|
|
1037
975
|
}>;
|
|
1038
|
-
getLootDistroConfig: (asset: `0x${string}`) => Promise<{
|
|
1039
|
-
ambassador: `0x${string}`;
|
|
1040
|
-
ambassadorRevShare: {
|
|
1041
|
-
swapRatio: bigint;
|
|
1042
|
-
rewardsRatio: bigint;
|
|
1043
|
-
yieldRatio: bigint;
|
|
1044
|
-
};
|
|
1045
|
-
ambassadorBonusRatio: bigint;
|
|
1046
|
-
bonusRatio: bigint;
|
|
1047
|
-
altBonusAsset: `0x${string}`;
|
|
1048
|
-
underlyingAsset: `0x${string}`;
|
|
1049
|
-
decimals: bigint;
|
|
1050
|
-
legoId: bigint;
|
|
1051
|
-
legoAddr: `0x${string}`;
|
|
1052
|
-
}>;
|
|
1053
976
|
getDepositRewardsAsset: () => Promise<`0x${string}`>;
|
|
1054
977
|
getLootClaimCoolOffPeriod: () => Promise<bigint>;
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
numAgentsAllowed: bigint;
|
|
1058
|
-
isCreatorAllowed: boolean;
|
|
1059
|
-
minTimeLock: bigint;
|
|
1060
|
-
maxTimeLock: bigint;
|
|
1061
|
-
}>;
|
|
978
|
+
getSwapFee: (tokenIn: `0x${string}`, tokenOut: `0x${string}`) => Promise<bigint>;
|
|
979
|
+
getRewardsFee: (asset: `0x${string}`) => Promise<bigint>;
|
|
1062
980
|
getProfitCalcConfig: (asset: `0x${string}`) => Promise<{
|
|
1063
981
|
legoId: bigint;
|
|
1064
982
|
legoAddr: `0x${string}`;
|
|
1065
|
-
decimals: bigint;
|
|
1066
|
-
staleBlocks: bigint;
|
|
1067
983
|
isYieldAsset: boolean;
|
|
1068
|
-
isRebasing: boolean;
|
|
1069
984
|
underlyingAsset: `0x${string}`;
|
|
1070
985
|
maxYieldIncrease: bigint;
|
|
1071
986
|
performanceFee: bigint;
|
|
987
|
+
isRebasing: boolean;
|
|
988
|
+
decimals: bigint;
|
|
1072
989
|
}>;
|
|
1073
990
|
getAssetUsdValueConfig: (asset: `0x${string}`) => Promise<{
|
|
1074
991
|
legoId: bigint;
|
|
1075
992
|
legoAddr: `0x${string}`;
|
|
1076
|
-
decimals: bigint;
|
|
1077
|
-
staleBlocks: bigint;
|
|
1078
993
|
isYieldAsset: boolean;
|
|
1079
994
|
underlyingAsset: `0x${string}`;
|
|
1080
995
|
}>;
|
|
1081
|
-
|
|
1082
|
-
|
|
996
|
+
getLootDistroConfig: (asset: `0x${string}`) => Promise<{
|
|
997
|
+
legoId: bigint;
|
|
998
|
+
legoAddr: `0x${string}`;
|
|
999
|
+
underlyingAsset: `0x${string}`;
|
|
1000
|
+
ambassador: `0x${string}`;
|
|
1001
|
+
ambassadorRevShare: {
|
|
1002
|
+
swapRatio: bigint;
|
|
1003
|
+
rewardsRatio: bigint;
|
|
1004
|
+
yieldRatio: bigint;
|
|
1005
|
+
};
|
|
1006
|
+
ambassadorBonusRatio: bigint;
|
|
1007
|
+
bonusRatio: bigint;
|
|
1008
|
+
bonusAsset: `0x${string}`;
|
|
1009
|
+
}>;
|
|
1083
1010
|
userWalletConfig: () => Promise<{
|
|
1084
1011
|
walletTemplate: `0x${string}`;
|
|
1085
1012
|
configTemplate: `0x${string}`;
|
|
1086
|
-
trialAsset: `0x${string}`;
|
|
1087
|
-
trialAmount: bigint;
|
|
1088
1013
|
numUserWalletsAllowed: bigint;
|
|
1089
1014
|
enforceCreatorWhitelist: boolean;
|
|
1090
1015
|
minKeyActionTimeLock: bigint;
|
|
1091
1016
|
maxKeyActionTimeLock: bigint;
|
|
1092
|
-
defaultStaleBlocks: bigint;
|
|
1093
1017
|
depositRewardsAsset: `0x${string}`;
|
|
1018
|
+
lootClaimCoolOffPeriod: bigint;
|
|
1094
1019
|
txFees: {
|
|
1095
1020
|
swapFee: bigint;
|
|
1096
1021
|
stableSwapFee: bigint;
|
|
@@ -1101,23 +1026,25 @@ export type Contract = {
|
|
|
1101
1026
|
rewardsRatio: bigint;
|
|
1102
1027
|
yieldRatio: bigint;
|
|
1103
1028
|
};
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1029
|
+
yieldConfig: {
|
|
1030
|
+
maxYieldIncrease: bigint;
|
|
1031
|
+
performanceFee: bigint;
|
|
1032
|
+
ambassadorBonusRatio: bigint;
|
|
1033
|
+
bonusRatio: bigint;
|
|
1034
|
+
bonusAsset: `0x${string}`;
|
|
1035
|
+
};
|
|
1110
1036
|
}>;
|
|
1111
1037
|
agentConfig: () => Promise<{
|
|
1112
|
-
agentTemplate: `0x${string}`;
|
|
1113
|
-
numAgentsAllowed: bigint;
|
|
1114
|
-
enforceCreatorWhitelist: boolean;
|
|
1115
1038
|
startingAgent: `0x${string}`;
|
|
1116
1039
|
startingAgentActivationLength: bigint;
|
|
1117
1040
|
}>;
|
|
1118
1041
|
managerConfig: () => Promise<{
|
|
1119
1042
|
managerPeriod: bigint;
|
|
1120
1043
|
managerActivationLength: bigint;
|
|
1044
|
+
mustHaveUsdValueOnSwaps: boolean;
|
|
1045
|
+
maxNumSwapsPerPeriod: bigint;
|
|
1046
|
+
maxSlippageOnSwaps: bigint;
|
|
1047
|
+
onlyApprovedYieldOpps: boolean;
|
|
1121
1048
|
}>;
|
|
1122
1049
|
payeeConfig: () => Promise<{
|
|
1123
1050
|
payeePeriod: bigint;
|
|
@@ -1131,9 +1058,7 @@ export type Contract = {
|
|
|
1131
1058
|
defaultExpiryBlocks: bigint;
|
|
1132
1059
|
}>;
|
|
1133
1060
|
assetConfig: (arg0: `0x${string}`) => Promise<{
|
|
1134
|
-
|
|
1135
|
-
decimals: bigint;
|
|
1136
|
-
staleBlocks: bigint;
|
|
1061
|
+
hasConfig: boolean;
|
|
1137
1062
|
txFees: {
|
|
1138
1063
|
swapFee: bigint;
|
|
1139
1064
|
stableSwapFee: bigint;
|
|
@@ -1145,14 +1070,11 @@ export type Contract = {
|
|
|
1145
1070
|
yieldRatio: bigint;
|
|
1146
1071
|
};
|
|
1147
1072
|
yieldConfig: {
|
|
1148
|
-
isYieldAsset: boolean;
|
|
1149
|
-
isRebasing: boolean;
|
|
1150
|
-
underlyingAsset: `0x${string}`;
|
|
1151
1073
|
maxYieldIncrease: bigint;
|
|
1152
1074
|
performanceFee: bigint;
|
|
1153
1075
|
ambassadorBonusRatio: bigint;
|
|
1154
1076
|
bonusRatio: bigint;
|
|
1155
|
-
|
|
1077
|
+
bonusAsset: `0x${string}`;
|
|
1156
1078
|
};
|
|
1157
1079
|
}>;
|
|
1158
1080
|
isStablecoin: (arg0: `0x${string}`) => Promise<boolean>;
|
|
@@ -1167,14 +1089,12 @@ export type Contract = {
|
|
|
1167
1089
|
setUserWalletConfig: (config: {
|
|
1168
1090
|
walletTemplate: `0x${string}`;
|
|
1169
1091
|
configTemplate: `0x${string}`;
|
|
1170
|
-
trialAsset: `0x${string}`;
|
|
1171
|
-
trialAmount: bigint;
|
|
1172
1092
|
numUserWalletsAllowed: bigint;
|
|
1173
1093
|
enforceCreatorWhitelist: boolean;
|
|
1174
1094
|
minKeyActionTimeLock: bigint;
|
|
1175
1095
|
maxKeyActionTimeLock: bigint;
|
|
1176
|
-
defaultStaleBlocks: bigint;
|
|
1177
1096
|
depositRewardsAsset: `0x${string}`;
|
|
1097
|
+
lootClaimCoolOffPeriod: bigint;
|
|
1178
1098
|
txFees: {
|
|
1179
1099
|
swapFee: bigint;
|
|
1180
1100
|
stableSwapFee: bigint;
|
|
@@ -1185,16 +1105,21 @@ export type Contract = {
|
|
|
1185
1105
|
rewardsRatio: bigint;
|
|
1186
1106
|
yieldRatio: bigint;
|
|
1187
1107
|
};
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1108
|
+
yieldConfig: {
|
|
1109
|
+
maxYieldIncrease: bigint;
|
|
1110
|
+
performanceFee: bigint;
|
|
1111
|
+
ambassadorBonusRatio: bigint;
|
|
1112
|
+
bonusRatio: bigint;
|
|
1113
|
+
bonusAsset: `0x${string}`;
|
|
1114
|
+
};
|
|
1194
1115
|
}) => Promise<void>;
|
|
1195
1116
|
setManagerConfig: (config: {
|
|
1196
1117
|
managerPeriod: bigint;
|
|
1197
1118
|
managerActivationLength: bigint;
|
|
1119
|
+
mustHaveUsdValueOnSwaps: boolean;
|
|
1120
|
+
maxNumSwapsPerPeriod: bigint;
|
|
1121
|
+
maxSlippageOnSwaps: bigint;
|
|
1122
|
+
onlyApprovedYieldOpps: boolean;
|
|
1198
1123
|
}) => Promise<void>;
|
|
1199
1124
|
setPayeeConfig: (config: {
|
|
1200
1125
|
payeePeriod: bigint;
|
|
@@ -1208,17 +1133,12 @@ export type Contract = {
|
|
|
1208
1133
|
defaultExpiryBlocks: bigint;
|
|
1209
1134
|
}) => Promise<void>;
|
|
1210
1135
|
setAgentConfig: (config: {
|
|
1211
|
-
agentTemplate: `0x${string}`;
|
|
1212
|
-
numAgentsAllowed: bigint;
|
|
1213
|
-
enforceCreatorWhitelist: boolean;
|
|
1214
1136
|
startingAgent: `0x${string}`;
|
|
1215
1137
|
startingAgentActivationLength: bigint;
|
|
1216
1138
|
}) => Promise<void>;
|
|
1217
1139
|
setStarterAgent: (agent: `0x${string}`) => Promise<void>;
|
|
1218
1140
|
setAssetConfig: (asset: `0x${string}`, config: {
|
|
1219
|
-
|
|
1220
|
-
decimals: bigint;
|
|
1221
|
-
staleBlocks: bigint;
|
|
1141
|
+
hasConfig: boolean;
|
|
1222
1142
|
txFees: {
|
|
1223
1143
|
swapFee: bigint;
|
|
1224
1144
|
stableSwapFee: bigint;
|
|
@@ -1230,14 +1150,11 @@ export type Contract = {
|
|
|
1230
1150
|
yieldRatio: bigint;
|
|
1231
1151
|
};
|
|
1232
1152
|
yieldConfig: {
|
|
1233
|
-
isYieldAsset: boolean;
|
|
1234
|
-
isRebasing: boolean;
|
|
1235
|
-
underlyingAsset: `0x${string}`;
|
|
1236
1153
|
maxYieldIncrease: bigint;
|
|
1237
1154
|
performanceFee: bigint;
|
|
1238
1155
|
ambassadorBonusRatio: bigint;
|
|
1239
1156
|
bonusRatio: bigint;
|
|
1240
|
-
|
|
1157
|
+
bonusAsset: `0x${string}`;
|
|
1241
1158
|
};
|
|
1242
1159
|
}) => Promise<void>;
|
|
1243
1160
|
setIsStablecoin: (asset: `0x${string}`, isStablecoin: boolean) => Promise<void>;
|
|
@@ -1293,14 +1210,13 @@ export type SDK = {
|
|
|
1293
1210
|
canMintUndy: (...args: ExtractArgs<Contract['calls']['canMintUndy']>) => Promise<CallReturn<'canMintUndy'>>;
|
|
1294
1211
|
isPaused: (...args: ExtractArgs<Contract['calls']['isPaused']>) => Promise<CallReturn<'isPaused'>>;
|
|
1295
1212
|
getUserWalletCreationConfig: (...args: ExtractArgs<Contract['calls']['getUserWalletCreationConfig']>) => Promise<CallReturn<'getUserWalletCreationConfig'>>;
|
|
1296
|
-
getLootDistroConfig: (...args: ExtractArgs<Contract['calls']['getLootDistroConfig']>) => Promise<CallReturn<'getLootDistroConfig'>>;
|
|
1297
1213
|
getDepositRewardsAsset: (...args: ExtractArgs<Contract['calls']['getDepositRewardsAsset']>) => Promise<CallReturn<'getDepositRewardsAsset'>>;
|
|
1298
1214
|
getLootClaimCoolOffPeriod: (...args: ExtractArgs<Contract['calls']['getLootClaimCoolOffPeriod']>) => Promise<CallReturn<'getLootClaimCoolOffPeriod'>>;
|
|
1299
|
-
getAgentCreationConfig: (...args: ExtractArgs<Contract['calls']['getAgentCreationConfig']>) => Promise<CallReturn<'getAgentCreationConfig'>>;
|
|
1300
|
-
getProfitCalcConfig: (...args: ExtractArgs<Contract['calls']['getProfitCalcConfig']>) => Promise<CallReturn<'getProfitCalcConfig'>>;
|
|
1301
|
-
getAssetUsdValueConfig: (...args: ExtractArgs<Contract['calls']['getAssetUsdValueConfig']>) => Promise<CallReturn<'getAssetUsdValueConfig'>>;
|
|
1302
1215
|
getSwapFee: (...args: ExtractArgs<Contract['calls']['getSwapFee']>) => Promise<CallReturn<'getSwapFee'>>;
|
|
1303
1216
|
getRewardsFee: (...args: ExtractArgs<Contract['calls']['getRewardsFee']>) => Promise<CallReturn<'getRewardsFee'>>;
|
|
1217
|
+
getProfitCalcConfig: (...args: ExtractArgs<Contract['calls']['getProfitCalcConfig']>) => Promise<CallReturn<'getProfitCalcConfig'>>;
|
|
1218
|
+
getAssetUsdValueConfig: (...args: ExtractArgs<Contract['calls']['getAssetUsdValueConfig']>) => Promise<CallReturn<'getAssetUsdValueConfig'>>;
|
|
1219
|
+
getLootDistroConfig: (...args: ExtractArgs<Contract['calls']['getLootDistroConfig']>) => Promise<CallReturn<'getLootDistroConfig'>>;
|
|
1304
1220
|
userWalletConfig: (...args: ExtractArgs<Contract['calls']['userWalletConfig']>) => Promise<CallReturn<'userWalletConfig'>>;
|
|
1305
1221
|
agentConfig: (...args: ExtractArgs<Contract['calls']['agentConfig']>) => Promise<CallReturn<'agentConfig'>>;
|
|
1306
1222
|
managerConfig: (...args: ExtractArgs<Contract['calls']['managerConfig']>) => Promise<CallReturn<'managerConfig'>>;
|