package
0.2501.0
Repository: https://github.com/oasisprotocol/oasis-core.git
Documentation: pkg.go.dev

# Functions

NewCastVoteTx creates a new cast vote transaction.
NewClient creates a new gRPC governance client.
NewSubmitProposalTx creates a new submit proposal transaction.
PendingUpgradesFromProposals computes pending upgrades proposals state.
RegisterService registers a new governance service with the given gRPC server.
SanityCheckPendingUpgrades sanity checks pending upgrades.
SanityCheckProposals sanity checks proposals.
SanityCheckVotes sanity checks votes for a proposal.

# Constants

GasOpCastVote is the gas operation identifier for casting vote.
GasOpSubmitProposal is the gas operation identifier for submitting proposal.
MaxProposalTitleLength is the maximum length of a proposal's title.
MinProposalTitleLength is the minimum length of a proposal's title.
ModuleName is a unique module name for the governance backend.
Proposal state kinds.
Proposal state kinds.
Proposal state kinds.
Proposal state kinds.
Proposal state kinds.
Proposal state kinds.
Proposal state kinds.
Proposal state kinds.
Vote kinds.
Vote kinds.
Vote kinds.
Vote kinds.
Vote kinds.
Vote kinds.

# Variables

DefaultGasCosts are the "default" gas costs for operations.
ErrInvalidArgument is the error returned on malformed argument(s).
ErrNoSuchProposal is the error retrued when a proposal does not exist.
ErrNoSuchUpgrade is the error returned when an upgrade does not exist.
ErrNotEligible is the error returned when a vote caster is not eligible for a vote.
ErrUpgradeAlreadyPending is the error returned when an upgrade is already pending.
ErrUpgradeTooSoon is the error returned when an upgrade is not enough in the future.
ErrVotingIsClosed is the error returned when a vote is cast for a non-active proposal.
MethodCastVote casts a vote for a consensus layer governance proposal.
Methods is the list of all methods supported by the governance backend.
MethodSubmitProposal submits a new consensus layer governance proposal.

# Structs

CancelUpgradeProposal is an upgrade cancellation proposal.
ChangeParametersProposal is a consensus change parameters proposal.
Client is a gRPC governance client.
ConsensusParameterChanges are allowed governance consensus parameter changes.
ConsensusParameters are the governance consensus parameters.
Event signifies a governance event, returned via GetEvents.
Genesis is the initial governance state for use in the genesis block.
Proposal is a consensus upgrade proposal.
ProposalContent is a consensus layer governance proposal content.
ProposalExecutedEvent is emitted when a proposal is executed.
ProposalFinalizedEvent is the event emitted when a proposal is finalized.
ProposalMetadata contains metadata about a proposal.
ProposalQuery is a proposal query.
ProposalSubmittedEvent is the event emitted when a new proposal is submitted.
ProposalVote is a vote for a proposal.
UpgradeProposal is an upgrade proposal.
VoteEntry contains data about a cast vote.
VoteEvent is the event emitted when a vote is cast.

# Interfaces

Backend is a governance implementation.

# Type aliases

ProposalState is the state of the proposal.
Vote is a governance vote.