Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v1 state

Back to all declarations

assertIsNotHaltedGovernanceForProposalData

func(proposalData *governance.ProposalData)

assertIsNotHaltedGovernanceForProposalData panics if governance is halted, unless the proposal only targets the halt realm. This keeps a recovery path open so governance can unhalt itself.

Open
OID
0db2d2…952d:3
assertIsNotHaltedGovernanceForProposalData details

Inspect func

assertIsNotHaltedGovernanceForProposal

func(gv *v1.governanceV1, proposalID int64)

assertIsNotHaltedGovernanceForProposal panics if governance is halted, unless the proposal only targets the halt realm.

Open
OID
0db2d2…952d:5
assertIsNotHaltedGovernanceForProposal details

Inspect func

isHaltRecoveryProposalData

func(proposalData *governance.ProposalData) bool

isHaltRecoveryProposalData returns true if the proposal is a parameter change whose every execution targets the halt realm.

Open
OID
0db2d2…952d:6
isHaltRecoveryProposalData details

Inspect func

assertCallerIsProposer

func(gv *v1.governanceV1, proposalID int64, caller .uverse.address)

assertCallerIsProposer panics if the caller is not the proposer of the given proposal.

Open
OID
0db2d2…952d:7
assertCallerIsProposer details

Inspect func

assertIsValidSmoothingPeriod

func(smoothingPeriod int64)
Open
OID
0db2d2…952d:8
assertIsValidSmoothingPeriod details

Inspect func

assertIsValidToken

func(tokenPath string)
Open
OID
0db2d2…952d:9
assertIsValidToken details

Inspect func

makeConfig

func(votingStartDelay int64, votingPeriod int64, votingWeightSmoothingDuration int64, quorum int64, proposalCreationThreshold int64, executionDelay int64, executionWindow int64) governance.Config

makeConfig creates a new governance configuration.

Open
OID
0db2d2…952d:10
makeConfig details

Inspect func

parameterSeparator

untyped string

Value

"*EXE*"

messageSeparator

untyped string

Value

"*GOV*"

maxTitleLength

untyped bigint

Value

(255 <untyped> bigint)

maxDescriptionLength

untyped bigint

Value

(10000 <untyped> bigint)

maxNumberOfExecution

untyped bigint

Value

(10 <untyped> bigint)

maxSmoothingPeriod

untyped bigint

// 30 days

Value

(2592000 <untyped> bigint)

errInvalidInput

untyped string

Value

"[GNOSWAP-GOVERNANCE-001] invalid input"

errDataNotFound

untyped string

Value

"[GNOSWAP-GOVERNANCE-002] requested data not found"

errNotEnoughBalance

untyped string

Value

"[GNOSWAP-GOVERNANCE-003] not enough balance"

errAlreadyVoted

untyped string

Value

"[GNOSWAP-GOVERNANCE-004] cannot vote twice"

errNotEnoughVotingWeight

untyped string

Value

"[GNOSWAP-GOVERNANCE-005] not enough voting power"

errAlreadyCanceledProposal

untyped string

Value

"[GNOSWAP-GOVERNANCE-006] cannot cancel already canceled proposal"

errUnableToCancelVotingProposal

untyped string

Value

"[GNOSWAP-GOVERNANCE-007] unable to cancel voting proposal"

errTextProposalNotExecutable

untyped string

Value

"[GNOSWAP-GOVERNANCE-008] cannot execute text proposal"

errUnableToVoteOutOfPeriod

untyped string

Value

"[GNOSWAP-GOVERNANCE-009] unable to vote out of voting period"

errInvalidMessageFormat

untyped string

Value

"[GNOSWAP-GOVERNANCE-010] invalid message format"

errAlreadyActiveProposal

untyped string

Value

"[GNOSWAP-GOVERNANCE-011] already active proposal"

errProposalNotFound

untyped string

Value

"[GNOSWAP-GOVERNANCE-012] proposal not found"

errProposalNotExecutable

untyped string

Value

"[GNOSWAP-GOVERNANCE-013] proposal not executable"

errNotProposer

untyped string

Value

"[GNOSWAP-GOVERNANCE-014] not proposer"

errInvalidConfiguration

untyped string

Value

"[GNOSWAP-GOVERNANCE-015] invalid configuration"

errInvalidExecution

untyped string

Value

"[GNOSWAP-GOVERNANCE-016] invalid execution: handler not found"

errInvalidSmoothingPeriod

untyped string

Value

"[GNOSWAP-GOVERNANCE-017] invalid smoothing period"

errProposalIndexNeedsCleanup

untyped string

Value

"[GNOSWAP-GOVERNANCE-018] active proposal index requires pruning"

makeErrorWithDetails

func(message string, detail string) .uverse.error

makeErrorWithDetails creates an error with additional context.

Open
OID
0db2d2…952d:12
makeErrorWithDetails details

Inspect func

cloneProposalEntry

func(value interface{...}) interface{...}

cloneProposalEntry is the transformation for the proposal tree. Proposal is mutable and its setters are declared in /r/gnoswap/gov/governance, so an external holder of the stored pointer could write realm state through it. Proposal.Clone leaves the type-specific data nil; see it for which lookups read it instead.

Open
OID
0db2d2…952d:14
cloneProposalEntry details

Inspect func

cloneProposalIDsEntry

func(value interface{...}) interface{...}

cloneProposalIDsEntry is the transformation for the user proposal tree. The stored value is a slice, so hand out a copy rather than letting a reader write through the shared backing array.

Open
OID
0db2d2…952d:16
cloneProposalIDsEntry details

Inspect func

executeCommunityPoolSpend

func(int, rlm .uverse.realm, proposal *governance.Proposal, parameterRegistry *v1.ParameterRegistry, executedAt int64, executedHeight int64, executedBy .uverse.address) .uverse.error

executeCommunityPoolSpend executes community pool spending proposals. Handles token transfers from community pool to specified recipients.

Open
OID
0db2d2…952d:17
executeCommunityPoolSpend details

Inspect func

executeParameterChange

func(int, rlm .uverse.realm, proposal *governance.Proposal, parameterRegistry *v1.ParameterRegistry, executedAt int64, executedHeight int64, executedBy .uverse.address) .uverse.error

executeParameterChange executes parameter change proposals. Handles governance configuration updates and system parameter modifications.

Open
OID
0db2d2…952d:19
executeParameterChange details

Inspect func

registerGovernanceV1

func()
Open
OID
0db2d2…952d:22
registerGovernanceV1 details

Inspect func

initStoreData

func(int, rlm .uverse.realm, governanceStore governance.IGovernanceStore) .uverse.error
Open
OID
0db2d2…952d:23
initStoreData details

Inspect func

formatConfigKey

func(version int64) string
Open
OID
0db2d2…952d:24
formatConfigKey details

Inspect func

governanceV1

type

Value

v1.governanceV1

NewGovernanceV1

func(governanceStore governance.IGovernanceStore, stakerAccessor governance.GovStakerAccessor) governance.IGovernance

NewGovernanceV1 creates a governance v1 implementation backed by the supplied state store and staker voting-weight accessor. Parameters: - governanceStore: persistence adapter for configuration, proposals, counters, and voting information - stakerAccessor: accessor that supplies delegation snapshots and total xGNS supply for governance decisions Returns: - governance.IGovernance: governance manager and getter implementation using the supplied dependencies

Open
OID
0db2d2…952d:25
NewGovernanceV1 details

Inspect func

activeProposalSnapshotKey

func(proposal *governance.Proposal) string
Open
OID
0db2d2…952d:27
activeProposalSnapshotKey details

Inspect func

globalParameterRegistry

*v1.ParameterRegistry

globalParameterRegistry is initialized once and reused for all validation and execution. This provides consistent validation at proposal creation time and execution time.

Open
OID
0db2d2…952d:95
globalParameterRegistry details

Inspect pointer

GNS_TOKEN_KEY

untyped string

Package paths

Value

"gno.land/r/gnoswap/gns.GNS"

HALT_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/halt/v1"

RBAC_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/rbac/v1"

ACCESS_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/access/v1"

EMISSION_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/emission"

COMMON_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/common"

POOL_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/pool"

POSITION_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/position"

ROUTER_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/router"

STAKER_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/staker"

LAUNCHPAD_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/launchpad"

PROTOCOL_FEE_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/protocol_fee"

COMMUNITY_POOL_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/community_pool/v1"

GOV_GOVERNANCE_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/gov/governance"

GOV_STAKER_PATH

untyped string

Package paths

Value

"gno.land/r/gnoswap/gov/staker"

ParameterHandler

type

ParameterHandler interface defines the contract for parameter execution handlers. Each handler is responsible for executing specific parameter changes in the system.

Value

v1.ParameterHandler

ParameterHandlerOptions

type

ParameterHandlerOptions contains the configuration and execution logic for a parameter handler. This struct encapsulates all information needed to identify and execute a parameter change. NOTE: handlerFunc uses \`rlm realm\` (rather than \`cur realm\`) as the realm parameter name. The v2 preprocessor reserves the \`cur\` name for the first realm-type parameter of top-level crossing function declarations and \`t.Run\` closures only; using it as the realm-parameter name on a multi-parameter struct-field function value trips a parser check ("only the first realm type argument of a crossing function may have name \`cur\`"). Naming it \`rlm\` keeps the lowering identical without the syntax constraint.

Value

v1.ParameterHandlerOptions

paramValidator

type

paramValidator validates a single parameter value and returns an error on failure.

Value

v1.paramValidator

compositeValidator

type

compositeValidator validates relationships between a handler's parameters. It must only enforce deterministic, state-independent rules so that a proposal is not rejected merely because on-chain state changes while voting.

Value

v1.compositeValidator

NewParameterHandlerOptions

func(pkgPath string, function string, paramCount int, handlerFunc func(...), paramValidators []v1.paramValidator) v1.ParameterHandler

NewParameterHandlerOptions creates a new parameter handler with the specified configuration. Parameters: - pkgPath: package path of the target contract - function: function name to be called - paramCount: expected number of parameters - handlerFunc: callback receiving the discriminator, propagated realm, and serialized parameters to execute the change - paramValidators: optional validators for each parameter (must match paramCount if provided) Returns: - ParameterHandler: configured parameter handler interface

Open
OID
0db2d2…952d:31
NewParameterHandlerOptions details

Inspect func

ParameterRegistry

type

ParameterRegistry manages the collection of parameter handlers for governance execution. This registry allows proposals to execute parameter changes across different system contracts.

Value

v1.ParameterRegistry

NewParameterRegistry

func() *v1.ParameterRegistry

NewParameterRegistry creates a new empty parameter registry. Returns: - \*ParameterRegistry: new registry instance

Open
OID
0db2d2…952d:32
NewParameterRegistry details

Inspect func

makeHandlerKey

func(pkgPath string, function string) string

makeHandlerKey creates a unique identifier for a handler based on package path and function. Parameters: - pkgPath: package path of the target contract - function: function name to be called Returns: - string: unique key in format "pkgPath:function"

Open
OID
0db2d2…952d:33
makeHandlerKey details

Inspect func

CreateParameterHandlers

func() *v1.ParameterRegistry

CreateParameterHandlers initializes and configures all supported parameter handlers. This function defines all the parameter changes that can be executed through governance proposals. It covers configuration changes for various system components including pools, staking, fees, etc. Returns: - \*ParameterRegistry: fully configured registry with all supported handlers

Open
OID
0db2d2…952d:34
CreateParameterHandlers details

Inspect func

registerHandlers

func(registry *v1.ParameterRegistry, handlerOptions []*v1.ParameterHandlerOptions)

registerHandlers batch registers all configured handlers into the registry. This helper function processes the handler configuration array and adds each handler to the registry. Parameters: - registry: the parameter registry to add handlers to - handlerOptions: slice of handler configurations to register

Open
OID
0db2d2…952d:35
registerHandlers details

Inspect func

runValidator

func(fn func(...)) err .uverse.error

runValidator executes a validator function and converts panics to errors.

Open
OID
0db2d2…952d:36
runValidator details

Inspect func

stringValidator

func(s string) .uverse.error

Basic reusable validators for proposal-time type checking.

Open
OID
0db2d2…952d:38
stringValidator details

Inspect func

boolValidator

func(s string) .uverse.error

Basic reusable validators for proposal-time type checking.

Open
OID
0db2d2…952d:40
boolValidator details

Inspect func

uint64Validator

func(s string) .uverse.error

Basic reusable validators for proposal-time type checking.

Open
OID
0db2d2…952d:42
uint64Validator details

Inspect func

addressValidator

func(s string) .uverse.error

Basic reusable validators for proposal-time type checking.

Open
OID
0db2d2…952d:44
addressValidator details

Inspect func

numberValidator

func(kind v1.numberKind) v1.paramValidator
Open
OID
0db2d2…952d:45
numberValidator details

Inspect func

uint8RangeValidator

func(name string) v1.paramValidator
Open
OID
0db2d2…952d:46
uint8RangeValidator details

Inspect func

roleNameValidator

func(s string) .uverse.error
Open
OID
0db2d2…952d:47
roleNameValidator details

Inspect func

updatableRoleNameValidator

func(s string) .uverse.error
Open
OID
0db2d2…952d:48
updatableRoleNameValidator details

Inspect func

removableRoleNameValidator

func(s string) .uverse.error
Open
OID
0db2d2…952d:49
removableRoleNameValidator details

Inspect func

nonNegativeInt64Validator

func(name string) v1.paramValidator
Open
OID
0db2d2…952d:50
nonNegativeInt64Validator details

Inspect func

positiveInt64Validator

func(name string) v1.paramValidator
Open
OID
0db2d2…952d:51
positiveInt64Validator details

Inspect func

int64RangeValidator

func(name string, min int64, max int64) v1.paramValidator
Open
OID
0db2d2…952d:52
int64RangeValidator details

Inspect func

uint64RangeValidator

func(name string, max uint64) v1.paramValidator
Open
OID
0db2d2…952d:53
uint64RangeValidator details

Inspect func

haltLevelValidator

func(s string) .uverse.error
Open
OID
0db2d2…952d:54
haltLevelValidator details

Inspect func

haltOperationTypeValidator

func(s string) .uverse.error
Open
OID
0db2d2…952d:55
haltOperationTypeValidator details

Inspect func

tokenMinimumRewardAmountValidator

func(s string) .uverse.error
Open
OID
0db2d2…952d:56
tokenMinimumRewardAmountValidator details

Inspect func

distributionPctCompositeValidator

func(params []string) .uverse.error
Open
OID
0db2d2…952d:57
distributionPctCompositeValidator details

Inspect func

splitExecutionsRaw

func(executions string) []string
Open
OID
0db2d2…952d:58
splitExecutionsRaw details

Inspect func

parseExecutionMessage

func(msg string) (pkgPath string, function string, params []string, partCount int)
Open
OID
0db2d2…952d:59
parseExecutionMessage details

Inspect func

validateExecutions

func(numToExecute int64, msgs []string) .uverse.error

validateExecutions validates that all executions in a parameter change proposal correspond to registered handlers in the global parameter registry. This function performs comprehensive validation including: - Basic format validation (count, structure) - Handler existence verification in the registry - Parameter count validation against handler expectations Parameters: - numToExecute: number of parameter changes to execute - msgs: pre-split slice of execution messages, where each message is formatted as \<pkgPath>\*EXE\*\<function>\*EXE\*\<params> Returns: - error: validation error if any execution is invalid

Open
OID
0db2d2…952d:60
validateExecutions details

Inspect func

ProposalResolver

type

Value

v1.ProposalResolver

NewProposalResolver

func(proposal *governance.Proposal) *v1.ProposalResolver

NewProposalResolver wraps a persisted governance proposal and initializes resolvers for its status, type-specific data, and metadata. Parameters: - proposal: persisted proposal to resolve Returns: - \*ProposalResolver: resolver backed by proposal and its nested state

Open
OID
0db2d2…952d:61
NewProposalResolver details

Inspect func

ProposalActionStatusResolver

type

Value

v1.ProposalActionStatusResolver

NewProposalActionStatusResolver

func(status *governance.ProposalActionStatus) *v1.ProposalActionStatusResolver

NewProposalActionStatusResolver wraps a proposal action status for mutation and execution-state queries. Parameters: - status: proposal action status to resolve and update. Returns: - \*ProposalActionStatusResolver: resolver backed by status.

Open
OID
0db2d2…952d:63
NewProposalActionStatusResolver details

Inspect func

ProposalMetadataResolver

type

Value

v1.ProposalMetadataResolver

NewProposalMetadataResolver

func(metadata *governance.ProposalMetadata) *v1.ProposalMetadataResolver

NewProposalMetadataResolver wraps proposal metadata for validation. Parameters: - metadata: proposal title and description to validate. Returns: - \*ProposalMetadataResolver: resolver backed by metadata.

Open
OID
0db2d2…952d:65
NewProposalMetadataResolver details

Inspect func

ProposalDataResolver

type

ProposalDataResolver handles business logic for proposal data.

Value

v1.ProposalDataResolver

NewProposalDataResolver

func(proposalData *governance.ProposalData) *v1.ProposalDataResolver

NewProposalDataResolver wraps proposal data for type-specific validation and execution-message parsing. Parameters: - proposalData: proposal data to resolve and validate. Returns: - \*ProposalDataResolver: resolver backed by proposalData.

Open
OID
0db2d2…952d:67
NewProposalDataResolver details

Inspect func

NewProposalTextData

func() *governance.ProposalData

NewProposalTextData creates proposal data for a text proposal. Text proposals have no additional data requirements. Returns: - \*ProposalData: proposal data configured for text proposal

Open
OID
0db2d2…952d:68
NewProposalTextData details

Inspect func

NewProposalCommunityPoolSpendData

func(tokenPath string, to .uverse.address, amount int64, communityPoolPackagePath string) *governance.ProposalData

NewProposalCommunityPoolSpendData creates proposal data for a community pool spend proposal. Automatically generates the execution message for the token transfer. Parameters: - tokenPath: path of the token to transfer - to: recipient address for the transfer - amount: amount of tokens to transfer - communityPoolPackagePath: package path of the community pool contract Returns: - \*ProposalData: proposal data configured for community pool spending

Open
OID
0db2d2…952d:69
NewProposalCommunityPoolSpendData details

Inspect func

NewProposalExecutionData

func(numToExecute int64, executions string) *governance.ProposalData

NewProposalExecutionData creates proposal data for a parameter change proposal. Each message in executions should be formatted as \<pkgPath>\*EXE\*\<function>\*EXE\*\<params>, separated by \*GOV\* when there are multiple messages. Parameters: - numToExecute: number of parameter changes to execute - executions: raw encoded execution string with parameter changes Returns: - \*ProposalData: proposal data configured for parameter changes

Open
OID
0db2d2…952d:70
NewProposalExecutionData details

Inspect func

makeExecuteMessage

func(pkgPath string, function string, params []string) string

makeExecuteMessage creates a message to execute a function. Message format: \<pkgPath>\*EXE\*\<function>\*EXE\*\<params>.

Open
OID
0db2d2…952d:71
makeExecuteMessage details

Inspect func

ProposalScheduleStatusResolver

type

Value

v1.ProposalScheduleStatusResolver

NewProposalScheduleStatusResolver

func(status *governance.ProposalScheduleStatus) *v1.ProposalScheduleStatusResolver

NewProposalScheduleStatusResolver wraps a proposal schedule for phase-boundary queries. Parameters: - status: proposal schedule containing creation, voting, and execution timestamps Returns: - \*ProposalScheduleStatusResolver: resolver backed by status

Open
OID
0db2d2…952d:72
NewProposalScheduleStatusResolver details

Inspect func

NewProposalScheduleStatus

func(votingStartDelay int64, votingPeriod int64, executionDelay int64, executionWindow int64, createdAt int64) *governance.ProposalScheduleStatus

NewProposalScheduleStatus creates a new schedule status with calculated timestamps. This constructor takes the governance timing parameters and calculates all important timestamps for the proposal's lifecycle. Parameters: - votingStartDelay: delay before voting starts (seconds) - votingPeriod: duration of voting period (seconds) - executionDelay: delay before execution can start (seconds) - executionWindow: window during which execution is allowed (seconds) - createdAt: timestamp when proposal was created Returns: - \*ProposalScheduleStatus: new schedule status with calculated times

Open
OID
0db2d2…952d:74
NewProposalScheduleStatus details

Inspect func

ProposalStatusResolver

type

Value

v1.ProposalStatusResolver

NewProposalStatusResolver

func(status *governance.ProposalStatus) *v1.ProposalStatusResolver

NewProposalStatusResolver wraps proposal status components for lifecycle and vote queries. Parameters: - status: proposal status containing schedule, action, and vote state Returns: - \*ProposalStatusResolver: resolver backed by status

Open
OID
0db2d2…952d:75
NewProposalStatusResolver details

Inspect func

NewProposalStatus

func(config governance.Config, maxVotingWeight int64, executable bool, createdAt int64, quorumWeight int64) *governance.ProposalStatus

NewProposalStatus creates a new proposal status with the specified configuration. This initializes all status components with the governance configuration and timing. Parameters: - config: governance configuration to use - maxVotingWeight: maximum voting weight for this proposal - executable: whether this proposal type can be executed - createdAt: timestamp when proposal was created - quorumWeight: total xGNS supply at proposal creation, used as the quorum base Returns: - \*ProposalStatus: new proposal status instance

Open
OID
0db2d2…952d:77
NewProposalStatus details

Inspect func

ProposalVoteStatusResolver

type

Value

v1.ProposalVoteStatusResolver

NewProposalVoteStatusResolver

func(voteStatus *governance.ProposalVoteStatus) *v1.ProposalVoteStatusResolver

NewProposalVoteStatusResolver wraps persisted vote status for vote tally calculations and mutation. Parameters: - voteStatus: persisted proposal vote status to resolve Returns: - \*ProposalVoteStatusResolver: resolver backed by voteStatus

Open
OID
0db2d2…952d:78
NewProposalVoteStatusResolver details

Inspect func

numberKind

type

numberKind represents the type of number to parse.

Value

v1.numberKind

kindInt

v1.numberKind

Value

<zero>

kindInt64

v1.numberKind

Value

<zero>

kindUint64

v1.numberKind

Value

<zero>

parseNumber

func(s string, kind v1.numberKind) interface{...}

parseNumber parses a string to a number (int, int64, or uint64) with proper validation.

Open
OID
0db2d2…952d:80
parseNumber details

Inspect func

parseBool

func(s string) bool

parseBool parses a string to a boolean.

Open
OID
0db2d2…952d:82
parseBool details

Inspect func

parseInt

func(s string) int

parseInt parses a string to int with proper validation and overflow checking.

Open
OID
0db2d2…952d:83
parseInt details

Inspect func

parseInt64

func(s string) int64

parseInt64 parses a string to int64 with proper validation.

Open
OID
0db2d2…952d:84
parseInt64 details

Inspect func

parseUint64

func(s string) uint64

parseUint64 parses a string to uint64 with proper validation.

Open
OID
0db2d2…952d:85
parseUint64 details

Inspect func
assertIsNotHaltedGovernanceForProposalData : func(proposalData *governance.ProposalData) Inspect
assertIsNotHaltedGovernanceForProposal : func(gv *v1.governanceV1, proposalID int64) Inspect
isHaltRecoveryProposalData : func(proposalData *governance.ProposalData) bool Inspect
assertCallerIsProposer : func(gv *v1.governanceV1, proposalID int64, caller .uverse.address) Inspect
assertIsValidSmoothingPeriod : func(smoothingPeriod int64) Inspect
assertIsValidToken : func(tokenPath string) Inspect
makeConfig : func(votingStartDelay int64, votingPeriod int64, votingWeightSmoothingDuration int64, quorum int64, proposalCreationThreshold int64, executionDelay int64, executionWindow int64) governance.Config Inspect
parameterSeparator : untyped string ="*EXE*"
messageSeparator : untyped string ="*GOV*"
maxTitleLength : untyped bigint =(255 <untyped> bigint)
maxDescriptionLength : untyped bigint =(10000 <untyped> bigint)
maxNumberOfExecution : untyped bigint =(10 <untyped> bigint)
maxSmoothingPeriod : untyped bigint =(2592000 <untyped> bigint)
errInvalidInput : untyped string ="[GNOSWAP-GOVERNANCE-001] invalid input"
errDataNotFound : untyped string ="[GNOSWAP-GOVERNANCE-002] requested data not found"
errNotEnoughBalance : untyped string ="[GNOSWAP-GOVERNANCE-003] not enough balance"
errAlreadyVoted : untyped string ="[GNOSWAP-GOVERNANCE-004] cannot vote twice"
errNotEnoughVotingWeight : untyped string ="[GNOSWAP-GOVERNANCE-005] not enough voting power"
errAlreadyCanceledProposal : untyped string ="[GNOSWAP-GOVERNANCE-006] cannot cancel already canceled proposal"
errUnableToCancelVotingProposal : untyped string ="[GNOSWAP-GOVERNANCE-007] unable to cancel voting proposal"
errTextProposalNotExecutable : untyped string ="[GNOSWAP-GOVERNANCE-008] cannot execute text proposal"
errUnableToVoteOutOfPeriod : untyped string ="[GNOSWAP-GOVERNANCE-009] unable to vote out of voting period"
errInvalidMessageFormat : untyped string ="[GNOSWAP-GOVERNANCE-010] invalid message format"
errAlreadyActiveProposal : untyped string ="[GNOSWAP-GOVERNANCE-011] already active proposal"
errProposalNotFound : untyped string ="[GNOSWAP-GOVERNANCE-012] proposal not found"
errProposalNotExecutable : untyped string ="[GNOSWAP-GOVERNANCE-013] proposal not executable"
errNotProposer : untyped string ="[GNOSWAP-GOVERNANCE-014] not proposer"
errInvalidConfiguration : untyped string ="[GNOSWAP-GOVERNANCE-015] invalid configuration"
errInvalidExecution : untyped string ="[GNOSWAP-GOVERNANCE-016] invalid execution: handler not found"
errInvalidSmoothingPeriod : untyped string ="[GNOSWAP-GOVERNANCE-017] invalid smoothing period"
errProposalIndexNeedsCleanup : untyped string ="[GNOSWAP-GOVERNANCE-018] active proposal index requires pruning"
makeErrorWithDetails : func(message string, detail string) .uverse.error Inspect
cloneProposalEntry : func(value interface{...}) interface{...} Inspect
cloneProposalIDsEntry : func(value interface{...}) interface{...} Inspect
executeCommunityPoolSpend : func(int, rlm .uverse.realm, proposal *governance.Proposal, parameterRegistry *v1.ParameterRegistry, executedAt int64, executedHeight int64, executedBy .uverse.address) .uverse.error Inspect
executeParameterChange : func(int, rlm .uverse.realm, proposal *governance.Proposal, parameterRegistry *v1.ParameterRegistry, executedAt int64, executedHeight int64, executedBy .uverse.address) .uverse.error Inspect
init.36 : func() Inspect
registerGovernanceV1 : func() Inspect
initStoreData : func(int, rlm .uverse.realm, governanceStore governance.IGovernanceStore) .uverse.error Inspect
formatConfigKey : func(version int64) string Inspect
governanceV1 : type =v1.governanceV1
NewGovernanceV1 : func(governanceStore governance.IGovernanceStore, stakerAccessor governance.GovStakerAccessor) governance.IGovernance Inspect
activeProposalSnapshotKey : func(proposal *governance.Proposal) string Inspect
globalParameterRegistry : *v1.ParameterRegistry Inspect
init.44 : func() Inspect
GNS_TOKEN_KEY : untyped string ="gno.land/r/gnoswap/gns.GNS"
HALT_PATH : untyped string ="gno.land/r/gnoswap/halt/v1"
RBAC_PATH : untyped string ="gno.land/r/gnoswap/rbac/v1"
ACCESS_PATH : untyped string ="gno.land/r/gnoswap/access/v1"
EMISSION_PATH : untyped string ="gno.land/r/gnoswap/emission"
COMMON_PATH : untyped string ="gno.land/r/gnoswap/common"
POOL_PATH : untyped string ="gno.land/r/gnoswap/pool"
POSITION_PATH : untyped string ="gno.land/r/gnoswap/position"
ROUTER_PATH : untyped string ="gno.land/r/gnoswap/router"
STAKER_PATH : untyped string ="gno.land/r/gnoswap/staker"
LAUNCHPAD_PATH : untyped string ="gno.land/r/gnoswap/launchpad"
PROTOCOL_FEE_PATH : untyped string ="gno.land/r/gnoswap/protocol_fee"
COMMUNITY_POOL_PATH : untyped string ="gno.land/r/gnoswap/community_pool/v1"
GOV_GOVERNANCE_PATH : untyped string ="gno.land/r/gnoswap/gov/governance"
GOV_STAKER_PATH : untyped string ="gno.land/r/gnoswap/gov/staker"
ParameterHandler : type =v1.ParameterHandler
ParameterHandlerOptions : type =v1.ParameterHandlerOptions
paramValidator : type =v1.paramValidator
compositeValidator : type =v1.compositeValidator
NewParameterHandlerOptions : func(pkgPath string, function string, paramCount int, handlerFunc func(...), paramValidators []v1.paramValidator) v1.ParameterHandler Inspect
ParameterRegistry : type =v1.ParameterRegistry
NewParameterRegistry : func() *v1.ParameterRegistry Inspect
makeHandlerKey : func(pkgPath string, function string) string Inspect
CreateParameterHandlers : func() *v1.ParameterRegistry Inspect
registerHandlers : func(registry *v1.ParameterRegistry, handlerOptions []*v1.ParameterHandlerOptions) Inspect
runValidator : func(fn func(...)) err .uverse.error Inspect
stringValidator : func(s string) .uverse.error Inspect
boolValidator : func(s string) .uverse.error Inspect
uint64Validator : func(s string) .uverse.error Inspect
addressValidator : func(s string) .uverse.error Inspect
numberValidator : func(kind v1.numberKind) v1.paramValidator Inspect
uint8RangeValidator : func(name string) v1.paramValidator Inspect
roleNameValidator : func(s string) .uverse.error Inspect
updatableRoleNameValidator : func(s string) .uverse.error Inspect
removableRoleNameValidator : func(s string) .uverse.error Inspect
nonNegativeInt64Validator : func(name string) v1.paramValidator Inspect
positiveInt64Validator : func(name string) v1.paramValidator Inspect
int64RangeValidator : func(name string, min int64, max int64) v1.paramValidator Inspect
uint64RangeValidator : func(name string, max uint64) v1.paramValidator Inspect
haltLevelValidator : func(s string) .uverse.error Inspect
haltOperationTypeValidator : func(s string) .uverse.error Inspect
tokenMinimumRewardAmountValidator : func(s string) .uverse.error Inspect
distributionPctCompositeValidator : func(params []string) .uverse.error Inspect
splitExecutionsRaw : func(executions string) []string Inspect
parseExecutionMessage : func(msg string) (pkgPath string, function string, params []string, partCount int) Inspect
validateExecutions : func(numToExecute int64, msgs []string) .uverse.error Inspect
ProposalResolver : type =v1.ProposalResolver
NewProposalResolver : func(proposal *governance.Proposal) *v1.ProposalResolver Inspect
ProposalActionStatusResolver : type =v1.ProposalActionStatusResolver
NewProposalActionStatusResolver : func(status *governance.ProposalActionStatus) *v1.ProposalActionStatusResolver Inspect
ProposalMetadataResolver : type =v1.ProposalMetadataResolver
NewProposalMetadataResolver : func(metadata *governance.ProposalMetadata) *v1.ProposalMetadataResolver Inspect
ProposalDataResolver : type =v1.ProposalDataResolver
NewProposalDataResolver : func(proposalData *governance.ProposalData) *v1.ProposalDataResolver Inspect
NewProposalTextData : func() *governance.ProposalData Inspect
NewProposalCommunityPoolSpendData : func(tokenPath string, to .uverse.address, amount int64, communityPoolPackagePath string) *governance.ProposalData Inspect
NewProposalExecutionData : func(numToExecute int64, executions string) *governance.ProposalData Inspect
makeExecuteMessage : func(pkgPath string, function string, params []string) string Inspect
ProposalScheduleStatusResolver : type =v1.ProposalScheduleStatusResolver
NewProposalScheduleStatusResolver : func(status *governance.ProposalScheduleStatus) *v1.ProposalScheduleStatusResolver Inspect
NewProposalScheduleStatus : func(votingStartDelay int64, votingPeriod int64, executionDelay int64, executionWindow int64, createdAt int64) *governance.ProposalScheduleStatus Inspect
ProposalStatusResolver : type =v1.ProposalStatusResolver
NewProposalStatusResolver : func(status *governance.ProposalStatus) *v1.ProposalStatusResolver Inspect
NewProposalStatus : func(config governance.Config, maxVotingWeight int64, executable bool, createdAt int64, quorumWeight int64) *governance.ProposalStatus Inspect
ProposalVoteStatusResolver : type =v1.ProposalVoteStatusResolver
NewProposalVoteStatusResolver : func(voteStatus *governance.ProposalVoteStatus) *v1.ProposalVoteStatusResolver Inspect
numberKind : type =v1.numberKind
kindInt : v1.numberKind =<zero>
kindInt64 : v1.numberKind =<zero>
kindUint64 : v1.numberKind =<zero>
parseNumber : func(s string, kind v1.numberKind) interface{...} Inspect
parseBool : func(s string) bool Inspect
parseInt : func(s string) int Inspect
parseInt64 : func(s string) int64 Inspect
parseUint64 : func(s string) uint64 Inspect