예제 #1
0
 def __init__(self, contract_address):
     abi = web3util.abi('DataTokenTemplate')
     web3 = web3util.get_web3()
     self.contract = web3.eth.contract(contract_address, abi=abi)
예제 #2
0
 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)
예제 #3
0
 def _abi(self):
     return web3util.abi(filename='./abi/BPool.abi')