Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AuctionUsedAllocationsKey(address string, auctionID uint64) []byte
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- 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 UsedAllocationsKey(address string) []byte
- type AllocationPrice
- func (*AllocationPrice) Descriptor() ([]byte, []int)
- func (m *AllocationPrice) Marshal() (dAtA []byte, err error)
- func (m *AllocationPrice) MarshalTo(dAtA []byte) (int, error)
- func (m *AllocationPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AllocationPrice) ProtoMessage()
- func (m *AllocationPrice) Reset()
- func (m *AllocationPrice) Size() (n int)
- func (m *AllocationPrice) String() string
- func (m *AllocationPrice) Unmarshal(dAtA []byte) error
- func (m *AllocationPrice) XXX_DiscardUnknown()
- func (m *AllocationPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllocationPrice) XXX_Merge(src proto.Message)
- func (m *AllocationPrice) XXX_Size() int
- func (m *AllocationPrice) XXX_Unmarshal(b []byte) error
- type AuctionUsedAllocations
- func (*AuctionUsedAllocations) Descriptor() ([]byte, []int)
- func (m *AuctionUsedAllocations) GetAddress() string
- func (m *AuctionUsedAllocations) GetAuctionID() uint64
- func (m *AuctionUsedAllocations) GetWithdrawn() bool
- func (m *AuctionUsedAllocations) Marshal() (dAtA []byte, err error)
- func (m *AuctionUsedAllocations) MarshalTo(dAtA []byte) (int, error)
- func (m *AuctionUsedAllocations) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AuctionUsedAllocations) ProtoMessage()
- func (m *AuctionUsedAllocations) Reset()
- func (m *AuctionUsedAllocations) Size() (n int)
- func (m *AuctionUsedAllocations) String() string
- func (m *AuctionUsedAllocations) Unmarshal(dAtA []byte) error
- func (m *AuctionUsedAllocations) XXX_DiscardUnknown()
- func (m *AuctionUsedAllocations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuctionUsedAllocations) XXX_Merge(src proto.Message)
- func (m *AuctionUsedAllocations) XXX_Size() int
- func (m *AuctionUsedAllocations) XXX_Unmarshal(b []byte) error
- type EventAllocationsUsed
- func (*EventAllocationsUsed) Descriptor() ([]byte, []int)
- func (m *EventAllocationsUsed) GetAuctionID() uint64
- func (m *EventAllocationsUsed) GetParticipant() string
- func (m *EventAllocationsUsed) Marshal() (dAtA []byte, err error)
- func (m *EventAllocationsUsed) MarshalTo(dAtA []byte) (int, error)
- func (m *EventAllocationsUsed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventAllocationsUsed) ProtoMessage()
- func (m *EventAllocationsUsed) Reset()
- func (m *EventAllocationsUsed) Size() (n int)
- func (m *EventAllocationsUsed) String() string
- func (m *EventAllocationsUsed) Unmarshal(dAtA []byte) error
- func (m *EventAllocationsUsed) XXX_DiscardUnknown()
- func (m *EventAllocationsUsed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventAllocationsUsed) XXX_Merge(src proto.Message)
- func (m *EventAllocationsUsed) XXX_Size() int
- func (m *EventAllocationsUsed) XXX_Unmarshal(b []byte) error
- type EventAllocationsWithdrawn
- func (*EventAllocationsWithdrawn) Descriptor() ([]byte, []int)
- func (m *EventAllocationsWithdrawn) GetAuctionID() uint64
- func (m *EventAllocationsWithdrawn) GetParticipant() string
- func (m *EventAllocationsWithdrawn) Marshal() (dAtA []byte, err error)
- func (m *EventAllocationsWithdrawn) MarshalTo(dAtA []byte) (int, error)
- func (m *EventAllocationsWithdrawn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventAllocationsWithdrawn) ProtoMessage()
- func (m *EventAllocationsWithdrawn) Reset()
- func (m *EventAllocationsWithdrawn) Size() (n int)
- func (m *EventAllocationsWithdrawn) String() string
- func (m *EventAllocationsWithdrawn) Unmarshal(dAtA []byte) error
- func (m *EventAllocationsWithdrawn) XXX_DiscardUnknown()
- func (m *EventAllocationsWithdrawn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventAllocationsWithdrawn) XXX_Merge(src proto.Message)
- func (m *EventAllocationsWithdrawn) XXX_Size() int
- func (m *EventAllocationsWithdrawn) XXX_Unmarshal(b []byte) error
- type FundraisingKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAuctionUsedAllocationsList() []AuctionUsedAllocations
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetUsedAllocationsList() []UsedAllocations
- 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 MsgClient
- type MsgParticipate
- func (*MsgParticipate) Descriptor() ([]byte, []int)
- func (m *MsgParticipate) GetAuctionID() uint64
- func (m *MsgParticipate) GetParticipant() string
- func (msg *MsgParticipate) GetSignBytes() []byte
- func (msg *MsgParticipate) GetSigners() []sdk.AccAddress
- func (m *MsgParticipate) GetTierID() uint64
- func (m *MsgParticipate) Marshal() (dAtA []byte, err error)
- func (m *MsgParticipate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgParticipate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgParticipate) ProtoMessage()
- func (m *MsgParticipate) Reset()
- func (msg *MsgParticipate) Route() string
- func (m *MsgParticipate) Size() (n int)
- func (m *MsgParticipate) String() string
- func (msg *MsgParticipate) Type() string
- func (m *MsgParticipate) Unmarshal(dAtA []byte) error
- func (msg *MsgParticipate) ValidateBasic() error
- func (m *MsgParticipate) XXX_DiscardUnknown()
- func (m *MsgParticipate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgParticipate) XXX_Merge(src proto.Message)
- func (m *MsgParticipate) XXX_Size() int
- func (m *MsgParticipate) XXX_Unmarshal(b []byte) error
- type MsgParticipateResponse
- func (*MsgParticipateResponse) Descriptor() ([]byte, []int)
- func (m *MsgParticipateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgParticipateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgParticipateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgParticipateResponse) ProtoMessage()
- func (m *MsgParticipateResponse) Reset()
- func (m *MsgParticipateResponse) Size() (n int)
- func (m *MsgParticipateResponse) String() string
- func (m *MsgParticipateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgParticipateResponse) XXX_DiscardUnknown()
- func (m *MsgParticipateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgParticipateResponse) XXX_Merge(src proto.Message)
- func (m *MsgParticipateResponse) XXX_Size() int
- func (m *MsgParticipateResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgWithdrawAllocations
- func (*MsgWithdrawAllocations) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawAllocations) GetAuctionID() uint64
- func (m *MsgWithdrawAllocations) GetParticipant() string
- func (msg *MsgWithdrawAllocations) GetSignBytes() []byte
- func (msg *MsgWithdrawAllocations) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawAllocations) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawAllocations) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawAllocations) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawAllocations) ProtoMessage()
- func (m *MsgWithdrawAllocations) Reset()
- func (msg *MsgWithdrawAllocations) Route() string
- func (m *MsgWithdrawAllocations) Size() (n int)
- func (m *MsgWithdrawAllocations) String() string
- func (msg *MsgWithdrawAllocations) Type() string
- func (m *MsgWithdrawAllocations) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawAllocations) ValidateBasic() error
- func (m *MsgWithdrawAllocations) XXX_DiscardUnknown()
- func (m *MsgWithdrawAllocations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawAllocations) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawAllocations) XXX_Size() int
- func (m *MsgWithdrawAllocations) XXX_Unmarshal(b []byte) error
- type MsgWithdrawAllocationsResponse
- func (*MsgWithdrawAllocationsResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawAllocationsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawAllocationsResponse) ProtoMessage()
- func (m *MsgWithdrawAllocationsResponse) Reset()
- func (m *MsgWithdrawAllocationsResponse) Size() (n int)
- func (m *MsgWithdrawAllocationsResponse) String() string
- func (m *MsgWithdrawAllocationsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawAllocationsResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawAllocationsResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawAllocationsResponse) XXX_Size() int
- func (m *MsgWithdrawAllocationsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAllocationPrice() AllocationPrice
- func (m *Params) GetParticipationTierList() []Tier
- func (m *Params) GetRegistrationPeriod() time.Duration
- func (m *Params) GetWithdrawalDelay() time.Duration
- 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 (p 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 QueryAllAuctionUsedAllocationsRequest
- func (*QueryAllAuctionUsedAllocationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllAuctionUsedAllocationsRequest) GetAddress() string
- func (m *QueryAllAuctionUsedAllocationsRequest) GetPagination() *query.PageRequest
- func (m *QueryAllAuctionUsedAllocationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllAuctionUsedAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllAuctionUsedAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllAuctionUsedAllocationsRequest) ProtoMessage()
- func (m *QueryAllAuctionUsedAllocationsRequest) Reset()
- func (m *QueryAllAuctionUsedAllocationsRequest) Size() (n int)
- func (m *QueryAllAuctionUsedAllocationsRequest) String() string
- func (m *QueryAllAuctionUsedAllocationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllAuctionUsedAllocationsRequest) XXX_DiscardUnknown()
- func (m *QueryAllAuctionUsedAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllAuctionUsedAllocationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllAuctionUsedAllocationsRequest) XXX_Size() int
- func (m *QueryAllAuctionUsedAllocationsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllAuctionUsedAllocationsResponse
- func (*QueryAllAuctionUsedAllocationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllAuctionUsedAllocationsResponse) GetAuctionUsedAllocations() []AuctionUsedAllocations
- func (m *QueryAllAuctionUsedAllocationsResponse) GetPagination() *query.PageResponse
- func (m *QueryAllAuctionUsedAllocationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllAuctionUsedAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllAuctionUsedAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllAuctionUsedAllocationsResponse) ProtoMessage()
- func (m *QueryAllAuctionUsedAllocationsResponse) Reset()
- func (m *QueryAllAuctionUsedAllocationsResponse) Size() (n int)
- func (m *QueryAllAuctionUsedAllocationsResponse) String() string
- func (m *QueryAllAuctionUsedAllocationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllAuctionUsedAllocationsResponse) XXX_DiscardUnknown()
- func (m *QueryAllAuctionUsedAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllAuctionUsedAllocationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllAuctionUsedAllocationsResponse) XXX_Size() int
- func (m *QueryAllAuctionUsedAllocationsResponse) XXX_Unmarshal(b []byte) error
- type QueryAllUsedAllocationsRequest
- func (*QueryAllUsedAllocationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllUsedAllocationsRequest) GetPagination() *query.PageRequest
- func (m *QueryAllUsedAllocationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllUsedAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllUsedAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllUsedAllocationsRequest) ProtoMessage()
- func (m *QueryAllUsedAllocationsRequest) Reset()
- func (m *QueryAllUsedAllocationsRequest) Size() (n int)
- func (m *QueryAllUsedAllocationsRequest) String() string
- func (m *QueryAllUsedAllocationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllUsedAllocationsRequest) XXX_DiscardUnknown()
- func (m *QueryAllUsedAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllUsedAllocationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllUsedAllocationsRequest) XXX_Size() int
- func (m *QueryAllUsedAllocationsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllUsedAllocationsResponse
- func (*QueryAllUsedAllocationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllUsedAllocationsResponse) GetPagination() *query.PageResponse
- func (m *QueryAllUsedAllocationsResponse) GetUsedAllocations() []UsedAllocations
- func (m *QueryAllUsedAllocationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllUsedAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllUsedAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllUsedAllocationsResponse) ProtoMessage()
- func (m *QueryAllUsedAllocationsResponse) Reset()
- func (m *QueryAllUsedAllocationsResponse) Size() (n int)
- func (m *QueryAllUsedAllocationsResponse) String() string
- func (m *QueryAllUsedAllocationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllUsedAllocationsResponse) XXX_DiscardUnknown()
- func (m *QueryAllUsedAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllUsedAllocationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllUsedAllocationsResponse) XXX_Size() int
- func (m *QueryAllUsedAllocationsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetAuctionUsedAllocationsRequest
- func (*QueryGetAuctionUsedAllocationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetAuctionUsedAllocationsRequest) GetAddress() string
- func (m *QueryGetAuctionUsedAllocationsRequest) GetAuctionID() uint64
- func (m *QueryGetAuctionUsedAllocationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetAuctionUsedAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetAuctionUsedAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetAuctionUsedAllocationsRequest) ProtoMessage()
- func (m *QueryGetAuctionUsedAllocationsRequest) Reset()
- func (m *QueryGetAuctionUsedAllocationsRequest) Size() (n int)
- func (m *QueryGetAuctionUsedAllocationsRequest) String() string
- func (m *QueryGetAuctionUsedAllocationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetAuctionUsedAllocationsRequest) XXX_DiscardUnknown()
- func (m *QueryGetAuctionUsedAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetAuctionUsedAllocationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetAuctionUsedAllocationsRequest) XXX_Size() int
- func (m *QueryGetAuctionUsedAllocationsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetAuctionUsedAllocationsResponse
- func (*QueryGetAuctionUsedAllocationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetAuctionUsedAllocationsResponse) GetAuctionUsedAllocations() AuctionUsedAllocations
- func (m *QueryGetAuctionUsedAllocationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetAuctionUsedAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetAuctionUsedAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetAuctionUsedAllocationsResponse) ProtoMessage()
- func (m *QueryGetAuctionUsedAllocationsResponse) Reset()
- func (m *QueryGetAuctionUsedAllocationsResponse) Size() (n int)
- func (m *QueryGetAuctionUsedAllocationsResponse) String() string
- func (m *QueryGetAuctionUsedAllocationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetAuctionUsedAllocationsResponse) XXX_DiscardUnknown()
- func (m *QueryGetAuctionUsedAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetAuctionUsedAllocationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetAuctionUsedAllocationsResponse) XXX_Size() int
- func (m *QueryGetAuctionUsedAllocationsResponse) XXX_Unmarshal(b []byte) error
- type QueryGetAvailableAllocationsRequest
- func (*QueryGetAvailableAllocationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetAvailableAllocationsRequest) GetAddress() string
- func (m *QueryGetAvailableAllocationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetAvailableAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetAvailableAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetAvailableAllocationsRequest) ProtoMessage()
- func (m *QueryGetAvailableAllocationsRequest) Reset()
- func (m *QueryGetAvailableAllocationsRequest) Size() (n int)
- func (m *QueryGetAvailableAllocationsRequest) String() string
- func (m *QueryGetAvailableAllocationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetAvailableAllocationsRequest) XXX_DiscardUnknown()
- func (m *QueryGetAvailableAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetAvailableAllocationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetAvailableAllocationsRequest) XXX_Size() int
- func (m *QueryGetAvailableAllocationsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetAvailableAllocationsResponse
- func (*QueryGetAvailableAllocationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetAvailableAllocationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetAvailableAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetAvailableAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetAvailableAllocationsResponse) ProtoMessage()
- func (m *QueryGetAvailableAllocationsResponse) Reset()
- func (m *QueryGetAvailableAllocationsResponse) Size() (n int)
- func (m *QueryGetAvailableAllocationsResponse) String() string
- func (m *QueryGetAvailableAllocationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetAvailableAllocationsResponse) XXX_DiscardUnknown()
- func (m *QueryGetAvailableAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetAvailableAllocationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetAvailableAllocationsResponse) XXX_Size() int
- func (m *QueryGetAvailableAllocationsResponse) XXX_Unmarshal(b []byte) error
- type QueryGetTotalAllocationsRequest
- func (*QueryGetTotalAllocationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetTotalAllocationsRequest) GetAddress() string
- func (m *QueryGetTotalAllocationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetTotalAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetTotalAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetTotalAllocationsRequest) ProtoMessage()
- func (m *QueryGetTotalAllocationsRequest) Reset()
- func (m *QueryGetTotalAllocationsRequest) Size() (n int)
- func (m *QueryGetTotalAllocationsRequest) String() string
- func (m *QueryGetTotalAllocationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetTotalAllocationsRequest) XXX_DiscardUnknown()
- func (m *QueryGetTotalAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetTotalAllocationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetTotalAllocationsRequest) XXX_Size() int
- func (m *QueryGetTotalAllocationsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetTotalAllocationsResponse
- func (*QueryGetTotalAllocationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetTotalAllocationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetTotalAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetTotalAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetTotalAllocationsResponse) ProtoMessage()
- func (m *QueryGetTotalAllocationsResponse) Reset()
- func (m *QueryGetTotalAllocationsResponse) Size() (n int)
- func (m *QueryGetTotalAllocationsResponse) String() string
- func (m *QueryGetTotalAllocationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetTotalAllocationsResponse) XXX_DiscardUnknown()
- func (m *QueryGetTotalAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetTotalAllocationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetTotalAllocationsResponse) XXX_Size() int
- func (m *QueryGetTotalAllocationsResponse) XXX_Unmarshal(b []byte) error
- type QueryGetUsedAllocationsRequest
- func (*QueryGetUsedAllocationsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetUsedAllocationsRequest) GetAddress() string
- func (m *QueryGetUsedAllocationsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetUsedAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetUsedAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetUsedAllocationsRequest) ProtoMessage()
- func (m *QueryGetUsedAllocationsRequest) Reset()
- func (m *QueryGetUsedAllocationsRequest) Size() (n int)
- func (m *QueryGetUsedAllocationsRequest) String() string
- func (m *QueryGetUsedAllocationsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetUsedAllocationsRequest) XXX_DiscardUnknown()
- func (m *QueryGetUsedAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetUsedAllocationsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetUsedAllocationsRequest) XXX_Size() int
- func (m *QueryGetUsedAllocationsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetUsedAllocationsResponse
- func (*QueryGetUsedAllocationsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetUsedAllocationsResponse) GetUsedAllocations() UsedAllocations
- func (m *QueryGetUsedAllocationsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetUsedAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetUsedAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetUsedAllocationsResponse) ProtoMessage()
- func (m *QueryGetUsedAllocationsResponse) Reset()
- func (m *QueryGetUsedAllocationsResponse) Size() (n int)
- func (m *QueryGetUsedAllocationsResponse) String() string
- func (m *QueryGetUsedAllocationsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetUsedAllocationsResponse) XXX_DiscardUnknown()
- func (m *QueryGetUsedAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetUsedAllocationsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetUsedAllocationsResponse) XXX_Size() int
- func (m *QueryGetUsedAllocationsResponse) 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 StakingKeeper
- type Tier
- func (*Tier) Descriptor() ([]byte, []int)
- func (m *Tier) GetBenefits() TierBenefits
- func (m *Tier) GetTierID() uint64
- func (m *Tier) Marshal() (dAtA []byte, err error)
- func (m *Tier) MarshalTo(dAtA []byte) (int, error)
- func (m *Tier) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Tier) ProtoMessage()
- func (m *Tier) Reset()
- func (m *Tier) Size() (n int)
- func (m *Tier) String() string
- func (m *Tier) Unmarshal(dAtA []byte) error
- func (m *Tier) XXX_DiscardUnknown()
- func (m *Tier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Tier) XXX_Merge(src proto.Message)
- func (m *Tier) XXX_Size() int
- func (m *Tier) XXX_Unmarshal(b []byte) error
- type TierBenefits
- func (*TierBenefits) Descriptor() ([]byte, []int)
- func (m *TierBenefits) Marshal() (dAtA []byte, err error)
- func (m *TierBenefits) MarshalTo(dAtA []byte) (int, error)
- func (m *TierBenefits) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TierBenefits) ProtoMessage()
- func (m *TierBenefits) Reset()
- func (m *TierBenefits) Size() (n int)
- func (m *TierBenefits) String() string
- func (m *TierBenefits) Unmarshal(dAtA []byte) error
- func (m *TierBenefits) XXX_DiscardUnknown()
- func (m *TierBenefits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TierBenefits) XXX_Merge(src proto.Message)
- func (m *TierBenefits) XXX_Size() int
- func (m *TierBenefits) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AuctionUsedAllocations(ctx context.Context, req *QueryGetAuctionUsedAllocationsRequest) (*QueryGetAuctionUsedAllocationsResponse, error)
- func (*UnimplementedQueryServer) AuctionUsedAllocationsAll(ctx context.Context, req *QueryAllAuctionUsedAllocationsRequest) (*QueryAllAuctionUsedAllocationsResponse, error)
- func (*UnimplementedQueryServer) AvailableAllocations(ctx context.Context, req *QueryGetAvailableAllocationsRequest) (*QueryGetAvailableAllocationsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) TotalAllocations(ctx context.Context, req *QueryGetTotalAllocationsRequest) (*QueryGetTotalAllocationsResponse, error)
- func (*UnimplementedQueryServer) UsedAllocations(ctx context.Context, req *QueryGetUsedAllocationsRequest) (*QueryGetUsedAllocationsResponse, error)
- func (*UnimplementedQueryServer) UsedAllocationsAll(ctx context.Context, req *QueryAllUsedAllocationsRequest) (*QueryAllUsedAllocationsResponse, error)
- type UsedAllocations
- func (*UsedAllocations) Descriptor() ([]byte, []int)
- func (m *UsedAllocations) GetAddress() string
- func (m *UsedAllocations) Marshal() (dAtA []byte, err error)
- func (m *UsedAllocations) MarshalTo(dAtA []byte) (int, error)
- func (m *UsedAllocations) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UsedAllocations) ProtoMessage()
- func (m *UsedAllocations) Reset()
- func (m *UsedAllocations) Size() (n int)
- func (m *UsedAllocations) String() string
- func (m *UsedAllocations) Unmarshal(dAtA []byte) error
- func (m *UsedAllocations) XXX_DiscardUnknown()
- func (m *UsedAllocations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UsedAllocations) XXX_Merge(src proto.Message)
- func (m *UsedAllocations) XXX_Size() int
- func (m *UsedAllocations) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "participation" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_participation" // UsedAllocationsKeyPrefix is the prefix to retrieve all UsedAllocations UsedAllocationsKeyPrefix = "UsedAllocations/value/" // AuctionUsedAllocationsKeyPrefix is the prefix to retrieve all AuctionUsedAllocations AuctionUsedAllocationsKeyPrefix = "AuctionUsedAllocations/value/" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const TypeMsgParticipate = "participate"
const TypeMsgWithdrawAllocations = "withdraw_allocations"
Variables ¶
var ( ErrInvalidLengthAuctionUsedAllocations = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuctionUsedAllocations = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAuctionUsedAllocations = fmt.Errorf("proto: unexpected end of group") )
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrAuctionNotFound = sdkerrors.Register(ModuleName, 2, "auction not found") ErrInvalidBidder = sdkerrors.Register(ModuleName, 3, "invalid bidder") ErrInvalidAllocationAmount = sdkerrors.Register(ModuleName, 4, "invalid allocation amount") ErrTierNotFound = sdkerrors.Register(ModuleName, 5, "tier not found") ErrInsufficientAllocations = sdkerrors.Register(ModuleName, 6, "insufficient allocations") ErrAlreadyParticipating = sdkerrors.Register(ModuleName, 7, "address is already participating") ErrParticipationNotAllowed = sdkerrors.Register(ModuleName, 8, "unable to participate to auction") ErrAllocationWithdrawalTimeNotReached = sdkerrors.Register(ModuleName, 9, "unable to withdraw allocations") ErrUsedAllocationsNotFound = sdkerrors.Register(ModuleName, 10, "used allocations not found") ErrAllocationsAlreadyWithdrawn = sdkerrors.Register(ModuleName, 11, "used allocations already withdrawn") ErrInvalidAddress = sdkerrors.Register(ModuleName, 12, "invalid participant address") )
x/participation module sentinel errors
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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 ( KeyAllocationPrice = []byte("AllocationPrice") KeyParticipationTierList = []byte("ParticipationTierList") KeyRegistrationPeriod = []byte("RegistrationPeriod") KeyWithdrawalDelay = []byte("WithdrawalDelay") DefaultAllocationPrice = AllocationPrice{ Bonded: sdkmath.NewInt(1000), } DefaultParticipationTierList = []Tier{ { TierID: 1, RequiredAllocations: sdkmath.OneInt(), Benefits: TierBenefits{ MaxBidAmount: sdkmath.NewInt(1000), }, }, { TierID: 2, RequiredAllocations: sdkmath.NewInt(2), Benefits: TierBenefits{ MaxBidAmount: sdkmath.NewInt(2000), }, }, { TierID: 3, RequiredAllocations: sdkmath.NewInt(5), Benefits: TierBenefits{ MaxBidAmount: sdkmath.NewInt(10000), }, }, { TierID: 4, RequiredAllocations: sdkmath.NewInt(10), Benefits: TierBenefits{ MaxBidAmount: sdkmath.NewInt(30000), }, }, } // DefaultRegistrationPeriod is set to be 1/3 of the default staking UnbondingTime of 21 days. DefaultRegistrationPeriod = time.Hour * 24 * 7 // One week // DefaultWithdrawalDelay is set to be 2/3 of the default staking UnbondingTime of 21 days. Together with // DefaultRegistrationPeriod they sum up to the total default UnbondingTime DefaultWithdrawalDelay = time.Hour * 24 * 14 // Two weeks )
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") )
Functions ¶
func AuctionUsedAllocationsKey ¶
AuctionUsedAllocationsKey returns the store key to retrieve a AuctionUsedAllocations from the address and auctionID fields
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
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 UsedAllocationsKey ¶
UsedAllocationsKey returns the store key to retrieve a UsedAllocations from the address field
Types ¶
type AllocationPrice ¶
type AllocationPrice struct { // number of bonded tokens necessary to get one allocation Bonded github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=bonded,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"bonded"` }
func (*AllocationPrice) Descriptor ¶
func (*AllocationPrice) Descriptor() ([]byte, []int)
func (*AllocationPrice) Marshal ¶
func (m *AllocationPrice) Marshal() (dAtA []byte, err error)
func (*AllocationPrice) MarshalToSizedBuffer ¶
func (m *AllocationPrice) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AllocationPrice) ProtoMessage ¶
func (*AllocationPrice) ProtoMessage()
func (*AllocationPrice) Reset ¶
func (m *AllocationPrice) Reset()
func (*AllocationPrice) Size ¶
func (m *AllocationPrice) Size() (n int)
func (*AllocationPrice) String ¶
func (m *AllocationPrice) String() string
func (*AllocationPrice) Unmarshal ¶
func (m *AllocationPrice) Unmarshal(dAtA []byte) error
func (*AllocationPrice) XXX_DiscardUnknown ¶
func (m *AllocationPrice) XXX_DiscardUnknown()
func (*AllocationPrice) XXX_Marshal ¶
func (m *AllocationPrice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllocationPrice) XXX_Merge ¶
func (m *AllocationPrice) XXX_Merge(src proto.Message)
func (*AllocationPrice) XXX_Size ¶
func (m *AllocationPrice) XXX_Size() int
func (*AllocationPrice) XXX_Unmarshal ¶
func (m *AllocationPrice) XXX_Unmarshal(b []byte) error
type AuctionUsedAllocations ¶
type AuctionUsedAllocations struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` AuctionID uint64 `protobuf:"varint,2,opt,name=auctionID,proto3" json:"auctionID,omitempty"` Withdrawn bool `protobuf:"varint,3,opt,name=withdrawn,proto3" json:"withdrawn,omitempty"` NumAllocations github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=numAllocations,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"numAllocations"` }
Allocations used by a user for a specific auction
func (*AuctionUsedAllocations) Descriptor ¶
func (*AuctionUsedAllocations) Descriptor() ([]byte, []int)
func (*AuctionUsedAllocations) GetAddress ¶
func (m *AuctionUsedAllocations) GetAddress() string
func (*AuctionUsedAllocations) GetAuctionID ¶
func (m *AuctionUsedAllocations) GetAuctionID() uint64
func (*AuctionUsedAllocations) GetWithdrawn ¶
func (m *AuctionUsedAllocations) GetWithdrawn() bool
func (*AuctionUsedAllocations) Marshal ¶
func (m *AuctionUsedAllocations) Marshal() (dAtA []byte, err error)
func (*AuctionUsedAllocations) MarshalTo ¶
func (m *AuctionUsedAllocations) MarshalTo(dAtA []byte) (int, error)
func (*AuctionUsedAllocations) MarshalToSizedBuffer ¶
func (m *AuctionUsedAllocations) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AuctionUsedAllocations) ProtoMessage ¶
func (*AuctionUsedAllocations) ProtoMessage()
func (*AuctionUsedAllocations) Reset ¶
func (m *AuctionUsedAllocations) Reset()
func (*AuctionUsedAllocations) Size ¶
func (m *AuctionUsedAllocations) Size() (n int)
func (*AuctionUsedAllocations) String ¶
func (m *AuctionUsedAllocations) String() string
func (*AuctionUsedAllocations) Unmarshal ¶
func (m *AuctionUsedAllocations) Unmarshal(dAtA []byte) error
func (*AuctionUsedAllocations) XXX_DiscardUnknown ¶
func (m *AuctionUsedAllocations) XXX_DiscardUnknown()
func (*AuctionUsedAllocations) XXX_Marshal ¶
func (m *AuctionUsedAllocations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AuctionUsedAllocations) XXX_Merge ¶
func (m *AuctionUsedAllocations) XXX_Merge(src proto.Message)
func (*AuctionUsedAllocations) XXX_Size ¶
func (m *AuctionUsedAllocations) XXX_Size() int
func (*AuctionUsedAllocations) XXX_Unmarshal ¶
func (m *AuctionUsedAllocations) XXX_Unmarshal(b []byte) error
type EventAllocationsUsed ¶ added in v0.3.0
type EventAllocationsUsed struct { Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"` AuctionID uint64 `protobuf:"varint,2,opt,name=auctionID,proto3" json:"auctionID,omitempty"` NumAllocations github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=numAllocations,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"numAllocations"` }
func (*EventAllocationsUsed) Descriptor ¶ added in v0.3.0
func (*EventAllocationsUsed) Descriptor() ([]byte, []int)
func (*EventAllocationsUsed) GetAuctionID ¶ added in v0.3.0
func (m *EventAllocationsUsed) GetAuctionID() uint64
func (*EventAllocationsUsed) GetParticipant ¶ added in v0.3.0
func (m *EventAllocationsUsed) GetParticipant() string
func (*EventAllocationsUsed) Marshal ¶ added in v0.3.0
func (m *EventAllocationsUsed) Marshal() (dAtA []byte, err error)
func (*EventAllocationsUsed) MarshalTo ¶ added in v0.3.0
func (m *EventAllocationsUsed) MarshalTo(dAtA []byte) (int, error)
func (*EventAllocationsUsed) MarshalToSizedBuffer ¶ added in v0.3.0
func (m *EventAllocationsUsed) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventAllocationsUsed) ProtoMessage ¶ added in v0.3.0
func (*EventAllocationsUsed) ProtoMessage()
func (*EventAllocationsUsed) Reset ¶ added in v0.3.0
func (m *EventAllocationsUsed) Reset()
func (*EventAllocationsUsed) Size ¶ added in v0.3.0
func (m *EventAllocationsUsed) Size() (n int)
func (*EventAllocationsUsed) String ¶ added in v0.3.0
func (m *EventAllocationsUsed) String() string
func (*EventAllocationsUsed) Unmarshal ¶ added in v0.3.0
func (m *EventAllocationsUsed) Unmarshal(dAtA []byte) error
func (*EventAllocationsUsed) XXX_DiscardUnknown ¶ added in v0.3.0
func (m *EventAllocationsUsed) XXX_DiscardUnknown()
func (*EventAllocationsUsed) XXX_Marshal ¶ added in v0.3.0
func (m *EventAllocationsUsed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventAllocationsUsed) XXX_Merge ¶ added in v0.3.0
func (m *EventAllocationsUsed) XXX_Merge(src proto.Message)
func (*EventAllocationsUsed) XXX_Size ¶ added in v0.3.0
func (m *EventAllocationsUsed) XXX_Size() int
func (*EventAllocationsUsed) XXX_Unmarshal ¶ added in v0.3.0
func (m *EventAllocationsUsed) XXX_Unmarshal(b []byte) error
type EventAllocationsWithdrawn ¶ added in v0.3.0
type EventAllocationsWithdrawn struct { Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"` AuctionID uint64 `protobuf:"varint,2,opt,name=auctionID,proto3" json:"auctionID,omitempty"` }
func (*EventAllocationsWithdrawn) Descriptor ¶ added in v0.3.0
func (*EventAllocationsWithdrawn) Descriptor() ([]byte, []int)
func (*EventAllocationsWithdrawn) GetAuctionID ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) GetAuctionID() uint64
func (*EventAllocationsWithdrawn) GetParticipant ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) GetParticipant() string
func (*EventAllocationsWithdrawn) Marshal ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) Marshal() (dAtA []byte, err error)
func (*EventAllocationsWithdrawn) MarshalTo ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) MarshalTo(dAtA []byte) (int, error)
func (*EventAllocationsWithdrawn) MarshalToSizedBuffer ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventAllocationsWithdrawn) ProtoMessage ¶ added in v0.3.0
func (*EventAllocationsWithdrawn) ProtoMessage()
func (*EventAllocationsWithdrawn) Reset ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) Reset()
func (*EventAllocationsWithdrawn) Size ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) Size() (n int)
func (*EventAllocationsWithdrawn) String ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) String() string
func (*EventAllocationsWithdrawn) Unmarshal ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) Unmarshal(dAtA []byte) error
func (*EventAllocationsWithdrawn) XXX_DiscardUnknown ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) XXX_DiscardUnknown()
func (*EventAllocationsWithdrawn) XXX_Marshal ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventAllocationsWithdrawn) XXX_Merge ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) XXX_Merge(src proto.Message)
func (*EventAllocationsWithdrawn) XXX_Size ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) XXX_Size() int
func (*EventAllocationsWithdrawn) XXX_Unmarshal ¶ added in v0.3.0
func (m *EventAllocationsWithdrawn) XXX_Unmarshal(b []byte) error
type FundraisingKeeper ¶
type FundraisingKeeper interface { GetAuction(ctx sdk.Context, id uint64) (auction fundraisingtypes.AuctionI, found bool) AddAllowedBidders(ctx sdk.Context, auctionID uint64, bidders []fundraisingtypes.AllowedBidder) error }
type GenesisState ¶
type GenesisState struct { UsedAllocationsList []UsedAllocations `protobuf:"bytes,1,rep,name=usedAllocationsList,proto3" json:"usedAllocationsList"` AuctionUsedAllocationsList []AuctionUsedAllocations `protobuf:"bytes,2,rep,name=auctionUsedAllocationsList,proto3" json:"auctionUsedAllocationsList"` Params Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params"` }
GenesisState defines the participation module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAuctionUsedAllocationsList ¶
func (m *GenesisState) GetAuctionUsedAllocationsList() []AuctionUsedAllocations
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetUsedAllocationsList ¶
func (m *GenesisState) GetUsedAllocationsList() []UsedAllocations
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 MsgClient ¶
type MsgClient interface { Participate(ctx context.Context, in *MsgParticipate, opts ...grpc.CallOption) (*MsgParticipateResponse, error) WithdrawAllocations(ctx context.Context, in *MsgWithdrawAllocations, opts ...grpc.CallOption) (*MsgWithdrawAllocationsResponse, 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 MsgParticipate ¶
type MsgParticipate struct { Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"` AuctionID uint64 `protobuf:"varint,2,opt,name=auctionID,proto3" json:"auctionID,omitempty"` TierID uint64 `protobuf:"varint,3,opt,name=tierID,proto3" json:"tierID,omitempty"` }
func NewMsgParticipate ¶
func NewMsgParticipate(participant string, auctionID uint64, tierID uint64) *MsgParticipate
func (*MsgParticipate) Descriptor ¶
func (*MsgParticipate) Descriptor() ([]byte, []int)
func (*MsgParticipate) GetAuctionID ¶
func (m *MsgParticipate) GetAuctionID() uint64
func (*MsgParticipate) GetParticipant ¶
func (m *MsgParticipate) GetParticipant() string
func (*MsgParticipate) GetSignBytes ¶
func (msg *MsgParticipate) GetSignBytes() []byte
func (*MsgParticipate) GetSigners ¶
func (msg *MsgParticipate) GetSigners() []sdk.AccAddress
func (*MsgParticipate) GetTierID ¶
func (m *MsgParticipate) GetTierID() uint64
func (*MsgParticipate) Marshal ¶
func (m *MsgParticipate) Marshal() (dAtA []byte, err error)
func (*MsgParticipate) MarshalToSizedBuffer ¶
func (m *MsgParticipate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgParticipate) ProtoMessage ¶
func (*MsgParticipate) ProtoMessage()
func (*MsgParticipate) Reset ¶
func (m *MsgParticipate) Reset()
func (*MsgParticipate) Route ¶
func (msg *MsgParticipate) Route() string
func (*MsgParticipate) Size ¶
func (m *MsgParticipate) Size() (n int)
func (*MsgParticipate) String ¶
func (m *MsgParticipate) String() string
func (*MsgParticipate) Type ¶
func (msg *MsgParticipate) Type() string
func (*MsgParticipate) Unmarshal ¶
func (m *MsgParticipate) Unmarshal(dAtA []byte) error
func (*MsgParticipate) ValidateBasic ¶
func (msg *MsgParticipate) ValidateBasic() error
func (*MsgParticipate) XXX_DiscardUnknown ¶
func (m *MsgParticipate) XXX_DiscardUnknown()
func (*MsgParticipate) XXX_Marshal ¶
func (m *MsgParticipate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgParticipate) XXX_Merge ¶
func (m *MsgParticipate) XXX_Merge(src proto.Message)
func (*MsgParticipate) XXX_Size ¶
func (m *MsgParticipate) XXX_Size() int
func (*MsgParticipate) XXX_Unmarshal ¶
func (m *MsgParticipate) XXX_Unmarshal(b []byte) error
type MsgParticipateResponse ¶
type MsgParticipateResponse struct { }
func (*MsgParticipateResponse) Descriptor ¶
func (*MsgParticipateResponse) Descriptor() ([]byte, []int)
func (*MsgParticipateResponse) Marshal ¶
func (m *MsgParticipateResponse) Marshal() (dAtA []byte, err error)
func (*MsgParticipateResponse) MarshalTo ¶
func (m *MsgParticipateResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgParticipateResponse) MarshalToSizedBuffer ¶
func (m *MsgParticipateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgParticipateResponse) ProtoMessage ¶
func (*MsgParticipateResponse) ProtoMessage()
func (*MsgParticipateResponse) Reset ¶
func (m *MsgParticipateResponse) Reset()
func (*MsgParticipateResponse) Size ¶
func (m *MsgParticipateResponse) Size() (n int)
func (*MsgParticipateResponse) String ¶
func (m *MsgParticipateResponse) String() string
func (*MsgParticipateResponse) Unmarshal ¶
func (m *MsgParticipateResponse) Unmarshal(dAtA []byte) error
func (*MsgParticipateResponse) XXX_DiscardUnknown ¶
func (m *MsgParticipateResponse) XXX_DiscardUnknown()
func (*MsgParticipateResponse) XXX_Marshal ¶
func (m *MsgParticipateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgParticipateResponse) XXX_Merge ¶
func (m *MsgParticipateResponse) XXX_Merge(src proto.Message)
func (*MsgParticipateResponse) XXX_Size ¶
func (m *MsgParticipateResponse) XXX_Size() int
func (*MsgParticipateResponse) XXX_Unmarshal ¶
func (m *MsgParticipateResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { Participate(context.Context, *MsgParticipate) (*MsgParticipateResponse, error) WithdrawAllocations(context.Context, *MsgWithdrawAllocations) (*MsgWithdrawAllocationsResponse, error) }
MsgServer is the server API for Msg service.
type MsgWithdrawAllocations ¶
type MsgWithdrawAllocations struct { Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"` AuctionID uint64 `protobuf:"varint,2,opt,name=auctionID,proto3" json:"auctionID,omitempty"` }
func NewMsgWithdrawAllocations ¶
func NewMsgWithdrawAllocations(participant string, auctionID uint64) *MsgWithdrawAllocations
func (*MsgWithdrawAllocations) Descriptor ¶
func (*MsgWithdrawAllocations) Descriptor() ([]byte, []int)
func (*MsgWithdrawAllocations) GetAuctionID ¶
func (m *MsgWithdrawAllocations) GetAuctionID() uint64
func (*MsgWithdrawAllocations) GetParticipant ¶
func (m *MsgWithdrawAllocations) GetParticipant() string
func (*MsgWithdrawAllocations) GetSignBytes ¶
func (msg *MsgWithdrawAllocations) GetSignBytes() []byte
func (*MsgWithdrawAllocations) GetSigners ¶
func (msg *MsgWithdrawAllocations) GetSigners() []sdk.AccAddress
func (*MsgWithdrawAllocations) Marshal ¶
func (m *MsgWithdrawAllocations) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawAllocations) MarshalTo ¶
func (m *MsgWithdrawAllocations) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawAllocations) MarshalToSizedBuffer ¶
func (m *MsgWithdrawAllocations) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawAllocations) ProtoMessage ¶
func (*MsgWithdrawAllocations) ProtoMessage()
func (*MsgWithdrawAllocations) Reset ¶
func (m *MsgWithdrawAllocations) Reset()
func (*MsgWithdrawAllocations) Route ¶
func (msg *MsgWithdrawAllocations) Route() string
func (*MsgWithdrawAllocations) Size ¶
func (m *MsgWithdrawAllocations) Size() (n int)
func (*MsgWithdrawAllocations) String ¶
func (m *MsgWithdrawAllocations) String() string
func (*MsgWithdrawAllocations) Type ¶
func (msg *MsgWithdrawAllocations) Type() string
func (*MsgWithdrawAllocations) Unmarshal ¶
func (m *MsgWithdrawAllocations) Unmarshal(dAtA []byte) error
func (*MsgWithdrawAllocations) ValidateBasic ¶
func (msg *MsgWithdrawAllocations) ValidateBasic() error
func (*MsgWithdrawAllocations) XXX_DiscardUnknown ¶
func (m *MsgWithdrawAllocations) XXX_DiscardUnknown()
func (*MsgWithdrawAllocations) XXX_Marshal ¶
func (m *MsgWithdrawAllocations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawAllocations) XXX_Merge ¶
func (m *MsgWithdrawAllocations) XXX_Merge(src proto.Message)
func (*MsgWithdrawAllocations) XXX_Size ¶
func (m *MsgWithdrawAllocations) XXX_Size() int
func (*MsgWithdrawAllocations) XXX_Unmarshal ¶
func (m *MsgWithdrawAllocations) XXX_Unmarshal(b []byte) error
type MsgWithdrawAllocationsResponse ¶
type MsgWithdrawAllocationsResponse struct { }
func (*MsgWithdrawAllocationsResponse) Descriptor ¶
func (*MsgWithdrawAllocationsResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawAllocationsResponse) Marshal ¶
func (m *MsgWithdrawAllocationsResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawAllocationsResponse) MarshalTo ¶
func (m *MsgWithdrawAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawAllocationsResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawAllocationsResponse) ProtoMessage ¶
func (*MsgWithdrawAllocationsResponse) ProtoMessage()
func (*MsgWithdrawAllocationsResponse) Reset ¶
func (m *MsgWithdrawAllocationsResponse) Reset()
func (*MsgWithdrawAllocationsResponse) Size ¶
func (m *MsgWithdrawAllocationsResponse) Size() (n int)
func (*MsgWithdrawAllocationsResponse) String ¶
func (m *MsgWithdrawAllocationsResponse) String() string
func (*MsgWithdrawAllocationsResponse) Unmarshal ¶
func (m *MsgWithdrawAllocationsResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawAllocationsResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawAllocationsResponse) XXX_DiscardUnknown()
func (*MsgWithdrawAllocationsResponse) XXX_Marshal ¶
func (m *MsgWithdrawAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawAllocationsResponse) XXX_Merge ¶
func (m *MsgWithdrawAllocationsResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawAllocationsResponse) XXX_Size ¶
func (m *MsgWithdrawAllocationsResponse) XXX_Size() int
func (*MsgWithdrawAllocationsResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawAllocationsResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { AllocationPrice AllocationPrice `protobuf:"bytes,1,opt,name=allocationPrice,proto3" json:"allocationPrice"` ParticipationTierList []Tier `protobuf:"bytes,2,rep,name=participationTierList,proto3" json:"participationTierList"` // Time frame before auction starts where MsgParticipate can be called RegistrationPeriod time.Duration `protobuf:"bytes,3,opt,name=registrationPeriod,proto3,stdduration" json:"registrationPeriod"` // Delay after auction starts when allocations can be withdrawn WithdrawalDelay time.Duration `protobuf:"bytes,4,opt,name=withdrawalDelay,proto3,stdduration" json:"withdrawalDelay"` }
Params defines the parameters for the module.
func NewParams ¶
func NewParams( allocationPrice AllocationPrice, participationTierList []Tier, registrationPeriod, withdrawalDelay time.Duration, ) Params
NewParams creates a new Params instance
func (*Params) Descriptor ¶
func (*Params) GetAllocationPrice ¶
func (m *Params) GetAllocationPrice() AllocationPrice
func (*Params) GetParticipationTierList ¶
func (*Params) GetRegistrationPeriod ¶
func (*Params) GetWithdrawalDelay ¶
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 QueryAllAuctionUsedAllocationsRequest ¶
type QueryAllAuctionUsedAllocationsRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllAuctionUsedAllocationsRequest) Descriptor ¶
func (*QueryAllAuctionUsedAllocationsRequest) Descriptor() ([]byte, []int)
func (*QueryAllAuctionUsedAllocationsRequest) GetAddress ¶
func (m *QueryAllAuctionUsedAllocationsRequest) GetAddress() string
func (*QueryAllAuctionUsedAllocationsRequest) GetPagination ¶
func (m *QueryAllAuctionUsedAllocationsRequest) GetPagination() *query.PageRequest
func (*QueryAllAuctionUsedAllocationsRequest) Marshal ¶
func (m *QueryAllAuctionUsedAllocationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllAuctionUsedAllocationsRequest) MarshalTo ¶
func (m *QueryAllAuctionUsedAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllAuctionUsedAllocationsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllAuctionUsedAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllAuctionUsedAllocationsRequest) ProtoMessage ¶
func (*QueryAllAuctionUsedAllocationsRequest) ProtoMessage()
func (*QueryAllAuctionUsedAllocationsRequest) Reset ¶
func (m *QueryAllAuctionUsedAllocationsRequest) Reset()
func (*QueryAllAuctionUsedAllocationsRequest) Size ¶
func (m *QueryAllAuctionUsedAllocationsRequest) Size() (n int)
func (*QueryAllAuctionUsedAllocationsRequest) String ¶
func (m *QueryAllAuctionUsedAllocationsRequest) String() string
func (*QueryAllAuctionUsedAllocationsRequest) Unmarshal ¶
func (m *QueryAllAuctionUsedAllocationsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllAuctionUsedAllocationsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllAuctionUsedAllocationsRequest) XXX_DiscardUnknown()
func (*QueryAllAuctionUsedAllocationsRequest) XXX_Marshal ¶
func (m *QueryAllAuctionUsedAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllAuctionUsedAllocationsRequest) XXX_Merge ¶
func (m *QueryAllAuctionUsedAllocationsRequest) XXX_Merge(src proto.Message)
func (*QueryAllAuctionUsedAllocationsRequest) XXX_Size ¶
func (m *QueryAllAuctionUsedAllocationsRequest) XXX_Size() int
func (*QueryAllAuctionUsedAllocationsRequest) XXX_Unmarshal ¶
func (m *QueryAllAuctionUsedAllocationsRequest) XXX_Unmarshal(b []byte) error
type QueryAllAuctionUsedAllocationsResponse ¶
type QueryAllAuctionUsedAllocationsResponse struct { AuctionUsedAllocations []AuctionUsedAllocations `protobuf:"bytes,1,rep,name=auctionUsedAllocations,proto3" json:"auctionUsedAllocations"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllAuctionUsedAllocationsResponse) Descriptor ¶
func (*QueryAllAuctionUsedAllocationsResponse) Descriptor() ([]byte, []int)
func (*QueryAllAuctionUsedAllocationsResponse) GetAuctionUsedAllocations ¶
func (m *QueryAllAuctionUsedAllocationsResponse) GetAuctionUsedAllocations() []AuctionUsedAllocations
func (*QueryAllAuctionUsedAllocationsResponse) GetPagination ¶
func (m *QueryAllAuctionUsedAllocationsResponse) GetPagination() *query.PageResponse
func (*QueryAllAuctionUsedAllocationsResponse) Marshal ¶
func (m *QueryAllAuctionUsedAllocationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllAuctionUsedAllocationsResponse) MarshalTo ¶
func (m *QueryAllAuctionUsedAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllAuctionUsedAllocationsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllAuctionUsedAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllAuctionUsedAllocationsResponse) ProtoMessage ¶
func (*QueryAllAuctionUsedAllocationsResponse) ProtoMessage()
func (*QueryAllAuctionUsedAllocationsResponse) Reset ¶
func (m *QueryAllAuctionUsedAllocationsResponse) Reset()
func (*QueryAllAuctionUsedAllocationsResponse) Size ¶
func (m *QueryAllAuctionUsedAllocationsResponse) Size() (n int)
func (*QueryAllAuctionUsedAllocationsResponse) String ¶
func (m *QueryAllAuctionUsedAllocationsResponse) String() string
func (*QueryAllAuctionUsedAllocationsResponse) Unmarshal ¶
func (m *QueryAllAuctionUsedAllocationsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllAuctionUsedAllocationsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllAuctionUsedAllocationsResponse) XXX_DiscardUnknown()
func (*QueryAllAuctionUsedAllocationsResponse) XXX_Marshal ¶
func (m *QueryAllAuctionUsedAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllAuctionUsedAllocationsResponse) XXX_Merge ¶
func (m *QueryAllAuctionUsedAllocationsResponse) XXX_Merge(src proto.Message)
func (*QueryAllAuctionUsedAllocationsResponse) XXX_Size ¶
func (m *QueryAllAuctionUsedAllocationsResponse) XXX_Size() int
func (*QueryAllAuctionUsedAllocationsResponse) XXX_Unmarshal ¶
func (m *QueryAllAuctionUsedAllocationsResponse) XXX_Unmarshal(b []byte) error
type QueryAllUsedAllocationsRequest ¶
type QueryAllUsedAllocationsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllUsedAllocationsRequest) Descriptor ¶
func (*QueryAllUsedAllocationsRequest) Descriptor() ([]byte, []int)
func (*QueryAllUsedAllocationsRequest) GetPagination ¶
func (m *QueryAllUsedAllocationsRequest) GetPagination() *query.PageRequest
func (*QueryAllUsedAllocationsRequest) Marshal ¶
func (m *QueryAllUsedAllocationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllUsedAllocationsRequest) MarshalTo ¶
func (m *QueryAllUsedAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllUsedAllocationsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllUsedAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllUsedAllocationsRequest) ProtoMessage ¶
func (*QueryAllUsedAllocationsRequest) ProtoMessage()
func (*QueryAllUsedAllocationsRequest) Reset ¶
func (m *QueryAllUsedAllocationsRequest) Reset()
func (*QueryAllUsedAllocationsRequest) Size ¶
func (m *QueryAllUsedAllocationsRequest) Size() (n int)
func (*QueryAllUsedAllocationsRequest) String ¶
func (m *QueryAllUsedAllocationsRequest) String() string
func (*QueryAllUsedAllocationsRequest) Unmarshal ¶
func (m *QueryAllUsedAllocationsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllUsedAllocationsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllUsedAllocationsRequest) XXX_DiscardUnknown()
func (*QueryAllUsedAllocationsRequest) XXX_Marshal ¶
func (m *QueryAllUsedAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllUsedAllocationsRequest) XXX_Merge ¶
func (m *QueryAllUsedAllocationsRequest) XXX_Merge(src proto.Message)
func (*QueryAllUsedAllocationsRequest) XXX_Size ¶
func (m *QueryAllUsedAllocationsRequest) XXX_Size() int
func (*QueryAllUsedAllocationsRequest) XXX_Unmarshal ¶
func (m *QueryAllUsedAllocationsRequest) XXX_Unmarshal(b []byte) error
type QueryAllUsedAllocationsResponse ¶
type QueryAllUsedAllocationsResponse struct { UsedAllocations []UsedAllocations `protobuf:"bytes,1,rep,name=usedAllocations,proto3" json:"usedAllocations"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllUsedAllocationsResponse) Descriptor ¶
func (*QueryAllUsedAllocationsResponse) Descriptor() ([]byte, []int)
func (*QueryAllUsedAllocationsResponse) GetPagination ¶
func (m *QueryAllUsedAllocationsResponse) GetPagination() *query.PageResponse
func (*QueryAllUsedAllocationsResponse) GetUsedAllocations ¶
func (m *QueryAllUsedAllocationsResponse) GetUsedAllocations() []UsedAllocations
func (*QueryAllUsedAllocationsResponse) Marshal ¶
func (m *QueryAllUsedAllocationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllUsedAllocationsResponse) MarshalTo ¶
func (m *QueryAllUsedAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllUsedAllocationsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllUsedAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllUsedAllocationsResponse) ProtoMessage ¶
func (*QueryAllUsedAllocationsResponse) ProtoMessage()
func (*QueryAllUsedAllocationsResponse) Reset ¶
func (m *QueryAllUsedAllocationsResponse) Reset()
func (*QueryAllUsedAllocationsResponse) Size ¶
func (m *QueryAllUsedAllocationsResponse) Size() (n int)
func (*QueryAllUsedAllocationsResponse) String ¶
func (m *QueryAllUsedAllocationsResponse) String() string
func (*QueryAllUsedAllocationsResponse) Unmarshal ¶
func (m *QueryAllUsedAllocationsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllUsedAllocationsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllUsedAllocationsResponse) XXX_DiscardUnknown()
func (*QueryAllUsedAllocationsResponse) XXX_Marshal ¶
func (m *QueryAllUsedAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllUsedAllocationsResponse) XXX_Merge ¶
func (m *QueryAllUsedAllocationsResponse) XXX_Merge(src proto.Message)
func (*QueryAllUsedAllocationsResponse) XXX_Size ¶
func (m *QueryAllUsedAllocationsResponse) XXX_Size() int
func (*QueryAllUsedAllocationsResponse) XXX_Unmarshal ¶
func (m *QueryAllUsedAllocationsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Queries a UsedAllocations by address. UsedAllocations(ctx context.Context, in *QueryGetUsedAllocationsRequest, opts ...grpc.CallOption) (*QueryGetUsedAllocationsResponse, error) // Queries a list of UsedAllocations items. UsedAllocationsAll(ctx context.Context, in *QueryAllUsedAllocationsRequest, opts ...grpc.CallOption) (*QueryAllUsedAllocationsResponse, error) // Queries a AuctionUsedAllocations by address and auctionID. AuctionUsedAllocations(ctx context.Context, in *QueryGetAuctionUsedAllocationsRequest, opts ...grpc.CallOption) (*QueryGetAuctionUsedAllocationsResponse, error) // Queries a list of AuctionUsedAllocations items. AuctionUsedAllocationsAll(ctx context.Context, in *QueryAllAuctionUsedAllocationsRequest, opts ...grpc.CallOption) (*QueryAllAuctionUsedAllocationsResponse, error) // Queries a TotalAllocation of address. TotalAllocations(ctx context.Context, in *QueryGetTotalAllocationsRequest, opts ...grpc.CallOption) (*QueryGetTotalAllocationsResponse, error) // Queries the AvailableAllocation of address. AvailableAllocations(ctx context.Context, in *QueryGetAvailableAllocationsRequest, opts ...grpc.CallOption) (*QueryGetAvailableAllocationsResponse, error) // Params queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryGetAuctionUsedAllocationsRequest ¶
type QueryGetAuctionUsedAllocationsRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` AuctionID uint64 `protobuf:"varint,2,opt,name=auctionID,proto3" json:"auctionID,omitempty"` }
func (*QueryGetAuctionUsedAllocationsRequest) Descriptor ¶
func (*QueryGetAuctionUsedAllocationsRequest) Descriptor() ([]byte, []int)
func (*QueryGetAuctionUsedAllocationsRequest) GetAddress ¶
func (m *QueryGetAuctionUsedAllocationsRequest) GetAddress() string
func (*QueryGetAuctionUsedAllocationsRequest) GetAuctionID ¶
func (m *QueryGetAuctionUsedAllocationsRequest) GetAuctionID() uint64
func (*QueryGetAuctionUsedAllocationsRequest) Marshal ¶
func (m *QueryGetAuctionUsedAllocationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetAuctionUsedAllocationsRequest) MarshalTo ¶
func (m *QueryGetAuctionUsedAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetAuctionUsedAllocationsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetAuctionUsedAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetAuctionUsedAllocationsRequest) ProtoMessage ¶
func (*QueryGetAuctionUsedAllocationsRequest) ProtoMessage()
func (*QueryGetAuctionUsedAllocationsRequest) Reset ¶
func (m *QueryGetAuctionUsedAllocationsRequest) Reset()
func (*QueryGetAuctionUsedAllocationsRequest) Size ¶
func (m *QueryGetAuctionUsedAllocationsRequest) Size() (n int)
func (*QueryGetAuctionUsedAllocationsRequest) String ¶
func (m *QueryGetAuctionUsedAllocationsRequest) String() string
func (*QueryGetAuctionUsedAllocationsRequest) Unmarshal ¶
func (m *QueryGetAuctionUsedAllocationsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetAuctionUsedAllocationsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetAuctionUsedAllocationsRequest) XXX_DiscardUnknown()
func (*QueryGetAuctionUsedAllocationsRequest) XXX_Marshal ¶
func (m *QueryGetAuctionUsedAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetAuctionUsedAllocationsRequest) XXX_Merge ¶
func (m *QueryGetAuctionUsedAllocationsRequest) XXX_Merge(src proto.Message)
func (*QueryGetAuctionUsedAllocationsRequest) XXX_Size ¶
func (m *QueryGetAuctionUsedAllocationsRequest) XXX_Size() int
func (*QueryGetAuctionUsedAllocationsRequest) XXX_Unmarshal ¶
func (m *QueryGetAuctionUsedAllocationsRequest) XXX_Unmarshal(b []byte) error
type QueryGetAuctionUsedAllocationsResponse ¶
type QueryGetAuctionUsedAllocationsResponse struct {
AuctionUsedAllocations AuctionUsedAllocations `protobuf:"bytes,1,opt,name=auctionUsedAllocations,proto3" json:"auctionUsedAllocations"`
}
func (*QueryGetAuctionUsedAllocationsResponse) Descriptor ¶
func (*QueryGetAuctionUsedAllocationsResponse) Descriptor() ([]byte, []int)
func (*QueryGetAuctionUsedAllocationsResponse) GetAuctionUsedAllocations ¶
func (m *QueryGetAuctionUsedAllocationsResponse) GetAuctionUsedAllocations() AuctionUsedAllocations
func (*QueryGetAuctionUsedAllocationsResponse) Marshal ¶
func (m *QueryGetAuctionUsedAllocationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetAuctionUsedAllocationsResponse) MarshalTo ¶
func (m *QueryGetAuctionUsedAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetAuctionUsedAllocationsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetAuctionUsedAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetAuctionUsedAllocationsResponse) ProtoMessage ¶
func (*QueryGetAuctionUsedAllocationsResponse) ProtoMessage()
func (*QueryGetAuctionUsedAllocationsResponse) Reset ¶
func (m *QueryGetAuctionUsedAllocationsResponse) Reset()
func (*QueryGetAuctionUsedAllocationsResponse) Size ¶
func (m *QueryGetAuctionUsedAllocationsResponse) Size() (n int)
func (*QueryGetAuctionUsedAllocationsResponse) String ¶
func (m *QueryGetAuctionUsedAllocationsResponse) String() string
func (*QueryGetAuctionUsedAllocationsResponse) Unmarshal ¶
func (m *QueryGetAuctionUsedAllocationsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetAuctionUsedAllocationsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetAuctionUsedAllocationsResponse) XXX_DiscardUnknown()
func (*QueryGetAuctionUsedAllocationsResponse) XXX_Marshal ¶
func (m *QueryGetAuctionUsedAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetAuctionUsedAllocationsResponse) XXX_Merge ¶
func (m *QueryGetAuctionUsedAllocationsResponse) XXX_Merge(src proto.Message)
func (*QueryGetAuctionUsedAllocationsResponse) XXX_Size ¶
func (m *QueryGetAuctionUsedAllocationsResponse) XXX_Size() int
func (*QueryGetAuctionUsedAllocationsResponse) XXX_Unmarshal ¶
func (m *QueryGetAuctionUsedAllocationsResponse) XXX_Unmarshal(b []byte) error
type QueryGetAvailableAllocationsRequest ¶
type QueryGetAvailableAllocationsRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*QueryGetAvailableAllocationsRequest) Descriptor ¶
func (*QueryGetAvailableAllocationsRequest) Descriptor() ([]byte, []int)
func (*QueryGetAvailableAllocationsRequest) GetAddress ¶
func (m *QueryGetAvailableAllocationsRequest) GetAddress() string
func (*QueryGetAvailableAllocationsRequest) Marshal ¶
func (m *QueryGetAvailableAllocationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetAvailableAllocationsRequest) MarshalTo ¶
func (m *QueryGetAvailableAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetAvailableAllocationsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetAvailableAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetAvailableAllocationsRequest) ProtoMessage ¶
func (*QueryGetAvailableAllocationsRequest) ProtoMessage()
func (*QueryGetAvailableAllocationsRequest) Reset ¶
func (m *QueryGetAvailableAllocationsRequest) Reset()
func (*QueryGetAvailableAllocationsRequest) Size ¶
func (m *QueryGetAvailableAllocationsRequest) Size() (n int)
func (*QueryGetAvailableAllocationsRequest) String ¶
func (m *QueryGetAvailableAllocationsRequest) String() string
func (*QueryGetAvailableAllocationsRequest) Unmarshal ¶
func (m *QueryGetAvailableAllocationsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetAvailableAllocationsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetAvailableAllocationsRequest) XXX_DiscardUnknown()
func (*QueryGetAvailableAllocationsRequest) XXX_Marshal ¶
func (m *QueryGetAvailableAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetAvailableAllocationsRequest) XXX_Merge ¶
func (m *QueryGetAvailableAllocationsRequest) XXX_Merge(src proto.Message)
func (*QueryGetAvailableAllocationsRequest) XXX_Size ¶
func (m *QueryGetAvailableAllocationsRequest) XXX_Size() int
func (*QueryGetAvailableAllocationsRequest) XXX_Unmarshal ¶
func (m *QueryGetAvailableAllocationsRequest) XXX_Unmarshal(b []byte) error
type QueryGetAvailableAllocationsResponse ¶
type QueryGetAvailableAllocationsResponse struct {
AvailableAllocations github_com_cosmos_cosmos_sdk_types.Int `` /* 133-byte string literal not displayed */
}
func (*QueryGetAvailableAllocationsResponse) Descriptor ¶
func (*QueryGetAvailableAllocationsResponse) Descriptor() ([]byte, []int)
func (*QueryGetAvailableAllocationsResponse) Marshal ¶
func (m *QueryGetAvailableAllocationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetAvailableAllocationsResponse) MarshalTo ¶
func (m *QueryGetAvailableAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetAvailableAllocationsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetAvailableAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetAvailableAllocationsResponse) ProtoMessage ¶
func (*QueryGetAvailableAllocationsResponse) ProtoMessage()
func (*QueryGetAvailableAllocationsResponse) Reset ¶
func (m *QueryGetAvailableAllocationsResponse) Reset()
func (*QueryGetAvailableAllocationsResponse) Size ¶
func (m *QueryGetAvailableAllocationsResponse) Size() (n int)
func (*QueryGetAvailableAllocationsResponse) String ¶
func (m *QueryGetAvailableAllocationsResponse) String() string
func (*QueryGetAvailableAllocationsResponse) Unmarshal ¶
func (m *QueryGetAvailableAllocationsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetAvailableAllocationsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetAvailableAllocationsResponse) XXX_DiscardUnknown()
func (*QueryGetAvailableAllocationsResponse) XXX_Marshal ¶
func (m *QueryGetAvailableAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetAvailableAllocationsResponse) XXX_Merge ¶
func (m *QueryGetAvailableAllocationsResponse) XXX_Merge(src proto.Message)
func (*QueryGetAvailableAllocationsResponse) XXX_Size ¶
func (m *QueryGetAvailableAllocationsResponse) XXX_Size() int
func (*QueryGetAvailableAllocationsResponse) XXX_Unmarshal ¶
func (m *QueryGetAvailableAllocationsResponse) XXX_Unmarshal(b []byte) error
type QueryGetTotalAllocationsRequest ¶
type QueryGetTotalAllocationsRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*QueryGetTotalAllocationsRequest) Descriptor ¶
func (*QueryGetTotalAllocationsRequest) Descriptor() ([]byte, []int)
func (*QueryGetTotalAllocationsRequest) GetAddress ¶
func (m *QueryGetTotalAllocationsRequest) GetAddress() string
func (*QueryGetTotalAllocationsRequest) Marshal ¶
func (m *QueryGetTotalAllocationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetTotalAllocationsRequest) MarshalTo ¶
func (m *QueryGetTotalAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetTotalAllocationsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetTotalAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetTotalAllocationsRequest) ProtoMessage ¶
func (*QueryGetTotalAllocationsRequest) ProtoMessage()
func (*QueryGetTotalAllocationsRequest) Reset ¶
func (m *QueryGetTotalAllocationsRequest) Reset()
func (*QueryGetTotalAllocationsRequest) Size ¶
func (m *QueryGetTotalAllocationsRequest) Size() (n int)
func (*QueryGetTotalAllocationsRequest) String ¶
func (m *QueryGetTotalAllocationsRequest) String() string
func (*QueryGetTotalAllocationsRequest) Unmarshal ¶
func (m *QueryGetTotalAllocationsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetTotalAllocationsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetTotalAllocationsRequest) XXX_DiscardUnknown()
func (*QueryGetTotalAllocationsRequest) XXX_Marshal ¶
func (m *QueryGetTotalAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetTotalAllocationsRequest) XXX_Merge ¶
func (m *QueryGetTotalAllocationsRequest) XXX_Merge(src proto.Message)
func (*QueryGetTotalAllocationsRequest) XXX_Size ¶
func (m *QueryGetTotalAllocationsRequest) XXX_Size() int
func (*QueryGetTotalAllocationsRequest) XXX_Unmarshal ¶
func (m *QueryGetTotalAllocationsRequest) XXX_Unmarshal(b []byte) error
type QueryGetTotalAllocationsResponse ¶
type QueryGetTotalAllocationsResponse struct {
TotalAllocations github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=totalAllocations,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"totalAllocations"`
}
func (*QueryGetTotalAllocationsResponse) Descriptor ¶
func (*QueryGetTotalAllocationsResponse) Descriptor() ([]byte, []int)
func (*QueryGetTotalAllocationsResponse) Marshal ¶
func (m *QueryGetTotalAllocationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetTotalAllocationsResponse) MarshalTo ¶
func (m *QueryGetTotalAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetTotalAllocationsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetTotalAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetTotalAllocationsResponse) ProtoMessage ¶
func (*QueryGetTotalAllocationsResponse) ProtoMessage()
func (*QueryGetTotalAllocationsResponse) Reset ¶
func (m *QueryGetTotalAllocationsResponse) Reset()
func (*QueryGetTotalAllocationsResponse) Size ¶
func (m *QueryGetTotalAllocationsResponse) Size() (n int)
func (*QueryGetTotalAllocationsResponse) String ¶
func (m *QueryGetTotalAllocationsResponse) String() string
func (*QueryGetTotalAllocationsResponse) Unmarshal ¶
func (m *QueryGetTotalAllocationsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetTotalAllocationsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetTotalAllocationsResponse) XXX_DiscardUnknown()
func (*QueryGetTotalAllocationsResponse) XXX_Marshal ¶
func (m *QueryGetTotalAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetTotalAllocationsResponse) XXX_Merge ¶
func (m *QueryGetTotalAllocationsResponse) XXX_Merge(src proto.Message)
func (*QueryGetTotalAllocationsResponse) XXX_Size ¶
func (m *QueryGetTotalAllocationsResponse) XXX_Size() int
func (*QueryGetTotalAllocationsResponse) XXX_Unmarshal ¶
func (m *QueryGetTotalAllocationsResponse) XXX_Unmarshal(b []byte) error
type QueryGetUsedAllocationsRequest ¶
type QueryGetUsedAllocationsRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*QueryGetUsedAllocationsRequest) Descriptor ¶
func (*QueryGetUsedAllocationsRequest) Descriptor() ([]byte, []int)
func (*QueryGetUsedAllocationsRequest) GetAddress ¶
func (m *QueryGetUsedAllocationsRequest) GetAddress() string
func (*QueryGetUsedAllocationsRequest) Marshal ¶
func (m *QueryGetUsedAllocationsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetUsedAllocationsRequest) MarshalTo ¶
func (m *QueryGetUsedAllocationsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetUsedAllocationsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetUsedAllocationsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetUsedAllocationsRequest) ProtoMessage ¶
func (*QueryGetUsedAllocationsRequest) ProtoMessage()
func (*QueryGetUsedAllocationsRequest) Reset ¶
func (m *QueryGetUsedAllocationsRequest) Reset()
func (*QueryGetUsedAllocationsRequest) Size ¶
func (m *QueryGetUsedAllocationsRequest) Size() (n int)
func (*QueryGetUsedAllocationsRequest) String ¶
func (m *QueryGetUsedAllocationsRequest) String() string
func (*QueryGetUsedAllocationsRequest) Unmarshal ¶
func (m *QueryGetUsedAllocationsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetUsedAllocationsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetUsedAllocationsRequest) XXX_DiscardUnknown()
func (*QueryGetUsedAllocationsRequest) XXX_Marshal ¶
func (m *QueryGetUsedAllocationsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetUsedAllocationsRequest) XXX_Merge ¶
func (m *QueryGetUsedAllocationsRequest) XXX_Merge(src proto.Message)
func (*QueryGetUsedAllocationsRequest) XXX_Size ¶
func (m *QueryGetUsedAllocationsRequest) XXX_Size() int
func (*QueryGetUsedAllocationsRequest) XXX_Unmarshal ¶
func (m *QueryGetUsedAllocationsRequest) XXX_Unmarshal(b []byte) error
type QueryGetUsedAllocationsResponse ¶
type QueryGetUsedAllocationsResponse struct {
UsedAllocations UsedAllocations `protobuf:"bytes,1,opt,name=usedAllocations,proto3" json:"usedAllocations"`
}
func (*QueryGetUsedAllocationsResponse) Descriptor ¶
func (*QueryGetUsedAllocationsResponse) Descriptor() ([]byte, []int)
func (*QueryGetUsedAllocationsResponse) GetUsedAllocations ¶
func (m *QueryGetUsedAllocationsResponse) GetUsedAllocations() UsedAllocations
func (*QueryGetUsedAllocationsResponse) Marshal ¶
func (m *QueryGetUsedAllocationsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetUsedAllocationsResponse) MarshalTo ¶
func (m *QueryGetUsedAllocationsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetUsedAllocationsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetUsedAllocationsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetUsedAllocationsResponse) ProtoMessage ¶
func (*QueryGetUsedAllocationsResponse) ProtoMessage()
func (*QueryGetUsedAllocationsResponse) Reset ¶
func (m *QueryGetUsedAllocationsResponse) Reset()
func (*QueryGetUsedAllocationsResponse) Size ¶
func (m *QueryGetUsedAllocationsResponse) Size() (n int)
func (*QueryGetUsedAllocationsResponse) String ¶
func (m *QueryGetUsedAllocationsResponse) String() string
func (*QueryGetUsedAllocationsResponse) Unmarshal ¶
func (m *QueryGetUsedAllocationsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetUsedAllocationsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetUsedAllocationsResponse) XXX_DiscardUnknown()
func (*QueryGetUsedAllocationsResponse) XXX_Marshal ¶
func (m *QueryGetUsedAllocationsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetUsedAllocationsResponse) XXX_Merge ¶
func (m *QueryGetUsedAllocationsResponse) XXX_Merge(src proto.Message)
func (*QueryGetUsedAllocationsResponse) XXX_Size ¶
func (m *QueryGetUsedAllocationsResponse) XXX_Size() int
func (*QueryGetUsedAllocationsResponse) XXX_Unmarshal ¶
func (m *QueryGetUsedAllocationsResponse) 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 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 { // Queries a UsedAllocations by address. UsedAllocations(context.Context, *QueryGetUsedAllocationsRequest) (*QueryGetUsedAllocationsResponse, error) // Queries a list of UsedAllocations items. UsedAllocationsAll(context.Context, *QueryAllUsedAllocationsRequest) (*QueryAllUsedAllocationsResponse, error) // Queries a AuctionUsedAllocations by address and auctionID. AuctionUsedAllocations(context.Context, *QueryGetAuctionUsedAllocationsRequest) (*QueryGetAuctionUsedAllocationsResponse, error) // Queries a list of AuctionUsedAllocations items. AuctionUsedAllocationsAll(context.Context, *QueryAllAuctionUsedAllocationsRequest) (*QueryAllAuctionUsedAllocationsResponse, error) // Queries a TotalAllocation of address. TotalAllocations(context.Context, *QueryGetTotalAllocationsRequest) (*QueryGetTotalAllocationsResponse, error) // Queries the AvailableAllocation of address. AvailableAllocations(context.Context, *QueryGetAvailableAllocationsRequest) (*QueryGetAvailableAllocationsResponse, error) // Params queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type StakingKeeper ¶
type StakingKeeper interface { GetDelegatorDelegations(ctx sdk.Context, delegator sdk.AccAddress, maxRetrieve uint16) []stakingtypes.Delegation }
type Tier ¶
type Tier struct { TierID uint64 `protobuf:"varint,1,opt,name=tierID,proto3" json:"tierID,omitempty"` RequiredAllocations github_com_cosmos_cosmos_sdk_types.Int `` /* 131-byte string literal not displayed */ Benefits TierBenefits `protobuf:"bytes,3,opt,name=benefits,proto3" json:"benefits"` }
Matches a number of required allocations with benefits
func (*Tier) Descriptor ¶
func (*Tier) GetBenefits ¶
func (m *Tier) GetBenefits() TierBenefits
func (*Tier) ProtoMessage ¶
func (*Tier) ProtoMessage()
func (*Tier) XXX_DiscardUnknown ¶
func (m *Tier) XXX_DiscardUnknown()
func (*Tier) XXX_Unmarshal ¶
type TierBenefits ¶
type TierBenefits struct { // maximum amount an auction participant can bid MaxBidAmount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=maxBidAmount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"maxBidAmount"` }
func (*TierBenefits) Descriptor ¶
func (*TierBenefits) Descriptor() ([]byte, []int)
func (*TierBenefits) Marshal ¶
func (m *TierBenefits) Marshal() (dAtA []byte, err error)
func (*TierBenefits) MarshalToSizedBuffer ¶
func (m *TierBenefits) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TierBenefits) ProtoMessage ¶
func (*TierBenefits) ProtoMessage()
func (*TierBenefits) Reset ¶
func (m *TierBenefits) Reset()
func (*TierBenefits) Size ¶
func (m *TierBenefits) Size() (n int)
func (*TierBenefits) String ¶
func (m *TierBenefits) String() string
func (*TierBenefits) Unmarshal ¶
func (m *TierBenefits) Unmarshal(dAtA []byte) error
func (*TierBenefits) XXX_DiscardUnknown ¶
func (m *TierBenefits) XXX_DiscardUnknown()
func (*TierBenefits) XXX_Marshal ¶
func (m *TierBenefits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TierBenefits) XXX_Merge ¶
func (m *TierBenefits) XXX_Merge(src proto.Message)
func (*TierBenefits) XXX_Size ¶
func (m *TierBenefits) XXX_Size() int
func (*TierBenefits) XXX_Unmarshal ¶
func (m *TierBenefits) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Participate ¶
func (*UnimplementedMsgServer) Participate(ctx context.Context, req *MsgParticipate) (*MsgParticipateResponse, error)
func (*UnimplementedMsgServer) WithdrawAllocations ¶
func (*UnimplementedMsgServer) WithdrawAllocations(ctx context.Context, req *MsgWithdrawAllocations) (*MsgWithdrawAllocationsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AuctionUsedAllocations ¶
func (*UnimplementedQueryServer) AuctionUsedAllocations(ctx context.Context, req *QueryGetAuctionUsedAllocationsRequest) (*QueryGetAuctionUsedAllocationsResponse, error)
func (*UnimplementedQueryServer) AuctionUsedAllocationsAll ¶
func (*UnimplementedQueryServer) AuctionUsedAllocationsAll(ctx context.Context, req *QueryAllAuctionUsedAllocationsRequest) (*QueryAllAuctionUsedAllocationsResponse, error)
func (*UnimplementedQueryServer) AvailableAllocations ¶
func (*UnimplementedQueryServer) AvailableAllocations(ctx context.Context, req *QueryGetAvailableAllocationsRequest) (*QueryGetAvailableAllocationsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) TotalAllocations ¶
func (*UnimplementedQueryServer) TotalAllocations(ctx context.Context, req *QueryGetTotalAllocationsRequest) (*QueryGetTotalAllocationsResponse, error)
func (*UnimplementedQueryServer) UsedAllocations ¶
func (*UnimplementedQueryServer) UsedAllocations(ctx context.Context, req *QueryGetUsedAllocationsRequest) (*QueryGetUsedAllocationsResponse, error)
func (*UnimplementedQueryServer) UsedAllocationsAll ¶
func (*UnimplementedQueryServer) UsedAllocationsAll(ctx context.Context, req *QueryAllUsedAllocationsRequest) (*QueryAllUsedAllocationsResponse, error)
type UsedAllocations ¶
type UsedAllocations struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` NumAllocations github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=numAllocations,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"numAllocations"` }
Describes the number of allocations already used by a user for existing auctions
func (*UsedAllocations) Descriptor ¶
func (*UsedAllocations) Descriptor() ([]byte, []int)
func (*UsedAllocations) GetAddress ¶
func (m *UsedAllocations) GetAddress() string
func (*UsedAllocations) Marshal ¶
func (m *UsedAllocations) Marshal() (dAtA []byte, err error)
func (*UsedAllocations) MarshalToSizedBuffer ¶
func (m *UsedAllocations) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UsedAllocations) ProtoMessage ¶
func (*UsedAllocations) ProtoMessage()
func (*UsedAllocations) Reset ¶
func (m *UsedAllocations) Reset()
func (*UsedAllocations) Size ¶
func (m *UsedAllocations) Size() (n int)
func (*UsedAllocations) String ¶
func (m *UsedAllocations) String() string
func (*UsedAllocations) Unmarshal ¶
func (m *UsedAllocations) Unmarshal(dAtA []byte) error
func (*UsedAllocations) XXX_DiscardUnknown ¶
func (m *UsedAllocations) XXX_DiscardUnknown()
func (*UsedAllocations) XXX_Marshal ¶
func (m *UsedAllocations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UsedAllocations) XXX_Merge ¶
func (m *UsedAllocations) XXX_Merge(src proto.Message)
func (*UsedAllocations) XXX_Size ¶
func (m *UsedAllocations) XXX_Size() int
func (*UsedAllocations) XXX_Unmarshal ¶
func (m *UsedAllocations) XXX_Unmarshal(b []byte) error