2019-05-27 05:15:10 +00:00
|
|
|
import json
|
|
|
|
import os
|
|
|
|
|
|
|
|
DIR = os.path.dirname(__file__)
|
|
|
|
|
|
|
|
|
|
|
|
def get_deposit_contract_code():
|
2019-05-27 07:57:55 +00:00
|
|
|
file_path = os.path.join(DIR, './../../contracts/validator_registration.v.py')
|
2019-05-27 05:15:10 +00:00
|
|
|
deposit_contract_code = open(file_path).read()
|
|
|
|
return deposit_contract_code
|
|
|
|
|
|
|
|
|
|
|
|
def get_deposit_contract_json():
|
2019-05-27 07:57:55 +00:00
|
|
|
file_path = os.path.join(DIR, './../../contracts/validator_registration.json')
|
2019-05-27 05:15:10 +00:00
|
|
|
deposit_contract_json = open(file_path).read()
|
|
|
|
return json.loads(deposit_contract_json)
|