Skip to content

Commit

Permalink
Use icons from mempool (#347)
Browse files Browse the repository at this point in the history
* change script to get icons

* change icons to data:image/png;base64 from blockstream registry

* prettier

* use icons from mempool

* fetch mempool supported hashes from github

* prettier

* Removes:
  - scripts/pull-asset-registry.js
  - src/application/constants/blockstream_asset_hash.json
  - src/application/constants/lightnite_asset_hash.json
  - public/assets/images/liquid-assets

Implements new asset icon logic:
  - serve icon from https://liquid.network/api/v1/asset/<hash>/icon
  - on error change img src to /assets/images/question-mark.svg
  - use mainnet hash asset when dealing with featured assets on different network

Featured assets:
  - lbtc
  - lcad
  - usdt

* featured asset icons are now served locally
  • Loading branch information
bordalix authored May 9, 2022
1 parent 72636f4 commit f3e6772
Show file tree
Hide file tree
Showing 19 changed files with 57 additions and 406 deletions.
1 change: 0 additions & 1 deletion public/assets/images/liquid-assets/blockstream-jade.svg

This file was deleted.

Binary file removed public/assets/images/liquid-assets/blockstream.png
Binary file not shown.
Binary file added public/assets/images/liquid-assets/lbtc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/images/liquid-assets/lcad.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/assets/images/liquid-assets/lightnite.png
Binary file not shown.
1 change: 0 additions & 1 deletion public/assets/images/liquid-assets/liquid-btc.svg

This file was deleted.

Binary file removed public/assets/images/liquid-assets/liquid-cad.png
Binary file not shown.
22 changes: 0 additions & 22 deletions public/assets/images/liquid-assets/liquid-tether.svg

This file was deleted.

Binary file added public/assets/images/liquid-assets/usdt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 0 additions & 37 deletions scripts/pull-asset-registry.js

This file was deleted.

18 changes: 0 additions & 18 deletions src/application/constants/blockstream_asset_hash.json

This file was deleted.

Loading

0 comments on commit f3e6772

Please sign in to comment.