1package halt23import (4 "gno.land/p/moul/md/v0"5 "gno.land/p/moul/mdtable/v0"6 ufmt "gno.land/p/nt/ufmt/v0"7)89// Render returns the current halt status for every operation.10func Render(path string) string {11 if path != "" {12 return "404\n"13 }1415 table := mdtable.Table{16 Headers: []string{"Operation", "Halted"},17 Rows: [][]string{18 {"Pool", ufmt.Sprintf("%t", IsHaltedPool())},19 {"Position", ufmt.Sprintf("%t", IsHaltedPosition())},20 {"Protocol fee", ufmt.Sprintf("%t", IsHaltedProtocolFee())},21 {"Router", ufmt.Sprintf("%t", IsHaltedRouter())},22 {"Staker", ufmt.Sprintf("%t", IsHaltedStaker())},23 {"Launchpad", ufmt.Sprintf("%t", IsHaltedLaunchpad())},24 {"Governance", ufmt.Sprintf("%t", IsHaltedGovernance())},25 {"Governance staker", ufmt.Sprintf("%t", IsHaltedGovStaker())},26 {"xGNS", ufmt.Sprintf("%t", IsHaltedXGns())},27 {"Community pool", ufmt.Sprintf("%t", IsHaltedCommunityPool())},28 {"Emission", ufmt.Sprintf("%t", IsHaltedEmission())},29 {"Withdraw", ufmt.Sprintf("%t", IsHaltedWithdraw())},30 },31 }3233 return md.H1("Gnoswap Halt Status") +34 "\n" +35 md.H2("Operation status") +36 "\n" +37 table.String()38}39AssertIsNotHaltedCommunityPool()
AssertIsNotHaltedEmission()
AssertIsNotHaltedGovernance()
AssertIsNotHaltedGovStaker()
AssertIsNotHaltedLaunchpad()
AssertIsNotHaltedOperation(op string)
AssertIsNotHaltedPool()
AssertIsNotHaltedPosition()
AssertIsNotHaltedProtocolFee()
AssertIsNotHaltedRouter()
AssertIsNotHaltedStaker()
AssertIsNotHaltedWithdraw()
AssertIsNotHaltedXGns()
GetHaltConfig() map[gno.land/r/gnoswap/halt/v1.OpType]bool
GetHaltConfigJson() string
IsHalted(opTypes ...gno.land/r/gnoswap/halt/v1.OpType) (bool, interface {Error func() string})
IsHaltedCommunityPool() bool
IsHaltedEmission() bool
IsHaltedGovernance() bool
IsHaltedGovStaker() bool
IsHaltedLaunchpad() bool
IsHaltedPool() bool
IsHaltedPosition() bool
IsHaltedProtocolFee() bool
IsHaltedRouter() bool
IsHaltedStaker() bool
IsHaltedWithdraw() bool
IsHaltedXGns() bool
OpTypes() []gno.land/r/gnoswap/halt/v1.OpType
Render(path string) string
SetHaltLevel(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, level string)
SetOperationStatus(cur interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}, op string, halted bool)
Signatures reconstructed verbatim from vm/qfuncs — interface params keep their inline definitions.
vm/qrender output, sanitized (docs/render-security.md) and displayed in an empty-sandbox iframe — scripts, forms and popups cannot run. Links stay inert in-preview; right-click to open.