mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-12 11:44:41 +00:00
17 lines
469 B
Python
17 lines
469 B
Python
import json
|
|
import os
|
|
|
|
DIR = os.path.dirname(__file__)
|
|
|
|
|
|
def get_deposit_contract_code():
|
|
file_path = os.path.join(DIR, './../../contracts/validator_registration.vy')
|
|
deposit_contract_code = open(file_path).read()
|
|
return deposit_contract_code
|
|
|
|
|
|
def get_deposit_contract_json():
|
|
file_path = os.path.join(DIR, './../../contracts/validator_registration.json')
|
|
deposit_contract_json = open(file_path).read()
|
|
return json.loads(deposit_contract_json)
|