Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.33 KB

README.md

File metadata and controls

59 lines (41 loc) · 1.33 KB

4swap Icons generator

Generate icons and directory structure according to the contribute guideline

Usage

$ git clone [email protected]:fox-one/4swap-icon-gen.git
$ cd 4swap-icon-gen
$ go build

Create keystore.json from Mixin Developer 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