@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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/src/domain/constants/blockchain.d.ts +13 -0
- package/dist/src/domain/constants/blockchain.js +27 -0
- package/dist/src/domain/constants/blockchain.js.map +1 -0
- package/dist/src/domain/constants/currency.d.ts +8 -0
- package/dist/src/domain/constants/currency.js +20 -0
- package/dist/src/domain/constants/currency.js.map +1 -0
- package/dist/src/domain/constants/curveType.d.ts +3 -0
- package/dist/src/domain/constants/curveType.js +8 -0
- package/dist/src/domain/constants/curveType.js.map +1 -0
- package/dist/src/domain/constants/generalNetwork.d.ts +5 -0
- package/dist/src/domain/constants/generalNetwork.js +10 -0
- package/dist/src/domain/constants/generalNetwork.js.map +1 -0
- package/dist/src/domain/constants/index.d.ts +9 -0
- package/dist/src/domain/constants/index.js +26 -0
- package/dist/src/domain/constants/index.js.map +1 -0
- package/dist/src/domain/constants/tokenType.d.ts +4 -0
- package/dist/src/domain/constants/tokenType.js +9 -0
- package/dist/src/domain/constants/tokenType.js.map +1 -0
- package/dist/src/domain/constants/tradeDirection.d.ts +4 -0
- package/dist/src/domain/constants/tradeDirection.js +9 -0
- package/dist/src/domain/constants/tradeDirection.js.map +1 -0
- package/dist/src/domain/constants/txStatus.d.ts +6 -0
- package/dist/src/domain/constants/txStatus.js +11 -0
- package/dist/src/domain/constants/txStatus.js.map +1 -0
- package/dist/src/domain/constants/txStatusTokenHeaderName.d.ts +1 -0
- package/dist/src/domain/constants/txStatusTokenHeaderName.js +5 -0
- package/dist/src/domain/constants/txStatusTokenHeaderName.js.map +1 -0
- package/dist/src/domain/constants/txType.d.ts +6 -0
- package/dist/src/domain/constants/txType.js +11 -0
- package/dist/src/domain/constants/txType.js.map +1 -0
- package/dist/src/domain/curves/BaseCurve.d.ts +13 -0
- package/dist/src/domain/curves/BaseCurve.js +7 -0
- package/dist/src/domain/curves/BaseCurve.js.map +1 -0
- package/dist/src/domain/curves/LinearCurveV1.d.ts +16 -0
- package/dist/src/domain/curves/LinearCurveV1.js +120 -0
- package/dist/src/domain/curves/LinearCurveV1.js.map +1 -0
- package/dist/src/domain/curves/index.d.ts +3 -0
- package/dist/src/domain/curves/index.js +20 -0
- package/dist/src/domain/curves/index.js.map +1 -0
- package/dist/src/domain/curves/tests/LinearCurveV1.spec.d.ts +1 -0
- package/dist/src/domain/curves/tests/LinearCurveV1.spec.js +52 -0
- package/dist/src/domain/curves/tests/LinearCurveV1.spec.js.map +1 -0
- package/dist/src/domain/curves/types.d.ts +18 -0
- package/dist/src/domain/curves/types.js +31 -0
- package/dist/src/domain/curves/types.js.map +1 -0
- package/dist/src/domain/index.d.ts +3 -0
- package/dist/src/domain/index.js +20 -0
- package/dist/src/domain/index.js.map +1 -0
- package/dist/src/domain/model/blockchain/entities/BaseBlockchain.entity.d.ts +7 -0
- package/dist/src/domain/model/blockchain/entities/BaseBlockchain.entity.js +8 -0
- package/dist/src/domain/model/blockchain/entities/BaseBlockchain.entity.js.map +1 -0
- package/dist/src/domain/model/blockchain/entities/Blockchain.entity.d.ts +9 -0
- package/dist/src/domain/model/blockchain/entities/Blockchain.entity.js +8 -0
- package/dist/src/domain/model/blockchain/entities/Blockchain.entity.js.map +1 -0
- package/dist/src/domain/model/blockchain/entities/index.d.ts +2 -0
- package/dist/src/domain/model/blockchain/entities/index.js +19 -0
- package/dist/src/domain/model/blockchain/entities/index.js.map +1 -0
- package/dist/src/domain/model/blockchain/index.d.ts +1 -0
- package/dist/src/domain/model/blockchain/index.js +18 -0
- package/dist/src/domain/model/blockchain/index.js.map +1 -0
- package/dist/src/domain/model/blockchain-engine/entities/BlockchainEngine.entity.d.ts +6 -0
- package/dist/src/domain/model/blockchain-engine/entities/BlockchainEngine.entity.js +8 -0
- package/dist/src/domain/model/blockchain-engine/entities/BlockchainEngine.entity.js.map +1 -0
- package/dist/src/domain/model/blockchain-engine/entities/index.d.ts +1 -0
- package/dist/src/domain/model/blockchain-engine/entities/index.js +18 -0
- package/dist/src/domain/model/blockchain-engine/entities/index.js.map +1 -0
- package/dist/src/domain/model/blockchain-engine/index.d.ts +1 -0
- package/dist/src/domain/model/blockchain-engine/index.js +18 -0
- package/dist/src/domain/model/blockchain-engine/index.js.map +1 -0
- package/dist/src/domain/model/currency/dtos/createCurrency.dto.d.ts +13 -0
- package/dist/src/domain/model/currency/dtos/createCurrency.dto.js +68 -0
- package/dist/src/domain/model/currency/dtos/createCurrency.dto.js.map +1 -0
- package/dist/src/domain/model/currency/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/currency/dtos/index.js +18 -0
- package/dist/src/domain/model/currency/dtos/index.js.map +1 -0
- package/dist/src/domain/model/currency/entities/BaseCurrency.entity.d.ts +14 -0
- package/dist/src/domain/model/currency/entities/BaseCurrency.entity.js +8 -0
- package/dist/src/domain/model/currency/entities/BaseCurrency.entity.js.map +1 -0
- package/dist/src/domain/model/currency/entities/Currency.entity.d.ts +5 -0
- package/dist/src/domain/model/currency/entities/Currency.entity.js +8 -0
- package/dist/src/domain/model/currency/entities/Currency.entity.js.map +1 -0
- package/dist/src/domain/model/currency/entities/index.d.ts +2 -0
- package/dist/src/domain/model/currency/entities/index.js +19 -0
- package/dist/src/domain/model/currency/entities/index.js.map +1 -0
- package/dist/src/domain/model/currency/index.d.ts +2 -0
- package/dist/src/domain/model/currency/index.js +19 -0
- package/dist/src/domain/model/currency/index.js.map +1 -0
- package/dist/src/domain/model/curve/dtos/CreateCurve.dto.d.ts +12 -0
- package/dist/src/domain/model/curve/dtos/CreateCurve.dto.js +60 -0
- package/dist/src/domain/model/curve/dtos/CreateCurve.dto.js.map +1 -0
- package/dist/src/domain/model/curve/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/curve/dtos/index.js +18 -0
- package/dist/src/domain/model/curve/dtos/index.js.map +1 -0
- package/dist/src/domain/model/curve/entities/Curve.entity.d.ts +15 -0
- package/dist/src/domain/model/curve/entities/Curve.entity.js +8 -0
- package/dist/src/domain/model/curve/entities/Curve.entity.js.map +1 -0
- package/dist/src/domain/model/curve/entities/index.d.ts +1 -0
- package/dist/src/domain/model/curve/entities/index.js +18 -0
- package/dist/src/domain/model/curve/entities/index.js.map +1 -0
- package/dist/src/domain/model/curve/index.d.ts +2 -0
- package/dist/src/domain/model/curve/index.js +19 -0
- package/dist/src/domain/model/curve/index.js.map +1 -0
- package/dist/src/domain/model/entity/Entity.d.ts +4 -0
- package/dist/src/domain/model/entity/Entity.js +14 -0
- package/dist/src/domain/model/entity/Entity.js.map +1 -0
- package/dist/src/domain/model/entity/index.d.ts +1 -0
- package/dist/src/domain/model/entity/index.js +6 -0
- package/dist/src/domain/model/entity/index.js.map +1 -0
- package/dist/src/domain/model/example/example.d.ts +4 -0
- package/dist/src/domain/model/example/example.js +8 -0
- package/dist/src/domain/model/example/example.js.map +1 -0
- package/dist/src/domain/model/example/index.d.ts +1 -0
- package/dist/src/domain/model/example/index.js +18 -0
- package/dist/src/domain/model/example/index.js.map +1 -0
- package/dist/src/domain/model/index.d.ts +9 -0
- package/dist/src/domain/model/index.js +26 -0
- package/dist/src/domain/model/index.js.map +1 -0
- package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.d.ts +6 -0
- package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.js +37 -0
- package/dist/src/domain/model/mint/create/dtos/CreateMint.dto.js.map +1 -0
- package/dist/src/domain/model/mint/create/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/mint/create/dtos/index.js +18 -0
- package/dist/src/domain/model/mint/create/dtos/index.js.map +1 -0
- package/dist/src/domain/model/mint/create/entities/CreateMintResponse.entity.d.ts +4 -0
- package/dist/src/domain/model/mint/create/entities/CreateMintResponse.entity.js +8 -0
- package/dist/src/domain/model/mint/create/entities/CreateMintResponse.entity.js.map +1 -0
- package/dist/src/domain/model/mint/create/entities/index.d.ts +1 -0
- package/dist/src/domain/model/mint/create/entities/index.js +18 -0
- package/dist/src/domain/model/mint/create/entities/index.js.map +1 -0
- package/dist/src/domain/model/mint/create/index.d.ts +2 -0
- package/dist/src/domain/model/mint/create/index.js +19 -0
- package/dist/src/domain/model/mint/create/index.js.map +1 -0
- package/dist/src/domain/model/mint/index.d.ts +3 -0
- package/dist/src/domain/model/mint/index.js +20 -0
- package/dist/src/domain/model/mint/index.js.map +1 -0
- package/dist/src/domain/model/mint/prepare/dtos/MintTxPrepare.dto.d.ts +3 -0
- package/dist/src/domain/model/mint/prepare/dtos/MintTxPrepare.dto.js +22 -0
- package/dist/src/domain/model/mint/prepare/dtos/MintTxPrepare.dto.js.map +1 -0
- package/dist/src/domain/model/mint/prepare/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/mint/prepare/dtos/index.js +18 -0
- package/dist/src/domain/model/mint/prepare/dtos/index.js.map +1 -0
- package/dist/src/domain/model/mint/prepare/entities/MintTxPrepareResponse.entity.d.ts +5 -0
- package/dist/src/domain/model/mint/prepare/entities/MintTxPrepareResponse.entity.js +8 -0
- package/dist/src/domain/model/mint/prepare/entities/MintTxPrepareResponse.entity.js.map +1 -0
- package/dist/src/domain/model/mint/prepare/entities/index.d.ts +1 -0
- package/dist/src/domain/model/mint/prepare/entities/index.js +18 -0
- package/dist/src/domain/model/mint/prepare/entities/index.js.map +1 -0
- package/dist/src/domain/model/mint/prepare/index.d.ts +2 -0
- package/dist/src/domain/model/mint/prepare/index.js +19 -0
- package/dist/src/domain/model/mint/prepare/index.js.map +1 -0
- package/dist/src/domain/model/mint/submit/dtos/MintTxSubmit.dto.d.ts +3 -0
- package/dist/src/domain/model/mint/submit/dtos/MintTxSubmit.dto.js +8 -0
- package/dist/src/domain/model/mint/submit/dtos/MintTxSubmit.dto.js.map +1 -0
- package/dist/src/domain/model/mint/submit/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/mint/submit/dtos/index.js +18 -0
- package/dist/src/domain/model/mint/submit/dtos/index.js.map +1 -0
- package/dist/src/domain/model/mint/submit/entities/MintTxSubmitResponse.entity.d.ts +3 -0
- package/dist/src/domain/model/mint/submit/entities/MintTxSubmitResponse.entity.js +8 -0
- package/dist/src/domain/model/mint/submit/entities/MintTxSubmitResponse.entity.js.map +1 -0
- package/dist/src/domain/model/mint/submit/entities/index.d.ts +1 -0
- package/dist/src/domain/model/mint/submit/entities/index.js +18 -0
- package/dist/src/domain/model/mint/submit/entities/index.js.map +1 -0
- package/dist/src/domain/model/mint/submit/index.d.ts +2 -0
- package/dist/src/domain/model/mint/submit/index.js +19 -0
- package/dist/src/domain/model/mint/submit/index.js.map +1 -0
- package/dist/src/domain/model/token-pair/constants.d.ts +4 -0
- package/dist/src/domain/model/token-pair/constants.js +9 -0
- package/dist/src/domain/model/token-pair/constants.js.map +1 -0
- package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.d.ts +12 -0
- package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.js +60 -0
- package/dist/src/domain/model/token-pair/dtos/CreateTokenPair.dto.js.map +1 -0
- package/dist/src/domain/model/token-pair/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/token-pair/dtos/index.js +18 -0
- package/dist/src/domain/model/token-pair/dtos/index.js.map +1 -0
- package/dist/src/domain/model/token-pair/entities/TokenPair.entity.d.ts +19 -0
- package/dist/src/domain/model/token-pair/entities/TokenPair.entity.js +8 -0
- package/dist/src/domain/model/token-pair/entities/TokenPair.entity.js.map +1 -0
- package/dist/src/domain/model/token-pair/entities/index.d.ts +1 -0
- package/dist/src/domain/model/token-pair/entities/index.js +18 -0
- package/dist/src/domain/model/token-pair/entities/index.js.map +1 -0
- package/dist/src/domain/model/token-pair/index.d.ts +3 -0
- package/dist/src/domain/model/token-pair/index.js +20 -0
- package/dist/src/domain/model/token-pair/index.js.map +1 -0
- package/dist/src/domain/model/tx/index.d.ts +1 -0
- package/dist/src/domain/model/tx/index.js +18 -0
- package/dist/src/domain/model/tx/index.js.map +1 -0
- package/dist/src/domain/model/tx/submit/dtos/BaseTxSubmit.dto.d.ts +5 -0
- package/dist/src/domain/model/tx/submit/dtos/BaseTxSubmit.dto.js +32 -0
- package/dist/src/domain/model/tx/submit/dtos/BaseTxSubmit.dto.js.map +1 -0
- package/dist/src/domain/model/tx/submit/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/tx/submit/dtos/index.js +18 -0
- package/dist/src/domain/model/tx/submit/dtos/index.js.map +1 -0
- package/dist/src/domain/model/tx/submit/entities/BaseTxSubmitResponse.entity.d.ts +7 -0
- package/dist/src/domain/model/tx/submit/entities/BaseTxSubmitResponse.entity.js +8 -0
- package/dist/src/domain/model/tx/submit/entities/BaseTxSubmitResponse.entity.js.map +1 -0
- package/dist/src/domain/model/tx/submit/entities/TxStatusResponse.entity.d.ts +6 -0
- package/dist/src/domain/model/tx/submit/entities/TxStatusResponse.entity.js +8 -0
- package/dist/src/domain/model/tx/submit/entities/TxStatusResponse.entity.js.map +1 -0
- package/dist/src/domain/model/tx/submit/entities/TxStatusTokenPayload.d.ts +4 -0
- package/dist/src/domain/model/tx/submit/entities/TxStatusTokenPayload.js +3 -0
- package/dist/src/domain/model/tx/submit/entities/TxStatusTokenPayload.js.map +1 -0
- package/dist/src/domain/model/tx/submit/entities/index.d.ts +3 -0
- package/dist/src/domain/model/tx/submit/entities/index.js +20 -0
- package/dist/src/domain/model/tx/submit/entities/index.js.map +1 -0
- package/dist/src/domain/model/tx/submit/index.d.ts +2 -0
- package/dist/src/domain/model/tx/submit/index.js +19 -0
- package/dist/src/domain/model/tx/submit/index.js.map +1 -0
- package/dist/src/domain/model/tx-token-payload/TxTokenPayload.d.ts +5 -0
- package/dist/src/domain/model/tx-token-payload/TxTokenPayload.js +3 -0
- package/dist/src/domain/model/tx-token-payload/TxTokenPayload.js.map +1 -0
- package/dist/src/domain/model/tx-token-payload/index.d.ts +1 -0
- package/dist/src/domain/model/tx-token-payload/index.js +18 -0
- package/dist/src/domain/model/tx-token-payload/index.js.map +1 -0
- package/dist/src/domain/services/AmountService.d.ts +9 -0
- package/dist/src/domain/services/AmountService.js +34 -0
- package/dist/src/domain/services/AmountService.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +18 -0
- package/dist/src/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/index.ts +1 -0
- package/package.json +28 -0
- package/tsconfig.build.json +4 -0
- 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,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,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,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,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,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,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 @@
|
|
|
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,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"}
|