@plutonlabs/sdk 0.0.28-beta → 0.0.29-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.
@@ -1,22 +1,22 @@
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
- }
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
22
  //# sourceMappingURL=quote_estimate_solver_bridge_intent_request.dto.d.ts.map
@@ -1,41 +1,41 @@
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);
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
41
  //# sourceMappingURL=quote_estimate_solver_bridge_intent_request.dto.js.map
@@ -1,16 +1,16 @@
1
1
  export declare enum QuoteRequestLifecycleActionType {
2
2
  NONE = 1,
3
- CREATE_QUOTE_REQUEST = 2,
3
+ QUOTE_REQUEST_CREATE = 2,
4
4
  QUOTE_REQUEST_ANSWERED = 3,
5
5
  QUOTE_REQUEST_NOT_ANSWERED = 4,
6
- INITIATED_QUOTE_REQUEST_TRANSACTION = 5,
6
+ QUOTE_REQUEST_INITIATED_TRANSACTION = 5,
7
7
  QUOTE_REQUEST_TRANSACTION_INITIATION_EXPIRED = 6,
8
8
  QUOTE_REQUEST_TRANSACTION_CONFIRMED = 7,
9
9
  QUOTE_REQUEST_TRANSACTION_NOT_CONFIRMED = 8,
10
- SOLVING_QUOTE_REQUEST = 9,
11
- SOLVING_QUOTE_REQUEST_TIMED_OUT = 10,
10
+ QUOTE_REQUEST_SOLVING = 9,
11
+ QUOTE_REQUEST_SOLVING_TIMED_OUT = 10,
12
12
  QUOTE_REQUEST_REFUND_SIGNATURE = 11,
13
- SOLVED_QUOTE_REQUEST = 12,
13
+ QUOTE_REQUEST_SOLVED = 12,
14
14
  QUOTE_REQUEST_REFUNDED = 13
15
15
  }
16
16
  //# sourceMappingURL=quote_request_action.enum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"quote_request_action.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_request_action.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,+BAA+B;IACzC,IAAI,IAAI;IAER,oBAAoB,IAAA;IAEpB,sBAAsB,IAAA;IACtB,0BAA0B,IAAA;IAE1B,mCAAmC,IAAA;IACnC,4CAA4C,IAAA;IAE5C,mCAAmC,IAAA;IACnC,uCAAuC,IAAA;IAEvC,qBAAqB,IAAA;IAErB,+BAA+B,KAAA;IAE/B,8BAA8B,KAAA;IAE9B,oBAAoB,KAAA;IAEpB,sBAAsB,KAAA;CACvB"}
1
+ {"version":3,"file":"quote_request_action.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_request_action.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,+BAA+B;IACzC,IAAI,IAAI;IACR,oBAAoB,IAAA;IACpB,sBAAsB,IAAA;IACtB,0BAA0B,IAAA;IAC1B,mCAAmC,IAAA;IACnC,4CAA4C,IAAA;IAC5C,mCAAmC,IAAA;IACnC,uCAAuC,IAAA;IACvC,qBAAqB,IAAA;IACrB,+BAA+B,KAAA;IAC/B,8BAA8B,KAAA;IAC9B,oBAAoB,KAAA;IACpB,sBAAsB,KAAA;CACvB"}
@@ -4,17 +4,17 @@ exports.QuoteRequestLifecycleActionType = void 0;
4
4
  var QuoteRequestLifecycleActionType;
5
5
  (function (QuoteRequestLifecycleActionType) {
6
6
  QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["NONE"] = 1] = "NONE";
7
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["CREATE_QUOTE_REQUEST"] = 2] = "CREATE_QUOTE_REQUEST";
7
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_CREATE"] = 2] = "QUOTE_REQUEST_CREATE";
8
8
  QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_ANSWERED"] = 3] = "QUOTE_REQUEST_ANSWERED";
9
9
  QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_NOT_ANSWERED"] = 4] = "QUOTE_REQUEST_NOT_ANSWERED";
10
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["INITIATED_QUOTE_REQUEST_TRANSACTION"] = 5] = "INITIATED_QUOTE_REQUEST_TRANSACTION";
10
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_INITIATED_TRANSACTION"] = 5] = "QUOTE_REQUEST_INITIATED_TRANSACTION";
11
11
  QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_TRANSACTION_INITIATION_EXPIRED"] = 6] = "QUOTE_REQUEST_TRANSACTION_INITIATION_EXPIRED";
12
12
  QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_TRANSACTION_CONFIRMED"] = 7] = "QUOTE_REQUEST_TRANSACTION_CONFIRMED";
13
13
  QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_TRANSACTION_NOT_CONFIRMED"] = 8] = "QUOTE_REQUEST_TRANSACTION_NOT_CONFIRMED";
14
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["SOLVING_QUOTE_REQUEST"] = 9] = "SOLVING_QUOTE_REQUEST";
15
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["SOLVING_QUOTE_REQUEST_TIMED_OUT"] = 10] = "SOLVING_QUOTE_REQUEST_TIMED_OUT";
14
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_SOLVING"] = 9] = "QUOTE_REQUEST_SOLVING";
15
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_SOLVING_TIMED_OUT"] = 10] = "QUOTE_REQUEST_SOLVING_TIMED_OUT";
16
16
  QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_REFUND_SIGNATURE"] = 11] = "QUOTE_REQUEST_REFUND_SIGNATURE";
17
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["SOLVED_QUOTE_REQUEST"] = 12] = "SOLVED_QUOTE_REQUEST";
17
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_SOLVED"] = 12] = "QUOTE_REQUEST_SOLVED";
18
18
  QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_REFUNDED"] = 13] = "QUOTE_REQUEST_REFUNDED";
19
19
  })(QuoteRequestLifecycleActionType || (exports.QuoteRequestLifecycleActionType = QuoteRequestLifecycleActionType = {}));
20
20
  //# sourceMappingURL=quote_request_action.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"quote_request_action.enum.js","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_request_action.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,+BAuBX;AAvBD,WAAY,+BAA+B;IACzC,qFAAQ,CAAA;IAER,qHAAoB,CAAA;IAEpB,yHAAsB,CAAA;IACtB,iIAA0B,CAAA;IAE1B,mJAAmC,CAAA;IACnC,qKAA4C,CAAA;IAE5C,mJAAmC,CAAA;IACnC,2JAAuC,CAAA;IAEvC,uHAAqB,CAAA;IAErB,4IAA+B,CAAA;IAE/B,0IAA8B,CAAA;IAE9B,sHAAoB,CAAA;IAEpB,0HAAsB,CAAA;AACxB,CAAC,EAvBW,+BAA+B,+CAA/B,+BAA+B,QAuB1C"}
1
+ {"version":3,"file":"quote_request_action.enum.js","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_request_action.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,+BAcX;AAdD,WAAY,+BAA+B;IACzC,qFAAQ,CAAA;IACR,qHAAoB,CAAA;IACpB,yHAAsB,CAAA;IACtB,iIAA0B,CAAA;IAC1B,mJAAmC,CAAA;IACnC,qKAA4C,CAAA;IAC5C,mJAAmC,CAAA;IACnC,2JAAuC,CAAA;IACvC,uHAAqB,CAAA;IACrB,4IAA+B,CAAA;IAC/B,0IAA8B,CAAA;IAC9B,sHAAoB,CAAA;IACpB,0HAAsB,CAAA;AACxB,CAAC,EAdW,+BAA+B,+CAA/B,+BAA+B,QAc1C"}
@@ -1,12 +1,12 @@
1
1
  export declare enum QuoteResponseLifecycleActionType {
2
2
  NONE = 1,
3
- CREATE_QUOTE_RESPONSE = 2,
3
+ QUOTE_RESPONSE_CREATE = 2,
4
4
  QUOTE_RESPONSE_NOT_SELECTED = 3,
5
5
  QUOTE_RESPONSE_SELECTED = 4,
6
6
  QUOTE_RESPONSE_REQUEST_CANCELED = 5,
7
7
  QUOTE_RESPONSE_INITIATE_SOLVING = 6,
8
- QUOTE_RESPONSE_CHECK_SOLVE_STATE = 7,
9
- FULFILLED_QUOTE_RESPONSE = 8,
8
+ QUOTE_RESPONSE_SOLVE_VALIDATION = 7,
9
+ QUOTE_RESPONSE_FULFILLED = 8,
10
10
  QUOTE_RESPONSE_TIMED_OUT = 9
11
11
  }
12
12
  //# sourceMappingURL=quote_response_action.enum.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"quote_response_action.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_response_action.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,gCAAgC;IAC1C,IAAI,IAAI;IACR,qBAAqB,IAAA;IACrB,2BAA2B,IAAA;IAC3B,uBAAuB,IAAA;IACvB,+BAA+B,IAAA;IAE/B,+BAA+B,IAAA;IAC/B,gCAAgC,IAAA;IAChC,wBAAwB,IAAA;IACxB,wBAAwB,IAAA;CACzB"}
1
+ {"version":3,"file":"quote_response_action.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_response_action.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,gCAAgC;IAC1C,IAAI,IAAI;IACR,qBAAqB,IAAA;IACrB,2BAA2B,IAAA;IAC3B,uBAAuB,IAAA;IACvB,+BAA+B,IAAA;IAC/B,+BAA+B,IAAA;IAC/B,+BAA+B,IAAA;IAC/B,wBAAwB,IAAA;IACxB,wBAAwB,IAAA;CACzB"}
@@ -4,13 +4,13 @@ exports.QuoteResponseLifecycleActionType = void 0;
4
4
  var QuoteResponseLifecycleActionType;
5
5
  (function (QuoteResponseLifecycleActionType) {
6
6
  QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["NONE"] = 1] = "NONE";
7
- QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["CREATE_QUOTE_RESPONSE"] = 2] = "CREATE_QUOTE_RESPONSE";
7
+ QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["QUOTE_RESPONSE_CREATE"] = 2] = "QUOTE_RESPONSE_CREATE";
8
8
  QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["QUOTE_RESPONSE_NOT_SELECTED"] = 3] = "QUOTE_RESPONSE_NOT_SELECTED";
9
9
  QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["QUOTE_RESPONSE_SELECTED"] = 4] = "QUOTE_RESPONSE_SELECTED";
10
10
  QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["QUOTE_RESPONSE_REQUEST_CANCELED"] = 5] = "QUOTE_RESPONSE_REQUEST_CANCELED";
11
11
  QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["QUOTE_RESPONSE_INITIATE_SOLVING"] = 6] = "QUOTE_RESPONSE_INITIATE_SOLVING";
12
- QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["QUOTE_RESPONSE_CHECK_SOLVE_STATE"] = 7] = "QUOTE_RESPONSE_CHECK_SOLVE_STATE";
13
- QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["FULFILLED_QUOTE_RESPONSE"] = 8] = "FULFILLED_QUOTE_RESPONSE";
12
+ QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["QUOTE_RESPONSE_SOLVE_VALIDATION"] = 7] = "QUOTE_RESPONSE_SOLVE_VALIDATION";
13
+ QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["QUOTE_RESPONSE_FULFILLED"] = 8] = "QUOTE_RESPONSE_FULFILLED";
14
14
  QuoteResponseLifecycleActionType[QuoteResponseLifecycleActionType["QUOTE_RESPONSE_TIMED_OUT"] = 9] = "QUOTE_RESPONSE_TIMED_OUT";
15
15
  })(QuoteResponseLifecycleActionType || (exports.QuoteResponseLifecycleActionType = QuoteResponseLifecycleActionType = {}));
16
16
  //# sourceMappingURL=quote_response_action.enum.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"quote_response_action.enum.js","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_response_action.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gCAWX;AAXD,WAAY,gCAAgC;IAC1C,uFAAQ,CAAA;IACR,yHAAqB,CAAA;IACrB,qIAA2B,CAAA;IAC3B,6HAAuB,CAAA;IACvB,6IAA+B,CAAA;IAE/B,6IAA+B,CAAA;IAC/B,+IAAgC,CAAA;IAChC,+HAAwB,CAAA;IACxB,+HAAwB,CAAA;AAC1B,CAAC,EAXW,gCAAgC,gDAAhC,gCAAgC,QAW3C"}
1
+ {"version":3,"file":"quote_response_action.enum.js","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_response_action.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,gCAUX;AAVD,WAAY,gCAAgC;IAC1C,uFAAQ,CAAA;IACR,yHAAqB,CAAA;IACrB,qIAA2B,CAAA;IAC3B,6HAAuB,CAAA;IACvB,6IAA+B,CAAA;IAC/B,6IAA+B,CAAA;IAC/B,6IAA+B,CAAA;IAC/B,+HAAwB,CAAA;IACxB,+HAAwB,CAAA;AAC1B,CAAC,EAVW,gCAAgC,gDAAhC,gCAAgC,QAU3C"}
@@ -1 +1 @@
1
- {"version":3,"file":"quote_response_lifecycle.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_response_lifecycle.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,2BAA2B;IACrC,IAAI,IAAI;IACR,QAAQ,IAAA;IACR,SAAS,IAAA;IACT,WAAW,IAAA;CACZ;AAED,oBAAY,2BAA2B;IAErC,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,4BAA4B;IACtC,IAAI,IAAI;IACR,OAAO,IAAA;IACP,OAAO,IAAA;IACP,OAAO,IAAA;IACP,OAAO,IAAA;IAEP,WAAW,IAAA;CACZ"}
1
+ {"version":3,"file":"quote_response_lifecycle.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_response_lifecycle.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,2BAA2B;IACrC,IAAI,IAAI;IACR,QAAQ,IAAA;IACR,SAAS,IAAA;IACT,WAAW,IAAA;CACZ;AAED,oBAAY,2BAA2B;IAErC,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,4BAA4B;IACtC,IAAI,IAAI;IACR,OAAO,IAAA;IACP,OAAO,IAAA;IACP,OAAO,IAAA;IACP,OAAO,IAAA;IACP,WAAW,IAAA;CACZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"quote_response_lifecycle.enum.js","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_response_lifecycle.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,6EAAQ,CAAA;IACR,qFAAQ,CAAA;IACR,uFAAS,CAAA;IACT,2FAAW,CAAA;AACb,CAAC,EALW,2BAA2B,2CAA3B,2BAA2B,QAKtC;AAED,IAAY,2BAeX;AAfD,WAAY,2BAA2B;IACrC,iBAAiB;IACjB,6EAAQ,CAAA;IACR,qFAAQ,CAAA;IACR,qFAAQ,CAAA;IAER,kBAAkB;IAClB,qGAAgB,CAAA;IAChB,+FAAa,CAAA;IAEb,oBAAoB;IACpB,6FAAY,CAAA;IACZ,qGAAgB,CAAA;IAChB,uFAAS,CAAA;IACT,uFAAS,CAAA;AACX,CAAC,EAfW,2BAA2B,2CAA3B,2BAA2B,QAetC;AAED,IAAY,4BAQX;AARD,WAAY,4BAA4B;IACtC,+EAAQ,CAAA;IACR,qFAAO,CAAA;IACP,qFAAO,CAAA;IACP,qFAAO,CAAA;IACP,qFAAO,CAAA;IAEP,6FAAW,CAAA;AACb,CAAC,EARW,4BAA4B,4CAA5B,4BAA4B,QAQvC"}
1
+ {"version":3,"file":"quote_response_lifecycle.enum.js","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_response_lifecycle.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,2BAKX;AALD,WAAY,2BAA2B;IACrC,6EAAQ,CAAA;IACR,qFAAQ,CAAA;IACR,uFAAS,CAAA;IACT,2FAAW,CAAA;AACb,CAAC,EALW,2BAA2B,2CAA3B,2BAA2B,QAKtC;AAED,IAAY,2BAeX;AAfD,WAAY,2BAA2B;IACrC,iBAAiB;IACjB,6EAAQ,CAAA;IACR,qFAAQ,CAAA;IACR,qFAAQ,CAAA;IAER,kBAAkB;IAClB,qGAAgB,CAAA;IAChB,+FAAa,CAAA;IAEb,oBAAoB;IACpB,6FAAY,CAAA;IACZ,qGAAgB,CAAA;IAChB,uFAAS,CAAA;IACT,uFAAS,CAAA;AACX,CAAC,EAfW,2BAA2B,2CAA3B,2BAA2B,QAetC;AAED,IAAY,4BAOX;AAPD,WAAY,4BAA4B;IACtC,+EAAQ,CAAA;IACR,qFAAO,CAAA;IACP,qFAAO,CAAA;IACP,qFAAO,CAAA;IACP,qFAAO,CAAA;IACP,6FAAW,CAAA;AACb,CAAC,EAPW,4BAA4B,4CAA5B,4BAA4B,QAOvC"}
@@ -1,29 +1,29 @@
1
- import { CalcMode } from '../../../../common';
2
- export declare class SwapBridgeTokenDto {
3
- /**
4
- * @description The type of coin for the swap
5
- * @example 60
6
- */
7
- coinType: number;
8
- /**
9
- * @description The ID of the chain where the swap occurs
10
- * @example 1
11
- */
12
- chainId: number;
13
- /**
14
- * @description The address of the contract for the swap
15
- * @example '0x1234567890abcdef'
16
- */
17
- address: string;
18
- }
19
- export declare class SwapBridgeEstimateRequestDto {
20
- srcToken: SwapBridgeTokenDto;
21
- dstToken: SwapBridgeTokenDto;
22
- amount: string;
23
- calcMode: CalcMode;
24
- }
25
- export declare class SwapBridgeCalldataRequestDto extends SwapBridgeEstimateRequestDto {
26
- srcWalletAddress: string;
27
- dstWalletAddress: string;
28
- }
1
+ import { CalcMode } from '../../../../common';
2
+ export declare class SwapBridgeTokenDto {
3
+ /**
4
+ * @description The type of coin for the swap
5
+ * @example 60
6
+ */
7
+ coinType: number;
8
+ /**
9
+ * @description The ID of the chain where the swap occurs
10
+ * @example 1
11
+ */
12
+ chainId: number;
13
+ /**
14
+ * @description The address of the contract for the swap
15
+ * @example '0x1234567890abcdef'
16
+ */
17
+ address: string;
18
+ }
19
+ export declare class SwapBridgeEstimateRequestDto {
20
+ srcToken: SwapBridgeTokenDto;
21
+ dstToken: SwapBridgeTokenDto;
22
+ amount: string;
23
+ calcMode: CalcMode;
24
+ }
25
+ export declare class SwapBridgeCalldataRequestDto extends SwapBridgeEstimateRequestDto {
26
+ srcWalletAddress: string;
27
+ dstWalletAddress: string;
28
+ }
29
29
  //# sourceMappingURL=swap_request.dto.d.ts.map
@@ -1,37 +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.SwapBridgeCalldataRequestDto = exports.SwapBridgeEstimateRequestDto = exports.SwapBridgeTokenDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class SwapBridgeTokenDto {
15
- }
16
- exports.SwapBridgeTokenDto = SwapBridgeTokenDto;
17
- __decorate([
18
- (0, class_validator_1.IsNotEmpty)(),
19
- (0, class_validator_1.IsNumber)(),
20
- __metadata("design:type", Number)
21
- ], SwapBridgeTokenDto.prototype, "coinType", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsNotEmpty)(),
24
- (0, class_validator_1.IsNumber)(),
25
- __metadata("design:type", Number)
26
- ], SwapBridgeTokenDto.prototype, "chainId", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsString)(),
29
- __metadata("design:type", String)
30
- ], SwapBridgeTokenDto.prototype, "address", void 0);
31
- class SwapBridgeEstimateRequestDto {
32
- }
33
- exports.SwapBridgeEstimateRequestDto = SwapBridgeEstimateRequestDto;
34
- class SwapBridgeCalldataRequestDto extends SwapBridgeEstimateRequestDto {
35
- }
36
- exports.SwapBridgeCalldataRequestDto = SwapBridgeCalldataRequestDto;
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.SwapBridgeCalldataRequestDto = exports.SwapBridgeEstimateRequestDto = exports.SwapBridgeTokenDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class SwapBridgeTokenDto {
15
+ }
16
+ exports.SwapBridgeTokenDto = SwapBridgeTokenDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsNotEmpty)(),
19
+ (0, class_validator_1.IsNumber)(),
20
+ __metadata("design:type", Number)
21
+ ], SwapBridgeTokenDto.prototype, "coinType", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ (0, class_validator_1.IsNumber)(),
25
+ __metadata("design:type", Number)
26
+ ], SwapBridgeTokenDto.prototype, "chainId", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ __metadata("design:type", String)
30
+ ], SwapBridgeTokenDto.prototype, "address", void 0);
31
+ class SwapBridgeEstimateRequestDto {
32
+ }
33
+ exports.SwapBridgeEstimateRequestDto = SwapBridgeEstimateRequestDto;
34
+ class SwapBridgeCalldataRequestDto extends SwapBridgeEstimateRequestDto {
35
+ }
36
+ exports.SwapBridgeCalldataRequestDto = SwapBridgeCalldataRequestDto;
37
37
  //# sourceMappingURL=swap_request.dto.js.map
@@ -1,23 +1,23 @@
1
- export declare class SwapBridgeCalldataResponsetDto {
2
- /**
3
- * @description The transaction data for the token swap
4
- * @example '0xabcdef...'
5
- */
6
- transactionData: string;
7
- /**
8
- * @description The value of the transaction for the swap
9
- * @example '1000'
10
- */
11
- transactionValue: string;
12
- /**
13
- * @description The receiver of the transaction
14
- * @example '0x1234567890abcdef'
15
- */
16
- transactionReceiver: string;
17
- }
18
- export declare class SwapBridgeEstimateResponsetDto {
19
- amount: string;
20
- gasFee: string;
21
- fee: string;
22
- }
1
+ export declare class SwapBridgeCalldataResponsetDto {
2
+ /**
3
+ * @description The transaction data for the token swap
4
+ * @example '0xabcdef...'
5
+ */
6
+ transactionData: string;
7
+ /**
8
+ * @description The value of the transaction for the swap
9
+ * @example '1000'
10
+ */
11
+ transactionValue: string;
12
+ /**
13
+ * @description The receiver of the transaction
14
+ * @example '0x1234567890abcdef'
15
+ */
16
+ transactionReceiver: string;
17
+ }
18
+ export declare class SwapBridgeEstimateResponsetDto {
19
+ amount: string;
20
+ gasFee: string;
21
+ fee: string;
22
+ }
23
23
  //# sourceMappingURL=swap_response.dto.d.ts.map
@@ -1,35 +1,35 @@
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.SwapBridgeEstimateResponsetDto = exports.SwapBridgeCalldataResponsetDto = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class SwapBridgeCalldataResponsetDto {
15
- }
16
- exports.SwapBridgeCalldataResponsetDto = SwapBridgeCalldataResponsetDto;
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsNotEmpty)(),
20
- __metadata("design:type", String)
21
- ], SwapBridgeCalldataResponsetDto.prototype, "transactionData", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsNotEmpty)(),
25
- __metadata("design:type", String)
26
- ], SwapBridgeCalldataResponsetDto.prototype, "transactionValue", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsString)(),
29
- (0, class_validator_1.IsNotEmpty)(),
30
- __metadata("design:type", String)
31
- ], SwapBridgeCalldataResponsetDto.prototype, "transactionReceiver", void 0);
32
- class SwapBridgeEstimateResponsetDto {
33
- }
34
- exports.SwapBridgeEstimateResponsetDto = SwapBridgeEstimateResponsetDto;
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.SwapBridgeEstimateResponsetDto = exports.SwapBridgeCalldataResponsetDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class SwapBridgeCalldataResponsetDto {
15
+ }
16
+ exports.SwapBridgeCalldataResponsetDto = SwapBridgeCalldataResponsetDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], SwapBridgeCalldataResponsetDto.prototype, "transactionData", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], SwapBridgeCalldataResponsetDto.prototype, "transactionValue", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsNotEmpty)(),
30
+ __metadata("design:type", String)
31
+ ], SwapBridgeCalldataResponsetDto.prototype, "transactionReceiver", void 0);
32
+ class SwapBridgeEstimateResponsetDto {
33
+ }
34
+ exports.SwapBridgeEstimateResponsetDto = SwapBridgeEstimateResponsetDto;
35
35
  //# sourceMappingURL=swap_response.dto.js.map
package/package.json CHANGED
@@ -1,28 +1,28 @@
1
- {
2
- "name": "@plutonlabs/sdk",
3
- "version": "0.0.28-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.29-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
+ }