@plutonlabs/sdk 0.0.39-beta → 0.0.40-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/enums/chain_type.enum.d.ts.map +1 -1
- package/dist/common/index.d.ts +0 -1
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +0 -1
- package/dist/common/index.js.map +1 -1
- package/dist/common/utils/index.d.ts +0 -1
- package/dist/common/utils/index.d.ts.map +1 -1
- package/dist/common/utils/index.js +0 -1
- package/dist/common/utils/index.js.map +1 -1
- package/dist/modules/chainsync/domain/dto/pluton_middleware_request.dto.d.ts +1 -2
- package/dist/modules/chainsync/domain/dto/pluton_middleware_request.dto.d.ts.map +1 -1
- package/dist/modules/chainsync/domain/dto/pluton_middleware_request.dto.js +1 -7
- package/dist/modules/chainsync/domain/dto/pluton_middleware_request.dto.js.map +1 -1
- package/dist/modules/chainsync/domain/dto/pluton_request.dto.d.ts.map +1 -1
- package/dist/modules/chainsync/domain/dto/pluton_request.dto.js.map +1 -1
- package/dist/modules/chainsync/domain/dto/swap/swap_response.dto.js +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.js.map +1 -1
- package/package.json +27 -28
- package/dist/common/consts/globalConst.d.ts +0 -12
- package/dist/common/consts/globalConst.d.ts.map +0 -1
- package/dist/common/consts/globalConst.js +0 -15
- package/dist/common/consts/globalConst.js.map +0 -1
- package/dist/common/consts/index.d.ts +0 -2
- package/dist/common/consts/index.d.ts.map +0 -1
- package/dist/common/consts/index.js +0 -18
- package/dist/common/consts/index.js.map +0 -1
- package/dist/common/interfaces/IChain.d.ts +0 -20
- package/dist/common/interfaces/IChain.d.ts.map +0 -1
- package/dist/common/interfaces/IChain.js +0 -3
- package/dist/common/interfaces/IChain.js.map +0 -1
- package/dist/common/utils/bignumber.column.transformer.d.ts +0 -6
- package/dist/common/utils/bignumber.column.transformer.d.ts.map +0 -1
- package/dist/common/utils/bignumber.column.transformer.js +0 -17
- package/dist/common/utils/bignumber.column.transformer.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chain_type.enum.d.ts","sourceRoot":"","sources":["../../../src/common/enums/chain_type.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,mBAAmB,
|
1
|
+
{"version":3,"file":"chain_type.enum.d.ts","sourceRoot":"","sources":["../../../src/common/enums/chain_type.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,oBAAY,SAAS;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,eAAO,MAAM,mBAAmB,GAAI,UAAU,QAAQ,cAarD,CAAC"}
|
package/dist/common/index.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
package/dist/common/index.js
CHANGED
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./consts"), exports);
|
18
17
|
__exportStar(require("./enums"), exports);
|
19
18
|
__exportStar(require("./enums"), exports);
|
20
19
|
__exportStar(require("./utils"), exports);
|
package/dist/common/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,0CAAwB;AACxB,0CAAwB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
@@ -15,5 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./list"), exports);
|
18
|
-
__exportStar(require("./bignumber.column.transformer"), exports);
|
19
18
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pluton_middleware_request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/pluton_middleware_request.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"pluton_middleware_request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/pluton_middleware_request.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,0BAA0B;IAGrC,EAAE,EAAE,MAAM,CAAC;IAIX,IAAI,EAAE,MAAM,CAAC;IAIb,gBAAgB,EAAE,MAAM,CAAC;IAKzB,aAAa,EAAE,MAAM,CAAC;IAItB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
@@ -8,13 +8,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
12
|
exports.PlutonMiddlewareRequestDto = void 0;
|
16
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
-
const class_transformer_1 = require("class-transformer");
|
18
13
|
const class_validator_1 = require("class-validator");
|
19
14
|
class PlutonMiddlewareRequestDto {
|
20
15
|
}
|
@@ -30,10 +25,9 @@ __decorate([
|
|
30
25
|
__metadata("design:type", String)
|
31
26
|
], PlutonMiddlewareRequestDto.prototype, "user", void 0);
|
32
27
|
__decorate([
|
33
|
-
(0, class_transformer_1.Transform)(({ value }) => value.toString()),
|
34
28
|
(0, class_validator_1.IsString)(),
|
35
29
|
(0, class_validator_1.IsNotEmpty)(),
|
36
|
-
__metadata("design:type",
|
30
|
+
__metadata("design:type", String)
|
37
31
|
], PlutonMiddlewareRequestDto.prototype, "initiationExpiry", void 0);
|
38
32
|
__decorate([
|
39
33
|
(0, class_validator_1.IsString)(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pluton_middleware_request.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/pluton_middleware_request.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"pluton_middleware_request.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/pluton_middleware_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAE1E,MAAa,0BAA0B;CAqBtC;AArBD,gEAqBC;AAlBC;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;sDACF;AAIX;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACA;AAIb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oEACY;AAKzB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;iEACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACK"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pluton_request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/pluton_request.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"pluton_request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/pluton_request.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,gBAAgB;IAG3B,EAAE,EAAE,MAAM,CAAC;IAIX,IAAI,EAAE,MAAM,CAAC;IAIb,cAAc,EAAE,MAAM,CAAC;IAIvB,gBAAgB,EAAE,MAAM,CAAC;IAKzB,aAAa,EAAE,MAAM,CAAC;IAItB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"pluton_request.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/pluton_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"pluton_request.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/pluton_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0E;AAE1E,MAAa,gBAAgB;CAyB5B;AAzBD,4CAyBC;AAtBC;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;4CACF;AAIX;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACA;AAIb;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACY;AAKzB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;uDACS;AAItB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACK"}
|
@@ -17,7 +17,7 @@ class SwapCalldataResponsetDto {
|
|
17
17
|
* @description The transaction data for the token swap
|
18
18
|
* @example '0xabcdef...'
|
19
19
|
*/
|
20
|
-
this.transactionData =
|
20
|
+
this.transactionData = '0x';
|
21
21
|
}
|
22
22
|
}
|
23
23
|
exports.SwapCalldataResponsetDto = SwapCalldataResponsetDto;
|
@@ -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,EAAY,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,0BAA0B;
|
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;gBAEnC,OAAO,EAAE,OAAO,CAAC;QACf,EAAE,EAAE,MAAM,CAAC;QACX,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,CAAC;WAKU,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,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,EAAE,MAAM,CAAC;QACX,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;IAEjE;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
@@ -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,kDAA6D;AAC7D,uCAA8C;AAE9C,MAAa,0BAA0B;IACrC,
|
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,YACE,OASE;QA0EJ,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;CAgDF;AA5FD,gEA4FC;AA7CC;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 +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;AAI9E,qBAAa,4BAA6B,SAAQ,0BAA0B;
|
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;AAI9E,qBAAa,4BAA6B,SAAQ,0BAA0B;gBAExE,OAAO,KAAA;WAgBK,IAAI,CAWhB,MAAM,EACN,GAAG,EAAE,MAAM,GAAG,4BAA4B;IAI5C,MAAM,CAAC,QAAQ,CAWb,MAAM,EACN,IAAI,EAAE,MAAM,EAAE,GAAG,4BAA4B,EAAE;IAIjD;;;OAGG;IAGH,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
@@ -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;AAC9E,kDAA6D;AAG7D,MAAa,4BAA6B,SAAQ,2DAA0B;
|
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;IAC1E,YACE,OAAO;IACP,YAAY;IACZ,iBAAiB;IACjB,4BAA4B;IAC5B,6BAA6B;IAC7B,6BAA6B;IAC7B,yBAAyB;IACzB,uBAAuB;IACvB,uCAAuC;IACvC,oBAAoB;IACpB,KAAK;;QAEL,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAYhB,GAAW;QACX,OAAO,IAAI,4BAA4B,CAAC,GAAG,CAAC,CAAC;IAC/C,CAAC;IAED,MAAM,CAAC,QAAQ,CAYb,IAAc;QACd,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;CASF;AAzDD,oEAyDC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACI"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBAAa,eAAe;
|
1
|
+
{"version":3,"file":"quote_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,qBAAa,eAAe;IAC1B;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAEH,cAAc,EAAE,sBAAsB,EAAE,CAAC;CAC1C"}
|
@@ -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;
|
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 +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;AAIrE,qBAAa,gBAAgB;
|
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;gBAEzB,OAAO,EAAE,OAAO,CAAC;QACf,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,gBAAgB,CAAC,EAAE,IAAI,CAAC;QACxB,YAAY,CAAC,EAAE,IAAI,CAAC;QACpB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;WAmBU,IAAI,CAChB,CAAC,SAAS;QACR,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B,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,MAAM,EAAE,CAAC;QAC1B,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"}
|
@@ -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,qDAA2D;AAE3D,yFAAkF;AAClF,kDAAiD;AAEjD,MAAa,gBAAgB;IAC3B,
|
1
|
+
{"version":3,"file":"quote_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2D;AAE3D,yFAAkF;AAClF,kDAAiD;AAEjD,MAAa,gBAAgB;IAC3B,YACE,OAME;QAEF,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,IACE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,YAAY,+DAA4B,EAClE,CAAC;oBACD,IAAI,CAAC,eAAe,GAAG,+DAA4B,CAAC,QAAQ,CAC1D,OAAO,CAAC,eAAe,CACxB,CAAC;gBACJ,CAAC;YACH,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC5B,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;AA7FD,4CA6FC;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,27 @@
|
|
1
|
-
{
|
2
|
-
"name": "@plutonlabs/sdk",
|
3
|
-
"version": "0.0.
|
4
|
-
"main": "dist/index.js",
|
5
|
-
"types": "dist/index.d.ts",
|
6
|
-
"files": [
|
7
|
-
"dist"
|
8
|
-
],
|
9
|
-
"scripts": {
|
10
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
11
|
-
"build": "tsc"
|
12
|
-
},
|
13
|
-
"keywords": [],
|
14
|
-
"author": "",
|
15
|
-
"license": "ISC",
|
16
|
-
"description": "",
|
17
|
-
"devDependencies": {
|
18
|
-
"eslint": "^8.57.1",
|
19
|
-
"prettier": "^3.5.0",
|
20
|
-
"typescript": "^5.7.3"
|
21
|
-
},
|
22
|
-
"dependencies": {
|
23
|
-
"
|
24
|
-
"class-
|
25
|
-
"
|
26
|
-
|
27
|
-
|
28
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@plutonlabs/sdk",
|
3
|
+
"version": "0.0.40-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
|
+
"class-transformer": "^0.5.1",
|
24
|
+
"class-validator": "^0.14.1",
|
25
|
+
"ethers": "^6.13.5"
|
26
|
+
}
|
27
|
+
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { BigNumberColumnTransformer } from '../utils/bignumber.column.transformer';
|
2
|
-
export declare const transformer: BigNumberColumnTransformer;
|
3
|
-
export declare const AUTH_BASE_CODE = 19901;
|
4
|
-
export declare const NETWORK_BASE_CODE = 21001;
|
5
|
-
export declare const TOKEN_BASE_CODE = 22001;
|
6
|
-
export declare const LISTENER_BASE_CODE = 23001;
|
7
|
-
export declare const SOLVER_BASE_CODE = 24001;
|
8
|
-
export declare const QUOTE_BASE_CODE = 25001;
|
9
|
-
export declare const PROTOCOL_BASE_CODE = 27001;
|
10
|
-
export declare const CHAIN_SYNC_BASE_CODE = 28001;
|
11
|
-
export declare const SWAP_BASE_CODE = 29001;
|
12
|
-
//# sourceMappingURL=globalConst.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"globalConst.d.ts","sourceRoot":"","sources":["../../../src/common/consts/globalConst.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAEnF,eAAO,MAAM,WAAW,4BAAmC,CAAC;AAE5D,eAAO,MAAM,cAAc,QAAQ,CAAC;AACpC,eAAO,MAAM,iBAAiB,QAAQ,CAAC;AACvC,eAAO,MAAM,eAAe,QAAQ,CAAC;AACrC,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AACxC,eAAO,MAAM,gBAAgB,QAAQ,CAAC;AACtC,eAAO,MAAM,eAAe,QAAQ,CAAC;AACrC,eAAO,MAAM,kBAAkB,QAAQ,CAAC;AACxC,eAAO,MAAM,oBAAoB,QAAQ,CAAC;AAC1C,eAAO,MAAM,cAAc,QAAQ,CAAC"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.SWAP_BASE_CODE = exports.CHAIN_SYNC_BASE_CODE = exports.PROTOCOL_BASE_CODE = exports.QUOTE_BASE_CODE = exports.SOLVER_BASE_CODE = exports.LISTENER_BASE_CODE = exports.TOKEN_BASE_CODE = exports.NETWORK_BASE_CODE = exports.AUTH_BASE_CODE = exports.transformer = void 0;
|
4
|
-
const bignumber_column_transformer_1 = require("../utils/bignumber.column.transformer");
|
5
|
-
exports.transformer = new bignumber_column_transformer_1.BigNumberColumnTransformer();
|
6
|
-
exports.AUTH_BASE_CODE = 19901;
|
7
|
-
exports.NETWORK_BASE_CODE = 21001;
|
8
|
-
exports.TOKEN_BASE_CODE = 22001;
|
9
|
-
exports.LISTENER_BASE_CODE = 23001;
|
10
|
-
exports.SOLVER_BASE_CODE = 24001;
|
11
|
-
exports.QUOTE_BASE_CODE = 25001;
|
12
|
-
exports.PROTOCOL_BASE_CODE = 27001;
|
13
|
-
exports.CHAIN_SYNC_BASE_CODE = 28001;
|
14
|
-
exports.SWAP_BASE_CODE = 29001;
|
15
|
-
//# sourceMappingURL=globalConst.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"globalConst.js","sourceRoot":"","sources":["../../../src/common/consts/globalConst.ts"],"names":[],"mappings":";;;AAAA,wFAAmF;AAEtE,QAAA,WAAW,GAAG,IAAI,yDAA0B,EAAE,CAAC;AAE/C,QAAA,cAAc,GAAG,KAAK,CAAC;AACvB,QAAA,iBAAiB,GAAG,KAAK,CAAC;AAC1B,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,kBAAkB,GAAG,KAAK,CAAC;AAC3B,QAAA,gBAAgB,GAAG,KAAK,CAAC;AACzB,QAAA,eAAe,GAAG,KAAK,CAAC;AACxB,QAAA,kBAAkB,GAAG,KAAK,CAAC;AAC3B,QAAA,oBAAoB,GAAG,KAAK,CAAC;AAC7B,QAAA,cAAc,GAAG,KAAK,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/consts/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
-
if (k2 === undefined) k2 = k;
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
-
}
|
8
|
-
Object.defineProperty(o, k2, desc);
|
9
|
-
}) : (function(o, m, k, k2) {
|
10
|
-
if (k2 === undefined) k2 = k;
|
11
|
-
o[k2] = m[k];
|
12
|
-
}));
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
-
};
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./globalConst"), exports);
|
18
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/consts/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import BigNumber from 'bignumber.js';
|
2
|
-
export interface IChainRpcProvider {
|
3
|
-
init(): any;
|
4
|
-
getGasPrice(): Promise<BigNumber>;
|
5
|
-
estimateTransactionFee(chainTransaction: any): Promise<BigNumber>;
|
6
|
-
}
|
7
|
-
export interface IEVMChainProvider extends IChainRpcProvider {
|
8
|
-
startListerner(): any;
|
9
|
-
blockListener(): any;
|
10
|
-
eventQueryEmmiter(start: any, end: number): any;
|
11
|
-
reconnectWebSocket(startListener: () => void): any;
|
12
|
-
getWalletBalance(address: string, token: any): Promise<BigNumber>;
|
13
|
-
getTransactionByHash(hash: string): Promise<any>;
|
14
|
-
}
|
15
|
-
export interface ITONChainProvider extends IChainRpcProvider {
|
16
|
-
getWalletBalance(address: string, token: any): Promise<BigNumber>;
|
17
|
-
getTransactionByHash(hash: string): Promise<any>;
|
18
|
-
}
|
19
|
-
export type ChainProvider = IEVMChainProvider | ITONChainProvider;
|
20
|
-
//# sourceMappingURL=IChain.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"IChain.d.ts","sourceRoot":"","sources":["../../../src/common/interfaces/IChain.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,MAAM,WAAW,iBAAiB;IAChC,IAAI,QAAG;IACP,WAAW,IAAI,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC,sBAAsB,CAAC,gBAAgB,EAAE,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;CACnE;AAED,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,cAAc,QAAG;IAEjB,aAAa,QAAG;IAEhB,iBAAiB,CAAC,KAAK,KAAA,EAAE,GAAG,EAAE,MAAM,OAAE;IAEtC,kBAAkB,CAAC,aAAa,EAAE,MAAM,IAAI,OAAE;IAE9C,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAElE,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CAClD;AACD,MAAM,WAAW,iBAAkB,SAAQ,iBAAiB;IAC1D,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAElE,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CAClD;AAED,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG,iBAAiB,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"IChain.js","sourceRoot":"","sources":["../../../src/common/interfaces/IChain.ts"],"names":[],"mappings":""}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"bignumber.column.transformer.d.ts","sourceRoot":"","sources":["../../../src/common/utils/bignumber.column.transformer.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC,qBAAa,0BAA0B;IACrC,EAAE,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM;IAG3B,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS;CAG9B"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
-
};
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.BigNumberColumnTransformer = void 0;
|
7
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
8
|
-
class BigNumberColumnTransformer {
|
9
|
-
to(data) {
|
10
|
-
return data.toString();
|
11
|
-
}
|
12
|
-
from(data) {
|
13
|
-
return new bignumber_js_1.default(data);
|
14
|
-
}
|
15
|
-
}
|
16
|
-
exports.BigNumberColumnTransformer = BigNumberColumnTransformer;
|
17
|
-
//# sourceMappingURL=bignumber.column.transformer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"bignumber.column.transformer.js","sourceRoot":"","sources":["../../../src/common/utils/bignumber.column.transformer.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAErC,MAAa,0BAA0B;IACrC,EAAE,CAAC,IAAe;QAChB,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;IACzB,CAAC;IACD,IAAI,CAAC,IAAY;QACf,OAAO,IAAI,sBAAS,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;CACF;AAPD,gEAOC"}
|