-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #421 from thanhson1085/master
persitence crawler
- Loading branch information
Showing
4 changed files
with
98 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
'use strict' | ||
|
||
const BlockSignerABI = require('../../build/contracts/BlockSigner') | ||
const web3 = require('./web3ws') | ||
const config = require('config') | ||
const blockSigner = new web3.eth.Contract(BlockSignerABI.abi, config.get('blockchain.blockSignerAddress')) | ||
|
||
module.exports = blockSigner | ||
function BlockSigner (web3) { | ||
let blockSigner = new web3.eth.Contract(BlockSignerABI.abi, config.get('blockchain.blockSignerAddress')) | ||
return blockSigner | ||
} | ||
|
||
module.exports = BlockSigner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
'use strict' | ||
|
||
const ValidatorABI = require('../../build/contracts/TomoValidator') | ||
const web3 = require('./web3ws') | ||
const config = require('config') | ||
const validator = new web3.eth.Contract(ValidatorABI.abi, config.get('blockchain.validatorAddress')) | ||
|
||
module.exports = validator | ||
function Validator (web3) { | ||
const validator = new web3.eth.Contract(ValidatorABI.abi, config.get('blockchain.validatorAddress')) | ||
return validator | ||
} | ||
|
||
module.exports = Validator |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters