types

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgParticipate = "participate"
View Source
const TypeMsgWithdrawAllocations = "withdraw_allocations"

Variables

View Source
var (
	ErrInvalidLengthAuctionUsedAllocations        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuctionUsedAllocations          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuctionUsedAllocations = fmt.Errorf("proto: unexpected end of group")
)
View Source
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

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
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
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthUsedAllocations        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUsedAllocations          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupUsedAllocations = fmt.Errorf("proto: unexpected end of group")
)

Functions

func AuctionUsedAllocationsKey

func AuctionUsedAllocationsKey(address string, auctionID uint64) []byte

AuctionUsedAllocationsKey returns the store key to retrieve a AuctionUsedAllocations from the address and auctionID fields

func KeyPrefix

func KeyPrefix(p string) []byte

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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

func UsedAllocationsKey(address string) []byte

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

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

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

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

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(
	allocationPrice AllocationPrice,
	participationTierList []Tier,
	registrationPeriod,
	withdrawalDelay time.Duration,
) Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetAllocationPrice

func (m *Params) GetAllocationPrice() AllocationPrice

func (*Params) GetParticipationTierList

func (m *Params) GetParticipationTierList() []Tier

func (*Params) GetRegistrationPeriod

func (m *Params) GetRegistrationPeriod() time.Duration

func (*Params) GetWithdrawalDelay

func (m *Params) GetWithdrawalDelay() time.Duration

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

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 (*QueryAllAuctionUsedAllocationsRequest) GetPagination

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 (*QueryAllAuctionUsedAllocationsRequest) Size

func (*QueryAllAuctionUsedAllocationsRequest) 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 (*QueryAllAuctionUsedAllocationsRequest) XXX_Size

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 (*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) Reset

func (*QueryAllAuctionUsedAllocationsResponse) Size

func (*QueryAllAuctionUsedAllocationsResponse) 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 (*QueryAllAuctionUsedAllocationsResponse) XXX_Size

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 (*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 (*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 (*QueryAllUsedAllocationsResponse) Size

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

func (*QueryAllUsedAllocationsResponse) 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 (*QueryGetAuctionUsedAllocationsRequest) GetAuctionID

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 (*QueryGetAuctionUsedAllocationsRequest) Size

func (*QueryGetAuctionUsedAllocationsRequest) 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 (*QueryGetAuctionUsedAllocationsRequest) XXX_Size

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

func (*QueryGetAuctionUsedAllocationsResponse) Size

func (*QueryGetAuctionUsedAllocationsResponse) 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 (*QueryGetAuctionUsedAllocationsResponse) XXX_Size

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 (*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 (*QueryGetAvailableAllocationsRequest) Size

func (*QueryGetAvailableAllocationsRequest) 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 (*QueryGetAvailableAllocationsRequest) XXX_Size

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 (*QueryGetAvailableAllocationsResponse) Size

func (*QueryGetAvailableAllocationsResponse) 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 (*QueryGetAvailableAllocationsResponse) XXX_Size

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 (*QueryGetTotalAllocationsRequest) Size

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

func (*QueryGetTotalAllocationsRequest) 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 (*QueryGetTotalAllocationsResponse) Size

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

func (*QueryGetTotalAllocationsResponse) 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 (*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 (*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 (*QueryGetUsedAllocationsResponse) Size

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

func (*QueryGetUsedAllocationsResponse) 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 GetTierFromID

func GetTierFromID(tierList []Tier, tierID uint64) (Tier, bool)

func (*Tier) Descriptor

func (*Tier) Descriptor() ([]byte, []int)

func (*Tier) GetBenefits

func (m *Tier) GetBenefits() TierBenefits

func (*Tier) GetTierID

func (m *Tier) GetTierID() uint64

func (*Tier) Marshal

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

func (*Tier) MarshalTo

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

func (*Tier) MarshalToSizedBuffer

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

func (*Tier) ProtoMessage

func (*Tier) ProtoMessage()

func (*Tier) Reset

func (m *Tier) Reset()

func (*Tier) Size

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

func (*Tier) String

func (m *Tier) String() string

func (*Tier) Unmarshal

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

func (*Tier) XXX_DiscardUnknown

func (m *Tier) XXX_DiscardUnknown()

func (*Tier) XXX_Marshal

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

func (*Tier) XXX_Merge

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

func (*Tier) XXX_Size

func (m *Tier) XXX_Size() int

func (*Tier) XXX_Unmarshal

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

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

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) UsedAllocations

func (*UnimplementedQueryServer) UsedAllocationsAll

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

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

Jump to

Keyboard shortcuts

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