Commit Graph

124 Commits

Author SHA1 Message Date
fsmanuel 21f187cac2 Replace missed profileHash with ipfsHash 2018-04-08 00:44:25 +02: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
bumi 6354b03717 cleanup 2018-04-03 20:32:46 +02:00
bumi 5d6b4a5255 fix linting errors 2018-04-03 19:19:11 +02:00
bumi 3f0b1ccbcd Use ethers.js instead of the old web3
the web3 we are using is old and everything will change with web3 1.0
which is currently in beta for ages.
ethers.js seems to be a bit more lightweight and implements pretty much
the same API so let's give it a try.
2018-04-03 18:35:29 +02:00
fsmanuel f00ecfd9ab Merge pull request #28 from 67P/refactor/proposal-ipfs-hash
Handle new IPFS hashes in proposal
2018-04-02 21:00:58 +02:00
fsmanuel 73d7ed52dd Refactor contributor 2018-04-02 19:08:29 +02:00
fsmanuel 6a31b0d579 Rename contributor.kredits to .balance 2018-04-02 19:07:42 +02:00
bumi 869c4c0ae9 Handle new IPFS hashes in proposal 2018-04-02 18:19:22 +02:00
bumi 4be696ea62 Fix contract events handling 2018-04-02 18:18:34 +02:00
bumi 83a0d56314 Update ipfs-api dependency 2018-04-02 18:17:50 +02:00
fsmanuel f12740dfa8 Update kredits service 2018-04-01 03:20:16 +02:00
basti 576e2741a9 More contract-related adjustments 2017-08-14 15:31:58 +02:00
basti 72cf4b495e Adjust for new contract wrapper (WIP) 2017-08-12 13:59:18 +02:00
basti 22affa7663 Edit account-unlock message/hint 2017-06-14 07:43:38 +02:00
galfert b125d941ba Ask user to unlock their account 2017-06-14 01:55:39 +02:00
basti 993cd85e4a Improve waiting for window.onload
In case the window load event was fired before getting to the Ember
initializer, it would pause app loading indefinitely. This makes sure
that app loading is only paused, if there's still an event to wait for.
2017-06-13 14:27:09 +02:00
galfert e51586a78c Pause app boot until window load event fired
Refs #17

Allows the user provided Web3 instance to be inserted before we
try to use it.
2017-06-13 13:35:44 +02:00
basti 918ae5b2d1 Fix property dep 2017-06-08 17:06:19 +02:00
basti 6263254a1b Specify radix parameter for parsing amount 2017-06-08 16:53:40 +02:00
basti 99e921c302 Throw error when file couldn't be fetched from IPFS 2017-06-08 16:42:16 +02:00
basti 7f2f781a77 Don't try to save proposal when invalid 2017-06-08 16:41:53 +02:00
basti 3571cc633e Improve computed-property dependency 2017-06-08 16:41:03 +02:00
basti 2011636173 Add contribution details as title 2017-06-07 13:01:35 +02:00
basti cbb15f4d6f Fix mobile layout, add contribution kind to props 2017-06-07 12:46:03 +02:00
basti 33072900e9 Use contributor's display name for proposal list 2017-06-07 12:45:30 +02:00
basti c98a50cd42 Fix mobile layout
Unfortunately also breaks the animation when opening contributor
details for now. Couldn't get it to work again.
2017-06-07 11:11:01 +02:00
basti 1f41dbcae5 Load contribution details from IPFS 2017-06-07 10:35:57 +02:00
basti a918719b8f Decrease overall UI size a bit 2017-06-07 10:35:36 +02:00
basti 7b91e64af4 Create contribution IPFS objects, attach to proposals 2017-06-06 21:27:05 +02:00
basti 0afbeea01b Use newly generated UUID as ID for new contributor 2017-06-06 19:57:24 +02:00
basti 0510cf2389 Set contributor kind from IPFS profile 2017-06-06 19:56:55 +02:00
basti c893f91ce2 Improve logging 2017-06-06 19:56:40 +02:00
basti eced2f423f Minimal validation for amount 2017-06-06 19:56:15 +02:00
basti 6eeb505701 Use correct property for dep 2017-06-06 19:55:59 +02:00
basti 4cb3f5d8ba Use profile data from IPFS for contributor models 2017-06-06 19:05:42 +02:00