132 Commits

Author SHA1 Message Date
basti a7dd058d21 Remove obsolete parens 2019-10-18 09:52:38 +02:00
basti 1deecafee7 Handle pending changes for contributions
This adds the pending tx data to pending contributions (after adding or
vetoing, until the tx is mined). It also disables the veto button while
pending.
2019-09-20 15:43:34 +02:00
basti 8be18fc27c Merge pull request #155 from 67P/feature/resubmit_vetoed_contribution
Re-submit vetoed contributions
2019-09-10 16:53:36 +02:00
basti 89391c1543 Update details of pending contribution when mined
Fetches complete details of new contributions and replaces any potential
pending, incomplete objects in the collection.
2019-09-10 15:21:50 +02:00
basti 05e3118a0c Re-submit vetoed contributions 2019-09-10 11:47:07 +02:00
basti 5a5051bac6 Check required network before using user provider
closes #82
2019-09-04 18:51:49 +02:00
basti 304c0ac8d0 Only use user wallet if it's already open/connected 2019-09-04 18:29:25 +02:00
basti cae13ed662 Sign in button to connect account 2019-09-04 18:22:48 +02:00
galfert 413bcddb1e Wire up signup via Github 2019-07-26 03:38:18 +02:00
galfert 636ac30622 Use ember-auto-import instead of ember-browserify 2019-07-15 17:11:41 +02:00
basti 1c1f772ff5 Update contributor profiles
* Adds a new page for updating profiles
* Refactors the add-contributor component to allow for updating
  existing contributors
* Adds input labels to the contributor form and improves placeholders
* Adds event handlers for all contract contributor changes and uses them
  for updating the UI

refs #122
2019-05-29 16:14:11 +02:00
basti 58bd729acb Formatting 2019-05-29 16:12:48 +02:00
basti 16ee3b6b6b Move contributor-creation form for separate view
closes #74
2019-05-23 14:17:33 +02:00
basti af9951ca5a Add newly created contributions to collection 2019-05-23 12:48:18 +02:00
basti cec87f6caf Dat gas issue 2019-05-23 10:22:37 +02:00
basti 22a9786168 Add contribution basics 2019-05-23 09:46:09 +02:00
basti 7083da367d Remove vetoed contributions from confirmed list 2019-05-10 13:49:55 +02:00
galfert 9386c30d09 Update toplist balance when contribution is vetoed
Co-Authored-By: skddc <sebastian@kip.pe>
2019-05-08 12:15:51 +02:00
basti 6638691c9f Remove vetoed amounts from unconfirmed balances 2019-05-06 18:46:59 +02:00
basti ef45d55521 Fix missing contributors in toplist
Adds contributors without unconfirmed contributions to the
kreditsByContributor collection.

fixes #114
2019-05-06 14:44:42 +01:00
basti cf77f20d41 Merge branch 'master' into feature/111-unconfirmed_balances 2019-05-01 19:56:43 +01:00
basti 67ee2d9a74 Merge pull request #113 from 67P/feature/98-veto_unconfirmed_contributions
Veto contributions
2019-05-01 19:43:28 +01:00
basti 48e5ddbc02 Merge pull request #108 from 67P/feature/add_contributor
Fix/update adding contributors
2019-04-29 12:44:15 +01:00
basti e1737392a7 Mark contributions as vetoed on incoming event 2019-04-28 15:26:26 +01:00
basti 00b7b380b9 Fix veto tx failing
Still have to set the gas limit for most functions in order for them to
work. :/
2019-04-28 15:06:28 +01:00
basti 9821c8b2ea Veto contributions 2019-04-28 15:05:56 +01:00
basti 109ffd2898 Fix contributor details view in toplist 2019-04-28 11:58:58 +01:00
basti 185d7c58c2 Finish group-by util
Move function to util, add tests.
2019-04-27 18:41:26 +01:00
basti 283ec1d48a Add kreditsByContributor collection
Lists contributors along with their confirmed, unconfirmed, and total
kredits amounts.
2019-04-27 17:35:05 +01:00
basti f32a34a702 Improve code comment 2019-04-27 17:34:04 +01:00
basti afa09f4b8f Move computed collections to kredits service
They should be available from any place with access to the service.
2019-04-27 17:33:25 +01:00
bumi 2a7ec1073f List 200 contribtuions per page
Kicking the can a bit further down the road...
Currently we do not have any pagination and we got already more
contributions than the default per page setting.
2019-04-25 23:56:18 +02:00
basti fa95376fda WIP: Fix/update adding contributors 2019-04-25 13:24:36 +01:00
bumi de937aceee Shorter JS syntax 2019-04-24 09:48:24 +02:00
bumi d1791cadfe Display contribution balances not token balances
We want to display the contribution balances (kredits earned) of the
contributors not the token balances.
2019-04-19 18:16:02 +02:00
bumi 562a8d159b Cleanup 2019-04-19 14:54:18 +02:00
bumi 2aae2a8f90 Fix kredits balance handling
Kredits are stored on the Token contract as uint256 / bignumbers with 18
decimal points. Just like Ether and required by the ERC20 standard.
So we need to work with bignumbers and format a bignumber value here.
2019-04-19 11:37:18 +02:00
bumi da608a0012 Do not rely on web3 injection with new ethereum provider standard
when window.ethereum is available web3 is likely not available as the
browser uses the new provider standard.
So we either user the window.ethereum as provider or the
web3.currentProvider as legacy option.
2019-04-09 22:37:48 +02:00
basti aa28a14d04 Switch to contribution token instead of proposals
No vetos yet, and only for collections (not creation).

closes #20
2019-04-09 12:55:44 +02:00
bumi f0b75d96db No bignumber anymore
as numbers are uint32 in the contract so no bignumber in JS anymore
2019-04-05 12:31:21 +02:00
basti 1f8fa367a5 Support new Metamask/Web3 privacy mode
closes #87
2019-04-04 12:13:39 +02:00
basti 7da7de1edc Make some kredits params configurable 2019-04-02 17:56:27 +02:00
bumi b75ac5c8b9 Update kredits-contracts and ethers.js
This uses the new ethers.js 4.x API which is required by the new
kredits-contracts.
Also Operator is now Proposal in the new kredits-contracts wrapper
2019-03-29 19:54:45 +01:00
galfert 1fb20b1d08 Fix linting errors 2019-03-27 18:19:25 +01:00
bumi 804060ad34 Pass ETH signer only if it can actually sign
We have seen an "no accounts" invalid operation getAddress when trying
to call a contract function in the init calls.
It seems ethers has a problem with a signer that does not have any
accounts - even though we don't try to sign an actual transaction and
only read data from the contract.

This change only passes the signer if we have an unlocked web3 provider
(metamask).
2018-06-14 15:00:43 +02:00
basti a0ee2f7bb8 Use our new IPFS node 2018-06-07 13:32:43 +02:00
fsmanuel acd1ce28f4 Use .init() instead of static .setup() 2018-04-21 11:58:17 +02:00
fsmanuel 8fed06b494 Rename initEthProvider to getEthProvider 2018-04-21 11:15:13 +02:00
fsmanuel 75650c19ab Cleanup kredits service 2018-04-21 11:05:02 +02:00
bumi 31e27865bb Use kredits-contracts from npm 2018-04-18 19:26:35 +02:00