Skip to content

Commit

Permalink
WIP - OnChain DAO Create
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshpw committed Oct 1, 2024
1 parent dc25b25 commit 63b03dc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions src/modules/creator/etherlink.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React, { useContext } from "react"
import { EthCreatorContext } from "./state"

export const EthDAOCreate: React.FC = () => {
const creator = useContext(EthCreatorContext)
return <div>Ethereum DAO Create</div>
}
4 changes: 3 additions & 1 deletion src/modules/creator/state/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,6 @@ const CreatorProvider: React.FC = ({ children }) => {
return <CreatorContext.Provider value={{ ...contextValue, updateCache }}>{children}</CreatorContext.Provider>
}

export { CreatorProvider, CreatorContext }
const EthCreatorContext = createContext<any>({})

export { CreatorProvider, CreatorContext, EthCreatorContext }
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import React, { useState } from "react"
import { Box } from "@mui/material"
import { ResponsiveDialog } from "./ResponsiveDialog"
import { ProposalFormInput } from "./ProposalFormInput"
import { Controller } from "react-hook-form"
import { Grid, TextField, Typography, MenuItem, useMediaQuery, useTheme } from "@material-ui/core"
import { SendButton } from "./ProposalFormSendButton"
import Select, { SelectChangeEvent } from "@mui/material/Select"
import Select from "@mui/material/Select"

interface EthContractCallFormProps {
open: boolean
Expand Down
7 changes: 4 additions & 3 deletions src/services/wagmi/config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { createConfig, http } from "wagmi"
import { etherlink, etherlinkTestnet } from "wagmi/chains"
import { etherlink, etherlinkTestnet, hardhat } from "wagmi/chains"
import { metaMask, injected, safe } from "wagmi/connectors"
import { createWeb3Modal } from "@web3modal/wagmi/react"
import { defaultWagmiConfig } from "@web3modal/wagmi/react/config"
import { walletConnect } from "wagmi/connectors"
import { DeployContract } from "./token"

const wagmiChains = [etherlink, etherlinkTestnet] as const
const wagmiChains = [etherlink, etherlinkTestnet, hardhat] as const

// 1. Your WalletConnect Cloud project ID
const projectId = "7dd66fecc485693b67e6921c580e7040"
Expand Down Expand Up @@ -39,7 +39,8 @@ export const config = createConfig({
connectors: [metaMask(), walletConnect({ projectId })],
transports: {
[etherlink.id]: http(),
[etherlinkTestnet.id]: http()
[etherlinkTestnet.id]: http(),
[hardhat.id]: http()
}
})

Expand Down

0 comments on commit 63b03dc

Please sign in to comment.