@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,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.CreateTokenPairDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const constants_1 = require("../../../constants");
|
|
16
|
+
const curve_1 = require("../../curve");
|
|
17
|
+
class CreateTokenPairDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateTokenPairDto.prototype, "symbol", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateTokenPairDto.prototype, "description", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CreateTokenPairDto.prototype, "imageUri", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateTokenPairDto.prototype, "name", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], CreateTokenPairDto.prototype, "decimals", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CreateTokenPairDto.prototype, "type", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CreateTokenPairDto.prototype, "blockchainId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_transformer_1.Type)(() => curve_1.CreateCurveDto),
|
|
56
|
+
(0, class_validator_1.ValidateNested)(),
|
|
57
|
+
__metadata("design:type", curve_1.CreateCurveDto)
|
|
58
|
+
], CreateTokenPairDto.prototype, "curve", void 0);
|
|
59
|
+
exports.CreateTokenPairDto = CreateTokenPairDto;
|
|
60
|
+
//# sourceMappingURL=CreateTokenPair.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateTokenPair.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/token-pair/dtos/CreateTokenPair.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,yDAAyC;AACzC,kDAA+C;AAC/C,uCAA6C;AAE7C,MAAa,kBAAkB;CAgC9B;AA/BC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;kDACE;AAEf;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uDACO;AAEpB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACA;AAEb;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;oDACI;AAEjB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACG;AAEhB;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACQ;AAErB;IAAC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sBAAc,CAAC;IAC1B,IAAA,gCAAc,GAAE;8BACV,sBAAc;iDAAC;AA/BxB,gDAgCC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './CreateTokenPair.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("./CreateTokenPair.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/token-pair/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Entity } from '../../entity';
|
|
2
|
+
import { Curve } from '../../curve';
|
|
3
|
+
import { TokenType } from '../../../constants';
|
|
4
|
+
import { BaseBlockchain } from '../../blockchain';
|
|
5
|
+
export declare class TokenPair extends Entity {
|
|
6
|
+
id: string;
|
|
7
|
+
curve: Curve;
|
|
8
|
+
mintAddress: string;
|
|
9
|
+
symbol: string;
|
|
10
|
+
name: string;
|
|
11
|
+
decimals: number;
|
|
12
|
+
description: string;
|
|
13
|
+
imageURI: string;
|
|
14
|
+
creatorPK: string;
|
|
15
|
+
type: TokenType;
|
|
16
|
+
blockchain: BaseBlockchain;
|
|
17
|
+
migrated: boolean;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TokenPair = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class TokenPair extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.TokenPair = TokenPair;
|
|
8
|
+
//# sourceMappingURL=TokenPair.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenPair.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/token-pair/entities/TokenPair.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAKtC,MAAa,SAAU,SAAQ,eAAM;CA0BpC;AA1BD,8BA0BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TokenPair.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("./TokenPair.entity"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/token-pair/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -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("./entities"), exports);
|
|
18
|
+
__exportStar(require("./dtos"), exports);
|
|
19
|
+
__exportStar(require("./constants"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/token-pair/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB;AACvB,8CAA4B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './submit';
|
|
@@ -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("./submit"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/tx/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.BaseTxSubmitDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class BaseTxSubmitDto {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_validator_1.IsString)(),
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], BaseTxSubmitDto.prototype, "token", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], BaseTxSubmitDto.prototype, "signedTransaction", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNumber)(),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], BaseTxSubmitDto.prototype, "pendingTimeoutMS", void 0);
|
|
31
|
+
exports.BaseTxSubmitDto = BaseTxSubmitDto;
|
|
32
|
+
//# sourceMappingURL=BaseTxSubmit.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTxSubmit.dto.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/tx/submit/dtos/BaseTxSubmit.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAa,eAAe;CAY3B;AAXC;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACC;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;0DACa;AAE1B;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;yDACa;AAX5B,0CAYC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './BaseTxSubmit.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("./BaseTxSubmit.dto"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/tx/submit/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BaseTxSubmitResponse = void 0;
|
|
4
|
+
const entity_1 = require("../../../entity");
|
|
5
|
+
class BaseTxSubmitResponse extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.BaseTxSubmitResponse = BaseTxSubmitResponse;
|
|
8
|
+
//# sourceMappingURL=BaseTxSubmitResponse.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTxSubmitResponse.entity.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/tx/submit/entities/BaseTxSubmitResponse.entity.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AAazC,MAAa,oBAAqB,SAAQ,eAAM;CAM/C;AAND,oDAMC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TxStatusResponseEntity = void 0;
|
|
4
|
+
const entity_1 = require("../../../entity");
|
|
5
|
+
class TxStatusResponseEntity extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.TxStatusResponseEntity = TxStatusResponseEntity;
|
|
8
|
+
//# sourceMappingURL=TxStatusResponse.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TxStatusResponse.entity.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/tx/submit/entities/TxStatusResponse.entity.ts"],"names":[],"mappings":";;;AACA,4CAAyC;AAEzC,MAAa,sBAAuB,SAAQ,eAAM;CAIjD;AAJD,wDAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TxStatusTokenPayload.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/tx/submit/entities/TxStatusTokenPayload.ts"],"names":[],"mappings":""}
|
|
@@ -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("./BaseTxSubmitResponse.entity"), exports);
|
|
18
|
+
__exportStar(require("./TxStatusTokenPayload"), exports);
|
|
19
|
+
__exportStar(require("./TxStatusResponse.entity"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/domain/model/tx/submit/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,yDAAuC;AACvC,4DAA0C"}
|
|
@@ -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/tx/submit/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,yCAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TxTokenPayload.js","sourceRoot":"","sources":["../../../../../src/domain/model/tx-token-payload/TxTokenPayload.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TxTokenPayload';
|
|
@@ -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("./TxTokenPayload"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/domain/model/tx-token-payload/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import BigNumber from 'bignumber.js';
|
|
2
|
+
export declare class AmountService {
|
|
3
|
+
static decimalFromMinimalUnits(minimalAmount: string, decimals: number): BigNumber;
|
|
4
|
+
static decimalFromMinimalUnits(minimalAmount: bigint, decimals: number): BigNumber;
|
|
5
|
+
static minimalUnitsFromDecimal(decimalAmount: string, decimals: number): bigint;
|
|
6
|
+
static minimalUnitsFromDecimal(decimalAmount: BigNumber, decimals: number): bigint;
|
|
7
|
+
private static minimalUnitAmountFromDecimalString;
|
|
8
|
+
private static getBigintMultiplierFromDecimals;
|
|
9
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.AmountService = void 0;
|
|
7
|
+
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
8
|
+
class AmountService {
|
|
9
|
+
static decimalFromMinimalUnits(minimalAmount, decimals) {
|
|
10
|
+
const units = this.getBigintMultiplierFromDecimals(decimals);
|
|
11
|
+
return (0, bignumber_js_1.default)(String(minimalAmount)).dividedBy(String(units));
|
|
12
|
+
}
|
|
13
|
+
static minimalUnitsFromDecimal(decimalAmount, decimals) {
|
|
14
|
+
return this.minimalUnitAmountFromDecimalString(String(decimalAmount instanceof bignumber_js_1.default
|
|
15
|
+
? decimalAmount.toFixed()
|
|
16
|
+
: decimalAmount), decimals);
|
|
17
|
+
}
|
|
18
|
+
static minimalUnitAmountFromDecimalString(decimalAmount, currencyDecimals) {
|
|
19
|
+
const [integerPart, fractionalPart] = decimalAmount.split('.');
|
|
20
|
+
const normalizedFractionalPart = fractionalPart?.slice(0, currencyDecimals);
|
|
21
|
+
const stringFractionalDigits = normalizedFractionalPart?.length;
|
|
22
|
+
if (stringFractionalDigits == null) {
|
|
23
|
+
return (BigInt(decimalAmount) *
|
|
24
|
+
this.getBigintMultiplierFromDecimals(currencyDecimals));
|
|
25
|
+
}
|
|
26
|
+
const minimalUnitAmountFromDecimalString = BigInt(integerPart.concat(normalizedFractionalPart));
|
|
27
|
+
return (this.getBigintMultiplierFromDecimals(currencyDecimals - stringFractionalDigits) * BigInt(minimalUnitAmountFromDecimalString));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.AmountService = AmountService;
|
|
31
|
+
AmountService.getBigintMultiplierFromDecimals = (decimals) => {
|
|
32
|
+
return BigInt(1 + new Array(decimals).fill(0).join(''));
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=AmountService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmountService.js","sourceRoot":"","sources":["../../../../src/domain/services/AmountService.ts"],"names":[],"mappings":";;;;;;AAAA,gEAAqC;AAErC,MAAa,aAAa;IAWxB,MAAM,CAAC,uBAAuB,CAC5B,aAA8B,EAC9B,QAAgB;QAEhB,MAAM,KAAK,GAAG,IAAI,CAAC,+BAA+B,CAAC,QAAQ,CAAC,CAAC;QAC7D,OAAO,IAAA,sBAAS,EAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACnE,CAAC;IAYD,MAAM,CAAC,uBAAuB,CAC5B,aAAiC,EACjC,QAAgB;QAEhB,OAAO,IAAI,CAAC,kCAAkC,CAC5C,MAAM,CACJ,aAAa,YAAY,sBAAS;YAChC,CAAC,CAAC,aAAa,CAAC,OAAO,EAAE;YACzB,CAAC,CAAC,aAAa,CAClB,EACD,QAAQ,CACT,CAAC;IACJ,CAAC;IAEO,MAAM,CAAC,kCAAkC,CAC/C,aAAqB,EACrB,gBAAwB;QAExB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAC/D,MAAM,wBAAwB,GAAG,cAAc,EAAE,KAAK,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC;QAC5E,MAAM,sBAAsB,GAAG,wBAAwB,EAAE,MAAM,CAAC;QAChE,IAAI,sBAAsB,IAAI,IAAI,EAAE;YAClC,OAAO,CACL,MAAM,CAAC,aAAa,CAAC;gBACrB,IAAI,CAAC,+BAA+B,CAAC,gBAAgB,CAAC,CACvD,CAAC;SACH;QAID,MAAM,kCAAkC,GAAG,MAAM,CAC/C,WAAW,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAC7C,CAAC;QAEF,OAAO,CACL,IAAI,CAAC,+BAA+B,CAClC,gBAAgB,GAAG,sBAAsB,CAC1C,GAAG,MAAM,CAAC,kCAAkC,CAAC,CAC/C,CAAC;IACJ,CAAC;;AApEH,sCA2EC;AALgB,6CAA+B,GAAG,CAC/C,QAAgB,EACR,EAAE;IACV,OAAO,MAAM,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;AAC1D,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './domain';
|
|
@@ -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("./domain"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB"}
|