@plutonlabs/sdk 0.0.30-beta → 0.0.33-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/chainsync/domain/dto/swap/swap_response.dto.d.ts +1 -1
- package/dist/modules/chainsync/domain/dto/swap/swap_response.dto.d.ts.map +1 -1
- package/dist/modules/chainsync/domain/dto/swap/swap_response.dto.js +7 -0
- package/dist/modules/chainsync/domain/dto/swap/swap_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/index.d.ts +2 -2
- package/dist/modules/quote/domain/dto/quote/index.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/index.js +2 -2
- package/dist/modules/quote/domain/dto/quote/index.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts +21 -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 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts +23 -0
- 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 +11 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.d.ts +51 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.js +18 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.d.ts +51 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.js +18 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.js.map +1 -0
- 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.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts +20 -5
- 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 +25 -7
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/enums/index.d.ts +4 -4
- package/dist/modules/quote/domain/enums/index.d.ts.map +1 -1
- package/dist/modules/quote/domain/enums/index.js +4 -4
- package/dist/modules/quote/domain/enums/index.js.map +1 -1
- package/dist/modules/quote/domain/enums/quote_intent_request_action.enum.d.ts +17 -0
- package/dist/modules/quote/domain/enums/quote_intent_request_action.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/quote_intent_request_action.enum.js +21 -0
- package/dist/modules/quote/domain/enums/quote_intent_request_action.enum.js.map +1 -0
- package/dist/modules/quote/domain/enums/{quote_request_lifecycle.enum.d.ts → quote_intent_request_lifecycle.enum.d.ts} +4 -4
- package/dist/modules/quote/domain/enums/quote_intent_request_lifecycle.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/quote_intent_request_lifecycle.enum.js +40 -0
- package/dist/modules/quote/domain/enums/quote_intent_request_lifecycle.enum.js.map +1 -0
- package/dist/modules/quote/domain/enums/quote_intent_response_action.enum.d.ts +12 -0
- package/dist/modules/quote/domain/enums/quote_intent_response_action.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/quote_intent_response_action.enum.js +16 -0
- package/dist/modules/quote/domain/enums/quote_intent_response_action.enum.js.map +1 -0
- package/dist/modules/quote/domain/enums/{quote_response_lifecycle.enum.d.ts → quote_intent_response_lifecycle.enum.d.ts} +4 -4
- package/dist/modules/quote/domain/enums/quote_intent_response_lifecycle.enum.d.ts.map +1 -0
- package/dist/modules/quote/domain/enums/quote_intent_response_lifecycle.enum.js +35 -0
- package/dist/modules/quote/domain/enums/quote_intent_response_lifecycle.enum.js.map +1 -0
- package/dist/seed/pluton_contracts_seed.json +4 -216
- package/package.json +28 -28
- package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.d.ts +0 -22
- package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.js +0 -41
- package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.js.map +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts +0 -51
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js +0 -18
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js.map +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts +0 -51
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js +0 -18
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js.map +0 -1
- package/dist/modules/quote/domain/enums/quote_request_action.enum.d.ts +0 -16
- package/dist/modules/quote/domain/enums/quote_request_action.enum.d.ts.map +0 -1
- package/dist/modules/quote/domain/enums/quote_request_action.enum.js +0 -20
- package/dist/modules/quote/domain/enums/quote_request_action.enum.js.map +0 -1
- package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.d.ts.map +0 -1
- package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.js +0 -40
- package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.js.map +0 -1
- package/dist/modules/quote/domain/enums/quote_response_action.enum.d.ts +0 -12
- package/dist/modules/quote/domain/enums/quote_response_action.enum.d.ts.map +0 -1
- package/dist/modules/quote/domain/enums/quote_response_action.enum.js +0 -16
- package/dist/modules/quote/domain/enums/quote_response_action.enum.js.map +0 -1
- package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.d.ts.map +0 -1
- package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.js +0 -35
- package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.js.map +0 -1
- package/dist/modules/swap/domain/dto/index.d.ts +0 -3
- package/dist/modules/swap/domain/dto/index.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/index.js +0 -19
- package/dist/modules/swap/domain/dto/index.js.map +0 -1
- package/dist/modules/swap/domain/dto/swap_request.dto.d.ts +0 -29
- package/dist/modules/swap/domain/dto/swap_request.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/swap_request.dto.js +0 -37
- package/dist/modules/swap/domain/dto/swap_request.dto.js.map +0 -1
- package/dist/modules/swap/domain/dto/swap_response.dto.d.ts +0 -23
- package/dist/modules/swap/domain/dto/swap_response.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/swap_response.dto.js +0 -35
- package/dist/modules/swap/domain/dto/swap_response.dto.js.map +0 -1
- package/dist/modules/swap/domain/index.d.ts +0 -2
- package/dist/modules/swap/domain/index.d.ts.map +0 -1
- package/dist/modules/swap/domain/index.js +0 -18
- package/dist/modules/swap/domain/index.js.map +0 -1
- package/dist/modules/swap/index.d.ts +0 -2
- package/dist/modules/swap/index.d.ts.map +0 -1
- package/dist/modules/swap/index.js +0 -18
- package/dist/modules/swap/index.js.map +0 -1
@@ -0,0 +1,40 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.QuoteIntentRequestLifecycleStatus = exports.QuoteIntentRequestLifecycleState = exports.QuoteIntentRequestLifecycleStage = void 0;
|
4
|
+
var QuoteIntentRequestLifecycleStage;
|
5
|
+
(function (QuoteIntentRequestLifecycleStage) {
|
6
|
+
QuoteIntentRequestLifecycleStage[QuoteIntentRequestLifecycleStage["NONE"] = 1] = "NONE";
|
7
|
+
QuoteIntentRequestLifecycleStage[QuoteIntentRequestLifecycleStage["ENTRANCE"] = 2] = "ENTRANCE";
|
8
|
+
QuoteIntentRequestLifecycleStage[QuoteIntentRequestLifecycleStage["RETENTION"] = 3] = "RETENTION";
|
9
|
+
QuoteIntentRequestLifecycleStage[QuoteIntentRequestLifecycleStage["TERMINATION"] = 4] = "TERMINATION";
|
10
|
+
})(QuoteIntentRequestLifecycleStage || (exports.QuoteIntentRequestLifecycleStage = QuoteIntentRequestLifecycleStage = {}));
|
11
|
+
var QuoteIntentRequestLifecycleState;
|
12
|
+
(function (QuoteIntentRequestLifecycleState) {
|
13
|
+
// entrance stage
|
14
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["NONE"] = 1] = "NONE";
|
15
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["CREATION"] = 2] = "CREATION";
|
16
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["ESTIMATED"] = 3] = "ESTIMATED";
|
17
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["RESPONSE_SELECTED"] = 4] = "RESPONSE_SELECTED";
|
18
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["TX_INITIATED"] = 5] = "TX_INITIATED";
|
19
|
+
// retention stage
|
20
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["TX_CONFIRMED"] = 6] = "TX_CONFIRMED";
|
21
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["SOLVING"] = 7] = "SOLVING";
|
22
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["SOLVING_TIMED_OUT"] = 8] = "SOLVING_TIMED_OUT";
|
23
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["REFUND_SIGNATURE"] = 9] = "REFUND_SIGNATURE";
|
24
|
+
// termination stage
|
25
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["NO_ESTIMATION"] = 10] = "NO_ESTIMATION";
|
26
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["INITIATION_EXPIRED"] = 11] = "INITIATION_EXPIRED";
|
27
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["TX_NOT_CONFIRMED"] = 12] = "TX_NOT_CONFIRMED";
|
28
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["SOLVED"] = 13] = "SOLVED";
|
29
|
+
QuoteIntentRequestLifecycleState[QuoteIntentRequestLifecycleState["REFUNDED"] = 14] = "REFUNDED";
|
30
|
+
})(QuoteIntentRequestLifecycleState || (exports.QuoteIntentRequestLifecycleState = QuoteIntentRequestLifecycleState = {}));
|
31
|
+
var QuoteIntentRequestLifecycleStatus;
|
32
|
+
(function (QuoteIntentRequestLifecycleStatus) {
|
33
|
+
QuoteIntentRequestLifecycleStatus[QuoteIntentRequestLifecycleStatus["NONE"] = 1] = "NONE";
|
34
|
+
QuoteIntentRequestLifecycleStatus[QuoteIntentRequestLifecycleStatus["SUCCESS"] = 2] = "SUCCESS";
|
35
|
+
QuoteIntentRequestLifecycleStatus[QuoteIntentRequestLifecycleStatus["PENDING"] = 3] = "PENDING";
|
36
|
+
QuoteIntentRequestLifecycleStatus[QuoteIntentRequestLifecycleStatus["EXPIRED"] = 4] = "EXPIRED";
|
37
|
+
QuoteIntentRequestLifecycleStatus[QuoteIntentRequestLifecycleStatus["FAILURE"] = 5] = "FAILURE";
|
38
|
+
QuoteIntentRequestLifecycleStatus[QuoteIntentRequestLifecycleStatus["IN_PROGRESS"] = 6] = "IN_PROGRESS";
|
39
|
+
})(QuoteIntentRequestLifecycleStatus || (exports.QuoteIntentRequestLifecycleStatus = QuoteIntentRequestLifecycleStatus = {}));
|
40
|
+
//# sourceMappingURL=quote_intent_request_lifecycle.enum.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quote_intent_request_lifecycle.enum.js","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_intent_request_lifecycle.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gCAKX;AALD,WAAY,gCAAgC;IAC1C,uFAAQ,CAAA;IACR,+FAAQ,CAAA;IACR,iGAAS,CAAA;IACT,qGAAW,CAAA;AACb,CAAC,EALW,gCAAgC,gDAAhC,gCAAgC,QAK3C;AAED,IAAY,gCAoBX;AApBD,WAAY,gCAAgC;IAC1C,iBAAiB;IACjB,uFAAQ,CAAA;IACR,+FAAQ,CAAA;IACR,iGAAS,CAAA;IACT,iHAAiB,CAAA;IACjB,uGAAY,CAAA;IAEZ,kBAAkB;IAClB,uGAAY,CAAA;IACZ,6FAAO,CAAA;IACP,iHAAiB,CAAA;IACjB,+GAAgB,CAAA;IAEhB,oBAAoB;IACpB,0GAAa,CAAA;IACb,oHAAkB,CAAA;IAClB,gHAAgB,CAAA;IAChB,4FAAM,CAAA;IACN,gGAAQ,CAAA;AACV,CAAC,EApBW,gCAAgC,gDAAhC,gCAAgC,QAoB3C;AAED,IAAY,iCAOX;AAPD,WAAY,iCAAiC;IAC3C,yFAAQ,CAAA;IACR,+FAAO,CAAA;IACP,+FAAO,CAAA;IACP,+FAAO,CAAA;IACP,+FAAO,CAAA;IACP,uGAAW,CAAA;AACb,CAAC,EAPW,iCAAiC,iDAAjC,iCAAiC,QAO5C"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export declare enum QuoteIntentResponseLifecycleActionType {
|
2
|
+
NONE = 1,
|
3
|
+
QUOTE_INTENT_RESPONSE_CREATE = 2,
|
4
|
+
QUOTE_INTENT_RESPONSE_NOT_SELECTED = 3,
|
5
|
+
QUOTE_INTENT_RESPONSE_SELECTED = 4,
|
6
|
+
QUOTE_INTENT_RESPONSE_REQUEST_CANCELED = 5,
|
7
|
+
QUOTE_INTENT_RESPONSE_INITIATE_SOLVING = 6,
|
8
|
+
QUOTE_INTENT_RESPONSE_SOLVE_VALIDATION = 7,
|
9
|
+
QUOTE_INTENT_RESPONSE_FULFILLED = 8,
|
10
|
+
QUOTE_INTENT_RESPONSE_TIMED_OUT = 9
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=quote_intent_response_action.enum.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quote_intent_response_action.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_intent_response_action.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,sCAAsC;IAChD,IAAI,IAAI;IACR,4BAA4B,IAAA;IAC5B,kCAAkC,IAAA;IAClC,8BAA8B,IAAA;IAC9B,sCAAsC,IAAA;IACtC,sCAAsC,IAAA;IACtC,sCAAsC,IAAA;IACtC,+BAA+B,IAAA;IAC/B,+BAA+B,IAAA;CAChC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.QuoteIntentResponseLifecycleActionType = void 0;
|
4
|
+
var QuoteIntentResponseLifecycleActionType;
|
5
|
+
(function (QuoteIntentResponseLifecycleActionType) {
|
6
|
+
QuoteIntentResponseLifecycleActionType[QuoteIntentResponseLifecycleActionType["NONE"] = 1] = "NONE";
|
7
|
+
QuoteIntentResponseLifecycleActionType[QuoteIntentResponseLifecycleActionType["QUOTE_INTENT_RESPONSE_CREATE"] = 2] = "QUOTE_INTENT_RESPONSE_CREATE";
|
8
|
+
QuoteIntentResponseLifecycleActionType[QuoteIntentResponseLifecycleActionType["QUOTE_INTENT_RESPONSE_NOT_SELECTED"] = 3] = "QUOTE_INTENT_RESPONSE_NOT_SELECTED";
|
9
|
+
QuoteIntentResponseLifecycleActionType[QuoteIntentResponseLifecycleActionType["QUOTE_INTENT_RESPONSE_SELECTED"] = 4] = "QUOTE_INTENT_RESPONSE_SELECTED";
|
10
|
+
QuoteIntentResponseLifecycleActionType[QuoteIntentResponseLifecycleActionType["QUOTE_INTENT_RESPONSE_REQUEST_CANCELED"] = 5] = "QUOTE_INTENT_RESPONSE_REQUEST_CANCELED";
|
11
|
+
QuoteIntentResponseLifecycleActionType[QuoteIntentResponseLifecycleActionType["QUOTE_INTENT_RESPONSE_INITIATE_SOLVING"] = 6] = "QUOTE_INTENT_RESPONSE_INITIATE_SOLVING";
|
12
|
+
QuoteIntentResponseLifecycleActionType[QuoteIntentResponseLifecycleActionType["QUOTE_INTENT_RESPONSE_SOLVE_VALIDATION"] = 7] = "QUOTE_INTENT_RESPONSE_SOLVE_VALIDATION";
|
13
|
+
QuoteIntentResponseLifecycleActionType[QuoteIntentResponseLifecycleActionType["QUOTE_INTENT_RESPONSE_FULFILLED"] = 8] = "QUOTE_INTENT_RESPONSE_FULFILLED";
|
14
|
+
QuoteIntentResponseLifecycleActionType[QuoteIntentResponseLifecycleActionType["QUOTE_INTENT_RESPONSE_TIMED_OUT"] = 9] = "QUOTE_INTENT_RESPONSE_TIMED_OUT";
|
15
|
+
})(QuoteIntentResponseLifecycleActionType || (exports.QuoteIntentResponseLifecycleActionType = QuoteIntentResponseLifecycleActionType = {}));
|
16
|
+
//# sourceMappingURL=quote_intent_response_action.enum.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quote_intent_response_action.enum.js","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_intent_response_action.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,sCAUX;AAVD,WAAY,sCAAsC;IAChD,mGAAQ,CAAA;IACR,mJAA4B,CAAA;IAC5B,+JAAkC,CAAA;IAClC,uJAA8B,CAAA;IAC9B,uKAAsC,CAAA;IACtC,uKAAsC,CAAA;IACtC,uKAAsC,CAAA;IACtC,yJAA+B,CAAA;IAC/B,yJAA+B,CAAA;AACjC,CAAC,EAVW,sCAAsC,sDAAtC,sCAAsC,QAUjD"}
|
@@ -1,10 +1,10 @@
|
|
1
|
-
export declare enum
|
1
|
+
export declare enum QuoteIntentResponseLifecycleStage {
|
2
2
|
NONE = 1,
|
3
3
|
ENTRANCE = 2,
|
4
4
|
RETENTION = 3,
|
5
5
|
TERMINATION = 4
|
6
6
|
}
|
7
|
-
export declare enum
|
7
|
+
export declare enum QuoteIntentResponseLifecycleState {
|
8
8
|
NONE = 1,
|
9
9
|
CREATION = 2,
|
10
10
|
SELECTED = 3,// => success transition of solve creation
|
@@ -15,7 +15,7 @@ export declare enum QuoteResponseLifecycleState {
|
|
15
15
|
FULFILLED = 8,// => success transition of solve studing
|
16
16
|
TIMED_OUT = 9
|
17
17
|
}
|
18
|
-
export declare enum
|
18
|
+
export declare enum QuoteIntentResponseLifecycleStatus {
|
19
19
|
NONE = 1,
|
20
20
|
SUCCESS = 2,
|
21
21
|
PENDING = 3,
|
@@ -23,4 +23,4 @@ export declare enum QuoteResponseLifecycleStatus {
|
|
23
23
|
FAILURE = 5,
|
24
24
|
IN_PROGRESS = 6
|
25
25
|
}
|
26
|
-
//# sourceMappingURL=
|
26
|
+
//# sourceMappingURL=quote_intent_response_lifecycle.enum.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quote_intent_response_lifecycle.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_intent_response_lifecycle.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,iCAAiC;IAC3C,IAAI,IAAI;IACR,QAAQ,IAAA;IACR,SAAS,IAAA;IACT,WAAW,IAAA;CACZ;AAED,oBAAY,iCAAiC;IAE3C,IAAI,IAAI;IACR,QAAQ,IAAA;IACR,QAAQ,IAAA,CAAE,0CAA0C;IAGpD,gBAAgB,IAAA,CAAE,8CAA8C;IAChE,aAAa,IAAA,CAAE,4CAA4C;IAG3D,YAAY,IAAA,CAAE,oCAAoC;IAClD,gBAAgB,IAAA,CAAE,oCAAoC;IACtD,SAAS,IAAA,CAAE,yCAAyC;IACpD,SAAS,IAAA;CACV;AAED,oBAAY,kCAAkC;IAC5C,IAAI,IAAI;IACR,OAAO,IAAA;IACP,OAAO,IAAA;IACP,OAAO,IAAA;IACP,OAAO,IAAA;IACP,WAAW,IAAA;CACZ"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.QuoteIntentResponseLifecycleStatus = exports.QuoteIntentResponseLifecycleState = exports.QuoteIntentResponseLifecycleStage = void 0;
|
4
|
+
var QuoteIntentResponseLifecycleStage;
|
5
|
+
(function (QuoteIntentResponseLifecycleStage) {
|
6
|
+
QuoteIntentResponseLifecycleStage[QuoteIntentResponseLifecycleStage["NONE"] = 1] = "NONE";
|
7
|
+
QuoteIntentResponseLifecycleStage[QuoteIntentResponseLifecycleStage["ENTRANCE"] = 2] = "ENTRANCE";
|
8
|
+
QuoteIntentResponseLifecycleStage[QuoteIntentResponseLifecycleStage["RETENTION"] = 3] = "RETENTION";
|
9
|
+
QuoteIntentResponseLifecycleStage[QuoteIntentResponseLifecycleStage["TERMINATION"] = 4] = "TERMINATION";
|
10
|
+
})(QuoteIntentResponseLifecycleStage || (exports.QuoteIntentResponseLifecycleStage = QuoteIntentResponseLifecycleStage = {}));
|
11
|
+
var QuoteIntentResponseLifecycleState;
|
12
|
+
(function (QuoteIntentResponseLifecycleState) {
|
13
|
+
// entrance stage
|
14
|
+
QuoteIntentResponseLifecycleState[QuoteIntentResponseLifecycleState["NONE"] = 1] = "NONE";
|
15
|
+
QuoteIntentResponseLifecycleState[QuoteIntentResponseLifecycleState["CREATION"] = 2] = "CREATION";
|
16
|
+
QuoteIntentResponseLifecycleState[QuoteIntentResponseLifecycleState["SELECTED"] = 3] = "SELECTED";
|
17
|
+
// retention stage
|
18
|
+
QuoteIntentResponseLifecycleState[QuoteIntentResponseLifecycleState["INITIATE_SOLVING"] = 4] = "INITIATE_SOLVING";
|
19
|
+
QuoteIntentResponseLifecycleState[QuoteIntentResponseLifecycleState["SOLVE_STUDING"] = 5] = "SOLVE_STUDING";
|
20
|
+
// termination stage
|
21
|
+
QuoteIntentResponseLifecycleState[QuoteIntentResponseLifecycleState["NOT_SELECTED"] = 6] = "NOT_SELECTED";
|
22
|
+
QuoteIntentResponseLifecycleState[QuoteIntentResponseLifecycleState["REQUEST_CANCELED"] = 7] = "REQUEST_CANCELED";
|
23
|
+
QuoteIntentResponseLifecycleState[QuoteIntentResponseLifecycleState["FULFILLED"] = 8] = "FULFILLED";
|
24
|
+
QuoteIntentResponseLifecycleState[QuoteIntentResponseLifecycleState["TIMED_OUT"] = 9] = "TIMED_OUT";
|
25
|
+
})(QuoteIntentResponseLifecycleState || (exports.QuoteIntentResponseLifecycleState = QuoteIntentResponseLifecycleState = {}));
|
26
|
+
var QuoteIntentResponseLifecycleStatus;
|
27
|
+
(function (QuoteIntentResponseLifecycleStatus) {
|
28
|
+
QuoteIntentResponseLifecycleStatus[QuoteIntentResponseLifecycleStatus["NONE"] = 1] = "NONE";
|
29
|
+
QuoteIntentResponseLifecycleStatus[QuoteIntentResponseLifecycleStatus["SUCCESS"] = 2] = "SUCCESS";
|
30
|
+
QuoteIntentResponseLifecycleStatus[QuoteIntentResponseLifecycleStatus["PENDING"] = 3] = "PENDING";
|
31
|
+
QuoteIntentResponseLifecycleStatus[QuoteIntentResponseLifecycleStatus["EXPIRED"] = 4] = "EXPIRED";
|
32
|
+
QuoteIntentResponseLifecycleStatus[QuoteIntentResponseLifecycleStatus["FAILURE"] = 5] = "FAILURE";
|
33
|
+
QuoteIntentResponseLifecycleStatus[QuoteIntentResponseLifecycleStatus["IN_PROGRESS"] = 6] = "IN_PROGRESS";
|
34
|
+
})(QuoteIntentResponseLifecycleStatus || (exports.QuoteIntentResponseLifecycleStatus = QuoteIntentResponseLifecycleStatus = {}));
|
35
|
+
//# sourceMappingURL=quote_intent_response_lifecycle.enum.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quote_intent_response_lifecycle.enum.js","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_intent_response_lifecycle.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iCAKX;AALD,WAAY,iCAAiC;IAC3C,yFAAQ,CAAA;IACR,iGAAQ,CAAA;IACR,mGAAS,CAAA;IACT,uGAAW,CAAA;AACb,CAAC,EALW,iCAAiC,iDAAjC,iCAAiC,QAK5C;AAED,IAAY,iCAeX;AAfD,WAAY,iCAAiC;IAC3C,iBAAiB;IACjB,yFAAQ,CAAA;IACR,iGAAQ,CAAA;IACR,iGAAQ,CAAA;IAER,kBAAkB;IAClB,iHAAgB,CAAA;IAChB,2GAAa,CAAA;IAEb,oBAAoB;IACpB,yGAAY,CAAA;IACZ,iHAAgB,CAAA;IAChB,mGAAS,CAAA;IACT,mGAAS,CAAA;AACX,CAAC,EAfW,iCAAiC,iDAAjC,iCAAiC,QAe5C;AAED,IAAY,kCAOX;AAPD,WAAY,kCAAkC;IAC5C,2FAAQ,CAAA;IACR,iGAAO,CAAA;IACP,iGAAO,CAAA;IACP,iGAAO,CAAA;IACP,iGAAO,CAAA;IACP,yGAAW,CAAA;AACb,CAAC,EAPW,kCAAkC,kDAAlC,kCAAkC,QAO7C"}
|
@@ -539,114 +539,8 @@
|
|
539
539
|
]
|
540
540
|
},
|
541
541
|
"proxy": {
|
542
|
-
"address": "
|
543
|
-
"abi": [
|
544
|
-
{
|
545
|
-
"type": "constructor",
|
546
|
-
"inputs": [
|
547
|
-
{
|
548
|
-
"name": "_rangoDiamondAddress",
|
549
|
-
"type": "address",
|
550
|
-
"internalType": "address"
|
551
|
-
},
|
552
|
-
{
|
553
|
-
"name": "_plutonContractAddress",
|
554
|
-
"type": "address",
|
555
|
-
"internalType": "address"
|
556
|
-
},
|
557
|
-
{
|
558
|
-
"name": "_baseTokenAddress",
|
559
|
-
"type": "address",
|
560
|
-
"internalType": "address"
|
561
|
-
}
|
562
|
-
],
|
563
|
-
"stateMutability": "nonpayable"
|
564
|
-
},
|
565
|
-
{
|
566
|
-
"type": "function",
|
567
|
-
"name": "baseTokenAddress",
|
568
|
-
"inputs": [],
|
569
|
-
"outputs": [
|
570
|
-
{ "name": "", "type": "address", "internalType": "address" }
|
571
|
-
],
|
572
|
-
"stateMutability": "view"
|
573
|
-
},
|
574
|
-
{
|
575
|
-
"type": "function",
|
576
|
-
"name": "plutonContract",
|
577
|
-
"inputs": [],
|
578
|
-
"outputs": [
|
579
|
-
{
|
580
|
-
"name": "",
|
581
|
-
"type": "address",
|
582
|
-
"internalType": "contract PlutonContract"
|
583
|
-
}
|
584
|
-
],
|
585
|
-
"stateMutability": "view"
|
586
|
-
},
|
587
|
-
{
|
588
|
-
"type": "function",
|
589
|
-
"name": "rangoDiamondAddress",
|
590
|
-
"inputs": [],
|
591
|
-
"outputs": [
|
592
|
-
{ "name": "", "type": "address", "internalType": "address" }
|
593
|
-
],
|
594
|
-
"stateMutability": "view"
|
595
|
-
},
|
596
|
-
{
|
597
|
-
"type": "function",
|
598
|
-
"name": "swapAndpluton",
|
599
|
-
"inputs": [
|
600
|
-
{
|
601
|
-
"name": "plutonRequest",
|
602
|
-
"type": "tuple",
|
603
|
-
"internalType": "struct IPlutonMiddleware.PlutonRequest",
|
604
|
-
"components": [
|
605
|
-
{ "name": "id", "type": "bytes", "internalType": "bytes" },
|
606
|
-
{
|
607
|
-
"name": "user",
|
608
|
-
"type": "address",
|
609
|
-
"internalType": "address"
|
610
|
-
},
|
611
|
-
{
|
612
|
-
"name": "initiationExpiry",
|
613
|
-
"type": "uint256",
|
614
|
-
"internalType": "uint256"
|
615
|
-
},
|
616
|
-
{
|
617
|
-
"name": "orderDataType",
|
618
|
-
"type": "bytes32",
|
619
|
-
"internalType": "bytes32"
|
620
|
-
},
|
621
|
-
{
|
622
|
-
"name": "orderData",
|
623
|
-
"type": "bytes",
|
624
|
-
"internalType": "bytes"
|
625
|
-
}
|
626
|
-
]
|
627
|
-
},
|
628
|
-
{
|
629
|
-
"name": "swapCallData",
|
630
|
-
"type": "bytes",
|
631
|
-
"internalType": "bytes"
|
632
|
-
},
|
633
|
-
{
|
634
|
-
"name": "srcTokenAddress",
|
635
|
-
"type": "address",
|
636
|
-
"internalType": "address"
|
637
|
-
},
|
638
|
-
{ "name": "amountIn", "type": "uint256", "internalType": "uint256" }
|
639
|
-
],
|
640
|
-
"outputs": [],
|
641
|
-
"stateMutability": "payable"
|
642
|
-
},
|
643
|
-
{ "type": "error", "name": "RangoSwapFailed", "inputs": [] },
|
644
|
-
{
|
645
|
-
"type": "error",
|
646
|
-
"name": "ReentrancyGuardReentrantCall",
|
647
|
-
"inputs": []
|
648
|
-
}
|
649
|
-
]
|
542
|
+
"address": "0x8bC1Aff4D3de49bD9B710c31638d82E502CF4C68",
|
543
|
+
"abi": [{ "type": "constructor", "inputs": [{ "name": "_rangoDiamondAddress", "type": "address", "internalType": "address" }, { "name": "_plutonContractAddress", "type": "address", "internalType": "address" }, { "name": "_baseTokenAddress", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "baseTokenAddress", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plutonContract", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "contract PlutonContract" }], "stateMutability": "view" }, { "type": "function", "name": "rangoDiamondAddress", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "swapAndpluton", "inputs": [{ "name": "plutonRequest", "type": "tuple", "internalType": "struct IPlutonMiddleware.PlutonRequest", "components": [{ "name": "id", "type": "bytes", "internalType": "bytes" }, { "name": "user", "type": "address", "internalType": "address" }, { "name": "initiationExpiry", "type": "uint256", "internalType": "uint256" }, { "name": "orderDataType", "type": "bytes32", "internalType": "bytes32" }, { "name": "orderData", "type": "bytes", "internalType": "bytes" }] }, { "name": "srcTokenAddress", "type": "address", "internalType": "address" }, { "name": "amountIn", "type": "uint256", "internalType": "uint256" }, { "name": "swapCallData", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "payable" }, { "type": "error", "name": "RangoSwapFailed", "inputs": [] }, { "type": "error", "name": "ReentrancyGuardReentrantCall", "inputs": [] }]
|
650
544
|
}
|
651
545
|
},
|
652
546
|
{
|
@@ -1189,114 +1083,8 @@
|
|
1189
1083
|
]
|
1190
1084
|
},
|
1191
1085
|
"proxy": {
|
1192
|
-
"address": "
|
1193
|
-
"abi": [
|
1194
|
-
{
|
1195
|
-
"type": "constructor",
|
1196
|
-
"inputs": [
|
1197
|
-
{
|
1198
|
-
"name": "_rangoDiamondAddress",
|
1199
|
-
"type": "address",
|
1200
|
-
"internalType": "address"
|
1201
|
-
},
|
1202
|
-
{
|
1203
|
-
"name": "_plutonContractAddress",
|
1204
|
-
"type": "address",
|
1205
|
-
"internalType": "address"
|
1206
|
-
},
|
1207
|
-
{
|
1208
|
-
"name": "_baseTokenAddress",
|
1209
|
-
"type": "address",
|
1210
|
-
"internalType": "address"
|
1211
|
-
}
|
1212
|
-
],
|
1213
|
-
"stateMutability": "nonpayable"
|
1214
|
-
},
|
1215
|
-
{
|
1216
|
-
"type": "function",
|
1217
|
-
"name": "baseTokenAddress",
|
1218
|
-
"inputs": [],
|
1219
|
-
"outputs": [
|
1220
|
-
{ "name": "", "type": "address", "internalType": "address" }
|
1221
|
-
],
|
1222
|
-
"stateMutability": "view"
|
1223
|
-
},
|
1224
|
-
{
|
1225
|
-
"type": "function",
|
1226
|
-
"name": "plutonContract",
|
1227
|
-
"inputs": [],
|
1228
|
-
"outputs": [
|
1229
|
-
{
|
1230
|
-
"name": "",
|
1231
|
-
"type": "address",
|
1232
|
-
"internalType": "contract PlutonContract"
|
1233
|
-
}
|
1234
|
-
],
|
1235
|
-
"stateMutability": "view"
|
1236
|
-
},
|
1237
|
-
{
|
1238
|
-
"type": "function",
|
1239
|
-
"name": "rangoDiamondAddress",
|
1240
|
-
"inputs": [],
|
1241
|
-
"outputs": [
|
1242
|
-
{ "name": "", "type": "address", "internalType": "address" }
|
1243
|
-
],
|
1244
|
-
"stateMutability": "view"
|
1245
|
-
},
|
1246
|
-
{
|
1247
|
-
"type": "function",
|
1248
|
-
"name": "swapAndpluton",
|
1249
|
-
"inputs": [
|
1250
|
-
{
|
1251
|
-
"name": "plutonRequest",
|
1252
|
-
"type": "tuple",
|
1253
|
-
"internalType": "struct IPlutonMiddleware.PlutonRequest",
|
1254
|
-
"components": [
|
1255
|
-
{ "name": "id", "type": "bytes", "internalType": "bytes" },
|
1256
|
-
{
|
1257
|
-
"name": "user",
|
1258
|
-
"type": "address",
|
1259
|
-
"internalType": "address"
|
1260
|
-
},
|
1261
|
-
{
|
1262
|
-
"name": "initiationExpiry",
|
1263
|
-
"type": "uint256",
|
1264
|
-
"internalType": "uint256"
|
1265
|
-
},
|
1266
|
-
{
|
1267
|
-
"name": "orderDataType",
|
1268
|
-
"type": "bytes32",
|
1269
|
-
"internalType": "bytes32"
|
1270
|
-
},
|
1271
|
-
{
|
1272
|
-
"name": "orderData",
|
1273
|
-
"type": "bytes",
|
1274
|
-
"internalType": "bytes"
|
1275
|
-
}
|
1276
|
-
]
|
1277
|
-
},
|
1278
|
-
{
|
1279
|
-
"name": "swapCallData",
|
1280
|
-
"type": "bytes",
|
1281
|
-
"internalType": "bytes"
|
1282
|
-
},
|
1283
|
-
{
|
1284
|
-
"name": "srcTokenAddress",
|
1285
|
-
"type": "address",
|
1286
|
-
"internalType": "address"
|
1287
|
-
},
|
1288
|
-
{ "name": "amountIn", "type": "uint256", "internalType": "uint256" }
|
1289
|
-
],
|
1290
|
-
"outputs": [],
|
1291
|
-
"stateMutability": "payable"
|
1292
|
-
},
|
1293
|
-
{ "type": "error", "name": "RangoSwapFailed", "inputs": [] },
|
1294
|
-
{
|
1295
|
-
"type": "error",
|
1296
|
-
"name": "ReentrancyGuardReentrantCall",
|
1297
|
-
"inputs": []
|
1298
|
-
}
|
1299
|
-
]
|
1086
|
+
"address": "0x9498873819b83C144cC7cF824493Ab1dCa29ab3F",
|
1087
|
+
"abi": [{ "type": "constructor", "inputs": [{ "name": "_rangoDiamondAddress", "type": "address", "internalType": "address" }, { "name": "_plutonContractAddress", "type": "address", "internalType": "address" }, { "name": "_baseTokenAddress", "type": "address", "internalType": "address" }], "stateMutability": "nonpayable" }, { "type": "function", "name": "baseTokenAddress", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "plutonContract", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "contract PlutonContract" }], "stateMutability": "view" }, { "type": "function", "name": "rangoDiamondAddress", "inputs": [], "outputs": [{ "name": "", "type": "address", "internalType": "address" }], "stateMutability": "view" }, { "type": "function", "name": "swapAndpluton", "inputs": [{ "name": "plutonRequest", "type": "tuple", "internalType": "struct IPlutonMiddleware.PlutonRequest", "components": [{ "name": "id", "type": "bytes", "internalType": "bytes" }, { "name": "user", "type": "address", "internalType": "address" }, { "name": "initiationExpiry", "type": "uint256", "internalType": "uint256" }, { "name": "orderDataType", "type": "bytes32", "internalType": "bytes32" }, { "name": "orderData", "type": "bytes", "internalType": "bytes" }] }, { "name": "srcTokenAddress", "type": "address", "internalType": "address" }, { "name": "amountIn", "type": "uint256", "internalType": "uint256" }, { "name": "swapCallData", "type": "bytes", "internalType": "bytes" }], "outputs": [], "stateMutability": "payable" }, { "type": "error", "name": "RangoSwapFailed", "inputs": [] }, { "type": "error", "name": "ReentrancyGuardReentrantCall", "inputs": [] }]
|
1300
1088
|
}
|
1301
1089
|
}
|
1302
1090
|
]
|
package/package.json
CHANGED
@@ -1,28 +1,28 @@
|
|
1
|
-
{
|
2
|
-
"name": "@plutonlabs/sdk",
|
3
|
-
"version": "0.0.
|
4
|
-
"main": "dist/index.js",
|
5
|
-
"types": "dist/index.d.ts",
|
6
|
-
"files": [
|
7
|
-
"dist"
|
8
|
-
],
|
9
|
-
"scripts": {
|
10
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
11
|
-
"build": "tsc"
|
12
|
-
},
|
13
|
-
"keywords": [],
|
14
|
-
"author": "",
|
15
|
-
"license": "ISC",
|
16
|
-
"description": "",
|
17
|
-
"devDependencies": {
|
18
|
-
"eslint": "^8.57.1",
|
19
|
-
"prettier": "^3.5.0",
|
20
|
-
"typescript": "^5.7.3"
|
21
|
-
},
|
22
|
-
"dependencies": {
|
23
|
-
"bignumber.js": "^9.1.2",
|
24
|
-
"class-transformer": "^0.5.1",
|
25
|
-
"class-validator": "^0.14.1",
|
26
|
-
"ethers": "^6.13.5"
|
27
|
-
}
|
28
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@plutonlabs/sdk",
|
3
|
+
"version": "0.0.33-beta",
|
4
|
+
"main": "dist/index.js",
|
5
|
+
"types": "dist/index.d.ts",
|
6
|
+
"files": [
|
7
|
+
"dist"
|
8
|
+
],
|
9
|
+
"scripts": {
|
10
|
+
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
11
|
+
"build": "tsc"
|
12
|
+
},
|
13
|
+
"keywords": [],
|
14
|
+
"author": "",
|
15
|
+
"license": "ISC",
|
16
|
+
"description": "",
|
17
|
+
"devDependencies": {
|
18
|
+
"eslint": "^8.57.1",
|
19
|
+
"prettier": "^3.5.0",
|
20
|
+
"typescript": "^5.7.3"
|
21
|
+
},
|
22
|
+
"dependencies": {
|
23
|
+
"bignumber.js": "^9.1.2",
|
24
|
+
"class-transformer": "^0.5.1",
|
25
|
+
"class-validator": "^0.14.1",
|
26
|
+
"ethers": "^6.13.5"
|
27
|
+
}
|
28
|
+
}
|
package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.d.ts
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
import { QuoteEstimateBridgeIntentRequestDto } from './quote_estimate_bridge_intent_request.dto';
|
2
|
-
export declare class QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto extends QuoteEstimateBridgeIntentRequestDto {
|
3
|
-
constructor(partial: Partial<QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto>);
|
4
|
-
/**
|
5
|
-
* @example 1
|
6
|
-
*/
|
7
|
-
sourceBaseTokenChainId: number;
|
8
|
-
/**
|
9
|
-
* @example 60
|
10
|
-
*/
|
11
|
-
sourceBaseTokenCoinType: number;
|
12
|
-
/**
|
13
|
-
* @example '0xb44146014eD5f7001Ec9b03153950f4129ec7296'
|
14
|
-
* @description address of token contract on source chain, empty if native token
|
15
|
-
*/
|
16
|
-
sourceBaseTokenAddress: string;
|
17
|
-
/**
|
18
|
-
* @example '1000'
|
19
|
-
*/
|
20
|
-
sourceBaseTokenAmount: string;
|
21
|
-
}
|
22
|
-
//# sourceMappingURL=quote_estimate_solver_bridge_intent_request.dto.d.ts.map
|
package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"quote_estimate_solver_bridge_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAEjG,qBAAa,sDAAuD,SAAQ,mCAAmC;gBACjG,OAAO,EAAE,OAAO,CAAC,sDAAsD,CAAC;IAKpF;;OAEG;IAGH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IAGH,uBAAuB,EAAE,MAAM,CAAC;IAEhC;;;OAGG;IAEH,sBAAsB,EAAE,MAAM,CAAC;IAE/B;;OAEG;IAGH,qBAAqB,EAAE,MAAM,CAAC;CAC/B"}
|
package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.js
DELETED
@@ -1,41 +0,0 @@
|
|
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.QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
const quote_estimate_bridge_intent_request_dto_1 = require("./quote_estimate_bridge_intent_request.dto");
|
15
|
-
class QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto extends quote_estimate_bridge_intent_request_dto_1.QuoteEstimateBridgeIntentRequestDto {
|
16
|
-
constructor(partial) {
|
17
|
-
super(partial);
|
18
|
-
Object.assign(this, partial);
|
19
|
-
}
|
20
|
-
}
|
21
|
-
exports.QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto = QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto;
|
22
|
-
__decorate([
|
23
|
-
(0, class_validator_1.IsNotEmpty)(),
|
24
|
-
(0, class_validator_1.IsNumber)(),
|
25
|
-
__metadata("design:type", Number)
|
26
|
-
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenChainId", void 0);
|
27
|
-
__decorate([
|
28
|
-
(0, class_validator_1.IsNotEmpty)(),
|
29
|
-
(0, class_validator_1.IsNumber)(),
|
30
|
-
__metadata("design:type", Number)
|
31
|
-
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenCoinType", void 0);
|
32
|
-
__decorate([
|
33
|
-
(0, class_validator_1.IsString)(),
|
34
|
-
__metadata("design:type", String)
|
35
|
-
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenAddress", void 0);
|
36
|
-
__decorate([
|
37
|
-
(0, class_validator_1.IsNotEmpty)(),
|
38
|
-
(0, class_validator_1.IsNumber)(),
|
39
|
-
__metadata("design:type", String)
|
40
|
-
], QuoteEstimateWithSourceBaseTokenBridgeIntentRequestDto.prototype, "sourceBaseTokenAmount", void 0);
|
41
|
-
//# sourceMappingURL=quote_estimate_solver_bridge_intent_request.dto.js.map
|
package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"quote_estimate_solver_bridge_intent_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,yGAAiG;AAEjG,MAAa,sDAAuD,SAAQ,8EAAmC;IAC7G,YAAY,OAAwE;QAClF,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;CA6BF;AAjCD,wHAiCC;AAtBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sGACoB;AAO/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uGACqB;AAOhC;IADC,IAAA,0BAAQ,GAAE;;sGACoB;AAO/B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qGACmB"}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
import { QuoteRequestLifecycleStage, QuoteRequestLifecycleState, QuoteRequestLifecycleStatus } from '../../enums';
|
2
|
-
export declare class QuoteRequestLifecycleDto {
|
3
|
-
constructor(partial: Partial<QuoteRequestLifecycleDto>);
|
4
|
-
static from<T extends {
|
5
|
-
id: string;
|
6
|
-
quoteRequestId: string;
|
7
|
-
stage: QuoteRequestLifecycleStage;
|
8
|
-
state: QuoteRequestLifecycleState;
|
9
|
-
status: QuoteRequestLifecycleStatus;
|
10
|
-
metadata?: Record<string, any>;
|
11
|
-
}>(obj: T): QuoteRequestLifecycleDto;
|
12
|
-
static listFrom<T extends {
|
13
|
-
id: string;
|
14
|
-
quoteRequestId: string;
|
15
|
-
stage: QuoteRequestLifecycleStage;
|
16
|
-
state: QuoteRequestLifecycleState;
|
17
|
-
status: QuoteRequestLifecycleStatus;
|
18
|
-
metadata?: Record<string, any>;
|
19
|
-
}>(objs: T[]): QuoteRequestLifecycleDto[];
|
20
|
-
/**
|
21
|
-
* @description The unique identifier for the quote request lifecycle
|
22
|
-
* @example '1a2b3c4d'
|
23
|
-
*/
|
24
|
-
id: string;
|
25
|
-
/**
|
26
|
-
* @description The unique identifier for the quote request
|
27
|
-
* @example '5f6g7h8i'
|
28
|
-
*/
|
29
|
-
quoteRequestId: string;
|
30
|
-
/**
|
31
|
-
* @description The stage of the quote request lifecycle
|
32
|
-
* @example 'initial'
|
33
|
-
*/
|
34
|
-
stage: QuoteRequestLifecycleStage;
|
35
|
-
/**
|
36
|
-
* @description The state of the quote request lifecycle
|
37
|
-
* @example 'pending'
|
38
|
-
*/
|
39
|
-
state: QuoteRequestLifecycleState;
|
40
|
-
/**
|
41
|
-
* @description The status of the quote request lifecycle
|
42
|
-
* @example 'active'
|
43
|
-
*/
|
44
|
-
status: QuoteRequestLifecycleStatus;
|
45
|
-
/**
|
46
|
-
* @description Optional metadata related to the lifecycle
|
47
|
-
* @example { "key": "value" }
|
48
|
-
*/
|
49
|
-
metadata?: Record<string, any>;
|
50
|
-
}
|
51
|
-
//# sourceMappingURL=quote_request_lifecycle.dto.d.ts.map
|
@@ -1 +0,0 @@
|
|
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":"AACA,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AACrB,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,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.QuoteRequestLifecycleDto = void 0;
|
4
|
-
const common_1 = require("../../../../../common");
|
5
|
-
class QuoteRequestLifecycleDto {
|
6
|
-
constructor(partial) {
|
7
|
-
Object.assign(this, partial);
|
8
|
-
}
|
9
|
-
static from(obj) {
|
10
|
-
const dto = new QuoteRequestLifecycleDto(obj);
|
11
|
-
return dto;
|
12
|
-
}
|
13
|
-
static listFrom(objs) {
|
14
|
-
return (0, common_1.makeList)(objs, QuoteRequestLifecycleDto.from);
|
15
|
-
}
|
16
|
-
}
|
17
|
-
exports.QuoteRequestLifecycleDto = QuoteRequestLifecycleDto;
|
18
|
-
//# sourceMappingURL=quote_request_lifecycle.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"quote_request_lifecycle.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAMjD,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"}
|