types

package
v0.0.0-...-49173f0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 34 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

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_participation"
)

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 (
	ErrInvalidSigner                      = sdkerrors.Register(ModuleName, 1101, "expected gov account as only signer for proposal message")
	ErrAuctionNotFound                    = sdkerrors.Register(ModuleName, 1102, "auction not found")
	ErrInvalidBidder                      = sdkerrors.Register(ModuleName, 1103, "invalid bidder")
	ErrInvalidAllocationAmount            = sdkerrors.Register(ModuleName, 1104, "invalid allocation amount")
	ErrTierNotFound                       = sdkerrors.Register(ModuleName, 1105, "tier not found")
	ErrInsufficientAllocations            = sdkerrors.Register(ModuleName, 1106, "insufficient allocations")
	ErrAlreadyParticipating               = sdkerrors.Register(ModuleName, 1107, "address is already participating")
	ErrParticipationNotAllowed            = sdkerrors.Register(ModuleName, 1108, "unable to participate to auction")
	ErrAllocationWithdrawalTimeNotReached = sdkerrors.Register(ModuleName, 1109, "unable to withdraw allocations")
	ErrUsedAllocationsNotFound            = sdkerrors.Register(ModuleName, 1110, "used allocations not found")
	ErrAllocationsAlreadyWithdrawn        = sdkerrors.Register(ModuleName, 1111, "used allocations already withdrawn")
	ErrInvalidAddress                     = sdkerrors.Register(ModuleName, 1112, "invalid participant address")
	ErrInvalidDelegations                 = sdkerrors.Register(ModuleName, 1113, "invalid degalations")
)

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 (
	// ParamsKey is the prefix to retrieve all Params
	ParamsKey = collections.NewPrefix("p_participation")

	// AuctionUsedAllocationsKey is the prefix to retrieve all AuctionUsedAllocations
	AuctionUsedAllocationsKey = collections.NewPrefix("AuctionUsedAllocations/value/")

	// UsedAllocationsKey is the prefix to retrieve all UsedAllocations
	UsedAllocationsKey = collections.NewPrefix("UsedAllocations/value/")
)
View Source
var (
	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")
)
View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

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)

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(context.Context, sdk.AccAddress) sdk.AccountI // only used for simulation
}

AccountKeeper defines the expected interface for the Account module.

type AllocationPrice

type AllocationPrice struct {
	// number of bonded tokens necessary to get one allocation
	Bonded cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=bonded,proto3,customtype=cosmossdk.io/math.Int" json:"bonded"`
}

func (*AllocationPrice) Descriptor

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

func (*AllocationPrice) Equal

func (a *AllocationPrice) Equal(cmp *AllocationPrice) bool

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=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	Withdrawn      bool                  `protobuf:"varint,3,opt,name=withdrawn,proto3" json:"withdrawn,omitempty"`
	NumAllocations cosmossdk_io_math.Int `` /* 126-byte string literal not displayed */
}

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 BankKeeper

type BankKeeper interface {
	SpendableCoins(context.Context, sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface for the Bank module.

type EventAllocationsUsed

type EventAllocationsUsed struct {
	Participant    string                `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
	AuctionId      uint64                `protobuf:"varint,2,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	NumAllocations cosmossdk_io_math.Int `` /* 126-byte string literal not displayed */
}

func (*EventAllocationsUsed) Descriptor

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

func (*EventAllocationsUsed) GetAuctionId

func (m *EventAllocationsUsed) GetAuctionId() uint64

func (*EventAllocationsUsed) GetParticipant

func (m *EventAllocationsUsed) GetParticipant() string

func (*EventAllocationsUsed) Marshal

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

func (*EventAllocationsUsed) MarshalTo

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

func (*EventAllocationsUsed) MarshalToSizedBuffer

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

func (*EventAllocationsUsed) ProtoMessage

func (*EventAllocationsUsed) ProtoMessage()

func (*EventAllocationsUsed) Reset

func (m *EventAllocationsUsed) Reset()

func (*EventAllocationsUsed) Size

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

func (*EventAllocationsUsed) String

func (m *EventAllocationsUsed) String() string

func (*EventAllocationsUsed) Unmarshal

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

func (*EventAllocationsUsed) XXX_DiscardUnknown

func (m *EventAllocationsUsed) XXX_DiscardUnknown()

func (*EventAllocationsUsed) XXX_Marshal

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

func (*EventAllocationsUsed) XXX_Merge

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

func (*EventAllocationsUsed) XXX_Size

func (m *EventAllocationsUsed) XXX_Size() int

func (*EventAllocationsUsed) XXX_Unmarshal

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

type EventAllocationsWithdrawn

type EventAllocationsWithdrawn struct {
	Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
	AuctionId   uint64 `protobuf:"varint,2,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
}

func (*EventAllocationsWithdrawn) Descriptor

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

func (*EventAllocationsWithdrawn) GetAuctionId

func (m *EventAllocationsWithdrawn) GetAuctionId() uint64

func (*EventAllocationsWithdrawn) GetParticipant

func (m *EventAllocationsWithdrawn) GetParticipant() string

func (*EventAllocationsWithdrawn) Marshal

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

func (*EventAllocationsWithdrawn) MarshalTo

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

func (*EventAllocationsWithdrawn) MarshalToSizedBuffer

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

func (*EventAllocationsWithdrawn) ProtoMessage

func (*EventAllocationsWithdrawn) ProtoMessage()

func (*EventAllocationsWithdrawn) Reset

func (m *EventAllocationsWithdrawn) Reset()

func (*EventAllocationsWithdrawn) Size

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

func (*EventAllocationsWithdrawn) String

func (m *EventAllocationsWithdrawn) String() string

func (*EventAllocationsWithdrawn) Unmarshal

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

func (*EventAllocationsWithdrawn) XXX_DiscardUnknown

func (m *EventAllocationsWithdrawn) XXX_DiscardUnknown()

func (*EventAllocationsWithdrawn) XXX_Marshal

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

func (*EventAllocationsWithdrawn) XXX_Merge

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

func (*EventAllocationsWithdrawn) XXX_Size

func (m *EventAllocationsWithdrawn) XXX_Size() int

func (*EventAllocationsWithdrawn) XXX_Unmarshal

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

type FundraisingKeeper

type FundraisingKeeper interface {
	Auctions(ctx context.Context) ([]fundraisingtypes.AuctionI, error)
	GetAuction(ctx context.Context, auctionID uint64) (fundraisingtypes.AuctionI, error)
	AddAllowedBidders(ctx context.Context, auctionID uint64, allowedBidders []fundraisingtypes.AllowedBidder) error
}

type GenesisState

type GenesisState struct {
	// params defines all the parameters of the module.
	Params                     Params                   `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	AuctionUsedAllocationsList []AuctionUsedAllocations `` /* 133-byte string literal not displayed */
	UsedAllocationsList        []UsedAllocations        `protobuf:"bytes,3,rep,name=used_allocations_list,json=usedAllocationsList,proto3" json:"used_allocations_list"`
}

GenesisState defines the participation module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) 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 {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	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=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	TierId      uint64 `protobuf:"varint,3,opt,name=tier_id,json=tierId,proto3" json:"tier_id,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) 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) 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) 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 {
	// UpdateParams defines a (governance) operation for updating the module
	// parameters. The authority defaults to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	Participate(context.Context, *MsgParticipate) (*MsgParticipateResponse, error)
	WithdrawAllocations(context.Context, *MsgWithdrawAllocations) (*MsgWithdrawAllocationsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type MsgWithdrawAllocations

type MsgWithdrawAllocations struct {
	Participant string `protobuf:"bytes,1,opt,name=participant,proto3" json:"participant,omitempty"`
	AuctionId   uint64 `protobuf:"varint,2,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,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) 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) 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) 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 ParamSubspace

type ParamSubspace interface {
	Get(context.Context, []byte, interface{})
	Set(context.Context, []byte, interface{})
}

ParamSubspace defines the expected Subspace interface for parameters.

type Params

type Params struct {
	AllocationPrice       AllocationPrice `protobuf:"bytes,1,opt,name=allocation_price,json=allocationPrice,proto3" json:"allocation_price"`
	ParticipationTierList []Tier          `protobuf:"bytes,2,rep,name=participation_tier_list,json=participationTierList,proto3" json:"participation_tier_list"`
	// Time frame before auction starts where MsgParticipate can be called
	RegistrationPeriod time.Duration `protobuf:"bytes,3,opt,name=registration_period,json=registrationPeriod,proto3,stdduration" json:"registration_period"`
	// Delay after auction starts when allocations can be withdrawn
	WithdrawalDelay time.Duration `protobuf:"bytes,4,opt,name=withdrawal_delay,json=withdrawalDelay,proto3,stdduration" json:"withdrawal_delay"`
}

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

func (this *Params) Equal(that interface{}) bool

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

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

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=auction_used_allocations,json=auctionUsedAllocations,proto3" json:"auction_used_allocations"`
	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=used_allocations,json=usedAllocations,proto3" json:"used_allocations"`
	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 QueryAvailableAllocationsRequest

type QueryAvailableAllocationsRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryAvailableAllocationsRequest) Descriptor

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

func (*QueryAvailableAllocationsRequest) GetAddress

func (m *QueryAvailableAllocationsRequest) GetAddress() string

func (*QueryAvailableAllocationsRequest) Marshal

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

func (*QueryAvailableAllocationsRequest) MarshalTo

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

func (*QueryAvailableAllocationsRequest) MarshalToSizedBuffer

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

func (*QueryAvailableAllocationsRequest) ProtoMessage

func (*QueryAvailableAllocationsRequest) ProtoMessage()

func (*QueryAvailableAllocationsRequest) Reset

func (*QueryAvailableAllocationsRequest) Size

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

func (*QueryAvailableAllocationsRequest) String

func (*QueryAvailableAllocationsRequest) Unmarshal

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

func (*QueryAvailableAllocationsRequest) XXX_DiscardUnknown

func (m *QueryAvailableAllocationsRequest) XXX_DiscardUnknown()

func (*QueryAvailableAllocationsRequest) XXX_Marshal

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

func (*QueryAvailableAllocationsRequest) XXX_Merge

func (*QueryAvailableAllocationsRequest) XXX_Size

func (m *QueryAvailableAllocationsRequest) XXX_Size() int

func (*QueryAvailableAllocationsRequest) XXX_Unmarshal

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

type QueryAvailableAllocationsResponse

type QueryAvailableAllocationsResponse struct {
	AvailableAllocations cosmossdk_io_math.Int `` /* 144-byte string literal not displayed */
}

func (*QueryAvailableAllocationsResponse) Descriptor

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

func (*QueryAvailableAllocationsResponse) Marshal

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

func (*QueryAvailableAllocationsResponse) MarshalTo

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

func (*QueryAvailableAllocationsResponse) MarshalToSizedBuffer

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

func (*QueryAvailableAllocationsResponse) ProtoMessage

func (*QueryAvailableAllocationsResponse) ProtoMessage()

func (*QueryAvailableAllocationsResponse) Reset

func (*QueryAvailableAllocationsResponse) Size

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

func (*QueryAvailableAllocationsResponse) String

func (*QueryAvailableAllocationsResponse) Unmarshal

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

func (*QueryAvailableAllocationsResponse) XXX_DiscardUnknown

func (m *QueryAvailableAllocationsResponse) XXX_DiscardUnknown()

func (*QueryAvailableAllocationsResponse) XXX_Marshal

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

func (*QueryAvailableAllocationsResponse) XXX_Merge

func (*QueryAvailableAllocationsResponse) XXX_Size

func (m *QueryAvailableAllocationsResponse) XXX_Size() int

func (*QueryAvailableAllocationsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of AuctionUsedAllocations items.
	GetAuctionUsedAllocations(ctx context.Context, in *QueryGetAuctionUsedAllocationsRequest, opts ...grpc.CallOption) (*QueryGetAuctionUsedAllocationsResponse, error)
	ListAuctionUsedAllocations(ctx context.Context, in *QueryAllAuctionUsedAllocationsRequest, opts ...grpc.CallOption) (*QueryAllAuctionUsedAllocationsResponse, error)
	// Queries a list of UsedAllocations items.
	GetUsedAllocations(ctx context.Context, in *QueryGetUsedAllocationsRequest, opts ...grpc.CallOption) (*QueryGetUsedAllocationsResponse, error)
	ListUsedAllocations(ctx context.Context, in *QueryAllUsedAllocationsRequest, opts ...grpc.CallOption) (*QueryAllUsedAllocationsResponse, error)
	// Queries a list of TotalAllocations items.
	TotalAllocations(ctx context.Context, in *QueryTotalAllocationsRequest, opts ...grpc.CallOption) (*QueryTotalAllocationsResponse, error)
	// Queries a list of AvailableAllocations items.
	AvailableAllocations(ctx context.Context, in *QueryAvailableAllocationsRequest, opts ...grpc.CallOption) (*QueryAvailableAllocationsResponse, 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=auction_id,json=auctionId,proto3" json:"auction_id,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=auction_used_allocations,json=auctionUsedAllocations,proto3" json:"auction_used_allocations"`
}

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 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=used_allocations,json=usedAllocations,proto3" json:"used_allocations"`
}

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 holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of AuctionUsedAllocations items.
	GetAuctionUsedAllocations(context.Context, *QueryGetAuctionUsedAllocationsRequest) (*QueryGetAuctionUsedAllocationsResponse, error)
	ListAuctionUsedAllocations(context.Context, *QueryAllAuctionUsedAllocationsRequest) (*QueryAllAuctionUsedAllocationsResponse, error)
	// Queries a list of UsedAllocations items.
	GetUsedAllocations(context.Context, *QueryGetUsedAllocationsRequest) (*QueryGetUsedAllocationsResponse, error)
	ListUsedAllocations(context.Context, *QueryAllUsedAllocationsRequest) (*QueryAllUsedAllocationsResponse, error)
	// Queries a list of TotalAllocations items.
	TotalAllocations(context.Context, *QueryTotalAllocationsRequest) (*QueryTotalAllocationsResponse, error)
	// Queries a list of AvailableAllocations items.
	AvailableAllocations(context.Context, *QueryAvailableAllocationsRequest) (*QueryAvailableAllocationsResponse, error)
}

QueryServer is the server API for Query service.

type QueryTotalAllocationsRequest

type QueryTotalAllocationsRequest struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryTotalAllocationsRequest) Descriptor

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

func (*QueryTotalAllocationsRequest) GetAddress

func (m *QueryTotalAllocationsRequest) GetAddress() string

func (*QueryTotalAllocationsRequest) Marshal

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

func (*QueryTotalAllocationsRequest) MarshalTo

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

func (*QueryTotalAllocationsRequest) MarshalToSizedBuffer

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

func (*QueryTotalAllocationsRequest) ProtoMessage

func (*QueryTotalAllocationsRequest) ProtoMessage()

func (*QueryTotalAllocationsRequest) Reset

func (m *QueryTotalAllocationsRequest) Reset()

func (*QueryTotalAllocationsRequest) Size

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

func (*QueryTotalAllocationsRequest) String

func (*QueryTotalAllocationsRequest) Unmarshal

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

func (*QueryTotalAllocationsRequest) XXX_DiscardUnknown

func (m *QueryTotalAllocationsRequest) XXX_DiscardUnknown()

func (*QueryTotalAllocationsRequest) XXX_Marshal

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

func (*QueryTotalAllocationsRequest) XXX_Merge

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

func (*QueryTotalAllocationsRequest) XXX_Size

func (m *QueryTotalAllocationsRequest) XXX_Size() int

func (*QueryTotalAllocationsRequest) XXX_Unmarshal

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

type QueryTotalAllocationsResponse

type QueryTotalAllocationsResponse struct {
	TotalAllocations cosmossdk_io_math.Int `` /* 132-byte string literal not displayed */
}

func (*QueryTotalAllocationsResponse) Descriptor

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

func (*QueryTotalAllocationsResponse) Marshal

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

func (*QueryTotalAllocationsResponse) MarshalTo

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

func (*QueryTotalAllocationsResponse) MarshalToSizedBuffer

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

func (*QueryTotalAllocationsResponse) ProtoMessage

func (*QueryTotalAllocationsResponse) ProtoMessage()

func (*QueryTotalAllocationsResponse) Reset

func (m *QueryTotalAllocationsResponse) Reset()

func (*QueryTotalAllocationsResponse) Size

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

func (*QueryTotalAllocationsResponse) String

func (*QueryTotalAllocationsResponse) Unmarshal

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

func (*QueryTotalAllocationsResponse) XXX_DiscardUnknown

func (m *QueryTotalAllocationsResponse) XXX_DiscardUnknown()

func (*QueryTotalAllocationsResponse) XXX_Marshal

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

func (*QueryTotalAllocationsResponse) XXX_Merge

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

func (*QueryTotalAllocationsResponse) XXX_Size

func (m *QueryTotalAllocationsResponse) XXX_Size() int

func (*QueryTotalAllocationsResponse) XXX_Unmarshal

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

type StakingKeeper

type StakingKeeper interface {
	GetDelegatorDelegations(ctx context.Context, delegator sdk.AccAddress, maxRetrieve uint16) ([]stakingtypes.Delegation, error)
	ValidatorByConsAddr(ctx context.Context, addr sdk.ConsAddress) (stakingtypes.ValidatorI, error)
}

StakingKeeper defines the expected interface for the Staking module.

type Tier

type Tier struct {
	TierId              uint64                `protobuf:"varint,1,opt,name=tier_id,json=tierId,proto3" json:"tier_id,omitempty"`
	RequiredAllocations cosmossdk_io_math.Int `` /* 141-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) Equal

func (t *Tier) Equal(cmp *Tier) bool

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 {
	// max_bid_amount maximum amount an auction participant can bid
	MaxBidAmount cosmossdk_io_math.Int `protobuf:"bytes,1,opt,name=max_bid_amount,json=maxBidAmount,proto3,customtype=cosmossdk.io/math.Int" json:"max_bid_amount"`
}

func (*TierBenefits) Descriptor

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

func (*TierBenefits) Equal

func (t *TierBenefits) Equal(cmp *TierBenefits) bool

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

func (*UnimplementedMsgServer) WithdrawAllocations

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetUsedAllocations

func (*UnimplementedQueryServer) ListUsedAllocations

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TotalAllocations

type UsedAllocations

type UsedAllocations struct {
	Address        string                `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	NumAllocations cosmossdk_io_math.Int `` /* 126-byte string literal not displayed */
}

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