@aegis-engine/core 0.13.0 → 0.14.0
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/account.js +1 -129
- package/dist/aegis-core.js +71 -10384
- package/dist/contract/generated/aegis-swap.d.ts +310 -5
- package/dist/contract/generated/market-data.d.ts +310 -5
- package/dist/engine/account/activitySchemas.d.ts +1 -0
- package/dist/engine/account/discoverySchemas.d.ts +101 -0
- package/dist/engine/account/portfolioSchemas.d.ts +2 -0
- package/dist/engine/account/transactionSchemas.d.ts +1 -0
- package/dist/engine/account/transport.d.ts +6 -0
- package/dist/engine/account/types.d.ts +1 -0
- package/dist/engine/dataSource.d.ts +4 -1
- package/dist/engine/registry.d.ts +15 -0
- package/dist/engine/sdkDeployment.d.ts +16 -0
- package/dist/engine/types.d.ts +5 -1
- package/dist/index.d.ts +2 -0
- package/dist/sdkRuntime-CvLRgf5w.js +1593 -0
- package/dist/transactionHistory-BGpe2c7k.js +149 -0
- package/package.json +2 -2
- package/dist/sdkRuntime-Dra77GTA.js +0 -18757
- package/dist/transactionHistory-CFVVYJeo.js +0 -6994
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { AegisDeployment } from '@labs-solo/aegis-engine-sdk';
|
|
2
|
+
import type { Address } from 'viem';
|
|
3
|
+
export declare function trustedEngineSdkDeploymentForMarket(market: {
|
|
4
|
+
chainId: number;
|
|
5
|
+
poolKey: {
|
|
6
|
+
hooks: Address;
|
|
7
|
+
};
|
|
8
|
+
}): AegisDeployment | null;
|
|
9
|
+
export declare function trustedEngineSdkOverrideForMarket(market: {
|
|
10
|
+
chainId: number;
|
|
11
|
+
poolKey: {
|
|
12
|
+
hooks: Address;
|
|
13
|
+
};
|
|
14
|
+
}): {
|
|
15
|
+
deployment?: AegisDeployment;
|
|
16
|
+
};
|
package/dist/engine/types.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export type AegisEngineMarket = {
|
|
|
62
62
|
chainId: number;
|
|
63
63
|
source: AegisEngineMarketSource;
|
|
64
64
|
status: AegisEngineMarketStatus;
|
|
65
|
+
viewOnly?: boolean;
|
|
65
66
|
displayName: string;
|
|
66
67
|
labels?: string[];
|
|
67
68
|
poolId: Hex;
|
|
@@ -205,7 +206,7 @@ export type AegisEngineLendSharesPosition = {
|
|
|
205
206
|
};
|
|
206
207
|
};
|
|
207
208
|
export type AegisEnginePositionsSnapshot = {
|
|
208
|
-
schemaVersion: '1' | '2';
|
|
209
|
+
schemaVersion: '1' | '2' | '3';
|
|
209
210
|
chainId: number;
|
|
210
211
|
account: Address;
|
|
211
212
|
positions: AegisEnginePosition[];
|
|
@@ -224,6 +225,7 @@ export type AegisEnginePositionsSnapshot = {
|
|
|
224
225
|
freshness: {
|
|
225
226
|
source: 'subgraph' | 'static';
|
|
226
227
|
blockNumber?: number | null;
|
|
228
|
+
blockHash?: Hex;
|
|
227
229
|
positionCount: number;
|
|
228
230
|
};
|
|
229
231
|
};
|
|
@@ -359,6 +361,7 @@ export type AegisEnginePositionActivitySnapshot = {
|
|
|
359
361
|
source: 'subgraph' | 'static';
|
|
360
362
|
/** Oldest indexed block across all pages; null when any page omitted it. */
|
|
361
363
|
blockNumber: number | null;
|
|
364
|
+
blockHash?: Hex;
|
|
362
365
|
};
|
|
363
366
|
};
|
|
364
367
|
/** Off-chain opening intent for one confirmed Long/Short transaction. The
|
|
@@ -463,6 +466,7 @@ export type AegisEnginePositionsHydration = {
|
|
|
463
466
|
export type AegisEnginePositionsHydrationInput = {
|
|
464
467
|
publicClient: PublicClient;
|
|
465
468
|
chainId: number;
|
|
469
|
+
hook?: Address;
|
|
466
470
|
expectedAccount: Address;
|
|
467
471
|
positions: readonly AegisEnginePosition[];
|
|
468
472
|
lendPositions: readonly AegisEngineLendSharesPosition[];
|
package/dist/index.d.ts
CHANGED
|
@@ -48,3 +48,5 @@ export type { AegisContractGuardCode } from './contract/index.js';
|
|
|
48
48
|
export { engineMarketsRestResponseSchema } from './engine/restSchemas.js';
|
|
49
49
|
export * from './engine/index.js';
|
|
50
50
|
export { PortfolioQuerySchema, PortfolioPageQuerySchema, PortfolioResponseSchema, PortfolioPageSchema } from './engine/account/portfolioSchemas.js';
|
|
51
|
+
export { EngineAccountDiscoveryResponseSchema } from './engine/account/discoverySchemas.js';
|
|
52
|
+
export { ActivityPageResponseSchema } from './engine/account/activitySchemas.js';
|