-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
590 changed files
with
271,234 additions
and
310,565 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# DEV API key | ||
DEV_ALCHEMY_API_KEY="" | ||
|
||
# Test API key | ||
DEV_TEST_ALCHEMY_API_KEY="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
node_modules | ||
build | ||
|
||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
source .env | ||
|
||
# Set variables based on arguments | ||
keyType="$1" | ||
chainIdType="$2" | ||
|
||
# Set chain IDs | ||
mainnet_local_chain_id=1338 | ||
|
||
arbitrum_local_chain_id=1337 | ||
|
||
# Determine which API key to use | ||
if [ "$keyType" = "test" ]; then | ||
apiKey="$DEV_TEST_ALCHEMY_API_KEY" | ||
else | ||
apiKey="$DEV_ALCHEMY_API_KEY" | ||
fi | ||
|
||
# Determine which chain ID to use. Defaults to arbitrum local host | ||
if [ "$chainIdType" = "eth-mainnet" ]; then | ||
chainId=$mainnet_local_chain_id | ||
prefix="eth" | ||
port=9545 | ||
else | ||
chainId=$arbitrum_local_chain_id | ||
prefix="arb" | ||
port=8545 | ||
fi | ||
|
||
# Check if required variables are set | ||
if [ -z "$prefix" ] || [ -z "$apiKey" ] || [ -z "$chainId" ]; then | ||
echo "Error: Missing required variables. Please set keyType and chainIdType." | ||
exit 1 | ||
fi | ||
|
||
anvil \ | ||
--fork-url "https://$prefix-mainnet.g.alchemy.com/v2/$apiKey" \ | ||
--chain-id "$chainId" \ | ||
--port "$port" \ | ||
"${@:3}" | ||
|
||
# Check if Anvil exited with an error | ||
if [ $? -ne 0 ]; then | ||
echo "Error: Anvil exited with a non-zero status." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
VITE_AQUIFER_ADDRESS=local/fork deployed address | ||
VITE_AQUIFER_ADDRESS_ETH="deployed address here" | ||
VITE_AQUIFER_ADDRESS_ARBITRUM="deployed address here" | ||
VITE_ALCHEMY_API_KEY="your key here" | ||
VITE_THEGRAPH_API_KEY="your key here" | ||
VITE_WALLET_CONNECT_PROJECT_ID="project key here" | ||
VITE_WELLS_ORIGIN_BLOCK=17138465 | ||
VITE_LOAD_HISTORY_FROM_GRAPH=0 | ||
VITE_WALLET_CONNECT_PROJECT_ID="project key here" | ||
VITE_LOAD_HISTORY_FROM_GRAPH=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
// DO NOT ACTUALLY SAVE THINGS HERE | ||
// ONLY USE THIS FILE TO TRACK WHAT ENV VARS NEED TO | ||
// BE ADDED TO NETLIFY CONFIG | ||
VITE_AQUIFER_ADDRESS_ETH="" | ||
VITE_AQUIFER_ADDRESS_ARBITRUM="" | ||
VITE_ALCHEMY_API_KEY="" | ||
VITE_WALLET_CONNECT_PROJECT_ID="" | ||
VITE_THEGRAPH_API_KEY="" | ||
VITE_WALLET_CONNECT_PROJECT_ID="" | ||
VITE_WELLS_ORIGIN_BLOCK="" | ||
VITE_LOAD_HISTORY_FROM_GRAPH="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.