Skip to content

Commit

Permalink
Update CustomToken tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
ezdac committed Dec 7, 2021
1 parent 5f09ce9 commit a008149
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions docs/custom-setups/custom_token.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Use Custom Token
Introduction
============

In this guide, we will walk through the process of creating a custom token.
In this guide, we will walk through the process of creating a custom token.
A custom token can be used for any use-case but we will be adding and using it with the Raiden Network.
In order to deploy the Custom Token, you will need to:

Expand All @@ -18,20 +18,22 @@ In order to deploy the Custom Token, you will need to:
Get Goerli Testnet ETH (GÖETH)
==============================

Goerli is the name of the testnet on Ethereum where we will be deploying our token.
Goerli is the name of the testnet on Ethereum where we will be deploying our token.
To pay for the on-chain transactions you'll first need to get some Goerli ETH (GÖETH) on your Ethereum account.

Since we will be using the Goerli testnet you'll have to switch from **"Main Ethereum Network"** to **"Goerli Test Network"** in your MetaMask by selecting it from the top right dropdown.

After switching to the Goerli testnet you can go ahead and acquire some Goerli testnet ETH by following these steps:
After switching to the Goerli testnet you can go ahead and acquire some Goerli testnet ETH.
One option to do so is to follow these steps:

1. Copy your address. It is located on the left hand side in MetaMask and starts with "0x".
2. Visit the `Goerli faucet <https://goerli-faucet.slock.it/>`_, there you'll have to paste the address into the input field and check the *"I'm not a robot"* checkbox.
3. Click on **"REQUEST 0.05 GÖETH"**.
1) Visit `app.mycrypto.com <https://app.mycrypto.com>`_
2) When asked how to access your assets, choose MetaMask and connect your account
3) On the Dashboard, go to **Tools -> Use Testnet Faucet**
4) Choose your account from the list and **Request Access**

You will see a success message when the request has gone through. If it fails, keep trying until it succeeds.
You will see a success message showing the corresponding transaction on the Goerli testnet.

You can verify that 0.05 GÖETH was actually received by opening MetaMask and see if your Goerli Test Network shows a balance of total 0.05 GÖETH.
You can verify that 0.01 GÖETH was actually received by opening MetaMask and see if your Goerli Test Network shows a balance of total 0.01 GÖETH.


.. _custom_token_import:
Expand All @@ -41,7 +43,7 @@ Import Custom Token

The Raiden Network supports transactions of ERC20 compliant tokens. Any smart contract that implements the ERC20 interface can be used with Raiden.

Importing the custom token Solidity code is done via the `Remix Ethereum IDE <https://remix.ethereum.org/>`_ (Ethereum's integrated development environment).
Importing the custom token Solidity code is done via the `Remix Ethereum IDE <https://remix.ethereum.org/>`_ (Ethereum's integrated development environment).
You can read more about ERC20 tokens in `this GitHub repo <https://github.com/OpenZeppelin/openzeppelin-contracts/tree/master/contracts/token/ERC20>`_.

.. image:: remix_gist_import.png
Expand Down Expand Up @@ -95,14 +97,14 @@ Navigate to **"DEPLOY & RUN TRANSACTIONS"** in the left hand side menu.
- **token_name = MyToken**
- **token_symbol = TKN**

5. Click the orange **"transact"** button.
5. Click the **"transact"** button.
6. Confirm the transaction from MetaMask when prompted.

In the Remix Ethereum IDE terminal you should now see an output similar to the picture below.
In the Remix Ethereum IDE terminal you should now see an output similar to the picture below.
Congratulations, you have now successfully deployed a token to Ethereum!

.. image:: remix_deploy3.png

You can click the link in the terminal output that starts with "https://goerli.etherscan.io..." to open a new tab with all the details of the transaction you just sent.
You can copy the transaction-hash and insert it in the seach-bar at "https://goerli.etherscan.io" to inspect all details of the transaction you just sent.

All you need to do to start using your token is to :doc:`download and install Raiden <../overview_and_guide>` and register your token in Raiden, either in the :ref:`Web Interface <webui_register_token>` or by using the :ref:`API <api_tut_register_token>`.
Binary file modified docs/custom-setups/remix_deploy3.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a008149

Please sign in to comment.