UNPKG

bitcore-wallet-service

Version:
352 lines 9.46 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Defaults = void 0; exports.Defaults = { MIN_FEE_PER_KB: 0, MAX_KEYS: 100, DELETE_LOCKTIME: 600, BACKOFF_OFFSET: 10, BACKOFF_TIME: 600, MAX_MAIN_ADDRESS_GAP: 20, SCAN_ADDRESS_GAP: 30, FEE_LEVELS: { btc: [ { name: 'urgent', nbBlocks: 2, multiplier: 1.5, defaultValue: 75000 }, { name: 'priority', nbBlocks: 2, defaultValue: 50000 }, { name: 'normal', nbBlocks: 3, defaultValue: 30000 }, { name: 'economy', nbBlocks: 6, defaultValue: 25000 }, { name: 'superEconomy', nbBlocks: 24, defaultValue: 10000 } ], bch: [ { name: 'normal', nbBlocks: 2, multiplier: 1.05, defaultValue: 2000 } ], eth: [ { name: 'urgent', nbBlocks: 1, defaultValue: 10000000000 }, { name: 'priority', nbBlocks: 2, defaultValue: 5000000000 }, { name: 'normal', nbBlocks: 3, defaultValue: 1000000000 }, { name: 'economy', nbBlocks: 4, defaultValue: 1000000000 }, { name: 'superEconomy', nbBlocks: 4, defaultValue: 1000000000 } ], matic: [ { name: 'urgent', nbBlocks: 1, defaultValue: 300000000000 }, { name: 'priority', nbBlocks: 2, defaultValue: 250000000000 }, { name: 'normal', nbBlocks: 3, defaultValue: 200000000000 }, { name: 'economy', nbBlocks: 4, defaultValue: 200000000000 }, { name: 'superEconomy', nbBlocks: 4, defaultValue: 200000000000 } ], arb: [ { name: 'urgent', nbBlocks: 1, defaultValue: 3000000000 }, { name: 'priority', nbBlocks: 2, defaultValue: 2500000000 }, { name: 'normal', nbBlocks: 3, defaultValue: 2000000000 }, { name: 'economy', nbBlocks: 4, defaultValue: 2000000000 }, { name: 'superEconomy', nbBlocks: 4, defaultValue: 2000000000 } ], base: [ { name: 'urgent', nbBlocks: 1, defaultValue: 3000000000 }, { name: 'priority', nbBlocks: 2, defaultValue: 2500000000 }, { name: 'normal', nbBlocks: 3, defaultValue: 2000000000 }, { name: 'economy', nbBlocks: 4, defaultValue: 2000000000 }, { name: 'superEconomy', nbBlocks: 4, defaultValue: 2000000000 } ], op: [ { name: 'urgent', nbBlocks: 1, defaultValue: 3000000000 }, { name: 'priority', nbBlocks: 2, defaultValue: 2500000000 }, { name: 'normal', nbBlocks: 3, defaultValue: 2000000000 }, { name: 'economy', nbBlocks: 4, defaultValue: 2000000000 }, { name: 'superEconomy', nbBlocks: 4, defaultValue: 2000000000 } ], xrp: [ { name: 'normal', nbBlocks: 1, defaultValue: 12 } ], doge: [ { name: 'normal', nbBlocks: 2, defaultValue: 100000000 } ], ltc: [ { name: 'urgent', nbBlocks: 2, defaultValue: 150000 }, { name: 'priority', nbBlocks: 2, defaultValue: 100000 }, { name: 'normal', nbBlocks: 3, defaultValue: 100000 }, { name: 'economy', nbBlocks: 6, defaultValue: 10000 }, { name: 'superEconomy', nbBlocks: 24, defaultValue: 10000 } ], sol: [ { name: 'normal', nbBlocks: 1, defaultValue: 5000 } ], }, FEE_LEVELS_FALLBACK: 2, FIAT_RATE_PROVIDER: 'BitPay', FIAT_RATE_FETCH_INTERVAL: 10, FIAT_RATE_MAX_LOOK_BACK_TIME: 120, HISTORY_LIMIT: 1001, UTXO_SELECTION_MAX_SINGLE_UTXO_FACTOR: 2, UTXO_SELECTION_MIN_TX_AMOUNT_VS_UTXO_FACTOR: 0.1, UTXO_SELECTION_MAX_FEE_VS_TX_AMOUNT_FACTOR: 0.05, UTXO_SELECTION_MAX_FEE_VS_SINGLE_UTXO_FEE_FACTOR: 5, MIN_OUTPUT_AMOUNT: 546, CONFIRMATIONS_TO_START_CACHING: 6 * 6, HISTORY_CACHE_ADDRESS_THRESOLD: 100, BALANCE_CACHE_ADDRESS_THRESOLD: 100, BALANCE_CACHE_DURATION: 10, BLOCKHEIGHT_CACHE_TIME: { default: 30 * 60 * 1000, sol: 5 * 1000 }, FEE_LEVEL_CACHE_DURATION: 6 * 60 * 1000, COPAY_VERSION_CACHE_DURATION: 6 * 60 * 1000, ONE_INCH_CACHE_DURATION: 1 * 60 * 1000, COIN_GECKO_CACHE_DURATION: 5 * 60 * 1000, MAX_NOTIFICATIONS_TIMESPAN: 60 * 60 * 24 * 14, NOTIFICATIONS_TIMESPAN: 60, SESSION_EXPIRATION: 1 * 60 * 60, RateLimit: { createWallet: { windowMs: 60 * 60 * 1000, delayAfter: 8, delayMs: 3000, max: 15, message: 'Too many wallets created from this IP, please try again after an hour' }, estimateFee: { windowMs: 60 * 10 * 1000, delayAfter: 5, delayMs: 300, max: 10, message: 'Too many request' } }, COIN: 'btc', EVM_COIN: 'eth', CHAIN: 'btc', EVM_CHAIN: 'eth', INSIGHT_REQUEST_POOL_SIZE: 10, INSIGHT_TIMEOUT: 30000, ADDRESS_SYNC_BATCH_SIZE: 500000, LOCK_WAIT_TIME: 5 * 1000, LOCK_EXE_TIME: 40 * 1000, SERVER_EXE_TIME: 40 * 1000 * 1.5, BE_KEY_SALT: 'bws-auth-keysalt', BROADCAST_RETRY_TIME: 350, MAX_TX_SIZE_IN_KB_BTC: 100, MAX_TX_SIZE_IN_KB_BCH: 100, MAX_TX_SIZE_IN_KB_DOGE: 100, MAX_FEE_PER_KB: { btc: 10000 * 1000, bch: 10000 * 1000, eth: 1000000000000, matic: 1000000000000, arb: 1000000000000, base: 1000000000000, op: 1000000000000, xrp: 1000000000000, doge: 100000000 * 100, ltc: 10000 * 1000, sol: 15000 }, MIN_TX_FEE: { btc: 0, bch: 0, eth: 0, matic: 0, arb: 0, base: 0, op: 0, xrp: 0, doge: 0, ltc: 0, sol: 0, }, MAX_TX_FEE: { btc: 0.05 * 1e8, bch: 0.05 * 1e8, eth: 1 * 1e18, matic: 1 * 1e18, arb: 1 * 1e18, base: 1 * 1e18, op: 1 * 1e18, xrp: 1 * 1e6, doge: 400 * 1e8, ltc: 0.05 * 1e8 }, DEFAULT_GAS_LIMIT: 60000, DEFAULT_ERC20_GAS_LIMIT: 160000, DEFAULT_MULTISEND_RECIPIENT_GAS_LIMIT: 45000, DEFAULT_MULTISEND_RECIPIENT_ERC20_GAS_LIMIT: 65000, MIN_GAS_LIMIT: 21000, MS_GAS_LIMIT_BUFFER_PERCENT: 10 / 100, MIN_XRP_BALANCE: 1000000, MIN_SOL_BALANCE: 1002240, PUSH_NOTIFICATION_SUBS_TIME: 10 * 60 * 1000, PUSH_NOTIFICATION_LIMIT: 10, FIAT_CURRENCIES: [ { code: 'USD', name: 'US Dollar' }, { code: 'INR', name: 'Indian Rupee' }, { code: 'GBP', name: 'Pound Sterling' }, { code: 'EUR', name: 'Eurozone Euro' }, { code: 'CAD', name: 'Canadian Dollar' }, { code: 'COP', name: 'Colombian Peso' }, { code: 'NGN', name: 'Nigerian Naira' }, { code: 'BRL', name: 'Brazilian Real' }, { code: 'ARS', name: 'Argentine Peso' }, { code: 'AUD', name: 'Australian Dollar' }, { code: 'JPY', name: 'Japanese Yen' }, { code: 'NZD', name: 'New Zealand Dollar' } ], }; //# sourceMappingURL=defaults.js.map