new BitcoinTwView subclass
This commit is contained in:
parent
3e85988878
commit
1072936f7b
4 changed files with 24 additions and 3 deletions
|
|
@ -15,9 +15,11 @@ proto.btc.tw.addresses: Bitcoin base protocol tracking wallet address list class
|
|||
from ....tw.addresses import TwAddresses
|
||||
from ....tw.shared import TwLabel
|
||||
from ....obj import get_obj
|
||||
from .rpc import BitcoinTwRPC
|
||||
|
||||
class BitcoinTwAddresses(TwAddresses, BitcoinTwRPC):
|
||||
from .rpc import BitcoinTwRPC
|
||||
from .view import BitcoinTwView
|
||||
|
||||
class BitcoinTwAddresses(BitcoinTwView, TwAddresses, BitcoinTwRPC):
|
||||
|
||||
has_age = True
|
||||
has_used = True
|
||||
|
|
|
|||
|
|
@ -19,7 +19,9 @@ from ....addr import CoinAddr
|
|||
from ....util import msg, msg_r
|
||||
from ....color import nocolor, red, pink, gray
|
||||
from ....obj import TwComment, CoinTxID, Int
|
||||
|
||||
from .rpc import BitcoinTwRPC
|
||||
from .view import BitcoinTwView
|
||||
|
||||
class BitcoinTwTransaction:
|
||||
|
||||
|
|
@ -238,7 +240,7 @@ class BitcoinTwTransaction:
|
|||
self.fee.to_unit(atomic_unit) // self.vsize,
|
||||
atomic_unit)))
|
||||
|
||||
class BitcoinTwTxHistory(TwTxHistory, BitcoinTwRPC):
|
||||
class BitcoinTwTxHistory(BitcoinTwView, TwTxHistory, BitcoinTwRPC):
|
||||
|
||||
has_age = True
|
||||
hdr_lbl = 'transaction history'
|
||||
|
|
|
|||
|
|
@ -13,8 +13,9 @@ proto.btc.tw.unspent: Bitcoin base protocol tracking wallet unspent outputs clas
|
|||
"""
|
||||
|
||||
from ....tw.unspent import TwUnspentOutputs
|
||||
from .view import BitcoinTwView
|
||||
|
||||
class BitcoinTwUnspentOutputs(TwUnspentOutputs):
|
||||
class BitcoinTwUnspentOutputs(BitcoinTwView, TwUnspentOutputs):
|
||||
|
||||
class display_type(TwUnspentOutputs.display_type):
|
||||
|
||||
|
|
|
|||
16
mmgen/proto/btc/tw/view.py
Executable file
16
mmgen/proto/btc/tw/view.py
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env python3
|
||||
#
|
||||
# MMGen Wallet, a terminal-based cryptocurrency wallet
|
||||
# Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
|
||||
# Licensed under the GNU General Public License, Version 3:
|
||||
# https://www.gnu.org/licenses
|
||||
# Public project repositories:
|
||||
# https://github.com/mmgen/mmgen-wallet
|
||||
# https://gitlab.com/mmgen/mmgen-wallet
|
||||
|
||||
"""
|
||||
proto.btc.tw.view: Bitcoin base protocol base class for tracking wallet view classes
|
||||
"""
|
||||
|
||||
class BitcoinTwView:
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue