@engage-protocol/game-result-calculation
v0.4.1
Published
Logic used for the off-chain resolution of Majority protocol sessions
Downloads
49
Readme
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 installVia 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