0.6.0 • Published 10 years ago

grunt-infosphere v0.6.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

grunt-infosphere

Create Infosphere and infosphered contracts

Examples

https://github.com/SafeMarket/grunt-infosphere/tree/master/contracts

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 grunt-infosphere --save-dev 

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

grunt.loadNpmTasks('grunt-infosphere');

The "infosphere" task

Create Infosphere and infosphered contracts.

grunt.initConfig({
    infosphere:{
      	simple:{
        	options:{
          	types: ['bool', 'address', 'bytes32', 'int', 'uint']
          	,files: {
            	infosphere: 'contracts/simple/Infosphere.sol'
            	,infosphered: 'contracts/simple/infosphered.sol'
          	}
        	}
      	},
      	complicated:{
        	options:{
            keyType: 'bytes8'
          	,types: ['bool', 'address', 'int', 'uint']
            ,ownershipCheck: 'if(tx.origin!=owner && msg.sender!=owner) throw;'
          	,files: {
            	infosphere: 'contracts/complicated/Infosphere.sol'
            	,infosphered: 'contracts/complicated/infosphered.sol'
          	},subtypes:{
            	bytes:{
	              	min:1
	              	,max:32
	              	,delta:4
            	},uint:{
              		min:8
              		,max:256
              		,delta:24
            	},int:{
              		min:8
              		,max:256
              		,delta:64
            	}
          	}
        }
    }
}
0.6.0

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago