![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@vegaprotocol/emblem
Advanced tools
Uses https://icon.vega.xyz to source an image for assets or markets.
Uses https://icon.vega.xyz to source an image for assets or markets.
All of the components ultimately render an img
tag, and all properties can be overridden.
Wrapper component for EmblemByAsset, EmblemByContract and EmblemByMarket components. Depending on the props, it returns an icon for an asset by one of the below subcomponents
Property Name | Required or Optional | Description |
---|---|---|
asset | Optional | The ID of the Vega Asset. |
chainId | Optional | The ID of the Vega Chain. |
vegaChainId | Optional | The ID of the Vega Chain (e.g. vega-fairground-2020305051805 ). |
contractAddress | Optional | The address of the smart contract on its origin chain. |
Renders an icon for a given Vega Asset ID.
Property Name | Required or Optional | Description |
---|---|---|
asset | Required | The ID of the Vega Asset. |
vegaChainId | Required | The ID of the Vega Chain (e.g. vega-fairground-2020305051805 ). |
Renders an icon for a given smart contract address on its origin chain.
Property Name | Required or Optional | Description |
---|---|---|
contract | Required | The address of the contract representing the asset. |
chainId | Required | The ID of the origin chain (e.g. 1 for Ethereum Mainnet). |
Renders two, or optionally one icons for a given market ID on a vega chain
Property Name | Required or Optional | Description |
---|---|---|
vegaChainId | Required | The ID of the Vega Chain (e.g. vega-fairground-2020305051805 ). |
marketId | Required | The ID of the market |
showLogos | Optional | 'BASE' or 'QUOTE' show only that asset. Defaults to 'BOTH' |
Vega chain ID is required by most of the components. See Explorer's EmblemWithChain
for an example of a wrapper component
that gets the chain ID from configuration, meaning you don't need to manually fetch the chain ID in lots of components. As this
is not standard across applications currently, it has not been added to this library.
Run nx build emblem
to build the library.
FAQs
Uses https://icon.vega.xyz to source an image for assets or markets.
The npm package @vegaprotocol/emblem receives a total of 0 weekly downloads. As such, @vegaprotocol/emblem popularity was classified as not popular.
We found that @vegaprotocol/emblem demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.