multisigv1

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	ProposalStatus_name = map[int32]string{
		0: "PROPOSAL_STATUS_UNSPECIFIED",
		1: "PROPOSAL_STATUS_VOTING_PERIOD",
		2: "PROPOSAL_STATUS_PASSED",
		3: "PROPOSAL_STATUS_REJECTED",
	}
	ProposalStatus_value = map[string]int32{
		"PROPOSAL_STATUS_UNSPECIFIED":   0,
		"PROPOSAL_STATUS_VOTING_PERIOD": 1,
		"PROPOSAL_STATUS_PASSED":        2,
		"PROPOSAL_STATUS_REJECTED":      3,
	}
)

Enum value maps for ProposalStatus.

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

Enum value maps for VoteOption.

View Source
var File_cosmos_accounts_defaults_multisig_v1_multisig_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Config

type Config struct {

	// threshold is the minimum weight required for a proposal to pass.
	Threshold int64 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// quorum is the minimum number of members that need to vote for a proposal to pass.
	Quorum int64 `protobuf:"varint,2,opt,name=quorum,proto3" json:"quorum,omitempty"`
	// voting_period is the duration in seconds for the voting period.
	VotingPeriod int64 `protobuf:"varint,3,opt,name=voting_period,json=votingPeriod,proto3" json:"voting_period,omitempty"`
	// revote defines if members can change their vote.
	Revote bool `protobuf:"varint,4,opt,name=revote,proto3" json:"revote,omitempty"`
	// early_execution defines if the multisig can be executed before the voting period ends.
	EarlyExecution bool `protobuf:"varint,5,opt,name=early_execution,json=earlyExecution,proto3" json:"early_execution,omitempty"`
	// contains filtered or unexported fields
}

Config defines the configuration of the multisig account.

func (*Config) Descriptor deprecated

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetEarlyExecution

func (x *Config) GetEarlyExecution() bool

func (*Config) GetQuorum

func (x *Config) GetQuorum() int64

func (*Config) GetRevote

func (x *Config) GetRevote() bool

func (*Config) GetThreshold

func (x *Config) GetThreshold() int64

func (*Config) GetVotingPeriod

func (x *Config) GetVotingPeriod() int64

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) ProtoReflect

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

func (*Config) Reset

func (x *Config) Reset()

func (*Config) String

func (x *Config) String() string

type Member

type Member struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Weight  uint64 `protobuf:"varint,2,opt,name=weight,proto3" json:"weight,omitempty"`
	// contains filtered or unexported fields
}

Member defines the member of the multisig account.

func (*Member) Descriptor deprecated

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

Deprecated: Use Member.ProtoReflect.Descriptor instead.

func (*Member) GetAddress

func (x *Member) GetAddress() string

func (*Member) GetWeight

func (x *Member) GetWeight() uint64

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 MsgCreateProposal

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

MsgCreateProposal creates a new proposal.

func (*MsgCreateProposal) Descriptor deprecated

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

Deprecated: Use MsgCreateProposal.ProtoReflect.Descriptor instead.

func (*MsgCreateProposal) GetProposal

func (x *MsgCreateProposal) GetProposal() *Proposal

func (*MsgCreateProposal) ProtoMessage

func (*MsgCreateProposal) ProtoMessage()

func (*MsgCreateProposal) ProtoReflect

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

func (*MsgCreateProposal) Reset

func (x *MsgCreateProposal) Reset()

func (*MsgCreateProposal) String

func (x *MsgCreateProposal) String() string

type MsgCreateProposalResponse

type MsgCreateProposalResponse struct {
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateProposalResponse is the response returned after creating a proposal.

func (*MsgCreateProposalResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateProposalResponse) GetProposalId

func (x *MsgCreateProposalResponse) GetProposalId() uint64

func (*MsgCreateProposalResponse) ProtoMessage

func (*MsgCreateProposalResponse) ProtoMessage()

func (*MsgCreateProposalResponse) ProtoReflect

func (*MsgCreateProposalResponse) Reset

func (x *MsgCreateProposalResponse) Reset()

func (*MsgCreateProposalResponse) String

func (x *MsgCreateProposalResponse) String() string

type MsgExecuteProposal

type MsgExecuteProposal struct {
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

MsgExecuteProposal is used to execute a proposal.

func (*MsgExecuteProposal) Descriptor deprecated

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

Deprecated: Use MsgExecuteProposal.ProtoReflect.Descriptor instead.

func (*MsgExecuteProposal) GetProposalId

func (x *MsgExecuteProposal) GetProposalId() uint64

func (*MsgExecuteProposal) ProtoMessage

func (*MsgExecuteProposal) ProtoMessage()

func (*MsgExecuteProposal) ProtoReflect

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

func (*MsgExecuteProposal) Reset

func (x *MsgExecuteProposal) Reset()

func (*MsgExecuteProposal) String

func (x *MsgExecuteProposal) String() string

type MsgExecuteProposalResponse

type MsgExecuteProposalResponse struct {
	Responses []*anypb.Any `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
	// contains filtered or unexported fields
}

MsgExecuteProposalResponse is the response returned after executing a proposal.

func (*MsgExecuteProposalResponse) Descriptor deprecated

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

Deprecated: Use MsgExecuteProposalResponse.ProtoReflect.Descriptor instead.

func (*MsgExecuteProposalResponse) GetResponses

func (x *MsgExecuteProposalResponse) GetResponses() []*anypb.Any

func (*MsgExecuteProposalResponse) ProtoMessage

func (*MsgExecuteProposalResponse) ProtoMessage()

func (*MsgExecuteProposalResponse) ProtoReflect

func (*MsgExecuteProposalResponse) Reset

func (x *MsgExecuteProposalResponse) Reset()

func (*MsgExecuteProposalResponse) String

func (x *MsgExecuteProposalResponse) String() string

type MsgInit

type MsgInit struct {

	// members are the members of the multisig account.
	Members []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// config is the configuration of the multisig account.
	Config *Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

MsgInit is used to initialize a multisig account.

func (*MsgInit) Descriptor deprecated

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

Deprecated: Use MsgInit.ProtoReflect.Descriptor instead.

func (*MsgInit) GetConfig

func (x *MsgInit) GetConfig() *Config

func (*MsgInit) GetMembers

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

func (*MsgInit) ProtoMessage

func (*MsgInit) ProtoMessage()

func (*MsgInit) ProtoReflect

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

func (*MsgInit) Reset

func (x *MsgInit) Reset()

func (*MsgInit) String

func (x *MsgInit) String() string

type MsgInitResponse

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

MsgInitResponse is the response returned after account initialization.

func (*MsgInitResponse) Descriptor deprecated

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

Deprecated: Use MsgInitResponse.ProtoReflect.Descriptor instead.

func (*MsgInitResponse) ProtoMessage

func (*MsgInitResponse) ProtoMessage()

func (*MsgInitResponse) ProtoReflect

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

func (*MsgInitResponse) Reset

func (x *MsgInitResponse) Reset()

func (*MsgInitResponse) String

func (x *MsgInitResponse) String() string

type MsgUpdateConfig

type MsgUpdateConfig struct {

	// only the members that are changing are required, if their weight is 0, they are removed.
	UpdateMembers []*Member `protobuf:"bytes,1,rep,name=update_members,json=updateMembers,proto3" json:"update_members,omitempty"`
	// not all fields from Config can be changed
	Config *Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateConfig is used to change the config or members.

func (*MsgUpdateConfig) Descriptor deprecated

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

Deprecated: Use MsgUpdateConfig.ProtoReflect.Descriptor instead.

func (*MsgUpdateConfig) GetConfig

func (x *MsgUpdateConfig) GetConfig() *Config

func (*MsgUpdateConfig) GetUpdateMembers

func (x *MsgUpdateConfig) GetUpdateMembers() []*Member

func (*MsgUpdateConfig) ProtoMessage

func (*MsgUpdateConfig) ProtoMessage()

func (*MsgUpdateConfig) ProtoReflect

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

func (*MsgUpdateConfig) Reset

func (x *MsgUpdateConfig) Reset()

func (*MsgUpdateConfig) String

func (x *MsgUpdateConfig) String() string

type MsgUpdateConfigResponse

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

MsgUpdateConfigResponse is the response returned after updating the config.

func (*MsgUpdateConfigResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateConfigResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateConfigResponse) ProtoMessage

func (*MsgUpdateConfigResponse) ProtoMessage()

func (*MsgUpdateConfigResponse) ProtoReflect

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

func (*MsgUpdateConfigResponse) Reset

func (x *MsgUpdateConfigResponse) Reset()

func (*MsgUpdateConfigResponse) String

func (x *MsgUpdateConfigResponse) String() string

type MsgVote

type MsgVote struct {
	ProposalId uint64     `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	Vote       VoteOption `protobuf:"varint,2,opt,name=vote,proto3,enum=cosmos.accounts.defaults.multisig.v1.VoteOption" json:"vote,omitempty"`
	// contains filtered or unexported fields
}

MsgVote is used to vote on a proposal.

func (*MsgVote) Descriptor deprecated

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

Deprecated: Use MsgVote.ProtoReflect.Descriptor instead.

func (*MsgVote) GetProposalId

func (x *MsgVote) GetProposalId() uint64

func (*MsgVote) GetVote

func (x *MsgVote) GetVote() VoteOption

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 response returned after voting on a proposal.

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 Proposal

type Proposal struct {

	// title is the title of the proposal.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// summary is the summary of the proposal.
	Summary string `protobuf:"bytes,2,opt,name=summary,proto3" json:"summary,omitempty"`
	// messages are the messages that will be executed
	Messages []*anypb.Any `protobuf:"bytes,3,rep,name=messages,proto3" json:"messages,omitempty"`
	// voting_period_end will be set by the account when the proposal is created.
	VotingPeriodEnd int64 `protobuf:"varint,4,opt,name=voting_period_end,json=votingPeriodEnd,proto3" json:"voting_period_end,omitempty"`
	// status is the current status of the proposal.
	Status ProposalStatus `protobuf:"varint,5,opt,name=status,proto3,enum=cosmos.accounts.defaults.multisig.v1.ProposalStatus" json:"status,omitempty"`
	// contains filtered or unexported fields
}

Proposal defines the structure of a proposal.

func (*Proposal) Descriptor deprecated

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

Deprecated: Use Proposal.ProtoReflect.Descriptor instead.

func (*Proposal) GetMessages

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

func (*Proposal) GetStatus

func (x *Proposal) GetStatus() ProposalStatus

func (*Proposal) GetSummary

func (x *Proposal) GetSummary() string

func (*Proposal) GetTitle

func (x *Proposal) GetTitle() string

func (*Proposal) GetVotingPeriodEnd

func (x *Proposal) GetVotingPeriodEnd() int64

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 ProposalStatus

type ProposalStatus int32

ProposalStatus enumerates the valid proposal statuses.

const (
	// PROPOSAL_STATUS_UNSPECIFIED defines a no-op proposal status.
	ProposalStatus_PROPOSAL_STATUS_UNSPECIFIED ProposalStatus = 0
	// PROPOSAL_STATUS_VOTING_PERIOD defines the proposal status during the voting period.
	ProposalStatus_PROPOSAL_STATUS_VOTING_PERIOD ProposalStatus = 1
	// PROPOSAL_STATUS_PASSED defines the proposal status when the proposal passed.
	ProposalStatus_PROPOSAL_STATUS_PASSED ProposalStatus = 2
	// PROPOSAL_STATUS_REJECTED defines the proposal status when the proposal was rejected.
	ProposalStatus_PROPOSAL_STATUS_REJECTED ProposalStatus = 3
)

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 QueryConfig

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

QueryConfig is the request for the account config.

func (*QueryConfig) Descriptor deprecated

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

Deprecated: Use QueryConfig.ProtoReflect.Descriptor instead.

func (*QueryConfig) ProtoMessage

func (*QueryConfig) ProtoMessage()

func (*QueryConfig) ProtoReflect

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

func (*QueryConfig) Reset

func (x *QueryConfig) Reset()

func (*QueryConfig) String

func (x *QueryConfig) String() string

type QueryConfigResponse

type QueryConfigResponse struct {

	// members are the current members of the account.
	Members []*Member `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"`
	// config is the current config of the account.
	Config *Config `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

QueryConfigResponse returns the config of the account.

func (*QueryConfigResponse) Descriptor deprecated

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

Deprecated: Use QueryConfigResponse.ProtoReflect.Descriptor instead.

func (*QueryConfigResponse) GetConfig

func (x *QueryConfigResponse) GetConfig() *Config

func (*QueryConfigResponse) GetMembers

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

func (*QueryConfigResponse) ProtoMessage

func (*QueryConfigResponse) ProtoMessage()

func (*QueryConfigResponse) ProtoReflect

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

func (*QueryConfigResponse) Reset

func (x *QueryConfigResponse) Reset()

func (*QueryConfigResponse) String

func (x *QueryConfigResponse) String() string

type QueryProposal

type QueryProposal struct {
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
	// contains filtered or unexported fields
}

QueryProposal is the request for a proposal.

func (*QueryProposal) Descriptor deprecated

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

Deprecated: Use QueryProposal.ProtoReflect.Descriptor instead.

func (*QueryProposal) GetProposalId

func (x *QueryProposal) GetProposalId() uint64

func (*QueryProposal) ProtoMessage

func (*QueryProposal) ProtoMessage()

func (*QueryProposal) ProtoReflect

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

func (*QueryProposal) Reset

func (x *QueryProposal) Reset()

func (*QueryProposal) String

func (x *QueryProposal) String() string

type QueryProposalResponse

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

QueryProposalResponse returns the proposal.

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 QuerySequence

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

QuerySequence is the request for the account sequence.

func (*QuerySequence) Descriptor deprecated

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

Deprecated: Use QuerySequence.ProtoReflect.Descriptor instead.

func (*QuerySequence) ProtoMessage

func (*QuerySequence) ProtoMessage()

func (*QuerySequence) ProtoReflect

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

func (*QuerySequence) Reset

func (x *QuerySequence) Reset()

func (*QuerySequence) String

func (x *QuerySequence) String() string

type QuerySequenceResponse

type QuerySequenceResponse struct {

	// sequence is the current sequence of the account.
	Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"`
	// contains filtered or unexported fields
}

QuerySequenceResponse returns the sequence of the account.

func (*QuerySequenceResponse) Descriptor deprecated

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

Deprecated: Use QuerySequenceResponse.ProtoReflect.Descriptor instead.

func (*QuerySequenceResponse) GetSequence

func (x *QuerySequenceResponse) GetSequence() uint64

func (*QuerySequenceResponse) ProtoMessage

func (*QuerySequenceResponse) ProtoMessage()

func (*QuerySequenceResponse) ProtoReflect

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

func (*QuerySequenceResponse) Reset

func (x *QuerySequenceResponse) Reset()

func (*QuerySequenceResponse) String

func (x *QuerySequenceResponse) 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 the yes proposal vote option.
	VoteOption_VOTE_OPTION_YES VoteOption = 1
	// VOTE_OPTION_ABSTAIN defines the abstain proposal vote option.
	VoteOption_VOTE_OPTION_ABSTAIN VoteOption = 2
	// VOTE_OPTION_NO defines the no proposal vote option.
	VoteOption_VOTE_OPTION_NO VoteOption = 3
)

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