solidity-private-city
Solidity Smart Contract: Private City
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.7%) to scientific vocabulary
Keywords
Repository
Solidity Smart Contract: Private City
Basic Info
- Host: GitHub
- Owner: block-foundation
- License: cc-by-sa-4.0
- Language: TypeScript
- Default Branch: main
- Homepage: https://www.blockfoundation.io
- Size: 89.8 KB
Statistics
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 5
- Releases: 0
Topics
Metadata Files
README.md
Private City
Block Foundation Smart Contract Series [Solidity]

Contents
Private City: A Blockchain-Based City Governance System This repository contains the smart contract code, test cases, and deployment scripts for a decentralized application representing a private city management system on the Ethereum blockchain.
Introduction
Welcome to Private City, a cutting-edge city governance system powered by Ethereum Blockchain technology. In an era where transparency, efficiency, and decentralization are increasingly becoming important, we are harnessing the power of Blockchain to redefine city governance.
PrivateCity is a first-of-its-kind initiative aimed at simulating the operations of a private city using a Solidity smart contract. At its core, it leverages the transparent and immutable nature of blockchain technology to record, track, and manage various aspects of city governance such as citizenship, property ownership, tax payments, and city treasury management.
The project's smart contract includes a variety of features that mirror real-life city operations:
- Citizenship Management: A system to add or remove citizens, where each citizen has a unique identity, and associated properties.
- Property Management: A system that records and tracks property ownership, allowing properties to be added, removed, or transferred between citizens.
- City Treasury: A city treasury to accumulate tax payments, which are calculated based on property ownership.
- Decentralized Finance: A basic decentralized finance system where citizens can deposit and withdraw Ether, and pay taxes based on their property holdings.
The overarching goal of PrivateCity is to explore how blockchain technology can be utilized to create efficient, transparent, and secure systems for city governance. The project aims to stimulate conversations about the potential of blockchain technology in managing not just digital assets, but also tangible assets in real-world environments.
Overview
PrivateCity is a Solidity-based smart contract system that allows:
- Citizenship management: Add or remove citizens.
- Property management: Add, remove, or transfer properties.
- Financial system: Citizens can deposit and withdraw Ether, and pay property taxes.
Installation
Prerequisites
Make sure you have node and npm installed. You also need to have Ethereum wallet software, like Metamask, set up.
Steps
- Clone the repository:
bash
git clone [repository_url] privatecity
cd privatecity
- Install dependencies:
bash
npm install
- Compile the contracts:
bash
npx hardhat compile
Usage
Local Development
Start a local Ethereum development network:
bash
npx hardhat node
This will start a local Ethereum network for development purposes.
Testing
Run the tests with:
bash
npx hardhat test
This command will execute the TypeScript test cases using the Hardhat testing environment.
Deployment
To deploy the contract on your local Ethereum network:
bash
npx hardhat run scripts/deploy.ts --network localhost
Replace localhost with another network configuration in hardhat.config.ts if you want to deploy to a different network.\
Quick Start
Install
sh
npm i
Compile
sh
npm run compile
Contract
Development Resources
Other Repositories
Block Foundation Smart Contract Series
| | Solidity | Teal |
| --------------------------------- | ----------- | ----------- |
| Template | >>> | >>> |
| Architectural Design | >>> | >>> |
| Architecture Competition | >>> | >>> |
| Housing Cooporative | >>> | >>> |
| Land Registry | >>> | >>> |
| Real-Estate Crowdfunding | >>> | >>> |
| Rent-to-Own | >>> | >>> |
| Self-Owning Building | >>> | >>> |
| Smart Home | >>> | >>> |
Colophon
Authors
This is an open-source project by the Block Foundation.
The Block Foundation mission is enabling architects to take back initiative and contribute in solving the mismatch in housing through blockchain technology. Therefore the Block Foundation seeks to unschackle the traditional constraints and construct middle ground between rent and the rigidity of traditional mortgages.
website: www.blockfoundation.io
Development Resources
Contributing
We'd love for you to contribute and to make this project even better than it is today! Please refer to the contribution guidelines for information.
Legal Information
Copyright
Copyright © 2023 Stichting Block Foundation. All Rights Reserved.
License
Except as otherwise noted, the content in this repository is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) License, and code samples are licensed under the Apache 2.0 License.
Also see LICENSE and LICENSE-CODE.
Disclaimer
THIS SOFTWARE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
Owner
- Name: Block Foundation
- Login: block-foundation
- Kind: organization
- Email: info@blockfoundation.io
- Location: Netherlands
- Website: https://www.blockfoundation.io
- Repositories: 105
- Profile: https://github.com/block-foundation
The Block Foundation mission is enabling architects to take back initiative and contribute in solving the mismatch in housing through blockchain technology.
Citation (CITATION.cff)
cff-version: 1.2.0
title: solidity-private-city
version: 0.0.1
date-released: 2023-07-01
url: "https://github.com/block-foundation/solidity-private-city"
message: >-
If you use this software, please cite it using
the metadata from this file.
type: software
authors:
- given-names: Lars Bastiaan
family-names: van Vianen
email: lars@blockfoundation.io
affiliation: Block Foundation
orcid: "https://orcid.org/0000-0002-8790-8630"
GitHub Events
Total
- Delete event: 6
- Issue comment event: 11
- Pull request event: 12
- Create event: 5
Last Year
- Delete event: 6
- Issue comment event: 11
- Pull request event: 12
- Create event: 5
Committers
Last synced: almost 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Lars van Vianen | l****s@v****m | 81 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: almost 2 years ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- dependabot[bot] (18)