bolo source realm
Package bolo is Bolo's version registry (API §3.7): it tells clients which version new campaigns start on. Every vers...
Package bolo is Bolo's version registry (API §3.7): it tells clients which version new campaigns start on. Every version lives at its own path, gno.land/r/g12yg9nh4ncma44emgm8msxe8aavzywt0p95tanv/bolo/vN, and keeps its campaigns and their money for good (ADR D14); the registry holds no money and only points.
1
8
func AcceptAdmin
crossing ActionAcceptAdmin makes the proposed admin the admin, and ends the proposal.
func AddVersion
crossing ActionAddVersion registers a version. None is ever removed.
func Current
ActionCurrent returns the version new campaigns should use: a pkgpath, or "" before the first SetCurrent.
func GetAdmin
ActionGetAdmin returns the admin and the proposed admin, "" when there is none.
func ProposeAdmin
crossing ActionProposeAdmin proposes next as the registry's admin, who takes over by accepting. A second proposal replaces the first.
func Render
Render is Bolo's front page on gnoweb, the twin of the web app's Home (UI spec §3, §4.13): the name, the tagline, a link to the current version, then the versions, oldest first, the current one marked. It ignores path: nothing a visitor types reaches the page (API §3.7).
func SetCurrent
crossing ActionSetCurrent points new campaigns, and their donors' money, at a version already added.
func Versions
ActionVersions returns every version ever added, oldest first, as a copy.