Skip to content

Commit 4a24c6d

Browse files
authored
✏️ Add contract verification to docs (#23)
1 parent 22cdc1c commit 4a24c6d

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

docs/source/getting-started.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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>`_.

0 commit comments

Comments
 (0)