Comparing version 0.1.1 to 0.1.2
@@ -10,5 +10,6 @@ const layers = require('./function/startChain.js'); | ||
const app = require('./function/app,cli.js').APP; | ||
const node = require('./function/app,cli.js').CLI; | ||
const app = require('./function/appConfigs.js').APP; | ||
const node = require('./function/appConfigs.js').CLI; | ||
module.exports={ | ||
@@ -15,0 +16,0 @@ layers, |
{ | ||
"name": "mec", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "This package helps to create multi-layer chains upon Ethereum Network. Also it provides easy to use nodejs API to any of consortium network and helps to manage all of them at the same time", | ||
@@ -5,0 +5,0 @@ "main": "mec.js", |
@@ -9,5 +9,6 @@ # nodejs-MEC | ||
mec.init() | ||
// mec.layer.init(your_password), by default set to 1234 | ||
mec.layer.init("1234") | ||
mec.startLayer.search("signup") | ||
mec.layer.search("signup") | ||
``` | ||
@@ -37,20 +38,18 @@ Response contains interface needed to start new sub-network connection: | ||
```JavaScript | ||
mec.startLayer.getInterface() | ||
mec.layer.getInterface() | ||
``` | ||
Response contains all available sub-networks interfaces: | ||
```JSON | ||
[ | ||
{ | ||
"abi": [3], | ||
"address": "0xeac784b35b697740a3dc17ec59247749cc298c37", | ||
"enode": "enode://b61f72cb88eed0ea9c2214492186a473774a8a9bb318194ac38d3900062a11a0b48d1a4e8d36e04432c2e287e485f2f30a38cc9d0230a81d8fde59724ea313fa@212.20.41.42:30303", | ||
"name": "signup" | ||
}, | ||
{ | ||
"abi": [3], | ||
"address": "0x1234567890123456789012345678901234567890", | ||
"enode": "enode://.....", | ||
"name": "main" | ||
} | ||
] | ||
{ | ||
"abi": [3], | ||
"address": "0xeac784b35b697740a3dc17ec59247749cc298c37", | ||
"enode": "enode://b61f72cb88eed0ea9c2214492186a473774a8a9bb318194ac38d3900062a11a0b48d1a4e8d36e04432c2e287e485f2f30a38cc9d0230a81d8fde59724ea313fa@212.20.41.42:30303", | ||
"name": "signup" | ||
}, | ||
{ | ||
"abi": [3], | ||
"address": "0x1234567890123456789012345678901234567890", | ||
"enode": "enode://.....", | ||
"name": "main" | ||
} | ||
``` | ||
@@ -60,3 +59,4 @@ About abi you can read at [Ethereum ABI](https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI). | ||
```JavaScript | ||
mec.startLayer.start("signup", 1092015) | ||
mec.layer.start("signup") | ||
// mec.layer.start(name_of_subnet_you_connecting) | ||
``` | ||
@@ -71,3 +71,4 @@ Successfull response means that now you can interact with sub-network applications over http/ipc/API | ||
```JavaScript | ||
mec.newLayer.createMyChain("my") | ||
mec.newLayer("my") | ||
// the name you set will be used to find you globaly | ||
``` | ||
@@ -93,3 +94,3 @@ Successfull response means that now you can develop or anything else with your own sub-network blockchain. | ||
``` | ||
npm install mec@0.0.6 | ||
npm install mec@0.1.2 | ||
``` | ||
@@ -99,4 +100,4 @@ Add MEC to your project | ||
const mec = require('mec') | ||
mec.init() | ||
mec.init("1234") | ||
``` | ||
### [API reference](https://github.com/MEC-org/nodejs-MEC/wiki) |
32506121
931
98