From 3e4a76175ca5b10770dbced9b8dcb072134f13f4 Mon Sep 17 00:00:00 2001 From: Vitaliy Vlasov Date: Thu, 15 Feb 2018 18:43:39 +0200 Subject: [PATCH] Remove unused fns --- src/clj/commiteth/eth/multisig_wallet.clj | 24 ----------------------- 1 file changed, 24 deletions(-) diff --git a/src/clj/commiteth/eth/multisig_wallet.clj b/src/clj/commiteth/eth/multisig_wallet.clj index f5393ab..f4b7bed 100644 --- a/src/clj/commiteth/eth/multisig_wallet.clj +++ b/src/clj/commiteth/eth/multisig_wallet.clj @@ -191,30 +191,6 @@ [tla (token-balance bounty-addr tla)]))) addrs))) {}))) -(defn transfer-tokens - "Transfer mount of given ERC20 token from from-addr to - to-addr. Connected geth needs to have keys for the account and - passphrase needs to be supplied. Returns transaction ID." - [from-addr from-passphrase token to-addr amount] - (let [token-addr (get-token-address token)] - (eth/execute-using-addr from-addr - from-passphrase - token-addr - (method-ids :transfer) - to-addr - amount))) - -(defn get-owners - "Return vector of multisig owner addresses." - [bounty-addr] - (let [bounty-contract (load-bounty-contract bounty-addr) - owner-addresses (-> bounty-contract - (.getOwners) - .get)] - (if owner-addresses - (mapv #(.toString %) (.getValue owner-addresses)) - []))) - (defn uint256 [x] (org.web3j.abi.datatypes.generated.Uint256. x))