v1

package
v0.0.0-...-3ebd7e5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMultisig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMultisig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMultisig = fmt.Errorf("proto: unexpected end of group")
)
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",
}
View Source
var ProposalStatus_value = map[string]int32{
	"PROPOSAL_STATUS_UNSPECIFIED":   0,
	"PROPOSAL_STATUS_VOTING_PERIOD": 1,
	"PROPOSAL_STATUS_PASSED":        2,
	"PROPOSAL_STATUS_REJECTED":      3,
}
View Source
var VoteOption_name = map[int32]string{
	0: "VOTE_OPTION_UNSPECIFIED",
	1: "VOTE_OPTION_YES",
	2: "VOTE_OPTION_ABSTAIN",
	3: "VOTE_OPTION_NO",
}
View Source
var VoteOption_value = map[string]int32{
	"VOTE_OPTION_UNSPECIFIED": 0,
	"VOTE_OPTION_YES":         1,
	"VOTE_OPTION_ABSTAIN":     2,
	"VOTE_OPTION_NO":          3,
}

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"`
}

Config defines the configuration of the multisig account.

func (*Config) Descriptor

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

func (*Config) GetEarlyExecution

func (m *Config) GetEarlyExecution() bool

func (*Config) GetQuorum

func (m *Config) GetQuorum() int64

func (*Config) GetRevote

func (m *Config) GetRevote() bool

func (*Config) GetThreshold

func (m *Config) GetThreshold() int64

func (*Config) GetVotingPeriod

func (m *Config) GetVotingPeriod() int64

func (*Config) Marshal

func (m *Config) Marshal() (dAtA []byte, err error)

func (*Config) MarshalTo

func (m *Config) MarshalTo(dAtA []byte) (int, error)

func (*Config) MarshalToSizedBuffer

func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) Size

func (m *Config) Size() (n int)

func (*Config) String

func (m *Config) String() string

func (*Config) Unmarshal

func (m *Config) Unmarshal(dAtA []byte) error

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

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"`
}

Member defines the member of the multisig account.

func (*Member) Descriptor

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

func (*Member) GetAddress

func (m *Member) GetAddress() string

func (*Member) GetWeight

func (m *Member) GetWeight() uint64

func (*Member) Marshal

func (m *Member) Marshal() (dAtA []byte, err error)

func (*Member) MarshalTo

func (m *Member) MarshalTo(dAtA []byte) (int, error)

func (*Member) MarshalToSizedBuffer

func (m *Member) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Member) ProtoMessage

func (*Member) ProtoMessage()

func (*Member) Reset

func (m *Member) Reset()

func (*Member) Size

func (m *Member) Size() (n int)

func (*Member) String

func (m *Member) String() string

func (*Member) Unmarshal

func (m *Member) Unmarshal(dAtA []byte) error

func (*Member) XXX_DiscardUnknown

func (m *Member) XXX_DiscardUnknown()

func (*Member) XXX_Marshal

func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Member) XXX_Merge

func (m *Member) XXX_Merge(src proto.Message)

func (*Member) XXX_Size

func (m *Member) XXX_Size() int

func (*Member) XXX_Unmarshal

func (m *Member) XXX_Unmarshal(b []byte) error

type MsgCreateProposal

type MsgCreateProposal struct {
	Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
}

MsgCreateProposal creates a new proposal.

func (*MsgCreateProposal) Descriptor

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

func (*MsgCreateProposal) GetProposal

func (m *MsgCreateProposal) GetProposal() *Proposal

func (*MsgCreateProposal) Marshal

func (m *MsgCreateProposal) Marshal() (dAtA []byte, err error)

func (*MsgCreateProposal) MarshalTo

func (m *MsgCreateProposal) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateProposal) MarshalToSizedBuffer

func (m *MsgCreateProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateProposal) ProtoMessage

func (*MsgCreateProposal) ProtoMessage()

func (*MsgCreateProposal) Reset

func (m *MsgCreateProposal) Reset()

func (*MsgCreateProposal) Size

func (m *MsgCreateProposal) Size() (n int)

func (*MsgCreateProposal) String

func (m *MsgCreateProposal) String() string

func (*MsgCreateProposal) Unmarshal

func (m *MsgCreateProposal) Unmarshal(dAtA []byte) error

func (*MsgCreateProposal) XXX_DiscardUnknown

func (m *MsgCreateProposal) XXX_DiscardUnknown()

func (*MsgCreateProposal) XXX_Marshal

func (m *MsgCreateProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateProposal) XXX_Merge

func (m *MsgCreateProposal) XXX_Merge(src proto.Message)

func (*MsgCreateProposal) XXX_Size

func (m *MsgCreateProposal) XXX_Size() int

func (*MsgCreateProposal) XXX_Unmarshal

func (m *MsgCreateProposal) XXX_Unmarshal(b []byte) error

type MsgCreateProposalResponse

type MsgCreateProposalResponse struct {
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
}

MsgCreateProposalResponse is the response returned after creating a proposal.

func (*MsgCreateProposalResponse) Descriptor

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

func (*MsgCreateProposalResponse) GetProposalId

func (m *MsgCreateProposalResponse) GetProposalId() uint64

func (*MsgCreateProposalResponse) Marshal

func (m *MsgCreateProposalResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateProposalResponse) MarshalTo

func (m *MsgCreateProposalResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateProposalResponse) MarshalToSizedBuffer

func (m *MsgCreateProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateProposalResponse) ProtoMessage

func (*MsgCreateProposalResponse) ProtoMessage()

func (*MsgCreateProposalResponse) Reset

func (m *MsgCreateProposalResponse) Reset()

func (*MsgCreateProposalResponse) Size

func (m *MsgCreateProposalResponse) Size() (n int)

func (*MsgCreateProposalResponse) String

func (m *MsgCreateProposalResponse) String() string

func (*MsgCreateProposalResponse) Unmarshal

func (m *MsgCreateProposalResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateProposalResponse) XXX_DiscardUnknown

func (m *MsgCreateProposalResponse) XXX_DiscardUnknown()

func (*MsgCreateProposalResponse) XXX_Marshal

func (m *MsgCreateProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateProposalResponse) XXX_Merge

func (m *MsgCreateProposalResponse) XXX_Merge(src proto.Message)

func (*MsgCreateProposalResponse) XXX_Size

func (m *MsgCreateProposalResponse) XXX_Size() int

func (*MsgCreateProposalResponse) XXX_Unmarshal

func (m *MsgCreateProposalResponse) XXX_Unmarshal(b []byte) error

type MsgExecuteProposal

type MsgExecuteProposal struct {
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
}

MsgExecuteProposal is used to execute a proposal.

func (*MsgExecuteProposal) Descriptor

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

func (*MsgExecuteProposal) GetProposalId

func (m *MsgExecuteProposal) GetProposalId() uint64

func (*MsgExecuteProposal) Marshal

func (m *MsgExecuteProposal) Marshal() (dAtA []byte, err error)

func (*MsgExecuteProposal) MarshalTo

func (m *MsgExecuteProposal) MarshalTo(dAtA []byte) (int, error)

func (*MsgExecuteProposal) MarshalToSizedBuffer

func (m *MsgExecuteProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgExecuteProposal) ProtoMessage

func (*MsgExecuteProposal) ProtoMessage()

func (*MsgExecuteProposal) Reset

func (m *MsgExecuteProposal) Reset()

func (*MsgExecuteProposal) Size

func (m *MsgExecuteProposal) Size() (n int)

func (*MsgExecuteProposal) String

func (m *MsgExecuteProposal) String() string

func (*MsgExecuteProposal) Unmarshal

func (m *MsgExecuteProposal) Unmarshal(dAtA []byte) error

func (*MsgExecuteProposal) XXX_DiscardUnknown

func (m *MsgExecuteProposal) XXX_DiscardUnknown()

func (*MsgExecuteProposal) XXX_Marshal

func (m *MsgExecuteProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgExecuteProposal) XXX_Merge

func (m *MsgExecuteProposal) XXX_Merge(src proto.Message)

func (*MsgExecuteProposal) XXX_Size

func (m *MsgExecuteProposal) XXX_Size() int

func (*MsgExecuteProposal) XXX_Unmarshal

func (m *MsgExecuteProposal) XXX_Unmarshal(b []byte) error

type MsgExecuteProposalResponse

type MsgExecuteProposalResponse struct {
	Responses []*any.Any `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
}

MsgExecuteProposalResponse is the response returned after executing a proposal.

func (*MsgExecuteProposalResponse) Descriptor

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

func (*MsgExecuteProposalResponse) GetResponses

func (m *MsgExecuteProposalResponse) GetResponses() []*any.Any

func (*MsgExecuteProposalResponse) Marshal

func (m *MsgExecuteProposalResponse) Marshal() (dAtA []byte, err error)

func (*MsgExecuteProposalResponse) MarshalTo

func (m *MsgExecuteProposalResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgExecuteProposalResponse) MarshalToSizedBuffer

func (m *MsgExecuteProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgExecuteProposalResponse) ProtoMessage

func (*MsgExecuteProposalResponse) ProtoMessage()

func (*MsgExecuteProposalResponse) Reset

func (m *MsgExecuteProposalResponse) Reset()

func (*MsgExecuteProposalResponse) Size

func (m *MsgExecuteProposalResponse) Size() (n int)

func (*MsgExecuteProposalResponse) String

func (m *MsgExecuteProposalResponse) String() string

func (*MsgExecuteProposalResponse) Unmarshal

func (m *MsgExecuteProposalResponse) Unmarshal(dAtA []byte) error

func (*MsgExecuteProposalResponse) XXX_DiscardUnknown

func (m *MsgExecuteProposalResponse) XXX_DiscardUnknown()

func (*MsgExecuteProposalResponse) XXX_Marshal

func (m *MsgExecuteProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgExecuteProposalResponse) XXX_Merge

func (m *MsgExecuteProposalResponse) XXX_Merge(src proto.Message)

func (*MsgExecuteProposalResponse) XXX_Size

func (m *MsgExecuteProposalResponse) XXX_Size() int

func (*MsgExecuteProposalResponse) XXX_Unmarshal

func (m *MsgExecuteProposalResponse) XXX_Unmarshal(b []byte) error

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"`
}

MsgInit is used to initialize a multisig account.

func (*MsgInit) Descriptor

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

func (*MsgInit) GetConfig

func (m *MsgInit) GetConfig() *Config

func (*MsgInit) GetMembers

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

func (*MsgInit) Marshal

func (m *MsgInit) Marshal() (dAtA []byte, err error)

func (*MsgInit) MarshalTo

func (m *MsgInit) MarshalTo(dAtA []byte) (int, error)

func (*MsgInit) MarshalToSizedBuffer

func (m *MsgInit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgInit) ProtoMessage

func (*MsgInit) ProtoMessage()

func (*MsgInit) Reset

func (m *MsgInit) Reset()

func (*MsgInit) Size

func (m *MsgInit) Size() (n int)

func (*MsgInit) String

func (m *MsgInit) String() string

func (*MsgInit) Unmarshal

func (m *MsgInit) Unmarshal(dAtA []byte) error

func (*MsgInit) XXX_DiscardUnknown

func (m *MsgInit) XXX_DiscardUnknown()

func (*MsgInit) XXX_Marshal

func (m *MsgInit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgInit) XXX_Merge

func (m *MsgInit) XXX_Merge(src proto.Message)

func (*MsgInit) XXX_Size

func (m *MsgInit) XXX_Size() int

func (*MsgInit) XXX_Unmarshal

func (m *MsgInit) XXX_Unmarshal(b []byte) error

type MsgInitResponse

type MsgInitResponse struct {
}

MsgInitResponse is the response returned after account initialization.

func (*MsgInitResponse) Descriptor

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

func (*MsgInitResponse) Marshal

func (m *MsgInitResponse) Marshal() (dAtA []byte, err error)

func (*MsgInitResponse) MarshalTo

func (m *MsgInitResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgInitResponse) MarshalToSizedBuffer

func (m *MsgInitResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgInitResponse) ProtoMessage

func (*MsgInitResponse) ProtoMessage()

func (*MsgInitResponse) Reset

func (m *MsgInitResponse) Reset()

func (*MsgInitResponse) Size

func (m *MsgInitResponse) Size() (n int)

func (*MsgInitResponse) String

func (m *MsgInitResponse) String() string

func (*MsgInitResponse) Unmarshal

func (m *MsgInitResponse) Unmarshal(dAtA []byte) error

func (*MsgInitResponse) XXX_DiscardUnknown

func (m *MsgInitResponse) XXX_DiscardUnknown()

func (*MsgInitResponse) XXX_Marshal

func (m *MsgInitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgInitResponse) XXX_Merge

func (m *MsgInitResponse) XXX_Merge(src proto.Message)

func (*MsgInitResponse) XXX_Size

func (m *MsgInitResponse) XXX_Size() int

func (*MsgInitResponse) XXX_Unmarshal

func (m *MsgInitResponse) XXX_Unmarshal(b []byte) error

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"`
}

MsgUpdateConfig is used to change the config or members.

func (*MsgUpdateConfig) Descriptor

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

func (*MsgUpdateConfig) GetConfig

func (m *MsgUpdateConfig) GetConfig() *Config

func (*MsgUpdateConfig) GetUpdateMembers

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

func (*MsgUpdateConfig) Marshal

func (m *MsgUpdateConfig) Marshal() (dAtA []byte, err error)

func (*MsgUpdateConfig) MarshalTo

func (m *MsgUpdateConfig) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateConfig) MarshalToSizedBuffer

func (m *MsgUpdateConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateConfig) ProtoMessage

func (*MsgUpdateConfig) ProtoMessage()

func (*MsgUpdateConfig) Reset

func (m *MsgUpdateConfig) Reset()

func (*MsgUpdateConfig) Size

func (m *MsgUpdateConfig) Size() (n int)

func (*MsgUpdateConfig) String

func (m *MsgUpdateConfig) String() string

func (*MsgUpdateConfig) Unmarshal

func (m *MsgUpdateConfig) Unmarshal(dAtA []byte) error

func (*MsgUpdateConfig) XXX_DiscardUnknown

func (m *MsgUpdateConfig) XXX_DiscardUnknown()

func (*MsgUpdateConfig) XXX_Marshal

func (m *MsgUpdateConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateConfig) XXX_Merge

func (m *MsgUpdateConfig) XXX_Merge(src proto.Message)

func (*MsgUpdateConfig) XXX_Size

func (m *MsgUpdateConfig) XXX_Size() int

func (*MsgUpdateConfig) XXX_Unmarshal

func (m *MsgUpdateConfig) XXX_Unmarshal(b []byte) error

type MsgUpdateConfigResponse

type MsgUpdateConfigResponse struct {
}

MsgUpdateConfigResponse is the response returned after updating the config.

func (*MsgUpdateConfigResponse) Descriptor

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

func (*MsgUpdateConfigResponse) Marshal

func (m *MsgUpdateConfigResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateConfigResponse) MarshalTo

func (m *MsgUpdateConfigResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateConfigResponse) MarshalToSizedBuffer

func (m *MsgUpdateConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateConfigResponse) ProtoMessage

func (*MsgUpdateConfigResponse) ProtoMessage()

func (*MsgUpdateConfigResponse) Reset

func (m *MsgUpdateConfigResponse) Reset()

func (*MsgUpdateConfigResponse) Size

func (m *MsgUpdateConfigResponse) Size() (n int)

func (*MsgUpdateConfigResponse) String

func (m *MsgUpdateConfigResponse) String() string

func (*MsgUpdateConfigResponse) Unmarshal

func (m *MsgUpdateConfigResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateConfigResponse) XXX_DiscardUnknown

func (m *MsgUpdateConfigResponse) XXX_DiscardUnknown()

func (*MsgUpdateConfigResponse) XXX_Marshal

func (m *MsgUpdateConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateConfigResponse) XXX_Merge

func (m *MsgUpdateConfigResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateConfigResponse) XXX_Size

func (m *MsgUpdateConfigResponse) XXX_Size() int

func (*MsgUpdateConfigResponse) XXX_Unmarshal

func (m *MsgUpdateConfigResponse) XXX_Unmarshal(b []byte) error

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"`
}

MsgVote is used to vote on a proposal.

func (*MsgVote) Descriptor

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

func (*MsgVote) GetProposalId

func (m *MsgVote) GetProposalId() uint64

func (*MsgVote) GetVote

func (m *MsgVote) GetVote() VoteOption

func (*MsgVote) Marshal

func (m *MsgVote) Marshal() (dAtA []byte, err error)

func (*MsgVote) MarshalTo

func (m *MsgVote) MarshalTo(dAtA []byte) (int, error)

func (*MsgVote) MarshalToSizedBuffer

func (m *MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgVote) ProtoMessage

func (*MsgVote) ProtoMessage()

func (*MsgVote) Reset

func (m *MsgVote) Reset()

func (*MsgVote) Size

func (m *MsgVote) Size() (n int)

func (*MsgVote) String

func (m *MsgVote) String() string

func (*MsgVote) Unmarshal

func (m *MsgVote) Unmarshal(dAtA []byte) error

func (*MsgVote) XXX_DiscardUnknown

func (m *MsgVote) XXX_DiscardUnknown()

func (*MsgVote) XXX_Marshal

func (m *MsgVote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgVote) XXX_Merge

func (m *MsgVote) XXX_Merge(src proto.Message)

func (*MsgVote) XXX_Size

func (m *MsgVote) XXX_Size() int

func (*MsgVote) XXX_Unmarshal

func (m *MsgVote) XXX_Unmarshal(b []byte) error

type MsgVoteResponse

type MsgVoteResponse struct {
}

MsgVoteResponse is the response returned after voting on a proposal.

func (*MsgVoteResponse) Descriptor

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

func (*MsgVoteResponse) Marshal

func (m *MsgVoteResponse) Marshal() (dAtA []byte, err error)

func (*MsgVoteResponse) MarshalTo

func (m *MsgVoteResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgVoteResponse) MarshalToSizedBuffer

func (m *MsgVoteResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgVoteResponse) ProtoMessage

func (*MsgVoteResponse) ProtoMessage()

func (*MsgVoteResponse) Reset

func (m *MsgVoteResponse) Reset()

func (*MsgVoteResponse) Size

func (m *MsgVoteResponse) Size() (n int)

func (*MsgVoteResponse) String

func (m *MsgVoteResponse) String() string

func (*MsgVoteResponse) Unmarshal

func (m *MsgVoteResponse) Unmarshal(dAtA []byte) error

func (*MsgVoteResponse) XXX_DiscardUnknown

func (m *MsgVoteResponse) XXX_DiscardUnknown()

func (*MsgVoteResponse) XXX_Marshal

func (m *MsgVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgVoteResponse) XXX_Merge

func (m *MsgVoteResponse) XXX_Merge(src proto.Message)

func (*MsgVoteResponse) XXX_Size

func (m *MsgVoteResponse) XXX_Size() int

func (*MsgVoteResponse) XXX_Unmarshal

func (m *MsgVoteResponse) XXX_Unmarshal(b []byte) error

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 []*any.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"`
}

Proposal defines the structure of a proposal.

func (*Proposal) Descriptor

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

func (*Proposal) GetMessages

func (m *Proposal) GetMessages() []*any.Any

func (*Proposal) GetStatus

func (m *Proposal) GetStatus() ProposalStatus

func (*Proposal) GetSummary

func (m *Proposal) GetSummary() string

func (*Proposal) GetTitle

func (m *Proposal) GetTitle() string

func (*Proposal) GetVotingPeriodEnd

func (m *Proposal) GetVotingPeriodEnd() int64

func (*Proposal) Marshal

func (m *Proposal) Marshal() (dAtA []byte, err error)

func (*Proposal) MarshalTo

func (m *Proposal) MarshalTo(dAtA []byte) (int, error)

func (*Proposal) MarshalToSizedBuffer

func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) Size

func (m *Proposal) Size() (n int)

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) Unmarshal

func (m *Proposal) Unmarshal(dAtA []byte) error

func (*Proposal) XXX_DiscardUnknown

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal

func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proposal) XXX_Merge

func (m *Proposal) XXX_Merge(src proto.Message)

func (*Proposal) XXX_Size

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal

func (m *Proposal) XXX_Unmarshal(b []byte) error

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) EnumDescriptor

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

func (ProposalStatus) String

func (x ProposalStatus) String() string

type QueryConfig

type QueryConfig struct {
}

QueryConfig is the request for the account config.

func (*QueryConfig) Descriptor

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

func (*QueryConfig) Marshal

func (m *QueryConfig) Marshal() (dAtA []byte, err error)

func (*QueryConfig) MarshalTo

func (m *QueryConfig) MarshalTo(dAtA []byte) (int, error)

func (*QueryConfig) MarshalToSizedBuffer

func (m *QueryConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryConfig) ProtoMessage

func (*QueryConfig) ProtoMessage()

func (*QueryConfig) Reset

func (m *QueryConfig) Reset()

func (*QueryConfig) Size

func (m *QueryConfig) Size() (n int)

func (*QueryConfig) String

func (m *QueryConfig) String() string

func (*QueryConfig) Unmarshal

func (m *QueryConfig) Unmarshal(dAtA []byte) error

func (*QueryConfig) XXX_DiscardUnknown

func (m *QueryConfig) XXX_DiscardUnknown()

func (*QueryConfig) XXX_Marshal

func (m *QueryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryConfig) XXX_Merge

func (m *QueryConfig) XXX_Merge(src proto.Message)

func (*QueryConfig) XXX_Size

func (m *QueryConfig) XXX_Size() int

func (*QueryConfig) XXX_Unmarshal

func (m *QueryConfig) XXX_Unmarshal(b []byte) error

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"`
}

QueryConfigResponse returns the config of the account.

func (*QueryConfigResponse) Descriptor

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

func (*QueryConfigResponse) GetConfig

func (m *QueryConfigResponse) GetConfig() *Config

func (*QueryConfigResponse) GetMembers

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

func (*QueryConfigResponse) Marshal

func (m *QueryConfigResponse) Marshal() (dAtA []byte, err error)

func (*QueryConfigResponse) MarshalTo

func (m *QueryConfigResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryConfigResponse) MarshalToSizedBuffer

func (m *QueryConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryConfigResponse) ProtoMessage

func (*QueryConfigResponse) ProtoMessage()

func (*QueryConfigResponse) Reset

func (m *QueryConfigResponse) Reset()

func (*QueryConfigResponse) Size

func (m *QueryConfigResponse) Size() (n int)

func (*QueryConfigResponse) String

func (m *QueryConfigResponse) String() string

func (*QueryConfigResponse) Unmarshal

func (m *QueryConfigResponse) Unmarshal(dAtA []byte) error

func (*QueryConfigResponse) XXX_DiscardUnknown

func (m *QueryConfigResponse) XXX_DiscardUnknown()

func (*QueryConfigResponse) XXX_Marshal

func (m *QueryConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryConfigResponse) XXX_Merge

func (m *QueryConfigResponse) XXX_Merge(src proto.Message)

func (*QueryConfigResponse) XXX_Size

func (m *QueryConfigResponse) XXX_Size() int

func (*QueryConfigResponse) XXX_Unmarshal

func (m *QueryConfigResponse) XXX_Unmarshal(b []byte) error

type QueryProposal

type QueryProposal struct {
	ProposalId uint64 `protobuf:"varint,1,opt,name=proposal_id,json=proposalId,proto3" json:"proposal_id,omitempty"`
}

QueryProposal is the request for a proposal.

func (*QueryProposal) Descriptor

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

func (*QueryProposal) GetProposalId

func (m *QueryProposal) GetProposalId() uint64

func (*QueryProposal) Marshal

func (m *QueryProposal) Marshal() (dAtA []byte, err error)

func (*QueryProposal) MarshalTo

func (m *QueryProposal) MarshalTo(dAtA []byte) (int, error)

func (*QueryProposal) MarshalToSizedBuffer

func (m *QueryProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryProposal) ProtoMessage

func (*QueryProposal) ProtoMessage()

func (*QueryProposal) Reset

func (m *QueryProposal) Reset()

func (*QueryProposal) Size

func (m *QueryProposal) Size() (n int)

func (*QueryProposal) String

func (m *QueryProposal) String() string

func (*QueryProposal) Unmarshal

func (m *QueryProposal) Unmarshal(dAtA []byte) error

func (*QueryProposal) XXX_DiscardUnknown

func (m *QueryProposal) XXX_DiscardUnknown()

func (*QueryProposal) XXX_Marshal

func (m *QueryProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryProposal) XXX_Merge

func (m *QueryProposal) XXX_Merge(src proto.Message)

func (*QueryProposal) XXX_Size

func (m *QueryProposal) XXX_Size() int

func (*QueryProposal) XXX_Unmarshal

func (m *QueryProposal) XXX_Unmarshal(b []byte) error

type QueryProposalResponse

type QueryProposalResponse struct {
	Proposal *Proposal `protobuf:"bytes,1,opt,name=proposal,proto3" json:"proposal,omitempty"`
}

QueryProposalResponse returns the proposal.

func (*QueryProposalResponse) Descriptor

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

func (*QueryProposalResponse) GetProposal

func (m *QueryProposalResponse) GetProposal() *Proposal

func (*QueryProposalResponse) Marshal

func (m *QueryProposalResponse) Marshal() (dAtA []byte, err error)

func (*QueryProposalResponse) MarshalTo

func (m *QueryProposalResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryProposalResponse) MarshalToSizedBuffer

func (m *QueryProposalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryProposalResponse) ProtoMessage

func (*QueryProposalResponse) ProtoMessage()

func (*QueryProposalResponse) Reset

func (m *QueryProposalResponse) Reset()

func (*QueryProposalResponse) Size

func (m *QueryProposalResponse) Size() (n int)

func (*QueryProposalResponse) String

func (m *QueryProposalResponse) String() string

func (*QueryProposalResponse) Unmarshal

func (m *QueryProposalResponse) Unmarshal(dAtA []byte) error

func (*QueryProposalResponse) XXX_DiscardUnknown

func (m *QueryProposalResponse) XXX_DiscardUnknown()

func (*QueryProposalResponse) XXX_Marshal

func (m *QueryProposalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryProposalResponse) XXX_Merge

func (m *QueryProposalResponse) XXX_Merge(src proto.Message)

func (*QueryProposalResponse) XXX_Size

func (m *QueryProposalResponse) XXX_Size() int

func (*QueryProposalResponse) XXX_Unmarshal

func (m *QueryProposalResponse) XXX_Unmarshal(b []byte) error

type QuerySequence

type QuerySequence struct {
}

QuerySequence is the request for the account sequence.

func (*QuerySequence) Descriptor

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

func (*QuerySequence) Marshal

func (m *QuerySequence) Marshal() (dAtA []byte, err error)

func (*QuerySequence) MarshalTo

func (m *QuerySequence) MarshalTo(dAtA []byte) (int, error)

func (*QuerySequence) MarshalToSizedBuffer

func (m *QuerySequence) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySequence) ProtoMessage

func (*QuerySequence) ProtoMessage()

func (*QuerySequence) Reset

func (m *QuerySequence) Reset()

func (*QuerySequence) Size

func (m *QuerySequence) Size() (n int)

func (*QuerySequence) String

func (m *QuerySequence) String() string

func (*QuerySequence) Unmarshal

func (m *QuerySequence) Unmarshal(dAtA []byte) error

func (*QuerySequence) XXX_DiscardUnknown

func (m *QuerySequence) XXX_DiscardUnknown()

func (*QuerySequence) XXX_Marshal

func (m *QuerySequence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySequence) XXX_Merge

func (m *QuerySequence) XXX_Merge(src proto.Message)

func (*QuerySequence) XXX_Size

func (m *QuerySequence) XXX_Size() int

func (*QuerySequence) XXX_Unmarshal

func (m *QuerySequence) XXX_Unmarshal(b []byte) error

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"`
}

QuerySequenceResponse returns the sequence of the account.

func (*QuerySequenceResponse) Descriptor

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

func (*QuerySequenceResponse) GetSequence

func (m *QuerySequenceResponse) GetSequence() uint64

func (*QuerySequenceResponse) Marshal

func (m *QuerySequenceResponse) Marshal() (dAtA []byte, err error)

func (*QuerySequenceResponse) MarshalTo

func (m *QuerySequenceResponse) MarshalTo(dAtA []byte) (int, error)

func (*QuerySequenceResponse) MarshalToSizedBuffer

func (m *QuerySequenceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySequenceResponse) ProtoMessage

func (*QuerySequenceResponse) ProtoMessage()

func (*QuerySequenceResponse) Reset

func (m *QuerySequenceResponse) Reset()

func (*QuerySequenceResponse) Size

func (m *QuerySequenceResponse) Size() (n int)

func (*QuerySequenceResponse) String

func (m *QuerySequenceResponse) String() string

func (*QuerySequenceResponse) Unmarshal

func (m *QuerySequenceResponse) Unmarshal(dAtA []byte) error

func (*QuerySequenceResponse) XXX_DiscardUnknown

func (m *QuerySequenceResponse) XXX_DiscardUnknown()

func (*QuerySequenceResponse) XXX_Marshal

func (m *QuerySequenceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySequenceResponse) XXX_Merge

func (m *QuerySequenceResponse) XXX_Merge(src proto.Message)

func (*QuerySequenceResponse) XXX_Size

func (m *QuerySequenceResponse) XXX_Size() int

func (*QuerySequenceResponse) XXX_Unmarshal

func (m *QuerySequenceResponse) XXX_Unmarshal(b []byte) error

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) EnumDescriptor

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

func (VoteOption) String

func (x VoteOption) String() string

Jump to

Keyboard shortcuts

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