@plutonlabs/sdk 0.0.32-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.
Files changed (71) hide show
  1. package/dist/modules/chainsync/domain/dto/swap/swap_response.dto.d.ts +1 -1
  2. package/dist/modules/chainsync/domain/dto/swap/swap_response.dto.d.ts.map +1 -1
  3. package/dist/modules/chainsync/domain/dto/swap/swap_response.dto.js +7 -0
  4. package/dist/modules/chainsync/domain/dto/swap/swap_response.dto.js.map +1 -1
  5. package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts +21 -0
  6. package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts.map +1 -1
  7. package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js +8 -1
  8. package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js.map +1 -1
  9. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts +23 -0
  10. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts.map +1 -1
  11. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js +11 -0
  12. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js.map +1 -1
  13. package/dist/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.d.ts +3 -3
  14. package/dist/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.d.ts.map +1 -1
  15. package/dist/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.d.ts +3 -3
  16. package/dist/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.d.ts.map +1 -1
  17. package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts.map +1 -1
  18. package/dist/modules/quote/domain/dto/quote/quote_request.dto.js.map +1 -1
  19. package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts +20 -5
  20. package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts.map +1 -1
  21. package/dist/modules/quote/domain/dto/quote/quote_response.dto.js +25 -7
  22. package/dist/modules/quote/domain/dto/quote/quote_response.dto.js.map +1 -1
  23. package/package.json +28 -28
  24. package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.d.ts +0 -22
  25. package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.d.ts.map +0 -1
  26. package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.js +0 -41
  27. package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.js.map +0 -1
  28. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts +0 -51
  29. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts.map +0 -1
  30. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js +0 -18
  31. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js.map +0 -1
  32. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts +0 -51
  33. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts.map +0 -1
  34. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js +0 -18
  35. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js.map +0 -1
  36. package/dist/modules/quote/domain/enums/quote_request_action.enum.d.ts +0 -17
  37. package/dist/modules/quote/domain/enums/quote_request_action.enum.d.ts.map +0 -1
  38. package/dist/modules/quote/domain/enums/quote_request_action.enum.js +0 -21
  39. package/dist/modules/quote/domain/enums/quote_request_action.enum.js.map +0 -1
  40. package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.d.ts +0 -31
  41. package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.d.ts.map +0 -1
  42. package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.js +0 -40
  43. package/dist/modules/quote/domain/enums/quote_request_lifecycle.enum.js.map +0 -1
  44. package/dist/modules/quote/domain/enums/quote_response_action.enum.d.ts +0 -12
  45. package/dist/modules/quote/domain/enums/quote_response_action.enum.d.ts.map +0 -1
  46. package/dist/modules/quote/domain/enums/quote_response_action.enum.js +0 -16
  47. package/dist/modules/quote/domain/enums/quote_response_action.enum.js.map +0 -1
  48. package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.d.ts +0 -26
  49. package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.d.ts.map +0 -1
  50. package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.js +0 -35
  51. package/dist/modules/quote/domain/enums/quote_response_lifecycle.enum.js.map +0 -1
  52. package/dist/modules/swap/domain/dto/index.d.ts +0 -3
  53. package/dist/modules/swap/domain/dto/index.d.ts.map +0 -1
  54. package/dist/modules/swap/domain/dto/index.js +0 -19
  55. package/dist/modules/swap/domain/dto/index.js.map +0 -1
  56. package/dist/modules/swap/domain/dto/swap_request.dto.d.ts +0 -29
  57. package/dist/modules/swap/domain/dto/swap_request.dto.d.ts.map +0 -1
  58. package/dist/modules/swap/domain/dto/swap_request.dto.js +0 -37
  59. package/dist/modules/swap/domain/dto/swap_request.dto.js.map +0 -1
  60. package/dist/modules/swap/domain/dto/swap_response.dto.d.ts +0 -23
  61. package/dist/modules/swap/domain/dto/swap_response.dto.d.ts.map +0 -1
  62. package/dist/modules/swap/domain/dto/swap_response.dto.js +0 -35
  63. package/dist/modules/swap/domain/dto/swap_response.dto.js.map +0 -1
  64. package/dist/modules/swap/domain/index.d.ts +0 -2
  65. package/dist/modules/swap/domain/index.d.ts.map +0 -1
  66. package/dist/modules/swap/domain/index.js +0 -18
  67. package/dist/modules/swap/domain/index.js.map +0 -1
  68. package/dist/modules/swap/index.d.ts +0 -2
  69. package/dist/modules/swap/index.d.ts.map +0 -1
  70. package/dist/modules/swap/index.js +0 -18
  71. package/dist/modules/swap/index.js.map +0 -1
@@ -3,7 +3,7 @@ export declare class SwapCalldataResponsetDto {
3
3
  * @description The transaction data for the token swap
4
4
  * @example '0xabcdef...'
5
5
  */
6
- transactionData: string;
6
+ transactionData?: string;
7
7
  /**
8
8
  * @description The value of the transaction for the swap
9
9
  * @example '1000'
@@ -1 +1 @@
1
- {"version":3,"file":"swap_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/chainsync/domain/dto/swap/swap_response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,wBAAwB;IACnC;;;OAGG;IAGH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IAGH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IAGH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,qBAAa,wBAAwB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"swap_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/chainsync/domain/dto/swap/swap_response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,wBAAwB;IACnC;;;OAGG;IAGH,eAAe,CAAC,EAAE,MAAM,CAAQ;IAEhC;;;OAGG;IAGH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IAGH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,qBAAa,wBAAwB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb"}
@@ -12,6 +12,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.SwapEstimateResponsetDto = exports.SwapCalldataResponsetDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  class SwapCalldataResponsetDto {
15
+ constructor() {
16
+ /**
17
+ * @description The transaction data for the token swap
18
+ * @example '0xabcdef...'
19
+ */
20
+ this.transactionData = "0x";
21
+ }
15
22
  }
16
23
  exports.SwapCalldataResponsetDto = SwapCalldataResponsetDto;
17
24
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"swap_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/chainsync/domain/dto/swap/swap_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,wBAAwB;CAwBpC;AAxBD,4DAwBC;AAjBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACW;AAQxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACY;AAQzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACe;AAG9B,MAAa,wBAAwB;CAIpC;AAJD,4DAIC"}
1
+ {"version":3,"file":"swap_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/chainsync/domain/dto/swap/swap_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,wBAAwB;IAArC;QACE;;;WAGG;QAGH,oBAAe,GAAY,IAAI,CAAC;IAiBlC,CAAC;CAAA;AAxBD,4DAwBC;AAjBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iEACmB;AAQhC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kEACY;AAQzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACe;AAG9B,MAAa,wBAAwB;CAIpC;AAJD,4DAIC"}
@@ -1,6 +1,27 @@
1
1
  import { IntentType } from '../../../../../common';
2
2
  import { SelectionStatus } from '../../enums';
3
3
  export declare class QuoteBaseIntentResponseDto {
4
+ constructor(partial: Partial<QuoteBaseIntentResponseDto>);
5
+ static from<T extends {
6
+ id?: string;
7
+ intentType: IntentType;
8
+ intentRequestId: string;
9
+ initiationExpiry?: Date;
10
+ redeemExpiry?: Date;
11
+ solverId?: string;
12
+ selectionStatus?: SelectionStatus;
13
+ amount: string;
14
+ }>(obj: T): QuoteBaseIntentResponseDto;
15
+ static listFrom<T extends {
16
+ id?: string;
17
+ intentType: IntentType;
18
+ intentRequestId: string;
19
+ initiationExpiry?: Date;
20
+ redeemExpiry?: Date;
21
+ solverId?: string;
22
+ selectionStatus?: SelectionStatus;
23
+ amount: string;
24
+ }>(objs: T[]): QuoteBaseIntentResponseDto[];
4
25
  id?: string;
5
26
  /**
6
27
  * @description Type of intent request
@@ -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,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,0BAA0B;IAErC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IAGH,UAAU,EAAE,UAAU,CAAC;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;CAClE"}
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,aAAa,CAAC;AAE9C,qBAAa,0BAA0B;gBACzB,OAAO,EAAE,OAAO,CAAC,0BAA0B,CAAC;WAI1C,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,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;KAChB,EACD,GAAG,EAAE,CAAC,GAAG,0BAA0B;IAIrC,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,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;KAChB,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,0BAA0B,EAAE;IAK1C,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IAGH,UAAU,EAAE,UAAU,CAAC;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;CAClE"}
@@ -14,8 +14,15 @@ const class_validator_1 = require("class-validator");
14
14
  const common_1 = require("../../../../../common");
15
15
  const enums_1 = require("../../enums");
16
16
  class QuoteBaseIntentResponseDto {
17
- constructor() {
17
+ constructor(partial) {
18
18
  this.selectionStatus = enums_1.SelectionStatus.NOT_SELECTED;
19
+ Object.assign(this, partial);
20
+ }
21
+ static from(obj) {
22
+ return new QuoteBaseIntentResponseDto(obj);
23
+ }
24
+ static listFrom(objs) {
25
+ return (0, common_1.makeList)(objs, QuoteBaseIntentResponseDto.from);
19
26
  }
20
27
  }
21
28
  exports.QuoteBaseIntentResponseDto = QuoteBaseIntentResponseDto;
@@ -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,qDAAuE;AACvE,kDAAmD;AACnD,uCAA8C;AAE9C,MAAa,0BAA0B;IAAvC;QAwCE,oBAAe,GAAqB,uBAAe,CAAC,YAAY,CAAC;IACnE,CAAC;CAAA;AAzCD,gEAyCC;AAvCC;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"}
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,qDAAuE;AACvE,kDAA6D;AAC7D,uCAA8C;AAE9C,MAAa,0BAA0B;IACrC,YAAY,OAA4C;QAyExD,oBAAe,GAAqB,uBAAe,CAAC,YAAY,CAAC;QAxE/D,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAWhB,GAAM;QACN,OAAO,IAAI,0BAA0B,CAAC,GAAG,CAAC,CAAC;IAC7C,CAAC;IAED,MAAM,CAAC,QAAQ,CAWb,IAAS;QACT,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;CA0CF;AA3ED,gEA2EC;AAvCC;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"}
@@ -1,5 +1,28 @@
1
1
  import { QuoteBaseIntentResponseDto } from './quote_base_intent_response.dto';
2
+ import { IntentType } from '../../../../../common';
3
+ import { SelectionStatus } from '../../enums';
2
4
  export declare class QuoteBridgeIntentResponseDto extends QuoteBaseIntentResponseDto {
5
+ constructor(partial: Partial<QuoteBridgeIntentResponseDto>);
6
+ static from<T extends {
7
+ id?: string;
8
+ intentType: IntentType;
9
+ intentRequestId: string;
10
+ initiationExpiry?: Date;
11
+ redeemExpiry?: Date;
12
+ solverId?: string;
13
+ selectionStatus?: SelectionStatus;
14
+ amount: string;
15
+ }>(obj: T): QuoteBridgeIntentResponseDto;
16
+ static listFrom<T extends {
17
+ id?: string;
18
+ intentType: IntentType;
19
+ intentRequestId: string;
20
+ initiationExpiry?: Date;
21
+ redeemExpiry?: Date;
22
+ solverId?: string;
23
+ selectionStatus?: SelectionStatus;
24
+ amount: string;
25
+ }>(objs: T[]): QuoteBridgeIntentResponseDto[];
3
26
  /**
4
27
  * @example '10000'
5
28
  * @description Solver response amount of destination token
@@ -1 +1 @@
1
- {"version":3,"file":"quote_bridge_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E,qBAAa,4BAA6B,SAAQ,0BAA0B;IAC1E;;;OAGG;IAGH,MAAM,EAAE,MAAM,CAAC;CAChB"}
1
+ {"version":3,"file":"quote_bridge_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAY,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,4BAA6B,SAAQ,0BAA0B;gBAE9D,OAAO,EAAE,OAAO,CAAC,4BAA4B,CAAC;WAK5C,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,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;KAChB,EACD,GAAG,EAAE,CAAC,GAAG,4BAA4B;IAIvC,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,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;KAChB,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,4BAA4B,EAAE;IAI5C;;;OAGG;IAGH,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -12,7 +12,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.QuoteBridgeIntentResponseDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const quote_base_intent_response_dto_1 = require("./quote_base_intent_response.dto");
15
+ const common_1 = require("../../../../../common");
15
16
  class QuoteBridgeIntentResponseDto extends quote_base_intent_response_dto_1.QuoteBaseIntentResponseDto {
17
+ constructor(partial) {
18
+ super(partial);
19
+ Object.assign(this, partial);
20
+ }
21
+ static from(obj) {
22
+ return new QuoteBridgeIntentResponseDto(obj);
23
+ }
24
+ static listFrom(objs) {
25
+ return (0, common_1.makeList)(objs, QuoteBridgeIntentResponseDto.from);
26
+ }
16
27
  }
17
28
  exports.QuoteBridgeIntentResponseDto = QuoteBridgeIntentResponseDto;
18
29
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"quote_bridge_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,qFAA8E;AAE9E,MAAa,4BAA6B,SAAQ,2DAA0B;CAQ3E;AARD,oEAQC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACI"}
1
+ {"version":3,"file":"quote_bridge_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,qFAA8E;AAC9E,kDAA6D;AAG7D,MAAa,4BAA6B,SAAQ,2DAA0B;IAE1E,YAAY,OAA8C;QACxD,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAWhB,GAAM;QACN,OAAO,IAAI,4BAA4B,CAAC,GAAG,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,CAAC,QAAQ,CAWb,IAAS;QACT,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;CASF;AA5CD,oEA4CC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACI"}
@@ -3,7 +3,7 @@ export declare class QuoteIntentRequestLifecycleDto {
3
3
  constructor(partial: Partial<QuoteIntentRequestLifecycleDto>);
4
4
  static from<T extends {
5
5
  id: string;
6
- quoteIntentRequestId: string;
6
+ ownerId: string;
7
7
  stage: QuoteIntentRequestLifecycleStage;
8
8
  state: QuoteIntentRequestLifecycleState;
9
9
  status: QuoteIntentRequestLifecycleStatus;
@@ -11,7 +11,7 @@ export declare class QuoteIntentRequestLifecycleDto {
11
11
  }>(obj: T): QuoteIntentRequestLifecycleDto;
12
12
  static listFrom<T extends {
13
13
  id: string;
14
- quoteIntentRequestId: string;
14
+ ownerId: string;
15
15
  stage: QuoteIntentRequestLifecycleStage;
16
16
  state: QuoteIntentRequestLifecycleState;
17
17
  status: QuoteIntentRequestLifecycleStatus;
@@ -26,7 +26,7 @@ export declare class QuoteIntentRequestLifecycleDto {
26
26
  * @description The unique identifier for the quote request
27
27
  * @example '5f6g7h8i'
28
28
  */
29
- quoteIntentRequestId: string;
29
+ ownerId: string;
30
30
  /**
31
31
  * @description The stage of the quote request lifecycle
32
32
  * @example 'initial'
@@ -1 +1 @@
1
- {"version":3,"file":"quote_intent_request_lifecycle.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,EAClC,MAAM,aAAa,CAAC;AACrB,qBAAa,8BAA8B;gBAC7B,OAAO,EAAE,OAAO,CAAC,8BAA8B,CAAC;WAI9C,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,oBAAoB,EAAE,MAAM,CAAC;QAC7B,KAAK,EAAE,gCAAgC,CAAC;QACxC,KAAK,EAAE,gCAAgC,CAAC;QACxC,MAAM,EAAE,iCAAiC,CAAC;QAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,GAAG,EAAE,CAAC,GAAG,8BAA8B;IAKzC,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,oBAAoB,EAAE,MAAM,CAAC;QAC7B,KAAK,EAAE,gCAAgC,CAAC;QACxC,KAAK,EAAE,gCAAgC,CAAC;QACxC,MAAM,EAAE,iCAAiC,CAAC;QAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,8BAA8B,EAAE;IAI9C;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IACH,KAAK,EAAE,gCAAgC,CAAC;IAExC;;;OAGG;IACH,KAAK,EAAE,gCAAgC,CAAC;IAExC;;;OAGG;IACH,MAAM,EAAE,iCAAiC,CAAC;IAE1C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
1
+ {"version":3,"file":"quote_intent_request_lifecycle.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.ts"],"names":[],"mappings":"AACA,OAAO,EACL,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,EAClC,MAAM,aAAa,CAAC;AACrB,qBAAa,8BAA8B;gBAC7B,OAAO,EAAE,OAAO,CAAC,8BAA8B,CAAC;WAI9C,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,gCAAgC,CAAC;QACxC,KAAK,EAAE,gCAAgC,CAAC;QACxC,MAAM,EAAE,iCAAiC,CAAC;QAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,GAAG,EAAE,CAAC,GAAG,8BAA8B;IAKzC,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,gCAAgC,CAAC;QACxC,KAAK,EAAE,gCAAgC,CAAC;QACxC,MAAM,EAAE,iCAAiC,CAAC;QAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,8BAA8B,EAAE;IAI9C;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,EAAE,gCAAgC,CAAC;IAExC;;;OAGG;IACH,KAAK,EAAE,gCAAgC,CAAC;IAExC;;;OAGG;IACH,MAAM,EAAE,iCAAiC,CAAC;IAE1C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
@@ -3,7 +3,7 @@ export declare class QuoteIntentResponseLifecycleDto {
3
3
  constructor(partial: Partial<QuoteIntentResponseLifecycleDto>);
4
4
  static from<T extends {
5
5
  id: string;
6
- quoteIntentResponseId: string;
6
+ ownerId: string;
7
7
  stage: QuoteIntentResponseLifecycleStage;
8
8
  state: QuoteIntentResponseLifecycleState;
9
9
  status: QuoteIntentResponseLifecycleStatus;
@@ -11,7 +11,7 @@ export declare class QuoteIntentResponseLifecycleDto {
11
11
  }>(obj: T): QuoteIntentResponseLifecycleDto;
12
12
  static listFrom<T extends {
13
13
  id: string;
14
- quoteIntentResponseId: string;
14
+ ownerId: string;
15
15
  stage: QuoteIntentResponseLifecycleStage;
16
16
  state: QuoteIntentResponseLifecycleState;
17
17
  status: QuoteIntentResponseLifecycleStatus;
@@ -26,7 +26,7 @@ export declare class QuoteIntentResponseLifecycleDto {
26
26
  * @description Unique identifier for the quote response
27
27
  * @example '5f6g7h8i'
28
28
  */
29
- quoteIntentResponseId: string;
29
+ ownerId: string;
30
30
  /**
31
31
  * @description The stage of the quote response lifecycle
32
32
  * @example 'initial'
@@ -1 +1 @@
1
- {"version":3,"file":"quote_intent_response_lifecycle.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,kCAAkC,EACnC,MAAM,aAAa,CAAC;AAGrB,qBAAa,+BAA+B;gBAC9B,OAAO,EAAE,OAAO,CAAC,+BAA+B,CAAC;WAI/C,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,qBAAqB,EAAE,MAAM,CAAC;QAC9B,KAAK,EAAE,iCAAiC,CAAC;QACzC,KAAK,EAAE,iCAAiC,CAAC;QACzC,MAAM,EAAE,kCAAkC,CAAC;QAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,GAAG,EAAE,CAAC,GAAG,+BAA+B;IAK1C,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,qBAAqB,EAAE,MAAM,CAAC;QAC9B,KAAK,EAAE,iCAAiC,CAAC;QACzC,KAAK,EAAE,iCAAiC,CAAC;QACzC,MAAM,EAAE,kCAAkC,CAAC;QAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,+BAA+B,EAAE;IAI/C;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;;OAGG;IACH,KAAK,EAAE,iCAAiC,CAAC;IAEzC;;;OAGG;IACH,KAAK,EAAE,iCAAiC,CAAC;IAEzC;;;OAGG;IACH,MAAM,EAAE,kCAAkC,CAAC;IAE3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
1
+ {"version":3,"file":"quote_intent_response_lifecycle.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iCAAiC,EACjC,iCAAiC,EACjC,kCAAkC,EACnC,MAAM,aAAa,CAAC;AAGrB,qBAAa,+BAA+B;gBAC9B,OAAO,EAAE,OAAO,CAAC,+BAA+B,CAAC;WAI/C,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,iCAAiC,CAAC;QACzC,KAAK,EAAE,iCAAiC,CAAC;QACzC,MAAM,EAAE,kCAAkC,CAAC;QAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,GAAG,EAAE,CAAC,GAAG,+BAA+B;IAK1C,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,iCAAiC,CAAC;QACzC,KAAK,EAAE,iCAAiC,CAAC;QACzC,MAAM,EAAE,kCAAkC,CAAC;QAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,+BAA+B,EAAE;IAI/C;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,EAAE,iCAAiC,CAAC;IAEzC;;;OAGG;IACH,KAAK,EAAE,iCAAiC,CAAC;IAEzC;;;OAGG;IACH,MAAM,EAAE,kCAAkC,CAAC;IAE3C;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
@@ -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;IAC1B;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAEH,cAAc,EAAE,sBAAsB,EAAE,CAAC;CAC1C"}
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;IAE1B;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAEH,cAAc,EAAE,sBAAsB,EAAE,CAAC;CAC1C"}
@@ -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,qDAAoD;AAGpD,MAAa,eAAe;CAc3B;AAdD,0CAcC;AARC;IADC,IAAA,0BAAQ,GAAE;;iDACO;AAOlB;IADC,IAAA,yBAAO,GAAE;;uDAC+B"}
1
+ {"version":3,"file":"quote_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AAGpD,MAAa,eAAe;CAe3B;AAfD,0CAeC;AARC;IADC,IAAA,0BAAQ,GAAE;;iDACO;AAOlB;IADC,IAAA,yBAAO,GAAE;;uDAC+B"}
@@ -1,5 +1,20 @@
1
1
  import { QuoteIntentResponseDto } from './quote_intent_response.dto';
2
2
  export declare class QuoteResponseDto {
3
+ constructor(partial: Partial<QuoteResponseDto>);
4
+ static from<T extends {
5
+ intentResponses: QuoteIntentResponseDto[];
6
+ initiationExpiry?: Date;
7
+ redeemExpiry?: Date;
8
+ feeEstimate?: string;
9
+ quoteRequestId?: string;
10
+ }>(obj: T): QuoteResponseDto;
11
+ static listFrom<T extends {
12
+ intentResponses: QuoteIntentResponseDto[];
13
+ initiationExpiry?: Date;
14
+ redeemExpiry?: Date;
15
+ feeEstimate?: string;
16
+ quoteRequestId?: string;
17
+ }>(objs: T[]): QuoteResponseDto[];
3
18
  /**
4
19
  * @description An array of intent responses that correspond to the quote. Each response contains details of the quote intent.
5
20
  * @example [
@@ -20,6 +35,11 @@ export declare class QuoteResponseDto {
20
35
  * ]
21
36
  */
22
37
  intentResponses: QuoteIntentResponseDto[];
38
+ /**
39
+ * @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.
40
+ * @example 5000000000000000 (for a fee estimate of 0.005 ETH)
41
+ */
42
+ feeEstimate?: string;
23
43
  /**
24
44
  * @description Expiry date of initiation
25
45
  */
@@ -28,11 +48,6 @@ export declare class QuoteResponseDto {
28
48
  * @description Expiry date of redemption
29
49
  */
30
50
  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;
36
51
  quoteRequestId?: string;
37
52
  }
38
53
  //# 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;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,CAAC,EAAE,MAAM,CAAC;IAGrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
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;gBACf,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC;WAehC,IAAI,CAChB,CAAC,SAAS;QACR,eAAe,EAAE,sBAAsB,EAAE,CAAC;QAC1C,gBAAgB,CAAC,EAAE,IAAI,CAAC;QACxB,YAAY,CAAC,EAAE,IAAI,CAAC;QACpB,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,sBAAsB,EAAE,CAAC;QAC1C,gBAAgB,CAAC,EAAE,IAAI,CAAC;QACxB,YAAY,CAAC,EAAE,IAAI,CAAC;QACpB,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,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAExB;;OAEG;IAEH,YAAY,CAAC,EAAE,IAAI,CAAC;IAGpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
@@ -11,13 +11,35 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.QuoteResponseDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const common_1 = require("../../../../../common");
15
+ const quote_bridge_intent_response_dto_1 = require("./quote_bridge_intent_response.dto");
14
16
  class QuoteResponseDto {
17
+ constructor(partial) {
18
+ Object.assign(this, partial);
19
+ if (partial.intentResponses && partial.intentResponses.length > 0) {
20
+ for (let i = 0; i < partial.intentResponses.length; i++) {
21
+ this.intentResponses = [];
22
+ if (partial.intentResponses[i] instanceof quote_bridge_intent_response_dto_1.QuoteBridgeIntentResponseDto) {
23
+ this.intentResponses[i] = new quote_bridge_intent_response_dto_1.QuoteBridgeIntentResponseDto(partial.intentResponses[i]);
24
+ }
25
+ }
26
+ }
27
+ else {
28
+ this.intentResponses = [];
29
+ }
30
+ }
31
+ static from(obj) {
32
+ return new QuoteResponseDto(obj);
33
+ }
34
+ static listFrom(objs) {
35
+ return (0, common_1.makeList)(objs, QuoteResponseDto.from);
36
+ }
15
37
  }
16
38
  exports.QuoteResponseDto = QuoteResponseDto;
17
39
  __decorate([
18
- (0, class_validator_1.IsArray)(),
19
- __metadata("design:type", Array)
20
- ], QuoteResponseDto.prototype, "intentResponses", void 0);
40
+ (0, class_validator_1.IsString)(),
41
+ __metadata("design:type", String)
42
+ ], QuoteResponseDto.prototype, "feeEstimate", void 0);
21
43
  __decorate([
22
44
  (0, class_validator_1.IsDate)(),
23
45
  __metadata("design:type", Date)
@@ -26,10 +48,6 @@ __decorate([
26
48
  (0, class_validator_1.IsDate)(),
27
49
  __metadata("design:type", Date)
28
50
  ], QuoteResponseDto.prototype, "redeemExpiry", void 0);
29
- __decorate([
30
- (0, class_validator_1.IsString)(),
31
- __metadata("design:type", String)
32
- ], QuoteResponseDto.prototype, "feeEstimate", void 0);
33
51
  __decorate([
34
52
  (0, class_validator_1.IsUUID)(),
35
53
  __metadata("design:type", String)
@@ -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,qDAAgF;AAGhF,MAAa,gBAAgB;CA4C5B;AA5CD,4CA4CC;AAvBC;IADC,IAAA,yBAAO,GAAE;;yDACgC;AAM1C;IADC,IAAA,wBAAM,GAAE;8BACU,IAAI;0DAAC;AAMxB;IADC,IAAA,wBAAM,GAAE;8BACM,IAAI;sDAAC;AAOpB;IADC,IAAA,0BAAQ,GAAE;;qDACU;AAGrB;IADC,IAAA,wBAAM,GAAE;;wDACe"}
1
+ {"version":3,"file":"quote_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgF;AAEhF,kDAAiD;AACjD,yFAAkF;AAElF,MAAa,gBAAgB;IAC3B,YAAY,OAAkC;QAC5C,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,IAAI,CAAC,eAAe,GAAG,EAAE,CAAA;gBACzB,IAAI,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,YAAY,+DAA4B,EAAE,CAAC;oBACvE,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,GAAG,IAAI,+DAA4B,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAA;gBACxF,CAAC;YACH,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,eAAe,GAAG,EAAE,CAAA;QAC3B,CAAC;IACH,CAAC;IAEM,MAAM,CAAC,IAAI,CAQhB,GAAM;QACN,OAAO,IAAI,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,QAAQ,CAQb,IAAS;QACT,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;CA4CF;AAlFD,4CAkFC;AAhBC;IADC,IAAA,0BAAQ,GAAE;;qDACU;AAMrB;IADC,IAAA,wBAAM,GAAE;8BACU,IAAI;0DAAC;AAMxB;IADC,IAAA,wBAAM,GAAE;8BACM,IAAI;sDAAC;AAGpB;IADC,IAAA,wBAAM,GAAE;;wDACe"}
package/package.json CHANGED
@@ -1,28 +1,28 @@
1
- {
2
- "name": "@plutonlabs/sdk",
3
- "version": "0.0.32-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
- }
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
+ }
@@ -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
@@ -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"}
@@ -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
@@ -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"}
@@ -1,51 +0,0 @@
1
- import { QuoteResponseLifecycleStage, QuoteResponseLifecycleState, QuoteResponseLifecycleStatus } from '../../enums';
2
- export declare class QuoteResponseLifecycleDto {
3
- constructor(partial: Partial<QuoteResponseLifecycleDto>);
4
- static from<T extends {
5
- id: string;
6
- quoteResponseId: string;
7
- stage: QuoteResponseLifecycleStage;
8
- state: QuoteResponseLifecycleState;
9
- status: QuoteResponseLifecycleStatus;
10
- metadata?: Record<string, any>;
11
- }>(obj: T): QuoteResponseLifecycleDto;
12
- static listFrom<T extends {
13
- id: string;
14
- quoteResponseId: string;
15
- stage: QuoteResponseLifecycleStage;
16
- state: QuoteResponseLifecycleState;
17
- status: QuoteResponseLifecycleStatus;
18
- metadata?: Record<string, any>;
19
- }>(objs: T[]): QuoteResponseLifecycleDto[];
20
- /**
21
- * @description Unique identifier for the quote response lifecycle
22
- * @example '1a2b3c4d'
23
- */
24
- id: string;
25
- /**
26
- * @description Unique identifier for the quote response
27
- * @example '5f6g7h8i'
28
- */
29
- quoteResponseId: string;
30
- /**
31
- * @description The stage of the quote response lifecycle
32
- * @example 'initial'
33
- */
34
- stage: QuoteResponseLifecycleStage;
35
- /**
36
- * @description The state of the quote response lifecycle
37
- * @example 'pending'
38
- */
39
- state: QuoteResponseLifecycleState;
40
- /**
41
- * @description The status of the quote response lifecycle
42
- * @example 'active'
43
- */
44
- status: QuoteResponseLifecycleStatus;
45
- /**
46
- * @description Optional metadata related to the lifecycle
47
- * @example { "key": "value" }
48
- */
49
- metadata?: Record<string, any>;
50
- }
51
- //# sourceMappingURL=quote_response_lifecycle.dto.d.ts.map
@@ -1 +0,0 @@
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"}