@heliofi/common 0.1.495 → 0.1.497
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/constants/cacheHeaderName.d.ts +1 -0
- package/dist/src/domain/constants/cacheHeaderName.js +5 -0
- package/dist/src/domain/constants/cacheHeaderName.js.map +1 -0
- package/dist/src/domain/constants/index.d.ts +1 -0
- package/dist/src/domain/constants/index.js +1 -0
- package/dist/src/domain/constants/index.js.map +1 -1
- package/dist/src/domain/model/company/entities/Company.entity.d.ts +4 -0
- package/dist/src/domain/model/company/entities/Company.entity.js.map +1 -1
- package/dist/src/domain/model/index.d.ts +2 -0
- package/dist/src/domain/model/index.js +2 -0
- package/dist/src/domain/model/index.js.map +1 -1
- package/dist/src/domain/model/kyb-details/entities/KYBDetails.entity.d.ts +5 -0
- package/dist/src/domain/model/kyb-details/entities/KYBDetails.entity.js +8 -0
- package/dist/src/domain/model/kyb-details/entities/KYBDetails.entity.js.map +1 -0
- package/dist/src/domain/model/kyb-details/entities/index.d.ts +1 -0
- package/dist/src/domain/model/kyb-details/entities/index.js +18 -0
- package/dist/src/domain/model/kyb-details/entities/index.js.map +1 -0
- package/dist/src/domain/model/kyb-details/index.d.ts +1 -0
- package/dist/src/domain/model/kyb-details/index.js +18 -0
- package/dist/src/domain/model/kyb-details/index.js.map +1 -0
- package/dist/src/domain/model/paylink-tx/entities/index.d.ts +2 -0
- package/dist/src/domain/model/paylink-tx/entities/index.js +2 -0
- package/dist/src/domain/model/paylink-tx/entities/index.js.map +1 -1
- package/dist/src/domain/model/shopify-merchant-details/entities/ShopifyMerchantDetails.entity.d.ts +13 -0
- package/dist/src/domain/model/shopify-merchant-details/entities/ShopifyMerchantDetails.entity.js +8 -0
- package/dist/src/domain/model/shopify-merchant-details/entities/ShopifyMerchantDetails.entity.js.map +1 -0
- package/dist/src/domain/model/shopify-merchant-details/entities/index.d.ts +1 -0
- package/dist/src/domain/model/shopify-merchant-details/entities/index.js +18 -0
- package/dist/src/domain/model/shopify-merchant-details/entities/index.js.map +1 -0
- package/dist/src/domain/model/shopify-merchant-details/index.d.ts +1 -0
- package/dist/src/domain/model/shopify-merchant-details/index.js +18 -0
- package/dist/src/domain/model/shopify-merchant-details/index.js.map +1 -0
- package/dist/src/domain/model/transaction/entities/TransactionDetails.entity.d.ts +14 -0
- package/dist/src/domain/model/transaction/entities/TransactionDetails.entity.js +8 -0
- package/dist/src/domain/model/transaction/entities/TransactionDetails.entity.js.map +1 -0
- package/dist/src/domain/model/transaction-meta/entities/CreateTransactionMeta.d.ts +1 -1
- package/dist/src/domain/model/transaction-meta/entities/index.d.ts +2 -0
- package/dist/src/domain/model/transaction-meta/entities/index.js +2 -0
- package/dist/src/domain/model/transaction-meta/entities/index.js.map +1 -1
- package/dist/src/domain/services/ClusterService.d.ts +9 -6
- package/dist/src/domain/services/ClusterService.js +74 -60
- package/dist/src/domain/services/ClusterService.js.map +1 -1
- package/dist/src/domain/services/EthereumExplorerService.js +1 -1
- package/dist/src/domain/services/EthereumExplorerService.js.map +1 -1
- package/dist/src/domain/services/ExplorerAggregateService.js +6 -0
- package/dist/src/domain/services/ExplorerAggregateService.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const noCacheHeaderName = "x-helio-no-cache";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cacheHeaderName.js","sourceRoot":"","sources":["../../../../src/domain/constants/cacheHeaderName.ts"],"names":[],"mappings":";;;AAAa,QAAA,iBAAiB,GAAG,kBAAkB,CAAC"}
|
|
@@ -36,4 +36,5 @@ __exportStar(require("./tradingViewDetails"), exports);
|
|
|
36
36
|
__exportStar(require("./template"), exports);
|
|
37
37
|
__exportStar(require("./solanaTransactionVersion"), exports);
|
|
38
38
|
__exportStar(require("./raffle"), exports);
|
|
39
|
+
__exportStar(require("./cacheHeaderName"), exports);
|
|
39
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC;AACnC,8CAA4B;AAC5B,qEAAmD;AACnD,mDAAiC;AACjC,gDAA8B;AAC9B,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,4DAA0C;AAC1C,yDAAuC;AACvC,6CAA2B;AAC3B,2CAAyB;AACzB,uDAAqC;AACrC,6CAA2B;AAC3B,6DAA2C;AAC3C,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,iDAA+B;AAC/B,+CAA6B;AAC7B,mDAAiC;AACjC,qDAAmC;AACnC,8CAA4B;AAC5B,qEAAmD;AACnD,mDAAiC;AACjC,gDAA8B;AAC9B,2CAAyB;AACzB,2CAAyB;AACzB,kDAAgC;AAChC,4DAA0C;AAC1C,yDAAuC;AACvC,6CAA2B;AAC3B,2CAAyB;AACzB,uDAAqC;AACrC,6CAA2B;AAC3B,6DAA2C;AAC3C,2CAAyB;AACzB,oDAAkC"}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { BaseCompany } from './BaseCompany.entity';
|
|
2
2
|
import { BaseAttachment } from '../../attachment';
|
|
3
3
|
import { ApiKey } from '../../apiKey';
|
|
4
|
+
import { KYBDetails } from '../../kyb-details';
|
|
5
|
+
import { ShopifyMerchantDetails } from '../../shopify-merchant-details';
|
|
4
6
|
export declare class Company extends BaseCompany {
|
|
5
7
|
logo?: BaseAttachment;
|
|
6
8
|
apiKeys?: ApiKey[];
|
|
9
|
+
KYBDetails?: KYBDetails;
|
|
10
|
+
shopifyMerchantDetails?: ShopifyMerchantDetails;
|
|
7
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Company.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/company/entities/Company.entity.ts"],"names":[],"mappings":";;;AAAA,6DAAmD;
|
|
1
|
+
{"version":3,"file":"Company.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/company/entities/Company.entity.ts"],"names":[],"mappings":";;;AAAA,6DAAmD;AAMnD,MAAa,OAAQ,SAAQ,gCAAW;CAQvC;AARD,0BAQC"}
|
|
@@ -115,5 +115,7 @@ __exportStar(require("./raffle-details"), exports);
|
|
|
115
115
|
__exportStar(require("./raffle-entry"), exports);
|
|
116
116
|
__exportStar(require("./charge"), exports);
|
|
117
117
|
__exportStar(require("./integrations-details"), exports);
|
|
118
|
+
__exportStar(require("./shopify-merchant-details"), exports);
|
|
119
|
+
__exportStar(require("./kyb-details"), exports);
|
|
118
120
|
__exportStar(require("./email-send"), exports);
|
|
119
121
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAAuB;AACvB,2CAAyB;AACzB,2CAAyB;AACzB,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,mDAAiC;AACjC,6CAA2B;AAC3B,4CAA0B;AAC1B,2CAAyB;AACzB,+CAA6B;AAC7B,+CAA6B;AAC7B,4CAA0B;AAC1B,4CAA0B;AAC1B,kDAAgC;AAChC,oDAAkC;AAClC,6DAA2C;AAC3C,+CAA6B;AAC7B,0CAAwB;AACxB,yCAAuB;AACvB,wDAAsC;AACtC,4CAA0B;AAC1B,oDAAkC;AAClC,8CAA4B;AAC5B,iDAA+B;AAC/B,2CAAyB;AACzB,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,2CAAyB;AACzB,+CAA6B;AAC7B,uDAAqC;AACrC,mDAAiC;AACjC,4CAA0B;AAC1B,kDAAgC;AAChC,kDAAgC;AAChC,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,4CAA0B;AAC1B,wDAAsC;AACtC,kDAAgC;AAChC,mDAAiC;AACjC,4CAA0B;AAC1B,gDAA8B;AAC9B,mDAAiC;AACjC,+CAA6B;AAC7B,+CAA6B;AAC7B,0CAAwB;AACxB,mDAAiC;AACjC,kDAAgC;AAChC,wCAAsB;AACtB,oDAAkC;AAClC,gDAA8B;AAC9B,qDAAmC;AACnC,6CAA2B;AAC3B,4DAA0C;AAC1C,gEAA8C;AAC9C,+DAA6C;AAC7C,uDAAqC;AACrC,0CAAwB;AACxB,+CAA6B;AAC7B,4CAA0B;AAC1B,mDAAiC;AACjC,mDAAiC;AACjC,2CAAyB;AACzB,kDAAgC;AAChC,2DAAyC;AACzC,6CAA2B;AAC3B,mDAAiC;AACjC,+CAA6B;AAC7B,uDAAqC;AACrC,iDAA+B;AAC/B,8CAA4B;AAC5B,8CAA4B;AAC5B,qDAAmC;AACnC,qDAAmC;AACnC,qEAAmD;AACnD,oEAAkD;AAClD,oDAAkC;AAClC,yDAAuC;AACvC,iDAA+B;AAC/B,4CAA0B;AAC1B,+CAA6B;AAC7B,kDAAgC;AAChC,0CAAwB;AACxB,8CAA4B;AAC5B,kDAAgC;AAChC,sDAAoC;AACpC,0CAAwB;AACxB,6DAA2C;AAC3C,mDAAiC;AACjC,2DAAyC;AACzC,kDAAgC;AAChC,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,yDAAuC;AACvC,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domain/model/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,yCAAuB;AACvB,yCAA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1B,+CAA6B;AAC7B,kDAAgC;AAChC,0CAAwB;AACxB,8CAA4B;AAC5B,kDAAgC;AAChC,sDAAoC;AACpC,0CAAwB;AACxB,6DAA2C;AAC3C,mDAAiC;AACjC,2DAAyC;AACzC,kDAAgC;AAChC,6CAA2B;AAC3B,mDAAiC;AACjC,iDAA+B;AAC/B,2CAAyB;AACzB,yDAAuC;AACvC,6DAA2C;AAC3C,gDAA8B;AAC9B,+CAA6B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KYBDetails = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class KYBDetails extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.KYBDetails = KYBDetails;
|
|
8
|
+
//# sourceMappingURL=KYBDetails.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KYBDetails.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/kyb-details/entities/KYBDetails.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,UAAW,SAAQ,eAAM;CAIrC;AAJD,gCAIC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './KYBDetails.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("./KYBDetails.entity"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/kyb-details/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,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/kyb-details/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './PaylinkTx';
|
|
2
2
|
export * from './BasePaylinkTx';
|
|
3
3
|
export * from './ShallowEnrichedPaylinkTx';
|
|
4
|
+
export * from './PaylinkTxWithPublicMeta';
|
|
4
5
|
export * from './PaylinkTxWithShallowEnrichedPaylink';
|
|
5
6
|
export * from './PaylinkTxWithMeta';
|
|
6
7
|
export * from './CreatePaylinkTx';
|
|
7
8
|
export * from './UpdatePaylinkTx';
|
|
9
|
+
export * from './PaylinkTxWithPublicMeta';
|
|
@@ -17,8 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./PaylinkTx"), exports);
|
|
18
18
|
__exportStar(require("./BasePaylinkTx"), exports);
|
|
19
19
|
__exportStar(require("./ShallowEnrichedPaylinkTx"), exports);
|
|
20
|
+
__exportStar(require("./PaylinkTxWithPublicMeta"), exports);
|
|
20
21
|
__exportStar(require("./PaylinkTxWithShallowEnrichedPaylink"), exports);
|
|
21
22
|
__exportStar(require("./PaylinkTxWithMeta"), exports);
|
|
22
23
|
__exportStar(require("./CreatePaylinkTx"), exports);
|
|
23
24
|
__exportStar(require("./UpdatePaylinkTx"), exports);
|
|
25
|
+
__exportStar(require("./PaylinkTxWithPublicMeta"), exports);
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC;AAChC,6DAA2C;AAC3C,wEAAsD;AACtD,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/paylink-tx/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC;AAChC,6DAA2C;AAC3C,4DAA0C;AAC1C,wEAAsD;AACtD,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,4DAA0C"}
|
package/dist/src/domain/model/shopify-merchant-details/entities/ShopifyMerchantDetails.entity.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Entity } from '../../entity';
|
|
2
|
+
export declare class ShopifyMerchantDetails extends Entity {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
email: string;
|
|
6
|
+
shopUrl: string;
|
|
7
|
+
scopes: string;
|
|
8
|
+
accessToken: string;
|
|
9
|
+
lastNonce: string;
|
|
10
|
+
acceptedTermsAndConditions: boolean;
|
|
11
|
+
acceptedPrivacyPolicy: boolean;
|
|
12
|
+
active: boolean;
|
|
13
|
+
}
|
package/dist/src/domain/model/shopify-merchant-details/entities/ShopifyMerchantDetails.entity.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShopifyMerchantDetails = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class ShopifyMerchantDetails extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.ShopifyMerchantDetails = ShopifyMerchantDetails;
|
|
8
|
+
//# sourceMappingURL=ShopifyMerchantDetails.entity.js.map
|
package/dist/src/domain/model/shopify-merchant-details/entities/ShopifyMerchantDetails.entity.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ShopifyMerchantDetails.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/shopify-merchant-details/entities/ShopifyMerchantDetails.entity.ts"],"names":[],"mappings":";;;AAAA,yCAAsC;AAEtC,MAAa,sBAAuB,SAAQ,eAAM;CAoBjD;AApBD,wDAoBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ShopifyMerchantDetails.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("./ShopifyMerchantDetails.entity"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/shopify-merchant-details/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD"}
|
|
@@ -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/shopify-merchant-details/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CustomerDetails } from '../../customer-details';
|
|
2
|
+
import { Entity } from '../../entity';
|
|
3
|
+
import { TransactionStatus } from '../../transaction-meta/constants/TransactionStatus';
|
|
4
|
+
export declare class TransactionDetails extends Entity {
|
|
5
|
+
status: TransactionStatus;
|
|
6
|
+
time: Date;
|
|
7
|
+
transactionSignature: string;
|
|
8
|
+
quantity: number;
|
|
9
|
+
price: bigint;
|
|
10
|
+
fee: bigint;
|
|
11
|
+
from: string;
|
|
12
|
+
currency: string;
|
|
13
|
+
customerDetails: CustomerDetails;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionDetails = void 0;
|
|
4
|
+
const entity_1 = require("../../entity");
|
|
5
|
+
class TransactionDetails extends entity_1.Entity {
|
|
6
|
+
}
|
|
7
|
+
exports.TransactionDetails = TransactionDetails;
|
|
8
|
+
//# sourceMappingURL=TransactionDetails.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransactionDetails.entity.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/entities/TransactionDetails.entity.ts"],"names":[],"mappings":";;;AACA,yCAAsC;AAGtC,MAAa,kBAAmB,SAAQ,eAAM;CAkB7C;AAlBD,gDAkBC"}
|
|
@@ -21,7 +21,7 @@ export declare class CreateTransactionMeta {
|
|
|
21
21
|
feeFeatures?: FeeFeature[];
|
|
22
22
|
transactionStatus?: TransactionStatus;
|
|
23
23
|
transactionDataHash?: string;
|
|
24
|
-
transactionType
|
|
24
|
+
transactionType: TransactionType | undefined;
|
|
25
25
|
platform?: Platform;
|
|
26
26
|
affiliateCode?: string;
|
|
27
27
|
affiliateAmount?: string;
|
|
@@ -2,6 +2,8 @@ export * from './TransactionMeta';
|
|
|
2
2
|
export * from './BaseTransactionMeta.entity';
|
|
3
3
|
export * from './ShallowEnrichedTransactionMeta';
|
|
4
4
|
export * from './CreateTransactionMeta';
|
|
5
|
+
export * from './PublicTransactionMeta.entity';
|
|
5
6
|
export * from './UpdateTransactionMeta';
|
|
6
7
|
export * from './TokenQuoteMeta';
|
|
7
8
|
export * from './sourceIntegration.enum';
|
|
9
|
+
export * from './PublicTransactionMeta.entity';
|
|
@@ -18,7 +18,9 @@ __exportStar(require("./TransactionMeta"), exports);
|
|
|
18
18
|
__exportStar(require("./BaseTransactionMeta.entity"), exports);
|
|
19
19
|
__exportStar(require("./ShallowEnrichedTransactionMeta"), exports);
|
|
20
20
|
__exportStar(require("./CreateTransactionMeta"), exports);
|
|
21
|
+
__exportStar(require("./PublicTransactionMeta.entity"), exports);
|
|
21
22
|
__exportStar(require("./UpdateTransactionMeta"), exports);
|
|
22
23
|
__exportStar(require("./TokenQuoteMeta"), exports);
|
|
23
24
|
__exportStar(require("./sourceIntegration.enum"), exports);
|
|
25
|
+
__exportStar(require("./PublicTransactionMeta.entity"), exports);
|
|
24
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,+DAA6C;AAC7C,mEAAiD;AACjD,0DAAwC;AACxC,0DAAwC;AACxC,mDAAiC;AACjC,2DAAyC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,+DAA6C;AAC7C,mEAAiD;AACjD,0DAAwC;AACxC,iEAA+C;AAC/C,0DAAwC;AACxC,mDAAiC;AACjC,2DAAyC;AACzC,iEAA+C"}
|
|
@@ -4,22 +4,25 @@ interface NetworkOptions {
|
|
|
4
4
|
[BlockchainSymbol.SOL]: {
|
|
5
5
|
[GeneralNetwork.MAINNET]: string;
|
|
6
6
|
};
|
|
7
|
+
[BlockchainSymbol.BITCOIN]: string;
|
|
7
8
|
}
|
|
8
9
|
export declare class ClusterService {
|
|
9
10
|
private readonly privateNetworks;
|
|
10
11
|
private cluster;
|
|
11
12
|
protected constructor(privateNetworks: NetworkOptions, cluster: Cluster);
|
|
12
13
|
static init(): ClusterService;
|
|
13
|
-
static toBECluster
|
|
14
|
-
static clusterToGeneralNetwork
|
|
14
|
+
static toBECluster(cluster: GeneralNetwork): Cluster;
|
|
15
|
+
static clusterToGeneralNetwork(cluster: Cluster): GeneralNetwork;
|
|
15
16
|
static getBlockchainClusterEndpoint(cluster: Cluster, blockchain: BlockchainSymbol): string;
|
|
16
|
-
static getPolygonClusterEndpoint
|
|
17
|
+
static getPolygonClusterEndpoint(cluster: Cluster): string;
|
|
17
18
|
static getSolanaClusterEndpoint(cluster: Cluster): string;
|
|
18
|
-
static getEthClusterEndpoint
|
|
19
|
-
static getBtcClusterEndpoint
|
|
20
|
-
getBlockchainClusterPrivateEndpoint
|
|
19
|
+
static getEthClusterEndpoint(cluster: Cluster): string;
|
|
20
|
+
static getBtcClusterEndpoint(cluster: Cluster): string;
|
|
21
|
+
getBlockchainClusterPrivateEndpoint(blockchain: BlockchainSymbol, cluster?: Cluster): string;
|
|
21
22
|
getSolanaClusterPrivateEndpoint(cluster?: Cluster): string;
|
|
23
|
+
getBtcClusterPrivateEndpoint(cluster?: Cluster): string;
|
|
22
24
|
setSolana(mainnetRpcEndpoint: string): ClusterService;
|
|
25
|
+
setBitcoin(rpcEndpoint: string): ClusterService;
|
|
23
26
|
setCluster(cluster: Cluster): ClusterService;
|
|
24
27
|
}
|
|
25
28
|
export {};
|
|
@@ -5,26 +5,39 @@ const constants_1 = require("../constants");
|
|
|
5
5
|
const model_1 = require("../model");
|
|
6
6
|
class ClusterService {
|
|
7
7
|
constructor(privateNetworks, cluster) {
|
|
8
|
-
this.getBlockchainClusterPrivateEndpoint = (blockchain, cluster) => {
|
|
9
|
-
switch (blockchain) {
|
|
10
|
-
case model_1.BlockchainSymbol.ETH:
|
|
11
|
-
case model_1.BlockchainSymbol.POLYGON:
|
|
12
|
-
case model_1.BlockchainSymbol.BITCOIN:
|
|
13
|
-
throw new Error(`No private RPC endpoint for ${blockchain}`);
|
|
14
|
-
case model_1.BlockchainSymbol.SOL:
|
|
15
|
-
return this.getSolanaClusterPrivateEndpoint(cluster);
|
|
16
|
-
default:
|
|
17
|
-
throw new Error('Wrong blockchain provided');
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
8
|
this.privateNetworks = privateNetworks;
|
|
21
9
|
this.cluster = cluster;
|
|
22
10
|
}
|
|
23
11
|
static init() {
|
|
24
12
|
return new ClusterService({
|
|
25
13
|
[model_1.BlockchainSymbol.SOL]: { [constants_1.GeneralNetwork.MAINNET]: '' },
|
|
14
|
+
[model_1.BlockchainSymbol.BITCOIN]: '',
|
|
26
15
|
}, model_1.Cluster.DEV_NET);
|
|
27
16
|
}
|
|
17
|
+
static toBECluster(cluster) {
|
|
18
|
+
switch (cluster) {
|
|
19
|
+
case constants_1.GeneralNetwork.DEVNET:
|
|
20
|
+
return model_1.Cluster.DEV_NET;
|
|
21
|
+
case constants_1.GeneralNetwork.TESTNET:
|
|
22
|
+
return model_1.Cluster.TEST_NET;
|
|
23
|
+
case constants_1.GeneralNetwork.MAINNET:
|
|
24
|
+
return model_1.Cluster.MAIN_NET;
|
|
25
|
+
default:
|
|
26
|
+
throw new Error('No such type in general network');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
static clusterToGeneralNetwork(cluster) {
|
|
30
|
+
switch (cluster) {
|
|
31
|
+
case model_1.Cluster.DEV_NET:
|
|
32
|
+
return constants_1.GeneralNetwork.DEVNET;
|
|
33
|
+
case model_1.Cluster.TEST_NET:
|
|
34
|
+
return constants_1.GeneralNetwork.TESTNET;
|
|
35
|
+
case model_1.Cluster.MAIN_NET:
|
|
36
|
+
return constants_1.GeneralNetwork.MAINNET;
|
|
37
|
+
default:
|
|
38
|
+
throw new Error('Wrong type of cluster');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
28
41
|
static getBlockchainClusterEndpoint(cluster, blockchain) {
|
|
29
42
|
switch (blockchain) {
|
|
30
43
|
case model_1.BlockchainSymbol.ETH:
|
|
@@ -39,6 +52,14 @@ class ClusterService {
|
|
|
39
52
|
throw new Error('Wrong blockchain provided');
|
|
40
53
|
}
|
|
41
54
|
}
|
|
55
|
+
static getPolygonClusterEndpoint(cluster) {
|
|
56
|
+
switch (cluster) {
|
|
57
|
+
case model_1.Cluster.MAIN_NET:
|
|
58
|
+
return 'https://chaotic-polished-film.matic.quiknode.pro/8cb3bb8c644810aaf02485ceb7ddf7a667c6f5be/';
|
|
59
|
+
default:
|
|
60
|
+
return 'https://sleek-floral-morning.matic-testnet.quiknode.pro/36f1f4259eedb86189d518239c1180469f798eb1/';
|
|
61
|
+
}
|
|
62
|
+
}
|
|
42
63
|
static getSolanaClusterEndpoint(cluster) {
|
|
43
64
|
switch (cluster) {
|
|
44
65
|
case model_1.Cluster.MAIN_NET:
|
|
@@ -47,6 +68,35 @@ class ClusterService {
|
|
|
47
68
|
return 'https://evocative-light-card.solana-devnet.quiknode.pro/';
|
|
48
69
|
}
|
|
49
70
|
}
|
|
71
|
+
static getEthClusterEndpoint(cluster) {
|
|
72
|
+
switch (cluster) {
|
|
73
|
+
case model_1.Cluster.MAIN_NET:
|
|
74
|
+
return 'https://broken-proportionate-dream.quiknode.pro/fc719afe6cefd74efcbfa6cff9c8d2d04c7de5ed/';
|
|
75
|
+
default:
|
|
76
|
+
return 'https://black-summer-darkness.ethereum-sepolia.quiknode.pro/1a1fe0c096e507e0751288417b9ba29a54a1445d/';
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
static getBtcClusterEndpoint(cluster) {
|
|
80
|
+
switch (cluster) {
|
|
81
|
+
case model_1.Cluster.MAIN_NET:
|
|
82
|
+
return 'https://falling-silent-county.btc.quiknode.pro/ed9f16d4b7c45ee661f0053b0b3481dc9920bd0f/';
|
|
83
|
+
default:
|
|
84
|
+
return 'https://stylish-solemn-seed.btc-testnet.quiknode.pro/7c2b17c38fa62da6c386b64a4d8031120f6b587f/';
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
getBlockchainClusterPrivateEndpoint(blockchain, cluster) {
|
|
88
|
+
switch (blockchain) {
|
|
89
|
+
case model_1.BlockchainSymbol.ETH:
|
|
90
|
+
case model_1.BlockchainSymbol.POLYGON:
|
|
91
|
+
throw new Error(`No private RPC endpoint for ${blockchain}`);
|
|
92
|
+
case model_1.BlockchainSymbol.SOL:
|
|
93
|
+
return this.getSolanaClusterPrivateEndpoint(cluster);
|
|
94
|
+
case model_1.BlockchainSymbol.BITCOIN:
|
|
95
|
+
return this.getBtcClusterPrivateEndpoint(cluster);
|
|
96
|
+
default:
|
|
97
|
+
throw new Error('Wrong blockchain provided');
|
|
98
|
+
}
|
|
99
|
+
}
|
|
50
100
|
getSolanaClusterPrivateEndpoint(cluster) {
|
|
51
101
|
const finalCluster = cluster ?? this.cluster;
|
|
52
102
|
if (finalCluster === model_1.Cluster.MAIN_NET) {
|
|
@@ -57,64 +107,28 @@ class ClusterService {
|
|
|
57
107
|
}
|
|
58
108
|
return ClusterService.getSolanaClusterEndpoint(finalCluster);
|
|
59
109
|
}
|
|
110
|
+
getBtcClusterPrivateEndpoint(cluster) {
|
|
111
|
+
const finalCluster = cluster ?? this.cluster;
|
|
112
|
+
const endpoint = this.privateNetworks[model_1.BlockchainSymbol.BITCOIN];
|
|
113
|
+
if (endpoint !== '' && endpoint != null) {
|
|
114
|
+
return endpoint;
|
|
115
|
+
}
|
|
116
|
+
return ClusterService.getBtcClusterEndpoint(finalCluster);
|
|
117
|
+
}
|
|
60
118
|
setSolana(mainnetRpcEndpoint) {
|
|
61
119
|
this.privateNetworks[model_1.BlockchainSymbol.SOL] = {
|
|
62
120
|
[constants_1.GeneralNetwork.MAINNET]: mainnetRpcEndpoint,
|
|
63
121
|
};
|
|
64
122
|
return this;
|
|
65
123
|
}
|
|
124
|
+
setBitcoin(rpcEndpoint) {
|
|
125
|
+
this.privateNetworks[model_1.BlockchainSymbol.BITCOIN] = rpcEndpoint;
|
|
126
|
+
return this;
|
|
127
|
+
}
|
|
66
128
|
setCluster(cluster) {
|
|
67
129
|
this.cluster = cluster;
|
|
68
130
|
return this;
|
|
69
131
|
}
|
|
70
132
|
}
|
|
71
133
|
exports.ClusterService = ClusterService;
|
|
72
|
-
ClusterService.toBECluster = (cluster) => {
|
|
73
|
-
switch (cluster) {
|
|
74
|
-
case constants_1.GeneralNetwork.DEVNET:
|
|
75
|
-
return model_1.Cluster.DEV_NET;
|
|
76
|
-
case constants_1.GeneralNetwork.TESTNET:
|
|
77
|
-
return model_1.Cluster.TEST_NET;
|
|
78
|
-
case constants_1.GeneralNetwork.MAINNET:
|
|
79
|
-
return model_1.Cluster.MAIN_NET;
|
|
80
|
-
default:
|
|
81
|
-
throw new Error('No such type in general network');
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
ClusterService.clusterToGeneralNetwork = (cluster) => {
|
|
85
|
-
switch (cluster) {
|
|
86
|
-
case model_1.Cluster.DEV_NET:
|
|
87
|
-
return constants_1.GeneralNetwork.DEVNET;
|
|
88
|
-
case model_1.Cluster.TEST_NET:
|
|
89
|
-
return constants_1.GeneralNetwork.TESTNET;
|
|
90
|
-
case model_1.Cluster.MAIN_NET:
|
|
91
|
-
return constants_1.GeneralNetwork.MAINNET;
|
|
92
|
-
default:
|
|
93
|
-
throw new Error('Wrong type of cluster');
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
ClusterService.getPolygonClusterEndpoint = (cluster) => {
|
|
97
|
-
switch (cluster) {
|
|
98
|
-
case model_1.Cluster.MAIN_NET:
|
|
99
|
-
return 'https://chaotic-polished-film.matic.quiknode.pro/8cb3bb8c644810aaf02485ceb7ddf7a667c6f5be/';
|
|
100
|
-
default:
|
|
101
|
-
return 'https://sleek-floral-morning.matic-testnet.quiknode.pro/36f1f4259eedb86189d518239c1180469f798eb1/';
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
ClusterService.getEthClusterEndpoint = (cluster) => {
|
|
105
|
-
switch (cluster) {
|
|
106
|
-
case model_1.Cluster.MAIN_NET:
|
|
107
|
-
return 'https://broken-proportionate-dream.quiknode.pro/fc719afe6cefd74efcbfa6cff9c8d2d04c7de5ed/';
|
|
108
|
-
default:
|
|
109
|
-
return 'https://distinguished-magical-liquid.ethereum-goerli.quiknode.pro/c847d13d8bedbbde8394fafeaa80020c243e60b5/';
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
ClusterService.getBtcClusterEndpoint = (cluster) => {
|
|
113
|
-
switch (cluster) {
|
|
114
|
-
case model_1.Cluster.MAIN_NET:
|
|
115
|
-
return 'https://falling-silent-county.btc.quiknode.pro/ed9f16d4b7c45ee661f0053b0b3481dc9920bd0f/';
|
|
116
|
-
default:
|
|
117
|
-
return 'https://stylish-solemn-seed.btc-testnet.quiknode.pro/7c2b17c38fa62da6c386b64a4d8031120f6b587f/';
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
134
|
//# sourceMappingURL=ClusterService.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterService.js","sourceRoot":"","sources":["../../../../src/domain/services/ClusterService.ts"],"names":[],"mappings":";;;AAAA,4CAA8C;AAC9C,oCAAqD;
|
|
1
|
+
{"version":3,"file":"ClusterService.js","sourceRoot":"","sources":["../../../../src/domain/services/ClusterService.ts"],"names":[],"mappings":";;;AAAA,4CAA8C;AAC9C,oCAAqD;AASrD,MAAa,cAAc;IAKzB,YAAsB,eAA+B,EAAE,OAAgB;QACrE,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED,MAAM,CAAC,IAAI;QACT,OAAO,IAAI,cAAc,CACvB;YACE,CAAC,wBAAgB,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,0BAAc,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE;YACxD,CAAC,wBAAgB,CAAC,OAAO,CAAC,EAAE,EAAE;SAC/B,EACD,eAAO,CAAC,OAAO,CAChB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,OAAuB;QACxC,QAAQ,OAAO,EAAE;YACf,KAAK,0BAAc,CAAC,MAAM;gBACxB,OAAO,eAAO,CAAC,OAAO,CAAC;YACzB,KAAK,0BAAc,CAAC,OAAO;gBACzB,OAAO,eAAO,CAAC,QAAQ,CAAC;YAC1B,KAAK,0BAAc,CAAC,OAAO;gBACzB,OAAO,eAAO,CAAC,QAAQ,CAAC;YAC1B;gBACE,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACtD;IACH,CAAC;IAED,MAAM,CAAC,uBAAuB,CAAC,OAAgB;QAC7C,QAAQ,OAAO,EAAE;YACf,KAAK,eAAO,CAAC,OAAO;gBAClB,OAAO,0BAAc,CAAC,MAAM,CAAC;YAC/B,KAAK,eAAO,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AI,QAAQ,KAAK,EAAE,IAAI,QAAQ,IAAI,IAAI,EAAE;YACvC,OAAO,QAAQ,CAAC;SACjB;QACD,OAAO,cAAc,CAAC,qBAAqB,CAAC,YAAY,CAAC,CAAC;IAC5D,CAAC;IAED,SAAS,CAAC,kBAA0B;QAClC,IAAI,CAAC,eAAe,CAAC,wBAAgB,CAAC,GAAG,CAAC,GAAG;YAC3C,CAAC,0BAAc,CAAC,OAAO,CAAC,EAAE,kBAAkB;SAC7C,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;IAED,UAAU,CAAC,WAAmB;QAC5B,IAAI,CAAC,eAAe,CAAC,wBAAgB,CAAC,OAAO,CAAC,GAAG,WAAW,CAAC;QAC7D,OAAO,IAAI,CAAC;IACd,CAAC;IAED,UAAU,CAAC,OAAgB;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AA1JD,wCA0JC"}
|
|
@@ -6,7 +6,7 @@ class EthereumExplorerService {
|
|
|
6
6
|
static getEthereumExplorerUrlByCluster(network) {
|
|
7
7
|
return network === constants_1.Environment.PROD
|
|
8
8
|
? 'https://etherscan.io'
|
|
9
|
-
: 'https://
|
|
9
|
+
: 'https://sepolia.etherscan.io';
|
|
10
10
|
}
|
|
11
11
|
static getEthereumExplorerTransactionURL(transactionID, network) {
|
|
12
12
|
return `${EthereumExplorerService.getEthereumExplorerUrlByCluster(network)}/tx/${transactionID}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EthereumExplorerService.js","sourceRoot":"","sources":["../../../../src/domain/services/EthereumExplorerService.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAE3C,MAAa,uBAAuB;IAClC,MAAM,CAAC,+BAA+B,CACpC,OAAoB;QAEpB,OAAO,OAAO,KAAK,uBAAW,CAAC,IAAI;YACjC,CAAC,CAAC,sBAAsB;YACxB,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"EthereumExplorerService.js","sourceRoot":"","sources":["../../../../src/domain/services/EthereumExplorerService.ts"],"names":[],"mappings":";;;AAAA,4CAA2C;AAE3C,MAAa,uBAAuB;IAClC,MAAM,CAAC,+BAA+B,CACpC,OAAoB;QAEpB,OAAO,OAAO,KAAK,uBAAW,CAAC,IAAI;YACjC,CAAC,CAAC,sBAAsB;YACxB,CAAC,CAAC,8BAA8B,CAAC;IACrC,CAAC;IAED,MAAM,CAAC,iCAAiC,CACtC,aAAqB,EACrB,OAAoB;QAEpB,OAAO,GAAG,uBAAuB,CAAC,+BAA+B,CAC/D,OAAO,CACR,OAAO,aAAa,EAAE,CAAC;IAC1B,CAAC;IAED,MAAM,CAAC,6BAA6B,CAClC,OAAe,EACf,OAAoB;QAEpB,OAAO,GAAG,uBAAuB,CAAC,+BAA+B,CAC/D,OAAO,CACR,YAAY,OAAO,EAAE,CAAC;IACzB,CAAC;CACF;AA1BD,0DA0BC"}
|
|
@@ -4,13 +4,19 @@ exports.ExplorerAggregateService = void 0;
|
|
|
4
4
|
const PolygonExplorerService_1 = require("./PolygonExplorerService");
|
|
5
5
|
const model_1 = require("../model");
|
|
6
6
|
const SolscanService_1 = require("./SolscanService");
|
|
7
|
+
const EthereumExplorerService_1 = require("./EthereumExplorerService");
|
|
8
|
+
const BitcoinExplorerService_1 = require("./BitcoinExplorerService");
|
|
7
9
|
class ExplorerAggregateService {
|
|
8
10
|
static getTransactionUrlByBlockchain(blockchainSymbol, transactionSignature, env) {
|
|
9
11
|
switch (blockchainSymbol) {
|
|
10
12
|
case model_1.BlockchainSymbol.POLYGON:
|
|
11
13
|
return PolygonExplorerService_1.PolygonExplorerService.getPolygonExplorerTransactionURL(transactionSignature, env);
|
|
14
|
+
case model_1.BlockchainSymbol.ETH:
|
|
15
|
+
return EthereumExplorerService_1.EthereumExplorerService.getEthereumExplorerTransactionURL(transactionSignature, env);
|
|
12
16
|
case model_1.BlockchainSymbol.SOL:
|
|
13
17
|
return SolscanService_1.SolscanService.toSolScanLink(transactionSignature, env);
|
|
18
|
+
case model_1.BlockchainSymbol.BITCOIN:
|
|
19
|
+
return BitcoinExplorerService_1.BitcoinExplorerService.getTransactionUrl(transactionSignature, env);
|
|
14
20
|
default:
|
|
15
21
|
return '#';
|
|
16
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExplorerAggregateService.js","sourceRoot":"","sources":["../../../../src/domain/services/ExplorerAggregateService.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAClE,oCAA4C;AAC5C,qDAAkD;
|
|
1
|
+
{"version":3,"file":"ExplorerAggregateService.js","sourceRoot":"","sources":["../../../../src/domain/services/ExplorerAggregateService.ts"],"names":[],"mappings":";;;AAAA,qEAAkE;AAClE,oCAA4C;AAC5C,qDAAkD;AAElD,uEAAoE;AACpE,qEAAkE;AAElE,MAAa,wBAAwB;IAC5B,MAAM,CAAC,6BAA6B,CACzC,gBAAkC,EAClC,oBAA4B,EAC5B,GAAgB;QAEhB,QAAQ,gBAAgB,EAAE;YACxB,KAAK,wBAAgB,CAAC,OAAO;gBAC3B,OAAO,+CAAsB,CAAC,gCAAgC,CAC5D,oBAAoB,EACpB,GAAG,CACJ,CAAC;YACJ,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,iDAAuB,CAAC,iCAAiC,CAC9D,oBAAoB,EACpB,GAAG,CACJ,CAAC;YACJ,KAAK,wBAAgB,CAAC,GAAG;gBACvB,OAAO,+BAAc,CAAC,aAAa,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;YACjE,KAAK,wBAAgB,CAAC,OAAO;gBAC3B,OAAO,+CAAsB,CAAC,iBAAiB,CAC7C,oBAAoB,EACpB,GAAG,CACJ,CAAC;YACJ;gBACE,OAAO,GAAG,CAAC;SACd;IACH,CAAC;CACF;AA5BD,4DA4BC"}
|