Skip to content

Token Wizard 2.0 Verifying Contracts

Victor Baranov edited this page Sep 21, 2018 · 4 revisions

Important!: All information required for verification of Token Wizard 2.0 crowdsale smart contract is located in a zip file. You must download it on Step 4 of Token Wizard. There is no way to get it later.

Typical structure of zip archive with metadata.

Minted capped token crowdsale.

Archive structure

i_tier.txt

Consists of crowdsale's tier initial paramaters

Example:

*****************************
*********TIER SETUP**********
*****************************

Tier name: Tier 2
Tier rate: 500
Tier max cap: 1000000
Tier start time: 2018-09-25T00:00 (GMT + 3)
Tier end time: 2018-09-29T00:00 (GMT + 3)
Tier's duration is modifiable: off
Tier is whitelisted: no

*****************************
*****************************
*****************************

Auth-os_addresses.txt

Consists of addresses of Auth-os core and applications smart contracts and their metadata

Example:

*****************************
*******AUTH-OS METADATA******
*****************************

**********REGISTRY***********

Auth-os abstract storage address: 0x9d126f44151f70a4da03f53fcb485dea6c0b8d64
Auth-os registry idx address: 0x76fafe6f7e2f25e40664cf9f22d6e18b709d0087
Auth-os script executor address: 0x6865f64ecb1f0222a0febe5c1fc1b40c7a378da6
Auth-os provider address: 0x663d2feb6af69867e0144aab82624edb7af1728b
*********CROWDSALE***********

Auth-os application name: MintedCappedCrowdsale
Auth-os execution ID: 0x000000000000000000000000eeaefd3a69f7d10db92205bbaa54f7c5aa8edf3f
Auth-os MintedCappedIdx address: 0xeeaefd3a69f7d10db92205bbaa54f7c5aa8edf3f
Auth-os Sale address: 0x1d9702eb87c47f90c8669f3d36322f8cf985f721
Auth-os Token address: 0xbe1efbd9134bb5cd0ad3ee6cd2c246e56961ac5c
Auth-os Sale manager address: 0x3ab54a53eed7e0d3c2f051e4992bb893e8434e5f
Auth-os Token manager address: 0x7e9f62b32538255065681c24efd7a5947f258351

*****************************
*****************************
*****************************

MintedCappedCrowdsale_data.txt

Consists of Minted capped crowdsale parameters and smart contract metadata

Example:

*****************************
*********TOKEN SETUP*********
*****************************

Token name: MyToken
Token ticker: MTK
Token decimals: 18
Token total supply: 0

*****************************
*******CROWDSALE SETUP*******
*****************************

Multisig wallet address: 0xf36045454F66C7318adCDdF3B801E3bF8CfBc6a1
Crowdsale global min cap: 0
Crowdsale hard cap: 2000000
Crowdsale start time: 2018-09-21T16:07 (GMT + 3)
Crowdsale end time: 2018-09-29T00:00 (GMT + 3)

*****************************
**********METADATA***********
*****************************

Contract name: MintedCappedProxy
Compiler version: 0.4.24
Optimized: Yes
Encoded ABI parameters: 0000000000000000000000009d126f44151f70a4da03f53fcb485dea6c0b8d64b10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60000000000000000000000007ae09e9963c835959b06240ba69b00febdff681a4d696e74656443617070656443726f776473616c650000000000000000000000

*****************************
*****************************
*****************************

MintedCappedProxy.sol

The Solidity source code of crowdsale smart-contract (Proxy smart contract of Auth-os "Minted capped crowdsale" application for Token Wizard)

Dutch Auction crowdsale.

Archive structure

Auth-os_addresses.txt

Consists of addresses of Auth-os core and applications smart contracts and their metadata

Example:

*****************************
*******AUTH-OS METADATA******
*****************************

**********REGISTRY***********

Auth-os abstract storage address: 0x9d126f44151f70a4da03f53fcb485dea6c0b8d64
Auth-os registry idx address: 0x76fafe6f7e2f25e40664cf9f22d6e18b709d0087
Auth-os script executor address: 0x6865f64ecb1f0222a0febe5c1fc1b40c7a378da6
Auth-os provider address: 0x663d2feb6af69867e0144aab82624edb7af1728b
*********CROWDSALE***********

Auth-os application name: DutchCrowdsale
Auth-os Crowdsale proxy address: 0x2fc0d1d99dbcc04272cee55c3bc69ef4a8bdc202
Auth-os DutchIdx address: 0xfbb8127eeb14be7305a6738aa9e43654a95ad908
Auth-os Dutch Crowdsale address: 0x3f52577e2772f0adacd9d3e6a0fdb456701bf386
Auth-os Dutch Token address: 0x2a5fbbb4ec592bace485d0f653b051d991eeffdc

*****************************
*****************************
*****************************

DutchCrowdsale_data.txt

Consists of Dutch Auction crowdsale parameters and smart contract metadata

Example:

*****************************
*********TOKEN SETUP*********
*****************************

Token name: My Token
Token ticker: MTK
Token decimals: 18
Token total supply: 1000000

*****************************
*******CROWDSALE SETUP*******
*****************************

Multisig wallet address: 0xf36045454F66C7318adCDdF3B801E3bF8CfBc6a1
Burn Excess: no
Crowdsale min rate: 1000
Crowdsale max rate: 1200
Crowdsale global min cap: 0
Crowdsale hard cap: 1000000
Crowdsale start time: 2018-09-21T16:32 (GMT + 3)
Crowdsale end time: 2018-09-25T00:00 (GMT + 3)
Crowdsale's duration is modifiable: no
Crowdsale is whitelisted: no

*****************************
**********METADATA***********
*****************************

Contract name: DutchProxy
Compiler version: 0.4.24
Optimized: Yes
Encoded ABI parameters: 0000000000000000000000009d126f44151f70a4da03f53fcb485dea6c0b8d64b10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60000000000000000000000007ae09e9963c835959b06240ba69b00febdff681a447574636843726f776473616c65000000000000000000000000000000000000

*****************************
*****************************
*****************************

DutchProxy.sol

The Solidity source code of crowdsale smart-contract (Proxy smart contract of Auth-os "Dutch auction crowdsale" application for Token Wizard)

Verification on Etherscan

  1. Get your crowdsale smart-contract address. There are several ways how you can get it.
  • From zip archive of metadata - it is located in Auth-os_addresses.txt in the line Auth-os MintedCappedIdx address or Auth-os Crowdsale proxy address: (depending on crowdsale strategy)
  • From contribution or crowdsale page (Crowdsale Proxy address field)
  1. Go to Etherscan https://etherscan.io/
  2. Find your smart contract on Etherscan. Insert the address of your smart contract in the search field for that and click "GO"

Find crowdsale smart-contract

  1. Switch to code Tab and click Verify and Publish button on the opened page

Verify and publish

  1. Fill the next fields with the data from your zip archive
  • Contract Name - copy and paste the name of crowdsale smart-contract from the line Contract name in the **********METADATA*********** section of MintedCappedCrowdsale_data.txt (for Minted capped crowdsale strategy) and DutchCrowdsale_data.txt (for Dutch auction crowdsale strategy)
  • Compiler - choose the stable compiler version depending of what is indicated in the line Compiler version in the **********METADATA*********** section of MintedCappedCrowdsale_data.txt (for Minted capped crowdsale strategy) and DutchCrowdsale_data.txt (for Dutch auction crowdsale strategy)
  • Optimization - choose Yes or No, depending of what is indicated in the line Optimized in the **********METADATA*********** section of MintedCappedCrowdsale_data.txt (for Minted capped crowdsale strategy) and DutchCrowdsale_data.txt (for Dutch auction crowdsale strategy)
  • Enter the Solidity Contract Code below - paste the content of **MintedCappedProxy.sol in case of Minted capped token crowdsale and the content of DutchProxy.sol in case of Dutch auction crowdslae

Example of the verification form before submission for Minted Capped crowdsale:

Minted capped crowdsale verification submission form

Example of the verification form before submission for Dutch auction crowdsale:

Dutch auction crowdsale verification submission form

After successful verification of crowdsale smart contract, everyone can go to the address of your smart contract through the link of the kind: https://etherscan.io/address/[CROWDSALE_ADDRESS] and be able to get the source code.

Clone this wiki locally