diff --git a/templates/boilerplate/config/blockchain.js b/templates/boilerplate/config/blockchain.js new file mode 100644 index 000000000..b37632082 --- /dev/null +++ b/templates/boilerplate/config/blockchain.js @@ -0,0 +1,59 @@ +module.exports = { + development: { + enabled: true, + networkType: "custom", + networkId: "1337", + isDev: true, + genesisBlock: "config/development/genesis.json", + datadir: ".embark/development/datadir", + mineWhenNeeded: true, + nodiscover: true, + maxpeers: 0, + rpcHost: "localhost", + rpcPort: 8545, + rpcCorsDomain: "auto", + proxy: true, + account: { + password: "config/development/password" + }, + targetGasLimit: 8000000, + wsOrigins: "auto", + wsRPC: true, + wsHost: "localhost", + wsPort: 8546, + simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", + simulatorBlocktime: 0 + }, + testnet: { + enabled: true, + networkType: "testnet", + light: true, + rpcHost: "localhost", + rpcPort: 8545, + rpcCorsDomain: "http://localhost:8000", + account: { + password: "config/testnet/password" + } + }, + livenet: { + enabled: true, + networkType: "livenet", + light: true, + rpcHost: "localhost", + rpcPort: 8545, + rpcCorsDomain: "http://localhost:8000", + account: { + password: "config/livenet/password" + } + }, + privatenet: { + enabled: true, + networkType: "custom", + rpcHost: "localhost", + rpcPort: 8545, + rpcCorsDomain: "http://localhost:8000", + datadir: "yourdatadir", + networkId: "123", + bootnodes: "" + } +} diff --git a/templates/boilerplate/config/blockchain.json b/templates/boilerplate/config/blockchain.json deleted file mode 100644 index f80d68c6d..000000000 --- a/templates/boilerplate/config/blockchain.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "development": { - "enabled": true, - "networkType": "custom", - "networkId": "1337", - "isDev": true, - "genesisBlock": "config/development/genesis.json", - "datadir": ".embark/development/datadir", - "mineWhenNeeded": true, - "nodiscover": true, - "maxpeers": 0, - "rpcHost": "localhost", - "rpcPort": 8545, - "rpcCorsDomain": "auto", - "proxy": true, - "account": { - "password": "config/development/password" - }, - "targetGasLimit": 8000000, - "wsOrigins": "auto", - "wsRPC": true, - "wsHost": "localhost", - "wsPort": 8546, - "simulatorMnemonic": "example exile argue silk regular smile grass bomb merge arm assist farm", - "simulatorBlocktime": 0 - }, - "testnet": { - "enabled": true, - "networkType": "testnet", - "light": true, - "rpcHost": "localhost", - "rpcPort": 8545, - "rpcCorsDomain": "http://localhost:8000", - "account": { - "password": "config/testnet/password" - } - }, - "livenet": { - "enabled": true, - "networkType": "livenet", - "light": true, - "rpcHost": "localhost", - "rpcPort": 8545, - "rpcCorsDomain": "http://localhost:8000", - "account": { - "password": "config/livenet/password" - } - }, - "privatenet": { - "enabled": true, - "networkType": "custom", - "rpcHost": "localhost", - "rpcPort": 8545, - "datadir": "yourdatadir", - "networkId": "123", - "bootnodes": "" - } -} diff --git a/templates/boilerplate/config/communication.js b/templates/boilerplate/config/communication.js new file mode 100644 index 000000000..78d87aa90 --- /dev/null +++ b/templates/boilerplate/config/communication.js @@ -0,0 +1,13 @@ +module.exports = { + default: { + enabled: true, + provider: "whisper", + available_providers: ["whisper"], + connection: { + host: "localhost", + port: 8546, + type: "ws" + } + } +} + diff --git a/templates/boilerplate/config/communication.json b/templates/boilerplate/config/communication.json deleted file mode 100644 index a6b7f7617..000000000 --- a/templates/boilerplate/config/communication.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "default": { - "enabled": true, - "provider": "whisper", - "available_providers": ["whisper"], - "connection": { - "host": "localhost", - "port": 8546, - "type": "ws" - } - } -} diff --git a/templates/boilerplate/config/namesystem.js b/templates/boilerplate/config/namesystem.js new file mode 100644 index 000000000..17ac6de4f --- /dev/null +++ b/templates/boilerplate/config/namesystem.js @@ -0,0 +1,6 @@ +module.exports = { + default: { + available_providers: ["ens"], + provider: "ens" + } +} diff --git a/templates/boilerplate/config/namesystem.json b/templates/boilerplate/config/namesystem.json deleted file mode 100644 index d4918b47b..000000000 --- a/templates/boilerplate/config/namesystem.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "default": { - "available_providers": ["ens"], - "provider": "ens" - } -} \ No newline at end of file diff --git a/templates/boilerplate/config/storage.js b/templates/boilerplate/config/storage.js new file mode 100644 index 000000000..1603bead2 --- /dev/null +++ b/templates/boilerplate/config/storage.js @@ -0,0 +1,24 @@ +module.exports = { + default: { + enabled: true, + ipfs_bin: "ipfs", + provider: "ipfs", + available_providers: ["ipfs"], + upload: { + host: "localhost", + port: 5001 + }, + dappConnection: [ + {provider: "ipfs", host: "localhost", port: 5001, getUrl: "http://localhost:8080/ipfs/"} + ] + }, + development: { + enabled: true, + provider: "ipfs", + upload: { + host: "localhost", + port: 5001, + getUrl: "http://localhost:8080/ipfs/" + } + } +} diff --git a/templates/boilerplate/config/storage.json b/templates/boilerplate/config/storage.json deleted file mode 100644 index da1aa6b74..000000000 --- a/templates/boilerplate/config/storage.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "default": { - "enabled": true, - "ipfs_bin": "ipfs", - "provider": "ipfs", - "available_providers": ["ipfs"], - "upload": { - "host": "localhost", - "port": 5001 - }, - "dappConnection": [ - {"provider": "ipfs", "host": "localhost", "port": 5001, "getUrl": "http://localhost:8080/ipfs/"} - ] - }, - "development": { - "enabled": true, - "provider": "ipfs", - "upload": { - "host": "localhost", - "port": 5001, - "getUrl": "http://localhost:8080/ipfs/" - } - } -} diff --git a/templates/boilerplate/config/webserver.js b/templates/boilerplate/config/webserver.js new file mode 100644 index 000000000..d5b49949e --- /dev/null +++ b/templates/boilerplate/config/webserver.js @@ -0,0 +1,5 @@ +module.exports = { + enabled: true, + host: "localhost", + port: 8000 +} diff --git a/templates/boilerplate/config/webserver.json b/templates/boilerplate/config/webserver.json deleted file mode 100644 index c28a31138..000000000 --- a/templates/boilerplate/config/webserver.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "enabled": true, - "host": "localhost", - "port": 8000 -} diff --git a/templates/demo/config/blockchain.js b/templates/demo/config/blockchain.js new file mode 100644 index 000000000..b37632082 --- /dev/null +++ b/templates/demo/config/blockchain.js @@ -0,0 +1,59 @@ +module.exports = { + development: { + enabled: true, + networkType: "custom", + networkId: "1337", + isDev: true, + genesisBlock: "config/development/genesis.json", + datadir: ".embark/development/datadir", + mineWhenNeeded: true, + nodiscover: true, + maxpeers: 0, + rpcHost: "localhost", + rpcPort: 8545, + rpcCorsDomain: "auto", + proxy: true, + account: { + password: "config/development/password" + }, + targetGasLimit: 8000000, + wsOrigins: "auto", + wsRPC: true, + wsHost: "localhost", + wsPort: 8546, + simulatorMnemonic: "example exile argue silk regular smile grass bomb merge arm assist farm", + simulatorBlocktime: 0 + }, + testnet: { + enabled: true, + networkType: "testnet", + light: true, + rpcHost: "localhost", + rpcPort: 8545, + rpcCorsDomain: "http://localhost:8000", + account: { + password: "config/testnet/password" + } + }, + livenet: { + enabled: true, + networkType: "livenet", + light: true, + rpcHost: "localhost", + rpcPort: 8545, + rpcCorsDomain: "http://localhost:8000", + account: { + password: "config/livenet/password" + } + }, + privatenet: { + enabled: true, + networkType: "custom", + rpcHost: "localhost", + rpcPort: 8545, + rpcCorsDomain: "http://localhost:8000", + datadir: "yourdatadir", + networkId: "123", + bootnodes: "" + } +} diff --git a/templates/demo/config/blockchain.json b/templates/demo/config/blockchain.json deleted file mode 100644 index 9b7162c0d..000000000 --- a/templates/demo/config/blockchain.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "development": { - "enabled": true, - "networkType": "custom", - "networkId": "1337", - "isDev": true, - "genesisBlock": "config/development/genesis.json", - "datadir": ".embark/development/datadir", - "mineWhenNeeded": true, - "nodiscover": true, - "maxpeers": 0, - "rpcHost": "localhost", - "rpcPort": 8545, - "rpcCorsDomain": "auto", - "proxy": true, - "account": { - "password": "config/development/password" - }, - "targetGasLimit": 8000000, - "wsOrigins": "auto", - "wsRPC": true, - "wsHost": "localhost", - "wsPort": 8546, - "simulatorMnemonic": "example exile argue silk regular smile grass bomb merge arm assist farm", - "simulatorBlocktime": 0 - }, - "testnet": { - "enabled": true, - "networkType": "testnet", - "light": true, - "rpcHost": "localhost", - "rpcPort": 8545, - "rpcCorsDomain": "http://localhost:8000", - "account": { - "password": "config/testnet/password" - } - }, - "livenet": { - "enabled": true, - "networkType": "livenet", - "light": true, - "rpcHost": "localhost", - "rpcPort": 8545, - "rpcCorsDomain": "http://localhost:8000", - "account": { - "password": "config/livenet/password" - } - }, - "privatenet": { - "enabled": true, - "networkType": "custom", - "rpcHost": "localhost", - "rpcPort": 8545, - "rpcCorsDomain": "http://localhost:8000", - "datadir": "yourdatadir", - "networkId": "123", - "bootnodes": "" - } -} diff --git a/templates/demo/config/communication.js b/templates/demo/config/communication.js new file mode 100644 index 000000000..eb969d3cd --- /dev/null +++ b/templates/demo/config/communication.js @@ -0,0 +1,12 @@ +module.exports = { + default: { + enabled: true, + provider: "whisper", + available_providers: ["whisper"], + connection: { + host: "localhost", + port: 8546, + type: "ws" + } + } +} diff --git a/templates/demo/config/communication.json b/templates/demo/config/communication.json deleted file mode 100644 index a6b7f7617..000000000 --- a/templates/demo/config/communication.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "default": { - "enabled": true, - "provider": "whisper", - "available_providers": ["whisper"], - "connection": { - "host": "localhost", - "port": 8546, - "type": "ws" - } - } -} diff --git a/templates/demo/config/namesystem.js b/templates/demo/config/namesystem.js new file mode 100644 index 000000000..d4fa92799 --- /dev/null +++ b/templates/demo/config/namesystem.js @@ -0,0 +1,6 @@ +module.exports = { + default: { + available_providers: ["ens"], + provider: "ens" + } +} diff --git a/templates/demo/config/namesystem.json b/templates/demo/config/namesystem.json deleted file mode 100644 index dc83ac4bd..000000000 --- a/templates/demo/config/namesystem.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "default": { - "available_providers": ["ens"], - "provider": "ens" - } -} \ No newline at end of file diff --git a/templates/demo/config/storage.js b/templates/demo/config/storage.js new file mode 100644 index 000000000..1603bead2 --- /dev/null +++ b/templates/demo/config/storage.js @@ -0,0 +1,24 @@ +module.exports = { + default: { + enabled: true, + ipfs_bin: "ipfs", + provider: "ipfs", + available_providers: ["ipfs"], + upload: { + host: "localhost", + port: 5001 + }, + dappConnection: [ + {provider: "ipfs", host: "localhost", port: 5001, getUrl: "http://localhost:8080/ipfs/"} + ] + }, + development: { + enabled: true, + provider: "ipfs", + upload: { + host: "localhost", + port: 5001, + getUrl: "http://localhost:8080/ipfs/" + } + } +} diff --git a/templates/demo/config/storage.json b/templates/demo/config/storage.json deleted file mode 100644 index da1aa6b74..000000000 --- a/templates/demo/config/storage.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "default": { - "enabled": true, - "ipfs_bin": "ipfs", - "provider": "ipfs", - "available_providers": ["ipfs"], - "upload": { - "host": "localhost", - "port": 5001 - }, - "dappConnection": [ - {"provider": "ipfs", "host": "localhost", "port": 5001, "getUrl": "http://localhost:8080/ipfs/"} - ] - }, - "development": { - "enabled": true, - "provider": "ipfs", - "upload": { - "host": "localhost", - "port": 5001, - "getUrl": "http://localhost:8080/ipfs/" - } - } -} diff --git a/templates/demo/config/webserver.js b/templates/demo/config/webserver.js new file mode 100644 index 000000000..d5b49949e --- /dev/null +++ b/templates/demo/config/webserver.js @@ -0,0 +1,5 @@ +module.exports = { + enabled: true, + host: "localhost", + port: 8000 +} diff --git a/templates/demo/config/webserver.json b/templates/demo/config/webserver.json deleted file mode 100644 index c28a31138..000000000 --- a/templates/demo/config/webserver.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "enabled": true, - "host": "localhost", - "port": 8000 -}