@plutonlabs/sdk 0.0.29-beta → 0.0.32-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 (47) hide show
  1. package/dist/modules/quote/domain/dto/quote/index.d.ts +2 -2
  2. package/dist/modules/quote/domain/dto/quote/index.d.ts.map +1 -1
  3. package/dist/modules/quote/domain/dto/quote/index.js +2 -2
  4. package/dist/modules/quote/domain/dto/quote/index.js.map +1 -1
  5. package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts +5 -0
  6. package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts.map +1 -1
  7. package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js.map +1 -1
  8. package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.d.ts +21 -21
  9. package/dist/modules/quote/domain/dto/quote/quote_estimate_solver_bridge_intent_request.dto.js +40 -40
  10. package/dist/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.d.ts +51 -0
  11. package/dist/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.d.ts.map +1 -0
  12. package/dist/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.js +18 -0
  13. package/dist/modules/quote/domain/dto/quote/quote_intent_request_lifecycle.dto.js.map +1 -0
  14. package/dist/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.d.ts +51 -0
  15. package/dist/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.d.ts.map +1 -0
  16. package/dist/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.js +18 -0
  17. package/dist/modules/quote/domain/dto/quote/quote_intent_response_lifecycle.dto.js.map +1 -0
  18. package/dist/modules/quote/domain/enums/index.d.ts +4 -4
  19. package/dist/modules/quote/domain/enums/index.d.ts.map +1 -1
  20. package/dist/modules/quote/domain/enums/index.js +4 -4
  21. package/dist/modules/quote/domain/enums/index.js.map +1 -1
  22. package/dist/modules/quote/domain/enums/quote_intent_request_action.enum.d.ts +17 -0
  23. package/dist/modules/quote/domain/enums/quote_intent_request_action.enum.d.ts.map +1 -0
  24. package/dist/modules/quote/domain/enums/quote_intent_request_action.enum.js +21 -0
  25. package/dist/modules/quote/domain/enums/quote_intent_request_action.enum.js.map +1 -0
  26. package/dist/modules/quote/domain/enums/quote_intent_request_lifecycle.enum.d.ts +31 -0
  27. package/dist/modules/quote/domain/enums/quote_intent_request_lifecycle.enum.d.ts.map +1 -0
  28. package/dist/modules/quote/domain/enums/quote_intent_request_lifecycle.enum.js +40 -0
  29. package/dist/modules/quote/domain/enums/quote_intent_request_lifecycle.enum.js.map +1 -0
  30. package/dist/modules/quote/domain/enums/quote_intent_response_action.enum.d.ts +12 -0
  31. package/dist/modules/quote/domain/enums/quote_intent_response_action.enum.d.ts.map +1 -0
  32. package/dist/modules/quote/domain/enums/quote_intent_response_action.enum.js +16 -0
  33. package/dist/modules/quote/domain/enums/quote_intent_response_action.enum.js.map +1 -0
  34. package/dist/modules/quote/domain/enums/quote_intent_response_lifecycle.enum.d.ts +26 -0
  35. package/dist/modules/quote/domain/enums/quote_intent_response_lifecycle.enum.d.ts.map +1 -0
  36. package/dist/modules/quote/domain/enums/quote_intent_response_lifecycle.enum.js +35 -0
  37. package/dist/modules/quote/domain/enums/quote_intent_response_lifecycle.enum.js.map +1 -0
  38. package/dist/modules/quote/domain/enums/quote_request_action.enum.d.ts +16 -15
  39. package/dist/modules/quote/domain/enums/quote_request_action.enum.d.ts.map +1 -1
  40. package/dist/modules/quote/domain/enums/quote_request_action.enum.js +20 -19
  41. package/dist/modules/quote/domain/enums/quote_request_action.enum.js.map +1 -1
  42. package/dist/modules/swap/domain/dto/swap_request.dto.d.ts +28 -28
  43. package/dist/modules/swap/domain/dto/swap_request.dto.js +36 -36
  44. package/dist/modules/swap/domain/dto/swap_response.dto.d.ts +22 -22
  45. package/dist/modules/swap/domain/dto/swap_response.dto.js +34 -34
  46. package/dist/seed/pluton_contracts_seed.json +4 -216
  47. package/package.json +28 -28
@@ -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"}
@@ -1,16 +1,17 @@
1
- export declare enum QuoteRequestLifecycleActionType {
2
- NONE = 1,
3
- QUOTE_REQUEST_CREATE = 2,
4
- QUOTE_REQUEST_ANSWERED = 3,
5
- QUOTE_REQUEST_NOT_ANSWERED = 4,
6
- QUOTE_REQUEST_INITIATED_TRANSACTION = 5,
7
- QUOTE_REQUEST_TRANSACTION_INITIATION_EXPIRED = 6,
8
- QUOTE_REQUEST_TRANSACTION_CONFIRMED = 7,
9
- QUOTE_REQUEST_TRANSACTION_NOT_CONFIRMED = 8,
10
- QUOTE_REQUEST_SOLVING = 9,
11
- QUOTE_REQUEST_SOLVING_TIMED_OUT = 10,
12
- QUOTE_REQUEST_REFUND_SIGNATURE = 11,
13
- QUOTE_REQUEST_SOLVED = 12,
14
- QUOTE_REQUEST_REFUNDED = 13
15
- }
1
+ export declare enum QuoteRequestLifecycleActionType {
2
+ NONE = 1,
3
+ QUOTE_REQUEST_CREATE = 2,
4
+ QUOTE_REQUEST_ANSWERED = 3,
5
+ QUOTE_REQUEST_NOT_ANSWERED = 4,
6
+ QUOTE_REQUEST_SOLVER_SELECTION = 5,
7
+ QUOTE_REQUEST_INITIATED_TRANSACTION = 6,
8
+ QUOTE_REQUEST_TRANSACTION_INITIATION_EXPIRED = 7,
9
+ QUOTE_REQUEST_TRANSACTION_CONFIRMED = 8,
10
+ QUOTE_REQUEST_TRANSACTION_NOT_CONFIRMED = 9,
11
+ QUOTE_REQUEST_SOLVING = 10,
12
+ QUOTE_REQUEST_SOLVING_TIMED_OUT = 11,
13
+ QUOTE_REQUEST_REFUND_SIGNATURE = 12,
14
+ QUOTE_REQUEST_SOLVED = 13,
15
+ QUOTE_REQUEST_REFUNDED = 14
16
+ }
16
17
  //# 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;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"}
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,8BAA8B,IAAA;IAC9B,mCAAmC,IAAA;IACnC,4CAA4C,IAAA;IAC5C,mCAAmC,IAAA;IACnC,uCAAuC,IAAA;IACvC,qBAAqB,KAAA;IACrB,+BAA+B,KAAA;IAC/B,8BAA8B,KAAA;IAC9B,oBAAoB,KAAA;IACpB,sBAAsB,KAAA;CACvB"}
@@ -1,20 +1,21 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.QuoteRequestLifecycleActionType = void 0;
4
- var QuoteRequestLifecycleActionType;
5
- (function (QuoteRequestLifecycleActionType) {
6
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["NONE"] = 1] = "NONE";
7
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_CREATE"] = 2] = "QUOTE_REQUEST_CREATE";
8
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_ANSWERED"] = 3] = "QUOTE_REQUEST_ANSWERED";
9
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_NOT_ANSWERED"] = 4] = "QUOTE_REQUEST_NOT_ANSWERED";
10
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_INITIATED_TRANSACTION"] = 5] = "QUOTE_REQUEST_INITIATED_TRANSACTION";
11
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_TRANSACTION_INITIATION_EXPIRED"] = 6] = "QUOTE_REQUEST_TRANSACTION_INITIATION_EXPIRED";
12
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_TRANSACTION_CONFIRMED"] = 7] = "QUOTE_REQUEST_TRANSACTION_CONFIRMED";
13
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_TRANSACTION_NOT_CONFIRMED"] = 8] = "QUOTE_REQUEST_TRANSACTION_NOT_CONFIRMED";
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
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_REFUND_SIGNATURE"] = 11] = "QUOTE_REQUEST_REFUND_SIGNATURE";
17
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_SOLVED"] = 12] = "QUOTE_REQUEST_SOLVED";
18
- QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_REFUNDED"] = 13] = "QUOTE_REQUEST_REFUNDED";
19
- })(QuoteRequestLifecycleActionType || (exports.QuoteRequestLifecycleActionType = QuoteRequestLifecycleActionType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QuoteRequestLifecycleActionType = void 0;
4
+ var QuoteRequestLifecycleActionType;
5
+ (function (QuoteRequestLifecycleActionType) {
6
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["NONE"] = 1] = "NONE";
7
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_CREATE"] = 2] = "QUOTE_REQUEST_CREATE";
8
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_ANSWERED"] = 3] = "QUOTE_REQUEST_ANSWERED";
9
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_NOT_ANSWERED"] = 4] = "QUOTE_REQUEST_NOT_ANSWERED";
10
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_SOLVER_SELECTION"] = 5] = "QUOTE_REQUEST_SOLVER_SELECTION";
11
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_INITIATED_TRANSACTION"] = 6] = "QUOTE_REQUEST_INITIATED_TRANSACTION";
12
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_TRANSACTION_INITIATION_EXPIRED"] = 7] = "QUOTE_REQUEST_TRANSACTION_INITIATION_EXPIRED";
13
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_TRANSACTION_CONFIRMED"] = 8] = "QUOTE_REQUEST_TRANSACTION_CONFIRMED";
14
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_TRANSACTION_NOT_CONFIRMED"] = 9] = "QUOTE_REQUEST_TRANSACTION_NOT_CONFIRMED";
15
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_SOLVING"] = 10] = "QUOTE_REQUEST_SOLVING";
16
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_SOLVING_TIMED_OUT"] = 11] = "QUOTE_REQUEST_SOLVING_TIMED_OUT";
17
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_REFUND_SIGNATURE"] = 12] = "QUOTE_REQUEST_REFUND_SIGNATURE";
18
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_SOLVED"] = 13] = "QUOTE_REQUEST_SOLVED";
19
+ QuoteRequestLifecycleActionType[QuoteRequestLifecycleActionType["QUOTE_REQUEST_REFUNDED"] = 14] = "QUOTE_REQUEST_REFUNDED";
20
+ })(QuoteRequestLifecycleActionType || (exports.QuoteRequestLifecycleActionType = QuoteRequestLifecycleActionType = {}));
20
21
  //# 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,+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
+ {"version":3,"file":"quote_request_action.enum.js","sourceRoot":"","sources":["../../../../../src/modules/quote/domain/enums/quote_request_action.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,+BAeX;AAfD,WAAY,+BAA+B;IACzC,qFAAQ,CAAA;IACR,qHAAoB,CAAA;IACpB,yHAAsB,CAAA;IACtB,iIAA0B,CAAA;IAC1B,yIAA8B,CAAA;IAC9B,mJAAmC,CAAA;IACnC,qKAA4C,CAAA;IAC5C,mJAAmC,CAAA;IACnC,2JAAuC,CAAA;IACvC,wHAAqB,CAAA;IACrB,4IAA+B,CAAA;IAC/B,0IAA8B,CAAA;IAC9B,sHAAoB,CAAA;IACpB,0HAAsB,CAAA;AACxB,CAAC,EAfW,+BAA+B,+CAA/B,+BAA+B,QAe1C"}
@@ -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
@@ -539,114 +539,8 @@
539
539
  ]
540
540
  },
541
541
  "proxy": {
542
- "address": "0x9498873819b83C144cC7cF824493Ab1dCa29ab3F",
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": "0x94f91bAee51b99689F23b822c1A5003EF2C4B8fe",
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
  ]