Skip to content

Commit 4e73466

Browse files
authored
Merge pull request #407 from PolymathNetwork/CPSTL-patch-4
Removing CLI instructions from README
2 parents 968ca2c + 8e479fb commit 4e73466

File tree

1 file changed

+9
-105
lines changed

1 file changed

+9
-105
lines changed

README.md

Lines changed: 9 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -59,114 +59,18 @@ The security token registry keeps track of deployed STs on the Polymath Platform
5959
### ModuleRegistry
6060
Modules allow custom add-in functionality in the issuance process and beyond. The module registry keeps track of modules added by Polymath or any other users. Modules can only be attached to STs if Polymath has previously verified them. If not, the only user able to utilize a module is its owner, and they should be using it "at their own risk".
6161

62+
## CLI and CLI Documentation
6263

63-
# Stepping through an issuance with the CLI Tool
64-
First, assure that you have [setup Polymath Core properly](#setup).
64+
The CLI is for users that want to easily walkthrough all the details of an STO issuance. The CLI documentation is located on our [Github Wiki](https://github.com/PolymathNetwork/polymath-core/wiki). You can easily navigate through it with the sidebar directory in order to run the CLI and set up and test the following:
6565

66-
The Polymath CLI (Command Line Interface) commands are operated from a *nix command prompt (unix or mac).
66+
1. Prerequisite Instructions / Deploy and setup the Polymath contracts
67+
2. Launch the CLI on Ganache
68+
3. Use the Faucet to get POLY
69+
4. Deploy a token + Launch a USDTieredSTO
70+
5. Whitelist investors
71+
6. Work with the Dividends module
72+
7. Using other CLI features
6773

68-
It can be used in three differents ways:
69-
70-
1. Connected to a full ethereum node:
71-
You have to save your Parity account password to `$HOME/password.file` and run Parity with the following command to get started (make sure the node is fully synced before using the CLI tool):
72-
```bash
73-
parity --chain ropsten --rpcapi "eth,net,web3,personal,parity" --unlock YOUR_ETH_ACCOUNT --password $HOME/password.file
74-
```
75-
2. Connected to a remote ethereum node:
76-
You can access Ethereum via the Infura load-balanced nodes. You have to save your private key to `./privKey` file and run CLI command adding `--remote-node <network>` option.
77-
```bash
78-
node CLI/polymath-cli faucet --remote-node kovan
79-
```
80-
3. Connected to a local private test network using `ganache-cli`.
81-
You have to save the private key for the one of the accounts generated by ganache into `./privKeyLocal`.
82-
83-
84-
## Poly Faucet
85-
86-
If you are working on a local private network, you should run the faucet command to get Poly necessary to pay fees for the other commands.
87-
88-
```bash
89-
node CLI/polymath-cli faucet
90-
```
91-
92-
## Generating ST-20 token
93-
94-
The ST-20 Generator command is a wizard-like script that will guide technical users in the creation and deployment of an ST-20 token.
95-
96-
1. Edit `CLI/commands/helpers/contract_addresses.js` to make sure scripts are pointing to the correct contract addresses
97-
2. On the terminal, run the following command:
98-
```bash
99-
node CLI/polymath-cli st20generator
100-
```
101-
3. Follow the text prompts:
102-
* You will be asked for a token symbol. Enter a new symbol to register or a symbol you have already registered.
103-
* Enter a token name (long name seen by investors) to complete the token registration process. The token will be deployed to the blockchain.
104-
* (Optional) If you want to issue tokens to an address you own enter the address and then how many tokens you want to issue. If you want to issue tokens to a list of affiliates press `Y` and it will update a whitelist with them and then tokens will be issued.
105-
Make sure the `whitelist_data.csv` and `multi_mint_data.csv` files are present in the data folder and fulfilled with the right information.
106-
* Choose between Capped STO and USD Tiered STO.
107-
* Configure the selected STO. Enter start and end times, the issuance type, and exchange rate.
108-
4. Once the process is finished, you can run the `node CLI/polymath-cli st20generator` command again and enter the token symbol to see the STO's live-progress.
109-
110-
## Whitelisting investors
111-
112-
After starting the STO you can run a command to mass-update a whitelist of allowed/known investors.
113-
Make sure the `whitelist_data.csv` file is present in the data folder.
114-
The command takes 2 parameters:
115-
- The token symbol for the STO you want to invest in
116-
- (Optional) The size of each batch
117-
118-
```bash
119-
node CLI/polymath-cli whitelist TOKEN_SYMBOL [BATCH_SIZE]
120-
```
121-
122-
## Initial minting
123-
124-
Before starting the STO you can run a command to distribute tokens to previously whitelisted investors.
125-
Make sure the `multi_mint_data` file is present in the data folder.
126-
The command takes 2 parameters:
127-
- The token symbol for the STO you want to invest in
128-
- (Optional) The size of each batch
129-
130-
```bash
131-
node CLI/polymath-cli multi_mint TOKEN_SYMBOL [BATCH_SIZE]
132-
```
133-
134-
## Investing in the STO
135-
136-
You can run the investor_portal command to participate in any STO you have been whitelisted for.
137-
You will be asked for an account, the token symbol and amount for the STO you want to invest in.
138-
139-
```bash
140-
node CLI/polymath-cli investor_portal
141-
```
142-
143-
## Transferring tokens
144-
145-
You can run the transfer command to transfer ST tokens to another account (as long as both are whitelisted and have been cleared of any lockup periods).
146-
- The token symbol of the ST you want to transfer
147-
- The account that will receive the tokens
148-
- How many tokens to send
149-
150-
```bash
151-
node CLI/polymath-cli transfer TOKEN_SYMBOL ACCOUNT_TO AMOUNT
152-
```
153-
154-
## Managing modules
155-
156-
You can run the module manager command to view all the modules attached to a token and their status.
157-
You will be asked for a token symbol.
158-
159-
```bash
160-
node CLI/polymath-cli module_manager
161-
```
162-
163-
## Dividends manager
164-
165-
You can run this command to create dividends and paid them out proportionally to token holder balances as of the time that the dividend was created, or at the time of a specified checkpoint that was created previously. You can choose between Ether or ERC20 dividens.
166-
167-
```bash
168-
node CLI/polymath-cli dividends_manager
169-
```
17074

17175
# Setting up Polymath Core
17276

0 commit comments

Comments
 (0)