You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project integrates open games with HEVM, an execution environement for EVM bytecode.
4
4
5
5
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