@mvc-org/mvc-resources
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

MVC Resources

Overview

This repository contains resources such as icons, logos, and other assets.

We use unpkg service to serve these assets.

To get the URL of an asset, use the provided getAssetUrl function.

import { getIconUri } from '@mvc-org/mvc-resources'

const uri = getIconUri({
  type: 'metaContract',
  codehash: 'a2421f1e90c6048c36745edd44fad682e8644693',
  genesis: '94c2ae3fdbf95a4fb0d788c818cf5fcc7a9aa66a', // genesis for usdt
})

console.log(uri)
// https://unpkg.com/@mvc-org/mvc-resources/icons/meta-contract/usdt.jpg

To add a new asset

  • Fork this repository
  • Add the asset to the appropriate folder.
  • Add asset lookup rules to corresponding the rules file.
  • Create a pull request to the main repository and wait for approval. It will be published to unpkg after approval.

Readme

Keywords

none

Package Sidebar

Install

npm i @mvc-org/mvc-resources

Weekly Downloads

39

Version

1.0.6

License

none

Unpacked Size

1.59 MB

Total Files

55

Last publish

Collaborators

  • jasenyang
  • riverrun46
  • mvc-labs