PathrockNetwork Gno Explorer
HomeBlocksTransactionsRealmsPackagesValidatorsAnalytics

PathrockNetwork Gno Explorer — an independent explorer for Gno.land Mainnet (gnoland-1), operated by PathrockNetwork. Not an official Gno.land service.

gnowebarchive RPC

gno.land/r/gnoswap/halt/v1

Realm
Open in gnoweb ↗

Overview

Kind
Realm (renderable)
Name
v1
Namespace
gnoswap / halt
Files
11 (README)(gnomod.toml)
Exported functions
32
Module
gno.land/r/gnoswap/halt/v1
gno
0.9

Files (11)

  • README.mdmarkdown
  • gnomod.tomltoml
  • assert.gnogno
  • config.gnogno
  • doc.gnogno
  • errors.gnogno
  • getters.gnogno
  • halt_state.gnogno
  • halt.gnogno
  • render.gnogno
  • types.gnogno
assert.gnogno
1package halt23// AssertIsNotHaltedPool panics if pool operations are halted.4func AssertIsNotHaltedPool() {5	AssertIsNotHaltedOperation(OpTypePool)6}78// AssertIsNotHaltedPosition panics if position operations are halted.9func AssertIsNotHaltedPosition() {10	AssertIsNotHaltedOperation(OpTypePosition)11}1213// AssertIsNotHaltedProtocolFee panics if protocol fee operations are halted.14func AssertIsNotHaltedProtocolFee() {15	AssertIsNotHaltedOperation(OpTypeProtocolFee)16}1718// AssertIsNotHaltedRouter panics if router operations are halted.19func AssertIsNotHaltedRouter() {20	AssertIsNotHaltedOperation(OpTypeRouter)21}2223// AssertIsNotHaltedStaker panics if staker operations are halted.24func AssertIsNotHaltedStaker() {25	AssertIsNotHaltedOperation(OpTypeStaker)26}2728// AssertIsNotHaltedLaunchpad panics if launchpad operations are halted.29func AssertIsNotHaltedLaunchpad() {30	AssertIsNotHaltedOperation(OpTypeLaunchpad)31}3233// AssertIsNotHaltedGovernance panics if governance operations are halted.34func AssertIsNotHaltedGovernance() {35	AssertIsNotHaltedOperation(OpTypeGovernance)36}3738// AssertIsNotHaltedGovStaker panics if governance staker operations are halted.39func AssertIsNotHaltedGovStaker() {40	AssertIsNotHaltedOperation(OpTypeGovStaker)41}4243// AssertIsNotHaltedXGns panics if xGNS operations are halted.44func AssertIsNotHaltedXGns() {45	AssertIsNotHaltedOperation(OpTypeXGns)46}4748// AssertIsNotHaltedCommunityPool panics if community pool operations are halted.49func AssertIsNotHaltedCommunityPool() {50	AssertIsNotHaltedOperation(OpTypeCommunityPool)51}5253// AssertIsNotHaltedEmission panics if emission operations are halted.54func AssertIsNotHaltedEmission() {55	AssertIsNotHaltedOperation(OpTypeEmission)56}5758// AssertIsNotHaltedWithdraw panics if withdraw operations are halted.59func AssertIsNotHaltedWithdraw() {60	AssertIsNotHaltedOperation(OpTypeWithdraw)61}6263// AssertIsNotHaltedOperation panics if the specified operation type is halted.64// Panics with error details including operation type name.65//66// Parameters:67//   - op: valid operation type whose halt status must permit execution; invalid68//     operation types panic with an invalid-operation error.69func AssertIsNotHaltedOperation(op OpType) {70	if halted := isHaltedOperation(op); halted {71		panic(makeErrorWithDetails(errHalted, op.String()))72	}73}74

Functions

  • AssertIsNotHaltedCommunityPool()

  • 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.

Rendered

RenderedRawgnoweb ↗

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.