@plutonlabs/sdk 0.0.5-beta → 0.0.7-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/modules/quote/domain/dto/quote/index.d.ts +1 -0
- package/dist/modules/quote/domain/dto/quote/index.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/index.js +1 -0
- package/dist/modules/quote/domain/dto/quote/index.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.d.ts +31 -0
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.js +53 -0
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.d.ts +3 -0
- package/dist/modules/quote/domain/dto/quote/quote_intent_request.dto.d.ts.map +1 -1
- package/package.json +25 -25
- package/Readme.md +0 -1
@@ -8,6 +8,7 @@ export * from "./quote_request_lifecycle.dto";
|
|
8
8
|
export * from "./quote_request.dto";
|
9
9
|
export * from "./quote_response_lifecycle.dto";
|
10
10
|
export * from "./quote_response.dto";
|
11
|
+
export * from "./quote_estimate_response.dto";
|
11
12
|
export * from "./quote_selected_intents_request.dto";
|
12
13
|
export * from "./quote_selected_intents_resposne.dto";
|
13
14
|
export * from "./quote_set_transaction_request.dto";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAEhD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,4CAA4C,CAAC;AAE3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AAEpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAEhD,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AAEnD,cAAc,4CAA4C,CAAC;AAE3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAE5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,qBAAqB,CAAC;AAEpC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAE9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AAEtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AAErD,cAAc,aAAa,CAAC"}
|
@@ -24,6 +24,7 @@ __exportStar(require("./quote_request_lifecycle.dto"), exports);
|
|
24
24
|
__exportStar(require("./quote_request.dto"), exports);
|
25
25
|
__exportStar(require("./quote_response_lifecycle.dto"), exports);
|
26
26
|
__exportStar(require("./quote_response.dto"), exports);
|
27
|
+
__exportStar(require("./quote_estimate_response.dto"), exports);
|
27
28
|
__exportStar(require("./quote_selected_intents_request.dto"), exports);
|
28
29
|
__exportStar(require("./quote_selected_intents_resposne.dto"), exports);
|
29
30
|
__exportStar(require("./quote_set_transaction_request.dto"), exports);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAEhD,oEAAkD;AAClD,qEAAmD;AAEnD,6EAA2D;AAE3D,6DAA2C;AAC3C,8DAA4C;AAE5C,gEAA8C;AAC9C,sDAAoC;AAEpC,iEAA+C;AAC/C,uDAAqC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAEhD,oEAAkD;AAClD,qEAAmD;AAEnD,6EAA2D;AAE3D,6DAA2C;AAC3C,8DAA4C;AAE5C,gEAA8C;AAC9C,sDAAoC;AAEpC,iEAA+C;AAC/C,uDAAqC;AACrC,gEAA8C;AAE9C,uEAAqD;AACrD,wEAAsD;AAEtD,sEAAoD;AACpD,uEAAqD;AAErD,8CAA4B"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { QuoteResponseDto } from './quote_response.dto';
|
2
|
+
export declare class QuoteEstimateResponseDto {
|
3
|
+
/**
|
4
|
+
* @description An array of intent responses that correspond to the quote. Each response contains details of the quote intent.
|
5
|
+
* @example {
|
6
|
+
* [
|
7
|
+
* {
|
8
|
+
* id: 'f9b7c46f-5f49-4bb6-9412-40bdb5563ef6',
|
9
|
+
* solverId: 'e5e7e948-e7f1-4824-80a7-650cc7ed3b29',
|
10
|
+
* intentType: IntentType.BRIDGE,
|
11
|
+
* selectionStatus: 1,
|
12
|
+
* intentRequestId: 'a68d209f-46e3-4f0e-b013-94c3b5f4d7f2',
|
13
|
+
* },
|
14
|
+
* {
|
15
|
+
* id: 'd30c9a60-9f72-42d3-b7ae-4a2fa05f5b8a',
|
16
|
+
* solverId: '14b8e6f8-6076-4ab9-93e8-dfe27d697f91',
|
17
|
+
* intentType: IntentType.BRIDGE_ESTIMATE,
|
18
|
+
* selectionStatus: 2,
|
19
|
+
* intentRequestId: 'b10c7b1d-59c4-4a99-8452-fb69d9e6da1b',
|
20
|
+
* }
|
21
|
+
* ]
|
22
|
+
* }
|
23
|
+
*/
|
24
|
+
quoteResponse: QuoteResponseDto;
|
25
|
+
/**
|
26
|
+
* @description The estimated fee for the transaction, calculated based on the native coin of the blockchain. The fee is typically expressed in the chain’s native currency, such as ETH for Ethereum, BTC for Bitcoin, etc.
|
27
|
+
* @example 5000000000000000 (for a fee estimate of 0.005 ETH)
|
28
|
+
*/
|
29
|
+
feeEstimate: string;
|
30
|
+
}
|
31
|
+
//# sourceMappingURL=quote_estimate_response.dto.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quote_estimate_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,qBAAa,wBAAwB;IAEnC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,aAAa,EAAE,gBAAgB,CAAC;IAGhC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
@@ -0,0 +1,53 @@
|
|
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.QuoteEstimateResponseDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const quote_response_dto_1 = require("./quote_response.dto");
|
15
|
+
class QuoteEstimateResponseDto {
|
16
|
+
}
|
17
|
+
exports.QuoteEstimateResponseDto = QuoteEstimateResponseDto;
|
18
|
+
__decorate([
|
19
|
+
(0, class_validator_1.IsNotEmpty)()
|
20
|
+
/**
|
21
|
+
* @description An array of intent responses that correspond to the quote. Each response contains details of the quote intent.
|
22
|
+
* @example {
|
23
|
+
* [
|
24
|
+
* {
|
25
|
+
* id: 'f9b7c46f-5f49-4bb6-9412-40bdb5563ef6',
|
26
|
+
* solverId: 'e5e7e948-e7f1-4824-80a7-650cc7ed3b29',
|
27
|
+
* intentType: IntentType.BRIDGE,
|
28
|
+
* selectionStatus: 1,
|
29
|
+
* intentRequestId: 'a68d209f-46e3-4f0e-b013-94c3b5f4d7f2',
|
30
|
+
* },
|
31
|
+
* {
|
32
|
+
* id: 'd30c9a60-9f72-42d3-b7ae-4a2fa05f5b8a',
|
33
|
+
* solverId: '14b8e6f8-6076-4ab9-93e8-dfe27d697f91',
|
34
|
+
* intentType: IntentType.BRIDGE_ESTIMATE,
|
35
|
+
* selectionStatus: 2,
|
36
|
+
* intentRequestId: 'b10c7b1d-59c4-4a99-8452-fb69d9e6da1b',
|
37
|
+
* }
|
38
|
+
* ]
|
39
|
+
* }
|
40
|
+
*/
|
41
|
+
,
|
42
|
+
__metadata("design:type", quote_response_dto_1.QuoteResponseDto)
|
43
|
+
], QuoteEstimateResponseDto.prototype, "quoteResponse", void 0);
|
44
|
+
__decorate([
|
45
|
+
(0, class_validator_1.IsNotEmpty)()
|
46
|
+
/**
|
47
|
+
* @description The estimated fee for the transaction, calculated based on the native coin of the blockchain. The fee is typically expressed in the chain’s native currency, such as ETH for Ethereum, BTC for Bitcoin, etc.
|
48
|
+
* @example 5000000000000000 (for a fee estimate of 0.005 ETH)
|
49
|
+
*/
|
50
|
+
,
|
51
|
+
__metadata("design:type", String)
|
52
|
+
], QuoteEstimateResponseDto.prototype, "feeEstimate", void 0);
|
53
|
+
//# sourceMappingURL=quote_estimate_response.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"quote_estimate_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAC7C,6DAAwD;AAExD,MAAa,wBAAwB;CA+BpC;AA/BD,4DA+BC;AARC;IAtBC,IAAA,4BAAU,GAAE;IACb;;;;;;;;;;;;;;;;;;;;OAoBG;;8BACY,qCAAgB;+DAAC;AAOhC;IALC,IAAA,4BAAU,GAAE;IACb;;;OAGG;;;6DACiB"}
|
@@ -4,4 +4,7 @@ export type QuoteIntentRequestType = QuoteBridgeIntentRequestDto | QuoteEstimate
|
|
4
4
|
export type CreateQuoteIntentRequestDto = QuoteIntentRequestType & {
|
5
5
|
quoteRequestId: string;
|
6
6
|
};
|
7
|
+
export type SolverQuoteIntentRequestDto = QuoteIntentRequestType & {
|
8
|
+
id: string;
|
9
|
+
};
|
7
10
|
//# sourceMappingURL=quote_intent_request.dto.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAEjG,MAAM,MAAM,sBAAsB,GAC9B,2BAA2B,GAC3B,mCAAmC,CAAC;AAExC,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,GAAG;IACjE,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC"}
|
1
|
+
{"version":3,"file":"quote_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_intent_request.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AAEjG,MAAM,MAAM,sBAAsB,GAC9B,2BAA2B,GAC3B,mCAAmC,CAAC;AAExC,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,GAAG;IACjE,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,GAAG;IACjE,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC"}
|
package/package.json
CHANGED
@@ -1,25 +1,25 @@
|
|
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
|
-
"build": "tsc"
|
11
|
-
},
|
12
|
-
"keywords": [],
|
13
|
-
"author": "",
|
14
|
-
"license": "ISC",
|
15
|
-
"description": "",
|
16
|
-
"devDependencies": {
|
17
|
-
"typescript": "^5.7.3"
|
18
|
-
},
|
19
|
-
"dependencies": {
|
20
|
-
"@plutonlabs/sdk": "^0.0.3-beta",
|
21
|
-
"bignumber.js": "^9.1.2",
|
22
|
-
"class-transformer": "^0.5.1",
|
23
|
-
"class-validator": "^0.14.1"
|
24
|
-
}
|
25
|
-
}
|
1
|
+
{
|
2
|
+
"name": "@plutonlabs/sdk",
|
3
|
+
"version": "0.0.7-beta",
|
4
|
+
"main": "dist/index.js",
|
5
|
+
"types": "dist/index.d.ts",
|
6
|
+
"files": [
|
7
|
+
"dist"
|
8
|
+
],
|
9
|
+
"scripts": {
|
10
|
+
"build": "tsc"
|
11
|
+
},
|
12
|
+
"keywords": [],
|
13
|
+
"author": "",
|
14
|
+
"license": "ISC",
|
15
|
+
"description": "",
|
16
|
+
"devDependencies": {
|
17
|
+
"typescript": "^5.7.3"
|
18
|
+
},
|
19
|
+
"dependencies": {
|
20
|
+
"@plutonlabs/sdk": "^0.0.3-beta",
|
21
|
+
"bignumber.js": "^9.1.2",
|
22
|
+
"class-transformer": "^0.5.1",
|
23
|
+
"class-validator": "^0.14.1"
|
24
|
+
}
|
25
|
+
}
|
package/Readme.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
# pluton-sdk
|