Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@engage-protocol/game-result-calculation

engage-protocol69MIT0.0.4TypeScript support: included

Logic used for the off-chain resolution of Engage Protocol and Majority sessions

engage-protocol, majority, uma

readme

Majority Protocol Off-Chain Session Resolution

Logic used for the off-chain resolution of Majority Protocol sessions with scripts for self-verification.

Prerequisites

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