From bbc6ea4ceccb414a7740984c5ba796de5ef7bc16 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Fri, 31 May 2019 13:50:58 +0200 Subject: [PATCH] Sync coin parameters from trezor-firmware monorepo --- build/tools/trezor-common/sync-coins.go | 2 +- configs/coins/bellcoin.json | 128 +++++++++++------------ configs/coins/vipstarcoin.json | 129 ++++++++++++------------ 3 files changed, 133 insertions(+), 126 deletions(-) diff --git a/build/tools/trezor-common/sync-coins.go b/build/tools/trezor-common/sync-coins.go index 7a522058..4112d41b 100644 --- a/build/tools/trezor-common/sync-coins.go +++ b/build/tools/trezor-common/sync-coins.go @@ -17,7 +17,7 @@ import ( const ( configsDir = "configs" - trezorCommonDefsURL = "https://raw.githubusercontent.com/trezor/trezor-common/master/defs/bitcoin/" + trezorCommonDefsURL = "https://raw.githubusercontent.com/trezor/trezor-firmware/master/common/defs/bitcoin/" ) type trezorCommonDef struct { diff --git a/configs/coins/bellcoin.json b/configs/coins/bellcoin.json index b2cfb432..8c645938 100644 --- a/configs/coins/bellcoin.json +++ b/configs/coins/bellcoin.json @@ -1,65 +1,69 @@ { - "coin": { - "name": "Bellcoin", - "shortcut": "BELL", - "label": "Bellcoin", - "alias": "bellcoin" - }, - "ports": { - "backend_rpc": 8052, - "backend_message_queue": 38352, - "blockbook_internal": 9052, - "blockbook_public": 9152 - }, - "ipc": { - "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", - "rpc_user": "rpc", - "rpc_pass": "rpc", - "rpc_timeout": 25, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" - }, - "backend": { - "package_name": "backend-bellcoin", - "package_revision": "satoshilabs-1", - "system_user": "bellcoin", - "version": "1.0.2", - "binary_url": "https://github.com/y-chan/bellcoin/releases/download/1.0.2/bellcoin-1.0.2-x86_64-linux-gnu.tar.gz", - "verification_type": "sha256", - "verification_source": "e959d7e9977ee50d99de2bc50a6d662626816794d3b6721d03f945e589bf8bfd", - "extract_command": "tar -C backend --strip 1 -xf", - "exclude_files": [ - "bellcoin-qt" - ], - "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bellcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", - "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", - "postinst_script_template": "", - "service_type": "forking", - "service_additional_params_template": "", - "protect_memory": true, - "mainnet": true, - "server_config_file": "bitcoin_like.conf", - "client_config_file": "bitcoin_like_client.conf", - "additional_params": { - "whitelist": "127.0.0.1" - } - }, - "blockbook": { - "package_name": "blockbook-bellcoin", - "system_user": "blockbook-bellcoin", - "internal_binding_template": ":{{.Ports.BlockbookInternal}}", - "public_binding_template": ":{{.Ports.BlockbookPublic}}", - "explorer_url": "", - "additional_params": "", - "block_chain": { - "parse": true, - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "additional_params": {} - } - }, - "meta": { - "package_maintainer": "ilmango-doge", - "package_maintainer_email": "ilmango.doge@gmail.com" + "coin": { + "name": "Bellcoin", + "shortcut": "BELL", + "label": "Bellcoin", + "alias": "bellcoin" + }, + "ports": { + "backend_rpc": 8052, + "backend_message_queue": 38352, + "blockbook_internal": 9052, + "blockbook_public": 9152 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-bellcoin", + "package_revision": "satoshilabs-1", + "system_user": "bellcoin", + "version": "1.0.2", + "binary_url": "https://github.com/y-chan/bellcoin/releases/download/1.0.2/bellcoin-1.0.2-x86_64-linux-gnu.tar.gz", + "verification_type": "sha256", + "verification_source": "e959d7e9977ee50d99de2bc50a6d662626816794d3b6721d03f945e589bf8bfd", + "extract_command": "tar -C backend --strip 1 -xf", + "exclude_files": [ + "bellcoin-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/bellcoind -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": true, + "server_config_file": "bitcoin_like.conf", + "client_config_file": "bitcoin_like_client.conf", + "additional_params": { + "whitelist": "127.0.0.1" } + }, + "blockbook": { + "package_name": "blockbook-bellcoin", + "system_user": "blockbook-bellcoin", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "xpub_magic": 76067358, + "xpub_magic_segwit_p2sh": 77429938, + "xpub_magic_segwit_native": 78792518, + "slip44": 25252, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "ilmango-doge", + "package_maintainer_email": "ilmango.doge@gmail.com" } +} \ No newline at end of file diff --git a/configs/coins/vipstarcoin.json b/configs/coins/vipstarcoin.json index 2df97ae6..6d86a1bb 100644 --- a/configs/coins/vipstarcoin.json +++ b/configs/coins/vipstarcoin.json @@ -1,66 +1,69 @@ { - "coin": { - "name": "VIPSTARCOIN", - "shortcut": "VIPS", - "label": "VIPSTARCOIN", - "alias": "VIPSTARCOIN" - }, - "ports": { - "backend_rpc": 8056, - "backend_message_queue": 38356, - "blockbook_internal": 9056, - "blockbook_public": 9156 - }, - "ipc": { - "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", - "rpc_user": "rpc", - "rpc_pass": "rpc", - "rpc_timeout": 25, - "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" - }, - "backend": { - "package_name": "backend-vipstarcoin", - "package_revision": "satoshilabs-1", - "system_user": "vipstarcoin", - "version": "1.0.2", - "binary_url": "https://github.com/y-chan/VIPSTARCOIN/releases/download/v1.0.2/VIPSTARCOIN-1.0.2-x86_64-linux-gnu.tar.gz", - "verification_type": "sha256", - "verification_source": "0bb608cf9103a896f2c1bf7f189db78f717019c2cc622f36581129876c65f131", - "extract_command": "tar -C backend --strip 1 -xzvf", - "exclude_files": [ - "VIPSTARCOIN-qt" - ], - "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/VIPSTARCOINd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", - "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", - "postinst_script_template": "", - "service_type": "forking", - "service_additional_params_template": "", - "protect_memory": true, - "mainnet": true, - "server_config_file": "bitcoin_like.conf", - "client_config_file": "bitcoin_like_client.conf", - "additional_params": { - "whitelist": "127.0.0.1" - } - }, - "blockbook": { - "package_name": "blockbook-vipstarcoin", - "system_user": "blockbook-vipstarcoin", - "internal_binding_template": ":{{.Ports.BlockbookInternal}}", - "public_binding_template": ":{{.Ports.BlockbookPublic}}", - "explorer_url": "", - "additional_params": "", - "block_chain": { - "parse": true, - "mempool_workers": 8, - "mempool_sub_workers": 2, - "block_addresses_to_keep": 300, - "slip44": 1919, - "additional_params": {} - } - }, - "meta": { - "package_maintainer": "y-chan", - "package_maintainer_email": "yuto_tetuota@yahoo.co.jp" + "coin": { + "name": "VIPSTARCOIN", + "shortcut": "VIPS", + "label": "VIPSTARCOIN", + "alias": "VIPSTARCOIN" + }, + "ports": { + "backend_rpc": 8056, + "backend_message_queue": 38356, + "blockbook_internal": 9056, + "blockbook_public": 9156 + }, + "ipc": { + "rpc_url_template": "http://127.0.0.1:{{.Ports.BackendRPC}}", + "rpc_user": "rpc", + "rpc_pass": "rpc", + "rpc_timeout": 25, + "message_queue_binding_template": "tcp://127.0.0.1:{{.Ports.BackendMessageQueue}}" + }, + "backend": { + "package_name": "backend-vipstarcoin", + "package_revision": "satoshilabs-1", + "system_user": "vipstarcoin", + "version": "1.0.2", + "binary_url": "https://github.com/y-chan/VIPSTARCOIN/releases/download/v1.0.2/VIPSTARCOIN-1.0.2-x86_64-linux-gnu.tar.gz", + "verification_type": "sha256", + "verification_source": "0bb608cf9103a896f2c1bf7f189db78f717019c2cc622f36581129876c65f131", + "extract_command": "tar -C backend --strip 1 -xzvf", + "exclude_files": [ + "VIPSTARCOIN-qt" + ], + "exec_command_template": "{{.Env.BackendInstallPath}}/{{.Coin.Alias}}/VIPSTARCOINd -datadir={{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend -conf={{.Env.BackendInstallPath}}/{{.Coin.Alias}}/{{.Coin.Alias}}.conf -pid=/run/{{.Coin.Alias}}/{{.Coin.Alias}}.pid", + "logrotate_files_template": "{{.Env.BackendDataPath}}/{{.Coin.Alias}}/backend/*.log", + "postinst_script_template": "", + "service_type": "forking", + "service_additional_params_template": "", + "protect_memory": true, + "mainnet": true, + "server_config_file": "bitcoin_like.conf", + "client_config_file": "bitcoin_like_client.conf", + "additional_params": { + "whitelist": "127.0.0.1" } + }, + "blockbook": { + "package_name": "blockbook-vipstarcoin", + "system_user": "blockbook-vipstarcoin", + "internal_binding_template": ":{{.Ports.BlockbookInternal}}", + "public_binding_template": ":{{.Ports.BlockbookPublic}}", + "explorer_url": "", + "additional_params": "", + "block_chain": { + "parse": true, + "mempool_workers": 8, + "mempool_sub_workers": 2, + "block_addresses_to_keep": 300, + "xpub_magic": 76067358, + "xpub_magic_segwit_p2sh": 77429938, + "xpub_magic_segwit_native": 78792518, + "slip44": 1919, + "additional_params": {} + } + }, + "meta": { + "package_maintainer": "y-chan", + "package_maintainer_email": "yuto_tetuota@yahoo.co.jp" } +} \ No newline at end of file