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

OnChain DAOs on Etherlink #867

Draft
wants to merge 37 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
06aee1e
WIP:
ashutoshpw Jul 16, 2024
208b249
WIP - Etherlink Integration
ashutoshpw Jul 24, 2024
903b90a
WIP:
ashutoshpw Jul 29, 2024
88c9023
Changes
ashutoshpw Jul 29, 2024
49899c2
WIP - Lite DAO Create
ashutoshpw Aug 13, 2024
89cb4b9
WIP - Offchain DAO Almost Works.
ashutoshpw Aug 13, 2024
7289cb9
Other Code Improvements
ashutoshpw Aug 14, 2024
937252a
Removed unused deps
ashutoshpw Aug 19, 2024
6767f3f
Removed unused deps
ashutoshpw Aug 19, 2024
d39acd4
Removed Unused Code
ashutoshpw Aug 19, 2024
86c221a
Removed bun lock
ashutoshpw Aug 19, 2024
ede6ee9
removed unused deps
ashutoshpw Aug 19, 2024
f500ca6
Fix for Build
ashutoshpw Aug 19, 2024
8a3ddb3
Frontend for onChain Etherlink DAO
ashutoshpw Sep 16, 2024
4d4bd1b
WIP - OnChain DAO Create
ashutoshpw Oct 1, 2024
8fbb9c7
Change in UseTezos
ashutoshpw Nov 18, 2024
4d1b173
DAO Creator Routing Setup
ashutoshpw Nov 18, 2024
c43c1a3
Added dAO definition within the file
ashutoshpw Nov 25, 2024
1c591fb
WIP - OnChain DAOs on Etherlink
ashutoshpw Dec 9, 2024
358b6d5
WIP - Etherlink Onchain DAO Pages
ashutoshpw Dec 9, 2024
a140e73
WIP - Onchain Proposal Details Page
ashutoshpw Dec 10, 2024
8675426
Merging with current master
ashutoshpw Dec 10, 2024
748fc1f
Almost Zero ESlint Errors
ashutoshpw Dec 10, 2024
7d4ec46
Fixed Navigation
ashutoshpw Dec 10, 2024
4063385
Loading Line for better loader
ashutoshpw Dec 10, 2024
d56da98
Fixed for build
ashutoshpw Dec 10, 2024
368e249
WIP - DAO Proposal Details Page
ashutoshpw Dec 17, 2024
619629b
WIP: DAO onChain Creator
ashutoshpw Dec 18, 2024
7122514
WIP - OnChain DAO
ashutoshpw Dec 18, 2024
f6f5e77
DAO Registry page
ashutoshpw Dec 18, 2024
047501c
Improved DAO Creator flow
ashutoshpw Dec 18, 2024
db9009a
WIP - User Page
ashutoshpw Dec 18, 2024
dff97c1
WIP - OnChain DAO Ops
ashutoshpw Dec 19, 2024
b8bb9cd
Proposal Pages
ashutoshpw Dec 20, 2024
2f7f776
WIP - DAO Created
ashutoshpw Dec 20, 2024
d1cd923
WIP - Votes are being casted now
ashutoshpw Dec 20, 2024
8cbb96c
onchain dao etherlink
ashutoshpw Dec 21, 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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"editor.defaultFormatterOld": "dbaeumer.vscode-eslint",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
11 changes: 11 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[[redirects]]
from = "/explorer/dao/KT1DNHADdFxHM6mRKTgyJmchW5ELxcoW1aSh/overview"
to = "https://v1.tezos-homebase.io/explorer/dao/KT1DNHADdFxHM6mRKTgyJmchW5ELxcoW1aSh/overview"
status = 302
force = true

[[redirects]]
from = "/*"
to = "/index.html"
status = 200

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@types/valid-url": "^1.0.4",
"@wagmi/core": "2.13.4",
"assert": "^2.0.0",
"assert-never": "^1.2.1",
"assert-never": "^1.3.0",
"bignumber.js": "^9.0.1",
"blockies-ts": "^1.0.0",
"caniuse-lite": "",
Expand All @@ -51,6 +51,7 @@
"dayjs": "^1.11.11",
"ethers": "^6.13.1",
"export-to-csv": "^1.2.4",
"firebase": "11.0.2",
"formik": "^2.2.6",
"formik-material-ui": "^3.0.1",
"graphql": "^15.5.1",
Expand All @@ -59,7 +60,6 @@
"html-react-parser": "^5.0.6",
"https-browserify": "^1.0.0",
"jsonschema": "^1.4.0",
"launchdarkly-react-client-sdk": "2.27.0",
"mixpanel-browser": "^2.42.0",
"notistack": "^1.0.3",
"numbro": "^2.4.0",
Expand Down
77 changes: 37 additions & 40 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
import React from "react"
import "App.css"
import { withLDProvider } from "launchdarkly-react-client-sdk"

import { BrowserRouter as Router, Redirect, Route, Switch } from "react-router-dom"
import mixpanel from "mixpanel-browser"
import { QueryClient, QueryClientProvider } from "react-query"
import {
QueryClient as TanStackQueryClient,
QueryClientProvider as TanStackQueryClientProvider
} from "@tanstack/react-query"

import { Box, makeStyles, ThemeProvider } from "@material-ui/core"
import { Box, ThemeProvider, styled } from "@material-ui/core"
import { SnackbarProvider } from "notistack"

import { DAOExplorerRouter } from "modules/explorer/router"
Expand All @@ -30,6 +26,7 @@ import { DAOCreatorRouter } from "modules/creator/router"
import { LocalizationProvider } from "@mui/x-date-pickers/LocalizationProvider"
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs"
import { CommunityCreator } from "modules/lite/creator"
import { EtherlinkDAOCreatorRouter } from "modules/etherlink/router"

const queryClient = new QueryClient({
defaultOptions: {
Expand All @@ -45,31 +42,31 @@ const queryClient = new QueryClient({
}
})

const styles = makeStyles({
success: {
backgroundColor: "#4BCF93 !important",
padding: "6px 28px",
height: 54,
fontSize: 13,
lineHeight: "0px",
opacity: 1
},
error: {
backgroundColor: "#ED254E !important",
padding: "6px 28px",
height: 54,
fontSize: 13,
lineHeight: "0px",
opacity: 1
},
info: {
backgroundColor: "#3866F9 !important",
padding: "6px 28px",
height: 54,
fontSize: 13,
lineHeight: "0px",
opacity: 1
}
const SuccessSnackbar = styled("div")({
backgroundColor: "#4BCF93 !important",
padding: "6px 28px",
height: 54,
fontSize: 13,
lineHeight: "0px",
opacity: 1
})

const ErrorSnackbar = styled("div")({
backgroundColor: "#ED254E !important",
padding: "6px 28px",
height: 54,
fontSize: 13,
lineHeight: "0px",
opacity: 1
})

const InfoSnackbar = styled("div")({
backgroundColor: "#3866F9 !important",
padding: "6px 28px",
height: 54,
fontSize: 13,
lineHeight: "0px",
opacity: 1
})

const MIXPANEL_TOKEN = getEnv(EnvKey.REACT_APP_MIXPANEL_TOKEN)
Expand All @@ -89,15 +86,13 @@ mixpanel.init(MIXPANEL_TOKEN, {
mixpanel.track("Visit")

const App: React.FC = () => {
const classes = styles()

return (
<ThemeProvider theme={theme}>
<SnackbarProvider
classes={{
variantSuccess: classes.success,
variantError: classes.error,
variantInfo: classes.info
variantSuccess: SuccessSnackbar.toString(),
variantError: ErrorSnackbar.toString(),
variantInfo: InfoSnackbar.toString()
}}
>
<WagmiProvider config={wagmiConfig}>
Expand All @@ -109,6 +104,11 @@ const App: React.FC = () => {
<Router>
<ScrollToTop />
<Switch>
<Route path="/creator-evm">
<ThemeProvider theme={legacyTheme}>
<EtherlinkDAOCreatorRouter />
</ThemeProvider>
</Route>
<Route path="/creator">
<CreatorProvider>
<ThemeProvider theme={legacyTheme}>
Expand Down Expand Up @@ -162,7 +162,4 @@ const App: React.FC = () => {

const env = getEnv(EnvKey.REACT_APP_ENV)

export default withLDProvider({
clientSideID:
env === "PROD" ? getEnv(EnvKey.REACT_APP_LAUNCH_DARKLY_SDK_PROD) : getEnv(EnvKey.REACT_APP_LAUNCH_DARKLY_SDK_DEV)
})(App)
export default App
Loading
Loading