mirror of https://github.com/embarklabs/embark.git
update readme
This commit is contained in:
parent
96d1361dd8
commit
e9bd2acef5
|
@ -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
|
||||||
======
|
======
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue