update readme

This commit is contained in:
Iuri Matias 2017-03-06 21:53:36 -05:00
parent 96d1361dd8
commit e9bd2acef5
1 changed files with 8 additions and 0 deletions

View File

@ -311,6 +311,12 @@ methods in EmbarkJS contracts will be converted to promises.
myContract.get().then(function(value) { console.log("value is " + value.toNumber) }); myContract.get().then(function(value) { console.log("value is " + value.toNumber) });
``` ```
events:
```Javascript
myContract.eventName({from: web3.eth.accounts}, 'latest').then(function(event) { console.log(event) });
```
**deployment** **deployment**
Client side deployment will be automatically available in Embark for existing contracts: Client side deployment will be automatically available in Embark for existing contracts:
@ -366,6 +372,8 @@ The current available storage is IPFS. it can be initialized as
EmbarkJS.Storage.getUrl(hash); EmbarkJS.Storage.getUrl(hash);
``` ```
note: if not using localhost, the cors needs to be set as ```ipfs --json API.HTTPHeaders.Access-Control-Allow-Origin '["your-host-name-port"]```
EmbarkJS - Communication EmbarkJS - Communication
====== ======