Skip to content

Commit

Permalink
Added sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
gsoares85 committed Aug 23, 2023
1 parent f7437a6 commit 949a2fd
Show file tree
Hide file tree
Showing 26 changed files with 42,984 additions and 344 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store
.idea
node_modules
.env
db
19 changes: 19 additions & 0 deletions config/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const dotenv = require('dotenv');

dotenv.config();

module.exports = {
mainchain: require("./rsktestnet.json"), //the json containing the smart contract addresses in rsk
sidechain: [
require("./sepolia.json"), //the json containing the smart contract addresses in eth
],
runEvery: 2, // In minutes,
privateKey: process.env.FEDERATOR_KEY || '',
storagePath: "./db",
etherscanApiKey: "",
runHeartbeatEvery: 1, // In hours
endpointsPort: 5000, // Server port
federatorRetries: 0, // 0 means infinite retries
checkHttps: false,
name: 'federator'
};
24,184 changes: 24,184 additions & 0 deletions federator.log

Large diffs are not rendered by default.

11,128 changes: 11,128 additions & 0 deletions heartbeat.log

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions integrationTest/integrationHeartbeatTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ async function emitAndListenToHeartbeats(heartbeats) {
});

if (logFileContent.indexOf("HeartBeat") > -1) {
logWrapper.info("HeartBeat Event detected on Log File");
logWrapper.info("HeartBeat Event detected on Log.ts File");
} else {
logWrapper.error("HeartBeat Event NOT detected on Log File");
logWrapper.error("HeartBeat Event NOT detected on Log.ts File");
process.exit(1);
}
} catch (err) {
Expand Down
Loading

0 comments on commit 949a2fd

Please sign in to comment.