Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func StoredVotingKey(index string) []byte
- type AccountKeeper
- type BankKeeper
- type ElectoralRoll
- func (*ElectoralRoll) Descriptor() ([]byte, []int)
- func (m *ElectoralRoll) GetVoters() map[uint64]*Voter
- func (m *ElectoralRoll) Marshal() (dAtA []byte, err error)
- func (m *ElectoralRoll) MarshalTo(dAtA []byte) (int, error)
- func (m *ElectoralRoll) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ElectoralRoll) ProtoMessage()
- func (m *ElectoralRoll) Reset()
- func (m *ElectoralRoll) Size() (n int)
- func (m *ElectoralRoll) String() string
- func (m *ElectoralRoll) Unmarshal(dAtA []byte) error
- func (m *ElectoralRoll) XXX_DiscardUnknown()
- func (m *ElectoralRoll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ElectoralRoll) XXX_Merge(src proto.Message)
- func (m *ElectoralRoll) XXX_Size() int
- func (m *ElectoralRoll) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetStoredVotingList() []StoredVoting
- func (m *GenesisState) GetSystemInfo() SystemInfo
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgAddVoter
- func (*MsgAddVoter) Descriptor() ([]byte, []int)
- func (m *MsgAddVoter) GetCreator() string
- func (m *MsgAddVoter) GetDni() string
- func (m *MsgAddVoter) GetProofId() string
- func (m *MsgAddVoter) GetVotingId() string
- func (m *MsgAddVoter) Marshal() (dAtA []byte, err error)
- func (m *MsgAddVoter) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddVoter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddVoter) ProtoMessage()
- func (m *MsgAddVoter) Reset()
- func (m *MsgAddVoter) Size() (n int)
- func (m *MsgAddVoter) String() string
- func (m *MsgAddVoter) Unmarshal(dAtA []byte) error
- func (msg *MsgAddVoter) ValidateBasic() error
- func (m *MsgAddVoter) XXX_DiscardUnknown()
- func (m *MsgAddVoter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddVoter) XXX_Merge(src proto.Message)
- func (m *MsgAddVoter) XXX_Size() int
- func (m *MsgAddVoter) XXX_Unmarshal(b []byte) error
- type MsgAddVoterResponse
- func (*MsgAddVoterResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddVoterResponse) GetStatus() string
- func (m *MsgAddVoterResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddVoterResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddVoterResponse) ProtoMessage()
- func (m *MsgAddVoterResponse) Reset()
- func (m *MsgAddVoterResponse) Size() (n int)
- func (m *MsgAddVoterResponse) String() string
- func (m *MsgAddVoterResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddVoterResponse) XXX_DiscardUnknown()
- func (m *MsgAddVoterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddVoterResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddVoterResponse) XXX_Size() int
- func (m *MsgAddVoterResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateVoting
- func (*MsgCreateVoting) Descriptor() ([]byte, []int)
- func (m *MsgCreateVoting) GetCandidates() string
- func (m *MsgCreateVoting) GetCreator() string
- func (m *MsgCreateVoting) GetTimewindow() string
- func (m *MsgCreateVoting) GetTitle() string
- func (m *MsgCreateVoting) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateVoting) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateVoting) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateVoting) ProtoMessage()
- func (m *MsgCreateVoting) Reset()
- func (m *MsgCreateVoting) Size() (n int)
- func (m *MsgCreateVoting) String() string
- func (m *MsgCreateVoting) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateVoting) ValidateBasic() error
- func (m *MsgCreateVoting) XXX_DiscardUnknown()
- func (m *MsgCreateVoting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateVoting) XXX_Merge(src proto.Message)
- func (m *MsgCreateVoting) XXX_Size() int
- func (m *MsgCreateVoting) XXX_Unmarshal(b []byte) error
- type MsgCreateVotingResponse
- func (*MsgCreateVotingResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateVotingResponse) GetVotingIndex() string
- func (m *MsgCreateVotingResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateVotingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateVotingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateVotingResponse) ProtoMessage()
- func (m *MsgCreateVotingResponse) Reset()
- func (m *MsgCreateVotingResponse) Size() (n int)
- func (m *MsgCreateVotingResponse) String() string
- func (m *MsgCreateVotingResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateVotingResponse) XXX_DiscardUnknown()
- func (m *MsgCreateVotingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateVotingResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateVotingResponse) XXX_Size() int
- func (m *MsgCreateVotingResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllStoredVotingRequest
- func (*QueryAllStoredVotingRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllStoredVotingRequest) GetPagination() *query.PageRequest
- func (m *QueryAllStoredVotingRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllStoredVotingRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllStoredVotingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllStoredVotingRequest) ProtoMessage()
- func (m *QueryAllStoredVotingRequest) Reset()
- func (m *QueryAllStoredVotingRequest) Size() (n int)
- func (m *QueryAllStoredVotingRequest) String() string
- func (m *QueryAllStoredVotingRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllStoredVotingRequest) XXX_DiscardUnknown()
- func (m *QueryAllStoredVotingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllStoredVotingRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllStoredVotingRequest) XXX_Size() int
- func (m *QueryAllStoredVotingRequest) XXX_Unmarshal(b []byte) error
- type QueryAllStoredVotingResponse
- func (*QueryAllStoredVotingResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllStoredVotingResponse) GetPagination() *query.PageResponse
- func (m *QueryAllStoredVotingResponse) GetStoredVoting() []StoredVoting
- func (m *QueryAllStoredVotingResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllStoredVotingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllStoredVotingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllStoredVotingResponse) ProtoMessage()
- func (m *QueryAllStoredVotingResponse) Reset()
- func (m *QueryAllStoredVotingResponse) Size() (n int)
- func (m *QueryAllStoredVotingResponse) String() string
- func (m *QueryAllStoredVotingResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllStoredVotingResponse) XXX_DiscardUnknown()
- func (m *QueryAllStoredVotingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllStoredVotingResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllStoredVotingResponse) XXX_Size() int
- func (m *QueryAllStoredVotingResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetStoredVotingRequest
- func (*QueryGetStoredVotingRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetStoredVotingRequest) GetIndex() string
- func (m *QueryGetStoredVotingRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetStoredVotingRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetStoredVotingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetStoredVotingRequest) ProtoMessage()
- func (m *QueryGetStoredVotingRequest) Reset()
- func (m *QueryGetStoredVotingRequest) Size() (n int)
- func (m *QueryGetStoredVotingRequest) String() string
- func (m *QueryGetStoredVotingRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetStoredVotingRequest) XXX_DiscardUnknown()
- func (m *QueryGetStoredVotingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetStoredVotingRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetStoredVotingRequest) XXX_Size() int
- func (m *QueryGetStoredVotingRequest) XXX_Unmarshal(b []byte) error
- type QueryGetStoredVotingResponse
- func (*QueryGetStoredVotingResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetStoredVotingResponse) GetStoredVoting() StoredVoting
- func (m *QueryGetStoredVotingResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetStoredVotingResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetStoredVotingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetStoredVotingResponse) ProtoMessage()
- func (m *QueryGetStoredVotingResponse) Reset()
- func (m *QueryGetStoredVotingResponse) Size() (n int)
- func (m *QueryGetStoredVotingResponse) String() string
- func (m *QueryGetStoredVotingResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetStoredVotingResponse) XXX_DiscardUnknown()
- func (m *QueryGetStoredVotingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetStoredVotingResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetStoredVotingResponse) XXX_Size() int
- func (m *QueryGetStoredVotingResponse) XXX_Unmarshal(b []byte) error
- type QueryGetSystemInfoRequest
- func (*QueryGetSystemInfoRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetSystemInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSystemInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSystemInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSystemInfoRequest) ProtoMessage()
- func (m *QueryGetSystemInfoRequest) Reset()
- func (m *QueryGetSystemInfoRequest) Size() (n int)
- func (m *QueryGetSystemInfoRequest) String() string
- func (m *QueryGetSystemInfoRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetSystemInfoRequest) XXX_DiscardUnknown()
- func (m *QueryGetSystemInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSystemInfoRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetSystemInfoRequest) XXX_Size() int
- func (m *QueryGetSystemInfoRequest) XXX_Unmarshal(b []byte) error
- type QueryGetSystemInfoResponse
- func (*QueryGetSystemInfoResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetSystemInfoResponse) GetSystemInfo() SystemInfo
- func (m *QueryGetSystemInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetSystemInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetSystemInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetSystemInfoResponse) ProtoMessage()
- func (m *QueryGetSystemInfoResponse) Reset()
- func (m *QueryGetSystemInfoResponse) Size() (n int)
- func (m *QueryGetSystemInfoResponse) String() string
- func (m *QueryGetSystemInfoResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetSystemInfoResponse) XXX_DiscardUnknown()
- func (m *QueryGetSystemInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetSystemInfoResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetSystemInfoResponse) XXX_Size() int
- func (m *QueryGetSystemInfoResponse) XXX_Unmarshal(b []byte) error
- type QueryListVotersRequest
- func (*QueryListVotersRequest) Descriptor() ([]byte, []int)
- func (m *QueryListVotersRequest) GetVotingId() string
- func (m *QueryListVotersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryListVotersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryListVotersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryListVotersRequest) ProtoMessage()
- func (m *QueryListVotersRequest) Reset()
- func (m *QueryListVotersRequest) Size() (n int)
- func (m *QueryListVotersRequest) String() string
- func (m *QueryListVotersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryListVotersRequest) XXX_DiscardUnknown()
- func (m *QueryListVotersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryListVotersRequest) XXX_Merge(src proto.Message)
- func (m *QueryListVotersRequest) XXX_Size() int
- func (m *QueryListVotersRequest) XXX_Unmarshal(b []byte) error
- type QueryListVotersResponse
- func (*QueryListVotersResponse) Descriptor() ([]byte, []int)
- func (m *QueryListVotersResponse) GetElectoralRoll() *ElectoralRoll
- func (m *QueryListVotersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryListVotersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryListVotersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryListVotersResponse) ProtoMessage()
- func (m *QueryListVotersResponse) Reset()
- func (m *QueryListVotersResponse) Size() (n int)
- func (m *QueryListVotersResponse) String() string
- func (m *QueryListVotersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryListVotersResponse) XXX_DiscardUnknown()
- func (m *QueryListVotersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryListVotersResponse) XXX_Merge(src proto.Message)
- func (m *QueryListVotersResponse) XXX_Size() int
- func (m *QueryListVotersResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryShowVoterRequest
- func (*QueryShowVoterRequest) Descriptor() ([]byte, []int)
- func (m *QueryShowVoterRequest) GetDni() string
- func (m *QueryShowVoterRequest) GetVotingId() string
- func (m *QueryShowVoterRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryShowVoterRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryShowVoterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryShowVoterRequest) ProtoMessage()
- func (m *QueryShowVoterRequest) Reset()
- func (m *QueryShowVoterRequest) Size() (n int)
- func (m *QueryShowVoterRequest) String() string
- func (m *QueryShowVoterRequest) Unmarshal(dAtA []byte) error
- func (m *QueryShowVoterRequest) XXX_DiscardUnknown()
- func (m *QueryShowVoterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryShowVoterRequest) XXX_Merge(src proto.Message)
- func (m *QueryShowVoterRequest) XXX_Size() int
- func (m *QueryShowVoterRequest) XXX_Unmarshal(b []byte) error
- type QueryShowVoterResponse
- func (*QueryShowVoterResponse) Descriptor() ([]byte, []int)
- func (m *QueryShowVoterResponse) GetVoter() *Voter
- func (m *QueryShowVoterResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryShowVoterResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryShowVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryShowVoterResponse) ProtoMessage()
- func (m *QueryShowVoterResponse) Reset()
- func (m *QueryShowVoterResponse) Size() (n int)
- func (m *QueryShowVoterResponse) String() string
- func (m *QueryShowVoterResponse) Unmarshal(dAtA []byte) error
- func (m *QueryShowVoterResponse) XXX_DiscardUnknown()
- func (m *QueryShowVoterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryShowVoterResponse) XXX_Merge(src proto.Message)
- func (m *QueryShowVoterResponse) XXX_Size() int
- func (m *QueryShowVoterResponse) XXX_Unmarshal(b []byte) error
- type StoredVoting
- func (s StoredVoting) CountVotes() (votes uint64)
- func (*StoredVoting) Descriptor() ([]byte, []int)
- func (m *StoredVoting) GetCounting() map[string]uint64
- func (m *StoredVoting) GetCreator() string
- func (m *StoredVoting) GetElectoralRoll() *ElectoralRoll
- func (m *StoredVoting) GetIndex() string
- func (m *StoredVoting) GetTimewindow() string
- func (m *StoredVoting) GetTitle() string
- func (s StoredVoting) GetVotesFrom(partyName string) (res uint64, err error)
- func (m *StoredVoting) Marshal() (dAtA []byte, err error)
- func (m *StoredVoting) MarshalTo(dAtA []byte) (int, error)
- func (m *StoredVoting) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (s StoredVoting) ParseVoting() (voting *directives.VotingImpl, err error)
- func (*StoredVoting) ProtoMessage()
- func (m *StoredVoting) Reset()
- func (m *StoredVoting) Size() (n int)
- func (m *StoredVoting) String() string
- func (m *StoredVoting) Unmarshal(dAtA []byte) error
- func (s StoredVoting) Validate() error
- func (m *StoredVoting) XXX_DiscardUnknown()
- func (m *StoredVoting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *StoredVoting) XXX_Merge(src proto.Message)
- func (m *StoredVoting) XXX_Size() int
- func (m *StoredVoting) XXX_Unmarshal(b []byte) error
- type SystemInfo
- func (*SystemInfo) Descriptor() ([]byte, []int)
- func (m *SystemInfo) GetNextId() uint64
- func (m *SystemInfo) Marshal() (dAtA []byte, err error)
- func (m *SystemInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *SystemInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SystemInfo) ProtoMessage()
- func (m *SystemInfo) Reset()
- func (m *SystemInfo) Size() (n int)
- func (m *SystemInfo) String() string
- func (m *SystemInfo) Unmarshal(dAtA []byte) error
- func (m *SystemInfo) XXX_DiscardUnknown()
- func (m *SystemInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SystemInfo) XXX_Merge(src proto.Message)
- func (m *SystemInfo) XXX_Size() int
- func (m *SystemInfo) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddVoter(ctx context.Context, req *MsgAddVoter) (*MsgAddVoterResponse, error)
- func (*UnimplementedMsgServer) CreateVoting(ctx context.Context, req *MsgCreateVoting) (*MsgCreateVotingResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ListVoters(ctx context.Context, req *QueryListVotersRequest) (*QueryListVotersResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) ShowVoter(ctx context.Context, req *QueryShowVoterRequest) (*QueryShowVoterResponse, error)
- func (*UnimplementedQueryServer) StoredVoting(ctx context.Context, req *QueryGetStoredVotingRequest) (*QueryGetStoredVotingResponse, error)
- func (*UnimplementedQueryServer) StoredVotingAll(ctx context.Context, req *QueryAllStoredVotingRequest) (*QueryAllStoredVotingResponse, error)
- func (*UnimplementedQueryServer) SystemInfo(ctx context.Context, req *QueryGetSystemInfoRequest) (*QueryGetSystemInfoResponse, error)
- type Voter
- func (*Voter) Descriptor() ([]byte, []int)
- func (m *Voter) GetHasVoted() bool
- func (m *Voter) GetProofId() string
- func (m *Voter) Marshal() (dAtA []byte, err error)
- func (m *Voter) MarshalTo(dAtA []byte) (int, error)
- func (m *Voter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Voter) ProtoMessage()
- func (m *Voter) Reset()
- func (m *Voter) Size() (n int)
- func (m *Voter) String() string
- func (m *Voter) Unmarshal(dAtA []byte) error
- func (m *Voter) XXX_DiscardUnknown()
- func (m *Voter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Voter) XXX_Merge(src proto.Message)
- func (m *Voter) XXX_Size() int
- func (m *Voter) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "mavs" // StoreKey defines the primary module store key StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_mavs" )
const DefaultIndex uint64 = 1
DefaultIndex is the default global index
const (
// StoredVotingKeyPrefix is the prefix to retrieve all StoredVoting
StoredVotingKeyPrefix = "StoredVoting/value/"
)
const (
SystemInfoKey = "SystemInfo/value/"
)
Variables ¶
var ( ErrInvalidLengthElectoralRoll = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowElectoralRoll = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupElectoralRoll = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidSigner = sdkerrors.Register(ModuleName, 1100, "expected gov account as only signer for proposal message") ErrSample = sdkerrors.Register(ModuleName, 1101, "sample error") ErrVotationEnded = sdkerrors.Register(ModuleName, 1102, "time window for voting has ended") ErrBadStoredVoting = sdkerrors.Register(ModuleName, 1103, "error when voting was stored") ErrVotingCannotBeParsed = sdkerrors.Register(ModuleName, 1104, "voting cannot be parsed") ErrVotingTimeTooShort = sdkerrors.Register(ModuleName, 1105, "minimum voting is one(1) hour") ErrInvalidVotingId = sdkerrors.Register(ModuleName, 1106, "invalid voting id") ErrCandidateNotFound = sdkerrors.Register(ModuleName, 1107, "the candidate does not exists") ErrNotEnoughCandidates = sdkerrors.Register(ModuleName, 1108, "need more candidates") ErrInvalidVoter = sdkerrors.Register(ModuleName, 1109, "invalid voter data") ErrInvalidVoterIdProof = sdkerrors.Register(ModuleName, 1110, "invalid proof id") )
x/mavs module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthStoredVoting = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowStoredVoting = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupStoredVoting = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthSystemInfo = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSystemInfo = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSystemInfo = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthVoter = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowVoter = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupVoter = fmt.Errorf("proto: unexpected end of group") )
var (
ParamsKey = []byte("p_mavs")
)
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func StoredVotingKey ¶
StoredVotingKey returns the store key to retrieve a StoredVoting from the index fields
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation
}
AccountKeeper defines the expected interface for the Account module.
type BankKeeper ¶
BankKeeper defines the expected interface for the Bank module.
type ElectoralRoll ¶
type ElectoralRoll struct {
Voters map[uint64]*Voter `` /* 154-byte string literal not displayed */
}
func (*ElectoralRoll) Descriptor ¶
func (*ElectoralRoll) Descriptor() ([]byte, []int)
func (*ElectoralRoll) GetVoters ¶
func (m *ElectoralRoll) GetVoters() map[uint64]*Voter
func (*ElectoralRoll) Marshal ¶
func (m *ElectoralRoll) Marshal() (dAtA []byte, err error)
func (*ElectoralRoll) MarshalToSizedBuffer ¶
func (m *ElectoralRoll) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ElectoralRoll) ProtoMessage ¶
func (*ElectoralRoll) ProtoMessage()
func (*ElectoralRoll) Reset ¶
func (m *ElectoralRoll) Reset()
func (*ElectoralRoll) Size ¶
func (m *ElectoralRoll) Size() (n int)
func (*ElectoralRoll) String ¶
func (m *ElectoralRoll) String() string
func (*ElectoralRoll) Unmarshal ¶
func (m *ElectoralRoll) Unmarshal(dAtA []byte) error
func (*ElectoralRoll) XXX_DiscardUnknown ¶
func (m *ElectoralRoll) XXX_DiscardUnknown()
func (*ElectoralRoll) XXX_Marshal ¶
func (m *ElectoralRoll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ElectoralRoll) XXX_Merge ¶
func (m *ElectoralRoll) XXX_Merge(src proto.Message)
func (*ElectoralRoll) XXX_Size ¶
func (m *ElectoralRoll) XXX_Size() int
func (*ElectoralRoll) XXX_Unmarshal ¶
func (m *ElectoralRoll) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` SystemInfo SystemInfo `protobuf:"bytes,2,opt,name=systemInfo,proto3" json:"systemInfo"` StoredVotingList []StoredVoting `protobuf:"bytes,3,rep,name=storedVotingList,proto3" json:"storedVotingList"` }
GenesisState defines the mavs module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetStoredVotingList ¶
func (m *GenesisState) GetStoredVotingList() []StoredVoting
func (*GenesisState) GetSystemInfo ¶
func (m *GenesisState) GetSystemInfo() SystemInfo
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgAddVoter ¶
type MsgAddVoter struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` VotingId string `protobuf:"bytes,2,opt,name=votingId,proto3" json:"votingId,omitempty"` Dni string `protobuf:"bytes,3,opt,name=dni,proto3" json:"dni,omitempty"` ProofId string `protobuf:"bytes,4,opt,name=proofId,proto3" json:"proofId,omitempty"` }
func NewMsgAddVoter ¶
func NewMsgAddVoter(creator string, votingId string, dni string, proofId string) *MsgAddVoter
func (*MsgAddVoter) Descriptor ¶
func (*MsgAddVoter) Descriptor() ([]byte, []int)
func (*MsgAddVoter) GetCreator ¶
func (m *MsgAddVoter) GetCreator() string
func (*MsgAddVoter) GetDni ¶
func (m *MsgAddVoter) GetDni() string
func (*MsgAddVoter) GetProofId ¶
func (m *MsgAddVoter) GetProofId() string
func (*MsgAddVoter) GetVotingId ¶
func (m *MsgAddVoter) GetVotingId() string
func (*MsgAddVoter) Marshal ¶
func (m *MsgAddVoter) Marshal() (dAtA []byte, err error)
func (*MsgAddVoter) MarshalToSizedBuffer ¶
func (m *MsgAddVoter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddVoter) ProtoMessage ¶
func (*MsgAddVoter) ProtoMessage()
func (*MsgAddVoter) Reset ¶
func (m *MsgAddVoter) Reset()
func (*MsgAddVoter) Size ¶
func (m *MsgAddVoter) Size() (n int)
func (*MsgAddVoter) String ¶
func (m *MsgAddVoter) String() string
func (*MsgAddVoter) Unmarshal ¶
func (m *MsgAddVoter) Unmarshal(dAtA []byte) error
func (*MsgAddVoter) ValidateBasic ¶
func (msg *MsgAddVoter) ValidateBasic() error
func (*MsgAddVoter) XXX_DiscardUnknown ¶
func (m *MsgAddVoter) XXX_DiscardUnknown()
func (*MsgAddVoter) XXX_Marshal ¶
func (m *MsgAddVoter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddVoter) XXX_Merge ¶
func (m *MsgAddVoter) XXX_Merge(src proto.Message)
func (*MsgAddVoter) XXX_Size ¶
func (m *MsgAddVoter) XXX_Size() int
func (*MsgAddVoter) XXX_Unmarshal ¶
func (m *MsgAddVoter) XXX_Unmarshal(b []byte) error
type MsgAddVoterResponse ¶
type MsgAddVoterResponse struct {
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
}
func (*MsgAddVoterResponse) Descriptor ¶
func (*MsgAddVoterResponse) Descriptor() ([]byte, []int)
func (*MsgAddVoterResponse) GetStatus ¶
func (m *MsgAddVoterResponse) GetStatus() string
func (*MsgAddVoterResponse) Marshal ¶
func (m *MsgAddVoterResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddVoterResponse) MarshalTo ¶
func (m *MsgAddVoterResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddVoterResponse) MarshalToSizedBuffer ¶
func (m *MsgAddVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddVoterResponse) ProtoMessage ¶
func (*MsgAddVoterResponse) ProtoMessage()
func (*MsgAddVoterResponse) Reset ¶
func (m *MsgAddVoterResponse) Reset()
func (*MsgAddVoterResponse) Size ¶
func (m *MsgAddVoterResponse) Size() (n int)
func (*MsgAddVoterResponse) String ¶
func (m *MsgAddVoterResponse) String() string
func (*MsgAddVoterResponse) Unmarshal ¶
func (m *MsgAddVoterResponse) Unmarshal(dAtA []byte) error
func (*MsgAddVoterResponse) XXX_DiscardUnknown ¶
func (m *MsgAddVoterResponse) XXX_DiscardUnknown()
func (*MsgAddVoterResponse) XXX_Marshal ¶
func (m *MsgAddVoterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddVoterResponse) XXX_Merge ¶
func (m *MsgAddVoterResponse) XXX_Merge(src proto.Message)
func (*MsgAddVoterResponse) XXX_Size ¶
func (m *MsgAddVoterResponse) XXX_Size() int
func (*MsgAddVoterResponse) XXX_Unmarshal ¶
func (m *MsgAddVoterResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error) CreateVoting(ctx context.Context, in *MsgCreateVoting, opts ...grpc.CallOption) (*MsgCreateVotingResponse, error) AddVoter(ctx context.Context, in *MsgAddVoter, opts ...grpc.CallOption) (*MsgAddVoterResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateVoting ¶
type MsgCreateVoting struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Timewindow string `protobuf:"bytes,3,opt,name=timewindow,proto3" json:"timewindow,omitempty"` Candidates string `protobuf:"bytes,4,opt,name=candidates,proto3" json:"candidates,omitempty"` }
func NewMsgCreateVoting ¶
func NewMsgCreateVoting(creator string, title string, timewindow string, candidates string) *MsgCreateVoting
func (*MsgCreateVoting) Descriptor ¶
func (*MsgCreateVoting) Descriptor() ([]byte, []int)
func (*MsgCreateVoting) GetCandidates ¶
func (m *MsgCreateVoting) GetCandidates() string
func (*MsgCreateVoting) GetCreator ¶
func (m *MsgCreateVoting) GetCreator() string
func (*MsgCreateVoting) GetTimewindow ¶
func (m *MsgCreateVoting) GetTimewindow() string
func (*MsgCreateVoting) GetTitle ¶
func (m *MsgCreateVoting) GetTitle() string
func (*MsgCreateVoting) Marshal ¶
func (m *MsgCreateVoting) Marshal() (dAtA []byte, err error)
func (*MsgCreateVoting) MarshalToSizedBuffer ¶
func (m *MsgCreateVoting) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateVoting) ProtoMessage ¶
func (*MsgCreateVoting) ProtoMessage()
func (*MsgCreateVoting) Reset ¶
func (m *MsgCreateVoting) Reset()
func (*MsgCreateVoting) Size ¶
func (m *MsgCreateVoting) Size() (n int)
func (*MsgCreateVoting) String ¶
func (m *MsgCreateVoting) String() string
func (*MsgCreateVoting) Unmarshal ¶
func (m *MsgCreateVoting) Unmarshal(dAtA []byte) error
func (*MsgCreateVoting) ValidateBasic ¶
func (msg *MsgCreateVoting) ValidateBasic() error
func (*MsgCreateVoting) XXX_DiscardUnknown ¶
func (m *MsgCreateVoting) XXX_DiscardUnknown()
func (*MsgCreateVoting) XXX_Marshal ¶
func (m *MsgCreateVoting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateVoting) XXX_Merge ¶
func (m *MsgCreateVoting) XXX_Merge(src proto.Message)
func (*MsgCreateVoting) XXX_Size ¶
func (m *MsgCreateVoting) XXX_Size() int
func (*MsgCreateVoting) XXX_Unmarshal ¶
func (m *MsgCreateVoting) XXX_Unmarshal(b []byte) error
type MsgCreateVotingResponse ¶
type MsgCreateVotingResponse struct {
VotingIndex string `protobuf:"bytes,1,opt,name=votingIndex,proto3" json:"votingIndex,omitempty"`
}
func (*MsgCreateVotingResponse) Descriptor ¶
func (*MsgCreateVotingResponse) Descriptor() ([]byte, []int)
func (*MsgCreateVotingResponse) GetVotingIndex ¶
func (m *MsgCreateVotingResponse) GetVotingIndex() string
func (*MsgCreateVotingResponse) Marshal ¶
func (m *MsgCreateVotingResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateVotingResponse) MarshalTo ¶
func (m *MsgCreateVotingResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateVotingResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateVotingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateVotingResponse) ProtoMessage ¶
func (*MsgCreateVotingResponse) ProtoMessage()
func (*MsgCreateVotingResponse) Reset ¶
func (m *MsgCreateVotingResponse) Reset()
func (*MsgCreateVotingResponse) Size ¶
func (m *MsgCreateVotingResponse) Size() (n int)
func (*MsgCreateVotingResponse) String ¶
func (m *MsgCreateVotingResponse) String() string
func (*MsgCreateVotingResponse) Unmarshal ¶
func (m *MsgCreateVotingResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateVotingResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateVotingResponse) XXX_DiscardUnknown()
func (*MsgCreateVotingResponse) XXX_Marshal ¶
func (m *MsgCreateVotingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateVotingResponse) XXX_Merge ¶
func (m *MsgCreateVotingResponse) XXX_Merge(src proto.Message)
func (*MsgCreateVotingResponse) XXX_Size ¶
func (m *MsgCreateVotingResponse) XXX_Size() int
func (*MsgCreateVotingResponse) XXX_Unmarshal ¶
func (m *MsgCreateVotingResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // UpdateParams defines a (governance) operation for updating the module // parameters. The authority defaults to the x/gov module account. UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) CreateVoting(context.Context, *MsgCreateVoting) (*MsgCreateVotingResponse, error) AddVoter(context.Context, *MsgAddVoter) (*MsgAddVoterResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface { Get(context.Context, []byte, interface{}) Set(context.Context, []byte, interface{}) }
ParamSubspace defines the expected Subspace interface for parameters.
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllStoredVotingRequest ¶
type QueryAllStoredVotingRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllStoredVotingRequest) Descriptor ¶
func (*QueryAllStoredVotingRequest) Descriptor() ([]byte, []int)
func (*QueryAllStoredVotingRequest) GetPagination ¶
func (m *QueryAllStoredVotingRequest) GetPagination() *query.PageRequest
func (*QueryAllStoredVotingRequest) Marshal ¶
func (m *QueryAllStoredVotingRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllStoredVotingRequest) MarshalTo ¶
func (m *QueryAllStoredVotingRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllStoredVotingRequest) MarshalToSizedBuffer ¶
func (m *QueryAllStoredVotingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllStoredVotingRequest) ProtoMessage ¶
func (*QueryAllStoredVotingRequest) ProtoMessage()
func (*QueryAllStoredVotingRequest) Reset ¶
func (m *QueryAllStoredVotingRequest) Reset()
func (*QueryAllStoredVotingRequest) Size ¶
func (m *QueryAllStoredVotingRequest) Size() (n int)
func (*QueryAllStoredVotingRequest) String ¶
func (m *QueryAllStoredVotingRequest) String() string
func (*QueryAllStoredVotingRequest) Unmarshal ¶
func (m *QueryAllStoredVotingRequest) Unmarshal(dAtA []byte) error
func (*QueryAllStoredVotingRequest) XXX_DiscardUnknown ¶
func (m *QueryAllStoredVotingRequest) XXX_DiscardUnknown()
func (*QueryAllStoredVotingRequest) XXX_Marshal ¶
func (m *QueryAllStoredVotingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllStoredVotingRequest) XXX_Merge ¶
func (m *QueryAllStoredVotingRequest) XXX_Merge(src proto.Message)
func (*QueryAllStoredVotingRequest) XXX_Size ¶
func (m *QueryAllStoredVotingRequest) XXX_Size() int
func (*QueryAllStoredVotingRequest) XXX_Unmarshal ¶
func (m *QueryAllStoredVotingRequest) XXX_Unmarshal(b []byte) error
type QueryAllStoredVotingResponse ¶
type QueryAllStoredVotingResponse struct { StoredVoting []StoredVoting `protobuf:"bytes,1,rep,name=storedVoting,proto3" json:"storedVoting"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllStoredVotingResponse) Descriptor ¶
func (*QueryAllStoredVotingResponse) Descriptor() ([]byte, []int)
func (*QueryAllStoredVotingResponse) GetPagination ¶
func (m *QueryAllStoredVotingResponse) GetPagination() *query.PageResponse
func (*QueryAllStoredVotingResponse) GetStoredVoting ¶
func (m *QueryAllStoredVotingResponse) GetStoredVoting() []StoredVoting
func (*QueryAllStoredVotingResponse) Marshal ¶
func (m *QueryAllStoredVotingResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllStoredVotingResponse) MarshalTo ¶
func (m *QueryAllStoredVotingResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllStoredVotingResponse) MarshalToSizedBuffer ¶
func (m *QueryAllStoredVotingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllStoredVotingResponse) ProtoMessage ¶
func (*QueryAllStoredVotingResponse) ProtoMessage()
func (*QueryAllStoredVotingResponse) Reset ¶
func (m *QueryAllStoredVotingResponse) Reset()
func (*QueryAllStoredVotingResponse) Size ¶
func (m *QueryAllStoredVotingResponse) Size() (n int)
func (*QueryAllStoredVotingResponse) String ¶
func (m *QueryAllStoredVotingResponse) String() string
func (*QueryAllStoredVotingResponse) Unmarshal ¶
func (m *QueryAllStoredVotingResponse) Unmarshal(dAtA []byte) error
func (*QueryAllStoredVotingResponse) XXX_DiscardUnknown ¶
func (m *QueryAllStoredVotingResponse) XXX_DiscardUnknown()
func (*QueryAllStoredVotingResponse) XXX_Marshal ¶
func (m *QueryAllStoredVotingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllStoredVotingResponse) XXX_Merge ¶
func (m *QueryAllStoredVotingResponse) XXX_Merge(src proto.Message)
func (*QueryAllStoredVotingResponse) XXX_Size ¶
func (m *QueryAllStoredVotingResponse) XXX_Size() int
func (*QueryAllStoredVotingResponse) XXX_Unmarshal ¶
func (m *QueryAllStoredVotingResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a SystemInfo by index. SystemInfo(ctx context.Context, in *QueryGetSystemInfoRequest, opts ...grpc.CallOption) (*QueryGetSystemInfoResponse, error) // Queries a list of StoredVoting items. StoredVoting(ctx context.Context, in *QueryGetStoredVotingRequest, opts ...grpc.CallOption) (*QueryGetStoredVotingResponse, error) StoredVotingAll(ctx context.Context, in *QueryAllStoredVotingRequest, opts ...grpc.CallOption) (*QueryAllStoredVotingResponse, error) // Queries a list of ShowVoter items. ShowVoter(ctx context.Context, in *QueryShowVoterRequest, opts ...grpc.CallOption) (*QueryShowVoterResponse, error) // Queries a list of ListVoters items. ListVoters(ctx context.Context, in *QueryListVotersRequest, opts ...grpc.CallOption) (*QueryListVotersResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryGetStoredVotingRequest ¶
type QueryGetStoredVotingRequest struct {
Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
}
func (*QueryGetStoredVotingRequest) Descriptor ¶
func (*QueryGetStoredVotingRequest) Descriptor() ([]byte, []int)
func (*QueryGetStoredVotingRequest) GetIndex ¶
func (m *QueryGetStoredVotingRequest) GetIndex() string
func (*QueryGetStoredVotingRequest) Marshal ¶
func (m *QueryGetStoredVotingRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetStoredVotingRequest) MarshalTo ¶
func (m *QueryGetStoredVotingRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetStoredVotingRequest) MarshalToSizedBuffer ¶
func (m *QueryGetStoredVotingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetStoredVotingRequest) ProtoMessage ¶
func (*QueryGetStoredVotingRequest) ProtoMessage()
func (*QueryGetStoredVotingRequest) Reset ¶
func (m *QueryGetStoredVotingRequest) Reset()
func (*QueryGetStoredVotingRequest) Size ¶
func (m *QueryGetStoredVotingRequest) Size() (n int)
func (*QueryGetStoredVotingRequest) String ¶
func (m *QueryGetStoredVotingRequest) String() string
func (*QueryGetStoredVotingRequest) Unmarshal ¶
func (m *QueryGetStoredVotingRequest) Unmarshal(dAtA []byte) error
func (*QueryGetStoredVotingRequest) XXX_DiscardUnknown ¶
func (m *QueryGetStoredVotingRequest) XXX_DiscardUnknown()
func (*QueryGetStoredVotingRequest) XXX_Marshal ¶
func (m *QueryGetStoredVotingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetStoredVotingRequest) XXX_Merge ¶
func (m *QueryGetStoredVotingRequest) XXX_Merge(src proto.Message)
func (*QueryGetStoredVotingRequest) XXX_Size ¶
func (m *QueryGetStoredVotingRequest) XXX_Size() int
func (*QueryGetStoredVotingRequest) XXX_Unmarshal ¶
func (m *QueryGetStoredVotingRequest) XXX_Unmarshal(b []byte) error
type QueryGetStoredVotingResponse ¶
type QueryGetStoredVotingResponse struct {
StoredVoting StoredVoting `protobuf:"bytes,1,opt,name=storedVoting,proto3" json:"storedVoting"`
}
func (*QueryGetStoredVotingResponse) Descriptor ¶
func (*QueryGetStoredVotingResponse) Descriptor() ([]byte, []int)
func (*QueryGetStoredVotingResponse) GetStoredVoting ¶
func (m *QueryGetStoredVotingResponse) GetStoredVoting() StoredVoting
func (*QueryGetStoredVotingResponse) Marshal ¶
func (m *QueryGetStoredVotingResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetStoredVotingResponse) MarshalTo ¶
func (m *QueryGetStoredVotingResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetStoredVotingResponse) MarshalToSizedBuffer ¶
func (m *QueryGetStoredVotingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetStoredVotingResponse) ProtoMessage ¶
func (*QueryGetStoredVotingResponse) ProtoMessage()
func (*QueryGetStoredVotingResponse) Reset ¶
func (m *QueryGetStoredVotingResponse) Reset()
func (*QueryGetStoredVotingResponse) Size ¶
func (m *QueryGetStoredVotingResponse) Size() (n int)
func (*QueryGetStoredVotingResponse) String ¶
func (m *QueryGetStoredVotingResponse) String() string
func (*QueryGetStoredVotingResponse) Unmarshal ¶
func (m *QueryGetStoredVotingResponse) Unmarshal(dAtA []byte) error
func (*QueryGetStoredVotingResponse) XXX_DiscardUnknown ¶
func (m *QueryGetStoredVotingResponse) XXX_DiscardUnknown()
func (*QueryGetStoredVotingResponse) XXX_Marshal ¶
func (m *QueryGetStoredVotingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetStoredVotingResponse) XXX_Merge ¶
func (m *QueryGetStoredVotingResponse) XXX_Merge(src proto.Message)
func (*QueryGetStoredVotingResponse) XXX_Size ¶
func (m *QueryGetStoredVotingResponse) XXX_Size() int
func (*QueryGetStoredVotingResponse) XXX_Unmarshal ¶
func (m *QueryGetStoredVotingResponse) XXX_Unmarshal(b []byte) error
type QueryGetSystemInfoRequest ¶
type QueryGetSystemInfoRequest struct { }
func (*QueryGetSystemInfoRequest) Descriptor ¶
func (*QueryGetSystemInfoRequest) Descriptor() ([]byte, []int)
func (*QueryGetSystemInfoRequest) Marshal ¶
func (m *QueryGetSystemInfoRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetSystemInfoRequest) MarshalTo ¶
func (m *QueryGetSystemInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetSystemInfoRequest) MarshalToSizedBuffer ¶
func (m *QueryGetSystemInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetSystemInfoRequest) ProtoMessage ¶
func (*QueryGetSystemInfoRequest) ProtoMessage()
func (*QueryGetSystemInfoRequest) Reset ¶
func (m *QueryGetSystemInfoRequest) Reset()
func (*QueryGetSystemInfoRequest) Size ¶
func (m *QueryGetSystemInfoRequest) Size() (n int)
func (*QueryGetSystemInfoRequest) String ¶
func (m *QueryGetSystemInfoRequest) String() string
func (*QueryGetSystemInfoRequest) Unmarshal ¶
func (m *QueryGetSystemInfoRequest) Unmarshal(dAtA []byte) error
func (*QueryGetSystemInfoRequest) XXX_DiscardUnknown ¶
func (m *QueryGetSystemInfoRequest) XXX_DiscardUnknown()
func (*QueryGetSystemInfoRequest) XXX_Marshal ¶
func (m *QueryGetSystemInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetSystemInfoRequest) XXX_Merge ¶
func (m *QueryGetSystemInfoRequest) XXX_Merge(src proto.Message)
func (*QueryGetSystemInfoRequest) XXX_Size ¶
func (m *QueryGetSystemInfoRequest) XXX_Size() int
func (*QueryGetSystemInfoRequest) XXX_Unmarshal ¶
func (m *QueryGetSystemInfoRequest) XXX_Unmarshal(b []byte) error
type QueryGetSystemInfoResponse ¶
type QueryGetSystemInfoResponse struct {
SystemInfo SystemInfo `protobuf:"bytes,1,opt,name=SystemInfo,proto3" json:"SystemInfo"`
}
func (*QueryGetSystemInfoResponse) Descriptor ¶
func (*QueryGetSystemInfoResponse) Descriptor() ([]byte, []int)
func (*QueryGetSystemInfoResponse) GetSystemInfo ¶
func (m *QueryGetSystemInfoResponse) GetSystemInfo() SystemInfo
func (*QueryGetSystemInfoResponse) Marshal ¶
func (m *QueryGetSystemInfoResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetSystemInfoResponse) MarshalTo ¶
func (m *QueryGetSystemInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetSystemInfoResponse) MarshalToSizedBuffer ¶
func (m *QueryGetSystemInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetSystemInfoResponse) ProtoMessage ¶
func (*QueryGetSystemInfoResponse) ProtoMessage()
func (*QueryGetSystemInfoResponse) Reset ¶
func (m *QueryGetSystemInfoResponse) Reset()
func (*QueryGetSystemInfoResponse) Size ¶
func (m *QueryGetSystemInfoResponse) Size() (n int)
func (*QueryGetSystemInfoResponse) String ¶
func (m *QueryGetSystemInfoResponse) String() string
func (*QueryGetSystemInfoResponse) Unmarshal ¶
func (m *QueryGetSystemInfoResponse) Unmarshal(dAtA []byte) error
func (*QueryGetSystemInfoResponse) XXX_DiscardUnknown ¶
func (m *QueryGetSystemInfoResponse) XXX_DiscardUnknown()
func (*QueryGetSystemInfoResponse) XXX_Marshal ¶
func (m *QueryGetSystemInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetSystemInfoResponse) XXX_Merge ¶
func (m *QueryGetSystemInfoResponse) XXX_Merge(src proto.Message)
func (*QueryGetSystemInfoResponse) XXX_Size ¶
func (m *QueryGetSystemInfoResponse) XXX_Size() int
func (*QueryGetSystemInfoResponse) XXX_Unmarshal ¶
func (m *QueryGetSystemInfoResponse) XXX_Unmarshal(b []byte) error
type QueryListVotersRequest ¶
type QueryListVotersRequest struct {
VotingId string `protobuf:"bytes,1,opt,name=votingId,proto3" json:"votingId,omitempty"`
}
func (*QueryListVotersRequest) Descriptor ¶
func (*QueryListVotersRequest) Descriptor() ([]byte, []int)
func (*QueryListVotersRequest) GetVotingId ¶
func (m *QueryListVotersRequest) GetVotingId() string
func (*QueryListVotersRequest) Marshal ¶
func (m *QueryListVotersRequest) Marshal() (dAtA []byte, err error)
func (*QueryListVotersRequest) MarshalTo ¶
func (m *QueryListVotersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryListVotersRequest) MarshalToSizedBuffer ¶
func (m *QueryListVotersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryListVotersRequest) ProtoMessage ¶
func (*QueryListVotersRequest) ProtoMessage()
func (*QueryListVotersRequest) Reset ¶
func (m *QueryListVotersRequest) Reset()
func (*QueryListVotersRequest) Size ¶
func (m *QueryListVotersRequest) Size() (n int)
func (*QueryListVotersRequest) String ¶
func (m *QueryListVotersRequest) String() string
func (*QueryListVotersRequest) Unmarshal ¶
func (m *QueryListVotersRequest) Unmarshal(dAtA []byte) error
func (*QueryListVotersRequest) XXX_DiscardUnknown ¶
func (m *QueryListVotersRequest) XXX_DiscardUnknown()
func (*QueryListVotersRequest) XXX_Marshal ¶
func (m *QueryListVotersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryListVotersRequest) XXX_Merge ¶
func (m *QueryListVotersRequest) XXX_Merge(src proto.Message)
func (*QueryListVotersRequest) XXX_Size ¶
func (m *QueryListVotersRequest) XXX_Size() int
func (*QueryListVotersRequest) XXX_Unmarshal ¶
func (m *QueryListVotersRequest) XXX_Unmarshal(b []byte) error
type QueryListVotersResponse ¶
type QueryListVotersResponse struct {
ElectoralRoll *ElectoralRoll `protobuf:"bytes,1,opt,name=electoralRoll,proto3" json:"electoralRoll,omitempty"`
}
func (*QueryListVotersResponse) Descriptor ¶
func (*QueryListVotersResponse) Descriptor() ([]byte, []int)
func (*QueryListVotersResponse) GetElectoralRoll ¶
func (m *QueryListVotersResponse) GetElectoralRoll() *ElectoralRoll
func (*QueryListVotersResponse) Marshal ¶
func (m *QueryListVotersResponse) Marshal() (dAtA []byte, err error)
func (*QueryListVotersResponse) MarshalTo ¶
func (m *QueryListVotersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryListVotersResponse) MarshalToSizedBuffer ¶
func (m *QueryListVotersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryListVotersResponse) ProtoMessage ¶
func (*QueryListVotersResponse) ProtoMessage()
func (*QueryListVotersResponse) Reset ¶
func (m *QueryListVotersResponse) Reset()
func (*QueryListVotersResponse) Size ¶
func (m *QueryListVotersResponse) Size() (n int)
func (*QueryListVotersResponse) String ¶
func (m *QueryListVotersResponse) String() string
func (*QueryListVotersResponse) Unmarshal ¶
func (m *QueryListVotersResponse) Unmarshal(dAtA []byte) error
func (*QueryListVotersResponse) XXX_DiscardUnknown ¶
func (m *QueryListVotersResponse) XXX_DiscardUnknown()
func (*QueryListVotersResponse) XXX_Marshal ¶
func (m *QueryListVotersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryListVotersResponse) XXX_Merge ¶
func (m *QueryListVotersResponse) XXX_Merge(src proto.Message)
func (*QueryListVotersResponse) XXX_Size ¶
func (m *QueryListVotersResponse) XXX_Size() int
func (*QueryListVotersResponse) XXX_Unmarshal ¶
func (m *QueryListVotersResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a SystemInfo by index. SystemInfo(context.Context, *QueryGetSystemInfoRequest) (*QueryGetSystemInfoResponse, error) // Queries a list of StoredVoting items. StoredVoting(context.Context, *QueryGetStoredVotingRequest) (*QueryGetStoredVotingResponse, error) StoredVotingAll(context.Context, *QueryAllStoredVotingRequest) (*QueryAllStoredVotingResponse, error) // Queries a list of ShowVoter items. ShowVoter(context.Context, *QueryShowVoterRequest) (*QueryShowVoterResponse, error) // Queries a list of ListVoters items. ListVoters(context.Context, *QueryListVotersRequest) (*QueryListVotersResponse, error) }
QueryServer is the server API for Query service.
type QueryShowVoterRequest ¶
type QueryShowVoterRequest struct { Dni string `protobuf:"bytes,1,opt,name=dni,proto3" json:"dni,omitempty"` VotingId string `protobuf:"bytes,2,opt,name=votingId,proto3" json:"votingId,omitempty"` }
func (*QueryShowVoterRequest) Descriptor ¶
func (*QueryShowVoterRequest) Descriptor() ([]byte, []int)
func (*QueryShowVoterRequest) GetDni ¶
func (m *QueryShowVoterRequest) GetDni() string
func (*QueryShowVoterRequest) GetVotingId ¶
func (m *QueryShowVoterRequest) GetVotingId() string
func (*QueryShowVoterRequest) Marshal ¶
func (m *QueryShowVoterRequest) Marshal() (dAtA []byte, err error)
func (*QueryShowVoterRequest) MarshalTo ¶
func (m *QueryShowVoterRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryShowVoterRequest) MarshalToSizedBuffer ¶
func (m *QueryShowVoterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryShowVoterRequest) ProtoMessage ¶
func (*QueryShowVoterRequest) ProtoMessage()
func (*QueryShowVoterRequest) Reset ¶
func (m *QueryShowVoterRequest) Reset()
func (*QueryShowVoterRequest) Size ¶
func (m *QueryShowVoterRequest) Size() (n int)
func (*QueryShowVoterRequest) String ¶
func (m *QueryShowVoterRequest) String() string
func (*QueryShowVoterRequest) Unmarshal ¶
func (m *QueryShowVoterRequest) Unmarshal(dAtA []byte) error
func (*QueryShowVoterRequest) XXX_DiscardUnknown ¶
func (m *QueryShowVoterRequest) XXX_DiscardUnknown()
func (*QueryShowVoterRequest) XXX_Marshal ¶
func (m *QueryShowVoterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryShowVoterRequest) XXX_Merge ¶
func (m *QueryShowVoterRequest) XXX_Merge(src proto.Message)
func (*QueryShowVoterRequest) XXX_Size ¶
func (m *QueryShowVoterRequest) XXX_Size() int
func (*QueryShowVoterRequest) XXX_Unmarshal ¶
func (m *QueryShowVoterRequest) XXX_Unmarshal(b []byte) error
type QueryShowVoterResponse ¶
type QueryShowVoterResponse struct {
Voter *Voter `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
}
func (*QueryShowVoterResponse) Descriptor ¶
func (*QueryShowVoterResponse) Descriptor() ([]byte, []int)
func (*QueryShowVoterResponse) GetVoter ¶
func (m *QueryShowVoterResponse) GetVoter() *Voter
func (*QueryShowVoterResponse) Marshal ¶
func (m *QueryShowVoterResponse) Marshal() (dAtA []byte, err error)
func (*QueryShowVoterResponse) MarshalTo ¶
func (m *QueryShowVoterResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryShowVoterResponse) MarshalToSizedBuffer ¶
func (m *QueryShowVoterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryShowVoterResponse) ProtoMessage ¶
func (*QueryShowVoterResponse) ProtoMessage()
func (*QueryShowVoterResponse) Reset ¶
func (m *QueryShowVoterResponse) Reset()
func (*QueryShowVoterResponse) Size ¶
func (m *QueryShowVoterResponse) Size() (n int)
func (*QueryShowVoterResponse) String ¶
func (m *QueryShowVoterResponse) String() string
func (*QueryShowVoterResponse) Unmarshal ¶
func (m *QueryShowVoterResponse) Unmarshal(dAtA []byte) error
func (*QueryShowVoterResponse) XXX_DiscardUnknown ¶
func (m *QueryShowVoterResponse) XXX_DiscardUnknown()
func (*QueryShowVoterResponse) XXX_Marshal ¶
func (m *QueryShowVoterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryShowVoterResponse) XXX_Merge ¶
func (m *QueryShowVoterResponse) XXX_Merge(src proto.Message)
func (*QueryShowVoterResponse) XXX_Size ¶
func (m *QueryShowVoterResponse) XXX_Size() int
func (*QueryShowVoterResponse) XXX_Unmarshal ¶
func (m *QueryShowVoterResponse) XXX_Unmarshal(b []byte) error
type StoredVoting ¶
type StoredVoting struct { Index string `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"` Timewindow string `protobuf:"bytes,2,opt,name=timewindow,proto3" json:"timewindow,omitempty"` Counting map[string]uint64 `` /* 158-byte string literal not displayed */ Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"` ElectoralRoll *ElectoralRoll `protobuf:"bytes,5,opt,name=electoral_roll,json=electoralRoll,proto3" json:"electoral_roll,omitempty"` Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"` }
func (StoredVoting) CountVotes ¶
func (s StoredVoting) CountVotes() (votes uint64)
func (*StoredVoting) Descriptor ¶
func (*StoredVoting) Descriptor() ([]byte, []int)
func (*StoredVoting) GetCounting ¶
func (m *StoredVoting) GetCounting() map[string]uint64
func (*StoredVoting) GetCreator ¶
func (m *StoredVoting) GetCreator() string
func (*StoredVoting) GetElectoralRoll ¶
func (m *StoredVoting) GetElectoralRoll() *ElectoralRoll
func (*StoredVoting) GetIndex ¶
func (m *StoredVoting) GetIndex() string
func (*StoredVoting) GetTimewindow ¶
func (m *StoredVoting) GetTimewindow() string
func (*StoredVoting) GetTitle ¶
func (m *StoredVoting) GetTitle() string
func (StoredVoting) GetVotesFrom ¶
func (s StoredVoting) GetVotesFrom(partyName string) (res uint64, err error)
func (*StoredVoting) Marshal ¶
func (m *StoredVoting) Marshal() (dAtA []byte, err error)
func (*StoredVoting) MarshalToSizedBuffer ¶
func (m *StoredVoting) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (StoredVoting) ParseVoting ¶
func (s StoredVoting) ParseVoting() (voting *directives.VotingImpl, err error)
func (*StoredVoting) ProtoMessage ¶
func (*StoredVoting) ProtoMessage()
func (*StoredVoting) Reset ¶
func (m *StoredVoting) Reset()
func (*StoredVoting) Size ¶
func (m *StoredVoting) Size() (n int)
func (*StoredVoting) String ¶
func (m *StoredVoting) String() string
func (*StoredVoting) Unmarshal ¶
func (m *StoredVoting) Unmarshal(dAtA []byte) error
func (StoredVoting) Validate ¶
func (s StoredVoting) Validate() error
func (*StoredVoting) XXX_DiscardUnknown ¶
func (m *StoredVoting) XXX_DiscardUnknown()
func (*StoredVoting) XXX_Marshal ¶
func (m *StoredVoting) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StoredVoting) XXX_Merge ¶
func (m *StoredVoting) XXX_Merge(src proto.Message)
func (*StoredVoting) XXX_Size ¶
func (m *StoredVoting) XXX_Size() int
func (*StoredVoting) XXX_Unmarshal ¶
func (m *StoredVoting) XXX_Unmarshal(b []byte) error
type SystemInfo ¶
type SystemInfo struct {
NextId uint64 `protobuf:"varint,1,opt,name=nextId,proto3" json:"nextId,omitempty"`
}
func (*SystemInfo) Descriptor ¶
func (*SystemInfo) Descriptor() ([]byte, []int)
func (*SystemInfo) GetNextId ¶
func (m *SystemInfo) GetNextId() uint64
func (*SystemInfo) Marshal ¶
func (m *SystemInfo) Marshal() (dAtA []byte, err error)
func (*SystemInfo) MarshalToSizedBuffer ¶
func (m *SystemInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SystemInfo) ProtoMessage ¶
func (*SystemInfo) ProtoMessage()
func (*SystemInfo) Reset ¶
func (m *SystemInfo) Reset()
func (*SystemInfo) Size ¶
func (m *SystemInfo) Size() (n int)
func (*SystemInfo) String ¶
func (m *SystemInfo) String() string
func (*SystemInfo) Unmarshal ¶
func (m *SystemInfo) Unmarshal(dAtA []byte) error
func (*SystemInfo) XXX_DiscardUnknown ¶
func (m *SystemInfo) XXX_DiscardUnknown()
func (*SystemInfo) XXX_Marshal ¶
func (m *SystemInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SystemInfo) XXX_Merge ¶
func (m *SystemInfo) XXX_Merge(src proto.Message)
func (*SystemInfo) XXX_Size ¶
func (m *SystemInfo) XXX_Size() int
func (*SystemInfo) XXX_Unmarshal ¶
func (m *SystemInfo) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddVoter ¶
func (*UnimplementedMsgServer) AddVoter(ctx context.Context, req *MsgAddVoter) (*MsgAddVoterResponse, error)
func (*UnimplementedMsgServer) CreateVoting ¶
func (*UnimplementedMsgServer) CreateVoting(ctx context.Context, req *MsgCreateVoting) (*MsgCreateVotingResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) ListVoters ¶
func (*UnimplementedQueryServer) ListVoters(ctx context.Context, req *QueryListVotersRequest) (*QueryListVotersResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) ShowVoter ¶
func (*UnimplementedQueryServer) ShowVoter(ctx context.Context, req *QueryShowVoterRequest) (*QueryShowVoterResponse, error)
func (*UnimplementedQueryServer) StoredVoting ¶
func (*UnimplementedQueryServer) StoredVoting(ctx context.Context, req *QueryGetStoredVotingRequest) (*QueryGetStoredVotingResponse, error)
func (*UnimplementedQueryServer) StoredVotingAll ¶
func (*UnimplementedQueryServer) StoredVotingAll(ctx context.Context, req *QueryAllStoredVotingRequest) (*QueryAllStoredVotingResponse, error)
func (*UnimplementedQueryServer) SystemInfo ¶
func (*UnimplementedQueryServer) SystemInfo(ctx context.Context, req *QueryGetSystemInfoRequest) (*QueryGetSystemInfoResponse, error)
type Voter ¶
type Voter struct { ProofId string `protobuf:"bytes,1,opt,name=proofId,proto3" json:"proofId,omitempty"` HasVoted bool `protobuf:"varint,2,opt,name=hasVoted,proto3" json:"hasVoted,omitempty"` }
func (*Voter) Descriptor ¶
func (*Voter) GetHasVoted ¶
func (*Voter) GetProofId ¶
func (*Voter) ProtoMessage ¶
func (*Voter) ProtoMessage()
func (*Voter) XXX_DiscardUnknown ¶
func (m *Voter) XXX_DiscardUnknown()
func (*Voter) XXX_Marshal ¶
func (*Voter) XXX_Unmarshal ¶
Source Files ¶
- codec.go
- electoral_roll.pb.go
- errors.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- key_stored_voting.go
- keys.go
- message_add_voter.go
- message_create_voting.go
- msg_update_params.go
- params.go
- params.pb.go
- query.pb.go
- query.pb.gw.go
- stored_voting.pb.go
- system_info.pb.go
- tx.pb.go
- types.go
- voter.pb.go
- voting.go