smart_contracts icon indicating copy to clipboard operation
smart_contracts copied to clipboard

Publish Source to make contracts visible on Etherscan

Open abitrolly opened this issue 8 years ago • 5 comments

Publishing Source can make gitcoin.co appear as name in Etherscan logs instead of just hash. See this KittyCore contract for example - https://etherscan.io/address/0x06012c8cf97bead5deae237070f9587f8e7a266d#code

I don't know how to do this. I tried Etherscan upload form, but it failed on imports.

abitrolly avatar Dec 04 '17 23:12 abitrolly

this is a great idea and i will do it soon, when im not tied up with :all the things:

owocki avatar Dec 05 '17 00:12 owocki

I did a bit of research. Source code needs to be uploaded somewhere. I didn't find any automatic or semiautomatic scanners for GitHub. Without them there are two ways.

  1. Upload all files manually to https://remix.ethereum.org/ and "Publish on Swarm"
  2. Use https://github.com/BlockCatIO/solidity-flattener and publish on Etherscan https://etherscan.io/verifyContract2

abitrolly avatar Dec 05 '17 04:12 abitrolly

having some problems flattening the solidity contract https://github.com/BlockCatIO/solidity-flattener/issues/10

if someone out there wants to 1. publish the contracts from this repo on swarm and flatten them, i will happily contribute the verifyContract

owocki avatar Dec 07 '17 03:12 owocki

That's on my TODO list, which is rather chaotic in terms of priorities. )

abitrolly avatar Dec 07 '17 07:12 abitrolly

amen to that

owocki avatar Dec 07 '17 16:12 owocki