Public service field: Xi'an New Community Owners' Independent Owners Committee's end-of-year dividends of 830,000 and 1.03 million event attempts at transparent supervision and voting solutions for blockchain funds
Author: Chongqing Electronic Engineering Vocational College | Xiang Jianxiong and Du Xiaomin
Preface
The idea of this project comes from the incident where the owners of a new community in Xi'an issued year-end dividends of 830,000 and 1.03 million to the independent property owner committee. For such events, we can use blockchain to replace the trust mechanism without mutual trust among all employees, so that everyone can A transaction, every expenditure and income, all residents agree, reject, abstain, etc.
Solutions
The project is based on the bottom layer of the FISCO BCOS alliance chain and uses multiple nodes. It uses the get_account.sh certificate provided by the console to generate the certificates required for the layout node and join the alliance chain.
environment
Ubuntu20
FISCO BCOS 2.8
WeBASE-Front 1.5.4
AccountManger.sol
This contract is used to control the additions, deletions, checks and modifications of community residents.
This is the entity definition area, used to store resident entities
/*实体定义区*/
// 居民结构体
struct ResidentStruct{
bool checkInBool; // 居民是否入住
string id; // id索引值
uint banlance; // 账户余额用于提交物业管理费的积分
string blongsBuilding; // 所属楼栋
bool isBuilding;