Guest User

Untitled

a guest
Oct 19th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. {meta {:name "Collectibles 2"
  2. :description "Demonstration of collectible command and long long long long text here...... !@#$%^&*()__+~~``SOBAKA``"
  3. :documentation "This is a hell yeah created gist for Collectibles extention"}
  4.  
  5. views/preview
  6. (let [{{{symbol :symbol token :token tx-hash :tx-hash} :params} :content outgoing :outgoing timestamp-str :timestamp-str} properties
  7. collectible-token [get-collectible-token {:symbol symbol :token token}]]
  8. [view {:flex-direction :column
  9. :align-items :flex-start}
  10. [status/nft-token collectible-token]
  11. [view {:color (if outgoing "#707caf" "#939ba1")
  12. :margin-top 6
  13. :font-size 12
  14. :flex-direction :row}
  15. [text "Sent at "]
  16. [text timestamp-str]]
  17. [status/send-status {:tx-hash tx-hash :outgoing outgoing}]])
  18.  
  19. views/short-preview
  20. (let [{{{symbol :symbol} :params} :content outgoing :outgoing} properties]
  21. [view {:flex-direction :row
  22. :align-items :flex-start}
  23. [text (if outgoing "Sent " "Received ")]
  24. [text symbol]])
  25.  
  26. hooks/commands.collectibleseses
  27. {:scope #{:personal-chats}
  28. :preview preview
  29. :short-preview short-preview
  30. :parameters [{:id :symbol
  31. :type :text
  32. :placeholder "Collectible symbol"
  33. :suggestions status/asset-selector}
  34. {:id :token
  35. :type :number
  36. :placeholder "Collectible token"
  37. :suggestions status/token-selector}]}}
Add Comment
Please, Sign In to add comment