From 07fa07eb223999246c281f599e2e9ae83e2569e5 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Thu, 4 Apr 2019 10:08:53 +0200 Subject: [PATCH 1/3] Update README --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c68767d..2dccd82 100644 --- a/README.md +++ b/README.md @@ -79,20 +79,26 @@ Run a local IPFS deamon in offline mode. #### 2. kredits-contracts -Get your local Ethereum development node running. +Get your local Ethereum development node running. (See [kredits-contracts README](https://github.com/67P/kredits-contracts) +for details. * Clone [kredits-contracts](https://github.com/67P/kredits-contracts) * `npm install` - * `npm run ganache` - which is basically: `ganache-cli -p 7545 -i 100` (we use the non-default port for local networks and a fixed network id) - * `npm run bootstrap` - bootstrap runs fresh migrations, adds some seed data and writes the address/abi information to JSON that will be used by kredits-web - * `npm link` - make the `kredits-contracts` module linkable as `kredits-contracts` on your machine + * `npm run devchain` - runs a local development chain + * `npm run bootstrap` - bootstrap runs deploys all the contracts + * `npm link` - make the `kredits-contracts` module linkable as `kredits-contracts` on your machine (currently broken :() #### 3. kredits-web With IPFS and Ethereum/ganache running, you can now start this Ember app. * `npm link kredits-contracts` - link the local `kredits-contracts` package - * `npm run start:local` - NETWORK_ID=100 and WEB3_PROVIDER_URL=http://localhost:7545 must be set for local settings + * `npm run start:local` - WEB3_PROVIDER_URL=http://localhost:7545 must be set for local settings + +If you restart the devchain your network ID changes. So kredits-contracts does not find the correct DAO Kernel address. +If that is the case the DAO address must be provided as `KREDITS_KERNEL_ADDRESS` environment variable. + + * `KREDITS_KERNEL_ADDRESS=<0xYOURADDRESS> npm run start:local` - find your address with the `npm run dao:address` command in the kredits-contracts repo. #### IPFS -- 2.50.1 From f202b34d28b1417ac8f28d56f438d83bd5f69051 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Thu, 4 Apr 2019 08:11:53 +0000 Subject: [PATCH 2/3] Update README.md --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2dccd82..a8cad30 100644 --- a/README.md +++ b/README.md @@ -61,8 +61,7 @@ The smart contracts and their JavaScript wrapper library are developed in the [kredits-contracts](https://github.com/67P/kredits-contracts) repo/package. You can run `kredits-web` on your machine, against a local, simulated Ethereum -network, provided e.g. by [ganache](http://truffleframework.com/ganache/) or -[ganache-cli](https://github.com/trufflesuite/ganache-cli). +network, provided e.g. by [ganache](http://truffleframework.com/ganache/). [kredits-contracts](https://github.com/67P/kredits-contracts) holds all the tools to start and set up such a simulated network, as well as to deploy smart @@ -86,7 +85,7 @@ for details. * `npm install` * `npm run devchain` - runs a local development chain * `npm run bootstrap` - bootstrap runs deploys all the contracts - * `npm link` - make the `kredits-contracts` module linkable as `kredits-contracts` on your machine (currently broken :() + * `npm link` - make the `kredits-contracts` module linkable as `kredits-contracts` on your machine (currently broken :( ) #### 3. kredits-web @@ -98,7 +97,7 @@ With IPFS and Ethereum/ganache running, you can now start this Ember app. If you restart the devchain your network ID changes. So kredits-contracts does not find the correct DAO Kernel address. If that is the case the DAO address must be provided as `KREDITS_KERNEL_ADDRESS` environment variable. - * `KREDITS_KERNEL_ADDRESS=<0xYOURADDRESS> npm run start:local` - find your address with the `npm run dao:address` command in the kredits-contracts repo. + * `KREDITS_KERNEL_ADDRESS=<0xYOURADDRESS> npm run start:local` - find your address with the `npm run dao:address` command in the kredits-contracts repo. #### IPFS -- 2.50.1 From 5202fe0f8e064a9a5458d8bb452a273c5ebec7be Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 4 Apr 2019 10:57:02 +0200 Subject: [PATCH 3/3] Use new Infura URL/auth closes #83 --- config/environment.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/environment.js b/config/environment.js index 7ab6ff7..009e880 100644 --- a/config/environment.js +++ b/config/environment.js @@ -35,7 +35,7 @@ module.exports = function(environment) { ] }, - web3ProviderUrl: 'https://kovan.infura.io/keUVk6OMaAvpmRF3m57n', + web3ProviderUrl: 'https://rinkeby.infura.io/v3/d4f788b7a6584f7db2fc3c268d4d09e9', ipfs: { host: 'ipfs.kosmos.org', @@ -50,7 +50,7 @@ module.exports = function(environment) { // ENV.APP.LOG_TRANSITIONS = true; // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; // ENV.APP.LOG_VIEW_LOOKUPS = true; - ENV.web3ProviderUrl = 'https://kovan.infura.io/keUVk6OMaAvpmRF3m57n'; + ENV.web3ProviderUrl = 'https://rinkeby.infura.io/v3/d4f788b7a6584f7db2fc3c268d4d09e9'; ENV.ipfs = { host: 'localhost', -- 2.50.1