From 4d7aaa9d88028a0ea28aa8f1677775ab0d0c95c2 Mon Sep 17 00:00:00 2001 From: The MMGen Project Date: Wed, 19 Mar 2025 16:19:07 +0300 Subject: [PATCH] minor cleanups --- mmgen/proto/btc/rpc.py | 12 +++++++++--- mmgen/proto/btc/tx/new_swap.py | 9 +++++---- mmgen/proto/eth/rpc.py | 4 +++- pyproject.toml | 2 +- 4 files changed, 18 insertions(+), 9 deletions(-) diff --git a/mmgen/proto/btc/rpc.py b/mmgen/proto/btc/rpc.py index 2497dd97..0acf6732 100755 --- a/mmgen/proto/btc/rpc.py +++ b/mmgen/proto/btc/rpc.py @@ -340,22 +340,28 @@ class BitcoinRPCClient(RPCClient, metaclass=AsyncInit): 'getblockhash', 'getblockheader', 'getblockstats', # mmgen-node-tools - 'getmempoolinfo', + 'getdeploymentinfo', 'getmempoolentry', + 'getmempoolentry', + 'getmempoolinfo', 'getnettotals', 'getnetworkinfo', 'getpeerinfo', 'getrawmempool', - 'getmempoolentry', + 'getrawtransaction', 'getrawtransaction', 'gettransaction', + 'gettransaction', + 'getwalletinfo', 'importaddress', # address (address or script) label rescan p2sh (Add P2SH version of the script) 'importdescriptors', # like above, but for descriptor wallets 'listaccounts', 'listlabels', + 'listreceivedbylabel', + 'listsinceblock', 'listunspent', - 'setlabel', 'sendrawtransaction', + 'setlabel', 'signrawtransaction', 'signrawtransactionwithkey', # method new to Core v0.17.0 'validateaddress', diff --git a/mmgen/proto/btc/tx/new_swap.py b/mmgen/proto/btc/tx/new_swap.py index ed32cee6..88cd8e6c 100755 --- a/mmgen/proto/btc/tx/new_swap.py +++ b/mmgen/proto/btc/tx/new_swap.py @@ -43,10 +43,11 @@ class NewSwap(New, TxNewSwap): class CmdlineArgs: # listed in command-line order # send_coin # required: uppercase coin symbol - send_amt = None # optional: Omit to skip change addr and send value of all inputs minus fees to vault - chg_spec = None # optional: change address spec, e.g. ‘B’ ‘DEADBEEF:B’ ‘DEADBEEF:B:1’ or coin address. - # Omit for autoselected change address. Use of non-wallet change address - # will emit warning and prompt user for confirmation + send_amt = None # optional: Omit to skip change addr and send value of all inputs minus fees + # to vault + chg_spec = None # optional: change address spec, e.g. ‘B’ ‘DEADBEEF:B’ ‘DEADBEEF:B:1’ or coin + # address. Omit for autoselected change address. Use of non-wallet + # change address will emit warning and prompt user for confirmation # recv_coin # required: uppercase coin symbol recv_spec = None # optional: destination address spec. Same rules as for chg_spec diff --git a/mmgen/proto/eth/rpc.py b/mmgen/proto/eth/rpc.py index dbb3f506..3c3c296c 100755 --- a/mmgen/proto/eth/rpc.py +++ b/mmgen/proto/eth/rpc.py @@ -101,12 +101,14 @@ class EthereumRPCClient(RPCClient, metaclass=AsyncInit): 'eth_chainId', 'eth_gasPrice', 'eth_getBalance', + 'eth_getBlockByNumber', 'eth_getCode', + 'eth_getTransactionByHash', 'eth_getTransactionCount', 'eth_getTransactionReceipt', 'eth_sendRawTransaction', 'parity_chain', 'parity_nodeKind', 'parity_pendingTransactions', - 'txpool_content', + 'txpool_content', # Geth and friends only ) diff --git a/pyproject.toml b/pyproject.toml index 175d21df..46ced4f1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -50,7 +50,7 @@ ignore = [ [tool.pylint.format] indent-string = "\t" indent-after-paren = 2 -max-line-length = 116 +max-line-length = 106 [tool.pylint.main] recursive = true