Commit Graph

562 Commits

Author SHA1 Message Date
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
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
Teemu Patja 36acbe44ce
Use correct namespace for generated contract wrappers 2017-08-22 12:02:41 +03:00
Teemu Patja 365f8b190a Merge pull request #90 from 3esmit/address-update
updated addresses
2017-08-22 12:02:23 +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 270dd3e277 Merge pull request #89 from 3esmit/test-token
add test token
2017-08-20 21:48:02 +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 97c0314ec2 Merge pull request #88 from 3esmit/cleanup
cleanup contracts
2017-08-20 21:35:15 +03:00
Ricardo Guilherme Schmidt 0d25d2823a add test token 2017-08-20 15:33:28 -03:00
Ricardo Guilherme Schmidt 3cc0c36186 cleanup 2017-08-20 15:29:37 -03:00
Teemu Patja b3fe5072a1 Merge pull request #87 from status-im/token-reg
Add token-reg.sol to be used in web3j
2017-08-20 17:06:27 +03:00
Ricardo Guilherme Schmidt 7143d3b0c4 Add token-reg.sol to be used in web3j 2017-08-20 11:05:35 -03:00
Teemu Patja 3f5a79c223
Build contracts with leiningen
* compile .sol files and generate java with web3j as part of
  uberjar build

Related to #80
2017-08-20 13:51:10 +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
Teemu Patja abb36770c6
Add less build to :prep-tasks, update build instructions 2017-08-20 11:46:57 +03:00
Teemu Patja 1744810c8a
Allow contract build script to overwrite old files 2017-08-20 11:45:43 +03:00
Teemu Patja aa89ed11d0 Merge pull request #84 from 3esmit/web3js-abifix
Web3js abifix
2017-08-20 10:21:51 +03:00
Ricardo Guilherme Schmidt e83f7f1583 new factory address 2017-08-20 00:48:24 -03:00
Ricardo Guilherme Schmidt cd7056608d added functions to fix ABI access 2017-08-19 22:05:58 -03:00
Teemu Patja b2cd1886f6
DB changes for bounty USD value + token support
* rename balance -> balance_eth
* add tokens jsonb column
* add value_usd column
* update existing SQL
2017-08-19 22:41:41 +03:00
Teemu Patja 43ea9b91e0
Fix bug in send-transaction 2017-08-19 21:27:01 +03:00
Teemu Patja 67ca49b816
Fix uberjar build
* include all needed tasks in uberjar profile's :prep-tasks
2017-08-19 14:36:58 +03:00
Teemu Patja 7c39d6940e
Build script for solidity contracts
* added simple script that compiles .sol contracts and generates java
  code for them
2017-08-19 14:11:46 +03:00