Guest User

Untitled

a guest
Oct 17th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. {meta {:name "DReddit"
  2. :description "A set of commands to interract with DReddit"
  3. :documentation ""}
  4.  
  5. events/list-tops
  6. (let [{} properties]
  7. [ethereum/logs {:on-result [store/put {:key :tops}]}])
  8.  
  9. views/dreddit-top
  10. (let [{name :name vote :vote} properties]
  11. [view
  12. [text name]
  13. [text "Vote counts: ${vote}"])
  14.  
  15. views/preview
  16. (let [tops [store/get {:key :dreddit-tops}]]
  17. [view {:style {:flex-direction :column
  18. :align-items :flex-start}}
  19. [list {:data tops :view dreddit-top}]])
  20.  
  21. hooks/commands.dreddit-tops
  22. {:description "List top DReddit"
  23. :scope #{:personal-chats}
  24. :on-send [list-tops]
  25. :preview [preview]
  26. :short-preview [short-preview]}}
Add Comment
Please, Sign In to add comment