Skip to content

Commit

Permalink
Merge branch 'ethereum-redesign' of github.com:seed-labs/seed-emulato…
Browse files Browse the repository at this point in the history
…r into ethereum-redesign
  • Loading branch information
wonkr committed Jan 25, 2023
2 parents ef40cce + eca1008 commit f8c487f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@
###############################################################################
# Compilation

emu.compile(Docker(mapClientEnabled = True), './output')
emu.compile(Docker(internetMapEnabled = True), './output')
29 changes: 29 additions & 0 deletions tools/Blockchain/lib/BeaconClient.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import requests

class BeaconClient:
"""!
@brief The BeaconClient class.
"""

def __init__(self):
"""!
@brief BeaconClient constructor.
"""

self._beacon_node_url = 'http://10.151.0.71:8000'

def getValidatorStatus(self):
return requests.get(self._beacon_node_url+"/"+"/eth/v1/beacon/states/head/validators")['data']


class ValidatorClient:
"""!
@brief The ValidatorClient class.
"""

def __init__(self):
"""!
@brief ValidatorClient constructor.
"""

self._validator_node_url = 'http://10.151.0.71:5062'

0 comments on commit f8c487f

Please sign in to comment.