From 3db9266a32b8ed4d26237b9d9d573d4375473aef Mon Sep 17 00:00:00 2001 From: Martin Klepsch Date: Thu, 22 Feb 2018 10:01:58 +0100 Subject: [PATCH] stash some development code --- src/clj/commiteth/bounties.clj | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/clj/commiteth/bounties.clj b/src/clj/commiteth/bounties.clj index 827f1c5..c77a7d2 100644 --- a/src/clj/commiteth/bounties.clj +++ b/src/clj/commiteth/bounties.clj @@ -118,3 +118,31 @@ (= 1 (:claim_count bounty)) :claimed (seq (:tokens bounty)) :funded (: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) ] + + )