1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

common: divisibility -> decimals

This commit is contained in:
Pavol Rusnak 2019-12-09 17:43:30 +01:00
parent 8cced84bc4
commit 7646b97dca
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
91 changed files with 176 additions and 180 deletions

View File

@ -6,7 +6,7 @@
"github": "https://github.com/Actinium-project/Actinium",
"maintainer": "Harris Brakmic <brakmic@actinium.org>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 53,
"address_type_p2sh": 55,
"maxfee_kb": 40000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/axerunners/axe",
"maintainer": "Kirill Orlov <kirill@axerunners.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 55,
"address_type_p2sh": 16,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/Bitcoin-ABC/bitcoin-abc",
"maintainer": "Jochen Hoenicke <hoenicke@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 0,
"address_type_p2sh": 5,
"maxfee_kb": 500000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/Bitcoin-ABC/bitcoin-abc",
"maintainer": "Jochen Hoenicke <hoenicke@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 111,
"address_type_p2sh": 196,
"maxfee_kb": 10000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/bellcoin-org/bellcoin",
"maintainer": "ilmango-doge <ilmango.doge@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 25,
"address_type_p2sh": 85,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/BTCGPU/BTCGPU",
"maintainer": "Saleem Rashid <trezor@saleemrashid.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 38,
"address_type_p2sh": 23,
"maxfee_kb": 500000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/BTCGPU/BTCGPU",
"maintainer": "The Bitcoin Gold Developers <support@bitcoingold.org>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 111,
"address_type_p2sh": 196,
"maxfee_kb": 500000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/bitcoin/bitcoin",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 0,
"address_type_p2sh": 5,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/bitcoin/bitcoin",
"maintainer": "Thomas Kerin <me@thomaskerin.io>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 111,
"address_type_p2sh": 196,
"maxfee_kb": 10000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/bitcoin/bitcoin",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 111,
"address_type_p2sh": 196,
"maxfee_kb": 10000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/LIMXTEC/BitCore",
"maintainer": "limxdev <limxdev@bitcore.cc>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 3,
"address_type_p2sh": 125,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/bitgreen/bitgreen",
"maintainer": "Dennis R <xezzor@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 38,
"address_type_p2sh": 6,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/BitzenyCoreDevelopers/bitzeny",
"maintainer": "y-chan <yuto_tetuota@yahoo.co.jp>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 81,
"address_type_p2sh": 5,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/BlockStamp/bst",
"maintainer": "Krzysztof Kuchta <k.kuchta@blockstamp.info>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 26,
"address_type_p2sh": 5,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/BTCPrivate/BitcoinPrivate",
"maintainer": "Chris Sulmone <csulmone@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 4901,
"address_type_p2sh": 5039,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://gitlab.com/bitcoinrh/BRhodiumNode",
"maintainer": "baff5b <dvbr3@protonmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 61,
"address_type_p2sh": 123,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/Capricoinofficial/Capricoin",
"maintainer": "Jozef Knaperek <jknaperek@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 28,
"address_type_p2sh": 35,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/cpuchain/cpuchain",
"maintainer": "Min Khang Aung <info@cpuchain.org>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 28,
"address_type_p2sh": 30,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/Crowndev/crowncoin",
"maintainer": "Ashot <ashot@crownplatform.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 95495,
"address_type_p2sh": 95473,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/dashpay/dash",
"maintainer": "Karel Bilek <karel.bilek@satoshilabs.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 76,
"address_type_p2sh": 16,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/dashpay/dash",
"maintainer": "Karel Bilek <karel.bilek@satoshilabs.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 140,
"address_type_p2sh": 19,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/decred/dcrd",
"maintainer": "Alex Yocom-Piatt <ay-p@decred.org>",
"curve_name": "secp256k1_decred",
"divisibility": 8,
"decimals": 8,
"address_type": 1855,
"address_type_p2sh": 1818,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/decred/dcrd",
"maintainer": "Saleem Rashid <trezor@saleemrashid.com>",
"curve_name": "secp256k1_decred",
"divisibility": 8,
"decimals": 8,
"address_type": 3873,
"address_type_p2sh": 3836,
"maxfee_kb": 10000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/digibyte/digibyte",
"maintainer": "DigiByte <dev@digibyte.co>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 30,
"address_type_p2sh": 63,
"maxfee_kb": 500000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/dogecoin/dogecoin",
"maintainer": "Karel Bilek <karel.bilek@satoshilabs.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 30,
"address_type_p2sh": 22,
"maxfee_kb": 1000000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/ElementsProject/elements",
"maintainer": "Roman Zeyde <mail@romanzey.de>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 235,
"address_type_p2sh": 75,
"maxfee_kb": 10000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/mvs-org/metaverse",
"maintainer": "Sven Mutzl <sven@mutzl.org>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 50,
"address_type_p2sh": 5,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/faircoin/faircoin",
"maintainer": "Santi Noreña <santi@criptomart.net>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 95,
"address_type_p2sh": 36,
"maxfee_kb": 10000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/FeatherCoin/Feathercoin",
"maintainer": "Lucas Betschart <lucas@feathercoin.foundation>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 14,
"address_type_p2sh": 5,
"maxfee_kb": 40000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/floblockchain/flo",
"maintainer": "Robert English <ksaredfx@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 35,
"address_type_p2sh": 94,
"maxfee_kb": 40000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/fujicoin/fujicoin",
"maintainer": "motty <admin@fujicoin.org>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 36,
"address_type_p2sh": 16,
"maxfee_kb": 1000000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/gamecredits-project/gamecredits",
"maintainer": "Samad Sajanlal <samad.sajanlal@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 38,
"address_type_p2sh": 62,
"maxfee_kb": 5000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/gincoin-dev/gincoin-core",
"maintainer": "Dragos Badea <dragos.badea@gincoin.io>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 38,
"address_type_p2sh": 10,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/Groestlcoin/groestlcoin",
"maintainer": "Yura Pakhuchiy <pakhuchiy@gmail.com>",
"curve_name": "secp256k1_groestl",
"divisibility": 8,
"decimals": 8,
"address_type": 36,
"address_type_p2sh": 5,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/Groestlcoin/groestlcoin",
"maintainer": "Yura Pakhuchiy <pakhuchiy@gmail.com>",
"curve_name": "secp256k1_groestl",
"divisibility": 8,
"decimals": 8,
"address_type": 111,
"address_type_p2sh": 196,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/hatchpay/hatch",
"maintainer": "Hatch Support <support@hatch.ga>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 76,
"address_type_p2sh": 16,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/hatchpay/hatch",
"maintainer": "Hatch Support <support@hatch.ga>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 140,
"address_type_p2sh": 19,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/ZencashOfficial/zen",
"maintainer": "Power_VANO <vano@horizen.global>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 8329,
"address_type_p2sh": 8342,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/komodoplatform/komodo",
"maintainer": "Kadan Stadelmann <ca333@komodoplatform.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 60,
"address_type_p2sh": 85,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/KotoDevelopers/koto",
"maintainer": "WO <wo@ko-to.org>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 6198,
"address_type_p2sh": 6203,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/litecoin-project/litecoin",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 48,
"address_type_p2sh": 50,
"maxfee_kb": 40000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/litecoin-project/litecoin",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 111,
"address_type_p2sh": 58,
"maxfee_kb": 40000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/monacoinproject/monacoin",
"maintainer": "cryptcoin-junkey <cryptcoin.junkey@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 50,
"address_type_p2sh": 55,
"maxfee_kb": 5000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/muecoin/MUE",
"maintainer": "Sotiris Blad <swthrhs@protonmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 16,
"address_type_p2sh": 76,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/namecoin/namecoin-core",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 52,
"address_type_p2sh": 5,
"maxfee_kb": 10000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/nixplatform/nixcore",
"maintainer": "mattt21 <matt@nixplatform.io>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 38,
"address_type_p2sh": 53,
"maxfee_kb": 40000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/particl/particl-core",
"maintainer": "Ryno <ryno@particl.io>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 56,
"address_type_p2sh": 60,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/particl/particl-core",
"maintainer": "Ryno <ryno@particl.io>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 118,
"address_type_p2sh": 122,
"maxfee_kb": 10000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/peercoin/peercoin",
"maintainer": "backpacker69 <backpacker69@protonmail.com>",
"curve_name": "secp256k1",
"divisibility": 6,
"decimals": 6,
"address_type": 55,
"address_type_p2sh": 117,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/peercoin/peercoin",
"maintainer": "backpacker69 <backpacker69@protonmail.com>",
"curve_name": "secp256k1",
"divisibility": 6,
"decimals": 6,
"address_type": 111,
"address_type_p2sh": 196,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/FundacionPesetacoin/PesetacoinCore",
"maintainer": "Rw <info@pesetacoin.info>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 47,
"address_type_p2sh": 22,
"maxfee_kb": 1000000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/PIVX-Project/PIVX",
"maintainer": "Random Zebra <random.zebra@protonmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 30,
"address_type_p2sh": 13,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/PIVX-Project/PIVX",
"maintainer": "Random Zebra <random.zebra@protonmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 139,
"address_type_p2sh": 19,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/polispay/polis",
"maintainer": "Cronos <eabz@polispay.org>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 55,
"address_type_p2sh": 56,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/primecoin/primecoin",
"maintainer": "James Skrowvedeht <james@thedevworks.io>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 23,
"address_type_p2sh": 83,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/qtumproject/qtum",
"maintainer": "CodeFace <codeface@qtum.info>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 58,
"address_type_p2sh": 50,
"maxfee_kb": 40000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/qtumproject/qtum",
"maintainer": "CodeFace <codeface@qtum.info>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 120,
"address_type_p2sh": 110,
"maxfee_kb": 40000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/RavenProject/Ravencoin",
"maintainer": "Scotty <scotty.rvn@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 60,
"address_type_p2sh": 122,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/RitoProject",
"maintainer": "Scotty <scotty.rvn@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 25,
"address_type_p2sh": 105,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/SmartCash/Core-Smart",
"maintainer": "Leandro Reinaux <leoreinaux@gmail.com>",
"curve_name": "secp256k1_smart",
"divisibility": 8,
"decimals": 8,
"address_type": 63,
"address_type_p2sh": 18,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/SmartCash/Core-Smart",
"maintainer": "Leandro Reinaux <leoreinaux@gmail.com>",
"curve_name": "secp256k1_smart",
"divisibility": 8,
"decimals": 8,
"address_type": 65,
"address_type_p2sh": 21,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/X9Developers/XSN",
"maintainer": "Alexis Hernandez <alexis@alexitc.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 76,
"address_type_p2sh": 16,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/syscoin/syscoin",
"maintainer": "Jagdeep Sidhu <jsidhu@blockchainfoundry.co>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 63,
"address_type_p2sh": 5,
"maxfee_kb": 10000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/terracoin/terracoin",
"maintainer": "The Terracoin Foundation <support@terracoin.io>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 0,
"address_type_p2sh": 5,
"maxfee_kb": 100000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/unobtanium-official/unobtanium",
"maintainer": "choicesz <choicesz@unobtanium.uno>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 130,
"address_type_p2sh": 30,
"maxfee_kb": 2000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/vertcoin-project/vertcoin-core",
"maintainer": "Jochen Hoenicke <hoenicke@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 71,
"address_type_p2sh": 5,
"maxfee_kb": 40000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/viacoin",
"maintainer": "romanornr <romanornr@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 71,
"address_type_p2sh": 33,
"maxfee_kb": 40000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/VIPSTARCOIN/VIPSTARCOIN",
"maintainer": "y-chan <yuto_tetuota@yahoo.co.jp>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 70,
"address_type_p2sh": 50,
"maxfee_kb": 40000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/zcash/zcash",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 7352,
"address_type_p2sh": 7357,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/zcash/zcash",
"maintainer": "Pavol Rusnak <stick@satoshilabs.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 7461,
"address_type_p2sh": 7354,
"maxfee_kb": 10000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/zcoinofficial/zcoin",
"maintainer": "Yura Pakhuchiy <pakhuchiy@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 82,
"address_type_p2sh": 7,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/zcoinofficial/zcoin",
"maintainer": "Yura Pakhuchiy <pakhuchiy@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 65,
"address_type_p2sh": 178,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/zcore-coin/zcore-2.0",
"maintainer": "Erick Costa <erick@zcore.cash>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 142,
"address_type_p2sh": 145,
"maxfee_kb": 1000000,

View File

@ -6,7 +6,7 @@
"github": "https://github.com/zelcash",
"maintainer": "Cabecinha84 <valter.cabecinha@gmail.com>",
"curve_name": "secp256k1",
"divisibility": 8,
"decimals": 8,
"address_type": 7352,
"address_type_p2sh": 7357,
"maxfee_kb": 1000000,

View File

@ -18,7 +18,7 @@ INPUT_OUTPUT_BLUEPRINT = '{{"address":"{address}","coins":[{coins}]}}'
COIN_BLUEPRINT = '{{"amount":{amount},"denom":"{denom}"}}'
# 1*10^8 Jagers equal 1 BNB https://www.binance.vision/glossary/jager
DIVISIBILITY = const(8)
DECIMALS = const(8)
def produce_json_for_signing(envelope: BinanceSignTx, msg) -> str:

View File

@ -23,7 +23,7 @@ async def require_confirm_transfer(ctx, msg: BinanceTransferMsg):
for coin in msg.coins:
coin_page = Text("Confirm " + direction, ui.ICON_SEND, icon_color=ui.GREEN)
coin_page.bold(
format_amount(coin.amount, helpers.DIVISIBILITY) + " " + coin.denom
format_amount(coin.amount, helpers.DECIMALS) + " " + coin.denom
)
coin_page.normal("to")
coin_page.mono(*split_address(msg.address))
@ -73,9 +73,9 @@ async def require_confirm_order(ctx, msg: BinanceOrderMsg):
page3 = Text("Confirm order 3/3", ui.ICON_SEND, icon_color=ui.GREEN)
page3.normal("Quantity:")
page3.bold(format_amount(msg.quantity, helpers.DIVISIBILITY))
page3.bold(format_amount(msg.quantity, helpers.DECIMALS))
page3.normal("Price:")
page3.bold(format_amount(msg.price, helpers.DIVISIBILITY))
page3.bold(format_amount(msg.price, helpers.DECIMALS))
return await hold_to_confirm(
ctx, Paginated([page1, page2, page3]), ButtonRequestType.SignTx

View File

@ -12,7 +12,7 @@ class CoinInfo:
self,
coin_name: str,
coin_shortcut: str,
divisibility: int,
decimals: int,
address_type: int,
address_type_p2sh: int,
maxfee_kb: int,
@ -34,7 +34,7 @@ class CoinInfo:
):
self.coin_name = coin_name
self.coin_shortcut = coin_shortcut
self.divisibility = divisibility
self.decimals = decimals
self.address_type = address_type
self.address_type_p2sh = address_type_p2sh
self.maxfee_kb = maxfee_kb
@ -84,7 +84,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="BTC",
divisibility=8,
decimals=8,
address_type=0,
address_type_p2sh=5,
maxfee_kb=2000000,
@ -108,7 +108,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="REGTEST",
divisibility=8,
decimals=8,
address_type=111,
address_type_p2sh=196,
maxfee_kb=10000000,
@ -132,7 +132,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="TEST",
divisibility=8,
decimals=8,
address_type=111,
address_type_p2sh=196,
maxfee_kb=10000000,
@ -159,7 +159,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="ACM",
divisibility=8,
decimals=8,
address_type=53,
address_type_p2sh=55,
maxfee_kb=40000000,
@ -183,7 +183,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="AXE",
divisibility=8,
decimals=8,
address_type=55,
address_type_p2sh=16,
maxfee_kb=100000,
@ -207,7 +207,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="BELL",
divisibility=8,
decimals=8,
address_type=25,
address_type_p2sh=85,
maxfee_kb=1000000,
@ -231,7 +231,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="BITG",
divisibility=8,
decimals=8,
address_type=38,
address_type_p2sh=6,
maxfee_kb=100000,
@ -255,7 +255,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="ZNY",
divisibility=8,
decimals=8,
address_type=81,
address_type_p2sh=5,
maxfee_kb=1000000,
@ -279,7 +279,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="BCH",
divisibility=8,
decimals=8,
address_type=0,
address_type_p2sh=5,
maxfee_kb=500000,
@ -303,7 +303,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="TBCH",
divisibility=8,
decimals=8,
address_type=111,
address_type_p2sh=196,
maxfee_kb=10000000,
@ -327,7 +327,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="BTG",
divisibility=8,
decimals=8,
address_type=38,
address_type_p2sh=23,
maxfee_kb=500000,
@ -351,7 +351,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="TBTG",
divisibility=8,
decimals=8,
address_type=111,
address_type_p2sh=196,
maxfee_kb=500000,
@ -375,7 +375,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="BTCP",
divisibility=8,
decimals=8,
address_type=4901,
address_type_p2sh=5039,
maxfee_kb=1000000,
@ -399,7 +399,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="XRC",
divisibility=8,
decimals=8,
address_type=61,
address_type_p2sh=123,
maxfee_kb=2000000,
@ -423,7 +423,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="BTX",
divisibility=8,
decimals=8,
address_type=3,
address_type_p2sh=125,
maxfee_kb=2000000,
@ -447,7 +447,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="BST",
divisibility=8,
decimals=8,
address_type=26,
address_type_p2sh=5,
maxfee_kb=2000000,
@ -471,7 +471,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="CPU",
divisibility=8,
decimals=8,
address_type=28,
address_type_p2sh=30,
maxfee_kb=1000000,
@ -495,7 +495,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="CPC",
divisibility=8,
decimals=8,
address_type=28,
address_type_p2sh=35,
maxfee_kb=2000000,
@ -519,7 +519,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="CRW",
divisibility=8,
decimals=8,
address_type=95495,
address_type_p2sh=95473,
maxfee_kb=2000000,
@ -543,7 +543,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="DASH",
divisibility=8,
decimals=8,
address_type=76,
address_type_p2sh=16,
maxfee_kb=100000,
@ -567,7 +567,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="tDASH",
divisibility=8,
decimals=8,
address_type=140,
address_type_p2sh=19,
maxfee_kb=100000,
@ -591,7 +591,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="DCR",
divisibility=8,
decimals=8,
address_type=1855,
address_type_p2sh=1818,
maxfee_kb=1000000,
@ -615,7 +615,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="TDCR",
divisibility=8,
decimals=8,
address_type=3873,
address_type_p2sh=3836,
maxfee_kb=10000000,
@ -639,7 +639,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="DGB",
divisibility=8,
decimals=8,
address_type=30,
address_type_p2sh=63,
maxfee_kb=500000,
@ -663,7 +663,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="DOGE",
divisibility=8,
decimals=8,
address_type=30,
address_type_p2sh=22,
maxfee_kb=1000000000,
@ -687,7 +687,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="ELEMENTS",
divisibility=8,
decimals=8,
address_type=235,
address_type_p2sh=75,
maxfee_kb=10000000,
@ -711,7 +711,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="FAIR",
divisibility=8,
decimals=8,
address_type=95,
address_type_p2sh=36,
maxfee_kb=10000000,
@ -735,7 +735,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="FTC",
divisibility=8,
decimals=8,
address_type=14,
address_type_p2sh=5,
maxfee_kb=40000000,
@ -759,7 +759,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="FLO",
divisibility=8,
decimals=8,
address_type=35,
address_type_p2sh=94,
maxfee_kb=40000000,
@ -783,7 +783,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="FJC",
divisibility=8,
decimals=8,
address_type=36,
address_type_p2sh=16,
maxfee_kb=1000000000,
@ -807,7 +807,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="GIN",
divisibility=8,
decimals=8,
address_type=38,
address_type_p2sh=10,
maxfee_kb=100000,
@ -831,7 +831,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="GAME",
divisibility=8,
decimals=8,
address_type=38,
address_type_p2sh=62,
maxfee_kb=5000000,
@ -855,7 +855,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="GRS",
divisibility=8,
decimals=8,
address_type=36,
address_type_p2sh=5,
maxfee_kb=100000,
@ -879,7 +879,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="tGRS",
divisibility=8,
decimals=8,
address_type=111,
address_type_p2sh=196,
maxfee_kb=100000,
@ -903,7 +903,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="HATCH",
divisibility=8,
decimals=8,
address_type=76,
address_type_p2sh=16,
maxfee_kb=100000,
@ -927,7 +927,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="tHATCH",
divisibility=8,
decimals=8,
address_type=140,
address_type_p2sh=19,
maxfee_kb=100000,
@ -951,7 +951,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="ZEN",
divisibility=8,
decimals=8,
address_type=8329,
address_type_p2sh=8342,
maxfee_kb=2000000,
@ -975,7 +975,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="KMD",
divisibility=8,
decimals=8,
address_type=60,
address_type_p2sh=85,
maxfee_kb=1000000,
@ -999,7 +999,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="KOTO",
divisibility=8,
decimals=8,
address_type=6198,
address_type_p2sh=6203,
maxfee_kb=1000000,
@ -1023,7 +1023,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="LTC",
divisibility=8,
decimals=8,
address_type=48,
address_type_p2sh=50,
maxfee_kb=40000000,
@ -1047,7 +1047,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="tLTC",
divisibility=8,
decimals=8,
address_type=111,
address_type_p2sh=58,
maxfee_kb=40000000,
@ -1071,7 +1071,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="ETP",
divisibility=8,
decimals=8,
address_type=50,
address_type_p2sh=5,
maxfee_kb=2000000,
@ -1095,7 +1095,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="MONA",
divisibility=8,
decimals=8,
address_type=50,
address_type_p2sh=55,
maxfee_kb=5000000,
@ -1119,7 +1119,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="MUE",
divisibility=8,
decimals=8,
address_type=16,
address_type_p2sh=76,
maxfee_kb=100000,
@ -1143,7 +1143,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="NIX",
divisibility=8,
decimals=8,
address_type=38,
address_type_p2sh=53,
maxfee_kb=40000000,
@ -1167,7 +1167,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="NMC",
divisibility=8,
decimals=8,
address_type=52,
address_type_p2sh=5,
maxfee_kb=10000000,
@ -1191,7 +1191,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="PIVX",
divisibility=8,
decimals=8,
address_type=30,
address_type_p2sh=13,
maxfee_kb=100000,
@ -1215,7 +1215,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="tPIVX",
divisibility=8,
decimals=8,
address_type=139,
address_type_p2sh=19,
maxfee_kb=100000,
@ -1239,7 +1239,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="PART",
divisibility=8,
decimals=8,
address_type=56,
address_type_p2sh=60,
maxfee_kb=2000000,
@ -1263,7 +1263,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="tPART",
divisibility=8,
decimals=8,
address_type=118,
address_type_p2sh=122,
maxfee_kb=10000000,
@ -1287,7 +1287,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="PPC",
divisibility=6,
decimals=6,
address_type=55,
address_type_p2sh=117,
maxfee_kb=2000000,
@ -1311,7 +1311,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="tPPC",
divisibility=6,
decimals=6,
address_type=111,
address_type_p2sh=196,
maxfee_kb=2000000,
@ -1335,7 +1335,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="PTC",
divisibility=8,
decimals=8,
address_type=47,
address_type_p2sh=22,
maxfee_kb=1000000000,
@ -1359,7 +1359,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="POLIS",
divisibility=8,
decimals=8,
address_type=55,
address_type_p2sh=56,
maxfee_kb=100000,
@ -1383,7 +1383,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="XPM",
divisibility=8,
decimals=8,
address_type=23,
address_type_p2sh=83,
maxfee_kb=1000000,
@ -1407,7 +1407,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="QTUM",
divisibility=8,
decimals=8,
address_type=58,
address_type_p2sh=50,
maxfee_kb=40000000,
@ -1431,7 +1431,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="tQTUM",
divisibility=8,
decimals=8,
address_type=120,
address_type_p2sh=110,
maxfee_kb=40000000,
@ -1455,7 +1455,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="RVN",
divisibility=8,
decimals=8,
address_type=60,
address_type_p2sh=122,
maxfee_kb=2000000,
@ -1479,7 +1479,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="RITO",
divisibility=8,
decimals=8,
address_type=25,
address_type_p2sh=105,
maxfee_kb=2000000,
@ -1503,7 +1503,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="SMART",
divisibility=8,
decimals=8,
address_type=63,
address_type_p2sh=18,
maxfee_kb=1000000,
@ -1527,7 +1527,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="tSMART",
divisibility=8,
decimals=8,
address_type=65,
address_type_p2sh=21,
maxfee_kb=1000000,
@ -1551,7 +1551,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="XSN",
divisibility=8,
decimals=8,
address_type=76,
address_type_p2sh=16,
maxfee_kb=2000000,
@ -1575,7 +1575,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="SYS",
divisibility=8,
decimals=8,
address_type=63,
address_type_p2sh=5,
maxfee_kb=10000000,
@ -1599,7 +1599,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="UNO",
divisibility=8,
decimals=8,
address_type=130,
address_type_p2sh=30,
maxfee_kb=2000000,
@ -1623,7 +1623,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="VIPS",
divisibility=8,
decimals=8,
address_type=70,
address_type_p2sh=50,
maxfee_kb=40000000,
@ -1647,7 +1647,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="VTC",
divisibility=8,
decimals=8,
address_type=71,
address_type_p2sh=5,
maxfee_kb=40000000,
@ -1671,7 +1671,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="VIA",
divisibility=8,
decimals=8,
address_type=71,
address_type_p2sh=33,
maxfee_kb=40000000,
@ -1695,7 +1695,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="ZCR",
divisibility=8,
decimals=8,
address_type=142,
address_type_p2sh=145,
maxfee_kb=1000000,
@ -1719,7 +1719,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="ZEC",
divisibility=8,
decimals=8,
address_type=7352,
address_type_p2sh=7357,
maxfee_kb=1000000,
@ -1743,7 +1743,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="TAZ",
divisibility=8,
decimals=8,
address_type=7461,
address_type_p2sh=7354,
maxfee_kb=10000000,
@ -1767,7 +1767,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="XZC",
divisibility=8,
decimals=8,
address_type=82,
address_type_p2sh=7,
maxfee_kb=1000000,
@ -1791,7 +1791,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="tXZC",
divisibility=8,
decimals=8,
address_type=65,
address_type_p2sh=178,
maxfee_kb=1000000,
@ -1815,7 +1815,7 @@ def by_name(name: str) -> CoinInfo:
return CoinInfo(
coin_name=name,
coin_shortcut="ZEL",
divisibility=8,
decimals=8,
address_type=7352,
address_type_p2sh=7357,
maxfee_kb=1000000,

View File

@ -12,7 +12,7 @@ class CoinInfo:
self,
coin_name: str,
coin_shortcut: str,
divisibility: int,
decimals: int,
address_type: int,
address_type_p2sh: int,
maxfee_kb: int,
@ -34,7 +34,7 @@ class CoinInfo:
):
self.coin_name = coin_name
self.coin_shortcut = coin_shortcut
self.divisibility = divisibility
self.decimals = decimals
self.address_type = address_type
self.address_type_p2sh = address_type_p2sh
self.maxfee_kb = maxfee_kb
@ -92,7 +92,7 @@ def optional_dict(x):
ATTRIBUTES = (
("coin_name", lambda _: "name"),
("coin_shortcut", black_repr),
("divisibility", int),
("decimals", int),
("address_type", int),
("address_type_p2sh", int),
("maxfee_kb", int),

View File

@ -11,7 +11,7 @@ HASH_TX_SIGN = const(0x53545800) # 'STX'
# HASH_TX_SIGN_TESTNET = const(0x73747800) # 'stx'
# https://developers.ripple.com/basic-data-types.html#specifying-currency-amounts
DIVISIBILITY = const(6) # 1000000 drops equal 1 XRP
DECIMALS = const(6) # 1000000 drops equal 1 XRP
# https://developers.ripple.com/transaction-cost.html
MIN_FEE = const(10)

View File

@ -12,7 +12,7 @@ from apps.common.layout import split_address
async def require_confirm_fee(ctx, fee):
text = Text("Confirm fee", ui.ICON_SEND, ui.GREEN)
text.normal("Transaction fee:")
text.bold(format_amount(fee, helpers.DIVISIBILITY) + " XRP")
text.bold(format_amount(fee, helpers.DECIMALS) + " XRP")
await require_confirm(ctx, text, ButtonRequestType.ConfirmOutput)
@ -26,7 +26,7 @@ async def require_confirm_destination_tag(ctx, tag):
async def require_confirm_tx(ctx, to, value):
text = Text("Confirm sending", ui.ICON_SEND, ui.GREEN)
text.bold(format_amount(value, helpers.DIVISIBILITY) + " XRP")
text.bold(format_amount(value, helpers.DECIMALS) + " XRP")
text.normal("to")
text.mono(*split_address(to))
return await require_hold_to_confirm(ctx, text, ButtonRequestType.SignTx)

View File

@ -41,7 +41,7 @@ ASSET_TYPE_ALPHANUM12 = const(2)
# https://www.stellar.org/developers/guides/concepts/accounts.html#balance
# https://github.com/stellar/go/blob/3d2c1defe73dbfed00146ebe0e8d7e07ce4bb1b6/amount/main.go#L23
AMOUNT_DIVISIBILITY = const(7)
AMOUNT_DECIMALS = const(7)
# https://github.com/stellar/go/blob/master/network/main.go
NETWORK_PASSPHRASE_PUBLIC = "Public Global Stellar Network ; September 2015"

View File

@ -77,7 +77,7 @@ def format_amount(amount: int, ticker=True) -> str:
t = ""
if ticker:
t = " XLM"
return utils.format_amount(amount, consts.AMOUNT_DIVISIBILITY) + t
return utils.format_amount(amount, consts.AMOUNT_DECIMALS) + t
def split(text):

View File

@ -5,7 +5,7 @@ from trezor.crypto import base58
from apps.common import HARDENED
from apps.common.writers import write_uint8
TEZOS_AMOUNT_DIVISIBILITY = const(6)
TEZOS_AMOUNT_DECIMALS = const(6)
TEZOS_ED25519_ADDRESS_PREFIX = "tz1"
TEZOS_ORIGINATED_ADDRESS_PREFIX = "KT1"
TEZOS_PUBLICKEY_PREFIX = "edpk"

View File

@ -5,7 +5,7 @@ from trezor.ui.text import Text
from trezor.utils import chunks, format_amount
from apps.common.confirm import require_confirm, require_hold_to_confirm
from apps.tezos.helpers import TEZOS_AMOUNT_DIVISIBILITY
from apps.tezos.helpers import TEZOS_AMOUNT_DECIMALS
async def require_confirm_tx(ctx, to, value):
@ -72,7 +72,7 @@ def split_proposal(proposal):
def format_tezos_amount(value):
formatted_value = format_amount(value, TEZOS_AMOUNT_DIVISIBILITY)
formatted_value = format_amount(value, TEZOS_AMOUNT_DECIMALS)
return formatted_value + " XTZ"

View File

@ -9,7 +9,7 @@ _LOCKTIME_TIMESTAMP_MIN_VALUE = const(500000000)
def format_coin_amount(amount, coin):
return "%s %s" % (format_amount(amount, coin.divisibility), coin.coin_shortcut)
return "%s %s" % (format_amount(amount, coin.decimals), coin.coin_shortcut)
def split_address(address):

View File

@ -33,7 +33,7 @@ const CoinInfo coins[COINS_COUNT] = {
.has_fork_id = ${defined(c.fork_id)},
.force_bip143 = ${c_bool(c.force_bip143)},
.decred = ${c_bool(c.decred)},
.divisibility = ${c.divisibility},
.decimals = ${c.decimals},
.address_type = ${c.address_type},
.address_type_p2sh = ${c.address_type_p2sh},
.xpub_magic = ${hex(c.xpub_magic)},

View File

@ -31,7 +31,7 @@ typedef struct _CoinInfo {
const char *coin_shortcut;
uint64_t maxfee_kb;
const char *signed_message_header;
uint32_t divisibility;
uint32_t decimals;
bool has_segwit;
bool has_fork_id;
bool force_bip143;

View File

@ -344,8 +344,8 @@ static void render_address_dialog(const CoinInfo *coin, const char *address,
void layoutConfirmOutput(const CoinInfo *coin, const TxOutputType *out) {
char str_out[32 + 3] = {0};
bn_format_uint64(out->amount, NULL, coin->coin_shortcut, coin->divisibility,
0, false, str_out, sizeof(str_out) - 3);
bn_format_uint64(out->amount, NULL, coin->coin_shortcut, coin->decimals, 0,
false, str_out, sizeof(str_out) - 3);
strlcat(str_out, " to", sizeof(str_out));
const char *address = out->address;
const char *extra_line =
@ -422,9 +422,9 @@ void layoutConfirmOpReturn(const uint8_t *data, uint32_t size) {
void layoutConfirmTx(const CoinInfo *coin, uint64_t amount_out,
uint64_t amount_fee) {
char str_out[32] = {0}, str_fee[32] = {0};
bn_format_uint64(amount_out, NULL, coin->coin_shortcut, coin->divisibility, 0,
bn_format_uint64(amount_out, NULL, coin->coin_shortcut, coin->decimals, 0,
false, str_out, sizeof(str_out));
bn_format_uint64(amount_fee, NULL, coin->coin_shortcut, coin->divisibility, 0,
bn_format_uint64(amount_fee, NULL, coin->coin_shortcut, coin->decimals, 0,
false, str_fee, sizeof(str_fee));
layoutDialogSwipe(&bmp_icon_question, _("Cancel"), _("Confirm"), NULL,
_("Really send"), str_out, _("from your wallet?"),
@ -433,7 +433,7 @@ void layoutConfirmTx(const CoinInfo *coin, uint64_t amount_out,
void layoutFeeOverThreshold(const CoinInfo *coin, uint64_t fee) {
char str_fee[32] = {0};
bn_format_uint64(fee, NULL, coin->coin_shortcut, coin->divisibility, 0, false,
bn_format_uint64(fee, NULL, coin->coin_shortcut, coin->decimals, 0, false,
str_fee, sizeof(str_fee));
layoutDialogSwipe(&bmp_icon_question, _("Cancel"), _("Confirm"), NULL,
_("Fee"), str_fee, _("is unexpectedly high."), NULL,

File diff suppressed because one or more lines are too long

View File

@ -76,12 +76,8 @@ def _json_to_input(coin, vin):
def _json_to_bin_output(coin, vout):
o = messages.TxOutputBinType()
if is_peercoin(coin):
DIVISIBILITY = 1000000
else:
DIVISIBILITY = 100000000
o.amount = int(Decimal(vout["value"]) * DIVISIBILITY)
DECIMALS = 6 if is_peercoin(coin) else 8
o.amount = int(Decimal(vout["value"]) * (10 ** DECIMALS))
o.script_pubkey = bytes.fromhex(vout["scriptPubKey"]["hex"])
if coin["bip115"] and o.script_pubkey[-1] == 0xB4:
# Verify if coin implements replay protection bip115 and script includes

View File

@ -54,7 +54,7 @@ class TestMsgEthereumSigntx:
"000000000000000000000000000000000000000000000000000000000bebc200"
)
)
# 200 000 000 in dec, divisibility of ADT = 9, trezor1 displays 0.2 ADT, Trezor T 200 000 000 Wei ADT
# 200 000 000 in dec, decimals of ADT = 9, trezor1 displays 0.2 ADT, Trezor T 200 000 000 Wei ADT
sig_v, sig_r, sig_s = ethereum.sign_tx(
client,