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

[Do not merge] Beta #429

Draft
wants to merge 40 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
6c7816f
Merge remote-tracking branch 'origin/Batch-fix' into beta
Corantin Sep 12, 2024
b38e22e
Fix coucil safe not seeing buttons
Corantin Sep 13, 2024
7b69f79
Merge branch 'Batch-fix' into beta
Mati0x Sep 13, 2024
9e33a59
fix-pool-form-conviction-growth-not-converted
Corantin Sep 11, 2024
c1e6a91
Merge branch 'gnosis-deploy-0.0.4' into beta
Corantin Sep 16, 2024
c39a314
Merge branch 'dev' into beta
Corantin Sep 16, 2024
6d24e74
Merge remote-tracking branch 'origin/dev' into beta
Corantin Sep 18, 2024
e97fbf8
Merge branch 'fix-not-loading-when-wrong-network' into beta
Corantin Sep 18, 2024
117cc94
Merge branch 'tooltip-not-visible' into beta
Corantin Sep 18, 2024
f49c0f5
Merge remote-tracking branch 'origin/dev' into beta
Corantin Sep 18, 2024
47cfd8b
Merge branch 'mobile-connect-button' into beta
Corantin Sep 24, 2024
db584ed
Merge branch 'gnosis-deploy-0.0.4' into beta
Corantin Sep 26, 2024
6255684
Use sub version v4
Corantin Sep 26, 2024
29c47b2
Merge remote-tracking branch 'origin/magic-number' into beta
Corantin Sep 26, 2024
648e2f6
:recycle: Refactored daily job route for multi-chain support
Corantin Oct 11, 2024
c2f68ab
Merge branch 'dev' into beta
Corantin Oct 15, 2024
cef6c57
Merge branch 'dev' into beta
Corantin Oct 15, 2024
1f20af2
Merge branch 'dev' into beta
Corantin Oct 15, 2024
b8ed4dc
Merge branch 'dev' into beta
Corantin Oct 15, 2024
8135990
Merge branch 'dev' into beta
Corantin Oct 16, 2024
6bad13b
Merge branch 'dev' into beta
Corantin Oct 16, 2024
3f398f5
Merge branch 'dev' into beta
Corantin Oct 16, 2024
fdb9067
Merge branch 'dev' into beta
Corantin Oct 16, 2024
a279142
Merge branch 'dev' into beta
Corantin Oct 16, 2024
5358dc2
:arrow_up: Bump production version
Corantin Oct 17, 2024
35617c6
Merge branch 'dev' into beta
Corantin Oct 18, 2024
19c9c88
Merge branch 'dev' into beta
Corantin Oct 18, 2024
97db6fa
Merge branch 'dev' into beta
Corantin Oct 18, 2024
2ea917e
Merge branch 'dev' into beta
Corantin Oct 18, 2024
47082be
Merge branch 'dev' into beta
Corantin Oct 18, 2024
da78c22
Merge branch 'dev' into beta
Corantin Oct 18, 2024
0f189c8
Merge branch 'dev' into beta
Corantin Oct 19, 2024
095cd5a
Merge branch 'dev' into beta
Corantin Oct 20, 2024
0577ecf
Merge branch 'dev' into beta
Corantin Oct 20, 2024
de865ee
Merge branch 'dev' into beta
Corantin Oct 20, 2024
3d0f36c
Merge branch 'dev' into beta
Corantin Oct 20, 2024
c24da41
Merge branch 'dev' into beta
Corantin Oct 20, 2024
5bcb025
Bump subgraph to v0.1.2
Corantin Oct 22, 2024
be7e332
order garden card by comm from most to least
Mati0x Oct 22, 2024
9829a09
addt garden card by members when comm length is equal
Mati0x Oct 22, 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
24 changes: 20 additions & 4 deletions apps/web/app/(app)/gardens/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,26 @@ export default function Page() {
return (
<>
{tokenGardens
.sort(
(a, b) =>
(a.communities?.length ?? 0) - (b.communities?.length ?? 0),
)
.sort((a, b) => {
const communitiesDiff =
(b.communities?.length ?? 0) - (a.communities?.length ?? 0);

if (communitiesDiff === 0) {
const aTotalMembers =
a.communities?.reduce(
(sum, community) => sum + (community.members?.length ?? 0),
0,
) ?? 0;
const bTotalMembers =
b.communities?.reduce(
(sum, community) => sum + (community.members?.length ?? 0),
0,
) ?? 0;
return bTotalMembers - aTotalMembers;
}

return communitiesDiff;
})
.map((garden) => (
<div key={garden.id}>
<GardenCard garden={garden} />
Expand Down
2 changes: 1 addition & 1 deletion apps/web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import { redirect } from "next/navigation";

export default function Page() {
redirect("/gardens");
}
}
2 changes: 1 addition & 1 deletion apps/web/configs/subgraph.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"VERSION_TESTNET": "0.1.15",
"VERSION_PROD": "0.1.1"
"VERSION_PROD": "0.1.2"
}
1,066 changes: 1,066 additions & 0 deletions broadcast/UpgradeCVMultichain.s.sol/10/run-1729553069.json

Large diffs are not rendered by default.

646 changes: 323 additions & 323 deletions broadcast/UpgradeCVMultichain.s.sol/10/run-latest.json

Large diffs are not rendered by default.

311 changes: 311 additions & 0 deletions broadcast/UpgradeCVMultichain.s.sol/100/run-1729553281.json

Large diffs are not rendered by default.

190 changes: 97 additions & 93 deletions broadcast/UpgradeCVMultichain.s.sol/100/run-latest.json

Large diffs are not rendered by default.

324 changes: 324 additions & 0 deletions broadcast/UpgradeCVMultichain.s.sol/137/run-1729553264.json

Large diffs are not rendered by default.

228 changes: 114 additions & 114 deletions broadcast/UpgradeCVMultichain.s.sol/137/run-latest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/subgraph/config/optimism.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
{
"network": "optimism",
"chainId": 10,
"dataSources": [
Expand Down
14 changes: 7 additions & 7 deletions pkg/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
"create-local": "graph create --node http://localhost:8020/ kamikazebr/gv2",
"remove-local": "graph remove --node http://localhost:8020/ kamikazebr/gv2",
"deploy:local": "pnpm manifest:local && graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 kamikazebr/gv2 -l v0.0.3",
"deploy:arbsep": "pnpm manifest:arbsep && graph deploy --studio gv2-arbsepolia",
"deploy:arbsep": "pnpm manifest:arbsep && graph deploy --studio gardens-v2---arbitrum-sepolia",
"deploy:ethsep": "pnpm manifest:ethsep && graph deploy --studio gv2-ethsepolia",
"deploy:arbitrum": "pnpm manifest:arbitrum && graph deploy --studio gv2-arbitrum",
"deploy:optimism": "pnpm manifest:optimism && graph deploy --studio gv2-optimism",
"deploy:matic": "pnpm manifest:matic && graph deploy --studio gv2-matic",
"deploy:gnosis": "pnpm manifest:gnosis && graph deploy --studio gv2-gnosis",
"deploy:prod": "export SUB_PROD_VERSION=0.1.0 && pnpm deploy:arbitrum -l $SUB_PROD_VERSION && pnpm deploy:optimism -l $SUB_PROD_VERSION && pnpm deploy:matic -l $SUB_PROD_VERSION && pnpm deploy:gnosis -l $SUB_PROD_VERSION",
"deploy:arbitrum": "pnpm manifest:arbitrum && graph deploy --studio gardens-v2---arbitrum",
"deploy:optimism": "pnpm manifest:optimism && graph deploy --studio gardens-v2---optimism",
"deploy:matic": "pnpm manifest:matic && graph deploy --studio gardens-v2---polygon",
"deploy:gnosis": "pnpm manifest:gnosis && graph deploy --studio gardens-v2---gnosis",
"deploy:prod": "export SUB_PROD_VERSION=0.1.2 && pnpm deploy:arbitrum -l $SUB_PROD_VERSION && pnpm deploy:optimism -l $SUB_PROD_VERSION && pnpm deploy:matic -l $SUB_PROD_VERSION && pnpm deploy:gnosis -l $SUB_PROD_VERSION",
"build-deploy:arbsep": "pnpm build:arbsep && pnpm deploy:arbsep:last",
"build-deploy:ethsep": "pnpm build:ethsep && pnpm deploy:ethsep:last",
"local": "pnpm create-local && pnpm build && pnpm deploy:local",
Expand All @@ -32,7 +32,7 @@
"proxies:prod": "node src/scripts/list-proxies.cjs matic && node src/scripts/list-proxies.cjs arbitrum && node src/scripts/list-proxies.cjs optimism && node src/scripts/list-proxies.cjs gnosis",
"build-client": "mustache ../../apps/web/configs/subgraph.json .graphclientrc.template.yml > .graphclientrc.yml && graphclient build --fileType js",
"build-all": "pnpm create-local && pnpm build && pnpm deploy:local",
"deploy:arbsep:last": "dotenvx run -- ts-node --esm -P ../../apps/web/tsconfig.json ./src/scripts/last-version.ts gv2-arbsepolia",
"deploy:arbsep:last": "dotenvx run -- ts-node --esm -P ../../apps/web/tsconfig.json ./src/scripts/last-version.ts gv2-arbitrum-sepolia",
"deploy:ethsep:last": "dotenvx run -- ts-node --esm -P ../../apps/web/tsconfig.json ./src/scripts/last-version.ts gv2-ethsepolia",
"codegen": "graph codegen",
"tsc": "tsc"
Expand Down
22 changes: 11 additions & 11 deletions pkg/subgraph/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ schema:
dataSources:
- kind: ethereum/contract
name: RegistryFactoryV0_0
network: arbitrum-sepolia
network: gnosis
context:
chainId:
type: Int
data: 421614
data: 100
source:
address: "0x7a603877488db46c0f6b40c2c770becfd7a65593"
address: "0x08df82f74d1f56f650e98da2dd4240f1a31711bc"
abi: RegistryFactoryV0_0
startBlock: 73590780
startBlock: 36032424
mapping:
kind: ethereum/events
apiVersion: 0.0.7
Expand All @@ -40,15 +40,15 @@ dataSources:

- kind: ethereum/contract
name: PassportScorer
network: arbitrum-sepolia
network: gnosis
context:
chainId:
type: Int
data: 421614
data: 100
source:
address: "0xfF53a163e43EccC00d8FdE7acA24aa9FA4da7356"
address: "0xd7b72fcb6a4e2857685175f609d1498ff5392e46"
abi: PassportScorer
startBlock: 73590780
startBlock: 36032424
mapping:
kind: ethereum/events
apiVersion: 0.0.7
Expand Down Expand Up @@ -78,7 +78,7 @@ dataSources:
templates:
- kind: ethereum/contract
name: RegistryCommunityV0_0
network: arbitrum-sepolia
network: gnosis
source:
abi: RegistryCommunityV0_0
mapping:
Expand Down Expand Up @@ -140,7 +140,7 @@ templates:

- kind: ethereum/contract
name: CVStrategyV0_0
network: arbitrum-sepolia
network: gnosis
source:
abi: CVStrategyV0_0
mapping:
Expand Down Expand Up @@ -199,7 +199,7 @@ templates:

- kind: ethereum/contract
name: CollateralVault
network: arbitrum-sepolia
network: gnosis
source:
abi: CollateralVault
mapping:
Expand Down
Loading