-
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.
Merge branch 'master' into b3-subgraph
- Loading branch information
Showing
1,158 changed files
with
627,787 additions
and
160,453 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 |
---|---|---|
|
@@ -40,4 +40,6 @@ node_modules | |
# Local Netlify folder | ||
.netlify | ||
|
||
# forge libraries. | ||
protocol/lib/ | ||
|
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,6 +1,3 @@ | ||
[submodule "protocol/lib/forge-std"] | ||
path = protocol/lib/forge-std | ||
url = https://github.com/foundry-rs/forge-std | ||
[submodule "protocol/lib/solmate"] | ||
path = protocol/lib/solmate | ||
url = https://github.com/transmissions11/solmate |
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,7 @@ | ||
{ | ||
"recommendations": [ | ||
"streetsidesoftware.code-spell-checker", | ||
"esbenp.prettier-vscode", | ||
"juanblanco.solidity" | ||
] | ||
} |
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,4 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"solidity.formatter": "prettier" | ||
} |
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_WALLETCONNECT_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_WALLETCONNECT_PROJECT_ID="" | ||
VITE_WELLS_ORIGIN_BLOCK="" | ||
VITE_LOAD_HISTORY_FROM_GRAPH="" |
Oops, something went wrong.