

class Address(object):

    def __init__(self, address, balance):
        """
        Initializes an ethereum address object.
        """
        self.address = address
        self.balance = balance

@@ -1,202 +1,1663 @@
-%0A%0Aclass Address(object):%0A%0A    def __init__(self, address, balance):%0A        %22%22%22%0A        Initializes an ethereum address object.%0A        %22%22%22%0A        self.address = address%0A        self.balance = balance
+%22%22%22%0ALibrary for building ethereum objects using the ETherscan API.%0A%22%22%22%0Afrom . import client, error%0A%0A%0Aclass Transaction(object):%0A    %22%22%22%0A    %22%22%22%0A%0A    def __init__(self, address=None, hash=None):%0A        pass%0A%0A%0Aclass Address(object):%0A    %22%22%22%0A    Represents a base address.%0A%0A    This uses the :py:class:%60Client%60 object to retrieve information about, and%0A    construct, the %60%60Address%60%60.%0A%0A    Public Attributes:%0A        - %60%60address%60%60%0A        - %60%60balance%60%60%0A%0A    Public Methods:%0A        - :py:meth:%60retrieve_balance%60%0A%0A    Example Usage:%0A%0A        .. code-block:: python%0A%0A            In %5B1%5D: address = '0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae'%0A%0A            In %5B2%5D: ethereum_address = Address(address)%0A%0A            In %5B3%5D: ethereum_address.balance%0A            Out%5B3%5D: 748997604382925139479303.0%0A%0A    %22%22%22%0A%0A    def __init__(self, address):%0A        %22%22%22%0A        Initializes an ethereum address object.%0A        %22%22%22%0A        if not isinstance(address, str):%0A            raise error.EtherscanInitializationError(%0A                %22address must be a string.%22%0A            )%0A%0A        self.address = address%0A        self.client = client.Client()%0A%0A        self._balance = None%0A%0A    def retrieve_balance(self):%0A        %22%22%22%0A        Obtains the balance for this address using the :py:class:%60Client%60 object.%0A        %22%22%22%0A        balance_object = self.client.get_single_balance(%0A            self.address%0A        )%0A        self._balance = balance_object.balance%0A        return self._balance%0A%0A    @property%0A    def balance(self):%0A        %22%22%22%0A        The balance in ether for this address.%0A        %22%22%22%0A        return self._balance or self.retrieve_balance()%0A%0A%0Aclass Contract(object):%0A    pass
 %0A

Add initial ethereum objects