diff --git a/src/common/utxobased/info/badcoin.ts b/src/common/utxobased/info/badcoin.ts index a7b4034f..26de5230 100644 --- a/src/common/utxobased/info/badcoin.ts +++ b/src/common/utxobased/info/badcoin.ts @@ -1,40 +1,37 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'badcoin', - walletType: 'wallet:badcoin', currencyCode: 'BAD', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Badcoin', + memoOptions: utxoMemoOptions, + pluginId: 'badcoin', + walletType: 'wallet:badcoin', + + // Explorers: + addressExplorer: 'https://www.blockingbad.com/address/%s', + blockExplorer: 'https://www.blockingbad.com/block/%s', + transactionExplorer: 'https://www.blockingbad.com/tx/%s', + denominations: [ { name: 'BAD', multiplier: '100000000', symbol: 'BAD' }, { name: 'mBAD', multiplier: '100000', symbol: 'mBAD' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: [], enableCustomServers: false }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - addressExplorer: 'https://www.blockingbad.com/address/%s', - blockExplorer: 'https://www.blockingbad.com/block/%s', - transactionExplorer: 'https://www.blockingbad.com/tx/%s', - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/bitcoin.ts b/src/common/utxobased/info/bitcoin.ts index 09d71ce1..0951c160 100644 --- a/src/common/utxobased/info/bitcoin.ts +++ b/src/common/utxobased/info/bitcoin.ts @@ -3,13 +3,30 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { IMAGE_SERVER_URL } from '../../constants' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'bitcoin', - walletType: 'wallet:bitcoin', + canReplaceByFee: true, currencyCode: 'BTC', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Bitcoin', + memoOptions: utxoMemoOptions, + pluginId: 'bitcoin', + walletType: 'wallet:bitcoin', + + // Explorers: + blockExplorer: 'https://blockchair.com/bitcoin/block/%s', + addressExplorer: 'https://blockchair.com/bitcoin/address/%s', + transactionExplorer: 'https://blockchair.com/bitcoin/transaction/%s', + + // Images: + symbolImage: `${IMAGE_SERVER_URL}/bitcoin-logo-solo-64.png`, + symbolImageDarkMono: `${IMAGE_SERVER_URL}/bitcoin-logo-solo-64.png`, + denominations: [ { name: 'BTC', multiplier: '100000000', symbol: '₿' }, { name: 'mBTC', multiplier: '100000', symbol: 'm₿' }, @@ -17,7 +34,8 @@ const currencyInfo: EdgeCurrencyInfo = { { name: 'sats', multiplier: '1', symbol: 's' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: [ @@ -29,27 +47,6 @@ const currencyInfo: EdgeCurrencyInfo = { ], enableCustomServers: false }, - canReplaceByFee: true, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - blockExplorer: 'https://blockchair.com/bitcoin/block/%s', - addressExplorer: 'https://blockchair.com/bitcoin/address/%s', - transactionExplorer: 'https://blockchair.com/bitcoin/transaction/%s', - - // Images: - symbolImage: `${IMAGE_SERVER_URL}/bitcoin-logo-solo-64.png`, - symbolImageDarkMono: `${IMAGE_SERVER_URL}/bitcoin-logo-solo-64.png`, - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/bitcoincash.ts b/src/common/utxobased/info/bitcoincash.ts index ea92c292..84004cee 100644 --- a/src/common/utxobased/info/bitcoincash.ts +++ b/src/common/utxobased/info/bitcoincash.ts @@ -5,21 +5,39 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { IMAGE_SERVER_URL } from '../../constants' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' import { scriptTemplates } from './scriptTemplates/bitcoincashScriptTemplates' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'bitcoincash', - walletType: 'wallet:bitcoincash', currencyCode: 'BCH', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Bitcoin Cash', + memoOptions: utxoMemoOptions, + pluginId: 'bitcoincash', + walletType: 'wallet:bitcoincash', + + // Explorers: + blockExplorer: 'https://blockchair.com/bitcoin-cash/block/%s', + addressExplorer: 'https://blockchair.com/bitcoin-cash/address/%s', + transactionExplorer: 'https://blockchair.com/bitcoin-cash/transaction/%s', + xpubExplorer: 'https://bch1.trezor.io/xpub/%s', + + // Images: + symbolImage: `${IMAGE_SERVER_URL}/bitcoincash-logo-solo-64.png`, + symbolImageDarkMono: `${IMAGE_SERVER_URL}/bitcoincash-logo-solo-64.png`, + denominations: [ { name: 'BCH', multiplier: '100000000', symbol: '₿' }, { name: 'mBCH', multiplier: '100000', symbol: 'm₿' }, { name: 'cash', multiplier: '100', symbol: 'ƀ' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: [ @@ -31,27 +49,6 @@ const currencyInfo: EdgeCurrencyInfo = { ], enableCustomServers: false }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - blockExplorer: 'https://blockchair.com/bitcoin-cash/block/%s', - addressExplorer: 'https://blockchair.com/bitcoin-cash/address/%s', - transactionExplorer: 'https://blockchair.com/bitcoin-cash/transaction/%s', - xpubExplorer: 'https://bch1.trezor.io/xpub/%s', - - // Images: - symbolImage: `${IMAGE_SERVER_URL}/bitcoincash-logo-solo-64.png`, - symbolImageDarkMono: `${IMAGE_SERVER_URL}/bitcoincash-logo-solo-64.png`, - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/bitcoincashtestnet.ts b/src/common/utxobased/info/bitcoincashtestnet.ts index dface633..683c21e1 100644 --- a/src/common/utxobased/info/bitcoincashtestnet.ts +++ b/src/common/utxobased/info/bitcoincashtestnet.ts @@ -3,27 +3,20 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { IMAGE_SERVER_URL } from '../../constants' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' import { scriptTemplates } from './scriptTemplates/bitcoincashScriptTemplates' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'bitcoincashtestnet', - walletType: 'wallet:bitcoincashtestnet', currencyCode: 'TBCH', displayName: 'Bitcoin Cash', - denominations: [ - { name: 'TBCH', multiplier: '100000000', symbol: '₿' }, - { name: 'mTBCH', multiplier: '100000', symbol: 'm₿' }, - { name: 'cash', multiplier: '100', symbol: 'ƀ' } - ], - - // Configuration options: - defaultSettings: { - customFeeSettings: ['satPerByte'], - blockbookServers: [], - enableCustomServers: false - }, - ...memoInfo, + memoOptions: utxoMemoOptions, + customFeeTemplate: utxoCustomFeeTemplate, + pluginId: 'bitcoincashtestnet', + walletType: 'wallet:bitcoincashtestnet', // Explorers: blockExplorer: 'https://blockchair.com/bitcoin-cash/block/%s', @@ -35,7 +28,19 @@ const currencyInfo: EdgeCurrencyInfo = { symbolImage: `${IMAGE_SERVER_URL}/bitcoincash-logo-solo-64.png`, symbolImageDarkMono: `${IMAGE_SERVER_URL}/bitcoincash-logo-solo-64.png`, + denominations: [ + { name: 'TBCH', multiplier: '100000000', symbol: '₿' }, + { name: 'mTBCH', multiplier: '100000', symbol: 'm₿' }, + { name: 'cash', multiplier: '100', symbol: 'ƀ' } + ], + // Deprecated: + ...legacyMemoInfo, + defaultSettings: { + customFeeSettings: ['satPerByte'], + blockbookServers: [], + enableCustomServers: false + }, metaTokens: [] } diff --git a/src/common/utxobased/info/bitcoingold.ts b/src/common/utxobased/info/bitcoingold.ts index 29997c96..ff9ad2e0 100644 --- a/src/common/utxobased/info/bitcoingold.ts +++ b/src/common/utxobased/info/bitcoingold.ts @@ -3,20 +3,33 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'bitcoingold', - walletType: 'wallet:bitcoingold', currencyCode: 'BTG', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Bitcoin Gold', + memoOptions: utxoMemoOptions, + pluginId: 'bitcoingold', + walletType: 'wallet:bitcoingold', + + // Explorers: + addressExplorer: 'https://explorer.bitcoingold.org/insight/address/%s', + blockExplorer: 'https://explorer.bitcoingold.org/insight/block/%s', + transactionExplorer: 'https://explorer.bitcoingold.org/insight/tx/%s', + denominations: [ { name: 'BTG', multiplier: '100000000', symbol: '₿' }, { name: 'mBTG', multiplier: '100000', symbol: 'm₿' }, { name: 'bits', multiplier: '100', symbol: 'ƀ' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: [ @@ -28,22 +41,6 @@ const currencyInfo: EdgeCurrencyInfo = { ], enableCustomServers: false }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - addressExplorer: 'https://explorer.bitcoingold.org/insight/address/%s', - blockExplorer: 'https://explorer.bitcoingold.org/insight/block/%s', - transactionExplorer: 'https://explorer.bitcoingold.org/insight/tx/%s', - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/bitcoingoldtestnet.ts b/src/common/utxobased/info/bitcoingoldtestnet.ts index d7025ed5..d830a7a8 100644 --- a/src/common/utxobased/info/bitcoingoldtestnet.ts +++ b/src/common/utxobased/info/bitcoingoldtestnet.ts @@ -2,33 +2,38 @@ import { Psbt } from 'altcoin-js' import { EdgeCurrencyInfo } from 'edge-core-js/types' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'bitcoingoldtestnet', - walletType: 'wallet:bitcoingoldtestnet', currencyCode: 'TBTG', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Bitcoin Gold', + memoOptions: utxoMemoOptions, + pluginId: 'bitcoingoldtestnet', + walletType: 'wallet:bitcoingoldtestnet', + + // Explorers: + addressExplorer: 'https://explorer.bitcoingold.org/insight/address/%s', + blockExplorer: 'https://explorer.bitcoingold.org/insight/block/%s', + transactionExplorer: 'https://explorer.bitcoingold.org/insight/tx/%s', + denominations: [ { name: 'TBTG', multiplier: '100000000', symbol: '₿' }, { name: 'mTBTG', multiplier: '100000', symbol: 'm₿' }, { name: 'bits', multiplier: '100', symbol: 'ƀ' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: [], enableCustomServers: false }, - ...memoInfo, - - // Explorers: - addressExplorer: 'https://explorer.bitcoingold.org/insight/address/%s', - blockExplorer: 'https://explorer.bitcoingold.org/insight/block/%s', - transactionExplorer: 'https://explorer.bitcoingold.org/insight/tx/%s', - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/bitcoinsv.ts b/src/common/utxobased/info/bitcoinsv.ts index 2dccb646..a4953d06 100644 --- a/src/common/utxobased/info/bitcoinsv.ts +++ b/src/common/utxobased/info/bitcoinsv.ts @@ -10,34 +10,19 @@ import { AddressTypeEnum, scriptPubkeyToAddress } from '../keymanager/keymanager' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'bitcoinsv', - walletType: 'wallet:bitcoinsv', currencyCode: 'BSV', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Bitcoin SV', - denominations: [ - { name: 'BSV', multiplier: '100000000', symbol: '₿' }, - { name: 'mBSV', multiplier: '100000', symbol: 'm₿' }, - { name: 'cash', multiplier: '100', symbol: 'ƀ' } - ], - - // Configuration options: - defaultSettings: { - customFeeSettings: ['satPerByte'], - blockbookServers: ['wss://blockbook.siftbitcoin.com:9146'], - enableCustomServers: false - }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, + memoOptions: utxoMemoOptions, + pluginId: 'bitcoinsv', + walletType: 'wallet:bitcoinsv', // Explorers: blockExplorer: 'https://whatsonchain.com/block/%s', @@ -48,7 +33,19 @@ const currencyInfo: EdgeCurrencyInfo = { symbolImage: `${IMAGE_SERVER_URL}/bitcoinsv-logo-solo-64.png`, symbolImageDarkMono: `${IMAGE_SERVER_URL}/bitcoinsv-logo-solo-64.png`, + denominations: [ + { name: 'BSV', multiplier: '100000000', symbol: '₿' }, + { name: 'mBSV', multiplier: '100000', symbol: 'm₿' }, + { name: 'cash', multiplier: '100', symbol: 'ƀ' } + ], + // Deprecated: + ...legacyMemoInfo, + defaultSettings: { + customFeeSettings: ['satPerByte'], + blockbookServers: ['wss://blockbook.siftbitcoin.com:9146'], + enableCustomServers: false + }, metaTokens: [] } diff --git a/src/common/utxobased/info/bitcointestnet.ts b/src/common/utxobased/info/bitcointestnet.ts index 14c79e8f..10dd8990 100644 --- a/src/common/utxobased/info/bitcointestnet.ts +++ b/src/common/utxobased/info/bitcointestnet.ts @@ -2,13 +2,30 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { IMAGE_SERVER_URL } from '../../constants' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' export const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'bitcointestnet', - walletType: 'wallet:bitcointestnet', + canReplaceByFee: true, currencyCode: 'TESTBTC', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Bitcoin Testnet', + memoOptions: utxoMemoOptions, + pluginId: 'bitcointestnet', + walletType: 'wallet:bitcointestnet', + + // Explorers: + blockExplorer: 'https://blockchair.com/bitcoin/testnet/block/%s', + addressExplorer: 'https://blockchair.com/bitcoin/testnet/address/%s', + transactionExplorer: 'https://blockchair.com/bitcoin/testnet/transaction/%s', + + // Images: + symbolImage: `${IMAGE_SERVER_URL}/bitcoin-logo-solo-64.png`, + symbolImageDarkMono: `${IMAGE_SERVER_URL}/bitcoin-logo-solo-64.png`, + denominations: [ { name: 'TESTBTC', multiplier: '100000000', symbol: '₿' }, { name: 'mTESTBTC', multiplier: '100000', symbol: 'm₿' }, @@ -16,33 +33,13 @@ export const currencyInfo: EdgeCurrencyInfo = { { name: 'sats', multiplier: '1', symbol: 's' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: ['wss://tbtc1.trezor.io', 'wss://tbtc2.trezor.io'], enableCustomServers: false }, - canReplaceByFee: true, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - blockExplorer: 'https://blockchair.com/bitcoin/testnet/block/%s', - addressExplorer: 'https://blockchair.com/bitcoin/testnet/address/%s', - transactionExplorer: 'https://blockchair.com/bitcoin/testnet/transaction/%s', - - // Images: - symbolImage: `${IMAGE_SERVER_URL}/bitcoin-logo-solo-64.png`, - symbolImageDarkMono: `${IMAGE_SERVER_URL}/bitcoin-logo-solo-64.png`, - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/commonInfo.ts b/src/common/utxobased/info/commonInfo.ts index 0f5b3f2d..846661c7 100644 --- a/src/common/utxobased/info/commonInfo.ts +++ b/src/common/utxobased/info/commonInfo.ts @@ -1,16 +1,25 @@ -import { EdgeCurrencyInfo } from 'edge-core-js/types' +import { EdgeCurrencyInfo, EdgeMemoOption } from 'edge-core-js/types' -export const memoInfo: Partial = { - memoOptions: [ - { - type: 'hex', - hidden: true, - maxBytes: 80, - memoName: 'OP_RETURN' - } - ], +export const utxoCustomFeeTemplate: EdgeCurrencyInfo['customFeeTemplate'] = [ + { + type: 'nativeAmount', + key: 'satPerByte', + displayName: 'Satoshis Per Byte', + displayMultiplier: '0' + } +] - // Deprecated: +export const utxoMemoOptions: EdgeMemoOption[] = [ + { + type: 'hex', + hidden: true, + maxBytes: 80, + memoName: 'OP_RETURN' + } +] + +// Deprecated: +export const legacyMemoInfo: Partial = { memoMaxLength: 80, memoType: 'text' } diff --git a/src/common/utxobased/info/dash.ts b/src/common/utxobased/info/dash.ts index 4c767e2d..abad04b3 100644 --- a/src/common/utxobased/info/dash.ts +++ b/src/common/utxobased/info/dash.ts @@ -4,19 +4,33 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' import { IProcessorTransaction } from '../db/types' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'dash', - walletType: 'wallet:dash', currencyCode: 'DASH', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Dash', + memoOptions: utxoMemoOptions, + pluginId: 'dash', + walletType: 'wallet:dash', + + // Explorers: + addressExplorer: 'https://blockchair.com/dash/address/%s?from=edgeapp', + blockExplorer: 'https://blockchair.com/dash/block/%s?from=edgeapp', + transactionExplorer: + 'https://blockchair.com/dash/transaction/%s?from=edgeapp', + denominations: [ { name: 'DASH', multiplier: '100000000', symbol: 'Ð' }, { name: 'mDASH', multiplier: '100000', symbol: 'mÐ' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: [ @@ -28,23 +42,6 @@ const currencyInfo: EdgeCurrencyInfo = { ], enableCustomServers: false }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - addressExplorer: 'https://blockchair.com/dash/address/%s?from=edgeapp', - blockExplorer: 'https://blockchair.com/dash/block/%s?from=edgeapp', - transactionExplorer: - 'https://blockchair.com/dash/transaction/%s?from=edgeapp', - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/digibyte.ts b/src/common/utxobased/info/digibyte.ts index 462ce35c..5917930a 100644 --- a/src/common/utxobased/info/digibyte.ts +++ b/src/common/utxobased/info/digibyte.ts @@ -2,40 +2,37 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'digibyte', - walletType: 'wallet:digibyte', currencyCode: 'DGB', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'DigiByte', + memoOptions: utxoMemoOptions, + pluginId: 'digibyte', + walletType: 'wallet:digibyte', + + // Explorers: + addressExplorer: 'https://digiexplorer.info/address/%s', + blockExplorer: 'https://digiexplorer.info/block/%s', + transactionExplorer: 'https://digiexplorer.info/tx/%s', + denominations: [ { name: 'DGB', multiplier: '100000000', symbol: 'Ɗ' }, { name: 'mDGB', multiplier: '100000', symbol: 'mƊ' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: ['wss://dgb1.trezor.io', 'wss://dgb2.trezor.io'], enableCustomServers: false }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - addressExplorer: 'https://digiexplorer.info/address/%s', - blockExplorer: 'https://digiexplorer.info/block/%s', - transactionExplorer: 'https://digiexplorer.info/tx/%s', - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/dogecoin.ts b/src/common/utxobased/info/dogecoin.ts index 968d0cd8..ad8affc3 100644 --- a/src/common/utxobased/info/dogecoin.ts +++ b/src/common/utxobased/info/dogecoin.ts @@ -2,17 +2,31 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' import { makeDogeUtxoPicker } from './utxoPickers/dogeUtxoPicker' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'dogecoin', - walletType: 'wallet:dogecoin', currencyCode: 'DOGE', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Dogecoin', + memoOptions: utxoMemoOptions, + pluginId: 'dogecoin', + walletType: 'wallet:dogecoin', + + // Explorers: + addressExplorer: 'https://blockchair.com/dogecoin/address/%s?from=edgeapp', + blockExplorer: 'https://blockchair.com/dogecoin/block/%s?from=edgeapp', + transactionExplorer: + 'https://blockchair.com/dogecoin/transaction/%s?from=edgeapp', + denominations: [{ name: 'DOGE', multiplier: '100000000', symbol: 'Ð' }], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: [ @@ -24,23 +38,6 @@ const currencyInfo: EdgeCurrencyInfo = { ], enableCustomServers: false }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - addressExplorer: 'https://blockchair.com/dogecoin/address/%s?from=edgeapp', - blockExplorer: 'https://blockchair.com/dogecoin/block/%s?from=edgeapp', - transactionExplorer: - 'https://blockchair.com/dogecoin/transaction/%s?from=edgeapp', - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/eboost.ts b/src/common/utxobased/info/eboost.ts index ff3ca093..70d4d39d 100644 --- a/src/common/utxobased/info/eboost.ts +++ b/src/common/utxobased/info/eboost.ts @@ -2,40 +2,37 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'eboost', - walletType: 'wallet:eboost', currencyCode: 'EBST', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'eBoost', + memoOptions: utxoMemoOptions, + pluginId: 'eboost', + walletType: 'wallet:eboost', + + // Explorers: + addressExplorer: 'https://www.blockexperts.com/ebst/address/%s', + blockExplorer: 'https://www.blockexperts.com/ebst/hash/%s', + transactionExplorer: 'https://www.blockexperts.com/ebst/tx/%s', + denominations: [ { name: 'EBST', multiplier: '100000000', symbol: 'EBST' }, { name: 'mEBST', multiplier: '100000', symbol: 'mEBST' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: [], enableCustomServers: false }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - addressExplorer: 'https://www.blockexperts.com/ebst/address/%s', - blockExplorer: 'https://www.blockexperts.com/ebst/hash/%s', - transactionExplorer: 'https://www.blockexperts.com/ebst/tx/%s', - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/feathercoin.ts b/src/common/utxobased/info/feathercoin.ts index 9494f716..0f9d8e07 100644 --- a/src/common/utxobased/info/feathercoin.ts +++ b/src/common/utxobased/info/feathercoin.ts @@ -3,33 +3,19 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { IMAGE_SERVER_URL } from '../../constants' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' export const currencyInfo: EdgeCurrencyInfo = { + currencyCode: 'FTC', + customFeeTemplate: utxoCustomFeeTemplate, + displayName: 'Feathercoin', + memoOptions: utxoMemoOptions, pluginId: 'feathercoin', walletType: 'wallet:feathercoin', - displayName: 'Feathercoin', - currencyCode: 'FTC', - denominations: [ - { name: 'FTC', multiplier: '100000000', symbol: 'F' }, - { name: 'mFTC', multiplier: '100000', symbol: 'mF' } - ], - - // Configuration options: - defaultSettings: { - customFeeSettings: ['satPerByte'], - blockbookServers: ['wss://blockbook.feathercoin.com'], - enableCustomServers: false - }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, // Explorers: addressExplorer: 'https://fsight.chain.tips/address/%s', @@ -40,7 +26,18 @@ export const currencyInfo: EdgeCurrencyInfo = { symbolImage: `${IMAGE_SERVER_URL}/feathercoin-logo-solo-64.png`, symbolImageDarkMono: `${IMAGE_SERVER_URL}/feathercoin-logo-solo-64.png`, + denominations: [ + { name: 'FTC', multiplier: '100000000', symbol: 'F' }, + { name: 'mFTC', multiplier: '100000', symbol: 'mF' } + ], + // Deprecated: + ...legacyMemoInfo, + defaultSettings: { + customFeeSettings: ['satPerByte'], + blockbookServers: ['wss://blockbook.feathercoin.com'], + enableCustomServers: false + }, metaTokens: [] } diff --git a/src/common/utxobased/info/groestlcoin.ts b/src/common/utxobased/info/groestlcoin.ts index 25c89ee9..3eefc2f6 100644 --- a/src/common/utxobased/info/groestlcoin.ts +++ b/src/common/utxobased/info/groestlcoin.ts @@ -6,42 +6,39 @@ import * as wifgrs from 'wifgrs' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'groestlcoin', - walletType: 'wallet:groestlcoin', currencyCode: 'GRS', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Groestlcoin', + memoOptions: utxoMemoOptions, + pluginId: 'groestlcoin', + walletType: 'wallet:groestlcoin', + + // Explorers: + addressExplorer: + 'https://blockchair.com/groestlcoin/address/%s?from=edgeapp?from=edgeapp', + blockExplorer: 'https://blockchair.com/groestlcoin/block/%s?from=edgeapp', + transactionExplorer: + 'https://blockchair.com/groestlcoin/transaction/%s?from=edgeapp', + denominations: [ { name: 'GRS', multiplier: '100000000', symbol: 'G' }, { name: 'mGRS', multiplier: '100000', symbol: 'mG' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: ['wss://blockbook.groestlcoin.org'], enableCustomServers: false }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - addressExplorer: - 'https://blockchair.com/groestlcoin/address/%s?from=edgeapp?from=edgeapp', - blockExplorer: 'https://blockchair.com/groestlcoin/block/%s?from=edgeapp', - transactionExplorer: - 'https://blockchair.com/groestlcoin/transaction/%s?from=edgeapp', - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/litecoin.ts b/src/common/utxobased/info/litecoin.ts index 119c38da..40079bd9 100644 --- a/src/common/utxobased/info/litecoin.ts +++ b/src/common/utxobased/info/litecoin.ts @@ -3,19 +3,37 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { IMAGE_SERVER_URL } from '../../constants' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' export const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'litecoin', - walletType: 'wallet:litecoin', + canReplaceByFee: false, currencyCode: 'LTC', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Litecoin', + memoOptions: utxoMemoOptions, + pluginId: 'litecoin', + walletType: 'wallet:litecoin', + + // Explorers: + blockExplorer: 'https://blockchair.com/litecoin/block/%s', + addressExplorer: 'https://blockchair.com/litecoin/address/%s', + transactionExplorer: 'https://blockchair.com/litecoin/transaction/%s', + + // Images: + symbolImage: `${IMAGE_SERVER_URL}/litecoin-logo-solo-64.png`, + symbolImageDarkMono: `${IMAGE_SERVER_URL}/litecoin-logo-solo-64.png`, + denominations: [ { name: 'LTC', multiplier: '100000000', symbol: 'Ł' }, { name: 'mLTC', multiplier: '100000', symbol: 'mŁ' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: [ @@ -27,27 +45,6 @@ export const currencyInfo: EdgeCurrencyInfo = { ], enableCustomServers: false }, - canReplaceByFee: false, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - blockExplorer: 'https://blockchair.com/litecoin/block/%s', - addressExplorer: 'https://blockchair.com/litecoin/address/%s', - transactionExplorer: 'https://blockchair.com/litecoin/transaction/%s', - - // Images: - symbolImage: `${IMAGE_SERVER_URL}/litecoin-logo-solo-64.png`, - symbolImageDarkMono: `${IMAGE_SERVER_URL}/litecoin-logo-solo-64.png`, - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/qtum.ts b/src/common/utxobased/info/qtum.ts index e76120ae..08158764 100644 --- a/src/common/utxobased/info/qtum.ts +++ b/src/common/utxobased/info/qtum.ts @@ -2,37 +2,34 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'qtum', - walletType: 'wallet:qtum', currencyCode: 'QTUM', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Qtum', - denominations: [{ name: 'QTUM', multiplier: '100000000', symbol: 'Q' }], - - // Configuration options: - defaultSettings: { - customFeeSettings: ['satPerByte'], - blockbookServers: [], - enableCustomServers: false - }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, + memoOptions: utxoMemoOptions, + pluginId: 'qtum', + walletType: 'wallet:qtum', // Explorers: addressExplorer: 'https://explorer.qtum.org/address/%s', blockExplorer: 'https://explorer.qtum.org/block/%s', transactionExplorer: 'https://explorer.qtum.org/tx/%s', + denominations: [{ name: 'QTUM', multiplier: '100000000', symbol: 'Q' }], + // Deprecated: + ...legacyMemoInfo, + defaultSettings: { + customFeeSettings: ['satPerByte'], + blockbookServers: [], + enableCustomServers: false + }, metaTokens: [] } diff --git a/src/common/utxobased/info/ravencoin.ts b/src/common/utxobased/info/ravencoin.ts index 4f5bf020..79679915 100644 --- a/src/common/utxobased/info/ravencoin.ts +++ b/src/common/utxobased/info/ravencoin.ts @@ -2,37 +2,34 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'ravencoin', - walletType: 'wallet:ravencoin', currencyCode: 'RVN', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Ravencoin', - denominations: [{ name: 'RVN', multiplier: '100000000', symbol: 'R' }], - - // Configuration options: - defaultSettings: { - customFeeSettings: ['satPerByte'], - blockbookServers: ['wss://blockbook.ravencoin.org'], - enableCustomServers: false - }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, + memoOptions: utxoMemoOptions, + pluginId: 'ravencoin', + walletType: 'wallet:ravencoin', // Explorers: addressExplorer: 'https://ravencoin.network/address/%s', blockExplorer: 'https://ravencoin.network/block/%s', transactionExplorer: 'https://ravencoin.network/tx/%s', + denominations: [{ name: 'RVN', multiplier: '100000000', symbol: 'R' }], + // Deprecated: + ...legacyMemoInfo, + defaultSettings: { + customFeeSettings: ['satPerByte'], + blockbookServers: ['wss://blockbook.ravencoin.org'], + enableCustomServers: false + }, metaTokens: [] } diff --git a/src/common/utxobased/info/smartcash.ts b/src/common/utxobased/info/smartcash.ts index b3579ed5..e6b44b57 100644 --- a/src/common/utxobased/info/smartcash.ts +++ b/src/common/utxobased/info/smartcash.ts @@ -5,40 +5,37 @@ import * as wifsmart from 'wif-smart' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'smartcash', - walletType: 'wallet:smartcash', currencyCode: 'SMART', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'SmartCash', + memoOptions: utxoMemoOptions, + pluginId: 'smartcash', + walletType: 'wallet:smartcash', + + // Explorers: + addressExplorer: 'https://insight.smartcash.cc/address/%s', + blockExplorer: 'https://insight.smartcash.cc/block/%s', + transactionExplorer: 'https://insight.smartcash.cc/tx/%s', + denominations: [ { name: 'SMART', multiplier: '100000000', symbol: 'S' }, { name: 'mSMART', multiplier: '100000', symbol: 'mS' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: [], enableCustomServers: false }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - addressExplorer: 'https://insight.smartcash.cc/address/%s', - blockExplorer: 'https://insight.smartcash.cc/block/%s', - transactionExplorer: 'https://insight.smartcash.cc/tx/%s', - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/ufo.ts b/src/common/utxobased/info/ufo.ts index 36e4f74c..91063ae2 100644 --- a/src/common/utxobased/info/ufo.ts +++ b/src/common/utxobased/info/ufo.ts @@ -2,40 +2,37 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'ufo', - walletType: 'wallet:ufo', currencyCode: 'UFO', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'UFO', + memoOptions: utxoMemoOptions, + pluginId: 'ufo', + walletType: 'wallet:ufo', + + // Explorers: + addressExplorer: 'https://explorer.ufobject.com/address/%s', + blockExplorer: 'https://explorer.ufobject.com/block/%s', + transactionExplorer: 'https://explorer.ufobject.com/tx/%s', + denominations: [ { name: 'UFO', multiplier: '100000000', symbol: 'Ʉ' }, { name: 'kUFO', multiplier: '100000000000', symbol: 'kɄ' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: ['wss://blockbook.ufobject.com'], enableCustomServers: false }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - addressExplorer: 'https://explorer.ufobject.com/address/%s', - blockExplorer: 'https://explorer.ufobject.com/block/%s', - transactionExplorer: 'https://explorer.ufobject.com/tx/%s', - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/vertcoin.ts b/src/common/utxobased/info/vertcoin.ts index 7715d509..11cb01b6 100644 --- a/src/common/utxobased/info/vertcoin.ts +++ b/src/common/utxobased/info/vertcoin.ts @@ -2,19 +2,32 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' const currencyInfo: EdgeCurrencyInfo = { - pluginId: 'vertcoin', - walletType: 'wallet:vertcoin', currencyCode: 'VTC', + customFeeTemplate: utxoCustomFeeTemplate, displayName: 'Vertcoin', + memoOptions: utxoMemoOptions, + pluginId: 'vertcoin', + walletType: 'wallet:vertcoin', + + // Explorers: + addressExplorer: 'https://insight.vertcoin.org/address/%s', + blockExplorer: 'https://insight.vertcoin.org/block/%s', + transactionExplorer: 'https://insight.vertcoin.org/tx/%s', + denominations: [ { name: 'VTC', multiplier: '100000000', symbol: 'V' }, { name: 'mVTC', multiplier: '100000', symbol: 'mV' } ], - // Configuration options: + // Deprecated: + ...legacyMemoInfo, defaultSettings: { customFeeSettings: ['satPerByte'], blockbookServers: [ @@ -26,22 +39,6 @@ const currencyInfo: EdgeCurrencyInfo = { ], enableCustomServers: false }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, - - // Explorers: - addressExplorer: 'https://insight.vertcoin.org/address/%s', - blockExplorer: 'https://insight.vertcoin.org/block/%s', - transactionExplorer: 'https://insight.vertcoin.org/tx/%s', - - // Deprecated: metaTokens: [] } diff --git a/src/common/utxobased/info/zcoin.ts b/src/common/utxobased/info/zcoin.ts index 637a2fe9..f0a2987d 100644 --- a/src/common/utxobased/info/zcoin.ts +++ b/src/common/utxobased/info/zcoin.ts @@ -3,33 +3,19 @@ import { EdgeCurrencyInfo } from 'edge-core-js/types' import { IMAGE_SERVER_URL } from '../../constants' import { CoinInfo, EngineInfo, PluginInfo } from '../../plugin/types' import { maximumFeeRateCalculator } from '../../plugin/util/maximumFeeRateCalculator' -import { memoInfo } from './commonInfo' +import { + legacyMemoInfo, + utxoCustomFeeTemplate, + utxoMemoOptions +} from './commonInfo' export const currencyInfo: EdgeCurrencyInfo = { + currencyCode: 'FIRO', + customFeeTemplate: utxoCustomFeeTemplate, + displayName: 'Firo', + memoOptions: utxoMemoOptions, pluginId: 'zcoin', walletType: 'wallet:zcoin', - displayName: 'Firo', - currencyCode: 'FIRO', - denominations: [ - { name: 'FIRO', multiplier: '100000000', symbol: 'ƒ' }, - { name: 'mFIRO', multiplier: '100000', symbol: 'mƒ' } - ], - - // Configuration options: - defaultSettings: { - customFeeSettings: ['satPerByte'], - blockbookServers: ['wss://blockbook.firo.org'], - enableCustomServers: false - }, - customFeeTemplate: [ - { - type: 'nativeAmount', - key: 'satPerByte', - displayName: 'Satoshis Per Byte', - displayMultiplier: '0' - } - ], - ...memoInfo, // Explorers: addressExplorer: 'https://insight.zcoin.io/address/%s', @@ -40,7 +26,18 @@ export const currencyInfo: EdgeCurrencyInfo = { symbolImage: `${IMAGE_SERVER_URL}/zcoin-logo-solo-64.png`, symbolImageDarkMono: `${IMAGE_SERVER_URL}/zcoin-logo-solo-64.png`, + denominations: [ + { name: 'FIRO', multiplier: '100000000', symbol: 'ƒ' }, + { name: 'mFIRO', multiplier: '100000', symbol: 'mƒ' } + ], + // Deprecated: + ...legacyMemoInfo, + defaultSettings: { + customFeeSettings: ['satPerByte'], + blockbookServers: ['wss://blockbook.firo.org'], + enableCustomServers: false + }, metaTokens: [] }