SimpleWriteAccessController Verification
From Chainlink Community Wiki
This page provides specific instructions on how to verify a deployed SimpleWriteAccessController.sol
contract on etherscan.
This enables you to view and manage the contract via etherscan's web UI.
Verifying A SimpleWriteAccessController
The instructions in this example will contain an example Access Controller contract on Rinkeby, but the directions will be equally applicable to any network that uses an etherscan-based explorer.
https://rinkeby.etherscan.io/address/0x30f3e33D93C79572642B89C631Df3D180dd965Bf#code
Set Base Variables for Verifying the Contract
Navigate the your deployed contract's address in Etherscan, then click on the Contract tab.
If the contract is not verified, then you will see a page with the contract's ByteCode and an option to "Verify and Publish" the contract.
We'll go ahead and click on "Verify and Publish", which takes us to a new page.
Here we will want to confirm the contract's address, set the compiler type to Solidity (Single file)
, and then set the Compiler Version to 0.8.0+commit.c7dfd78e
.
Lastly, since Chainlink uses the MIT License (MIT)
, we'll want to select that as well.
Then click "Continue"
Copy Over the Source Code of the Contract
Once on the next page, be sure to open the drop-down for "Optimization" and set it to Yes.
The SimpleWriteAccessController.sol
source code is available in the Chainlink Github repo..
Copy the contents on that page and paste it into the empty field titled "Enter the Solidity Contract Code below"
Copy in the Constructor Arguments
The Constructor Arguments are available below:
Set Miscellaneous Settings
Click the drop-down for Misc. Settings and set the Runs to 20000
(twenty-thousand)
Leave the other options as their defaults.