-
Notifications
You must be signed in to change notification settings - Fork 160
Prerequisite Instructions for Deploying and Setting Up the Polymath Contracts
The following instructions will allow you to run the CLI on a local test network (Ganache) using the latest Polymath smart contracts - version 2.1.0
Install requirement packages
- node v9.11.1
- npm v5.6.0
Clone polymath-core repository
https://github.com/PolymathNetwork/polymath-core
Checkout master branch
$ git checkout master
Install truffle globally
$ npm install -g truffle
Install dependencies
$ npm install
On a new terminal window run ganache
$ ganache-cli -i 15 -l 9000000
Copy the first private key account generated by ganache and save it into
./privKeyLocal
Note: you may have to create this file, so make sure it is in parallel with package.json
Back to first terminal, deploy contracts
$ truffle migrate
Note 1: You can access Ethereum testnets and mainnet via the Infura load-balanced nodes. You have to save your private key to ./privKey file and run CLI command adding --remote-node option. Example:
node CLI/polymath-cli faucet --remote-node kovan
Note 2: Parity can be used to run this on a testnet or mainnet. We recommend using Kovan due to gas limits:
parity --chain kovan --rpcapi "eth,net,web3,personal,parity" --unlock [YOUR ACCOUNT] --password $HOME/password.file
CLI Installation
Running the CLI Features and Modules
- How to Use the POLY Faucet
- St-20 Generator
- STO Manager
- How to Use the Investor Portal
- Token Manager
- Transfer Feature
- Transfer Ownership
- Dividends Manager
- Transfer Manager
- Contract Manager
- Permission Manager
- Time Travel for Contract Testing
Modules
- LockupTransferManager
- VolumeRestrictionTransferManager
- BlacklistTransferManager
- ManualApprovalTransferManager
- CountTransferManager
- GeneralPermissionManager
- PercentageTransferManager
- GeneralTransferManager
- DividendCheckpointModules
- VestingEscrowWallet
- CappedSTO
- USDTieredSTO
- AdvancedPLCRVotingCheckpoint
- VotingCheckpointModules
- Schedule Checkpoint