Skip to content

Commit 701712e

Browse files
committed
docs
1 parent d46be50 commit 701712e

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
Devland is a framework for running a simple testing blockchain (anvil) and installing a basic instance of the Euler contracts for development and testing purposes.
44

5-
* Fast and deterministic: The entire environment can be created and installed in a second or two. This lets you setup testing/dev scenarios and instantly reset them to the starting conditions, which is helpful for development. By editing the file `script/DeployDev.sol` you can create self-contained scenarios and send them to other devs, who can get started instantly.
5+
* Fast and deterministic: The entire environment can be created and installed in a second or two. This lets you setup testing/dev scenarios and instantly reset them to the starting conditions, which is helpful for development.
6+
* Self-contained scenarios can be created to reproduce a starting state, and to send the state to other devs, who can get started instantly.
67
* Lightweight: It does not use forge-style nested submodules. Instead, each project is checked out exactly once in a `libflat` directory, and then remappings are used to map depenencies for each project. This means that each repo is only checked out once, saving time and diskspace. However, it also means that only a single version of a dependency can be installed, globally.
78

89
## Usage
@@ -13,9 +14,9 @@ First [install foundry](https://getfoundry.sh/) then run:
1314

1415
./install.sh
1516

16-
### Run anvil
17+
### Run devland
1718

18-
./run.sh
19+
./devland.sh
1920

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

@@ -29,6 +30,15 @@ The default is just to use the standard anvil mnemonic. For example this is user
2930
Import the above private key into metamask, and then change network to Foundry (chain id 31337).
3031

3132

33+
## Scenarios
34+
35+
Scenarios are Solidity scripts that inherit from the `DeployScenario` contract, and live in the directory `script/scenarios/`.
36+
37+
To build your own scenario, copy one of the existing scenario files, edit it to meet your requirements, and then provide the scenario name as an argument to the `devland.sh` script. For example:
38+
39+
./devland.sh MyCustomScenario
40+
41+
3242
## Extras
3343

3444
Devland also sets up some configuration files for the dev network. They are in the same format as production for ease of integration:

0 commit comments

Comments
 (0)