Skip to content

Commit

Permalink
Merge pull request #53 from moonshotcollective/refactor
Browse files Browse the repository at this point in the history
Refactor
  • Loading branch information
hmrtn authored Dec 18, 2021
2 parents d4aa135 + 169d193 commit 645a38a
Show file tree
Hide file tree
Showing 117 changed files with 1,066 additions and 11,603 deletions.
14 changes: 0 additions & 14 deletions CHANGELOG.md

This file was deleted.

10 changes: 7 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Contribute to pay.party

This is the typescript monorepo of the pay.party application. The directories that you'll use are:
The directories that you'll use are:

```bash
packages/react-app/
packages/hardhat/
packages/backend/
```

The project was created by members of the moonshot collective using the [scaffold-eth-typescript]() template repository.
The project was created by members of the moonshot collective using the [scaffold-eth]() template repository.

## Quick Start

Running the app requires setting up proper enviroment variables, and node (<=v16.13.0). See the `.sample.env` in the directories for more information on creating `.env`'s.
Running the app requires setting up proper enviroment variables, and node (<=v16.13.0). See the `.sample.env` in the directories for more information on creating `.env`'s. You will need access to a mongodb connection string, an etherscan-like block explore api key, and RPC key.

0. Navigate to the root directory after cloning the repository.

Expand Down Expand Up @@ -51,6 +51,10 @@ Running the app requires setting up proper enviroment variables, and node (<=v16
yarn start
```

## Making a pull request

Each time you begin a set of changes, ensure that you are working on a new branch that you have created as opposed to the main of your local repository. By keeping your changes segregated in this branch, merging your changes into the main repository later will be much simpler.

# 💬 Support Chat

🙏 Please check out our [Moonshot Collective](https://t.me/joinchat/BHPBtqODJGo0NDdh) telegram!
Expand Down
4 changes: 2 additions & 2 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

- [x] Rebrand to pay.party
- [x] * Typescript (see [here](https://github.com/hansmrtn/pay-party-ts))
- [ ] Voting Stratagies
- [ ] General ERC20 Support
- [x] Voting Stratagies
- [x] General ERC20 Support
- [ ] Mobile Support
- [ ] Contract 2.0 + Tests
- [ ] Deploy contracts on L2s
Expand Down
File renamed without changes.
32 changes: 16 additions & 16 deletions packages/backend/services/databaseService.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,32 +24,32 @@ async function applySchemaValidation(db) {
const jsonSchema = {
$jsonSchema: {
bsonType: "object",
required: ["name", "desc"],
required: [
"name",
"description",
"receipts",
"participants",
"candidates",
"ballots",
],
additionalProperties: false,
properties: {
_id: {},
name: {
bsonType: "string",
description: "'name' is required and is a string",
},
desc: {
description: {
bsonType: "string",
description: "'desc' is required and is a string",
description: "'description' is required and is a string",
},
fund: {
bsonType: "object",
properties: {
amount: {
bsonType: "number",
},
token: {
bsonType: "string",
},
},
receipts: {
bsonType: "array",
description: "receipts is th pay-out recipets.",
},
strategy: {
bsonType: "string",
description: "'strategy' is a string",
config: {
bsonType: "object",
description: "party configuration",
},
participants: {
bsonType: "array",
Expand Down
62 changes: 0 additions & 62 deletions packages/chakra-app/src/components/Buttons/BalancesButton.tsx

This file was deleted.

136 changes: 0 additions & 136 deletions packages/chakra-app/src/components/Buttons/ConnectButton.tsx

This file was deleted.

29 changes: 0 additions & 29 deletions packages/chakra-app/src/components/Buttons/LogoutButton.tsx

This file was deleted.

This file was deleted.

Loading

0 comments on commit 645a38a

Please sign in to comment.