Skip to content

Instantly share code, notes, and snippets.

@leongaban leongaban/decred.js
Created Feb 23, 2018

Embed
What would you like to do?
decred plugin
// @flow
import type { AbcCurrencyInfo } from 'edge-login'
export const decredInfo: AbcCurrencyInfo = {
// Basic currency information:
currencyCode: 'DCR',
currencyName: 'Decred',
pluginName: 'decred',
denominations: [{ name: 'DCR', multiplier: '100000000', symbol: 'D' }],
walletTypes: ['wallet:decred-blake256', 'wallet:decred'],
// Configuration options:
defaultSettings: {
network: {
type: 'decred',
magic: 0x00000000,
keyPrefix: {
privkey: 'Pm',
xpubkey: 'Dx',
xprivkey: 'dprv',
xprivkey58: 'dprv',
xpubkey58: 'dpub',
coinType: 0
},
addressPrefix: {
pubkeyhash: 'Ds',
scripthash: 'Dc',
witnesspubkeyhash: 'Ds',
witnessscripthash: 'Dc',
bech32: null
}
},
customFeeSettings: ['satPerByte'],
gapLimit: 25,
maxFee: 1000000,
feeUpdateInterval: 10000,
// @TODO need to replace these
feeInfoServer: 'https://decredfees.21.co/api/v1/fees/list',
infoServer: 'https://info1.edgesecure.co:8444/v1/electrumServers/DCR',
simpleFeeSettings: {
highFee: '1000000',
lowFee: '10000',
standardFeeLow: '10000',
standardFeeHigh: '1000000',
standardFeeLowAmount: '',
standardFeeHighAmount: ''
},
electrumServers: []
},
// Explorers:
addressExplorer: 'https://mainnet.decred.org/address/%s',
blockExplorer: 'https://mainnet.decred.org/block/%s',
transactionExplorer: 'https://mainnet.decred.org/tx/%s',
// Images:
symbolImage:
'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAM1BMVEW+vr7///+6urrt7e3b29u4uLj39/fLy8vT09POzs77+/vf39/BwcHl5eX09PTx8fHGxsYFZR74AAAJW0lEQVR4nOWd6aKrKgxGKWoFp/L+T3vV7la0DklIAM/9fp6hspQpIQnqIa5mKPq2NLZ2ruuUUl3nXG1N2fbF0Mg/Xkn++NCX1ulJak/z3zhb9oNkI6QIh964I7IdUmfEMCUIh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/IWgWLqpj4KfGUIgrExuthxJ1GP7UiQqxbUSHIdF43an1RZ9rsMfAOFE76fcHGGruiW7ZqPPDXs09ct1EWcuJ1qbduolkd42o5UTcsu3WvqR2iByH4UH9UuL7ytFyOqhBS/yIGVpOh3WESR9R1nKi7UMOa0GTPqLuC0GRetVJPW+SmQi4hYQuCuBZTXb+WsIpdFpXP8EpLb9O70a4431rW13cb3GHy2PPdXVHyT3vlPN1ec9MilM+TgHuCrr5ZAO47+nG98pN2sH5/aN//961f//uvBv3012YvT/89++w/PfvIb3nuo+6S/aO+1PkfcD3G4rYO51vNxTx93L/D+5Wv9dsc3L8dULYpG42Qiexn2dH8NHzPak6jZQ4DTK4yYR6OI1eEz76OyBW52EEF4EiN3DbXDndr0Jhsl8WjxdCIGHuiJeA14R5I14DAghzRgQAQggfba4zagU52QMF3WW6aFwsExjCPN1vwAACYOBkhhs4aFArNDS0yc3S6KBVY+DBr3VOn1HD4yMQ4b1lPvNNhYhSwgQwZzPfoIKUUCHaTcxCcofS4CGIJ3w8TPqeWiHDWbFh9kVqQIUNo8MnEtiUPVXja2kTUiVSfkZCHCQpGSTRaMSOwADCxyvBpKo7WgogNaEnugOHHANJTllqonbVyuBrTIcSjvZGtJ2qrgOS44LSzl5REtC1C8rBDUysk2cM5AsmHBmt5HisbHAONUNy5NMIVT7W2jBkxfGkf0pUr9YdT4w8V4Lri/dDjp+PK8WfMYWXrU43ovY5QKxJyg0D5IRHXt33xJ6GXRhFphz/o2HPopJINB9ai6cc/4NtJfL6pVLph944aEbI+O+c6aWqFogWCxj60rrj3Jf5b5wtxeBmiRK+1QxF35bG1s51k+e865yrrSnbvhhY55R9/Qe/yGUFfz1igQAAAABJRU5ErkJggg=='
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.