Majority Protocol Off-Chain Session Resolution
Logic used for the off-chain resolution of Majority Protocol sessions with scripts for self-verification.
Prerequisites
- Node v22+
- pnpm
Run verification
Install dependencies:
pnpm install
Via remote file
Use the input data file URL provided by UMA to run the script:
pnpm start <url>
Via self-retrieved data
Query the on-chain state and events data, and format it to fit the arguments of the calculateResults
function. Save the data to a JSON file at ./scripts/data.json
and run the following command:
pnpm start file://./scripts/data.json