Releases: oooookk7/ico-token
Releases · oooookk7/ico-token
Part 5: Release
To get started,
- Fire up Ganache (use port
8545
) with default token amount as desired (e.g.1000
). - Ensure that
truffle-config.js
is added to the projects. - Run the migration scripts via
yarn run migrate
. - Import account using Ganache keys (do not use the first account as it is the admin account but the rest).
- Run
yarn run server
to fire up the UI on local server. - Start purchasing the
$ICO
token from the Metamask wallet (reset account settings via Advanced tab if there are any errors).
Part 4: Implement frontend
This covers #11-#13.
Creates the UI for users to purchase the $ICO
token during the ICO phase on the Ethereum network.
Part 3: Implement sales backend
This covers #7-#10.
- Creates the sales contract code.
How the process is done,
- Provision tokens to token sale contract.
- Set a token price in wei (1 ETH = 1,000,000,000,000,000,000 wei).
- Assign an admin.
- Buy tokens.
- End sale
Gas is the fee required to conduct a transaction or execute a contract on the Ethereum blockchain platform. It is needed to allocate resources of the Ethereum virtual machine (EVM) so that decentralized applications (e.g. smart contracts) can self-execute in a secured and decentralized fashion.
Part 2: Implementing Transfers functions
This covers #4-#6.
- Creates the transfers related function.
Part 1: Barebones of Smart Contract
This covers #1-#3.
- Creates the
balanceOf()
function. - Setup the basic properties that identifies a token (e.g. name, symbol).
Steps in Tutorial
Ensure that bash points to the bin (
~/.config/yarn/global/node_modules/.bin/truffle
)
- Startup Ganache to load a personal local dev Ethereum blockchain network.
- Setup a barebones truffle project with
truffle init
command. - Run
truffle migrate --reset
to build migrations from migration scripts. - Run
truffle test
each time a change is made on the contracts to test (need not requiretruffle migrate
).