示例#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')