Commit Graph

389 Commits

Author SHA1 Message Date
Teemu Patja 0476b8c1ea
Fault tolerance for payout confirmal
* if a payout transaction sent by repo admin from cljs does not get
  mined within 3 hours, consider it as failed and re-enable confirm
  button

Fixes: #94
2017-09-15 10:24:55 +03:00
Teemu Patja 6d6de254fd
Draft version of testing document 2017-09-14 14:49:26 +03:00
Teemu Patja c17763bf2d
Fix bug in is-bounty-issue?, update docstring 2017-09-13 11:20:11 +03:00
Teemu Patja 6522265f7d
Never show closed github issues as open bounties
* do not show a bounty issue in open bounties listing or activity feed
  items in case it was closed (manually or via PR)

Fixes: #95
2017-09-13 11:11:37 +03:00
Teemu Patja 640cf8abd6
Usage metrics view access control fix
Allow all members of status-im organization to see Usage metrics view,
instead of just Status team members.
2017-09-11 09:01:34 +03:00
Teemu Patja 56587f882b
Add info about solc and web3j to README 2017-09-07 11:30:30 +03:00
Teemu Patja 11d2c6e4ce
Workaround for smart contract issue related to payouts
If our smart contract is used as designed for payout (first commiteth
bot executes confirmTransaction() with a withdrawEverything call in
payload and then the repo owner calls confirmTransaction() with the
returned tx-id) the contract fails when executing, but confirming
succeeds. Because of this, we now look for contracts that have been
confirmed by both and that still have ETH and/or tokens, and call
executeTransaction() for those.

This needs testing.
2017-08-31 11:33:08 +03:00
Teemu Patja 5ab68f3b18
Fix issues with :confirm-payout re-frame handler 2017-08-31 11:32:45 +03:00
Teemu Patja 9885014235
Typo fix 2017-08-30 11:52:06 +03:00
Teemu Patja 667b3919c4
Handle clients with no web3 correctly
* fix issues with clients that have no wallet connected

Fixes: #92
2017-08-30 11:45:36 +03:00
Teemu Patja 05f1a711c1
Deal with both new and older mist behavior
* try to support both older and new mist for using injected web3
2017-08-29 00:40:13 +03:00
Teemu Patja 3daf6482bf
cljs-web3 related fixes, pt 2 2017-08-29 00:02:34 +03:00
Teemu Patja 071fffbe4d
Fix typed fn name 2017-08-28 23:40:02 +03:00
Teemu Patja bf8039bceb
Fixes for cljs-web3 usage 2017-08-28 23:36:35 +03:00
Teemu Patja 42aa34cfad
Use sha3 from cljs-web.core 2017-08-28 23:23:06 +03:00
Teemu Patja 912b780c92
Revert "Update cider-nrepl version"
This reverts commit 1139e01835.
2017-08-28 23:13:08 +03:00
Teemu Patja fff720ad71
Use web3 via cljs-web3
* take cljs-web3 to use and no longer rely on window/web3 injected by
  wallet
2017-08-28 23:09:57 +03:00
Teemu Patja 1139e01835
Update cider-nrepl version 2017-08-28 20:00:16 +03:00
Teemu Patja 45526810e7
Add function wrapping multisig executeTransaction
* support for calling executeTransaction for a give tx-id in a
  deployed bounty contract
* minor cleanup
2017-08-28 19:58:53 +03:00
Teemu Patja 245b9e1e2a
ClojureScript fixes for payout
* fix broken retrieval of injected web3 function
* specify gas + gasPrice for sendTransaction
* fix data value for confirmTransaction() call
* eliminate hard-coded hex-string
2017-08-28 09:56:23 +03:00
Teemu Patja 453d8a225a
Fix issue in manage bounties view
* spinner for "Confirm" button was showing in some incorrect states
2017-08-28 09:54:56 +03:00
Teemu Patja 808315209f
Add functions for read-only properties of multisig
* add is-confirmed? and get-owners for bounty contracts
2017-08-28 09:52:11 +03:00
Teemu Patja 9bb1a4c9f5
Fix bug in comment generating 2017-08-27 09:43:42 +03:00
Teemu Patja ad3e764191
Fix react warnings 2017-08-26 21:20:04 +03:00
Teemu Patja 92628d040b
Fix bug in payout confirm on backend side + cleanup
* fix parsing of confirmation transaction ID from confirmation event
* remove unused func, improve logging, general cleanup
2017-08-26 14:14:27 +03:00
Teemu Patja a1be68122c
Improve scheduler error handling
* wrap each fn call run-*-tasks in try/catch to avoid losing stack
  trace
2017-08-26 12:11:15 +03:00
Teemu Patja 002946c1fd
Fix possible crash in multisig-wallet/token-balances
* ignore tokens existing in bounty contract if they are not in our
  tokenreg, avoids crash silently leading to token balances not
  gettings saved
2017-08-25 23:59:30 +03:00
Teemu Patja bb5dc7b85a
Minor fix to github comment 2017-08-25 23:07:28 +03:00
Teemu Patja 209ef469a6
Make contract address a link to etherscan
* make contract address a link to etherscan in github comment markdown

Fixes: #91
2017-08-25 23:04:48 +03:00
Teemu Patja 342cefff56
Improve readability of :confirm-payout handler
* clarify use of "magic" hex-string with comment and variable name in
  :confirm-payout handler
2017-08-24 18:31:44 +03:00
Teemu Patja 122f76cffe
Remove unused module 2017-08-24 18:08:34 +03:00
Teemu Patja e1e0be115c
Include USD value for open bounties view items 2017-08-24 17:53:07 +03:00
Teemu Patja 92b51251c0
Show 2 decimals for tokens on comment image 2017-08-24 14:17:37 +03:00
Teemu Patja a091d04bb2
Fix bounties view rendering
* correct typoed key names causing empty values
2017-08-23 23:59:30 +03:00
Teemu Patja 584f742de9
Show tokens, ETH and USD value on UI
* make activity feed items and open bounties view show badges for ETH
  and tokems and total USD in item description
* make top hunters work based on total USD value paid out in bounties
* upgrade lein-cljsbuild
2017-08-23 23:48:59 +03:00
Teemu Patja eb9b4d18b8
Include value_usd and tokens in sql views 2017-08-23 22:12:55 +03:00
Teemu Patja 2aea7fe742
Test code for PNG rendering 2017-08-23 15:14:18 +03:00
Teemu Patja 2280c34ee8
Improve Github comment 2017-08-23 15:12:53 +03:00
Teemu Patja 881e79477f
Utility functions for transferring ETH and tokens
* implemented some util functions to transfer ETH and ERC20 tokens for
  aiding testing
* add and improve doctrings
2017-08-23 15:11:46 +03:00
Teemu Patja aeb5d08657
Be more explicit about testnet ETH + tokens in comment 2017-08-22 23:34:08 +03:00
Teemu Patja d6aae3fb5e
Render token balances to Github comment image 2017-08-22 23:15:16 +03:00
Teemu Patja 5b639e1f20
Include token balances in Github issue comment 2017-08-22 22:16:45 +03:00
Teemu Patja 31d8a07b97
Keep track of USD value update datetime in DB 2017-08-22 22:15:40 +03:00
Teemu Patja 9cfd27a0b6
Periodicically update bounty total USD values to DB
* peridic updating of total USD value for open bounties
* support 1 and 10 minute interval tasks in scheduler
2017-08-22 20:31:21 +03:00
Teemu Patja e995769e90
Periodic updating of token balances
* periodically ensure bounty contract internal balances are up to date
* update token balances to DB change detected
2017-08-22 20:09:52 +03:00
Teemu Patja e4124d6bc2
Fix crash in token-balances, fix update-balances
* fix null pointer crash in token-balances
* fix bug in periodic update-balances
2017-08-22 19:45:00 +03:00
Teemu Patja f8d00196d6
DB storage for token balances
* store token bounties to DB when changed
* added some TODOs
2017-08-22 16:45:10 +03:00
Teemu Patja de07f873ab
Get combined balances + total USD value for a bounty
* add function for getting balance of tokens and ETH in a bounty
  contract and total USD value. This data will be kept in sync with
  the DB
* change default gas price 2 -> 20 gwei (still configurable)
2017-08-22 14:49:37 +03:00
Teemu Patja f1cf4c7375
Function for getting all token balances in a multisig 2017-08-22 14:29:52 +03:00
Teemu Patja c6f6afa461
Unit test for deploying multisig
* clojure test for deploying multisig contract to blockchain
2017-08-22 13:53:05 +03:00