Thing/packages/eve-contracts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-07-13 23:44:18 +01:00
..
dist Add canonical TypeScript Eve contracts 2026-07-13 23:44:18 +01:00
scripts Add canonical TypeScript Eve contracts 2026-07-13 23:44:18 +01:00
src Add canonical TypeScript Eve contracts 2026-07-13 23:44:18 +01:00
test Add canonical TypeScript Eve contracts 2026-07-13 23:44:18 +01:00
package-lock.json Add canonical TypeScript Eve contracts 2026-07-13 23:44:18 +01:00
package.json Add canonical TypeScript Eve contracts 2026-07-13 23:44:18 +01:00
README.md Add canonical TypeScript Eve contracts 2026-07-13 23:44:18 +01:00
tsconfig.json Add canonical TypeScript Eve contracts 2026-07-13 23:44:18 +01:00

@gamecult/eve-contracts

Canonical TypeScript types and runtime validators for Eve provider boundaries. The generated sources come from the JSON Schemas in ../../schemas; run npm run generate after changing an authoritative schema. npm test rejects schema drift.

import {
  parseEveProviderAdvertisement,
  parseEveSurfaceDocument,
  parseEveCommandInvocation,
} from "@gamecult/eve-contracts";

const provider = parseEveProviderAdvertisement(untrustedAdvertisement);
const surface = parseEveSurfaceDocument(untrustedSurface);
const command = parseEveCommandInvocation(untrustedCommand);

Providers own their state, surfaces, command acceptance, and receipts. This package owns only the portable contract and validation boundary.