@xoxno/types 1.0.393 → 1.0.394
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.
|
@@ -58,6 +58,7 @@ export declare class AggregatorSwapDto {
|
|
|
58
58
|
*/
|
|
59
59
|
export declare class BatchSwapDto {
|
|
60
60
|
paths: SwapPathDto[];
|
|
61
|
+
referralId?: number;
|
|
61
62
|
sender: string;
|
|
62
63
|
totalIn: string;
|
|
63
64
|
totalMinOut: string;
|
|
@@ -98,6 +99,7 @@ export declare class StellarAggregatorQuoteRequestDto {
|
|
|
98
99
|
includePaths?: boolean;
|
|
99
100
|
sender?: string;
|
|
100
101
|
router?: string;
|
|
102
|
+
referralId?: number;
|
|
101
103
|
platform?: StellarQuotePlatform;
|
|
102
104
|
fresh?: boolean;
|
|
103
105
|
}
|
|
@@ -165,6 +165,17 @@ __decorate([
|
|
|
165
165
|
(0, class_transformer_1.Type)(() => SwapPathDto),
|
|
166
166
|
__metadata("design:type", Array)
|
|
167
167
|
], BatchSwapDto.prototype, "paths", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, swagger_1.ApiProperty)({
|
|
170
|
+
description: 'Referral identifier. `0` (or omitted) means no referral and no fee — matches rs-aggregator MVX semantics. Non-zero IDs MUST be registered on-chain via `add_referral`; the router rejects unknown IDs at execution.',
|
|
171
|
+
example: 0,
|
|
172
|
+
required: false,
|
|
173
|
+
}),
|
|
174
|
+
(0, class_validator_1.IsOptional)(),
|
|
175
|
+
(0, class_validator_1.IsInt)(),
|
|
176
|
+
(0, class_validator_1.Min)(0),
|
|
177
|
+
__metadata("design:type", Number)
|
|
178
|
+
], BatchSwapDto.prototype, "referralId", void 0);
|
|
168
179
|
__decorate([
|
|
169
180
|
(0, swagger_1.ApiProperty)({
|
|
170
181
|
description: 'Account whose SAC balances fund the swap and receive the output. G-strkey for user-direct swaps, C-strkey when called by another contract.',
|
|
@@ -307,6 +318,17 @@ __decorate([
|
|
|
307
318
|
(0, class_validator_1.IsString)(),
|
|
308
319
|
__metadata("design:type", String)
|
|
309
320
|
], StellarAggregatorQuoteRequestDto.prototype, "router", void 0);
|
|
321
|
+
__decorate([
|
|
322
|
+
(0, swagger_1.ApiProperty)({
|
|
323
|
+
description: 'Referral identifier embedded into the envelope. `0` (default) means no referral / no fee. Non-zero IDs must be registered on-chain via `add_referral` or the contract reverts.',
|
|
324
|
+
required: false,
|
|
325
|
+
example: 0,
|
|
326
|
+
}),
|
|
327
|
+
(0, class_validator_1.IsOptional)(),
|
|
328
|
+
(0, class_validator_1.IsInt)(),
|
|
329
|
+
(0, class_validator_1.Min)(0),
|
|
330
|
+
__metadata("design:type", Number)
|
|
331
|
+
], StellarAggregatorQuoteRequestDto.prototype, "referralId", void 0);
|
|
310
332
|
__decorate([
|
|
311
333
|
(0, swagger_1.ApiProperty)({
|
|
312
334
|
description: 'Execution-plane filter.',
|