Add Decred chainparams.

master^2
tecnovert 9 months ago
parent 5e8547063e
commit 74ce19052d
  1. 39
      basicswap/chainparams.py

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright (c) 2019-2023 tecnovert # Copyright (c) 2019-2024 tecnovert
# Distributed under the MIT software license, see the accompanying # Distributed under the MIT software license, see the accompanying
# file LICENSE or http://www.opensource.org/licenses/mit-license.php. # file LICENSE or http://www.opensource.org/licenses/mit-license.php.
@ -21,7 +21,7 @@ class Coins(IntEnum):
PART = 1 PART = 1
BTC = 2 BTC = 2
LTC = 3 LTC = 3
# DCR = 4 DCR = 4
NMC = 5 NMC = 5
XMR = 6 XMR = 6
PART_BLIND = 7 PART_BLIND = 7
@ -155,6 +155,41 @@ chainparams = {
'max_amount': 100000 * COIN, 'max_amount': 100000 * COIN,
} }
}, },
Coins.DCR: {
'name': 'decred',
'ticker': 'DCR',
'message_magic': 'Decred Signed Message:\n',
'blocks_target': 60 * 5,
'decimal_places': 8,
'mainnet': {
'rpcport': 9109,
'pubkey_address': 0x073f,
'script_address': 0x071a,
'key_prefix': 0x22de,
'bip44': 42,
'min_amount': 1000,
'max_amount': 100000 * COIN,
},
'testnet': {
'rpcport': 19109,
'pubkey_address': 0x0f21,
'script_address': 0x0efc,
'key_prefix': 0x230e,
'bip44': 1,
'min_amount': 1000,
'max_amount': 100000 * COIN,
'name': 'testnet3',
},
'regtest': {
'rpcport': 18656,
'pubkey_address': 0x0e00,
'script_address': 0x0ddb,
'key_prefix': 0x22fe,
'bip44': 1,
'min_amount': 1000,
'max_amount': 100000 * COIN,
}
},
Coins.NMC: { Coins.NMC: {
'name': 'namecoin', 'name': 'namecoin',
'ticker': 'NMC', 'ticker': 'NMC',

Loading…
Cancel
Save