Skip to content

Commit

Permalink
Revert non-ens docs
Browse files Browse the repository at this point in the history
  • Loading branch information
reedsa committed Jul 5, 2023
1 parent a8b2d2f commit b8b99b6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions docs/ethpm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ Examples...

- ``ethpm://packages.zeppelinos.eth/owned@1.0.0``

- ``ethpm://0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7:1/ethregistrar@1.0.0``
- ``ethpm://0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD:1/ethregistrar@1.0.0``

To specify a specific asset within a package, you can namespace the target asset.

Expand Down Expand Up @@ -796,7 +796,7 @@ This is the simplest builder function for adding a deployment to a manifest. All
... 'blockchain://1234567890123456789012345678901234567890123456789012345678901234/block/1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef': {
... 'Owned': {
... 'contractType': 'Owned',
... 'address': '0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
... 'address': '0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
... }
... }
... }
Expand All @@ -807,7 +807,7 @@ This is the simplest builder function for adding a deployment to a manifest. All
... block_uri='blockchain://1234567890123456789012345678901234567890123456789012345678901234/block/1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef',
... contract_instance='Owned',
... contract_type='Owned',
... address='0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
... address='0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
... ),
... )
>>> assert expected_manifest == built_manifest
Expand Down
2 changes: 1 addition & 1 deletion docs/web3.contract.rst
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ Methods
>>> math_contract.functions.increment(5).build_transaction({'maxFeePerGas': 2000000000, 'maxPriorityFeePerGas': 1000000000})
{
'to': '0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
'to': '0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
'data': '0x7cf5dab00000000000000000000000000000000000000000000000000000000000000005',
'value': 0,
'gas': 43242,
Expand Down
20 changes: 10 additions & 10 deletions docs/web3.eth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ The following properties are available on the ``web3.eth`` namespace.
.. code-block:: python
>>> web3.eth.accounts
['0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7']
['0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD']
.. py:attribute:: Eth.block_number
Expand Down Expand Up @@ -736,15 +736,15 @@ The following methods are available on the ``web3.eth`` namespace.
# simple example (web3.py and / or client determines gas and fees, typically defaults to a dynamic fee transaction post London fork)
>>> web3.eth.send_transaction({
'to': '0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
'to': '0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
'from': web3.eth.coinbase,
'value': 12345
})
# Dynamic fee transaction, introduced by EIP-1559:
HexBytes('0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331')
>>> web3.eth.send_transaction({
'to': '0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
'to': '0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
'from': web3.eth.coinbase,
'value': 12345,
'gas': 21000,
Expand All @@ -756,7 +756,7 @@ The following methods are available on the ``web3.eth`` namespace.
# Legacy transaction (less efficient)
HexBytes('0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331')
>>> web3.eth.send_transaction({
'to': '0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
'to': '0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
'from': web3.eth.coinbase,
'value': 12345,
'gas': 21000,
Expand Down Expand Up @@ -800,7 +800,7 @@ The following methods are available on the ``web3.eth`` namespace.
maxFeePerGas=3000000000,
maxPriorityFeePerGas=2000000000,
gas=100000,
to='0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
to='0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
value=12345,
data=b'',
type=2, # (optional) the type is now implicitly set based on appropriate transaction params
Expand Down Expand Up @@ -855,13 +855,13 @@ The following methods are available on the ``web3.eth`` namespace.
.. code-block:: python
>>> tx = web3.eth.send_transaction({
'to': '0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
'to': '0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
'from': web3.eth.coinbase,
'value': 1000
})
HexBytes('0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331')
>>> web3.eth.replace_transaction('0xe670ec64341771606e55d6b4ca35a1a6b75ee3d5145a99d05921026d1527331', {
'to': '0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
'to': '0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
'from': web3.eth.coinbase,
'value': 2000
})
Expand All @@ -886,7 +886,7 @@ The following methods are available on the ``web3.eth`` namespace.
.. code-block:: python
>>> tx = web3.eth.send_transaction({
'to': '0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
'to': '0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
'from': web3.eth.coinbase,
'value': 1000
})
Expand All @@ -909,12 +909,12 @@ The following methods are available on the ``web3.eth`` namespace.
.. code-block:: python
>>> web3.eth.sign(
'0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
'0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
text='some-text-tö-sign')
'0x1a8bbe6eab8c72a219385681efefe565afd3accee35f516f8edf5ae82208fbd45a58f9f9116d8d88ba40fcd29076d6eada7027a3b412a9db55a0164547810cc401'
>>> web3.eth.sign(
'0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7',
'0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD',
data=b'some-text-t\xc3\xb6-sign')
'0x1a8bbe6eab8c72a219385681efefe565afd3accee35f516f8edf5ae82208fbd45a58f9f9116d8d88ba40fcd29076d6eada7027a3b412a9db55a0164547810cc401'
Expand Down
10 changes: 5 additions & 5 deletions docs/web3.geth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ The following methods are available on the ``web3.geth.personal`` namespace.
.. code-block:: python
>>> web3.geth.personal.list_accounts()
['0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7']
['0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD']
.. py:method:: list_wallets()
Expand Down Expand Up @@ -239,7 +239,7 @@ The following methods are available on the ``web3.geth.personal`` namespace.

.. code-block:: python
>>> web3.geth.personal.lock_account('0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7')
>>> web3.geth.personal.lock_account('0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD')
True
Expand All @@ -253,7 +253,7 @@ The following methods are available on the ``web3.geth.personal`` namespace.
.. code-block:: python
>>> web3.geth.personal.new_account('the-passphrase')
'0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7'
'0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD'
.. py:method:: send_transaction(transaction, passphrase)
Expand Down Expand Up @@ -287,9 +287,9 @@ The following methods are available on the ``web3.geth.personal`` namespace.

.. code-block:: python
>>> web3.geth.personal.unlock_account('0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7', 'wrong-passphrase')
>>> web3.geth.personal.unlock_account('0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD', 'wrong-passphrase')
False
>>> web3.geth.personal.unlock_account('0xFe89cc7aBB2C4183683ab71653C4cdc9B02D44b7', 'the-passphrase')
>>> web3.geth.personal.unlock_account('0x582AC4D8929f58c217d4a52aDD361AE470a8a4cD', 'the-passphrase')
True
Expand Down

0 comments on commit b8b99b6

Please sign in to comment.