Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ First [install foundry](https://getfoundry.sh/) then run:

If all goes well, your RPC will be available on the standard `http://127.0.0.1:8545` endpoint.

To use a custom port (e.g., if 8545 is already in use):

PORT=8546 ./devland.sh

You can also deploy scenarios to a different RPC endpoint directly:

RPC_URL=http://127.0.0.1:8546 ./deploy-scenario.sh EulerSwapBasic

### Private keys

The default is just to use the standard anvil mnemonic. For example this is user 0:
Expand Down
2 changes: 1 addition & 1 deletion deploy-scenario.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SCENARIO=$1
rm -rf dev-ctx/
mkdir -p dev-ctx/{addresses,labels,priceapi}/31337

forge script --rpc-url http://127.0.0.1:8545 "script/scenarios/$SCENARIO.s.sol" --broadcast --code-size-limit 100000
forge script --rpc-url ${RPC_URL:-http://127.0.0.1:8545} "script/scenarios/$SCENARIO.s.sol" --broadcast --code-size-limit 100000
cast rpc evm_increaseTime 86400
cast rpc evm_mine

Expand Down
5 changes: 3 additions & 2 deletions devland.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ function cleanup {
trap cleanup EXIT


anvil --code-size-limit 100000 &
PORT=${PORT:-8545}
anvil --port $PORT --code-size-limit 100000 &
sleep 1


bash ./deploy-scenario.sh "$SCENARIO"
RPC_URL=http://127.0.0.1:$PORT bash ./deploy-scenario.sh "$SCENARIO"


echo -------------------------------
Expand Down