
require('dotenv').config();
const config = require('./source/config');
const info = require('./source/info');
const notaries = require('./source/notaries');
const smartContract = require('./source/smart_contract');

exports.setKeys = config.setKeys;
exports.useSandbox = config.useSandbox;

exports.getInfoNodeBitcoin = info.getInfoNodeBitcoin;
exports.getInfoNodeEthereum = info.getInfoNodeEthereum;

exports.postNotary = notaries.postNotary;
exports.getNotary = notaries.getNotary;
exports.getNotaries = notaries.getNotaries;

exports.postContractEthereumSolidity = smartContract.postContractEthereumSolidity;
exports.getContract = smartContract.getContract;
exports.postContractEthereumSolidityFunction = smartContract.postContractEthereumSolidityFunction;


const fs = require('fs');
const config = require('./source/config');
const info = require('./source/info');
const notaries = require('./source/notaries');
const smartContract = require('./source/smart_contract');

const s = fs.statSync('./.env');
if (s.isFile()) {
  require('dotenv').config();
}

exports.setKeys = config.setKeys;
exports.useSandbox = config.useSandbox;

exports.getInfoNodeBitcoin = info.getInfoNodeBitcoin;
exports.getInfoNodeEthereum = info.getInfoNodeEthereum;

exports.postNotary = notaries.postNotary;
exports.getNotary = notaries.getNotary;
exports.getNotaries = notaries.getNotaries;

exports.postContractEthereumSolidity = smartContract.postContractEthereumSolidity;
exports.getContract = smartContract.getContract;
exports.postContractEthereumSolidityFunction = smartContract.postContractEthereumSolidityFunction;

Fix to avoid crash at online build
Fix to avoid crash at online build
