Skip to content

Commit 0edcddf

Browse files
committedAug 20, 2023
ft(actions)
1 parent 8651d84 commit 0edcddf

File tree

4 files changed

+129
-11
lines changed

4 files changed

+129
-11
lines changed
 

‎.github/workflows/greetings.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Greetings
2+
3+
on: [pull_request_target, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/first-interaction@v1
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
issue-message: |
16+
Thank you for creating an issue in the Pheno Application repository! 🚀
17+
Our team will review the issue and respond to you as soon as possible. We appreciate your contribution to improving the application and making it even better.
18+
Feel free to explore other parts of the repository, contribute to ongoing discussions, or even consider submitting a pull request if you're up for it! We value your involvement and look forward to working together to address any concerns you might have.
19+
Happy coding! 💻✨
20+
pr-message: |
21+
Congratulations on submitting a pull request to the Pheno Application repository! 🎉
22+
Our team will review your changes and provide feedback or merge it if everything looks good.
23+
Your contributions help us enhance the application and provide a better experience for our users.
24+
Feel free to engage with the community, join discussions, and explore other areas of the repository.
25+
Your effort is valuable, and we're excited to have you as part of our development journey.
26+
Keep up the great work and keep coding! 💪💼

‎.github/workflows/issue-stale.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Close inactive issues
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
6+
jobs:
7+
close-issues:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write
11+
pull-requests: write
12+
steps:
13+
- uses: actions/stale@v5
14+
with:
15+
days-before-issue-stale: 30
16+
days-before-issue-close: 14
17+
stale-issue-label: "stale"
18+
exempt-issue-labels: 'bug,enhancement'
19+
stale-issue-message: "This issue is stale because it has been open for 30 days with no activity."
20+
close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale."
21+
days-before-pr-stale: -1
22+
days-before-pr-close: -1
23+
repo-token: ${{ secrets.REPO_TOKEN }}

‎README.md

+80-11
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,53 @@
1-
<h1 align="center">Polychain</h1>
1+
![](./assets/polychain.png)
22

3-
<p align="center">Blockchain integration for Polyroot Infrastructure</p>
3+
> Blockchain integration for `Landate` Infrastructure
44
5-
---
6-
## App Features
7-
8-
### Tech Stack
5+
## Tech Stack
96
- `NodeJs`
107
- `Solidity`
118
- `Truffle` - Framework for smart contract development.
129
- `Web3.Js` - Smart contract interaction
1310
- `Cypress` - E2E Testing
1411

15-
### 👌 Features
12+
### 👌 Contract Features
13+
14+
The core of Polychain is a Solidity smart contract that facilitates property ownership, transfer, pricing, and shared ownership. Here's a breakdown of its features:
15+
16+
- `Property Creation`
17+
- Owners can create properties by specifying the location and price.
18+
- Each property is represented by a unique token with an associated property ID.
19+
20+
- `Property Transfer`
21+
- Owners can transfer property ownership to another address.
22+
- Ownership transfers are securely facilitated using the ERC721 standard.
23+
24+
- `Property Purchase`
25+
- Users can purchase properties by sending the required funds to the contract.
26+
- The contract ensures that the purchase price matches the property's price.
27+
28+
- `Property Price Update`
29+
- Owners can update the price of their properties.
30+
- An event is emitted to notify interested parties about the price change.
31+
32+
- `Shared Ownership`
33+
- Owners can share ownership of a property with others.
34+
- Shared ownership is represented by assigning ownership shares to multiple addresses.
35+
- Owners can adjust the ownership shares of each participant.
36+
37+
- `Ownership Percentage Calculation`
38+
- A function calculates the ownership percentage of a specific address for a given property.
39+
- It takes into account the ownership shares assigned to that address.
40+
41+
- `Nomination and Transfer of Shared Ownership (Future Enhancement)`
42+
- A nomination feature can be added to facilitate the transfer of shared ownership to another address.
43+
44+
#### Contract Deployment and Usage
45+
46+
- To deploy the `Property` Smart Contract, compile and migrate it using the Truffle framework.
47+
- The contract provides a secure and decentralized way to manage property ownership and transactions.
48+
- Use the provided Ethereum wallet addresses and functions to interact with the contract.
49+
- The contract enforces ownership transfer rules and manages shared ownership transparently.
1650

17-
-
18-
-
19-
-
2051

2152
## Repository folder structure
2253
```bash
@@ -34,4 +65,42 @@
3465
├── test # contract testing code
3566
├── truffle-config.js # truffe configuration -> https://trufflesuite.com/docs/truffle/reference/configuration/
3667
└── yarn.lock
37-
```
68+
```
69+
70+
## Installation
71+
72+
- Clone the repository:
73+
```sh
74+
git clone https://github.com/your-username/polychain.git
75+
cd polychain
76+
```
77+
78+
### Install dependencies:
79+
```sh
80+
npm install
81+
```
82+
83+
### Usage
84+
85+
Compile smart contracts and deploy on a local blockchain:
86+
87+
```sh
88+
truffle compile
89+
truffle migrate
90+
```
91+
- Start the server:
92+
```sh
93+
node server.js
94+
```
95+
96+
- Run E2E tests:
97+
```sh
98+
npm run cypress
99+
```
100+
101+
## Contributing
102+
103+
Contributions are welcome! If you have any ideas or improvements, feel free to open an issue or a pull request.
104+
105+
## License
106+
This project is licensed under the [MIT License](./LICENSE).

‎assets/polychain.png

769 KB
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.