예제 #1
0
 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)
예제 #2
0
def _bfactory_address():
    return web3util.contractAddress('BFactory')
예제 #3
0
def _OCEAN_address():
    return web3util.contractAddress('Ocean')
예제 #4
0
def _dtfactory_address():
    return web3util.contractAddress('DTFactory')