func AddWriter
crossing ActionAddWriter lets the realm at pkgpath, a versioned path under gno.land/r/, report results. A path that was a writer before gets its old writer number back. Owner only.
Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.
Package standings keeps Gnomepit's ratings, records, ladder and clan ratings, whatever arena version played the match...
Package standings keeps Gnomepit's ratings, records, ladder and clan ratings, whatever arena version played the match. Only realms on its owner's writer list report results.
AddWriter lets the realm at pkgpath, a versioned path under gno.land/r/, report results. A path that was a writer before gets its old writer number back. Owner only.
IsWriter reports whether the realm at pkgpath may report results.
RatedPlayers counts the players on the ladder.
1func Record(cur realm, challenger, acceptor address, challengerClan, acceptorClan, result string)Record rates a match the calling arena reports as ended, and logs it. result is "a" when the challenger won, "b" when the acceptor did, and "draw". It aborts unless the caller is a realm on the writer list, and on a report no correct arena sends: the same player on both sides, another result, or a clan name that is empty or over 32 bytes.
RemoveWriter stops the realm at pkgpath from reporting results. Owner only.
ResultCount counts the logged results.
TransferOwnership makes newOwner the owner. Owner only.
Writers lists the realms that may report results, in writer-number order.
ClanStandings lists every clan with a rated cross-clan match, highest rating first; equal ratings keep first-seen order and share a rank. Clans with no such match are left out: they stand at 1000 and 0-0-0.
Results lists logged results, oldest first: limit of them after skipping offset.
Leaderboard lists rated players, highest rating first: limit of them after skipping offset.
StandingOf returns player's standing, rated or not.
ClanStanding is one clan's record across rated cross-clan matches.
Result is one logged result. Seq is its place in the log, 1 first; Writer is the path of the realm that reported it. Result is "a" when the challenger won, "b" when the acceptor did, and "draw"; Time is the block's Unix seconds.
Standing is one player's place on the ladder. Rank is 1 for the highest rating and equal ratings share it; Rank is 0 and Rating 1000 for a player with no rated match. Name is the player's gno.land name, "" without one. MainClan is "" until their first rated match with a counted clan.