Total Complexity | 17 |
Complexity/F | 1 |
Lines of Code | 70 |
Function Count | 17 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | |||
2 | var BlocktrailConverter = function() { |
||
3 | |||
4 | }; |
||
5 | |||
6 | BlocktrailConverter.prototype.paginationParams = function(params) { |
||
7 | return params; |
||
8 | }; |
||
9 | |||
10 | BlocktrailConverter.prototype.getUrlForBlock = function(blockHash) { |
||
11 | return "/block/" + blockHash; |
||
12 | }; |
||
13 | |||
14 | BlocktrailConverter.prototype.getUrlForTransaction = function(txId) { |
||
15 | return "/transaction/" + txId; |
||
16 | }; |
||
17 | |||
18 | BlocktrailConverter.prototype.getUrlForBlockTransaction = function(blockHash) { |
||
19 | return "/block/" + blockHash + "/transactions"; |
||
20 | }; |
||
21 | |||
22 | BlocktrailConverter.prototype.getUrlForAddress = function(address) { |
||
23 | return "/address/" + address; |
||
24 | }; |
||
25 | |||
26 | BlocktrailConverter.prototype.getUrlForAddressTransactions = function(address) { |
||
27 | return "/address/" + address + "/transactions"; |
||
28 | }; |
||
29 | |||
30 | BlocktrailConverter.prototype.getUrlForAddressUnspent = function(address) { |
||
31 | return "/address/" + address + "/unspent-outputs"; |
||
32 | }; |
||
33 | |||
34 | BlocktrailConverter.prototype.convertBlock = function(oldData) { |
||
35 | return oldData; |
||
36 | }; |
||
37 | |||
38 | BlocktrailConverter.prototype.convertBlockTxs = function(oldData) { |
||
39 | return oldData; |
||
40 | }; |
||
41 | |||
42 | BlocktrailConverter.prototype.convertTx = function(oldData) { |
||
43 | return oldData; |
||
44 | }; |
||
45 | |||
46 | BlocktrailConverter.prototype.convertAddressTxs = function(data) { |
||
47 | return data; |
||
48 | }; |
||
49 | |||
50 | BlocktrailConverter.prototype.convertAddress = function(data) { |
||
51 | return data; |
||
52 | }; |
||
53 | |||
54 | BlocktrailConverter.prototype.convertAddressUnspentOutputs = function(data) { |
||
55 | return data; |
||
56 | }; |
||
57 | |||
58 | BlocktrailConverter.prototype.convertBatchAddressUnspentOutputs = function(data) { |
||
59 | return data; |
||
60 | }; |
||
61 | |||
62 | BlocktrailConverter.prototype.getUrlForAllBlocks = function() { |
||
63 | return "/all-blocks"; |
||
64 | }; |
||
65 | |||
66 | BlocktrailConverter.prototype.handleErros = function(self, data) { |
||
67 | return data; |
||
68 | }; |
||
69 | |||
70 | |||
71 | exports = module.exports = BlocktrailConverter; |
||
72 |