@mobula_labs/types 0.1.10 → 0.1.11
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/index.cjs +4973 -3931
- package/dist/cjs/index.cjs.map +58 -52
- package/dist/esm/index.js +4973 -3931
- package/dist/esm/index.js.map +58 -52
- package/dist/index.d.ts +6 -0
- package/dist/misc/ApiKeysQueries.d.ts +1 -1
- package/dist/utils/functions/openAPIHelpers.d.ts +41 -0
- package/dist/utils/schemas/BaseMessage.d.ts +2 -0
- package/dist/utils/schemas/EnrichedMarketData.d.ts +138 -1
- package/dist/utils/schemas/MarketDetailsOutput.d.ts +169 -0
- package/dist/utils/schemas/SecuritySchemas.d.ts +9 -0
- package/dist/utils/schemas/TokenDetailsOutput.d.ts +32 -0
- package/dist/utils/schemas/WalletDeployerSchema.d.ts +124 -12
- package/dist/utils/schemas/WalletMetadataOutput.d.ts +21 -0
- package/dist/v1/market/FundingRateSchema.d.ts +3 -0
- package/dist/v1/market/HoldersSchema.d.ts +5 -0
- package/dist/v1/market/MarketBlockchainPairsSchema.d.ts +59 -0
- package/dist/v1/market/MarketDataSchema.d.ts +5 -0
- package/dist/v1/market/MarketHistoryPairSchema.d.ts +5 -0
- package/dist/v1/market/MarketLighthouseSchema.d.ts +2734 -0
- package/dist/v1/market/MarketMultiDataSchema.d.ts +9 -4
- package/dist/v1/market/MarketMultiHistorySchema.d.ts +5 -0
- package/dist/v1/market/MarketMultiPricesSchema.d.ts +4 -4
- package/dist/v1/market/MarketPairSchema.d.ts +54 -0
- package/dist/v1/market/MarketPairsSchema.d.ts +68 -0
- package/dist/v1/market/MarketQuerySchema.d.ts +5 -0
- package/dist/v1/market/MarketTokenVsMarketSchema.d.ts +4 -4
- package/dist/v1/metadata/MetadataSchema.d.ts +10 -0
- package/dist/v1/pulse/PulseSchema.d.ts +616 -0
- package/dist/v1/search/SearchSchema.d.ts +112 -0
- package/dist/v1/wallet/DeployerSchema.d.ts +72 -8
- package/dist/v1/wallet/HistorySchema.d.ts +5 -0
- package/dist/v1/wallet/WalletLabelSchema.d.ts +550 -0
- package/dist/v1/wallet/WalletNFTSchema.d.ts +5 -0
- package/dist/v1/wallet/WalletPortfolioSchema.d.ts +32 -0
- package/dist/v1/wallet/WalletTradesSchema.d.ts +133 -20
- package/dist/v1/wallet/WalletTransactionSchema.d.ts +12 -2
- package/dist/v2/asset/AssetDetailsSchema.d.ts +217 -1
- package/dist/v2/market/MarketDetailsSchema.d.ts +454 -0
- package/dist/v2/market/MarketOHLCVHistorySchema.d.ts +3 -3
- package/dist/v2/swap/SwapQuotingBatchOutput.d.ts +1647 -257
- package/dist/v2/swap/SwapQuotingBatchSchema.d.ts +12 -12
- package/dist/v2/swap/SwapQuotingOutput.d.ts +1396 -274
- package/dist/v2/swap/SwapQuotingSchema.d.ts +26 -3
- package/dist/v2/swap/SwapSendOutput.d.ts +105 -0
- package/dist/v2/swap/SwapSendSchema.d.ts +77 -4
- package/dist/v2/token/TokenAthSchema.d.ts +29 -1
- package/dist/v2/token/TokenDetailsSchema.d.ts +124 -1
- package/dist/v2/token/TokenMarketsSchema.d.ts +396 -0
- package/dist/v2/token/TokenOHLCVHistorySchema.d.ts +3 -3
- package/dist/v2/token/TokenPositionsSchema.d.ts +119 -12
- package/dist/v2/token/TokenPriceAtSchema.d.ts +131 -0
- package/dist/v2/token/TokenPriceHistorySchema.d.ts +13 -13
- package/dist/v2/token/TokenSecurityOutput.d.ts +192 -0
- package/dist/v2/token/TokenSecurityQuery.d.ts +13 -1
- package/dist/v2/token/TokenTradesSchema.d.ts +572 -3
- package/dist/v2/trades/EnrichedSwapsSchema.d.ts +15994 -0
- package/dist/v2/trades/TradesFiltersSchema.d.ts +49 -0
- package/dist/v2/wallet/WalletActivityV2Schema.d.ts +53 -0
- package/dist/v2/wallet/WalletAnalysisQuerySchema.d.ts +114 -18
- package/dist/v2/wallet/WalletDeployerSchema.d.ts +72 -8
- package/dist/v2/wallet/WalletPerpsPositionsSchema.d.ts +24 -24
- package/dist/v2/wallet/WalletPositionsSchema.d.ts +5979 -33
- package/dist/v2/wallet/WalletTokenBalancesSchema.d.ts +16 -0
- package/dist/v2/wallet/WalletTradesSchema.d.ts +446 -0
- package/dist/wss/FastTradePayloadSchema.d.ts +12 -1
- package/dist/wss/FundingPayloadSchema.d.ts +3 -0
- package/dist/wss/HoldersV2PayloadSchema.d.ts +30 -0
- package/dist/wss/MarketDetailsPayloadSchema.d.ts +3 -0
- package/dist/wss/OhlcvPayloadSchema.d.ts +3 -0
- package/dist/wss/TokenDetailsPayloadSchema.d.ts +3 -0
- package/dist/x402/X402AgentSchemas.d.ts +62 -0
- package/package.json +2 -2
- package/dist/v2/explorer/BlockDataQuerySchema.d.ts +0 -33
- package/dist/v2/explorer/ContractVerifyQuerySchema.ts +0 -27
- package/dist/v2/wallet/WalleAnalysisQuerySchema.d.ts +0 -1135
- package/dist/v2/wallet/WalleFundingQuerySchema.d.ts +0 -57
|
@@ -720,6 +720,17 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
720
720
|
maxPriorityFeePerGas: z.ZodOptional<z.ZodString>;
|
|
721
721
|
nonce: z.ZodOptional<z.ZodNumber>;
|
|
722
722
|
chainId: z.ZodNumber;
|
|
723
|
+
approvalAddress: z.ZodOptional<z.ZodString>;
|
|
724
|
+
approvals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
725
|
+
token: z.ZodString;
|
|
726
|
+
spender: z.ZodString;
|
|
727
|
+
}, "strip", z.ZodTypeAny, {
|
|
728
|
+
token: string;
|
|
729
|
+
spender: string;
|
|
730
|
+
}, {
|
|
731
|
+
token: string;
|
|
732
|
+
spender: string;
|
|
733
|
+
}>, "many">>;
|
|
723
734
|
}, "strip", z.ZodTypeAny, {
|
|
724
735
|
value: string;
|
|
725
736
|
chainId: number;
|
|
@@ -731,6 +742,11 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
731
742
|
maxFeePerGas?: string | undefined;
|
|
732
743
|
maxPriorityFeePerGas?: string | undefined;
|
|
733
744
|
nonce?: number | undefined;
|
|
745
|
+
approvalAddress?: string | undefined;
|
|
746
|
+
approvals?: {
|
|
747
|
+
token: string;
|
|
748
|
+
spender: string;
|
|
749
|
+
}[] | undefined;
|
|
734
750
|
}, {
|
|
735
751
|
value: string;
|
|
736
752
|
chainId: number;
|
|
@@ -742,6 +758,11 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
742
758
|
maxFeePerGas?: string | undefined;
|
|
743
759
|
maxPriorityFeePerGas?: string | undefined;
|
|
744
760
|
nonce?: number | undefined;
|
|
761
|
+
approvalAddress?: string | undefined;
|
|
762
|
+
approvals?: {
|
|
763
|
+
token: string;
|
|
764
|
+
spender: string;
|
|
765
|
+
}[] | undefined;
|
|
745
766
|
}>;
|
|
746
767
|
}, "strip", z.ZodTypeAny, {
|
|
747
768
|
transaction: {
|
|
@@ -755,6 +776,11 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
755
776
|
maxFeePerGas?: string | undefined;
|
|
756
777
|
maxPriorityFeePerGas?: string | undefined;
|
|
757
778
|
nonce?: number | undefined;
|
|
779
|
+
approvalAddress?: string | undefined;
|
|
780
|
+
approvals?: {
|
|
781
|
+
token: string;
|
|
782
|
+
spender: string;
|
|
783
|
+
}[] | undefined;
|
|
758
784
|
};
|
|
759
785
|
}, {
|
|
760
786
|
transaction: {
|
|
@@ -768,6 +794,11 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
768
794
|
maxFeePerGas?: string | undefined;
|
|
769
795
|
maxPriorityFeePerGas?: string | undefined;
|
|
770
796
|
nonce?: number | undefined;
|
|
797
|
+
approvalAddress?: string | undefined;
|
|
798
|
+
approvals?: {
|
|
799
|
+
token: string;
|
|
800
|
+
spender: string;
|
|
801
|
+
}[] | undefined;
|
|
771
802
|
};
|
|
772
803
|
}>;
|
|
773
804
|
solana: z.ZodOptional<z.ZodNull>;
|
|
@@ -785,6 +816,11 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
785
816
|
maxFeePerGas?: string | undefined;
|
|
786
817
|
maxPriorityFeePerGas?: string | undefined;
|
|
787
818
|
nonce?: number | undefined;
|
|
819
|
+
approvalAddress?: string | undefined;
|
|
820
|
+
approvals?: {
|
|
821
|
+
token: string;
|
|
822
|
+
spender: string;
|
|
823
|
+
}[] | undefined;
|
|
788
824
|
};
|
|
789
825
|
};
|
|
790
826
|
fee?: {
|
|
@@ -859,6 +895,11 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
859
895
|
maxFeePerGas?: string | undefined;
|
|
860
896
|
maxPriorityFeePerGas?: string | undefined;
|
|
861
897
|
nonce?: number | undefined;
|
|
898
|
+
approvalAddress?: string | undefined;
|
|
899
|
+
approvals?: {
|
|
900
|
+
token: string;
|
|
901
|
+
spender: string;
|
|
902
|
+
}[] | undefined;
|
|
862
903
|
};
|
|
863
904
|
};
|
|
864
905
|
fee?: {
|
|
@@ -1193,10 +1234,36 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
1193
1234
|
deductedFrom: "input" | "output";
|
|
1194
1235
|
}>>;
|
|
1195
1236
|
} & {
|
|
1237
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
1238
|
+
lander: z.ZodString;
|
|
1239
|
+
serialized: z.ZodString;
|
|
1240
|
+
tipAccount: z.ZodString;
|
|
1241
|
+
tipLamports: z.ZodNumber;
|
|
1242
|
+
}, "strip", z.ZodTypeAny, {
|
|
1243
|
+
serialized: string;
|
|
1244
|
+
lander: string;
|
|
1245
|
+
tipAccount: string;
|
|
1246
|
+
tipLamports: number;
|
|
1247
|
+
}, {
|
|
1248
|
+
serialized: string;
|
|
1249
|
+
lander: string;
|
|
1250
|
+
tipAccount: string;
|
|
1251
|
+
tipLamports: number;
|
|
1252
|
+
}>, "many">;
|
|
1253
|
+
nonceAccount: z.ZodString;
|
|
1254
|
+
nonceAuthority: z.ZodString;
|
|
1196
1255
|
solana: z.ZodOptional<z.ZodNull>;
|
|
1197
1256
|
evm: z.ZodOptional<z.ZodNull>;
|
|
1198
1257
|
}, "strip", z.ZodTypeAny, {
|
|
1199
1258
|
requestId: string;
|
|
1259
|
+
candidates: {
|
|
1260
|
+
serialized: string;
|
|
1261
|
+
lander: string;
|
|
1262
|
+
tipAccount: string;
|
|
1263
|
+
tipLamports: number;
|
|
1264
|
+
}[];
|
|
1265
|
+
nonceAccount: string;
|
|
1266
|
+
nonceAuthority: string;
|
|
1200
1267
|
fee?: {
|
|
1201
1268
|
amount: string;
|
|
1202
1269
|
percentage: number;
|
|
@@ -1258,6 +1325,14 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
1258
1325
|
evm?: null | undefined;
|
|
1259
1326
|
}, {
|
|
1260
1327
|
requestId: string;
|
|
1328
|
+
candidates: {
|
|
1329
|
+
serialized: string;
|
|
1330
|
+
lander: string;
|
|
1331
|
+
tipAccount: string;
|
|
1332
|
+
tipLamports: number;
|
|
1333
|
+
}[];
|
|
1334
|
+
nonceAccount: string;
|
|
1335
|
+
nonceAuthority: string;
|
|
1261
1336
|
fee?: {
|
|
1262
1337
|
amount: string;
|
|
1263
1338
|
percentage: number;
|
|
@@ -1317,29 +1392,148 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
1317
1392
|
poolFeesPercentage?: number | undefined;
|
|
1318
1393
|
solana?: null | undefined;
|
|
1319
1394
|
evm?: null | undefined;
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1395
|
+
}>, z.ZodObject<{
|
|
1396
|
+
amountOutTokens: z.ZodOptional<z.ZodString>;
|
|
1397
|
+
slippagePercentage: z.ZodOptional<z.ZodNumber>;
|
|
1398
|
+
amountInUSD: z.ZodOptional<z.ZodNumber>;
|
|
1399
|
+
amountOutUSD: z.ZodOptional<z.ZodNumber>;
|
|
1400
|
+
marketImpactPercentage: z.ZodOptional<z.ZodNumber>;
|
|
1401
|
+
poolFeesPercentage: z.ZodOptional<z.ZodNumber>;
|
|
1402
|
+
tokenIn: z.ZodOptional<z.ZodObject<{
|
|
1403
|
+
address: z.ZodString;
|
|
1404
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1405
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1406
|
+
decimals: z.ZodNumber;
|
|
1407
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1408
|
+
}, "strip", z.ZodTypeAny, {
|
|
1409
|
+
address: string;
|
|
1410
|
+
decimals: number;
|
|
1411
|
+
symbol?: string | undefined;
|
|
1412
|
+
name?: string | undefined;
|
|
1413
|
+
logo?: string | null | undefined;
|
|
1414
|
+
}, {
|
|
1415
|
+
address: string;
|
|
1416
|
+
decimals: number;
|
|
1417
|
+
symbol?: string | undefined;
|
|
1418
|
+
name?: string | undefined;
|
|
1419
|
+
logo?: string | null | undefined;
|
|
1420
|
+
}>>;
|
|
1421
|
+
tokenOut: z.ZodOptional<z.ZodObject<{
|
|
1422
|
+
address: z.ZodString;
|
|
1423
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1424
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1425
|
+
decimals: z.ZodNumber;
|
|
1426
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1427
|
+
}, "strip", z.ZodTypeAny, {
|
|
1428
|
+
address: string;
|
|
1429
|
+
decimals: number;
|
|
1430
|
+
symbol?: string | undefined;
|
|
1431
|
+
name?: string | undefined;
|
|
1432
|
+
logo?: string | null | undefined;
|
|
1433
|
+
}, {
|
|
1434
|
+
address: string;
|
|
1435
|
+
decimals: number;
|
|
1436
|
+
symbol?: string | undefined;
|
|
1437
|
+
name?: string | undefined;
|
|
1438
|
+
logo?: string | null | undefined;
|
|
1439
|
+
}>>;
|
|
1440
|
+
requestId: z.ZodString;
|
|
1441
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
1442
|
+
route: z.ZodOptional<z.ZodObject<{
|
|
1443
|
+
hops: z.ZodArray<z.ZodObject<{
|
|
1444
|
+
poolAddress: z.ZodString;
|
|
1445
|
+
tokenIn: z.ZodObject<{
|
|
1446
|
+
address: z.ZodString;
|
|
1447
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1448
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1449
|
+
decimals: z.ZodNumber;
|
|
1450
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1451
|
+
}, "strip", z.ZodTypeAny, {
|
|
1452
|
+
address: string;
|
|
1453
|
+
decimals: number;
|
|
1454
|
+
symbol?: string | undefined;
|
|
1455
|
+
name?: string | undefined;
|
|
1456
|
+
logo?: string | null | undefined;
|
|
1457
|
+
}, {
|
|
1458
|
+
address: string;
|
|
1459
|
+
decimals: number;
|
|
1460
|
+
symbol?: string | undefined;
|
|
1461
|
+
name?: string | undefined;
|
|
1462
|
+
logo?: string | null | undefined;
|
|
1463
|
+
}>;
|
|
1464
|
+
tokenOut: z.ZodObject<{
|
|
1465
|
+
address: z.ZodString;
|
|
1466
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1467
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
1468
|
+
decimals: z.ZodNumber;
|
|
1469
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1470
|
+
}, "strip", z.ZodTypeAny, {
|
|
1471
|
+
address: string;
|
|
1472
|
+
decimals: number;
|
|
1473
|
+
symbol?: string | undefined;
|
|
1474
|
+
name?: string | undefined;
|
|
1475
|
+
logo?: string | null | undefined;
|
|
1476
|
+
}, {
|
|
1477
|
+
address: string;
|
|
1478
|
+
decimals: number;
|
|
1479
|
+
symbol?: string | undefined;
|
|
1480
|
+
name?: string | undefined;
|
|
1481
|
+
logo?: string | null | undefined;
|
|
1482
|
+
}>;
|
|
1483
|
+
amountInTokens: z.ZodString;
|
|
1484
|
+
amountOutTokens: z.ZodString;
|
|
1485
|
+
exchange: z.ZodOptional<z.ZodString>;
|
|
1486
|
+
poolType: z.ZodOptional<z.ZodString>;
|
|
1487
|
+
feePercentage: z.ZodOptional<z.ZodNumber>;
|
|
1488
|
+
feeBps: z.ZodOptional<z.ZodNumber>;
|
|
1489
|
+
}, "strip", z.ZodTypeAny, {
|
|
1490
|
+
poolAddress: string;
|
|
1491
|
+
tokenIn: {
|
|
1492
|
+
address: string;
|
|
1493
|
+
decimals: number;
|
|
1494
|
+
symbol?: string | undefined;
|
|
1495
|
+
name?: string | undefined;
|
|
1496
|
+
logo?: string | null | undefined;
|
|
1497
|
+
};
|
|
1498
|
+
tokenOut: {
|
|
1499
|
+
address: string;
|
|
1500
|
+
decimals: number;
|
|
1501
|
+
symbol?: string | undefined;
|
|
1502
|
+
name?: string | undefined;
|
|
1503
|
+
logo?: string | null | undefined;
|
|
1504
|
+
};
|
|
1505
|
+
amountInTokens: string;
|
|
1506
|
+
amountOutTokens: string;
|
|
1507
|
+
exchange?: string | undefined;
|
|
1508
|
+
poolType?: string | undefined;
|
|
1509
|
+
feePercentage?: number | undefined;
|
|
1510
|
+
feeBps?: number | undefined;
|
|
1511
|
+
}, {
|
|
1512
|
+
poolAddress: string;
|
|
1513
|
+
tokenIn: {
|
|
1514
|
+
address: string;
|
|
1515
|
+
decimals: number;
|
|
1516
|
+
symbol?: string | undefined;
|
|
1517
|
+
name?: string | undefined;
|
|
1518
|
+
logo?: string | null | undefined;
|
|
1519
|
+
};
|
|
1520
|
+
tokenOut: {
|
|
1521
|
+
address: string;
|
|
1522
|
+
decimals: number;
|
|
1523
|
+
symbol?: string | undefined;
|
|
1524
|
+
name?: string | undefined;
|
|
1525
|
+
logo?: string | null | undefined;
|
|
1526
|
+
};
|
|
1527
|
+
amountInTokens: string;
|
|
1528
|
+
amountOutTokens: string;
|
|
1529
|
+
exchange?: string | undefined;
|
|
1530
|
+
poolType?: string | undefined;
|
|
1531
|
+
feePercentage?: number | undefined;
|
|
1532
|
+
feeBps?: number | undefined;
|
|
1533
|
+
}>, "many">;
|
|
1534
|
+
totalFeePercentage: z.ZodOptional<z.ZodNumber>;
|
|
1535
|
+
aggregator: z.ZodOptional<z.ZodString>;
|
|
1536
|
+
}, "strip", z.ZodTypeAny, {
|
|
1343
1537
|
hops: {
|
|
1344
1538
|
poolAddress: string;
|
|
1345
1539
|
tokenIn: {
|
|
@@ -1365,55 +1559,7 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
1365
1559
|
}[];
|
|
1366
1560
|
totalFeePercentage?: number | undefined;
|
|
1367
1561
|
aggregator?: string | undefined;
|
|
1368
|
-
}
|
|
1369
|
-
} | undefined;
|
|
1370
|
-
tokenIn?: {
|
|
1371
|
-
address: string;
|
|
1372
|
-
decimals: number;
|
|
1373
|
-
symbol?: string | undefined;
|
|
1374
|
-
name?: string | undefined;
|
|
1375
|
-
logo?: string | null | undefined;
|
|
1376
|
-
} | undefined;
|
|
1377
|
-
tokenOut?: {
|
|
1378
|
-
address: string;
|
|
1379
|
-
decimals: number;
|
|
1380
|
-
symbol?: string | undefined;
|
|
1381
|
-
name?: string | undefined;
|
|
1382
|
-
logo?: string | null | undefined;
|
|
1383
|
-
} | undefined;
|
|
1384
|
-
amountOutTokens?: string | undefined;
|
|
1385
|
-
slippagePercentage?: number | undefined;
|
|
1386
|
-
amountInUSD?: number | undefined;
|
|
1387
|
-
amountOutUSD?: number | undefined;
|
|
1388
|
-
marketImpactPercentage?: number | undefined;
|
|
1389
|
-
poolFeesPercentage?: number | undefined;
|
|
1390
|
-
evm?: null | undefined;
|
|
1391
|
-
} | {
|
|
1392
|
-
requestId: string;
|
|
1393
|
-
evm: {
|
|
1394
|
-
transaction: {
|
|
1395
|
-
value: string;
|
|
1396
|
-
chainId: number;
|
|
1397
|
-
data: string;
|
|
1398
|
-
from: string;
|
|
1399
|
-
to: string;
|
|
1400
|
-
gasLimit?: string | undefined;
|
|
1401
|
-
gasPrice?: string | undefined;
|
|
1402
|
-
maxFeePerGas?: string | undefined;
|
|
1403
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
1404
|
-
nonce?: number | undefined;
|
|
1405
|
-
};
|
|
1406
|
-
};
|
|
1407
|
-
fee?: {
|
|
1408
|
-
amount: string;
|
|
1409
|
-
percentage: number;
|
|
1410
|
-
wallet: string;
|
|
1411
|
-
deductedFrom: "input" | "output";
|
|
1412
|
-
} | undefined;
|
|
1413
|
-
details?: {
|
|
1414
|
-
raw?: Record<string, unknown> | undefined;
|
|
1415
|
-
aggregator?: string | undefined;
|
|
1416
|
-
route?: {
|
|
1562
|
+
}, {
|
|
1417
1563
|
hops: {
|
|
1418
1564
|
poolAddress: string;
|
|
1419
1565
|
tokenIn: {
|
|
@@ -1439,38 +1585,10 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
1439
1585
|
}[];
|
|
1440
1586
|
totalFeePercentage?: number | undefined;
|
|
1441
1587
|
aggregator?: string | undefined;
|
|
1442
|
-
}
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
decimals: number;
|
|
1447
|
-
symbol?: string | undefined;
|
|
1448
|
-
name?: string | undefined;
|
|
1449
|
-
logo?: string | null | undefined;
|
|
1450
|
-
} | undefined;
|
|
1451
|
-
tokenOut?: {
|
|
1452
|
-
address: string;
|
|
1453
|
-
decimals: number;
|
|
1454
|
-
symbol?: string | undefined;
|
|
1455
|
-
name?: string | undefined;
|
|
1456
|
-
logo?: string | null | undefined;
|
|
1457
|
-
} | undefined;
|
|
1458
|
-
amountOutTokens?: string | undefined;
|
|
1459
|
-
slippagePercentage?: number | undefined;
|
|
1460
|
-
amountInUSD?: number | undefined;
|
|
1461
|
-
amountOutUSD?: number | undefined;
|
|
1462
|
-
marketImpactPercentage?: number | undefined;
|
|
1463
|
-
poolFeesPercentage?: number | undefined;
|
|
1464
|
-
solana?: null | undefined;
|
|
1465
|
-
} | {
|
|
1466
|
-
requestId: string;
|
|
1467
|
-
fee?: {
|
|
1468
|
-
amount: string;
|
|
1469
|
-
percentage: number;
|
|
1470
|
-
wallet: string;
|
|
1471
|
-
deductedFrom: "input" | "output";
|
|
1472
|
-
} | undefined;
|
|
1473
|
-
details?: {
|
|
1588
|
+
}>>;
|
|
1589
|
+
aggregator: z.ZodOptional<z.ZodString>;
|
|
1590
|
+
raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1591
|
+
}, "strip", z.ZodTypeAny, {
|
|
1474
1592
|
raw?: Record<string, unknown> | undefined;
|
|
1475
1593
|
aggregator?: string | undefined;
|
|
1476
1594
|
route?: {
|
|
@@ -1500,7 +1618,95 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
1500
1618
|
totalFeePercentage?: number | undefined;
|
|
1501
1619
|
aggregator?: string | undefined;
|
|
1502
1620
|
} | undefined;
|
|
1503
|
-
}
|
|
1621
|
+
}, {
|
|
1622
|
+
raw?: Record<string, unknown> | undefined;
|
|
1623
|
+
aggregator?: string | undefined;
|
|
1624
|
+
route?: {
|
|
1625
|
+
hops: {
|
|
1626
|
+
poolAddress: string;
|
|
1627
|
+
tokenIn: {
|
|
1628
|
+
address: string;
|
|
1629
|
+
decimals: number;
|
|
1630
|
+
symbol?: string | undefined;
|
|
1631
|
+
name?: string | undefined;
|
|
1632
|
+
logo?: string | null | undefined;
|
|
1633
|
+
};
|
|
1634
|
+
tokenOut: {
|
|
1635
|
+
address: string;
|
|
1636
|
+
decimals: number;
|
|
1637
|
+
symbol?: string | undefined;
|
|
1638
|
+
name?: string | undefined;
|
|
1639
|
+
logo?: string | null | undefined;
|
|
1640
|
+
};
|
|
1641
|
+
amountInTokens: string;
|
|
1642
|
+
amountOutTokens: string;
|
|
1643
|
+
exchange?: string | undefined;
|
|
1644
|
+
poolType?: string | undefined;
|
|
1645
|
+
feePercentage?: number | undefined;
|
|
1646
|
+
feeBps?: number | undefined;
|
|
1647
|
+
}[];
|
|
1648
|
+
totalFeePercentage?: number | undefined;
|
|
1649
|
+
aggregator?: string | undefined;
|
|
1650
|
+
} | undefined;
|
|
1651
|
+
}>>;
|
|
1652
|
+
fee: z.ZodOptional<z.ZodObject<{
|
|
1653
|
+
amount: z.ZodString;
|
|
1654
|
+
percentage: z.ZodNumber;
|
|
1655
|
+
wallet: z.ZodString;
|
|
1656
|
+
deductedFrom: z.ZodEnum<["input", "output"]>;
|
|
1657
|
+
}, "strip", z.ZodTypeAny, {
|
|
1658
|
+
amount: string;
|
|
1659
|
+
percentage: number;
|
|
1660
|
+
wallet: string;
|
|
1661
|
+
deductedFrom: "input" | "output";
|
|
1662
|
+
}, {
|
|
1663
|
+
amount: string;
|
|
1664
|
+
percentage: number;
|
|
1665
|
+
wallet: string;
|
|
1666
|
+
deductedFrom: "input" | "output";
|
|
1667
|
+
}>>;
|
|
1668
|
+
} & {
|
|
1669
|
+
solana: z.ZodOptional<z.ZodNull>;
|
|
1670
|
+
evm: z.ZodOptional<z.ZodNull>;
|
|
1671
|
+
}, "strip", z.ZodTypeAny, {
|
|
1672
|
+
requestId: string;
|
|
1673
|
+
fee?: {
|
|
1674
|
+
amount: string;
|
|
1675
|
+
percentage: number;
|
|
1676
|
+
wallet: string;
|
|
1677
|
+
deductedFrom: "input" | "output";
|
|
1678
|
+
} | undefined;
|
|
1679
|
+
details?: {
|
|
1680
|
+
raw?: Record<string, unknown> | undefined;
|
|
1681
|
+
aggregator?: string | undefined;
|
|
1682
|
+
route?: {
|
|
1683
|
+
hops: {
|
|
1684
|
+
poolAddress: string;
|
|
1685
|
+
tokenIn: {
|
|
1686
|
+
address: string;
|
|
1687
|
+
decimals: number;
|
|
1688
|
+
symbol?: string | undefined;
|
|
1689
|
+
name?: string | undefined;
|
|
1690
|
+
logo?: string | null | undefined;
|
|
1691
|
+
};
|
|
1692
|
+
tokenOut: {
|
|
1693
|
+
address: string;
|
|
1694
|
+
decimals: number;
|
|
1695
|
+
symbol?: string | undefined;
|
|
1696
|
+
name?: string | undefined;
|
|
1697
|
+
logo?: string | null | undefined;
|
|
1698
|
+
};
|
|
1699
|
+
amountInTokens: string;
|
|
1700
|
+
amountOutTokens: string;
|
|
1701
|
+
exchange?: string | undefined;
|
|
1702
|
+
poolType?: string | undefined;
|
|
1703
|
+
feePercentage?: number | undefined;
|
|
1704
|
+
feeBps?: number | undefined;
|
|
1705
|
+
}[];
|
|
1706
|
+
totalFeePercentage?: number | undefined;
|
|
1707
|
+
aggregator?: string | undefined;
|
|
1708
|
+
} | undefined;
|
|
1709
|
+
} | undefined;
|
|
1504
1710
|
tokenIn?: {
|
|
1505
1711
|
address: string;
|
|
1506
1712
|
decimals: number;
|
|
@@ -1523,10 +1729,71 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
1523
1729
|
poolFeesPercentage?: number | undefined;
|
|
1524
1730
|
solana?: null | undefined;
|
|
1525
1731
|
evm?: null | undefined;
|
|
1526
|
-
}
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1732
|
+
}, {
|
|
1733
|
+
requestId: string;
|
|
1734
|
+
fee?: {
|
|
1735
|
+
amount: string;
|
|
1736
|
+
percentage: number;
|
|
1737
|
+
wallet: string;
|
|
1738
|
+
deductedFrom: "input" | "output";
|
|
1739
|
+
} | undefined;
|
|
1740
|
+
details?: {
|
|
1741
|
+
raw?: Record<string, unknown> | undefined;
|
|
1742
|
+
aggregator?: string | undefined;
|
|
1743
|
+
route?: {
|
|
1744
|
+
hops: {
|
|
1745
|
+
poolAddress: string;
|
|
1746
|
+
tokenIn: {
|
|
1747
|
+
address: string;
|
|
1748
|
+
decimals: number;
|
|
1749
|
+
symbol?: string | undefined;
|
|
1750
|
+
name?: string | undefined;
|
|
1751
|
+
logo?: string | null | undefined;
|
|
1752
|
+
};
|
|
1753
|
+
tokenOut: {
|
|
1754
|
+
address: string;
|
|
1755
|
+
decimals: number;
|
|
1756
|
+
symbol?: string | undefined;
|
|
1757
|
+
name?: string | undefined;
|
|
1758
|
+
logo?: string | null | undefined;
|
|
1759
|
+
};
|
|
1760
|
+
amountInTokens: string;
|
|
1761
|
+
amountOutTokens: string;
|
|
1762
|
+
exchange?: string | undefined;
|
|
1763
|
+
poolType?: string | undefined;
|
|
1764
|
+
feePercentage?: number | undefined;
|
|
1765
|
+
feeBps?: number | undefined;
|
|
1766
|
+
}[];
|
|
1767
|
+
totalFeePercentage?: number | undefined;
|
|
1768
|
+
aggregator?: string | undefined;
|
|
1769
|
+
} | undefined;
|
|
1770
|
+
} | undefined;
|
|
1771
|
+
tokenIn?: {
|
|
1772
|
+
address: string;
|
|
1773
|
+
decimals: number;
|
|
1774
|
+
symbol?: string | undefined;
|
|
1775
|
+
name?: string | undefined;
|
|
1776
|
+
logo?: string | null | undefined;
|
|
1777
|
+
} | undefined;
|
|
1778
|
+
tokenOut?: {
|
|
1779
|
+
address: string;
|
|
1780
|
+
decimals: number;
|
|
1781
|
+
symbol?: string | undefined;
|
|
1782
|
+
name?: string | undefined;
|
|
1783
|
+
logo?: string | null | undefined;
|
|
1784
|
+
} | undefined;
|
|
1785
|
+
amountOutTokens?: string | undefined;
|
|
1786
|
+
slippagePercentage?: number | undefined;
|
|
1787
|
+
amountInUSD?: number | undefined;
|
|
1788
|
+
amountOutUSD?: number | undefined;
|
|
1789
|
+
marketImpactPercentage?: number | undefined;
|
|
1790
|
+
poolFeesPercentage?: number | undefined;
|
|
1791
|
+
solana?: null | undefined;
|
|
1792
|
+
evm?: null | undefined;
|
|
1793
|
+
}>]>;
|
|
1794
|
+
error: z.ZodOptional<z.ZodString>;
|
|
1795
|
+
index: z.ZodNumber;
|
|
1796
|
+
}, "strip", z.ZodTypeAny, {
|
|
1530
1797
|
data: {
|
|
1531
1798
|
requestId: string;
|
|
1532
1799
|
solana: {
|
|
@@ -1608,6 +1875,11 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
1608
1875
|
maxFeePerGas?: string | undefined;
|
|
1609
1876
|
maxPriorityFeePerGas?: string | undefined;
|
|
1610
1877
|
nonce?: number | undefined;
|
|
1878
|
+
approvalAddress?: string | undefined;
|
|
1879
|
+
approvals?: {
|
|
1880
|
+
token: string;
|
|
1881
|
+
spender: string;
|
|
1882
|
+
}[] | undefined;
|
|
1611
1883
|
};
|
|
1612
1884
|
};
|
|
1613
1885
|
fee?: {
|
|
@@ -1668,6 +1940,75 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
1668
1940
|
marketImpactPercentage?: number | undefined;
|
|
1669
1941
|
poolFeesPercentage?: number | undefined;
|
|
1670
1942
|
solana?: null | undefined;
|
|
1943
|
+
} | {
|
|
1944
|
+
requestId: string;
|
|
1945
|
+
candidates: {
|
|
1946
|
+
serialized: string;
|
|
1947
|
+
lander: string;
|
|
1948
|
+
tipAccount: string;
|
|
1949
|
+
tipLamports: number;
|
|
1950
|
+
}[];
|
|
1951
|
+
nonceAccount: string;
|
|
1952
|
+
nonceAuthority: string;
|
|
1953
|
+
fee?: {
|
|
1954
|
+
amount: string;
|
|
1955
|
+
percentage: number;
|
|
1956
|
+
wallet: string;
|
|
1957
|
+
deductedFrom: "input" | "output";
|
|
1958
|
+
} | undefined;
|
|
1959
|
+
details?: {
|
|
1960
|
+
raw?: Record<string, unknown> | undefined;
|
|
1961
|
+
aggregator?: string | undefined;
|
|
1962
|
+
route?: {
|
|
1963
|
+
hops: {
|
|
1964
|
+
poolAddress: string;
|
|
1965
|
+
tokenIn: {
|
|
1966
|
+
address: string;
|
|
1967
|
+
decimals: number;
|
|
1968
|
+
symbol?: string | undefined;
|
|
1969
|
+
name?: string | undefined;
|
|
1970
|
+
logo?: string | null | undefined;
|
|
1971
|
+
};
|
|
1972
|
+
tokenOut: {
|
|
1973
|
+
address: string;
|
|
1974
|
+
decimals: number;
|
|
1975
|
+
symbol?: string | undefined;
|
|
1976
|
+
name?: string | undefined;
|
|
1977
|
+
logo?: string | null | undefined;
|
|
1978
|
+
};
|
|
1979
|
+
amountInTokens: string;
|
|
1980
|
+
amountOutTokens: string;
|
|
1981
|
+
exchange?: string | undefined;
|
|
1982
|
+
poolType?: string | undefined;
|
|
1983
|
+
feePercentage?: number | undefined;
|
|
1984
|
+
feeBps?: number | undefined;
|
|
1985
|
+
}[];
|
|
1986
|
+
totalFeePercentage?: number | undefined;
|
|
1987
|
+
aggregator?: string | undefined;
|
|
1988
|
+
} | undefined;
|
|
1989
|
+
} | undefined;
|
|
1990
|
+
tokenIn?: {
|
|
1991
|
+
address: string;
|
|
1992
|
+
decimals: number;
|
|
1993
|
+
symbol?: string | undefined;
|
|
1994
|
+
name?: string | undefined;
|
|
1995
|
+
logo?: string | null | undefined;
|
|
1996
|
+
} | undefined;
|
|
1997
|
+
tokenOut?: {
|
|
1998
|
+
address: string;
|
|
1999
|
+
decimals: number;
|
|
2000
|
+
symbol?: string | undefined;
|
|
2001
|
+
name?: string | undefined;
|
|
2002
|
+
logo?: string | null | undefined;
|
|
2003
|
+
} | undefined;
|
|
2004
|
+
amountOutTokens?: string | undefined;
|
|
2005
|
+
slippagePercentage?: number | undefined;
|
|
2006
|
+
amountInUSD?: number | undefined;
|
|
2007
|
+
amountOutUSD?: number | undefined;
|
|
2008
|
+
marketImpactPercentage?: number | undefined;
|
|
2009
|
+
poolFeesPercentage?: number | undefined;
|
|
2010
|
+
solana?: null | undefined;
|
|
2011
|
+
evm?: null | undefined;
|
|
1671
2012
|
} | {
|
|
1672
2013
|
requestId: string;
|
|
1673
2014
|
fee?: {
|
|
@@ -1706,36 +2047,750 @@ declare const SwapQuotingBatchResultSchema: z.ZodObject<{
|
|
|
1706
2047
|
totalFeePercentage?: number | undefined;
|
|
1707
2048
|
aggregator?: string | undefined;
|
|
1708
2049
|
} | undefined;
|
|
1709
|
-
} | undefined;
|
|
1710
|
-
tokenIn?: {
|
|
1711
|
-
address: string;
|
|
1712
|
-
decimals: number;
|
|
1713
|
-
symbol?: string | undefined;
|
|
1714
|
-
name?: string | undefined;
|
|
1715
|
-
logo?: string | null | undefined;
|
|
1716
|
-
} | undefined;
|
|
1717
|
-
tokenOut?: {
|
|
1718
|
-
address: string;
|
|
1719
|
-
decimals: number;
|
|
1720
|
-
symbol?: string | undefined;
|
|
1721
|
-
name?: string | undefined;
|
|
1722
|
-
logo?: string | null | undefined;
|
|
1723
|
-
} | undefined;
|
|
1724
|
-
amountOutTokens?: string | undefined;
|
|
1725
|
-
slippagePercentage?: number | undefined;
|
|
1726
|
-
amountInUSD?: number | undefined;
|
|
1727
|
-
amountOutUSD?: number | undefined;
|
|
1728
|
-
marketImpactPercentage?: number | undefined;
|
|
1729
|
-
poolFeesPercentage?: number | undefined;
|
|
1730
|
-
solana?: null | undefined;
|
|
1731
|
-
evm?: null | undefined;
|
|
1732
|
-
};
|
|
1733
|
-
index: number;
|
|
1734
|
-
error?: string | undefined;
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
2050
|
+
} | undefined;
|
|
2051
|
+
tokenIn?: {
|
|
2052
|
+
address: string;
|
|
2053
|
+
decimals: number;
|
|
2054
|
+
symbol?: string | undefined;
|
|
2055
|
+
name?: string | undefined;
|
|
2056
|
+
logo?: string | null | undefined;
|
|
2057
|
+
} | undefined;
|
|
2058
|
+
tokenOut?: {
|
|
2059
|
+
address: string;
|
|
2060
|
+
decimals: number;
|
|
2061
|
+
symbol?: string | undefined;
|
|
2062
|
+
name?: string | undefined;
|
|
2063
|
+
logo?: string | null | undefined;
|
|
2064
|
+
} | undefined;
|
|
2065
|
+
amountOutTokens?: string | undefined;
|
|
2066
|
+
slippagePercentage?: number | undefined;
|
|
2067
|
+
amountInUSD?: number | undefined;
|
|
2068
|
+
amountOutUSD?: number | undefined;
|
|
2069
|
+
marketImpactPercentage?: number | undefined;
|
|
2070
|
+
poolFeesPercentage?: number | undefined;
|
|
2071
|
+
solana?: null | undefined;
|
|
2072
|
+
evm?: null | undefined;
|
|
2073
|
+
};
|
|
2074
|
+
index: number;
|
|
2075
|
+
error?: string | undefined;
|
|
2076
|
+
}, {
|
|
2077
|
+
data: {
|
|
2078
|
+
requestId: string;
|
|
2079
|
+
solana: {
|
|
2080
|
+
transaction: {
|
|
2081
|
+
serialized: string;
|
|
2082
|
+
variant: "legacy" | "versioned";
|
|
2083
|
+
};
|
|
2084
|
+
lastValidBlockHeight: number;
|
|
2085
|
+
};
|
|
2086
|
+
fee?: {
|
|
2087
|
+
amount: string;
|
|
2088
|
+
percentage: number;
|
|
2089
|
+
wallet: string;
|
|
2090
|
+
deductedFrom: "input" | "output";
|
|
2091
|
+
} | undefined;
|
|
2092
|
+
details?: {
|
|
2093
|
+
raw?: Record<string, unknown> | undefined;
|
|
2094
|
+
aggregator?: string | undefined;
|
|
2095
|
+
route?: {
|
|
2096
|
+
hops: {
|
|
2097
|
+
poolAddress: string;
|
|
2098
|
+
tokenIn: {
|
|
2099
|
+
address: string;
|
|
2100
|
+
decimals: number;
|
|
2101
|
+
symbol?: string | undefined;
|
|
2102
|
+
name?: string | undefined;
|
|
2103
|
+
logo?: string | null | undefined;
|
|
2104
|
+
};
|
|
2105
|
+
tokenOut: {
|
|
2106
|
+
address: string;
|
|
2107
|
+
decimals: number;
|
|
2108
|
+
symbol?: string | undefined;
|
|
2109
|
+
name?: string | undefined;
|
|
2110
|
+
logo?: string | null | undefined;
|
|
2111
|
+
};
|
|
2112
|
+
amountInTokens: string;
|
|
2113
|
+
amountOutTokens: string;
|
|
2114
|
+
exchange?: string | undefined;
|
|
2115
|
+
poolType?: string | undefined;
|
|
2116
|
+
feePercentage?: number | undefined;
|
|
2117
|
+
feeBps?: number | undefined;
|
|
2118
|
+
}[];
|
|
2119
|
+
totalFeePercentage?: number | undefined;
|
|
2120
|
+
aggregator?: string | undefined;
|
|
2121
|
+
} | undefined;
|
|
2122
|
+
} | undefined;
|
|
2123
|
+
tokenIn?: {
|
|
2124
|
+
address: string;
|
|
2125
|
+
decimals: number;
|
|
2126
|
+
symbol?: string | undefined;
|
|
2127
|
+
name?: string | undefined;
|
|
2128
|
+
logo?: string | null | undefined;
|
|
2129
|
+
} | undefined;
|
|
2130
|
+
tokenOut?: {
|
|
2131
|
+
address: string;
|
|
2132
|
+
decimals: number;
|
|
2133
|
+
symbol?: string | undefined;
|
|
2134
|
+
name?: string | undefined;
|
|
2135
|
+
logo?: string | null | undefined;
|
|
2136
|
+
} | undefined;
|
|
2137
|
+
amountOutTokens?: string | undefined;
|
|
2138
|
+
slippagePercentage?: number | undefined;
|
|
2139
|
+
amountInUSD?: number | undefined;
|
|
2140
|
+
amountOutUSD?: number | undefined;
|
|
2141
|
+
marketImpactPercentage?: number | undefined;
|
|
2142
|
+
poolFeesPercentage?: number | undefined;
|
|
2143
|
+
evm?: null | undefined;
|
|
2144
|
+
} | {
|
|
2145
|
+
requestId: string;
|
|
2146
|
+
evm: {
|
|
2147
|
+
transaction: {
|
|
2148
|
+
value: string;
|
|
2149
|
+
chainId: number;
|
|
2150
|
+
data: string;
|
|
2151
|
+
from: string;
|
|
2152
|
+
to: string;
|
|
2153
|
+
gasLimit?: string | undefined;
|
|
2154
|
+
gasPrice?: string | undefined;
|
|
2155
|
+
maxFeePerGas?: string | undefined;
|
|
2156
|
+
maxPriorityFeePerGas?: string | undefined;
|
|
2157
|
+
nonce?: number | undefined;
|
|
2158
|
+
approvalAddress?: string | undefined;
|
|
2159
|
+
approvals?: {
|
|
2160
|
+
token: string;
|
|
2161
|
+
spender: string;
|
|
2162
|
+
}[] | undefined;
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
fee?: {
|
|
2166
|
+
amount: string;
|
|
2167
|
+
percentage: number;
|
|
2168
|
+
wallet: string;
|
|
2169
|
+
deductedFrom: "input" | "output";
|
|
2170
|
+
} | undefined;
|
|
2171
|
+
details?: {
|
|
2172
|
+
raw?: Record<string, unknown> | undefined;
|
|
2173
|
+
aggregator?: string | undefined;
|
|
2174
|
+
route?: {
|
|
2175
|
+
hops: {
|
|
2176
|
+
poolAddress: string;
|
|
2177
|
+
tokenIn: {
|
|
2178
|
+
address: string;
|
|
2179
|
+
decimals: number;
|
|
2180
|
+
symbol?: string | undefined;
|
|
2181
|
+
name?: string | undefined;
|
|
2182
|
+
logo?: string | null | undefined;
|
|
2183
|
+
};
|
|
2184
|
+
tokenOut: {
|
|
2185
|
+
address: string;
|
|
2186
|
+
decimals: number;
|
|
2187
|
+
symbol?: string | undefined;
|
|
2188
|
+
name?: string | undefined;
|
|
2189
|
+
logo?: string | null | undefined;
|
|
2190
|
+
};
|
|
2191
|
+
amountInTokens: string;
|
|
2192
|
+
amountOutTokens: string;
|
|
2193
|
+
exchange?: string | undefined;
|
|
2194
|
+
poolType?: string | undefined;
|
|
2195
|
+
feePercentage?: number | undefined;
|
|
2196
|
+
feeBps?: number | undefined;
|
|
2197
|
+
}[];
|
|
2198
|
+
totalFeePercentage?: number | undefined;
|
|
2199
|
+
aggregator?: string | undefined;
|
|
2200
|
+
} | undefined;
|
|
2201
|
+
} | undefined;
|
|
2202
|
+
tokenIn?: {
|
|
2203
|
+
address: string;
|
|
2204
|
+
decimals: number;
|
|
2205
|
+
symbol?: string | undefined;
|
|
2206
|
+
name?: string | undefined;
|
|
2207
|
+
logo?: string | null | undefined;
|
|
2208
|
+
} | undefined;
|
|
2209
|
+
tokenOut?: {
|
|
2210
|
+
address: string;
|
|
2211
|
+
decimals: number;
|
|
2212
|
+
symbol?: string | undefined;
|
|
2213
|
+
name?: string | undefined;
|
|
2214
|
+
logo?: string | null | undefined;
|
|
2215
|
+
} | undefined;
|
|
2216
|
+
amountOutTokens?: string | undefined;
|
|
2217
|
+
slippagePercentage?: number | undefined;
|
|
2218
|
+
amountInUSD?: number | undefined;
|
|
2219
|
+
amountOutUSD?: number | undefined;
|
|
2220
|
+
marketImpactPercentage?: number | undefined;
|
|
2221
|
+
poolFeesPercentage?: number | undefined;
|
|
2222
|
+
solana?: null | undefined;
|
|
2223
|
+
} | {
|
|
2224
|
+
requestId: string;
|
|
2225
|
+
candidates: {
|
|
2226
|
+
serialized: string;
|
|
2227
|
+
lander: string;
|
|
2228
|
+
tipAccount: string;
|
|
2229
|
+
tipLamports: number;
|
|
2230
|
+
}[];
|
|
2231
|
+
nonceAccount: string;
|
|
2232
|
+
nonceAuthority: string;
|
|
2233
|
+
fee?: {
|
|
2234
|
+
amount: string;
|
|
2235
|
+
percentage: number;
|
|
2236
|
+
wallet: string;
|
|
2237
|
+
deductedFrom: "input" | "output";
|
|
2238
|
+
} | undefined;
|
|
2239
|
+
details?: {
|
|
2240
|
+
raw?: Record<string, unknown> | undefined;
|
|
2241
|
+
aggregator?: string | undefined;
|
|
2242
|
+
route?: {
|
|
2243
|
+
hops: {
|
|
2244
|
+
poolAddress: string;
|
|
2245
|
+
tokenIn: {
|
|
2246
|
+
address: string;
|
|
2247
|
+
decimals: number;
|
|
2248
|
+
symbol?: string | undefined;
|
|
2249
|
+
name?: string | undefined;
|
|
2250
|
+
logo?: string | null | undefined;
|
|
2251
|
+
};
|
|
2252
|
+
tokenOut: {
|
|
2253
|
+
address: string;
|
|
2254
|
+
decimals: number;
|
|
2255
|
+
symbol?: string | undefined;
|
|
2256
|
+
name?: string | undefined;
|
|
2257
|
+
logo?: string | null | undefined;
|
|
2258
|
+
};
|
|
2259
|
+
amountInTokens: string;
|
|
2260
|
+
amountOutTokens: string;
|
|
2261
|
+
exchange?: string | undefined;
|
|
2262
|
+
poolType?: string | undefined;
|
|
2263
|
+
feePercentage?: number | undefined;
|
|
2264
|
+
feeBps?: number | undefined;
|
|
2265
|
+
}[];
|
|
2266
|
+
totalFeePercentage?: number | undefined;
|
|
2267
|
+
aggregator?: string | undefined;
|
|
2268
|
+
} | undefined;
|
|
2269
|
+
} | undefined;
|
|
2270
|
+
tokenIn?: {
|
|
2271
|
+
address: string;
|
|
2272
|
+
decimals: number;
|
|
2273
|
+
symbol?: string | undefined;
|
|
2274
|
+
name?: string | undefined;
|
|
2275
|
+
logo?: string | null | undefined;
|
|
2276
|
+
} | undefined;
|
|
2277
|
+
tokenOut?: {
|
|
2278
|
+
address: string;
|
|
2279
|
+
decimals: number;
|
|
2280
|
+
symbol?: string | undefined;
|
|
2281
|
+
name?: string | undefined;
|
|
2282
|
+
logo?: string | null | undefined;
|
|
2283
|
+
} | undefined;
|
|
2284
|
+
amountOutTokens?: string | undefined;
|
|
2285
|
+
slippagePercentage?: number | undefined;
|
|
2286
|
+
amountInUSD?: number | undefined;
|
|
2287
|
+
amountOutUSD?: number | undefined;
|
|
2288
|
+
marketImpactPercentage?: number | undefined;
|
|
2289
|
+
poolFeesPercentage?: number | undefined;
|
|
2290
|
+
solana?: null | undefined;
|
|
2291
|
+
evm?: null | undefined;
|
|
2292
|
+
} | {
|
|
2293
|
+
requestId: string;
|
|
2294
|
+
fee?: {
|
|
2295
|
+
amount: string;
|
|
2296
|
+
percentage: number;
|
|
2297
|
+
wallet: string;
|
|
2298
|
+
deductedFrom: "input" | "output";
|
|
2299
|
+
} | undefined;
|
|
2300
|
+
details?: {
|
|
2301
|
+
raw?: Record<string, unknown> | undefined;
|
|
2302
|
+
aggregator?: string | undefined;
|
|
2303
|
+
route?: {
|
|
2304
|
+
hops: {
|
|
2305
|
+
poolAddress: string;
|
|
2306
|
+
tokenIn: {
|
|
2307
|
+
address: string;
|
|
2308
|
+
decimals: number;
|
|
2309
|
+
symbol?: string | undefined;
|
|
2310
|
+
name?: string | undefined;
|
|
2311
|
+
logo?: string | null | undefined;
|
|
2312
|
+
};
|
|
2313
|
+
tokenOut: {
|
|
2314
|
+
address: string;
|
|
2315
|
+
decimals: number;
|
|
2316
|
+
symbol?: string | undefined;
|
|
2317
|
+
name?: string | undefined;
|
|
2318
|
+
logo?: string | null | undefined;
|
|
2319
|
+
};
|
|
2320
|
+
amountInTokens: string;
|
|
2321
|
+
amountOutTokens: string;
|
|
2322
|
+
exchange?: string | undefined;
|
|
2323
|
+
poolType?: string | undefined;
|
|
2324
|
+
feePercentage?: number | undefined;
|
|
2325
|
+
feeBps?: number | undefined;
|
|
2326
|
+
}[];
|
|
2327
|
+
totalFeePercentage?: number | undefined;
|
|
2328
|
+
aggregator?: string | undefined;
|
|
2329
|
+
} | undefined;
|
|
2330
|
+
} | undefined;
|
|
2331
|
+
tokenIn?: {
|
|
2332
|
+
address: string;
|
|
2333
|
+
decimals: number;
|
|
2334
|
+
symbol?: string | undefined;
|
|
2335
|
+
name?: string | undefined;
|
|
2336
|
+
logo?: string | null | undefined;
|
|
2337
|
+
} | undefined;
|
|
2338
|
+
tokenOut?: {
|
|
2339
|
+
address: string;
|
|
2340
|
+
decimals: number;
|
|
2341
|
+
symbol?: string | undefined;
|
|
2342
|
+
name?: string | undefined;
|
|
2343
|
+
logo?: string | null | undefined;
|
|
2344
|
+
} | undefined;
|
|
2345
|
+
amountOutTokens?: string | undefined;
|
|
2346
|
+
slippagePercentage?: number | undefined;
|
|
2347
|
+
amountInUSD?: number | undefined;
|
|
2348
|
+
amountOutUSD?: number | undefined;
|
|
2349
|
+
marketImpactPercentage?: number | undefined;
|
|
2350
|
+
poolFeesPercentage?: number | undefined;
|
|
2351
|
+
solana?: null | undefined;
|
|
2352
|
+
evm?: null | undefined;
|
|
2353
|
+
};
|
|
2354
|
+
index: number;
|
|
2355
|
+
error?: string | undefined;
|
|
2356
|
+
}>;
|
|
2357
|
+
export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
2358
|
+
results: z.ZodArray<z.ZodObject<{
|
|
2359
|
+
data: z.ZodUnion<[z.ZodObject<{
|
|
2360
|
+
amountOutTokens: z.ZodOptional<z.ZodString>;
|
|
2361
|
+
slippagePercentage: z.ZodOptional<z.ZodNumber>;
|
|
2362
|
+
amountInUSD: z.ZodOptional<z.ZodNumber>;
|
|
2363
|
+
amountOutUSD: z.ZodOptional<z.ZodNumber>;
|
|
2364
|
+
marketImpactPercentage: z.ZodOptional<z.ZodNumber>;
|
|
2365
|
+
poolFeesPercentage: z.ZodOptional<z.ZodNumber>;
|
|
2366
|
+
tokenIn: z.ZodOptional<z.ZodObject<{
|
|
2367
|
+
address: z.ZodString;
|
|
2368
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2369
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
2370
|
+
decimals: z.ZodNumber;
|
|
2371
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2372
|
+
}, "strip", z.ZodTypeAny, {
|
|
2373
|
+
address: string;
|
|
2374
|
+
decimals: number;
|
|
2375
|
+
symbol?: string | undefined;
|
|
2376
|
+
name?: string | undefined;
|
|
2377
|
+
logo?: string | null | undefined;
|
|
2378
|
+
}, {
|
|
2379
|
+
address: string;
|
|
2380
|
+
decimals: number;
|
|
2381
|
+
symbol?: string | undefined;
|
|
2382
|
+
name?: string | undefined;
|
|
2383
|
+
logo?: string | null | undefined;
|
|
2384
|
+
}>>;
|
|
2385
|
+
tokenOut: z.ZodOptional<z.ZodObject<{
|
|
2386
|
+
address: z.ZodString;
|
|
2387
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2388
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
2389
|
+
decimals: z.ZodNumber;
|
|
2390
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2391
|
+
}, "strip", z.ZodTypeAny, {
|
|
2392
|
+
address: string;
|
|
2393
|
+
decimals: number;
|
|
2394
|
+
symbol?: string | undefined;
|
|
2395
|
+
name?: string | undefined;
|
|
2396
|
+
logo?: string | null | undefined;
|
|
2397
|
+
}, {
|
|
2398
|
+
address: string;
|
|
2399
|
+
decimals: number;
|
|
2400
|
+
symbol?: string | undefined;
|
|
2401
|
+
name?: string | undefined;
|
|
2402
|
+
logo?: string | null | undefined;
|
|
2403
|
+
}>>;
|
|
2404
|
+
requestId: z.ZodString;
|
|
2405
|
+
details: z.ZodOptional<z.ZodObject<{
|
|
2406
|
+
route: z.ZodOptional<z.ZodObject<{
|
|
2407
|
+
hops: z.ZodArray<z.ZodObject<{
|
|
2408
|
+
poolAddress: z.ZodString;
|
|
2409
|
+
tokenIn: z.ZodObject<{
|
|
2410
|
+
address: z.ZodString;
|
|
2411
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2412
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
2413
|
+
decimals: z.ZodNumber;
|
|
2414
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2415
|
+
}, "strip", z.ZodTypeAny, {
|
|
2416
|
+
address: string;
|
|
2417
|
+
decimals: number;
|
|
2418
|
+
symbol?: string | undefined;
|
|
2419
|
+
name?: string | undefined;
|
|
2420
|
+
logo?: string | null | undefined;
|
|
2421
|
+
}, {
|
|
2422
|
+
address: string;
|
|
2423
|
+
decimals: number;
|
|
2424
|
+
symbol?: string | undefined;
|
|
2425
|
+
name?: string | undefined;
|
|
2426
|
+
logo?: string | null | undefined;
|
|
2427
|
+
}>;
|
|
2428
|
+
tokenOut: z.ZodObject<{
|
|
2429
|
+
address: z.ZodString;
|
|
2430
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2431
|
+
symbol: z.ZodOptional<z.ZodString>;
|
|
2432
|
+
decimals: z.ZodNumber;
|
|
2433
|
+
logo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2434
|
+
}, "strip", z.ZodTypeAny, {
|
|
2435
|
+
address: string;
|
|
2436
|
+
decimals: number;
|
|
2437
|
+
symbol?: string | undefined;
|
|
2438
|
+
name?: string | undefined;
|
|
2439
|
+
logo?: string | null | undefined;
|
|
2440
|
+
}, {
|
|
2441
|
+
address: string;
|
|
2442
|
+
decimals: number;
|
|
2443
|
+
symbol?: string | undefined;
|
|
2444
|
+
name?: string | undefined;
|
|
2445
|
+
logo?: string | null | undefined;
|
|
2446
|
+
}>;
|
|
2447
|
+
amountInTokens: z.ZodString;
|
|
2448
|
+
amountOutTokens: z.ZodString;
|
|
2449
|
+
exchange: z.ZodOptional<z.ZodString>;
|
|
2450
|
+
poolType: z.ZodOptional<z.ZodString>;
|
|
2451
|
+
feePercentage: z.ZodOptional<z.ZodNumber>;
|
|
2452
|
+
feeBps: z.ZodOptional<z.ZodNumber>;
|
|
2453
|
+
}, "strip", z.ZodTypeAny, {
|
|
2454
|
+
poolAddress: string;
|
|
2455
|
+
tokenIn: {
|
|
2456
|
+
address: string;
|
|
2457
|
+
decimals: number;
|
|
2458
|
+
symbol?: string | undefined;
|
|
2459
|
+
name?: string | undefined;
|
|
2460
|
+
logo?: string | null | undefined;
|
|
2461
|
+
};
|
|
2462
|
+
tokenOut: {
|
|
2463
|
+
address: string;
|
|
2464
|
+
decimals: number;
|
|
2465
|
+
symbol?: string | undefined;
|
|
2466
|
+
name?: string | undefined;
|
|
2467
|
+
logo?: string | null | undefined;
|
|
2468
|
+
};
|
|
2469
|
+
amountInTokens: string;
|
|
2470
|
+
amountOutTokens: string;
|
|
2471
|
+
exchange?: string | undefined;
|
|
2472
|
+
poolType?: string | undefined;
|
|
2473
|
+
feePercentage?: number | undefined;
|
|
2474
|
+
feeBps?: number | undefined;
|
|
2475
|
+
}, {
|
|
2476
|
+
poolAddress: string;
|
|
2477
|
+
tokenIn: {
|
|
2478
|
+
address: string;
|
|
2479
|
+
decimals: number;
|
|
2480
|
+
symbol?: string | undefined;
|
|
2481
|
+
name?: string | undefined;
|
|
2482
|
+
logo?: string | null | undefined;
|
|
2483
|
+
};
|
|
2484
|
+
tokenOut: {
|
|
2485
|
+
address: string;
|
|
2486
|
+
decimals: number;
|
|
2487
|
+
symbol?: string | undefined;
|
|
2488
|
+
name?: string | undefined;
|
|
2489
|
+
logo?: string | null | undefined;
|
|
2490
|
+
};
|
|
2491
|
+
amountInTokens: string;
|
|
2492
|
+
amountOutTokens: string;
|
|
2493
|
+
exchange?: string | undefined;
|
|
2494
|
+
poolType?: string | undefined;
|
|
2495
|
+
feePercentage?: number | undefined;
|
|
2496
|
+
feeBps?: number | undefined;
|
|
2497
|
+
}>, "many">;
|
|
2498
|
+
totalFeePercentage: z.ZodOptional<z.ZodNumber>;
|
|
2499
|
+
aggregator: z.ZodOptional<z.ZodString>;
|
|
2500
|
+
}, "strip", z.ZodTypeAny, {
|
|
2501
|
+
hops: {
|
|
2502
|
+
poolAddress: string;
|
|
2503
|
+
tokenIn: {
|
|
2504
|
+
address: string;
|
|
2505
|
+
decimals: number;
|
|
2506
|
+
symbol?: string | undefined;
|
|
2507
|
+
name?: string | undefined;
|
|
2508
|
+
logo?: string | null | undefined;
|
|
2509
|
+
};
|
|
2510
|
+
tokenOut: {
|
|
2511
|
+
address: string;
|
|
2512
|
+
decimals: number;
|
|
2513
|
+
symbol?: string | undefined;
|
|
2514
|
+
name?: string | undefined;
|
|
2515
|
+
logo?: string | null | undefined;
|
|
2516
|
+
};
|
|
2517
|
+
amountInTokens: string;
|
|
2518
|
+
amountOutTokens: string;
|
|
2519
|
+
exchange?: string | undefined;
|
|
2520
|
+
poolType?: string | undefined;
|
|
2521
|
+
feePercentage?: number | undefined;
|
|
2522
|
+
feeBps?: number | undefined;
|
|
2523
|
+
}[];
|
|
2524
|
+
totalFeePercentage?: number | undefined;
|
|
2525
|
+
aggregator?: string | undefined;
|
|
2526
|
+
}, {
|
|
2527
|
+
hops: {
|
|
2528
|
+
poolAddress: string;
|
|
2529
|
+
tokenIn: {
|
|
2530
|
+
address: string;
|
|
2531
|
+
decimals: number;
|
|
2532
|
+
symbol?: string | undefined;
|
|
2533
|
+
name?: string | undefined;
|
|
2534
|
+
logo?: string | null | undefined;
|
|
2535
|
+
};
|
|
2536
|
+
tokenOut: {
|
|
2537
|
+
address: string;
|
|
2538
|
+
decimals: number;
|
|
2539
|
+
symbol?: string | undefined;
|
|
2540
|
+
name?: string | undefined;
|
|
2541
|
+
logo?: string | null | undefined;
|
|
2542
|
+
};
|
|
2543
|
+
amountInTokens: string;
|
|
2544
|
+
amountOutTokens: string;
|
|
2545
|
+
exchange?: string | undefined;
|
|
2546
|
+
poolType?: string | undefined;
|
|
2547
|
+
feePercentage?: number | undefined;
|
|
2548
|
+
feeBps?: number | undefined;
|
|
2549
|
+
}[];
|
|
2550
|
+
totalFeePercentage?: number | undefined;
|
|
2551
|
+
aggregator?: string | undefined;
|
|
2552
|
+
}>>;
|
|
2553
|
+
aggregator: z.ZodOptional<z.ZodString>;
|
|
2554
|
+
raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2555
|
+
}, "strip", z.ZodTypeAny, {
|
|
2556
|
+
raw?: Record<string, unknown> | undefined;
|
|
2557
|
+
aggregator?: string | undefined;
|
|
2558
|
+
route?: {
|
|
2559
|
+
hops: {
|
|
2560
|
+
poolAddress: string;
|
|
2561
|
+
tokenIn: {
|
|
2562
|
+
address: string;
|
|
2563
|
+
decimals: number;
|
|
2564
|
+
symbol?: string | undefined;
|
|
2565
|
+
name?: string | undefined;
|
|
2566
|
+
logo?: string | null | undefined;
|
|
2567
|
+
};
|
|
2568
|
+
tokenOut: {
|
|
2569
|
+
address: string;
|
|
2570
|
+
decimals: number;
|
|
2571
|
+
symbol?: string | undefined;
|
|
2572
|
+
name?: string | undefined;
|
|
2573
|
+
logo?: string | null | undefined;
|
|
2574
|
+
};
|
|
2575
|
+
amountInTokens: string;
|
|
2576
|
+
amountOutTokens: string;
|
|
2577
|
+
exchange?: string | undefined;
|
|
2578
|
+
poolType?: string | undefined;
|
|
2579
|
+
feePercentage?: number | undefined;
|
|
2580
|
+
feeBps?: number | undefined;
|
|
2581
|
+
}[];
|
|
2582
|
+
totalFeePercentage?: number | undefined;
|
|
2583
|
+
aggregator?: string | undefined;
|
|
2584
|
+
} | undefined;
|
|
2585
|
+
}, {
|
|
2586
|
+
raw?: Record<string, unknown> | undefined;
|
|
2587
|
+
aggregator?: string | undefined;
|
|
2588
|
+
route?: {
|
|
2589
|
+
hops: {
|
|
2590
|
+
poolAddress: string;
|
|
2591
|
+
tokenIn: {
|
|
2592
|
+
address: string;
|
|
2593
|
+
decimals: number;
|
|
2594
|
+
symbol?: string | undefined;
|
|
2595
|
+
name?: string | undefined;
|
|
2596
|
+
logo?: string | null | undefined;
|
|
2597
|
+
};
|
|
2598
|
+
tokenOut: {
|
|
2599
|
+
address: string;
|
|
2600
|
+
decimals: number;
|
|
2601
|
+
symbol?: string | undefined;
|
|
2602
|
+
name?: string | undefined;
|
|
2603
|
+
logo?: string | null | undefined;
|
|
2604
|
+
};
|
|
2605
|
+
amountInTokens: string;
|
|
2606
|
+
amountOutTokens: string;
|
|
2607
|
+
exchange?: string | undefined;
|
|
2608
|
+
poolType?: string | undefined;
|
|
2609
|
+
feePercentage?: number | undefined;
|
|
2610
|
+
feeBps?: number | undefined;
|
|
2611
|
+
}[];
|
|
2612
|
+
totalFeePercentage?: number | undefined;
|
|
2613
|
+
aggregator?: string | undefined;
|
|
2614
|
+
} | undefined;
|
|
2615
|
+
}>>;
|
|
2616
|
+
fee: z.ZodOptional<z.ZodObject<{
|
|
2617
|
+
amount: z.ZodString;
|
|
2618
|
+
percentage: z.ZodNumber;
|
|
2619
|
+
wallet: z.ZodString;
|
|
2620
|
+
deductedFrom: z.ZodEnum<["input", "output"]>;
|
|
2621
|
+
}, "strip", z.ZodTypeAny, {
|
|
2622
|
+
amount: string;
|
|
2623
|
+
percentage: number;
|
|
2624
|
+
wallet: string;
|
|
2625
|
+
deductedFrom: "input" | "output";
|
|
2626
|
+
}, {
|
|
2627
|
+
amount: string;
|
|
2628
|
+
percentage: number;
|
|
2629
|
+
wallet: string;
|
|
2630
|
+
deductedFrom: "input" | "output";
|
|
2631
|
+
}>>;
|
|
2632
|
+
} & {
|
|
2633
|
+
solana: z.ZodObject<{
|
|
2634
|
+
transaction: z.ZodObject<{
|
|
2635
|
+
serialized: z.ZodString;
|
|
2636
|
+
variant: z.ZodEnum<["legacy", "versioned"]>;
|
|
2637
|
+
}, "strip", z.ZodTypeAny, {
|
|
2638
|
+
serialized: string;
|
|
2639
|
+
variant: "legacy" | "versioned";
|
|
2640
|
+
}, {
|
|
2641
|
+
serialized: string;
|
|
2642
|
+
variant: "legacy" | "versioned";
|
|
2643
|
+
}>;
|
|
2644
|
+
lastValidBlockHeight: z.ZodNumber;
|
|
2645
|
+
}, "strip", z.ZodTypeAny, {
|
|
2646
|
+
transaction: {
|
|
2647
|
+
serialized: string;
|
|
2648
|
+
variant: "legacy" | "versioned";
|
|
2649
|
+
};
|
|
2650
|
+
lastValidBlockHeight: number;
|
|
2651
|
+
}, {
|
|
2652
|
+
transaction: {
|
|
2653
|
+
serialized: string;
|
|
2654
|
+
variant: "legacy" | "versioned";
|
|
2655
|
+
};
|
|
2656
|
+
lastValidBlockHeight: number;
|
|
2657
|
+
}>;
|
|
2658
|
+
evm: z.ZodOptional<z.ZodNull>;
|
|
2659
|
+
}, "strip", z.ZodTypeAny, {
|
|
2660
|
+
requestId: string;
|
|
2661
|
+
solana: {
|
|
2662
|
+
transaction: {
|
|
2663
|
+
serialized: string;
|
|
2664
|
+
variant: "legacy" | "versioned";
|
|
2665
|
+
};
|
|
2666
|
+
lastValidBlockHeight: number;
|
|
2667
|
+
};
|
|
2668
|
+
fee?: {
|
|
2669
|
+
amount: string;
|
|
2670
|
+
percentage: number;
|
|
2671
|
+
wallet: string;
|
|
2672
|
+
deductedFrom: "input" | "output";
|
|
2673
|
+
} | undefined;
|
|
2674
|
+
details?: {
|
|
2675
|
+
raw?: Record<string, unknown> | undefined;
|
|
2676
|
+
aggregator?: string | undefined;
|
|
2677
|
+
route?: {
|
|
2678
|
+
hops: {
|
|
2679
|
+
poolAddress: string;
|
|
2680
|
+
tokenIn: {
|
|
2681
|
+
address: string;
|
|
2682
|
+
decimals: number;
|
|
2683
|
+
symbol?: string | undefined;
|
|
2684
|
+
name?: string | undefined;
|
|
2685
|
+
logo?: string | null | undefined;
|
|
2686
|
+
};
|
|
2687
|
+
tokenOut: {
|
|
2688
|
+
address: string;
|
|
2689
|
+
decimals: number;
|
|
2690
|
+
symbol?: string | undefined;
|
|
2691
|
+
name?: string | undefined;
|
|
2692
|
+
logo?: string | null | undefined;
|
|
2693
|
+
};
|
|
2694
|
+
amountInTokens: string;
|
|
2695
|
+
amountOutTokens: string;
|
|
2696
|
+
exchange?: string | undefined;
|
|
2697
|
+
poolType?: string | undefined;
|
|
2698
|
+
feePercentage?: number | undefined;
|
|
2699
|
+
feeBps?: number | undefined;
|
|
2700
|
+
}[];
|
|
2701
|
+
totalFeePercentage?: number | undefined;
|
|
2702
|
+
aggregator?: string | undefined;
|
|
2703
|
+
} | undefined;
|
|
2704
|
+
} | undefined;
|
|
2705
|
+
tokenIn?: {
|
|
2706
|
+
address: string;
|
|
2707
|
+
decimals: number;
|
|
2708
|
+
symbol?: string | undefined;
|
|
2709
|
+
name?: string | undefined;
|
|
2710
|
+
logo?: string | null | undefined;
|
|
2711
|
+
} | undefined;
|
|
2712
|
+
tokenOut?: {
|
|
2713
|
+
address: string;
|
|
2714
|
+
decimals: number;
|
|
2715
|
+
symbol?: string | undefined;
|
|
2716
|
+
name?: string | undefined;
|
|
2717
|
+
logo?: string | null | undefined;
|
|
2718
|
+
} | undefined;
|
|
2719
|
+
amountOutTokens?: string | undefined;
|
|
2720
|
+
slippagePercentage?: number | undefined;
|
|
2721
|
+
amountInUSD?: number | undefined;
|
|
2722
|
+
amountOutUSD?: number | undefined;
|
|
2723
|
+
marketImpactPercentage?: number | undefined;
|
|
2724
|
+
poolFeesPercentage?: number | undefined;
|
|
2725
|
+
evm?: null | undefined;
|
|
2726
|
+
}, {
|
|
2727
|
+
requestId: string;
|
|
2728
|
+
solana: {
|
|
2729
|
+
transaction: {
|
|
2730
|
+
serialized: string;
|
|
2731
|
+
variant: "legacy" | "versioned";
|
|
2732
|
+
};
|
|
2733
|
+
lastValidBlockHeight: number;
|
|
2734
|
+
};
|
|
2735
|
+
fee?: {
|
|
2736
|
+
amount: string;
|
|
2737
|
+
percentage: number;
|
|
2738
|
+
wallet: string;
|
|
2739
|
+
deductedFrom: "input" | "output";
|
|
2740
|
+
} | undefined;
|
|
2741
|
+
details?: {
|
|
2742
|
+
raw?: Record<string, unknown> | undefined;
|
|
2743
|
+
aggregator?: string | undefined;
|
|
2744
|
+
route?: {
|
|
2745
|
+
hops: {
|
|
2746
|
+
poolAddress: string;
|
|
2747
|
+
tokenIn: {
|
|
2748
|
+
address: string;
|
|
2749
|
+
decimals: number;
|
|
2750
|
+
symbol?: string | undefined;
|
|
2751
|
+
name?: string | undefined;
|
|
2752
|
+
logo?: string | null | undefined;
|
|
2753
|
+
};
|
|
2754
|
+
tokenOut: {
|
|
2755
|
+
address: string;
|
|
2756
|
+
decimals: number;
|
|
2757
|
+
symbol?: string | undefined;
|
|
2758
|
+
name?: string | undefined;
|
|
2759
|
+
logo?: string | null | undefined;
|
|
2760
|
+
};
|
|
2761
|
+
amountInTokens: string;
|
|
2762
|
+
amountOutTokens: string;
|
|
2763
|
+
exchange?: string | undefined;
|
|
2764
|
+
poolType?: string | undefined;
|
|
2765
|
+
feePercentage?: number | undefined;
|
|
2766
|
+
feeBps?: number | undefined;
|
|
2767
|
+
}[];
|
|
2768
|
+
totalFeePercentage?: number | undefined;
|
|
2769
|
+
aggregator?: string | undefined;
|
|
2770
|
+
} | undefined;
|
|
2771
|
+
} | undefined;
|
|
2772
|
+
tokenIn?: {
|
|
2773
|
+
address: string;
|
|
2774
|
+
decimals: number;
|
|
2775
|
+
symbol?: string | undefined;
|
|
2776
|
+
name?: string | undefined;
|
|
2777
|
+
logo?: string | null | undefined;
|
|
2778
|
+
} | undefined;
|
|
2779
|
+
tokenOut?: {
|
|
2780
|
+
address: string;
|
|
2781
|
+
decimals: number;
|
|
2782
|
+
symbol?: string | undefined;
|
|
2783
|
+
name?: string | undefined;
|
|
2784
|
+
logo?: string | null | undefined;
|
|
2785
|
+
} | undefined;
|
|
2786
|
+
amountOutTokens?: string | undefined;
|
|
2787
|
+
slippagePercentage?: number | undefined;
|
|
2788
|
+
amountInUSD?: number | undefined;
|
|
2789
|
+
amountOutUSD?: number | undefined;
|
|
2790
|
+
marketImpactPercentage?: number | undefined;
|
|
2791
|
+
poolFeesPercentage?: number | undefined;
|
|
2792
|
+
evm?: null | undefined;
|
|
2793
|
+
}>, z.ZodObject<{
|
|
1739
2794
|
amountOutTokens: z.ZodOptional<z.ZodString>;
|
|
1740
2795
|
slippagePercentage: z.ZodOptional<z.ZodNumber>;
|
|
1741
2796
|
amountInUSD: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2009,40 +3064,120 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
2009
3064
|
deductedFrom: "input" | "output";
|
|
2010
3065
|
}>>;
|
|
2011
3066
|
} & {
|
|
2012
|
-
|
|
3067
|
+
evm: z.ZodObject<{
|
|
2013
3068
|
transaction: z.ZodObject<{
|
|
2014
|
-
|
|
2015
|
-
|
|
3069
|
+
to: z.ZodString;
|
|
3070
|
+
from: z.ZodString;
|
|
3071
|
+
data: z.ZodString;
|
|
3072
|
+
value: z.ZodString;
|
|
3073
|
+
gasLimit: z.ZodOptional<z.ZodString>;
|
|
3074
|
+
gasPrice: z.ZodOptional<z.ZodString>;
|
|
3075
|
+
maxFeePerGas: z.ZodOptional<z.ZodString>;
|
|
3076
|
+
maxPriorityFeePerGas: z.ZodOptional<z.ZodString>;
|
|
3077
|
+
nonce: z.ZodOptional<z.ZodNumber>;
|
|
3078
|
+
chainId: z.ZodNumber;
|
|
3079
|
+
approvalAddress: z.ZodOptional<z.ZodString>;
|
|
3080
|
+
approvals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3081
|
+
token: z.ZodString;
|
|
3082
|
+
spender: z.ZodString;
|
|
3083
|
+
}, "strip", z.ZodTypeAny, {
|
|
3084
|
+
token: string;
|
|
3085
|
+
spender: string;
|
|
3086
|
+
}, {
|
|
3087
|
+
token: string;
|
|
3088
|
+
spender: string;
|
|
3089
|
+
}>, "many">>;
|
|
2016
3090
|
}, "strip", z.ZodTypeAny, {
|
|
2017
|
-
|
|
2018
|
-
|
|
3091
|
+
value: string;
|
|
3092
|
+
chainId: number;
|
|
3093
|
+
data: string;
|
|
3094
|
+
from: string;
|
|
3095
|
+
to: string;
|
|
3096
|
+
gasLimit?: string | undefined;
|
|
3097
|
+
gasPrice?: string | undefined;
|
|
3098
|
+
maxFeePerGas?: string | undefined;
|
|
3099
|
+
maxPriorityFeePerGas?: string | undefined;
|
|
3100
|
+
nonce?: number | undefined;
|
|
3101
|
+
approvalAddress?: string | undefined;
|
|
3102
|
+
approvals?: {
|
|
3103
|
+
token: string;
|
|
3104
|
+
spender: string;
|
|
3105
|
+
}[] | undefined;
|
|
2019
3106
|
}, {
|
|
2020
|
-
|
|
2021
|
-
|
|
3107
|
+
value: string;
|
|
3108
|
+
chainId: number;
|
|
3109
|
+
data: string;
|
|
3110
|
+
from: string;
|
|
3111
|
+
to: string;
|
|
3112
|
+
gasLimit?: string | undefined;
|
|
3113
|
+
gasPrice?: string | undefined;
|
|
3114
|
+
maxFeePerGas?: string | undefined;
|
|
3115
|
+
maxPriorityFeePerGas?: string | undefined;
|
|
3116
|
+
nonce?: number | undefined;
|
|
3117
|
+
approvalAddress?: string | undefined;
|
|
3118
|
+
approvals?: {
|
|
3119
|
+
token: string;
|
|
3120
|
+
spender: string;
|
|
3121
|
+
}[] | undefined;
|
|
2022
3122
|
}>;
|
|
2023
|
-
lastValidBlockHeight: z.ZodNumber;
|
|
2024
3123
|
}, "strip", z.ZodTypeAny, {
|
|
2025
3124
|
transaction: {
|
|
2026
|
-
|
|
2027
|
-
|
|
3125
|
+
value: string;
|
|
3126
|
+
chainId: number;
|
|
3127
|
+
data: string;
|
|
3128
|
+
from: string;
|
|
3129
|
+
to: string;
|
|
3130
|
+
gasLimit?: string | undefined;
|
|
3131
|
+
gasPrice?: string | undefined;
|
|
3132
|
+
maxFeePerGas?: string | undefined;
|
|
3133
|
+
maxPriorityFeePerGas?: string | undefined;
|
|
3134
|
+
nonce?: number | undefined;
|
|
3135
|
+
approvalAddress?: string | undefined;
|
|
3136
|
+
approvals?: {
|
|
3137
|
+
token: string;
|
|
3138
|
+
spender: string;
|
|
3139
|
+
}[] | undefined;
|
|
2028
3140
|
};
|
|
2029
|
-
lastValidBlockHeight: number;
|
|
2030
3141
|
}, {
|
|
2031
3142
|
transaction: {
|
|
2032
|
-
|
|
2033
|
-
|
|
3143
|
+
value: string;
|
|
3144
|
+
chainId: number;
|
|
3145
|
+
data: string;
|
|
3146
|
+
from: string;
|
|
3147
|
+
to: string;
|
|
3148
|
+
gasLimit?: string | undefined;
|
|
3149
|
+
gasPrice?: string | undefined;
|
|
3150
|
+
maxFeePerGas?: string | undefined;
|
|
3151
|
+
maxPriorityFeePerGas?: string | undefined;
|
|
3152
|
+
nonce?: number | undefined;
|
|
3153
|
+
approvalAddress?: string | undefined;
|
|
3154
|
+
approvals?: {
|
|
3155
|
+
token: string;
|
|
3156
|
+
spender: string;
|
|
3157
|
+
}[] | undefined;
|
|
2034
3158
|
};
|
|
2035
|
-
lastValidBlockHeight: number;
|
|
2036
3159
|
}>;
|
|
2037
|
-
|
|
3160
|
+
solana: z.ZodOptional<z.ZodNull>;
|
|
2038
3161
|
}, "strip", z.ZodTypeAny, {
|
|
2039
3162
|
requestId: string;
|
|
2040
|
-
|
|
3163
|
+
evm: {
|
|
2041
3164
|
transaction: {
|
|
2042
|
-
|
|
2043
|
-
|
|
3165
|
+
value: string;
|
|
3166
|
+
chainId: number;
|
|
3167
|
+
data: string;
|
|
3168
|
+
from: string;
|
|
3169
|
+
to: string;
|
|
3170
|
+
gasLimit?: string | undefined;
|
|
3171
|
+
gasPrice?: string | undefined;
|
|
3172
|
+
maxFeePerGas?: string | undefined;
|
|
3173
|
+
maxPriorityFeePerGas?: string | undefined;
|
|
3174
|
+
nonce?: number | undefined;
|
|
3175
|
+
approvalAddress?: string | undefined;
|
|
3176
|
+
approvals?: {
|
|
3177
|
+
token: string;
|
|
3178
|
+
spender: string;
|
|
3179
|
+
}[] | undefined;
|
|
2044
3180
|
};
|
|
2045
|
-
lastValidBlockHeight: number;
|
|
2046
3181
|
};
|
|
2047
3182
|
fee?: {
|
|
2048
3183
|
amount: string;
|
|
@@ -2101,15 +3236,27 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
2101
3236
|
amountOutUSD?: number | undefined;
|
|
2102
3237
|
marketImpactPercentage?: number | undefined;
|
|
2103
3238
|
poolFeesPercentage?: number | undefined;
|
|
2104
|
-
|
|
3239
|
+
solana?: null | undefined;
|
|
2105
3240
|
}, {
|
|
2106
3241
|
requestId: string;
|
|
2107
|
-
|
|
3242
|
+
evm: {
|
|
2108
3243
|
transaction: {
|
|
2109
|
-
|
|
2110
|
-
|
|
3244
|
+
value: string;
|
|
3245
|
+
chainId: number;
|
|
3246
|
+
data: string;
|
|
3247
|
+
from: string;
|
|
3248
|
+
to: string;
|
|
3249
|
+
gasLimit?: string | undefined;
|
|
3250
|
+
gasPrice?: string | undefined;
|
|
3251
|
+
maxFeePerGas?: string | undefined;
|
|
3252
|
+
maxPriorityFeePerGas?: string | undefined;
|
|
3253
|
+
nonce?: number | undefined;
|
|
3254
|
+
approvalAddress?: string | undefined;
|
|
3255
|
+
approvals?: {
|
|
3256
|
+
token: string;
|
|
3257
|
+
spender: string;
|
|
3258
|
+
}[] | undefined;
|
|
2111
3259
|
};
|
|
2112
|
-
lastValidBlockHeight: number;
|
|
2113
3260
|
};
|
|
2114
3261
|
fee?: {
|
|
2115
3262
|
amount: string;
|
|
@@ -2168,7 +3315,7 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
2168
3315
|
amountOutUSD?: number | undefined;
|
|
2169
3316
|
marketImpactPercentage?: number | undefined;
|
|
2170
3317
|
poolFeesPercentage?: number | undefined;
|
|
2171
|
-
|
|
3318
|
+
solana?: null | undefined;
|
|
2172
3319
|
}>, z.ZodObject<{
|
|
2173
3320
|
amountOutTokens: z.ZodOptional<z.ZodString>;
|
|
2174
3321
|
slippagePercentage: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2443,85 +3590,36 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
2443
3590
|
deductedFrom: "input" | "output";
|
|
2444
3591
|
}>>;
|
|
2445
3592
|
} & {
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
value: z.ZodString;
|
|
2452
|
-
gasLimit: z.ZodOptional<z.ZodString>;
|
|
2453
|
-
gasPrice: z.ZodOptional<z.ZodString>;
|
|
2454
|
-
maxFeePerGas: z.ZodOptional<z.ZodString>;
|
|
2455
|
-
maxPriorityFeePerGas: z.ZodOptional<z.ZodString>;
|
|
2456
|
-
nonce: z.ZodOptional<z.ZodNumber>;
|
|
2457
|
-
chainId: z.ZodNumber;
|
|
2458
|
-
}, "strip", z.ZodTypeAny, {
|
|
2459
|
-
value: string;
|
|
2460
|
-
chainId: number;
|
|
2461
|
-
data: string;
|
|
2462
|
-
from: string;
|
|
2463
|
-
to: string;
|
|
2464
|
-
gasLimit?: string | undefined;
|
|
2465
|
-
gasPrice?: string | undefined;
|
|
2466
|
-
maxFeePerGas?: string | undefined;
|
|
2467
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
2468
|
-
nonce?: number | undefined;
|
|
2469
|
-
}, {
|
|
2470
|
-
value: string;
|
|
2471
|
-
chainId: number;
|
|
2472
|
-
data: string;
|
|
2473
|
-
from: string;
|
|
2474
|
-
to: string;
|
|
2475
|
-
gasLimit?: string | undefined;
|
|
2476
|
-
gasPrice?: string | undefined;
|
|
2477
|
-
maxFeePerGas?: string | undefined;
|
|
2478
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
2479
|
-
nonce?: number | undefined;
|
|
2480
|
-
}>;
|
|
3593
|
+
candidates: z.ZodArray<z.ZodObject<{
|
|
3594
|
+
lander: z.ZodString;
|
|
3595
|
+
serialized: z.ZodString;
|
|
3596
|
+
tipAccount: z.ZodString;
|
|
3597
|
+
tipLamports: z.ZodNumber;
|
|
2481
3598
|
}, "strip", z.ZodTypeAny, {
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
from: string;
|
|
2487
|
-
to: string;
|
|
2488
|
-
gasLimit?: string | undefined;
|
|
2489
|
-
gasPrice?: string | undefined;
|
|
2490
|
-
maxFeePerGas?: string | undefined;
|
|
2491
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
2492
|
-
nonce?: number | undefined;
|
|
2493
|
-
};
|
|
3599
|
+
serialized: string;
|
|
3600
|
+
lander: string;
|
|
3601
|
+
tipAccount: string;
|
|
3602
|
+
tipLamports: number;
|
|
2494
3603
|
}, {
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
gasPrice?: string | undefined;
|
|
2503
|
-
maxFeePerGas?: string | undefined;
|
|
2504
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
2505
|
-
nonce?: number | undefined;
|
|
2506
|
-
};
|
|
2507
|
-
}>;
|
|
3604
|
+
serialized: string;
|
|
3605
|
+
lander: string;
|
|
3606
|
+
tipAccount: string;
|
|
3607
|
+
tipLamports: number;
|
|
3608
|
+
}>, "many">;
|
|
3609
|
+
nonceAccount: z.ZodString;
|
|
3610
|
+
nonceAuthority: z.ZodString;
|
|
2508
3611
|
solana: z.ZodOptional<z.ZodNull>;
|
|
3612
|
+
evm: z.ZodOptional<z.ZodNull>;
|
|
2509
3613
|
}, "strip", z.ZodTypeAny, {
|
|
2510
3614
|
requestId: string;
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
gasPrice?: string | undefined;
|
|
2520
|
-
maxFeePerGas?: string | undefined;
|
|
2521
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
2522
|
-
nonce?: number | undefined;
|
|
2523
|
-
};
|
|
2524
|
-
};
|
|
3615
|
+
candidates: {
|
|
3616
|
+
serialized: string;
|
|
3617
|
+
lander: string;
|
|
3618
|
+
tipAccount: string;
|
|
3619
|
+
tipLamports: number;
|
|
3620
|
+
}[];
|
|
3621
|
+
nonceAccount: string;
|
|
3622
|
+
nonceAuthority: string;
|
|
2525
3623
|
fee?: {
|
|
2526
3624
|
amount: string;
|
|
2527
3625
|
percentage: number;
|
|
@@ -2577,25 +3675,20 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
2577
3675
|
slippagePercentage?: number | undefined;
|
|
2578
3676
|
amountInUSD?: number | undefined;
|
|
2579
3677
|
amountOutUSD?: number | undefined;
|
|
2580
|
-
marketImpactPercentage?: number | undefined;
|
|
2581
|
-
poolFeesPercentage?: number | undefined;
|
|
2582
|
-
solana?: null | undefined;
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
maxFeePerGas?: string | undefined;
|
|
2595
|
-
maxPriorityFeePerGas?: string | undefined;
|
|
2596
|
-
nonce?: number | undefined;
|
|
2597
|
-
};
|
|
2598
|
-
};
|
|
3678
|
+
marketImpactPercentage?: number | undefined;
|
|
3679
|
+
poolFeesPercentage?: number | undefined;
|
|
3680
|
+
solana?: null | undefined;
|
|
3681
|
+
evm?: null | undefined;
|
|
3682
|
+
}, {
|
|
3683
|
+
requestId: string;
|
|
3684
|
+
candidates: {
|
|
3685
|
+
serialized: string;
|
|
3686
|
+
lander: string;
|
|
3687
|
+
tipAccount: string;
|
|
3688
|
+
tipLamports: number;
|
|
3689
|
+
}[];
|
|
3690
|
+
nonceAccount: string;
|
|
3691
|
+
nonceAuthority: string;
|
|
2599
3692
|
fee?: {
|
|
2600
3693
|
amount: string;
|
|
2601
3694
|
percentage: number;
|
|
@@ -2654,6 +3747,7 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
2654
3747
|
marketImpactPercentage?: number | undefined;
|
|
2655
3748
|
poolFeesPercentage?: number | undefined;
|
|
2656
3749
|
solana?: null | undefined;
|
|
3750
|
+
evm?: null | undefined;
|
|
2657
3751
|
}>, z.ZodObject<{
|
|
2658
3752
|
amountOutTokens: z.ZodOptional<z.ZodString>;
|
|
2659
3753
|
slippagePercentage: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3137,6 +4231,11 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
3137
4231
|
maxFeePerGas?: string | undefined;
|
|
3138
4232
|
maxPriorityFeePerGas?: string | undefined;
|
|
3139
4233
|
nonce?: number | undefined;
|
|
4234
|
+
approvalAddress?: string | undefined;
|
|
4235
|
+
approvals?: {
|
|
4236
|
+
token: string;
|
|
4237
|
+
spender: string;
|
|
4238
|
+
}[] | undefined;
|
|
3140
4239
|
};
|
|
3141
4240
|
};
|
|
3142
4241
|
fee?: {
|
|
@@ -3197,6 +4296,75 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
3197
4296
|
marketImpactPercentage?: number | undefined;
|
|
3198
4297
|
poolFeesPercentage?: number | undefined;
|
|
3199
4298
|
solana?: null | undefined;
|
|
4299
|
+
} | {
|
|
4300
|
+
requestId: string;
|
|
4301
|
+
candidates: {
|
|
4302
|
+
serialized: string;
|
|
4303
|
+
lander: string;
|
|
4304
|
+
tipAccount: string;
|
|
4305
|
+
tipLamports: number;
|
|
4306
|
+
}[];
|
|
4307
|
+
nonceAccount: string;
|
|
4308
|
+
nonceAuthority: string;
|
|
4309
|
+
fee?: {
|
|
4310
|
+
amount: string;
|
|
4311
|
+
percentage: number;
|
|
4312
|
+
wallet: string;
|
|
4313
|
+
deductedFrom: "input" | "output";
|
|
4314
|
+
} | undefined;
|
|
4315
|
+
details?: {
|
|
4316
|
+
raw?: Record<string, unknown> | undefined;
|
|
4317
|
+
aggregator?: string | undefined;
|
|
4318
|
+
route?: {
|
|
4319
|
+
hops: {
|
|
4320
|
+
poolAddress: string;
|
|
4321
|
+
tokenIn: {
|
|
4322
|
+
address: string;
|
|
4323
|
+
decimals: number;
|
|
4324
|
+
symbol?: string | undefined;
|
|
4325
|
+
name?: string | undefined;
|
|
4326
|
+
logo?: string | null | undefined;
|
|
4327
|
+
};
|
|
4328
|
+
tokenOut: {
|
|
4329
|
+
address: string;
|
|
4330
|
+
decimals: number;
|
|
4331
|
+
symbol?: string | undefined;
|
|
4332
|
+
name?: string | undefined;
|
|
4333
|
+
logo?: string | null | undefined;
|
|
4334
|
+
};
|
|
4335
|
+
amountInTokens: string;
|
|
4336
|
+
amountOutTokens: string;
|
|
4337
|
+
exchange?: string | undefined;
|
|
4338
|
+
poolType?: string | undefined;
|
|
4339
|
+
feePercentage?: number | undefined;
|
|
4340
|
+
feeBps?: number | undefined;
|
|
4341
|
+
}[];
|
|
4342
|
+
totalFeePercentage?: number | undefined;
|
|
4343
|
+
aggregator?: string | undefined;
|
|
4344
|
+
} | undefined;
|
|
4345
|
+
} | undefined;
|
|
4346
|
+
tokenIn?: {
|
|
4347
|
+
address: string;
|
|
4348
|
+
decimals: number;
|
|
4349
|
+
symbol?: string | undefined;
|
|
4350
|
+
name?: string | undefined;
|
|
4351
|
+
logo?: string | null | undefined;
|
|
4352
|
+
} | undefined;
|
|
4353
|
+
tokenOut?: {
|
|
4354
|
+
address: string;
|
|
4355
|
+
decimals: number;
|
|
4356
|
+
symbol?: string | undefined;
|
|
4357
|
+
name?: string | undefined;
|
|
4358
|
+
logo?: string | null | undefined;
|
|
4359
|
+
} | undefined;
|
|
4360
|
+
amountOutTokens?: string | undefined;
|
|
4361
|
+
slippagePercentage?: number | undefined;
|
|
4362
|
+
amountInUSD?: number | undefined;
|
|
4363
|
+
amountOutUSD?: number | undefined;
|
|
4364
|
+
marketImpactPercentage?: number | undefined;
|
|
4365
|
+
poolFeesPercentage?: number | undefined;
|
|
4366
|
+
solana?: null | undefined;
|
|
4367
|
+
evm?: null | undefined;
|
|
3200
4368
|
} | {
|
|
3201
4369
|
requestId: string;
|
|
3202
4370
|
fee?: {
|
|
@@ -3343,6 +4511,11 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
3343
4511
|
maxFeePerGas?: string | undefined;
|
|
3344
4512
|
maxPriorityFeePerGas?: string | undefined;
|
|
3345
4513
|
nonce?: number | undefined;
|
|
4514
|
+
approvalAddress?: string | undefined;
|
|
4515
|
+
approvals?: {
|
|
4516
|
+
token: string;
|
|
4517
|
+
spender: string;
|
|
4518
|
+
}[] | undefined;
|
|
3346
4519
|
};
|
|
3347
4520
|
};
|
|
3348
4521
|
fee?: {
|
|
@@ -3403,6 +4576,75 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
3403
4576
|
marketImpactPercentage?: number | undefined;
|
|
3404
4577
|
poolFeesPercentage?: number | undefined;
|
|
3405
4578
|
solana?: null | undefined;
|
|
4579
|
+
} | {
|
|
4580
|
+
requestId: string;
|
|
4581
|
+
candidates: {
|
|
4582
|
+
serialized: string;
|
|
4583
|
+
lander: string;
|
|
4584
|
+
tipAccount: string;
|
|
4585
|
+
tipLamports: number;
|
|
4586
|
+
}[];
|
|
4587
|
+
nonceAccount: string;
|
|
4588
|
+
nonceAuthority: string;
|
|
4589
|
+
fee?: {
|
|
4590
|
+
amount: string;
|
|
4591
|
+
percentage: number;
|
|
4592
|
+
wallet: string;
|
|
4593
|
+
deductedFrom: "input" | "output";
|
|
4594
|
+
} | undefined;
|
|
4595
|
+
details?: {
|
|
4596
|
+
raw?: Record<string, unknown> | undefined;
|
|
4597
|
+
aggregator?: string | undefined;
|
|
4598
|
+
route?: {
|
|
4599
|
+
hops: {
|
|
4600
|
+
poolAddress: string;
|
|
4601
|
+
tokenIn: {
|
|
4602
|
+
address: string;
|
|
4603
|
+
decimals: number;
|
|
4604
|
+
symbol?: string | undefined;
|
|
4605
|
+
name?: string | undefined;
|
|
4606
|
+
logo?: string | null | undefined;
|
|
4607
|
+
};
|
|
4608
|
+
tokenOut: {
|
|
4609
|
+
address: string;
|
|
4610
|
+
decimals: number;
|
|
4611
|
+
symbol?: string | undefined;
|
|
4612
|
+
name?: string | undefined;
|
|
4613
|
+
logo?: string | null | undefined;
|
|
4614
|
+
};
|
|
4615
|
+
amountInTokens: string;
|
|
4616
|
+
amountOutTokens: string;
|
|
4617
|
+
exchange?: string | undefined;
|
|
4618
|
+
poolType?: string | undefined;
|
|
4619
|
+
feePercentage?: number | undefined;
|
|
4620
|
+
feeBps?: number | undefined;
|
|
4621
|
+
}[];
|
|
4622
|
+
totalFeePercentage?: number | undefined;
|
|
4623
|
+
aggregator?: string | undefined;
|
|
4624
|
+
} | undefined;
|
|
4625
|
+
} | undefined;
|
|
4626
|
+
tokenIn?: {
|
|
4627
|
+
address: string;
|
|
4628
|
+
decimals: number;
|
|
4629
|
+
symbol?: string | undefined;
|
|
4630
|
+
name?: string | undefined;
|
|
4631
|
+
logo?: string | null | undefined;
|
|
4632
|
+
} | undefined;
|
|
4633
|
+
tokenOut?: {
|
|
4634
|
+
address: string;
|
|
4635
|
+
decimals: number;
|
|
4636
|
+
symbol?: string | undefined;
|
|
4637
|
+
name?: string | undefined;
|
|
4638
|
+
logo?: string | null | undefined;
|
|
4639
|
+
} | undefined;
|
|
4640
|
+
amountOutTokens?: string | undefined;
|
|
4641
|
+
slippagePercentage?: number | undefined;
|
|
4642
|
+
amountInUSD?: number | undefined;
|
|
4643
|
+
amountOutUSD?: number | undefined;
|
|
4644
|
+
marketImpactPercentage?: number | undefined;
|
|
4645
|
+
poolFeesPercentage?: number | undefined;
|
|
4646
|
+
solana?: null | undefined;
|
|
4647
|
+
evm?: null | undefined;
|
|
3406
4648
|
} | {
|
|
3407
4649
|
requestId: string;
|
|
3408
4650
|
fee?: {
|
|
@@ -3554,6 +4796,11 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
3554
4796
|
maxFeePerGas?: string | undefined;
|
|
3555
4797
|
maxPriorityFeePerGas?: string | undefined;
|
|
3556
4798
|
nonce?: number | undefined;
|
|
4799
|
+
approvalAddress?: string | undefined;
|
|
4800
|
+
approvals?: {
|
|
4801
|
+
token: string;
|
|
4802
|
+
spender: string;
|
|
4803
|
+
}[] | undefined;
|
|
3557
4804
|
};
|
|
3558
4805
|
};
|
|
3559
4806
|
fee?: {
|
|
@@ -3614,6 +4861,75 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
3614
4861
|
marketImpactPercentage?: number | undefined;
|
|
3615
4862
|
poolFeesPercentage?: number | undefined;
|
|
3616
4863
|
solana?: null | undefined;
|
|
4864
|
+
} | {
|
|
4865
|
+
requestId: string;
|
|
4866
|
+
candidates: {
|
|
4867
|
+
serialized: string;
|
|
4868
|
+
lander: string;
|
|
4869
|
+
tipAccount: string;
|
|
4870
|
+
tipLamports: number;
|
|
4871
|
+
}[];
|
|
4872
|
+
nonceAccount: string;
|
|
4873
|
+
nonceAuthority: string;
|
|
4874
|
+
fee?: {
|
|
4875
|
+
amount: string;
|
|
4876
|
+
percentage: number;
|
|
4877
|
+
wallet: string;
|
|
4878
|
+
deductedFrom: "input" | "output";
|
|
4879
|
+
} | undefined;
|
|
4880
|
+
details?: {
|
|
4881
|
+
raw?: Record<string, unknown> | undefined;
|
|
4882
|
+
aggregator?: string | undefined;
|
|
4883
|
+
route?: {
|
|
4884
|
+
hops: {
|
|
4885
|
+
poolAddress: string;
|
|
4886
|
+
tokenIn: {
|
|
4887
|
+
address: string;
|
|
4888
|
+
decimals: number;
|
|
4889
|
+
symbol?: string | undefined;
|
|
4890
|
+
name?: string | undefined;
|
|
4891
|
+
logo?: string | null | undefined;
|
|
4892
|
+
};
|
|
4893
|
+
tokenOut: {
|
|
4894
|
+
address: string;
|
|
4895
|
+
decimals: number;
|
|
4896
|
+
symbol?: string | undefined;
|
|
4897
|
+
name?: string | undefined;
|
|
4898
|
+
logo?: string | null | undefined;
|
|
4899
|
+
};
|
|
4900
|
+
amountInTokens: string;
|
|
4901
|
+
amountOutTokens: string;
|
|
4902
|
+
exchange?: string | undefined;
|
|
4903
|
+
poolType?: string | undefined;
|
|
4904
|
+
feePercentage?: number | undefined;
|
|
4905
|
+
feeBps?: number | undefined;
|
|
4906
|
+
}[];
|
|
4907
|
+
totalFeePercentage?: number | undefined;
|
|
4908
|
+
aggregator?: string | undefined;
|
|
4909
|
+
} | undefined;
|
|
4910
|
+
} | undefined;
|
|
4911
|
+
tokenIn?: {
|
|
4912
|
+
address: string;
|
|
4913
|
+
decimals: number;
|
|
4914
|
+
symbol?: string | undefined;
|
|
4915
|
+
name?: string | undefined;
|
|
4916
|
+
logo?: string | null | undefined;
|
|
4917
|
+
} | undefined;
|
|
4918
|
+
tokenOut?: {
|
|
4919
|
+
address: string;
|
|
4920
|
+
decimals: number;
|
|
4921
|
+
symbol?: string | undefined;
|
|
4922
|
+
name?: string | undefined;
|
|
4923
|
+
logo?: string | null | undefined;
|
|
4924
|
+
} | undefined;
|
|
4925
|
+
amountOutTokens?: string | undefined;
|
|
4926
|
+
slippagePercentage?: number | undefined;
|
|
4927
|
+
amountInUSD?: number | undefined;
|
|
4928
|
+
amountOutUSD?: number | undefined;
|
|
4929
|
+
marketImpactPercentage?: number | undefined;
|
|
4930
|
+
poolFeesPercentage?: number | undefined;
|
|
4931
|
+
solana?: null | undefined;
|
|
4932
|
+
evm?: null | undefined;
|
|
3617
4933
|
} | {
|
|
3618
4934
|
requestId: string;
|
|
3619
4935
|
fee?: {
|
|
@@ -3765,6 +5081,11 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
3765
5081
|
maxFeePerGas?: string | undefined;
|
|
3766
5082
|
maxPriorityFeePerGas?: string | undefined;
|
|
3767
5083
|
nonce?: number | undefined;
|
|
5084
|
+
approvalAddress?: string | undefined;
|
|
5085
|
+
approvals?: {
|
|
5086
|
+
token: string;
|
|
5087
|
+
spender: string;
|
|
5088
|
+
}[] | undefined;
|
|
3768
5089
|
};
|
|
3769
5090
|
};
|
|
3770
5091
|
fee?: {
|
|
@@ -3825,6 +5146,75 @@ export declare const SwapQuotingBatchOutputSchema: z.ZodObject<{
|
|
|
3825
5146
|
marketImpactPercentage?: number | undefined;
|
|
3826
5147
|
poolFeesPercentage?: number | undefined;
|
|
3827
5148
|
solana?: null | undefined;
|
|
5149
|
+
} | {
|
|
5150
|
+
requestId: string;
|
|
5151
|
+
candidates: {
|
|
5152
|
+
serialized: string;
|
|
5153
|
+
lander: string;
|
|
5154
|
+
tipAccount: string;
|
|
5155
|
+
tipLamports: number;
|
|
5156
|
+
}[];
|
|
5157
|
+
nonceAccount: string;
|
|
5158
|
+
nonceAuthority: string;
|
|
5159
|
+
fee?: {
|
|
5160
|
+
amount: string;
|
|
5161
|
+
percentage: number;
|
|
5162
|
+
wallet: string;
|
|
5163
|
+
deductedFrom: "input" | "output";
|
|
5164
|
+
} | undefined;
|
|
5165
|
+
details?: {
|
|
5166
|
+
raw?: Record<string, unknown> | undefined;
|
|
5167
|
+
aggregator?: string | undefined;
|
|
5168
|
+
route?: {
|
|
5169
|
+
hops: {
|
|
5170
|
+
poolAddress: string;
|
|
5171
|
+
tokenIn: {
|
|
5172
|
+
address: string;
|
|
5173
|
+
decimals: number;
|
|
5174
|
+
symbol?: string | undefined;
|
|
5175
|
+
name?: string | undefined;
|
|
5176
|
+
logo?: string | null | undefined;
|
|
5177
|
+
};
|
|
5178
|
+
tokenOut: {
|
|
5179
|
+
address: string;
|
|
5180
|
+
decimals: number;
|
|
5181
|
+
symbol?: string | undefined;
|
|
5182
|
+
name?: string | undefined;
|
|
5183
|
+
logo?: string | null | undefined;
|
|
5184
|
+
};
|
|
5185
|
+
amountInTokens: string;
|
|
5186
|
+
amountOutTokens: string;
|
|
5187
|
+
exchange?: string | undefined;
|
|
5188
|
+
poolType?: string | undefined;
|
|
5189
|
+
feePercentage?: number | undefined;
|
|
5190
|
+
feeBps?: number | undefined;
|
|
5191
|
+
}[];
|
|
5192
|
+
totalFeePercentage?: number | undefined;
|
|
5193
|
+
aggregator?: string | undefined;
|
|
5194
|
+
} | undefined;
|
|
5195
|
+
} | undefined;
|
|
5196
|
+
tokenIn?: {
|
|
5197
|
+
address: string;
|
|
5198
|
+
decimals: number;
|
|
5199
|
+
symbol?: string | undefined;
|
|
5200
|
+
name?: string | undefined;
|
|
5201
|
+
logo?: string | null | undefined;
|
|
5202
|
+
} | undefined;
|
|
5203
|
+
tokenOut?: {
|
|
5204
|
+
address: string;
|
|
5205
|
+
decimals: number;
|
|
5206
|
+
symbol?: string | undefined;
|
|
5207
|
+
name?: string | undefined;
|
|
5208
|
+
logo?: string | null | undefined;
|
|
5209
|
+
} | undefined;
|
|
5210
|
+
amountOutTokens?: string | undefined;
|
|
5211
|
+
slippagePercentage?: number | undefined;
|
|
5212
|
+
amountInUSD?: number | undefined;
|
|
5213
|
+
amountOutUSD?: number | undefined;
|
|
5214
|
+
marketImpactPercentage?: number | undefined;
|
|
5215
|
+
poolFeesPercentage?: number | undefined;
|
|
5216
|
+
solana?: null | undefined;
|
|
5217
|
+
evm?: null | undefined;
|
|
3828
5218
|
} | {
|
|
3829
5219
|
requestId: string;
|
|
3830
5220
|
fee?: {
|