@aegis-engine/core 0.7.0 → 0.8.1
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/README.md +215 -7
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/account.d.ts +11 -0
- package/dist/account.js +129 -0
- package/dist/actions/allowance.d.ts +94 -0
- package/dist/actions/directPoolSwap.d.ts +8 -1
- package/dist/actions/kyberSwap.d.ts +1 -0
- package/dist/actions/types.d.ts +2 -0
- package/dist/actions/wallet.d.ts +1 -0
- package/dist/aegis-core.js +9657 -205
- package/dist/backendAdapters.d.ts +3 -1
- package/dist/config/chains.d.ts +1 -0
- package/dist/config/constants.d.ts +4 -0
- package/dist/config/tokens.d.ts +2 -1
- package/dist/config/types.d.ts +8 -0
- package/dist/contract/backendClient.d.ts +3 -1
- package/dist/contract/generated/aegis-swap.d.ts +6337 -1377
- package/dist/contract/generated/market-data.d.ts +8286 -0
- package/dist/contract/index.d.ts +1 -0
- package/dist/contract/responseBudget.d.ts +9 -0
- package/dist/contract/schemas.d.ts +13 -3
- package/dist/engine/account/accounting.d.ts +24 -0
- package/dist/engine/account/accountingSchemas.d.ts +2056 -0
- package/dist/engine/account/activity.d.ts +42 -0
- package/dist/engine/account/activitySchemas.d.ts +327 -0
- package/dist/engine/account/amountSchemas.d.ts +9 -0
- package/dist/engine/account/catalogSchemas.d.ts +108 -0
- package/dist/engine/account/client.d.ts +14 -0
- package/dist/engine/account/history.d.ts +40 -0
- package/dist/engine/account/historySchemas.d.ts +251 -0
- package/dist/engine/account/management.d.ts +13 -0
- package/dist/engine/account/portfolioSchemas.d.ts +712 -0
- package/dist/engine/account/positionPerformance.d.ts +18 -0
- package/dist/engine/account/positionPerformanceSchemas.d.ts +101 -0
- package/dist/engine/account/positionPnl.d.ts +18 -0
- package/dist/engine/account/positionPnlSchemas.d.ts +149 -0
- package/dist/engine/account/transactionHistory.d.ts +50 -0
- package/dist/engine/account/transactionSchemas.d.ts +101 -0
- package/dist/engine/account/transactions.d.ts +26 -0
- package/dist/engine/account/transport.d.ts +31 -0
- package/dist/engine/account/types.d.ts +39 -0
- package/dist/engine/actions.d.ts +8 -3
- package/dist/engine/adaptiveFee.d.ts +14 -0
- package/dist/engine/balancedLending.d.ts +82 -0
- package/dist/engine/dataSource.d.ts +2 -0
- package/dist/engine/index.d.ts +19 -0
- package/dist/engine/marketAdapter.d.ts +3 -0
- package/dist/engine/marketSeries.d.ts +61 -0
- package/dist/engine/marketSeriesSchemas.d.ts +312 -0
- package/dist/engine/marketTrust.d.ts +26 -0
- package/dist/engine/openingEntry.d.ts +41 -0
- package/dist/engine/rateHistorySchemas.d.ts +88 -0
- package/dist/engine/reads.d.ts +1 -1
- package/dist/engine/registry.d.ts +1 -1
- package/dist/engine/restSchemas.d.ts +59 -1
- package/dist/engine/tradeExecutionSession.d.ts +155 -0
- package/dist/engine/types.d.ts +132 -14
- package/dist/engine/v4Quote.d.ts +5 -0
- package/dist/index.d.ts +11 -7
- package/dist/internal/guardedWalletTransaction.d.ts +31 -0
- package/dist/permit.d.ts +80 -7
- package/dist/quote/aggregatedSwapQuote.d.ts +5 -1
- package/dist/quote/kyberCalldata.d.ts +5 -1
- package/dist/{sdkRuntime-BE3ZMb5o.js → sdkRuntime-BLOOWtPv.js} +3644 -3155
- package/dist/services/kyberSwap.d.ts +12 -0
- package/dist/swap/authorizePermit.d.ts +11 -9
- package/dist/swap/executeSwapTransaction.d.ts +5 -1
- package/dist/swap/receiptWait.d.ts +9 -0
- package/dist/swap/sendSwapTransaction.d.ts +7 -0
- package/dist/swap/trustedMarket.d.ts +25 -0
- package/dist/transactionHistory-1Zl2KCcV.js +5915 -0
- package/dist/wallet.d.ts +4 -0
- package/package.json +12 -5
- package/dist/index-DofKgro2.js +0 -11201
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type Address, type Hex, type PublicClient } from 'viem';
|
|
2
|
+
import type { AegisSwapChainConfig } from '../config/index.js';
|
|
3
|
+
import type { AegisEngineActionCallbacks, AegisEngineApprovalInput, AegisEngineDepositQuoteResult, AegisEngineMarket, AegisEnginePreparedTransaction, AegisEngineReadFrame, AegisEngineTransactionResult, AegisEngineWalletSession } from './types.js';
|
|
4
|
+
export type AegisEngineLendIntent = {
|
|
5
|
+
mode: 'single-token';
|
|
6
|
+
inputIsToken0: boolean;
|
|
7
|
+
amountIn: bigint;
|
|
8
|
+
} | {
|
|
9
|
+
mode: 'balanced';
|
|
10
|
+
amount0Max: bigint;
|
|
11
|
+
amount1Max: bigint;
|
|
12
|
+
};
|
|
13
|
+
export type AegisEngineBalancedDepositInput = {
|
|
14
|
+
publicClient: PublicClient;
|
|
15
|
+
market: AegisEngineMarket;
|
|
16
|
+
owner: Address;
|
|
17
|
+
amount0Max: bigint;
|
|
18
|
+
amount1Max: bigint;
|
|
19
|
+
slippageBps: number;
|
|
20
|
+
/** Caller-selected native balance reserve; not a gas-cost estimate. */
|
|
21
|
+
nativeGasReserve: bigint;
|
|
22
|
+
signal?: AbortSignal;
|
|
23
|
+
/** Fresh full-call simulation at the canonical head, after authorization. */
|
|
24
|
+
withExecutionEvidence?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type AegisEngineBalancedDepositQuote = {
|
|
27
|
+
kind: 'lend-balanced';
|
|
28
|
+
owner: Address;
|
|
29
|
+
market: AegisEngineMarket;
|
|
30
|
+
slippageBps: number;
|
|
31
|
+
frame: AegisEngineReadFrame & {
|
|
32
|
+
blockHash: Hex;
|
|
33
|
+
};
|
|
34
|
+
expiresAt: bigint;
|
|
35
|
+
feasible: boolean;
|
|
36
|
+
reason: string | null;
|
|
37
|
+
execution: 'indicative' | 'verified-at-frame' | 'refresh-required' | 'preflight-failed' | 'infeasible';
|
|
38
|
+
deposit: AegisEngineDepositQuoteResult['deposit'];
|
|
39
|
+
approvalPlans: readonly {
|
|
40
|
+
token: Address;
|
|
41
|
+
amount: bigint;
|
|
42
|
+
required: boolean;
|
|
43
|
+
}[];
|
|
44
|
+
walletRemainder: {
|
|
45
|
+
amount0: bigint;
|
|
46
|
+
amount1: bigint;
|
|
47
|
+
} | null;
|
|
48
|
+
funding: {
|
|
49
|
+
balance0: bigint;
|
|
50
|
+
balance1: bigint;
|
|
51
|
+
nativeBalance: bigint;
|
|
52
|
+
nativeGasReserve: bigint;
|
|
53
|
+
};
|
|
54
|
+
limitingSide: 'token0' | 'token1' | 'both' | null;
|
|
55
|
+
nativeValue: bigint;
|
|
56
|
+
display: AegisEngineDepositQuoteResult['display'];
|
|
57
|
+
postDeposit: AegisEngineDepositQuoteResult['postDeposit'];
|
|
58
|
+
tx: AegisEnginePreparedTransaction | null;
|
|
59
|
+
};
|
|
60
|
+
/** Direct two-currency lending. Funding and token metadata are re-read at one
|
|
61
|
+
* frame. No swap, wrap, signature request or wallet mutation occurs here. */
|
|
62
|
+
export declare function quoteEngineBalancedDeposit(input: AegisEngineBalancedDepositInput): Promise<AegisEngineBalancedDepositQuote>;
|
|
63
|
+
export type AegisEngineBalancedDepositExecutionInput = {
|
|
64
|
+
quote: AegisEngineBalancedDepositQuote;
|
|
65
|
+
publicClient: PublicClient;
|
|
66
|
+
wallet: AegisEngineWalletSession;
|
|
67
|
+
activeChain: AegisSwapChainConfig;
|
|
68
|
+
signal?: AbortSignal;
|
|
69
|
+
onAuthorizationExecution?: AegisEngineApprovalInput['onAuthorizationExecution'];
|
|
70
|
+
/** Awaited between wallet requests to confirm the host's reviewed scope. */
|
|
71
|
+
onCheckpoint?: () => Promise<void>;
|
|
72
|
+
} & AegisEngineActionCallbacks;
|
|
73
|
+
/** Authorize exact bounded spends for each token using the existing Engine
|
|
74
|
+
* executor, then re-quote/simulate before the single deposit. A worse share
|
|
75
|
+
* floor or larger spend requires a new review. No quoted calldata is reused. */
|
|
76
|
+
export declare function executeEngineBalancedDeposit(input: AegisEngineBalancedDepositExecutionInput): Promise<{
|
|
77
|
+
status: 'review-required';
|
|
78
|
+
quote: AegisEngineBalancedDepositQuote;
|
|
79
|
+
} | {
|
|
80
|
+
status: 'confirmed';
|
|
81
|
+
result: AegisEngineTransactionResult;
|
|
82
|
+
}>;
|
|
@@ -5,6 +5,8 @@ export declare function clearEngineMarketHistoryCache(): void;
|
|
|
5
5
|
export declare function clearEnginePositionsCache(): void;
|
|
6
6
|
export declare function clearEnginePositionActivityCache(): void;
|
|
7
7
|
export declare function clearEnginePositionsV2ProbeCache(): void;
|
|
8
|
+
export declare function clearEngineMarketsV2ProbeCache(): void;
|
|
9
|
+
export declare function clearEngineMarketHistoryV2ProbeCache(): void;
|
|
8
10
|
export declare function fetchEngineMarkets(args: {
|
|
9
11
|
source: AegisEngineDataSource;
|
|
10
12
|
chainId: number;
|
package/dist/engine/index.d.ts
CHANGED
|
@@ -1,13 +1,32 @@
|
|
|
1
1
|
export * from './types.js';
|
|
2
|
+
export * from './account/types.js';
|
|
3
|
+
export * from './account/client.js';
|
|
4
|
+
export * from './account/activity.js';
|
|
5
|
+
export * from './account/management.js';
|
|
6
|
+
export * from './account/transactions.js';
|
|
7
|
+
export * from './account/transactionHistory.js';
|
|
8
|
+
export * from './account/history.js';
|
|
2
9
|
export * from './activityLotDisplay.js';
|
|
3
10
|
export * from './dataSource.js';
|
|
4
11
|
export * from './lendHistory.js';
|
|
5
12
|
export * from './simpleYield.js';
|
|
6
13
|
export * from './marketAdapter.js';
|
|
14
|
+
export * from './marketTrust.js';
|
|
15
|
+
export { engineMarketIdSchema, engineMarketsRestResponseSchema, engineMarketsV2RestResponseSchema, engineMetricHistoryRestResponseSchema, engineMetricHistoryV2RestResponseSchema, enginePositionActivityRestResponseSchema, enginePositionsRestResponseSchema, enginePositionsV2RestResponseSchema } from './restSchemas.js';
|
|
7
16
|
export * from './registry.js';
|
|
17
|
+
export * from './adaptiveFee.js';
|
|
8
18
|
export * from './reads.js';
|
|
9
19
|
export * from './quotes.js';
|
|
10
20
|
export * from './borrowCollateralFloor.js';
|
|
11
21
|
export * from './actions.js';
|
|
22
|
+
export * from './balancedLending.js';
|
|
12
23
|
export * from './positionAmounts.js';
|
|
13
24
|
export * from './positionStrategy.js';
|
|
25
|
+
export * from './marketSeries.js';
|
|
26
|
+
export { createEngineTradeOpenExecutionSession, engineAuthorizationPlanReviewReasons, engineTradeQuoteReviewReasons } from './tradeExecutionSession.js';
|
|
27
|
+
export type { AegisEngineAuthorizationReviewReason, AegisEngineTradeExecutionCommand, AegisEngineTradeExecutionFailure, AegisEngineTradeExecutionNext, AegisEngineTradeExecutionPhase, AegisEngineTradeExecutionRecovery, AegisEngineTradeExecutionReview, AegisEngineTradeExecutionSnapshot, AegisEngineTradeExecutionStep, AegisEngineTradeExecutionStepStatus, AegisEngineTradeOpenExecutionSession, AegisEngineTradeOpenExecutionSessionOptions, AegisEngineTradeOpenIntent, AegisEngineTradeQuoteReviewReason } from './tradeExecutionSession.js';
|
|
28
|
+
export { engineOpeningExecutionResponseSchema, fetchEngineOpeningEntry } from './openingEntry.js';
|
|
29
|
+
export { AccountingResponseSchema as enginePositionAccountingResponseSchema } from './account/accountingSchemas.js';
|
|
30
|
+
export { PositionPnlResponseSchema as enginePositionPnlResponseSchema } from './account/positionPnlSchemas.js';
|
|
31
|
+
export { PositionPerformanceResponseSchema as enginePositionPerformanceResponseSchema } from './account/positionPerformanceSchemas.js';
|
|
32
|
+
export { PORTFOLIO_CHAINS as ENGINE_PORTFOLIO_CHAIN_IDS } from './account/portfolioSchemas.js';
|
|
@@ -4,5 +4,8 @@ export declare function normalizeEngineMarkets(args: {
|
|
|
4
4
|
chainId: number;
|
|
5
5
|
markets: readonly unknown[];
|
|
6
6
|
source?: AegisEngineMarketSource;
|
|
7
|
+
/** Selects the strict REST row schema. The frozen v1 schema rejects v2-only
|
|
8
|
+
* adaptive fee fields; v2 validates them as one optional semantic pair. */
|
|
9
|
+
restResponseVersion?: '1' | '2';
|
|
7
10
|
defaultV4Quoter?: Address;
|
|
8
11
|
}): AegisEngineMarket[];
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { AegisEngineRestSource } from './types.js';
|
|
3
|
+
import { EngineMarketCandlesResponseSchema, EngineTokenMarketReferenceResponseSchema } from './marketSeriesSchemas.js';
|
|
4
|
+
import { RateHistoryResponseSchema } from './rateHistorySchemas.js';
|
|
5
|
+
export type EnginePoolPriceSegment = {
|
|
6
|
+
from: number;
|
|
7
|
+
to: number;
|
|
8
|
+
price: number;
|
|
9
|
+
};
|
|
10
|
+
export type AegisEnginePoolCandleHistory = z.infer<typeof EngineMarketCandlesResponseSchema> & {
|
|
11
|
+
priceSegments?: EnginePoolPriceSegment[];
|
|
12
|
+
};
|
|
13
|
+
export type AegisEngineMarketReferenceHistory = z.infer<typeof EngineTokenMarketReferenceResponseSchema>;
|
|
14
|
+
export type AegisEngineRateHistory = z.infer<typeof RateHistoryResponseSchema>;
|
|
15
|
+
export type AegisEngineMarketSeriesInput = {
|
|
16
|
+
source: AegisEngineRestSource;
|
|
17
|
+
/** Pass the backend market ID verbatim; its partition key is case-sensitive. */
|
|
18
|
+
marketId: string;
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
/** Bind chart units to the selected market, including token decimals. */
|
|
21
|
+
expectedAssets?: {
|
|
22
|
+
baseAsset: {
|
|
23
|
+
address: string;
|
|
24
|
+
decimals: number;
|
|
25
|
+
};
|
|
26
|
+
quoteAsset: {
|
|
27
|
+
address: string;
|
|
28
|
+
decimals: number;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare class AegisEngineMarketDataReadError extends Error {
|
|
33
|
+
readonly code: 'invalid-query' | 'unavailable' | 'invalid-response' | 'response-limit';
|
|
34
|
+
readonly status: number;
|
|
35
|
+
readonly retryAfterSeconds: number | null;
|
|
36
|
+
readonly name = "AegisEngineMarketDataReadError";
|
|
37
|
+
constructor(code: 'invalid-query' | 'unavailable' | 'invalid-response' | 'response-limit', status?: number, retryAfterSeconds?: number | null);
|
|
38
|
+
}
|
|
39
|
+
export declare const ENGINE_MARKET_SERIES_TTL_MS = 30000;
|
|
40
|
+
/** Clear display history on an explicit host reset; never an execution cache. */
|
|
41
|
+
export declare function clearEngineMarketSeriesCache(): void;
|
|
42
|
+
/** Cached, bounded pool history. A missing feed never becomes another price source. */
|
|
43
|
+
export declare function fetchEngineMarketCandles(input: AegisEngineMarketSeriesInput & {
|
|
44
|
+
window?: AegisEnginePoolCandleHistory['window'];
|
|
45
|
+
}): Promise<AegisEnginePoolCandleHistory>;
|
|
46
|
+
/** Opt-in display history; older backends may still return the unchanged candle response. */
|
|
47
|
+
export declare function fetchEnginePoolPriceHistory(input: AegisEngineMarketSeriesInput): Promise<AegisEnginePoolCandleHistory>;
|
|
48
|
+
/** Shared covered price holds for charts and exported cards. */
|
|
49
|
+
export declare function enginePoolPriceSegments(history: AegisEnginePoolCandleHistory): readonly EnginePoolPriceSegment[];
|
|
50
|
+
/** Explicit reference history shares reads, but never shares a cache key with pool OHLC. */
|
|
51
|
+
export declare function fetchEngineMarketReferenceHistory(input: AegisEngineMarketSeriesInput & {
|
|
52
|
+
window?: AegisEngineMarketReferenceHistory['window'];
|
|
53
|
+
}): Promise<AegisEngineMarketReferenceHistory>;
|
|
54
|
+
export declare function fetchEngineRateHistory(input: AegisEngineMarketSeriesInput & {
|
|
55
|
+
window?: AegisEngineRateHistory['window'];
|
|
56
|
+
}): Promise<AegisEngineRateHistory>;
|
|
57
|
+
/** Keep every valid candle while breaking the plot across explicit data gaps.
|
|
58
|
+
* Render all segments on coverage.requestedFrom/requestedTo; do not rescale
|
|
59
|
+
* segments independently or manufacture OHLC for quiet buckets. */
|
|
60
|
+
export declare function splitEngineMarketCandleSegments(history: AegisEnginePoolCandleHistory): AegisEnginePoolCandleHistory['candles'][];
|
|
61
|
+
export { EngineMarketCandlesResponseSchema as engineMarketCandlesResponseSchema } from './marketSeriesSchemas.js';
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ENGINE_CANDLE_RESOLUTION_SECONDS: {
|
|
3
|
+
readonly '5m': 300;
|
|
4
|
+
readonly '1h': 3600;
|
|
5
|
+
readonly '1d': 86400;
|
|
6
|
+
};
|
|
7
|
+
export declare const ENGINE_CANDLE_WINDOW_PLANS: {
|
|
8
|
+
readonly '1d': {
|
|
9
|
+
readonly resolution: "5m";
|
|
10
|
+
readonly windowSeconds: 86400;
|
|
11
|
+
readonly bucketCount: 288;
|
|
12
|
+
};
|
|
13
|
+
readonly '7d': {
|
|
14
|
+
readonly resolution: "1h";
|
|
15
|
+
readonly windowSeconds: 604800;
|
|
16
|
+
readonly bucketCount: 168;
|
|
17
|
+
};
|
|
18
|
+
readonly '30d': {
|
|
19
|
+
readonly resolution: "1d";
|
|
20
|
+
readonly windowSeconds: 2592000;
|
|
21
|
+
readonly bucketCount: 30;
|
|
22
|
+
};
|
|
23
|
+
readonly '90d': {
|
|
24
|
+
readonly resolution: "1d";
|
|
25
|
+
readonly windowSeconds: 7776000;
|
|
26
|
+
readonly bucketCount: 90;
|
|
27
|
+
};
|
|
28
|
+
readonly '180d': {
|
|
29
|
+
readonly resolution: "1d";
|
|
30
|
+
readonly windowSeconds: 15552000;
|
|
31
|
+
readonly bucketCount: 180;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export declare const EngineCandleQueryParamsSchema: z.ZodObject<{
|
|
35
|
+
window: z.ZodDefault<z.ZodEnum<{
|
|
36
|
+
"7d": "7d";
|
|
37
|
+
"30d": "30d";
|
|
38
|
+
"90d": "90d";
|
|
39
|
+
"180d": "180d";
|
|
40
|
+
"1d": "1d";
|
|
41
|
+
}>>;
|
|
42
|
+
basis: z.ZodDefault<z.ZodEnum<{
|
|
43
|
+
pool: "pool";
|
|
44
|
+
token_market_reference: "token_market_reference";
|
|
45
|
+
}>>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export declare const EngineCandleMarketIdSchema: z.ZodString;
|
|
48
|
+
export declare const EngineMarketCandlesResponseSchema: z.ZodObject<{
|
|
49
|
+
schemaVersion: z.ZodLiteral<"2">;
|
|
50
|
+
chainId: z.ZodNumber;
|
|
51
|
+
marketId: z.ZodString;
|
|
52
|
+
poolId: z.ZodString;
|
|
53
|
+
poolManager: z.ZodString;
|
|
54
|
+
baseAsset: z.ZodObject<{
|
|
55
|
+
address: z.ZodString;
|
|
56
|
+
decimals: z.ZodNumber;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
quoteAsset: z.ZodObject<{
|
|
59
|
+
address: z.ZodString;
|
|
60
|
+
decimals: z.ZodNumber;
|
|
61
|
+
}, z.core.$strict>;
|
|
62
|
+
orientation: z.ZodLiteral<"quote_per_base">;
|
|
63
|
+
resolution: z.ZodEnum<{
|
|
64
|
+
"1d": "1d";
|
|
65
|
+
"5m": "5m";
|
|
66
|
+
"1h": "1h";
|
|
67
|
+
}>;
|
|
68
|
+
window: z.ZodEnum<{
|
|
69
|
+
"7d": "7d";
|
|
70
|
+
"30d": "30d";
|
|
71
|
+
"90d": "90d";
|
|
72
|
+
"180d": "180d";
|
|
73
|
+
"1d": "1d";
|
|
74
|
+
}>;
|
|
75
|
+
status: z.ZodEnum<{
|
|
76
|
+
ready: "ready";
|
|
77
|
+
no_data: "no_data";
|
|
78
|
+
partial: "partial";
|
|
79
|
+
}>;
|
|
80
|
+
candles: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
81
|
+
aggregation: z.ZodLiteral<"exact_swaps">;
|
|
82
|
+
swapCount: z.ZodNumber;
|
|
83
|
+
provenance: z.ZodObject<{
|
|
84
|
+
firstSwap: z.ZodObject<{
|
|
85
|
+
blockNumber: z.ZodNumber;
|
|
86
|
+
blockHash: z.ZodNullable<z.ZodString>;
|
|
87
|
+
transactionHash: z.ZodString;
|
|
88
|
+
logIndex: z.ZodNumber;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
lastSwap: z.ZodObject<{
|
|
91
|
+
blockNumber: z.ZodNumber;
|
|
92
|
+
blockHash: z.ZodNullable<z.ZodString>;
|
|
93
|
+
transactionHash: z.ZodString;
|
|
94
|
+
logIndex: z.ZodNumber;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
}, z.core.$strict>;
|
|
97
|
+
t: z.ZodNumber;
|
|
98
|
+
open: z.ZodNumber;
|
|
99
|
+
high: z.ZodNumber;
|
|
100
|
+
low: z.ZodNumber;
|
|
101
|
+
close: z.ZodNumber;
|
|
102
|
+
volumeToken0: z.ZodString;
|
|
103
|
+
volumeToken1: z.ZodString;
|
|
104
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
105
|
+
aggregation: z.ZodLiteral<"uniswap_pool_aggregate">;
|
|
106
|
+
txCount: z.ZodNumber;
|
|
107
|
+
volumeUSD: z.ZodOptional<z.ZodString>;
|
|
108
|
+
feesUSD: z.ZodOptional<z.ZodString>;
|
|
109
|
+
tvlUSD: z.ZodOptional<z.ZodString>;
|
|
110
|
+
t: z.ZodNumber;
|
|
111
|
+
open: z.ZodNumber;
|
|
112
|
+
high: z.ZodNumber;
|
|
113
|
+
low: z.ZodNumber;
|
|
114
|
+
close: z.ZodNumber;
|
|
115
|
+
volumeToken0: z.ZodString;
|
|
116
|
+
volumeToken1: z.ZodString;
|
|
117
|
+
}, z.core.$strict>], "aggregation">>;
|
|
118
|
+
candleCount: z.ZodNumber;
|
|
119
|
+
priceReference: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
120
|
+
kind: z.ZodLiteral<"pool_state">;
|
|
121
|
+
price: z.ZodNumber;
|
|
122
|
+
blockNumber: z.ZodNumber;
|
|
123
|
+
blockHash: z.ZodString;
|
|
124
|
+
timestamp: z.ZodNumber;
|
|
125
|
+
observedAt: z.ZodString;
|
|
126
|
+
}, z.core.$strict>>>;
|
|
127
|
+
coverage: z.ZodObject<{
|
|
128
|
+
requestedFrom: z.ZodNumber;
|
|
129
|
+
requestedTo: z.ZodNumber;
|
|
130
|
+
coverageStart: z.ZodNumber;
|
|
131
|
+
completedThrough: z.ZodNumber;
|
|
132
|
+
expectedBucketCount: z.ZodNumber;
|
|
133
|
+
completeBucketCount: z.ZodNumber;
|
|
134
|
+
}, z.core.$strict>;
|
|
135
|
+
gaps: z.ZodArray<z.ZodObject<{
|
|
136
|
+
from: z.ZodNumber;
|
|
137
|
+
to: z.ZodNumber;
|
|
138
|
+
reason: z.ZodEnum<{
|
|
139
|
+
indexing_gap: "indexing_gap";
|
|
140
|
+
invalid_row: "invalid_row";
|
|
141
|
+
}>;
|
|
142
|
+
}, z.core.$strict>>;
|
|
143
|
+
source: z.ZodEnum<{
|
|
144
|
+
uniswap_v4_subgraph: "uniswap_v4_subgraph";
|
|
145
|
+
pool_manager_rpc: "pool_manager_rpc";
|
|
146
|
+
}>;
|
|
147
|
+
asOf: z.ZodObject<{
|
|
148
|
+
blockNumber: z.ZodNullable<z.ZodNumber>;
|
|
149
|
+
blockHash: z.ZodNullable<z.ZodString>;
|
|
150
|
+
timestamp: z.ZodNullable<z.ZodNumber>;
|
|
151
|
+
}, z.core.$strict>;
|
|
152
|
+
freshness: z.ZodObject<{
|
|
153
|
+
status: z.ZodEnum<{
|
|
154
|
+
ready: "ready";
|
|
155
|
+
warming_up: "warming_up";
|
|
156
|
+
source_unavailable: "source_unavailable";
|
|
157
|
+
reorg_detected: "reorg_detected";
|
|
158
|
+
}>;
|
|
159
|
+
lastProcessedBlockNumber: z.ZodNullable<z.ZodNumber>;
|
|
160
|
+
lastProcessedBlockHash: z.ZodNullable<z.ZodString>;
|
|
161
|
+
confirmationDepth: z.ZodNumber;
|
|
162
|
+
observedAt: z.ZodString;
|
|
163
|
+
updatedAt: z.ZodString;
|
|
164
|
+
warnings: z.ZodArray<z.ZodEnum<{
|
|
165
|
+
"ENGINE-CANDLE-SOURCE-001": "ENGINE-CANDLE-SOURCE-001";
|
|
166
|
+
"ENGINE-CANDLE-SOURCE-002": "ENGINE-CANDLE-SOURCE-002";
|
|
167
|
+
"ENGINE-CANDLE-SOURCE-003": "ENGINE-CANDLE-SOURCE-003";
|
|
168
|
+
"ENGINE-CANDLE-SOURCE-004": "ENGINE-CANDLE-SOURCE-004";
|
|
169
|
+
"ENGINE-CANDLE-SOURCE-005": "ENGINE-CANDLE-SOURCE-005";
|
|
170
|
+
"ENGINE-CANDLE-SOURCE-006": "ENGINE-CANDLE-SOURCE-006";
|
|
171
|
+
"ENGINE-CANDLE-SOURCE-010": "ENGINE-CANDLE-SOURCE-010";
|
|
172
|
+
"ENGINE-CANDLE-REORG-001": "ENGINE-CANDLE-REORG-001";
|
|
173
|
+
}>>;
|
|
174
|
+
}, z.core.$strict>;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
export declare const EngineTokenMarketReferenceResponseSchema: z.ZodObject<{
|
|
177
|
+
schemaVersion: z.ZodLiteral<"1">;
|
|
178
|
+
basis: z.ZodLiteral<"token_market_reference">;
|
|
179
|
+
format: z.ZodLiteral<"line">;
|
|
180
|
+
method: z.ZodLiteral<"ratio_of_bucket_closes">;
|
|
181
|
+
sampleSynchronization: z.ZodLiteral<"bucket_only">;
|
|
182
|
+
usage: z.ZodLiteral<"display_only">;
|
|
183
|
+
chainId: z.ZodNumber;
|
|
184
|
+
marketId: z.ZodString;
|
|
185
|
+
poolId: z.ZodString;
|
|
186
|
+
baseAsset: z.ZodObject<{
|
|
187
|
+
address: z.ZodString;
|
|
188
|
+
decimals: z.ZodNumber;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
quoteAsset: z.ZodObject<{
|
|
191
|
+
address: z.ZodString;
|
|
192
|
+
decimals: z.ZodNumber;
|
|
193
|
+
}, z.core.$strict>;
|
|
194
|
+
orientation: z.ZodLiteral<"quote_per_base">;
|
|
195
|
+
resolution: z.ZodEnum<{
|
|
196
|
+
"1d": "1d";
|
|
197
|
+
"1h": "1h";
|
|
198
|
+
}>;
|
|
199
|
+
window: z.ZodEnum<{
|
|
200
|
+
"7d": "7d";
|
|
201
|
+
"30d": "30d";
|
|
202
|
+
"90d": "90d";
|
|
203
|
+
"180d": "180d";
|
|
204
|
+
}>;
|
|
205
|
+
status: z.ZodEnum<{
|
|
206
|
+
ready: "ready";
|
|
207
|
+
no_data: "no_data";
|
|
208
|
+
partial: "partial";
|
|
209
|
+
}>;
|
|
210
|
+
points: z.ZodArray<z.ZodObject<{
|
|
211
|
+
t: z.ZodNumber;
|
|
212
|
+
value: z.ZodNumber;
|
|
213
|
+
baseCloseUsd: z.ZodString;
|
|
214
|
+
quoteCloseUsd: z.ZodString;
|
|
215
|
+
baseSource: z.ZodObject<{
|
|
216
|
+
blockNumber: z.ZodNumber;
|
|
217
|
+
blockHash: z.ZodString;
|
|
218
|
+
timestamp: z.ZodNumber;
|
|
219
|
+
observedAt: z.ZodString;
|
|
220
|
+
}, z.core.$strict>;
|
|
221
|
+
quoteSource: z.ZodObject<{
|
|
222
|
+
blockNumber: z.ZodNumber;
|
|
223
|
+
blockHash: z.ZodString;
|
|
224
|
+
timestamp: z.ZodNumber;
|
|
225
|
+
observedAt: z.ZodString;
|
|
226
|
+
}, z.core.$strict>;
|
|
227
|
+
}, z.core.$strict>>;
|
|
228
|
+
pointCount: z.ZodNumber;
|
|
229
|
+
components: z.ZodTuple<[z.ZodObject<{
|
|
230
|
+
role: z.ZodEnum<{
|
|
231
|
+
quote: "quote";
|
|
232
|
+
base: "base";
|
|
233
|
+
}>;
|
|
234
|
+
chainId: z.ZodNumber;
|
|
235
|
+
address: z.ZodString;
|
|
236
|
+
decimals: z.ZodNumber;
|
|
237
|
+
resolution: z.ZodEnum<{
|
|
238
|
+
"1d": "1d";
|
|
239
|
+
"1h": "1h";
|
|
240
|
+
}>;
|
|
241
|
+
sourceDataset: z.ZodEnum<{
|
|
242
|
+
TokenHourData: "TokenHourData";
|
|
243
|
+
TokenDayData: "TokenDayData";
|
|
244
|
+
}>;
|
|
245
|
+
status: z.ZodEnum<{
|
|
246
|
+
ready: "ready";
|
|
247
|
+
warming_up: "warming_up";
|
|
248
|
+
source_unavailable: "source_unavailable";
|
|
249
|
+
}>;
|
|
250
|
+
independence: z.ZodLiteral<"unknown">;
|
|
251
|
+
independenceReason: z.ZodLiteral<"historical_price_venue_untracked">;
|
|
252
|
+
coverageStart: z.ZodNumber;
|
|
253
|
+
completedThrough: z.ZodNumber;
|
|
254
|
+
sourceHead: z.ZodNullable<z.ZodObject<{
|
|
255
|
+
blockNumber: z.ZodNumber;
|
|
256
|
+
blockHash: z.ZodString;
|
|
257
|
+
timestamp: z.ZodNumber;
|
|
258
|
+
observedAt: z.ZodString;
|
|
259
|
+
}, z.core.$strict>>;
|
|
260
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
261
|
+
role: z.ZodEnum<{
|
|
262
|
+
quote: "quote";
|
|
263
|
+
base: "base";
|
|
264
|
+
}>;
|
|
265
|
+
chainId: z.ZodNumber;
|
|
266
|
+
address: z.ZodString;
|
|
267
|
+
decimals: z.ZodNumber;
|
|
268
|
+
resolution: z.ZodEnum<{
|
|
269
|
+
"1d": "1d";
|
|
270
|
+
"1h": "1h";
|
|
271
|
+
}>;
|
|
272
|
+
sourceDataset: z.ZodEnum<{
|
|
273
|
+
TokenHourData: "TokenHourData";
|
|
274
|
+
TokenDayData: "TokenDayData";
|
|
275
|
+
}>;
|
|
276
|
+
status: z.ZodEnum<{
|
|
277
|
+
ready: "ready";
|
|
278
|
+
warming_up: "warming_up";
|
|
279
|
+
source_unavailable: "source_unavailable";
|
|
280
|
+
}>;
|
|
281
|
+
independence: z.ZodLiteral<"unknown">;
|
|
282
|
+
independenceReason: z.ZodLiteral<"historical_price_venue_untracked">;
|
|
283
|
+
coverageStart: z.ZodNumber;
|
|
284
|
+
completedThrough: z.ZodNumber;
|
|
285
|
+
sourceHead: z.ZodNullable<z.ZodObject<{
|
|
286
|
+
blockNumber: z.ZodNumber;
|
|
287
|
+
blockHash: z.ZodString;
|
|
288
|
+
timestamp: z.ZodNumber;
|
|
289
|
+
observedAt: z.ZodString;
|
|
290
|
+
}, z.core.$strict>>;
|
|
291
|
+
}, z.core.$strict>], null>;
|
|
292
|
+
gaps: z.ZodArray<z.ZodObject<{
|
|
293
|
+
from: z.ZodNumber;
|
|
294
|
+
to: z.ZodNumber;
|
|
295
|
+
reason: z.ZodEnum<{
|
|
296
|
+
missing_component: "missing_component";
|
|
297
|
+
invalid_component: "invalid_component";
|
|
298
|
+
outside_coverage: "outside_coverage";
|
|
299
|
+
}>;
|
|
300
|
+
}, z.core.$strict>>;
|
|
301
|
+
coverage: z.ZodObject<{
|
|
302
|
+
requestedFrom: z.ZodNumber;
|
|
303
|
+
requestedTo: z.ZodNumber;
|
|
304
|
+
expectedBucketCount: z.ZodNumber;
|
|
305
|
+
observedPairCount: z.ZodNumber;
|
|
306
|
+
}, z.core.$strict>;
|
|
307
|
+
source: z.ZodLiteral<"uniswap_v4_subgraph">;
|
|
308
|
+
attribution: z.ZodObject<{
|
|
309
|
+
label: z.ZodLiteral<"Uniswap V4 subgraph">;
|
|
310
|
+
url: z.ZodLiteral<"https://github.com/Uniswap/v4-subgraph">;
|
|
311
|
+
}, z.core.$strict>;
|
|
312
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Hex } from 'viem';
|
|
2
|
+
import { type AegisEngineChainAddresses } from './registry.js';
|
|
3
|
+
import type { AegisEngineMarket } from './types.js';
|
|
4
|
+
type PoolKey = AegisEngineMarket['poolKey'];
|
|
5
|
+
export declare function sameEngineMarketId(left: string, right: string): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Checks the market-controlled execution identity without making an RPC call.
|
|
8
|
+
* Call this before reading allowances, quoting, or opening a wallet request.
|
|
9
|
+
*/
|
|
10
|
+
export declare function assertEngineMarketIdentity(market: AegisEngineMarket): void;
|
|
11
|
+
/** Resolves all signing-adjacent addresses from the SDK-shipped registry. */
|
|
12
|
+
export declare function assertTrustedEngineMarket(market: AegisEngineMarket, options?: {
|
|
13
|
+
vaultRegistry?: boolean;
|
|
14
|
+
quoter?: boolean;
|
|
15
|
+
permit2?: boolean;
|
|
16
|
+
}): AegisEngineChainAddresses;
|
|
17
|
+
/** Rebinds a hydrated SDK frame to the exact reviewed REST market. */
|
|
18
|
+
export declare function assertHydratedEngineMarket(args: {
|
|
19
|
+
market: AegisEngineMarket;
|
|
20
|
+
chainId: number;
|
|
21
|
+
poolId: Hex;
|
|
22
|
+
poolKey: PoolKey;
|
|
23
|
+
decimals0?: number;
|
|
24
|
+
decimals1?: number;
|
|
25
|
+
}): void;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { AegisEnginePosition, AegisEngineRestSource, AegisEngineTradePositionStrategy } from './types.js';
|
|
3
|
+
export declare const engineOpeningExecutionResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
4
|
+
schemaVersion: z.ZodLiteral<"1">;
|
|
5
|
+
chainId: z.ZodNumber;
|
|
6
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
7
|
+
account: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
8
|
+
status: z.ZodLiteral<"reconciled">;
|
|
9
|
+
execution: z.ZodObject<{
|
|
10
|
+
basis: z.ZodLiteral<"receipt-reconciled-opening-swap-leg">;
|
|
11
|
+
poolId: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
12
|
+
vaultId: z.ZodString;
|
|
13
|
+
owner: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
14
|
+
key: z.ZodObject<{
|
|
15
|
+
currency0: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
16
|
+
currency1: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
block: z.ZodObject<{
|
|
19
|
+
canonicality: z.ZodLiteral<"rpc-checked-at-read">;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
swap: z.ZodObject<{
|
|
22
|
+
inputCurrency: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
23
|
+
outputCurrency: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
24
|
+
inputRaw: z.ZodString;
|
|
25
|
+
outputRaw: z.ZodString;
|
|
26
|
+
inputBasis: z.ZodLiteral<"pool-input-plus-hook-input-fee">;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
schemaVersion: z.ZodLiteral<"1">;
|
|
31
|
+
chainId: z.ZodNumber;
|
|
32
|
+
txHash: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
33
|
+
account: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
34
|
+
status: z.ZodLiteral<"unavailable">;
|
|
35
|
+
}, z.core.$loose>]>;
|
|
36
|
+
export declare function fetchEngineOpeningEntry({ source, position, strategy, signal }: {
|
|
37
|
+
source: AegisEngineRestSource;
|
|
38
|
+
position: Pick<AegisEnginePosition, 'chainId' | 'account' | 'poolId' | 'vaultId' | 'token0' | 'token1'>;
|
|
39
|
+
strategy: Pick<AegisEngineTradePositionStrategy, 'openTxHash' | 'poolId'>;
|
|
40
|
+
signal?: AbortSignal;
|
|
41
|
+
}): Promise<number | null>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const RateHistoryPointSchema: z.ZodObject<{
|
|
3
|
+
t: z.ZodNumber;
|
|
4
|
+
observedAt: z.ZodString;
|
|
5
|
+
evmBlockNumber: z.ZodNumber;
|
|
6
|
+
borrowAprPct: z.ZodNullable<z.ZodNumber>;
|
|
7
|
+
lendAprPct: z.ZodNullable<z.ZodNumber>;
|
|
8
|
+
lendingRateBasis: z.ZodLiteral<"simple-borrow-interest-apr">;
|
|
9
|
+
utilizationPct: z.ZodNullable<z.ZodNumber>;
|
|
10
|
+
ratePerSecondWad: z.ZodNullable<z.ZodString>;
|
|
11
|
+
fullUtilizationRate: z.ZodNullable<z.ZodString>;
|
|
12
|
+
sharePriceWad: z.ZodNullable<z.ZodString>;
|
|
13
|
+
rateObservation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
+
status: z.ZodLiteral<"verified">;
|
|
15
|
+
basis: z.ZodLiteral<"irm-accrual-preview">;
|
|
16
|
+
rpcBlockNumber: z.ZodNumber;
|
|
17
|
+
blockHash: z.ZodString;
|
|
18
|
+
observedAt: z.ZodString;
|
|
19
|
+
elapsedSeconds: z.ZodString;
|
|
20
|
+
canonicality: z.ZodLiteral<"rpc-checked-at-read">;
|
|
21
|
+
finality: z.ZodLiteral<"not-a-finality-verdict">;
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
|
+
status: z.ZodLiteral<"unavailable">;
|
|
24
|
+
reason: z.ZodEnum<{
|
|
25
|
+
"legacy-unpinned": "legacy-unpinned";
|
|
26
|
+
"invalid-provenance": "invalid-provenance";
|
|
27
|
+
}>;
|
|
28
|
+
}, z.core.$strict>], "status">;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
export declare const RateHistoryResponseSchema: z.ZodObject<{
|
|
31
|
+
schemaVersion: z.ZodLiteral<"1">;
|
|
32
|
+
marketId: z.ZodString;
|
|
33
|
+
resolution: z.ZodLiteral<"12h">;
|
|
34
|
+
window: z.ZodEnum<{
|
|
35
|
+
"7d": "7d";
|
|
36
|
+
"30d": "30d";
|
|
37
|
+
"60d": "60d";
|
|
38
|
+
}>;
|
|
39
|
+
status: z.ZodEnum<{
|
|
40
|
+
ready: "ready";
|
|
41
|
+
warming_up: "warming_up";
|
|
42
|
+
no_data: "no_data";
|
|
43
|
+
partial: "partial";
|
|
44
|
+
}>;
|
|
45
|
+
pointCount: z.ZodNumber;
|
|
46
|
+
points: z.ZodArray<z.ZodObject<{
|
|
47
|
+
t: z.ZodNumber;
|
|
48
|
+
observedAt: z.ZodString;
|
|
49
|
+
evmBlockNumber: z.ZodNumber;
|
|
50
|
+
borrowAprPct: z.ZodNullable<z.ZodNumber>;
|
|
51
|
+
lendAprPct: z.ZodNullable<z.ZodNumber>;
|
|
52
|
+
lendingRateBasis: z.ZodLiteral<"simple-borrow-interest-apr">;
|
|
53
|
+
utilizationPct: z.ZodNullable<z.ZodNumber>;
|
|
54
|
+
ratePerSecondWad: z.ZodNullable<z.ZodString>;
|
|
55
|
+
fullUtilizationRate: z.ZodNullable<z.ZodString>;
|
|
56
|
+
sharePriceWad: z.ZodNullable<z.ZodString>;
|
|
57
|
+
rateObservation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
58
|
+
status: z.ZodLiteral<"verified">;
|
|
59
|
+
basis: z.ZodLiteral<"irm-accrual-preview">;
|
|
60
|
+
rpcBlockNumber: z.ZodNumber;
|
|
61
|
+
blockHash: z.ZodString;
|
|
62
|
+
observedAt: z.ZodString;
|
|
63
|
+
elapsedSeconds: z.ZodString;
|
|
64
|
+
canonicality: z.ZodLiteral<"rpc-checked-at-read">;
|
|
65
|
+
finality: z.ZodLiteral<"not-a-finality-verdict">;
|
|
66
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
67
|
+
status: z.ZodLiteral<"unavailable">;
|
|
68
|
+
reason: z.ZodEnum<{
|
|
69
|
+
"legacy-unpinned": "legacy-unpinned";
|
|
70
|
+
"invalid-provenance": "invalid-provenance";
|
|
71
|
+
}>;
|
|
72
|
+
}, z.core.$strict>], "status">;
|
|
73
|
+
}, z.core.$strict>>;
|
|
74
|
+
updatedAt: z.ZodNullable<z.ZodString>;
|
|
75
|
+
coverage: z.ZodObject<{
|
|
76
|
+
fromBucket: z.ZodNumber;
|
|
77
|
+
throughClosedBucket: z.ZodNumber;
|
|
78
|
+
expectedClosedBuckets: z.ZodNumber;
|
|
79
|
+
firstObservedBucket: z.ZodNullable<z.ZodNumber>;
|
|
80
|
+
leadingMissingBucketCount: z.ZodNumber;
|
|
81
|
+
presentClosedBuckets: z.ZodNumber;
|
|
82
|
+
missingBuckets: z.ZodArray<z.ZodNumber>;
|
|
83
|
+
missingRateBuckets: z.ZodArray<z.ZodNumber>;
|
|
84
|
+
verifiedRatePoints: z.ZodNumber;
|
|
85
|
+
legacyRatePoints: z.ZodNumber;
|
|
86
|
+
invalidRows: z.ZodNumber;
|
|
87
|
+
}, z.core.$strict>;
|
|
88
|
+
}, z.core.$strict>;
|
package/dist/engine/reads.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Address } from 'viem';
|
|
2
2
|
import { UserFacingError } from '../errors.js';
|
|
3
3
|
import type { AegisEngineBorrowQuoteContext, AegisEngineMarket, AegisEngineMarketMark, AegisEngineMarketReadInput, AegisEngineMarketSnapshot, AegisEnginePositionsHydration, AegisEnginePositionsHydrationInput, AegisEngineVaultActivityEntry } from './types.js';
|
|
4
4
|
export declare class AegisEngineMarketNotReadyError extends UserFacingError {
|