-
Notifications
You must be signed in to change notification settings - Fork 551
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1736 from eth-brownie/v1.20.0
v1.20.0
- Loading branch information
Showing
14 changed files
with
26 additions
and
492 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -963,23 +963,6 @@ New ``Contract`` objects are created with one of the following class methods. | |
>>> Contract.from_abi("Token", "0x79447c97b6543F6eFBC91613C655977806CB18b0", abi) | ||
<Token Contract object '0x79447c97b6543F6eFBC91613C655977806CB18b0'> | ||
.. py:classmethod:: Contract.from_ethpm(name, manifest_uri, address=None, owner=None) | ||
Create a new ``Contract`` object from an ethPM manifest. | ||
|
||
* ``name``: The name of the contract. Must be present within the manifest. | ||
* ``manifest_uri``: EthPM registry manifest uri. | ||
* ``address``: Address of the contract. Only Required if more than one deployment named ``name`` is included in the manifest. | ||
* ``owner``: An optional :func:`Account <brownie.network.account.Account>` instance. If given, transactions to the contract are sent broadcasted from this account by default. | ||
|
||
.. code-block:: python | ||
>>> from brownie import network, Contract | ||
>>> network.connect('mainnet') | ||
>>> Contract("DSToken", manifest_uri="ethpm://erc20.snakecharmers.eth:1/[email protected]") | ||
<DSToken Contract object '0x89d24A6b4CcB1B6fAA2625fE562bDD9a23260359'> | ||
.. py:classmethod:: Contract.from_explorer(address, as_proxy_for=None, owner=None) | ||
Create a new ``Contract`` object from source code fetched from a block explorer such as `EtherScan <https://etherscan.io/>`_ or `Blockscout <https://blockscout.com/>`_. | ||
|
@@ -3099,7 +3082,7 @@ Web3 Internals | |
.. py:attribute:: Web3._mainnet | ||
Provides access to a ``Web3`` instance connected to the ``mainnet`` network as defined in the configuration file. Used internally for `ENS <https://ens.domains/>`_ and `ethPM <https://www.ethpm.com/>`_ lookups. | ||
Provides access to a ``Web3`` instance connected to the ``mainnet`` network as defined in the configuration file. Used internally for `ENS <https://ens.domains/>`_ lookups. | ||
Raises :func:`MainnetUndefined <brownie.exceptions.MainnetUndefined>` if the ``mainnet`` network is not defined. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.