exported

package
v0.0.0-...-5efa85e Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 11 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")
)
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 PollID

type PollID uint64

PollID represents ID of polls

func (PollID) String

func (id PollID) String() string

String converts the given poll ID to string

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) Descriptor() ([]byte, []int)

func (*PollKey) Marshal

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

func (*PollKey) MarshalTo

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

func (*PollKey) MarshalToSizedBuffer

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

func (*PollKey) ProtoMessage

func (*PollKey) ProtoMessage()

func (*PollKey) Reset

func (m *PollKey) Reset()

func (*PollKey) Size

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

func (PollKey) String deprecated

func (m PollKey) String() string

Deprecated: String converts the given poll key to string

func (*PollKey) Unmarshal

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

func (*PollKey) XXX_DiscardUnknown

func (m *PollKey) XXX_DiscardUnknown()

func (*PollKey) XXX_Marshal

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

func (*PollKey) XXX_Merge

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

func (*PollKey) XXX_Size

func (m *PollKey) XXX_Size() int

func (*PollKey) XXX_Unmarshal

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

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

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

type PollState

type PollState int32
const (
	NonExistent PollState = 0
	Pending     PollState = 1
	Completed   PollState = 2
	Failed      PollState = 3
)

func (PollState) EnumDescriptor

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

func (PollState) String

func (x PollState) String() string

Jump to

Keyboard shortcuts

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