@plutonlabs/sdk 0.0.12-beta → 0.0.14-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/dist/common/consts/index.d.ts.map +1 -1
  2. package/dist/common/consts/index.js.map +1 -1
  3. package/dist/common/enums/index.d.ts +2 -2
  4. package/dist/common/index.d.ts +4 -4
  5. package/dist/common/interfaces/IChain.d.ts +1 -1
  6. package/dist/common/utils/index.d.ts +2 -2
  7. package/dist/index.d.ts +8 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +11 -0
  10. package/dist/index.js.map +1 -1
  11. package/dist/modules/chainsync/domain/dto/chain_transaction.dto.d.ts.map +1 -1
  12. package/dist/modules/chainsync/domain/dto/chain_transaction.dto.js.map +1 -1
  13. package/dist/modules/index.d.ts.map +1 -1
  14. package/dist/modules/index.js.map +1 -1
  15. package/dist/modules/network/domain/dto/index.d.ts.map +1 -1
  16. package/dist/modules/network/domain/dto/index.js.map +1 -1
  17. package/dist/modules/network/domain/dto/network.dto.d.ts +13 -1
  18. package/dist/modules/network/domain/dto/network.dto.d.ts.map +1 -1
  19. package/dist/modules/network/domain/dto/network.dto.js +8 -1
  20. package/dist/modules/network/domain/dto/network.dto.js.map +1 -1
  21. package/dist/modules/network/domain/dto/network_provider.dto.d.ts +1 -1
  22. package/dist/modules/network/domain/dto/network_provider.dto.d.ts.map +1 -1
  23. package/dist/modules/network/domain/dto/network_provider.dto.js.map +1 -1
  24. package/dist/modules/network/domain/dto/network_provider.update.dto.d.ts +20 -19
  25. package/dist/modules/network/domain/dto/network_provider.update.dto.d.ts.map +1 -1
  26. package/dist/modules/network/domain/dto/network_provider.update.dto.js +4 -15
  27. package/dist/modules/network/domain/dto/network_provider.update.dto.js.map +1 -1
  28. package/dist/modules/network/domain/dto/network_tokens_view.dto.d.ts +19 -7
  29. package/dist/modules/network/domain/dto/network_tokens_view.dto.d.ts.map +1 -1
  30. package/dist/modules/network/domain/dto/network_tokens_view.dto.js +4 -2
  31. package/dist/modules/network/domain/dto/network_tokens_view.dto.js.map +1 -1
  32. package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.d.ts.map +1 -1
  33. package/dist/modules/quote/domain/dto/affiliate/claim_affiliate_signature_response.dto.js.map +1 -1
  34. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.d.ts.map +1 -1
  35. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_request.dto.js.map +1 -1
  36. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts +13 -13
  37. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.d.ts.map +1 -1
  38. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js +1 -1
  39. package/dist/modules/quote/domain/dto/affiliate/create_claim_affiliate_response.dto.js.map +1 -1
  40. package/dist/modules/quote/domain/dto/index.d.ts +3 -3
  41. package/dist/modules/quote/domain/dto/quote/index.d.ts +15 -16
  42. package/dist/modules/quote/domain/dto/quote/index.d.ts.map +1 -1
  43. package/dist/modules/quote/domain/dto/quote/index.js +0 -1
  44. package/dist/modules/quote/domain/dto/quote/index.js.map +1 -1
  45. package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts +1 -6
  46. package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.d.ts.map +1 -1
  47. package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js +4 -8
  48. package/dist/modules/quote/domain/dto/quote/quote_base_intent_request.dto.js.map +1 -1
  49. package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts +18 -0
  50. package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.d.ts.map +1 -0
  51. package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js +44 -0
  52. package/dist/modules/quote/domain/dto/quote/quote_base_intent_response.dto.js.map +1 -0
  53. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts +1 -9
  54. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.d.ts.map +1 -1
  55. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js +2 -2
  56. package/dist/modules/quote/domain/dto/quote/quote_bridge_intent_response.dto.js.map +1 -1
  57. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts +2 -2
  58. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.d.ts.map +1 -1
  59. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js +3 -3
  60. package/dist/modules/quote/domain/dto/quote/quote_estimate_bridge_intent_request.dto.js.map +1 -1
  61. package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts +0 -9
  62. package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.d.ts.map +1 -1
  63. package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js +0 -57
  64. package/dist/modules/quote/domain/dto/quote/quote_intent_response.dto.js.map +1 -1
  65. package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts +6 -1
  66. package/dist/modules/quote/domain/dto/quote/quote_request.dto.d.ts.map +1 -1
  67. package/dist/modules/quote/domain/dto/quote/quote_request.dto.js +5 -6
  68. package/dist/modules/quote/domain/dto/quote/quote_request.dto.js.map +1 -1
  69. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts +2 -1
  70. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.d.ts.map +1 -1
  71. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js +5 -8
  72. package/dist/modules/quote/domain/dto/quote/quote_request_lifecycle.dto.js.map +1 -1
  73. package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts +13 -0
  74. package/dist/modules/quote/domain/dto/quote/quote_response.dto.d.ts.map +1 -1
  75. package/dist/modules/quote/domain/dto/quote/quote_response.dto.js +13 -21
  76. package/dist/modules/quote/domain/dto/quote/quote_response.dto.js.map +1 -1
  77. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts +1 -0
  78. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.d.ts.map +1 -1
  79. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js +4 -7
  80. package/dist/modules/quote/domain/dto/quote/quote_response_lifecycle.dto.js.map +1 -1
  81. package/dist/modules/quote/domain/dto/refund/index.d.ts +4 -4
  82. package/dist/modules/quote/domain/dto/refund/index.d.ts.map +1 -1
  83. package/dist/modules/quote/domain/dto/refund/index.js +2 -2
  84. package/dist/modules/quote/domain/dto/refund/index.js.map +1 -1
  85. package/dist/modules/quote/domain/dto/refund/{create_quote_refund_request.dto.d.ts → quote_refund_request.dto.d.ts} +3 -3
  86. package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.d.ts.map +1 -0
  87. package/dist/modules/quote/domain/dto/refund/{create_quote_refund_request.dto.js → quote_refund_request.dto.js} +9 -7
  88. package/dist/modules/quote/domain/dto/refund/quote_refund_request.dto.js.map +1 -0
  89. package/dist/modules/quote/domain/dto/refund/{create_quote_refund_response.dto.d.ts → quote_refund_response.dto.d.ts} +4 -4
  90. package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.d.ts.map +1 -0
  91. package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.js +37 -0
  92. package/dist/modules/quote/domain/dto/refund/quote_refund_response.dto.js.map +1 -0
  93. package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.d.ts +1 -1
  94. package/dist/modules/quote/domain/dto/refund/quote_refund_signature_request.dto.js +1 -1
  95. package/dist/modules/quote/domain/index.d.ts +2 -2
  96. package/dist/modules/swap/domain/dto/index.d.ts +3 -3
  97. package/dist/modules/swap/domain/dto/index.d.ts.map +1 -1
  98. package/dist/modules/swap/domain/dto/index.js +3 -3
  99. package/dist/modules/swap/domain/dto/index.js.map +1 -1
  100. package/dist/modules/swap/domain/dto/{token_swap_output_estimate_response.dto.d.ts → swap_estimate_response.dto.d.ts} +2 -2
  101. package/dist/modules/swap/domain/dto/swap_estimate_response.dto.d.ts.map +1 -0
  102. package/dist/modules/swap/domain/dto/{token_swap_output_estimate_response.dto.js → swap_estimate_response.dto.js} +5 -5
  103. package/dist/modules/swap/domain/dto/swap_estimate_response.dto.js.map +1 -0
  104. package/dist/modules/swap/domain/dto/{token_swap_request.dto.d.ts → swap_request.dto.d.ts} +3 -3
  105. package/dist/modules/swap/domain/dto/swap_request.dto.d.ts.map +1 -0
  106. package/dist/modules/swap/domain/dto/{token_swap_request.dto.js → swap_request.dto.js} +7 -7
  107. package/dist/modules/swap/domain/dto/swap_request.dto.js.map +1 -0
  108. package/dist/modules/swap/domain/dto/{token_swap_response.dto.d.ts → swap_response.dto.d.ts} +2 -2
  109. package/dist/modules/swap/domain/dto/swap_response.dto.d.ts.map +1 -0
  110. package/dist/modules/swap/domain/dto/{token_swap_response.dto.js → swap_response.dto.js} +7 -7
  111. package/dist/modules/swap/domain/dto/swap_response.dto.js.map +1 -0
  112. package/dist/modules/swap/index.d.ts +1 -1
  113. package/dist/modules/token/domain/dto/index.d.ts +1 -1
  114. package/dist/modules/token/domain/dto/index.d.ts.map +1 -1
  115. package/dist/modules/token/domain/dto/index.js +1 -1
  116. package/dist/modules/token/domain/dto/index.js.map +1 -1
  117. package/dist/modules/token/domain/dto/token.dto.d.ts +15 -14
  118. package/dist/modules/token/domain/dto/token.dto.d.ts.map +1 -1
  119. package/dist/modules/token/domain/dto/token.dto.js +20 -11
  120. package/dist/modules/token/domain/dto/token.dto.js.map +1 -1
  121. package/dist/modules/token/domain/dto/token.find.dto.d.ts +29 -0
  122. package/dist/modules/token/domain/dto/token.find.dto.d.ts.map +1 -0
  123. package/dist/modules/token/domain/dto/{network_contract_find_token.dto.js → token.find.dto.js} +9 -10
  124. package/dist/modules/token/domain/dto/token.find.dto.js.map +1 -0
  125. package/dist/modules/token/domain/dto/token.update.dto.d.ts +27 -23
  126. package/dist/modules/token/domain/dto/token.update.dto.d.ts.map +1 -1
  127. package/dist/modules/token/domain/dto/token.update.dto.js +16 -18
  128. package/dist/modules/token/domain/dto/token.update.dto.js.map +1 -1
  129. package/dist/modules/token/domain/dto/token_find.dto.d.ts +29 -0
  130. package/dist/modules/token/domain/dto/token_find.dto.d.ts.map +1 -0
  131. package/dist/modules/token/domain/dto/token_find.dto.js +41 -0
  132. package/dist/modules/token/domain/dto/token_find.dto.js.map +1 -0
  133. package/dist/seed/networks_seed.json +86 -0
  134. package/dist/seed/pluton_contracts_seed.json +1302 -0
  135. package/dist/seed/tokens_seed.json +145 -0
  136. package/dist/seed-data/index.d.ts +1 -0
  137. package/dist/seed-data/index.d.ts.map +1 -0
  138. package/dist/seed-data/index.js +2 -0
  139. package/dist/seed-data/index.js.map +1 -0
  140. package/dist/seed-data/networks_seed.json +47 -0
  141. package/dist/seed-data/pluton_contracts_seed.json +1312 -0
  142. package/dist/seed-data/tokens_seed.json +119 -0
  143. package/package.json +4 -1
  144. package/Readme.md +0 -1
  145. package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.d.ts +0 -31
  146. package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.d.ts.map +0 -1
  147. package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.js +0 -53
  148. package/dist/modules/quote/domain/dto/quote/quote_estimate_response.dto.js.map +0 -1
  149. package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.d.ts.map +0 -1
  150. package/dist/modules/quote/domain/dto/refund/create_quote_refund_request.dto.js.map +0 -1
  151. package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.d.ts.map +0 -1
  152. package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js +0 -7
  153. package/dist/modules/quote/domain/dto/refund/create_quote_refund_response.dto.js.map +0 -1
  154. package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.d.ts.map +0 -1
  155. package/dist/modules/swap/domain/dto/token_swap_output_estimate_response.dto.js.map +0 -1
  156. package/dist/modules/swap/domain/dto/token_swap_request.dto.d.ts.map +0 -1
  157. package/dist/modules/swap/domain/dto/token_swap_request.dto.js.map +0 -1
  158. package/dist/modules/swap/domain/dto/token_swap_response.dto.d.ts.map +0 -1
  159. package/dist/modules/swap/domain/dto/token_swap_response.dto.js.map +0 -1
  160. package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts +0 -29
  161. package/dist/modules/token/domain/dto/network_contract_find_token.dto.d.ts.map +0 -1
  162. package/dist/modules/token/domain/dto/network_contract_find_token.dto.js.map +0 -1
@@ -0,0 +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,yBAAyB;CAwBrC;AAxBD,8DAwBC;AAjBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;;iEACc;AAQvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACK;AAQhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACO"}
@@ -1,4 +1,4 @@
1
- export declare class CreateUserRefundSignatureResponseDto {
1
+ export declare class QuoteRefundResponseDto {
2
2
  /**
3
3
  * @description The signature for the refund request
4
4
  * @example '0xabcdef...'
@@ -15,9 +15,9 @@ export declare class CreateUserRefundSignatureResponseDto {
15
15
  */
16
16
  chainId: number;
17
17
  /**
18
- * @description The address of the asset for the refunded
18
+ * @description The address of the contract for the refunded
19
19
  * @example '0x123456...'
20
20
  */
21
- assetAddress: string;
21
+ address: string;
22
22
  }
23
- //# sourceMappingURL=create_quote_refund_response.dto.d.ts.map
23
+ //# sourceMappingURL=quote_refund_response.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quote_refund_response.dto.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_response.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,sBAAsB;IACjC;;;OAGG;IAGH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.QuoteRefundResponseDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class QuoteRefundResponseDto {
15
+ }
16
+ exports.QuoteRefundResponseDto = QuoteRefundResponseDto;
17
+ __decorate([
18
+ (0, class_validator_1.IsNotEmpty)(),
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], QuoteRefundResponseDto.prototype, "signature", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNotEmpty)(),
24
+ (0, class_validator_1.IsNumber)(),
25
+ __metadata("design:type", Number)
26
+ ], QuoteRefundResponseDto.prototype, "coinType", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsNotEmpty)(),
29
+ (0, class_validator_1.IsNumber)(),
30
+ __metadata("design:type", Number)
31
+ ], QuoteRefundResponseDto.prototype, "chainId", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsNotEmpty)(),
34
+ (0, class_validator_1.IsString)(),
35
+ __metadata("design:type", String)
36
+ ], QuoteRefundResponseDto.prototype, "address", void 0);
37
+ //# sourceMappingURL=quote_refund_response.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quote_refund_response.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/quote/domain/dto/refund/quote_refund_response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAiE;AAEjE,MAAa,sBAAsB;CAgClC;AAhCD,wDAgCC;AAzBC;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACO;AAQlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACK;AAQhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACK"}
@@ -3,7 +3,7 @@ export declare class QuoteRefundSignatureRequestDto {
3
3
  * @description quote request id that the user sent money for
4
4
  * @example '123e4567-e89b-12d3-a456-426614174000'
5
5
  */
6
- bridgeQuoteRequestId: string;
6
+ quoteRefundRequestId: string;
7
7
  /**
8
8
  * @description address of the user that should be refunded to
9
9
  * @example '0x112233445566778899abcdef'
@@ -18,7 +18,7 @@ __decorate([
18
18
  (0, class_validator_1.IsNotEmpty)(),
19
19
  (0, class_validator_1.IsUUID)(),
20
20
  __metadata("design:type", String)
21
- ], QuoteRefundSignatureRequestDto.prototype, "bridgeQuoteRequestId", void 0);
21
+ ], QuoteRefundSignatureRequestDto.prototype, "quoteRefundRequestId", void 0);
22
22
  __decorate([
23
23
  (0, class_validator_1.IsNotEmpty)(),
24
24
  __metadata("design:type", String)
@@ -1,3 +1,3 @@
1
- export * from "./dto";
2
- export * from "./enums";
1
+ export * from './dto';
2
+ export * from './enums';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './token_swap_request.dto';
2
- export * from './token_swap_response.dto';
3
- export * from './token_swap_output_estimate_response.dto';
1
+ export * from './swap_request.dto';
2
+ export * from './swap_response.dto';
3
+ export * from './swap_estimate_response.dto';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2CAA2C,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;AACpC,cAAc,8BAA8B,CAAC"}
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./token_swap_request.dto"), exports);
18
- __exportStar(require("./token_swap_response.dto"), exports);
19
- __exportStar(require("./token_swap_output_estimate_response.dto"), exports);
17
+ __exportStar(require("./swap_request.dto"), exports);
18
+ __exportStar(require("./swap_response.dto"), exports);
19
+ __exportStar(require("./swap_estimate_response.dto"), exports);
20
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAyC;AACzC,4DAA0C;AAC1C,4EAA0D"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,sDAAoC;AACpC,+DAA6C"}
@@ -1,9 +1,9 @@
1
1
  import BigNumber from 'bignumber.js';
2
- export declare class TokenSwapOutputEstimateResponsetDto {
2
+ export declare class SwapEstimateResponsetDto {
3
3
  /**
4
4
  * @description The amount of tokens after the swap
5
5
  * @example 1000
6
6
  */
7
7
  amount: BigNumber;
8
8
  }
9
- //# sourceMappingURL=token_swap_output_estimate_response.dto.d.ts.map
9
+ //# sourceMappingURL=swap_estimate_response.dto.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -12,14 +12,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.TokenSwapOutputEstimateResponsetDto = void 0;
15
+ exports.SwapEstimateResponsetDto = void 0;
16
16
  const bignumber_js_1 = __importDefault(require("bignumber.js"));
17
17
  const class_validator_1 = require("class-validator");
18
- class TokenSwapOutputEstimateResponsetDto {
18
+ class SwapEstimateResponsetDto {
19
19
  }
20
- exports.TokenSwapOutputEstimateResponsetDto = TokenSwapOutputEstimateResponsetDto;
20
+ exports.SwapEstimateResponsetDto = SwapEstimateResponsetDto;
21
21
  __decorate([
22
22
  (0, class_validator_1.IsNotEmpty)(),
23
23
  __metadata("design:type", bignumber_js_1.default)
24
- ], TokenSwapOutputEstimateResponsetDto.prototype, "amount", void 0);
25
- //# sourceMappingURL=token_swap_output_estimate_response.dto.js.map
24
+ ], SwapEstimateResponsetDto.prototype, "amount", void 0);
25
+ //# sourceMappingURL=swap_estimate_response.dto.js.map
@@ -0,0 +1 @@
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"}
@@ -1,4 +1,4 @@
1
- export declare class TokenSwapRequestDto {
1
+ export declare class SwapRequestDto {
2
2
  /**
3
3
  * @description The type of coin for the swap
4
4
  * @example 60
@@ -13,6 +13,6 @@ export declare class TokenSwapRequestDto {
13
13
  * @description The address of the contract for the swap
14
14
  * @example '0x1234567890abcdef'
15
15
  */
16
- contract: string;
16
+ address: string;
17
17
  }
18
- //# sourceMappingURL=token_swap_request.dto.d.ts.map
18
+ //# sourceMappingURL=swap_request.dto.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"swap_request.dto.d.ts","sourceRoot":"","sources":["../../../../../src/modules/swap/domain/dto/swap_request.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,cAAc;IACzB;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IAEH,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -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.TokenSwapRequestDto = void 0;
12
+ exports.SwapRequestDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class TokenSwapRequestDto {
14
+ class SwapRequestDto {
15
15
  }
16
- exports.TokenSwapRequestDto = TokenSwapRequestDto;
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
- ], TokenSwapRequestDto.prototype, "coinType", void 0);
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
- ], TokenSwapRequestDto.prototype, "chainId", void 0);
26
+ ], SwapRequestDto.prototype, "chainId", void 0);
27
27
  __decorate([
28
28
  (0, class_validator_1.IsString)(),
29
29
  __metadata("design:type", String)
30
- ], TokenSwapRequestDto.prototype, "contract", void 0);
31
- //# sourceMappingURL=token_swap_request.dto.js.map
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"}
@@ -1,4 +1,4 @@
1
- export declare class TokenSwapResponsetDto {
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=token_swap_response.dto.d.ts.map
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.TokenSwapResponsetDto = void 0;
12
+ exports.SwapResponsetDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class TokenSwapResponsetDto {
14
+ class SwapResponsetDto {
15
15
  }
16
- exports.TokenSwapResponsetDto = TokenSwapResponsetDto;
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
- ], TokenSwapResponsetDto.prototype, "transactionData", void 0);
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
- ], TokenSwapResponsetDto.prototype, "transactionValue", void 0);
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
- ], TokenSwapResponsetDto.prototype, "transactionReceiver", void 0);
32
- //# sourceMappingURL=token_swap_response.dto.js.map
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 "./domain";
1
+ export * from './domain';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export * from './token.dto';
2
2
  export * from './token.update.dto';
3
- export * from './network_contract_find_token.dto';
3
+ export * from './token.find.dto';
4
4
  //# 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,mCAAmC,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("./network_contract_find_token.dto"), exports);
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,oEAAkD"}
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
- contract: string;
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
- contract: string;
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":"AAGA,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,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,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,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;KAClB,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,QAAQ,EAAE;IAIxB;;;OAGG;IAGH,SAAS,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAGH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IAGH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IAGH,KAAK,EAAE,MAAM,CAAC;IAEd;;;OAGG;IAEH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IAGH,QAAQ,EAAE,MAAM,CAAC;IAEjB,MAAM,EAAE,OAAO,CAAS;CACzB"}
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"}
@@ -10,10 +10,11 @@ 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");
13
14
  const class_validator_1 = require("class-validator");
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.contract = obj.contract;
30
+ dto.address = obj.address;
30
31
  dto.decimals = obj.decimals;
31
- dto.image = obj.image;
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, "name", void 0);
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, "symbol", void 0);
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, "image", void 0);
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,qDAAyE;AACzE,+CAA8C;AAE9C,MAAa,QAAQ;IAArB;QA2FE,WAAM,GAAY,KAAK,CAAC;IAC1B,CAAC;IA3FC;;;;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,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC5B,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC5B,GAAG,CAAC,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACtB,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;CAkDF;AA5FD,4BA4FC;AA1CC;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;2CACK;AAQlB;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;;uCACG;AAOd;IADC,IAAA,0BAAQ,GAAE;;0CACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACM"}
1
+ {"version":3,"file":"token.dto.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAuD;AACvD,qDAMyB;AAEzB,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"}
@@ -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.NetworkContractFindTokenDto = void 0;
12
+ exports.FindTokenByNetworkAndAddressDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class NetworkContractFindTokenDto {
14
+ class FindTokenByNetworkAndAddressDto {
15
15
  constructor(partial) {
16
16
  Object.assign(this, partial);
17
17
  }
18
18
  static from(obj) {
19
- const dto = new NetworkContractFindTokenDto(obj);
20
- return dto;
19
+ return new FindTokenByNetworkAndAddressDto(obj);
21
20
  }
22
21
  static listFrom(objs) {
23
- return objs.map((obj) => NetworkContractFindTokenDto.from(obj));
22
+ return objs.map((obj) => FindTokenByNetworkAndAddressDto.from(obj));
24
23
  }
25
24
  }
26
- exports.NetworkContractFindTokenDto = NetworkContractFindTokenDto;
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
- ], NetworkContractFindTokenDto.prototype, "contract", void 0);
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
- ], NetworkContractFindTokenDto.prototype, "coinType", void 0);
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
- ], NetworkContractFindTokenDto.prototype, "chainId", void 0);
42
- //# sourceMappingURL=network_contract_find_token.dto.js.map
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"}