foundationv1

package
v0.0.0-...-9db31c4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_Params_FullMethodName         = "/lbm.foundation.v1.Query/Params"
	Query_Treasury_FullMethodName       = "/lbm.foundation.v1.Query/Treasury"
	Query_FoundationInfo_FullMethodName = "/lbm.foundation.v1.Query/FoundationInfo"
	Query_Member_FullMethodName         = "/lbm.foundation.v1.Query/Member"
	Query_Members_FullMethodName        = "/lbm.foundation.v1.Query/Members"
	Query_Proposal_FullMethodName       = "/lbm.foundation.v1.Query/Proposal"
	Query_Proposals_FullMethodName      = "/lbm.foundation.v1.Query/Proposals"
	Query_Vote_FullMethodName           = "/lbm.foundation.v1.Query/Vote"
	Query_Votes_FullMethodName          = "/lbm.foundation.v1.Query/Votes"
	Query_TallyResult_FullMethodName    = "/lbm.foundation.v1.Query/TallyResult"
	Query_Censorships_FullMethodName    = "/lbm.foundation.v1.Query/Censorships"
	Query_Grants_FullMethodName         = "/lbm.foundation.v1.Query/Grants"
)
View Source
const (
	Msg_FundTreasury_FullMethodName         = "/lbm.foundation.v1.Msg/FundTreasury"
	Msg_WithdrawFromTreasury_FullMethodName = "/lbm.foundation.v1.Msg/WithdrawFromTreasury"
	Msg_UpdateMembers_FullMethodName        = "/lbm.foundation.v1.Msg/UpdateMembers"
	Msg_UpdateDecisionPolicy_FullMethodName = "/lbm.foundation.v1.Msg/UpdateDecisionPolicy"
	Msg_SubmitProposal_FullMethodName       = "/lbm.foundation.v1.Msg/SubmitProposal"
	Msg_WithdrawProposal_FullMethodName     = "/lbm.foundation.v1.Msg/WithdrawProposal"
	Msg_Vote_FullMethodName                 = "/lbm.foundation.v1.Msg/Vote"
	Msg_Exec_FullMethodName                 = "/lbm.foundation.v1.Msg/Exec"
	Msg_LeaveFoundation_FullMethodName      = "/lbm.foundation.v1.Msg/LeaveFoundation"
	Msg_UpdateCensorship_FullMethodName     = "/lbm.foundation.v1.Msg/UpdateCensorship"
	Msg_Grant_FullMethodName                = "/lbm.foundation.v1.Msg/Grant"
	Msg_Revoke_FullMethodName               = "/lbm.foundation.v1.Msg/Revoke"
)

Variables

View Source
var (
	CensorshipAuthority_name = map[int32]string{
		0: "CENSORSHIP_AUTHORITY_UNSPECIFIED",
		1: "CENSORSHIP_AUTHORITY_GOVERNANCE",
		2: "CENSORSHIP_AUTHORITY_FOUNDATION",
	}
	CensorshipAuthority_value = map[string]int32{
		"CENSORSHIP_AUTHORITY_UNSPECIFIED": 0,
		"CENSORSHIP_AUTHORITY_GOVERNANCE":  1,
		"CENSORSHIP_AUTHORITY_FOUNDATION":  2,
	}
)

Enum value maps for CensorshipAuthority.

View Source
var (
	VoteOption_name = map[int32]string{
		0: "VOTE_OPTION_UNSPECIFIED",
		1: "VOTE_OPTION_YES",
		2: "VOTE_OPTION_ABSTAIN",
		3: "VOTE_OPTION_NO",
		4: "VOTE_OPTION_NO_WITH_VETO",
	}
	VoteOption_value = map[string]int32{
		"VOTE_OPTION_UNSPECIFIED":  0,
		"VOTE_OPTION_YES":          1,
		"VOTE_OPTION_ABSTAIN":      2,
		"VOTE_OPTION_NO":           3,
		"VOTE_OPTION_NO_WITH_VETO": 4,
	}
)

Enum value maps for VoteOption.

View Source
var (
	ProposalStatus_name = map[int32]string{
		0: "PROPOSAL_STATUS_UNSPECIFIED",
		1: "PROPOSAL_STATUS_SUBMITTED",
		2: "PROPOSAL_STATUS_ACCEPTED",
		3: "PROPOSAL_STATUS_REJECTED",
		4: "PROPOSAL_STATUS_ABORTED",
		5: "PROPOSAL_STATUS_WITHDRAWN",
	}
	ProposalStatus_value = map[string]int32{
		"PROPOSAL_STATUS_UNSPECIFIED": 0,
		"PROPOSAL_STATUS_SUBMITTED":   1,
		"PROPOSAL_STATUS_ACCEPTED":    2,
		"PROPOSAL_STATUS_REJECTED":    3,
		"PROPOSAL_STATUS_ABORTED":     4,
		"PROPOSAL_STATUS_WITHDRAWN":   5,
	}
)

Enum value maps for ProposalStatus.

View Source
var (
	ProposalExecutorResult_name = map[int32]string{
		0: "PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED",
		1: "PROPOSAL_EXECUTOR_RESULT_NOT_RUN",
		2: "PROPOSAL_EXECUTOR_RESULT_SUCCESS",
		3: "PROPOSAL_EXECUTOR_RESULT_FAILURE",
	}
	ProposalExecutorResult_value = map[string]int32{
		"PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED": 0,
		"PROPOSAL_EXECUTOR_RESULT_NOT_RUN":     1,
		"PROPOSAL_EXECUTOR_RESULT_SUCCESS":     2,
		"PROPOSAL_EXECUTOR_RESULT_FAILURE":     3,
	}
)

Enum value maps for ProposalExecutorResult.

View Source
var (
	Exec_name = map[int32]string{
		0: "EXEC_UNSPECIFIED",
		1: "EXEC_TRY",
	}
	Exec_value = map[string]int32{
		"EXEC_UNSPECIFIED": 0,
		"EXEC_TRY":         1,
	}
)

Enum value maps for Exec.

View Source
var File_lbm_foundation_v1_authz_proto protoreflect.FileDescriptor
View Source
var File_lbm_foundation_v1_event_proto protoreflect.FileDescriptor
View Source
var File_lbm_foundation_v1_foundation_proto protoreflect.FileDescriptor
View Source
var File_lbm_foundation_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_lbm_foundation_v1_query_proto protoreflect.FileDescriptor
View Source
var File_lbm_foundation_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "lbm.foundation.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "FundTreasury",
			Handler:    _Msg_FundTreasury_Handler,
		},
		{
			MethodName: "WithdrawFromTreasury",
			Handler:    _Msg_WithdrawFromTreasury_Handler,
		},
		{
			MethodName: "UpdateMembers",
			Handler:    _Msg_UpdateMembers_Handler,
		},
		{
			MethodName: "UpdateDecisionPolicy",
			Handler:    _Msg_UpdateDecisionPolicy_Handler,
		},
		{
			MethodName: "SubmitProposal",
			Handler:    _Msg_SubmitProposal_Handler,
		},
		{
			MethodName: "WithdrawProposal",
			Handler:    _Msg_WithdrawProposal_Handler,
		},
		{
			MethodName: "Vote",
			Handler:    _Msg_Vote_Handler,
		},
		{
			MethodName: "Exec",
			Handler:    _Msg_Exec_Handler,
		},
		{
			MethodName: "LeaveFoundation",
			Handler:    _Msg_LeaveFoundation_Handler,
		},
		{
			MethodName: "UpdateCensorship",
			Handler:    _Msg_UpdateCensorship_Handler,
		},
		{
			MethodName: "Grant",
			Handler:    _Msg_Grant_Handler,
		},
		{
			MethodName: "Revoke",
			Handler:    _Msg_Revoke_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lbm/foundation/v1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "lbm.foundation.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Treasury",
			Handler:    _Query_Treasury_Handler,
		},
		{
			MethodName: "FoundationInfo",
			Handler:    _Query_FoundationInfo_Handler,
		},
		{
			MethodName: "Member",
			Handler:    _Query_Member_Handler,
		},
		{
			MethodName: "Members",
			Handler:    _Query_Members_Handler,
		},
		{
			MethodName: "Proposal",
			Handler:    _Query_Proposal_Handler,
		},
		{
			MethodName: "Proposals",
			Handler:    _Query_Proposals_Handler,
		},
		{
			MethodName: "Vote",
			Handler:    _Query_Vote_Handler,
		},
		{
			MethodName: "Votes",
			Handler:    _Query_Votes_Handler,
		},
		{
			MethodName: "TallyResult",
			Handler:    _Query_TallyResult_Handler,
		},
		{
			MethodName: "Censorships",
			Handler:    _Query_Censorships_Handler,
		},
		{
			MethodName: "Grants",
			Handler:    _Query_Grants_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "lbm/foundation/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Censorship

type Censorship struct {
	MsgTypeUrl string              `protobuf:"bytes,1,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
	Authority  CensorshipAuthority `protobuf:"varint,2,opt,name=authority,proto3,enum=lbm.foundation.v1.CensorshipAuthority" json:"authority,omitempty"`
	// contains filtered or unexported fields
}

Censorship states which message is being censored by a certain authority.

func (*Censorship) Descriptor deprecated

func (*Censorship) Descriptor() ([]byte, []int)

Deprecated: Use Censorship.ProtoReflect.Descriptor instead.

func (*Censorship) GetAuthority

func (x *Censorship) GetAuthority() CensorshipAuthority

func (*Censorship) GetMsgTypeUrl

func (x *Censorship) GetMsgTypeUrl() string

func (*Censorship) ProtoMessage

func (*Censorship) ProtoMessage()

func (*Censorship) ProtoReflect

func (x *Censorship) ProtoReflect() protoreflect.Message

func (*Censorship) Reset

func (x *Censorship) Reset()

func (*Censorship) String

func (x *Censorship) String() string

type CensorshipAuthority

type CensorshipAuthority int32

CensorshipAuthority defines the authorities which could be used in Censorship.

const (
	// CENSORSHIP_AUTHORITY_UNSPECIFIED defines an invalid authority.
	CensorshipAuthority_CENSORSHIP_AUTHORITY_UNSPECIFIED CensorshipAuthority = 0
	// CENSORSHIP_AUTHORITY_GOVERNANCE defines x/gov authority.
	CensorshipAuthority_CENSORSHIP_AUTHORITY_GOVERNANCE CensorshipAuthority = 1
	// CENSORSHIP_AUTHORITY_FOUNDATION defines x/foundation authority.
	CensorshipAuthority_CENSORSHIP_AUTHORITY_FOUNDATION CensorshipAuthority = 2
)

func (CensorshipAuthority) Descriptor

func (CensorshipAuthority) Enum

func (CensorshipAuthority) EnumDescriptor deprecated

func (CensorshipAuthority) EnumDescriptor() ([]byte, []int)

Deprecated: Use CensorshipAuthority.Descriptor instead.

func (CensorshipAuthority) Number

func (CensorshipAuthority) String

func (x CensorshipAuthority) String() string

func (CensorshipAuthority) Type

type DecisionPolicyWindows

type DecisionPolicyWindows struct {

	// voting_period is the duration from submission of a proposal to the end of voting period
	// Within this times votes can be submitted with MsgVote.
	VotingPeriod *durationpb.Duration `protobuf:"bytes,1,opt,name=voting_period,json=votingPeriod,proto3" json:"voting_period,omitempty"`
	// min_execution_period is the minimum duration after the proposal submission
	// where members can start sending MsgExec. This means that the window for
	// sending a MsgExec transaction is:
	// `[ submission + min_execution_period ; submission + voting_period + max_execution_period]`
	// where max_execution_period is a app-specific config, defined in the keeper.
	// If not set, min_execution_period will default to 0.
	//
	// Please make sure to set a `min_execution_period` that is smaller than
	// `voting_period + max_execution_period`, or else the above execution window
	// is empty, meaning that all proposals created with this decision policy
	// won't be able to be executed.
	MinExecutionPeriod *durationpb.Duration `protobuf:"bytes,2,opt,name=min_execution_period,json=minExecutionPeriod,proto3" json:"min_execution_period,omitempty"`
	// contains filtered or unexported fields
}

DecisionPolicyWindows defines the different windows for voting and execution.

func (*DecisionPolicyWindows) Descriptor deprecated

func (*DecisionPolicyWindows) Descriptor() ([]byte, []int)

Deprecated: Use DecisionPolicyWindows.ProtoReflect.Descriptor instead.

func (*DecisionPolicyWindows) GetMinExecutionPeriod

func (x *DecisionPolicyWindows) GetMinExecutionPeriod() *durationpb.Duration

func (*DecisionPolicyWindows) GetVotingPeriod

func (x *DecisionPolicyWindows) GetVotingPeriod() *durationpb.Duration

func (*DecisionPolicyWindows) ProtoMessage

func (*DecisionPolicyWindows) ProtoMessage()

func (*DecisionPolicyWindows) ProtoReflect

func (x *DecisionPolicyWindows) ProtoReflect() protoreflect.Message

func (*DecisionPolicyWindows) Reset

func (x *DecisionPolicyWindows) Reset()

func (*DecisionPolicyWindows) String

func (x *DecisionPolicyWindows) String() string

type EventExec

type EventExec struct {

	// proposal_id is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// result is the proposal execution result.
	Result ProposalExecutorResult `protobuf:"varint,2,opt,name=result,proto3,enum=lbm.foundation.v1.ProposalExecutorResult" json:"result,omitempty"`
	// logs contains error logs in case the execution result is FAILURE.
	Logs string `protobuf:"bytes,3,opt,name=logs,proto3" json:"logs,omitempty"`
	// contains filtered or unexported fields
}

EventExec is an event emitted when a proposal is executed.

func (*EventExec) Descriptor deprecated

func (*EventExec) Descriptor() ([]byte, []int)

Deprecated: Use EventExec.ProtoReflect.Descriptor instead.

func (*EventExec) GetLogs

func (x *EventExec) GetLogs() string

func (*EventExec) GetProposalId

func (x *EventExec) GetProposalId() uint64

func (*EventExec) GetResult

func (x *EventExec) GetResult() ProposalExecutorResult

func (*EventExec) ProtoMessage

func (*EventExec) ProtoMessage()

func (*EventExec) ProtoReflect

func (x *EventExec) ProtoReflect() protoreflect.Message

func (*EventExec) Reset

func (x *EventExec) Reset()

func (*EventExec) String

func (x *EventExec) String() string

type EventFundTreasury

type EventFundTreasury struct {
	From   string        `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Amount []*types.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

EventFundTreasury is an event emitted when one funds the treasury.

func (*EventFundTreasury) Descriptor deprecated

func (*EventFundTreasury) Descriptor() ([]byte, []int)

Deprecated: Use EventFundTreasury.ProtoReflect.Descriptor instead.

func (*EventFundTreasury) GetAmount

func (x *EventFundTreasury) GetAmount() []*types.Coin

func (*EventFundTreasury) GetFrom

func (x *EventFundTreasury) GetFrom() string

func (*EventFundTreasury) ProtoMessage

func (*EventFundTreasury) ProtoMessage()

func (*EventFundTreasury) ProtoReflect

func (x *EventFundTreasury) ProtoReflect() protoreflect.Message

func (*EventFundTreasury) Reset

func (x *EventFundTreasury) Reset()

func (*EventFundTreasury) String

func (x *EventFundTreasury) String() string

type EventGrant

type EventGrant struct {

	// the address of the grantee.
	Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// authorization granted.
	Authorization *anypb.Any `protobuf:"bytes,2,opt,name=authorization,proto3" json:"authorization,omitempty"`
	// contains filtered or unexported fields
}

EventGrant is emitted on Msg/Grant

func (*EventGrant) Descriptor deprecated

func (*EventGrant) Descriptor() ([]byte, []int)

Deprecated: Use EventGrant.ProtoReflect.Descriptor instead.

func (*EventGrant) GetAuthorization

func (x *EventGrant) GetAuthorization() *anypb.Any

func (*EventGrant) GetGrantee

func (x *EventGrant) GetGrantee() string

func (*EventGrant) ProtoMessage

func (*EventGrant) ProtoMessage()

func (*EventGrant) ProtoReflect

func (x *EventGrant) ProtoReflect() protoreflect.Message

func (*EventGrant) Reset

func (x *EventGrant) Reset()

func (*EventGrant) String

func (x *EventGrant) String() string

type EventLeaveFoundation

type EventLeaveFoundation struct {

	// address is the account address of the foundation member.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

EventLeaveFoundation is an event emitted when a foundation member leaves the foundation.

func (*EventLeaveFoundation) Descriptor deprecated

func (*EventLeaveFoundation) Descriptor() ([]byte, []int)

Deprecated: Use EventLeaveFoundation.ProtoReflect.Descriptor instead.

func (*EventLeaveFoundation) GetAddress

func (x *EventLeaveFoundation) GetAddress() string

func (*EventLeaveFoundation) ProtoMessage

func (*EventLeaveFoundation) ProtoMessage()

func (*EventLeaveFoundation) ProtoReflect

func (x *EventLeaveFoundation) ProtoReflect() protoreflect.Message

func (*EventLeaveFoundation) Reset

func (x *EventLeaveFoundation) Reset()

func (*EventLeaveFoundation) String

func (x *EventLeaveFoundation) String() string

type EventRevoke

type EventRevoke struct {

	// address of the grantee.
	Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// message type url for which an autorization is revoked.
	MsgTypeUrl string `protobuf:"bytes,2,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
	// contains filtered or unexported fields
}

EventRevoke is emitted on Msg/Revoke

func (*EventRevoke) Descriptor deprecated

func (*EventRevoke) Descriptor() ([]byte, []int)

Deprecated: Use EventRevoke.ProtoReflect.Descriptor instead.

func (*EventRevoke) GetGrantee

func (x *EventRevoke) GetGrantee() string

func (*EventRevoke) GetMsgTypeUrl

func (x *EventRevoke) GetMsgTypeUrl() string

func (*EventRevoke) ProtoMessage

func (*EventRevoke) ProtoMessage()

func (*EventRevoke) ProtoReflect

func (x *EventRevoke) ProtoReflect() protoreflect.Message

func (*EventRevoke) Reset

func (x *EventRevoke) Reset()

func (*EventRevoke) String

func (x *EventRevoke) String() string

type EventSubmitProposal

type EventSubmitProposal struct {

	// proposal is the unique ID of the proposal.
	Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// contains filtered or unexported fields
}

EventSubmitProposal is an event emitted when a proposal is created.

func (*EventSubmitProposal) Descriptor deprecated

func (*EventSubmitProposal) Descriptor() ([]byte, []int)

Deprecated: Use EventSubmitProposal.ProtoReflect.Descriptor instead.

func (*EventSubmitProposal) GetProposal

func (x *EventSubmitProposal) GetProposal() *Proposal

func (*EventSubmitProposal) ProtoMessage

func (*EventSubmitProposal) ProtoMessage()

func (*EventSubmitProposal) ProtoReflect

func (x *EventSubmitProposal) ProtoReflect() protoreflect.Message

func (*EventSubmitProposal) Reset

func (x *EventSubmitProposal) Reset()

func (*EventSubmitProposal) String

func (x *EventSubmitProposal) String() string

type EventUpdateCensorship

type EventUpdateCensorship struct {
	Censorship *Censorship `protobuf:"bytes,1,opt,name=censorship,proto3" json:"censorship,omitempty"`
	// contains filtered or unexported fields
}

EventUpdateCensorship is emitted when a censorship information updated.

func (*EventUpdateCensorship) Descriptor deprecated

func (*EventUpdateCensorship) Descriptor() ([]byte, []int)

Deprecated: Use EventUpdateCensorship.ProtoReflect.Descriptor instead.

func (*EventUpdateCensorship) GetCensorship

func (x *EventUpdateCensorship) GetCensorship() *Censorship

func (*EventUpdateCensorship) ProtoMessage

func (*EventUpdateCensorship) ProtoMessage()

func (*EventUpdateCensorship) ProtoReflect

func (x *EventUpdateCensorship) ProtoReflect() protoreflect.Message

func (*EventUpdateCensorship) Reset

func (x *EventUpdateCensorship) Reset()

func (*EventUpdateCensorship) String

func (x *EventUpdateCensorship) String() string

type EventUpdateDecisionPolicy

type EventUpdateDecisionPolicy struct {
	DecisionPolicy *anypb.Any `protobuf:"bytes,1,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
	// contains filtered or unexported fields
}

EventUpdateDecisionPolicy is an event emitted when the decision policy have been updated.

func (*EventUpdateDecisionPolicy) Descriptor deprecated

func (*EventUpdateDecisionPolicy) Descriptor() ([]byte, []int)

Deprecated: Use EventUpdateDecisionPolicy.ProtoReflect.Descriptor instead.

func (*EventUpdateDecisionPolicy) GetDecisionPolicy

func (x *EventUpdateDecisionPolicy) GetDecisionPolicy() *anypb.Any

func (*EventUpdateDecisionPolicy) ProtoMessage

func (*EventUpdateDecisionPolicy) ProtoMessage()

func (*EventUpdateDecisionPolicy) ProtoReflect

func (*EventUpdateDecisionPolicy) Reset

func (x *EventUpdateDecisionPolicy) Reset()

func (*EventUpdateDecisionPolicy) String

func (x *EventUpdateDecisionPolicy) String() string

type EventUpdateMembers

type EventUpdateMembers struct {
	MemberUpdates []*MemberRequest `protobuf:"bytes,1,rep,name=member_updates,json=memberUpdates,proto3" json:"member_updates,omitempty"`
	// contains filtered or unexported fields
}

EventUpdateMembers is an event emitted when the members have been updated.

func (*EventUpdateMembers) Descriptor deprecated

func (*EventUpdateMembers) Descriptor() ([]byte, []int)

Deprecated: Use EventUpdateMembers.ProtoReflect.Descriptor instead.

func (*EventUpdateMembers) GetMemberUpdates

func (x *EventUpdateMembers) GetMemberUpdates() []*MemberRequest

func (*EventUpdateMembers) ProtoMessage

func (*EventUpdateMembers) ProtoMessage()

func (*EventUpdateMembers) ProtoReflect

func (x *EventUpdateMembers) ProtoReflect() protoreflect.Message

func (*EventUpdateMembers) Reset

func (x *EventUpdateMembers) Reset()

func (*EventUpdateMembers) String

func (x *EventUpdateMembers) String() string

type EventVote

type EventVote struct {
	Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
	// contains filtered or unexported fields
}

EventVote is an event emitted when a voter votes on a proposal.

func (*EventVote) Descriptor deprecated

func (*EventVote) Descriptor() ([]byte, []int)

Deprecated: Use EventVote.ProtoReflect.Descriptor instead.

func (*EventVote) GetVote

func (x *EventVote) GetVote() *Vote

func (*EventVote) ProtoMessage

func (*EventVote) ProtoMessage()

func (*EventVote) ProtoReflect

func (x *EventVote) ProtoReflect() protoreflect.Message

func (*EventVote) Reset

func (x *EventVote) Reset()

func (*EventVote) String

func (x *EventVote) String() string

type EventWithdrawFromTreasury

type EventWithdrawFromTreasury struct {
	To     string        `protobuf:"bytes,1,opt,name=to,proto3" json:"to,omitempty"`
	Amount []*types.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

EventWithdrawFromTreasury is an event emitted when coins are withdrawn from the treasury.

func (*EventWithdrawFromTreasury) Descriptor deprecated

func (*EventWithdrawFromTreasury) Descriptor() ([]byte, []int)

Deprecated: Use EventWithdrawFromTreasury.ProtoReflect.Descriptor instead.

func (*EventWithdrawFromTreasury) GetAmount

func (x *EventWithdrawFromTreasury) GetAmount() []*types.Coin

func (*EventWithdrawFromTreasury) GetTo

func (x *EventWithdrawFromTreasury) GetTo() string

func (*EventWithdrawFromTreasury) ProtoMessage

func (*EventWithdrawFromTreasury) ProtoMessage()

func (*EventWithdrawFromTreasury) ProtoReflect

func (*EventWithdrawFromTreasury) Reset

func (x *EventWithdrawFromTreasury) Reset()

func (*EventWithdrawFromTreasury) String

func (x *EventWithdrawFromTreasury) String() string

type EventWithdrawProposal

type EventWithdrawProposal struct {

	// proposal_id is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

EventWithdrawProposal is an event emitted when a proposal is withdrawn.

func (*EventWithdrawProposal) Descriptor deprecated

func (*EventWithdrawProposal) Descriptor() ([]byte, []int)

Deprecated: Use EventWithdrawProposal.ProtoReflect.Descriptor instead.

func (*EventWithdrawProposal) GetProposalId

func (x *EventWithdrawProposal) GetProposalId() uint64

func (*EventWithdrawProposal) ProtoMessage

func (*EventWithdrawProposal) ProtoMessage()

func (*EventWithdrawProposal) ProtoReflect

func (x *EventWithdrawProposal) ProtoReflect() protoreflect.Message

func (*EventWithdrawProposal) Reset

func (x *EventWithdrawProposal) Reset()

func (*EventWithdrawProposal) String

func (x *EventWithdrawProposal) String() string

type Exec

type Exec int32

Exec defines modes of execution of a proposal on creation or on new vote.

const (
	// An empty value means that there should be a separate
	// MsgExec request for the proposal to execute.
	Exec_EXEC_UNSPECIFIED Exec = 0
	// Try to execute the proposal immediately.
	// If the proposal is not allowed per the DecisionPolicy,
	// the proposal will still be open and could
	// be executed at a later point.
	Exec_EXEC_TRY Exec = 1
)

func (Exec) Descriptor

func (Exec) Descriptor() protoreflect.EnumDescriptor

func (Exec) Enum

func (x Exec) Enum() *Exec

func (Exec) EnumDescriptor deprecated

func (Exec) EnumDescriptor() ([]byte, []int)

Deprecated: Use Exec.Descriptor instead.

func (Exec) Number

func (x Exec) Number() protoreflect.EnumNumber

func (Exec) String

func (x Exec) String() string

func (Exec) Type

func (Exec) Type() protoreflect.EnumType

type FoundationExecProposal

type FoundationExecProposal struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// x/foundation messages to execute
	// all the signers must be x/gov authority.
	Messages []*anypb.Any `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

FoundationExecProposal is x/gov proposal to trigger the x/foundation messages on behalf of x/gov.

func (*FoundationExecProposal) Descriptor deprecated

func (*FoundationExecProposal) Descriptor() ([]byte, []int)

Deprecated: Use FoundationExecProposal.ProtoReflect.Descriptor instead.

func (*FoundationExecProposal) GetDescription

func (x *FoundationExecProposal) GetDescription() string

func (*FoundationExecProposal) GetMessages

func (x *FoundationExecProposal) GetMessages() []*anypb.Any

func (*FoundationExecProposal) GetTitle

func (x *FoundationExecProposal) GetTitle() string

func (*FoundationExecProposal) ProtoMessage

func (*FoundationExecProposal) ProtoMessage()

func (*FoundationExecProposal) ProtoReflect

func (x *FoundationExecProposal) ProtoReflect() protoreflect.Message

func (*FoundationExecProposal) Reset

func (x *FoundationExecProposal) Reset()

func (*FoundationExecProposal) String

func (x *FoundationExecProposal) String() string

type FoundationInfo

type FoundationInfo struct {

	// version is used to track changes to the foundation's membership structure that
	// would break existing proposals. Whenever any member is added or removed,
	// this version is incremented and will cause proposals based on older versions
	// of the foundation to fail
	Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// total_weight is the number of the foundation members.
	TotalWeight string `protobuf:"bytes,2,opt,name=total_weight,json=totalWeight,proto3" json:"total_weight,omitempty"`
	// decision_policy specifies the foundation's decision policy.
	DecisionPolicy *anypb.Any `protobuf:"bytes,3,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
	// contains filtered or unexported fields
}

FoundationInfo represents the high-level on-chain information for the foundation.

func (*FoundationInfo) Descriptor deprecated

func (*FoundationInfo) Descriptor() ([]byte, []int)

Deprecated: Use FoundationInfo.ProtoReflect.Descriptor instead.

func (*FoundationInfo) GetDecisionPolicy

func (x *FoundationInfo) GetDecisionPolicy() *anypb.Any

func (*FoundationInfo) GetTotalWeight

func (x *FoundationInfo) GetTotalWeight() string

func (*FoundationInfo) GetVersion

func (x *FoundationInfo) GetVersion() uint64

func (*FoundationInfo) ProtoMessage

func (*FoundationInfo) ProtoMessage()

func (*FoundationInfo) ProtoReflect

func (x *FoundationInfo) ProtoReflect() protoreflect.Message

func (*FoundationInfo) Reset

func (x *FoundationInfo) Reset()

func (*FoundationInfo) String

func (x *FoundationInfo) String() string

type GenesisState

type GenesisState struct {

	// params defines the module parameters at genesis.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// foundation is the foundation info.
	Foundation *FoundationInfo `protobuf:"bytes,2,opt,name=foundation,proto3" json:"foundation,omitempty"`
	// members is the list of the foundation members.
	Members []*Member `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
	// it is used to get the next proposal ID.
	PreviousProposalId uint64 `protobuf:"varint,4,opt,name=previous_proposal_id,json=previousProposalId,proto3" json:"previous_proposal_id,omitempty"`
	// proposals is the list of proposals.
	Proposals []*Proposal `protobuf:"bytes,5,rep,name=proposals,proto3" json:"proposals,omitempty"`
	// votes is the list of votes.
	Votes []*Vote `protobuf:"bytes,6,rep,name=votes,proto3" json:"votes,omitempty"`
	// grants
	Authorizations []*GrantAuthorization `protobuf:"bytes,7,rep,name=authorizations,proto3" json:"authorizations,omitempty"`
	// pool
	Pool        *Pool         `protobuf:"bytes,8,opt,name=pool,proto3" json:"pool,omitempty"`
	Censorships []*Censorship `protobuf:"bytes,10,rep,name=censorships,proto3" json:"censorships,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the foundation module's genesis state.

func (*GenesisState) Descriptor deprecated

func (*GenesisState) Descriptor() ([]byte, []int)

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetAuthorizations

func (x *GenesisState) GetAuthorizations() []*GrantAuthorization

func (*GenesisState) GetCensorships

func (x *GenesisState) GetCensorships() []*Censorship

func (*GenesisState) GetFoundation

func (x *GenesisState) GetFoundation() *FoundationInfo

func (*GenesisState) GetMembers

func (x *GenesisState) GetMembers() []*Member

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetPool

func (x *GenesisState) GetPool() *Pool

func (*GenesisState) GetPreviousProposalId

func (x *GenesisState) GetPreviousProposalId() uint64

func (*GenesisState) GetProposals

func (x *GenesisState) GetProposals() []*Proposal

func (*GenesisState) GetVotes

func (x *GenesisState) GetVotes() []*Vote

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type GrantAuthorization

type GrantAuthorization struct {
	Grantee       string     `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
	Authorization *anypb.Any `protobuf:"bytes,2,opt,name=authorization,proto3" json:"authorization,omitempty"`
	// contains filtered or unexported fields
}

GrantAuthorization defines authorization grant to grantee via route.

func (*GrantAuthorization) Descriptor deprecated

func (*GrantAuthorization) Descriptor() ([]byte, []int)

Deprecated: Use GrantAuthorization.ProtoReflect.Descriptor instead.

func (*GrantAuthorization) GetAuthorization

func (x *GrantAuthorization) GetAuthorization() *anypb.Any

func (*GrantAuthorization) GetGrantee

func (x *GrantAuthorization) GetGrantee() string

func (*GrantAuthorization) ProtoMessage

func (*GrantAuthorization) ProtoMessage()

func (*GrantAuthorization) ProtoReflect

func (x *GrantAuthorization) ProtoReflect() protoreflect.Message

func (*GrantAuthorization) Reset

func (x *GrantAuthorization) Reset()

func (*GrantAuthorization) String

func (x *GrantAuthorization) String() string

type Member

type Member struct {

	// address is the member's account address.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// metadata is any arbitrary metadata to attached to the member.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// added_at is a timestamp specifying when a member was added.
	AddedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=added_at,json=addedAt,proto3" json:"added_at,omitempty"`
	// contains filtered or unexported fields
}

Member represents a foundation member with an account address and metadata.

func (*Member) Descriptor deprecated

func (*Member) Descriptor() ([]byte, []int)

Deprecated: Use Member.ProtoReflect.Descriptor instead.

func (*Member) GetAddedAt

func (x *Member) GetAddedAt() *timestamppb.Timestamp

func (*Member) GetAddress

func (x *Member) GetAddress() string

func (*Member) GetMetadata

func (x *Member) GetMetadata() string

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) ProtoReflect

func (x *Member) ProtoReflect() protoreflect.Message

func (*Member) Reset

func (x *Member) Reset()

func (*Member) String

func (x *Member) String() string

type MemberRequest

type MemberRequest struct {

	// address is the member's account address.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// remove is the flag which allows one to remove the member by setting the flag to true.
	Remove bool `protobuf:"varint,2,opt,name=remove,proto3" json:"remove,omitempty"`
	// metadata is any arbitrary metadata attached to the member.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

MemberRequest represents a foundation member to be used in Msg server requests. Contrary to `Member`, it doesn't have any `added_at` field since this field cannot be set as part of requests.

func (*MemberRequest) Descriptor deprecated

func (*MemberRequest) Descriptor() ([]byte, []int)

Deprecated: Use MemberRequest.ProtoReflect.Descriptor instead.

func (*MemberRequest) GetAddress

func (x *MemberRequest) GetAddress() string

func (*MemberRequest) GetMetadata

func (x *MemberRequest) GetMetadata() string

func (*MemberRequest) GetRemove

func (x *MemberRequest) GetRemove() bool

func (*MemberRequest) ProtoMessage

func (*MemberRequest) ProtoMessage()

func (*MemberRequest) ProtoReflect

func (x *MemberRequest) ProtoReflect() protoreflect.Message

func (*MemberRequest) Reset

func (x *MemberRequest) Reset()

func (*MemberRequest) String

func (x *MemberRequest) String() string

type MsgClient

type MsgClient interface {
	// FundTreasury defines a method to fund the treasury.
	FundTreasury(ctx context.Context, in *MsgFundTreasury, opts ...grpc.CallOption) (*MsgFundTreasuryResponse, error)
	// WithdrawFromTreasury defines a method to withdraw coins from the treasury.
	WithdrawFromTreasury(ctx context.Context, in *MsgWithdrawFromTreasury, opts ...grpc.CallOption) (*MsgWithdrawFromTreasuryResponse, error)
	// UpdateMembers updates the foundation members.
	UpdateMembers(ctx context.Context, in *MsgUpdateMembers, opts ...grpc.CallOption) (*MsgUpdateMembersResponse, error)
	// UpdateDecisionPolicy allows a group policy's decision policy to be updated.
	UpdateDecisionPolicy(ctx context.Context, in *MsgUpdateDecisionPolicy, opts ...grpc.CallOption) (*MsgUpdateDecisionPolicyResponse, error)
	// SubmitProposal submits a new proposal.
	SubmitProposal(ctx context.Context, in *MsgSubmitProposal, opts ...grpc.CallOption) (*MsgSubmitProposalResponse, error)
	// WithdrawProposal aborts a proposal.
	WithdrawProposal(ctx context.Context, in *MsgWithdrawProposal, opts ...grpc.CallOption) (*MsgWithdrawProposalResponse, error)
	// Vote allows a voter to vote on a proposal.
	Vote(ctx context.Context, in *MsgVote, opts ...grpc.CallOption) (*MsgVoteResponse, error)
	// Exec executes a proposal.
	Exec(ctx context.Context, in *MsgExec, opts ...grpc.CallOption) (*MsgExecResponse, error)
	// LeaveFoundation allows a member to leave the foundation.
	LeaveFoundation(ctx context.Context, in *MsgLeaveFoundation, opts ...grpc.CallOption) (*MsgLeaveFoundationResponse, error)
	// UpdateCensorship updates censorship information.
	UpdateCensorship(ctx context.Context, in *MsgUpdateCensorship, opts ...grpc.CallOption) (*MsgUpdateCensorshipResponse, error)
	// Grant grants the provided authorization to the grantee with authority of
	// the foundation. If there is already a grant for the given
	// (grantee, Authorization) tuple, then the grant will be overwritten.
	Grant(ctx context.Context, in *MsgGrant, opts ...grpc.CallOption) (*MsgGrantResponse, error)
	// Revoke revokes any authorization corresponding to the provided method name
	// that has been granted to the grantee.
	Revoke(ctx context.Context, in *MsgRevoke, opts ...grpc.CallOption) (*MsgRevokeResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgExec

type MsgExec struct {

	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// signer is the account address used to execute the proposal.
	Signer string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"`
	// contains filtered or unexported fields
}

MsgExec is the Msg/Exec request type.

func (*MsgExec) Descriptor deprecated

func (*MsgExec) Descriptor() ([]byte, []int)

Deprecated: Use MsgExec.ProtoReflect.Descriptor instead.

func (*MsgExec) GetProposalId

func (x *MsgExec) GetProposalId() uint64

func (*MsgExec) GetSigner

func (x *MsgExec) GetSigner() string

func (*MsgExec) ProtoMessage

func (*MsgExec) ProtoMessage()

func (*MsgExec) ProtoReflect

func (x *MsgExec) ProtoReflect() protoreflect.Message

func (*MsgExec) Reset

func (x *MsgExec) Reset()

func (*MsgExec) String

func (x *MsgExec) String() string

type MsgExecResponse

type MsgExecResponse struct {
	// contains filtered or unexported fields
}

MsgExecResponse is the Msg/Exec request type.

func (*MsgExecResponse) Descriptor deprecated

func (*MsgExecResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgExecResponse.ProtoReflect.Descriptor instead.

func (*MsgExecResponse) ProtoMessage

func (*MsgExecResponse) ProtoMessage()

func (*MsgExecResponse) ProtoReflect

func (x *MsgExecResponse) ProtoReflect() protoreflect.Message

func (*MsgExecResponse) Reset

func (x *MsgExecResponse) Reset()

func (*MsgExecResponse) String

func (x *MsgExecResponse) String() string

type MsgFundTreasury

type MsgFundTreasury struct {
	From   string        `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Amount []*types.Coin `protobuf:"bytes,2,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgFundTreasury is the Msg/FundTreasury request type.

func (*MsgFundTreasury) Descriptor deprecated

func (*MsgFundTreasury) Descriptor() ([]byte, []int)

Deprecated: Use MsgFundTreasury.ProtoReflect.Descriptor instead.

func (*MsgFundTreasury) GetAmount

func (x *MsgFundTreasury) GetAmount() []*types.Coin

func (*MsgFundTreasury) GetFrom

func (x *MsgFundTreasury) GetFrom() string

func (*MsgFundTreasury) ProtoMessage

func (*MsgFundTreasury) ProtoMessage()

func (*MsgFundTreasury) ProtoReflect

func (x *MsgFundTreasury) ProtoReflect() protoreflect.Message

func (*MsgFundTreasury) Reset

func (x *MsgFundTreasury) Reset()

func (*MsgFundTreasury) String

func (x *MsgFundTreasury) String() string

type MsgFundTreasuryResponse

type MsgFundTreasuryResponse struct {
	// contains filtered or unexported fields
}

MsgFundTreasuryResponse is the Msg/FundTreasury response type.

func (*MsgFundTreasuryResponse) Descriptor deprecated

func (*MsgFundTreasuryResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgFundTreasuryResponse.ProtoReflect.Descriptor instead.

func (*MsgFundTreasuryResponse) ProtoMessage

func (*MsgFundTreasuryResponse) ProtoMessage()

func (*MsgFundTreasuryResponse) ProtoReflect

func (x *MsgFundTreasuryResponse) ProtoReflect() protoreflect.Message

func (*MsgFundTreasuryResponse) Reset

func (x *MsgFundTreasuryResponse) Reset()

func (*MsgFundTreasuryResponse) String

func (x *MsgFundTreasuryResponse) String() string

type MsgGrant

type MsgGrant struct {

	// authority is the address of the privileged account.
	Authority     string     `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Grantee       string     `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	Authorization *anypb.Any `protobuf:"bytes,3,opt,name=authorization,proto3" json:"authorization,omitempty"`
	// contains filtered or unexported fields
}

MsgGrant is the Msg/Grant request type. on behalf of the foundation.

func (*MsgGrant) Descriptor deprecated

func (*MsgGrant) Descriptor() ([]byte, []int)

Deprecated: Use MsgGrant.ProtoReflect.Descriptor instead.

func (*MsgGrant) GetAuthority

func (x *MsgGrant) GetAuthority() string

func (*MsgGrant) GetAuthorization

func (x *MsgGrant) GetAuthorization() *anypb.Any

func (*MsgGrant) GetGrantee

func (x *MsgGrant) GetGrantee() string

func (*MsgGrant) ProtoMessage

func (*MsgGrant) ProtoMessage()

func (*MsgGrant) ProtoReflect

func (x *MsgGrant) ProtoReflect() protoreflect.Message

func (*MsgGrant) Reset

func (x *MsgGrant) Reset()

func (*MsgGrant) String

func (x *MsgGrant) String() string

type MsgGrantResponse

type MsgGrantResponse struct {
	// contains filtered or unexported fields
}

MsgGrantResponse is the Msg/MsgGrant response type.

func (*MsgGrantResponse) Descriptor deprecated

func (*MsgGrantResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgGrantResponse.ProtoReflect.Descriptor instead.

func (*MsgGrantResponse) ProtoMessage

func (*MsgGrantResponse) ProtoMessage()

func (*MsgGrantResponse) ProtoReflect

func (x *MsgGrantResponse) ProtoReflect() protoreflect.Message

func (*MsgGrantResponse) Reset

func (x *MsgGrantResponse) Reset()

func (*MsgGrantResponse) String

func (x *MsgGrantResponse) String() string

type MsgLeaveFoundation

type MsgLeaveFoundation struct {

	// address is the account address of the foundation member.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

MsgLeaveFoundation is the Msg/LeaveFoundation request type.

func (*MsgLeaveFoundation) Descriptor deprecated

func (*MsgLeaveFoundation) Descriptor() ([]byte, []int)

Deprecated: Use MsgLeaveFoundation.ProtoReflect.Descriptor instead.

func (*MsgLeaveFoundation) GetAddress

func (x *MsgLeaveFoundation) GetAddress() string

func (*MsgLeaveFoundation) ProtoMessage

func (*MsgLeaveFoundation) ProtoMessage()

func (*MsgLeaveFoundation) ProtoReflect

func (x *MsgLeaveFoundation) ProtoReflect() protoreflect.Message

func (*MsgLeaveFoundation) Reset

func (x *MsgLeaveFoundation) Reset()

func (*MsgLeaveFoundation) String

func (x *MsgLeaveFoundation) String() string

type MsgLeaveFoundationResponse

type MsgLeaveFoundationResponse struct {
	// contains filtered or unexported fields
}

MsgLeaveFoundationResponse is the Msg/LeaveFoundation response type.

func (*MsgLeaveFoundationResponse) Descriptor deprecated

func (*MsgLeaveFoundationResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgLeaveFoundationResponse.ProtoReflect.Descriptor instead.

func (*MsgLeaveFoundationResponse) ProtoMessage

func (*MsgLeaveFoundationResponse) ProtoMessage()

func (*MsgLeaveFoundationResponse) ProtoReflect

func (*MsgLeaveFoundationResponse) Reset

func (x *MsgLeaveFoundationResponse) Reset()

func (*MsgLeaveFoundationResponse) String

func (x *MsgLeaveFoundationResponse) String() string

type MsgRevoke

type MsgRevoke struct {

	// authority is the address of the privileged account.
	Authority  string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Grantee    string `protobuf:"bytes,2,opt,name=grantee,proto3" json:"grantee,omitempty"`
	MsgTypeUrl string `protobuf:"bytes,3,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
	// contains filtered or unexported fields
}

MsgRevoke is the Msg/Revoke request type.

func (*MsgRevoke) Descriptor deprecated

func (*MsgRevoke) Descriptor() ([]byte, []int)

Deprecated: Use MsgRevoke.ProtoReflect.Descriptor instead.

func (*MsgRevoke) GetAuthority

func (x *MsgRevoke) GetAuthority() string

func (*MsgRevoke) GetGrantee

func (x *MsgRevoke) GetGrantee() string

func (*MsgRevoke) GetMsgTypeUrl

func (x *MsgRevoke) GetMsgTypeUrl() string

func (*MsgRevoke) ProtoMessage

func (*MsgRevoke) ProtoMessage()

func (*MsgRevoke) ProtoReflect

func (x *MsgRevoke) ProtoReflect() protoreflect.Message

func (*MsgRevoke) Reset

func (x *MsgRevoke) Reset()

func (*MsgRevoke) String

func (x *MsgRevoke) String() string

type MsgRevokeResponse

type MsgRevokeResponse struct {
	// contains filtered or unexported fields
}

MsgRevokeResponse is the Msg/MsgRevokeResponse response type.

func (*MsgRevokeResponse) Descriptor deprecated

func (*MsgRevokeResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgRevokeResponse.ProtoReflect.Descriptor instead.

func (*MsgRevokeResponse) ProtoMessage

func (*MsgRevokeResponse) ProtoMessage()

func (*MsgRevokeResponse) ProtoReflect

func (x *MsgRevokeResponse) ProtoReflect() protoreflect.Message

func (*MsgRevokeResponse) Reset

func (x *MsgRevokeResponse) Reset()

func (*MsgRevokeResponse) String

func (x *MsgRevokeResponse) String() string

type MsgServer

type MsgServer interface {
	// FundTreasury defines a method to fund the treasury.
	FundTreasury(context.Context, *MsgFundTreasury) (*MsgFundTreasuryResponse, error)
	// WithdrawFromTreasury defines a method to withdraw coins from the treasury.
	WithdrawFromTreasury(context.Context, *MsgWithdrawFromTreasury) (*MsgWithdrawFromTreasuryResponse, error)
	// UpdateMembers updates the foundation members.
	UpdateMembers(context.Context, *MsgUpdateMembers) (*MsgUpdateMembersResponse, error)
	// UpdateDecisionPolicy allows a group policy's decision policy to be updated.
	UpdateDecisionPolicy(context.Context, *MsgUpdateDecisionPolicy) (*MsgUpdateDecisionPolicyResponse, error)
	// SubmitProposal submits a new proposal.
	SubmitProposal(context.Context, *MsgSubmitProposal) (*MsgSubmitProposalResponse, error)
	// WithdrawProposal aborts a proposal.
	WithdrawProposal(context.Context, *MsgWithdrawProposal) (*MsgWithdrawProposalResponse, error)
	// Vote allows a voter to vote on a proposal.
	Vote(context.Context, *MsgVote) (*MsgVoteResponse, error)
	// Exec executes a proposal.
	Exec(context.Context, *MsgExec) (*MsgExecResponse, error)
	// LeaveFoundation allows a member to leave the foundation.
	LeaveFoundation(context.Context, *MsgLeaveFoundation) (*MsgLeaveFoundationResponse, error)
	// UpdateCensorship updates censorship information.
	UpdateCensorship(context.Context, *MsgUpdateCensorship) (*MsgUpdateCensorshipResponse, error)
	// Grant grants the provided authorization to the grantee with authority of
	// the foundation. If there is already a grant for the given
	// (grantee, Authorization) tuple, then the grant will be overwritten.
	Grant(context.Context, *MsgGrant) (*MsgGrantResponse, error)
	// Revoke revokes any authorization corresponding to the provided method name
	// that has been granted to the grantee.
	Revoke(context.Context, *MsgRevoke) (*MsgRevokeResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgSubmitProposal

type MsgSubmitProposal struct {

	// proposers are the account addresses of the proposers.
	// Proposers signatures will be counted as yes votes.
	Proposers []string `protobuf:"bytes,1,rep,name=proposers,proto3" json:"proposers,omitempty"`
	// metadata is any arbitrary metadata to attached to the proposal.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// messages is a list of `sdk.Msg`s that will be executed if the proposal passes.
	Messages []*anypb.Any `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
	// exec defines the mode of execution of the proposal,
	// whether it should be executed immediately on creation or not.
	// If so, proposers signatures are considered as Yes votes.
	Exec Exec `protobuf:"varint,4,opt,name=exec,proto3,enum=lbm.foundation.v1.Exec" json:"exec,omitempty"`
	// contains filtered or unexported fields
}

MsgSubmitProposal is the Msg/SubmitProposal request type.

func (*MsgSubmitProposal) Descriptor deprecated

func (*MsgSubmitProposal) Descriptor() ([]byte, []int)

Deprecated: Use MsgSubmitProposal.ProtoReflect.Descriptor instead.

func (*MsgSubmitProposal) GetExec

func (x *MsgSubmitProposal) GetExec() Exec

func (*MsgSubmitProposal) GetMessages

func (x *MsgSubmitProposal) GetMessages() []*anypb.Any

func (*MsgSubmitProposal) GetMetadata

func (x *MsgSubmitProposal) GetMetadata() string

func (*MsgSubmitProposal) GetProposers

func (x *MsgSubmitProposal) GetProposers() []string

func (*MsgSubmitProposal) ProtoMessage

func (*MsgSubmitProposal) ProtoMessage()

func (*MsgSubmitProposal) ProtoReflect

func (x *MsgSubmitProposal) ProtoReflect() protoreflect.Message

func (*MsgSubmitProposal) Reset

func (x *MsgSubmitProposal) Reset()

func (*MsgSubmitProposal) String

func (x *MsgSubmitProposal) String() string

type MsgSubmitProposalResponse

type MsgSubmitProposalResponse struct {

	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

MsgSubmitProposalResponse is the Msg/SubmitProposal response type.

func (*MsgSubmitProposalResponse) Descriptor deprecated

func (*MsgSubmitProposalResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgSubmitProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgSubmitProposalResponse) GetProposalId

func (x *MsgSubmitProposalResponse) GetProposalId() uint64

func (*MsgSubmitProposalResponse) ProtoMessage

func (*MsgSubmitProposalResponse) ProtoMessage()

func (*MsgSubmitProposalResponse) ProtoReflect

func (*MsgSubmitProposalResponse) Reset

func (x *MsgSubmitProposalResponse) Reset()

func (*MsgSubmitProposalResponse) String

func (x *MsgSubmitProposalResponse) String() string

type MsgUpdateCensorship

type MsgUpdateCensorship struct {

	// authority over the target censorship.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// new censorship information
	Censorship *Censorship `protobuf:"bytes,2,opt,name=censorship,proto3" json:"censorship,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateCensorship is the Msg/UpdateCensorship request type.

func (*MsgUpdateCensorship) Descriptor deprecated

func (*MsgUpdateCensorship) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateCensorship.ProtoReflect.Descriptor instead.

func (*MsgUpdateCensorship) GetAuthority

func (x *MsgUpdateCensorship) GetAuthority() string

func (*MsgUpdateCensorship) GetCensorship

func (x *MsgUpdateCensorship) GetCensorship() *Censorship

func (*MsgUpdateCensorship) ProtoMessage

func (*MsgUpdateCensorship) ProtoMessage()

func (*MsgUpdateCensorship) ProtoReflect

func (x *MsgUpdateCensorship) ProtoReflect() protoreflect.Message

func (*MsgUpdateCensorship) Reset

func (x *MsgUpdateCensorship) Reset()

func (*MsgUpdateCensorship) String

func (x *MsgUpdateCensorship) String() string

type MsgUpdateCensorshipResponse

type MsgUpdateCensorshipResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateCensorshipResponse is the Msg/UpdateCensorship response type.

func (*MsgUpdateCensorshipResponse) Descriptor deprecated

func (*MsgUpdateCensorshipResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateCensorshipResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateCensorshipResponse) ProtoMessage

func (*MsgUpdateCensorshipResponse) ProtoMessage()

func (*MsgUpdateCensorshipResponse) ProtoReflect

func (*MsgUpdateCensorshipResponse) Reset

func (x *MsgUpdateCensorshipResponse) Reset()

func (*MsgUpdateCensorshipResponse) String

func (x *MsgUpdateCensorshipResponse) String() string

type MsgUpdateDecisionPolicy

type MsgUpdateDecisionPolicy struct {

	// authority is the address of the privileged account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// decision_policy is the updated decision policy.
	DecisionPolicy *anypb.Any `protobuf:"bytes,2,opt,name=decision_policy,json=decisionPolicy,proto3" json:"decision_policy,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateDecisionPolicy is the Msg/UpdateDecisionPolicy request type.

func (*MsgUpdateDecisionPolicy) Descriptor deprecated

func (*MsgUpdateDecisionPolicy) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateDecisionPolicy.ProtoReflect.Descriptor instead.

func (*MsgUpdateDecisionPolicy) GetAuthority

func (x *MsgUpdateDecisionPolicy) GetAuthority() string

func (*MsgUpdateDecisionPolicy) GetDecisionPolicy

func (x *MsgUpdateDecisionPolicy) GetDecisionPolicy() *anypb.Any

func (*MsgUpdateDecisionPolicy) ProtoMessage

func (*MsgUpdateDecisionPolicy) ProtoMessage()

func (*MsgUpdateDecisionPolicy) ProtoReflect

func (x *MsgUpdateDecisionPolicy) ProtoReflect() protoreflect.Message

func (*MsgUpdateDecisionPolicy) Reset

func (x *MsgUpdateDecisionPolicy) Reset()

func (*MsgUpdateDecisionPolicy) String

func (x *MsgUpdateDecisionPolicy) String() string

type MsgUpdateDecisionPolicyResponse

type MsgUpdateDecisionPolicyResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateDecisionPolicyResponse is the Msg/UpdateDecisionPolicy response type.

func (*MsgUpdateDecisionPolicyResponse) Descriptor deprecated

func (*MsgUpdateDecisionPolicyResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateDecisionPolicyResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateDecisionPolicyResponse) ProtoMessage

func (*MsgUpdateDecisionPolicyResponse) ProtoMessage()

func (*MsgUpdateDecisionPolicyResponse) ProtoReflect

func (*MsgUpdateDecisionPolicyResponse) Reset

func (*MsgUpdateDecisionPolicyResponse) String

type MsgUpdateMembers

type MsgUpdateMembers struct {

	// authority is the address of the privileged account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// member_updates is the list of members to update,
	// set remove to true to remove a member.
	MemberUpdates []*MemberRequest `protobuf:"bytes,2,rep,name=member_updates,json=memberUpdates,proto3" json:"member_updates,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateMembers is the Msg/UpdateMembers request type. NOTE: This is not for tx

func (*MsgUpdateMembers) Descriptor deprecated

func (*MsgUpdateMembers) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateMembers.ProtoReflect.Descriptor instead.

func (*MsgUpdateMembers) GetAuthority

func (x *MsgUpdateMembers) GetAuthority() string

func (*MsgUpdateMembers) GetMemberUpdates

func (x *MsgUpdateMembers) GetMemberUpdates() []*MemberRequest

func (*MsgUpdateMembers) ProtoMessage

func (*MsgUpdateMembers) ProtoMessage()

func (*MsgUpdateMembers) ProtoReflect

func (x *MsgUpdateMembers) ProtoReflect() protoreflect.Message

func (*MsgUpdateMembers) Reset

func (x *MsgUpdateMembers) Reset()

func (*MsgUpdateMembers) String

func (x *MsgUpdateMembers) String() string

type MsgUpdateMembersResponse

type MsgUpdateMembersResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateMembersResponse is the Msg/UpdateMembers response type.

func (*MsgUpdateMembersResponse) Descriptor deprecated

func (*MsgUpdateMembersResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateMembersResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateMembersResponse) ProtoMessage

func (*MsgUpdateMembersResponse) ProtoMessage()

func (*MsgUpdateMembersResponse) ProtoReflect

func (x *MsgUpdateMembersResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateMembersResponse) Reset

func (x *MsgUpdateMembersResponse) Reset()

func (*MsgUpdateMembersResponse) String

func (x *MsgUpdateMembersResponse) String() string

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address of the privileged account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/foundation parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type. NOTE: This is not for tx

func (*MsgUpdateParams) Descriptor deprecated

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse is the Msg/UpdateParams response type.

func (*MsgUpdateParamsResponse) Descriptor deprecated

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type MsgVote

type MsgVote struct {

	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// voter is the voter account address.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// option is the voter's choice on the proposal.
	Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=lbm.foundation.v1.VoteOption" json:"option,omitempty"`
	// metadata is any arbitrary metadata to attached to the vote.
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// exec defines whether the proposal should be executed
	// immediately after voting or not.
	Exec Exec `protobuf:"varint,5,opt,name=exec,proto3,enum=lbm.foundation.v1.Exec" json:"exec,omitempty"`
	// contains filtered or unexported fields
}

MsgVote is the Msg/Vote request type.

func (*MsgVote) Descriptor deprecated

func (*MsgVote) Descriptor() ([]byte, []int)

Deprecated: Use MsgVote.ProtoReflect.Descriptor instead.

func (*MsgVote) GetExec

func (x *MsgVote) GetExec() Exec

func (*MsgVote) GetMetadata

func (x *MsgVote) GetMetadata() string

func (*MsgVote) GetOption

func (x *MsgVote) GetOption() VoteOption

func (*MsgVote) GetProposalId

func (x *MsgVote) GetProposalId() uint64

func (*MsgVote) GetVoter

func (x *MsgVote) GetVoter() string

func (*MsgVote) ProtoMessage

func (*MsgVote) ProtoMessage()

func (*MsgVote) ProtoReflect

func (x *MsgVote) ProtoReflect() protoreflect.Message

func (*MsgVote) Reset

func (x *MsgVote) Reset()

func (*MsgVote) String

func (x *MsgVote) String() string

type MsgVoteResponse

type MsgVoteResponse struct {
	// contains filtered or unexported fields
}

MsgVoteResponse is the Msg/Vote response type.

func (*MsgVoteResponse) Descriptor deprecated

func (*MsgVoteResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgVoteResponse.ProtoReflect.Descriptor instead.

func (*MsgVoteResponse) ProtoMessage

func (*MsgVoteResponse) ProtoMessage()

func (*MsgVoteResponse) ProtoReflect

func (x *MsgVoteResponse) ProtoReflect() protoreflect.Message

func (*MsgVoteResponse) Reset

func (x *MsgVoteResponse) Reset()

func (*MsgVoteResponse) String

func (x *MsgVoteResponse) String() string

type MsgWithdrawFromTreasury

type MsgWithdrawFromTreasury struct {

	// authority is the address of the privileged account.
	Authority string        `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	To        string        `protobuf:"bytes,2,opt,name=to,proto3" json:"to,omitempty"`
	Amount    []*types.Coin `protobuf:"bytes,3,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgWithdrawFromTreasury is the Msg/WithdrawFromTreasury request type.

func (*MsgWithdrawFromTreasury) Descriptor deprecated

func (*MsgWithdrawFromTreasury) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawFromTreasury.ProtoReflect.Descriptor instead.

func (*MsgWithdrawFromTreasury) GetAmount

func (x *MsgWithdrawFromTreasury) GetAmount() []*types.Coin

func (*MsgWithdrawFromTreasury) GetAuthority

func (x *MsgWithdrawFromTreasury) GetAuthority() string

func (*MsgWithdrawFromTreasury) GetTo

func (x *MsgWithdrawFromTreasury) GetTo() string

func (*MsgWithdrawFromTreasury) ProtoMessage

func (*MsgWithdrawFromTreasury) ProtoMessage()

func (*MsgWithdrawFromTreasury) ProtoReflect

func (x *MsgWithdrawFromTreasury) ProtoReflect() protoreflect.Message

func (*MsgWithdrawFromTreasury) Reset

func (x *MsgWithdrawFromTreasury) Reset()

func (*MsgWithdrawFromTreasury) String

func (x *MsgWithdrawFromTreasury) String() string

type MsgWithdrawFromTreasuryResponse

type MsgWithdrawFromTreasuryResponse struct {
	// contains filtered or unexported fields
}

MsgWithdrawFromTreasuryResponse is the Msg/WithdrawFromTreasury response type.

func (*MsgWithdrawFromTreasuryResponse) Descriptor deprecated

func (*MsgWithdrawFromTreasuryResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawFromTreasuryResponse.ProtoReflect.Descriptor instead.

func (*MsgWithdrawFromTreasuryResponse) ProtoMessage

func (*MsgWithdrawFromTreasuryResponse) ProtoMessage()

func (*MsgWithdrawFromTreasuryResponse) ProtoReflect

func (*MsgWithdrawFromTreasuryResponse) Reset

func (*MsgWithdrawFromTreasuryResponse) String

type MsgWithdrawProposal

type MsgWithdrawProposal struct {

	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// address of one of the proposer of the proposal.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

MsgWithdrawProposal is the Msg/WithdrawProposal request type.

func (*MsgWithdrawProposal) Descriptor deprecated

func (*MsgWithdrawProposal) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawProposal.ProtoReflect.Descriptor instead.

func (*MsgWithdrawProposal) GetAddress

func (x *MsgWithdrawProposal) GetAddress() string

func (*MsgWithdrawProposal) GetProposalId

func (x *MsgWithdrawProposal) GetProposalId() uint64

func (*MsgWithdrawProposal) ProtoMessage

func (*MsgWithdrawProposal) ProtoMessage()

func (*MsgWithdrawProposal) ProtoReflect

func (x *MsgWithdrawProposal) ProtoReflect() protoreflect.Message

func (*MsgWithdrawProposal) Reset

func (x *MsgWithdrawProposal) Reset()

func (*MsgWithdrawProposal) String

func (x *MsgWithdrawProposal) String() string

type MsgWithdrawProposalResponse

type MsgWithdrawProposalResponse struct {
	// contains filtered or unexported fields
}

MsgWithdrawProposalResponse is the Msg/WithdrawProposal response type.

func (*MsgWithdrawProposalResponse) Descriptor deprecated

func (*MsgWithdrawProposalResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgWithdrawProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgWithdrawProposalResponse) ProtoMessage

func (*MsgWithdrawProposalResponse) ProtoMessage()

func (*MsgWithdrawProposalResponse) ProtoReflect

func (*MsgWithdrawProposalResponse) Reset

func (x *MsgWithdrawProposalResponse) Reset()

func (*MsgWithdrawProposalResponse) String

func (x *MsgWithdrawProposalResponse) String() string

type OutsourcingDecisionPolicy

type OutsourcingDecisionPolicy struct {
	Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	// contains filtered or unexported fields
}

OutsourcingDecisionPolicy is a dummy decision policy which is set after the proposal feature has been outsourced to x/group.

func (*OutsourcingDecisionPolicy) Descriptor deprecated

func (*OutsourcingDecisionPolicy) Descriptor() ([]byte, []int)

Deprecated: Use OutsourcingDecisionPolicy.ProtoReflect.Descriptor instead.

func (*OutsourcingDecisionPolicy) GetDescription

func (x *OutsourcingDecisionPolicy) GetDescription() string

func (*OutsourcingDecisionPolicy) ProtoMessage

func (*OutsourcingDecisionPolicy) ProtoMessage()

func (*OutsourcingDecisionPolicy) ProtoReflect

func (*OutsourcingDecisionPolicy) Reset

func (x *OutsourcingDecisionPolicy) Reset()

func (*OutsourcingDecisionPolicy) String

func (x *OutsourcingDecisionPolicy) String() string

type Params

type Params struct {
	FoundationTax string `protobuf:"bytes,1,opt,name=foundation_tax,json=foundationTax,proto3" json:"foundation_tax,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the foundation module.

func (*Params) Descriptor deprecated

func (*Params) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetFoundationTax

func (x *Params) GetFoundationTax() string

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type PercentageDecisionPolicy

type PercentageDecisionPolicy struct {

	// percentage is the minimum percentage the sum of yes votes must meet for a proposal to succeed.
	Percentage string `protobuf:"bytes,1,opt,name=percentage,proto3" json:"percentage,omitempty"`
	// windows defines the different windows for voting and execution.
	Windows *DecisionPolicyWindows `protobuf:"bytes,2,opt,name=windows,proto3" json:"windows,omitempty"`
	// contains filtered or unexported fields
}

PercentageDecisionPolicy is a decision policy where a proposal passes when it satisfies the two following conditions:

  1. The percentage of all `YES` voters' weights out of the total group weight is greater or equal than the given `percentage`.
  2. The voting and execution periods of the proposal respect the parameters given by `windows`.

func (*PercentageDecisionPolicy) Descriptor deprecated

func (*PercentageDecisionPolicy) Descriptor() ([]byte, []int)

Deprecated: Use PercentageDecisionPolicy.ProtoReflect.Descriptor instead.

func (*PercentageDecisionPolicy) GetPercentage

func (x *PercentageDecisionPolicy) GetPercentage() string

func (*PercentageDecisionPolicy) GetWindows

func (*PercentageDecisionPolicy) ProtoMessage

func (*PercentageDecisionPolicy) ProtoMessage()

func (*PercentageDecisionPolicy) ProtoReflect

func (x *PercentageDecisionPolicy) ProtoReflect() protoreflect.Message

func (*PercentageDecisionPolicy) Reset

func (x *PercentageDecisionPolicy) Reset()

func (*PercentageDecisionPolicy) String

func (x *PercentageDecisionPolicy) String() string

type Pool

type Pool struct {
	Treasury []*types.DecCoin `protobuf:"bytes,1,rep,name=treasury,proto3" json:"treasury,omitempty"`
	// contains filtered or unexported fields
}

Pool is used for tracking treasury.

func (*Pool) Descriptor deprecated

func (*Pool) Descriptor() ([]byte, []int)

Deprecated: Use Pool.ProtoReflect.Descriptor instead.

func (*Pool) GetTreasury

func (x *Pool) GetTreasury() []*types.DecCoin

func (*Pool) ProtoMessage

func (*Pool) ProtoMessage()

func (*Pool) ProtoReflect

func (x *Pool) ProtoReflect() protoreflect.Message

func (*Pool) Reset

func (x *Pool) Reset()

func (*Pool) String

func (x *Pool) String() string

type Proposal

type Proposal struct {

	// id is the unique id of the proposal.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// metadata is any arbitrary metadata to attached to the proposal.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// proposers are the account addresses of the proposers.
	Proposers []string `protobuf:"bytes,3,rep,name=proposers,proto3" json:"proposers,omitempty"`
	// submit_time is a timestamp specifying when a proposal was submitted.
	SubmitTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
	// foundation_version tracks the version of the foundation that this proposal corresponds to.
	// When foundation info is changed, existing proposals from previous foundation versions will become invalid.
	FoundationVersion uint64 `protobuf:"varint,5,opt,name=foundation_version,json=foundationVersion,proto3" json:"foundation_version,omitempty"`
	// status represents the high level position in the life cycle of the proposal. Initial value is Submitted.
	Status ProposalStatus `protobuf:"varint,6,opt,name=status,proto3,enum=lbm.foundation.v1.ProposalStatus" json:"status,omitempty"`
	// final_tally_result contains the sums of all votes for this
	// proposal for each vote option, after tallying. When querying a proposal
	// via gRPC, this field is not populated until the proposal's voting period
	// has ended.
	FinalTallyResult *TallyResult `protobuf:"bytes,7,opt,name=final_tally_result,json=finalTallyResult,proto3" json:"final_tally_result,omitempty"`
	// voting_period_end is the timestamp before which voting must be done.
	// Unless a successfull MsgExec is called before (to execute a proposal whose
	// tally is successful before the voting period ends), tallying will be done
	// at this point, and the `final_tally_result`, as well
	// as `status` and `result` fields will be accordingly updated.
	VotingPeriodEnd *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=voting_period_end,json=votingPeriodEnd,proto3" json:"voting_period_end,omitempty"`
	// executor_result is the final result based on the votes and election rule. Initial value is NotRun.
	ExecutorResult ProposalExecutorResult `` /* 150-byte string literal not displayed */
	// messages is a list of Msgs that will be executed if the proposal passes.
	Messages []*anypb.Any `protobuf:"bytes,10,rep,name=messages,proto3" json:"messages,omitempty"`
	// contains filtered or unexported fields
}

Proposal defines a foundation proposal. Any member of the foundation can submit a proposal for a group policy to decide upon. A proposal consists of a set of `sdk.Msg`s that will be executed if the proposal passes as well as some optional metadata associated with the proposal.

func (*Proposal) Descriptor deprecated

func (*Proposal) Descriptor() ([]byte, []int)

Deprecated: Use Proposal.ProtoReflect.Descriptor instead.

func (*Proposal) GetExecutorResult

func (x *Proposal) GetExecutorResult() ProposalExecutorResult

func (*Proposal) GetFinalTallyResult

func (x *Proposal) GetFinalTallyResult() *TallyResult

func (*Proposal) GetFoundationVersion

func (x *Proposal) GetFoundationVersion() uint64

func (*Proposal) GetId

func (x *Proposal) GetId() uint64

func (*Proposal) GetMessages

func (x *Proposal) GetMessages() []*anypb.Any

func (*Proposal) GetMetadata

func (x *Proposal) GetMetadata() string

func (*Proposal) GetProposers

func (x *Proposal) GetProposers() []string

func (*Proposal) GetStatus

func (x *Proposal) GetStatus() ProposalStatus

func (*Proposal) GetSubmitTime

func (x *Proposal) GetSubmitTime() *timestamppb.Timestamp

func (*Proposal) GetVotingPeriodEnd

func (x *Proposal) GetVotingPeriodEnd() *timestamppb.Timestamp

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) ProtoReflect

func (x *Proposal) ProtoReflect() protoreflect.Message

func (*Proposal) Reset

func (x *Proposal) Reset()

func (*Proposal) String

func (x *Proposal) String() string

type ProposalExecutorResult

type ProposalExecutorResult int32

ProposalExecutorResult defines types of proposal executor results.

const (
	// An empty value is not allowed.
	ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_UNSPECIFIED ProposalExecutorResult = 0
	// We have not yet run the executor.
	ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_NOT_RUN ProposalExecutorResult = 1
	// The executor was successful and proposed action updated state.
	ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_SUCCESS ProposalExecutorResult = 2
	// The executor returned an error and proposed action didn't update state.
	ProposalExecutorResult_PROPOSAL_EXECUTOR_RESULT_FAILURE ProposalExecutorResult = 3
)

func (ProposalExecutorResult) Descriptor

func (ProposalExecutorResult) Enum

func (ProposalExecutorResult) EnumDescriptor deprecated

func (ProposalExecutorResult) EnumDescriptor() ([]byte, []int)

Deprecated: Use ProposalExecutorResult.Descriptor instead.

func (ProposalExecutorResult) Number

func (ProposalExecutorResult) String

func (x ProposalExecutorResult) String() string

func (ProposalExecutorResult) Type

type ProposalStatus

type ProposalStatus int32

ProposalStatus defines proposal statuses.

const (
	// An empty value is invalid and not allowed.
	ProposalStatus_PROPOSAL_STATUS_UNSPECIFIED ProposalStatus = 0
	// Initial status of a proposal when submitted.
	ProposalStatus_PROPOSAL_STATUS_SUBMITTED ProposalStatus = 1
	// Final status of a proposal when the final tally is done and the outcome
	// passes the foundation's decision policy.
	ProposalStatus_PROPOSAL_STATUS_ACCEPTED ProposalStatus = 2
	// Final status of a proposal when the final tally is done and the outcome
	// is rejected by the foundation's decision policy.
	ProposalStatus_PROPOSAL_STATUS_REJECTED ProposalStatus = 3
	// Final status of a proposal when the decision policy is modified before the
	// final tally.
	ProposalStatus_PROPOSAL_STATUS_ABORTED ProposalStatus = 4
	// A proposal can be withdrawn before the voting start time by the owner.
	// When this happens the final status is Withdrawn.
	ProposalStatus_PROPOSAL_STATUS_WITHDRAWN ProposalStatus = 5
)

func (ProposalStatus) Descriptor

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 (ProposalStatus) String

func (x ProposalStatus) String() string

func (ProposalStatus) Type

type QueryCensorshipsRequest

type QueryCensorshipsRequest struct {

	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryCensorshipsRequest is the request type for the Query/Censorships RPC method.

func (*QueryCensorshipsRequest) Descriptor deprecated

func (*QueryCensorshipsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryCensorshipsRequest.ProtoReflect.Descriptor instead.

func (*QueryCensorshipsRequest) GetPagination

func (x *QueryCensorshipsRequest) GetPagination() *query.PageRequest

func (*QueryCensorshipsRequest) ProtoMessage

func (*QueryCensorshipsRequest) ProtoMessage()

func (*QueryCensorshipsRequest) ProtoReflect

func (x *QueryCensorshipsRequest) ProtoReflect() protoreflect.Message

func (*QueryCensorshipsRequest) Reset

func (x *QueryCensorshipsRequest) Reset()

func (*QueryCensorshipsRequest) String

func (x *QueryCensorshipsRequest) String() string

type QueryCensorshipsResponse

type QueryCensorshipsResponse struct {

	// authorizations is a list of grants granted for grantee.
	Censorships []*Censorship `protobuf:"bytes,1,rep,name=censorships,proto3" json:"censorships,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryCensorshipsResponse is the response type for the Query/Censorships RPC method.

func (*QueryCensorshipsResponse) Descriptor deprecated

func (*QueryCensorshipsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryCensorshipsResponse.ProtoReflect.Descriptor instead.

func (*QueryCensorshipsResponse) GetCensorships

func (x *QueryCensorshipsResponse) GetCensorships() []*Censorship

func (*QueryCensorshipsResponse) GetPagination

func (x *QueryCensorshipsResponse) GetPagination() *query.PageResponse

func (*QueryCensorshipsResponse) ProtoMessage

func (*QueryCensorshipsResponse) ProtoMessage()

func (*QueryCensorshipsResponse) ProtoReflect

func (x *QueryCensorshipsResponse) ProtoReflect() protoreflect.Message

func (*QueryCensorshipsResponse) Reset

func (x *QueryCensorshipsResponse) Reset()

func (*QueryCensorshipsResponse) String

func (x *QueryCensorshipsResponse) String() string

type QueryClient

type QueryClient interface {
	// Params queries the module params.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Treasury queries the foundation treasury.
	Treasury(ctx context.Context, in *QueryTreasuryRequest, opts ...grpc.CallOption) (*QueryTreasuryResponse, error)
	// FoundationInfo queries foundation info.
	FoundationInfo(ctx context.Context, in *QueryFoundationInfoRequest, opts ...grpc.CallOption) (*QueryFoundationInfoResponse, error)
	// Member queries a member of the foundation
	Member(ctx context.Context, in *QueryMemberRequest, opts ...grpc.CallOption) (*QueryMemberResponse, error)
	// Members queries members of the foundation
	Members(ctx context.Context, in *QueryMembersRequest, opts ...grpc.CallOption) (*QueryMembersResponse, error)
	// Proposal queries a proposal based on proposal id.
	Proposal(ctx context.Context, in *QueryProposalRequest, opts ...grpc.CallOption) (*QueryProposalResponse, error)
	// Proposals queries all proposals.
	Proposals(ctx context.Context, in *QueryProposalsRequest, opts ...grpc.CallOption) (*QueryProposalsResponse, error)
	// Vote queries a vote by proposal id and voter.
	Vote(ctx context.Context, in *QueryVoteRequest, opts ...grpc.CallOption) (*QueryVoteResponse, error)
	// Votes queries a vote by proposal.
	Votes(ctx context.Context, in *QueryVotesRequest, opts ...grpc.CallOption) (*QueryVotesResponse, error)
	// TallyResult queries the tally of a proposal votes.
	TallyResult(ctx context.Context, in *QueryTallyResultRequest, opts ...grpc.CallOption) (*QueryTallyResultResponse, error)
	// Censorships queries the censorship informations.
	Censorships(ctx context.Context, in *QueryCensorshipsRequest, opts ...grpc.CallOption) (*QueryCensorshipsResponse, error)
	// Returns list of authorizations, granted to the grantee.
	Grants(ctx context.Context, in *QueryGrantsRequest, opts ...grpc.CallOption) (*QueryGrantsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryFoundationInfoRequest

type QueryFoundationInfoRequest struct {
	// contains filtered or unexported fields
}

QueryFoundationInfoRequest is the Query/FoundationInfo request type.

func (*QueryFoundationInfoRequest) Descriptor deprecated

func (*QueryFoundationInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryFoundationInfoRequest.ProtoReflect.Descriptor instead.

func (*QueryFoundationInfoRequest) ProtoMessage

func (*QueryFoundationInfoRequest) ProtoMessage()

func (*QueryFoundationInfoRequest) ProtoReflect

func (*QueryFoundationInfoRequest) Reset

func (x *QueryFoundationInfoRequest) Reset()

func (*QueryFoundationInfoRequest) String

func (x *QueryFoundationInfoRequest) String() string

type QueryFoundationInfoResponse

type QueryFoundationInfoResponse struct {

	// info is the FoundationInfo for the foundation.
	Info *FoundationInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

QueryFoundationInfoResponse is the Query/FoundationInfo response type.

func (*QueryFoundationInfoResponse) Descriptor deprecated

func (*QueryFoundationInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryFoundationInfoResponse.ProtoReflect.Descriptor instead.

func (*QueryFoundationInfoResponse) GetInfo

func (*QueryFoundationInfoResponse) ProtoMessage

func (*QueryFoundationInfoResponse) ProtoMessage()

func (*QueryFoundationInfoResponse) ProtoReflect

func (*QueryFoundationInfoResponse) Reset

func (x *QueryFoundationInfoResponse) Reset()

func (*QueryFoundationInfoResponse) String

func (x *QueryFoundationInfoResponse) String() string

type QueryGrantsRequest

type QueryGrantsRequest struct {
	Grantee string `protobuf:"bytes,1,opt,name=grantee,proto3" json:"grantee,omitempty"`
	// Optional, msg_type_url, when set, will query only grants matching given msg type.
	MsgTypeUrl string `protobuf:"bytes,2,opt,name=msg_type_url,json=msgTypeUrl,proto3" json:"msg_type_url,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGrantsRequest is the request type for the Query/Grants RPC method.

func (*QueryGrantsRequest) Descriptor deprecated

func (*QueryGrantsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryGrantsRequest.ProtoReflect.Descriptor instead.

func (*QueryGrantsRequest) GetGrantee

func (x *QueryGrantsRequest) GetGrantee() string

func (*QueryGrantsRequest) GetMsgTypeUrl

func (x *QueryGrantsRequest) GetMsgTypeUrl() string

func (*QueryGrantsRequest) GetPagination

func (x *QueryGrantsRequest) GetPagination() *query.PageRequest

func (*QueryGrantsRequest) ProtoMessage

func (*QueryGrantsRequest) ProtoMessage()

func (*QueryGrantsRequest) ProtoReflect

func (x *QueryGrantsRequest) ProtoReflect() protoreflect.Message

func (*QueryGrantsRequest) Reset

func (x *QueryGrantsRequest) Reset()

func (*QueryGrantsRequest) String

func (x *QueryGrantsRequest) String() string

type QueryGrantsResponse

type QueryGrantsResponse struct {

	// authorizations is a list of grants granted for grantee.
	Authorizations []*anypb.Any `protobuf:"bytes,1,rep,name=authorizations,proto3" json:"authorizations,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryGrantsResponse is the response type for the Query/Grants RPC method.

func (*QueryGrantsResponse) Descriptor deprecated

func (*QueryGrantsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryGrantsResponse.ProtoReflect.Descriptor instead.

func (*QueryGrantsResponse) GetAuthorizations

func (x *QueryGrantsResponse) GetAuthorizations() []*anypb.Any

func (*QueryGrantsResponse) GetPagination

func (x *QueryGrantsResponse) GetPagination() *query.PageResponse

func (*QueryGrantsResponse) ProtoMessage

func (*QueryGrantsResponse) ProtoMessage()

func (*QueryGrantsResponse) ProtoReflect

func (x *QueryGrantsResponse) ProtoReflect() protoreflect.Message

func (*QueryGrantsResponse) Reset

func (x *QueryGrantsResponse) Reset()

func (*QueryGrantsResponse) String

func (x *QueryGrantsResponse) String() string

type QueryMemberRequest

type QueryMemberRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

QueryMemberRequest is the Query/Member request type.

func (*QueryMemberRequest) Descriptor deprecated

func (*QueryMemberRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryMemberRequest.ProtoReflect.Descriptor instead.

func (*QueryMemberRequest) GetAddress

func (x *QueryMemberRequest) GetAddress() string

func (*QueryMemberRequest) ProtoMessage

func (*QueryMemberRequest) ProtoMessage()

func (*QueryMemberRequest) ProtoReflect

func (x *QueryMemberRequest) ProtoReflect() protoreflect.Message

func (*QueryMemberRequest) Reset

func (x *QueryMemberRequest) Reset()

func (*QueryMemberRequest) String

func (x *QueryMemberRequest) String() string

type QueryMemberResponse

type QueryMemberResponse struct {

	// member is the members of the foundation.
	Member *Member `protobuf:"bytes,1,opt,name=member,proto3" json:"member,omitempty"`
	// contains filtered or unexported fields
}

QueryMemberResponse is the Query/MemberResponse response type.

func (*QueryMemberResponse) Descriptor deprecated

func (*QueryMemberResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryMemberResponse.ProtoReflect.Descriptor instead.

func (*QueryMemberResponse) GetMember

func (x *QueryMemberResponse) GetMember() *Member

func (*QueryMemberResponse) ProtoMessage

func (*QueryMemberResponse) ProtoMessage()

func (*QueryMemberResponse) ProtoReflect

func (x *QueryMemberResponse) ProtoReflect() protoreflect.Message

func (*QueryMemberResponse) Reset

func (x *QueryMemberResponse) Reset()

func (*QueryMemberResponse) String

func (x *QueryMemberResponse) String() string

type QueryMembersRequest

type QueryMembersRequest struct {

	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryMembersRequest is the Query/Members request type.

func (*QueryMembersRequest) Descriptor deprecated

func (*QueryMembersRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryMembersRequest.ProtoReflect.Descriptor instead.

func (*QueryMembersRequest) GetPagination

func (x *QueryMembersRequest) GetPagination() *query.PageRequest

func (*QueryMembersRequest) ProtoMessage

func (*QueryMembersRequest) ProtoMessage()

func (*QueryMembersRequest) ProtoReflect

func (x *QueryMembersRequest) ProtoReflect() protoreflect.Message

func (*QueryMembersRequest) Reset

func (x *QueryMembersRequest) Reset()

func (*QueryMembersRequest) String

func (x *QueryMembersRequest) String() string

type QueryMembersResponse

type QueryMembersResponse struct {

	// members are the members of the foundation.
	Members []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryMembersResponse is the Query/MembersResponse response type.

func (*QueryMembersResponse) Descriptor deprecated

func (*QueryMembersResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryMembersResponse.ProtoReflect.Descriptor instead.

func (*QueryMembersResponse) GetMembers

func (x *QueryMembersResponse) GetMembers() []*Member

func (*QueryMembersResponse) GetPagination

func (x *QueryMembersResponse) GetPagination() *query.PageResponse

func (*QueryMembersResponse) ProtoMessage

func (*QueryMembersResponse) ProtoMessage()

func (*QueryMembersResponse) ProtoReflect

func (x *QueryMembersResponse) ProtoReflect() protoreflect.Message

func (*QueryMembersResponse) Reset

func (x *QueryMembersResponse) Reset()

func (*QueryMembersResponse) String

func (x *QueryMembersResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParamsRequest is the request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is the response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryProposalRequest

type QueryProposalRequest struct {

	// proposal_id is the unique ID of a proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

QueryProposalRequest is the Query/Proposal request type.

func (*QueryProposalRequest) Descriptor deprecated

func (*QueryProposalRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryProposalRequest.ProtoReflect.Descriptor instead.

func (*QueryProposalRequest) GetProposalId

func (x *QueryProposalRequest) GetProposalId() uint64

func (*QueryProposalRequest) ProtoMessage

func (*QueryProposalRequest) ProtoMessage()

func (*QueryProposalRequest) ProtoReflect

func (x *QueryProposalRequest) ProtoReflect() protoreflect.Message

func (*QueryProposalRequest) Reset

func (x *QueryProposalRequest) Reset()

func (*QueryProposalRequest) String

func (x *QueryProposalRequest) String() string

type QueryProposalResponse

type QueryProposalResponse struct {

	// proposal is the proposal info.
	Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
	// contains filtered or unexported fields
}

QueryProposalResponse is the Query/Proposal response type.

func (*QueryProposalResponse) Descriptor deprecated

func (*QueryProposalResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryProposalResponse.ProtoReflect.Descriptor instead.

func (*QueryProposalResponse) GetProposal

func (x *QueryProposalResponse) GetProposal() *Proposal

func (*QueryProposalResponse) ProtoMessage

func (*QueryProposalResponse) ProtoMessage()

func (*QueryProposalResponse) ProtoReflect

func (x *QueryProposalResponse) ProtoReflect() protoreflect.Message

func (*QueryProposalResponse) Reset

func (x *QueryProposalResponse) Reset()

func (*QueryProposalResponse) String

func (x *QueryProposalResponse) String() string

type QueryProposalsRequest

type QueryProposalsRequest struct {

	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryProposals is the Query/Proposals request type.

func (*QueryProposalsRequest) Descriptor deprecated

func (*QueryProposalsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryProposalsRequest.ProtoReflect.Descriptor instead.

func (*QueryProposalsRequest) GetPagination

func (x *QueryProposalsRequest) GetPagination() *query.PageRequest

func (*QueryProposalsRequest) ProtoMessage

func (*QueryProposalsRequest) ProtoMessage()

func (*QueryProposalsRequest) ProtoReflect

func (x *QueryProposalsRequest) ProtoReflect() protoreflect.Message

func (*QueryProposalsRequest) Reset

func (x *QueryProposalsRequest) Reset()

func (*QueryProposalsRequest) String

func (x *QueryProposalsRequest) String() string

type QueryProposalsResponse

type QueryProposalsResponse struct {

	// proposals are the proposals of the foundation.
	Proposals []*Proposal `protobuf:"bytes,1,rep,name=proposals,proto3" json:"proposals,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryProposalsResponse is the Query/Proposals response type.

func (*QueryProposalsResponse) Descriptor deprecated

func (*QueryProposalsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryProposalsResponse.ProtoReflect.Descriptor instead.

func (*QueryProposalsResponse) GetPagination

func (x *QueryProposalsResponse) GetPagination() *query.PageResponse

func (*QueryProposalsResponse) GetProposals

func (x *QueryProposalsResponse) GetProposals() []*Proposal

func (*QueryProposalsResponse) ProtoMessage

func (*QueryProposalsResponse) ProtoMessage()

func (*QueryProposalsResponse) ProtoReflect

func (x *QueryProposalsResponse) ProtoReflect() protoreflect.Message

func (*QueryProposalsResponse) Reset

func (x *QueryProposalsResponse) Reset()

func (*QueryProposalsResponse) String

func (x *QueryProposalsResponse) String() string

type QueryServer

type QueryServer interface {
	// Params queries the module params.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Treasury queries the foundation treasury.
	Treasury(context.Context, *QueryTreasuryRequest) (*QueryTreasuryResponse, error)
	// FoundationInfo queries foundation info.
	FoundationInfo(context.Context, *QueryFoundationInfoRequest) (*QueryFoundationInfoResponse, error)
	// Member queries a member of the foundation
	Member(context.Context, *QueryMemberRequest) (*QueryMemberResponse, error)
	// Members queries members of the foundation
	Members(context.Context, *QueryMembersRequest) (*QueryMembersResponse, error)
	// Proposal queries a proposal based on proposal id.
	Proposal(context.Context, *QueryProposalRequest) (*QueryProposalResponse, error)
	// Proposals queries all proposals.
	Proposals(context.Context, *QueryProposalsRequest) (*QueryProposalsResponse, error)
	// Vote queries a vote by proposal id and voter.
	Vote(context.Context, *QueryVoteRequest) (*QueryVoteResponse, error)
	// Votes queries a vote by proposal.
	Votes(context.Context, *QueryVotesRequest) (*QueryVotesResponse, error)
	// TallyResult queries the tally of a proposal votes.
	TallyResult(context.Context, *QueryTallyResultRequest) (*QueryTallyResultResponse, error)
	// Censorships queries the censorship informations.
	Censorships(context.Context, *QueryCensorshipsRequest) (*QueryCensorshipsResponse, error)
	// Returns list of authorizations, granted to the grantee.
	Grants(context.Context, *QueryGrantsRequest) (*QueryGrantsResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QueryTallyResultRequest

type QueryTallyResultRequest struct {

	// proposal_id is the unique id of a proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

QueryTallyResultRequest is the Query/TallyResult request type.

func (*QueryTallyResultRequest) Descriptor deprecated

func (*QueryTallyResultRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryTallyResultRequest.ProtoReflect.Descriptor instead.

func (*QueryTallyResultRequest) GetProposalId

func (x *QueryTallyResultRequest) GetProposalId() uint64

func (*QueryTallyResultRequest) ProtoMessage

func (*QueryTallyResultRequest) ProtoMessage()

func (*QueryTallyResultRequest) ProtoReflect

func (x *QueryTallyResultRequest) ProtoReflect() protoreflect.Message

func (*QueryTallyResultRequest) Reset

func (x *QueryTallyResultRequest) Reset()

func (*QueryTallyResultRequest) String

func (x *QueryTallyResultRequest) String() string

type QueryTallyResultResponse

type QueryTallyResultResponse struct {

	// tally defines the requested tally.
	Tally *TallyResult `protobuf:"bytes,1,opt,name=tally,proto3" json:"tally,omitempty"`
	// contains filtered or unexported fields
}

QueryTallyResultResponse is the Query/TallyResult response type.

func (*QueryTallyResultResponse) Descriptor deprecated

func (*QueryTallyResultResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryTallyResultResponse.ProtoReflect.Descriptor instead.

func (*QueryTallyResultResponse) GetTally

func (x *QueryTallyResultResponse) GetTally() *TallyResult

func (*QueryTallyResultResponse) ProtoMessage

func (*QueryTallyResultResponse) ProtoMessage()

func (*QueryTallyResultResponse) ProtoReflect

func (x *QueryTallyResultResponse) ProtoReflect() protoreflect.Message

func (*QueryTallyResultResponse) Reset

func (x *QueryTallyResultResponse) Reset()

func (*QueryTallyResultResponse) String

func (x *QueryTallyResultResponse) String() string

type QueryTreasuryRequest

type QueryTreasuryRequest struct {
	// contains filtered or unexported fields
}

QueryTreasuryRequest is the request type for the Query/Treasury RPC method.

func (*QueryTreasuryRequest) Descriptor deprecated

func (*QueryTreasuryRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryTreasuryRequest.ProtoReflect.Descriptor instead.

func (*QueryTreasuryRequest) ProtoMessage

func (*QueryTreasuryRequest) ProtoMessage()

func (*QueryTreasuryRequest) ProtoReflect

func (x *QueryTreasuryRequest) ProtoReflect() protoreflect.Message

func (*QueryTreasuryRequest) Reset

func (x *QueryTreasuryRequest) Reset()

func (*QueryTreasuryRequest) String

func (x *QueryTreasuryRequest) String() string

type QueryTreasuryResponse

type QueryTreasuryResponse struct {
	Amount []*types.DecCoin `protobuf:"bytes,1,rep,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

QueryTreasuryResponse is the response type for the Query/Treasury RPC method.

func (*QueryTreasuryResponse) Descriptor deprecated

func (*QueryTreasuryResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryTreasuryResponse.ProtoReflect.Descriptor instead.

func (*QueryTreasuryResponse) GetAmount

func (x *QueryTreasuryResponse) GetAmount() []*types.DecCoin

func (*QueryTreasuryResponse) ProtoMessage

func (*QueryTreasuryResponse) ProtoMessage()

func (*QueryTreasuryResponse) ProtoReflect

func (x *QueryTreasuryResponse) ProtoReflect() protoreflect.Message

func (*QueryTreasuryResponse) Reset

func (x *QueryTreasuryResponse) Reset()

func (*QueryTreasuryResponse) String

func (x *QueryTreasuryResponse) String() string

type QueryVoteRequest

type QueryVoteRequest struct {

	// proposal_id is the unique ID of a proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// voter is a proposal voter account address.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// contains filtered or unexported fields
}

QueryVote is the Query/Vote request type.

func (*QueryVoteRequest) Descriptor deprecated

func (*QueryVoteRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryVoteRequest.ProtoReflect.Descriptor instead.

func (*QueryVoteRequest) GetProposalId

func (x *QueryVoteRequest) GetProposalId() uint64

func (*QueryVoteRequest) GetVoter

func (x *QueryVoteRequest) GetVoter() string

func (*QueryVoteRequest) ProtoMessage

func (*QueryVoteRequest) ProtoMessage()

func (*QueryVoteRequest) ProtoReflect

func (x *QueryVoteRequest) ProtoReflect() protoreflect.Message

func (*QueryVoteRequest) Reset

func (x *QueryVoteRequest) Reset()

func (*QueryVoteRequest) String

func (x *QueryVoteRequest) String() string

type QueryVoteResponse

type QueryVoteResponse struct {

	// vote is the vote with given proposal_id and voter.
	Vote *Vote `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"`
	// contains filtered or unexported fields
}

QueryVoteResponse is the Query/Vote response type.

func (*QueryVoteResponse) Descriptor deprecated

func (*QueryVoteResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryVoteResponse.ProtoReflect.Descriptor instead.

func (*QueryVoteResponse) GetVote

func (x *QueryVoteResponse) GetVote() *Vote

func (*QueryVoteResponse) ProtoMessage

func (*QueryVoteResponse) ProtoMessage()

func (*QueryVoteResponse) ProtoReflect

func (x *QueryVoteResponse) ProtoReflect() protoreflect.Message

func (*QueryVoteResponse) Reset

func (x *QueryVoteResponse) Reset()

func (*QueryVoteResponse) String

func (x *QueryVoteResponse) String() string

type QueryVotesRequest

type QueryVotesRequest struct {

	// proposal_id is the unique ID of a proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryVotes is the Query/Votes request type.

func (*QueryVotesRequest) Descriptor deprecated

func (*QueryVotesRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryVotesRequest.ProtoReflect.Descriptor instead.

func (*QueryVotesRequest) GetPagination

func (x *QueryVotesRequest) GetPagination() *query.PageRequest

func (*QueryVotesRequest) GetProposalId

func (x *QueryVotesRequest) GetProposalId() uint64

func (*QueryVotesRequest) ProtoMessage

func (*QueryVotesRequest) ProtoMessage()

func (*QueryVotesRequest) ProtoReflect

func (x *QueryVotesRequest) ProtoReflect() protoreflect.Message

func (*QueryVotesRequest) Reset

func (x *QueryVotesRequest) Reset()

func (*QueryVotesRequest) String

func (x *QueryVotesRequest) String() string

type QueryVotesResponse

type QueryVotesResponse struct {

	// votes are the list of votes for given proposal_id.
	Votes []*Vote `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryVotesResponse is the Query/Votes response type.

func (*QueryVotesResponse) Descriptor deprecated

func (*QueryVotesResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryVotesResponse.ProtoReflect.Descriptor instead.

func (*QueryVotesResponse) GetPagination

func (x *QueryVotesResponse) GetPagination() *query.PageResponse

func (*QueryVotesResponse) GetVotes

func (x *QueryVotesResponse) GetVotes() []*Vote

func (*QueryVotesResponse) ProtoMessage

func (*QueryVotesResponse) ProtoMessage()

func (*QueryVotesResponse) ProtoReflect

func (x *QueryVotesResponse) ProtoReflect() protoreflect.Message

func (*QueryVotesResponse) Reset

func (x *QueryVotesResponse) Reset()

func (*QueryVotesResponse) String

func (x *QueryVotesResponse) String() string

type ReceiveFromTreasuryAuthorization

type ReceiveFromTreasuryAuthorization struct {
	// contains filtered or unexported fields
}

ReceiveFromTreasuryAuthorization allows the grantee to receive coins up to receive_limit from the treasury.

func (*ReceiveFromTreasuryAuthorization) Descriptor deprecated

func (*ReceiveFromTreasuryAuthorization) Descriptor() ([]byte, []int)

Deprecated: Use ReceiveFromTreasuryAuthorization.ProtoReflect.Descriptor instead.

func (*ReceiveFromTreasuryAuthorization) ProtoMessage

func (*ReceiveFromTreasuryAuthorization) ProtoMessage()

func (*ReceiveFromTreasuryAuthorization) ProtoReflect

func (*ReceiveFromTreasuryAuthorization) Reset

func (*ReceiveFromTreasuryAuthorization) String

type TallyResult

type TallyResult struct {

	// yes_count is the sum of yes votes.
	YesCount string `protobuf:"bytes,1,opt,name=yes_count,json=yesCount,proto3" json:"yes_count,omitempty"`
	// abstain_count is the sum of abstainers.
	AbstainCount string `protobuf:"bytes,2,opt,name=abstain_count,json=abstainCount,proto3" json:"abstain_count,omitempty"`
	// no is the sum of no votes.
	NoCount string `protobuf:"bytes,3,opt,name=no_count,json=noCount,proto3" json:"no_count,omitempty"`
	// no_with_veto_count is the sum of veto.
	NoWithVetoCount string `protobuf:"bytes,4,opt,name=no_with_veto_count,json=noWithVetoCount,proto3" json:"no_with_veto_count,omitempty"`
	// contains filtered or unexported fields
}

TallyResult represents the sum of votes for each vote option.

func (*TallyResult) Descriptor deprecated

func (*TallyResult) Descriptor() ([]byte, []int)

Deprecated: Use TallyResult.ProtoReflect.Descriptor instead.

func (*TallyResult) GetAbstainCount

func (x *TallyResult) GetAbstainCount() string

func (*TallyResult) GetNoCount

func (x *TallyResult) GetNoCount() string

func (*TallyResult) GetNoWithVetoCount

func (x *TallyResult) GetNoWithVetoCount() string

func (*TallyResult) GetYesCount

func (x *TallyResult) GetYesCount() string

func (*TallyResult) ProtoMessage

func (*TallyResult) ProtoMessage()

func (*TallyResult) ProtoReflect

func (x *TallyResult) ProtoReflect() protoreflect.Message

func (*TallyResult) Reset

func (x *TallyResult) Reset()

func (*TallyResult) String

func (x *TallyResult) String() string

type ThresholdDecisionPolicy

type ThresholdDecisionPolicy struct {

	// threshold is the minimum sum of yes votes that must be met or exceeded for a proposal to succeed.
	Threshold string `protobuf:"bytes,1,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// windows defines the different windows for voting and execution.
	Windows *DecisionPolicyWindows `protobuf:"bytes,2,opt,name=windows,proto3" json:"windows,omitempty"`
	// contains filtered or unexported fields
}

ThresholdDecisionPolicy is a decision policy where a proposal passes when it satisfies the two following conditions:

  1. The sum of all `YES` voters' weights is greater or equal than the defined `threshold`.
  2. The voting and execution periods of the proposal respect the parameters given by `windows`.

func (*ThresholdDecisionPolicy) Descriptor deprecated

func (*ThresholdDecisionPolicy) Descriptor() ([]byte, []int)

Deprecated: Use ThresholdDecisionPolicy.ProtoReflect.Descriptor instead.

func (*ThresholdDecisionPolicy) GetThreshold

func (x *ThresholdDecisionPolicy) GetThreshold() string

func (*ThresholdDecisionPolicy) GetWindows

func (*ThresholdDecisionPolicy) ProtoMessage

func (*ThresholdDecisionPolicy) ProtoMessage()

func (*ThresholdDecisionPolicy) ProtoReflect

func (x *ThresholdDecisionPolicy) ProtoReflect() protoreflect.Message

func (*ThresholdDecisionPolicy) Reset

func (x *ThresholdDecisionPolicy) Reset()

func (*ThresholdDecisionPolicy) String

func (x *ThresholdDecisionPolicy) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) Exec

func (UnimplementedMsgServer) FundTreasury

func (UnimplementedMsgServer) Grant

func (UnimplementedMsgServer) LeaveFoundation

func (UnimplementedMsgServer) Revoke

func (UnimplementedMsgServer) SubmitProposal

func (UnimplementedMsgServer) UpdateCensorship

func (UnimplementedMsgServer) UpdateMembers

func (UnimplementedMsgServer) Vote

func (UnimplementedMsgServer) WithdrawProposal

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Grants

func (UnimplementedQueryServer) Member

func (UnimplementedQueryServer) Members

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Proposal

func (UnimplementedQueryServer) Proposals

func (UnimplementedQueryServer) Treasury

func (UnimplementedQueryServer) Vote

func (UnimplementedQueryServer) Votes

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

type Vote

type Vote struct {

	// proposal is the unique ID of the proposal.
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// voter is the account address of the voter.
	Voter string `protobuf:"bytes,2,opt,name=voter,proto3" json:"voter,omitempty"`
	// option is the voter's choice on the proposal.
	Option VoteOption `protobuf:"varint,3,opt,name=option,proto3,enum=lbm.foundation.v1.VoteOption" json:"option,omitempty"`
	// metadata is any arbitrary metadata to attached to the vote.
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// submit_time is the timestamp when the vote was submitted.
	SubmitTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=submit_time,json=submitTime,proto3" json:"submit_time,omitempty"`
	// contains filtered or unexported fields
}

Vote represents a vote for a proposal.

func (*Vote) Descriptor deprecated

func (*Vote) Descriptor() ([]byte, []int)

Deprecated: Use Vote.ProtoReflect.Descriptor instead.

func (*Vote) GetMetadata

func (x *Vote) GetMetadata() string

func (*Vote) GetOption

func (x *Vote) GetOption() VoteOption

func (*Vote) GetProposalId

func (x *Vote) GetProposalId() uint64

func (*Vote) GetSubmitTime

func (x *Vote) GetSubmitTime() *timestamppb.Timestamp

func (*Vote) GetVoter

func (x *Vote) GetVoter() string

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) ProtoReflect

func (x *Vote) ProtoReflect() protoreflect.Message

func (*Vote) Reset

func (x *Vote) Reset()

func (*Vote) String

func (x *Vote) String() string

type VoteOption

type VoteOption int32

VoteOption enumerates the valid vote options for a given proposal.

const (
	// VOTE_OPTION_UNSPECIFIED defines a no-op vote option.
	VoteOption_VOTE_OPTION_UNSPECIFIED VoteOption = 0
	// VOTE_OPTION_YES defines a yes vote option.
	VoteOption_VOTE_OPTION_YES VoteOption = 1
	// VOTE_OPTION_ABSTAIN defines an abstain vote option.
	VoteOption_VOTE_OPTION_ABSTAIN VoteOption = 2
	// VOTE_OPTION_NO defines a no vote option.
	VoteOption_VOTE_OPTION_NO VoteOption = 3
	// VOTE_OPTION_NO_WITH_VETO defines a no with veto vote option.
	VoteOption_VOTE_OPTION_NO_WITH_VETO VoteOption = 4
)

func (VoteOption) Descriptor

func (VoteOption) Descriptor() protoreflect.EnumDescriptor

func (VoteOption) Enum

func (x VoteOption) Enum() *VoteOption

func (VoteOption) EnumDescriptor deprecated

func (VoteOption) EnumDescriptor() ([]byte, []int)

Deprecated: Use VoteOption.Descriptor instead.

func (VoteOption) Number

func (x VoteOption) Number() protoreflect.EnumNumber

func (VoteOption) String

func (x VoteOption) String() string

func (VoteOption) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL