UNPKG

js-oip

Version:

A Javascript Library to fully interact with the Open Index Protocol

40 lines (36 loc) 1.04 kB
"use strict"; require("core-js/modules/es6.regexp.to-string"); var _insightExplorer = require("insight-explorer"); var _btc = require("../../../util/btc"); const floFeePerKb = 10000; module.exports = { name: 'floRegtest', displayName: 'Flo Regtest', ticker: 'rFLO', satPerCoin: 1e8, feePerKb: floFeePerKb, feePerByte: floFeePerKb / 1024, maxFeePerByte: 100, minFee: floFeePerKb, dust: 100000, txVersion: 2, explorer: new _insightExplorer.Insight('https://testnet.flocha.in/api'), getExtraBytes: function getExtraBytes(options) { let fData = options.floData || ''; let stringBuffer = Buffer.from(fData, 'utf8'); let lengthBuffer = (0, _btc.varIntBuffer)(stringBuffer.length); let builtString = lengthBuffer.toString('hex') + stringBuffer.toString('hex'); return builtString; }, network: { bip32: { public: 0x013440e2, private: 0x01343c23 }, slip44: 1, messagePrefix: '\u001bFlorincoin Signed Message:\n', pubKeyHash: 115, scriptHash: 58, wif: 239 } };