https://github.com/fox-one/4swap-icon-gen
https://github.com/fox-one/4swap-icon-gen
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fox-one/4swap-icon-gen
- Owner: fox-one
- Created: 2021-02-01T06:51:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T14:51:49.000Z (about 3 years ago)
- Last Synced: 2025-01-17T13:32:38.049Z (over 1 year ago)
- Language: Go
- Size: 15.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 4swap Icons generator
Generate icons and directory structure according to the [contribute guideline](https://github.com/MixinNetwork/asset-profile)
## Usage
```
$ git clone git@github.com:fox-one/4swap-icon-gen.git
```
```
$ cd 4swap-icon-gen
```
```
$ go build
```
Create keystore.json from [Mixin Developer Dashboard](https://developers.mixin.one/dashboard)
```
$ ./4swap-icon-gen \
-config keystore.json \
-a0 NEW_ASSET_ID \
-a1 THE_FIRST_ASSET_ID \
-a2 THE_SECOND_ASSET_ID \
-o OUTPUT_PATH \
-c1 CUSTOM_COLOR_1 \
-c2 CUSTOM_COLOR_2 \
-ic1 CUSTOM_ICON_1 \
-ic2 CUSTOM_ICON_2
```
example:
```
$ ./4swap-icon-gen -config keystore.json -a0 NEW_ASSET_ID -a1 54c61a72-b982-4034-a556-0d99e3c21e39 -a2 a31e847e-ca87-3162-b4d1-322bc552e831
```
Using custom icon files:
```
$ ./4swap-icon-gen -config keystore.json -a0 NEW_ASSET_ID -a1 54c61a72-b982-4034-a556-0d99e3c21e39 -a2 a31e847e-ca87-3162-b4d1-322bc552e831 -ic1 ./btc.png -ic2 ./dot.png
```
Using custom colors:
```
$ ./4swap-icon-gen -config keystore.json -a0 NEW_ASSET_ID -a1 54c61a72-b982-4034-a556-0d99e3c21e39 -a2 a31e847e-ca87-3162-b4d1-322bc552e831 -c1 "#F7931B" -c2 "#000000"
```
Using custom output path:
```
$ ./4swap-icon-gen -config keystore.json -a0 NEW_ASSET_ID -a1 54c61a72-b982-4034-a556-0d99e3c21e39 -a2 a31e847e-ca87-3162-b4d1-322bc552e831 -o YOUR_OUTPUT_PATH
```