Hsiao-Wei Wang b05444a92c
Update Makefile and CI config
1. Add `install_deposit_contract_test` command
2. Add `test_deposit_contract` command
2019-05-27 15:59:01 +08:00

17 lines
471 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.v.py')
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)