Skip to content

Commit

Permalink
add README
Browse files Browse the repository at this point in the history
  • Loading branch information
riverrun46 committed May 16, 2024
1 parent 8a35884 commit 76f7411
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 274 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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.

```ts:
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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mvc-org/mvc-resources",
"version": "1.0.5",
"version": "1.0.6",
"description": "mvc resources cdn",
"main": "dist/index.js",
"files": [
Expand Down
16 changes: 0 additions & 16 deletions src/index.js

This file was deleted.

257 changes: 0 additions & 257 deletions src/rules/metaContract.js

This file was deleted.

0 comments on commit 76f7411

Please sign in to comment.