Exemplo n.º 1
0
 def eth_balance_handler(m):
     return BalanceResponse(
         type_converter.strToUInt256(
             self.eth_utils.getBalance(self.__account.address)))
Exemplo n.º 2
0
 def account_to_address_erc20_allowance_handler(m):
     amount_allowance = self.eth_utils.getAllowance(
         m.account.address, m.to.address)
     return AccountToAddressAllowanceResponse(
         type_converter.strToUInt256(amount_allowance))
Exemplo n.º 3
0
 def erc20_allowance_of_handler(m):
     # account from keyfile to default factory allowance
     amount_allowance = self.eth_utils.getAllowance(
         self.__account.address, self.factory_address)
     return AllowanceResponse(
         type_converter.strToUInt256(amount_allowance))
Exemplo n.º 4
0
 def erc20_balance_handler(m):
     return AccountBalanceResponse(
         type_converter.strToUInt256(
             self.eth_utils.getTokenBalance(m.account.address)))