Skip to content

betting_combat.contracts.ids

ids.py — our three ids, the base every contract shares, and the pieces a row inherits to say which event, bout or fighter it is about.

EventId · BoutId · FighterId ours: 'E' + 5 digits, 'B' + 6, 'F' + 5 (the ids the
registry minted, ``rounds.identity``), minted once, never
re-used or re-derived
Contract the base: frozen, no field it does not declare
OnEvent · OnBout · OnFighter a row about an event, a bout, a fighter: the id it carries

Every vendor’s id lives on the catalog rows (event, bout, fighter); every other row carries ours only.

Classes

Contract

Bases: BaseModel

The base of every contract: frozen, and nothing it does not declare.

OnBout

Bases: Contract

A row about one bout.

OnEvent

Bases: Contract

A row about one event.

OnFighter

Bases: Contract

A row about one fighter.