Rename truffle-kredits to kredits-contracts

This commit is contained in:
2018-05-03 20:11:00 +02:00
parent eb5c87308a
commit 19cba53c5a
3 changed files with 55 additions and 18 deletions
+6 -6
View File
@@ -56,13 +56,13 @@ _(You need collaborator permissions on the 5apps Deploy project.)_
## Working with locally deployed contracts
The smart contracts and their JavaScript wrapper library are developed in the
[truffle-kredits](https://github.com/67P/truffle-kredits) repo/package.
[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).
[truffle-kredits](https://github.com/67P/truffle-kredits) holds all the tools
[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
contracts to it.
@@ -75,21 +75,21 @@ Run a local IPFS deamon in offline mode.
* Make sure CORS headers are configured. See [IPFS](#ipfs) for more info.
* `ipfs daemon --offline`
#### 2. truffle-kredits
#### 2. kredits-contracts
Get your local Ethereum development node running.
* Clone [truffle-kredits](https://github.com/67P/truffle-kredits)
* 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 `truffle-kredits` module linkable as `kredits-contracts` on your machine
* `npm link` - make the `kredits-contracts` module linkable as `kredits-contracts` on your machine
#### 3. kredits-web
With IPFS and Ethereum/ganache running, you can now start this Ember app.
* `npm link kredits-contracts` - link the local `truffle-kredits` package (it will become `kredits-contracts` soon)
* `npm link kredits-contracts` - link the local `kredits-contracts` package (it will become `kredits-contracts` soon)
* `npm start`
#### IPFS
+48 -11
View File
@@ -5080,6 +5080,28 @@
"node-int64": "0.4.0"
}
},
"buffer-alloc": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/buffer-alloc/-/buffer-alloc-1.1.0.tgz",
"integrity": "sha1-BVFNM78WVtNUDGhPZbEgLpDsowM=",
"dev": true,
"requires": {
"buffer-alloc-unsafe": "0.1.1",
"buffer-fill": "0.1.1"
}
},
"buffer-alloc-unsafe": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/buffer-alloc-unsafe/-/buffer-alloc-unsafe-0.1.1.tgz",
"integrity": "sha1-/+H2dVHdBVc33iUzN7/oU9+rGmo=",
"dev": true
},
"buffer-fill": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/buffer-fill/-/buffer-fill-0.1.1.tgz",
"integrity": "sha512-YgBMBzdRLEfgxJIGu2wrvI2E03tMCFU1p7d1KhB4BOoMN0VxmTFjSyN5JtKt9z8Z9JajMHruI6SE25W96wNv7Q==",
"dev": true
},
"buffer-from": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.0.0.tgz",
@@ -10864,6 +10886,12 @@
"integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=",
"dev": true
},
"fs-constants": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
"integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
"dev": true
},
"fs-extra": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz",
@@ -12864,7 +12892,7 @@
"stream-http": "2.8.1",
"stream-to-pull-stream": "1.7.2",
"streamifier": "0.1.1",
"tar-stream": "1.5.5"
"tar-stream": "1.6.0"
},
"dependencies": {
"glob": {
@@ -12948,7 +12976,7 @@
"protons": "1.0.1",
"pull-stream": "3.6.7",
"pull-traverse": "1.0.3",
"stable": "0.1.7"
"stable": "0.1.8"
}
},
"is-accessor-descriptor": {
@@ -13456,7 +13484,7 @@
}
},
"kredits-contracts": {
"version": "github:67P/truffle-kredits#1779d66ee60c03db1f5d58bf06229f34edcce8c5",
"version": "github:67P/kredits-contracts#8a7abba4861b8a3a73449693a8bd226bdecae553",
"dev": true,
"requires": {
"ethers": "3.0.15",
@@ -20560,7 +20588,7 @@
},
"slash": {
"version": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz",
"integrity": "sha512-3TYDR7xWt4dIqV2JauJr+EJeW356RXijHeUlO+8djJ+uBXPn8/2dpzBc8yQhh583sVvc9CvFAeQVgijsH+PNNg==",
"integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=",
"dev": true
},
"slice-ansi": {
@@ -20989,9 +21017,9 @@
}
},
"stable": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/stable/-/stable-0.1.7.tgz",
"integrity": "sha512-LmxBix+nUtyihSBpxXAhRakYEy49fan2suysdS1fUZcKjI+krXmH8DCZJ3yfngfrOnIFNU8O73EgNTzO2jI53w==",
"version": "0.1.8",
"resolved": "https://registry.npmjs.org/stable/-/stable-0.1.8.tgz",
"integrity": "sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w==",
"dev": true
},
"static-extend": {
@@ -21285,14 +21313,17 @@
}
},
"tar-stream": {
"version": "1.5.5",
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.5.5.tgz",
"integrity": "sha512-mQdgLPc/Vjfr3VWqWbfxW8yQNiJCbAZ+Gf6GDu1Cy0bdb33ofyiNGBtAY96jHFhDuivCwgW1H9DgTON+INiXgg==",
"version": "1.6.0",
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-1.6.0.tgz",
"integrity": "sha512-lh2iAPG/BHNmN6WB9Ybdynk9rEJ5GD/dy4zscHmVlwa1dq2tpE+BH78i5vjYwYVWEaOXGBjzxr89aVACF17Cpw==",
"dev": true,
"requires": {
"bl": "1.2.2",
"buffer-alloc": "1.1.0",
"end-of-stream": "1.4.1",
"fs-constants": "1.0.0",
"readable-stream": "2.2.2",
"to-buffer": "1.1.1",
"xtend": "4.0.1"
}
},
@@ -21454,6 +21485,12 @@
"integrity": "sha1-fSKbH8xjfkZsoIEYCDanqr/4P0M=",
"dev": true
},
"to-buffer": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/to-buffer/-/to-buffer-1.1.1.tgz",
"integrity": "sha512-lx9B5iv7msuFYE3dytT+KE5tap+rNYw+K4jVkb9R/asAb+pbBSM17jtunHplhBe6RRJdZx3Pn2Jph24O32mOVg==",
"dev": true
},
"to-fast-properties": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz",
@@ -21533,7 +21570,7 @@
},
"trim-right": {
"version": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz",
"integrity": "sha512-WZGXGstmCWgeevgTL54hrCuw1dyMQIzWy7ZfqRJfSmJZBwklI15egmQytFP6bPidmw3M8d5yEowl1niq4vmqZw==",
"integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=",
"dev": true
},
"true-case-path": {
+1 -1
View File
@@ -51,7 +51,7 @@
"eslint-plugin-ember": "^5.0.0",
"ethers": "3.0.15",
"kosmos-schemas": "^1.1.2",
"kredits-contracts": "github:67P/truffle-kredits",
"kredits-contracts": "github:67P/kredits-contracts",
"loader.js": "^4.2.3",
"tv4": "^1.3.0"
},