Near unrestrained btc -> flo

This commit is contained in:
OstlerDev 2018-01-15 16:27:33 -08:00
parent 95dc8b2910
commit 16416357a2
24 changed files with 237 additions and 236 deletions

4
.vscode/launch.json vendored
View File

@ -5,8 +5,8 @@
{ {
"type": "node", "type": "node",
"request": "launch", "request": "launch",
"name": "bitcored", "name": "flocored",
"program": "${workspaceRoot}/bin/bitcored" "program": "${workspaceRoot}/bin/flocored"
} }
] ]
} }

View File

@ -1,14 +1,14 @@
Contributing to Bitcore Contributing to Flocore
======= =======
We're working hard to make *bitcore* the most powerful JavaScript library for working with bitcoin. Our goal is to have *bitcore* be a library that can be used by anyone interested in bitcoin, and to level expertise differences with great design and documentation. We're working hard to make *flocore* the most powerful JavaScript library for working with florincoin. Our goal is to have *flocore* be a library that can be used by anyone interested in florincoin, and to level expertise differences with great design and documentation.
## Community ## Community
If there are any questions, etc., please feel to ask in one of the community channels: If there are any questions, etc., please feel to ask in one of the community channels:
- https://labs.bitpay.com/c/bitcore (Support Forum) - https://labs.bitpay.com/c/flocore (Support Forum)
- https://gitter.im/bitpay/bitcore (Development Chat) - https://gitter.im/bitpay/flocore (Development Chat)
## Quick Checklist ## Quick Checklist
@ -20,7 +20,7 @@ Ideally, please make sure to run:
## Design Guidelines ## Design Guidelines
These are some global design goals in bitcore that any change must adhere. These are some global design goals in flocore that any change must adhere.
### D1 - Naming Matters ### D1 - Naming Matters
@ -40,7 +40,7 @@ Write a test for all your code. We encourage Test Driven Development so we know
Interfaces should accept as many types of arguments as possible, so there's no mental tax on using them: we want to avoid questions such as "should I use a string here or a buffer?", "what happens if I'm not sure if the type of this variable is an Address instance or a string with it encoded in base-58?" or "what kind of object will I receive after calling this function?". Interfaces should accept as many types of arguments as possible, so there's no mental tax on using them: we want to avoid questions such as "should I use a string here or a buffer?", "what happens if I'm not sure if the type of this variable is an Address instance or a string with it encoded in base-58?" or "what kind of object will I receive after calling this function?".
Accept a wide variety of use cases and arguments, always return an internal form of an object. For example, the class `PublicKey` can accept strings or buffers with a DER encoded public key (either compressed or uncompressed), another PublicKey, a PrivateKey, or a Point, an instance of the `elliptic.js` library with the point in bitcoin's elliptic curve that represents the public key. Accept a wide variety of use cases and arguments, always return an internal form of an object. For example, the class `PublicKey` can accept strings or buffers with a DER encoded public key (either compressed or uncompressed), another PublicKey, a PrivateKey, or a Point, an instance of the `elliptic.js` library with the point in florincoin's elliptic curve that represents the public key.
### D4 - Consistency Everywhere ### D4 - Consistency Everywhere
@ -91,7 +91,7 @@ var bufferUtil = require('./util/buffer');
#### G7 - Standard Methods #### G7 - Standard Methods
When possible, bitcore objects should have standard methods on an instance prototype: When possible, flocore objects should have standard methods on an instance prototype:
* `toObject/toJSON` - A plain JavaScript object that `JSON.stringify` can call * `toObject/toJSON` - A plain JavaScript object that `JSON.stringify` can call
* `toString` - A string representation of the instance * `toString` - A string representation of the instance
* `toBuffer` - A hex Buffer * `toBuffer` - A hex Buffer
@ -101,7 +101,7 @@ These should have a matching static method that can be used for instantiation:
* `fromString` - Should be able to instantiate with output from `toString` * `fromString` - Should be able to instantiate with output from `toString`
* `fromBuffer` - Should likewise be able to instantiate from output from `toBuffer` * `fromBuffer` - Should likewise be able to instantiate from output from `toBuffer`
`JSON.stringify` and `JSON.parse` are expected to be handled outside of the scope of Bitcore methods. For example, calling `JSON.stringify` on an Bitcore object will behave as expected and call `transaction.toJSON()` and then stringify it: `JSON.stringify` and `JSON.parse` are expected to be handled outside of the scope of Flocore methods. For example, calling `JSON.stringify` on an Flocore object will behave as expected and call `transaction.toJSON()` and then stringify it:
```javascript ```javascript
var transactionString = JSON.stringify(transaction); var transactionString = JSON.stringify(transaction);
@ -116,7 +116,7 @@ var tx = new Transaction(data);
### Errors ### Errors
#### E1 - Use bitcore.Errors #### E1 - Use flocore.Errors
We've designed a structure for Errors to follow and are slowly migrating to it. We've designed a structure for Errors to follow and are slowly migrating to it.
@ -206,14 +206,14 @@ Don't write long tests, write helper functions to make them be as short and conc
Inputs for tests should not be generated randomly. Also, the type and structure of outputs should be checked. Inputs for tests should not be generated randomly. Also, the type and structure of outputs should be checked.
#### T3 - Require 'bitcore' and Look up Classes from There #### T3 - Require 'flocore' and Look up Classes from There
This helps to make tests more useful as examples, and more independent of where they are placed. This also helps prevent forgetting to include all submodules in the bitcore object. This helps to make tests more useful as examples, and more independent of where they are placed. This also helps prevent forgetting to include all submodules in the flocore object.
DO: DO:
```javascript ```javascript
var bitcore = require('../'); var flocore = require('../');
var PublicKey = bitcore.PublicKey; var PublicKey = flocore.PublicKey;
``` ```
DON'T: DON'T:
```javascript ```javascript
@ -246,7 +246,7 @@ git checkout -b remove/some-file
We expect pull requests to be rebased to the master branch before merging: We expect pull requests to be rebased to the master branch before merging:
```sh ```sh
git remote add bitpay git@github.com:bitpay/bitcore.git git remote add bitpay git@github.com:bitpay/flocore.git
git pull --rebase bitpay master git pull --rebase bitpay master
``` ```
@ -258,11 +258,11 @@ git push origin your_branch_name
git push origin feature/some-new-stuff git push origin feature/some-new-stuff
git push origin fix/some-bug git push origin fix/some-bug
``` ```
Finally go to [github.com/bitpay/bitcore](https://github.com/bitpay/bitcore) in your web browser and issue a new pull request. Finally go to [github.com/bitpay/flocore](https://github.com/bitpay/flocore) in your web browser and issue a new pull request.
Main contributors will review your code and possibly ask for changes before your code is pulled in to the main repository. We'll check that all tests pass, review the coding style, and check for general code correctness. If everything is OK, we'll merge your pull request and your code will be part of bitcore. Main contributors will review your code and possibly ask for changes before your code is pulled in to the main repository. We'll check that all tests pass, review the coding style, and check for general code correctness. If everything is OK, we'll merge your pull request and your code will be part of flocore.
If you have any questions feel free to post them to If you have any questions feel free to post them to
[github.com/bitpay/bitcore/issues](https://github.com/bitpay/bitcore/issues). [github.com/bitpay/flocore/issues](https://github.com/bitpay/flocore/issues).
Thanks for your time and code! Thanks for your time and code!

View File

@ -1,12 +1,12 @@
# setup a centos image with bitcore binary components # setup a centos image with flocore binary components
FROM centos:latest FROM centos:latest
MAINTAINER Chris Kleeschulte <chrisk@bitpay.com> MAINTAINER Chris Kleeschulte <chrisk@bitpay.com>
RUN yum -y install git curl which xz tar findutils RUN yum -y install git curl which xz tar findutils
RUN groupadd bitcore RUN groupadd flocore
RUN useradd bitcore -m -s /bin/bash -g bitcore RUN useradd flocore -m -s /bin/bash -g flocore
ENV HOME /home/bitcore ENV HOME /home/flocore
USER bitcore USER flocore
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash
RUN /bin/bash -l -c "nvm install v4 && nvm alias default v4" RUN /bin/bash -l -c "nvm install v4 && nvm alias default v4"
RUN /bin/bash -l -c "npm install bitcore -g" RUN /bin/bash -l -c "npm install flocore -g"

View File

@ -1,16 +1,16 @@
Copyright (c) 2013-2015 BitPay, Inc. Copyright (c) 2013-2015 BitPay, Inc.
Parts of this software are based on Bitcoin Core Parts of this software are based on Florincoin Core
Copyright (c) 2009-2015 The Bitcoin Core developers Copyright (c) 2009-2015 The Florincoin Core developers
Parts of this software are based on fullnode Parts of this software are based on fullnode
Copyright (c) 2014 Ryan X. Charles Copyright (c) 2014 Ryan X. Charles
Copyright (c) 2014 reddit, Inc. Copyright (c) 2014 reddit, Inc.
Parts of this software are based on BitcoinJS Parts of this software are based on FlorincoinJS
Copyright (c) 2011 Stefan Thomas <justmoon@members.fsf.org> Copyright (c) 2011 Stefan Thomas <justmoon@members.fsf.org>
Parts of this software are based on BitcoinJ Parts of this software are based on FlorincoinJ
Copyright (c) 2011 Google Inc. Copyright (c) 2011 Google Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy

View File

@ -1,81 +1,81 @@
Bitcore Flocore
======= =======
[![NPM Package](https://img.shields.io/npm/v/bitcore.svg?style=flat-square)](https://www.npmjs.org/package/bitcore) [![NPM Package](https://img.shields.io/npm/v/flocore.svg?style=flat-square)](https://www.npmjs.org/package/flocore)
[![Build Status](https://img.shields.io/travis/bitpay/bitcore.svg?branch=master&style=flat-square)](https://travis-ci.org/bitpay/bitcore) [![Build Status](https://img.shields.io/travis/bitpay/flocore.svg?branch=master&style=flat-square)](https://travis-ci.org/bitpay/flocore)
Infrastructure to build Bitcoin and blockchain-based applications for the next generation of financial technology. Infrastructure to build Florincoin and blockchain-based applications for the next generation of financial technology.
**Note:** If you're looking for the Bitcore Library please see: https://github.com/bitpay/bitcore-lib **Note:** If you're looking for the Flocore Library please see: https://github.com/bitpay/flocore-lib
## Getting Started ## Getting Started
Before you begin you'll need to have Node.js v8 installed. There are several options for installation. One method is to use [nvm](https://github.com/creationix/nvm) to easily switch between different versions, or download directly from [Node.js](https://nodejs.org/). Before you begin you'll need to have Node.js v8 installed. There are several options for installation. One method is to use [nvm](https://github.com/creationix/nvm) to easily switch between different versions, or download directly from [Node.js](https://nodejs.org/).
```bash ```bash
npm install -g bitcore npm install -g flocore
``` ```
Spin up a full node and join the network: Spin up a full node and join the network:
```bash ```bash
npm install -g bitcore npm install -g flocore
bitcored flocored
``` ```
You can then view the Insight block explorer at the default location: `http://localhost:3001/insight`, and your configuration file will be found in your home directory at `~/.bitcore`. You can then view the Insight block explorer at the default location: `http://localhost:3001/insight`, and your configuration file will be found in your home directory at `~/.flocore`.
Create a transaction: Create a transaction:
```js ```js
var bitcore = require('bitcore'); var flocore = require('flocore');
var transaction = new bitcore.Transaction(); var transaction = new flocore.Transaction();
var transaction.from(unspent).to(address, amount); var transaction.from(unspent).to(address, amount);
transaction.sign(privateKey); transaction.sign(privateKey);
``` ```
## Applications ## Applications
- [Node](https://github.com/bitpay/bitcore-node) - A full node with extended capabilities using Bitcoin Core - [Node](https://github.com/bitpay/flocore-node) - A full node with extended capabilities using Florincoin Core
- [Insight API](https://github.com/bitpay/insight-api) - A blockchain explorer HTTP API - [Insight API](https://github.com/bitpay/insight-api) - A blockchain explorer HTTP API
- [Insight UI](https://github.com/bitpay/insight) - A blockchain explorer web user interface - [Insight UI](https://github.com/bitpay/insight) - A blockchain explorer web user interface
- [Wallet Service](https://github.com/bitpay/bitcore-wallet-service) - A multisig HD service for wallets - [Wallet Service](https://github.com/bitpay/flocore-wallet-service) - A multisig HD service for wallets
- [Wallet Client](https://github.com/bitpay/bitcore-wallet-client) - A client for the wallet service - [Wallet Client](https://github.com/bitpay/flocore-wallet-client) - A client for the wallet service
- [CLI Wallet](https://github.com/bitpay/bitcore-wallet) - A command-line based wallet client - [CLI Wallet](https://github.com/bitpay/flocore-wallet) - A command-line based wallet client
- [Angular Wallet Client](https://github.com/bitpay/angular-bitcore-wallet-client) - An Angular based wallet client - [Angular Wallet Client](https://github.com/bitpay/angular-flocore-wallet-client) - An Angular based wallet client
- [Copay](https://github.com/bitpay/copay) - An easy-to-use, multiplatform, multisignature, secure bitcoin wallet - [Copay](https://github.com/bitpay/copay) - An easy-to-use, multiplatform, multisignature, secure florincoin wallet
## Libraries ## Libraries
- [Lib](https://github.com/bitpay/bitcore-lib) - All of the core Bitcoin primatives including transactions, private key management and others - [Lib](https://github.com/bitpay/flocore-lib) - All of the core Florincoin primatives including transactions, private key management and others
- [Payment Protocol](https://github.com/bitpay/bitcore-payment-protocol) - A protocol for communication between a merchant and customer - [Payment Protocol](https://github.com/bitpay/flocore-payment-protocol) - A protocol for communication between a merchant and customer
- [P2P](https://github.com/bitpay/bitcore-p2p) - The peer-to-peer networking protocol - [P2P](https://github.com/bitpay/flocore-p2p) - The peer-to-peer networking protocol
- [Mnemonic](https://github.com/bitpay/bitcore-mnemonic) - Implements mnemonic code for generating deterministic keys - [Mnemonic](https://github.com/bitpay/flocore-mnemonic) - Implements mnemonic code for generating deterministic keys
- [Channel](https://github.com/bitpay/bitcore-channel) - Micropayment channels for rapidly adjusting bitcoin transactions - [Channel](https://github.com/bitpay/flocore-channel) - Micropayment channels for rapidly adjusting florincoin transactions
- [Message](https://github.com/bitpay/bitcore-message) - Bitcoin message verification and signing - [Message](https://github.com/bitpay/flocore-message) - Florincoin message verification and signing
- [ECIES](https://github.com/bitpay/bitcore-ecies) - Uses ECIES symmetric key negotiation from public keys to encrypt arbitrarily long data streams. - [ECIES](https://github.com/bitpay/flocore-ecies) - Uses ECIES symmetric key negotiation from public keys to encrypt arbitrarily long data streams.
## Documentation ## Documentation
The complete docs are hosted here: [bitcore documentation](http://bitcore.io/guide/). There's also a [bitcore API reference](http://bitcore.io/api/) available generated from the JSDocs of the project, where you'll find low-level details on each bitcore utility. The complete docs are hosted here: [flocore documentation](http://flocore.io/guide/). There's also a [flocore API reference](http://flocore.io/api/) available generated from the JSDocs of the project, where you'll find low-level details on each flocore utility.
- [Read the Developer Guide](http://bitcore.io/guide/) - [Read the Developer Guide](http://flocore.io/guide/)
- [Read the API Reference](http://bitcore.io/api/) - [Read the API Reference](http://flocore.io/api/)
To get community assistance and ask for help with implementation questions, please use our [community forums](http://bitpaylabs.com/c/bitcore). To get community assistance and ask for help with implementation questions, please use our [community forums](http://bitpaylabs.com/c/flocore).
## Security ## Security
We're using Bitcore in production, as are [many others](http://bitcore.io#projects), but please use common sense when doing anything related to finances! We take no responsibility for your implementation decisions. We're using Flocore in production, as are [many others](http://flocore.io#projects), but please use common sense when doing anything related to finances! We take no responsibility for your implementation decisions.
If you find a security issue, please email security@bitpay.com. If you find a security issue, please email security@bitpay.com.
## Contributing ## Contributing
Please send pull requests for bug fixes, code optimization, and ideas for improvement. For more information on how to contribute, please refer to our [CONTRIBUTING](https://github.com/bitpay/bitcore/blob/master/CONTRIBUTING.md) file. Please send pull requests for bug fixes, code optimization, and ideas for improvement. For more information on how to contribute, please refer to our [CONTRIBUTING](https://github.com/bitpay/flocore/blob/master/CONTRIBUTING.md) file.
This will generate files named `bitcore.js` and `bitcore.min.js`. This will generate files named `flocore.js` and `flocore.min.js`.
You can also use our pre-generated files, provided for each release along with a PGP signature by one of the project's maintainers. To get them, checkout a release commit (for example, https://github.com/bitpay/bitcore/commit/e33b6e3ba6a1e5830a079e02d949fce69ea33546 for v0.12.6). You can also use our pre-generated files, provided for each release along with a PGP signature by one of the project's maintainers. To get them, checkout a release commit (for example, https://github.com/bitpay/flocore/commit/e33b6e3ba6a1e5830a079e02d949fce69ea33546 for v0.12.6).
To verify signatures, use the following PGP keys: To verify signatures, use the following PGP keys:
- @gabegattis: https://pgp.mit.edu/pks/lookup?op=get&search=0x441430987182732C `F3EA 8E28 29B4 EC93 88CB B0AA 4414 3098 7182 732C` - @gabegattis: https://pgp.mit.edu/pks/lookup?op=get&search=0x441430987182732C `F3EA 8E28 29B4 EC93 88CB B0AA 4414 3098 7182 732C`
@ -84,6 +84,6 @@ To verify signatures, use the following PGP keys:
## License ## License
Code released under [the MIT license](https://github.com/bitpay/bitcore/blob/master/LICENSE). Code released under [the MIT license](https://github.com/bitpay/flocore/blob/master/LICENSE).
Copyright 2013-2017 BitPay, Inc. Bitcore is a trademark maintained by BitPay, Inc. Copyright 2013-2017 BitPay, Inc. Flocore is a trademark maintained by BitPay, Inc.

View File

@ -1,11 +1,11 @@
#!/usr/bin/env node #!/usr/bin/env node
if (parseInt(process.version.split('.')[0].slice(1)) < 8) { if (parseInt(process.version.split('.')[0].slice(1)) < 8) {
throw new Error('Bitcore requires Node version 8 or higher.'); throw new Error('Flocore requires Node version 8 or higher.');
} }
var bitcore = require('bitcore-node/lib/cli/bitcore'); var flocore = require('flocore-node/lib/cli/flocore');
var path = require('path'); var path = require('path');
var servicesPath = path.resolve(__dirname, '../'); var servicesPath = path.resolve(__dirname, '../');
var additionalServices = ['insight-api', 'insight-ui']; var additionalServices = ['insight-api', 'insight-ui'];
bitcore(servicesPath, additionalServices); flocore(servicesPath, additionalServices);

View File

@ -3,11 +3,11 @@
'use strict'; 'use strict';
if (parseInt(process.version.split('.')[0].slice(1)) < 8) { if (parseInt(process.version.split('.')[0].slice(1)) < 8) {
throw new Error('Bitcore requires Node version 8 or higher.'); throw new Error('Flocore requires Node version 8 or higher.');
} }
var path = require('path'); var path = require('path');
var bitcored = require('bitcore-node/lib/cli/bitcored'); var flocored = require('flocore-node/lib/cli/flocored');
var servicesPath = path.resolve(__dirname, '../'); var servicesPath = path.resolve(__dirname, '../');
var additionalServices = ['insight-api', 'insight-ui']; var additionalServices = ['insight-api', 'insight-ui'];
bitcored(servicesPath, additionalServices); flocored(servicesPath, additionalServices);

View File

@ -1,18 +1,18 @@
{ {
"name": "bitcore", "name": "flocore",
"main": "./bitcore.min.js", "main": "./flocore.min.js",
"version": "0.13.5", "version": "0.13.5",
"homepage": "http://bitcore.io", "homepage": "http://flocore.io",
"authors": [ "authors": [
"BitPay, Inc." "BitPay, Inc."
], ],
"description": "A pure, powerful core for your bitcoin project.", "description": "A pure, powerful core for your florincoin project.",
"moduleType": [ "moduleType": [
"globals" "globals"
], ],
"keywords": [ "keywords": [
"bitcoin", "florincoin",
"bitcore", "flocore",
"btc", "btc",
"satoshi" "satoshi"
], ],

View File

@ -1,5 +1,5 @@
var bitcoreTasks = require('bitcore-build'); var flocoreTasks = require('flocore-build');
bitcoreTasks(); flocoreTasks();

View File

@ -1,5 +1,5 @@
'use strict'; 'use strict';
var bitcore = require('bitcore-lib'); var flocore = require('flocore-lib');
module.exports = bitcore; module.exports = flocore;

46
package-lock.json generated
View File

@ -1,5 +1,5 @@
{ {
"name": "bitcore", "name": "flocore",
"version": "5.0.0-beta.44", "version": "5.0.0-beta.44",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
@ -326,14 +326,14 @@
"safe-buffer": "5.1.1" "safe-buffer": "5.1.1"
} }
}, },
"bitcoind-rpc": { "florincoind-rpc": {
"version": "0.6.0", "version": "0.6.0",
"resolved": "https://registry.npmjs.org/bitcoind-rpc/-/bitcoind-rpc-0.6.0.tgz", "resolved": "https://registry.npmjs.org/florincoind-rpc/-/florincoind-rpc-0.6.0.tgz",
"integrity": "sha1-sRMsBNzc5tNT1SDI8C3a+PmB+zQ=" "integrity": "sha1-sRMsBNzc5tNT1SDI8C3a+PmB+zQ="
}, },
"bitcore-lib": { "flocore-lib": {
"version": "5.0.0-beta.1", "version": "5.0.0-beta.1",
"resolved": "https://registry.npmjs.org/bitcore-lib/-/bitcore-lib-5.0.0-beta.1.tgz", "resolved": "https://registry.npmjs.org/flocore-lib/-/flocore-lib-5.0.0-beta.1.tgz",
"integrity": "sha512-y8aCkNJQieCPacLpW9wdg6Un2iAC/5Nt7g/lRHhK6PwrXw7dxXwc7eZOd87oPGn6bAd4jBd8YTCqIqwpf3UQsA==", "integrity": "sha512-y8aCkNJQieCPacLpW9wdg6Un2iAC/5Nt7g/lRHhK6PwrXw7dxXwc7eZOd87oPGn6bAd4jBd8YTCqIqwpf3UQsA==",
"requires": { "requires": {
"bn.js": "2.0.4", "bn.js": "2.0.4",
@ -397,9 +397,9 @@
} }
} }
}, },
"bitcore-lib-cash": { "flocore-lib-cash": {
"version": "0.15.1", "version": "0.15.1",
"resolved": "https://registry.npmjs.org/bitcore-lib-cash/-/bitcore-lib-cash-0.15.1.tgz", "resolved": "https://registry.npmjs.org/flocore-lib-cash/-/flocore-lib-cash-0.15.1.tgz",
"integrity": "sha512-2fftReEqbkohCwiblBGteEX5S7lc6oTGM1QyDr6rz88QA7xLqhtVkT9hWrwirZfw6H4IfApS2gAAtHGExCqMsw==", "integrity": "sha512-2fftReEqbkohCwiblBGteEX5S7lc6oTGM1QyDr6rz88QA7xLqhtVkT9hWrwirZfw6H4IfApS2gAAtHGExCqMsw==",
"requires": { "requires": {
"bn.js": "4.11.8", "bn.js": "4.11.8",
@ -410,17 +410,17 @@
"lodash": "4.17.4" "lodash": "4.17.4"
} }
}, },
"bitcore-message": { "flocore-message": {
"version": "1.0.4", "version": "1.0.4",
"resolved": "https://registry.npmjs.org/bitcore-message/-/bitcore-message-1.0.4.tgz", "resolved": "https://registry.npmjs.org/flocore-message/-/flocore-message-1.0.4.tgz",
"integrity": "sha1-QMJHnRtPvcUboKbvF6RqfA5ImFM=", "integrity": "sha1-QMJHnRtPvcUboKbvF6RqfA5ImFM=",
"requires": { "requires": {
"bitcore-lib": "0.13.19" "flocore-lib": "0.13.19"
}, },
"dependencies": { "dependencies": {
"bitcore-lib": { "flocore-lib": {
"version": "0.13.19", "version": "0.13.19",
"resolved": "https://registry.npmjs.org/bitcore-lib/-/bitcore-lib-0.13.19.tgz", "resolved": "https://registry.npmjs.org/flocore-lib/-/flocore-lib-0.13.19.tgz",
"integrity": "sha1-SK8em9oQBnwasWJjRyta3SAA89w=", "integrity": "sha1-SK8em9oQBnwasWJjRyta3SAA89w=",
"requires": { "requires": {
"bn.js": "2.0.4", "bn.js": "2.0.4",
@ -486,16 +486,16 @@
} }
} }
}, },
"bitcore-node": { "flocore-node": {
"version": "5.0.0-beta.44", "version": "5.0.0-beta.44",
"resolved": "https://registry.npmjs.org/bitcore-node/-/bitcore-node-5.0.0-beta.44.tgz", "resolved": "https://registry.npmjs.org/flocore-node/-/flocore-node-5.0.0-beta.44.tgz",
"integrity": "sha512-WQ3moUNzfyxi/lKspaB5yWhmAzuBMAoEs2RBC4eXGu/SbrQQoUsHFy5ZqOWKLHueZEDlIX4WtsD0OBlQYfYQpw==", "integrity": "sha512-WQ3moUNzfyxi/lKspaB5yWhmAzuBMAoEs2RBC4eXGu/SbrQQoUsHFy5ZqOWKLHueZEDlIX4WtsD0OBlQYfYQpw==",
"requires": { "requires": {
"async": "2.5.0", "async": "2.5.0",
"bcoin": "github:bitpay/bcoin#46ecd2c4ed3b7fbcadd9cfe10b0f5d64e4c5088d", "bcoin": "github:bitpay/bcoin#46ecd2c4ed3b7fbcadd9cfe10b0f5d64e4c5088d",
"bitcoind-rpc": "0.6.0", "florincoind-rpc": "0.6.0",
"bitcore-lib": "5.0.0-beta.1", "flocore-lib": "5.0.0-beta.1",
"bitcore-p2p": "5.0.0-beta.1", "flocore-p2p": "5.0.0-beta.1",
"bn.js": "4.11.8", "bn.js": "4.11.8",
"body-parser": "1.17.2", "body-parser": "1.17.2",
"colors": "1.1.2", "colors": "1.1.2",
@ -621,13 +621,13 @@
} }
} }
}, },
"bitcore-p2p": { "flocore-p2p": {
"version": "5.0.0-beta.1", "version": "5.0.0-beta.1",
"resolved": "https://registry.npmjs.org/bitcore-p2p/-/bitcore-p2p-5.0.0-beta.1.tgz", "resolved": "https://registry.npmjs.org/flocore-p2p/-/flocore-p2p-5.0.0-beta.1.tgz",
"integrity": "sha512-PePFFuPmrHIr4G7IHWAcFge8jo0PvXvaDS9DYGP3EYLeoYT0SQ5d4UtHIGCOrc4xdn7XaibiuMkHlv6PNCpLaw==", "integrity": "sha512-PePFFuPmrHIr4G7IHWAcFge8jo0PvXvaDS9DYGP3EYLeoYT0SQ5d4UtHIGCOrc4xdn7XaibiuMkHlv6PNCpLaw==",
"requires": { "requires": {
"bcoin": "github:bcoin-org/bcoin#886008a1822ce1da7fa8395ee7db4bcc1750a28a", "bcoin": "github:bcoin-org/bcoin#886008a1822ce1da7fa8395ee7db4bcc1750a28a",
"bitcore-lib": "5.0.0-beta.1", "flocore-lib": "5.0.0-beta.1",
"bloom-filter": "0.2.0", "bloom-filter": "0.2.0",
"buffers": "github:bitpay/node-buffers#04f4c4264e0d105db2b99b786843ed64f23230d8", "buffers": "github:bitpay/node-buffers#04f4c4264e0d105db2b99b786843ed64f23230d8",
"socks5-client": "0.3.6" "socks5-client": "0.3.6"
@ -1673,9 +1673,9 @@
"JSONStream": "1.3.1", "JSONStream": "1.3.1",
"async": "2.5.0", "async": "2.5.0",
"bcoin": "github:bcoin-org/bcoin#886008a1822ce1da7fa8395ee7db4bcc1750a28a", "bcoin": "github:bcoin-org/bcoin#886008a1822ce1da7fa8395ee7db4bcc1750a28a",
"bitcore-lib": "5.0.0-beta.1", "flocore-lib": "5.0.0-beta.1",
"bitcore-lib-cash": "0.15.1", "flocore-lib-cash": "0.15.1",
"bitcore-message": "1.0.4", "flocore-message": "1.0.4",
"body-parser": "1.17.2", "body-parser": "1.17.2",
"compression": "1.7.0", "compression": "1.7.0",
"lodash": "2.4.2", "lodash": "2.4.2",

View File

@ -1,7 +1,7 @@
{ {
"name": "bitcore", "name": "flocore",
"version": "5.0.0-beta.44", "version": "5.0.0-beta.44",
"description": "A platform to build bitcoin and blockchain-based applications.", "description": "A platform to build Florincoin and blockchain-based applications.",
"engines": { "engines": {
"node": ">=8.0.0" "node": ">=8.0.0"
}, },
@ -12,11 +12,12 @@
"build-deb": "./scripts/build-deb" "build-deb": "./scripts/build-deb"
}, },
"bin": { "bin": {
"bitcore": "./bin/bitcore", "flocore": "./bin/flocore",
"bitcored": "./bin/bitcored" "flocored": "./bin/flocored"
}, },
"keywords": [ "keywords": [
"bitcoin", "flo",
"florincoin",
"transaction", "transaction",
"address", "address",
"p2p", "p2p",
@ -33,13 +34,13 @@
], ],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/bitpay/bitcore.git" "url": "https://github.com/oipwg/flocore.git"
}, },
"dependencies": { "dependencies": {
"bitcore-lib": "5.0.0-beta.1", "flocore-lib": "5.0.0-beta.1",
"bitcore-node": "5.0.0-beta.44", "flocore-node": "5.0.0-beta.44",
"insight-api": "5.0.0-beta.44", "flosight-api": "5.0.0-beta.44",
"insight-ui": "bitpay/insight#v5.0.0-beta.44" "flosight-ui": "bitpay/insight#v5.0.0-beta.44"
}, },
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {

View File

@ -16,10 +16,10 @@ package_version=$(jq -r ".version" "${root_dir}/package.json")
package_maintainer=$(jq -r ".author" "${root_dir}/package.json") package_maintainer=$(jq -r ".author" "${root_dir}/package.json")
package_description=$(jq -r ".description" "${root_dir}/package.json") package_description=$(jq -r ".description" "${root_dir}/package.json")
deb_dir="${root_dir}/build/bitcore_${package_version}_${package_arch}" deb_dir="${root_dir}/build/flocore_${package_version}_${package_arch}"
log_title "Making Debian package:\n" log_title "Making Debian package:\n"
echo -e " Name: bitcore" echo -e " Name: flocore"
echo -e " Version: ${package_version}" echo -e " Version: ${package_version}"
echo -e " Maintainer: ${package_maintainer}" echo -e " Maintainer: ${package_maintainer}"
echo -e " Description: ${package_description}" echo -e " Description: ${package_description}"
@ -45,9 +45,9 @@ replace_vars() {
log_title "Setting up Debian package:" log_title "Setting up Debian package:"
mkdir -vp "$deb_dir/DEBIAN" \ mkdir -vp "$deb_dir/DEBIAN" \
"$deb_dir/etc/bitcore" \ "$deb_dir/etc/flocore" \
"$deb_dir/usr/opt/bitcore" \ "$deb_dir/usr/opt/flocore" \
"$deb_dir/usr/opt/bitcore/bin" \ "$deb_dir/usr/opt/flocore/bin" \
"$deb_dir/usr/bin" "$deb_dir/usr/bin"
mkdir -vp "$deb_dir/etc/init" mkdir -vp "$deb_dir/etc/init"
@ -55,36 +55,36 @@ mkdir -vp "$deb_dir/etc/systemd/system"
replace_vars "${root_dir}/scripts/debian/control" "$deb_dir/DEBIAN/control" replace_vars "${root_dir}/scripts/debian/control" "$deb_dir/DEBIAN/control"
replace_vars "${root_dir}/scripts/debian/postinst" "$deb_dir/DEBIAN/postinst" replace_vars "${root_dir}/scripts/debian/postinst" "$deb_dir/DEBIAN/postinst"
replace_vars "${root_dir}/scripts/debian/prerm" "$deb_dir/DEBIAN/prerm" replace_vars "${root_dir}/scripts/debian/prerm" "$deb_dir/DEBIAN/prerm"
replace_vars "${root_dir}/scripts/debian/bitcore.conf" "$deb_dir/etc/init/bitcore.conf" replace_vars "${root_dir}/scripts/debian/flocore.conf" "$deb_dir/etc/init/flocore.conf"
replace_vars "${root_dir}/scripts/debian/bitcore.service" "$deb_dir/etc/systemd/system/bitcore.service" replace_vars "${root_dir}/scripts/debian/flocore.service" "$deb_dir/etc/systemd/system/flocore.service"
replace_vars "${root_dir}/scripts/debian/bitcore-bitcoind.conf" "$deb_dir/etc/init/bitcore-bitcoind.conf" replace_vars "${root_dir}/scripts/debian/flocore-florincoind.conf" "$deb_dir/etc/init/flocore-florincoind.conf"
replace_vars "${root_dir}/scripts/debian/bitcore-bitcoind.service" "$deb_dir/etc/systemd/system/bitcore-bitcoind.service" replace_vars "${root_dir}/scripts/debian/flocore-florincoind.service" "$deb_dir/etc/systemd/system/flocore-florincoind.service"
chmod -vR 0755 "$deb_dir/DEBIAN/" chmod -vR 0755 "$deb_dir/DEBIAN/"
log_title "Copying Bitcore" log_title "Copying Flocore"
app_dir="$deb_dir/usr/opt/bitcore" app_dir="$deb_dir/usr/opt/flocore"
cp -v "${root_dir}/bin/bitcored" "${app_dir}/bin/bitcored" cp -v "${root_dir}/bin/flocored" "${app_dir}/bin/flocored"
cp -v "${root_dir}/bin/bitcore" "${app_dir}/bin/bitcore" cp -v "${root_dir}/bin/flocore" "${app_dir}/bin/flocore"
chmod -vR 0755 "${app_dir}/bin/bitcore" "${app_dir}/bin/bitcored" chmod -vR 0755 "${app_dir}/bin/flocore" "${app_dir}/bin/flocored"
cp -v "${root_dir}/package.json" "${app_dir}" cp -v "${root_dir}/package.json" "${app_dir}"
cp -v "${root_dir}/README.md" "${app_dir}" cp -v "${root_dir}/README.md" "${app_dir}"
cp -v "${root_dir}/index.js" "${app_dir}" cp -v "${root_dir}/index.js" "${app_dir}"
pushd "${deb_dir}/usr/bin" pushd "${deb_dir}/usr/bin"
ln -vs "../opt/bitcore/bin/bitcore" ln -vs "../opt/flocore/bin/flocore"
ln -vs "../opt/bitcore/bin/bitcored" ln -vs "../opt/flocore/bin/flocored"
ln -vs "../opt/bitcore/node_modules/.bin/bitcoind" "bitcore-bitcoind" ln -vs "../opt/flocore/node_modules/.bin/florincoind" "flocore-florincoind"
popd popd
log_title "Installing Bitcore Modules" log_title "Installing Flocore Modules"
pushd "${app_dir}" pushd "${app_dir}"
VERIFY_BITCOIN_DOWNLOAD=1 npm install --production VERIFY_BITCOIN_DOWNLOAD=1 npm install --production
echo "Cleanup Node.js addon binaries before packaging:" echo "Cleanup Node.js addon binaries before packaging:"
find "${app_dir}" -type f -name '*.node' -print -delete find "${app_dir}" -type f -name '*.node' -print -delete
find "${app_dir}" -type f -name '*.o' -print -delete find "${app_dir}" -type f -name '*.o' -print -delete
echo "Cleanup intermediate files:" echo "Cleanup intermediate files:"
rm -v "${deb_dir}/usr/opt/bitcore/node_modules/bitcore-node/bin/bitcoin-0.12.1-linux64.tar.gz" rm -v "${deb_dir}/usr/opt/flocore/node_modules/flocore-node/bin/florincoin-0.12.1-linux64.tar.gz"
npm shrinkwrap --dev npm shrinkwrap --dev
popd popd

View File

@ -1,24 +0,0 @@
description "Bitcoin Core for Bitcore"
author "BitPay, Inc."
limit nofile 20000 30000
start on runlevel [2345]
stop on runlevel [016]
kill timeout 300
kill signal SIGINT
# user/group for bitcore daemon to run as
setuid bitcore
setgid bitcore
# home dir of the bitcore daemon user
env HOME=/home/bitcore
respawn
respawn limit 5 15
script
exec bitcore-bitcored -datadir=/home/bitcore/.bitcore/data/
end script

View File

@ -1,18 +1,18 @@
[Unit] [Unit]
Description=Bitcoin Core for Bitcore Description=Florincoin Core for Flocore
Requires=network.target Requires=network.target
[Service] [Service]
Type=simple Type=simple
WorkingDirectory=/usr/opt/bitcore WorkingDirectory=/usr/opt/flocore
ExecStart=/usr/bin/bitcore-bitcoind -datadir=/home/bitcore/.bitcore/data/ ExecStart=/usr/bin/flocore-florincoind -datadir=/home/flocore/.flocore/data/
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure
RestartSec=15 RestartSec=15
User=bitcore User=flocore
ExecStartPre=/bin/mkdir -p /run/bitcore ExecStartPre=/bin/mkdir -p /run/flocore
ExecStartPre=/bin/chown bitcore:bitcore /run/bitcore ExecStartPre=/bin/chown flocore:flocore /run/flocore
ExecStartPre=/bin/chmod 755 /run/bitcore ExecStartPre=/bin/chmod 755 /run/flocore
PermissionsStartOnly=true PermissionsStartOnly=true
TimeoutStopSec=300 TimeoutStopSec=300

View File

@ -1,4 +1,4 @@
description "Bitcore Daemon" description "Flocore Daemon"
author "BitPay, Inc." author "BitPay, Inc."
limit nofile 20000 30000 limit nofile 20000 30000
@ -9,16 +9,16 @@ stop on runlevel [016]
kill timeout 300 kill timeout 300
kill signal SIGINT kill signal SIGINT
# user/group for bitcore daemon to run as # user/group for flocore daemon to run as
setuid bitcore setuid flocore
setgid bitcore setgid flocore
# home dir of the bitcore daemon user # home dir of the flocore daemon user
env HOME=/home/bitcore env HOME=/home/flocore
respawn respawn
respawn limit 5 15 respawn limit 5 15
script script
exec bitcored exec flocored
end script end script

View File

@ -4,15 +4,15 @@ Requires=network.target
[Service] [Service]
Type=simple Type=simple
WorkingDirectory=/usr/opt/bitcore WorkingDirectory=/usr/opt/flocore
ExecStart=/usr/opt/bitcore/bin/bitcored ExecStart=/usr/opt/flocore/bin/flocored
ExecReload=/bin/kill -HUP $MAINPID ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure Restart=on-failure
RestartSec=15 RestartSec=15
User=bitcore User=flocore
ExecStartPre=/bin/mkdir -p /run/bitcore ExecStartPre=/bin/mkdir -p /run/flocore
ExecStartPre=/bin/chown bitcore:bitcore /run/bitcore ExecStartPre=/bin/chown flocore:flocore /run/flocore
ExecStartPre=/bin/chmod 755 /run/bitcore ExecStartPre=/bin/chmod 755 /run/flocore
PermissionsStartOnly=true PermissionsStartOnly=true
TimeoutStopSec=300 TimeoutStopSec=300

View File

@ -1,4 +1,4 @@
Package: bitcore Package: flocore
Version: {{ deb_package_version }} Version: {{ deb_package_version }}
Section: base Section: base
Priority: optional Priority: optional

View File

@ -0,0 +1,24 @@
description "Florincoin Core for Flocore"
author "BitPay, Inc."
limit nofile 20000 30000
start on runlevel [2345]
stop on runlevel [016]
kill timeout 300
kill signal SIGINT
# user/group for flocore daemon to run as
setuid flocore
setgid flocore
# home dir of the flocore daemon user
env HOME=/home/flocore
respawn
respawn limit 5 15
script
exec flocore-flocored -datadir=/home/flocore/.flocore/data/
end script

View File

@ -3,35 +3,35 @@ set -e
set -o pipefail set -o pipefail
# add group # add group
if ! getent group | grep -q "^bitcore:" ; then if ! getent group | grep -q "^flocore:" ; then
echo "Creating system group: bitcore" echo "Creating system group: flocore"
groupadd --system bitcore groupadd --system flocore
fi fi
# add user # add user
if ! getent passwd | grep -q "^bitcore:"; then if ! getent passwd | grep -q "^flocore:"; then
echo "Creating bitcore system user" echo "Creating flocore system user"
useradd --gid "bitcore" --system -m bitcore useradd --gid "flocore" --system -m flocore
fi fi
# build nodejs addons # build nodejs addons
cd "/usr/opt/bitcore" cd "/usr/opt/flocore"
SKIP_BITCOIN_DOWNLOAD=1 npm rebuild SKIP_BITCOIN_DOWNLOAD=1 npm rebuild
# setup data directory # setup data directory
mkdir -p "/home/bitcore/.bitcore/data" mkdir -p "/home/flocore/.flocore/data"
chown -R bitcore:bitcore "/home/bitcore/.bitcore" chown -R flocore:flocore "/home/flocore/.flocore"
# start bitcore # start flocore
if hash service 2> /dev/null; then if hash service 2> /dev/null; then
service bitcore start || echo "bitcore could not be registered or started" service flocore start || echo "flocore could not be registered or started"
elif hash start 2> /dev/null; then elif hash start 2> /dev/null; then
start bitcore || echo "bitcore could not be registered or started" start flocore || echo "flocore could not be registered or started"
elif hash systemctl 2> /dev/null; then elif hash systemctl 2> /dev/null; then
{ {
systemctl enable "bitcore.service" && \ systemctl enable "flocore.service" && \
systemctl start "bitcore.service" systemctl start "flocore.service"
} || echo "bitcore could not be registered or started" } || echo "flocore could not be registered or started"
else else
echo 'Your system does not appear to use upstart or systemd, so bitcore could not be started' echo 'Your system does not appear to use upstart or systemd, so flocore could not be started'
fi fi

View File

@ -4,11 +4,11 @@ set -e
set -o pipefail set -o pipefail
if hash service 2> /dev/null; then if hash service 2> /dev/null; then
service bitcore stop || echo "bitcore wasn't running!" service flocore stop || echo "flocore wasn't running!"
elif hash stop 2> /dev/null; then elif hash stop 2> /dev/null; then
stop "$service_name" || echo "bitcore wasn't running!" stop "$service_name" || echo "flocore wasn't running!"
elif hash systemctl 2> /dev/null; then elif hash systemctl 2> /dev/null; then
systemctl disable "bitcore.service" || echo "bitcore wasn't running!" systemctl disable "flocore.service" || echo "flocore wasn't running!"
else else
echo "Your system does not appear to use upstart or systemd, so bitcore could not be stopped" echo "Your system does not appear to use upstart or systemd, so flocore could not be stopped"
fi fi

View File

@ -8,7 +8,7 @@ process=false
######################################## ########################################
# deploys latest bitcore to application servers over ssh # deploys latest flocore to application servers over ssh
if [ -z "${1}" ]; then if [ -z "${1}" ]; then
echo 'no server file given, exiting.' echo 'no server file given, exiting.'
@ -37,15 +37,15 @@ function execCmd() {
function deploy () { function deploy () {
# stop the server # stop the server
cmd="sudo service bitcored stop" cmd="sudo service flocored stop"
execCmd execCmd
# run npm install -g bitcore@beta # run npm install -g flocore@beta
cmd="sudo su - bitcore -c 'npm install -g bitcore@beta'" cmd="sudo su - flocore -c 'npm install -g flocore@beta'"
execCmd execCmd
# start server # start server
cmd="sudo service bitcored start" cmd="sudo service flocored start"
execCmd execCmd
} }
@ -87,7 +87,7 @@ while IFS='' read -r server || [[ -n "$server" ]]; do
if [ -z "${logType}" ]; then if [ -z "${logType}" ]; then
logCmd="sudo journalctl -f" logCmd="sudo journalctl -f"
else else
logCmd="sudo tail -f /var/log/upstart/bitcored_testnet_new.log" logCmd="sudo tail -f /var/log/upstart/flocored_testnet_new.log"
fi fi
sshCmd="${ssh}${port} ${host} " sshCmd="${ssh}${port} ${host} "

View File

@ -5,8 +5,8 @@ set -e
insightApiDir="${HOME}/source/insight-api" insightApiDir="${HOME}/source/insight-api"
insightUIDir="${HOME}/source/insight-ui" insightUIDir="${HOME}/source/insight-ui"
bitcoreDir="${HOME}/source/bitcore" flocoreDir="${HOME}/source/flocore"
bitcoreNodeDir="${HOME}/source/bitcore-node" flocoreNodeDir="${HOME}/source/flocore-node"
########################################################### ###########################################################
@ -17,7 +17,7 @@ bump_version () {
} }
set_deps () { set_deps () {
sed -i '' -e "s/\"bitcore-node\"\: .*$/\"bitcore-node\"\: \"${shortTag}\",/g" package.json sed -i '' -e "s/\"flocore-node\"\: .*$/\"flocore-node\"\: \"${shortTag}\",/g" package.json
sed -i '' -e "s/\"insight-api\"\: .*$/\"insight-api\"\: \"${shortTag}\",/g" package.json sed -i '' -e "s/\"insight-api\"\: .*$/\"insight-api\"\: \"${shortTag}\",/g" package.json
sed -i '' -e "s/\"insight-ui\"\: .*$/\"insight-ui\"\: \"bitpay\/insight\#${tag}\"/g" package.json sed -i '' -e "s/\"insight-ui\"\: .*$/\"insight-ui\"\: \"bitpay\/insight\#${tag}\"/g" package.json
} }
@ -33,13 +33,13 @@ fi
############################################# #############################################
# bitcore-node # flocore-node
############################################# #############################################
function bitcoreNode() { function flocoreNode() {
echo "" echo ""
echo "Starting with bitcore-node..." echo "Starting with flocore-node..."
sleep 2 sleep 2
pushd "${bitcoreNodeDir}" pushd "${flocoreNodeDir}"
sudo rm -fr node_modules sudo rm -fr node_modules
bump_version bump_version
@ -58,7 +58,7 @@ function bitcoreNode() {
fi fi
echo "" echo ""
echo "Committing changes for bitcore-node..." echo "Committing changes for flocore-node..."
sleep 2 sleep 2
git commit -S git commit -S
@ -183,13 +183,13 @@ function insightUi() {
} }
############################################# #############################################
# bitcore # flocore
############################################# #############################################
function bitcore() { function flocore() {
echo "" echo ""
echo "Releasing bitcore..." echo "Releasing flocore..."
sleep 2 sleep 2
pushd "${bitcoreDir}" pushd "${flocoreDir}"
sudo rm -fr node_modules sudo rm -fr node_modules
bump_version bump_version
@ -210,7 +210,7 @@ function bitcore() {
fi fi
echo "" echo ""
echo "Committing changes for bitcore..." echo "Committing changes for flocore..."
sleep 2 sleep 2
git commit -S git commit -S
@ -243,10 +243,10 @@ echo "Assuming projects at ${HOME}/source..."
releases="${2}" releases="${2}"
if [ -z "${releases}" ]; then if [ -z "${releases}" ]; then
bitcoreNode flocoreNode
insightApi insightApi
insightUi insightUi
bitcore flocore
else else
eval "${releases}" eval "${releases}"
fi fi

View File

@ -1,27 +1,27 @@
'use strict'; 'use strict';
var should = require('chai').should(); var should = require('chai').should();
var bitcore = require('../'); var flocore = require('../');
describe('Library', function() { describe('Library', function() {
it('should export primatives', function() { it('should export primatives', function() {
should.exist(bitcore.crypto); should.exist(flocore.crypto);
should.exist(bitcore.encoding); should.exist(flocore.encoding);
should.exist(bitcore.util); should.exist(flocore.util);
should.exist(bitcore.errors); should.exist(flocore.errors);
should.exist(bitcore.Address); should.exist(flocore.Address);
should.exist(bitcore.Block); should.exist(flocore.Block);
should.exist(bitcore.MerkleBlock); should.exist(flocore.MerkleBlock);
should.exist(bitcore.BlockHeader); should.exist(flocore.BlockHeader);
should.exist(bitcore.HDPrivateKey); should.exist(flocore.HDPrivateKey);
should.exist(bitcore.HDPublicKey); should.exist(flocore.HDPublicKey);
should.exist(bitcore.Networks); should.exist(flocore.Networks);
should.exist(bitcore.Opcode); should.exist(flocore.Opcode);
should.exist(bitcore.PrivateKey); should.exist(flocore.PrivateKey);
should.exist(bitcore.PublicKey); should.exist(flocore.PublicKey);
should.exist(bitcore.Script); should.exist(flocore.Script);
should.exist(bitcore.Transaction); should.exist(flocore.Transaction);
should.exist(bitcore.URI); should.exist(flocore.URI);
should.exist(bitcore.Unit); should.exist(flocore.Unit);
}); });
}); });