In Chapter 16, we expand our backend by completing the Fund Controller and Token Controller, integrating batch generation, implementing donate/expense logic, and deploying the updated chaincode.
We also test admin registration, test donor registration with batch creation, and explore a path-related bug that will be fixed in the next video.
What’s Covered:
Updating batch generation (dynamic text & amount-based logic)
Adding batch issuance for NGO, Bank, and Donor registration
Implementing all “read & write” controller functions
Fund Controller: create fund, donate, add expenses, close fund
Token Controller: issue token, transfer token, redeem token
Deploying chaincode with updated version & sequence
Registering Gov Admin, NGO Admin & Admin User
Testing donor registration API
Debugging authentication & wallet path issue
❤️❤️ Community Group📑❤️❤️
Join Telegram group: https://t.me/+TA5t-NO3K2g1ZTM1
Join WhatsApp group: https://chat.whatsapp.com/FvQUN79V6u5...
❤️❤️ Let's connect📑❤️❤️
Check here: https://calendly.com/akshaykurhekar14...
❤️❤️Timeline - Topic Covered 🚀❤️
00:00 – Introduction
Recap of user controller & batch generation logic; overview of today's updates.
00:25 – Batch Logic Improvements
Added conditional batch text: registration batch vs donation batch.
01:00 – Batch Integration in Controllers
Batch issuance added for NGO registration, Bank registration, and Donor registration.
01:48 – Added API Methods in User Controller
Get all banks, all NGOs, all donors linked with smart contract functions.
02:20 – Starting Fund Controller Overview
Mapping chaincode fund functions: createFund, donate, addExpense, getFund, getAllFunds.
03:20 – Creating a Fund
Explaining parameters: fundId, NGOId, title, purpose, and target amount.
04:45 – Donate Function
Issuing donation batch + storing CID on ledger.
05:00 – Add Expense
Explaining vendor/spending use case and batch creation for expenses.
05:40 – Get Functions
Fetching donations, all funds, funds per NGO using query transactions.
06:45 – Close Fund
Function accessible only to allowed users (NGO/Gov as per smart contract).
07:20 – Token Controller Overview
Functions: issueToken, transferToken, redeemToken.
08:40 – Token Contract Integration
Calling token functions with correct contract name & invoke transaction helper.
09:29 – Verifying Deployment / Has Chaincode Deployed?
Running `docker ps -a` and seeing chaincode not yet deployed.
10:20 – Deploying Chaincode
Running updated deployment command with name, version, and sequence.
11:30 – Checking Invoke Logic
How invoke transaction triggers submitTransaction in Fabric service.
12:35 – Token Functions Explained
IssueToken → TransferToken → RedeemToken flow explained.
13:25 – Reviewing Fund Routes
Routes for create-fund, donate, add-expense, get-funds, get-fund-by-id, close-fund, etc.
14:30 – Donor Route
Get all donations by donor for donor dashboard use case.
15:20 – Preparing Admin User Creation
Need new Gov User (admin-level) to register donor, bank, NGO.
16:10 – Chaincode Deployment Succeeded
Chaincode approved & committed for Org1, Org2, Org3.
16:50 – Register Admin User
Testing register admin/government/ng-admin scripts.
18:00 – Register NGO Admin
Successful creation of NGO admin certificate.
19:00 – Final Debug Note
Issue due to path mismatch; will be fixed in next chapter.
Playlists ❤️🔔:
• Top Blockchain Technology Projects Ideas 💡
• Solidity Programming ❤️ | Detailed Course ...
• Cryptography in Blockchain
• Blockchain Basics in Hindi
• Плейлист
❤️🚀 Social Handle❤️🌐
You can follow me on:
IinkedIn : / akshay-kurhekar-64438a168
Instagram: / akshay_kurhekar
Dev Community: https://dev.to/akshaykurhekar
So, what are you waiting for? Hit the subscribe 🔔 button, share 🔊 this video with your friends, and don't forget to smash that like 👍 button.
I'll see you in the next video. Until then, ❤️JAI HIND! ❤️
Информация по комментариям в разработке