Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {meta {:name "DReddit"
- :description "A set of commands to interract with DReddit"
- :documentation ""}
- events/list-tops
- (let [{} properties]
- [ethereum/logs {:on-result [store/put {:key :tops}]}])
- views/dreddit-top
- (let [{name :name vote :vote} properties]
- [view
- [text name]
- [text "Vote counts: ${vote}"])
- views/preview
- (let [tops [store/get {:key :dreddit-tops}]]
- [view {:style {:flex-direction :column
- :align-items :flex-start}}
- [list {:data tops :view dreddit-top}]])
- hooks/commands.dreddit-tops
- {:description "List top DReddit"
- :scope #{:personal-chats}
- :on-send [list-tops]
- :preview [preview]
- :short-preview [short-preview]}}
Add Comment
Please, Sign In to add comment