<
 
 
 
 
×
>
hide You are viewing an archived web page, collected at the request of Ethereum Foundation using Archive-It. This page was captured on 19:43:51 Jun 05, 2021 , and is part of the Community collection. The information on this web page may be out of date. See All versions of this archived page. Loading media information

Solidity has been added to the Meteor build process (.sol now compile into .js files)

SilentCiceroSilentCicero Toronto, CAMember Posts: 159 ✭✭✭
edited October 2015 in Solidity
So I wanted to add Solidity (.sol) files into the Meteor build process. This way I can code in Solidity in a Meteor project just like I code in .less or .js files. Solidity contracts will be compiled into globally accessible contract factories using the web3.eth.contract method. Error handling will be done in the Meteor console or browser.

Github:
https://github.com/SilentCicero/meteor-solc

Meteor:
meteor add silentcicero:solc

A Note on Selection:
Currently, the file name is used as the contract selector, so if a file contains multiple contracts, the file name will be used to select the main contract object that will be built down into a global web3.eth.contract object. So if your contract is "NameReg" than your file name should be "NameReg.sol". This file name selector design is temporary and will be phased out when better design can be developed with the MeteorJS build system.

All the best, SC

*A special thanks to @chriseth and @d11e9's npm solc compiler. Previous modules have been designed like this for Meteor, but not with the standalone JS solc compiler.
Post edited by SilentCicero on

Comments

Sign In or Register to comment.