@heliofi/common 0.1.496 → 0.1.498
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/company/dtos/updateCompany.dto.d.ts +1 -0
- package/dist/src/domain/model/company/dtos/updateCompany.dto.js +5 -0
- package/dist/src/domain/model/company/dtos/updateCompany.dto.js.map +1 -1
- package/dist/src/domain/model/transaction/entities/index.d.ts +0 -1
- package/dist/src/domain/model/transaction/entities/index.js +0 -1
- package/dist/src/domain/model/transaction/entities/index.js.map +1 -1
- package/dist/src/domain/model/transaction-meta/entities/CreateTransactionMeta.d.ts +1 -0
- package/dist/src/domain/model/transaction-meta/entities/CreateTransactionMeta.js.map +1 -1
- package/dist/src/domain/model/transaction-meta/entities/UpdateTransactionMeta.d.ts +1 -0
- package/dist/src/domain/model/transaction-meta/entities/UpdateTransactionMeta.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 +3 -3
|
@@ -53,5 +53,10 @@ __decorate([
|
|
|
53
53
|
(0, class_validator_1.IsString)(),
|
|
54
54
|
__metadata("design:type", String)
|
|
55
55
|
], UpdateCompanyDto.prototype, "tradingViewDetails", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsBoolean)(),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], UpdateCompanyDto.prototype, "useDirectEvmTransfers", void 0);
|
|
56
61
|
exports.UpdateCompanyDto = UpdateCompanyDto;
|
|
57
62
|
//# sourceMappingURL=updateCompany.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateCompany.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/company/dtos/updateCompany.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"updateCompany.dto.js","sourceRoot":"","sources":["../../../../../../src/domain/model/company/dtos/updateCompany.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,MAAa,gBAAgB;CAoC5B;AAnCC;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AAEd;IAAC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACE;AAEf;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AAEd;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACS;AAEpB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACc;AAEzB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACM;AAEjB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACU;AAErB;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4DACiB;AAE5B;IAAC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;+DACoB;AAnClC,4CAoCC"}
|
|
@@ -3,5 +3,4 @@ import { PaystreamTx } from '../../paystream-tx';
|
|
|
3
3
|
import { InvoiceTx } from '../../invoice-tx';
|
|
4
4
|
export * from './TransactionStatusToken.entity';
|
|
5
5
|
export * from './TransactionStatusResponse.entity';
|
|
6
|
-
export * from './TransactionDetails.entity';
|
|
7
6
|
export declare type Transaction = PaylinkTxWithShallowEnrichedPaylink | PaystreamTx | InvoiceTx;
|
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./TransactionStatusToken.entity"), exports);
|
|
18
18
|
__exportStar(require("./TransactionStatusResponse.entity"), exports);
|
|
19
|
-
__exportStar(require("./TransactionDetails.entity"), exports);
|
|
20
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,kEAAgD;AAChD,qEAAmD
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,kEAAgD;AAChD,qEAAmD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateTransactionMeta.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/entities/CreateTransactionMeta.ts"],"names":[],"mappings":";;;AASA,MAAa,qBAAqB;
|
|
1
|
+
{"version":3,"file":"CreateTransactionMeta.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/entities/CreateTransactionMeta.ts"],"names":[],"mappings":";;;AASA,MAAa,qBAAqB;CA0CjC;AA1CD,sDA0CC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateTransactionMeta.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/entities/UpdateTransactionMeta.ts"],"names":[],"mappings":";;;AAKA,MAAa,qBAAqB;
|
|
1
|
+
{"version":3,"file":"UpdateTransactionMeta.js","sourceRoot":"","sources":["../../../../../../src/domain/model/transaction-meta/entities/UpdateTransactionMeta.ts"],"names":[],"mappings":";;;AAKA,MAAa,qBAAqB;CAsBjC;AAtBD,sDAsBC"}
|
|
@@ -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,I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B;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"}
|