/TGDAO

Primary LanguageJavaScript

TGDAO

TGDAO smart contracts

  • Standart : BEP20
  • Name : TGDAO
  • Ticker : TGDAO
  • Decimals : 18
  • Emission : One-time, 1000 000 000 tokens
  • Fiat dependency : No
  • Token locks : Yes

Smart contracts description

TGDAO smart-contract

Contracts

  1. TGDAOToken- Token contract
  2. CrowdSale - Sale contract
  3. VestingWallet - Wallet contract
  4. TokenDepositor - Token distributor

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 TGDAO@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 BEP20 support

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

EXODUS does not support BEP20, 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 (BSC Testnet)

You can find test log here

User's guide

You can find the user guide for end-users here

Manager's guide

Our manager's guide can be found here
Additional info about smart contract's capabilities (in Russian) here