gitcoinco / smart_contracts

Push Open Source Forward.
https://gitcoin.co
127 stars 39 forks source link

Publish Source to make contracts visible on Etherscan #8

Open abitrolly opened 6 years ago

abitrolly commented 6 years ago

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.

owocki commented 6 years ago

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

abitrolly commented 6 years ago

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
owocki commented 6 years ago

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

abitrolly commented 6 years ago

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

owocki commented 6 years ago

amen to that