solidity-private-city

Solidity Smart Contract: Private City

https://github.com/block-foundation/solidity-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

architecture block-foundation blockchain blockfoundation city eth ethereum governance hardhat private-city smart-contracts sol solidity urban-planning urbanism
Last synced: 4 months ago · JSON representation ·

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
architecture block-foundation blockchain blockfoundation city eth ethereum governance hardhat private-city smart-contracts sol solidity urban-planning urbanism
Created over 2 years ago · Last pushed about 1 year ago
Metadata Files
Readme Changelog Contributing Funding License Code of conduct Citation Codeowners Security Support Governance Authors

README.md

[![GitHub License](https://img.shields.io/github/license/block-foundation/blocktxt?style=flat-square&logo=readthedocs&logoColor=FFFFFF&label=&labelColor=%23041B26&color=%23041B26&link=LICENSE)](https://github.com/block-foundation/solidity-private-city/blob/main/LICENSE) [![devContainer](https://img.shields.io/badge/Container-Remote?style=flat-square&logo=visualstudiocode&logoColor=%23FFFFFF&label=Remote&labelColor=%23041B26&color=%23041B26)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/block-foundation/solidity-private-city)

Block Foundation Logo

Private City

Block Foundation Smart Contract Series [Solidity]


Block Foundation Brand

Contents



[![Report a Bug](https://img.shields.io/badge/Report%20a%20Bug-GitHub?style=flat-square&&logoColor=%23FFFFFF&color=%23E1E4E5)](https://github.com/block-foundation/solidity-private-city/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&projects=&template=bug_report.yml) [![Request a Feature](https://img.shields.io/badge/Request%20a%20Feature-GitHub?style=flat-square&&logoColor=%23FFFFFF&color=%23E1E4E5)](https://github.com/block-foundation/solidity-private-city/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&projects=&template=feature_request.yml) [![Ask a Question](https://img.shields.io/badge/Ask%20a%20Question-GitHub?style=flat-square&&logoColor=%23FFFFFF&color=%23E1E4E5)](https://github.com/block-foundation/solidity-private-city/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&projects=&template=question.yml) [![Make a Suggestion](https://img.shields.io/badge/Make%20a%20Suggestion-GitHub?style=flat-square&&logoColor=%23FFFFFF&color=%23E1E4E5)](https://github.com/block-foundation/solidity-private-city/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&projects=&template=suggestion.yml) [![Start a Discussion](https://img.shields.io/badge/Start%20a%20Discussion-GitHub?style=flat-square&&logoColor=%23FFFFFF&color=%23E1E4E5)](https://github.com/block-foundation/solidity-private-city/issues/new?assignees=&labels=Needs%3A+Triage+%3Amag%3A%2Ctype%3Abug-suspected&projects=&template=discussion.yml)

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:

  1. Citizenship management: Add or remove citizens.
  2. Property management: Add, remove, or transfer properties.
  3. 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

  1. Clone the repository:

bash git clone [repository_url] privatecity cd privatecity

  1. Install dependencies:

bash npm install

  1. 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

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

All Time
  • Total Commits: 81
  • Total Committers: 1
  • Avg Commits per committer: 81.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 81
  • Committers: 1
  • Avg Commits per committer: 81.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email 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)
Top Labels
Issue Labels
Pull Request Labels