@plutonlabs/sdk 0.0.12-beta → 0.0.13-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/common/consts/index.d.ts.map +1 -1
- package/dist/common/consts/index.js.map +1 -1
- package/dist/common/enums/index.d.ts +2 -2
- package/dist/common/index.d.ts +4 -4
- package/dist/common/interfaces/IChain.d.ts +1 -1
- package/dist/common/utils/index.d.ts +2 -2
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.d.ts.map +1 -1
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.js.map +1 -1
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/network/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/network/domain/dto/index.js.map +1 -1
- package/dist/modules/network/domain/dto/network_provider.update.dto.d.ts +1 -1
- package/dist/modules/network/domain/dto/network_tokens_view.dto.d.ts +19 -7
- package/dist/modules/network/domain/dto/network_tokens_view.dto.d.ts.map +1 -1
- package/dist/modules/network/domain/dto/network_tokens_view.dto.js +4 -2
- package/dist/modules/network/domain/dto/network_tokens_view.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts +13 -13
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/index.d.ts +3 -3
- package/dist/modules/quote/domain/dto/quote/index.d.ts +15 -16
- package/dist/modules/quote/domain/dto/quote/index.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/index.js +0 -1
- package/dist/modules/quote/domain/dto/quote/index.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts +1 -6
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js +4 -8
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts +18 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js +44 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts +1 -9
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js +2 -2
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts +2 -2
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js +3 -3
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts +0 -9
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js +0 -57
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts +6 -1
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.js +5 -6
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts +2 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js +5 -8
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts +13 -0
- 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 +13 -21
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js +4 -7
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/refund/index.d.ts +4 -4
- package/dist/modules/quote/domain/dto/refund/index.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/refund/index.js +2 -2
- package/dist/modules/quote/domain/dto/refund/index.js.map +1 -1
- package/dist/modules/quote/domain/dto/refund/{create_quote_refund_request.dto.d.ts → quote_refund_request.dto.d.ts} +3 -3
- package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/refund/{create_quote_refund_request.dto.js → quote_refund_request.dto.js} +9 -7
- package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/refund/{create_quote_refund_response.dto.d.ts → quote_refund_response.dto.d.ts} +4 -4
- package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.js +37 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.d.ts +1 -1
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.js +1 -1
- package/dist/modules/quote/domain/index.d.ts +2 -2
- package/dist/modules/swap/domain/dto/index.d.ts +3 -3
- package/dist/modules/swap/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/swap/domain/dto/index.js +3 -3
- package/dist/modules/swap/domain/dto/index.js.map +1 -1
- package/dist/modules/swap/domain/dto/{token_swap_output_estimate_response.dto.d.ts → swap_estimate_response.dto.d.ts} +2 -2
- package/dist/modules/swap/domain/dto/swap_estimate_response.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_output_estimate_response.dto.js → swap_estimate_response.dto.js} +5 -5
- package/dist/modules/swap/domain/dto/swap_estimate_response.dto.js.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_request.dto.d.ts → swap_request.dto.d.ts} +3 -3
- package/dist/modules/swap/domain/dto/swap_request.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_request.dto.js → swap_request.dto.js} +7 -7
- package/dist/modules/swap/domain/dto/swap_request.dto.js.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_response.dto.d.ts → swap_response.dto.d.ts} +2 -2
- package/dist/modules/swap/domain/dto/swap_response.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_response.dto.js → swap_response.dto.js} +7 -7
- package/dist/modules/swap/domain/dto/swap_response.dto.js.map +1 -0
- package/dist/modules/swap/index.d.ts +1 -1
- package/dist/modules/token/domain/dto/index.d.ts +1 -1
- package/dist/modules/token/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/token/domain/dto/index.js +1 -1
- package/dist/modules/token/domain/dto/index.js.map +1 -1
- package/dist/modules/token/domain/dto/token.dto.d.ts +15 -14
- package/dist/modules/token/domain/dto/token.dto.d.ts.map +1 -1
- package/dist/modules/token/domain/dto/token.dto.js +19 -10
- package/dist/modules/token/domain/dto/token.dto.js.map +1 -1
- package/dist/modules/token/domain/dto/token.find.dto.d.ts +29 -0
- package/dist/modules/token/domain/dto/token.find.dto.d.ts.map +1 -0
- package/dist/modules/token/domain/dto/{network_contract_find_token.dto.js → token.find.dto.js} +9 -10
- package/dist/modules/token/domain/dto/token.find.dto.js.map +1 -0
- package/dist/modules/token/domain/dto/token.update.dto.d.ts +27 -23
- package/dist/modules/token/domain/dto/token.update.dto.d.ts.map +1 -1
- package/dist/modules/token/domain/dto/token.update.dto.js +15 -17
- package/dist/modules/token/domain/dto/token.update.dto.js.map +1 -1
- package/dist/modules/token/domain/dto/token_find.dto.d.ts +29 -0
- package/dist/modules/token/domain/dto/token_find.dto.d.ts.map +1 -0
- package/dist/modules/token/domain/dto/token_find.dto.js +41 -0
- package/dist/modules/token/domain/dto/token_find.dto.js.map +1 -0
- package/dist/seed-data/index.d.ts +1 -0
- package/dist/seed-data/index.d.ts.map +1 -0
- package/dist/seed-data/index.js +2 -0
- package/dist/seed-data/index.js.map +1 -0
- package/dist/seed-data/networks_seed.json +47 -0
- package/dist/seed-data/pluton_contracts_seed.json +1312 -0
- package/dist/seed-data/tokens_seed.json +119 -0
- package/package.json +4 -1
- package/Readme.md +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.d.ts +0 -31
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.js +0 -53
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.js.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.js.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js +0 -7
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.js.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_request.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_request.dto.js.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_response.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_response.dto.js.map +0 -1
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts +0 -29
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts.map +0 -1
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_estimate_bridge_intent_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"quote_estimate_bridge_intent_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAA4D;AAC5D,wDAAuD;AACvD,qDAAiE;AAEjE,MAAa,mCAAoC,SAAQ,+BAAyB;CAgEjF;AAhED,kFAgEC;AA1DC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0EACW;AAOtB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2EACY;AAOvB;IADC,IAAA,0BAAQ,GAAE;;+EACiB;AAO5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+EACgB;AAO3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gFACiB;AAO5B;IADC,IAAA,0BAAQ,GAAE;;oFACsB;AAOjC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACI;AAOf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qEACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qEACQ"}
|
@@ -1,13 +1,4 @@
|
|
1
1
|
import { QuoteBridgeIntentResponseDto } from './quote_bridge_intent_response.dto';
|
2
|
-
import { IntentType } from '../../../../../common';
|
3
|
-
import { SelectionStatus } from '../../enums';
|
4
|
-
export declare class BaseQuoteIntentResponseDto {
|
5
|
-
id?: string;
|
6
|
-
solverId: string;
|
7
|
-
intentType: IntentType;
|
8
|
-
selectionStatus?: SelectionStatus;
|
9
|
-
intentRequestId: string;
|
10
|
-
}
|
11
2
|
export type QuoteIntentResponseDto = QuoteBridgeIntentResponseDto;
|
12
3
|
export type CreateQuoteIntentResponseDto = QuoteIntentResponseDto & {
|
13
4
|
quoteResponseId: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_response.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"quote_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAElF,MAAM,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;AAElE,MAAM,MAAM,4BAA4B,GAAG,sBAAsB,GAAG;IAClE,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
@@ -1,60 +1,3 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.BaseQuoteIntentResponseDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
const common_1 = require("../../../../../common");
|
15
|
-
const enums_1 = require("../../enums");
|
16
|
-
class BaseQuoteIntentResponseDto {
|
17
|
-
constructor() {
|
18
|
-
this.selectionStatus = enums_1.SelectionStatus.NOT_SELECTED;
|
19
|
-
}
|
20
|
-
}
|
21
|
-
exports.BaseQuoteIntentResponseDto = BaseQuoteIntentResponseDto;
|
22
|
-
__decorate([
|
23
|
-
(0, class_validator_1.IsUUID)()
|
24
|
-
// Unique identifier for the quote intent response
|
25
|
-
// example: 'f9b7c46f-5f49-4bb6-9412-40bdb5563ef6'
|
26
|
-
,
|
27
|
-
__metadata("design:type", String)
|
28
|
-
], BaseQuoteIntentResponseDto.prototype, "id", void 0);
|
29
|
-
__decorate([
|
30
|
-
(0, class_validator_1.IsNotEmpty)(),
|
31
|
-
(0, class_validator_1.IsUUID)()
|
32
|
-
// Unique identifier for the solver associated with the intent response
|
33
|
-
// example: 'e5e7e948-e7f1-4824-80a7-650cc7ed3b29'
|
34
|
-
,
|
35
|
-
__metadata("design:type", String)
|
36
|
-
], BaseQuoteIntentResponseDto.prototype, "solverId", void 0);
|
37
|
-
__decorate([
|
38
|
-
(0, class_validator_1.IsNotEmpty)()
|
39
|
-
// Type of intent request
|
40
|
-
// example: IntentType.BRIDGE
|
41
|
-
,
|
42
|
-
__metadata("design:type", String)
|
43
|
-
], BaseQuoteIntentResponseDto.prototype, "intentType", void 0);
|
44
|
-
__decorate([
|
45
|
-
(0, class_validator_1.IsNotEmpty)(),
|
46
|
-
(0, class_validator_1.IsNumber)()
|
47
|
-
// Status of the selection, indicating whether it was successful or failed
|
48
|
-
// example: 1
|
49
|
-
,
|
50
|
-
__metadata("design:type", Number)
|
51
|
-
], BaseQuoteIntentResponseDto.prototype, "selectionStatus", void 0);
|
52
|
-
__decorate([
|
53
|
-
(0, class_validator_1.IsNotEmpty)(),
|
54
|
-
(0, class_validator_1.IsUUID)()
|
55
|
-
// Unique identifier for the intent request related to the quote
|
56
|
-
// example: 'a68d209f-46e3-4f0e-b013-94c3b5f4d7f2'
|
57
|
-
,
|
58
|
-
__metadata("design:type", String)
|
59
|
-
], BaseQuoteIntentResponseDto.prototype, "intentRequestId", void 0);
|
60
3
|
//# sourceMappingURL=quote_intent_response.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_response.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"quote_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_response.dto.ts"],"names":[],"mappings":""}
|
@@ -1,5 +1,10 @@
|
|
1
|
-
import { QuoteIntentRequestType } from
|
1
|
+
import { QuoteIntentRequestType } from './quote_intent_request.dto';
|
2
2
|
export declare class QuoteRequestDto {
|
3
|
+
/**
|
4
|
+
* @example 'bridge'
|
5
|
+
* @description id of request in contract on chain
|
6
|
+
*/
|
7
|
+
plutonId?: string;
|
3
8
|
/**
|
4
9
|
* @description "ids of the request"
|
5
10
|
* @example [ { quoteRequestId: "3a87e4aa-0a5e-4b9a-b4cb-b35c5b65dff4" }, { id: "020c9c03-0dbd-40e4-aba8-761821782cb3" } ]
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBAAa,eAAe;
|
1
|
+
{"version":3,"file":"quote_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBAAa,eAAe;IAC1B;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAEH,cAAc,EAAE,sBAAsB,EAAE,CAAC;CAC1C"}
|
@@ -15,12 +15,11 @@ class QuoteRequestDto {
|
|
15
15
|
}
|
16
16
|
exports.QuoteRequestDto = QuoteRequestDto;
|
17
17
|
__decorate([
|
18
|
-
(0, class_validator_1.
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
,
|
18
|
+
(0, class_validator_1.IsString)(),
|
19
|
+
__metadata("design:type", String)
|
20
|
+
], QuoteRequestDto.prototype, "plutonId", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, class_validator_1.IsArray)(),
|
24
23
|
__metadata("design:type", Array)
|
25
24
|
], QuoteRequestDto.prototype, "intentRequests", void 0);
|
26
25
|
//# sourceMappingURL=quote_request.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"quote_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAGhE,MAAa,eAAe;CAc3B;AAdD,0CAcC;AARC;IADC,IAAA,0BAAQ,GAAE;;iDACO;AAOlB;IADC,IAAA,yBAAO,GAAE;;uDAC+B"}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { QuoteRequestLifecycleStage, QuoteRequestLifecycleState, QuoteRequestLifecycleStatus } from
|
1
|
+
import { QuoteRequestLifecycleStage, QuoteRequestLifecycleState, QuoteRequestLifecycleStatus } from '@plutonlabs/sdk';
|
2
2
|
export declare class QuoteRequestLifecycleDto {
|
3
|
+
constructor(partial: Partial<QuoteRequestLifecycleDto>);
|
3
4
|
static from<T extends {
|
4
5
|
id: string;
|
5
6
|
quoteRequestId: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_request_lifecycle.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"quote_request_lifecycle.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,iBAAiB,CAAC;AAEzB,qBAAa,wBAAwB;gBACvB,OAAO,EAAE,OAAO,CAAC,wBAAwB,CAAC;WAIxC,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,KAAK,EAAE,0BAA0B,CAAC;QAClC,KAAK,EAAE,0BAA0B,CAAC;QAClC,MAAM,EAAE,2BAA2B,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,GAAG,EAAE,CAAC,GAAG,wBAAwB;IAKnC,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,KAAK,EAAE,0BAA0B,CAAC;QAClC,KAAK,EAAE,0BAA0B,CAAC;QAClC,MAAM,EAAE,2BAA2B,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,wBAAwB,EAAE;IAIxC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,KAAK,EAAE,0BAA0B,CAAC;IAElC;;;OAGG;IACH,KAAK,EAAE,0BAA0B,CAAC;IAElC;;;OAGG;IACH,MAAM,EAAE,2BAA2B,CAAC;IAEpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
|
@@ -1,16 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.QuoteRequestLifecycleDto = void 0;
|
4
|
-
const common_1 = require("
|
4
|
+
const common_1 = require("@plutonlabs/sdk/dist/common");
|
5
5
|
class QuoteRequestLifecycleDto {
|
6
|
+
constructor(partial) {
|
7
|
+
Object.assign(this, partial);
|
8
|
+
}
|
6
9
|
static from(obj) {
|
7
|
-
const dto = new QuoteRequestLifecycleDto();
|
8
|
-
dto.id = obj.id;
|
9
|
-
dto.quoteRequestId = obj.quoteRequestId;
|
10
|
-
dto.stage = obj.stage;
|
11
|
-
dto.state = obj.state;
|
12
|
-
dto.status = obj.status;
|
13
|
-
dto.metadata = obj.metadata;
|
10
|
+
const dto = new QuoteRequestLifecycleDto(obj);
|
14
11
|
return dto;
|
15
12
|
}
|
16
13
|
static listFrom(objs) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_request_lifecycle.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"quote_request_lifecycle.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.ts"],"names":[],"mappings":";;;AAKA,wDAAuD;AACvD,MAAa,wBAAwB;IACnC,YAAY,OAA0C;QACpD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAShB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,wBAAwB,CAAC,GAAG,CAAC,CAAC;QAC9C,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,CASb,IAAS;QACT,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;CAqCF;AAnED,4DAmEC"}
|
@@ -20,5 +20,18 @@ export declare class QuoteResponseDto {
|
|
20
20
|
* ]
|
21
21
|
*/
|
22
22
|
intentResponses: QuoteIntentResponseDto[];
|
23
|
+
/**
|
24
|
+
* @description Expiry date of initiation
|
25
|
+
*/
|
26
|
+
initiationExpiry?: Date;
|
27
|
+
/**
|
28
|
+
* @description Expiry date of redemption
|
29
|
+
*/
|
30
|
+
redeemExpiry?: Date;
|
31
|
+
/**
|
32
|
+
* @description The 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.
|
33
|
+
* @example 5000000000000000 (for a fee estimate of 0.005 ETH)
|
34
|
+
*/
|
35
|
+
feeEstimate: string;
|
23
36
|
}
|
24
37
|
//# 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;
|
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;AAErE,qBAAa,gBAAgB;IAC3B;;;;;;;;;;;;;;;;;;OAkBG;IAEH,eAAe,EAAE,sBAAsB,EAAE,CAAC;IAE1C;;OAEG;IAEH,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAExB;;OAEG;IAEH,YAAY,CAAC,EAAE,IAAI,CAAC;IAEpB;;;OAGG;IAEH,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
@@ -15,27 +15,19 @@ class QuoteResponseDto {
|
|
15
15
|
}
|
16
16
|
exports.QuoteResponseDto = QuoteResponseDto;
|
17
17
|
__decorate([
|
18
|
-
(0, class_validator_1.
|
19
|
-
/**
|
20
|
-
* @description An array of intent responses that correspond to the quote. Each response contains details of the quote intent.
|
21
|
-
* @example [
|
22
|
-
* {
|
23
|
-
* id: 'f9b7c46f-5f49-4bb6-9412-40bdb5563ef6',
|
24
|
-
* solverId: 'e5e7e948-e7f1-4824-80a7-650cc7ed3b29',
|
25
|
-
* intentType: IntentType.BRIDGE,
|
26
|
-
* selectionStatus: 1,
|
27
|
-
* intentRequestId: 'a68d209f-46e3-4f0e-b013-94c3b5f4d7f2',
|
28
|
-
* },
|
29
|
-
* {
|
30
|
-
* id: 'd30c9a60-9f72-42d3-b7ae-4a2fa05f5b8a',
|
31
|
-
* solverId: '14b8e6f8-6076-4ab9-93e8-dfe27d697f91',
|
32
|
-
* intentType: IntentType.SWAP,
|
33
|
-
* selectionStatus: 2,
|
34
|
-
* intentRequestId: 'b10c7b1d-59c4-4a99-8452-fb69d9e6da1b',
|
35
|
-
* }
|
36
|
-
* ]
|
37
|
-
*/
|
38
|
-
,
|
18
|
+
(0, class_validator_1.IsArray)(),
|
39
19
|
__metadata("design:type", Array)
|
40
20
|
], QuoteResponseDto.prototype, "intentResponses", void 0);
|
21
|
+
__decorate([
|
22
|
+
(0, class_validator_1.IsDate)(),
|
23
|
+
__metadata("design:type", Date)
|
24
|
+
], QuoteResponseDto.prototype, "initiationExpiry", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, class_validator_1.IsDate)(),
|
27
|
+
__metadata("design:type", Date)
|
28
|
+
], QuoteResponseDto.prototype, "redeemExpiry", void 0);
|
29
|
+
__decorate([
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], QuoteResponseDto.prototype, "feeEstimate", void 0);
|
41
33
|
//# 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,
|
1
|
+
{"version":3,"file":"quote_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAG9D,MAAa,gBAAgB;CAyC5B;AAzCD,4CAyCC;AApBC;IADC,IAAA,yBAAO,GAAE;;yDACgC;AAM1C;IADC,IAAA,wBAAM,GAAE;8BACU,IAAI;0DAAC;AAMxB;IADC,IAAA,wBAAM,GAAE;8BACM,IAAI;sDAAC;AAOpB;IADC,IAAA,4BAAU,GAAE;;qDACO"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { QuoteResponseLifecycleStage, QuoteResponseLifecycleState, QuoteResponseLifecycleStatus } from '../../enums';
|
2
2
|
export declare class QuoteResponseLifecycleDto {
|
3
|
+
constructor(partial: Partial<QuoteResponseLifecycleDto>);
|
3
4
|
static from<T extends {
|
4
5
|
id: string;
|
5
6
|
quoteResponseId: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_response_lifecycle.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"quote_response_lifecycle.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,4BAA4B,EAC7B,MAAM,aAAa,CAAC;AAGrB,qBAAa,yBAAyB;gBACxB,OAAO,EAAE,OAAO,CAAC,yBAAyB,CAAC;WAIzC,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,eAAe,EAAE,MAAM,CAAC;QACxB,KAAK,EAAE,2BAA2B,CAAC;QACnC,KAAK,EAAE,2BAA2B,CAAC;QACnC,MAAM,EAAE,4BAA4B,CAAC;QACrC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,GAAG,EAAE,CAAC,GAAG,yBAAyB;IAKpC,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,eAAe,EAAE,MAAM,CAAC;QACxB,KAAK,EAAE,2BAA2B,CAAC;QACnC,KAAK,EAAE,2BAA2B,CAAC;QACnC,MAAM,EAAE,4BAA4B,CAAC;QACrC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,yBAAyB,EAAE;IAIzC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,KAAK,EAAE,2BAA2B,CAAC;IAEnC;;;OAGG;IACH,KAAK,EAAE,2BAA2B,CAAC;IAEnC;;;OAGG;IACH,MAAM,EAAE,4BAA4B,CAAC;IAErC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
|
@@ -3,14 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.QuoteResponseLifecycleDto = void 0;
|
4
4
|
const common_1 = require("../../../../../common");
|
5
5
|
class QuoteResponseLifecycleDto {
|
6
|
+
constructor(partial) {
|
7
|
+
Object.assign(this, partial);
|
8
|
+
}
|
6
9
|
static from(obj) {
|
7
|
-
const dto = new QuoteResponseLifecycleDto();
|
8
|
-
dto.id = obj.id;
|
9
|
-
dto.quoteResponseId = obj.quoteResponseId;
|
10
|
-
dto.stage = obj.stage;
|
11
|
-
dto.state = obj.state;
|
12
|
-
dto.status = obj.status;
|
13
|
-
dto.metadata = obj.metadata;
|
10
|
+
const dto = new QuoteResponseLifecycleDto(obj);
|
14
11
|
return dto;
|
15
12
|
}
|
16
13
|
static listFrom(objs) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_response_lifecycle.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"quote_response_lifecycle.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.ts"],"names":[],"mappings":";;;AAKA,kDAAiD;AAEjD,MAAa,yBAAyB;IACpC,YAAY,OAA2C;QACrD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAShB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,yBAAyB,CAAC,GAAG,CAAC,CAAC;QAC/C,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,CASb,IAAS;QACT,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;CAqCF;AAnED,8DAmEC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from
|
2
|
-
export * from
|
3
|
-
export * from
|
4
|
-
export * from
|
1
|
+
export * from './quote_refund_signature_request.dto';
|
2
|
+
export * from './quote_refund_signature_response.dto';
|
3
|
+
export * from './quote_refund_request.dto';
|
4
|
+
export * from './quote_refund_response.dto';
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/index.ts"],"names":[],"mappings":"AAAA,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC"}
|
@@ -16,6 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./quote_refund_signature_request.dto"), exports);
|
18
18
|
__exportStar(require("./quote_refund_signature_response.dto"), exports);
|
19
|
-
__exportStar(require("./
|
20
|
-
__exportStar(require("./
|
19
|
+
__exportStar(require("./quote_refund_request.dto"), exports);
|
20
|
+
__exportStar(require("./quote_refund_response.dto"), exports);
|
21
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,wEAAsD;AACtD,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uEAAqD;AACrD,wEAAsD;AACtD,6DAA2C;AAC3C,8DAA4C"}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
export declare class
|
1
|
+
export declare class RefundSignatureRequestDto {
|
2
2
|
/**
|
3
3
|
* @description The quote request ID that the user sent money for
|
4
4
|
* @example '123e4567-e89b-12d3-a456-426614174000'
|
5
5
|
*/
|
6
|
-
|
6
|
+
quoteRequestId: string;
|
7
7
|
/**
|
8
8
|
* @description The address of the user that should be refunded to
|
9
9
|
* @example '0x112233445566778899abcdef'
|
@@ -15,4 +15,4 @@ export declare class CreateUserRefundSignatureRequestDto {
|
|
15
15
|
*/
|
16
16
|
signature: string;
|
17
17
|
}
|
18
|
-
//# sourceMappingURL=
|
18
|
+
//# sourceMappingURL=quote_refund_request.dto.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quote_refund_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_request.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,yBAAyB;IACpC;;;OAGG;IAGH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAGH,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
@@ -9,22 +9,24 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.RefundSignatureRequestDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
class
|
14
|
+
class RefundSignatureRequestDto {
|
15
15
|
}
|
16
|
-
exports.
|
16
|
+
exports.RefundSignatureRequestDto = RefundSignatureRequestDto;
|
17
17
|
__decorate([
|
18
18
|
(0, class_validator_1.IsNotEmpty)(),
|
19
19
|
(0, class_validator_1.IsUUID)(),
|
20
20
|
__metadata("design:type", String)
|
21
|
-
],
|
21
|
+
], RefundSignatureRequestDto.prototype, "quoteRequestId", void 0);
|
22
22
|
__decorate([
|
23
23
|
(0, class_validator_1.IsNotEmpty)(),
|
24
|
+
(0, class_validator_1.IsString)(),
|
24
25
|
__metadata("design:type", String)
|
25
|
-
],
|
26
|
+
], RefundSignatureRequestDto.prototype, "address", void 0);
|
26
27
|
__decorate([
|
27
28
|
(0, class_validator_1.IsNotEmpty)(),
|
29
|
+
(0, class_validator_1.IsString)(),
|
28
30
|
__metadata("design:type", String)
|
29
|
-
],
|
30
|
-
//# sourceMappingURL=
|
31
|
+
], RefundSignatureRequestDto.prototype, "signature", void 0);
|
32
|
+
//# sourceMappingURL=quote_refund_request.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quote_refund_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,yBAAyB;CAwBrC;AAxBD,8DAwBC;AAjBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;iEACc;AAQvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACK;AAQhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACO"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare class
|
1
|
+
export declare class QuoteRefundResponseDto {
|
2
2
|
/**
|
3
3
|
* @description The signature for the refund request
|
4
4
|
* @example '0xabcdef...'
|
@@ -15,9 +15,9 @@ export declare class CreateUserRefundSignatureResponseDto {
|
|
15
15
|
*/
|
16
16
|
chainId: number;
|
17
17
|
/**
|
18
|
-
* @description The address of the
|
18
|
+
* @description The address of the contract for the refunded
|
19
19
|
* @example '0x123456...'
|
20
20
|
*/
|
21
|
-
|
21
|
+
address: string;
|
22
22
|
}
|
23
|
-
//# sourceMappingURL=
|
23
|
+
//# sourceMappingURL=quote_refund_response.dto.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quote_refund_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,sBAAsB;IACjC;;;OAGG;IAGH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.QuoteRefundResponseDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class QuoteRefundResponseDto {
|
15
|
+
}
|
16
|
+
exports.QuoteRefundResponseDto = QuoteRefundResponseDto;
|
17
|
+
__decorate([
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
19
|
+
(0, class_validator_1.IsString)(),
|
20
|
+
__metadata("design:type", String)
|
21
|
+
], QuoteRefundResponseDto.prototype, "signature", void 0);
|
22
|
+
__decorate([
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
25
|
+
__metadata("design:type", Number)
|
26
|
+
], QuoteRefundResponseDto.prototype, "coinType", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
29
|
+
(0, class_validator_1.IsNumber)(),
|
30
|
+
__metadata("design:type", Number)
|
31
|
+
], QuoteRefundResponseDto.prototype, "chainId", void 0);
|
32
|
+
__decorate([
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
34
|
+
(0, class_validator_1.IsString)(),
|
35
|
+
__metadata("design:type", String)
|
36
|
+
], QuoteRefundResponseDto.prototype, "address", void 0);
|
37
|
+
//# sourceMappingURL=quote_refund_response.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quote_refund_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAEjE,MAAa,sBAAsB;CAgClC;AAhCD,wDAgCC;AAzBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACO;AAQlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACK;AAQhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACK"}
|
@@ -3,7 +3,7 @@ export declare class QuoteRefundSignatureRequestDto {
|
|
3
3
|
* @description quote request id that the user sent money for
|
4
4
|
* @example '123e4567-e89b-12d3-a456-426614174000'
|
5
5
|
*/
|
6
|
-
|
6
|
+
quoteRefundRequestId: string;
|
7
7
|
/**
|
8
8
|
* @description address of the user that should be refunded to
|
9
9
|
* @example '0x112233445566778899abcdef'
|
@@ -18,7 +18,7 @@ __decorate([
|
|
18
18
|
(0, class_validator_1.IsNotEmpty)(),
|
19
19
|
(0, class_validator_1.IsUUID)(),
|
20
20
|
__metadata("design:type", String)
|
21
|
-
], QuoteRefundSignatureRequestDto.prototype, "
|
21
|
+
], QuoteRefundSignatureRequestDto.prototype, "quoteRefundRequestId", void 0);
|
22
22
|
__decorate([
|
23
23
|
(0, class_validator_1.IsNotEmpty)(),
|
24
24
|
__metadata("design:type", String)
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export * from
|
2
|
-
export * from
|
1
|
+
export * from './dto';
|
2
|
+
export * from './enums';
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from './
|
2
|
-
export * from './
|
3
|
-
export * from './
|
1
|
+
export * from './swap_request.dto';
|
2
|
+
export * from './swap_response.dto';
|
3
|
+
export * from './swap_estimate_response.dto';
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC"}
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./
|
18
|
-
__exportStar(require("./
|
19
|
-
__exportStar(require("./
|
17
|
+
__exportStar(require("./swap_request.dto"), exports);
|
18
|
+
__exportStar(require("./swap_response.dto"), exports);
|
19
|
+
__exportStar(require("./swap_estimate_response.dto"), exports);
|
20
20
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,sDAAoC;AACpC,+DAA6C"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
2
|
-
export declare class
|
2
|
+
export declare class SwapEstimateResponsetDto {
|
3
3
|
/**
|
4
4
|
* @description The amount of tokens after the swap
|
5
5
|
* @example 1000
|
6
6
|
*/
|
7
7
|
amount: BigNumber;
|
8
8
|
}
|
9
|
-
//# sourceMappingURL=
|
9
|
+
//# sourceMappingURL=swap_estimate_response.dto.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"swap_estimate_response.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_estimate_response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,qBAAa,wBAAwB;IACnC;;;OAGG;IAEH,MAAM,EAAE,SAAS,CAAC;CACnB"}
|
@@ -12,14 +12,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
12
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
13
|
};
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
exports.
|
15
|
+
exports.SwapEstimateResponsetDto = void 0;
|
16
16
|
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
17
|
const class_validator_1 = require("class-validator");
|
18
|
-
class
|
18
|
+
class SwapEstimateResponsetDto {
|
19
19
|
}
|
20
|
-
exports.
|
20
|
+
exports.SwapEstimateResponsetDto = SwapEstimateResponsetDto;
|
21
21
|
__decorate([
|
22
22
|
(0, class_validator_1.IsNotEmpty)(),
|
23
23
|
__metadata("design:type", bignumber_js_1.default)
|
24
|
-
],
|
25
|
-
//# sourceMappingURL=
|
24
|
+
], SwapEstimateResponsetDto.prototype, "amount", void 0);
|
25
|
+
//# sourceMappingURL=swap_estimate_response.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"swap_estimate_response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_estimate_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,qDAA6C;AAE7C,MAAa,wBAAwB;CAOpC;AAPD,4DAOC;AADC;IADC,IAAA,4BAAU,GAAE;8BACL,sBAAS;wDAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare class
|
1
|
+
export declare class SwapRequestDto {
|
2
2
|
/**
|
3
3
|
* @description The type of coin for the swap
|
4
4
|
* @example 60
|
@@ -13,6 +13,6 @@ export declare class TokenSwapRequestDto {
|
|
13
13
|
* @description The address of the contract for the swap
|
14
14
|
* @example '0x1234567890abcdef'
|
15
15
|
*/
|
16
|
-
|
16
|
+
address: string;
|
17
17
|
}
|
18
|
-
//# sourceMappingURL=
|
18
|
+
//# sourceMappingURL=swap_request.dto.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"swap_request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_request.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IACzB;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAEH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|