@aegis-engine/core 0.8.1 → 0.9.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/README.md +8 -2
- package/dist/account.js +2 -2
- package/dist/aegis-core.js +2547 -2459
- 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 +3 -0
- package/dist/contract/backendClient.d.ts +6 -2
- package/dist/contract/generated/aegis-swap.d.ts +167 -12
- package/dist/contract/schemas.d.ts +13 -3
- package/dist/engine/marketSeries.d.ts +264 -0
- package/dist/index.d.ts +2 -2
- package/dist/{sdkRuntime-BLOOWtPv.js → sdkRuntime-CIhmlpGl.js} +1 -1
- package/dist/{transactionHistory-1Zl2KCcV.js → transactionHistory-BhNsDpNJ.js} +118 -114
- package/dist/wallet.d.ts +2 -0
- package/package.json +1 -1
package/dist/config/chains.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { AegisSwapChainConfig, AegisSwapChainConfigInput } from './types.js
|
|
|
3
3
|
export declare function getExplorerUrl(hash: Hex, chain: AegisSwapChainConfig): string;
|
|
4
4
|
export declare const AEGIS_SWAP_MAINNET_CHAIN: AegisSwapChainConfig;
|
|
5
5
|
export declare const AEGIS_SWAP_BSC_CHAIN: AegisSwapChainConfig;
|
|
6
|
+
export declare const AEGIS_SWAP_INK_CHAIN: AegisSwapChainConfig;
|
|
6
7
|
export declare const AEGIS_SWAP_CHAINS: Record<number, AegisSwapChainConfig>;
|
|
7
8
|
export declare function createAegisSwapChainConfig(input: AegisSwapChainConfigInput & {
|
|
8
9
|
chainId: number;
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { type Address } from 'viem';
|
|
2
2
|
export declare const AEGIS_SWAP_CHAIN_ID = 1;
|
|
3
3
|
export declare const AEGIS_SWAP_BSC_CHAIN_ID = 56;
|
|
4
|
+
export declare const AEGIS_SWAP_INK_CHAIN_ID = 57073;
|
|
4
5
|
export declare const AEGIS_SWAP_ROUTER: `0x${string}`;
|
|
5
6
|
export declare const AEGIS_SWAP_BSC_ROUTER: `0x${string}`;
|
|
7
|
+
export declare const AEGIS_SWAP_INK_ROUTER: `0x${string}`;
|
|
6
8
|
export declare const AEGIS_SWAP_TRUSTED_ROUTERS_BY_CHAIN: Partial<Record<number, readonly Address[]>>;
|
|
7
9
|
export declare const AEGIS_SWAP_HOOK: `0x${string}`;
|
|
8
10
|
export declare const AEGIS_SWAP_BSC_HOOK: `0x${string}`;
|
|
11
|
+
export declare const AEGIS_SWAP_INK_HOOK: `0x${string}`;
|
|
9
12
|
export declare const AEGIS_DYNAMIC_FEE_FLAG = 8388608;
|
|
10
13
|
export declare const AEGIS_SWAP_DEFAULT_FEE_BPS = 50;
|
|
11
14
|
export declare const AEGIS_SWAP_DEFAULT_FEE_RECIPIENT: `0x${string}`;
|
|
12
15
|
export declare const AEGIS_SWAP_DEFAULT_RPC_URLS: string[];
|
|
13
16
|
export declare const AEGIS_SWAP_BSC_RPC_URLS: string[];
|
|
17
|
+
export declare const AEGIS_SWAP_INK_RPC_URLS: string[];
|
|
14
18
|
export declare const AEGIS_SWAP_DEFAULT_METADATA_ENDPOINT = "https://aegis.markets/graphql/meta";
|
|
15
19
|
export declare const AGGREGATED_SWAP_FEE_BPS = 50;
|
|
16
20
|
export declare const AGGREGATED_SWAP_FEE_RECIPIENT: `0x${string}`;
|
package/dist/config/tokens.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { AegisSwapBscTokenSymbol, AegisSwapBuiltInTokenSymbol, AegisSwapToken, AggregatedSwapDefaultTokenSymbol, AggregatedSwapToken, AggregatedSwapWolfGameTokenSymbol } from './types.js';
|
|
1
|
+
import type { AegisSwapBscTokenSymbol, AegisSwapBuiltInTokenSymbol, AegisSwapInkTokenSymbol, AegisSwapToken, AggregatedSwapDefaultTokenSymbol, AggregatedSwapToken, AggregatedSwapWolfGameTokenSymbol } from './types.js';
|
|
2
2
|
export declare const AEGIS_SWAP_TOKENS: Record<AegisSwapBuiltInTokenSymbol, AegisSwapToken>;
|
|
3
3
|
export declare const AEGIS_SWAP_BSC_TOKENS: Record<AegisSwapBscTokenSymbol, AegisSwapToken>;
|
|
4
|
+
export declare const AEGIS_SWAP_INK_TOKENS: Record<AegisSwapInkTokenSymbol, AegisSwapToken>;
|
|
4
5
|
export declare const AGGREGATED_SWAP_DEFAULT_TOKENS: Record<AggregatedSwapDefaultTokenSymbol, AggregatedSwapToken>;
|
|
5
6
|
export declare const AGGREGATED_SWAP_WOLFGAME_TOKENS: Record<AggregatedSwapWolfGameTokenSymbol, AggregatedSwapToken>;
|
|
6
7
|
export declare const AGGREGATED_SWAP_DEFAULT_TOKEN_LIST: AegisSwapToken[];
|
package/dist/config/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Address, Chain, Hex } from 'viem';
|
|
2
2
|
export type AegisSwapBuiltInTokenSymbol = 'USDC' | 'WATER' | 'WOOD' | 'GRASS' | 'STONE';
|
|
3
3
|
export type AegisSwapBscTokenSymbol = 'BNB' | 'BNCB' | 'QQQB' | 'NVDAB' | 'USDC';
|
|
4
|
+
export type AegisSwapInkTokenSymbol = 'USDT0' | 'USDC' | 'USDG';
|
|
4
5
|
export type AegisSwapTokenSymbol = string;
|
|
5
6
|
export type AegisSwapFeeConfig = {
|
|
6
7
|
bps: number;
|
|
@@ -66,6 +67,8 @@ export type AegisSwapChainConfig = {
|
|
|
66
67
|
quoter: Address;
|
|
67
68
|
v4Contracts: AegisSwapUniswapV4Contracts;
|
|
68
69
|
rpcUrls: string[];
|
|
70
|
+
/** URLs offered to wallet_addEthereumChain (first is the one wallets save). Defaults to the chain's public RPCs. */
|
|
71
|
+
walletRpcUrls?: string[];
|
|
69
72
|
explorerTxUrl?: (hash: Hex) => string;
|
|
70
73
|
poolExplorerUrl?: (poolId: Hex, market: AegisSwapMarket) => string;
|
|
71
74
|
metadataEndpoint?: string | null;
|
|
@@ -31,11 +31,15 @@ export type AegisBackendAddressAllowlist = {
|
|
|
31
31
|
routers: Address[];
|
|
32
32
|
spenders: Address[];
|
|
33
33
|
};
|
|
34
|
-
export type AegisBackendContractsByChain = {
|
|
34
|
+
export type AegisBackendContractsByChain = Omit<{
|
|
35
35
|
[ChainId in keyof AegisBackendWireConfig['contracts']]: AegisBackendContractRegistry;
|
|
36
|
+
}, 57073> & {
|
|
37
|
+
57073?: AegisBackendContractRegistry;
|
|
36
38
|
};
|
|
37
|
-
export type AegisBackendAllowlistsByChain = {
|
|
39
|
+
export type AegisBackendAllowlistsByChain = Omit<{
|
|
38
40
|
[ChainId in keyof AegisBackendWireConfig['allowlists']]: AegisBackendAddressAllowlist;
|
|
41
|
+
}, 57073> & {
|
|
42
|
+
57073?: AegisBackendAddressAllowlist;
|
|
39
43
|
};
|
|
40
44
|
export type AegisBackendFeeConfig = Omit<AegisBackendWireConfig['fee'], 'recipient' | 'outputFeeBps'> & {
|
|
41
45
|
recipient: Address;
|
|
@@ -186,7 +186,7 @@ export interface paths {
|
|
|
186
186
|
};
|
|
187
187
|
/**
|
|
188
188
|
* List curated Aegis swap markets for a chain
|
|
189
|
-
* @description Returns the backend-owned source of truth for market status, labels, pool keys, display metrics, and warnings. Metrics are display data and are not execution inputs.
|
|
189
|
+
* @description Returns the backend-owned source of truth for market status, labels, pool keys, display metrics, and warnings. Metrics are display data and are not execution inputs. Swap status requires a visible, unpaused market; on Ink it also requires a positive recorded uint128 V4 liquidity snapshot.
|
|
190
190
|
*/
|
|
191
191
|
get: operations["listMarkets"];
|
|
192
192
|
put?: never;
|
|
@@ -197,6 +197,26 @@ export interface paths {
|
|
|
197
197
|
patch?: never;
|
|
198
198
|
trace?: never;
|
|
199
199
|
};
|
|
200
|
+
"/v1/markets/v2": {
|
|
201
|
+
parameters: {
|
|
202
|
+
query?: never;
|
|
203
|
+
header?: never;
|
|
204
|
+
path?: never;
|
|
205
|
+
cookie?: never;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* List curated Aegis v4 pools with explicit metric availability
|
|
209
|
+
* @description Opt-in market reads for all curated-data chains. Unavailable or unproven metrics are null; measured zero remains zero. TVL availability is independent of rolling history. A retained Lens TVL marked stale keeps its last value; observations.tvl reports its source time (null when unknown) and the recorded stale flag (any recorded value other than false is stale), not an age-based freshness verdict. observations is optional and additive: clients must tolerate its absence. Fee APR and indexed history require explicit v4HistoryAvailable=true or, when the flag is absent, v4-subgraph provenance. Ink volume can independently use qualified first-party PoolManager RPC volume (producer policy version 1, window end at most three hours old); its USD valuation is an estimate, unqualified values remain null, and it does not enable fee APR. Frozen /v1/markets serves the same qualified Ink volume, else 0. Data-only chains return disabled swap status and swap-unavailable; this route does not enable quoting or execution. Swap status requires a visible, unpaused market; on Ink it also requires a positive recorded uint128 V4 liquidity snapshot. feeApr7d is annualized percentage points and dynamic-fee APR is an estimate, not realized LP earnings. Existing core clients must continue using /v1/markets until they support this nullable contract.
|
|
210
|
+
*/
|
|
211
|
+
get: operations["listMarketsV2"];
|
|
212
|
+
put?: never;
|
|
213
|
+
post?: never;
|
|
214
|
+
delete?: never;
|
|
215
|
+
options?: never;
|
|
216
|
+
head?: never;
|
|
217
|
+
patch?: never;
|
|
218
|
+
trace?: never;
|
|
219
|
+
};
|
|
200
220
|
"/v1/engine/markets": {
|
|
201
221
|
parameters: {
|
|
202
222
|
query?: never;
|
|
@@ -528,7 +548,7 @@ export interface paths {
|
|
|
528
548
|
put?: never;
|
|
529
549
|
/**
|
|
530
550
|
* Create an indicative swap quote
|
|
531
|
-
* @description Returns a fast, non-executable price estimate for first paint. Clients must re-quote on-chain before building or signing a transaction. Only aegis-direct-v4 markets are quoted by this backend; Kyber is quoted client-side.
|
|
551
|
+
* @description Returns a fast, non-executable price estimate for first paint. Clients must re-quote on-chain before building or signing a transaction. Only aegis-direct-v4 markets are quoted by this backend; Kyber is quoted client-side. On Ink, returns 400 Market is disabled for swaps when the market is not enabled; other chains return 200 indicative estimates for disabled markets.
|
|
532
552
|
*/
|
|
533
553
|
post: operations["createIndicativeSwapQuote"];
|
|
534
554
|
delete?: never;
|
|
@@ -582,7 +602,7 @@ export interface components {
|
|
|
582
602
|
* @example 130
|
|
583
603
|
* @enum {string}
|
|
584
604
|
*/
|
|
585
|
-
ChainIdQuery: "1" | "56" | "130" | "8453";
|
|
605
|
+
ChainIdQuery: "1" | "56" | "130" | "8453" | "57073";
|
|
586
606
|
/**
|
|
587
607
|
* @example 4663
|
|
588
608
|
* @enum {string}
|
|
@@ -592,7 +612,7 @@ export interface components {
|
|
|
592
612
|
* @example 4663
|
|
593
613
|
* @enum {string}
|
|
594
614
|
*/
|
|
595
|
-
DataChainIdQuery: "1" | "56" | "130" | "8453" | "
|
|
615
|
+
DataChainIdQuery: "1" | "56" | "130" | "8453" | "57073" | "4663";
|
|
596
616
|
HealthResponse: {
|
|
597
617
|
/** @enum {boolean} */
|
|
598
618
|
ok: true;
|
|
@@ -609,7 +629,7 @@ export interface components {
|
|
|
609
629
|
* @example 130
|
|
610
630
|
* @enum {integer}
|
|
611
631
|
*/
|
|
612
|
-
chainId: 1 | 56 | 130 | 8453;
|
|
632
|
+
chainId: 1 | 56 | 130 | 8453 | 57073;
|
|
613
633
|
slug: string;
|
|
614
634
|
name: string;
|
|
615
635
|
};
|
|
@@ -652,6 +672,12 @@ export interface components {
|
|
|
652
672
|
v4Quoter?: string;
|
|
653
673
|
v4PoolManager?: string;
|
|
654
674
|
};
|
|
675
|
+
57073: {
|
|
676
|
+
aegisRouter?: string;
|
|
677
|
+
permit2?: string;
|
|
678
|
+
v4Quoter?: string;
|
|
679
|
+
v4PoolManager?: string;
|
|
680
|
+
};
|
|
655
681
|
};
|
|
656
682
|
SwapAllowlists: {
|
|
657
683
|
routers: string[];
|
|
@@ -674,6 +700,10 @@ export interface components {
|
|
|
674
700
|
routers: string[];
|
|
675
701
|
spenders: string[];
|
|
676
702
|
};
|
|
703
|
+
57073: {
|
|
704
|
+
routers: string[];
|
|
705
|
+
spenders: string[];
|
|
706
|
+
};
|
|
677
707
|
};
|
|
678
708
|
SwapFee: {
|
|
679
709
|
/** @enum {number} */
|
|
@@ -689,7 +719,7 @@ export interface components {
|
|
|
689
719
|
* @example 130
|
|
690
720
|
* @enum {integer}
|
|
691
721
|
*/
|
|
692
|
-
chainId: 1 | 56 | 130 | 8453;
|
|
722
|
+
chainId: 1 | 56 | 130 | 8453 | 57073;
|
|
693
723
|
slug: string;
|
|
694
724
|
name: string;
|
|
695
725
|
}[];
|
|
@@ -727,6 +757,12 @@ export interface components {
|
|
|
727
757
|
v4Quoter?: string;
|
|
728
758
|
v4PoolManager?: string;
|
|
729
759
|
};
|
|
760
|
+
57073: {
|
|
761
|
+
aegisRouter?: string;
|
|
762
|
+
permit2?: string;
|
|
763
|
+
v4Quoter?: string;
|
|
764
|
+
v4PoolManager?: string;
|
|
765
|
+
};
|
|
730
766
|
};
|
|
731
767
|
allowlists: {
|
|
732
768
|
1: {
|
|
@@ -745,6 +781,10 @@ export interface components {
|
|
|
745
781
|
routers: string[];
|
|
746
782
|
spenders: string[];
|
|
747
783
|
};
|
|
784
|
+
57073: {
|
|
785
|
+
routers: string[];
|
|
786
|
+
spenders: string[];
|
|
787
|
+
};
|
|
748
788
|
};
|
|
749
789
|
fee: {
|
|
750
790
|
/** @enum {number} */
|
|
@@ -759,7 +799,7 @@ export interface components {
|
|
|
759
799
|
* @example 4663
|
|
760
800
|
* @enum {integer}
|
|
761
801
|
*/
|
|
762
|
-
chainId: 1 | 56 | 130 | 8453 |
|
|
802
|
+
chainId: 1 | 56 | 130 | 8453 | 57073 | 4663;
|
|
763
803
|
address: string;
|
|
764
804
|
symbol: string;
|
|
765
805
|
displayName: string;
|
|
@@ -775,7 +815,7 @@ export interface components {
|
|
|
775
815
|
* @example 4663
|
|
776
816
|
* @enum {integer}
|
|
777
817
|
*/
|
|
778
|
-
chainId: 1 | 56 | 130 | 8453 |
|
|
818
|
+
chainId: 1 | 56 | 130 | 8453 | 57073 | 4663;
|
|
779
819
|
address: string;
|
|
780
820
|
symbol: string;
|
|
781
821
|
displayName: string;
|
|
@@ -807,7 +847,7 @@ export interface components {
|
|
|
807
847
|
* @example 130
|
|
808
848
|
* @enum {integer}
|
|
809
849
|
*/
|
|
810
|
-
chainId: 1 | 56 | 130 | 8453;
|
|
850
|
+
chainId: 1 | 56 | 130 | 8453 | 57073;
|
|
811
851
|
/** @enum {string} */
|
|
812
852
|
status: "enabled" | "disabled";
|
|
813
853
|
/** @enum {string} */
|
|
@@ -841,7 +881,7 @@ export interface components {
|
|
|
841
881
|
* @example 130
|
|
842
882
|
* @enum {integer}
|
|
843
883
|
*/
|
|
844
|
-
chainId: 1 | 56 | 130 | 8453;
|
|
884
|
+
chainId: 1 | 56 | 130 | 8453 | 57073;
|
|
845
885
|
/** @enum {string} */
|
|
846
886
|
status: "enabled" | "disabled";
|
|
847
887
|
/** @enum {string} */
|
|
@@ -869,6 +909,93 @@ export interface components {
|
|
|
869
909
|
};
|
|
870
910
|
warnings: ("paused" | "surge-active" | "cap-event")[];
|
|
871
911
|
}[];
|
|
912
|
+
MarketMetricsV2: {
|
|
913
|
+
tvlUsd: number | null;
|
|
914
|
+
volumeUsd7d: number | null;
|
|
915
|
+
feeApr7d: number | null;
|
|
916
|
+
};
|
|
917
|
+
MarketV2: {
|
|
918
|
+
id: string;
|
|
919
|
+
/**
|
|
920
|
+
* @example 4663
|
|
921
|
+
* @enum {integer}
|
|
922
|
+
*/
|
|
923
|
+
chainId: 1 | 56 | 130 | 8453 | 57073 | 4663;
|
|
924
|
+
/** @enum {string} */
|
|
925
|
+
status: "enabled" | "disabled";
|
|
926
|
+
/** @enum {string} */
|
|
927
|
+
kind: "aegis-direct-v4";
|
|
928
|
+
label: string;
|
|
929
|
+
baseToken: string;
|
|
930
|
+
quoteToken: string;
|
|
931
|
+
/** @example 0x9073b65a558bdf9d0d7d0c82b468128acb847de72f5ad776bd8a4aab98781584 */
|
|
932
|
+
poolId: string;
|
|
933
|
+
poolKey: {
|
|
934
|
+
currency0: string;
|
|
935
|
+
currency1: string;
|
|
936
|
+
/**
|
|
937
|
+
* @description Uniswap v4 fee value. 8388608 indicates dynamic fee.
|
|
938
|
+
* @example 8388608
|
|
939
|
+
*/
|
|
940
|
+
fee: number;
|
|
941
|
+
tickSpacing: number;
|
|
942
|
+
hooks: string;
|
|
943
|
+
};
|
|
944
|
+
metrics: {
|
|
945
|
+
tvlUsd: number | null;
|
|
946
|
+
volumeUsd7d: number | null;
|
|
947
|
+
feeApr7d: number | null;
|
|
948
|
+
};
|
|
949
|
+
warnings: ("paused" | "surge-active" | "cap-event" | "swap-unavailable")[];
|
|
950
|
+
observations?: {
|
|
951
|
+
tvl: {
|
|
952
|
+
/** Format: date-time */
|
|
953
|
+
updatedAt: string | null;
|
|
954
|
+
stale: boolean;
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
MarketListV2: {
|
|
959
|
+
id: string;
|
|
960
|
+
/**
|
|
961
|
+
* @example 4663
|
|
962
|
+
* @enum {integer}
|
|
963
|
+
*/
|
|
964
|
+
chainId: 1 | 56 | 130 | 8453 | 57073 | 4663;
|
|
965
|
+
/** @enum {string} */
|
|
966
|
+
status: "enabled" | "disabled";
|
|
967
|
+
/** @enum {string} */
|
|
968
|
+
kind: "aegis-direct-v4";
|
|
969
|
+
label: string;
|
|
970
|
+
baseToken: string;
|
|
971
|
+
quoteToken: string;
|
|
972
|
+
/** @example 0x9073b65a558bdf9d0d7d0c82b468128acb847de72f5ad776bd8a4aab98781584 */
|
|
973
|
+
poolId: string;
|
|
974
|
+
poolKey: {
|
|
975
|
+
currency0: string;
|
|
976
|
+
currency1: string;
|
|
977
|
+
/**
|
|
978
|
+
* @description Uniswap v4 fee value. 8388608 indicates dynamic fee.
|
|
979
|
+
* @example 8388608
|
|
980
|
+
*/
|
|
981
|
+
fee: number;
|
|
982
|
+
tickSpacing: number;
|
|
983
|
+
hooks: string;
|
|
984
|
+
};
|
|
985
|
+
metrics: {
|
|
986
|
+
tvlUsd: number | null;
|
|
987
|
+
volumeUsd7d: number | null;
|
|
988
|
+
feeApr7d: number | null;
|
|
989
|
+
};
|
|
990
|
+
warnings: ("paused" | "surge-active" | "cap-event" | "swap-unavailable")[];
|
|
991
|
+
observations?: {
|
|
992
|
+
tvl: {
|
|
993
|
+
/** Format: date-time */
|
|
994
|
+
updatedAt: string | null;
|
|
995
|
+
stale: boolean;
|
|
996
|
+
};
|
|
997
|
+
};
|
|
998
|
+
}[];
|
|
872
999
|
EngineToken: {
|
|
873
1000
|
/**
|
|
874
1001
|
* @example 4663
|
|
@@ -5912,7 +6039,7 @@ export interface components {
|
|
|
5912
6039
|
* @example 130
|
|
5913
6040
|
* @enum {integer}
|
|
5914
6041
|
*/
|
|
5915
|
-
chainId: 1 | 56 | 130 | 8453;
|
|
6042
|
+
chainId: 1 | 56 | 130 | 8453 | 57073;
|
|
5916
6043
|
/**
|
|
5917
6044
|
* @example aegis-direct-v4
|
|
5918
6045
|
* @enum {string}
|
|
@@ -5935,7 +6062,7 @@ export interface components {
|
|
|
5935
6062
|
* @example 130
|
|
5936
6063
|
* @enum {integer}
|
|
5937
6064
|
*/
|
|
5938
|
-
chainId: 1 | 56 | 130 | 8453;
|
|
6065
|
+
chainId: 1 | 56 | 130 | 8453 | 57073;
|
|
5939
6066
|
/**
|
|
5940
6067
|
* @example aegis-direct-v4
|
|
5941
6068
|
* @enum {string}
|
|
@@ -7224,6 +7351,34 @@ export interface operations {
|
|
|
7224
7351
|
500: components["responses"]["ServerError"];
|
|
7225
7352
|
};
|
|
7226
7353
|
};
|
|
7354
|
+
listMarketsV2: {
|
|
7355
|
+
parameters: {
|
|
7356
|
+
query: {
|
|
7357
|
+
/**
|
|
7358
|
+
* @description Curated-data chain ID as a string query parameter. JSON response bodies use numeric chainId values.
|
|
7359
|
+
* @example 4663
|
|
7360
|
+
*/
|
|
7361
|
+
chainId: components["parameters"]["DataChainIdQuery"];
|
|
7362
|
+
};
|
|
7363
|
+
header?: never;
|
|
7364
|
+
path?: never;
|
|
7365
|
+
cookie?: never;
|
|
7366
|
+
};
|
|
7367
|
+
requestBody?: never;
|
|
7368
|
+
responses: {
|
|
7369
|
+
/** @description Curated v4 pools */
|
|
7370
|
+
200: {
|
|
7371
|
+
headers: {
|
|
7372
|
+
[name: string]: unknown;
|
|
7373
|
+
};
|
|
7374
|
+
content: {
|
|
7375
|
+
"application/json": components["schemas"]["MarketListV2"];
|
|
7376
|
+
};
|
|
7377
|
+
};
|
|
7378
|
+
400: components["responses"]["BadRequest"];
|
|
7379
|
+
500: components["responses"]["ServerError"];
|
|
7380
|
+
};
|
|
7381
|
+
};
|
|
7227
7382
|
listEngineMarkets: {
|
|
7228
7383
|
parameters: {
|
|
7229
7384
|
query: {
|
|
@@ -16,7 +16,7 @@ export declare const aegisBackendMarketStatusSchema: z.ZodEnum<{
|
|
|
16
16
|
enabled: "enabled";
|
|
17
17
|
disabled: "disabled";
|
|
18
18
|
}>;
|
|
19
|
-
export declare const aegisBackendChainIdSchema: z.ZodLiteral<1 | 56 | 130 | 8453>;
|
|
19
|
+
export declare const aegisBackendChainIdSchema: z.ZodLiteral<1 | 56 | 57073 | 130 | 8453>;
|
|
20
20
|
export declare const aegisBackendChainSchema: z.ZodObject<{
|
|
21
21
|
chainId: z.ZodNumber;
|
|
22
22
|
slug: z.ZodString;
|
|
@@ -37,6 +37,7 @@ export declare const aegisBackendContractsByChainSchema: z.ZodObject<{
|
|
|
37
37
|
'56': z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>;
|
|
38
38
|
'130': z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>;
|
|
39
39
|
'8453': z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>;
|
|
40
|
+
'57073': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>;
|
|
40
41
|
}, z.core.$strip>;
|
|
41
42
|
export declare const aegisBackendAllowlistsByChainSchema: z.ZodObject<{
|
|
42
43
|
'1': z.ZodObject<{
|
|
@@ -55,6 +56,10 @@ export declare const aegisBackendAllowlistsByChainSchema: z.ZodObject<{
|
|
|
55
56
|
routers: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
56
57
|
spenders: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
57
58
|
}, z.core.$strip>;
|
|
59
|
+
'57073': z.ZodOptional<z.ZodObject<{
|
|
60
|
+
routers: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
61
|
+
spenders: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
58
63
|
}, z.core.$strip>;
|
|
59
64
|
export declare const aegisBackendFeeConfigSchema: z.ZodObject<{
|
|
60
65
|
outputFeeBps: z.ZodNumber;
|
|
@@ -81,6 +86,7 @@ export declare const aegisBackendConfigSchema: z.ZodObject<{
|
|
|
81
86
|
'56': z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>;
|
|
82
87
|
'130': z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>;
|
|
83
88
|
'8453': z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>;
|
|
89
|
+
'57073': z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>>>;
|
|
84
90
|
}, z.core.$strip>;
|
|
85
91
|
allowlists: z.ZodObject<{
|
|
86
92
|
'1': z.ZodObject<{
|
|
@@ -99,6 +105,10 @@ export declare const aegisBackendConfigSchema: z.ZodObject<{
|
|
|
99
105
|
routers: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
100
106
|
spenders: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
101
107
|
}, z.core.$strip>;
|
|
108
|
+
'57073': z.ZodOptional<z.ZodObject<{
|
|
109
|
+
routers: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
110
|
+
spenders: z.ZodArray<z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
111
|
+
}, z.core.$strip>>;
|
|
102
112
|
}, z.core.$strip>;
|
|
103
113
|
fee: z.ZodObject<{
|
|
104
114
|
outputFeeBps: z.ZodNumber;
|
|
@@ -162,7 +172,7 @@ export declare const aegisBackendMarketSchema: z.ZodObject<{
|
|
|
162
172
|
export declare const aegisBackendSwapQuoteRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
163
173
|
mode: z.ZodLiteral<"exactIn">;
|
|
164
174
|
amountIn: z.ZodString;
|
|
165
|
-
chainId: z.ZodLiteral<1 | 56 | 130 | 8453>;
|
|
175
|
+
chainId: z.ZodLiteral<1 | 56 | 57073 | 130 | 8453>;
|
|
166
176
|
provider: z.ZodEnum<{
|
|
167
177
|
"aegis-direct-v4": "aegis-direct-v4";
|
|
168
178
|
kyber: "kyber";
|
|
@@ -175,7 +185,7 @@ export declare const aegisBackendSwapQuoteRequestSchema: z.ZodDiscriminatedUnion
|
|
|
175
185
|
}, z.core.$loose>, z.ZodObject<{
|
|
176
186
|
mode: z.ZodLiteral<"exactOut">;
|
|
177
187
|
amountOut: z.ZodString;
|
|
178
|
-
chainId: z.ZodLiteral<1 | 56 | 130 | 8453>;
|
|
188
|
+
chainId: z.ZodLiteral<1 | 56 | 57073 | 130 | 8453>;
|
|
179
189
|
provider: z.ZodEnum<{
|
|
180
190
|
"aegis-direct-v4": "aegis-direct-v4";
|
|
181
191
|
kyber: "kyber";
|