355 Commits

Author SHA1 Message Date
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
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
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
9cc524c432
Allow token-data reloading in REPL, refactoring
* expose update-data in eth.token-data
* eliminate code duplication in multisig-wallet
* add compiled contracts to .gitignore
* minor refactoring + cleanup
2017-08-22 12:02:41 +03:00
Ricardo Guilherme Schmidt
03271b6e17 updated addresses 2017-08-22 00:30:33 -03:00
Teemu Patja
c9f7013b66
Ignore empty records in token registry
* ignore records with empty TLA when reading tokenreg data
2017-08-21 10:24:14 +03:00
Teemu Patja
a2a569f980
More token support changes
* prepare scheduler for updating bounty balances
* fix retrieving of created multisig address
* retrieve token info by address
* fix method-id for watch(address)
2017-08-21 00:30:49 +03:00
Teemu Patja
5f6ad85011
TokenReg clojure support improvements
* allow loading of parity tokenreg contract data from any address,
  including our own test instance
* use tokenreg data from config.edn for testnet only when availaned,
  otherwise from our smart contract on rinkeby
* clean up + refactoring
* remove generated java wrapper for parity tokenreg contract
2017-08-20 22:47:46 +03:00
Teemu Patja
b00d30e370
ERC20 related smart contract call clj functions
* functions for querying ERC20 token balance from bounty contract and
  from token contract
* fix several bugs
* web3j related shared code to own module
2017-08-20 21:40:34 +03:00
Teemu Patja
6acc1bfb96
Mount component for holding tokenreg data 2017-08-20 12:22:08 +03:00
Teemu Patja
9c71e37e2a
Make factory contract address configurable 2017-08-20 11:54:11 +03:00
Teemu Patja
c52c10e555
Function for finding created multisig address from tx receipt 2017-08-20 11:48:01 +03:00
Ricardo Guilherme Schmidt
e83f7f1583 new factory address 2017-08-20 00:48:24 -03:00
Teemu Patja
43ea9b91e0
Fix bug in send-transaction 2017-08-19 21:27:01 +03:00
Teemu Patja
87effb5f6c
eth.core improvements
* add conversion func for (big)int -> hex string
* use integer instead of hex string for gas-price
2017-08-19 12:52:27 +03:00
Teemu Patja
c647e4afd4
Read data from parity token registry + fix build
* read data from parity's mainnet token registry contract to a clojure
  map
2017-08-19 12:52:27 +03:00
Teemu Patja
815544ec12
Fix compile error 2017-08-18 15:13:28 +03:00
Teemu Patja
350657a488
Remove duplication
* refactor duplication out of map values
2017-08-17 18:30:24 +03:00
Teemu Patja
7dde94ef65
Fix compile errors
* fix cyclic dependency issue
* fix several compile errors
2017-08-17 17:38:57 +03:00
Teemu Patja
6d7f47df4b
Replace hard-coded hex strings with util fn calls, refactoring
* replace hard-coded hex-strings with
* refactor some clojure code
2017-08-17 16:37:04 +03:00
Ricardo Guilherme Schmidt
ee5823a120 owners array getter, better custom tokenlist, interface to new contract 2017-08-17 10:06:14 -03:00
Teemu Patja
902129d639
Utility function for computing topic-id
* added utility function for computing topic ID hex-string from event signature
2017-08-17 14:52:38 +03:00
Teemu Patja
074f510aa5
Un-hardcode another hex method ID 2017-08-17 13:32:59 +03:00
Teemu Patja
c0fa786225
Remove unused function 2017-08-17 13:19:01 +03:00
Teemu Patja
8599b67dd9
Eliminate need for hard-coded hex method IDs
* utility function for computing method-id hex string from method
  signature
* use util function in most places (TODO: find out missing hex
  method-id signatures)
2017-08-17 13:11:17 +03:00
Teemu Patja
cc36b5bb02
Update dependencies + minor refactoring
* update all dependency libraries to latest
* use ring.util.http-response instead of ring.util.response everywhere
2017-08-17 11:42:08 +03:00
Teemu Patja
2bb7790768
Github comment improvements
* add missing "ETH" to github comment
* use 6 decimals instead of 8 for github comment + image
2017-08-14 13:18:33 +03:00
Teemu Patja
209698c170
Get USD value for token-value map
* get current USD value for an arbirary size token-value map
2017-08-04 12:16:13 +03:00
Teemu Patja
f379da4924
Support for getting token USD value
* utility function for getting current USD value of a crypto token
  from cryptonator API
2017-08-04 11:50:51 +03:00
Ricardo Guilherme Schmidt
24e3ae84f1 added to clj 2017-08-03 04:50:22 -03:00
Ricardo Guilherme Schmidt
a5a4bec9ef changed function signatures in commiteth 2017-08-02 00:11:12 -03:00
Ricardo Guilherme Schmidt
a24170baed erc20-enhanced-wallet 2017-07-31 17:34:17 -03:00
Teemu Patja
d435b0b723
Show unmined pending payouts as disabled on UI
Fixes: #70
2017-06-13 19:26:48 +03:00
Teemu Patja
4061f0c5b3
Keep bounty issue titles up-to-date with github
* update changed bounty issue titles at startup
* update changed issue title in issue edited webhook handler

Fixes: #67
2017-06-13 10:26:22 +03:00
Teemu Patja
5c004bbb47
Fix bug in configurable gas price 2017-06-07 16:07:22 +03:00
Ricardo Guilherme Schmidt
d30f9f9f01 hardcode gas value at 524288 gas 2017-06-06 18:37:17 -03:00
Ricardo Guilherme Schmidt
57ce1831c8 fix compile error 2017-06-06 17:28:53 -03:00
Ricardo Guilherme Schmidt
fc3659e998 remove 1 wei from confirm 2017-06-06 16:13:35 -03:00
Ricardo Guilherme Schmidt
1daa5c342d fixes confirm bug https://github.com/status-im/commiteth/issues/61 2017-06-06 16:13:09 -03:00