Skip to content

Commit

Permalink
removed more depecrated methods in geth and parity
Browse files Browse the repository at this point in the history
  • Loading branch information
dbfreem committed May 18, 2022
1 parent 649faad commit 5a44998
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 379 deletions.
70 changes: 0 additions & 70 deletions docs/web3.geth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@ The ``web3.geth.admin`` object exposes methods to interact with the RPC APIs und
}
.. py:method:: nodeInfo()
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.geth.admin.node_info()`


.. py:method:: peers()
* Delegates to ``admin_peers`` RPC Method
Expand Down Expand Up @@ -118,10 +112,6 @@ The ``web3.geth.admin`` object exposes methods to interact with the RPC APIs und
True
.. py:method:: addPeer(node_url)
.. warning:: Deprecated: This method is deprecated in favor of :meth:`~web3.geth.admin.add_peer()`

.. py:method:: start_rpc(host='localhost', port=8545, cors="", apis="eth,net,web3")
* Delegates to ``admin_startRPC`` RPC Method
Expand All @@ -137,12 +127,6 @@ The ``web3.geth.admin`` object exposes methods to interact with the RPC APIs und
True
.. py:method:: startRPC(host='localhost', port=8545, cors="", apis="eth,net,web3")
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.geth.admin.start_rpc()`


.. py:method:: start_ws(host='localhost', port=8546, cors="", apis="eth,net,web3")
* Delegates to ``admin_startWS`` RPC Method
Expand All @@ -158,12 +142,6 @@ The ``web3.geth.admin`` object exposes methods to interact with the RPC APIs und
True
.. py:method:: startWS(host='localhost', port=8546, cors="", apis="eth,net,web3")
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.geth.admin.start_ws()`


.. py:method:: stop_rpc()
* Delegates to ``admin_stopRPC`` RPC Method
Expand All @@ -176,12 +154,6 @@ The ``web3.geth.admin`` object exposes methods to interact with the RPC APIs und
True
.. py:method:: stopRPC()
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.geth.admin.stop_rpc()`


.. py:method:: stop_ws()
* Delegates to ``admin_stopWS`` RPC Method
Expand All @@ -194,12 +166,6 @@ The ``web3.geth.admin`` object exposes methods to interact with the RPC APIs und
True
.. py:method:: stopWS()
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.geth.admin.stop_ws()`


.. py:module:: web3.geth.personal
GethPersonal API
Expand All @@ -219,12 +185,6 @@ The following methods are available on the ``web3.geth.personal`` namespace.
['0xd3CdA913deB6f67967B99D67aCDFa1712C293601']
.. py:method:: listAccounts()
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.geth.personal.list_accounts()`


.. py:method:: list_wallets()
* Delegates to ``personal_listWallets`` RPC Method
Expand Down Expand Up @@ -257,12 +217,6 @@ The following methods are available on the ``web3.geth.personal`` namespace.
'0xd3CdA913deB6f67967B99D67aCDFa1712C293601'
.. py:method:: importRawKey()
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.geth.personal.import_raw_key()`


.. py:method:: new_account(self, passphrase)
* Delegates to ``personal_newAccount`` RPC Method
Expand All @@ -276,12 +230,6 @@ The following methods are available on the ``web3.geth.personal`` namespace.
'0xd3CdA913deB6f67967B99D67aCDFa1712C293601'
.. py:method:: newAccount()
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.geth.personal.new_account()`


.. py:method:: lock_account(self, account)
* Delegates to ``personal_lockAccount`` RPC Method
Expand All @@ -293,12 +241,6 @@ The following methods are available on the ``web3.geth.personal`` namespace.
>>> web3.geth.personal.lock_account('0xd3CdA913deB6f67967B99D67aCDFa1712C293601')
.. py:method:: lockAccount()
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.geth.personal.lock_account()`


.. py:method:: unlock_account(self, account, passphrase, duration=None)
* Delegates to ``personal_unlockAccount`` RPC Method
Expand All @@ -317,25 +259,13 @@ The following methods are available on the ``web3.geth.personal`` namespace.
True
.. py:method:: unlockAccount()
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.geth.personal.unlock_account()`


.. py:method:: send_transaction(self, transaction, passphrase)
* Delegates to ``personal_sendTransaction`` RPC Method

Sends the transaction.


.. py:method:: sendTransaction()
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.geth.personal.send_transaction()`


.. py:module:: web3.geth.txpool
GethTxPool API
Expand Down
29 changes: 0 additions & 29 deletions docs/web3.parity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ The following methods are available on the ``web3.parity.personal`` namespace.
>>> web3.parity.personal.list_accounts()
['0xd3CdA913deB6f67967B99D67aCDFa1712C293601']
.. py:method:: listAccounts
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.parity.personal.list_accounts()`
.. py:method:: import_raw_key(self, private_key, passphrase)
Expand All @@ -42,11 +38,6 @@ The following methods are available on the ``web3.parity.personal`` namespace.
>>> web3.parity.personal.import_raw_key(some_private_key, 'the-passphrase')
'0xd3CdA913deB6f67967B99D67aCDFa1712C293601'
.. py:method:: importRawKey(self, private_key, passphrase)
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.parity.personal.import_raw_key()`

.. py:method:: new_account(self, password)
* Delegates to ``personal_newAccount`` RPC Method
Expand All @@ -59,11 +50,6 @@ The following methods are available on the ``web3.parity.personal`` namespace.
>>> web3.parity.personal.new_account('the-passphrase')
'0xd3CdA913deB6f67967B99D67aCDFa1712C293601'
.. py:method:: newAccount(self, password)
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.parity.personal.new_account()`

.. py:method:: unlock_account(self, account, passphrase, duration=None)
* Delegates to ``personal_unlockAccount`` RPC Method
Expand All @@ -80,22 +66,12 @@ The following methods are available on the ``web3.parity.personal`` namespace.
>>> web3.parity.personal.unlock_account('0xd3CdA913deB6f67967B99D67aCDFa1712C293601', 'the-passphrase')
True
.. py:method:: unlockAccount(self, account, passphrase, duration=None)
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.parity.personal.unlock_account()`

.. py:method:: send_transaction(self, transaction, passphrase)
* Delegates to ``personal_sendTransaction`` RPC Method

Sends the transaction.

.. py:method:: sendTransaction(self, account, passphrase, duration=None)
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.parity.personal.send_transaction()`

.. py:method:: sign_typed_data(self, jsonMessage, account, passphrase)
* Delegates to ``personal_signTypedData`` RPC Method
Expand All @@ -104,8 +80,3 @@ The following methods are available on the ``web3.parity.personal`` namespace.
and **NOT** the JSON String itself.

Signs the ``Structured Data`` (or ``Typed Data``) with the passphrase of the given ``account``

.. py:method:: signTypedData(self, jsonMessage, account, passphrase)
.. warning:: Deprecated: This method is deprecated in favor of
:meth:`~web3.parity.personal.sign_typed_data()`
11 changes: 0 additions & 11 deletions web3/_utils/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
RPC,
)
from web3.method import (
DeprecatedMethod,
Method,
default_root_munger,
)
Expand Down Expand Up @@ -85,13 +84,3 @@ def __call__(
RPC.admin_stopWS,
is_property=True,
)

#
# Deprecated Methods
#
addPeer = DeprecatedMethod(add_peer, 'addPeer', 'add_peer')
nodeInfo = DeprecatedMethod(node_info, 'nodeInfo', 'node_info')
startRPC = DeprecatedMethod(start_rpc, 'startRPC', 'start_rpc')
stopRPC = DeprecatedMethod(stop_rpc, 'stopRPC', 'stop_rpc')
startWS = DeprecatedMethod(start_ws, 'startWS', 'start_ws')
stopWS = DeprecatedMethod(stop_ws, 'stopWS', 'stop_ws')
12 changes: 0 additions & 12 deletions web3/_utils/miner.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
RPC,
)
from web3.method import (
DeprecatedMethod,
Method,
default_root_munger,
)
Expand Down Expand Up @@ -65,14 +64,3 @@
RPC.miner_stopAutoDag,
is_property=True,
)


#
# Deprecated Methods
#
makeDag = DeprecatedMethod(make_dag, 'makeDag', 'make_dag')
setExtra = DeprecatedMethod(set_extra, 'setExtra', 'set_extra')
setEtherbase = DeprecatedMethod(set_etherbase, 'setEtherbase', 'set_etherbase')
setGasPrice = DeprecatedMethod(set_gas_price, 'setGasPrice', 'set_gas_price')
startAutoDag = DeprecatedMethod(start_auto_dag, 'startAutoDag', 'start_auto_dag')
stopAutoDag = DeprecatedMethod(stop_auto_dag, 'stopAutoDag', 'stop_auto_dag')
Loading

0 comments on commit 5a44998

Please sign in to comment.