Skip to content

BlockWit/candao-token

Repository files navigation

Candao

Candao smart contracts

  • Standart : ERC20
  • Name : Candao
  • Ticker : CDO
  • Decimals : 18
  • Emission : One-time, 1 500 000 000 tokens
  • Fiat dependency : No
  • Token offers : 1
  • Token locks : Yes

Smart contracts description

Candao smart-contract

Contracts

  1. Configurator
  2. CandaoToken - Token contract
  3. Sale - Sale contract

Token distribution

  1. DAO: 400 000 000
  2. Sales: 250 000 000
  3. Content Mining: 210 000 000
  4. Liquidity pool: 200 000 000
  5. Foundation: 150 000 000
  6. Team: 150 000 000
  7. Marketing: 100 000 000
  8. Advisors: 40 000 000

How to work with this project

To start working with the contracts, please, follow theese steps for each contract:

  1. Compile the contract using Remix with enable optimization flag and compiler version set to 0.8.0.
  2. Copy .env.example to .env and fill in the parameters.
  3. Deploy the contract using deployment script:
    truffle exec scripts/1_deploy_configurator.js --network NetworkName
    for example:
    truffle exec scripts/1_deploy_configurator.js --network ropsten
  4. After deployment, run the following command with one or more contracts that you wish to verify:
    truffle run verify SomeContractName@SomeContractAddress AnotherContractName@AnotherContractAddress --network NetworkName [--debug]
    for example:
    truffle run verify CandaoToken@0xd4eE90e82FE10d37d028084f262fbC092E2aEF81 --network ropsten
    You can find all information about deployed smart contracts in the file report.NetworkName.log.

How to get constructor arguements generated during deployment

  1. Browse to your contract on Etherscan and click on the hash of the transaction with which it was created.
  2. On the top right, where it reads "Tools & utilities", click on the arrow to see more options and select "Parity Trace".
  3. For the action pertaining the contract creation, click on "Click to see more" below to see the input/output.
  4. Copy the content of the "Init" field and paste somewhere in text file.
  5. Copy "bytecode" string from ContractName.json generated by truffle and place it near the string from the previous step.
  6. The difference between theese two strings is your encoded constructor arguements.
  7. Pass them to truffle-verify-plugin as paramter: --forceConstructorArgs string:ABIEncodedArguments

How to use frontend examples

  1. npx webpack build --config front/webpack.config.js
  2. Open front/index.html in browser.

Wallets with ERC20 support

  1. MyEtherWallet
  2. Parity
  3. Mist/Ethereum wallet

EXODUS does not support ERC20, but provides the ability to export the private key to MyEtherWallet - http://support.exodus.io/article/128-how-do-i-receive-unsupported-erc20-tokens

Main network configuration

Contracts

Test network configuration (Kovan)

You can find kovan test log here

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published