# SmartContract **Repository Path**: yinin/smart-contract ## Basic Information - **Project Name**: SmartContract - **Description**: 代币发行+单车分享,智能合约编写 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2022-04-29 - **Last Updated**: 2024-12-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: Sol ## README # 智能合约—单车分享 示例部署地址: --- [分享中心](https://ropsten.etherscan.io/address/0x312f97ff9786ed5be40abb41d7937ceb61b39bc2) [钱包中心](https://ropsten.etherscan.io/address/0x595ce483816aba495a5f6332fb094c926d5b02fa) [用户中心](https://ropsten.etherscan.io/address/0x0b53d62ccb08828790d7ca531e5454c58b707b18) 本次实验设置的智能合约为单车分享系统,构建一个去单车分享平台,该平台由三部分组成:分享中心,用户中心以及钱包中心。 分享中心由发起者进行创建,在分享中心创建的同时,会分别创建用户中心和钱包中心,值得注意的时,钱包中心会初始化发行一种代币,发行的数量根据支付的以太坊进行比例的换算,存储到分享中心的智能合约账户中,只有管理员才可以操作。 ## 结构图 ![a](img/a.png) ## 交互流程图 ### 用户注册交互 ![b](img/b.png) ### 分享中心交互 ![c](img/c.png) ## 功能结构图 ### 用户中心 ![d](img/d.png) ### 钱包中心 ![f](img/f.png) ### 分享中心 ![g](img/g.png)