Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #279 from lzpap/deprecate_sandbox_adapter
Browse files Browse the repository at this point in the history
Remove SandboxAdapter
  • Loading branch information
lzpap committed Dec 11, 2019
2 parents 585ab08 + 51170b8 commit 832e3f3
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 803 deletions.
1 change: 0 additions & 1 deletion docs/adapters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ the networking, communicating with a node.
You can choose and configure the available adapters to be used with the API:

- HttpAdapter,
- SandboxAdapter,
- MockAdapter.

AdapterSpec
Expand Down
28 changes: 0 additions & 28 deletions docs/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ You can:

- `Run your own node.`_
- `Use a light wallet node.`_
- `Use the sandbox node.`_

Note that light wallet nodes often disable certain features like PoW for
security reasons.
Expand All @@ -68,37 +67,10 @@ Test your connection to the server by sending a ``getNodeInfo`` command:
You are now ready to send commands to your IOTA node!

Using the Sandbox Node
----------------------
To connect to the sandbox node, you will need to inject a
:py:class:`SandboxAdapter` into your :py:class:`Iota` object. This will modify
your API requests so that they contain the necessary authentication metadata.

.. code-block:: python
from iota.adapter.sandbox import SandboxAdapter
api = Iota(
# To use sandbox mode, inject a ``SandboxAdapter``.
adapter = SandboxAdapter(
# URI of the sandbox node.
uri = 'https://sandbox.iotatoken.com/api/v1/',
# Access token used to authenticate requests.
# Contact the node maintainer to get an access token.
auth_token = 'auth token goes here',
),
# Seed used for cryptographic functions.
# If null, a random seed will be generated.
seed = b'SEED9GOES9HERE',
)
.. _forum: https://forum.iota.org/
.. _official api: https://docs.iota.org/docs/node-software/0.1/iri/references/api-reference
.. _pyota-ccurl extension: https://pypi.python.org/pypi/PyOTA-CCurl
.. _pyota-pow extension: https://pypi.org/project/PyOTA-PoW/
.. _run your own node.: http://iotasupport.com/headlessnode.shtml
.. _slack: http://slack.iota.org/
.. _use a light wallet node.: http://iotasupport.com/lightwallet.shtml
.. _use the sandbox node.: http://dev.iota.org/sandbox
52 changes: 0 additions & 52 deletions examples/sandbox.py

This file was deleted.

289 changes: 0 additions & 289 deletions iota/adapter/sandbox.py

This file was deleted.

0 comments on commit 832e3f3

Please sign in to comment.