@heliofi/common 0.2.228 → 0.2.230
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/src/domain/model/deposit/dtos/assignDepositCustomerWallet.dto.d.ts +4 -0
- package/dist/src/domain/model/deposit/dtos/assignDepositCustomerWallet.dto.js +23 -0
- package/dist/src/domain/model/deposit/dtos/assignDepositCustomerWallet.dto.js.map +1 -0
- package/dist/src/domain/model/deposit/dtos/createDepositCustomer.dto.d.ts +2 -0
- package/dist/src/domain/model/deposit/dtos/createDepositCustomer.dto.js +9 -0
- package/dist/src/domain/model/deposit/dtos/createDepositCustomer.dto.js.map +1 -1
- package/dist/src/domain/model/deposit/dtos/index.d.ts +1 -0
- package/dist/src/domain/model/deposit/dtos/index.js +1 -0
- package/dist/src/domain/model/deposit/dtos/index.js.map +1 -1
- package/dist/src/domain/services/clusterUtils.d.ts +3 -0
- package/dist/src/domain/services/clusterUtils.js +18 -0
- package/dist/src/domain/services/clusterUtils.js.map +1 -0
- package/dist/src/domain/services/index.d.ts +1 -1
- package/dist/src/domain/services/index.js +1 -1
- package/dist/src/domain/services/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/src/domain/services/ClusterService.d.ts +0 -35
- package/dist/src/domain/services/ClusterService.js +0 -215
- package/dist/src/domain/services/ClusterService.js.map +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
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.AssignDepositCustomerWalletDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const constants_1 = require("../../blockchainEngine/constants");
|
|
15
|
+
class AssignDepositCustomerWalletDto {
|
|
16
|
+
}
|
|
17
|
+
exports.AssignDepositCustomerWalletDto = AssignDepositCustomerWalletDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsEnum)(constants_1.BlockchainEngineType),
|
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], AssignDepositCustomerWalletDto.prototype, "blockchainEngineType", void 0);
|
|
23
|
+
//# sourceMappingURL=assignDepositCustomerWallet.dto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assignDepositCustomerWallet.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/assignDepositCustomerWallet.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,gEAAwE;AAExE,MAAa,8BAA8B;CAI1C;AAJD,wEAIC;AADC;IAFC,IAAA,wBAAM,EAAC,gCAAoB,CAAC;IAC5B,IAAA,4BAAU,GAAE;;4EAC8B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { BlockchainEngineType } from '../../blockchainEngine/constants';
|
|
1
2
|
export declare class CreateDepositCustomerDto {
|
|
2
3
|
customerId: string;
|
|
3
4
|
depositId: string;
|
|
@@ -5,4 +6,5 @@ export declare class CreateDepositCustomerDto {
|
|
|
5
6
|
additionalJSON?: string;
|
|
6
7
|
recipientPublicKeys: string[];
|
|
7
8
|
defaultOnrampAmount?: number;
|
|
9
|
+
blockchainEngineTypes?: BlockchainEngineType[];
|
|
8
10
|
}
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateDepositCustomerDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const constants_1 = require("../../blockchainEngine/constants");
|
|
14
15
|
class CreateDepositCustomerDto {
|
|
15
16
|
}
|
|
16
17
|
exports.CreateDepositCustomerDto = CreateDepositCustomerDto;
|
|
@@ -47,4 +48,12 @@ __decorate([
|
|
|
47
48
|
(0, class_validator_1.IsOptional)(),
|
|
48
49
|
__metadata("design:type", Number)
|
|
49
50
|
], CreateDepositCustomerDto.prototype, "defaultOnrampAmount", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsArray)(),
|
|
53
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
54
|
+
(0, class_validator_1.ArrayUnique)(),
|
|
55
|
+
(0, class_validator_1.IsEnum)(constants_1.BlockchainEngineType, { each: true }),
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
__metadata("design:type", Array)
|
|
58
|
+
], CreateDepositCustomerDto.prototype, "blockchainEngineTypes", void 0);
|
|
50
59
|
//# sourceMappingURL=createDepositCustomer.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createDepositCustomer.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDepositCustomer.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"createDepositCustomer.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/createDepositCustomer.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAYyB;AACzB,gEAAwE;AAExE,MAAa,wBAAwB;CAkCpC;AAlCD,4DAkCC;AA9BC;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,GAAG,CAAC;;4DACI;AAInB;IAFC,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;2DACK;AAIlB;IAFC,IAAA,yBAAO,GAAE;IACT,IAAA,4BAAU,GAAE;;+DACU;AAIvB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gEACW;AAMxB;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,4BAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qEACG;AAI9B;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qEACgB;AAO7B;IALC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,6BAAW,GAAE;IACb,IAAA,wBAAM,EAAC,gCAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC5C,IAAA,4BAAU,GAAE;;uEACkC"}
|
|
@@ -22,4 +22,5 @@ __exportStar(require("./updateWalletActivity.dto"), exports);
|
|
|
22
22
|
__exportStar(require("./updateDeposit.dto"), exports);
|
|
23
23
|
__exportStar(require("./setDepositCustomerVirtualAccountEmail.dto"), exports);
|
|
24
24
|
__exportStar(require("./setDepositCustomerVirtualAccountCountry.dto"), exports);
|
|
25
|
+
__exportStar(require("./assignDepositCustomerWallet.dto"), exports);
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,8EAA4D;AAC5D,gFAA8D"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/deposit/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,8DAA4C;AAC5C,8DAA4C;AAC5C,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,8EAA4D;AAC5D,gFAA8D;AAC9D,oEAAkD"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.clusterToGeneralNetwork = clusterToGeneralNetwork;
|
|
4
|
+
const constants_1 = require("../constants");
|
|
5
|
+
const model_1 = require("../model");
|
|
6
|
+
function clusterToGeneralNetwork(cluster) {
|
|
7
|
+
switch (cluster) {
|
|
8
|
+
case model_1.Cluster.DEV_NET:
|
|
9
|
+
return constants_1.GeneralNetwork.DEVNET;
|
|
10
|
+
case model_1.Cluster.TEST_NET:
|
|
11
|
+
return constants_1.GeneralNetwork.TESTNET;
|
|
12
|
+
case model_1.Cluster.MAIN_NET:
|
|
13
|
+
return constants_1.GeneralNetwork.MAINNET;
|
|
14
|
+
default:
|
|
15
|
+
throw new Error('Wrong type of cluster');
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=clusterUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clusterUtils.js","sourceRoot":"","sources":["../../../../src/domain/services/clusterUtils.ts"],"names":[],"mappings":";;AAGA,0DAWC;AAdD,4CAA8C;AAC9C,oCAAmC;AAEnC,SAAgB,uBAAuB,CAAC,OAAgB;IACtD,QAAQ,OAAO,EAAE,CAAC;QAChB,KAAK,eAAO,CAAC,OAAO;YAClB,OAAO,0BAAc,CAAC,MAAM,CAAC;QAC/B,KAAK,eAAO,CAAC,QAAQ;YACnB,OAAO,0BAAc,CAAC,OAAO,CAAC;QAChC,KAAK,eAAO,CAAC,QAAQ;YACnB,OAAO,0BAAc,CAAC,OAAO,CAAC;QAChC;YACE,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAC7C,CAAC;AACH,CAAC"}
|
|
@@ -8,7 +8,7 @@ export * from './TransactionSignService';
|
|
|
8
8
|
export * from './SplitWalletService';
|
|
9
9
|
export * from './PolygonExplorerService';
|
|
10
10
|
export * from './ExplorerAggregateService';
|
|
11
|
-
export * from './
|
|
11
|
+
export * from './clusterUtils';
|
|
12
12
|
export * from './AmountService';
|
|
13
13
|
export * from './AddressService';
|
|
14
14
|
export * from './PublicKeyService';
|
|
@@ -24,7 +24,7 @@ __exportStar(require("./TransactionSignService"), exports);
|
|
|
24
24
|
__exportStar(require("./SplitWalletService"), exports);
|
|
25
25
|
__exportStar(require("./PolygonExplorerService"), exports);
|
|
26
26
|
__exportStar(require("./ExplorerAggregateService"), exports);
|
|
27
|
-
__exportStar(require("./
|
|
27
|
+
__exportStar(require("./clusterUtils"), exports);
|
|
28
28
|
__exportStar(require("./AmountService"), exports);
|
|
29
29
|
__exportStar(require("./AddressService"), exports);
|
|
30
30
|
__exportStar(require("./PublicKeyService"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,mDAAiC;AACjC,mDAAiC;AACjC,+CAA6B;AAC7B,iEAA+C;AAC/C,2DAAyC;AACzC,uDAAqC;AACrC,2DAAyC;AACzC,6DAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C,0DAAwC;AACxC,mDAAiC;AACjC,mDAAiC;AACjC,+CAA6B;AAC7B,iEAA+C;AAC/C,2DAAyC;AACzC,uDAAqC;AACrC,2DAAyC;AACzC,6DAA2C;AAC3C,iDAA+B;AAC/B,kDAAgC;AAChC,mDAAiC;AACjC,qDAAmC;AACnC,+DAA6C;AAC7C,8DAA4C"}
|