exported017

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

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

func (m *PollMetadata) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Vote) Marshal

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

func (*Vote) MarshalTo

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

func (*Vote) MarshalToSizedBuffer

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

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) Size

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

func (*Vote) String

func (m *Vote) String() string

func (*Vote) Unmarshal

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

func (*Vote) XXX_DiscardUnknown

func (m *Vote) XXX_DiscardUnknown()

func (*Vote) XXX_Marshal

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

func (*Vote) XXX_Merge

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

func (*Vote) XXX_Size

func (m *Vote) XXX_Size() int

func (*Vote) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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