File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,3 +20,12 @@ or if you prefer you can use npm:
2020.. code-block ::
2121
2222 npm install --save-dev ethereum-mars
23+
24+ In order to generate an artifacts file that Mars will use when deploying, run:
25+
26+ .. code-block ::
27+
28+ npx mars
29+
30+ It is advisable to add the above command at the end your build script so it
31+ gets executed every time you build a new version of your contracts.
Original file line number Diff line number Diff line change 1+ Verifying smart contracts
2+ =========================
3+
4+ Currently, you can automate contract verification on Etherscan
5+ if you are using Waffle to build your contracts.
6+
7+ In order to verify your contracts, use your deployment script
8+ with the following command line parameters:
9+
10+ .. code-block :: bash
11+
12+ yarn ts-node deployment.ts --verify --etherscan-key < ETHERSCAN_API_KEY>
13+
14+ In order for this to work, the :code: `compilerOptions ` in your
15+ :code: `waffle.json ` config file must be stated explicitly, as
16+ Waffle's default compiler options are different from Etherscan's.
17+
18+ The :code: `compilerVersion ` setting also needs to be set to
19+ one of the `compiler versions supported by Etherscan <https://etherscan.io/solcversions >`_.
You can’t perform that action at this time.
0 commit comments