@plutonlabs/sdk 0.0.15-beta → 0.0.17-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/index.d.ts +3 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/modules/chainsync/domain/dto/chain_contract.dto.d.ts +15 -14
- package/dist/modules/chainsync/domain/dto/chain_contract.dto.d.ts.map +1 -1
- package/dist/modules/chainsync/domain/dto/chain_contract.dto.js +14 -11
- package/dist/modules/chainsync/domain/dto/chain_contract.dto.js.map +1 -1
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.d.ts +5 -5
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.d.ts.map +1 -1
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.js +3 -3
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.js.map +1 -1
- package/dist/modules/network/domain/dto/network.dto.d.ts +4 -4
- package/dist/modules/network/domain/dto/network.dto.d.ts.map +1 -1
- package/dist/modules/network/domain/dto/network.dto.js +2 -2
- package/dist/modules/network/domain/dto/network.dto.js.map +1 -1
- package/dist/modules/network/domain/dto/network_tokens_view.dto.d.ts +24 -13
- package/dist/modules/network/domain/dto/network_tokens_view.dto.d.ts.map +1 -1
- package/dist/modules/network/domain/dto/network_tokens_view.dto.js +5 -9
- package/dist/modules/network/domain/dto/network_tokens_view.dto.js.map +1 -1
- package/dist/modules/network/domain/enums/chain_type.enum.d.ts +3 -2
- package/dist/modules/network/domain/enums/chain_type.enum.d.ts.map +1 -1
- package/dist/modules/network/domain/enums/chain_type.enum.js.map +1 -1
- package/dist/modules/network/domain/enums/index.d.ts +1 -1
- package/dist/modules/network/domain/enums/index.d.ts.map +1 -1
- package/dist/modules/network/domain/enums/index.js +1 -1
- package/dist/modules/network/domain/enums/index.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts +15 -3
- 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 +11 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts +3 -3
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js +3 -3
- package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.d.ts +4 -4
- package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.js +6 -7
- package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.d.ts +3 -3
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.js +2 -1
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.js.map +1 -1
- package/dist/modules/swap/domain/dto/index.d.ts +0 -1
- package/dist/modules/swap/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/swap/domain/dto/index.js +0 -1
- package/dist/modules/swap/domain/dto/index.js.map +1 -1
- package/dist/modules/swap/domain/dto/swap_request.dto.d.ts +12 -1
- package/dist/modules/swap/domain/dto/swap_request.dto.d.ts.map +1 -1
- package/dist/modules/swap/domain/dto/swap_request.dto.js +12 -6
- package/dist/modules/swap/domain/dto/swap_request.dto.js.map +1 -1
- package/dist/modules/swap/domain/dto/swap_response.dto.d.ts +4 -1
- package/dist/modules/swap/domain/dto/swap_response.dto.d.ts.map +1 -1
- package/dist/modules/swap/domain/dto/swap_response.dto.js +9 -6
- package/dist/modules/swap/domain/dto/swap_response.dto.js.map +1 -1
- package/dist/modules/token/domain/dto/token.dto.js +1 -1
- package/dist/modules/token/domain/dto/token.dto.js.map +1 -1
- package/dist/modules/token/domain/dto/token.update.dto.js +1 -1
- package/dist/modules/token/domain/dto/token.update.dto.js.map +1 -1
- package/package.json +1 -1
- package/dist/modules/swap/domain/dto/swap_estimate_response.dto.d.ts +0 -9
- package/dist/modules/swap/domain/dto/swap_estimate_response.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/swap_estimate_response.dto.js +0 -25
- package/dist/modules/swap/domain/dto/swap_estimate_response.dto.js.map +0 -1
package/dist/index.d.ts
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
export * from './common';
|
2
|
-
export * from './modules';
|
3
1
|
import NETWORKS from './seed/networks_seed.json';
|
4
2
|
import TOKENS from './seed/tokens_seed.json';
|
5
3
|
import PLUTON_CONTRACTS from './seed/pluton_contracts_seed.json';
|
6
|
-
export { NETWORKS };
|
7
|
-
export
|
8
|
-
export
|
4
|
+
export { NETWORKS, TOKENS, PLUTON_CONTRACTS };
|
5
|
+
export * from './common';
|
6
|
+
export * from './modules';
|
9
7
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,MAAM,MAAM,yBAAyB,CAAC;AAC7C,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;AAC9C,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
@@ -18,12 +18,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18
18
|
};
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
20
20
|
exports.PLUTON_CONTRACTS = exports.TOKENS = exports.NETWORKS = void 0;
|
21
|
-
__exportStar(require("./common"), exports);
|
22
|
-
__exportStar(require("./modules"), exports);
|
23
21
|
const networks_seed_json_1 = __importDefault(require("./seed/networks_seed.json"));
|
24
22
|
exports.NETWORKS = networks_seed_json_1.default;
|
25
23
|
const tokens_seed_json_1 = __importDefault(require("./seed/tokens_seed.json"));
|
26
24
|
exports.TOKENS = tokens_seed_json_1.default;
|
27
25
|
const pluton_contracts_seed_json_1 = __importDefault(require("./seed/pluton_contracts_seed.json"));
|
28
26
|
exports.PLUTON_CONTRACTS = pluton_contracts_seed_json_1.default;
|
27
|
+
__exportStar(require("./common"), exports);
|
28
|
+
__exportStar(require("./modules"), exports);
|
29
29
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,mFAAiD;AAGxC,mBAHF,4BAAQ,CAGE;AAFjB,+EAA6C;AAE1B,iBAFZ,0BAAM,CAEY;AADzB,mGAAiE;AACtC,2BADpB,oCAAgB,CACoB;AAC3C,2CAAyB;AACzB,4CAA0B"}
|
@@ -1,35 +1,36 @@
|
|
1
1
|
export declare class ChainContractDto {
|
2
|
+
constructor(partial: Partial<ChainContractDto>);
|
2
3
|
static from<T extends {
|
3
|
-
id
|
4
|
+
id?: string;
|
4
5
|
networkId: string;
|
5
|
-
|
6
|
-
|
6
|
+
pluton: string;
|
7
|
+
proxy: string;
|
7
8
|
}>(obj: T): ChainContractDto;
|
8
9
|
static listFrom<T extends {
|
9
|
-
id
|
10
|
+
id?: string;
|
10
11
|
networkId: string;
|
11
|
-
|
12
|
-
|
12
|
+
pluton: string;
|
13
|
+
proxy: string;
|
13
14
|
}>(objs: T[]): ChainContractDto[];
|
14
15
|
/**
|
15
16
|
* Unique identifier for the contract
|
16
17
|
* @example '12345'
|
17
18
|
*/
|
18
|
-
id
|
19
|
+
id?: string;
|
20
|
+
/**
|
21
|
+
* Network identifier where the contract is deployed
|
22
|
+
* @example '1'
|
23
|
+
*/
|
24
|
+
networkId: string;
|
19
25
|
/**
|
20
26
|
* The contract's address in the blockchain
|
21
27
|
* @example '0x2ce98643a10abc814031704769957099b6074e32'
|
22
28
|
*/
|
23
|
-
|
29
|
+
pluton: string;
|
24
30
|
/**
|
25
31
|
* The proxy address associated with the contract
|
26
32
|
* @example '0x2ce98643a10abc814031704769957099b6074e32'
|
27
33
|
*/
|
28
|
-
|
29
|
-
/**
|
30
|
-
* Network identifier where the contract is deployed
|
31
|
-
* @example '1'
|
32
|
-
*/
|
33
|
-
networkId: string;
|
34
|
+
proxy: string;
|
34
35
|
}
|
35
36
|
//# sourceMappingURL=chain_contract.dto.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chain_contract.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_contract.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;
|
1
|
+
{"version":3,"file":"chain_contract.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_contract.dto.ts"],"names":[],"mappings":"AAGA,qBAAa,gBAAgB;gBACf,OAAO,EAAE,OAAO,CAAC,gBAAgB,CAAC;WAIhC,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,EACD,GAAG,EAAE,CAAC,GAAG,gBAAgB;IAK3B,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,SAAS,EAAE,MAAM,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;KACf,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,gBAAgB,EAAE;IAIhC;;;OAGG;IAEH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IAGH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAGH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IAGH,KAAK,EAAE,MAAM,CAAC;CACf"}
|
@@ -13,12 +13,11 @@ exports.ChainContractDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const list_1 = require("../../../../common/utils/list");
|
15
15
|
class ChainContractDto {
|
16
|
+
constructor(partial) {
|
17
|
+
Object.assign(this, partial);
|
18
|
+
}
|
16
19
|
static from(obj) {
|
17
|
-
const dto = new ChainContractDto();
|
18
|
-
dto.id = obj.id;
|
19
|
-
dto.networkId = obj.networkId;
|
20
|
-
dto.contractAddress = obj.contractAddress;
|
21
|
-
dto.proxyAddress = obj.proxyAddress;
|
20
|
+
const dto = new ChainContractDto(obj);
|
22
21
|
return dto;
|
23
22
|
}
|
24
23
|
static listFrom(objs) {
|
@@ -27,18 +26,22 @@ class ChainContractDto {
|
|
27
26
|
}
|
28
27
|
exports.ChainContractDto = ChainContractDto;
|
29
28
|
__decorate([
|
30
|
-
(0, class_validator_1.
|
31
|
-
(0, class_validator_1.IsString)(),
|
29
|
+
(0, class_validator_1.IsUUID)(),
|
32
30
|
__metadata("design:type", String)
|
33
|
-
], ChainContractDto.prototype, "
|
31
|
+
], ChainContractDto.prototype, "id", void 0);
|
34
32
|
__decorate([
|
35
33
|
(0, class_validator_1.IsNotEmpty)(),
|
34
|
+
(0, class_validator_1.IsUUID)(),
|
35
|
+
__metadata("design:type", String)
|
36
|
+
], ChainContractDto.prototype, "networkId", void 0);
|
37
|
+
__decorate([
|
36
38
|
(0, class_validator_1.IsString)(),
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
37
40
|
__metadata("design:type", String)
|
38
|
-
], ChainContractDto.prototype, "
|
41
|
+
], ChainContractDto.prototype, "pluton", void 0);
|
39
42
|
__decorate([
|
40
|
-
(0, class_validator_1.
|
43
|
+
(0, class_validator_1.IsString)(),
|
41
44
|
(0, class_validator_1.IsNotEmpty)(),
|
42
45
|
__metadata("design:type", String)
|
43
|
-
], ChainContractDto.prototype, "
|
46
|
+
], ChainContractDto.prototype, "proxy", void 0);
|
44
47
|
//# sourceMappingURL=chain_contract.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chain_contract.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_contract.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,wDAAyD;AAEzD,MAAa,gBAAgB;
|
1
|
+
{"version":3,"file":"chain_contract.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_contract.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,wDAAyD;AAEzD,MAAa,gBAAgB;IAC3B,YAAY,OAAkC;QAC5C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAOhB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,gBAAgB,CAAC,GAAG,CAAC,CAAC;QACtC,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,CAOb,IAAS;QACT,OAAO,IAAA,eAAQ,EAAC,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;CAgCF;AA1DD,4CA0DC;AAzBC;IADC,IAAA,wBAAM,GAAE;;4CACG;AAQZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mDACS;AAQlB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACE;AAQf;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACC"}
|
@@ -7,7 +7,7 @@ export declare class ChainTransactionDto {
|
|
7
7
|
blockHash?: string;
|
8
8
|
hash: string;
|
9
9
|
from: string;
|
10
|
-
|
10
|
+
to: string;
|
11
11
|
index?: number;
|
12
12
|
type?: number;
|
13
13
|
gasLimit: string;
|
@@ -26,7 +26,7 @@ export declare class ChainTransactionDto {
|
|
26
26
|
blockHash?: string;
|
27
27
|
hash: string;
|
28
28
|
from: string;
|
29
|
-
|
29
|
+
to: string;
|
30
30
|
index?: number;
|
31
31
|
type?: number;
|
32
32
|
gasLimit: string;
|
@@ -73,10 +73,10 @@ export declare class ChainTransactionDto {
|
|
73
73
|
*/
|
74
74
|
from: string;
|
75
75
|
/**
|
76
|
-
*
|
77
|
-
* @example '
|
76
|
+
* Receiver address
|
77
|
+
* @example '0xabc123...'
|
78
78
|
*/
|
79
|
-
|
79
|
+
to: string;
|
80
80
|
/**
|
81
81
|
* Transaction index
|
82
82
|
* @example 0
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chain_transaction.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_transaction.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,mBAAmB;WAChB,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,
|
1
|
+
{"version":3,"file":"chain_transaction.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_transaction.dto.ts"],"names":[],"mappings":"AAUA,qBAAa,mBAAmB;WAChB,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,EACD,EAAE,EAAE,CAAC,GAAG,mBAAmB;IAsB7B,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,eAAe,EAAE,MAAM,CAAC;QACxB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,EACD,QAAQ,EAAE,CAAC,EAAE,GAAG,mBAAmB,EAAE;IAIvC;;;OAGG;IACH,EAAE,EAAG,MAAM,CAAC;IAEZ;;;OAGG;IAGH,cAAc,EAAG,MAAM,CAAC;IAExB;;;OAGG;IAGH,eAAe,EAAG,MAAM,CAAC;IAEzB;;;OAGG;IAGH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IAGH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IAGH,IAAI,EAAG,MAAM,CAAC;IAEd;;;OAGG;IAGH,IAAI,EAAG,MAAM,CAAC;IAEd;;;OAGG;IAGH,EAAE,EAAG,MAAM,CAAC;IAEZ;;;OAGG;IAGH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IAGH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IAGH,QAAQ,EAAG,MAAM,CAAC;IAElB;;;OAGG;IAGH,QAAQ,EAAG,MAAM,CAAC;IAElB;;;OAGG;IAGH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IAGH,IAAI,EAAG,MAAM,CAAC;IAEd;;;OAGG;IAGH,KAAK,EAAG,MAAM,CAAC;IAEf;;;OAGG;IAGH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IAEH,YAAY,EAAE,OAAO,CAAS;CAC/B"}
|
@@ -29,7 +29,7 @@ class ChainTransactionDto {
|
|
29
29
|
dto.blockHash = tx.blockHash;
|
30
30
|
dto.hash = tx.hash;
|
31
31
|
dto.from = tx.from;
|
32
|
-
dto.
|
32
|
+
dto.to = tx.to;
|
33
33
|
dto.index = tx.index;
|
34
34
|
dto.type = tx.type;
|
35
35
|
dto.gasLimit = tx.gasLimit;
|
@@ -78,9 +78,9 @@ __decorate([
|
|
78
78
|
], ChainTransactionDto.prototype, "from", void 0);
|
79
79
|
__decorate([
|
80
80
|
(0, class_validator_1.IsNotEmpty)(),
|
81
|
-
(0, class_validator_1.
|
81
|
+
(0, class_validator_1.IsString)(),
|
82
82
|
__metadata("design:type", String)
|
83
|
-
], ChainTransactionDto.prototype, "
|
83
|
+
], ChainTransactionDto.prototype, "to", void 0);
|
84
84
|
__decorate([
|
85
85
|
(0, class_validator_1.IsOptional)(),
|
86
86
|
(0, class_validator_1.IsNumber)(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chain_transaction.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_transaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,wDAAyD;AAEzD,MAAa,mBAAmB;IAAhC;QAyME;;;WAGG;QAEH,iBAAY,GAAY,KAAK,CAAC;IAChC,CAAC;IA9MQ,MAAM,CAAC,IAAI,CAoBhB,EAAK;QACL,MAAM,GAAG,GAAG,IAAI,mBAAmB,EAAE,CAAC;QACtC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;QACf,GAAG,CAAC,cAAc,GAAG,EAAE,CAAC,cAAc,CAAC;QACvC,GAAG,CAAC,eAAe,GAAG,EAAE,CAAC,eAAe,CAAC;QACzC,GAAG,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW,CAAC;QACjC,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;QAC7B,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACnB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACnB,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"chain_transaction.dto.js","sourceRoot":"","sources":["../../../../../src/modules/chainsync/domain/dto/chain_transaction.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAOyB;AACzB,wDAAyD;AAEzD,MAAa,mBAAmB;IAAhC;QAyME;;;WAGG;QAEH,iBAAY,GAAY,KAAK,CAAC;IAChC,CAAC;IA9MQ,MAAM,CAAC,IAAI,CAoBhB,EAAK;QACL,MAAM,GAAG,GAAG,IAAI,mBAAmB,EAAE,CAAC;QACtC,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;QACf,GAAG,CAAC,cAAc,GAAG,EAAE,CAAC,cAAc,CAAC;QACvC,GAAG,CAAC,eAAe,GAAG,EAAE,CAAC,eAAe,CAAC;QACzC,GAAG,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW,CAAC;QACjC,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;QAC7B,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACnB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACnB,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;QACf,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC;QACrB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACnB,GAAG,CAAC,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;QAC3B,GAAG,CAAC,QAAQ,GAAG,EAAE,CAAC,QAAQ,CAAC;QAC3B,GAAG,CAAC,YAAY,GAAG,EAAE,CAAC,YAAY,CAAC;QACnC,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,IAAI,CAAC;QACnB,GAAG,CAAC,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC;QACrB,GAAG,CAAC,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC;QACzB,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;QAC7B,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,CAoBb,QAAa;QACb,OAAO,IAAA,eAAQ,EAAC,QAAQ,EAAE,mBAAmB,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;CA8IF;AA/MD,kDA+MC;AAhIC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;2DACe;AAQxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;4DACgB;AAQzB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACU;AAQrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACQ;AAQnB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAQd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAQd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACC;AAQZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACI;AAQf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAQd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACO;AAQlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACO;AAQlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACW;AAQtB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAQd;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACI;AAQf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACQ;AAOnB;IADC,IAAA,2BAAS,GAAE;;yDACkB"}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { NetworkProviderDto } from './network_provider.dto';
|
2
|
-
import { TokenDto } from '
|
2
|
+
import { TokenDto } from '../../../token';
|
3
3
|
export declare class NetworkDto {
|
4
4
|
static from<T extends {
|
5
5
|
id: string;
|
6
6
|
name: string;
|
7
|
-
|
7
|
+
img: string;
|
8
8
|
coinType: number;
|
9
9
|
chainId: number;
|
10
10
|
lastParsedBlock: number;
|
@@ -13,7 +13,7 @@ export declare class NetworkDto {
|
|
13
13
|
static listFrom<T extends {
|
14
14
|
id: string;
|
15
15
|
name: string;
|
16
|
-
|
16
|
+
img: string;
|
17
17
|
coinType: number;
|
18
18
|
chainId: number;
|
19
19
|
lastParsedBlock: number;
|
@@ -27,7 +27,7 @@ export declare class NetworkDto {
|
|
27
27
|
/**
|
28
28
|
* @example '/public/images/networks/ethereum.svg'
|
29
29
|
*/
|
30
|
-
|
30
|
+
img: string;
|
31
31
|
/**
|
32
32
|
* @example 0
|
33
33
|
* @description Coin type of the network
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"network.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/network.dto.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"network.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/network.dto.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,qBAAa,UAAU;WACP,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,eAAe,EAAE,MAAM,CAAC;QACxB,iBAAiB,EAAE,MAAM,CAAC;KAC3B,EACD,GAAG,EAAE,CAAC,GAAG,UAAU;IAYrB,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,eAAe,EAAE,MAAM,CAAC;QACxB,iBAAiB,EAAE,MAAM,CAAC;KAC3B,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,UAAU,EAAE;IAK1B,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IAGH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IAGH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAEH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IAGH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IAEH,SAAS,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAEjC;;;OAGG;IAEH,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC;CACrB"}
|
@@ -17,7 +17,7 @@ class NetworkDto {
|
|
17
17
|
const dto = new NetworkDto();
|
18
18
|
dto.id = obj.id;
|
19
19
|
dto.name = obj.name;
|
20
|
-
dto.
|
20
|
+
dto.img = obj.img;
|
21
21
|
dto.coinType = obj.coinType;
|
22
22
|
dto.chainId = obj.chainId;
|
23
23
|
dto.lastParsedBlock = obj.lastParsedBlock;
|
@@ -42,7 +42,7 @@ __decorate([
|
|
42
42
|
(0, class_validator_1.IsNotEmpty)(),
|
43
43
|
(0, class_validator_1.IsString)(),
|
44
44
|
__metadata("design:type", String)
|
45
|
-
], NetworkDto.prototype, "
|
45
|
+
], NetworkDto.prototype, "img", void 0);
|
46
46
|
__decorate([
|
47
47
|
(0, class_validator_1.IsNotEmpty)(),
|
48
48
|
(0, class_validator_1.IsNumber)(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"network.dto.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/network.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,wDAAyD;AAIzD,MAAa,UAAU;IACd,MAAM,CAAC,IAAI,CAUhB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC;QAChB,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACpB,GAAG,CAAC,
|
1
|
+
{"version":3,"file":"network.dto.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/network.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,wDAAyD;AAIzD,MAAa,UAAU;IACd,MAAM,CAAC,IAAI,CAUhB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,UAAU,EAAE,CAAC;QAC7B,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC;QAChB,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACpB,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;QAClB,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC5B,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC1B,GAAG,CAAC,eAAe,GAAG,GAAG,CAAC,eAAe,CAAC;QAC1C,GAAG,CAAC,iBAAiB,GAAG,GAAG,CAAC,iBAAiB,CAAC;QAC9C,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,CAUb,IAAS;QACT,OAAO,IAAA,eAAQ,EAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;CA+DF;AAlGD,gCAkGC;AA5DC;IADC,IAAA,wBAAM,GAAE;;sCACE;AAOX;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACE;AAOb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uCACC;AAQZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACK;AAOhB;IADC,IAAA,0BAAQ,GAAE;;mDACa;AAQxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACe;AAO1B;IADC,IAAA,yBAAO,GAAE;;6CACuB;AAOjC;IADC,IAAA,yBAAO,GAAE;;0CACU"}
|
@@ -1,13 +1,15 @@
|
|
1
1
|
export declare class NetworkTokensViewDto {
|
2
2
|
static from<T extends {
|
3
3
|
name: string;
|
4
|
-
image: string;
|
5
4
|
symbol: string;
|
5
|
+
img: string;
|
6
|
+
address: string;
|
6
7
|
decimals: number;
|
7
|
-
|
8
|
+
isNative: boolean;
|
9
|
+
isBase: boolean;
|
8
10
|
}, N extends {
|
9
11
|
name: string;
|
10
|
-
|
12
|
+
img: string;
|
11
13
|
coinType: number;
|
12
14
|
chainId: number;
|
13
15
|
version: number;
|
@@ -15,44 +17,53 @@ export declare class NetworkTokensViewDto {
|
|
15
17
|
}>(obj: N): NetworkTokensViewDto;
|
16
18
|
static listFrom<T extends {
|
17
19
|
name: string;
|
18
|
-
image: string;
|
19
20
|
symbol: string;
|
21
|
+
img: string;
|
22
|
+
address: string;
|
20
23
|
decimals: number;
|
21
|
-
|
24
|
+
isNative: boolean;
|
25
|
+
isBase: boolean;
|
22
26
|
}, N extends {
|
23
27
|
name: string;
|
24
|
-
|
28
|
+
img: string;
|
25
29
|
coinType: number;
|
26
30
|
chainId: number;
|
27
31
|
version: number;
|
28
32
|
tokens: T[];
|
29
33
|
}>(objs: N[]): NetworkTokensViewDto[];
|
30
34
|
name: string;
|
31
|
-
|
35
|
+
img: string;
|
32
36
|
coinType: number;
|
33
37
|
chainId: number;
|
34
38
|
version: number;
|
35
39
|
tokens: TokenView[];
|
36
40
|
}
|
37
41
|
export declare class TokenView {
|
42
|
+
constructor(partial: TokenView);
|
38
43
|
static from<T extends {
|
39
44
|
name: string;
|
40
|
-
image: string;
|
41
45
|
symbol: string;
|
46
|
+
img: string;
|
47
|
+
address: string;
|
42
48
|
decimals: number;
|
43
|
-
|
49
|
+
isNative: boolean;
|
50
|
+
isBase: boolean;
|
44
51
|
}>(obj: T): TokenView;
|
45
52
|
static listFrom<T extends {
|
46
53
|
name: string;
|
47
|
-
image: string;
|
48
54
|
symbol: string;
|
55
|
+
img: string;
|
56
|
+
address: string;
|
49
57
|
decimals: number;
|
50
|
-
|
58
|
+
isNative: boolean;
|
59
|
+
isBase: boolean;
|
51
60
|
}>(objs: T[]): TokenView[];
|
52
61
|
name: string;
|
53
|
-
image: string;
|
54
62
|
symbol: string;
|
63
|
+
img: string;
|
64
|
+
address: string;
|
55
65
|
decimals: number;
|
56
|
-
|
66
|
+
isNative: boolean;
|
67
|
+
isBase: boolean;
|
57
68
|
}
|
58
69
|
//# sourceMappingURL=network_tokens_view.dto.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"network_tokens_view.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/network_tokens_view.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,oBAAoB;WACjB,IAAI,CAChB,CAAC,SAAS;QACR,IAAI,EAAE,MAAM,CAAC;QACb,
|
1
|
+
{"version":3,"file":"network_tokens_view.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/network_tokens_view.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,oBAAoB;WACjB,IAAI,CAChB,CAAC,SAAS;QACR,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,OAAO,CAAC;KACjB,EACD,CAAC,SAAS;QACR,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,CAAC,EAAE,CAAC;KACb,EACD,GAAG,EAAE,CAAC,GAAG,oBAAoB;IAW/B,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,OAAO,CAAC;KACjB,EACD,CAAC,SAAS;QACR,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,CAAC,EAAE,CAAC;KACb,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,oBAAoB,EAAE;IAIpC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,SAAS,EAAE,CAAC;CACrB;AAED,qBAAa,SAAS;gBACR,OAAO,EAAE,SAAS;WAIhB,IAAI,CAChB,CAAC,SAAS;QACR,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,OAAO,CAAC;KACjB,EACD,GAAG,EAAE,CAAC,GAAG,SAAS;IAKpB,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,GAAG,EAAE,MAAM,CAAC;QACZ,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,OAAO,CAAC;KACjB,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,SAAS,EAAE;IAIzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;CACjB"}
|
@@ -6,7 +6,7 @@ class NetworkTokensViewDto {
|
|
6
6
|
static from(obj) {
|
7
7
|
const dto = new NetworkTokensViewDto();
|
8
8
|
dto.name = obj.name;
|
9
|
-
dto.
|
9
|
+
dto.img = obj.img;
|
10
10
|
dto.coinType = obj.coinType;
|
11
11
|
dto.chainId = obj.chainId;
|
12
12
|
dto.version = obj.version;
|
@@ -19,15 +19,11 @@ class NetworkTokensViewDto {
|
|
19
19
|
}
|
20
20
|
exports.NetworkTokensViewDto = NetworkTokensViewDto;
|
21
21
|
class TokenView {
|
22
|
+
constructor(partial) {
|
23
|
+
Object.assign(this, partial);
|
24
|
+
}
|
22
25
|
static from(obj) {
|
23
|
-
const dto = new TokenView();
|
24
|
-
dto.name = obj.name;
|
25
|
-
dto.image = obj.image;
|
26
|
-
dto.symbol = obj.symbol;
|
27
|
-
if (obj.contract) {
|
28
|
-
dto.contract = obj.contract;
|
29
|
-
}
|
30
|
-
dto.decimals = obj.decimals;
|
26
|
+
const dto = new TokenView(obj);
|
31
27
|
return dto;
|
32
28
|
}
|
33
29
|
static listFrom(objs) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"network_tokens_view.dto.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/network_tokens_view.dto.ts"],"names":[],"mappings":";;;AAAA,wDAAyD;AAEzD,MAAa,oBAAoB;IACxB,MAAM,CAAC,IAAI,
|
1
|
+
{"version":3,"file":"network_tokens_view.dto.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/dto/network_tokens_view.dto.ts"],"names":[],"mappings":";;;AAAA,wDAAyD;AAEzD,MAAa,oBAAoB;IACxB,MAAM,CAAC,IAAI,CAkBhB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,oBAAoB,EAAE,CAAC;QACvC,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACpB,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;QAClB,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC5B,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC1B,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC1B,GAAG,CAAC,MAAM,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC5C,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,CAkBb,IAAS;QACT,OAAO,IAAA,eAAQ,EAAC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;CAQF;AA1DD,oDA0DC;AAED,MAAa,SAAS;IACpB,YAAY,OAAkB;QAC5B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAUhB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,SAAS,CAAC,GAAG,CAAC,CAAC;QAC/B,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,CAUb,IAAS;QACT,OAAO,IAAA,eAAQ,EAAC,IAAI,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;CASF;AAzCD,8BAyCC"}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import { CoinType } from './coin_type.enum';
|
2
|
-
|
2
|
+
declare enum ChainType {
|
3
3
|
NONE = "none",
|
4
4
|
EVM_BASE = "evm_base",
|
5
5
|
TON_BASE = "ton_base"
|
6
6
|
}
|
7
|
-
|
7
|
+
declare const coinTypeToChainType: (coinType: CoinType) => ChainType;
|
8
|
+
export { ChainType, coinTypeToChainType };
|
8
9
|
//# sourceMappingURL=chain_type.enum.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chain_type.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/chain_type.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,
|
1
|
+
{"version":3,"file":"chain_type.enum.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/chain_type.enum.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,aAAK,SAAS;IACZ,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB;AAED,QAAA,MAAM,mBAAmB,aAAc,QAAQ,cAa9C,CAAC;AAEF,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chain_type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/chain_type.enum.ts"],"names":[],"mappings":";;;AAEA,
|
1
|
+
{"version":3,"file":"chain_type.enum.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/chain_type.enum.ts"],"names":[],"mappings":";;;AAEA,IAAK,SAIJ;AAJD,WAAK,SAAS;IACZ,0BAAa,CAAA;IACb,kCAAqB,CAAA;IACrB,kCAAqB,CAAA;AACvB,CAAC,EAJI,SAAS,yBAAT,SAAS,QAIb;AAED,MAAM,mBAAmB,GAAG,CAAC,QAAkB,EAAE,EAAE;IACjD,IACE,QAAQ,IAAI,EAAE;QACd,QAAQ,IAAI,IAAI;QAChB,QAAQ,IAAI,IAAI;QAChB,QAAQ,IAAI,IAAI,EAChB,CAAC;QACD,OAAO,SAAS,CAAC,QAAQ,CAAC;IAC5B,CAAC;SAAM,IAAI,QAAQ,IAAI,GAAG,EAAE,CAAC;QAC3B,OAAO,SAAS,CAAC,QAAQ,CAAC;IAC5B,CAAC;SAAM,CAAC;QACN,OAAO,SAAS,CAAC,IAAI,CAAC;IACxB,CAAC;AACH,CAAC,CAAC;AAEkB,kDAAmB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./provider_protocol_type.enum"), exports);
|
18
|
-
__exportStar(require("./chain_type.enum"), exports);
|
19
18
|
__exportStar(require("./coin_type.enum"), exports);
|
19
|
+
__exportStar(require("./chain_type.enum"), exports);
|
20
20
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/network/domain/enums/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,mDAAiC;AACjC,oDAAkC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { IntentType } from '../../../../../common';
|
2
|
+
import { SelectionStatus } from '../../enums';
|
3
3
|
export declare class QuoteBaseIntentResponseDto {
|
4
4
|
id?: string;
|
5
5
|
/**
|
@@ -8,10 +8,22 @@ export declare class QuoteBaseIntentResponseDto {
|
|
8
8
|
*/
|
9
9
|
intentType: IntentType;
|
10
10
|
/**
|
11
|
-
* @description
|
11
|
+
* @description Expiry date of initiation
|
12
|
+
*/
|
13
|
+
initiationExpiry?: Date;
|
14
|
+
/**
|
15
|
+
* @description Expiry date of redemption
|
16
|
+
*/
|
17
|
+
redeemExpiry?: Date;
|
18
|
+
/**
|
19
|
+
* @description: Unique identifier for the intent request related to the intent
|
12
20
|
* @example: 'a68d209f-46e3-4f0e-b013-94c3b5f4d7f2'
|
13
21
|
*/
|
14
22
|
intentRequestId: string;
|
23
|
+
/**
|
24
|
+
* @description: Unique identifier for the solver related to the intent
|
25
|
+
* @example: 'a68d209f-46e3-4f0e-b013-94c3b5f4d7f2'
|
26
|
+
*/
|
15
27
|
solverId?: string;
|
16
28
|
selectionStatus?: SelectionStatus;
|
17
29
|
}
|
@@ -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":"
|
1
|
+
{"version":3,"file":"quote_base_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,qBAAa,0BAA0B;IAErC,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;;OAGG;IAGH,UAAU,EAAE,UAAU,CAAC;IAEvB;;OAEG;IAEH,gBAAgB,CAAC,EAAE,IAAI,CAAC;IAExB;;OAEG;IAEH,YAAY,CAAC,EAAE,IAAI,CAAC;IAEpB;;;OAGG;IAGH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,eAAe,CAAC,EAAE,eAAe,CAAgC;CAClE"}
|
@@ -10,12 +10,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.QuoteBaseIntentResponseDto = void 0;
|
13
|
-
const sdk_1 = require("@plutonlabs/sdk");
|
14
|
-
const common_1 = require("@plutonlabs/sdk/dist/common");
|
15
13
|
const class_validator_1 = require("class-validator");
|
14
|
+
const common_1 = require("../../../../../common");
|
15
|
+
const enums_1 = require("../../enums");
|
16
16
|
class QuoteBaseIntentResponseDto {
|
17
17
|
constructor() {
|
18
|
-
this.selectionStatus =
|
18
|
+
this.selectionStatus = enums_1.SelectionStatus.NOT_SELECTED;
|
19
19
|
}
|
20
20
|
}
|
21
21
|
exports.QuoteBaseIntentResponseDto = QuoteBaseIntentResponseDto;
|
@@ -28,6 +28,14 @@ __decorate([
|
|
28
28
|
(0, class_validator_1.IsNotEmpty)(),
|
29
29
|
__metadata("design:type", String)
|
30
30
|
], QuoteBaseIntentResponseDto.prototype, "intentType", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, class_validator_1.IsDate)(),
|
33
|
+
__metadata("design:type", Date)
|
34
|
+
], QuoteBaseIntentResponseDto.prototype, "initiationExpiry", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, class_validator_1.IsDate)(),
|
37
|
+
__metadata("design:type", Date)
|
38
|
+
], QuoteBaseIntentResponseDto.prototype, "redeemExpiry", void 0);
|
31
39
|
__decorate([
|
32
40
|
(0, class_validator_1.IsNotEmpty)(),
|
33
41
|
(0, class_validator_1.IsUUID)(),
|
@@ -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,
|
1
|
+
{"version":3,"file":"quote_base_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_base_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,kDAAmD;AACnD,uCAA8C;AAE9C,MAAa,0BAA0B;IAAvC;QAwCE,oBAAe,GAAqB,uBAAe,CAAC,YAAY,CAAC;IACnE,CAAC;CAAA;AAzCD,gEAyCC;AAvCC;IADC,IAAA,wBAAM,GAAE;;sDACG;AAQZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;8DACU;AAMvB;IADC,IAAA,wBAAM,GAAE;8BACU,IAAI;oEAAC;AAMxB;IADC,IAAA,wBAAM,GAAE;8BACM,IAAI;gEAAC;AAQpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mEACe;AAOxB;IADC,IAAA,wBAAM,GAAE;;4DACS;AAGlB;IADC,IAAA,0BAAQ,GAAE;;mEACsD"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
export declare class QuoteBridgeIntentResponseDto extends
|
1
|
+
import { QuoteBaseIntentResponseDto } from './quote_base_intent_response.dto';
|
2
|
+
export declare class QuoteBridgeIntentResponseDto extends QuoteBaseIntentResponseDto {
|
3
3
|
/**
|
4
4
|
* @example '10000'
|
5
5
|
* @description Solver response amount of destination token
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_bridge_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"quote_bridge_intent_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AAE9E,qBAAa,4BAA6B,SAAQ,0BAA0B;IAC1E;;;OAGG;IAGH,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
@@ -10,9 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.QuoteBridgeIntentResponseDto = void 0;
|
13
|
-
const sdk_1 = require("@plutonlabs/sdk");
|
14
13
|
const class_validator_1 = require("class-validator");
|
15
|
-
|
14
|
+
const quote_base_intent_response_dto_1 = require("./quote_base_intent_response.dto");
|
15
|
+
class QuoteBridgeIntentResponseDto extends quote_base_intent_response_dto_1.QuoteBaseIntentResponseDto {
|
16
16
|
}
|
17
17
|
exports.QuoteBridgeIntentResponseDto = QuoteBridgeIntentResponseDto;
|
18
18
|
__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_bridge_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"quote_bridge_intent_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AACvD,qFAA8E;AAE9E,MAAa,4BAA6B,SAAQ,2DAA0B;CAQ3E;AARD,oEAQC;AADC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACI"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import { CalcMode } from '
|
3
|
-
export declare class QuoteEstimateBridgeIntentRequestDto extends
|
1
|
+
import { QuoteBaseIntentRequestDto } from './quote_base_intent_request.dto';
|
2
|
+
import { CalcMode } from '../../../../../common';
|
3
|
+
export declare class QuoteEstimateBridgeIntentRequestDto extends QuoteBaseIntentRequestDto {
|
4
4
|
/**
|
5
5
|
* @example 1
|
6
6
|
*/
|
package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_estimate_bridge_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"quote_estimate_bridge_intent_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,qBAAa,mCAAoC,SAAQ,yBAAyB;IAChF;;OAEG;IAGH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IAGH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IAEH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;OAEG;IAGH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IAGH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IAEH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IAEjC;;OAEG;IAGH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,QAAQ,EAAE,QAAQ,CAAC;CACpB"}
|
@@ -10,10 +10,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.QuoteEstimateBridgeIntentRequestDto = void 0;
|
13
|
-
const sdk_1 = require("@plutonlabs/sdk");
|
14
|
-
const common_1 = require("@plutonlabs/sdk/dist/common");
|
15
13
|
const class_validator_1 = require("class-validator");
|
16
|
-
|
14
|
+
const quote_base_intent_request_dto_1 = require("./quote_base_intent_request.dto");
|
15
|
+
const common_1 = require("../../../../../common");
|
16
|
+
class QuoteEstimateBridgeIntentRequestDto extends quote_base_intent_request_dto_1.QuoteBaseIntentRequestDto {
|
17
17
|
}
|
18
18
|
exports.QuoteEstimateBridgeIntentRequestDto = QuoteEstimateBridgeIntentRequestDto;
|
19
19
|
__decorate([
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_estimate_bridge_intent_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"quote_estimate_bridge_intent_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AACjE,mFAA4E;AAC5E,kDAAiD;AAEjD,MAAa,mCAAoC,SAAQ,yDAAyB;CAgEjF;AAhED,kFAgEC;AA1DC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0EACW;AAOtB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2EACY;AAOvB;IADC,IAAA,0BAAQ,GAAE;;+EACiB;AAO5B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+EACgB;AAO3B;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gFACiB;AAO5B;IADC,IAAA,0BAAQ,GAAE;;oFACsB;AAOjC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mEACI;AAOf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qEACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qEACQ"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { QuoteRequestLifecycleStage, QuoteRequestLifecycleState, QuoteRequestLifecycleStatus } from '
|
1
|
+
import { QuoteRequestLifecycleStage, QuoteRequestLifecycleState, QuoteRequestLifecycleStatus } from '../../enums';
|
2
2
|
export declare class QuoteRequestLifecycleDto {
|
3
3
|
constructor(partial: Partial<QuoteRequestLifecycleDto>);
|
4
4
|
static from<T extends {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_request_lifecycle.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"quote_request_lifecycle.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.ts"],"names":[],"mappings":"AACA,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,2BAA2B,EAC5B,MAAM,aAAa,CAAC;AACrB,qBAAa,wBAAwB;gBACvB,OAAO,EAAE,OAAO,CAAC,wBAAwB,CAAC;WAIxC,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,KAAK,EAAE,0BAA0B,CAAC;QAClC,KAAK,EAAE,0BAA0B,CAAC;QAClC,MAAM,EAAE,2BAA2B,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,GAAG,EAAE,CAAC,GAAG,wBAAwB;IAKnC,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,cAAc,EAAE,MAAM,CAAC;QACvB,KAAK,EAAE,0BAA0B,CAAC;QAClC,KAAK,EAAE,0BAA0B,CAAC;QAClC,MAAM,EAAE,2BAA2B,CAAC;QACpC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAChC,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,wBAAwB,EAAE;IAIxC;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,KAAK,EAAE,0BAA0B,CAAC;IAElC;;;OAGG;IACH,KAAK,EAAE,0BAA0B,CAAC;IAElC;;;OAGG;IACH,MAAM,EAAE,2BAA2B,CAAC;IAEpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAChC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.QuoteRequestLifecycleDto = void 0;
|
4
|
-
const common_1 = require("
|
4
|
+
const common_1 = require("../../../../../common");
|
5
5
|
class QuoteRequestLifecycleDto {
|
6
6
|
constructor(partial) {
|
7
7
|
Object.assign(this, partial);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_request_lifecycle.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"quote_request_lifecycle.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.ts"],"names":[],"mappings":";;;AAAA,kDAAiD;AAMjD,MAAa,wBAAwB;IACnC,YAAY,OAA0C;QACpD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAShB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,wBAAwB,CAAC,GAAG,CAAC,CAAC;QAC9C,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,QAAQ,CASb,IAAS;QACT,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;CAqCF;AAnED,4DAmEC"}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
export declare class
|
1
|
+
export declare class QuoteRefundRequestDto {
|
2
2
|
/**
|
3
|
-
* @description
|
3
|
+
* @description quote request id that the user sent money for
|
4
4
|
* @example '123e4567-e89b-12d3-a456-426614174000'
|
5
5
|
*/
|
6
|
-
|
6
|
+
quoteRefundRequestId: string;
|
7
7
|
/**
|
8
|
-
* @description
|
8
|
+
* @description address of the user that should be refunded to
|
9
9
|
* @example '0x112233445566778899abcdef'
|
10
10
|
*/
|
11
11
|
address: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_refund_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_request.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,
|
1
|
+
{"version":3,"file":"quote_refund_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_request.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,qBAAqB;IAChC;;;OAGG;IAGH,oBAAoB,EAAE,MAAM,CAAC;IAE7B;;;OAGG;IAEH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAGH,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
@@ -9,24 +9,23 @@ 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
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.QuoteRefundRequestDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
class
|
14
|
+
class QuoteRefundRequestDto {
|
15
15
|
}
|
16
|
-
exports.
|
16
|
+
exports.QuoteRefundRequestDto = QuoteRefundRequestDto;
|
17
17
|
__decorate([
|
18
18
|
(0, class_validator_1.IsNotEmpty)(),
|
19
19
|
(0, class_validator_1.IsUUID)(),
|
20
20
|
__metadata("design:type", String)
|
21
|
-
],
|
21
|
+
], QuoteRefundRequestDto.prototype, "quoteRefundRequestId", void 0);
|
22
22
|
__decorate([
|
23
23
|
(0, class_validator_1.IsNotEmpty)(),
|
24
|
-
(0, class_validator_1.IsString)(),
|
25
24
|
__metadata("design:type", String)
|
26
|
-
],
|
25
|
+
], QuoteRefundRequestDto.prototype, "address", void 0);
|
27
26
|
__decorate([
|
28
27
|
(0, class_validator_1.IsNotEmpty)(),
|
29
28
|
(0, class_validator_1.IsString)(),
|
30
29
|
__metadata("design:type", String)
|
31
|
-
],
|
30
|
+
], QuoteRefundRequestDto.prototype, "signature", void 0);
|
32
31
|
//# sourceMappingURL=quote_refund_request.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_refund_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,
|
1
|
+
{"version":3,"file":"quote_refund_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,qBAAqB;CAuBjC;AAvBD,sDAuBC;AAhBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;mEACoB;AAO7B;IADC,IAAA,4BAAU,GAAE;;sDACG;AAQhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACO"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
export declare class QuoteRefundSignatureRequestDto {
|
2
2
|
/**
|
3
|
-
* @description quote request
|
3
|
+
* @description The quote request ID that the user sent money for
|
4
4
|
* @example '123e4567-e89b-12d3-a456-426614174000'
|
5
5
|
*/
|
6
|
-
|
6
|
+
quoteRequestId: string;
|
7
7
|
/**
|
8
|
-
* @description address of the user that should be refunded to
|
8
|
+
* @description The address of the user that should be refunded to
|
9
9
|
* @example '0x112233445566778899abcdef'
|
10
10
|
*/
|
11
11
|
address: string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_refund_signature_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,8BAA8B;IACzC;;;OAGG;IAGH,
|
1
|
+
{"version":3,"file":"quote_refund_signature_request.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,8BAA8B;IACzC;;;OAGG;IAGH,cAAc,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
@@ -18,9 +18,10 @@ __decorate([
|
|
18
18
|
(0, class_validator_1.IsNotEmpty)(),
|
19
19
|
(0, class_validator_1.IsUUID)(),
|
20
20
|
__metadata("design:type", String)
|
21
|
-
], QuoteRefundSignatureRequestDto.prototype, "
|
21
|
+
], QuoteRefundSignatureRequestDto.prototype, "quoteRequestId", void 0);
|
22
22
|
__decorate([
|
23
23
|
(0, class_validator_1.IsNotEmpty)(),
|
24
|
+
(0, class_validator_1.IsString)(),
|
24
25
|
__metadata("design:type", String)
|
25
26
|
], QuoteRefundSignatureRequestDto.prototype, "address", void 0);
|
26
27
|
//# sourceMappingURL=quote_refund_signature_request.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote_refund_signature_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"quote_refund_signature_request.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,8BAA8B;CAgB1C;AAhBD,wEAgBC;AATC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;sEACc;AAQvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+DACK"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC"}
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./swap_request.dto"), exports);
|
18
18
|
__exportStar(require("./swap_response.dto"), exports);
|
19
|
-
__exportStar(require("./swap_estimate_response.dto"), exports);
|
20
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,sDAAoC
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,sDAAoC"}
|
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
import { CalcMode } from '../../../../common';
|
2
|
+
export declare class SwapBridgeTokenDto {
|
2
3
|
/**
|
3
4
|
* @description The type of coin for the swap
|
4
5
|
* @example 60
|
@@ -15,4 +16,14 @@ export declare class SwapRequestDto {
|
|
15
16
|
*/
|
16
17
|
address: string;
|
17
18
|
}
|
19
|
+
export declare class SwapBridgeEstimateRequestDto {
|
20
|
+
srcToken: SwapBridgeTokenDto;
|
21
|
+
dstToken: SwapBridgeTokenDto;
|
22
|
+
amount: string;
|
23
|
+
calcMode: CalcMode;
|
24
|
+
}
|
25
|
+
export declare class SwapBridgeInstructionRequestDto extends SwapBridgeEstimateRequestDto {
|
26
|
+
srcWalletAddress: string;
|
27
|
+
dstWalletAddress: string;
|
28
|
+
}
|
18
29
|
//# sourceMappingURL=swap_request.dto.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"swap_request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_request.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"swap_request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_request.dto.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,qBAAa,kBAAkB;IAC7B;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAEH,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,4BAA4B;IACvC,QAAQ,EAAE,kBAAkB,CAAC;IAE7B,QAAQ,EAAE,kBAAkB,CAAC;IAE7B,MAAM,EAAE,MAAM,CAAC;IAEf,QAAQ,EAAE,QAAQ,CAAC;CACpB;AAED,qBAAa,+BAAgC,SAAQ,4BAA4B;IAC/E,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,MAAM,CAAC;CAC1B"}
|
@@ -9,23 +9,29 @@ 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
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.SwapBridgeInstructionRequestDto = exports.SwapBridgeEstimateRequestDto = exports.SwapBridgeTokenDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
class
|
14
|
+
class SwapBridgeTokenDto {
|
15
15
|
}
|
16
|
-
exports.
|
16
|
+
exports.SwapBridgeTokenDto = SwapBridgeTokenDto;
|
17
17
|
__decorate([
|
18
18
|
(0, class_validator_1.IsNotEmpty)(),
|
19
19
|
(0, class_validator_1.IsNumber)(),
|
20
20
|
__metadata("design:type", Number)
|
21
|
-
],
|
21
|
+
], SwapBridgeTokenDto.prototype, "coinType", void 0);
|
22
22
|
__decorate([
|
23
23
|
(0, class_validator_1.IsNotEmpty)(),
|
24
24
|
(0, class_validator_1.IsNumber)(),
|
25
25
|
__metadata("design:type", Number)
|
26
|
-
],
|
26
|
+
], SwapBridgeTokenDto.prototype, "chainId", void 0);
|
27
27
|
__decorate([
|
28
28
|
(0, class_validator_1.IsString)(),
|
29
29
|
__metadata("design:type", String)
|
30
|
-
],
|
30
|
+
], SwapBridgeTokenDto.prototype, "address", void 0);
|
31
|
+
class SwapBridgeEstimateRequestDto {
|
32
|
+
}
|
33
|
+
exports.SwapBridgeEstimateRequestDto = SwapBridgeEstimateRequestDto;
|
34
|
+
class SwapBridgeInstructionRequestDto extends SwapBridgeEstimateRequestDto {
|
35
|
+
}
|
36
|
+
exports.SwapBridgeInstructionRequestDto = SwapBridgeInstructionRequestDto;
|
31
37
|
//# sourceMappingURL=swap_request.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"swap_request.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;
|
1
|
+
{"version":3,"file":"swap_request.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAGjE,MAAa,kBAAkB;CAuB9B;AAvBD,gDAuBC;AAhBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAOhB;IADC,IAAA,0BAAQ,GAAE;;mDACK;AAGlB,MAAa,4BAA4B;CAQxC;AARD,oEAQC;AAED,MAAa,+BAAgC,SAAQ,4BAA4B;CAGhF;AAHD,0EAGC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare class
|
1
|
+
export declare class SwapBridgeInstructionResponsetDto {
|
2
2
|
/**
|
3
3
|
* @description The transaction data for the token swap
|
4
4
|
* @example '0xabcdef...'
|
@@ -15,4 +15,7 @@ export declare class SwapResponsetDto {
|
|
15
15
|
*/
|
16
16
|
transactionReceiver: string;
|
17
17
|
}
|
18
|
+
export declare class SwapBridgeEstimateResponsetDto {
|
19
|
+
amount: string;
|
20
|
+
}
|
18
21
|
//# sourceMappingURL=swap_response.dto.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"swap_response.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,
|
1
|
+
{"version":3,"file":"swap_response.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,iCAAiC;IAC5C;;;OAGG;IAGH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IAGH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IAGH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED,qBAAa,8BAA8B;IACzC,MAAM,EAAE,MAAM,CAAC;CAChB"}
|
@@ -9,24 +9,27 @@ 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
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.SwapBridgeEstimateResponsetDto = exports.SwapBridgeInstructionResponsetDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
class
|
14
|
+
class SwapBridgeInstructionResponsetDto {
|
15
15
|
}
|
16
|
-
exports.
|
16
|
+
exports.SwapBridgeInstructionResponsetDto = SwapBridgeInstructionResponsetDto;
|
17
17
|
__decorate([
|
18
18
|
(0, class_validator_1.IsString)(),
|
19
19
|
(0, class_validator_1.IsNotEmpty)(),
|
20
20
|
__metadata("design:type", String)
|
21
|
-
],
|
21
|
+
], SwapBridgeInstructionResponsetDto.prototype, "transactionData", void 0);
|
22
22
|
__decorate([
|
23
23
|
(0, class_validator_1.IsString)(),
|
24
24
|
(0, class_validator_1.IsNotEmpty)(),
|
25
25
|
__metadata("design:type", String)
|
26
|
-
],
|
26
|
+
], SwapBridgeInstructionResponsetDto.prototype, "transactionValue", void 0);
|
27
27
|
__decorate([
|
28
28
|
(0, class_validator_1.IsString)(),
|
29
29
|
(0, class_validator_1.IsNotEmpty)(),
|
30
30
|
__metadata("design:type", String)
|
31
|
-
],
|
31
|
+
], SwapBridgeInstructionResponsetDto.prototype, "transactionReceiver", void 0);
|
32
|
+
class SwapBridgeEstimateResponsetDto {
|
33
|
+
}
|
34
|
+
exports.SwapBridgeEstimateResponsetDto = SwapBridgeEstimateResponsetDto;
|
32
35
|
//# sourceMappingURL=swap_response.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"swap_response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,
|
1
|
+
{"version":3,"file":"swap_response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,iCAAiC;CAwB7C;AAxBD,8EAwBC;AAjBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0EACW;AAQxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2EACY;AAQzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8EACe;AAG9B,MAAa,8BAA8B;CAE1C;AAFD,wEAEC"}
|
@@ -10,8 +10,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.TokenDto = void 0;
|
13
|
-
const common_1 = require("@plutonlabs/sdk/dist/common");
|
14
13
|
const class_validator_1 = require("class-validator");
|
14
|
+
const common_1 = require("../../../../common");
|
15
15
|
class TokenDto {
|
16
16
|
constructor() {
|
17
17
|
this.isNative = false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"token.dto.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"token.dto.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,+CAA8C;AAE9C,MAAa,QAAQ;IAArB;QA4FE,aAAQ,GAAY,KAAK,CAAC;QAG1B,WAAM,GAAY,KAAK,CAAC;IAC1B,CAAC;IA/FC;;;;OAIG;IACI,MAAM,CAAC,IAAI,CAShB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,QAAQ,EAAE,CAAC;QAC3B,GAAG,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC9B,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;QACpB,GAAG,CAAC,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC;QACxB,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;QAC1B,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC5B,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;QAClB,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CASb,IAAS;QACT,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IACvC,CAAC;CAsDF;AAhGD,4BAgGC;AA9CC;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;2CACK;AAOlB;IADC,IAAA,0BAAQ,GAAE;;yCACK;AAQhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sCACE;AAQb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACI;AAQf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qCACC;AAGZ;IADC,IAAA,2BAAS,GAAE;;0CACc;AAG1B;IADC,IAAA,2BAAS,GAAE;;wCACY"}
|
@@ -10,8 +10,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.TokenUpdateDto = void 0;
|
13
|
-
const common_1 = require("@plutonlabs/sdk/dist/common");
|
14
13
|
const class_validator_1 = require("class-validator");
|
14
|
+
const common_1 = require("../../../../common");
|
15
15
|
class TokenUpdateDto {
|
16
16
|
constructor(partial) {
|
17
17
|
this.isNative = false;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"token.update.dto.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.update.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"token.update.dto.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.update.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAMyB;AACzB,+CAA8C;AAE9C,MAAa,cAAc;IACzB,YAAY,OAAgC;QA+F5C,aAAQ,GAAa,KAAK,CAAC;QAG3B,WAAM,GAAa,KAAK,CAAC;QAjGvB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACI,MAAM,CAAC,IAAI,CAWhB,GAAM;QACN,OAAO,IAAI,cAAc,CAAC,GAAG,CAAC,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAWb,IAAS;QACT,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;CAyDF;AApGD,wCAoGC;AAjDC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;0CACG;AAOZ;IADC,IAAA,wBAAM,GAAE;;iDACU;AAOnB;IADC,IAAA,0BAAQ,GAAE;;4CACG;AAOd;IADC,IAAA,0BAAQ,GAAE;;8CACK;AAOhB;IADC,IAAA,0BAAQ,GAAE;;+CACM;AAOjB;IADC,IAAA,0BAAQ,GAAE;;2CACE;AAOb;IADC,IAAA,0BAAQ,GAAE;;gDACO;AAGlB;IADC,IAAA,2BAAS,GAAE;;gDACe;AAG3B;IADC,IAAA,2BAAS,GAAE;;8CACa"}
|
package/package.json
CHANGED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"swap_estimate_response.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_estimate_response.dto.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,qBAAa,wBAAwB;IACnC;;;OAGG;IAEH,MAAM,EAAE,SAAS,CAAC;CACnB"}
|
@@ -1,25 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
|
-
};
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
15
|
-
exports.SwapEstimateResponsetDto = void 0;
|
16
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
17
|
-
const class_validator_1 = require("class-validator");
|
18
|
-
class SwapEstimateResponsetDto {
|
19
|
-
}
|
20
|
-
exports.SwapEstimateResponsetDto = SwapEstimateResponsetDto;
|
21
|
-
__decorate([
|
22
|
-
(0, class_validator_1.IsNotEmpty)(),
|
23
|
-
__metadata("design:type", bignumber_js_1.default)
|
24
|
-
], SwapEstimateResponsetDto.prototype, "amount", void 0);
|
25
|
-
//# sourceMappingURL=swap_estimate_response.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"swap_estimate_response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_estimate_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gEAAqC;AACrC,qDAA6C;AAE7C,MAAa,wBAAwB;CAOpC;AAPD,4DAOC;AADC;IADC,IAAA,4BAAU,GAAE;8BACL,sBAAS;wDAAC"}
|