Skip to content

Commit 76f7411

Browse files
committed
add README
1 parent 8a35884 commit 76f7411

File tree

4 files changed

+30
-274
lines changed

4 files changed

+30
-274
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# MVC Resources
2+
3+
## Overview
4+
5+
This repository contains resources such as icons, logos, and other assets.
6+
7+
We use unpkg service to serve these assets.
8+
9+
To get the URL of an asset, use the provided `getAssetUrl` function.
10+
11+
```ts:
12+
import { getIconUri } from '@mvc-org/mvc-resources'
13+
14+
const uri = getIconUri({
15+
type: 'metaContract',
16+
codehash: 'a2421f1e90c6048c36745edd44fad682e8644693',
17+
genesis: '94c2ae3fdbf95a4fb0d788c818cf5fcc7a9aa66a', // genesis for usdt
18+
})
19+
20+
console.log(uri)
21+
// https://unpkg.com/@mvc-org/mvc-resources/icons/meta-contract/usdt.jpg
22+
```
23+
24+
## To add a new asset
25+
26+
- Fork this repository
27+
- Add the asset to the appropriate folder.
28+
- Add asset lookup rules to corresponding the rules file.
29+
- Create a pull request to the main repository and wait for approval. It will be published to unpkg after approval.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mvc-org/mvc-resources",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "mvc resources cdn",
55
"main": "dist/index.js",
66
"files": [

src/index.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/rules/metaContract.js

Lines changed: 0 additions & 257 deletions
This file was deleted.

0 commit comments

Comments
 (0)