stash some development code

This commit is contained in:
Martin Klepsch 2018-02-22 10:01:58 +01:00 committed by Tetiana Churikova
parent f654e0452f
commit 3db9266a32
1 changed files with 28 additions and 0 deletions

View File

@ -118,3 +118,31 @@
(= 1 (:claim_count bounty)) :claimed (= 1 (:claim_count bounty)) :claimed
(seq (:tokens bounty)) :funded (seq (:tokens bounty)) :funded
(:contract_address bounty) :opened))) (:contract_address bounty) :opened)))
(comment
(clojure.pprint/pprint
(bounties/get-bounty "martinklepsch" "RepoSOB" 28))
;; STATES
;; - tx submitted
;; - waiting for contract to be mined
;; - waiting for confirmation
;; - confirmation received, etc.
(clojure.pprint/pprint
(bounties/closed-bounties))
(clojure.pprint/pprint
(count (bounties/owner-bounties 97496)))
(clojure.pprint/pprint
(frequencies (map bounty-state (bounties/owner-bounties 97496))))
(clojure.pprint/pprint
(remove #(let [s (bounty-state %)]
(#{:paid :funded} s))
(bounties/owner-bounties 97496)))
[:opened :funded :claimed (:claimed_multiple) ]
)