Because you can't always be optimistic
Pessimism is a public good monitoring service that allows for Optimism bedrock chains (Base Layer 2, Optimism) to be continously assessed for real-time threats using customly defined user invariants.
Warning: Pessimism is currently experimental and very much in development. It means Pessimism is currently unstable, so code will change and builds can break over the coming months. If you come across problems, it would help greatly to open issues so that we can fix them as quickly as possible.
To use the template, run the following the command(s):
-
Create local config file (
config.env
) to store all necessary environmental variables. There's already an exampleconfig.env.template
in the repo that stores default env vars. -
Download or upgrade to
golang 1.19
. -
Install all project golang dependencies by running
go mod download
.
-
Compile pessimism to machine binary by running the following project level command(s):
- Using Make:
make build-app
- Using Make:
-
To run the compiled binary, you can use the following project level command(s):
- Using Make:
make run-app
- Direct Call:
./bin/pessimism
- Using Make:
Unit tests are written using the native go test library with test mocks generated using the golang native mock library.
Unit tests can ran using the following project level command(s):
- Using Make:
make test
- Direct Call:
go test ./...
TBD