@gearbox-protocol/sdk 14.12.0-next.75 → 14.12.0-next.77
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/cjs/model/curators.js +1 -0
- package/dist/cjs/model/curators.schema.js +38 -0
- package/dist/cjs/model/index.js +4 -1
- package/dist/cjs/model/opportunities.schema.js +3 -1
- package/dist/cjs/model/primitives.schema.js +0 -9
- package/dist/cjs/sdk/accounts/CreditAccountsServiceV310.js +13 -140
- package/dist/cjs/sdk/accounts/bots/AccountBotsService.js +132 -0
- package/dist/cjs/sdk/accounts/bots/PeripheryCompressorV310Contract.js +31 -0
- package/dist/cjs/sdk/accounts/bots/abi.js +19 -0
- package/dist/cjs/sdk/accounts/bots/index.js +6 -0
- package/dist/cjs/sdk/accounts/bots/types.js +1 -0
- package/dist/cjs/sdk/accounts/index.js +5 -0
- package/dist/cjs/sdk/chain/chains.js +1 -1
- package/dist/cjs/sdk/index.js +4 -0
- package/dist/cjs/sdk/market/MarketConfiguratorContract.js +2 -14
- package/dist/cjs/sdk/market/MarketSuite.js +1 -0
- package/dist/cjs/sdk/market/ZapperRegister.js +1 -1
- package/dist/cjs/sdk/market/credit/CreditSuite.js +31 -0
- package/dist/esm/dev/AccountOpener.js +1 -1
- package/dist/esm/dev/withdrawalUtils.js +1 -1
- package/dist/esm/model/curators.js +1 -0
- package/dist/esm/model/curators.schema.js +36 -0
- package/dist/esm/model/index.js +4 -2
- package/dist/esm/model/opportunities.schema.js +3 -1
- package/dist/esm/model/primitives.schema.js +1 -9
- package/dist/esm/plugins/adapters/contracts/ERC4626AdapterContract.js +1 -1
- package/dist/esm/preview/simulate/simulatePoolOperation.js +1 -1
- package/dist/esm/preview/trace/extractTransfers.js +1 -1
- package/dist/esm/sdk/accounts/CreditAccountsServiceV310.js +17 -144
- package/dist/esm/sdk/accounts/bots/AccountBotsService.js +131 -0
- package/dist/esm/sdk/accounts/bots/PeripheryCompressorV310Contract.js +31 -0
- package/dist/esm/sdk/accounts/bots/abi.js +18 -0
- package/dist/esm/sdk/accounts/bots/index.js +4 -0
- package/dist/esm/sdk/accounts/bots/types.js +1 -0
- package/dist/esm/sdk/accounts/index.js +4 -1
- package/dist/esm/sdk/accounts/liquidations/LiquidationsService.js +1 -1
- package/dist/esm/sdk/accounts/withdrawal-compressor/RedemptionLoggerV310Contract.js +1 -1
- package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js +1 -1
- package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js +1 -1
- package/dist/esm/sdk/accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js +1 -1
- package/dist/esm/sdk/base/TokensMeta.js +2 -2
- package/dist/esm/sdk/chain/chains.js +1 -1
- package/dist/esm/sdk/chain/detectNetwork.js +1 -1
- package/dist/esm/sdk/core/createAddressProvider.js +1 -1
- package/dist/esm/sdk/index.js +3 -1
- package/dist/esm/sdk/market/MarketConfiguratorContract.js +2 -14
- package/dist/esm/sdk/market/MarketSuite.js +1 -0
- package/dist/esm/sdk/market/ZapperRegister.js +1 -1
- package/dist/esm/sdk/market/credit/CreditFacadeV310BaseContract.js +1 -1
- package/dist/esm/sdk/market/credit/CreditSuite.js +31 -0
- package/dist/esm/sdk/market/pool/PoolV310Contract.js +1 -1
- package/dist/esm/sdk/market/zapper/IETHZapperContract.js +1 -1
- package/dist/esm/sdk/market/zapper/ZapperContract.js +1 -1
- package/dist/esm/sdk/pools/PoolService.js +1 -1
- package/dist/esm/sdk/utils/viem/simulateWithPriceUpdates.js +1 -1
- package/dist/types/model/curators.d.ts +33 -0
- package/dist/types/model/curators.schema.d.ts +50 -0
- package/dist/types/model/index.d.ts +5 -3
- package/dist/types/model/opportunities.d.ts +6 -1
- package/dist/types/model/opportunities.schema.d.ts +160 -9
- package/dist/types/model/primitives.d.ts +1 -25
- package/dist/types/model/primitives.schema.d.ts +1 -9
- package/dist/types/new-sdk/AbstractNamespace.d.ts +2 -2
- package/dist/types/new-sdk/opportunities/OpportunitiesNamespace.d.ts +1 -1
- package/dist/types/new-sdk/positions/PositionsNamespace.d.ts +1 -1
- package/dist/types/sdk/accounts/CreditAccountsServiceV310.d.ts +9 -16
- package/dist/types/sdk/accounts/bots/AccountBotsService.d.ts +38 -0
- package/dist/types/sdk/accounts/bots/PeripheryCompressorV310Contract.d.ts +236 -0
- package/dist/types/sdk/accounts/bots/abi.d.ts +18 -0
- package/dist/types/sdk/accounts/bots/index.d.ts +4 -0
- package/dist/types/sdk/accounts/bots/types.d.ts +143 -0
- package/dist/types/sdk/accounts/credit-account-compressor/CreditAccountCompressor.d.ts +1 -1
- package/dist/types/sdk/accounts/index.d.ts +6 -2
- package/dist/types/sdk/accounts/liquidations/MultichainLiquidationsService.d.ts +2 -2
- package/dist/types/sdk/accounts/liquidations/types.d.ts +1 -1
- package/dist/types/sdk/accounts/types.d.ts +10 -84
- package/dist/types/sdk/base/TokensMeta.d.ts +1 -1
- package/dist/types/sdk/chain/chains.d.ts +7 -11
- package/dist/types/sdk/chain/index.d.ts +2 -2
- package/dist/types/sdk/index.d.ts +6 -3
- package/dist/types/sdk/market/MarketConfiguratorContract.d.ts +3 -8
- package/dist/types/sdk/market/MarketSuite.d.ts +3 -2
- package/dist/types/sdk/market/credit/CreditManagerV310Contract.d.ts +1 -1
- package/dist/types/sdk/market/credit/CreditSuite.d.ts +26 -1
- package/dist/types/sdk/market/credit/types.d.ts +1 -1
- package/dist/types/sdk/market/oracle/PriceOracleBaseContract.d.ts +2 -2
- package/dist/types/sdk/market/oracle/types.d.ts +2 -2
- package/dist/types/sdk/market/pool/LinearInterestRateModelContract.d.ts +1 -1
- package/dist/types/sdk/market/pool/PoolQuotaKeeperV310Contract.d.ts +1 -1
- package/dist/types/sdk/market/pool/PoolSuite.d.ts +1 -1
- package/dist/types/sdk/market/pool/PoolV310Contract.d.ts +1 -1
- package/dist/types/sdk/market/pool/types.d.ts +1 -1
- package/dist/types/sdk/market/pricefeeds/AbstractPriceFeed.d.ts +1 -1
- package/dist/types/sdk/market/pricefeeds/types.d.ts +1 -1
- package/dist/types/sdk/opportunities/MultichainOpportunitiesService.d.ts +2 -2
- package/dist/types/sdk/pools/types.d.ts +1 -1
- package/dist/types/sdk/positions/MultichainPositionsService.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ClaimableWithdrawal, DelayedIntent, PendingWithdrawal, RequestableWithdrawal } from "./withdrawal-compressor/types.js";
|
|
2
|
+
import { Asset, CreditAccountData, CreditAccountTokensSlice } from "../base/types.js";
|
|
1
3
|
import { StrategyPosition } from "../../model/positions.js";
|
|
2
4
|
import "../../model/index.js";
|
|
3
|
-
import { ClaimableWithdrawal, DelayedIntent, PendingWithdrawal, RequestableWithdrawal } from "./withdrawal-compressor/types.js";
|
|
4
|
-
import { Asset, ConnectedBotData, CreditAccountData, CreditAccountTokensSlice } from "../base/types.js";
|
|
5
5
|
import { RWAOpenAccountRequirements, RWAOperationArgs } from "../market/rwa/types.js";
|
|
6
6
|
import "../market/rwa/index.js";
|
|
7
7
|
import { RouterCASlice, RouterCloseResult } from "../router/types.js";
|
|
@@ -18,6 +18,8 @@ import { OnchainSDK } from "../OnchainSDK.js";
|
|
|
18
18
|
import { Construct } from "../base/Construct.js";
|
|
19
19
|
import "../types/index.js";
|
|
20
20
|
import "../base/index.js";
|
|
21
|
+
import { AccountBotsService } from "./bots/AccountBotsService.js";
|
|
22
|
+
import "./bots/index.js";
|
|
21
23
|
import { Address, Hex } from "viem";
|
|
22
24
|
//#region src/sdk/accounts/types.d.ts
|
|
23
25
|
/**
|
|
@@ -123,19 +125,6 @@ interface PrepareUpdateQuotasProps {
|
|
|
123
125
|
*/
|
|
124
126
|
minQuota: Array<Asset>;
|
|
125
127
|
}
|
|
126
|
-
/**
|
|
127
|
-
* Credit account and credit manager address pair, used for batch queries such as connected bot lookups.
|
|
128
|
-
**/
|
|
129
|
-
type AccountToCheck = {
|
|
130
|
-
/**
|
|
131
|
-
* Address of the credit account.
|
|
132
|
-
**/
|
|
133
|
-
creditAccount: Address;
|
|
134
|
-
/**
|
|
135
|
-
* Address of the credit manager that manages this account.
|
|
136
|
-
**/
|
|
137
|
-
creditManager: Address;
|
|
138
|
-
};
|
|
139
128
|
interface PreviewDelayedWithdrawalProps {
|
|
140
129
|
/**
|
|
141
130
|
* Amount of source token (ex. cp0xlrt)
|
|
@@ -396,56 +385,6 @@ interface GetOpenAccountRequirementsProps {
|
|
|
396
385
|
*/
|
|
397
386
|
tokenOutAddress: Address;
|
|
398
387
|
}
|
|
399
|
-
interface CMSlice {
|
|
400
|
-
creditManager: Address;
|
|
401
|
-
creditFacade: Address;
|
|
402
|
-
type: "creditManager";
|
|
403
|
-
}
|
|
404
|
-
interface SetBotProps {
|
|
405
|
-
/**
|
|
406
|
-
* Address of a bot that is being updated
|
|
407
|
-
*/
|
|
408
|
-
botAddress: Address;
|
|
409
|
-
/**
|
|
410
|
-
* Permissions to set for the bot
|
|
411
|
-
*/
|
|
412
|
-
permissions: bigint | null;
|
|
413
|
-
/**
|
|
414
|
-
* Minimal credit account data {@link RouterCASlice} on which operation is performed; if omitted, credit manager data is used
|
|
415
|
-
* Minimal credit manager data {@link CMSlice} on which operation is performed; used only if credit account is omitted
|
|
416
|
-
* At least one of credit account or credit manager must be provided
|
|
417
|
-
*/
|
|
418
|
-
targetContract: (RouterCASlice & {
|
|
419
|
-
type: "creditAccount";
|
|
420
|
-
}) | CMSlice;
|
|
421
|
-
}
|
|
422
|
-
/**
|
|
423
|
-
* Multicall result of querying connected bots across multiple credit accounts.
|
|
424
|
-
**/
|
|
425
|
-
type GetConnectedBotsResult = Array<{
|
|
426
|
-
error?: undefined;
|
|
427
|
-
result: readonly ConnectedBotData[];
|
|
428
|
-
status: "success";
|
|
429
|
-
} | {
|
|
430
|
-
error: Error;
|
|
431
|
-
result?: undefined;
|
|
432
|
-
status: "failure";
|
|
433
|
-
}>;
|
|
434
|
-
/**
|
|
435
|
-
* Result of querying a migration bot's status across credit accounts, or `undefined` if no migration bot was provided.
|
|
436
|
-
**/
|
|
437
|
-
type GetConnectedMigrationBotsResult = {
|
|
438
|
-
result: ({
|
|
439
|
-
error: Error;
|
|
440
|
-
result?: undefined;
|
|
441
|
-
status: "failure";
|
|
442
|
-
} | {
|
|
443
|
-
error?: undefined;
|
|
444
|
-
result: readonly [bigint, boolean, boolean] | readonly [bigint, boolean];
|
|
445
|
-
status: "success";
|
|
446
|
-
})[];
|
|
447
|
-
botAddress: Address;
|
|
448
|
-
} | undefined;
|
|
449
388
|
/**
|
|
450
389
|
* Options to get approval address for collateral token
|
|
451
390
|
*/
|
|
@@ -502,6 +441,11 @@ type AssembleCaOperationsProps = {
|
|
|
502
441
|
};
|
|
503
442
|
interface ICreditAccountsService extends Construct {
|
|
504
443
|
sdk: OnchainSDK;
|
|
444
|
+
/**
|
|
445
|
+
* Bots connected to credit accounts: which ones are active, with which
|
|
446
|
+
* permissions, and how to connect or disconnect them.
|
|
447
|
+
*/
|
|
448
|
+
readonly bots: AccountBotsService;
|
|
505
449
|
/**
|
|
506
450
|
* Returns single credit account data with investor resolved, or undefined
|
|
507
451
|
* if the account is not found.
|
|
@@ -546,24 +490,6 @@ interface ICreditAccountsService extends Construct {
|
|
|
546
490
|
* @returns {Array<Rewards>} list of {@link Rewards} that can be claimed
|
|
547
491
|
*/
|
|
548
492
|
getRewards(creditAccount: Address): Promise<Array<Rewards>>;
|
|
549
|
-
/**
|
|
550
|
-
* Method to get all connected bots for credit account
|
|
551
|
-
* @param {Array<AccountToCheck>} accountsToCheck - list of credit accounts
|
|
552
|
-
* @param {Address | undefined} legacyMigrationBot - address of the bot to check connected bots on
|
|
553
|
-
* and their credit managers to check connected bots on
|
|
554
|
-
* @returns call result of getConnectedBots for each credit account
|
|
555
|
-
*/
|
|
556
|
-
getConnectedBots(accountsToCheck: Array<AccountToCheck>, legacyMigrationBot: Address | undefined, additionalBots: Array<Address>): Promise<{
|
|
557
|
-
legacy: GetConnectedBotsResult;
|
|
558
|
-
legacyMigration: GetConnectedMigrationBotsResult;
|
|
559
|
-
additionalBots: Array<Omit<NonNullable<GetConnectedMigrationBotsResult>, "botAddress">>;
|
|
560
|
-
}>;
|
|
561
|
-
/**
|
|
562
|
-
* Connects/disables a bot and updates prices
|
|
563
|
-
* @param props - {@link SetBotProps}
|
|
564
|
-
* @return All necessary data to execute the transaction (call, credit facade)
|
|
565
|
-
*/
|
|
566
|
-
setBot: (props: SetBotProps) => Promise<CreditAccountOperationResult | CreditManagerOperationResult>;
|
|
567
493
|
/**
|
|
568
494
|
* Generates transaction to liquidate credit account
|
|
569
495
|
* @param props - {@link FullyLiquidateProps}
|
|
@@ -811,4 +737,4 @@ interface ICreditAccountsService extends Construct {
|
|
|
811
737
|
claimFarmRewards(props: ClaimFarmRewardsProps): Promise<RawTx>;
|
|
812
738
|
}
|
|
813
739
|
//#endregion
|
|
814
|
-
export {
|
|
740
|
+
export { AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, ClaimFarmRewardsProps, CloseCreditAccountResult, CreditAccountOperationResult, CreditManagerOperationResult, EncodableCreditAccountOperation, FullyLiquidateProps, FullyLiquidateResult, GetApprovalAddressProps, GetOpenAccountRequirementsProps, GetPendingWithdrawalsProps, GetPendingWithdrawalsResult, ICreditAccountsService, OpenCAProps, PartiallyLiquidateProps, PermitResult, PrepareUpdateQuotasProps, PreviewDelayedWithdrawalProps, Rewards };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Token } from "../../model/primitives.js";
|
|
2
1
|
import { ILogger } from "../types/logger.js";
|
|
2
|
+
import { Token } from "../../model/primitives.js";
|
|
3
3
|
import { AddressMap } from "../utils/AddressMap.js";
|
|
4
4
|
import { Asset } from "./types.js";
|
|
5
5
|
import "../utils/index.js";
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
+
import { CuratorName } from "../../model/curators.js";
|
|
1
2
|
import { AssetType } from "../../model/primitives.js";
|
|
2
3
|
import { Address, Chain } from "viem";
|
|
3
4
|
import { z } from "zod/v4";
|
|
4
5
|
//#region src/sdk/chain/chains.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Known curator names that manage Gearbox markets.
|
|
7
|
-
*
|
|
8
|
-
**/
|
|
9
|
-
type Curator = "Chaos Labs" | "K3" | "cp0x" | "Re7" | "Invariant Group" | "Tulipa" | "M11 Credit" | "KPK" | "Hyperithm" | "UltraYield" | "TelosC" | "Gami Labs" | "Securitize" | "Testnet Curator";
|
|
10
6
|
/**
|
|
11
7
|
* One strategy of the sunset list, identified the same way a strategy
|
|
12
8
|
* opportunity is: the credit manager plus the collateral it is built around.
|
|
@@ -29,7 +25,7 @@ interface GearboxChain extends Chain {
|
|
|
29
25
|
/**
|
|
30
26
|
* Market configurator addresses operated by known curators on this chain.
|
|
31
27
|
**/
|
|
32
|
-
defaultMarketConfigurators: Record<Address,
|
|
28
|
+
defaultMarketConfigurators: Record<Address, CuratorName>;
|
|
33
29
|
/**
|
|
34
30
|
* Known RWA factory addresses on this chain
|
|
35
31
|
*/
|
|
@@ -37,7 +33,7 @@ interface GearboxChain extends Chain {
|
|
|
37
33
|
/**
|
|
38
34
|
* Market configurators used in test/staging environments.
|
|
39
35
|
**/
|
|
40
|
-
testMarketConfigurators?: Record<Address,
|
|
36
|
+
testMarketConfigurators?: Record<Address, CuratorName>;
|
|
41
37
|
/**
|
|
42
38
|
* Denomination class of the market underlyings on this chain.
|
|
43
39
|
*
|
|
@@ -145,7 +141,7 @@ declare function isSupportedNetwork(chainId: number | undefined): chainId is num
|
|
|
145
141
|
**/
|
|
146
142
|
declare function isPublicNetwork(networkOrChainId: NetworkType | number | bigint): boolean;
|
|
147
143
|
/**
|
|
148
|
-
* Looks up the {@link
|
|
144
|
+
* Looks up the {@link CuratorName} name for a market configurator address.
|
|
149
145
|
*
|
|
150
146
|
* Searches default and test market configurators across all chains, or
|
|
151
147
|
* a single network if provided.
|
|
@@ -154,7 +150,7 @@ declare function isPublicNetwork(networkOrChainId: NetworkType | number | bigint
|
|
|
154
150
|
* @param network - Optional network to restrict the search to.
|
|
155
151
|
* @returns The curator name, or `undefined` if not found.
|
|
156
152
|
**/
|
|
157
|
-
declare function getCuratorName(marketConfigurator: Address, network?: NetworkType):
|
|
153
|
+
declare function getCuratorName(marketConfigurator: Address, network?: NetworkType): CuratorName | undefined;
|
|
158
154
|
/**
|
|
159
155
|
* Finds the market configurator address for a given curator on a network.
|
|
160
156
|
*
|
|
@@ -163,7 +159,7 @@ declare function getCuratorName(marketConfigurator: Address, network?: NetworkTy
|
|
|
163
159
|
* @returns The market configurator address, or `undefined` if the curator
|
|
164
160
|
* has no configurator on this network.
|
|
165
161
|
**/
|
|
166
|
-
declare function findCuratorMarketConfigurator(curator:
|
|
162
|
+
declare function findCuratorMarketConfigurator(curator: CuratorName, network: NetworkType): Address | undefined;
|
|
167
163
|
/**
|
|
168
164
|
* Looks up the {@link AssetType} of a token in hardcoded classifier.
|
|
169
165
|
* Not all tokens are classified, only underlyings, so the default answer is `undefined`.
|
|
@@ -199,4 +195,4 @@ declare function isSunsetPool(pool: Address, network: NetworkType): boolean;
|
|
|
199
195
|
**/
|
|
200
196
|
declare function isSunsetStrategy(creditManager: Address, collateral: Address, network: NetworkType): boolean;
|
|
201
197
|
//#endregion
|
|
202
|
-
export {
|
|
198
|
+
export { GearboxChain, NetworkType, SUPPORTED_NETWORKS, SunsetStrategy, chains, findCuratorMarketConfigurator, getAssetType, getChain, getCuratorName, getNetworkType, isPublicNetwork, isRWAToken, isSunsetPool, isSunsetStrategy, isSupportedNetwork };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GearboxChain, NetworkType, SUPPORTED_NETWORKS, SunsetStrategy, chains, findCuratorMarketConfigurator, getAssetType, getChain, getCuratorName, getNetworkType, isPublicNetwork, isRWAToken, isSunsetPool, isSunsetStrategy, isSupportedNetwork } from "./chains.js";
|
|
2
2
|
import { detectNetwork } from "./detectNetwork.js";
|
|
3
|
-
export {
|
|
3
|
+
export { GearboxChain, NetworkType, SUPPORTED_NETWORKS, SunsetStrategy, chains, detectNetwork, findCuratorMarketConfigurator, getAssetType, getChain, getCuratorName, getNetworkType, isPublicNetwork, isRWAToken, isSunsetPool, isSunsetStrategy, isSupportedNetwork };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ILogger, LogFn } from "./types/logger.js";
|
|
2
|
-
import {
|
|
2
|
+
import { GearboxChain, NetworkType, SUPPORTED_NETWORKS, SunsetStrategy, chains, findCuratorMarketConfigurator, getAssetType, getChain, getCuratorName, getNetworkType, isPublicNetwork, isRWAToken, isSunsetPool, isSunsetStrategy, isSupportedNetwork } from "./chain/chains.js";
|
|
3
3
|
import { MultichainNetworkMeta, MultichainNetworkProps, MultichainNetworksProps, MultichainResult, WithMultichain } from "./types/multichain.js";
|
|
4
4
|
import { ClaimableWithdrawal, CurrentWithdrawals, DelayedAddCollateralIntent, DelayedCloseAccountIntent, DelayedDecreaseLeverageIntent, DelayedDepositAndIncreaseLeverageIntent, DelayedDepositIntent, DelayedIncreaseLeverageIntent, DelayedIntent, DelayedIntentExtended, DelayedWithdrawCollateralIntent, GetWithdrawalRequestResultProps, IRedemptionLoggerContract, IWithdrawalCompressorContract, PendingWithdrawal, RedemptionLog, RequestableWithdrawal, WithdrawableAsset, WithdrawalOutput, WithdrawalStatus, WithdrawalsState, toWithdrawalStatus } from "./accounts/withdrawal-compressor/types.js";
|
|
5
5
|
import { detectNetwork } from "./chain/detectNetwork.js";
|
|
@@ -63,7 +63,7 @@ import { RedemptionLoggerV310Contract } from "./accounts/withdrawal-compressor/R
|
|
|
63
63
|
import { WithdrawalCompressorV310Contract } from "./accounts/withdrawal-compressor/WithdrawalCompressorV310Contract.js";
|
|
64
64
|
import { WithdrawalCompressorV311Contract } from "./accounts/withdrawal-compressor/WithdrawalCompressorV311Contract.js";
|
|
65
65
|
import { WithdrawalCompressorV313Contract } from "./accounts/withdrawal-compressor/WithdrawalCompressorV313Contract.js";
|
|
66
|
-
import {
|
|
66
|
+
import { AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, ClaimFarmRewardsProps, CloseCreditAccountResult, CreditAccountOperationResult, CreditManagerOperationResult, EncodableCreditAccountOperation, FullyLiquidateProps, FullyLiquidateResult, GetApprovalAddressProps, GetOpenAccountRequirementsProps, GetPendingWithdrawalsProps, GetPendingWithdrawalsResult, ICreditAccountsService, OpenCAProps, PartiallyLiquidateProps, PermitResult, PrepareUpdateQuotasProps, PreviewDelayedWithdrawalProps, Rewards } from "./accounts/types.js";
|
|
67
67
|
import { AddressProviderV3StateHuman, AliasLossPolicyStateHuman, AssetPriceFeedStateHuman, BalancerWeightedPriceFeedStateHuman, BaseContractStateHuman, BasePriceFeedStateHuman, BotListStateHuman, BoundedOracleStateHuman, ConstantOracleStateHuman, CoreStateHuman, CreditConfiguratorStateHuman, CreditFacadeStateHuman, CreditManagerDebtParamsHuman, CreditManagerStateHuman, CreditSuiteStateHuman, GaugeParamsHuman, GaugeStateHuman, GearStakingV3StateHuman, GearboxStateHuman, InterestRateModelStateHuman, LPPriceFeedStateHuman, LinearInterestRateModelStateHuman, LossPolicyStateHuman, MarketStateHuman, MultichainStateHuman, PoolQuotaKeeperStateHuman, PoolStateHuman, PoolSuiteStateHuman, PriceFeedStateHuman, PriceOracleStateHuman, QuotaParamsHuman, RateKeeperStateHuman, RedstonePriceFeedStateHuman, TumblerStateHuman, ZapperStateHuman } from "./types/state-human.js";
|
|
68
68
|
import { IPriceFeedContract, IUpdatablePriceFeedContract, PriceFeedContractType, PriceFeedUsageType, PriceUpdate, UpdatePriceFeedsResult } from "./market/pricefeeds/types.js";
|
|
69
69
|
import { PriceFeedRef } from "./market/pricefeeds/PriceFeedRef.js";
|
|
@@ -158,6 +158,9 @@ import { ChainQueryProps, MultichainConstruct } from "./base/MultichainConstruct
|
|
|
158
158
|
import { PlaceholderContract } from "./base/PlaceholderContract.js";
|
|
159
159
|
import { SDKConstruct } from "./base/SDKConstruct.js";
|
|
160
160
|
import "./base/index.js";
|
|
161
|
+
import { AccountToCheck, BotStatusCall, BotsDirectResponse, CMSlice, ConnectedBotsCall, ConnectedBotsPerAccount, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, MulticallWithFailure, SetBotProps, SetBotResult } from "./accounts/bots/types.js";
|
|
162
|
+
import { AccountBotsService } from "./accounts/bots/AccountBotsService.js";
|
|
163
|
+
import { PeripheryCompressorV310Contract } from "./accounts/bots/PeripheryCompressorV310Contract.js";
|
|
161
164
|
import { CreditAccountsServiceV310 } from "./accounts/CreditAccountsServiceV310.js";
|
|
162
165
|
import { CreditAccountSlice, IntentPreviewResult } from "./accounts/intents/types.js";
|
|
163
166
|
import { primaryInstantOutput } from "./accounts/intents/operations/claim-delayed/index.js";
|
|
@@ -168,4 +171,4 @@ import { LiquidationsService } from "./accounts/liquidations/LiquidationsService
|
|
|
168
171
|
import { MultichainLiquidationsService } from "./accounts/liquidations/MultichainLiquidationsService.js";
|
|
169
172
|
import "./accounts/index.js";
|
|
170
173
|
import { SDKOptions, attachOptionsSchema, onchainSDKOptionsSchema } from "./options.js";
|
|
171
|
-
export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_RWA_COMPRESSOR, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AccountToCheck, AdapterData, AddLiquidityProps, AddressMap, AddressProviderAddresses, AddressProviderState, AddressProviderV310Contract, type AddressProviderV3StateHuman, AddressSet, type AliasLossPolicyStateHuman, AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, AssertAssignable, Asset, type AssetPriceFeedStateHuman, AssetsMap, AttachOptions, BLOCKS_PER_WEEK_BY_NETWORK, BalanceDelta, BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, BaseContractArgs, type BaseContractStateHuman, BaseParams, BasePlugin, type BasePriceFeedStateHuman, BaseState, BigIntMath, type BotListStateHuman, BotPermissions, type BoundedOracleStateHuman, BoundedPriceFeedContract, BuildLiquidationTxProps, BuildLiquidationTxPropsBase, ChainConfig, ChainContractsRegister, ChainNotConfiguredError, ChainQueryProps, ClaimFarmRewardsProps, ClaimableWithdrawal, ClientOptions, CloseCreditAccountResult, ClosePathBalances, CompositePriceFeedContract, ConnectedBotData, type ConstantOracleStateHuman, Construct, ConstructOptions, type ContractMethod, ContractOrInterface, ContractParseError, ContractParseErrorOptions, type CoreStateHuman, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountData, CreditAccountDataCall, CreditAccountDataPayload, CreditAccountFilter, CreditAccountOperationResult, CreditAccountOperationsService, CreditAccountReadOptions, type CreditAccountSlice, CreditAccountTokenQuota, CreditAccountTokensSlice, CreditAccountsCall, CreditAccountsQuery, CreditAccountsReadOptions, CreditAccountsServiceV310, CreditAccountsTarget, CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV310Contract, CreditFacadeState, type CreditFacadeStateHuman, type abi as CreditFacadeV310Abi, abi as creditFacadeV310Abi, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerDebtParams, type CreditManagerDebtParamsHuman, CreditManagerFilter, CreditManagerOperationResult, CreditManagerState, type CreditManagerStateHuman, CreditManagerV310Contract, CreditSuite, CreditSuiteState, type CreditSuiteStateHuman, Curator, CurrentWithdrawals, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DStokenData, DUST_THRESHOLD, DelayedAddCollateralIntent, DelayedCloseAccountIntent, DelayedDecreaseLeverageIntent, DelayedDepositAndIncreaseLeverageIntent, DelayedDepositIntent, DelayedIncreaseLeverageIntent, DelayedIntent, DelayedIntentExtended, DelayedWithdrawCollateralIntent, DelegatedMulticall, DepositMetadata, EncodableCreditAccountOperation, Erc4626PriceFeedContract, EstimateRawTxGasParameters, EtherscanURLParam, ExternalPriceFeedContract, type FetchPythPayloadsOptions, type FetchRedstonePayloadsOptions, FilterDustUSDOptions, FindBestClosePathProps, FindClaimAllRewardsProps, FindManyToOnePathProps, FindOneTokenPathProps, FindOpenStrategyPathProps, FormatBNOptions, FullyLiquidateProps, FullyLiquidateResult, GaugeContract, GaugeData, GaugeParams, type GaugeParamsHuman, type GaugeStateHuman, type GearStakingV3StateHuman, GearboxChain, type GearboxState, type GearboxStateHuman, GetApprovalAddressProps, GetConnectedBotsResult, GetConnectedMigrationBotsResult, GetCreditAccountsArgs, GetCreditAccountsOptions, GetLiquidatableAccountsProps, GetLiquidatableAccountsPropsBase, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, GetOpenAccountRequirementsProps, GetPendingWithdrawalsProps, GetPendingWithdrawalsResult, GetWithdrawalRequestResultProps, HydrateOptions, IAdapterContract, IAddressProviderContract, IBaseContract, ICreditAccountsService, ICreditConfiguratorContract, ICreditFacadeContract, ICreditManagerContract, IERC20ZapperContract, IETHZapperContract, IInterestRateModelContract, type ILogger, IOnchainSDKPlugin, IOnchainSDKPluginConstructor, IPluginState, IPoolContract, IPoolsService, IPriceFeedContract, IPriceOracleContract, type IPriceUpdateTx, IRWAFactory, IRateKeeperContract, IRedemptionLoggerContract, IRouterContract, IUpdatablePriceFeedContract, IWithdrawalCompressorContract, IZapperContract, type IntentPreviewResult, type InterestRateModelStateHuman, InterestRateModelType, InvalidDelayedIntentError, IsDustOptions, LEVERAGE_DECIMALS, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LPMonopolizedPoolMeta, type LPPriceFeedStateHuman, LatestUpdate, LinearInterestRateModelContract, type LinearInterestRateModelStateHuman, LiquidationFees, LiquidationsService, ListPoolPositionsProps, ListPositionsProps, ListStrategyPositionsProps, LoadRWALiquidatorsProps, type LogFn, type LossPolicyStateHuman, MAX_INT, MAX_UINT16, MAX_UINT256, MIN_INT96, MULTICALL_ADDRESS, MarketData, MarketFilter, MarketRegister, MarketRegistryState, MarketRegistryStateHuman, type MarketStateHuman, MarketSuite, MarketType, MellowLRTPriceFeedContract, Methods, MidasLiquidatorContract, MissingSerializedParamsError, type MultiCall, MultichainAttachOptions, MultichainConstruct, MultichainHydrateOptions, MultichainLiquidationsService, type MultichainNetworkMeta, type MultichainNetworkProps, type MultichainNetworksProps, MultichainOpportunitiesService, MultichainPositionsService, type MultichainResult, MultichainSDK, MultichainSDKOptions, type MultichainState, type MultichainStateHuman, MultichainSyncStateOptions, NATIVE_ADDRESS, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, OnchainRequestableWithdrawal, OnchainSDK, OnchainSDKOptions, OpenCAProps, OpenStrategyResult, OpportunitiesService, OptimalRepaidAmountProps, PARTIAL_LIQUIDATION_BUFFER_BPS, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, ParsedCall, ParsedCallArgs, ParsedCallV2, ParsedZapperDeposit, ParsedZapperOperation, ParsedZapperRedeem, PartialLiquidationParams, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PartialRecord, PartiallyLiquidateProps, PendingWithdrawal, PendleTWAPPTPriceFeed, PeripheryContract, PermitResult, PhantomTokenContractType, PhantomTokenMeta, PickSomeRequired, PlaceholderAdapterContract, PlaceholderAdapterContractOptions, PlaceholderContract, PluginFactoriesMap, PluginFactory, PluginState, PluginStateVersionError, PluginStatesMap, PluginsMap, PoolQuotaKeeperContract, type PoolQuotaKeeperStateHuman, PoolService, PoolServiceCall, PoolServiceCallResult, PoolState, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, PoolV310Contract, PositionsService, PrepareUpdateQuotasProps, PreviewDelayedWithdrawalProps, PriceFeedAnswer, PriceFeedConstructorArgs, PriceFeedContractType, PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, PriceFeedRegisterHooks, PriceFeedRegisterOptions, type PriceFeedStateHuman, PriceFeedTreeNode, PriceFeedUsageType, PriceFeedsForAccountOptions, PriceFeedsForTokensOptions, PriceOracleData, type PriceOracleStateHuman, PriceOracleV310Contract, PriceUpdate, PythPriceFeed, QuotaKeeperState, type QuotaParamsHuman, QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWACompressorCall, RWACompressorInvestorData, RWACompressorResponse, RWADefaultTokenMeta, RWAFactoryData, RWAFactoryStateHuman, RWAFactoryType, RWAInvestorData, RWALiquidatorInfo, RWAMissingOpenAccountRequirements, RWAOnDemandLPMeta, RWAOnDemandLPMonopolizedMeta, RWAOnDemandLpContractType, RWAOnDemandTokenMeta, RWAOpenAccountRequirements, RWAOperationArgs, RWARegistry, RWAState, RWAStateHuman, RWATokenMeta, RWAUnderlyingContractType, RWAUnderlyingData, RWA_FACTORY_SECURITIZE, RWA_FACTORY_TYPES, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RampEvent, RateKeeperState, type RateKeeperStateHuman, RateKeeperType, type RawTx, RedemptionLog, RedemptionLoggerV310Contract, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, RelaxedBaseParams, RemoveLiquidityProps, RequestableWithdrawal, RetryOptions, RewardInfo, Rewards, RouterCASlice, RouterCMSlice, RouterCloseResult, RouterResult, RouterRewardsResult, RouterV310Contract, SDKConstruct, SDKOptions, SECONDS_PER_YEAR, SECURITIZE_REGISTER_VAULT_TYPES, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeCreditAccountData, SecuritizeInvestorData, SecuritizeLiquidatorContract, SecuritizeMissingOpenAccountRequirements, SecuritizeOpenAccountRequirements, SecuritizeOperationArgs, SecuritizeRWAFactory, SecuritizeRWAFactoryStateHuman, SecuritizeRegisterMessage, SecuritizeRegisterVaultMessage, SecuritizeSignature, SendRawTxParameters, SetBotProps, SimpleTokenMeta, SimulateCallOptions, SimulateCallParameters, SimulateCallReturnType, SimulateMulticallParameters, SimulateMulticallReturnType, SimulateWithPriceUpdatesError, SimulateWithPriceUpdatesErrorParams, SimulateWithPriceUpdatesErrorType, SimulateWithPriceUpdatesParameters, SimulateWithPriceUpdatesReturnType, SimulationError, SimulationErrorType, StrategyRef, SunsetStrategy, SupportedValue, SwapOperation, SyncStateOptions, type TimestampedCalldata, TokenInfo, TokenMetaData, TokensMeta, type TumblerStateHuman, TypedObjectUtils, Unarray, UnsupportedZapperFunctionError, UpdatePriceFeedsResult, VERSION_RANGE_310, VersionRange, VotingContractStatus, WAD, WAD_DECIMALS_POW, WatchBlocksAsyncParameters, WatchBlocksAsyncReturnType, type WithMultichain, WithdrawableAsset, WithdrawalCompressorLocation, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WithdrawalCompressorVersion, WithdrawalMetadata, WithdrawalOutput, WithdrawalStatus, WithdrawalsState, WstETHPriceFeedContract, YearnPriceFeedContract, ZapperContract, ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, ZodAddress, ZodHex, additionalBorrowApyBps, assetsMap, attachOptionsSchema, borrowApyBps, botPermissionsToString, bytes32ToString, chains, childLogger, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, decodeDelayedIntent, detectNetwork, dominantCollateral, encodeDelayedIntent, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, fetchPythPayloads, fetchRedstonePayloads, filterDust, filterDustUSD, findCuratorMarketConfigurator, fmtBinaryMask, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getAssetType, getCastTraceArgs, getChain, getCuratorName, getFunctionSignature, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, healthFactorBps, hexEq, hydrateAddressProvider, iCreditAccountAbi, isDust, isLPPriceFeed, isPublicNetwork, isRWAFactory, isRWAToken, isSunsetPool, isSunsetStrategy, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, json_parse, json_stringify, maxLeverage, minSeizedAmount, mustGetDominantCollateral, numberWithCommas, onchainSDKOptionsSchema, optimalHFForPartialLiquidation, optimalRepaidAmount, percentFmt, positionLeverage, primaryInstantOutput, rayToBps, rayToNumber, retry, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, toAddress, toBN, toBigInt, toClaimableWithdrawal, toPendingWithdrawal, toRequestableWithdrawal, toSignificant, toWithdrawalStatus, usdToNumber, utilizationBps, watchBlocksAsync };
|
|
174
|
+
export { ADDRESS_0X0, ADDRESS_PROVIDER_V310, AP_ACCOUNT_FACTORY, AP_ACL, AP_BOT_LIST, AP_BYTECODE_REPOSITORY, AP_CONTRACTS_REGISTER, AP_CONTROLLER_TIMELOCK, AP_CREDIT_ACCOUNT_COMPRESSOR, AP_CREDIT_SUITE_COMPRESSOR, AP_DATA_COMPRESSOR, AP_DELEVERAGE_BOT_HV, AP_DELEVERAGE_BOT_LV, AP_DELEVERAGE_BOT_PEGGED, AP_GAUGE_COMPRESSOR, AP_GEAR_STAKING, AP_GEAR_TOKEN, AP_INFLATION_ATTACK_BLOCKER, AP_INSOLVENCY_CHECKER, AP_MARKET_COMPRESSOR, AP_MARKET_CONFIGURATOR, AP_PARTIAL_LIQUIDATION_BOT, AP_PERIPHERY_COMPRESSOR, AP_PRICE_FEED_COMPRESSOR, AP_PRICE_FEED_STORE, AP_PRICE_ORACLE, AP_REDEMPTION_LOGGER, AP_REWARDS_COMPRESSOR, AP_ROUTER, AP_RWA_COMPRESSOR, AP_TOKEN_COMPRESSOR, AP_TREASURY, AP_WETH_GATEWAY, AP_WETH_TOKEN, AP_ZAPPER_REGISTER, AP_ZERO_PRICE_FEED, AbstractLPPriceFeedContract, AbstractPriceFeedContract, AbstractWithdrawalCompressorContract, AccountBotsService, AccountToCheck, AdapterData, AddLiquidityProps, AddressMap, AddressProviderAddresses, AddressProviderState, AddressProviderV310Contract, type AddressProviderV3StateHuman, AddressSet, type AliasLossPolicyStateHuman, AssembleCaOperationsProps, AssembleClaimDelayedCallsProps, AssembleCloseCreditAccountCallsProps, AssembleRepayCreditAccountCallsProps, AssembleStartDelayedWithdrawalCallsProps, AssertAssignable, Asset, type AssetPriceFeedStateHuman, AssetsMap, AttachOptions, BLOCKS_PER_WEEK_BY_NETWORK, BalanceDelta, BalancerStablePriceFeedContract, BalancerWeightedPriceFeedContract, type BalancerWeightedPriceFeedStateHuman, BaseContract, BaseContractArgs, type BaseContractStateHuman, BaseParams, BasePlugin, type BasePriceFeedStateHuman, BaseState, BigIntMath, type BotListStateHuman, BotPermissions, BotStatusCall, BotsDirectResponse, type BoundedOracleStateHuman, BoundedPriceFeedContract, BuildLiquidationTxProps, BuildLiquidationTxPropsBase, CMSlice, ChainConfig, ChainContractsRegister, ChainNotConfiguredError, ChainQueryProps, ClaimFarmRewardsProps, ClaimableWithdrawal, ClientOptions, CloseCreditAccountResult, ClosePathBalances, CompositePriceFeedContract, ConnectedBotData, ConnectedBotsCall, ConnectedBotsPerAccount, type ConstantOracleStateHuman, Construct, ConstructOptions, type ContractMethod, ContractOrInterface, ContractParseError, ContractParseErrorOptions, type CoreStateHuman, CreditAccountCompressor, CreditAccountCompressorV310Contract, CreditAccountData, CreditAccountDataCall, CreditAccountDataPayload, CreditAccountFilter, CreditAccountOperationResult, CreditAccountOperationsService, CreditAccountReadOptions, type CreditAccountSlice, CreditAccountTokenQuota, CreditAccountTokensSlice, CreditAccountsCall, CreditAccountsQuery, CreditAccountsReadOptions, CreditAccountsServiceV310, CreditAccountsTarget, CreditConfiguratorState, type CreditConfiguratorStateHuman, CreditConfiguratorV310Contract, CreditFacadeState, type CreditFacadeStateHuman, type abi as CreditFacadeV310Abi, abi as creditFacadeV310Abi, CreditFacadeV310BaseContract, CreditFacadeV310Contract, CreditManagerDebtParams, type CreditManagerDebtParamsHuman, CreditManagerFilter, CreditManagerOperationResult, CreditManagerState, type CreditManagerStateHuman, CreditManagerV310Contract, CreditSuite, CreditSuiteState, type CreditSuiteStateHuman, CurrentWithdrawals, CurveCryptoPriceFeedContract, CurveStablePriceFeedContract, CurveUSDPriceFeedContract, DELAYED_INTENT_TYPES, DELAYED_INTENT_VERSION, DStokenData, DUST_THRESHOLD, DelayedAddCollateralIntent, DelayedCloseAccountIntent, DelayedDecreaseLeverageIntent, DelayedDepositAndIncreaseLeverageIntent, DelayedDepositIntent, DelayedIncreaseLeverageIntent, DelayedIntent, DelayedIntentExtended, DelayedWithdrawCollateralIntent, DelegatedMulticall, DepositMetadata, EncodableCreditAccountOperation, Erc4626PriceFeedContract, EstimateRawTxGasParameters, EtherscanURLParam, ExternalPriceFeedContract, type FetchPythPayloadsOptions, type FetchRedstonePayloadsOptions, FilterDustUSDOptions, FindBestClosePathProps, FindClaimAllRewardsProps, FindManyToOnePathProps, FindOneTokenPathProps, FindOpenStrategyPathProps, FormatBNOptions, FullyLiquidateProps, FullyLiquidateResult, GaugeContract, GaugeData, GaugeParams, type GaugeParamsHuman, type GaugeStateHuman, type GearStakingV3StateHuman, GearboxChain, type GearboxState, type GearboxStateHuman, GetApprovalAddressProps, GetConnectedBotsResponse, GetConnectedBotsResult, GetConnectedMigrationBotsResult, GetCreditAccountsArgs, GetCreditAccountsOptions, GetLiquidatableAccountsProps, GetLiquidatableAccountsPropsBase, GetLiquidationDetailsProps, GetLiquidationDetailsPropsBase, GetLiquidationPositionsProps, GetLiquidationPositionsPropsBase, GetOpenAccountRequirementsProps, GetPendingWithdrawalsProps, GetPendingWithdrawalsResult, GetWithdrawalRequestResultProps, HydrateOptions, IAdapterContract, IAddressProviderContract, IBaseContract, ICreditAccountsService, ICreditConfiguratorContract, ICreditFacadeContract, ICreditManagerContract, IERC20ZapperContract, IETHZapperContract, IInterestRateModelContract, type ILogger, IOnchainSDKPlugin, IOnchainSDKPluginConstructor, IPluginState, IPoolContract, IPoolsService, IPriceFeedContract, IPriceOracleContract, type IPriceUpdateTx, IRWAFactory, IRateKeeperContract, IRedemptionLoggerContract, IRouterContract, IUpdatablePriceFeedContract, IWithdrawalCompressorContract, IZapperContract, type IntentPreviewResult, type InterestRateModelStateHuman, InterestRateModelType, InvalidDelayedIntentError, IsDustOptions, LEVERAGE_DECIMALS, LIQUIDATION_APPROVAL_BUFFER, LIQUIDATION_COMPRESSOR_V313_ADDRESS, LPMonopolizedPoolMeta, type LPPriceFeedStateHuman, LatestUpdate, LinearInterestRateModelContract, type LinearInterestRateModelStateHuman, LiquidationFees, LiquidationsService, ListPoolPositionsProps, ListPositionsProps, ListStrategyPositionsProps, LoadRWALiquidatorsProps, type LogFn, type LossPolicyStateHuman, MAX_INT, MAX_UINT16, MAX_UINT256, MIN_INT96, MULTICALL_ADDRESS, MarketData, MarketFilter, MarketRegister, MarketRegistryState, MarketRegistryStateHuman, type MarketStateHuman, MarketSuite, MarketType, MellowLRTPriceFeedContract, Methods, MidasLiquidatorContract, MissingSerializedParamsError, type MultiCall, MulticallWithFailure, MultichainAttachOptions, MultichainConstruct, MultichainHydrateOptions, MultichainLiquidationsService, type MultichainNetworkMeta, type MultichainNetworkProps, type MultichainNetworksProps, MultichainOpportunitiesService, MultichainPositionsService, type MultichainResult, MultichainSDK, MultichainSDKOptions, type MultichainState, type MultichainStateHuman, MultichainSyncStateOptions, NATIVE_ADDRESS, NOT_DEPLOYED, NO_VERSION, NetworkType, OnchainLiquidationCall, OnchainLiquidationData, OnchainLiquidationOutput, OnchainRequestableWithdrawal, OnchainSDK, OnchainSDKOptions, OpenCAProps, OpenStrategyResult, OpportunitiesService, OptimalRepaidAmountProps, PARTIAL_LIQUIDATION_BUFFER_BPS, PERCENTAGE_DECIMALS, PERCENTAGE_FACTOR, PERCENTAGE_FACTOR_1KK, PERIPHERY_CONTRACTS, PHANTOM_TOKEN_CONTRACT_TYPES, PHANTOM_TOKEN_MIDAS_REDEMPTION, PHANTOM_TOKEN_SECURITIZE_REDEMPTION, PRICE_DECIMALS, PRICE_DECIMALS_POW, ParsedCall, ParsedCallArgs, ParsedCallV2, ParsedZapperDeposit, ParsedZapperOperation, ParsedZapperRedeem, PartialLiquidationParams, PartialPriceFeedInitError, PartialPriceFeedTreeNode, PartialRecord, PartiallyLiquidateProps, PendingWithdrawal, PendleTWAPPTPriceFeed, PeripheryCompressorV310Contract, PeripheryContract, PermitResult, PhantomTokenContractType, PhantomTokenMeta, PickSomeRequired, PlaceholderAdapterContract, PlaceholderAdapterContractOptions, PlaceholderContract, PluginFactoriesMap, PluginFactory, PluginState, PluginStateVersionError, PluginStatesMap, PluginsMap, PoolQuotaKeeperContract, type PoolQuotaKeeperStateHuman, PoolService, PoolServiceCall, PoolServiceCallResult, PoolState, type PoolStateHuman, PoolSuite, type PoolSuiteStateHuman, PoolV310Contract, PositionsService, PrepareUpdateQuotasProps, PreviewDelayedWithdrawalProps, PriceFeedAnswer, PriceFeedConstructorArgs, PriceFeedContractType, PriceFeedMapEntry, PriceFeedRef, PriceFeedRegister, PriceFeedRegisterHooks, PriceFeedRegisterOptions, type PriceFeedStateHuman, PriceFeedTreeNode, PriceFeedUsageType, PriceFeedsForAccountOptions, PriceFeedsForTokensOptions, PriceOracleData, type PriceOracleStateHuman, PriceOracleV310Contract, PriceUpdate, PythPriceFeed, QuotaKeeperState, type QuotaParamsHuman, QuotaState, RAMP_DURATION_BY_NETWORK, RAY, RAY_DECIMALS_POW, RWACompressorCall, RWACompressorInvestorData, RWACompressorResponse, RWADefaultTokenMeta, RWAFactoryData, RWAFactoryStateHuman, RWAFactoryType, RWAInvestorData, RWALiquidatorInfo, RWAMissingOpenAccountRequirements, RWAOnDemandLPMeta, RWAOnDemandLPMonopolizedMeta, RWAOnDemandLpContractType, RWAOnDemandTokenMeta, RWAOpenAccountRequirements, RWAOperationArgs, RWARegistry, RWAState, RWAStateHuman, RWATokenMeta, RWAUnderlyingContractType, RWAUnderlyingData, RWA_FACTORY_SECURITIZE, RWA_FACTORY_TYPES, RWA_LIQUIDATOR_MIDAS, RWA_LIQUIDATOR_SECURITIZE, RWA_ON_DEMAND_LP_MONOPOLIZED, RWA_UNDERLYING_DEFAULT, RWA_UNDERLYING_ON_DEMAND, RampEvent, RateKeeperState, type RateKeeperStateHuman, RateKeeperType, type RawTx, RedemptionLog, RedemptionLoggerV310Contract, RedstonePriceFeedContract, type RedstonePriceFeedStateHuman, RelaxedBaseParams, RemoveLiquidityProps, RequestableWithdrawal, RetryOptions, RewardInfo, Rewards, RouterCASlice, RouterCMSlice, RouterCloseResult, RouterResult, RouterRewardsResult, RouterV310Contract, SDKConstruct, SDKOptions, SECONDS_PER_YEAR, SECURITIZE_REGISTER_VAULT_TYPES, SLIPPAGE_DECIMALS, STATE_VERSION, SUPPORTED_NETWORKS, SdkAlreadyAttachedError, SdkChainMismatchError, SdkMissingChainStateError, SdkNotAttachedError, SdkStateVersionMismatchError, SdkSyncFailedError, SecuritizeCreditAccountData, SecuritizeInvestorData, SecuritizeLiquidatorContract, SecuritizeMissingOpenAccountRequirements, SecuritizeOpenAccountRequirements, SecuritizeOperationArgs, SecuritizeRWAFactory, SecuritizeRWAFactoryStateHuman, SecuritizeRegisterMessage, SecuritizeRegisterVaultMessage, SecuritizeSignature, SendRawTxParameters, SetBotProps, SetBotResult, SimpleTokenMeta, SimulateCallOptions, SimulateCallParameters, SimulateCallReturnType, SimulateMulticallParameters, SimulateMulticallReturnType, SimulateWithPriceUpdatesError, SimulateWithPriceUpdatesErrorParams, SimulateWithPriceUpdatesErrorType, SimulateWithPriceUpdatesParameters, SimulateWithPriceUpdatesReturnType, SimulationError, SimulationErrorType, StrategyRef, SunsetStrategy, SupportedValue, SwapOperation, SyncStateOptions, type TimestampedCalldata, TokenInfo, TokenMetaData, TokensMeta, type TumblerStateHuman, TypedObjectUtils, Unarray, UnsupportedZapperFunctionError, UpdatePriceFeedsResult, VERSION_RANGE_310, VersionRange, VotingContractStatus, WAD, WAD_DECIMALS_POW, WatchBlocksAsyncParameters, WatchBlocksAsyncReturnType, type WithMultichain, WithdrawableAsset, WithdrawalCompressorLocation, WithdrawalCompressorV310Contract, WithdrawalCompressorV311Contract, WithdrawalCompressorV313Contract, WithdrawalCompressorVersion, WithdrawalMetadata, WithdrawalOutput, WithdrawalStatus, WithdrawalsState, WstETHPriceFeedContract, YearnPriceFeedContract, ZapperContract, ZapperData, type ZapperStateHuman, ZeroPriceFeedContract, ZodAddress, ZodHex, additionalBorrowApyBps, assetsMap, attachOptionsSchema, borrowApyBps, botPermissionsToString, bytes32ToString, chains, childLogger, createAdapter, createAddressProvider, createPriceOracle, createRawTx, createRedemptionLogger, createRouter, createWithdrawalCompressor, createZapper, decodeDelayedIntent, detectNetwork, dominantCollateral, encodeDelayedIntent, estimateRawTxGas, etherscanApiUrl, etherscanUrl, executeDelegatedMulticalls, fetchPythPayloads, fetchRedstonePayloads, filterDust, filterDustUSD, findCuratorMarketConfigurator, fmtBinaryMask, formatBN, formatBNvalue, formatDuration, formatLeverage, formatNumberToString_, formatPercentage, formatTimestamp, functionArgsToMap, functionArgsToRecord, generateCastTraceCall, getAssetType, getCastTraceArgs, getChain, getCuratorName, getFunctionSignature, getNetworkType, getRawPriceUpdates, getSimulateWithPriceUpdatesError, getWithdrawalCompressorAddress, halfRAY, healthFactorBps, hexEq, hydrateAddressProvider, iCreditAccountAbi, isDust, isLPPriceFeed, isPublicNetwork, isRWAFactory, isRWAToken, isSunsetPool, isSunsetStrategy, isSupportedNetwork, isUpdatablePriceFeed, isV310, isVersionRange, json_parse, json_stringify, maxLeverage, minSeizedAmount, mustGetDominantCollateral, numberWithCommas, onchainSDKOptionsSchema, optimalHFForPartialLiquidation, optimalRepaidAmount, percentFmt, positionLeverage, primaryInstantOutput, rayToBps, rayToNumber, retry, sendRawTx, shortAddress, shortHash, simulateCall, simulateMulticall, simulateWithPriceUpdates, toAddress, toBN, toBigInt, toClaimableWithdrawal, toPendingWithdrawal, toRequestableWithdrawal, toSignificant, toWithdrawalStatus, usdToNumber, utilizationBps, watchBlocksAsync };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Curator } from "../../model/
|
|
2
|
-
import "../../model/index.js";
|
|
1
|
+
import { Curator } from "../../model/curators.js";
|
|
3
2
|
import { PeripheryContract } from "../constants/periphery.js";
|
|
4
3
|
import "../constants/index.js";
|
|
4
|
+
import "../../model/index.js";
|
|
5
5
|
import { ConstructOptions } from "../base/Construct.js";
|
|
6
6
|
import { BaseContract } from "../base/BaseContract.js";
|
|
7
7
|
import "../base/index.js";
|
|
@@ -1533,14 +1533,9 @@ declare const abi: readonly [{
|
|
|
1533
1533
|
}];
|
|
1534
1534
|
type abi = typeof abi;
|
|
1535
1535
|
declare class MarketConfiguratorContract extends BaseContract<abi> {
|
|
1536
|
-
#private;
|
|
1537
1536
|
constructor(options: ConstructOptions, address: Address);
|
|
1538
|
-
loadCuratorName(): Promise<void>;
|
|
1539
1537
|
/**
|
|
1540
|
-
* The entity operating this configurator
|
|
1541
|
-
* it. The curated per-chain table wins over the name the contract reports,
|
|
1542
|
-
* because the two sources must agree across services and only the table is
|
|
1543
|
-
* shared with the backend.
|
|
1538
|
+
* The entity operating this configurator
|
|
1544
1539
|
*/
|
|
1545
1540
|
get curator(): Curator;
|
|
1546
1541
|
static getPeripheryContractBatch(configurators: MarketConfiguratorContract[], client: MarketConfiguratorContract["client"], contract: PeripheryContract, blockNumber?: bigint): Promise<({
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Curator
|
|
1
|
+
import { Curator } from "../../model/curators.js";
|
|
2
|
+
import { Token } from "../../model/primitives.js";
|
|
3
|
+
import { MarketData } from "../base/types.js";
|
|
2
4
|
import { Opportunity, OpportunityFilter, PoolOpportunity, PoolOpportunityDetail, PriceFeedSummary, QuotaAsset, StrategyOpportunityDetail } from "../../model/opportunities.js";
|
|
3
5
|
import "../../model/index.js";
|
|
4
|
-
import { MarketData } from "../base/types.js";
|
|
5
6
|
import { IRWAFactory } from "./rwa/types.js";
|
|
6
7
|
import { MarketStateHuman } from "../types/state-human.js";
|
|
7
8
|
import { MarketConfiguratorContract } from "./MarketConfiguratorContract.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { iCreditManagerV310Abi } from "../../../abi/310/generated.js";
|
|
2
2
|
import { Bps, Leverage } from "../../../model/primitives.js";
|
|
3
|
-
import "../../../model/index.js";
|
|
4
3
|
import { AddressMap } from "../../utils/AddressMap.js";
|
|
5
4
|
import { CreditManagerState, CreditSuiteState } from "../../base/types.js";
|
|
6
5
|
import { IAdapterContract } from "../adapters/types.js";
|
|
7
6
|
import "../adapters/index.js";
|
|
7
|
+
import "../../../model/index.js";
|
|
8
8
|
import { CreditManagerStateHuman } from "../../types/state-human.js";
|
|
9
9
|
import { ICreditManagerContract } from "./types.js";
|
|
10
10
|
import { OnchainSDK } from "../../OnchainSDK.js";
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Timestamp } from "../../../model/primitives.js";
|
|
2
|
+
import { CreditAccountData, CreditSuiteState } from "../../base/types.js";
|
|
2
3
|
import { StrategyOpportunity, StrategyOpportunityDetail } from "../../../model/opportunities.js";
|
|
3
4
|
import "../../../model/index.js";
|
|
4
|
-
import {
|
|
5
|
+
import { IRWAFactory, RWAOperationArgs } from "../rwa/types.js";
|
|
5
6
|
import { IRouterContract } from "../../router/types.js";
|
|
6
7
|
import "../../router/index.js";
|
|
7
8
|
import { CreditSuiteStateHuman } from "../../types/state-human.js";
|
|
8
9
|
import { ICreditConfiguratorContract, ICreditFacadeContract, ICreditManagerContract, LiquidationFees, PartialLiquidationParams } from "./types.js";
|
|
9
10
|
import { MarketConfiguratorContract } from "../MarketConfiguratorContract.js";
|
|
10
11
|
import { MarketSuite } from "../MarketSuite.js";
|
|
12
|
+
import { MultiCall, RawTx } from "../../types/transactions.js";
|
|
11
13
|
import { OnchainSDK } from "../../OnchainSDK.js";
|
|
12
14
|
import "../../types/index.js";
|
|
13
15
|
import { SDKConstruct } from "../../base/SDKConstruct.js";
|
|
@@ -77,6 +79,29 @@ declare class CreditSuite extends SDKConstruct {
|
|
|
77
79
|
* Market configurator that governs this credit suite and its parent pool.
|
|
78
80
|
*/
|
|
79
81
|
get marketConfigurator(): MarketConfiguratorContract;
|
|
82
|
+
/**
|
|
83
|
+
* Factory that opens and manages the accounts of this suite, defined only
|
|
84
|
+
* for RWA markets.
|
|
85
|
+
*/
|
|
86
|
+
get rwaFactory(): IRWAFactory | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Builds a transaction that executes a multicall on one of this suite's
|
|
89
|
+
* credit accounts.
|
|
90
|
+
*
|
|
91
|
+
* @param creditAccount - Account to operate on.
|
|
92
|
+
* @param calls - Multicall body.
|
|
93
|
+
* @param rwaOptions - Factory-specific args, ignored on non-RWA markets.
|
|
94
|
+
*/
|
|
95
|
+
multicallTx(creditAccount: Address, calls: MultiCall[], rwaOptions?: RWAOperationArgs): RawTx;
|
|
96
|
+
/**
|
|
97
|
+
* Builds a transaction that opens a new credit account in this suite.
|
|
98
|
+
*
|
|
99
|
+
* @param to - Owner of the new account.
|
|
100
|
+
* @param calls - Multicall body executed on the new account.
|
|
101
|
+
* @param referralCode - Referral code, facade path only.
|
|
102
|
+
* @param rwaOptions - Factory-specific args, ignored on non-RWA markets.
|
|
103
|
+
*/
|
|
104
|
+
openCreditAccountTx(to: Address, calls: MultiCall[], referralCode?: bigint, rwaOptions?: RWAOperationArgs): RawTx;
|
|
80
105
|
/**
|
|
81
106
|
* Router configured for this credit suite.
|
|
82
107
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Bps, Leverage } from "../../../model/primitives.js";
|
|
2
|
-
import "../../../model/index.js";
|
|
3
2
|
import { AddressMap } from "../../utils/AddressMap.js";
|
|
4
3
|
import { Asset, IBaseContract } from "../../base/types.js";
|
|
5
4
|
import { IAdapterContract } from "../adapters/types.js";
|
|
6
5
|
import "../adapters/index.js";
|
|
6
|
+
import "../../../model/index.js";
|
|
7
7
|
import { PermitResult, PrepareUpdateQuotasProps } from "../../accounts/types.js";
|
|
8
8
|
import { CreditConfiguratorStateHuman, CreditFacadeStateHuman, CreditManagerStateHuman } from "../../types/state-human.js";
|
|
9
9
|
import { PriceUpdate } from "../pricefeeds/types.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Amount, TokenAmount } from "../../../model/primitives.js";
|
|
2
|
-
import { PriceFeedData, PriceFeedSummary } from "../../../model/opportunities.js";
|
|
3
|
-
import "../../../model/index.js";
|
|
4
2
|
import { AddressMap } from "../../utils/AddressMap.js";
|
|
5
3
|
import { CreditAccountTokensSlice, PriceOracleData } from "../../base/types.js";
|
|
4
|
+
import { PriceFeedData, PriceFeedSummary } from "../../../model/opportunities.js";
|
|
5
|
+
import "../../../model/index.js";
|
|
6
6
|
import { DelegatedMulticall } from "../../utils/viem/executeDelegatedMulticalls.js";
|
|
7
7
|
import "../../utils/viem/index.js";
|
|
8
8
|
import { PriceOracleStateHuman } from "../../types/state-human.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Amount, TokenAmount } from "../../../model/primitives.js";
|
|
2
|
-
import { PriceFeedData, PriceFeedSummary } from "../../../model/opportunities.js";
|
|
3
|
-
import "../../../model/index.js";
|
|
4
2
|
import { AddressMap } from "../../utils/AddressMap.js";
|
|
5
3
|
import { CreditAccountTokensSlice, IBaseContract } from "../../base/types.js";
|
|
4
|
+
import { PriceFeedData, PriceFeedSummary } from "../../../model/opportunities.js";
|
|
5
|
+
import "../../../model/index.js";
|
|
6
6
|
import { DelegatedMulticall } from "../../utils/viem/executeDelegatedMulticalls.js";
|
|
7
7
|
import "../../utils/viem/index.js";
|
|
8
8
|
import { PriceOracleStateHuman } from "../../types/state-human.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { BaseState } from "../../base/types.js";
|
|
1
2
|
import { RateCurve } from "../../../model/opportunities.js";
|
|
2
3
|
import "../../../model/index.js";
|
|
3
|
-
import { BaseState } from "../../base/types.js";
|
|
4
4
|
import { LinearInterestRateModelStateHuman } from "../../types/state-human.js";
|
|
5
5
|
import { IInterestRateModelContract } from "./types.js";
|
|
6
6
|
import { RateModelParams } from "./math.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Bps } from "../../../model/primitives.js";
|
|
2
|
-
import "../../../model/index.js";
|
|
3
2
|
import { AddressMap } from "../../utils/AddressMap.js";
|
|
4
3
|
import { IBaseContract, PoolState, QuotaKeeperState, QuotaState } from "../../base/types.js";
|
|
4
|
+
import "../../../model/index.js";
|
|
5
5
|
import { PoolQuotaKeeperStateHuman } from "../../types/state-human.js";
|
|
6
6
|
import "../../utils/index.js";
|
|
7
7
|
import { ConstructOptions } from "../../base/Construct.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Bps } from "../../../model/primitives.js";
|
|
2
|
+
import { MarketData } from "../../base/types.js";
|
|
2
3
|
import { RateCurve } from "../../../model/opportunities.js";
|
|
3
4
|
import "../../../model/index.js";
|
|
4
|
-
import { MarketData } from "../../base/types.js";
|
|
5
5
|
import { IRWAFactory } from "../rwa/types.js";
|
|
6
6
|
import { PoolSuiteStateHuman } from "../../types/state-human.js";
|
|
7
7
|
import { MarketConfiguratorContract } from "../MarketConfiguratorContract.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Bps } from "../../../model/primitives.js";
|
|
2
|
-
import "../../../model/index.js";
|
|
3
2
|
import { AddressMap } from "../../utils/AddressMap.js";
|
|
4
3
|
import { CreditManagerDebtParams, PoolState } from "../../base/types.js";
|
|
4
|
+
import "../../../model/index.js";
|
|
5
5
|
import { IRWAFactory } from "../rwa/types.js";
|
|
6
6
|
import { PoolStateHuman } from "../../types/state-human.js";
|
|
7
7
|
import { IPoolContract } from "./types.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Bps } from "../../../model/primitives.js";
|
|
2
|
-
import "../../../model/index.js";
|
|
3
2
|
import { AddressMap } from "../../utils/AddressMap.js";
|
|
4
3
|
import { CreditManagerDebtParams, IBaseContract } from "../../base/types.js";
|
|
4
|
+
import "../../../model/index.js";
|
|
5
5
|
import { IRWAFactory } from "../rwa/types.js";
|
|
6
6
|
import { InterestRateModelStateHuman, PoolStateHuman, RateKeeperStateHuman } from "../../types/state-human.js";
|
|
7
7
|
import { PoolQuotaKeeperV310Contract } from "./PoolQuotaKeeperV310Contract.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { PriceFeedAnswer, PriceFeedTreeNode } from "../../base/types.js";
|
|
1
2
|
import { PriceFeedData } from "../../../model/opportunities.js";
|
|
2
3
|
import "../../../model/index.js";
|
|
3
|
-
import { PriceFeedAnswer, PriceFeedTreeNode } from "../../base/types.js";
|
|
4
4
|
import { PriceFeedStateHuman } from "../../types/state-human.js";
|
|
5
5
|
import { IPriceFeedContract, IUpdatablePriceFeedContract, PriceFeedContractType } from "./types.js";
|
|
6
6
|
import { PriceFeedRef } from "./PriceFeedRef.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { IBaseContract, PriceFeedAnswer } from "../../base/types.js";
|
|
1
2
|
import { PriceFeedData } from "../../../model/opportunities.js";
|
|
2
3
|
import "../../../model/index.js";
|
|
3
|
-
import { IBaseContract, PriceFeedAnswer } from "../../base/types.js";
|
|
4
4
|
import { PriceFeedStateHuman } from "../../types/state-human.js";
|
|
5
5
|
import { PriceFeedRef } from "./PriceFeedRef.js";
|
|
6
6
|
import { IPriceUpdateTx, RawTx } from "../../types/transactions.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Opportunity, OpportunityFilter, PoolOpportunityDetail, PoolOpportunityKey, StrategyOpportunityDetail, StrategyOpportunityKey } from "../../model/opportunities.js";
|
|
2
|
-
import "../../model/index.js";
|
|
3
1
|
import { MultichainResult } from "../types/multichain.js";
|
|
4
2
|
import { PluginsMap } from "../plugins/types.js";
|
|
5
3
|
import "../plugins/index.js";
|
|
4
|
+
import { Opportunity, OpportunityFilter, PoolOpportunityDetail, PoolOpportunityKey, StrategyOpportunityDetail, StrategyOpportunityKey } from "../../model/opportunities.js";
|
|
5
|
+
import "../../model/index.js";
|
|
6
6
|
import "../types/index.js";
|
|
7
7
|
import { MultichainConstruct } from "../base/MultichainConstruct.js";
|
|
8
8
|
import "../base/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { Asset } from "../base/types.js";
|
|
1
2
|
import { PoolPosition } from "../../model/positions.js";
|
|
2
3
|
import "../../model/index.js";
|
|
3
|
-
import { Asset } from "../base/types.js";
|
|
4
4
|
import { IZapperContract } from "../market/zapper/types.js";
|
|
5
5
|
import "../market/index.js";
|
|
6
6
|
import { MultiCall, RawTx } from "../types/transactions.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Position } from "../../model/positions.js";
|
|
2
|
-
import "../../model/index.js";
|
|
3
1
|
import { MultichainResult } from "../types/multichain.js";
|
|
4
2
|
import { PluginsMap } from "../plugins/types.js";
|
|
5
3
|
import "../plugins/index.js";
|
|
4
|
+
import { Position } from "../../model/positions.js";
|
|
5
|
+
import "../../model/index.js";
|
|
6
6
|
import { ListPositionsProps } from "./types.js";
|
|
7
7
|
import "../types/index.js";
|
|
8
8
|
import { MultichainConstruct } from "../base/MultichainConstruct.js";
|