From d08d5f9e8d86f32c932844bf53fe0c389851c7ca Mon Sep 17 00:00:00 2001 From: Garret Alfert Date: Mon, 26 Aug 2019 18:00:17 +0200 Subject: [PATCH 1/3] Add IPFS Gateway config to readme --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dbe9782..c0061d5 100644 --- a/README.md +++ b/README.md @@ -71,10 +71,10 @@ These are the basic steps to get up and running: #### 1. IPFS -Run a local IPFS deamon in offline mode. +Run a local IPFS deamon. * Make sure CORS headers are configured. See [IPFS](#ipfs) for more info. - * `ipfs daemon --offline` + * `ipfs daemon` #### 2. kredits-contracts @@ -108,6 +108,7 @@ Install IPFS with your favorite package manager and run ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin '["localhost:4200"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Methods '["PUT", "GET", "POST"]' ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials '["true"]' + ipfs config Addresses.Gateway /ip4/127.0.0.1/tcp/8080 ## Further Reading / Useful Links -- 2.50.1 From 7bf5fa444a46835f122f0fe4156a8fb43b837c53 Mon Sep 17 00:00:00 2001 From: Garret Alfert Date: Mon, 26 Aug 2019 18:09:38 +0200 Subject: [PATCH 2/3] Add notice about Metamask when using local devchain --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index c0061d5..5c3ff65 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,10 @@ If that is the case the DAO address must be provided as `KREDITS_KERNEL_ADDRESS` * `npm run dao:address` in the kredits-contracts repo to find your address * `KREDITS_KERNEL_ADDRESS=<0xYOURADDRESS> npm run start:local` +#### 4. Metamask network + +Switch the network in Metamask to "Custom RPC" with the RPC URL `http://localhost:7545`. + #### IPFS Install IPFS with your favorite package manager and run -- 2.50.1 From d13242b21010b2ad9a7ade7696d6b23658937dd9 Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Tue, 27 Aug 2019 15:00:18 +0200 Subject: [PATCH 3/3] Rename kernel address to DAO address We're making the naming consistent everwhere. --- README.md | 6 +++--- config/environment.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index dbe9782..d3fe065 100644 --- a/README.md +++ b/README.md @@ -94,11 +94,11 @@ 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` - 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. +If you restart the devchain your network ID changes. So kredits-contracts does not find the correct DAO address. +If that is the case the DAO address must be provided as `KREDITS_DAO_ADDRESS` environment variable. * `npm run dao:address` in the kredits-contracts repo to find your address - * `KREDITS_KERNEL_ADDRESS=<0xYOURADDRESS> npm run start:local` + * `KREDITS_DAO_ADDRESS=<0xYOURADDRESS> npm run start:local` #### IPFS diff --git a/config/environment.js b/config/environment.js index 1004b33..8c2d067 100644 --- a/config/environment.js +++ b/config/environment.js @@ -81,8 +81,8 @@ module.exports = function(environment) { if (process.env.WEB3_PROVIDER_URL) { ENV.web3ProviderUrl = process.env.WEB3_PROVIDER_URL; } - if (process.env.KREDITS_KERNEL_ADDRESS) { - ENV.kreditsKernelAddress = process.env.KREDITS_KERNEL_ADDRESS; + if (process.env.KREDITS_DAO_ADDRESS) { + ENV.kreditsKernelAddress = process.env.KREDITS_DAO_ADDRESS; } if (process.env.KREDITS_APM_DOMAIN) { ENV.kreditsApmDomain = process.env.KREDITS_APM_DOMAIN; -- 2.50.1