Documentation ¶
Index ¶
- Variables
- type PollMetadata
- func (*PollMetadata) Descriptor() ([]byte, []int)
- func (m *PollMetadata) Marshal() (dAtA []byte, err error)
- func (m *PollMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *PollMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PollMetadata) ProtoMessage()
- func (m *PollMetadata) Reset()
- func (m *PollMetadata) Size() (n int)
- func (m *PollMetadata) String() string
- func (m *PollMetadata) Unmarshal(dAtA []byte) error
- func (m PollMetadata) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *PollMetadata) XXX_DiscardUnknown()
- func (m *PollMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PollMetadata) XXX_Merge(src proto.Message)
- func (m *PollMetadata) XXX_Size() int
- func (m *PollMetadata) XXX_Unmarshal(b []byte) error
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)
- func (m *Vote) Marshal() (dAtA []byte, err error)
- func (m *Vote) MarshalTo(dAtA []byte) (int, error)
- func (m *Vote) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Vote) ProtoMessage()
- func (m *Vote) Reset()
- func (m *Vote) Size() (n int)
- func (m *Vote) String() string
- func (m *Vote) Unmarshal(dAtA []byte) error
- func (m *Vote) XXX_DiscardUnknown()
- func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Vote) XXX_Merge(src proto.Message)
- func (m *Vote) XXX_Size() int
- func (m *Vote) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PollMetadata ¶
type PollMetadata struct { Key exported.PollKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key"` ExpiresAt int64 `protobuf:"varint,3,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` Result *types.Any `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` VotingThreshold utils.Threshold `protobuf:"bytes,5,opt,name=voting_threshold,json=votingThreshold,proto3" json:"voting_threshold"` State exported.PollState `protobuf:"varint,6,opt,name=state,proto3,enum=axelar.vote.exported.v1beta1.PollState" json:"state,omitempty"` MinVoterCount int64 `protobuf:"varint,7,opt,name=min_voter_count,json=minVoterCount,proto3" json:"min_voter_count,omitempty"` Voters []exported.Voter `protobuf:"bytes,8,rep,name=voters,proto3" json:"voters"` TotalVotingPower github_com_cosmos_cosmos_sdk_types.Int `` /* 151-byte string literal not displayed */ RewardPoolName string `protobuf:"bytes,10,opt,name=reward_pool_name,json=rewardPoolName,proto3" json:"reward_pool_name,omitempty"` }
PollMetadata represents a poll with write-in voting, i.e. the result of the vote can have any data type
func (*PollMetadata) Descriptor ¶
func (*PollMetadata) Descriptor() ([]byte, []int)
func (*PollMetadata) Marshal ¶
func (m *PollMetadata) Marshal() (dAtA []byte, err error)
func (*PollMetadata) MarshalToSizedBuffer ¶
func (m *PollMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PollMetadata) ProtoMessage ¶
func (*PollMetadata) ProtoMessage()
func (*PollMetadata) Reset ¶
func (m *PollMetadata) Reset()
func (*PollMetadata) Size ¶
func (m *PollMetadata) Size() (n int)
func (*PollMetadata) String ¶
func (m *PollMetadata) String() string
func (*PollMetadata) Unmarshal ¶
func (m *PollMetadata) Unmarshal(dAtA []byte) error
func (PollMetadata) UnpackInterfaces ¶
func (m PollMetadata) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage
func (*PollMetadata) XXX_DiscardUnknown ¶
func (m *PollMetadata) XXX_DiscardUnknown()
func (*PollMetadata) XXX_Marshal ¶
func (m *PollMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PollMetadata) XXX_Merge ¶
func (m *PollMetadata) XXX_Merge(src proto.Message)
func (*PollMetadata) XXX_Size ¶
func (m *PollMetadata) XXX_Size() int
func (*PollMetadata) XXX_Unmarshal ¶
func (m *PollMetadata) XXX_Unmarshal(b []byte) error
type Vote ¶
type Vote struct {
Results []*types.Any `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
}
func (*Vote) Descriptor ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
func (*Vote) XXX_DiscardUnknown ¶
func (m *Vote) XXX_DiscardUnknown()
func (*Vote) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.