mirror of https://github.com/embarklabs/embark.git
Added improvements to storage config
This commit is contained in:
parent
85117cf55c
commit
7aa44c7fe3
|
@ -223,7 +223,8 @@ Config.prototype.loadStorageConfigFile = function() {
|
|||
"host": "localhost",
|
||||
"port": 5001,
|
||||
"getUrl": "http://localhost:8080/ipfs/"
|
||||
}
|
||||
},
|
||||
"dappConnection": [{"provider": "ipfs", "host": "localhost", "port": 5001, "getUrl": "http://localhost:8080/ipfs/"}]
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -268,19 +268,6 @@ class Engine {
|
|||
host: _options.host,
|
||||
port: _options.port
|
||||
});
|
||||
// this.registerModule('ipfs', {
|
||||
// addCheck: this.servicesMonitor.addCheck.bind(this.servicesMonitor),
|
||||
// storageConfig: this.config.storageConfig,
|
||||
// host: _options.host,
|
||||
// port: _options.port
|
||||
// });
|
||||
// this.registerModule('swarm', {
|
||||
// addCheck: this.servicesMonitor.addCheck.bind(this.servicesMonitor),
|
||||
// storageConfig: this.config.storageConfig,
|
||||
// // TODO: this should not be needed and should be deducted from the config instead
|
||||
// // the eth provider is not necessary the same as the swarm one
|
||||
// bzz: this.blockchain.web3.bzz
|
||||
// });
|
||||
}
|
||||
|
||||
web3Service(options) {
|
||||
|
|
|
@ -136,6 +136,11 @@
|
|||
"deploying to swarm!": "deploying to swarm!",
|
||||
"adding %s to swarm": "adding %s to swarm",
|
||||
"successfully uploaded to swarm": "successfully uploaded to swarm",
|
||||
"Cannot upload: {{platform}} node is not running on {{protocol}}://{{host}}{{port}}.": "Cannot upload: {{platform}} node is not running on {{protocol}}://{{host}}{{port}}.",
|
||||
"Installing packages...": "Installing packages...",
|
||||
"Next steps:": "Next steps:",
|
||||
"open another console in the same directory and run": "open another console in the same directory and run",
|
||||
"For more info go to http://embark.status.im": "For more info go to http://embark.status.im"
|
||||
"Cannot upload: {{platform}} node is not running on {{protocol}}://{{host}}{{port}}.": "Cannot upload: {{platform}} node is not running on {{protocol}}://{{host}}{{port}}."
|
||||
"This is known to cause issues with some applications, please consider reducing your DApp path's length to 66 characters or less.": "This is known to cause issues with some applications, please consider reducing your DApp path's length to 66 characters or less."
|
||||
"no contracts found": "no contracts found",
|
||||
|
|
|
@ -4,14 +4,21 @@
|
|||
"ipfs_bin": "ipfs",
|
||||
"provider": "ipfs",
|
||||
"available_providers": ["ipfs"],
|
||||
"host": "localhost",
|
||||
"port": 5001
|
||||
"upload": {
|
||||
"host": "localhost",
|
||||
"port": 5001
|
||||
},
|
||||
"dappConnection": [
|
||||
{"provider": "ipfs", "host": "localhost", "port": 5001, "getUrl": "http://localhost:8080/ipfs/"}
|
||||
]
|
||||
},
|
||||
"development": {
|
||||
"enabled": true,
|
||||
"provider": "ipfs",
|
||||
"host": "localhost",
|
||||
"port": 5001,
|
||||
"getUrl": "http://localhost:8080/ipfs/"
|
||||
"upload": {
|
||||
"host": "localhost",
|
||||
"port": 5001,
|
||||
"getUrl": "http://localhost:8080/ipfs/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,14 +4,21 @@
|
|||
"ipfs_bin": "ipfs",
|
||||
"provider": "ipfs",
|
||||
"available_providers": ["ipfs"],
|
||||
"host": "localhost",
|
||||
"port": 5001
|
||||
"upload": {
|
||||
"host": "localhost",
|
||||
"port": 5001
|
||||
},
|
||||
"dappConnection": [
|
||||
{"provider": "ipfs", "host": "localhost", "port": 5001, "getUrl": "http://localhost:8080/ipfs/"}
|
||||
]
|
||||
},
|
||||
"development": {
|
||||
"enabled": true,
|
||||
"provider": "ipfs",
|
||||
"host": "localhost",
|
||||
"port": 5001,
|
||||
"getUrl": "http://localhost:8080/ipfs/"
|
||||
"upload": {
|
||||
"host": "localhost",
|
||||
"port": 5001,
|
||||
"getUrl": "http://localhost:8080/ipfs/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ describe("SimpleStorage", function() {
|
|||
|
||||
it("set storage value", async function() {
|
||||
await SimpleStorage.methods.set(150).send();
|
||||
let result = SimpleStorage.methods.get().call();
|
||||
let result = await SimpleStorage.methods.get().call();
|
||||
assert.equal(result, 150);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue