mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-28 09:25:44 +00:00
b13864d052
move utils.ethereum.tokens to ethereum.tokens move utils.ethereum.abi-spec to ethereum.abi-spec move utils.ethereum.core to ethereum.core move utils.ethereum.eip165 to ethereum.eip165 move utils.ethereum.eip55 to ethereum.eip55 move utils.ethereum.eip681 to ethereum.eip681 move utils.ethereum.ens to ethereum.ens move utils.ethereum.erc721 to ethereum.erc721 move utils.ethereum.mnemonics to ethereum.mnemonics move utils.ethereum.resolver to ethereum.resolver move utils.ethereum.macros to ethereum.macros Signed-off-by: yenda <eric@status.im>
27 lines
789 B
Clojure
27 lines
789 B
Clojure
(ns status-im.ethereum.resolver
|
|
(:refer-clojure :exclude [name])
|
|
(:require [status-im.ethereum.ens :as ens]))
|
|
|
|
(def default-hash "0x0000000000000000000000000000000000000000000000000000000000000000")
|
|
(defn contenthash [registry ens-name cb]
|
|
(ens/resolver registry
|
|
ens-name
|
|
#(ens/contenthash % ens-name cb)))
|
|
|
|
(defn content [registry ens-name cb]
|
|
(ens/resolver registry
|
|
ens-name
|
|
#(ens/content % ens-name cb)))
|
|
|
|
(defn name [registry ens-name cb]
|
|
(ens/resolver registry
|
|
ens-name
|
|
#(ens/name % ens-name cb)))
|
|
|
|
(defn pubkey
|
|
[registry ens-name cb]
|
|
{:pre [(ens/is-valid-eth-name? ens-name)]}
|
|
(ens/resolver registry
|
|
ens-name
|
|
#(ens/pubkey % ens-name cb)))
|