@aegis-engine/core 0.13.1 → 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.
@@ -206,7 +206,7 @@ export type AegisEngineLendSharesPosition = {
206
206
  };
207
207
  };
208
208
  export type AegisEnginePositionsSnapshot = {
209
- schemaVersion: '1' | '2';
209
+ schemaVersion: '1' | '2' | '3';
210
210
  chainId: number;
211
211
  account: Address;
212
212
  positions: AegisEnginePosition[];
@@ -225,6 +225,7 @@ export type AegisEnginePositionsSnapshot = {
225
225
  freshness: {
226
226
  source: 'subgraph' | 'static';
227
227
  blockNumber?: number | null;
228
+ blockHash?: Hex;
228
229
  positionCount: number;
229
230
  };
230
231
  };
@@ -360,6 +361,7 @@ export type AegisEnginePositionActivitySnapshot = {
360
361
  source: 'subgraph' | 'static';
361
362
  /** Oldest indexed block across all pages; null when any page omitted it. */
362
363
  blockNumber: number | null;
364
+ blockHash?: Hex;
363
365
  };
364
366
  };
365
367
  /** Off-chain opening intent for one confirmed Long/Short transaction. The
@@ -464,6 +466,7 @@ export type AegisEnginePositionsHydration = {
464
466
  export type AegisEnginePositionsHydrationInput = {
465
467
  publicClient: PublicClient;
466
468
  chainId: number;
469
+ hook?: Address;
467
470
  expectedAccount: Address;
468
471
  positions: readonly AegisEnginePosition[];
469
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';