Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pcaversaccio/test-token-contract

How to deploy a test equity token contract to Ganache and Rinkeby.
https://github.com/pcaversaccio/test-token-contract

erc20 ethereum smart-contract solidity

Last synced: 15 days ago
JSON representation

How to deploy a test equity token contract to Ganache and Rinkeby.

Awesome Lists containing this project

README

        

# Equity Test Token Contract
This is a test equity token contract to be deployed on the local Ganache testnet and the Rinkeby testnet.
## Get Started
### Setup Truffle Project
```
truffle init
```
### Compiling the Truffle Project
```
truffle compile
```
### Migrate the Truffle Project to Ganache
Make the following adjustment in the `truffle-config.json` file:
```
development: {
host: "127.0.0.1", // Localhost (default: none)
port: 7545, // Standard Ethereum port (default: none)
network_id: "5777", // Any network (default: none)
},
```
Write the deployment script in the folder `migrations`. The migration file name should start with a number. I use to call it `2_deploy_contracts.js`.

Now start your local Ganache environment and run `truffle migrate`. Congratulations you have deployed your test equity token contract to your personal Ethereum blockchain.
### Migrate the Truffle Project to Rinkeby
First, install the HDWalletProvider by running (probably as an administrator)
```
npm install truffle-hdwallet-provider
```
and follow the steps [here](https://medium.com/@andresaaap/how-to-deploy-a-smart-contract-on-a-public-test-network-rinkeby-using-infura-truffle-8e19253870c4).