An open API service indexing awesome lists of open source software.

https://github.com/fox-one/4swap-icon-gen


https://github.com/fox-one/4swap-icon-gen

Last synced: 3 months ago
JSON representation

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
```