@plutonlabs/sdk 0.0.12-beta → 0.0.13-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/consts/index.d.ts.map +1 -1
- package/dist/common/consts/index.js.map +1 -1
- package/dist/common/enums/index.d.ts +2 -2
- package/dist/common/index.d.ts +4 -4
- package/dist/common/interfaces/IChain.d.ts +1 -1
- package/dist/common/utils/index.d.ts +2 -2
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.d.ts.map +1 -1
- package/dist/modules/chainsync/domain/dto/chain_transaction.dto.js.map +1 -1
- package/dist/modules/index.d.ts.map +1 -1
- package/dist/modules/index.js.map +1 -1
- package/dist/modules/network/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/network/domain/dto/index.js.map +1 -1
- package/dist/modules/network/domain/dto/network_provider.update.dto.d.ts +1 -1
- package/dist/modules/network/domain/dto/network_tokens_view.dto.d.ts +19 -7
- 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 +4 -2
- package/dist/modules/network/domain/dto/network_tokens_view.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts +13 -13
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js +1 -1
- package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/index.d.ts +3 -3
- package/dist/modules/quote/domain/dto/quote/index.d.ts +15 -16
- package/dist/modules/quote/domain/dto/quote/index.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/index.js +0 -1
- package/dist/modules/quote/domain/dto/quote/index.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts +1 -6
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js +4 -8
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts +18 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js +44 -0
- package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts +1 -9
- 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 +2 -2
- 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_intent_response.dto.d.ts +0 -9
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js +0 -57
- package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts +6 -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 +5 -6
- package/dist/modules/quote/domain/dto/quote/quote_request.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts +2 -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 +5 -8
- package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts +13 -0
- 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 +13 -21
- package/dist/modules/quote/domain/dto/quote/quote_response.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts +1 -0
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js +4 -7
- package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js.map +1 -1
- package/dist/modules/quote/domain/dto/refund/index.d.ts +4 -4
- package/dist/modules/quote/domain/dto/refund/index.d.ts.map +1 -1
- package/dist/modules/quote/domain/dto/refund/index.js +2 -2
- package/dist/modules/quote/domain/dto/refund/index.js.map +1 -1
- package/dist/modules/quote/domain/dto/refund/{create_quote_refund_request.dto.d.ts → quote_refund_request.dto.d.ts} +3 -3
- package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/refund/{create_quote_refund_request.dto.js → quote_refund_request.dto.js} +9 -7
- package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/refund/{create_quote_refund_response.dto.d.ts → quote_refund_response.dto.d.ts} +4 -4
- package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.d.ts.map +1 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.js +37 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.js.map +1 -0
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.d.ts +1 -1
- package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.js +1 -1
- package/dist/modules/quote/domain/index.d.ts +2 -2
- package/dist/modules/swap/domain/dto/index.d.ts +3 -3
- package/dist/modules/swap/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/swap/domain/dto/index.js +3 -3
- package/dist/modules/swap/domain/dto/index.js.map +1 -1
- package/dist/modules/swap/domain/dto/{token_swap_output_estimate_response.dto.d.ts → swap_estimate_response.dto.d.ts} +2 -2
- package/dist/modules/swap/domain/dto/swap_estimate_response.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_output_estimate_response.dto.js → swap_estimate_response.dto.js} +5 -5
- package/dist/modules/swap/domain/dto/swap_estimate_response.dto.js.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_request.dto.d.ts → swap_request.dto.d.ts} +3 -3
- package/dist/modules/swap/domain/dto/swap_request.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_request.dto.js → swap_request.dto.js} +7 -7
- package/dist/modules/swap/domain/dto/swap_request.dto.js.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_response.dto.d.ts → swap_response.dto.d.ts} +2 -2
- package/dist/modules/swap/domain/dto/swap_response.dto.d.ts.map +1 -0
- package/dist/modules/swap/domain/dto/{token_swap_response.dto.js → swap_response.dto.js} +7 -7
- package/dist/modules/swap/domain/dto/swap_response.dto.js.map +1 -0
- package/dist/modules/swap/index.d.ts +1 -1
- package/dist/modules/token/domain/dto/index.d.ts +1 -1
- package/dist/modules/token/domain/dto/index.d.ts.map +1 -1
- package/dist/modules/token/domain/dto/index.js +1 -1
- package/dist/modules/token/domain/dto/index.js.map +1 -1
- package/dist/modules/token/domain/dto/token.dto.d.ts +15 -14
- package/dist/modules/token/domain/dto/token.dto.d.ts.map +1 -1
- package/dist/modules/token/domain/dto/token.dto.js +19 -10
- package/dist/modules/token/domain/dto/token.dto.js.map +1 -1
- package/dist/modules/token/domain/dto/token.find.dto.d.ts +29 -0
- package/dist/modules/token/domain/dto/token.find.dto.d.ts.map +1 -0
- package/dist/modules/token/domain/dto/{network_contract_find_token.dto.js → token.find.dto.js} +9 -10
- package/dist/modules/token/domain/dto/token.find.dto.js.map +1 -0
- package/dist/modules/token/domain/dto/token.update.dto.d.ts +27 -23
- package/dist/modules/token/domain/dto/token.update.dto.d.ts.map +1 -1
- package/dist/modules/token/domain/dto/token.update.dto.js +15 -17
- package/dist/modules/token/domain/dto/token.update.dto.js.map +1 -1
- package/dist/modules/token/domain/dto/token_find.dto.d.ts +29 -0
- package/dist/modules/token/domain/dto/token_find.dto.d.ts.map +1 -0
- package/dist/modules/token/domain/dto/token_find.dto.js +41 -0
- package/dist/modules/token/domain/dto/token_find.dto.js.map +1 -0
- package/dist/seed-data/index.d.ts +1 -0
- package/dist/seed-data/index.d.ts.map +1 -0
- package/dist/seed-data/index.js +2 -0
- package/dist/seed-data/index.js.map +1 -0
- package/dist/seed-data/networks_seed.json +47 -0
- package/dist/seed-data/pluton_contracts_seed.json +1312 -0
- package/dist/seed-data/tokens_seed.json +119 -0
- package/package.json +4 -1
- package/Readme.md +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.d.ts +0 -31
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.js +0 -53
- package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.js.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.js.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.d.ts.map +0 -1
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js +0 -7
- package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.js.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_request.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_request.dto.js.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_response.dto.d.ts.map +0 -1
- package/dist/modules/swap/domain/dto/token_swap_response.dto.js.map +0 -1
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts +0 -29
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts.map +0 -1
- package/dist/modules/token/domain/dto/network_contract_find_token.dto.js.map +0 -1
@@ -9,23 +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.SwapRequestDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
class
|
14
|
+
class SwapRequestDto {
|
15
15
|
}
|
16
|
-
exports.
|
16
|
+
exports.SwapRequestDto = SwapRequestDto;
|
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
|
+
], SwapRequestDto.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
|
+
], SwapRequestDto.prototype, "chainId", void 0);
|
27
27
|
__decorate([
|
28
28
|
(0, class_validator_1.IsString)(),
|
29
29
|
__metadata("design:type", String)
|
30
|
-
],
|
31
|
-
//# sourceMappingURL=
|
30
|
+
], SwapRequestDto.prototype, "address", void 0);
|
31
|
+
//# sourceMappingURL=swap_request.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"swap_request.dto.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_request.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAEjE,MAAa,cAAc;CAuB1B;AAvBD,wCAuBC;AAhBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACK;AAOhB;IADC,IAAA,0BAAQ,GAAE;;+CACK"}
|
package/dist/modules/swap/domain/dto/{token_swap_response.dto.d.ts → swap_response.dto.d.ts}
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare class
|
1
|
+
export declare class SwapResponsetDto {
|
2
2
|
/**
|
3
3
|
* @description The transaction data for the token swap
|
4
4
|
* @example '0xabcdef...'
|
@@ -15,4 +15,4 @@ export declare class TokenSwapResponsetDto {
|
|
15
15
|
*/
|
16
16
|
transactionReceiver: string;
|
17
17
|
}
|
18
|
-
//# sourceMappingURL=
|
18
|
+
//# sourceMappingURL=swap_response.dto.d.ts.map
|
@@ -0,0 +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,gBAAgB;IAC3B;;;OAGG;IAGH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IAGH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;;OAGG;IAGH,mBAAmB,EAAE,MAAM,CAAC;CAC7B"}
|
@@ -9,24 +9,24 @@ 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.SwapResponsetDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
class
|
14
|
+
class SwapResponsetDto {
|
15
15
|
}
|
16
|
-
exports.
|
16
|
+
exports.SwapResponsetDto = SwapResponsetDto;
|
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
|
+
], SwapResponsetDto.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
|
+
], SwapResponsetDto.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
|
-
],
|
32
|
-
//# sourceMappingURL=
|
31
|
+
], SwapResponsetDto.prototype, "transactionReceiver", void 0);
|
32
|
+
//# sourceMappingURL=swap_response.dto.js.map
|
@@ -0,0 +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,gBAAgB;CAwB5B;AAxBD,4CAwBC;AAjBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACW;AAQxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACY;AAQzB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACe"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export * from
|
1
|
+
export * from './domain';
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|
@@ -16,5 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./token.dto"), exports);
|
18
18
|
__exportStar(require("./token.update.dto"), exports);
|
19
|
-
__exportStar(require("./
|
19
|
+
__exportStar(require("./token.find.dto"), exports);
|
20
20
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,qDAAmC;AACnC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,qDAAmC;AACnC,mDAAiC"}
|
@@ -8,9 +8,9 @@ export declare class TokenDto {
|
|
8
8
|
networkId: string;
|
9
9
|
name: string;
|
10
10
|
symbol: string;
|
11
|
-
|
12
|
-
image: string;
|
11
|
+
address: string;
|
13
12
|
decimals: number;
|
13
|
+
img: string;
|
14
14
|
}>(obj: T): TokenDto;
|
15
15
|
/**
|
16
16
|
* @description Converts a list of entity objects into an array of TokenDto.
|
@@ -21,15 +21,20 @@ export declare class TokenDto {
|
|
21
21
|
networkId: string;
|
22
22
|
name: string;
|
23
23
|
symbol: string;
|
24
|
-
|
25
|
-
image: string;
|
24
|
+
address: string;
|
26
25
|
decimals: number;
|
26
|
+
img: string;
|
27
27
|
}>(objs: T[]): TokenDto[];
|
28
28
|
/**
|
29
29
|
* @description The ID of the token's network
|
30
30
|
* @example '123e4567-e89b-12d3-a456-426614174000'
|
31
31
|
*/
|
32
32
|
networkId: string;
|
33
|
+
/**
|
34
|
+
* @description The contract address of the token (optional)
|
35
|
+
* @example '0xc0...'
|
36
|
+
*/
|
37
|
+
address: string;
|
33
38
|
/**
|
34
39
|
* @description The name of the token
|
35
40
|
* @example 'Ethereum'
|
@@ -40,21 +45,17 @@ export declare class TokenDto {
|
|
40
45
|
* @example 'ETH'
|
41
46
|
*/
|
42
47
|
symbol: string;
|
43
|
-
/**
|
44
|
-
* @description Image URL for the token
|
45
|
-
* @example '/public/images/token/usdt.svg'
|
46
|
-
*/
|
47
|
-
image: string;
|
48
|
-
/**
|
49
|
-
* @description The contract address of the token (optional)
|
50
|
-
* @example '0xc0...'
|
51
|
-
*/
|
52
|
-
contract: string;
|
53
48
|
/**
|
54
49
|
* @description The number of decimals the token uses
|
55
50
|
* @example 18
|
56
51
|
*/
|
57
52
|
decimals: number;
|
53
|
+
/**
|
54
|
+
* @description Image URL for the token
|
55
|
+
* @example '/public/images/token/usdt.svg'
|
56
|
+
*/
|
57
|
+
img: string;
|
58
|
+
isNative: boolean;
|
58
59
|
isBase: boolean;
|
59
60
|
}
|
60
61
|
//# sourceMappingURL=token.dto.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"token.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"token.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.dto.ts"],"names":[],"mappings":"AASA,qBAAa,QAAQ;IACnB;;;;OAIG;WACW,IAAI,CAChB,CAAC,SAAS;QACR,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,MAAM,CAAC;KACb,EACD,GAAG,EAAE,CAAC,GAAG,QAAQ;IAWnB;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,EAAE,MAAM,CAAC;KACb,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,QAAQ,EAAE;IAIxB;;;OAGG;IAGH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAEH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAGH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IAGH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,EAAE,OAAO,CAAS;IAG1B,MAAM,EAAE,OAAO,CAAS;CACzB"}
|
@@ -14,6 +14,7 @@ const class_validator_1 = require("class-validator");
|
|
14
14
|
const common_1 = require("../../../../common");
|
15
15
|
class TokenDto {
|
16
16
|
constructor() {
|
17
|
+
this.isNative = false;
|
17
18
|
this.isBase = false;
|
18
19
|
}
|
19
20
|
/**
|
@@ -26,9 +27,9 @@ class TokenDto {
|
|
26
27
|
dto.networkId = obj.networkId;
|
27
28
|
dto.name = obj.name;
|
28
29
|
dto.symbol = obj.symbol;
|
29
|
-
dto.
|
30
|
+
dto.address = obj.address;
|
30
31
|
dto.decimals = obj.decimals;
|
31
|
-
dto.
|
32
|
+
dto.img = obj.img;
|
32
33
|
return dto;
|
33
34
|
}
|
34
35
|
/**
|
@@ -47,27 +48,35 @@ __decorate([
|
|
47
48
|
__metadata("design:type", String)
|
48
49
|
], TokenDto.prototype, "networkId", void 0);
|
49
50
|
__decorate([
|
50
|
-
(0, class_validator_1.IsNotEmpty)(),
|
51
51
|
(0, class_validator_1.IsString)(),
|
52
52
|
__metadata("design:type", String)
|
53
|
-
], TokenDto.prototype, "
|
53
|
+
], TokenDto.prototype, "address", void 0);
|
54
54
|
__decorate([
|
55
55
|
(0, class_validator_1.IsNotEmpty)(),
|
56
56
|
(0, class_validator_1.IsString)(),
|
57
57
|
__metadata("design:type", String)
|
58
|
-
], TokenDto.prototype, "
|
58
|
+
], TokenDto.prototype, "name", void 0);
|
59
59
|
__decorate([
|
60
60
|
(0, class_validator_1.IsNotEmpty)(),
|
61
61
|
(0, class_validator_1.IsString)(),
|
62
62
|
__metadata("design:type", String)
|
63
|
-
], TokenDto.prototype, "
|
64
|
-
__decorate([
|
65
|
-
(0, class_validator_1.IsString)(),
|
66
|
-
__metadata("design:type", String)
|
67
|
-
], TokenDto.prototype, "contract", void 0);
|
63
|
+
], TokenDto.prototype, "symbol", void 0);
|
68
64
|
__decorate([
|
69
65
|
(0, class_validator_1.IsNotEmpty)(),
|
70
66
|
(0, class_validator_1.IsNumber)(),
|
71
67
|
__metadata("design:type", Number)
|
72
68
|
], TokenDto.prototype, "decimals", void 0);
|
69
|
+
__decorate([
|
70
|
+
(0, class_validator_1.IsNotEmpty)(),
|
71
|
+
(0, class_validator_1.IsString)(),
|
72
|
+
__metadata("design:type", String)
|
73
|
+
], TokenDto.prototype, "img", void 0);
|
74
|
+
__decorate([
|
75
|
+
(0, class_validator_1.IsBoolean)(),
|
76
|
+
__metadata("design:type", Boolean)
|
77
|
+
], TokenDto.prototype, "isNative", void 0);
|
78
|
+
__decorate([
|
79
|
+
(0, class_validator_1.IsBoolean)(),
|
80
|
+
__metadata("design:type", Boolean)
|
81
|
+
], TokenDto.prototype, "isBase", void 0);
|
73
82
|
//# sourceMappingURL=token.dto.js.map
|
@@ -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"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export declare class FindTokenByNetworkAndAddressDto {
|
2
|
+
constructor(partial: Partial<FindTokenByNetworkAndAddressDto>);
|
3
|
+
static from<T extends {
|
4
|
+
address: string;
|
5
|
+
coinType: number;
|
6
|
+
chainId: number;
|
7
|
+
}>(obj: T): FindTokenByNetworkAndAddressDto;
|
8
|
+
static listFrom<T extends {
|
9
|
+
address: string;
|
10
|
+
coinType: number;
|
11
|
+
chainId: number;
|
12
|
+
}>(objs: T[]): FindTokenByNetworkAndAddressDto[];
|
13
|
+
/**
|
14
|
+
* @description The address of token contract
|
15
|
+
* @example '0x1234567890abcdef1234567890abcdef12345678'
|
16
|
+
*/
|
17
|
+
address: string;
|
18
|
+
/**
|
19
|
+
* @description The coinType of token network
|
20
|
+
* @example 60
|
21
|
+
*/
|
22
|
+
coinType: number;
|
23
|
+
/**
|
24
|
+
* @description The chainId of token network
|
25
|
+
* @example 1
|
26
|
+
*/
|
27
|
+
chainId: number;
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=token.find.dto.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"token.find.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.find.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,+BAA+B;gBAC9B,OAAO,EAAE,OAAO,CAAC,+BAA+B,CAAC;WAI/C,IAAI,CAChB,CAAC,SAAS;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACjB,EACD,GAAG,EAAE,CAAC,GAAG,+BAA+B;IAI1C,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACjB,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,+BAA+B,EAAE;IAI/C;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
package/dist/modules/token/domain/dto/{network_contract_find_token.dto.js → token.find.dto.js}
RENAMED
@@ -9,34 +9,33 @@ 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.FindTokenByNetworkAndAddressDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
class
|
14
|
+
class FindTokenByNetworkAndAddressDto {
|
15
15
|
constructor(partial) {
|
16
16
|
Object.assign(this, partial);
|
17
17
|
}
|
18
18
|
static from(obj) {
|
19
|
-
|
20
|
-
return dto;
|
19
|
+
return new FindTokenByNetworkAndAddressDto(obj);
|
21
20
|
}
|
22
21
|
static listFrom(objs) {
|
23
|
-
return objs.map((obj) =>
|
22
|
+
return objs.map((obj) => FindTokenByNetworkAndAddressDto.from(obj));
|
24
23
|
}
|
25
24
|
}
|
26
|
-
exports.
|
25
|
+
exports.FindTokenByNetworkAndAddressDto = FindTokenByNetworkAndAddressDto;
|
27
26
|
__decorate([
|
28
27
|
(0, class_validator_1.IsNotEmpty)(),
|
29
28
|
(0, class_validator_1.IsNumber)(),
|
30
29
|
__metadata("design:type", String)
|
31
|
-
],
|
30
|
+
], FindTokenByNetworkAndAddressDto.prototype, "address", void 0);
|
32
31
|
__decorate([
|
33
32
|
(0, class_validator_1.IsNotEmpty)(),
|
34
33
|
(0, class_validator_1.IsNumber)(),
|
35
34
|
__metadata("design:type", Number)
|
36
|
-
],
|
35
|
+
], FindTokenByNetworkAndAddressDto.prototype, "coinType", void 0);
|
37
36
|
__decorate([
|
38
37
|
(0, class_validator_1.IsNotEmpty)(),
|
39
38
|
(0, class_validator_1.IsNumber)(),
|
40
39
|
__metadata("design:type", Number)
|
41
|
-
],
|
42
|
-
//# sourceMappingURL=
|
40
|
+
], FindTokenByNetworkAndAddressDto.prototype, "chainId", void 0);
|
41
|
+
//# sourceMappingURL=token.find.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"token.find.dto.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.find.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,+BAA+B;IAC1C,YAAY,OAAiD;QAC3D,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAMhB,GAAM;QACN,OAAO,IAAI,+BAA+B,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,CAAC,QAAQ,CAMb,IAAS;QACT,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,+BAA+B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACtE,CAAC;CAyBF;AAhDD,0EAgDC;AAjBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACK;AAQhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACK"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export declare class TokenUpdateDto {
|
2
|
+
constructor(partial: Partial<TokenUpdateDto>);
|
2
3
|
/**
|
3
4
|
* @description Converts an entity to TokenUpdateDto
|
4
5
|
* @param obj The entity to convert
|
@@ -6,12 +7,13 @@ export declare class TokenUpdateDto {
|
|
6
7
|
*/
|
7
8
|
static from<T extends {
|
8
9
|
id: string;
|
9
|
-
networkId
|
10
|
-
name
|
11
|
-
symbol
|
12
|
-
|
13
|
-
|
14
|
-
decimals
|
10
|
+
networkId?: string;
|
11
|
+
name?: string;
|
12
|
+
symbol?: string;
|
13
|
+
address?: string;
|
14
|
+
img?: string;
|
15
|
+
decimals?: number;
|
16
|
+
isBase?: boolean;
|
15
17
|
}>(obj: T): TokenUpdateDto;
|
16
18
|
/**
|
17
19
|
* @description Converts a list of entities to an array of TokenUpdateDto
|
@@ -20,12 +22,13 @@ export declare class TokenUpdateDto {
|
|
20
22
|
*/
|
21
23
|
static listFrom<T extends {
|
22
24
|
id: string;
|
23
|
-
networkId
|
24
|
-
name
|
25
|
-
symbol
|
26
|
-
|
27
|
-
|
28
|
-
decimals
|
25
|
+
networkId?: string;
|
26
|
+
name?: string;
|
27
|
+
symbol?: string;
|
28
|
+
address?: string;
|
29
|
+
img?: string;
|
30
|
+
decimals?: number;
|
31
|
+
isBase?: boolean;
|
29
32
|
}>(objs: T[]): TokenUpdateDto[];
|
30
33
|
/**
|
31
34
|
* @description The unique identifier for the token
|
@@ -36,32 +39,33 @@ export declare class TokenUpdateDto {
|
|
36
39
|
* @description The ID of the token's network
|
37
40
|
* @example '123e4567-e89b-12d3-a456-426614174000'
|
38
41
|
*/
|
39
|
-
networkId
|
42
|
+
networkId?: string;
|
40
43
|
/**
|
41
44
|
* @description The name of the token
|
42
45
|
* @example 'Ethereum'
|
43
46
|
*/
|
44
|
-
name
|
47
|
+
name?: string;
|
45
48
|
/**
|
46
49
|
* @description The symbol of the token
|
47
50
|
* @example 'ETH'
|
48
51
|
*/
|
49
|
-
symbol
|
50
|
-
/**
|
51
|
-
* @description The image URL for the token
|
52
|
-
* @example '/public/images/token/usdt.svg'
|
53
|
-
*/
|
54
|
-
image: string;
|
52
|
+
symbol?: string;
|
55
53
|
/**
|
56
54
|
* @description The contract address of the token (optional)
|
57
55
|
* @example '0xc0...'
|
58
56
|
*/
|
59
|
-
|
57
|
+
address?: string;
|
58
|
+
/**
|
59
|
+
* @description The image URL for the token
|
60
|
+
* @example '/public/images/token/usdt.svg'
|
61
|
+
*/
|
62
|
+
img?: string;
|
60
63
|
/**
|
61
64
|
* @description The number of decimals the token uses
|
62
65
|
* @example 18
|
63
66
|
*/
|
64
|
-
decimals
|
65
|
-
|
67
|
+
decimals?: number;
|
68
|
+
isNative?: boolean;
|
69
|
+
isBase?: boolean;
|
66
70
|
}
|
67
71
|
//# sourceMappingURL=token.update.dto.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"token.update.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.update.dto.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"token.update.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.update.dto.ts"],"names":[],"mappings":"AASA,qBAAa,cAAc;gBACb,OAAO,EAAE,OAAO,CAAC,cAAc,CAAC;IAI5C;;;;OAIG;WACW,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,EACD,GAAG,EAAE,CAAC,GAAG,cAAc;IAIzB;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE;IAI9B;;;OAGG;IAGH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IAEH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAEH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,OAAO,CAAS;IAG3B,MAAM,CAAC,EAAE,OAAO,CAAS;CAC1B"}
|
@@ -13,8 +13,10 @@ exports.TokenUpdateDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const common_1 = require("../../../../common");
|
15
15
|
class TokenUpdateDto {
|
16
|
-
constructor() {
|
16
|
+
constructor(partial) {
|
17
|
+
this.isNative = false;
|
17
18
|
this.isBase = false;
|
19
|
+
Object.assign(this, partial);
|
18
20
|
}
|
19
21
|
/**
|
20
22
|
* @description Converts an entity to TokenUpdateDto
|
@@ -22,15 +24,7 @@ class TokenUpdateDto {
|
|
22
24
|
* @returns A TokenUpdateDto instance
|
23
25
|
*/
|
24
26
|
static from(obj) {
|
25
|
-
|
26
|
-
dto.id = obj.id;
|
27
|
-
dto.networkId = obj.networkId;
|
28
|
-
dto.name = obj.name;
|
29
|
-
dto.symbol = obj.symbol;
|
30
|
-
dto.image = obj.image;
|
31
|
-
dto.contract = obj.contract;
|
32
|
-
dto.decimals = obj.decimals;
|
33
|
-
return dto;
|
27
|
+
return new TokenUpdateDto(obj);
|
34
28
|
}
|
35
29
|
/**
|
36
30
|
* @description Converts a list of entities to an array of TokenUpdateDto
|
@@ -43,36 +37,40 @@ class TokenUpdateDto {
|
|
43
37
|
}
|
44
38
|
exports.TokenUpdateDto = TokenUpdateDto;
|
45
39
|
__decorate([
|
40
|
+
(0, class_validator_1.IsNotEmpty)(),
|
46
41
|
(0, class_validator_1.IsUUID)(),
|
47
42
|
__metadata("design:type", String)
|
48
43
|
], TokenUpdateDto.prototype, "id", void 0);
|
49
44
|
__decorate([
|
50
45
|
(0, class_validator_1.IsUUID)(),
|
51
|
-
(0, class_validator_1.IsNotEmpty)(),
|
52
46
|
__metadata("design:type", String)
|
53
47
|
], TokenUpdateDto.prototype, "networkId", void 0);
|
54
48
|
__decorate([
|
55
|
-
(0, class_validator_1.IsNotEmpty)(),
|
56
49
|
(0, class_validator_1.IsString)(),
|
57
50
|
__metadata("design:type", String)
|
58
51
|
], TokenUpdateDto.prototype, "name", void 0);
|
59
52
|
__decorate([
|
60
|
-
(0, class_validator_1.IsNotEmpty)(),
|
61
53
|
(0, class_validator_1.IsString)(),
|
62
54
|
__metadata("design:type", String)
|
63
55
|
], TokenUpdateDto.prototype, "symbol", void 0);
|
64
56
|
__decorate([
|
65
|
-
(0, class_validator_1.IsNotEmpty)(),
|
66
57
|
(0, class_validator_1.IsString)(),
|
67
58
|
__metadata("design:type", String)
|
68
|
-
], TokenUpdateDto.prototype, "
|
59
|
+
], TokenUpdateDto.prototype, "address", void 0);
|
69
60
|
__decorate([
|
70
61
|
(0, class_validator_1.IsString)(),
|
71
62
|
__metadata("design:type", String)
|
72
|
-
], TokenUpdateDto.prototype, "
|
63
|
+
], TokenUpdateDto.prototype, "img", void 0);
|
73
64
|
__decorate([
|
74
|
-
(0, class_validator_1.IsNotEmpty)(),
|
75
65
|
(0, class_validator_1.IsNumber)(),
|
76
66
|
__metadata("design:type", Number)
|
77
67
|
], TokenUpdateDto.prototype, "decimals", void 0);
|
68
|
+
__decorate([
|
69
|
+
(0, class_validator_1.IsBoolean)(),
|
70
|
+
__metadata("design:type", Boolean)
|
71
|
+
], TokenUpdateDto.prototype, "isNative", void 0);
|
72
|
+
__decorate([
|
73
|
+
(0, class_validator_1.IsBoolean)(),
|
74
|
+
__metadata("design:type", Boolean)
|
75
|
+
], TokenUpdateDto.prototype, "isBase", void 0);
|
78
76
|
//# sourceMappingURL=token.update.dto.js.map
|
@@ -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;;0CACE;AAOX;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"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export declare class FindTokenByNetworkAndAddressDto {
|
2
|
+
constructor(partial: Partial<FindTokenByNetworkAndAddressDto>);
|
3
|
+
static from<T extends {
|
4
|
+
address: string;
|
5
|
+
coinType: number;
|
6
|
+
chainId: number;
|
7
|
+
}>(obj: T): FindTokenByNetworkAndAddressDto;
|
8
|
+
static listFrom<T extends {
|
9
|
+
address: string;
|
10
|
+
coinType: number;
|
11
|
+
chainId: number;
|
12
|
+
}>(objs: T[]): FindTokenByNetworkAndAddressDto[];
|
13
|
+
/**
|
14
|
+
* @description The address of token contract
|
15
|
+
* @example '0x1234567890abcdef1234567890abcdef12345678'
|
16
|
+
*/
|
17
|
+
address: string;
|
18
|
+
/**
|
19
|
+
* @description The coinType of token network
|
20
|
+
* @example 60
|
21
|
+
*/
|
22
|
+
coinType: number;
|
23
|
+
/**
|
24
|
+
* @description The chainId of token network
|
25
|
+
* @example 1
|
26
|
+
*/
|
27
|
+
chainId: number;
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=token_find.dto.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"token_find.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token_find.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,+BAA+B;gBAC9B,OAAO,EAAE,OAAO,CAAC,+BAA+B,CAAC;WAI/C,IAAI,CAChB,CAAC,SAAS;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACjB,EACD,GAAG,EAAE,CAAC,GAAG,+BAA+B;IAI1C,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,OAAO,EAAE,MAAM,CAAC;QAChB,QAAQ,EAAE,MAAM,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACjB,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,+BAA+B,EAAE;IAI/C;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;CACjB"}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.FindTokenByNetworkAndAddressDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class FindTokenByNetworkAndAddressDto {
|
15
|
+
constructor(partial) {
|
16
|
+
Object.assign(this, partial);
|
17
|
+
}
|
18
|
+
static from(obj) {
|
19
|
+
return new FindTokenByNetworkAndAddressDto(obj);
|
20
|
+
}
|
21
|
+
static listFrom(objs) {
|
22
|
+
return objs.map((obj) => FindTokenByNetworkAndAddressDto.from(obj));
|
23
|
+
}
|
24
|
+
}
|
25
|
+
exports.FindTokenByNetworkAndAddressDto = FindTokenByNetworkAndAddressDto;
|
26
|
+
__decorate([
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], FindTokenByNetworkAndAddressDto.prototype, "address", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, class_validator_1.IsNotEmpty)(),
|
33
|
+
(0, class_validator_1.IsNumber)(),
|
34
|
+
__metadata("design:type", Number)
|
35
|
+
], FindTokenByNetworkAndAddressDto.prototype, "coinType", void 0);
|
36
|
+
__decorate([
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
38
|
+
(0, class_validator_1.IsNumber)(),
|
39
|
+
__metadata("design:type", Number)
|
40
|
+
], FindTokenByNetworkAndAddressDto.prototype, "chainId", void 0);
|
41
|
+
//# sourceMappingURL=token_find.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"token_find.dto.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token_find.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuD;AAEvD,MAAa,+BAA+B;IAC1C,YAAY,OAAiD;QAC3D,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/B,CAAC;IAEM,MAAM,CAAC,IAAI,CAMhB,GAAM;QACN,OAAO,IAAI,+BAA+B,CAAC,GAAG,CAAC,CAAC;IAClD,CAAC;IAED,MAAM,CAAC,QAAQ,CAMb,IAAS;QACT,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,+BAA+B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACtE,CAAC;CAyBF;AAhDD,0EAgDC;AAjBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACK;AAQhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gEACK"}
|
@@ -0,0 +1 @@
|
|
1
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/seed-data/index.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/seed-data/index.ts"],"names":[],"mappings":""}
|