Transaction listener and replicator for Ethereum and BigchainDB
configcontains the configurations files for the Ethereum and BigchainDB.contractscontains the ethereum contracts and is used by truffle to search, compile, and migrate contracts.migrationscontains truffle migration scripts for the contracts.srccontains ethereum event listener and bigchaindb transaction executor.testcontains the script to create a transaction on ethereum usingtruffle-contracttruffle-config.js&truffle.jstruffle config files for network setup
- Node.js
- BigchainDB
- Truffle Framework (
npm install -g truffleor on linuxsudo npm install -g truffle) - Ganache or a running instance of ethereum.
- Docker and Docker Compose (optional)
- Clone the repository and navigate to
poc2folder. - Install the dependencies with
npm install. - Update the
network.config.jsonwith the specific values of the bigchaindb and ethereum hosts. - Deploy the smart contracts by running
truffle migratein the root folder. - Copy the address of the
Tokenprinted after thetruffle migrateinto thetoken.config.json. - To run the listener execute
npm start. - The listener is up & running and listening for
Transferevents on your deployed contract.
- To build the docker image run:
docker-compose build. - To start the container:
docker-compose up. - Docker container is up and listening for
Transferevents on your deployed contract.