@plutonlabs/sdk 0.0.51-beta → 0.0.52-beta
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/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts +16 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js +8 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts +3 -32
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.js +0 -20
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.js.map +1 -1
- package/package.json +1 -1
@@ -10,6 +10,8 @@ export declare class QuoteBaseIntentResponseDto {
|
|
10
10
|
solverId?: string;
|
11
11
|
selectionStatus?: SelectionStatus;
|
12
12
|
amount: string;
|
13
|
+
solverFee?: string;
|
14
|
+
solveTime?: string;
|
13
15
|
}>);
|
14
16
|
static from<T extends {
|
15
17
|
id: string;
|
@@ -20,6 +22,8 @@ export declare class QuoteBaseIntentResponseDto {
|
|
20
22
|
solverId?: string;
|
21
23
|
selectionStatus?: SelectionStatus;
|
22
24
|
amount: string;
|
25
|
+
solverFee?: string;
|
26
|
+
solveTime?: string;
|
23
27
|
}>(obj: T): QuoteBaseIntentResponseDto;
|
24
28
|
static listFrom<T extends {
|
25
29
|
id: string;
|
@@ -30,6 +34,8 @@ export declare class QuoteBaseIntentResponseDto {
|
|
30
34
|
solverId?: string;
|
31
35
|
selectionStatus?: SelectionStatus;
|
32
36
|
amount: string;
|
37
|
+
solverFee?: string;
|
38
|
+
solveTime?: string;
|
33
39
|
}>(objs: T[]): QuoteBaseIntentResponseDto[];
|
34
40
|
id?: string;
|
35
41
|
/**
|
@@ -61,5 +67,15 @@ export declare class QuoteBaseIntentResponseDto {
|
|
61
67
|
* @description Estimated gas used
|
62
68
|
*/
|
63
69
|
estimateGas?: string;
|
70
|
+
/**
|
71
|
+
* @description The estimated fee for the solving, calculated from solver
|
72
|
+
* @example 1000000 (for a fee estimate of 1 USDT)
|
73
|
+
*/
|
74
|
+
solverFee?: string;
|
75
|
+
/**
|
76
|
+
* @description Time it takes to be solved in ms
|
77
|
+
* @example 1000 in ms
|
78
|
+
*/
|
79
|
+
solveTime?: string;
|
64
80
|
}
|
65
81
|
//# sourceMappingURL=quote_base_intent_response.dto.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_base_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAY,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,qBAAa,0BAA0B;gBAEnC,OAAO,EAAE,OAAO,CAAC;QACf,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,EAAE,UAAU,CAAC;QACvB,eAAe,EAAE,MAAM,CAAC;QACxB,gBAAgB,CAAC,EAAE,IAAI,CAAC;QACxB,YAAY,CAAC,EAAE,IAAI,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,eAAe,CAAC,EAAE,eAAe,CAAC;QAClC,MAAM,EAAE,MAAM,CAAC;
|
1
|
+
{"version":3,"file":"quote_base_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAY,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,qBAAa,0BAA0B;gBAEnC,OAAO,EAAE,OAAO,CAAC;QACf,EAAE,EAAE,MAAM,CAAC;QACX,UAAU,E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AAC;IAEvB;;OAEG;IAEH,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAExB;;OAEG;IAEH,YAAY,CAAC,EAAE,IAAI,CAAC;IAEpB;;;OAGG;IAGH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,eAAe,CAAC,EAAE,eAAe,CAAgC;IAEjE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;QAGI;IAEJ,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
@@ -56,4 +56,12 @@ __decorate([
|
|
56
56
|
(0, class_validator_1.IsNumber)(),
|
57
57
|
__metadata("design:type", Number)
|
58
58
|
], QuoteBaseIntentResponseDto.prototype, "selectionStatus", void 0);
|
59
|
+
__decorate([
|
60
|
+
(0, class_validator_1.IsString)(),
|
61
|
+
__metadata("design:type", String)
|
62
|
+
], QuoteBaseIntentResponseDto.prototype, "solverFee", void 0);
|
63
|
+
__decorate([
|
64
|
+
(0, class_validator_1.IsString)(),
|
65
|
+
__metadata("design:type", String)
|
66
|
+
], QuoteBaseIntentResponseDto.prototype, "solveTime", void 0);
|
59
67
|
//# sourceMappingURL=quote_base_intent_response.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_base_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"quote_base_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiF;AACjF,kDAA6D;AAC7D,6EAAoE;AAEpE,MAAa,0BAA0B;IACrC,YACE,OAWE;QA8EJ,oBAAe,GAAqB,uCAAe,CAAC,YAAY,CAAC;QA5E/D,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAahB,GAAM;QACN,OAAO,IAAI,0BAA0B,CAAC,GAAG,CAAC,CAAC;IAC7C,CAAC;IAED,MAAM,CAAC,QAAQ,CAab,IAAS;QACT,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;CA8DF;AAhHD,gEAgHC;AA3DC;IADC,IAAA,wBAAM,GAAE;;sDACG;AAQZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;8DACU;AAMvB;IADC,IAAA,wBAAM,GAAE;8BACU,IAAI;oEAAC;AAMxB;IADC,IAAA,wBAAM,GAAE;8BACM,IAAI;gEAAC;AAQpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mEACe;AAOxB;IADC,IAAA,wBAAM,GAAE;;4DACS;AAGlB;IADC,IAAA,0BAAQ,GAAE;;mEACsD;AAajE;IADC,IAAA,0BAAQ,GAAE;;6DACQ;AAOnB;IADC,IAAA,0BAAQ,GAAE;;6DACQ"}
|
@@ -2,23 +2,17 @@ import { QuoteIntentResponseDto } from './quote_intent_response.dto';
|
|
2
2
|
export declare class QuoteResponseDto {
|
3
3
|
constructor(partial: Partial<{
|
4
4
|
intentResponses: Object[];
|
5
|
-
|
6
|
-
redeemExpiry?: Date;
|
7
|
-
feeEstimate?: string;
|
5
|
+
protocolFee?: string;
|
8
6
|
quoteRequestId?: string;
|
9
7
|
}>);
|
10
8
|
static from<T extends {
|
11
9
|
intentResponses: Object[];
|
12
|
-
|
13
|
-
redeemExpiry?: Date;
|
14
|
-
feeEstimate?: string;
|
10
|
+
protocolFee?: string;
|
15
11
|
quoteRequestId?: string;
|
16
12
|
}>(obj: T): QuoteResponseDto;
|
17
13
|
static listFrom<T extends {
|
18
14
|
intentResponses: Object[];
|
19
|
-
|
20
|
-
redeemExpiry?: Date;
|
21
|
-
feeEstimate?: string;
|
15
|
+
protocolFee?: string;
|
22
16
|
quoteRequestId?: string;
|
23
17
|
}>(objs: T[]): QuoteResponseDto[];
|
24
18
|
/**
|
@@ -41,37 +35,14 @@ export declare class QuoteResponseDto {
|
|
41
35
|
* ]
|
42
36
|
*/
|
43
37
|
intentResponses: QuoteIntentResponseDto[];
|
44
|
-
/**
|
45
|
-
* @description The estimated fee for the solving, calculated from solver
|
46
|
-
* @example 1000000 (for a fee estimate of 1 USDT)
|
47
|
-
*/
|
48
|
-
solverFee?: string;
|
49
38
|
/**
|
50
39
|
* @description The estimated fee for protocol, calculated from protocol
|
51
40
|
* @example 1000000 (for a fee estimate of 1 USDT)
|
52
41
|
*/
|
53
42
|
protocolFee?: string;
|
54
|
-
/**
|
55
|
-
* @description Expiry date of initiation
|
56
|
-
*/
|
57
|
-
initiationExpiry?: Date;
|
58
|
-
/**
|
59
|
-
* @description Expiry date of redemption
|
60
|
-
*/
|
61
|
-
redeemExpiry?: Date;
|
62
43
|
/**
|
63
44
|
* @description id of request
|
64
45
|
*/
|
65
46
|
quoteRequestId?: string;
|
66
|
-
/**
|
67
|
-
* @description The gas estimated fee for the transaction, calculated based on the native coin of the blockchain. The fee is typically expressed in the chain’s native currency, such as ETH for Ethereum, BTC for Bitcoin, etc.
|
68
|
-
* @example 5000000000000000 (for a fee estimate of 0.005 ETH)
|
69
|
-
*/
|
70
|
-
gasFeeEstimate?: string;
|
71
|
-
/**
|
72
|
-
* @description The gas estimated fee for the transaction, calculated based on the native coin of the blockchain. The fee is typically expressed in the chain’s native currency, such as ETH for Ethereum, BTC for Bitcoin, etc.
|
73
|
-
* @example 5000000000000000 (for a fee estimate of 0.005 ETH)
|
74
|
-
*/
|
75
|
-
solveTime?: string;
|
76
47
|
}
|
77
48
|
//# sourceMappingURL=quote_response.dto.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAIrE,qBAAa,gBAAgB;gBAEzB,OAAO,EAAE,OAAO,CAAC;QACf,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,
|
1
|
+
{"version":3,"file":"quote_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAIrE,qBAAa,gBAAgB;gBAEzB,OAAO,EAAE,OAAO,CAAC;QACf,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;WAmBU,IAAI,CAChB,CAAC,SAAS;QACR,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,EACD,GAAG,EAAE,CAAC,GAAG,gBAAgB;IAI3B,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,gBAAgB,EAAE;IAIhC;;;;;;;;;;;;;;;;;;OAkBG;IACH,eAAe,EAAE,sBAAsB,EAAE,CAAC;IAE1C;;;OAGG;IAEH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IAEH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
@@ -35,32 +35,12 @@ class QuoteResponseDto {
|
|
35
35
|
}
|
36
36
|
}
|
37
37
|
exports.QuoteResponseDto = QuoteResponseDto;
|
38
|
-
__decorate([
|
39
|
-
(0, class_validator_1.IsString)(),
|
40
|
-
__metadata("design:type", String)
|
41
|
-
], QuoteResponseDto.prototype, "solverFee", void 0);
|
42
38
|
__decorate([
|
43
39
|
(0, class_validator_1.IsString)(),
|
44
40
|
__metadata("design:type", String)
|
45
41
|
], QuoteResponseDto.prototype, "protocolFee", void 0);
|
46
|
-
__decorate([
|
47
|
-
(0, class_validator_1.IsDate)(),
|
48
|
-
__metadata("design:type", Date)
|
49
|
-
], QuoteResponseDto.prototype, "initiationExpiry", void 0);
|
50
|
-
__decorate([
|
51
|
-
(0, class_validator_1.IsDate)(),
|
52
|
-
__metadata("design:type", Date)
|
53
|
-
], QuoteResponseDto.prototype, "redeemExpiry", void 0);
|
54
42
|
__decorate([
|
55
43
|
(0, class_validator_1.IsUUID)(),
|
56
44
|
__metadata("design:type", String)
|
57
45
|
], QuoteResponseDto.prototype, "quoteRequestId", void 0);
|
58
|
-
__decorate([
|
59
|
-
(0, class_validator_1.IsString)(),
|
60
|
-
__metadata("design:type", String)
|
61
|
-
], QuoteResponseDto.prototype, "gasFeeEstimate", void 0);
|
62
|
-
__decorate([
|
63
|
-
(0, class_validator_1.IsString)(),
|
64
|
-
__metadata("design:type", String)
|
65
|
-
], QuoteResponseDto.prototype, "solveTime", void 0);
|
66
46
|
//# sourceMappingURL=quote_response.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAE3D,yFAAkF;AAClF,kDAAiD;AAEjD,MAAa,gBAAgB;IAC3B,YACE,
|
1
|
+
{"version":3,"file":"quote_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAE3D,yFAAkF;AAClF,kDAAiD;AAEjD,MAAa,gBAAgB;IAC3B,YACE,OAIE;QAEF,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAE7B,IAAI,OAAO,CAAC,eAAe,IAAI,OAAO,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAClE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,eAAe,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACxD,IACE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,YAAY,+DAA4B,EAClE,CAAC;oBACD,IAAI,CAAC,eAAe,GAAG,+DAA4B,CAAC,QAAQ,CAC1D,OAAO,CAAC,eAAe,CACxB,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;IAEM,MAAM,CAAC,IAAI,CAMhB,GAAM;QACN,OAAO,IAAI,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,QAAQ,CAMb,IAAS;QACT,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;CAmCF;AA9ED,4CA8EC;AAPC;IADC,IAAA,0BAAQ,GAAE;;qDACU;AAMrB;IADC,IAAA,wBAAM,GAAE;;wDACe"}
|