def __init__(self): name = self.__class__.__name__ abi = web3util.abi(name) web3 = web3util.get_web3() contract_address = web3util.contractAddress(name) self.contract = web3.eth.contract(contract_address, abi=abi)
def _bfactory_address(): return web3util.contractAddress('BFactory')
def _OCEAN_address(): return web3util.contractAddress('Ocean')
def _dtfactory_address(): return web3util.contractAddress('DTFactory')