Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/pcaversaccio/test-token-contract
- Owner: pcaversaccio
- Created: 2019-07-04T10:54:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-07T06:54:19.000Z (over 3 years ago)
- Last Synced: 2024-10-13T23:04:58.599Z (about 1 month ago)
- Topics: erc20, ethereum, smart-contract, solidity
- Language: Solidity
- Homepage:
- Size: 162 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).