Skip to content

Commit e4d9d7c

Browse files
committed
added get_total_nodes_count()
1 parent e059d7c commit e4d9d7c

File tree

7 files changed

+31
-0
lines changed

7 files changed

+31
-0
lines changed

etherscan/configs/GOERLI-stable.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@
114114
"module": "stats",
115115
"kwargs": {}
116116
},
117+
"get_total_nodes_count": {
118+
"module": "stats",
119+
"kwargs": {}
120+
},
117121
"get_eth_last_price": {
118122
"module": "stats",
119123
"kwargs": {}

etherscan/configs/KOVAN-stable.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@
114114
"module": "stats",
115115
"kwargs": {}
116116
},
117+
"get_total_nodes_count": {
118+
"module": "stats",
119+
"kwargs": {}
120+
},
117121
"get_eth_last_price": {
118122
"module": "stats",
119123
"kwargs": {}

etherscan/configs/MAIN-stable.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@
114114
"module": "stats",
115115
"kwargs": {}
116116
},
117+
"get_total_nodes_count": {
118+
"module": "stats",
119+
"kwargs": {}
120+
},
117121
"get_eth_last_price": {
118122
"module": "stats",
119123
"kwargs": {}

etherscan/configs/RINKEBY-stable.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@
114114
"module": "stats",
115115
"kwargs": {}
116116
},
117+
"get_total_nodes_count": {
118+
"module": "stats",
119+
"kwargs": {}
120+
},
117121
"get_eth_last_price": {
118122
"module": "stats",
119123
"kwargs": {}

etherscan/configs/ROPSTEN-stable.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@
114114
"module": "stats",
115115
"kwargs": {}
116116
},
117+
"get_total_nodes_count": {
118+
"module": "stats",
119+
"kwargs": {}
120+
},
117121
"get_eth_last_price": {
118122
"module": "stats",
119123
"kwargs": {}

etherscan/enums/actions_enum.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class ActionsEnum:
5252
GET_SOURCE_CODE: str = "getsourcecode"
5353
GET_STATUS: str = "getstatus"
5454
GET_TX_RECEIPT_STATUS: str = "gettxreceiptstatus"
55+
NODE_COUNT: str = "nodecount"
5556
TOKEN_BALANCE_HISTORY: str = "tokenbalancehistory"
5657
TOKEN_BALANCE: str = "tokenbalance"
5758
TOKEN_INFO: str = "tokeninfo"

etherscan/modules/stats.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,13 @@ def get_eth_nodes_size(
4545
f"{sort}"
4646
)
4747
return url
48+
49+
@staticmethod
50+
def get_total_nodes_count() -> str:
51+
url = (
52+
f"{fields.MODULE}"
53+
f"{modules.STATS}"
54+
f"{fields.ACTION}"
55+
f"{actions.NODE_COUNT}"
56+
)
57+
return url

0 commit comments

Comments
 (0)