Documentation ¶
Index ¶
- Variables
- type GetProposalByIdArguments
- func (*GetProposalByIdArguments) Descriptor() ([]byte, []int)deprecated
- func (x *GetProposalByIdArguments) GetProposalId() []byte
- func (*GetProposalByIdArguments) ProtoMessage()
- func (x *GetProposalByIdArguments) ProtoReflect() protoreflect.Message
- func (x *GetProposalByIdArguments) Reset()
- func (x *GetProposalByIdArguments) String() string
- type GetProposalByIdResult
- func (*GetProposalByIdResult) Descriptor() ([]byte, []int)deprecated
- func (x *GetProposalByIdResult) GetValue() *ProposalRecord
- func (*GetProposalByIdResult) ProtoMessage()
- func (x *GetProposalByIdResult) ProtoReflect() protoreflect.Message
- func (x *GetProposalByIdResult) Reset()
- func (x *GetProposalByIdResult) String() string
- type GetProposalsArguments
- func (*GetProposalsArguments) Descriptor() ([]byte, []int)deprecated
- func (x *GetProposalsArguments) GetLimit() uint64
- func (x *GetProposalsArguments) GetStartProposal() []byte
- func (*GetProposalsArguments) ProtoMessage()
- func (x *GetProposalsArguments) ProtoReflect() protoreflect.Message
- func (x *GetProposalsArguments) Reset()
- func (x *GetProposalsArguments) String() string
- type GetProposalsByStatusArguments
- func (*GetProposalsByStatusArguments) Descriptor() ([]byte, []int)deprecated
- func (x *GetProposalsByStatusArguments) GetLimit() uint64
- func (x *GetProposalsByStatusArguments) GetStartProposal() []byte
- func (x *GetProposalsByStatusArguments) GetStatus() ProposalStatus
- func (*GetProposalsByStatusArguments) ProtoMessage()
- func (x *GetProposalsByStatusArguments) ProtoReflect() protoreflect.Message
- func (x *GetProposalsByStatusArguments) Reset()
- func (x *GetProposalsByStatusArguments) String() string
- type GetProposalsByStatusResult
- func (*GetProposalsByStatusResult) Descriptor() ([]byte, []int)deprecated
- func (x *GetProposalsByStatusResult) GetValue() []*ProposalRecord
- func (*GetProposalsByStatusResult) ProtoMessage()
- func (x *GetProposalsByStatusResult) ProtoReflect() protoreflect.Message
- func (x *GetProposalsByStatusResult) Reset()
- func (x *GetProposalsByStatusResult) String() string
- type GetProposalsResult
- func (*GetProposalsResult) Descriptor() ([]byte, []int)deprecated
- func (x *GetProposalsResult) GetValue() []*ProposalRecord
- func (*GetProposalsResult) ProtoMessage()
- func (x *GetProposalsResult) ProtoReflect() protoreflect.Message
- func (x *GetProposalsResult) Reset()
- func (x *GetProposalsResult) String() string
- type ProposalRecord
- func (*ProposalRecord) Descriptor() ([]byte, []int)deprecated
- func (x *ProposalRecord) GetFee() uint64
- func (x *ProposalRecord) GetOperationMerkleRoot() []byte
- func (x *ProposalRecord) GetOperations() []*protocol.Operation
- func (x *ProposalRecord) GetShallAuthorize() bool
- func (x *ProposalRecord) GetStatus() ProposalStatus
- func (x *ProposalRecord) GetUpdatesGovernance() bool
- func (x *ProposalRecord) GetVoteStartHeight() uint64
- func (x *ProposalRecord) GetVoteTally() uint64
- func (x *ProposalRecord) GetVoteThreshold() uint64
- func (*ProposalRecord) ProtoMessage()
- func (x *ProposalRecord) ProtoReflect() protoreflect.Message
- func (x *ProposalRecord) Reset()
- func (x *ProposalRecord) String() string
- type ProposalStatus
- func (ProposalStatus) Descriptor() protoreflect.EnumDescriptor
- func (x ProposalStatus) Enum() *ProposalStatus
- func (ProposalStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x ProposalStatus) Number() protoreflect.EnumNumber
- func (x ProposalStatus) String() string
- func (ProposalStatus) Type() protoreflect.EnumType
- type ProposalStatusEvent
- func (*ProposalStatusEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProposalStatusEvent) GetId() []byte
- func (x *ProposalStatusEvent) GetStatus() ProposalStatus
- func (*ProposalStatusEvent) ProtoMessage()
- func (x *ProposalStatusEvent) ProtoReflect() protoreflect.Message
- func (x *ProposalStatusEvent) Reset()
- func (x *ProposalStatusEvent) String() string
- type ProposalSubmissionEvent
- func (*ProposalSubmissionEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProposalSubmissionEvent) GetProposal() *ProposalRecord
- func (*ProposalSubmissionEvent) ProtoMessage()
- func (x *ProposalSubmissionEvent) ProtoReflect() protoreflect.Message
- func (x *ProposalSubmissionEvent) Reset()
- func (x *ProposalSubmissionEvent) String() string
- type ProposalVoteEvent
- func (*ProposalVoteEvent) Descriptor() ([]byte, []int)deprecated
- func (x *ProposalVoteEvent) GetId() []byte
- func (x *ProposalVoteEvent) GetVoteTally() uint64
- func (x *ProposalVoteEvent) GetVoteThreshold() uint64
- func (*ProposalVoteEvent) ProtoMessage()
- func (x *ProposalVoteEvent) ProtoReflect() protoreflect.Message
- func (x *ProposalVoteEvent) Reset()
- func (x *ProposalVoteEvent) String() string
- type SubmitProposalArguments
- func (*SubmitProposalArguments) Descriptor() ([]byte, []int)deprecated
- func (x *SubmitProposalArguments) GetFee() uint64
- func (x *SubmitProposalArguments) GetOperationMerkleRoot() []byte
- func (x *SubmitProposalArguments) GetOperations() []*protocol.Operation
- func (*SubmitProposalArguments) ProtoMessage()
- func (x *SubmitProposalArguments) ProtoReflect() protoreflect.Message
- func (x *SubmitProposalArguments) Reset()
- func (x *SubmitProposalArguments) String() string
- type SubmitProposalResult
Constants ¶
This section is empty.
Variables ¶
var ( ProposalStatus_name = map[int32]string{ 0: "pending", 1: "active", 2: "approved", 3: "expired", 4: "applied", 5: "failed", 6: "reverted", } ProposalStatus_value = map[string]int32{ "pending": 0, "active": 1, "approved": 2, "expired": 3, "applied": 4, "failed": 5, "reverted": 6, } )
Enum value maps for ProposalStatus.
var File_koinos_contracts_governance_governance_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type GetProposalByIdArguments ¶
type GetProposalByIdArguments struct { ProposalId []byte `protobuf:"bytes,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"` // contains filtered or unexported fields }
func (*GetProposalByIdArguments) Descriptor
deprecated
func (*GetProposalByIdArguments) Descriptor() ([]byte, []int)
Deprecated: Use GetProposalByIdArguments.ProtoReflect.Descriptor instead.
func (*GetProposalByIdArguments) GetProposalId ¶
func (x *GetProposalByIdArguments) GetProposalId() []byte
func (*GetProposalByIdArguments) ProtoMessage ¶
func (*GetProposalByIdArguments) ProtoMessage()
func (*GetProposalByIdArguments) ProtoReflect ¶
func (x *GetProposalByIdArguments) ProtoReflect() protoreflect.Message
func (*GetProposalByIdArguments) Reset ¶
func (x *GetProposalByIdArguments) Reset()
func (*GetProposalByIdArguments) String ¶
func (x *GetProposalByIdArguments) String() string
type GetProposalByIdResult ¶
type GetProposalByIdResult struct { Value *ProposalRecord `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GetProposalByIdResult) Descriptor
deprecated
func (*GetProposalByIdResult) Descriptor() ([]byte, []int)
Deprecated: Use GetProposalByIdResult.ProtoReflect.Descriptor instead.
func (*GetProposalByIdResult) GetValue ¶
func (x *GetProposalByIdResult) GetValue() *ProposalRecord
func (*GetProposalByIdResult) ProtoMessage ¶
func (*GetProposalByIdResult) ProtoMessage()
func (*GetProposalByIdResult) ProtoReflect ¶
func (x *GetProposalByIdResult) ProtoReflect() protoreflect.Message
func (*GetProposalByIdResult) Reset ¶
func (x *GetProposalByIdResult) Reset()
func (*GetProposalByIdResult) String ¶
func (x *GetProposalByIdResult) String() string
type GetProposalsArguments ¶
type GetProposalsArguments struct { StartProposal []byte `protobuf:"bytes,1,opt,name=start_proposal,json=startProposal,proto3" json:"start_proposal,omitempty"` Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*GetProposalsArguments) Descriptor
deprecated
func (*GetProposalsArguments) Descriptor() ([]byte, []int)
Deprecated: Use GetProposalsArguments.ProtoReflect.Descriptor instead.
func (*GetProposalsArguments) GetLimit ¶
func (x *GetProposalsArguments) GetLimit() uint64
func (*GetProposalsArguments) GetStartProposal ¶
func (x *GetProposalsArguments) GetStartProposal() []byte
func (*GetProposalsArguments) ProtoMessage ¶
func (*GetProposalsArguments) ProtoMessage()
func (*GetProposalsArguments) ProtoReflect ¶
func (x *GetProposalsArguments) ProtoReflect() protoreflect.Message
func (*GetProposalsArguments) Reset ¶
func (x *GetProposalsArguments) Reset()
func (*GetProposalsArguments) String ¶
func (x *GetProposalsArguments) String() string
type GetProposalsByStatusArguments ¶
type GetProposalsByStatusArguments struct { StartProposal []byte `protobuf:"bytes,1,opt,name=start_proposal,json=startProposal,proto3" json:"start_proposal,omitempty"` Limit uint64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Status ProposalStatus `protobuf:"varint,3,opt,name=status,proto3,enum=koinos.contracts.governance.ProposalStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetProposalsByStatusArguments) Descriptor
deprecated
func (*GetProposalsByStatusArguments) Descriptor() ([]byte, []int)
Deprecated: Use GetProposalsByStatusArguments.ProtoReflect.Descriptor instead.
func (*GetProposalsByStatusArguments) GetLimit ¶
func (x *GetProposalsByStatusArguments) GetLimit() uint64
func (*GetProposalsByStatusArguments) GetStartProposal ¶
func (x *GetProposalsByStatusArguments) GetStartProposal() []byte
func (*GetProposalsByStatusArguments) GetStatus ¶
func (x *GetProposalsByStatusArguments) GetStatus() ProposalStatus
func (*GetProposalsByStatusArguments) ProtoMessage ¶
func (*GetProposalsByStatusArguments) ProtoMessage()
func (*GetProposalsByStatusArguments) ProtoReflect ¶
func (x *GetProposalsByStatusArguments) ProtoReflect() protoreflect.Message
func (*GetProposalsByStatusArguments) Reset ¶
func (x *GetProposalsByStatusArguments) Reset()
func (*GetProposalsByStatusArguments) String ¶
func (x *GetProposalsByStatusArguments) String() string
type GetProposalsByStatusResult ¶
type GetProposalsByStatusResult struct { Value []*ProposalRecord `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GetProposalsByStatusResult) Descriptor
deprecated
func (*GetProposalsByStatusResult) Descriptor() ([]byte, []int)
Deprecated: Use GetProposalsByStatusResult.ProtoReflect.Descriptor instead.
func (*GetProposalsByStatusResult) GetValue ¶
func (x *GetProposalsByStatusResult) GetValue() []*ProposalRecord
func (*GetProposalsByStatusResult) ProtoMessage ¶
func (*GetProposalsByStatusResult) ProtoMessage()
func (*GetProposalsByStatusResult) ProtoReflect ¶
func (x *GetProposalsByStatusResult) ProtoReflect() protoreflect.Message
func (*GetProposalsByStatusResult) Reset ¶
func (x *GetProposalsByStatusResult) Reset()
func (*GetProposalsByStatusResult) String ¶
func (x *GetProposalsByStatusResult) String() string
type GetProposalsResult ¶
type GetProposalsResult struct { Value []*ProposalRecord `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*GetProposalsResult) Descriptor
deprecated
func (*GetProposalsResult) Descriptor() ([]byte, []int)
Deprecated: Use GetProposalsResult.ProtoReflect.Descriptor instead.
func (*GetProposalsResult) GetValue ¶
func (x *GetProposalsResult) GetValue() []*ProposalRecord
func (*GetProposalsResult) ProtoMessage ¶
func (*GetProposalsResult) ProtoMessage()
func (*GetProposalsResult) ProtoReflect ¶
func (x *GetProposalsResult) ProtoReflect() protoreflect.Message
func (*GetProposalsResult) Reset ¶
func (x *GetProposalsResult) Reset()
func (*GetProposalsResult) String ¶
func (x *GetProposalsResult) String() string
type ProposalRecord ¶
type ProposalRecord struct { Operations []*protocol.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` OperationMerkleRoot []byte `protobuf:"bytes,2,opt,name=operation_merkle_root,json=operationMerkleRoot,proto3" json:"operation_merkle_root,omitempty"` VoteStartHeight uint64 `protobuf:"varint,3,opt,name=vote_start_height,json=voteStartHeight,proto3" json:"vote_start_height,omitempty"` VoteTally uint64 `protobuf:"varint,4,opt,name=vote_tally,json=voteTally,proto3" json:"vote_tally,omitempty"` VoteThreshold uint64 `protobuf:"varint,5,opt,name=vote_threshold,json=voteThreshold,proto3" json:"vote_threshold,omitempty"` ShallAuthorize bool `protobuf:"varint,6,opt,name=shall_authorize,json=shallAuthorize,proto3" json:"shall_authorize,omitempty"` UpdatesGovernance bool `protobuf:"varint,7,opt,name=updates_governance,json=updatesGovernance,proto3" json:"updates_governance,omitempty"` Status ProposalStatus `protobuf:"varint,8,opt,name=status,proto3,enum=koinos.contracts.governance.ProposalStatus" json:"status,omitempty"` Fee uint64 `protobuf:"varint,9,opt,name=fee,proto3" json:"fee,omitempty"` // contains filtered or unexported fields }
func (*ProposalRecord) Descriptor
deprecated
func (*ProposalRecord) Descriptor() ([]byte, []int)
Deprecated: Use ProposalRecord.ProtoReflect.Descriptor instead.
func (*ProposalRecord) GetFee ¶
func (x *ProposalRecord) GetFee() uint64
func (*ProposalRecord) GetOperationMerkleRoot ¶
func (x *ProposalRecord) GetOperationMerkleRoot() []byte
func (*ProposalRecord) GetOperations ¶
func (x *ProposalRecord) GetOperations() []*protocol.Operation
func (*ProposalRecord) GetShallAuthorize ¶
func (x *ProposalRecord) GetShallAuthorize() bool
func (*ProposalRecord) GetStatus ¶
func (x *ProposalRecord) GetStatus() ProposalStatus
func (*ProposalRecord) GetUpdatesGovernance ¶
func (x *ProposalRecord) GetUpdatesGovernance() bool
func (*ProposalRecord) GetVoteStartHeight ¶
func (x *ProposalRecord) GetVoteStartHeight() uint64
func (*ProposalRecord) GetVoteTally ¶
func (x *ProposalRecord) GetVoteTally() uint64
func (*ProposalRecord) GetVoteThreshold ¶
func (x *ProposalRecord) GetVoteThreshold() uint64
func (*ProposalRecord) ProtoMessage ¶
func (*ProposalRecord) ProtoMessage()
func (*ProposalRecord) ProtoReflect ¶
func (x *ProposalRecord) ProtoReflect() protoreflect.Message
func (*ProposalRecord) Reset ¶
func (x *ProposalRecord) Reset()
func (*ProposalRecord) String ¶
func (x *ProposalRecord) String() string
type ProposalStatus ¶
type ProposalStatus int32
const ( ProposalStatus_pending ProposalStatus = 0 ProposalStatus_active ProposalStatus = 1 ProposalStatus_approved ProposalStatus = 2 ProposalStatus_expired ProposalStatus = 3 ProposalStatus_applied ProposalStatus = 4 ProposalStatus_failed ProposalStatus = 5 ProposalStatus_reverted ProposalStatus = 6 )
func (ProposalStatus) Descriptor ¶
func (ProposalStatus) Descriptor() protoreflect.EnumDescriptor
func (ProposalStatus) Enum ¶
func (x ProposalStatus) Enum() *ProposalStatus
func (ProposalStatus) EnumDescriptor
deprecated
func (ProposalStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use ProposalStatus.Descriptor instead.
func (ProposalStatus) Number ¶
func (x ProposalStatus) Number() protoreflect.EnumNumber
func (ProposalStatus) String ¶
func (x ProposalStatus) String() string
func (ProposalStatus) Type ¶
func (ProposalStatus) Type() protoreflect.EnumType
type ProposalStatusEvent ¶
type ProposalStatusEvent struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Status ProposalStatus `protobuf:"varint,2,opt,name=status,proto3,enum=koinos.contracts.governance.ProposalStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*ProposalStatusEvent) Descriptor
deprecated
func (*ProposalStatusEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProposalStatusEvent.ProtoReflect.Descriptor instead.
func (*ProposalStatusEvent) GetId ¶
func (x *ProposalStatusEvent) GetId() []byte
func (*ProposalStatusEvent) GetStatus ¶
func (x *ProposalStatusEvent) GetStatus() ProposalStatus
func (*ProposalStatusEvent) ProtoMessage ¶
func (*ProposalStatusEvent) ProtoMessage()
func (*ProposalStatusEvent) ProtoReflect ¶
func (x *ProposalStatusEvent) ProtoReflect() protoreflect.Message
func (*ProposalStatusEvent) Reset ¶
func (x *ProposalStatusEvent) Reset()
func (*ProposalStatusEvent) String ¶
func (x *ProposalStatusEvent) String() string
type ProposalSubmissionEvent ¶
type ProposalSubmissionEvent struct { Proposal *ProposalRecord `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"` // contains filtered or unexported fields }
func (*ProposalSubmissionEvent) Descriptor
deprecated
func (*ProposalSubmissionEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProposalSubmissionEvent.ProtoReflect.Descriptor instead.
func (*ProposalSubmissionEvent) GetProposal ¶
func (x *ProposalSubmissionEvent) GetProposal() *ProposalRecord
func (*ProposalSubmissionEvent) ProtoMessage ¶
func (*ProposalSubmissionEvent) ProtoMessage()
func (*ProposalSubmissionEvent) ProtoReflect ¶
func (x *ProposalSubmissionEvent) ProtoReflect() protoreflect.Message
func (*ProposalSubmissionEvent) Reset ¶
func (x *ProposalSubmissionEvent) Reset()
func (*ProposalSubmissionEvent) String ¶
func (x *ProposalSubmissionEvent) String() string
type ProposalVoteEvent ¶
type ProposalVoteEvent struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` VoteTally uint64 `protobuf:"varint,2,opt,name=vote_tally,json=voteTally,proto3" json:"vote_tally,omitempty"` VoteThreshold uint64 `protobuf:"varint,3,opt,name=vote_threshold,json=voteThreshold,proto3" json:"vote_threshold,omitempty"` // contains filtered or unexported fields }
func (*ProposalVoteEvent) Descriptor
deprecated
func (*ProposalVoteEvent) Descriptor() ([]byte, []int)
Deprecated: Use ProposalVoteEvent.ProtoReflect.Descriptor instead.
func (*ProposalVoteEvent) GetId ¶
func (x *ProposalVoteEvent) GetId() []byte
func (*ProposalVoteEvent) GetVoteTally ¶
func (x *ProposalVoteEvent) GetVoteTally() uint64
func (*ProposalVoteEvent) GetVoteThreshold ¶
func (x *ProposalVoteEvent) GetVoteThreshold() uint64
func (*ProposalVoteEvent) ProtoMessage ¶
func (*ProposalVoteEvent) ProtoMessage()
func (*ProposalVoteEvent) ProtoReflect ¶
func (x *ProposalVoteEvent) ProtoReflect() protoreflect.Message
func (*ProposalVoteEvent) Reset ¶
func (x *ProposalVoteEvent) Reset()
func (*ProposalVoteEvent) String ¶
func (x *ProposalVoteEvent) String() string
type SubmitProposalArguments ¶
type SubmitProposalArguments struct { Operations []*protocol.Operation `protobuf:"bytes,1,rep,name=operations,proto3" json:"operations,omitempty"` OperationMerkleRoot []byte `protobuf:"bytes,2,opt,name=operation_merkle_root,json=operationMerkleRoot,proto3" json:"operation_merkle_root,omitempty"` Fee uint64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"` // contains filtered or unexported fields }
func (*SubmitProposalArguments) Descriptor
deprecated
func (*SubmitProposalArguments) Descriptor() ([]byte, []int)
Deprecated: Use SubmitProposalArguments.ProtoReflect.Descriptor instead.
func (*SubmitProposalArguments) GetFee ¶
func (x *SubmitProposalArguments) GetFee() uint64
func (*SubmitProposalArguments) GetOperationMerkleRoot ¶
func (x *SubmitProposalArguments) GetOperationMerkleRoot() []byte
func (*SubmitProposalArguments) GetOperations ¶
func (x *SubmitProposalArguments) GetOperations() []*protocol.Operation
func (*SubmitProposalArguments) ProtoMessage ¶
func (*SubmitProposalArguments) ProtoMessage()
func (*SubmitProposalArguments) ProtoReflect ¶
func (x *SubmitProposalArguments) ProtoReflect() protoreflect.Message
func (*SubmitProposalArguments) Reset ¶
func (x *SubmitProposalArguments) Reset()
func (*SubmitProposalArguments) String ¶
func (x *SubmitProposalArguments) String() string
type SubmitProposalResult ¶
type SubmitProposalResult struct {
// contains filtered or unexported fields
}
func (*SubmitProposalResult) Descriptor
deprecated
func (*SubmitProposalResult) Descriptor() ([]byte, []int)
Deprecated: Use SubmitProposalResult.ProtoReflect.Descriptor instead.
func (*SubmitProposalResult) ProtoMessage ¶
func (*SubmitProposalResult) ProtoMessage()
func (*SubmitProposalResult) ProtoReflect ¶
func (x *SubmitProposalResult) ProtoReflect() protoreflect.Message
func (*SubmitProposalResult) Reset ¶
func (x *SubmitProposalResult) Reset()
func (*SubmitProposalResult) String ¶
func (x *SubmitProposalResult) String() string