# Path: reversecoin/bitcoin/coredefs.py
# COIN = 100000000
# 
# Path: reversecoin/bitcoin/base58.py
# class CBitcoinAddress(CBase58Data):
#     PUBKEY_ADDRESS = 0
#     SCRIPT_ADDRESS = 5
#     PUBKEY_ADDRESS_TEST = 111
#     SCRIPT_ADDRESS_TEST = 196


    import http.client as httplib
    import httplib
import base64
import decimal
import json
import os
import platform
    import urllib.parse as urlparse
    import urlparse
from reversecoin.bitcoin.coredefs import COIN
from reversecoin.bitcoin.base58 import CBitcoinAddress


class Proxy(RawProxy):
    def __init__(self, service_url=None,
                       service_port=8332,
                       btc_conf_file=None,
                       timeout=HTTP_TIMEOUT,
                       **kwargs):
        """Create a proxy to a bitcoin RPC service

        Unlike RawProxy data is passed as objects, rather than JSON. (not yet
        fully implemented)

        If service_url is not specified the username and password are read out
        of the file btc_conf_file. If btc_conf_file is not specified
        ~/.bitcoin/bitcoin.conf or equivalent is used by default.

        Usually no arguments to Proxy() are needed; the local bitcoind will be
        used.

        timeout - timeout in seconds before the HTTP interface times out
        """
        super(Proxy, self).__init__(service_url=service_url, service_port=service_port, btc_conf_file=btc_conf_file,
                                    timeout=HTTP_TIMEOUT,
                                    **kwargs)

    def getinfo(self):
        """Returns an object containing various state info"""
        r = self._call('getinfo')
        r['balance'] = int(r['balance'] * COIN)

# Path: reversecoin/bitcoin/coredefs.py
# COIN = 100000000
# 
# Path: reversecoin/bitcoin/base58.py
# class CBitcoinAddress(CBase58Data):
#     PUBKEY_ADDRESS = 0
#     SCRIPT_ADDRESS = 5
#     PUBKEY_ADDRESS_TEST = 111
#     SCRIPT_ADDRESS_TEST = 196


# Path: reversecoin/bitcoin/rpc.py
    import http.client as httplib
    import httplib
import base64
import decimal
import json
import os
import platform
    import urllib.parse as urlparse
    import urlparse
from reversecoin.bitcoin.coredefs import COIN
from reversecoin.bitcoin.base58 import CBitcoinAddress



class Proxy(RawProxy):
    def __init__(self, service_url=None,
                       service_port=8332,
                       btc_conf_file=None,
                       timeout=HTTP_TIMEOUT,
                       **kwargs):
        """Create a proxy to a bitcoin RPC service

        Unlike RawProxy data is passed as objects, rather than JSON. (not yet
        fully implemented)

        If service_url is not specified the username and password are read out
        of the file btc_conf_file. If btc_conf_file is not specified
        ~/.bitcoin/bitcoin.conf or equivalent is used by default.

        Usually no arguments to Proxy() are needed; the local bitcoind will be
        used.

        timeout - timeout in seconds before the HTTP interface times out
        """
        super(Proxy, self).__init__(service_url=service_url, service_port=service_port, btc_conf_file=btc_conf_file,
                                    timeout=HTTP_TIMEOUT,
                                    **kwargs)

    def getinfo(self):
        """Returns an object containing various state info"""
        r = self._call('getinfo')
        r['balance'] = int(r['balance'] * COIN)

        r['paytxfee'] = int(r['paytxfee'] * COIN)