Skip to content

Commit

Permalink
Merge pull request #223 from 1Hive/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
Corantin authored Oct 18, 2024
2 parents 204e1e6 + 5f38b90 commit 367580e
Show file tree
Hide file tree
Showing 506 changed files with 189,725 additions and 25,423 deletions.
9 changes: 2 additions & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
module.exports = {
root: true,
// This tells ESLint to load the config from the package `eslint-config-custom`
root: true, // This tells ESLint to load the config from the package `eslint-config-custom`
extends: ["custom"],
settings: {
next: {
rootDir: ["apps/*/"],
},
},
settings: { next: { rootDir: ["apps/*/"] } },
};
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
SCORER_ID: ${{ secrets.SCORER_ID }}
GITCOIN_PASSPORT_API_KEY: ${{ secrets.GITCOIN_PASSPORT_API_KEY }}
LIST_MANAGER_PRIVATE_KEY: ${{ secrets.LIST_MANAGER_PRIVATE_KEY }}
FOUNDRY_OUT: pkg/contracts/out

steps:
- name: Check out code
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,11 @@ cache/
pkg/subgraph/generated
pkg/**/data
cookies.json
.graphclientrc.yml

lcov.info
# some abi should be ignored
# pkg/contracts/out/**
# !pkg/contracts/out/CVStrategy.sol/CVStrategy.json
# pkg/contracts/out
# pkg/contracts/out
pkg/contracts/script/Playground.s.sol
12 changes: 9 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@
[submodule "lib/allo-v2"]
path = lib/allo-v2
url = https://github.com/allo-protocol/allo-v2
[submodule "lib/safe-contracts"]
path = lib/safe-contracts
url = https://github.com/safe-global/safe-contracts
[submodule "lib/openzeppelin-foundry-upgrades"]
path = lib/openzeppelin-foundry-upgrades
url = https://github.com/OpenZeppelin/openzeppelin-foundry-upgrades
[submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/openzeppelin-contracts-upgradeable"]
path = lib/openzeppelin-contracts-upgradeable
url = https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable
[submodule "lib/safe-smart-account"]
path = lib/safe-smart-account
url = https://github.com/safe-global/safe-smart-account
12 changes: 3 additions & 9 deletions .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,14 @@
"^~/(.*)$",
"^[./]"
],
"importOrderParserPlugins": [
"typescript",
"jsx",
"decorators-legacy"
],
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"],
"importOrderTypeScriptVersion": "4.4.0",
"overrides": [
{
"files": [
"*.yaml|*.yml"
],
"files": ["*.yaml|*.yml"],
"options": {
"bracketSpacing": false
}
}
]
}
}
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@
"editor.formatOnSave": true
},
"solidity.formatter": "forge",
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
35 changes: 18 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
# Gardens v2

> Gardens is a **coordination platform**
> Gardens is a **coordination platform**
> that fosters **vibrant ecosystems of shared wealth**
> by providing **healthy funding mechanisms to communities in web3**
> by providing **healthy funding mechanisms to communities in web3**
As a modular governance mechanism, Gardens strategically mixes centralized and decentralized components to take advantage of the efficiency and security benefits of both when needed.
As a modular governance mechdwaawdadwdwadawdawanism, Gardens strategically mixes centralized and decentralized components to take advantage of the efficiency and security benefits of both when needed.
daawd
Project and Ecosystem leaderdwadwadwas can use Gardens to:

Project and Ecosystem leaders can use Gardens to:
* Publish a Covenant to IPFS and Create a Community pinned to its values and purpose.
* Appoint a Council Safe as admin for the Community and a Tribunal Safe to rule on disputes
* Create funding pools and strategies to allocate funding and source collective decisions
- Publish a Covenant to IPFS and Create a Community pinned to its values and purpose.
- Appoint a Council Safe as admin for the Community and a Tribunal Safe to rule on disputes
- Create funding pools and strategies to allocate funding and source collective decisions

Community members and Public Goods builders can use Gardens to:
* Support Communities by staking in their Covenant
* Create proposals in funding pools and strategies they're eligible for
* Take part in collective decision-making by voting on Proposals.

For Communities building goods and services whose value subjective to its users (AKA "Public Goods"), Gardens offers a toolset capable of leveraging the _Wisdom of the Crowds_ and that resists value extraction by malicious, abusive, or apathetic parties.
- Support Communities by staking in their Covenant
- Create proposals in funding pools and strategies they're eligible for
- Take part in collective decision-making by voting on Proposals.

For Communities building goods and services whose value subjective to its users (AKA "Public Goods"), Gardens offers a toolset capable of leveraging the _Wisdom of the Crowds_ and that resists value extraction by malicious, abusive, or apathetic parties.

## Turborepo starter for web3 projects
## Turborepo starter for wedadawawdwadb3 projects

This turborepo uses [pnpm](https://pnpm.io) as a package manager. It includes the following packages/apps:

Expand Down Expand Up @@ -57,7 +58,7 @@ pnpm run build

### Develop

To develop all apps and packages, run the following command:
To develop all apps and packadawdwadawawdges, run the following command:

```
cd my-turborepo
Expand All @@ -66,9 +67,9 @@ pnpm run dev

### Remote Caching

Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacts across machines, enabling you to share build caches with your team and CI/CD pipelines.
Turborepo can use a technique known as [Remote Caching](https://turbo.build/repo/docs/core-concepts/remote-caching) to share cache artifacdwadawts across machines, enabling you to share build caches with your team and CI/CD pipelines.

By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an account you can [create one](https://vercel.com/signup), then enter the following commands:
By default, Turborepo will cache locally. To enable Remote Caching you will need an account with Vercel. If you don't have an accountddwaaaaaaaaaaawdawdw you can [create one](https://vercel.com/signup), then enter the following commands:

```
cd my-turborepo
Expand All @@ -77,15 +78,15 @@ pnpm dlx turbo login

This will authenticate the Turborepo CLI with your [Vercel account](https://vercel.com/docs/concepts/personal-accounts/overview).

Next, you can link your Turborepo to your Remote Cache by running the following command from the root of your turborepo:
Next, you can link yourdawdwdwa Turborepo to your Remote Cache by running the following command from the root of your turborepo:

```
pnpm dlx turbo link
```

## Useful Links

Learn more about the power of Turborepo:
Learn more about the pdwadawdower of Turborepo:

- [Pipelines](https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks)
- [Caching](https://turbo.build/repo/docs/core-concepts/caching)
Expand Down
1 change: 1 addition & 0 deletions apps/docs/pages/index.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import _ from "react";
import { Button } from "ui";

export default function Docs() {
Expand Down
86 changes: 80 additions & 6 deletions apps/web/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,89 @@
* @type {import('eslint').Linter.Config}
*/
module.exports = {
extends: ["next/core-web-vitals", "turbo", "prettier"],
ignorePatterns: ["node_modules", "dist"],
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
"airbnb/hooks",
"airbnb-typescript",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:jsx-a11y/recommended",
"next/core-web-vitals",
"prettier/prettier",
],
plugins: ["react"],
ignorePatterns: ["node_modules", "dist", "src/generated.ts", "public"],
parser: "@typescript-eslint/parser",
parserOptions: {
babelOptions: {
presets: [require.resolve("next/babel")],
},
project: "./tsconfig.json",
},
rules: {
"react/jsx-filename-extension": [
2,
{ extensions: [".js", ".jsx", ".ts", ".tsx"] },
],
"react-hooks/exhaustive-deps": "off",
"no-html-link-for-pages": "off",
"@next/next/no-html-link-for-pages": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@next/next/no-page-custom-font": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/prefer-nullish-coalescing": "error",
"react/self-closing-comp": [
"error",
{
component: true,
html: true,
},
],
"no-unreachable": "warn",
"import/order": [
"error",
{
groups: ["builtin", "external", "internal"],
pathGroups: [
{
pattern: "react",
group: "external",
position: "before",
},
],
pathGroupsExcludedImportTypes: ["react"],
alphabetize: {
order: "asc",
caseInsensitive: true,
},
},
],
"no-console": [
"warn",
{
allow: ["warn", "error", "info", "debug", "table"],
},
],
"prefer-const": "off",
"@typescript-eslint/consistent-type-definitions": "off",
"no-unused-expressions": "error",
"no-unsafe-optional-chaining": "error",
"import/extensions": "off",
"@typescript-eslint/quotes": ["error", "double", { avoidEscape: true }],
"@typescript-eslint/no-use-before-define": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/no-array-index-key": "warn",
indent: "off",
"@typescript-eslint/indent": "off",
"jsx-a11y/label-has-associated-control": "off",
},
};
3 changes: 3 additions & 0 deletions apps/web/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["skillhub.daisy-ui-latest-snippets", "bradlc.vscode-tailwindcss"]
}
28 changes: 28 additions & 0 deletions apps/web/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"type": "node-terminal",
"request": "launch",
"command": "pnpm dev"
},
{
"name": "Next.js: debug client-side",
"type": "chrome",
"request": "launch",
"url": "http://localhost:3000"
},
{
"name": "Next.js: debug full stack",
"type": "node-terminal",
"request": "launch",
"command": "pnpm dev",
"serverReadyAction": {
"pattern": "- Local:.+(https?://.+)",
"uriFormat": "%s",
"action": "debugWithChrome"
}
}
]
}
18 changes: 18 additions & 0 deletions apps/web/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
},
"[typescriptreact]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"css.lint.unknownAtRules": "ignore",
"[javascript]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"editor.tabSize": 2,
}
70 changes: 0 additions & 70 deletions apps/web/actions/getProposals.ts

This file was deleted.

Loading

0 comments on commit 367580e

Please sign in to comment.