1.0.4 • Published 10 years ago

grunt-solc-output-deploy v1.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
10 years ago

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(){});"
                    ]
                }
            }
        }
    }
})
1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago