Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.
Remon Nashid edited this page Sep 1, 2019 · 5 revisions

What is this?

This is a simple app that showcases how to integrate with Polymath protocol. Upon completion, the app should enable users to:

  • Establish a connection to Polymath protocol.
  • Fetch SecurityTokens that belongs to the current user.
  • Load, add, update and remove token holders.

Prerequisites

Familiarity with Polymath SDK

We are going to use Polymath SDK to interact with Polymath smart contracts. It abstracts interactions that could be rather verbose. It also hides away web3-specific details such as gas optimization and data casting.

Familiarity with Polymath smart contracts

Although the SDK will make our lives easier, a minimal familiarity with Polymath smart contract could go long way. To the minimum, make sure you understand their purpose and what ST-20/ERC-1400 is all about. Smart contracts Github repo is your best resource.

Familiarity with React and Redux

Hopefully this is not a big hurdle. React is extremely simple and we're using the simplest parts of it. The application we're building is composed of pure components and it uses React hooks to manage state.

Metamask browser plugin

Using a dapp usually requires an Ethereum account. That account signs transactions and pays for their fees. Metamask is a browser wallet that let us create and use such account. Also, a huge bonus of Metamask is tht serves as a provider (ethereum node) so we don't have to run our own.

  • Make sure to install Metamask on your favorite browser.
  • Follow initialization steps in order to create your account.
  • In this guide, we're going to interact with Polymath contract on Kovan network. Make sure to obtain some Kovan ETH beforehand. 1 KETH should be quite sufficient.

Resources