from armorycolors import Colors from armoryengine.ArmoryUtils import enum, str2coin, NegativeValueError, \ TooMuchPrecisionError, LOGEXCEPT, coin2str, script_to_addrStr, \ addrStr_to_hash160, SCRADDR_P2PKH_BYTE, CheckHash160, binary_to_hex from armorymodels import WLTVIEWCOLS from qtdefines import QRichLabel, makeHorizFrame, GETFONT, tightSizeNChar, \ initialColResize, makeVertFrame, saveTableView from armoryengine.Transaction import SIGHASH_NONE, SIGHASH_ANYONECANPAY,\ PyCreateAndSignTx, PyTx, UnsignedTxInput from qtdialogs import DlgUnlockWallet from armoryengine.BDM import TheBDM DUSTCOLS = enum( 'chainIndex', 'AddrStr', 'Btc', ) DEFAULT_DUST_LIMIT = 10000000 MAX_DUST_LIMIT_STR = '0.00100000' class PluginObject(object): tabName = 'Dust-B-Gone' maxVersion = '0.93.99' ############################################################################# def __init__(self, main): def updateDustLimit(): try:
QTableView, QScrollArea, QAbstractTableModel, QModelIndex, QVariant from armorycolors import Colors from armoryengine.ArmoryUtils import enum, str2coin, NegativeValueError, \ TooMuchPrecisionError, LOGEXCEPT, coin2str, script_to_addrStr, \ addrStr_to_hash160, SCRADDR_P2PKH_BYTE, CheckHash160, binary_to_hex from armorymodels import WLTVIEWCOLS from qtdefines import QRichLabel, makeHorizFrame, GETFONT, tightSizeNChar, \ initialColResize, makeVertFrame, saveTableView from armoryengine.Transaction import SIGHASH_NONE, SIGHASH_ANYONECANPAY,\ PyCreateAndSignTx, PyTx, UnsignedTxInput from qtdialogs import DlgUnlockWallet from armoryengine.BDM import TheBDM DUSTCOLS = enum('chainIndex', 'AddrStr', 'Btc', ) DEFAULT_DUST_LIMIT = 10000000 MAX_DUST_LIMIT_STR = '0.00100000' class PluginObject(object): tabName = 'Dust-B-Gone' maxVersion = '0.93.99' ############################################################################# def __init__(self, main): def updateDustLimit(): try: self.dustTableModel.updateDustList(self.getSelectedWlt(), str2coin(self.dustLimitText.text()))
if i % 10 == 9: outputCallback(outputLine) outputLine = '' else: outputLine += ' ' if self.isStopped: return result if not found: outputCallback('Script finished!\n') outputCallback('Sorry, none of the provided passphrases were correct :(') endCallback() return result SEGDEFCOLS = enum('index', 'type', 'text', 'minLength', 'maxLength', 'totalCombinations') SEGTYPES = enum('known', 'unknownCase', 'unknownOrder') ################################################################################ class SegDefDisplayModel(QAbstractTableModel): def __init__(self): super(SegDefDisplayModel, self).__init__() self.segDefList = [] def updateSegList(self, segDefList): self.segDefList = [] self.segDefList.extend(segDefList) self.reset() def rowCount(self, index=QModelIndex()): return len(self.segDefList)
from armorymodels import WLTVIEWCOLS from qtdefines import ( QRichLabel, makeHorizFrame, GETFONT, tightSizeNChar, initialColResize, makeVertFrame, saveTableView, ) from armoryengine.Transaction import SIGHASH_NONE, SIGHASH_ANYONECANPAY, PyCreateAndSignTx, PyTx, UnsignedTxInput from qtdialogs import DlgUnlockWallet from armoryengine.BDM import TheBDM DUSTCOLS = enum("chainIndex", "AddrStr", "Btc") DEFAULT_DUST_LIMIT = 10000000 MAX_DUST_LIMIT_STR = "0.00100000" class PluginObject(object): tabName = "Dust-B-Gone" maxVersion = "0.93.99" ############################################################################# def __init__(self, main): def updateDustLimit(): try: self.dustTableModel.updateDustList(self.getSelectedWlt(), str2coin(self.dustLimitText.text())) self.beGoneDustButton.setEnabled(len(self.dustTableModel.dustTxOutlist) > 0)