func AssertIsNotHaltedCommunityPool()
Link
Execute
AssertIsNotHaltedCommunityPool panics if community pool operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedCommunityPool()"
AssertIsNotHaltedEmission
func AssertIsNotHaltedEmission()
Link
Execute
AssertIsNotHaltedEmission panics if emission operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedEmission()"
AssertIsNotHaltedGovStaker
func AssertIsNotHaltedGovStaker()
Link
Execute
AssertIsNotHaltedGovStaker panics if governance staker operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedGovStaker()"
AssertIsNotHaltedGovernance
func AssertIsNotHaltedGovernance()
Link
Execute
AssertIsNotHaltedGovernance panics if governance operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedGovernance()"
AssertIsNotHaltedLaunchpad
func AssertIsNotHaltedLaunchpad()
Link
Execute
AssertIsNotHaltedLaunchpad panics if launchpad operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedLaunchpad()"
AssertIsNotHaltedOperation
func AssertIsNotHaltedOperation(op OpType)
Link
Execute
AssertIsNotHaltedOperation panics if the specified operation type is halted. Panics with error details including operation type name.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedOperation( )"
AssertIsNotHaltedPool
func AssertIsNotHaltedPool()
Link
Execute
AssertIsNotHaltedPool panics if pool operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedPool()"
AssertIsNotHaltedPosition
func AssertIsNotHaltedPosition()
Link
Execute
AssertIsNotHaltedPosition panics if position operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedPosition()"
AssertIsNotHaltedProtocolFee
func AssertIsNotHaltedProtocolFee()
Link
Execute
AssertIsNotHaltedProtocolFee panics if protocol fee operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedProtocolFee()"
AssertIsNotHaltedRouter
func AssertIsNotHaltedRouter()
Link
Execute
AssertIsNotHaltedRouter panics if router operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedRouter()"
AssertIsNotHaltedStaker
func AssertIsNotHaltedStaker()
Link
Execute
AssertIsNotHaltedStaker panics if staker operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedStaker()"
AssertIsNotHaltedWithdraw
func AssertIsNotHaltedWithdraw()
Link
Execute
AssertIsNotHaltedWithdraw panics if withdraw operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedWithdraw()"
AssertIsNotHaltedXGns
func AssertIsNotHaltedXGns()
Link
Execute
AssertIsNotHaltedXGns panics if xGNS operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.AssertIsNotHaltedXGns()"
GetHaltConfigJson
func GetHaltConfigJson() string
Link
Execute
GetHaltConfigJson returns the halt configuration as a JSON string.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.GetHaltConfigJson()"
IsHalted
func IsHalted(opTypes ...OpType) (bool, error)
Link
Execute
IsHalted returns true if any of the specified operation types are halted. Returns error if any operation type is invalid.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHalted( )"
func IsHaltedCommunityPool() bool
Link
Execute
IsHaltedCommunityPool returns true if community pool operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedCommunityPool()"
IsHaltedEmission
func IsHaltedEmission() bool
Link
Execute
IsHaltedEmission returns true if emission operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedEmission()"
IsHaltedGovStaker
func IsHaltedGovStaker() bool
Link
Execute
IsHaltedGovStaker returns true if governance staker operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedGovStaker()"
IsHaltedGovernance
func IsHaltedGovernance() bool
Link
Execute
IsHaltedGovernance returns true if governance operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedGovernance()"
IsHaltedLaunchpad
func IsHaltedLaunchpad() bool
Link
Execute
IsHaltedLaunchpad returns true if launchpad operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedLaunchpad()"
IsHaltedPool
func IsHaltedPool() bool
Link
Execute
IsHaltedPool returns true if pool operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedPool()"
IsHaltedPosition
func IsHaltedPosition() bool
Link
Execute
IsHaltedPosition returns true if position operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedPosition()"
IsHaltedProtocolFee
func IsHaltedProtocolFee() bool
Link
Execute
IsHaltedProtocolFee returns true if protocol fee operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedProtocolFee()"
IsHaltedRouter
func IsHaltedRouter() bool
Link
Execute
IsHaltedRouter returns true if router operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedRouter()"
IsHaltedStaker
func IsHaltedStaker() bool
Link
Execute
IsHaltedStaker returns true if staker operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedStaker()"
IsHaltedWithdraw
func IsHaltedWithdraw() bool
Link
Execute
IsHaltedWithdraw returns true if withdraw operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedWithdraw()"
IsHaltedXGns
func IsHaltedXGns() bool
Link
Execute
IsHaltedXGns returns true if xGNS operations are halted.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.IsHaltedXGns()"
SetHaltLevel
func SetHaltLevel(cur realm, level HaltLevel)
Link
Execute
SetHaltLevel sets the global halt level.
Parameters:
- level: halt level to apply (None, SafeMode, Emergency, Complete)
Only callable by admin or governance.
Command
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/gnoswap/halt" -func "SetHaltLevel" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test11" -remote "https://rpc.test11.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test11.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/halt" -func "SetHaltLevel" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test11" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test11.testnets.gno.land" call.tx
SetOperationStatus
func SetOperationStatus(cur realm, op OpType, halted bool)
Link
Execute
SetOperationStatus sets halt status for a specific operation.
Parameters:
- op: operation type
- halted: true to halt, false to resume
Only callable by admin or governance.
Command
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/gnoswap/halt" -func "SetOperationStatus" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " -broadcast -chainid "test11" -remote "https://rpc.test11.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test11.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/halt" -func "SetOperationStatus" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test11" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test11.testnets.gno.land" call.tx
GetHaltConfig
func GetHaltConfig() HaltConfig
Link
Execute
GetHaltConfig returns a copy of the current halt configuration.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.GetHaltConfig()"
OpTypes
func OpTypes() []OpType
Link
Execute
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/halt.OpTypes()"