grunt-solc-output-deploy

1.0.4 • Public • Published

grunt-solc-output-deploy

Deploy the outputs of solc

Works beautifully with grunt-geth and grunt-solc

Getting Started

This plugin requires Grunt ~0.4.5

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install solc-output-deploy --save-dev 

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-solc-output-deploy');

The "solc-output-deploy" task

Deploy solc output

grunt.config.init({
    'solc-output-deploy':{
        development:{
            options:{
                rpchost:'localhost'
                ,rpcport:8101
                ,contracts:'contracts.json' //solc output
                ,chain:'chain.json'         //where to save contract runtimeBytecodes/addresses
                ,address: '0x00'            //optional; defaultAccount address. Uses web3.eth.accounts[0] by default
                ,deploy:[
                    'AliasReg'
                    ,'Keystore'
                    ,'OrderBook'
                ],onDeploy:{                //optional; javascript to eval
                    'OrderBook':[
                        "thisContract.set('CMC:TETH:USD', 830075000000, function(){});"
                        ,"thisContract.set('CMC:TETH:EUR', 782024448475, function(){});"
                        ,"thisContract.set('CMC:TETH:CNY', 5311462328050, function(){});"
                        ,"thisContract.set('CMC:TETH:CAD', 1107984940080, function(){});"
                        ,"thisContract.set('CMC:TETH:RUB', 55780151819800, function(){});"
                        ,"thisContract.set('CMC:TETH:BTC', 2306400000, function(){});"
                    ]
                }
            }
        }
    }
})

Readme

Keywords

Package Sidebar

Install

npm i grunt-solc-output-deploy

Weekly Downloads

9

Version

1.0.4

License

MIT

Last publish

Collaborators

  • aakilfernandes