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

governance state

Back to all declarations

govStakerAccessor

type

Value

governance.govStakerAccessor

newGovStakerAccessor

func() governance.GovStakerAccessor
Open
OID
05efe5…55e4:3
newGovStakerAccessor details

Inspect func

Config

type

Config represents the configuration of the governor contract All parameters in this struct can be modified through governance.

Value

governance.Config

NewConfig

func(votingStartDelay int64, votingPeriod int64, votingWeightSmoothingDuration int64, quorum int64, proposalCreationThreshold int64, executionDelay int64, executionWindow int64) governance.Config
Open
OID
05efe5…55e4:5
NewConfig details

Inspect func

NewConfigPtr

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

NewConfigPtr constructs a Config and returns a pointer to it. The Config is allocated within the governance domain realm, satisfying realm allocation checks for callers (such as tests) that require a \*Config value.

Open
OID
05efe5…55e4:7
NewConfigPtr details

Inspect func

NewDefaultConfig

func() governance.Config
Open
OID
05efe5…55e4:8
NewDefaultConfig details

Inspect func

NewConfigTree

func() *v0.BPTree
Open
OID
05efe5…55e4:9
NewConfigTree details

Inspect func

Counter

type

Counter manages unique incrementing IDs.

Value

governance.Counter

NewCounter

func() *governance.Counter

NewCounter creates a new Counter starting at 0.

Open
OID
05efe5…55e4:10
NewCounter details

Inspect func

cloneInt64Slice

func(src []int64) []int64
Open
OID
05efe5…55e4:12
cloneInt64Slice details

Inspect func

cloneAddressSlice

func(src [].uverse.address) [].uverse.address
Open
OID
05efe5…55e4:14
cloneAddressSlice details

Inspect func

GetLatestConfigVersion

func() int64

GetLatestConfigVersion returns the current config version.

Open
OID
05efe5…55e4:15
GetLatestConfigVersion details

Inspect func

GetCurrentProposalID

func() int64

GetCurrentProposalID returns the current proposal ID counter.

Open
OID
05efe5…55e4:17
GetCurrentProposalID details

Inspect func

GetMaxSmoothingPeriod

func() int64

GetMaxSmoothingPeriod returns the maximum smoothing period for delegation history cleanup.

Open
OID
05efe5…55e4:18
GetMaxSmoothingPeriod details

Inspect func

GetLatestConfig

func() governance.Config

GetLatestConfig returns the latest governance configuration.

Open
OID
05efe5…55e4:19
GetLatestConfig details

Inspect func

GetConfig

func(configVersion int64) (governance.Config, .uverse.error)

GetConfig returns a specific governance configuration by version.

Open
OID
05efe5…55e4:20
GetConfig details

Inspect func

GetProposalCount

func() int

GetProposalCount returns the total number of proposals.

Open
OID
05efe5…55e4:21
GetProposalCount details

Inspect func

GetProposalIDs

func(offset int, count int) []int64

GetProposalIDs returns a paginated list of proposal IDs.

Open
OID
05efe5…55e4:22
GetProposalIDs details

Inspect func

ExistsProposal

func(proposalID int64) bool

ExistsProposal checks if a proposal exists.

Open
OID
05efe5…55e4:23
ExistsProposal details

Inspect func

GetProposal

func(proposalID int64) (*governance.Proposal, .uverse.error)

GetProposal returns a proposal by ID. Returns a clone to prevent external modification.

Open
OID
05efe5…55e4:24
GetProposal details

Inspect func

GetProposerByProposalId

func(proposalId int64) (.uverse.address, .uverse.error)
Open
OID
05efe5…55e4:25
GetProposerByProposalId details

Inspect func

GetProposalTypeByProposalId

func(proposalId int64) (governance.ProposalType, .uverse.error)

GetProposalTypeByProposalId returns the type of a proposal.

Open
OID
05efe5…55e4:26
GetProposalTypeByProposalId details

Inspect func

GetYeaByProposalId

func(proposalId int64) (int64, .uverse.error)

GetYeaByProposalId returns the yes vote weight of a proposal.

Open
OID
05efe5…55e4:27
GetYeaByProposalId details

Inspect func

GetNayByProposalId

func(proposalId int64) (int64, .uverse.error)

GetNayByProposalId returns the no vote weight of a proposal.

Open
OID
05efe5…55e4:28
GetNayByProposalId details

Inspect func

GetConfigVersionByProposalId

func(proposalId int64) (int64, .uverse.error)

GetConfigVersionByProposalId returns the config version used by a proposal.

Open
OID
05efe5…55e4:29
GetConfigVersionByProposalId details

Inspect func

GetQuorumAmountByProposalId

func(proposalId int64) (int64, .uverse.error)

GetQuorumAmountByProposalId returns the quorum requirement for a proposal.

Open
OID
05efe5…55e4:30
GetQuorumAmountByProposalId details

Inspect func

GetTitleByProposalId

func(proposalId int64) (string, .uverse.error)

GetTitleByProposalId returns the title of a proposal.

Open
OID
05efe5…55e4:31
GetTitleByProposalId details

Inspect func

GetDescriptionByProposalId

func(proposalId int64) (string, .uverse.error)

GetDescriptionByProposalId returns the description of a proposal.

Open
OID
05efe5…55e4:32
GetDescriptionByProposalId details

Inspect func

GetProposalStatusByProposalId

func(proposalId int64) (string, .uverse.error)

GetProposalStatusByProposalId returns the current status of a proposal.

Open
OID
05efe5…55e4:33
GetProposalStatusByProposalId details

Inspect func

GetProposalCreatedAt

func(proposalId int64) (int64, .uverse.error)

GetProposalCreatedAt returns the creation timestamp of a proposal.

Open
OID
05efe5…55e4:34
GetProposalCreatedAt details

Inspect func

GetProposalCreatedHeight

func(proposalId int64) (int64, .uverse.error)

GetProposalCreatedHeight returns the creation block height of a proposal.

Open
OID
05efe5…55e4:35
GetProposalCreatedHeight details

Inspect func

GetVoteStatus

func(proposalId int64) (quorum int64, maxVotingWeight int64, yesWeight int64, noWeight int64, err .uverse.error)

GetVoteStatus returns the vote status of a proposal. Returns: - quorum: minimum vote weight required for proposal to pass - maxVotingWeight: maximum possible voting weight - yesWeight: total weight of "yes" votes - noWeight: total weight of "no" votes

Open
OID
05efe5…55e4:36
GetVoteStatus details

Inspect func

GetVotingInfoCount

func(proposalID int64) int

GetVotingInfoCount returns the number of voters for a proposal.

Open
OID
05efe5…55e4:37
GetVotingInfoCount details

Inspect func

GetVotingInfoAddresses

func(proposalID int64, offset int, count int) [].uverse.address
Open
OID
05efe5…55e4:38
GetVotingInfoAddresses details

Inspect func

ExistsVotingInfo

func(proposalID int64, addr .uverse.address) bool

ExistsVotingInfo checks if a voting info exists for a user on a proposal.

Open
OID
05efe5…55e4:39
ExistsVotingInfo details

Inspect func

GetVotingInfo

func(proposalID int64, addr .uverse.address) (*governance.VotingInfo, .uverse.error)

GetVotingInfo returns the voting info for a user on a proposal. Returns a clone to prevent external modification.

Open
OID
05efe5…55e4:40
GetVotingInfo details

Inspect func

GetVoteWeight

func(proposalID int64, addr .uverse.address) (int64, .uverse.error)

GetVoteWeight returns the voting weight of an address for a proposal.

Open
OID
05efe5…55e4:41
GetVoteWeight details

Inspect func

GetVotedHeight

func(proposalID int64, addr .uverse.address) (int64, .uverse.error)

GetVotedHeight returns the block height when an address voted on a proposal.

Open
OID
05efe5…55e4:42
GetVotedHeight details

Inspect func

GetVotedAt

func(proposalID int64, addr .uverse.address) (int64, .uverse.error)

GetVotedAt returns the timestamp when an address voted on a proposal.

Open
OID
05efe5…55e4:43
GetVotedAt details

Inspect func

GetProposalCommunityPoolSpendInfo

func(proposalID int64) (*governance.CommunityPoolSpendInfo, .uverse.error)

GetProposalCommunityPoolSpendInfo returns the community pool spend info for a proposal.

Open
OID
05efe5…55e4:44
GetProposalCommunityPoolSpendInfo details

Inspect func

GetProposalExecutionInfo

func(proposalID int64) (*governance.ExecutionInfo, .uverse.error)

GetProposalExecutionInfo returns the execution info for a proposal.

Open
OID
05efe5…55e4:45
GetProposalExecutionInfo details

Inspect func

GetUserProposalCount

func(user .uverse.address) int

GetUserProposalCount returns the number of proposals created by a user.

Open
OID
05efe5…55e4:46
GetUserProposalCount details

Inspect func

GetUserProposalIDs

func(user .uverse.address, offset int, count int) []int64

GetUserProposalIDs returns a paginated list of proposal IDs created by a user.

Open
OID
05efe5…55e4:47
GetUserProposalIDs details

Inspect func

GetOldestActiveProposalSnapshotTime

func() (int64, bool)

GetOldestActiveProposalSnapshotTime returns the oldest snapshot time among active proposals.

Open
OID
05efe5…55e4:48
GetOldestActiveProposalSnapshotTime details

Inspect func

GetCurrentVotingWeightSnapshot

func() (int64, int64, .uverse.error)

GetCurrentVotingWeightSnapshot returns the current voting weight snapshot.

Open
OID
05efe5…55e4:49
GetCurrentVotingWeightSnapshot details

Inspect func

Proposal

type

Proposal represents a governance proposal with all its associated data and state. This is the core structure that tracks proposal lifecycle from creation to execution.

Value

governance.Proposal

NewProposal

func(proposalID int64, status *governance.ProposalStatus, metadata *governance.ProposalMetadata, data *governance.ProposalData, proposerAddress .uverse.address, configVersion int64, snapshotTime int64, createdHeight int64) *governance.Proposal

NewProposal creates a new proposal instance with the provided parameters. NewProposal is the main constructor for creating governance proposals. - metadata: proposal title and description - data: type-specific proposal data - proposerAddress: address of the proposal creator - configVersion: governance configuration version - snapshotTime: timestamp for voting weight snapshot lookup - createdHeight: creation block height Returns: - \*Proposal: newly created proposal instance

Open
OID
05efe5…55e4:50
NewProposal details

Inspect func

NewProposalTree

func() *v0.BPTree
Open
OID
05efe5…55e4:52
NewProposalTree details

Inspect func

NewUserProposalTree

func() *v0.BPTree
Open
OID
05efe5…55e4:53
NewUserProposalTree details

Inspect func

NewVotingInfoTree

func() *v0.BPTree
Open
OID
05efe5…55e4:54
NewVotingInfoTree details

Inspect func

NewProposalUserVotingInfoTree

func() *v0.BPTree
Open
OID
05efe5…55e4:55
NewProposalUserVotingInfoTree details

Inspect func

ProposalActionStatus

type

ProposalActionStatus tracks the execution and cancellation status of a proposal. This structure manages the action-related state including who performed actions and when.

Value

governance.ProposalActionStatus

NewProposalActionStatus

func(executable bool) *governance.ProposalActionStatus

NewProposalActionStatus creates a new action status for a proposal. Initializes the status with default values and the executable flag. Parameters: - executable: whether this proposal type can be executed Returns: - \*ProposalActionStatus: new action status instance

Open
OID
05efe5…55e4:56
NewProposalActionStatus details

Inspect func

ProposalMetadata

type

ProposalMetadata contains descriptive information about a proposal. This includes the title and description that are displayed to voters.

Value

governance.ProposalMetadata

NewProposalMetadata

func(title string, description string) *governance.ProposalMetadata

NewProposalMetadata creates a new proposal metadata instance with trimmed input. Parameters: - title: proposal title - description: proposal description Returns: - \*ProposalMetadata: new metadata instance with trimmed whitespace

Open
OID
05efe5…55e4:58
NewProposalMetadata details

Inspect func

ProposalData

type

ProposalData contains the type-specific data for a proposal. This structure holds different data depending on the proposal type.

Value

governance.ProposalData

NewProposalData

func(proposalType governance.ProposalType, communityPoolSpend *governance.CommunityPoolSpendInfo, execution *governance.ExecutionInfo) *governance.ProposalData

NewProposalData creates a new proposal data instance with the specified components. Parameters: - proposalType: type of the proposal - communityPoolSpend: community pool spending information - execution: parameter change execution information Returns: - \*ProposalData: new proposal data instance

Open
OID
05efe5…55e4:60
NewProposalData details

Inspect func

CommunityPoolSpendInfo

type

CommunityPoolSpendInfo contains information for community pool spending proposals.

Value

governance.CommunityPoolSpendInfo

NewCommunityPoolSpendInfo

func(to .uverse.address, tokenPath string, amount int64) *governance.CommunityPoolSpendInfo
Open
OID
05efe5…55e4:61
NewCommunityPoolSpendInfo details

Inspect func

ExecutionInfo

type

ExecutionInfo contains information for parameter change execution. Messages are encoded strings that specify function calls and parameters.

Value

governance.ExecutionInfo

NewExecutionInfo

func(num int64, msgs []string) *governance.ExecutionInfo
Open
OID
05efe5…55e4:62
NewExecutionInfo details

Inspect func

ParameterChangeInfo

type

ParameterChangeInfo represents a single parameter change to be executed.

Value

governance.ParameterChangeInfo

NewParameterChangeInfo

func(pkgPath string, function string, params []string) governance.ParameterChangeInfo
Open
OID
05efe5…55e4:63
NewParameterChangeInfo details

Inspect func

ProposalScheduleStatus

type

ProposalScheduleStatus represents the pre-calculated time schedule for a proposal. This structure defines all the important timestamps in a proposal's lifecycle, from creation through voting to execution and expiration.

Value

governance.ProposalScheduleStatus

NewProposalScheduleStatus

func(createTime int64, activeTime int64, votingEndTime int64, executableTime int64, expiredTime int64) *governance.ProposalScheduleStatus
Open
OID
05efe5…55e4:64
NewProposalScheduleStatus details

Inspect func

ProposalStatusType

type

ProposalStatusType represents the current status of a proposal in its lifecycle. These statuses determine what actions are available for a proposal.

Value

governance.ProposalStatusType

StatusUpcoming

governance.ProposalStatusType

// Proposal created but voting hasn't started yet

Value

<zero>

StatusActive

governance.ProposalStatusType

// Proposal is in voting period

Value

<zero>

StatusPassed

governance.ProposalStatusType

// Proposal has passed but hasn't been executed (or is text proposal)

Value

<zero>

StatusRejected

governance.ProposalStatusType

// Proposal failed to meet voting requirements

Value

<zero>

StatusExecutable

governance.ProposalStatusType

// Proposal can be executed (passed and in execution window)

Value

<zero>

StatusExecuted

governance.ProposalStatusType

// Proposal has been successfully executed

Value

<zero>

StatusExpired

governance.ProposalStatusType

// Proposal execution window has passed

Value

<zero>

StatusCanceled

governance.ProposalStatusType

// Proposal has been canceled

Value

<zero>

ProposalStatus

type

ProposalStatus manages the complete status of a proposal including scheduling, voting, and actions. This is the central status tracking structure that coordinates different aspects of proposal state.

Value

governance.ProposalStatus

NewProposalStatusBy

func(schedule *governance.ProposalScheduleStatus, actionStatus *governance.ProposalActionStatus, voteStatus *governance.ProposalVoteStatus) *governance.ProposalStatus
Open
OID
05efe5…55e4:66
NewProposalStatusBy details

Inspect func

ProposalType

type

ProposalType defines the different types of proposals supported by the governance system. Each type has different execution behavior and validation requirements.

Value

governance.ProposalType

Text

governance.ProposalType

// Informational proposals for community discussion

Value

<gnolang.StringValue>

CommunityPoolSpend

governance.ProposalType

CommunityPoolSpend returns the community pool spending information. Returns: - \*CommunityPoolSpendInfo: community pool spending details

Value

<gnolang.StringValue>

ParameterChange

governance.ProposalType

// Proposals to modify system parameters

Value

<gnolang.StringValue>

ProposalVoteStatus

type

ProposalVoteStatus tracks the voting tallies and requirements for a proposal. This structure manages vote counting, quorum calculation, and voting outcome determination.

Value

governance.ProposalVoteStatus

NewProposalVoteStatus

func(maxVotingWeight int64, quorumAmount int64) *governance.ProposalVoteStatus

NewProposalVoteStatus creates a new vote status for a proposal. Initializes vote tallies to zero and calculates the quorum requirement. Parameters: - maxVotingWeight: maximum possible voting weight for this proposal - quorumAmount: quorum amount required for passage Returns: - \*ProposalVoteStatus: new vote status instance

Open
OID
05efe5…55e4:68
NewProposalVoteStatus details

Inspect func

ProposeText

func(title string, description string) int64

ProposeText creates a new text proposal for general governance decisions. Parameters: - title: proposal title - description: detailed proposal description Returns: - int64: ID of the created proposal

Open
OID
05efe5…55e4:70
ProposeText details

Inspect func

ProposeCommunityPoolSpend

func(title string, description string, to .uverse.address, tokenPath string, amount int64) int64

ProposeCommunityPoolSpend creates a new community pool spending proposal. Parameters: - title: proposal title - description: detailed proposal description - to: recipient address - tokenPath: token path to transfer - amount: amount to transfer Returns: - int64: ID of the created proposal

Open
OID
05efe5…55e4:72
ProposeCommunityPoolSpend details

Inspect func

ProposeParameterChange

func(title string, description string, numToExecute int64, executions string) int64

ProposeParameterChange creates a new parameter change proposal. Parameters: - title: proposal title - description: detailed proposal description - numToExecute: number of executions to perform - executions: encoded execution messages Returns: - int64: ID of the created proposal

Open
OID
05efe5…55e4:73
ProposeParameterChange details

Inspect func

Vote

func(proposalId int64, yes bool) string

Vote casts a vote on a proposal. Parameters: - proposalId: ID of the proposal to vote on - yes: true for yes vote, false for no vote Returns: - string: voting result information

Open
OID
05efe5…55e4:74
Vote details

Inspect func

Execute

func(proposalId int64) int64

Execute executes a passed proposal that is in the execution window. Parameters: - proposalId: ID of the proposal to execute Returns: - int64: execution result code

Open
OID
05efe5…55e4:75
Execute details

Inspect func

Cancel

func(proposalId int64) int64

Cancel cancels a proposal before voting begins. Only callable by the proposer. Parameters: - proposalId: ID of the proposal to cancel Returns: - int64: cancellation result code

Open
OID
05efe5…55e4:76
Cancel details

Inspect func

Reconfigure

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

Reconfigure updates the governance configuration parameters. Only callable by admin or governance. Parameters: - votingStartDelay: delay before voting starts (seconds) - votingPeriod: voting duration (seconds) - votingWeightSmoothingDuration: weight smoothing duration (seconds) - quorum: minimum voting weight required (percentage) - proposalCreationThreshold: minimum weight to create proposal - executionDelay: delay before execution (seconds) - executionWindow: execution time window (seconds) Returns: - int64: new configuration version

Open
OID
05efe5…55e4:77
Reconfigure details

Inspect func

ErrSpoofedRealm

untyped string

Value

"rlm does not match the current crossing frame"

currentAddress

.uverse.address

Value

<gnolang.StringValue>

domainPath

string

Value

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

versionManager

*version_manager.versionManager
Open
OID
05efe5…55e4:104
versionManager details

Inspect pointer

initializeDomainStore

func(int, rlm .uverse.realm, kvStore store.KVStore) interface{...}
Open
OID
05efe5…55e4:85
initializeDomainStore details

Inspect func

getImplementation

func() governance.IGovernance
Open
OID
05efe5…55e4:86
getImplementation details

Inspect func

updateImplementation

func() .uverse.error
Open
OID
05efe5…55e4:87
updateImplementation details

Inspect func

StoreKey

type

Value

governance.StoreKey

StoreKeyConfigCounter

governance.StoreKey

// Config version counter

Value

<gnolang.StringValue>

StoreKeyProposalCounter

governance.StoreKey

// Proposal ID counter

Value

<gnolang.StringValue>

StoreKeyConfigs

governance.StoreKey

// Configurations BPTree

Value

<gnolang.StringValue>

StoreKeyProposals

governance.StoreKey

// Proposals BPTree

Value

<gnolang.StringValue>

StoreKeyProposalUserVotingInfos

governance.StoreKey

// Proposal voting infos BPTree

Value

<gnolang.StringValue>

StoreKeyUserProposals

governance.StoreKey

// User proposals mapping BPTree

Value

<gnolang.StringValue>

governanceStore

type

Value

governance.governanceStore

NewGovernanceStore

func(kvStore store.KVStore) governance.IGovernanceStore

NewGovernanceStore creates a new governance store instance with the provided KV store. This function is used by the upgrade system to create storage instances for each implementation.

Open
OID
05efe5…55e4:88
NewGovernanceStore details

Inspect func

formatInt64Key

func(id int64) string

formatInt64Key formats int64 identifiers for storage keys.

Open
OID
05efe5…55e4:90
formatInt64Key details

Inspect func

IGovernance

type

Value

governance.IGovernance

IGovernanceManager

type

Value

governance.IGovernanceManager

IGovernanceGetter

type

IGovernanceGetter provides read-only access to governance data.

Value

governance.IGovernanceGetter

IGovernanceStore

type

Value

governance.IGovernanceStore

GovStakerAccessor

type

GovStakerAccessor provides an interface for accessing gov staker functionality. This abstraction allows for easier testing by enabling mock implementations.

Value

governance.GovStakerAccessor

RegisterInitializer

func(initializer func(...))

RegisterInitializer registers a version-specific initializer. Each version (e.g. v1, v2) calls this function from its init body to plug itself into the proxy. The initializer constructs the version's IGovernance from the supplied IGovernanceStore and GovStakerAccessor. It receives a realm value that resolves to the governance proxy realm — the only address with write permission on the shared KV store — so any per-version store bootstrap performed inside the initializer passes the proxy's authorization check. Security: Only contracts within the domain path can register initializers. Each package path can only register once to prevent duplicate registrations.

Open
OID
05efe5…55e4:91
RegisterInitializer details

Inspect func

UpgradeImpl

func(targetPackagePath string)

UpgradeImpl switches the active governance implementation to a different version. This function allows seamless upgrades from one version to another without data migration or downtime. Security: Only admin or governance can perform upgrades. The new implementation must have been previously registered via RegisterInitializer.

Open
OID
05efe5…55e4:93
UpgradeImpl details

Inspect func

GetImplementationPackagePath

func() string

GetImplementationPackagePath returns the package path of the currently active implementation.

Open
OID
05efe5…55e4:94
GetImplementationPackagePath details

Inspect func

VotingInfo

type

VotingInfo tracks voting-related information for a specific user on a specific proposal. This structure maintains the user's voting eligibility, voting history, and voting power.

Value

governance.VotingInfo

NewVotingInfo

func(availableVoteWeight int64) *governance.VotingInfo

NewVotingInfo creates a new voting information structure for a user. This constructor initializes the voting eligibility based on delegation snapshots. Parameters: - availableVoteWeight: total voting weight available to this user Returns: - \*VotingInfo: newly created voting information structure

Open
OID
05efe5…55e4:95
NewVotingInfo details

Inspect func
govStakerAccessor : type =governance.govStakerAccessor
newGovStakerAccessor : func() governance.GovStakerAccessor Inspect
Config : type =governance.Config
NewConfig : func(votingStartDelay int64, votingPeriod int64, votingWeightSmoothingDuration int64, quorum int64, proposalCreationThreshold int64, executionDelay int64, executionWindow int64) governance.Config Inspect
NewConfigPtr : func(votingStartDelay int64, votingPeriod int64, votingWeightSmoothingDuration int64, quorum int64, proposalCreationThreshold int64, executionDelay int64, executionWindow int64) *governance.Config Inspect
NewDefaultConfig : func() governance.Config Inspect
NewConfigTree : func() *v0.BPTree Inspect
Counter : type =governance.Counter
NewCounter : func() *governance.Counter Inspect
cloneInt64Slice : func(src []int64) []int64 Inspect
cloneAddressSlice : func(src [].uverse.address) [].uverse.address Inspect
GetLatestConfigVersion : func() int64 Inspect
GetCurrentProposalID : func() int64 Inspect
GetMaxSmoothingPeriod : func() int64 Inspect
GetLatestConfig : func() governance.Config Inspect
GetConfig : func(configVersion int64) (governance.Config, .uverse.error) Inspect
GetProposalCount : func() int Inspect
GetProposalIDs : func(offset int, count int) []int64 Inspect
ExistsProposal : func(proposalID int64) bool Inspect
GetProposal : func(proposalID int64) (*governance.Proposal, .uverse.error) Inspect
GetProposerByProposalId : func(proposalId int64) (.uverse.address, .uverse.error) Inspect
GetProposalTypeByProposalId : func(proposalId int64) (governance.ProposalType, .uverse.error) Inspect
GetYeaByProposalId : func(proposalId int64) (int64, .uverse.error) Inspect
GetNayByProposalId : func(proposalId int64) (int64, .uverse.error) Inspect
GetConfigVersionByProposalId : func(proposalId int64) (int64, .uverse.error) Inspect
GetQuorumAmountByProposalId : func(proposalId int64) (int64, .uverse.error) Inspect
GetTitleByProposalId : func(proposalId int64) (string, .uverse.error) Inspect
GetDescriptionByProposalId : func(proposalId int64) (string, .uverse.error) Inspect
GetProposalStatusByProposalId : func(proposalId int64) (string, .uverse.error) Inspect
GetProposalCreatedAt : func(proposalId int64) (int64, .uverse.error) Inspect
GetProposalCreatedHeight : func(proposalId int64) (int64, .uverse.error) Inspect
GetVoteStatus : func(proposalId int64) (quorum int64, maxVotingWeight int64, yesWeight int64, noWeight int64, err .uverse.error) Inspect
GetVotingInfoCount : func(proposalID int64) int Inspect
GetVotingInfoAddresses : func(proposalID int64, offset int, count int) [].uverse.address Inspect
ExistsVotingInfo : func(proposalID int64, addr .uverse.address) bool Inspect
GetVotingInfo : func(proposalID int64, addr .uverse.address) (*governance.VotingInfo, .uverse.error) Inspect
GetVoteWeight : func(proposalID int64, addr .uverse.address) (int64, .uverse.error) Inspect
GetVotedHeight : func(proposalID int64, addr .uverse.address) (int64, .uverse.error) Inspect
GetVotedAt : func(proposalID int64, addr .uverse.address) (int64, .uverse.error) Inspect
GetProposalCommunityPoolSpendInfo : func(proposalID int64) (*governance.CommunityPoolSpendInfo, .uverse.error) Inspect
GetProposalExecutionInfo : func(proposalID int64) (*governance.ExecutionInfo, .uverse.error) Inspect
GetUserProposalCount : func(user .uverse.address) int Inspect
GetUserProposalIDs : func(user .uverse.address, offset int, count int) []int64 Inspect
GetOldestActiveProposalSnapshotTime : func() (int64, bool) Inspect
GetCurrentVotingWeightSnapshot : func() (int64, int64, .uverse.error) Inspect
Proposal : type =governance.Proposal
NewProposal : func(proposalID int64, status *governance.ProposalStatus, metadata *governance.ProposalMetadata, data *governance.ProposalData, proposerAddress .uverse.address, configVersion int64, snapshotTime int64, createdHeight int64) *governance.Proposal Inspect
NewProposalTree : func() *v0.BPTree Inspect
NewUserProposalTree : func() *v0.BPTree Inspect
NewVotingInfoTree : func() *v0.BPTree Inspect
NewProposalUserVotingInfoTree : func() *v0.BPTree Inspect
ProposalActionStatus : type =governance.ProposalActionStatus
NewProposalActionStatus : func(executable bool) *governance.ProposalActionStatus Inspect
ProposalMetadata : type =governance.ProposalMetadata
NewProposalMetadata : func(title string, description string) *governance.ProposalMetadata Inspect
ProposalData : type =governance.ProposalData
NewProposalData : func(proposalType governance.ProposalType, communityPoolSpend *governance.CommunityPoolSpendInfo, execution *governance.ExecutionInfo) *governance.ProposalData Inspect
CommunityPoolSpendInfo : type =governance.CommunityPoolSpendInfo
NewCommunityPoolSpendInfo : func(to .uverse.address, tokenPath string, amount int64) *governance.CommunityPoolSpendInfo Inspect
ExecutionInfo : type =governance.ExecutionInfo
NewExecutionInfo : func(num int64, msgs []string) *governance.ExecutionInfo Inspect
ParameterChangeInfo : type =governance.ParameterChangeInfo
NewParameterChangeInfo : func(pkgPath string, function string, params []string) governance.ParameterChangeInfo Inspect
ProposalScheduleStatus : type =governance.ProposalScheduleStatus
NewProposalScheduleStatus : func(createTime int64, activeTime int64, votingEndTime int64, executableTime int64, expiredTime int64) *governance.ProposalScheduleStatus Inspect
ProposalStatusType : type =governance.ProposalStatusType
StatusUpcoming : governance.ProposalStatusType =<zero>
StatusActive : governance.ProposalStatusType =<zero>
StatusPassed : governance.ProposalStatusType =<zero>
StatusRejected : governance.ProposalStatusType =<zero>
StatusExecutable : governance.ProposalStatusType =<zero>
StatusExecuted : governance.ProposalStatusType =<zero>
StatusExpired : governance.ProposalStatusType =<zero>
StatusCanceled : governance.ProposalStatusType =<zero>
ProposalStatus : type =governance.ProposalStatus
NewProposalStatusBy : func(schedule *governance.ProposalScheduleStatus, actionStatus *governance.ProposalActionStatus, voteStatus *governance.ProposalVoteStatus) *governance.ProposalStatus Inspect
ProposalType : type =governance.ProposalType
Text : governance.ProposalType =<gnolang.StringValue>
CommunityPoolSpend : governance.ProposalType =<gnolang.StringValue>
ParameterChange : governance.ProposalType =<gnolang.StringValue>
ProposalVoteStatus : type =governance.ProposalVoteStatus
NewProposalVoteStatus : func(maxVotingWeight int64, quorumAmount int64) *governance.ProposalVoteStatus Inspect
ProposeText : func(title string, description string) int64 Inspect
ProposeCommunityPoolSpend : func(title string, description string, to .uverse.address, tokenPath string, amount int64) int64 Inspect
ProposeParameterChange : func(title string, description string, numToExecute int64, executions string) int64 Inspect
Vote : func(proposalId int64, yes bool) string Inspect
Execute : func(proposalId int64) int64 Inspect
Cancel : func(proposalId int64) int64 Inspect
Reconfigure : func(votingStartDelay int64, votingPeriod int64, votingWeightSmoothingDuration int64, quorum int64, proposalCreationThreshold int64, executionDelay int64, executionWindow int64) int64 Inspect
ErrSpoofedRealm : untyped string ="rlm does not match the current crossing frame"
currentAddress : .uverse.address =<gnolang.StringValue>
domainPath : string ="gno.land/r/gnoswap/gov/governance"
kvStore : *store.kvStore Inspect
versionManager : *version_manager.versionManager Inspect
implementation : *v1.governanceV1 Inspect
init.95 : func() Inspect
initializeDomainStore : func(int, rlm .uverse.realm, kvStore store.KVStore) interface{...} Inspect
getImplementation : func() governance.IGovernance Inspect
updateImplementation : func() .uverse.error Inspect
StoreKey : type =governance.StoreKey
StoreKeyConfigCounter : governance.StoreKey =<gnolang.StringValue>
StoreKeyProposalCounter : governance.StoreKey =<gnolang.StringValue>
StoreKeyConfigs : governance.StoreKey =<gnolang.StringValue>
StoreKeyProposals : governance.StoreKey =<gnolang.StringValue>
StoreKeyProposalUserVotingInfos : governance.StoreKey =<gnolang.StringValue>
StoreKeyUserProposals : governance.StoreKey =<gnolang.StringValue>
governanceStore : type =governance.governanceStore
NewGovernanceStore : func(kvStore store.KVStore) governance.IGovernanceStore Inspect
formatInt64Key : func(id int64) string Inspect
IGovernance : type =governance.IGovernance
IGovernanceManager : type =governance.IGovernanceManager
IGovernanceGetter : type =governance.IGovernanceGetter
IGovernanceStore : type =governance.IGovernanceStore
GovStakerAccessor : type =governance.GovStakerAccessor
RegisterInitializer : func(initializer func(...)) Inspect
UpgradeImpl : func(targetPackagePath string) Inspect
GetImplementationPackagePath : func() string Inspect
VotingInfo : type =governance.VotingInfo
NewVotingInfo : func(availableVoteWeight int64) *governance.VotingInfo Inspect