-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5ad8a7c
commit e83268a
Showing
2 changed files
with
21 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const Web3 = require('web3') | ||
|
||
const logger = require('../logger') | ||
|
||
const { TransactionLib } = require('../lib/TransactionLib') | ||
|
||
const providerUrl = 'urlToProvider' | ||
const web3 = new Web3(new Web3.providers.HttpProvider(providerUrl)) | ||
|
||
/** | ||
* Class representing a simple factory to build Transaction lib object. | ||
*/ | ||
class TransactionLibBuilder { | ||
static build() { | ||
return new TransactionLib(web3, logger) | ||
} | ||
} | ||
|
||
module.exports = TransactionLibBuilder |
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