Skip to content

Commit fbd9d94

Browse files
Cardano support (#65)
* Add Cardano price data * Enable Cardano in config * Add instructions for Cardano mapping info * Add Cardano in docs * Add Cardano in plot.py
1 parent d60b78f commit fbd9d94

File tree

5 files changed

+82
-1
lines changed

5 files changed

+82
-1
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ required input, produced output, and more.
88
Currently, the supported blockchains are:
99
- Bitcoin
1010
- Bitcoin Cash
11+
- Cardano
1112
- Dogecoin
1213
- Ethereum
1314
- Litecoin
@@ -27,6 +28,14 @@ project:
2728

2829
python -m pip install -r requirements.txt
2930

31+
### Mapping information
32+
33+
The mapping information for Cardano is too large for Github.
34+
To retrieve it do the following:
35+
- Download the file from
36+
[here](https://uoe-my.sharepoint.com/:u:/g/personal/dkarakos_ed_ac_uk/ETgyf9W-JdtGlF5Ln8yj7zQB2uwtQLzB22oQDEfbvIn9Zg?e=HjXlxd&download=1).
37+
- Move the file to the folder `mapping_information/addresses/`. Note that the file should be named `cardano.json`.
38+
3039
## Run the tool
3140

3241
Place all raw data (which could be collected from [BigQuery](https://cloud.google.com/bigquery/) for example) in the `input` directory.

config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ metrics:
1414
ledgers:
1515
- bitcoin
1616
- bitcoin_cash
17+
- cardano
1718
- dogecoin
1819
- ethereum
1920
- litecoin
@@ -40,6 +41,7 @@ plot_parameters:
4041
ledgers:
4142
- bitcoin
4243
- bitcoin_cash
44+
- cardano
4345
- dogecoin
4446
- ethereum
4547
- litecoin

docs/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Currently, the supported ledgers are:
1212

1313
- Bitcoin
1414
- Bitcoin Cash
15+
- Cardano
1516
- Dogecoin
1617
- Ethereum
1718
- Litecoin
@@ -37,4 +38,4 @@ in the [Issues](https://github.com/Blockchain-Technology-Lab/tokenomics-decentra
3738
Other comments and ideas can be brought up in the project's
3839
[Discussions](https://github.com/Blockchain-Technology-Lab/tokenomics-decentralization/discussions/).
3940

40-
For more information on how to make specific contributions, see [How to Contribute](contribute.md).
41+
For more information on how to make specific contributions, see [How to Contribute](contribute.md).

plot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
tickers = {
99
'bitcoin': 'BTC',
1010
'bitcoin_cash': 'BCH',
11+
'cardano': 'ADA',
1112
'dogecoin': 'DOGE',
1213
'ethereum': 'ETH',
1314
'litecoin': 'LTC',

price_data/cardano-USD.csv

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
2017-10-01,0.03
2+
2017-11-01,0.12
3+
2017-12-01,0.77
4+
2018-01-01,0.5
5+
2018-02-01,0.33
6+
2018-03-01,0.15
7+
2018-04-01,0.36
8+
2018-05-01,0.21
9+
2018-06-01,0.13
10+
2018-07-01,0.15
11+
2018-08-01,0.1
12+
2018-09-01,0.08
13+
2018-10-01,0.07
14+
2018-11-01,0.04
15+
2018-12-01,0.04
16+
2019-01-01,0.04
17+
2019-02-01,0.04
18+
2019-03-01,0.07
19+
2019-04-01,0.06
20+
2019-05-01,0.08
21+
2019-06-01,0.09
22+
2019-07-01,0.06
23+
2019-08-01,0.04
24+
2019-09-01,0.04
25+
2019-10-01,0.04
26+
2019-11-01,0.04
27+
2019-12-01,0.03
28+
2020-01-01,0.06
29+
2020-02-01,0.05
30+
2020-03-01,0.03
31+
2020-04-01,0.05
32+
2020-05-01,0.08
33+
2020-06-01,0.08
34+
2020-07-01,0.14
35+
2020-08-01,0.12
36+
2020-09-01,0.1
37+
2020-10-01,0.09
38+
2020-11-01,0.17
39+
2020-12-01,0.18
40+
2021-01-01,0.36
41+
2021-02-01,1.34
42+
2021-03-01,1.21
43+
2021-04-01,1.32
44+
2021-05-01,1.58
45+
2021-06-01,1.37
46+
2021-07-01,1.31
47+
2021-08-01,2.73
48+
2021-09-01,2.06
49+
2021-10-01,1.95
50+
2021-11-01,1.6
51+
2021-12-01,1.36
52+
2022-01-01,1.04
53+
2022-02-01,0.86
54+
2022-03-01,1.19
55+
2022-04-01,0.81
56+
2022-05-01,0.57
57+
2022-06-01,0.47
58+
2022-07-01,0.53
59+
2022-08-01,0.45
60+
2022-09-01,0.44
61+
2022-10-01,0.41
62+
2022-11-01,0.31
63+
2022-12-01,0.25
64+
2023-01-01,0.37
65+
2023-02-01,0.37
66+
2023-03-01,0.38
67+
2023-04-01,0.4
68+
2023-05-01,0.38

0 commit comments

Comments
 (0)