Exemplo n.º 1
0
 def request(address, target):
     balance = unpaid_balance(address)
     main.sendMessage(target, 'nicehash.balance', balance=balance)
Exemplo n.º 2
0
 def test_bad_address(self):
     self.assertRaises(nicehash.APIError,
                       lambda: nicehash.unpaid_balance('x'))
Exemplo n.º 3
0
def post_balance(address, target):
    balance = nicehash.unpaid_balance(address)
    wx.PostEvent(target, NewBalanceEvent(balance=balance))
Exemplo n.º 4
0
 def test_balance(self):
     balance = nicehash.unpaid_balance('3Qe7nT9hBSVoXr8rM2TG6pq82AmLVKHy23')
     self.assertGreaterEqual(balance, 0.0)