mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-24 16:17:15 +01:00
59 lines
1.1 KiB
Bash
Executable File
59 lines
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
SRC='./submodules/trezor-common/tools'
|
|
DIST='./packages/connect-common/files'
|
|
|
|
# todo:
|
|
# if [ $# -ge 1 ] && [ "$1" == "local" ]
|
|
# then
|
|
# SRC='../trezor-firmware/common/tools'
|
|
# fi
|
|
|
|
# BUID coins.json using tezor-common cointool
|
|
# exlude unused fields
|
|
$SRC/cointool.py dump -p -d connect -o $DIST/coins.json \
|
|
-e blockbook \
|
|
-e icon \
|
|
-e cooldown \
|
|
-e github \
|
|
-e key \
|
|
-e maintainer \
|
|
-e uri_prefix \
|
|
-e version_group_id \
|
|
-e website \
|
|
-e links \
|
|
-e duplicate \
|
|
-e wallet \
|
|
-e bitcore \
|
|
-e confidential_assets \
|
|
-e negative_fee \
|
|
-E eth \
|
|
-E erc20 \
|
|
|
|
yarn prettier --write $DIST/coins.json
|
|
|
|
$SRC/cointool.py dump -p -d connect -o $DIST/coins-eth.json \
|
|
-e blockbook \
|
|
-e icon \
|
|
-e cooldown \
|
|
-e github \
|
|
-e key \
|
|
-e maintainer \
|
|
-e uri_prefix \
|
|
-e version_group_id \
|
|
-e website \
|
|
-e links \
|
|
-e duplicate \
|
|
-e wallet \
|
|
-e bitcore \
|
|
-e confidential_assets \
|
|
-e negative_fee \
|
|
-E erc20 \
|
|
-E bitcoin \
|
|
-E misc \
|
|
-E nem \
|
|
|
|
yarn prettier --write $DIST/coins-eth.json
|