-
Notifications
You must be signed in to change notification settings - Fork 550
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow publishing source on Etherscan #411
Comments
Does anyone work on this issue? if not, I would like to solve this issue. |
Etherscan updated to support verifying from solidity-standard-json-input. The |
What is the current best way to achieve this for contracts created trough |
I think it would be good practice to have a |
The json seems located in edit: I was wrong, that is not the correct json. |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done This issue now has a funding of 0.5 ETH (236.29 USD @ $472.58/ETH) attached to it.
|
Looks like some of the work may have already started for this, but is blocked, in #766? |
Maybe we should also consider a standard json format instead of flattening for Solidity? |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work has been started. These users each claimed they can complete the work by 266 years from now. 1) oogetyboogety has been approved to start work.
My Plan and build this function in cli that self-identifies the contract models before delivering. ex: contracts with experimental ABI and contracts with default ABI My plan:
Learn more on the Gitcoin Issue Details page. |
@oogetyboogety sorry for the delay, I didn't notice I had to approve someone to start the work. |
#651 could also be useful here. I think verifying by submitting the standard JSON compiler input will be less error-prone. |
@banteg @iamdefinitelyahuman I need to validate to make sure there are not more than 10 imports, right? |
@banteg how should the interface look for an etherscan API key? |
I would read from env variable. Other tools use |
gotcha, thanks |
Brownie is already expecting the API key as an environment variable brownie/brownie/network/contract.py Lines 1370 to 1379 in b7c7253
|
@oogetyboogety Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
@oogetyboogety Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done @oogetyboogety due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Should have this pr ready today
Sent from my Verizon, Samsung Galaxy smartphone
Get Outlook for Android<https://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
________________________________
@oogetyboogety<https://github.com/oogetyboogety> due to inactivity, we have escalated this issue<https://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 day<https://gitcoin.co/issue/eth-brownie/brownie/411/100024068?snooze=1> | 3 days<https://gitcoin.co/issue/eth-brownie/brownie/411/100024068?snooze=3> | 5 days<https://gitcoin.co/issue/eth-brownie/brownie/411/100024068?snooze=5> | 10 days<https://gitcoin.co/issue/eth-brownie/brownie/411/100024068?snooze=10> | 100 days<https://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 GitHub<#411 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAZKLVTA254VUWI4TRTAFTDSRPSORANCNFSM4MIAO7UA>.
|
@Macarse oh gotcha let me do that now |
@Macarse fixed |
@oogetyboogety Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
1 similar comment
@oogetyboogety Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done @oogetyboogety due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
@gitcoinbot i'll take another look at getting the api calls right this weekend |
@oogetyboogety Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
hey guys just wanted to write a workaround i use for this. when i deploy with brownie i write a csvfile to disk and then i have a bash script that feeds the rows into |
@oogetyboogety Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done @oogetyboogety due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
@oogetyboogety plz check #896 |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done @oogetyboogety due to inactivity, we have escalated this issue to Gitcoin's moderation team. Let us know if you believe this has been done in error!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
@Mecarse I can definitely try the flattened way. I'm trying to get it working with the API using solidity-json-output, as you can see in my reference PR. I think I might be close, I just need to figure out how to properly use the API. |
I'll do that today |
@gitcoinbot Think I got this working based on what I learned from https://github.com/rkalis/truffle-plugin-verify/blob/master/verify.js, will be updating in the next couple days with linted PR again |
@oogetyboogety Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
So close 🥂 |
@oogetyboogety Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done The funding of 0.5 ETH (365.14 USD @ $730.28/ETH) attached to this issue has been cancelled by the bounty submitter
|
@oogetyboogety I canceled the bounty after your inactivity. |
Was still working on getting this working, having some trouble getting this working for 100% of contracts. I wonder if anyone had a chance to look at the pr i had in progress
|
This one is in progress, really solid approach I think will probably be what ends up being merged: |
Oh gotcha. If it behooves anyone to look I made a PR in progress where the approach might be less solid. It uses the solidity json file as opposed to flattening a contract. I was actually trying to get this to cooperate on all test contracts in brownie with the Etherscan API on Ropsten, without exceeding the request limits Etherscan API imposes while testing, although this was definitely taking me a while. If you would like for me to resume work on this, let me know. |
I've had issues getting contracts verified with the flattening approach. Really hopeful to see if @oogetyboogety can figure it out. |
Implemented in #914. See PR for details. |
If we have linked contracts at already deployed addresses, it would make sense to get the error I kept getting if they were compiled using two different solidity commit hashes or versions, and then try to deploy with the already verified address for the OpenZeppelin contract. FYI for future reference. |
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:
Contract
, to be called from in the console or a script.brownie run
to auto-verify all sources after deployment?Possible syntax:
and / or
The text was updated successfully, but these errors were encountered: