Module Expr Str ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias FunctionDef arguments args NameParam defaults body Return ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str If UnaryOpNot Call AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str TupleLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad Call AttributeLoad Call AttributeLoad NameLoad attr Str TupleLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Call AttributeLoad NameLoad attr Str TupleLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad NameLoad attr Str TupleLoad NameLoad attr decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return Call AttributeLoad AttributeLoad NameLoad attr attr orelse Return Str decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Return AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assert CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad If CompareNotEq SubscriptLoad AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr body Return NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Return UnaryOpNot Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad body Return NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore CompareEq AttributeLoad NameLoad attr Call NameLoad ListLoad Num If NameLoad body For NameStore NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Return NameLoad For NameStore NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Raise FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad If CompareEq NameLoad ListLoad body Return Call AttributeLoad NameLoad attr Num For NameStore NameLoad body If Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr body Return NameLoad Return NameLoad decorator_list Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Dict Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad NameLoad attr body Return ListLoad Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr orelse Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Return Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If NameLoad body Return Call NameLoad NameLoad NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call NameLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareGt Call NameLoad Call AttributeLoad NameLoad attr NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If CompareIs NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call NameLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore ListComp Call AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore AttributeLoad NameLoad attr For NameStore AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr attr Str If CompareIn AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad decorator_list decorator_list
N/A N/A 
coindb.py

Keeps track of transaction outputs (coins) which belong to user's wallet.
CoinQuery is able to find transaction outputs satisfying certain criteria:

 * belonging to a particular color set (incl. uncolored)
 * confirmed/unconfirmed
 * spent/unspent

Information about coins is added either by UTXO fetcher or by wallet
controller through apply_tx.
 coloredcoinlib.store DataStore DataStoreConnection unwrap1 coloredcoinlib.txspec ComposedTxSpec txcons RawTxSpec coloredcoinlib UNCOLORED_MARKER SimpleColorValue flatten1 N/A N/A lst N/A N/A N/A N/A N/A elt N/A 0 N/A elt lst N/A CoinStore N/A DataStore N/A N/A Storage for Coin (Transaction Objects).
     __init__ N/A N/A self conn N/A N/A N/A Create a unspent transaction out data-store at <dbpath>.
         N/A N/A N/A N/A super CoinStore self __init__ conn N/A N/A N/A N/A self table_exists coin_data N/A N/A N/A N/A self execute 
                CREATE TABLE coin_data (
                    id INTEGER PRIMARY KEY AUTOINCREMENT, address TEXT,
                    txhash TEXT, outindex INTEGER, value INTEGER,
                    script TEXT)
             N/A N/A N/A self execute CREATE UNIQUE INDEX coin_data_outpoint ON coin_data (txhash, outindex) N/A N/A N/A self execute CREATE INDEX coin_data_address ON coin_data (address) N/A N/A N/A N/A self table_exists coin_spends N/A N/A N/A N/A self execute 
                 CREATE TABLE coin_spends (coin_id INTEGER, txhash TEXT,
                               FOREIGN KEY (coin_id) REFERENCES coin_data(id)) N/A N/A N/A self execute CREATE UNIQUE INDEX coin_spends_id ON coin_spends (coin_id, txhash) N/A N/A N/A self execute CREATE INDEX coin_spends_txhash ON coin_spends (txhash) N/A purge_coins N/A N/A self N/A N/A N/A N/A N/A self execute DELETE FROM coin_spends N/A N/A N/A self execute DELETE FROM coin_data N/A delete_coin N/A N/A self coin_id N/A N/A N/A N/A N/A self execute DELETE FROM coin_spends WHERE coin_id = ? N/A coin_id N/A N/A N/A self execute DELETE FROM coin_data WHERE id = ? N/A coin_id N/A add_coin N/A N/A self address txhash outindex value script N/A N/A N/A Record a coin into the sqlite3 DB. We record the following
        values:
        <address>    - bitcoin address of the coin
        <txhash>     - b58 encoded transaction hash
        <outindex>   - position of the coin within the greater transaction
        <value>      - amount in Satoshi being sent
        <script>     - signature
         N/A N/A N/A self execute INSERT INTO coin_data
               (address, txhash, outindex, value, script)
               VALUES (?, ?, ?, ?, ?) N/A address txhash outindex value script N/A add_spend N/A N/A self coin_id spend_txhash N/A N/A N/A N/A N/A self execute INSERT OR IGNORE INTO coin_spends (coin_id, txhash) VALUES (?, ?) N/A coin_id spend_txhash N/A find_coin N/A N/A self txhash outindex N/A N/A N/A N/A unwrap1 N/A N/A N/A N/A self execute SELECT id FROM coin_data WHERE txhash = ? and outindex = ? N/A txhash outindex fetchone N/A get_coin_spends N/A N/A self coin_id N/A N/A N/A N/A flatten1 N/A N/A N/A N/A self execute SELECT txhash FROM coin_spends WHERE coin_id = ? N/A coin_id fetchall N/A get_coins_for_address N/A N/A self address N/A N/A N/A Return the entire list of coins for a given address <address>
         N/A N/A N/A N/A N/A self execute SELECT * FROM coin_data WHERE address = ? N/A address fetchall N/A get_coin N/A N/A self coin_id N/A N/A N/A N/A N/A N/A N/A self execute SELECT * FROM coin_data WHERE id = ? N/A coin_id fetchone N/A N/A UTXO N/A N/A ComposedTxSpec TxIn N/A __init__ N/A N/A self utxo_data N/A N/A N/A N/A N/A N/A super UTXO self __init__ N/A utxo_data N/A txhash N/A utxo_data N/A outindex N/A N/A self txhash N/A utxo_data N/A txhash N/A N/A self outindex N/A utxo_data N/A outindex N/A N/A self value N/A utxo_data N/A value N/A N/A self script N/A utxo_data N/A script N/A N/A self address_rec None N/A N/A self colorvalues None N/A N/A Coin N/A UTXO N/A __init__ N/A N/A self coin_manager coin_data N/A N/A N/A N/A N/A N/A super Coin self __init__ coin_data N/A N/A self coin_id N/A coin_data N/A id N/A N/A self address N/A coin_data N/A address N/A N/A self coin_manager coin_manager N/A get_address N/A N/A self N/A N/A N/A N/A self address_rec N/A N/A N/A N/A N/A self address_rec get_address N/A N/A not set N/A get_colorvalues N/A N/A self N/A N/A N/A N/A self colorvalues N/A N/A N/A self colorvalues N/A N/A N/A self colorvalues N/A N/A N/A self coin_manager compute_colorvalues self N/A N/A self colorvalues N/A get_spending_txs N/A N/A self N/A N/A N/A N/A N/A N/A self coin_manager get_coin_spending_txs self N/A is_spent N/A N/A self N/A N/A N/A N/A N/A N/A self coin_manager is_coin_spent self N/A is_confirmed N/A N/A self N/A N/A N/A N/A N/A N/A self coin_manager is_coin_confirmed self N/A is_valid N/A N/A self N/A N/A N/A N/A N/A N/A self coin_manager is_coin_valid self N/A N/A CoinQuery N/A object N/A N/A Query object for getting data out of the UTXO data-store.
     __init__ N/A N/A self model color_set filter_options N/A N/A N/A Create a query object given a wallet_model <model> and
        a list of colors in <color_set>
         N/A N/A self model model N/A N/A self color_set color_set N/A N/A self coin_manager N/A N/A model get_coin_manager N/A N/A self filter_options filter_options N/A N/A spent filter_options N/A coin_matches_filter N/A N/A self coin N/A N/A N/A N/A N/A N/A coin is_valid N/A N/A False N/A N/A N/A N/A self filter_options N/A spent N/A N/A coin is_spent N/A N/A False N/A N/A N/A N/A self filter_options get only_unconfirmed False N/A N/A N/A N/A N/A coin is_confirmed N/A N/A N/A N/A self filter_options get include_unconfirmed False N/A N/A True N/A N/A N/A coin is_confirmed N/A get_coins_for_address N/A N/A self address_rec N/A N/A N/A Given an address <address_rec>, return the list of coin's
        straight from the DB. Note this specifically does NOT return
        COIN objects.
         N/A color_set N/A self color_set N/A addr_color_set N/A N/A address_rec get_color_set N/A all_coins N/A filter N/A self coin_matches_filter N/A N/A N/A self coin_manager get_coins_for_address N/A N/A address_rec get_address N/A cdata N/A N/A N/A self model ccc colordata N/A address_is_uncolored N/A N/A addr_color_set color_id_set N/A set N/A 0 N/A address_is_uncolored N/A N/A coin all_coins N/A N/A N/A coin address_rec address_rec N/A N/A coin colorvalues N/A N/A SimpleColorValue colordef UNCOLORED_MARKER value N/A coin value N/A all_coins N/A coin all_coins N/A N/A N/A coin address_rec address_rec N/A N/A coin colorvalues None N/A N/A N/A N/A coin colorvalues N/A N/A cdata get_colorvalues N/A addr_color_set color_id_set N/A coin txhash N/A coin outindex N/A N/A N/A Exception N/A e N/A N/A relevant N/A N/A coin N/A N/A N/A cvl N/A coin colorvalues N/A N/A N/A coin colorvalues None N/A N/A False N/A N/A cvl N/A N/A N/A N/A N/A color_set has_color_id 0 N/A cv cvl N/A N/A N/A N/A color_set has_color_id N/A N/A cv get_color_id N/A N/A True N/A False N/A N/A N/A filter relevant all_coins N/A get_result N/A N/A self N/A N/A N/A Returns all utxos for the color_set defined for this query.
         N/A addr_man N/A N/A N/A self model get_address_manager N/A addresses N/A N/A addr_man get_addresses_for_color_set N/A self color_set N/A utxos N/A N/A address addresses N/A N/A N/A N/A utxos extend N/A N/A self get_coins_for_address address N/A utxos N/A N/A CoinManager N/A object N/A N/A Object for managing the UTXO data store.
    Note using this manager allows us to create multiple UTXO data-stores.
     __init__ N/A N/A self model config N/A N/A N/A Creates a UTXO manager given a wallet_model <model>
        and configuration <config>.
         N/A params N/A N/A config get utxodb N/A N/A N/A self model model N/A N/A self store N/A CoinStore N/A N/A N/A self model store_conn conn N/A compute_colorvalues N/A N/A self coin N/A N/A N/A wam N/A N/A N/A self model get_address_manager N/A address_rec N/A N/A wam find_address_record N/A coin address N/A N/A address_rec N/A N/A N/A Exception Address record not found! N/A color_set N/A N/A address_rec get_color_set N/A N/A N/A color_set uncolored_only N/A N/A N/A N/A SimpleColorValue colordef UNCOLORED_MARKER value N/A coin value N/A N/A cdata N/A N/A N/A self model ccc colordata N/A N/A N/A cdata get_colorvalues N/A color_set color_id_set N/A coin txhash N/A coin outindex N/A purge_coins N/A N/A self N/A N/A N/A full rescan N/A N/A N/A N/A self store purge_coins N/A find_coin N/A N/A self txhash outindex N/A N/A N/A coin_id N/A N/A N/A self store find_coin txhash outindex N/A coin_id N/A N/A N/A N/A self get_coin coin_id N/A N/A None N/A get_coin N/A N/A self coin_id N/A N/A N/A coin_rec N/A N/A N/A self store get_coin coin_id N/A coin_rec N/A N/A N/A Coin self coin_rec N/A N/A None N/A is_coin_valid N/A N/A self coin N/A N/A N/A N/A N/A N/A N/A N/A self model get_tx_db is_tx_valid N/A coin txhash N/A get_coin_spending_txs N/A N/A self coin N/A N/A N/A N/A filter N/A N/A N/A N/A self model get_tx_db is_tx_valid N/A N/A N/A self store get_coin_spends N/A coin coin_id N/A is_coin_spent N/A N/A self coin N/A N/A N/A N/A N/A len N/A N/A self get_coin_spending_txs coin 0 N/A is_coin_confirmed N/A N/A self coin N/A N/A N/A N/A N/A N/A N/A N/A self model get_tx_db is_tx_confirmed N/A coin txhash N/A get_coins_for_address N/A N/A self address N/A N/A N/A Returns a list of UTXO objects for a given address <address>
         N/A coins N/A N/A coin_rec N/A N/A N/A self store get_coins_for_address address N/A N/A coin N/A Coin self coin_rec N/A N/A N/A coins append coin N/A coins N/A add_coin N/A N/A self address txhash outindex value script N/A N/A N/A coin_id N/A N/A N/A self store find_coin txhash outindex N/A N/A coin_id None N/A N/A N/A N/A N/A self store add_coin address txhash outindex value script N/A coin_id N/A N/A N/A self store find_coin txhash outindex N/A get_coins_for_transaction N/A N/A self raw_tx N/A N/A N/A all coins referenced by a transaction N/A spent_coins N/A N/A txin N/A N/A raw_tx composed_tx_spec txins N/A N/A N/A prev_txhash prev_outindex N/A N/A txin get_outpoint N/A coin N/A N/A self find_coin prev_txhash prev_outindex N/A coin N/A N/A N/A N/A spent_coins append coin N/A received_coins N/A N/A txhash N/A N/A raw_tx get_hex_txhash N/A out_idx N/A range N/A len N/A N/A raw_tx composed_tx_spec txouts N/A N/A coin N/A N/A self find_coin txhash out_idx N/A coin N/A N/A N/A N/A received_coins append coin N/A N/A spent_coins received_coins N/A apply_tx N/A N/A self txhash raw_tx N/A N/A N/A Given a transaction <composed_tx_spec>, delete any
        utxos that it spends and add any utxos that are new
         N/A all_addresses N/A N/A N/A a get_address N/A a N/A N/A N/A N/A N/A self model get_address_manager get_all_addresses N/A ctxs N/A raw_tx composed_tx_spec N/A txin N/A ctxs txins N/A N/A N/A prev_txhash prev_outindex N/A N/A txin get_outpoint N/A coin_id N/A N/A N/A self store find_coin prev_txhash prev_outindex N/A coin_id N/A N/A N/A N/A N/A self store add_spend coin_id txhash N/A N/A i txout N/A enumerate N/A ctxs txouts N/A N/A script N/A N/A N/A N/A N/A N/A raw_tx pycoin_tx txs_out N/A i script encode hex N/A N/A N/A txout target_addr all_addresses N/A N/A N/A N/A self add_coin N/A txout target_addr txhash i N/A txout value script N/A N/A