Skip to content

Commit a40ff71

Browse files
committed
add basic instructions
1 parent c9607b9 commit a40ff71

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

evm/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
# Open-games HEVM integration
1+
## Open-games HEVM integration
22

33
This project integrates open games with HEVM, an execution environement for EVM bytecode.
44

55
This allows the game-theoretic analysis of smart contracts
6+
7+
## How to build lido contracts
8+
9+
- run `nix develop .` in the parent directory, this will take care of GHC, Stack and solidity.
10+
- copy the content of the contracts/ directory from the lido project (https://github.com/lidofinance/dual-governance/tree/main/contracts) into here (the evm/ directory of the open games project).
11+
- download the openzepplin dependency with `npm install openzeppelin`.
12+
- copy the contracts from openzeppelin into a `@openzeppelin` folder in here. The path should be `evm/@openzeppelin`. The following command should work `cp -r node_modules/openzeppelin/ @openzeppelin`.
13+
- build the project with `stack build`, you can inspect the imported functions with `stack repl` and using `:browse` after importing the lido module from the examples.

0 commit comments

Comments
 (0)