-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 #136 from pipermerriam/piper/re-organize-providers…
…-and-document-providers reorganize and document providers
- Loading branch information
Showing
11 changed files
with
119 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ Contents | |
filters | ||
contracts | ||
managers | ||
providers | ||
web3.main | ||
web3.eth | ||
web3.db | ||
|
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Providers | ||
======== | ||
|
||
.. py:module:: web3.providers | ||
Providers are in control of the actual interactions with the blockchain. | ||
|
||
|
||
.. py:currentmodule:: web3.providers.rpc | ||
RPCProvider | ||
----------- | ||
|
||
.. py:class:: RPCProvider(host="127.0.0.1", port=8545, path="/", ssl=False, connection_timeout=10, network_timeout=10) | ||
This provider handles interaction with an HTTP or HTTPS based JSON-RPC | ||
server. | ||
|
||
|
||
.. py:currentmodule:: web3.providers.ipc | ||
IPCProvider | ||
----------- | ||
|
||
.. py:class:: IPCProvider(ipc_path=None, testnet=False): | ||
This provider handles interaction with an IPC Socket based JSON-RPC | ||
server. | ||
|
||
|
||
.. py:currentmodule:: web3.providers.tester | ||
EthereumTesterProvider | ||
---------------------- | ||
|
||
.. py:class:: EthereumTesterProvider(): | ||
This provider can be used for testing. It uses an ephemeral blockchain | ||
backed by the ``ethereum.tester`` module. | ||
|
||
|
||
TestRPCProvider | ||
--------------- | ||
|
||
.. py:class:: TestRPCProvider(): | ||
This provider can be used for testing. It uses an ephemeral blockchain | ||
backed by the ``ethereum.tester`` module. This provider will be slower | ||
than the ``EthereumTesterProvider`` since it uses an HTTP server for RPC | ||
interactions with. |
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
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