@heliofi/launchpad-common 0.0.1

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 (227) hide show
  1. package/dist/index.d.ts +1 -0
  2. package/dist/index.js +18 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/src/domain/constants/blockchain.d.ts +13 -0
  5. package/dist/src/domain/constants/blockchain.js +27 -0
  6. package/dist/src/domain/constants/blockchain.js.map +1 -0
  7. package/dist/src/domain/constants/currency.d.ts +8 -0
  8. package/dist/src/domain/constants/currency.js +20 -0
  9. package/dist/src/domain/constants/currency.js.map +1 -0
  10. package/dist/src/domain/constants/curveType.d.ts +3 -0
  11. package/dist/src/domain/constants/curveType.js +8 -0
  12. package/dist/src/domain/constants/curveType.js.map +1 -0
  13. package/dist/src/domain/constants/generalNetwork.d.ts +5 -0
  14. package/dist/src/domain/constants/generalNetwork.js +10 -0
  15. package/dist/src/domain/constants/generalNetwork.js.map +1 -0
  16. package/dist/src/domain/constants/index.d.ts +9 -0
  17. package/dist/src/domain/constants/index.js +26 -0
  18. package/dist/src/domain/constants/index.js.map +1 -0
  19. package/dist/src/domain/constants/tokenType.d.ts +4 -0
  20. package/dist/src/domain/constants/tokenType.js +9 -0
  21. package/dist/src/domain/constants/tokenType.js.map +1 -0
  22. package/dist/src/domain/constants/tradeDirection.d.ts +4 -0
  23. package/dist/src/domain/constants/tradeDirection.js +9 -0
  24. package/dist/src/domain/constants/tradeDirection.js.map +1 -0
  25. package/dist/src/domain/constants/txStatus.d.ts +6 -0
  26. package/dist/src/domain/constants/txStatus.js +11 -0
  27. package/dist/src/domain/constants/txStatus.js.map +1 -0
  28. package/dist/src/domain/constants/txStatusTokenHeaderName.d.ts +1 -0
  29. package/dist/src/domain/constants/txStatusTokenHeaderName.js +5 -0
  30. package/dist/src/domain/constants/txStatusTokenHeaderName.js.map +1 -0
  31. package/dist/src/domain/constants/txType.d.ts +6 -0
  32. package/dist/src/domain/constants/txType.js +11 -0
  33. package/dist/src/domain/constants/txType.js.map +1 -0
  34. package/dist/src/domain/curves/BaseCurve.d.ts +13 -0
  35. package/dist/src/domain/curves/BaseCurve.js +7 -0
  36. package/dist/src/domain/curves/BaseCurve.js.map +1 -0
  37. package/dist/src/domain/curves/LinearCurveV1.d.ts +16 -0
  38. package/dist/src/domain/curves/LinearCurveV1.js +120 -0
  39. package/dist/src/domain/curves/LinearCurveV1.js.map +1 -0
  40. package/dist/src/domain/curves/index.d.ts +3 -0
  41. package/dist/src/domain/curves/index.js +20 -0
  42. package/dist/src/domain/curves/index.js.map +1 -0
  43. package/dist/src/domain/curves/tests/LinearCurveV1.spec.d.ts +1 -0
  44. package/dist/src/domain/curves/tests/LinearCurveV1.spec.js +52 -0
  45. package/dist/src/domain/curves/tests/LinearCurveV1.spec.js.map +1 -0
  46. package/dist/src/domain/curves/types.d.ts +18 -0
  47. package/dist/src/domain/curves/types.js +31 -0
  48. package/dist/src/domain/curves/types.js.map +1 -0
  49. package/dist/src/domain/index.d.ts +3 -0
  50. package/dist/src/domain/index.js +20 -0
  51. package/dist/src/domain/index.js.map +1 -0
  52. package/dist/src/domain/model/blockchain/entities/BaseBlockchain.entity.d.ts +7 -0
  53. package/dist/src/domain/model/blockchain/entities/BaseBlockchain.entity.js +8 -0
  54. package/dist/src/domain/model/blockchain/entities/BaseBlockchain.entity.js.map +1 -0
  55. package/dist/src/domain/model/blockchain/entities/Blockchain.entity.d.ts +9 -0
  56. package/dist/src/domain/model/blockchain/entities/Blockchain.entity.js +8 -0
  57. package/dist/src/domain/model/blockchain/entities/Blockchain.entity.js.map +1 -0
  58. package/dist/src/domain/model/blockchain/entities/index.d.ts +2 -0
  59. package/dist/src/domain/model/blockchain/entities/index.js +19 -0
  60. package/dist/src/domain/model/blockchain/entities/index.js.map +1 -0
  61. package/dist/src/domain/model/blockchain/index.d.ts +1 -0
  62. package/dist/src/domain/model/blockchain/index.js +18 -0
  63. package/dist/src/domain/model/blockchain/index.js.map +1 -0
  64. package/dist/src/domain/model/blockchain-engine/entities/BlockchainEngine.entity.d.ts +6 -0
  65. package/dist/src/domain/model/blockchain-engine/entities/BlockchainEngine.entity.js +8 -0
  66. package/dist/src/domain/model/blockchain-engine/entities/BlockchainEngine.entity.js.map +1 -0
  67. package/dist/src/domain/model/blockchain-engine/entities/index.d.ts +1 -0
  68. package/dist/src/domain/model/blockchain-engine/entities/index.js +18 -0
  69. package/dist/src/domain/model/blockchain-engine/entities/index.js.map +1 -0
  70. package/dist/src/domain/model/blockchain-engine/index.d.ts +1 -0
  71. package/dist/src/domain/model/blockchain-engine/index.js +18 -0
  72. package/dist/src/domain/model/blockchain-engine/index.js.map +1 -0
  73. package/dist/src/domain/model/currency/dtos/createCurrency.dto.d.ts +13 -0
  74. package/dist/src/domain/model/currency/dtos/createCurrency.dto.js +68 -0
  75. package/dist/src/domain/model/currency/dtos/createCurrency.dto.js.map +1 -0
  76. package/dist/src/domain/model/currency/dtos/index.d.ts +1 -0
  77. package/dist/src/domain/model/currency/dtos/index.js +18 -0
  78. package/dist/src/domain/model/currency/dtos/index.js.map +1 -0
  79. package/dist/src/domain/model/currency/entities/BaseCurrency.entity.d.ts +14 -0
  80. package/dist/src/domain/model/currency/entities/BaseCurrency.entity.js +8 -0
  81. package/dist/src/domain/model/currency/entities/BaseCurrency.entity.js.map +1 -0
  82. package/dist/src/domain/model/currency/entities/Currency.entity.d.ts +5 -0
  83. package/dist/src/domain/model/currency/entities/Currency.entity.js +8 -0
  84. package/dist/src/domain/model/currency/entities/Currency.entity.js.map +1 -0
  85. package/dist/src/domain/model/currency/entities/index.d.ts +2 -0
  86. package/dist/src/domain/model/currency/entities/index.js +19 -0
  87. package/dist/src/domain/model/currency/entities/index.js.map +1 -0
  88. package/dist/src/domain/model/currency/index.d.ts +2 -0
  89. package/dist/src/domain/model/currency/index.js +19 -0
  90. package/dist/src/domain/model/currency/index.js.map +1 -0
  91. package/dist/src/domain/model/curve/dtos/CreateCurve.dto.d.ts +12 -0
  92. package/dist/src/domain/model/curve/dtos/CreateCurve.dto.js +60 -0
  93. package/dist/src/domain/model/curve/dtos/CreateCurve.dto.js.map +1 -0
  94. package/dist/src/domain/model/curve/dtos/index.d.ts +1 -0
  95. package/dist/src/domain/model/curve/dtos/index.js +18 -0
  96. package/dist/src/domain/model/curve/dtos/index.js.map +1 -0
  97. package/dist/src/domain/model/curve/entities/Curve.entity.d.ts +15 -0
  98. package/dist/src/domain/model/curve/entities/Curve.entity.js +8 -0
  99. package/dist/src/domain/model/curve/entities/Curve.entity.js.map +1 -0
  100. package/dist/src/domain/model/curve/entities/index.d.ts +1 -0
  101. package/dist/src/domain/model/curve/entities/index.js +18 -0
  102. package/dist/src/domain/model/curve/entities/index.js.map +1 -0
  103. package/dist/src/domain/model/curve/index.d.ts +2 -0
  104. package/dist/src/domain/model/curve/index.js +19 -0
  105. package/dist/src/domain/model/curve/index.js.map +1 -0
  106. package/dist/src/domain/model/entity/Entity.d.ts +4 -0
  107. package/dist/src/domain/model/entity/Entity.js +14 -0
  108. package/dist/src/domain/model/entity/Entity.js.map +1 -0
  109. package/dist/src/domain/model/entity/index.d.ts +1 -0
  110. package/dist/src/domain/model/entity/index.js +6 -0
  111. package/dist/src/domain/model/entity/index.js.map +1 -0
  112. package/dist/src/domain/model/example/example.d.ts +4 -0
  113. package/dist/src/domain/model/example/example.js +8 -0
  114. package/dist/src/domain/model/example/example.js.map +1 -0
  115. package/dist/src/domain/model/example/index.d.ts +1 -0
  116. package/dist/src/domain/model/example/index.js +18 -0
  117. package/dist/src/domain/model/example/index.js.map +1 -0
  118. package/dist/src/domain/model/index.d.ts +9 -0
  119. package/dist/src/domain/model/index.js +26 -0
  120. package/dist/src/domain/model/index.js.map +1 -0
  121. package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.d.ts +6 -0
  122. package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.js +37 -0
  123. package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.js.map +1 -0
  124. package/dist/src/domain/model/mint/create/dtos/index.d.ts +1 -0
  125. package/dist/src/domain/model/mint/create/dtos/index.js +18 -0
  126. package/dist/src/domain/model/mint/create/dtos/index.js.map +1 -0
  127. package/dist/src/domain/model/mint/create/entities/CreateMintResponse.entity.d.ts +4 -0
  128. package/dist/src/domain/model/mint/create/entities/CreateMintResponse.entity.js +8 -0
  129. package/dist/src/domain/model/mint/create/entities/CreateMintResponse.entity.js.map +1 -0
  130. package/dist/src/domain/model/mint/create/entities/index.d.ts +1 -0
  131. package/dist/src/domain/model/mint/create/entities/index.js +18 -0
  132. package/dist/src/domain/model/mint/create/entities/index.js.map +1 -0
  133. package/dist/src/domain/model/mint/create/index.d.ts +2 -0
  134. package/dist/src/domain/model/mint/create/index.js +19 -0
  135. package/dist/src/domain/model/mint/create/index.js.map +1 -0
  136. package/dist/src/domain/model/mint/index.d.ts +3 -0
  137. package/dist/src/domain/model/mint/index.js +20 -0
  138. package/dist/src/domain/model/mint/index.js.map +1 -0
  139. package/dist/src/domain/model/mint/prepare/dtos/MintTxPrepare.dto.d.ts +3 -0
  140. package/dist/src/domain/model/mint/prepare/dtos/MintTxPrepare.dto.js +22 -0
  141. package/dist/src/domain/model/mint/prepare/dtos/MintTxPrepare.dto.js.map +1 -0
  142. package/dist/src/domain/model/mint/prepare/dtos/index.d.ts +1 -0
  143. package/dist/src/domain/model/mint/prepare/dtos/index.js +18 -0
  144. package/dist/src/domain/model/mint/prepare/dtos/index.js.map +1 -0
  145. package/dist/src/domain/model/mint/prepare/entities/MintTxPrepareResponse.entity.d.ts +5 -0
  146. package/dist/src/domain/model/mint/prepare/entities/MintTxPrepareResponse.entity.js +8 -0
  147. package/dist/src/domain/model/mint/prepare/entities/MintTxPrepareResponse.entity.js.map +1 -0
  148. package/dist/src/domain/model/mint/prepare/entities/index.d.ts +1 -0
  149. package/dist/src/domain/model/mint/prepare/entities/index.js +18 -0
  150. package/dist/src/domain/model/mint/prepare/entities/index.js.map +1 -0
  151. package/dist/src/domain/model/mint/prepare/index.d.ts +2 -0
  152. package/dist/src/domain/model/mint/prepare/index.js +19 -0
  153. package/dist/src/domain/model/mint/prepare/index.js.map +1 -0
  154. package/dist/src/domain/model/mint/submit/dtos/MintTxSubmit.dto.d.ts +3 -0
  155. package/dist/src/domain/model/mint/submit/dtos/MintTxSubmit.dto.js +8 -0
  156. package/dist/src/domain/model/mint/submit/dtos/MintTxSubmit.dto.js.map +1 -0
  157. package/dist/src/domain/model/mint/submit/dtos/index.d.ts +1 -0
  158. package/dist/src/domain/model/mint/submit/dtos/index.js +18 -0
  159. package/dist/src/domain/model/mint/submit/dtos/index.js.map +1 -0
  160. package/dist/src/domain/model/mint/submit/entities/MintTxSubmitResponse.entity.d.ts +3 -0
  161. package/dist/src/domain/model/mint/submit/entities/MintTxSubmitResponse.entity.js +8 -0
  162. package/dist/src/domain/model/mint/submit/entities/MintTxSubmitResponse.entity.js.map +1 -0
  163. package/dist/src/domain/model/mint/submit/entities/index.d.ts +1 -0
  164. package/dist/src/domain/model/mint/submit/entities/index.js +18 -0
  165. package/dist/src/domain/model/mint/submit/entities/index.js.map +1 -0
  166. package/dist/src/domain/model/mint/submit/index.d.ts +2 -0
  167. package/dist/src/domain/model/mint/submit/index.js +19 -0
  168. package/dist/src/domain/model/mint/submit/index.js.map +1 -0
  169. package/dist/src/domain/model/token-pair/constants.d.ts +4 -0
  170. package/dist/src/domain/model/token-pair/constants.js +9 -0
  171. package/dist/src/domain/model/token-pair/constants.js.map +1 -0
  172. package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.d.ts +12 -0
  173. package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.js +60 -0
  174. package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.js.map +1 -0
  175. package/dist/src/domain/model/token-pair/dtos/index.d.ts +1 -0
  176. package/dist/src/domain/model/token-pair/dtos/index.js +18 -0
  177. package/dist/src/domain/model/token-pair/dtos/index.js.map +1 -0
  178. package/dist/src/domain/model/token-pair/entities/TokenPair.entity.d.ts +19 -0
  179. package/dist/src/domain/model/token-pair/entities/TokenPair.entity.js +8 -0
  180. package/dist/src/domain/model/token-pair/entities/TokenPair.entity.js.map +1 -0
  181. package/dist/src/domain/model/token-pair/entities/index.d.ts +1 -0
  182. package/dist/src/domain/model/token-pair/entities/index.js +18 -0
  183. package/dist/src/domain/model/token-pair/entities/index.js.map +1 -0
  184. package/dist/src/domain/model/token-pair/index.d.ts +3 -0
  185. package/dist/src/domain/model/token-pair/index.js +20 -0
  186. package/dist/src/domain/model/token-pair/index.js.map +1 -0
  187. package/dist/src/domain/model/tx/index.d.ts +1 -0
  188. package/dist/src/domain/model/tx/index.js +18 -0
  189. package/dist/src/domain/model/tx/index.js.map +1 -0
  190. package/dist/src/domain/model/tx/submit/dtos/BaseTxSubmit.dto.d.ts +5 -0
  191. package/dist/src/domain/model/tx/submit/dtos/BaseTxSubmit.dto.js +32 -0
  192. package/dist/src/domain/model/tx/submit/dtos/BaseTxSubmit.dto.js.map +1 -0
  193. package/dist/src/domain/model/tx/submit/dtos/index.d.ts +1 -0
  194. package/dist/src/domain/model/tx/submit/dtos/index.js +18 -0
  195. package/dist/src/domain/model/tx/submit/dtos/index.js.map +1 -0
  196. package/dist/src/domain/model/tx/submit/entities/BaseTxSubmitResponse.entity.d.ts +7 -0
  197. package/dist/src/domain/model/tx/submit/entities/BaseTxSubmitResponse.entity.js +8 -0
  198. package/dist/src/domain/model/tx/submit/entities/BaseTxSubmitResponse.entity.js.map +1 -0
  199. package/dist/src/domain/model/tx/submit/entities/TxStatusResponse.entity.d.ts +6 -0
  200. package/dist/src/domain/model/tx/submit/entities/TxStatusResponse.entity.js +8 -0
  201. package/dist/src/domain/model/tx/submit/entities/TxStatusResponse.entity.js.map +1 -0
  202. package/dist/src/domain/model/tx/submit/entities/TxStatusTokenPayload.d.ts +4 -0
  203. package/dist/src/domain/model/tx/submit/entities/TxStatusTokenPayload.js +3 -0
  204. package/dist/src/domain/model/tx/submit/entities/TxStatusTokenPayload.js.map +1 -0
  205. package/dist/src/domain/model/tx/submit/entities/index.d.ts +3 -0
  206. package/dist/src/domain/model/tx/submit/entities/index.js +20 -0
  207. package/dist/src/domain/model/tx/submit/entities/index.js.map +1 -0
  208. package/dist/src/domain/model/tx/submit/index.d.ts +2 -0
  209. package/dist/src/domain/model/tx/submit/index.js +19 -0
  210. package/dist/src/domain/model/tx/submit/index.js.map +1 -0
  211. package/dist/src/domain/model/tx-token-payload/TxTokenPayload.d.ts +5 -0
  212. package/dist/src/domain/model/tx-token-payload/TxTokenPayload.js +3 -0
  213. package/dist/src/domain/model/tx-token-payload/TxTokenPayload.js.map +1 -0
  214. package/dist/src/domain/model/tx-token-payload/index.d.ts +1 -0
  215. package/dist/src/domain/model/tx-token-payload/index.js +18 -0
  216. package/dist/src/domain/model/tx-token-payload/index.js.map +1 -0
  217. package/dist/src/domain/services/AmountService.d.ts +9 -0
  218. package/dist/src/domain/services/AmountService.js +34 -0
  219. package/dist/src/domain/services/AmountService.js.map +1 -0
  220. package/dist/src/index.d.ts +1 -0
  221. package/dist/src/index.js +18 -0
  222. package/dist/src/index.js.map +1 -0
  223. package/dist/tsconfig.tsbuildinfo +1 -0
  224. package/index.ts +1 -0
  225. package/package.json +28 -0
  226. package/tsconfig.build.json +4 -0
  227. package/tsconfig.json +10 -0
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./model"), exports);
18
+ __exportStar(require("./constants"), exports);
19
+ __exportStar(require("./curves"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,8CAA4B;AAC5B,2CAAyB"}
@@ -0,0 +1,7 @@
1
+ import { Entity } from '../../entity';
2
+ import { BlockchainSymbol } from '../../../constants';
3
+ export declare class BaseBlockchain extends Entity {
4
+ id: string;
5
+ name: string;
6
+ symbol: BlockchainSymbol;
7
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseBlockchain = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class BaseBlockchain extends entity_1.Entity {
6
+ }
7
+ exports.BaseBlockchain = BaseBlockchain;
8
+ //# sourceMappingURL=BaseBlockchain.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseBlockchain.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/entities/BaseBlockchain.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,cAAe,SAAQ,eAAM;CAMzC;AAND,wCAMC"}
@@ -0,0 +1,9 @@
1
+ import { Entity } from '../../entity';
2
+ import { BlockchainSymbol } from '../../../constants';
3
+ import { BlockchainEngine } from '../../blockchain-engine';
4
+ export declare class Blockchain extends Entity {
5
+ id: string;
6
+ name: string;
7
+ symbol: BlockchainSymbol;
8
+ engine: BlockchainEngine;
9
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Blockchain = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class Blockchain extends entity_1.Entity {
6
+ }
7
+ exports.Blockchain = Blockchain;
8
+ //# sourceMappingURL=Blockchain.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Blockchain.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/entities/Blockchain.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAItC,MAAa,UAAW,SAAQ,eAAM;CAQrC;AARD,gCAQC"}
@@ -0,0 +1,2 @@
1
+ export * from './BaseBlockchain.entity';
2
+ export * from './Blockchain.entity';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./BaseBlockchain.entity"), exports);
18
+ __exportStar(require("./Blockchain.entity"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC;AACxC,sDAAoC"}
@@ -0,0 +1 @@
1
+ export * from './entities';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/blockchain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,6 @@
1
+ import { Entity } from '../../entity';
2
+ import { BlockchainEngineType } from '../../../constants';
3
+ export declare class BlockchainEngine extends Entity {
4
+ id: string;
5
+ type: BlockchainEngineType;
6
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BlockchainEngine = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class BlockchainEngine extends entity_1.Entity {
6
+ }
7
+ exports.BlockchainEngine = BlockchainEngine;
8
+ //# sourceMappingURL=BlockchainEngine.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlockchainEngine.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain-engine/entities/BlockchainEngine.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,gBAAiB,SAAQ,eAAM;CAI3C;AAJD,4CAIC"}
@@ -0,0 +1 @@
1
+ export * from './BlockchainEngine.entity';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./BlockchainEngine.entity"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/blockchain-engine/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C"}
@@ -0,0 +1 @@
1
+ export * from './entities';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/blockchain-engine/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
@@ -0,0 +1,13 @@
1
+ import { CurrencyType } from '../../../constants';
2
+ export declare class CreateCurrencyDto {
3
+ symbol: string;
4
+ name: string;
5
+ mintAddress: string;
6
+ blockchain: string;
7
+ decimals: number;
8
+ symbolPrefix?: string;
9
+ order: number;
10
+ type: CurrencyType;
11
+ iconUrl: string;
12
+ coinMarketCapId?: number;
13
+ }
@@ -0,0 +1,68 @@
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.CreateCurrencyDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const constants_1 = require("../../../constants");
15
+ class CreateCurrencyDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", String)
21
+ ], CreateCurrencyDto.prototype, "symbol", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], CreateCurrencyDto.prototype, "name", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.IsNotEmpty)(),
30
+ __metadata("design:type", String)
31
+ ], CreateCurrencyDto.prototype, "mintAddress", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ (0, class_validator_1.IsNotEmpty)(),
35
+ __metadata("design:type", String)
36
+ ], CreateCurrencyDto.prototype, "blockchain", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsNumber)(),
39
+ (0, class_validator_1.IsNotEmpty)(),
40
+ __metadata("design:type", Number)
41
+ ], CreateCurrencyDto.prototype, "decimals", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsString)(),
44
+ (0, class_validator_1.IsOptional)(),
45
+ __metadata("design:type", String)
46
+ ], CreateCurrencyDto.prototype, "symbolPrefix", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsNumber)(),
49
+ (0, class_validator_1.IsNotEmpty)(),
50
+ __metadata("design:type", Number)
51
+ ], CreateCurrencyDto.prototype, "order", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsString)(),
54
+ (0, class_validator_1.IsNotEmpty)(),
55
+ __metadata("design:type", String)
56
+ ], CreateCurrencyDto.prototype, "type", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsString)(),
59
+ (0, class_validator_1.IsNotEmpty)(),
60
+ __metadata("design:type", String)
61
+ ], CreateCurrencyDto.prototype, "iconUrl", void 0);
62
+ __decorate([
63
+ (0, class_validator_1.IsNumber)(),
64
+ (0, class_validator_1.IsOptional)(),
65
+ __metadata("design:type", Number)
66
+ ], CreateCurrencyDto.prototype, "coinMarketCapId", void 0);
67
+ exports.CreateCurrencyDto = CreateCurrencyDto;
68
+ //# sourceMappingURL=createCurrency.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createCurrency.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/dtos/createCurrency.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAC7E,kDAAkD;AAElD,MAAa,iBAAiB;CAwC7B;AAvCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;sDACO;AAEpB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;mDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACS;AAEtB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACM;AAEnB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACY;AAvC3B,8CAwCC"}
@@ -0,0 +1 @@
1
+ export * from './createCurrency.dto';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./createCurrency.dto"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
@@ -0,0 +1,14 @@
1
+ import { Entity } from '../../entity';
2
+ import { CurrencyType } from '../../../constants';
3
+ export declare class BaseCurrency extends Entity {
4
+ id: string;
5
+ symbol: string;
6
+ name: string;
7
+ mintAddress: string;
8
+ decimals: number;
9
+ symbolPrefix?: string;
10
+ order: number;
11
+ type: CurrencyType;
12
+ iconUrl: string;
13
+ coinMarketCapId?: string;
14
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BaseCurrency = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class BaseCurrency extends entity_1.Entity {
6
+ }
7
+ exports.BaseCurrency = BaseCurrency;
8
+ //# sourceMappingURL=BaseCurrency.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseCurrency.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/entities/BaseCurrency.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAGtC,MAAa,YAAa,SAAQ,eAAM;CAoBvC;AApBD,oCAoBC"}
@@ -0,0 +1,5 @@
1
+ import { Blockchain } from '../../blockchain';
2
+ import { BaseCurrency } from './BaseCurrency.entity';
3
+ export declare class Currency extends BaseCurrency {
4
+ blockchain: Blockchain;
5
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Currency = void 0;
4
+ const BaseCurrency_entity_1 = require("./BaseCurrency.entity");
5
+ class Currency extends BaseCurrency_entity_1.BaseCurrency {
6
+ }
7
+ exports.Currency = Currency;
8
+ //# sourceMappingURL=Currency.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Currency.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/entities/Currency.entity.ts"],"names":[],"mappings":";;;AACA,+DAAqD;AAErD,MAAa,QAAS,SAAQ,kCAAY;CAEzC;AAFD,4BAEC"}
@@ -0,0 +1,2 @@
1
+ export * from './BaseCurrency.entity';
2
+ export * from './Currency.entity';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./BaseCurrency.entity"), exports);
18
+ __exportStar(require("./Currency.entity"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/currency/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,oDAAkC"}
@@ -0,0 +1,2 @@
1
+ export * from './dtos';
2
+ export * from './entities';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dtos"), exports);
18
+ __exportStar(require("./entities"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/currency/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,6CAA2B"}
@@ -0,0 +1,12 @@
1
+ import { CurveType } from '../../../constants';
2
+ export declare class CreateCurveDto {
3
+ type: CurveType;
4
+ symbol: string;
5
+ feeBps: number;
6
+ totalSupply: bigint;
7
+ minAllocationTokenAmount: bigint;
8
+ maxAllocationTokenAmount: bigint;
9
+ marketCapThreshold: bigint;
10
+ marketCapCurrencyId: string;
11
+ quoteCurrencyId: string;
12
+ }
@@ -0,0 +1,60 @@
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.CreateCurveDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const constants_1 = require("../../../constants");
15
+ class CreateCurveDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsEnum)(constants_1.CurveType),
20
+ (0, class_validator_1.IsNotEmpty)(),
21
+ __metadata("design:type", String)
22
+ ], CreateCurveDto.prototype, "type", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ (0, class_validator_1.IsNotEmpty)(),
26
+ __metadata("design:type", String)
27
+ ], CreateCurveDto.prototype, "symbol", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsNumber)(),
30
+ (0, class_validator_1.IsNotEmpty)(),
31
+ __metadata("design:type", Number)
32
+ ], CreateCurveDto.prototype, "feeBps", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsNotEmpty)(),
35
+ __metadata("design:type", BigInt)
36
+ ], CreateCurveDto.prototype, "totalSupply", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsNotEmpty)(),
39
+ __metadata("design:type", BigInt)
40
+ ], CreateCurveDto.prototype, "minAllocationTokenAmount", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsNotEmpty)(),
43
+ __metadata("design:type", BigInt)
44
+ ], CreateCurveDto.prototype, "maxAllocationTokenAmount", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsNotEmpty)(),
47
+ __metadata("design:type", BigInt)
48
+ ], CreateCurveDto.prototype, "marketCapThreshold", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsString)(),
51
+ (0, class_validator_1.IsNotEmpty)(),
52
+ __metadata("design:type", String)
53
+ ], CreateCurveDto.prototype, "marketCapCurrencyId", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsString)(),
56
+ (0, class_validator_1.IsNotEmpty)(),
57
+ __metadata("design:type", String)
58
+ ], CreateCurveDto.prototype, "quoteCurrencyId", void 0);
59
+ exports.CreateCurveDto = CreateCurveDto;
60
+ //# sourceMappingURL=CreateCurve.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateCurve.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/curve/dtos/CreateCurve.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AACzE,kDAA+C;AAE/C,MAAa,cAAc;CAiC1B;AAhCC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,EAAC,qBAAS,CAAC;IACjB,IAAA,4BAAU,GAAE;;4CACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACE;AAEf;IAAC,IAAA,4BAAU,GAAE;;mDACO;AAEpB;IAAC,IAAA,4BAAU,GAAE;;gEACoB;AAEjC;IAAC,IAAA,4BAAU,GAAE;;gEACoB;AAEjC;IAAC,IAAA,4BAAU,GAAE;;0DACc;AAE3B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;2DACe;AAE5B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACW;AAhC1B,wCAiCC"}
@@ -0,0 +1 @@
1
+ export * from './CreateCurve.dto';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./CreateCurve.dto"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/curve/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
@@ -0,0 +1,15 @@
1
+ import { Entity } from '../../entity';
2
+ import { CurveType } from '../../../constants';
3
+ import { BaseCurrency } from '../../currency';
4
+ export declare class Curve extends Entity {
5
+ type: CurveType;
6
+ symbol: string;
7
+ feeBps: number;
8
+ totalSupply: bigint;
9
+ minAllocationTokenAmount: bigint;
10
+ maxAllocationTokenAmount: bigint;
11
+ collateralThreshold: bigint;
12
+ marketCapThreshold: bigint;
13
+ marketCapCurrency: BaseCurrency;
14
+ quoteCurrency: BaseCurrency;
15
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Curve = void 0;
4
+ const entity_1 = require("../../entity");
5
+ class Curve extends entity_1.Entity {
6
+ }
7
+ exports.Curve = Curve;
8
+ //# sourceMappingURL=Curve.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Curve.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/curve/entities/Curve.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAItC,MAAa,KAAM,SAAQ,eAAM;CAoBhC;AApBD,sBAoBC"}
@@ -0,0 +1 @@
1
+ export * from './Curve.entity';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Curve.entity"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/curve/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -0,0 +1,2 @@
1
+ export * from './entities';
2
+ export * from './dtos';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entities"), exports);
18
+ __exportStar(require("./dtos"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/curve/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB"}
@@ -0,0 +1,4 @@
1
+ export declare class Entity {
2
+ static fromObject<T extends Entity>(record: T): T;
3
+ static fromObjects<T extends Entity>(records: T[]): T[];
4
+ }