def eth_balance_handler(m): return BalanceResponse( type_converter.strToUInt256( self.eth_utils.getBalance(self.__account.address)))
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))
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))
def erc20_balance_handler(m): return AccountBalanceResponse( type_converter.strToUInt256( self.eth_utils.getTokenBalance(m.account.address)))