Publish your metadata and the source code to SWARM and IPFS

lianahus
Remix Project
Published in
3 min readSep 18, 2019

If you read Christian’s recent tweets about decentralized “etherscan” you probably already familiar with the topic.

So there is a gap in the ethereum ecosystem. And to fix this we don’t need expensive projects with lot’s of effort we all need to do a simple thing — publish the metadata and the source code of our contracts to IPFS or/and Swarm. The next step would be to for someone in the ecosystem to build a simple tool to retrieve compiler versions, contract Netspecs and verify everything.

If you go to Solidity Plugin in remix.ethereum.org you will find two buttons to share your metadata and source code with the world. We already had “Publish to Swarm” in remix-ide and “Publish to IPFS” has been added recently.

Wanna try it in remix-ide?

Do you know how to activate a Solidity Plugin? It’s quite easy.

  • open the remix-ide
  • click on “Solidity’ environment from the “Home” tab to activate all plugins you need to work with Solidity.

Now how to compile a file

  • click on “File Explorer” icon in vertical icon panel
  • select the file with the contract you want to compile
  • click on “Solidity” Icon in vertical icon panel
  • configure settings if needed and compiler version and hit “Compile <file name>” button
  • now if you don’t have errors you will see the buttons to publish your metadata and source code at the very bottom of the tab.

Hit the buttons if you need to share your stuff and you will see these modals:

If you go to File Explorer now you will see find all data you just published under SWARM and IPFS directories,

And that’s it! Easy as that.

We also plan to add a checkbox in Deploy and Run plugin so you can do this automatically when you deploy a contract.

We would really recommend to all IDEs out there to add an easy way to do this too.

Now it’s your turn. Share the data of your contract with the world so people can find it easily and use it in the most convenient and optimal way because sharing is caring ;)

--

--