This project comprises a Solidity smart contract for on-chain whitelist management and a Node.js service to track additions using Alchemy Web3. Additionally, it Dockerizes the event-monitoring service for deployment.
- Node.js version 18 or higher
- Docker (for running the Docker image)
# Clone the repository
https://github.com/iamNickDev/wallet-list-dapp.git
# Navigate to the project directory
cd Test-AddWallet-Task
Deploy the contract file using the Remix IDE.
# Install dependencies
yarn install
Create a .env
file in the root folder and add all the environment variables from example.env
. Copy the contract address and add it to .env
.
# Build the Docker image (make sure the name is in lowercase)
docker build -t event-monitoring-service .
# Run the Docker container
docker run --env-file .env event-monitoring-service .
Call the addWallet
function using Remix or any blockchain explorer.
This structure provides clear instructions for setting up the project, deploying the contract, and running the Docker container. Additionally, it includes links to the deployed smart contract for reference.