Application URL: https://defi-statements-8hzeah.spheron.app/
BlockRep (Blockchain Reporting) is a set of applications which allow you to collect transaction details and use it for more advanced analytics or prepare tax declaration reports.
- Go to the app https://defi-statements-8hzeah.spheron.app/
- "Connect wallet"
- "Statements"
- Pick the date range and "Request statement"
- Approve transaction in your wallet
- Wait until transaction handled and new statement link appeared on the page
- Use link to get your statement
- User can connect the wallet via Metamask, WalletConnect or CoinbaseWallet
- Frontend application deployed to IPFS via Spheron
- Smart contract deployed and tested on Polygon Mumbai
- On chain data for transaction details gathered via Covalent
- Statement report uploading to IPFS
- Enhanced transaction details. Such as USD price for ERC20.
- Multichain support (and not only EVM).
- Tax declarations ready to use per country.
- Analytics: PnL, market value etc.
All commands executed in frontend
directory
Install dependencies:
yarn
Run local:
yarn dev
All commands executed in backend
directory
Requirements:
Java 17
Docker
- Update config params in
src/main/java/org/example/Main.java
public static final String COVALENT_API_KEY="covalent api key";
public static final String NODE_PROVIDER_URL="node provider url";
public static final String CONTRACT_ADDRESS="address of deployed contract";
public static final String APP_PRIVATE_KEY="private key of the app";
public static final int CHAIN_ID=80001; // id of the chain to work with
public static final String IPFS_USER="username for IPFS provider";
public static final String IPFS_PASSWORD="password for IPFS provider";
public static final String IPFS_UPLOAD_URL="IPFS upload url";
- To run locally
# build the app
./gradlew clean build shadowJar
# build docker image
docker build -f Dockerfile -t 'block-rep' ./
# run the app via docker
docker run block-rep java -jar app.jar
All commands executed in contract
directory
Install dependencies:
yarn
Run tests:
yarn test
Compile:
yarn build
Deploy
yarn deploy --network [localhost|polygonMumbai]