Tools used to:
- Accumulate Plutus script evaluation events by replaying blockchain folding over the Ledger state and extracting
PlutusScriptEvaluationEvent
s. - Record accumulated events:
- On the file system as "dump" files.
- In the PostgreSQL database.
- Initialise the PostgreSQL database and connection using files in the
database
folder:- There is a pgModeler (Open-source tool) project for it,
- As well as the DDL statements.
- Create
.envrc.local
with the following content (adjust the paths as needed):export CARDANO_NODE_SOCKET_PATH="/home/projects/cardano/node/node-state/mainnet/node.sock" export CARDANO_NODE_CONFIG_PATH="/home/projects/cardano/playground/docs/environments/mainnet/config.json" export DB_CONN_STRING="dbname=mainnet_plutus_events"
- Enter the
nix
shell using eithernix develop
command ordirenv
hooked to your shell. - See available commands by entering
info
in the shell. - Run the script dump job using the
dump
command or script upload job with theload
command.