Skip to content

Commit

Permalink
Improved .env.example and foundry implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
luloxi committed Oct 19, 2024
1 parent 9d1d741 commit 9f06208
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 6 deletions.
7 changes: 6 additions & 1 deletion packages/foundry/.env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Complete step 4 of development instructions on README.md to fill this value:
PUNKSOCIETY_RPC_URL=
DEPLOYER_PRIVATE_KEY=

# These are not required until you deploy your app to other chains.
# Like Avalanche, Base, Ethereum, etc
ETHERSCAN_API_KEY=
ALCHEMY_API_KEY=
ALCHEMY_API_KEY=
5 changes: 3 additions & 2 deletions packages/foundry/foundry.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@ libs = ['lib']
fs_permissions = [{ access = "read-write", path = "./"}]

[rpc_endpoints]
default_network = "http://127.0.0.1:8545"
localhost = "http://127.0.0.1:8545"
default_network = "${PUNKSOCIETY_RPC_URL}"
localhost = "${PUNKSOCIETY_RPC_URL}"

punksociety = "${PUNKSOCIETY_RPC_URL}"
mainnet = "https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_API_KEY}"
sepolia = "https://eth-sepolia.g.alchemy.com/v2/${ALCHEMY_API_KEY}"
arbitrum = "https://arb-mainnet.g.alchemy.com/v2/${ALCHEMY_API_KEY}"
Expand Down
11 changes: 8 additions & 3 deletions packages/nextjs/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
# You'll need to prefix the variables names with NEXT_PUBLIC_ if you want to access them on the client side.
# More info: https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables

# Complete step 4 of development instructions on README.md to fill this value:
NEXT_PUBLIC_PUNKSOCIETY_RPC_URL=

# Generate your Pinata credentials here: https://app.pinata.cloud/developers/api-keys
NEXT_PUBLIC_PINATA_API_KEY=
NEXT_PUBLIC_PINATA_SECRET_API_KEY=

# Get your Alchemy API Key here: https://dashboard.alchemy.com/
NEXT_PUBLIC_ALCHEMY_API_KEY=
# Get your WalletConnect Project ID here (go to Projects section): https://cloud.reown.com/app/
Expand All @@ -15,7 +22,5 @@ NEXT_PUBLIC_ONCHAINKIT_API_KEY=
# Get your OnchainKit Project ID here: https://portal.cdp.coinbase.com/projects/
NEXT_PUBLIC_CDP_PROJECT_ID=

# Generate your Pinata credentials here: https://app.pinata.cloud/developers/api-keys
NEXT_PUBLIC_PINATA_API_KEY=
NEXT_PUBLIC_PINATA_SECRET_API_KEY=


0 comments on commit 9f06208

Please sign in to comment.