Skip to content

Commit

Permalink
Merge pull request #22 from HausDAO/feat/update-dh-v04
Browse files Browse the repository at this point in the history
Feat/update dh v04
  • Loading branch information
dekanbro authored Jan 24, 2024
2 parents d1f8a4a + 1128ebd commit 8a657af
Show file tree
Hide file tree
Showing 5 changed files with 276 additions and 875 deletions.
46 changes: 30 additions & 16 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,23 +1,37 @@
# key from wallet connect is required
VITE_WALLET_CONNECT_ID=

# rivet key for rpc calls, you can also pass in custom rpcs to many components
VITE_RIVET_KEY=

# add your graph api key if using mainnet or gnosischain
VITE_GRAPH_API_KEY_MAINNET=
# # alternate RPCs for any supported network
# VITE_MAINNET_RPC=
# VITE_GOERLI_RPC=
# VITE_GNOSISCHAIN_RPC=
# VITE_OPTIMISM_RPC=
# VITE_POLYGONPOS_RPC=
# VITE_ARBITRUM_RPC=
# VITE_SEPOLIA_RPC=
# VITE_BASE_RPC=

# key from wallet connect is required
VITE_WALLET_CONNECT_ID=
# # add your graph api key if using mainnet or gnosischain
# VITE_GRAPH_API_KEY_MAINNET=

# optional will use rate limited if not set
VITE_OPTIMISM_ALCHEMY_KEY=
VITE_ARBITRUM_ALCHEMY_KEY=
VITE_POLYGONPOS_ALCHEMY_KEY=
# # optional will use rate limited if not set
# VITE_OPTIMISM_ALCHEMY_KEY=
# VITE_ARBITRUM_ALCHEMY_KEY=
# VITE_POLYGONPOS_ALCHEMY_KEY=
# VITE_SEPOLIA_ALCHEMY_KEY=
# VITE_BASE_ALCHEMY_KEY=

# add blockexplorer api keys for any supported networks
VITE_ETHERSCAN_KEY=
VITE_ARBISCAN_KEY=
VITE_GNOSISSCAN_KEY=
VITE_POLYGONSCAN_KEY=
VITE_OPTIMISMSCAN_KEY=
# # add blockexplorer api keys for any supported networks
# VITE_ETHERSCAN_KEY=
# VITE_ARBISCAN_KEY=
# VITE_GNOSISSCAN_KEY=
# VITE_POLYGONSCAN_KEY=
# VITE_OPTIMISMSCAN_KEY=
# VITE_SEPOLIASCAN_KEY=
# VITE_BASESCAN_KEY=

# corresponds to keys in targetDao.ts if scoping app to a single dao
VITE_TARGET_KEY=
# # corresponds to keys in targetDao.ts if scoping app to a single dao
# VITE_TARGET_KEY=
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,27 @@ Rivet is the default RPC - Get a free Rivet key [here](https://rivet.cloud/)
VITE_RIVET_KEY
```

You can also use Alchemy API keys for Optimism, Arbitrum or Polygon
You can also use any RPC url

```yaml
VITE_MAINNET_RPC=
VITE_GOERLI_RPC=
VITE_GNOSISCHAIN_RPC=
VITE_OPTIMISM_RPC=
VITE_POLYGONPOS_RPC=
VITE_ARBITRUM_RPC=
VITE_SEPOLIA_RPC=
VITE_BASE_RPC=
```


You can also use Alchemy API keys for Optimism, Arbitrum, Base or Polygon

```yaml
VITE_OPTIMISM_ALCHEMY_KEY
VITE_ARBITRUM_ALCHEMY_KEY
VITE_POLYGONPOS_ALCHEMY_KEY
VITE_BASE_ALCHEMY_KEY
```

Proposal details uses etherscan explorer APIs to fetch ABIs. Add a key for any chain you are supporting. Get an Etherscan API key [here](https://etherscan.io/apis)
Expand All @@ -70,6 +85,7 @@ VITE_ARBISCAN_KEY
VITE_GNOSISSCAN_KEY
VITE_POLYGONSCAN_KEY
VITE_OPTIMISMSCAN_KEY
VITE_BASESCAN_KEY
```

If developing for Mainnet or Gnosis Chain you can get an API key [here](https://thegraph.com/explorer/subgraph?id=GfHFdFmiSwW1PKtnDhhcxhArwtTjVuMnXxQ5XcETF1bP&view=Overview). Ignore this one if not worried about mainnet or gnosis chain yet.
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
"preview": "vite preview"
},
"dependencies": {
"@daohaus/abis": "^0.3.3",
"@daohaus/connect": "^0.3.3",
"@daohaus/connect-context": "^0.3.3",
"@daohaus/contract-utils": "^0.3.3",
"@daohaus/form-builder": "^0.3.3",
"@daohaus/form-builder-base": "^0.3.3",
"@daohaus/keychain-utils": "^0.3.3",
"@daohaus/moloch-v3-data": "^0.3.3",
"@daohaus/moloch-v3-fields": "^0.3.3",
"@daohaus/moloch-v3-hooks": "^0.3.3",
"@daohaus/moloch-v3-legos": "^0.3.3",
"@daohaus/moloch-v3-macro-ui": "^0.3.3",
"@daohaus/profile-data": "^0.3.3",
"@daohaus/tx-builder": "^0.3.3",
"@daohaus/ui": "^0.3.3",
"@daohaus/utils": "^0.3.3",
"@daohaus/abis": "^0.4.1",
"@daohaus/connect": "^0.4.1",
"@daohaus/connect-context": "^0.4.1",
"@daohaus/contract-utils": "^0.4.1",
"@daohaus/form-builder": "^0.4.1",
"@daohaus/form-builder-base": "^0.4.1",
"@daohaus/keychain-utils": "^0.4.1",
"@daohaus/moloch-v3-data": "^0.4.1",
"@daohaus/moloch-v3-fields": "^0.4.1",
"@daohaus/moloch-v3-hooks": "^0.4.1",
"@daohaus/moloch-v3-legos": "^0.4.1",
"@daohaus/moloch-v3-macro-ui": "^0.4.1",
"@daohaus/profile-data": "^0.4.1",
"@daohaus/tx-builder": "^0.4.1",
"@daohaus/ui": "^0.4.1",
"@daohaus/utils": "^0.4.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-query": "^3.39.3",
Expand Down
12 changes: 12 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,29 @@ export default ({ mode }) => {
define: {
"process.env": {
NX_RIVET_KEY: process.env.VITE_RIVET_KEY,
NX_MAINNET_RPC: process.env.VITE_MAINNET_RPC,
NX_GOERLI_RPC: process.env.VITE_GOERLI_RPC,
NX_GNOSISCHAIN_RPC: process.env.VITE_GNOSISCHAIN_RPC,
NX_OPTIMISM_RPC: process.env.VITE_OPTIMISM_RPC,
NX_POLYGONPOS_RPC: process.env.VITE_POLYGONPOS_RPC,
NX_ARBITRUM_RPC: process.env.VITE_ARBITRUM_RPC,
NX_SEPOLIA_RPC: process.env.VITE_SEPOLIA_RPC,
NX_BASE_RPC: process.env.VITE_BASE_RPC,
NX_GRAPH_API_KEY_MAINNET: process.env.VITE_GRAPH_API_KEY_MAINNET,
NX_INFURA_PROJECT_ID: process.env.VITE_INFURA_PROJECT_ID,
NX_ETHERSCAN_KEY: process.env.VITE_ETHERSCAN_KEY,
NX_ARBISCAN_KEY: process.env.VITE_ARBISCAN_KEY,
NX_GNOSISSCAN_KEY: process.env.VITE_GNOSISSCAN_KEY,
NX_POLYGONSCAN_KEY: process.env.VITE_POLYGONSCAN_KEY,
NX_OPTIMISMSCAN_KEY: process.env.VITE_OPTIMISMSCAN_KEY,
NX_SEPOLIASCAN_KEY: process.env.VITE_SEPOLIASCAN_KEY,
NX_BASESCAN_KEY: process.env.VITE_BASESCAN_KEY,
NX_WALLET_CONNECT_ID: process.env.VITE_WALLET_CONNECT_ID,
NX_OPTIMISM_ALCHEMY_KEY: process.env.VITE_OPTIMISM_ALCHEMY_KEY,
NX_ARBITRUM_ALCHEMY_KEY: process.env.VITE_ARBITRUM_ALCHEMY_KEY,
NX_POLYGONPOS_ALCHEMY_KEY: process.env.VITE_POLYGONPOS_ALCHEMY_KEY,
NX_SEPOLIA_ALCHEMY_KEY: process.env.VITE_SEPOLIA_ALCHEMY_KEY,
NX_BASE_ALCHEMY_KEY: process.env.VITE_BASE_ALCHEMY_KEY,
},
},
optimizeDeps: {
Expand Down
Loading

0 comments on commit 8a657af

Please sign in to comment.