question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow publishing source on Etherscan

See original GitHub issue

Overview

It should be possible (and simple) to verify a deployed contract’s source code on etherscan.

Specification

Not 100% on how this would be best implemented. Some thoughts:

  1. Add an internal “flattener” to turn multiple source files into a single file. Might also be worth exposing this on it’s own via the CLI.
  2. Add a method to Contract, to be called from in the console or a script.
  3. Consider a flag in brownie run to auto-verify all sources after deployment?

Possible syntax:

contract = ContractContainer.deploy({'from': accounts[0]})
contract.publish_on_etherscan()

and / or

ContractContainer.deploy({'from': accounts[0]}, publish=True)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:6
  • Comments:58 (12 by maintainers)

github_iconTop GitHub Comments

10reactions
oogetyboogetycommented, Nov 24, 2020

Should have this pr ready today

Sent from my Verizon, Samsung Galaxy smartphone Get Outlook for Androidhttps://aka.ms/ghei36


From: Gitcoin.co Bot notifications@github.com Sent: Tuesday, November 24, 2020 12:12:08 PM To: eth-brownie/brownie brownie@noreply.github.com Cc: oogetyboogety holycrapmoli@hotmail.com; Mention mention@noreply.github.com Subject: Re: [eth-brownie/brownie] Allow publishing source on Etherscan (#411)

Issue Status: 1. Open 2. Started 3. Submitted 4. Done


@oogetyboogetyhttps://github.com/oogetyboogety due to inactivity, we have escalated this issuehttps://gitcoin.co/issue/eth-brownie/brownie/411/100024068 to Gitcoin’s moderation team. Let us know if you believe this has been done in error!

  • reminder (3 days)
  • escalation to mods (6 days)

Funders only: Snooze warnings for 1 dayhttps://gitcoin.co/issue/eth-brownie/brownie/411/100024068?snooze=1 | 3 dayshttps://gitcoin.co/issue/eth-brownie/brownie/411/100024068?snooze=3 | 5 dayshttps://gitcoin.co/issue/eth-brownie/brownie/411/100024068?snooze=5 | 10 dayshttps://gitcoin.co/issue/eth-brownie/brownie/411/100024068?snooze=10 | 100 dayshttps://gitcoin.co/issue/eth-brownie/brownie/411/100024068?snooze=100

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/eth-brownie/brownie/issues/411#issuecomment-733116862, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAZKLVTA254VUWI4TRTAFTDSRPSORANCNFSM4MIAO7UA.

7reactions
bantegcommented, Nov 14, 2020

Maybe we should also consider a standard json format instead of flattening for Solidity? https://kndrck.co/posts/verify-contracts-etherscan-100/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Allow publishing source on Etherscan | eth-brownie Funded ...
WARNING: this is a [[bounty.network]] network bounty, and is NOT real money. To see mainnet bounties, go to the bounty explorer and search...
Read more >
How to Verify and Publish on Etherscan - Medium
Steps for Verifying and Publishing your Solidity Source Code. Enter your Contract Source Code. If the Bytecode generated matches the existing ...
Read more >
How to fill section "Read Smart Contract" on Etherscan without ...
No. Currently Etherscan only allows you to publish your code and by that also make the contract readable. The tokens that you mentioned...
Read more >
Verify & Publish Contract Source Code - Etherscan
Source code verification provides transparency for users interacting with smart contracts. By uploading the source code, Etherscan will match the compiled ...
Read more >
How To Verify a Smart Contract on Etherscan | Chainlink Blog
Verifying and publishing source code. Enter your contract address ... Let's use the Chainlink Price Feed Consumer contract as an example.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found