Documentation ¶
Index ¶
- Variables
- type PollID
- type PollKeydeprecated
- func (*PollKey) Descriptor() ([]byte, []int)
- func (m *PollKey) Marshal() (dAtA []byte, err error)
- func (m *PollKey) MarshalTo(dAtA []byte) (int, error)
- func (m *PollKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PollKey) ProtoMessage()
- func (m *PollKey) Reset()
- func (m *PollKey) Size() (n int)
- func (m PollKey) String() stringdeprecated
- func (m *PollKey) Unmarshal(dAtA []byte) error
- func (m *PollKey) XXX_DiscardUnknown()
- func (m *PollKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PollKey) XXX_Merge(src proto.Message)
- func (m *PollKey) XXX_Size() int
- func (m *PollKey) XXX_Unmarshal(b []byte) error
- 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) 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 PollParticipants
- func (*PollParticipants) Descriptor() ([]byte, []int)
- func (m *PollParticipants) Marshal() (dAtA []byte, err error)
- func (m *PollParticipants) MarshalTo(dAtA []byte) (int, error)
- func (m *PollParticipants) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PollParticipants) ProtoMessage()
- func (m *PollParticipants) Reset()
- func (m *PollParticipants) Size() (n int)
- func (m *PollParticipants) String() string
- func (m *PollParticipants) Unmarshal(dAtA []byte) error
- func (m *PollParticipants) XXX_DiscardUnknown()
- func (m *PollParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PollParticipants) XXX_Merge(src proto.Message)
- func (m *PollParticipants) XXX_Size() int
- func (m *PollParticipants) XXX_Unmarshal(b []byte) error
- type PollState
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
View Source
var PollState_name = map[int32]string{
0: "POLL_STATE_UNSPECIFIED",
1: "POLL_STATE_PENDING",
2: "POLL_STATE_COMPLETED",
3: "POLL_STATE_FAILED",
}
View Source
var PollState_value = map[string]int32{
"POLL_STATE_UNSPECIFIED": 0,
"POLL_STATE_PENDING": 1,
"POLL_STATE_COMPLETED": 2,
"POLL_STATE_FAILED": 3,
}
Functions ¶
This section is empty.
Types ¶
type PollKey
deprecated
type PollKey struct { Module string `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` }
PollKey represents the key data for a poll
Deprecated: Do not use.
func (*PollKey) Descriptor ¶
func (*PollKey) MarshalToSizedBuffer ¶
func (*PollKey) ProtoMessage ¶
func (*PollKey) ProtoMessage()
func (*PollKey) XXX_DiscardUnknown ¶
func (m *PollKey) XXX_DiscardUnknown()
func (*PollKey) XXX_Marshal ¶
func (*PollKey) XXX_Unmarshal ¶
type PollMetadata ¶
type PollMetadata struct { 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 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"` RewardPoolName string `protobuf:"bytes,10,opt,name=reward_pool_name,json=rewardPoolName,proto3" json:"reward_pool_name,omitempty"` GracePeriod int64 `protobuf:"varint,11,opt,name=grace_period,json=gracePeriod,proto3" json:"grace_period,omitempty"` CompletedAt int64 `protobuf:"varint,12,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"` ID PollID `protobuf:"varint,13,opt,name=id,proto3,customtype=PollID" json:"id"` Snapshot exported.Snapshot `protobuf:"bytes,15,opt,name=snapshot,proto3" json:"snapshot"` Module string `protobuf:"bytes,16,opt,name=module,proto3" json:"module,omitempty"` ModuleMetadata *types.Any `protobuf:"bytes,17,opt,name=module_metadata,json=moduleMetadata,proto3" json:"module_metadata,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) 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 PollParticipants ¶
type PollParticipants struct { PollID PollID `protobuf:"varint,1,opt,name=poll_id,json=pollId,proto3,customtype=PollID" json:"poll_id"` Participants []github_com_cosmos_cosmos_sdk_types.ValAddress `` /* 132-byte string literal not displayed */ }
PollParticipants should be embedded in poll events in other modules
func (*PollParticipants) Descriptor ¶
func (*PollParticipants) Descriptor() ([]byte, []int)
func (*PollParticipants) Marshal ¶
func (m *PollParticipants) Marshal() (dAtA []byte, err error)
func (*PollParticipants) MarshalToSizedBuffer ¶
func (m *PollParticipants) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PollParticipants) ProtoMessage ¶
func (*PollParticipants) ProtoMessage()
func (*PollParticipants) Reset ¶
func (m *PollParticipants) Reset()
func (*PollParticipants) Size ¶
func (m *PollParticipants) Size() (n int)
func (*PollParticipants) String ¶
func (m *PollParticipants) String() string
func (*PollParticipants) Unmarshal ¶
func (m *PollParticipants) Unmarshal(dAtA []byte) error
func (*PollParticipants) XXX_DiscardUnknown ¶
func (m *PollParticipants) XXX_DiscardUnknown()
func (*PollParticipants) XXX_Marshal ¶
func (m *PollParticipants) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PollParticipants) XXX_Merge ¶
func (m *PollParticipants) XXX_Merge(src proto.Message)
func (*PollParticipants) XXX_Size ¶
func (m *PollParticipants) XXX_Size() int
func (*PollParticipants) XXX_Unmarshal ¶
func (m *PollParticipants) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.