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
b7316e15a2
Align *Proposal to *Contributor methods
2018-04-08 02:01:10 +02:00
fsmanuel
576313a7b0
Update according to suggestions
2018-04-08 01:25:59 +02: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
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
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
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
bumi
869c4c0ae9
Handle new IPFS hashes in proposal
2018-04-02 18:19:22 +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
1f41dbcae5
Load contribution details from IPFS
2017-06-07 10:35:57 +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
4cb3f5d8ba
Use profile data from IPFS for contributor models
2017-06-06 19:05:42 +02:00
basti
33e81a7668
Store proper contributor profile in IPFS
2017-06-05 21:58:46 +02:00
bumi
f8b75cca61
Manually set networkId
...
By default kredits-contracts gets the networkId from the web3 object.
This causes some random JSON RPC errors when using MetaMask:
https://github.com/MetaMask/metamask-plugin/issues/1538
This set the default networkId to 17 which is our custom private
network. For development purposes the networkId can also be set
dynamically through the config:networkId local storage entry.
2017-06-04 19:28:14 +02:00
bumi
32e1bbd617
no more evil while loop
2017-06-04 19:27:59 +02:00
basti
1de26004ab
Use correct properties as dependency
2017-06-04 17:09:21 +02:00
galfert
f875cd7b91
Choose contributors from list for new proposals
2017-05-20 02:37:11 +02:00
basti
2b260bccd5
Merge pull request #10 from 67P/feature/locally-configurable-provider
...
Add support to locally conifgure web3 provider
2017-05-14 15:05:31 +02:00
bumi
7299394809
Add support to locally conifgure web3 provider
...
If no web3 is provided from the browser we check if a
config:web3ProviderUrl item is set in localstorage.
If yes we connect to that provider otherwise use the default config.
Helpful for working simultanously with different chains and providers.
2017-05-14 12:37:47 +02:00
basti
0b7afc0dd5
Update kredits, be expressive about contract options
2017-05-14 01:09:53 +02:00
basti
f57e90941c
Merge pull request #9 from 67P/configurable-provider
...
Make web3 provider URL configurable; default to infura
2017-05-13 17:06:33 +02:00
bumi
859cca3820
Merge
2017-05-12 20:04:28 +02:00
bumi
ba1cd1cd49
Make web3 provider URL configurable; default to infura
...
This uses infura (kovan network) as the default web3 provider URL
2017-05-12 17:17:20 +02:00
bumi
3be14b945a
Use kredits-contracts from npm
...
This also configures the npm scripts to work with locally deployed
contracts
2017-05-08 13:00:33 +02:00
bumi
675dff7314
Add support for new splitted Token contract
2017-05-05 20:25:57 +02:00
galfert
642015700e
Don't resolve promises after rejecting them
2017-05-03 11:53:21 +02:00
galfert
969ef8d1ed
Add proposal form
...
Closes #6
Form can be prefilled using query params on the route. The params are
`recipient`, `amount`, `url` and `ipfsHash`.
2017-05-03 11:52:42 +02:00
basti
2e61b4c8ad
Add checkbox for isCore
2017-02-19 11:44:24 +08:00
basti
0a2f44cec8
Add metadata row to contributor list
...
Contains links to Ethereum address and IPFS content.
2017-02-19 10:30:56 +08:00
basti
e7fa188797
Store contributor profile data in IPFS
...
This stores the GitHub username and UID in IPFS, and stores the
resulting IPFS hash in the contract. Now we can remove the GitHub
profile data from the contract entirely.
2017-02-18 18:44:14 +08:00