fsmanuel
5bcce71b36
Merge pull request #50 from 67P/refactor/naming-conventions
...
Refactor/naming conventions
2018-04-15 18:17:47 +00:00
bumi
e31ff492d5
merge master
2018-04-15 19:08:26 +02:00
bumi
8aa941e704
Rename recipientId to contributorId in proposals
2018-04-15 19:02:35 +02:00
bumi
399ee27af9
Revert "Adjust for new naming conventions"
2018-04-15 16:35:31 +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
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
4a711788f6
cleanup
2018-04-10 15:27:38 +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
fsmanuel
f985ce6402
So sad that I can not force push!
2018-04-08 14:41:08 +02:00
fsmanuel
f54a36f240
Use getProposalById instead of buildModel
2018-04-08 14:33:38 +02:00
bumi
4182f0993c
Merge pull request #39 from 67P/refactor/contributor-management
...
Use contributors contract to add new contributors
2018-04-08 12:12:52 +00:00
fsmanuel
28f7466595
Cleanup controller, templates and service
2018-04-08 14:06:16 +02:00
bumi
5390c5cea8
Use contributors contract to add new contributors
...
related: https://github.com/67P/truffle-kredits/pull/17
2018-04-08 13:17:35 +02:00
fsmanuel
31a1f21dcd
Fix linting
2018-04-08 02:13:07 +02:00
fsmanuel
b7316e15a2
Align *Proposal to *Contributor methods
2018-04-08 02:01:10 +02:00
fsmanuel
ad92ffa447
Extract serializer
2018-04-08 02:01:10 +02:00
fsmanuel
45044c0f61
Refactor controller and route
...
I’m not sure how the queryParams are used so I removed them. I’m happy to readd them.
2018-04-08 02:01:10 +02:00
fsmanuel
cc7c47cbab
Refactor proposal form
2018-04-08 02:01:02 +02:00
fsmanuel
27f4006f05
Merge pull request #37 from 67P/refactor/get-contributor-by-id
...
Refactor getContributorById to be move generic
2018-04-08 01:32:46 +02:00
fsmanuel
576313a7b0
Update according to suggestions
2018-04-08 01:25:59 +02:00
bumi
13c3feaa69
Merge pull request #36 from 67P/fix/contributor-ipfshash
...
Replace missed profileHash with ipfsHash
2018-04-07 23:09:03 +00:00
fsmanuel
a0dd8b925b
Refactor getContributorById to be move generic
...
We can use this generic functions also for the upcomig proposal refactoring.
2018-04-08 00:54:42 +02:00
fsmanuel
21f187cac2
Replace missed profileHash with ipfsHash
2018-04-08 00:44:25 +02:00
fsmanuel
d8951caddb
Block in application route if accountNeedsUnlock
...
The index route never gets invoked if you reload on the proposal page. That change makes sure we always initialize `ethProvider`.
2018-04-07 22:43:22 +00:00
fsmanuel
206c657b98
Merge pull request #34 from 67P/features/balance-from-contributors
...
Use getContributorById call to get contributor data
2018-04-07 22:22:35 +02:00
fsmanuel
6e262537a4
Extract multihash functions
2018-04-07 18:47:16 +00:00
bumi
0587559939
Use getContributorById call to get contributor data
...
This new call also returns the balance of the contributor so we don't
have to make an extra call to the token contract.
2018-04-07 20:33:41 +02:00
fsmanuel
939baec1a8
Add alert message after saved
2018-04-07 17:22:33 +00:00
fsmanuel
429f670c12
Better assign
2018-04-07 17:22:33 +00:00
fsmanuel
b21d2ad864
Extract serializer logic into lib
...
To use the same code in hubot I extracted the serializer logic into lib to later move it into `truffle-kredits` when we are done with all other common logic.
2018-04-07 17:22:33 +00:00
fsmanuel
8f841522a3
Refactor add-contributor component to DDAU
2018-04-07 17:22:33 +00:00
bumi
499b22af15
Fix JS/Ember style
2018-04-06 17:40:45 +02:00
bumi
f992fb10bd
Fix JS style
2018-04-06 17:00:25 +02:00
bumi
603224e906
Use ember style empty promise
2018-04-06 16:53:01 +02:00
bumi
bbea07b2a7
Add account badge
...
This gives easy access to test if the "user/visitor" has an account, is
a contributor and if she is core.
This is used to display some account information.
2018-04-06 16:45:55 +02:00
bumi
e2d02d357c
linting
2018-04-04 14:15:07 +02:00
bumi
0812ff3467
Add comment about ethProvider loading.
...
It is loaded in the route and thus available for the rest of the
application.
2018-04-04 14:02:27 +02:00
bumi
6dafc26deb
Refactor web3 initialization
...
This changes how we wait for web3 and accounts to be available and
renames web3Provider to ethProvider as we could be able to swap the
different providers (ethers.js vs. web3)
2018-04-04 13:56:41 +02:00
bumi
a418ddbe52
fix tests
2018-04-04 12:49:41 +02:00