@xoxno/types 1.0.394 → 1.0.395

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.
@@ -117,7 +117,7 @@ export declare class StellarAggregatorQuoteRequestDto {
117
117
  export declare class StellarQuoteSwapHopDto {
118
118
  dex: SwapVenue;
119
119
  kind: string;
120
- poolAddress: string;
120
+ address: string;
121
121
  feeBps: number;
122
122
  from: string;
123
123
  tokenInKind: StellarTokenKind;
@@ -193,4 +193,11 @@ export declare class StellarAggregatorQuoteResponseDto {
193
193
  transaction?: StellarQuoteTransactionPayloadDto;
194
194
  platform: StellarQuotePlatform;
195
195
  alternatives?: StellarQuoteAlternativeDto[];
196
+ feeBps?: number;
197
+ feeAmount?: string;
198
+ feeAmountShort?: number;
199
+ feeOnInput?: boolean;
200
+ amountInUsd?: number;
201
+ amountOutUsd?: number;
202
+ amountOutMinUsd?: number;
196
203
  }
@@ -382,11 +382,11 @@ __decorate([
382
382
  ], StellarQuoteSwapHopDto.prototype, "kind", void 0);
383
383
  __decorate([
384
384
  (0, swagger_1.ApiProperty)({
385
- description: 'Canonical pool identifier. C-strkey for Soroban pools, L-strkey for native AMM pools.',
385
+ description: 'Canonical pool identifier. C-strkey for Soroban pools, L-strkey for native AMM pools. Field name `address` mirrors MVX QuoteSwapResponse exactly so chain-agnostic clients can iterate hops without branching on chain.',
386
386
  }),
387
387
  (0, class_validator_1.IsString)(),
388
388
  __metadata("design:type", String)
389
- ], StellarQuoteSwapHopDto.prototype, "poolAddress", void 0);
389
+ ], StellarQuoteSwapHopDto.prototype, "address", void 0);
390
390
  __decorate([
391
391
  (0, swagger_1.ApiProperty)({ description: 'Pool fee in basis points.', example: 30 }),
392
392
  (0, class_validator_1.IsInt)(),
@@ -718,3 +718,68 @@ __decorate([
718
718
  (0, class_transformer_1.Type)(() => StellarQuoteAlternativeDto),
719
719
  __metadata("design:type", Array)
720
720
  ], StellarAggregatorQuoteResponseDto.prototype, "alternatives", void 0);
721
+ __decorate([
722
+ (0, swagger_1.ApiProperty)({
723
+ description: 'Combined static + referral fee in basis points (1 bps = 0.01%) the router will charge for this swap. Absent when `referralId == 0` (no fee — matches rs-aggregator MVX semantics).',
724
+ required: false,
725
+ example: 30,
726
+ }),
727
+ (0, class_validator_1.IsOptional)(),
728
+ (0, class_validator_1.IsInt)(),
729
+ (0, class_validator_1.Min)(0),
730
+ __metadata("design:type", Number)
731
+ ], StellarAggregatorQuoteResponseDto.prototype, "feeBps", void 0);
732
+ __decorate([
733
+ (0, swagger_1.ApiProperty)({
734
+ description: 'Fee amount the router will deduct (i128 string). Charged on the input token when `feeOnInput=true`, otherwise on the output token. The `amountOut` / `amountOutMin` fields already reflect this deduction.',
735
+ required: false,
736
+ }),
737
+ (0, class_validator_1.IsOptional)(),
738
+ (0, class_validator_1.IsString)(),
739
+ __metadata("design:type", String)
740
+ ], StellarAggregatorQuoteResponseDto.prototype, "feeAmount", void 0);
741
+ __decorate([
742
+ (0, swagger_1.ApiProperty)({
743
+ description: 'Display value of `feeAmount` (decimals applied; loses precision above 2^53).',
744
+ required: false,
745
+ }),
746
+ (0, class_validator_1.IsOptional)(),
747
+ (0, class_validator_1.IsNumber)(),
748
+ __metadata("design:type", Number)
749
+ ], StellarAggregatorQuoteResponseDto.prototype, "feeAmountShort", void 0);
750
+ __decorate([
751
+ (0, swagger_1.ApiProperty)({
752
+ description: '`true` if the fee is charged on the input token, `false` if charged on the output. Mirrors the contract\'s `fee_on_input = !out_whitelisted || in_whitelisted` rule.',
753
+ required: false,
754
+ }),
755
+ (0, class_validator_1.IsOptional)(),
756
+ (0, class_validator_1.IsBoolean)(),
757
+ __metadata("design:type", Boolean)
758
+ ], StellarAggregatorQuoteResponseDto.prototype, "feeOnInput", void 0);
759
+ __decorate([
760
+ (0, swagger_1.ApiProperty)({
761
+ description: 'USD value of `amountIn`. Absent when the input token has no Reflector oracle price on the active network.',
762
+ required: false,
763
+ }),
764
+ (0, class_validator_1.IsOptional)(),
765
+ (0, class_validator_1.IsNumber)(),
766
+ __metadata("design:type", Number)
767
+ ], StellarAggregatorQuoteResponseDto.prototype, "amountInUsd", void 0);
768
+ __decorate([
769
+ (0, swagger_1.ApiProperty)({
770
+ description: 'USD value of `amountOut`.',
771
+ required: false,
772
+ }),
773
+ (0, class_validator_1.IsOptional)(),
774
+ (0, class_validator_1.IsNumber)(),
775
+ __metadata("design:type", Number)
776
+ ], StellarAggregatorQuoteResponseDto.prototype, "amountOutUsd", void 0);
777
+ __decorate([
778
+ (0, swagger_1.ApiProperty)({
779
+ description: 'USD value of `amountOutMin` (only set when `slippage` was requested and the output token has a price).',
780
+ required: false,
781
+ }),
782
+ (0, class_validator_1.IsOptional)(),
783
+ (0, class_validator_1.IsNumber)(),
784
+ __metadata("design:type", Number)
785
+ ], StellarAggregatorQuoteResponseDto.prototype, "amountOutMinUsd", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.394",
3
+ "version": "1.0.395",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {