Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Contracts Changes Dev to Main #4

Merged
merged 106 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
106 commits
Select commit Hold shift + click to select a range
f755d3d
refactor: upgrade & update dependencies
Lucianosc Dec 5, 2023
5851084
refactor: upgrade to next app router
Lucianosc Dec 5, 2023
5741e6c
feat: Wallet Connect
Lucianosc Dec 5, 2023
06f5f32
chore: update dependencies + add order to imports and tailwind classes
Mati0x Dec 7, 2023
1e54c19
feat: install next-theme and add `ThemeProvider` to `Rootlayout`
Mati0x Dec 7, 2023
9e694cc
feat add hooks: useIsHover, useIsMounted, useDebounce
Mati0x Dec 7, 2023
ff13ec7
add the following:
Mati0x Dec 7, 2023
f6286c1
feat: add googl fonts + update tailwinds config
Mati0x Dec 7, 2023
56d3e11
fix: small config tweaks
Mati0x Dec 11, 2023
00d105d
:sparkles: CV Mock and Allo test
kamikazebr Dec 12, 2023
5a3da5f
:bug: foundry bug memory
kamikazebr Dec 12, 2023
69eefe4
:bug: fix subgraph build
kamikazebr Dec 12, 2023
2f05ddd
:sparkles: wip: register proposal
kamikazebr Dec 13, 2023
47923ee
fix: theme & dependencies
Lucianosc Dec 16, 2023
be3763e
add the following:
Mati0x Dec 19, 2023
0e47b43
feat: graphql urql set-up
Lucianosc Dec 19, 2023
1beed76
Merge branch 'frontend-setup' into dev
Lucianosc Dec 19, 2023
2367ac5
:sparkles: wip: register proposal and allocate
kamikazebr Dec 20, 2023
79ac6d5
:sparkles: forge command to run
kamikazebr Dec 20, 2023
c4f2a7d
feat: NavBar
Lucianosc Dec 20, 2023
32303d6
feat: Button component
Lucianosc Dec 20, 2023
5ef5add
add styles & assets
Lucianosc Dec 20, 2023
028a723
add Gardens view & routers structure
Lucianosc Dec 20, 2023
ca354b8
:sparkles: wip: adding formulas and params
kamikazebr Dec 21, 2023
8fd711e
:sparkles: lint
kamikazebr Dec 21, 2023
51392fd
feat: GardenCard & grid
Lucianosc Dec 21, 2023
0cd7ecb
fix: theme warning, Button, navItems
Lucianosc Dec 21, 2023
768ee54
fix: font family
Lucianosc Dec 21, 2023
154af48
fix: remove mock and fix imports
kafann Dec 22, 2023
0ba491b
:technologist: change default formatter
kamikazebr Dec 22, 2023
0c9029f
:rotating_light: try fix web linter
kamikazebr Dec 22, 2023
6f2d443
Merge branch 'dev' into allo-test
kamikazebr Dec 22, 2023
a64b7b1
feat: create `proposal` page and `ProposalView` component with `usePr…
Mati0x Dec 22, 2023
4185536
:sparkles: add modifier
kafann Dec 22, 2023
665435b
:sparkles: added stakedAmount in proposal
kamikazebr Dec 22, 2023
52ff9c3
style: adding hack styles for proposals
Mati0x Dec 22, 2023
40a96f1
:test_tube: added 4 new tests
kamikazebr Dec 22, 2023
a1833f3
Merge branch 'allo-test' of github.com:1Hive/gardens-v2 into allo-test
kamikazebr Dec 22, 2023
136f892
:sparkles: small warning fix in visibility
kamikazebr Dec 22, 2023
9e97942
Merge pull request #3 from 1Hive/allo-test
kamikazebr Dec 22, 2023
6c9dfc1
style: modified backgrounds at app `layout` and `ProposalView`
Mati0x Dec 22, 2023
2fb70f3
add the following:
Mati0x Dec 26, 2023
80cdf90
feat: add `communities` page + routing to community id
Mati0x Dec 26, 2023
910430a
feat: add `CommunityCard` + `PoolCard` at `communities` page + show m…
Mati0x Dec 27, 2023
a40815f
feat: small tweaks
Mati0x Dec 27, 2023
bff1f87
:fire: remove pinned solc version in foundry
kamikazebr Dec 27, 2023
33b554e
:art: fix format using `forge fmt`
kamikazebr Dec 27, 2023
2811fad
:bug: put owner in init params instead msg.sender
kamikazebr Dec 27, 2023
9bba721
:bug: fix stakedAmount updates
kamikazebr Dec 27, 2023
7035355
:rotating_light: try fixing web lint
kamikazebr Dec 27, 2023
40d2c6f
:rotating_light: disabled temp web lint
kamikazebr Dec 27, 2023
f1b7cc1
:rotating_light: skip web:build
kamikazebr Dec 27, 2023
24d5bba
feat: add `pool-id` page with styles + mock data
Mati0x Dec 27, 2023
fecf7cf
:heavy_plus_sign: Added Safe contracts in lib
kamikazebr Dec 27, 2023
cb3f055
fix: packages version conflict
Lucianosc Dec 27, 2023
f7afcf8
fix: wagmi packages update
Lucianosc Dec 27, 2023
12c1fba
Merge branch 'dev' into proposals
Lucianosc Dec 28, 2023
e4ce4d1
feat: wip Proposals input bars
Lucianosc Dec 28, 2023
87ac454
fix: color theme, daisyui conflicts
Lucianosc Dec 29, 2023
6d2f5b6
refactor: packages & styles
Lucianosc Jan 3, 2024
72f44c8
feat: PoolCard
Lucianosc Jan 3, 2024
23c3150
Feat: CommunityCard
Lucianosc Jan 3, 2024
c7c8662
feat: Badge
Lucianosc Jan 3, 2024
cec3c4e
refactor: NavBar, Proposals, Button
Lucianosc Jan 3, 2024
5202961
refactor: Pools, Proposals & Gardens Pages
Lucianosc Jan 3, 2024
0788a50
fix: URL param names
Lucianosc Jan 4, 2024
9bec3d4
:bug: fixing vscode import errors in foundry.toml
kamikazebr Jan 4, 2024
1638c1c
:wrench: example.env
kamikazebr Jan 4, 2024
662d339
Merge pull request #6 from 1Hive/proposal-vote-check
kamikazebr Jan 4, 2024
1448cb9
feat: StackedBarChart
Lucianosc Jan 4, 2024
ad6fb9d
:sparkles: adding Token minting
kamikazebr Jan 4, 2024
4aca411
:sparkles: 4 users has staked as members
kamikazebr Jan 4, 2024
9d39f53
:test_tube: test duplicated register proposal same id
kamikazebr Jan 4, 2024
9312e30
Merge pull request #7 from 1Hive/deploy-script
kamikazebr Jan 4, 2024
cfe4f89
:see_no_evil: remove broadcast jsons
kamikazebr Jan 4, 2024
e6d53a4
Merge remote-tracking branch 'origin/proposals' into generate-typechain
kamikazebr Jan 4, 2024
d430823
:see_no_evil: generated.ts
kamikazebr Jan 5, 2024
c9999af
:rotating_light: fixing lint
kamikazebr Jan 5, 2024
9b51f8b
:rotating_light: remove generate from build
kamikazebr Jan 5, 2024
6126efa
:sparkles: supportProposal func
kamikazebr Jan 7, 2024
49a283b
:fire: without fork in anvil
kamikazebr Jan 7, 2024
ad496a8
:sparkles: configured to use foundry plugin
kamikazebr Jan 7, 2024
2eec9ae
:bug: change node version 18.17
kamikazebr Jan 7, 2024
c6dad9c
:bug: fixing vercel
kamikazebr Jan 7, 2024
1347b44
:bug: forge build before generate types
kamikazebr Jan 7, 2024
2858552
:bug: turbo web build depends on foundry
kamikazebr Jan 7, 2024
db12a4a
:bug: commiting all ABIs
kamikazebr Jan 7, 2024
c418c71
:bug: remove foundry build
kamikazebr Jan 7, 2024
75d0cd4
:bug: upgrade eslint parser
kamikazebr Jan 7, 2024
9b911df
:zap: better name some func
kamikazebr Jan 8, 2024
40b23a5
:fire: payout codes
kamikazebr Jan 8, 2024
7cf91a5
:sparkles: deploy cv 3 proposals
kamikazebr Jan 8, 2024
edd97aa
:rotating_light: typescript pinned in 5.2.0
kamikazebr Jan 8, 2024
8e0c750
:rotating_light: typescript pinned in 5.2.0
kamikazebr Jan 8, 2024
8b45204
:bug: web:generate file
kamikazebr Jan 9, 2024
1f4d545
:zap: error code hashs without arguments
kamikazebr Jan 9, 2024
3db69e9
:bug: remove demonstration test
kamikazebr Jan 9, 2024
553ceb9
:zap: json abis updates
kamikazebr Jan 9, 2024
2d6b308
:sparkles: getProposalVoterStakedPointsPct func
kamikazebr Jan 9, 2024
e388dca
:sparkles: getProposal return points pct for msg.sender
kamikazebr Jan 9, 2024
437cf22
:bug: fix test
kamikazebr Jan 9, 2024
72d27d7
:sparkles: updateProposalConviction func
kamikazebr Jan 9, 2024
2b3b6d6
:bug: try fix vercel pnpm resolutions
kamikazebr Jan 10, 2024
6b52c70
:sparkles: script deploy in arb
kamikazebr Jan 10, 2024
d9c29b5
:memo: abi updates
kamikazebr Jan 10, 2024
4c73ea4
Merge pull request #8 from 1Hive/generate-typechain
kamikazebr Jan 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
cache: "pnpm"

- name: Cache pnpm modules
Expand Down
10 changes: 6 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ coverage

# next.js
.next/
out/
build
**/src/generated.ts

# misc
.DS_Store
Expand All @@ -38,10 +38,12 @@ yarn-error.log*
cache/

# Ignores development broadcast logs
!pkg/contracts/broadcast
pkg/contracts/broadcast/*/31337/
pkg/contracts/broadcast/**/dry-run/
!broadcast
broadcast/*/31337/
broadcast/**/1/
broadcast/**/dry-run/

# subgraph
pkg/subgraph/generated
pkg/**/data

6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@
[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-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/gardens-v2.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/test_package.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/test_package1.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/libraries/test_package2.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"plugins": [
"@ianvs/prettier-plugin-sort-imports",
"prettier-plugin-tailwindcss"
],
"tailwindConfig": "./packages/config/tailwind",
"importOrder": [
"^(react/(.*)$)|^(react$)|^(react-native(.*)$)",
"^(next/(.*)$)|^(next$)",
"^(expo(.*)$)|^(expo$)",
"<THIRD_PARTY_MODULES>",
"",
"^@blobscan/(.*)$",
"",
"^~/utils/(.*)$",
"^~/components/(.*)$",
"^~/styles/(.*)$",
"^~/(.*)$",
"^[./]"
],
"importOrderParserPlugins": ["typescript", "jsx", "decorators-legacy"],
"importOrderTypeScriptVersion": "4.4.0"
}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"solidity.packageDefaultDependenciesContractsDirectory": "pkg/contracts/src",
"solidity.packageDefaultDependenciesDirectory": "lib",
"[solidity]": {
"editor.defaultFormatter": "JuanBlanco.solidity",
"editor.defaultFormatter": "NomicFoundation.hardhat-solidity",
"editor.formatOnSave": true
},
"solidity.formatter": "forge",
Expand Down
16 changes: 14 additions & 2 deletions apps/web/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
/**
* @type {import('eslint').Linter.Config}
*/
module.exports = {
root: true,
extends: ["custom"],
extends: ["next/core-web-vitals", "turbo", "prettier"],
ignorePatterns: ["node_modules", "dist"],
parserOptions: {
babelOptions: {
presets: [require.resolve("next/babel")],
},
},
rules: {
"react-hooks/exhaustive-deps": "off",
"no-html-link-for-pages": "off",
},
};
5 changes: 5 additions & 0 deletions apps/web/app/(app)/create-garden/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import React from "react";

export default function CreateGarden() {
return <div>Create a garden form...</div>;
}
5 changes: 5 additions & 0 deletions apps/web/app/(app)/docs/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import React from "react";

export default function Docs() {
return <div>Docs...</div>;
}
160 changes: 160 additions & 0 deletions apps/web/app/(app)/gardens/communities/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
import { honeyIcon, gardenLand } from "@/assets";
import Image from "next/image";
import { CommunityCard } from "@/components";

export default function Garden() {
return (
<div className=" relative mx-auto max-w-5xl space-y-10 rounded-xl border-2 border-black bg-base-100 bg-surface p-8">
{/* header: honey logo +stats */}
<header className="flex items-center justify-between gap-4 py-6">
<div className="flex w-44 items-center justify-center gap-2">
<Image src={honeyIcon} alt="honey icon" className="h-20 w-20" />
<span className="text-2xl font-bold">HNY</span>
</div>
<div className="flex flex-1">
{stats.map((stat, i) => (
<div
className="flex w-full flex-col items-center justify-center gap-2"
key={stat.label + i}
>
<span className="text-3xl font-semibold text-info">
{stat.label}
</span>
<span className="text-xl font-bold">{stat.value}</span>
</div>
))}
</div>
</header>
<section className="mx-auto flex flex-col gap-8">
{/* communites */}
{conmmunities.map((community, i) => (
<CommunityCard {...community} key={community.name + i} />
))}
</section>
</div>
);
}

const stats = [
{
label: "Price",
value: "11.4",
},
{
label: "Total Supply",
value: "49,126",
},
{
label: "Total Support",
value: "8,649 ",
},
];

const conmmunities = [
{
name: "1Hive",
address: "0x...",
href: "1hive",
pools: [
{
name: "Pool 1",
strategy: "c.v",
proposals: 3,
href: "1",
},
{
name: "Pool 2",
strategy: "c.v",
proposals: 6,
href: "2",
},
{
name: "Pool 3",
strategy: "c.v",
proposals: 2,
href: "3",
},
{
name: "Pool 4",
strategy: "c.v",
proposals: 3,
href: "4",
},
{
name: "Pool 5",
strategy: "c.v",
proposals: 6,
href: "5",
},
{
name: "Pool 6",
strategy: "c.v",
proposals: 2,
href: "6",
},
{
name: "Pool 7",
strategy: "c.v",
proposals: 3,
href: "7",
},
{
name: "Pool 8",
strategy: "c.v",
proposals: 6,
href: "8",
},
],
},
{
name: "1hive Memecoins",
address: "0x...",
href: "#",
pools: [
{
name: "Pool 1",
strategy: "c.v",
proposals: 5,
},
{
name: "Pool 2",
strategy: "quest",
proposals: 2,
},
],
},
{
name: "1hive Foundation DAO",
address: "0x...",
href: "#",
pools: [
{
name: "Pool 1",
strategy: "c.v",
proposals: 2,
},
{
name: "Pool 2",
strategy: "quest",
proposals: 3,
},
{
name: "Pool 3",
strategy: "c.v",
proposals: 1,
},
],
},
{
name: "1hive Gardens Swarm",
address: "0x...",
href: "#",
pools: [
{
name: "Pool 1",
strategy: "c.v",
proposals: 8,
},
],
},
];
Loading
Loading