def __init__(self, contract_address): abi = web3util.abi('DataTokenTemplate') web3 = web3util.get_web3() self.contract = web3.eth.contract(contract_address, abi=abi)
def __init__(self, contract_address): name = self.__class__.__name__ abi = web3util.abi(name) web3 = web3util.get_web3() self.contract = web3.eth.contract(contract_address, abi=abi)
def _abi(self): return web3util.abi(filename='./abi/BPool.abi')