Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {meta {:name "Collectibles 2"
- :description "Demonstration of collectible command and long long long long text here...... !@#$%^&*()__+~~``SOBAKA``"
- :documentation "This is a hell yeah created gist for Collectibles extention"}
- views/preview
- (let [{{{symbol :symbol token :token tx-hash :tx-hash} :params} :content outgoing :outgoing timestamp-str :timestamp-str} properties
- collectible-token [get-collectible-token {:symbol symbol :token token}]]
- [view {:flex-direction :column
- :align-items :flex-start}
- [status/nft-token collectible-token]
- [view {:color (if outgoing "#707caf" "#939ba1")
- :margin-top 6
- :font-size 12
- :flex-direction :row}
- [text "Sent at "]
- [text timestamp-str]]
- [status/send-status {:tx-hash tx-hash :outgoing outgoing}]])
- views/short-preview
- (let [{{{symbol :symbol} :params} :content outgoing :outgoing} properties]
- [view {:flex-direction :row
- :align-items :flex-start}
- [text (if outgoing "Sent " "Received ")]
- [text symbol]])
- hooks/commands.collectibleseses
- {:scope #{:personal-chats}
- :preview preview
- :short-preview short-preview
- :parameters [{:id :symbol
- :type :text
- :placeholder "Collectible symbol"
- :suggestions status/asset-selector}
- {:id :token
- :type :number
- :placeholder "Collectible token"
- :suggestions status/token-selector}]}}
Add Comment
Please, Sign In to add comment