Commit Graph

229 Commits

Author SHA1 Message Date
bumi 7da4956f1e Fix tests
These tests must be moved into the kredits-contract package. The
serialization is happening there.
They should be ported to mocha/chai probably
2018-04-18 20:19:26 +02:00
bumi 31e27865bb Use kredits-contracts from npm 2018-04-18 19:26:35 +02:00
bumi 967f213cba Remove build script to write address/abi json
those are now in the kredits-contracts library
2018-04-18 19:24:38 +02:00
bumi 0e556aa794 Remove kredits library files and use npm package
Currently it uses the package directly from git
2018-04-18 19:01:26 +02:00
basti e2ac6099e3 Merge pull request #56 from 67P/naming-conventions
Adjust for latest naming conventions
2018-04-17 13:29:08 +02:00
basti a4088e7acf Merge branch 'master' into naming-conventions 2018-04-17 12:55:20 +02:00
basti 550bd48fdb Merge pull request #55 from 67P/dev/ember_upgrade
Update Ember to 3.1
2018-04-17 12:53:30 +02:00
bumi f0f82a96fb Adjust for latest naming conventions
expept the renaming of ipfsHash to hashDigest all are already reflected
in the contracts
2018-04-17 11:43:44 +02:00
basti 8d303ea5af Fix tests, remove obsolete initializers 2018-04-17 01:38:21 +02:00
basti c0b5c36115 Don't inject kredits service in models 2018-04-16 19:23:28 +02:00
basti ba3c707da3 Fix ESLint errors 2018-04-16 19:14:37 +02:00
basti b09f19f399 Update Ember to 3.1 2018-04-16 18:11:52 +02:00
bumi 539f32911d Merge pull request #53 from 67P/docs/readme_local_contracts
Update README
2018-04-16 15:12:20 +00:00
basti e009caaf25 Add ember-cli-update 2018-04-16 13:38:27 +02:00
basti 1761ffbd3b Update README
Improve description and instructions for running against a local
development chain/node and IPFS node.
2018-04-16 12:49:49 +02:00
bumi 33d6499dd4 Merge pull request #51 from 67P/feature/contract-events
Move contract event handling into service
2018-04-15 19:58:23 +00:00
fsmanuel 3839eb2be4 Fixes and cleanup 2018-04-15 21:33:37 +02:00
fsmanuel a04ab09ed6 Move event handler assignment into method 2018-04-15 20:49:17 +02:00
fsmanuel 89d6b920b1 Remove unused Ember import 2018-04-15 20:38:24 +02:00
fsmanuel d425ed6b9e Move contract event handling into service 2018-04-15 20:36:21 +02:00
fsmanuel e4215557c8 Merge pull request #49 from 67P/feature/store-models-in-service
Move contributors + proposals to service
2018-04-15 18:35:10 +00:00
fsmanuel fcc4045a4e Merge branch 'master' into feature/store-models-in-service
# Conflicts:
#	app/controllers/index.js
#	tests/unit/controllers/index-test.js
2018-04-15 20:23:39 +02:00
fsmanuel 5bcce71b36 Merge pull request #50 from 67P/refactor/naming-conventions
Refactor/naming conventions
2018-04-15 18:17:47 +00:00
fsmanuel c9abec8a46 Merge pull request #47 from 67P/features/initialize-error-handling
Fail smarter with better error handling
2018-04-15 18:14:12 +00:00
bumi 62e195d186 remove fake bignumber from tests
We make everything bignumber-y now so that is no longer needed
2018-04-15 19:56:03 +02:00
fsmanuel e5f69a5e9a Remove unused computed 2018-04-15 19:09:16 +02:00
bumi e31ff492d5 merge master 2018-04-15 19:08:26 +02:00
fsmanuel 99bbcda709 Move contributors + proposals to service
With this change we have all the contributors + proposals all the time in one place and can update them via events.
2018-04-15 19:02:57 +02:00
bumi 8aa941e704 Rename recipientId to contributorId in proposals 2018-04-15 19:02:35 +02:00
bumi fdda30da67 Merge pull request #48 from 67P/revert-45-refactor/naming-conventions
Revert "Adjust for new naming conventions"
2018-04-15 16:42:36 +00:00
bumi 399ee27af9 Revert "Adjust for new naming conventions" 2018-04-15 16:35:31 +00:00
bumi d2c43b9ef1 Merge pull request #45 from 67P/refactor/naming-conventions
Adjust for new naming conventions
2018-04-15 16:24:17 +00:00
bumi 7e6c6a037d code style. use interpolation syntax 2018-04-15 18:02:52 +02:00
bumi e1f19a1832 Fail smarter with better error handling
This should give more insights in case of an error during loading data
from Ethereum and IPFS.
2018-04-15 16:45:09 +02:00
bumi 7b5cea3613 Adjust for new naming conventions 2018-04-10 18:46:54 +02:00
fsmanuel 5d875d23e2 Merge pull request #44 from 67P/fix/proposal-loading
Fix proposal loading
2018-04-10 17:48:53 +02:00
bumi e24fc6c81d Fix proposal loading
we changed the storage of proposals from an array to a mapping.
Because of this keys/ids now no longer start with zero but with 1.
2018-04-10 16:29:18 +02:00
bumi 72c6266474 Merge pull request #42 from 67P/kredits-module
Refactor contract interaction in its own module
2018-04-10 13:46:57 +00:00
bumi 4a711788f6 cleanup 2018-04-10 15:27:38 +02:00
bumi c373c901a2 Fix test to work with the bignumber depencency 2018-04-09 20:54:07 +02:00
bumi 32846194b6 Handle bignumber conversions
The kredits module always returns raw data from the contract. For uint
values these are bignumbers.
To handle those in the ember app we need to convert them to string or to
number.
2018-04-09 20:31:34 +02:00
bumi 1a5d33b1f0 Move IPFS handling in utils class 2018-04-09 19:28:49 +02:00
bumi 0e330a6529 Cleanup 2018-04-09 15:15:33 +02:00
bumi e9f0638ca2 Unify Contributor/Proposal saving 2018-04-09 15:05:13 +02:00
bumi ce8fef79dc Search proposal contributor by stringified ID
Kredits returns default web3/ethers.js values which are BigNumbers.
Internally we use Strings. We need to do this somewhere centrally
though.
2018-04-09 14:58:50 +02:00
bumi b9fa0e2d60 typo 2018-04-09 14:58:25 +02:00
bumi 41a04d6b53 Refactor IPFS hash handling
This now uses the multihashes dependency (which is an ipfs dependency)
to decode/encode the ipfs hashes.
2018-04-09 14:52:39 +02:00
fsmanuel e527099b00 Fix tests 2018-04-09 02:26:03 +02:00
fsmanuel 7e04cef964 Extract kredits module 2018-04-09 02:09:38 +02:00
bumi cb1208acaa Merge pull request #41 from 67P/refactor/cleanup-models
Cleanup controller, templates and service
2018-04-08 12:56:05 +00:00