@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
@@ -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: string;
10
- name: string;
11
- symbol: string;
12
- image: string;
13
- contract: string;
14
- decimals: number;
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: string;
24
- name: string;
25
- symbol: string;
26
- image: string;
27
- contract: string;
28
- decimals: number;
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: string;
42
+ networkId?: string;
40
43
  /**
41
44
  * @description The name of the token
42
45
  * @example 'Ethereum'
43
46
  */
44
- name: string;
47
+ name?: string;
45
48
  /**
46
49
  * @description The symbol of the token
47
50
  * @example 'ETH'
48
51
  */
49
- symbol: string;
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
- contract: string;
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: number;
65
- isBase: boolean;
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":"AAGA,qBAAa,cAAc;IACzB;;;;OAIG;WACW,IAAI,CAChB,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KAClB,EACD,GAAG,EAAE,CAAC,GAAG,cAAc;IAYzB;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS;QACR,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,EAAE,MAAM,CAAC;KAClB,EACD,IAAI,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE;IAI9B;;;OAGG;IAEH,EAAE,EAAE,MAAM,CAAC;IAEX;;;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.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"}
@@ -10,11 +10,13 @@ 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");
13
14
  const class_validator_1 = require("class-validator");
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
- const dto = new TokenUpdateDto();
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, "image", void 0);
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, "contract", void 0);
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,qDAAyE;AACzE,+CAA8C;AAE9C,MAAa,cAAc;IAA3B;QAqGE,WAAM,GAAY,KAAK,CAAC;IAC1B,CAAC;IArGC;;;;OAIG;IACI,MAAM,CAAC,IAAI,CAUhB,GAAM;QACN,MAAM,GAAG,GAAG,IAAI,cAAc,EAAE,CAAC;QACjC,GAAG,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC;QAChB,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,KAAK,GAAG,GAAG,CAAC,KAAK,CAAC;QACtB,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC5B,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC5B,OAAO,GAAG,CAAC;IACb,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAUb,IAAS;QACT,OAAO,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;CAyDF;AAtGD,wCAsGC;AAlDC;IADC,IAAA,wBAAM,GAAE;;0CACE;AAQX;IAFC,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;iDACK;AAQlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACE;AAQb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACI;AAQf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAOd;IADC,IAAA,0BAAQ,GAAE;;gDACM;AAQjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACM"}
1
+ {"version":3,"file":"token.update.dto.js","sourceRoot":"","sources":["../../../../../src/modules/token/domain/dto/token.update.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAuD;AACvD,qDAMyB;AAEzB,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,86 @@
1
+ [
2
+ {
3
+ "name": "Ethereum",
4
+ "img": "https://raw.githubusercontent.com/rango-exchange/assets/main/blockchains/ETH/icon.svg",
5
+ "coinType": 60,
6
+ "chainId": 1,
7
+ "lastParsedBlock": 0,
8
+ "confirmationCount": 2,
9
+ "providers": [],
10
+ "isActive": false
11
+ },
12
+ {
13
+ "name": "Arbitrum",
14
+ "img": "https://raw.githubusercontent.com/rango-exchange/assets/main/blockchains/ARBITRUM/icon.svg",
15
+ "coinType": 9001,
16
+ "chainId": 42161,
17
+ "lastParsedBlock": 0,
18
+ "confirmationCount": 10,
19
+ "providers": [
20
+ {
21
+ "name": "public",
22
+ "coinType": 9001,
23
+ "chainId": 42161,
24
+ "protocolType": 1,
25
+ "url": "https://arbitrum-one-rpc.publicnode.com",
26
+ "apiKey": ""
27
+ },
28
+ {
29
+ "name": "public",
30
+ "coinType": 9001,
31
+ "chainId": 42161,
32
+ "protocolType": 2,
33
+ "url": "wss://arbitrum-one-rpc.publicnode.com",
34
+ "apiKey": ""
35
+ }
36
+ ],
37
+ "isActive": true
38
+ },
39
+ {
40
+ "name": "Base",
41
+ "img": "https://raw.githubusercontent.com/rango-exchange/assets/main/blockchains/BASE/icon.svg",
42
+ "coinType": 8453,
43
+ "chainId": 8453,
44
+ "lastParsedBlock": 0,
45
+ "confirmationCount": 3,
46
+ "providers": [
47
+ {
48
+ "name": "public",
49
+ "coinType": 8453,
50
+ "chainId": 8453,
51
+ "protocolType": 1,
52
+ "url": "https://base-rpc.publicnode.com",
53
+ "apiKey": ""
54
+ },
55
+ {
56
+ "name": "public",
57
+ "coinType": 8453,
58
+ "chainId": 8453,
59
+ "protocolType": 2,
60
+ "url": "wss://base-rpc.publicnode.com",
61
+ "apiKey": ""
62
+ }
63
+ ],
64
+ "isActive": true
65
+ },
66
+ {
67
+ "name": "Mantle",
68
+ "img": "https://cryptologos.cc/logos/mantle-mnt-logo.svg",
69
+ "coinType": 5000,
70
+ "chainId": 5000,
71
+ "lastParsedBlock": 0,
72
+ "confirmationCount": 3,
73
+ "providers": [],
74
+ "isActive": false
75
+ },
76
+ {
77
+ "name": "TON",
78
+ "img": "https://raw.githubusercontent.com/rango-exchange/assets/main/blockchains/TON/icon.svg",
79
+ "coinType": 607,
80
+ "chainId": 0,
81
+ "lastParsedBlock": 0,
82
+ "confirmationCount": 1,
83
+ "providers": [],
84
+ "isActive": false
85
+ }
86
+ ]