Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func BidsByPrice(bids []Bid) (prices []sdk.Dec, bidsByPrice map[string][]Bid)
- func DeriveAddress(addressType AddressType, moduleName, name string) sdk.AccAddress
- func GetAllowedBidderKey(auctionId uint64, bidder sdk.AccAddress) []byte
- func GetAllowedBiddersByAuctionKeyPrefix(auctionId uint64) []byte
- func GetAuctionKey(auctionId uint64) []byte
- func GetBidByAuctionIdPrefix(auctionId uint64) []byte
- func GetBidIndexByBidderPrefix(bidder sdk.AccAddress) []byte
- func GetBidIndexKey(bidder sdk.AccAddress, auctionId uint64, bidId uint64) []byte
- func GetBidKey(auctionId uint64, bidId uint64) []byte
- func GetLastBidIdKey(auctionId uint64) []byte
- func GetLastMatchedBidsLenKey(auctionId uint64) []byte
- func GetVestingQueueByAuctionIdPrefix(auctionId uint64) []byte
- func GetVestingQueueKey(auctionId uint64, releaseTime time.Time) []byte
- func MarshalAuction(cdc codec.BinaryCodec, auction AuctionI) (value []byte, err error)
- func MustMarshalAuction(cdc codec.BinaryCodec, auction AuctionI) []byte
- func MustParseRFC3339(s string) time.Time
- func PackAuction(auction AuctionI) (*codectypes.Any, error)
- func ParamKeyTable() paramstypes.KeyTable
- func ParseBidIndexKey(key []byte) (auctionId, bidId uint64)
- func PayingReserveAddress(auctionId uint64) sdk.AccAddress
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SellingReserveAddress(auctionId uint64) sdk.AccAddress
- func SplitAuctionIdBidIdKey(key []byte) (auctionId, bidId uint64)
- func ValidateVestingSchedules(schedules []VestingSchedule, endTime time.Time) error
- func VestingReserveAddress(auctionId uint64) sdk.AccAddress
- type AccountKeeper
- type AddressType
- type AllowedBidder
- func (*AllowedBidder) Descriptor() ([]byte, []int)
- func (ab AllowedBidder) GetBidder() sdk.AccAddress
- func (m *AllowedBidder) Marshal() (dAtA []byte, err error)
- func (m *AllowedBidder) MarshalTo(dAtA []byte) (int, error)
- func (m *AllowedBidder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AllowedBidder) ProtoMessage()
- func (m *AllowedBidder) Reset()
- func (m *AllowedBidder) Size() (n int)
- func (m *AllowedBidder) String() string
- func (m *AllowedBidder) Unmarshal(dAtA []byte) error
- func (ab AllowedBidder) Validate() error
- func (m *AllowedBidder) XXX_DiscardUnknown()
- func (m *AllowedBidder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllowedBidder) XXX_Merge(src proto.Message)
- func (m *AllowedBidder) XXX_Size() int
- func (m *AllowedBidder) XXX_Unmarshal(b []byte) error
- type AllowedBidderRecord
- func (*AllowedBidderRecord) Descriptor() ([]byte, []int)
- func (m *AllowedBidderRecord) GetAllowedBidder() AllowedBidder
- func (m *AllowedBidderRecord) GetAuctionId() uint64
- func (m *AllowedBidderRecord) Marshal() (dAtA []byte, err error)
- func (m *AllowedBidderRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *AllowedBidderRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AllowedBidderRecord) ProtoMessage()
- func (m *AllowedBidderRecord) Reset()
- func (m *AllowedBidderRecord) Size() (n int)
- func (m *AllowedBidderRecord) String() string
- func (m *AllowedBidderRecord) Unmarshal(dAtA []byte) error
- func (r AllowedBidderRecord) Validate() error
- func (m *AllowedBidderRecord) XXX_DiscardUnknown()
- func (m *AllowedBidderRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AllowedBidderRecord) XXX_Merge(src proto.Message)
- func (m *AllowedBidderRecord) XXX_Size() int
- func (m *AllowedBidderRecord) XXX_Unmarshal(b []byte) error
- type AuctionI
- type AuctionStatus
- type AuctionType
- type BankKeeper
- type BaseAuction
- func (*BaseAuction) Descriptor() ([]byte, []int)
- func (ba BaseAuction) GetAuctioneer() sdk.AccAddress
- func (ba BaseAuction) GetEndTimes() []time.Time
- func (ba BaseAuction) GetId() uint64
- func (ba BaseAuction) GetPayingCoinDenom() string
- func (ba BaseAuction) GetPayingReserveAddress() sdk.AccAddress
- func (ba BaseAuction) GetSellingCoin() sdk.Coin
- func (ba BaseAuction) GetSellingReserveAddress() sdk.AccAddress
- func (ba BaseAuction) GetStartPrice() sdk.Dec
- func (ba BaseAuction) GetStartTime() time.Time
- func (ba BaseAuction) GetStatus() AuctionStatus
- func (ba BaseAuction) GetType() AuctionType
- func (ba BaseAuction) GetVestingReserveAddress() sdk.AccAddress
- func (ba BaseAuction) GetVestingSchedules() []VestingSchedule
- func (m *BaseAuction) Marshal() (dAtA []byte, err error)
- func (m *BaseAuction) MarshalTo(dAtA []byte) (int, error)
- func (m *BaseAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BaseAuction) ProtoMessage()
- func (m *BaseAuction) Reset()
- func (ba *BaseAuction) SetAuctioneer(addr sdk.AccAddress) error
- func (ba *BaseAuction) SetEndTimes(t []time.Time) error
- func (ba *BaseAuction) SetId(id uint64) error
- func (ba *BaseAuction) SetPayingCoinDenom(denom string) error
- func (ba *BaseAuction) SetPayingReserveAddress(addr sdk.AccAddress) error
- func (ba *BaseAuction) SetSellingCoin(coin sdk.Coin) error
- func (ba *BaseAuction) SetSellingReserveAddress(addr sdk.AccAddress) error
- func (ba *BaseAuction) SetStartPrice(price sdk.Dec) error
- func (ba *BaseAuction) SetStartTime(t time.Time) error
- func (ba *BaseAuction) SetStatus(status AuctionStatus) error
- func (ba *BaseAuction) SetType(typ AuctionType) error
- func (ba *BaseAuction) SetVestingReserveAddress(addr sdk.AccAddress) error
- func (ba *BaseAuction) SetVestingSchedules(schedules []VestingSchedule) error
- func (ba BaseAuction) ShouldAuctionClosed(t time.Time) bool
- func (ba BaseAuction) ShouldAuctionStarted(t time.Time) bool
- func (m *BaseAuction) Size() (n int)
- func (m *BaseAuction) String() string
- func (m *BaseAuction) Unmarshal(dAtA []byte) error
- func (ba BaseAuction) Validate() error
- func (m *BaseAuction) XXX_DiscardUnknown()
- func (m *BaseAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseAuction) XXX_Merge(src proto.Message)
- func (m *BaseAuction) XXX_Size() int
- func (m *BaseAuction) XXX_Unmarshal(b []byte) error
- type BatchAuction
- func (*BatchAuction) Descriptor() ([]byte, []int)
- func (m *BatchAuction) Marshal() (dAtA []byte, err error)
- func (m *BatchAuction) MarshalTo(dAtA []byte) (int, error)
- func (m *BatchAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BatchAuction) ProtoMessage()
- func (m *BatchAuction) Reset()
- func (m *BatchAuction) Size() (n int)
- func (m *BatchAuction) String() string
- func (m *BatchAuction) Unmarshal(dAtA []byte) error
- func (m *BatchAuction) XXX_DiscardUnknown()
- func (m *BatchAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchAuction) XXX_Merge(src proto.Message)
- func (m *BatchAuction) XXX_Size() int
- func (m *BatchAuction) XXX_Unmarshal(b []byte) error
- type Bid
- func (b Bid) ConvertToPayingAmount(denom string) (amount sdk.Int)
- func (b Bid) ConvertToSellingAmount(denom string) (amount sdk.Int)
- func (*Bid) Descriptor() ([]byte, []int)
- func (b Bid) GetBidder() sdk.AccAddress
- func (m *Bid) Marshal() (dAtA []byte, err error)
- func (m *Bid) MarshalTo(dAtA []byte) (int, error)
- func (m *Bid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bid) ProtoMessage()
- func (m *Bid) Reset()
- func (b *Bid) SetMatched(status bool)
- func (m *Bid) Size() (n int)
- func (m *Bid) String() string
- func (m *Bid) Unmarshal(dAtA []byte) error
- func (b Bid) Validate() error
- func (m *Bid) XXX_DiscardUnknown()
- func (m *Bid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bid) XXX_Merge(src proto.Message)
- func (m *Bid) XXX_Size() int
- func (m *Bid) XXX_Unmarshal(b []byte) error
- type BidType
- type BidderMatchResult
- type DistrKeeper
- type FixedPriceAuction
- func (*FixedPriceAuction) Descriptor() ([]byte, []int)
- func (m *FixedPriceAuction) Marshal() (dAtA []byte, err error)
- func (m *FixedPriceAuction) MarshalTo(dAtA []byte) (int, error)
- func (m *FixedPriceAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FixedPriceAuction) ProtoMessage()
- func (m *FixedPriceAuction) Reset()
- func (m *FixedPriceAuction) Size() (n int)
- func (m *FixedPriceAuction) String() string
- func (m *FixedPriceAuction) Unmarshal(dAtA []byte) error
- func (m *FixedPriceAuction) XXX_DiscardUnknown()
- func (m *FixedPriceAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FixedPriceAuction) XXX_Merge(src proto.Message)
- func (m *FixedPriceAuction) XXX_Size() int
- func (m *FixedPriceAuction) XXX_Unmarshal(b []byte) error
- type FundraisingHooks
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MatchResult
- type MsgAddAllowedBidder
- func (*MsgAddAllowedBidder) Descriptor() ([]byte, []int)
- func (msg MsgAddAllowedBidder) GetSignBytes() []byte
- func (msg MsgAddAllowedBidder) GetSigners() []sdk.AccAddress
- func (m *MsgAddAllowedBidder) Marshal() (dAtA []byte, err error)
- func (m *MsgAddAllowedBidder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddAllowedBidder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddAllowedBidder) ProtoMessage()
- func (m *MsgAddAllowedBidder) Reset()
- func (msg MsgAddAllowedBidder) Route() string
- func (m *MsgAddAllowedBidder) Size() (n int)
- func (m *MsgAddAllowedBidder) String() string
- func (msg MsgAddAllowedBidder) Type() string
- func (m *MsgAddAllowedBidder) Unmarshal(dAtA []byte) error
- func (msg MsgAddAllowedBidder) ValidateBasic() error
- func (m *MsgAddAllowedBidder) XXX_DiscardUnknown()
- func (m *MsgAddAllowedBidder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddAllowedBidder) XXX_Merge(src proto.Message)
- func (m *MsgAddAllowedBidder) XXX_Size() int
- func (m *MsgAddAllowedBidder) XXX_Unmarshal(b []byte) error
- type MsgAddAllowedBidderResponse
- func (*MsgAddAllowedBidderResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddAllowedBidderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddAllowedBidderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddAllowedBidderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddAllowedBidderResponse) ProtoMessage()
- func (m *MsgAddAllowedBidderResponse) Reset()
- func (m *MsgAddAllowedBidderResponse) Size() (n int)
- func (m *MsgAddAllowedBidderResponse) String() string
- func (m *MsgAddAllowedBidderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddAllowedBidderResponse) XXX_DiscardUnknown()
- func (m *MsgAddAllowedBidderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddAllowedBidderResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddAllowedBidderResponse) XXX_Size() int
- func (m *MsgAddAllowedBidderResponse) XXX_Unmarshal(b []byte) error
- type MsgCancelAuction
- func (*MsgCancelAuction) Descriptor() ([]byte, []int)
- func (msg MsgCancelAuction) GetAuctioneer() sdk.AccAddress
- func (msg MsgCancelAuction) GetSignBytes() []byte
- func (msg MsgCancelAuction) GetSigners() []sdk.AccAddress
- func (m *MsgCancelAuction) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelAuction) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelAuction) ProtoMessage()
- func (m *MsgCancelAuction) Reset()
- func (msg MsgCancelAuction) Route() string
- func (m *MsgCancelAuction) Size() (n int)
- func (m *MsgCancelAuction) String() string
- func (msg MsgCancelAuction) Type() string
- func (m *MsgCancelAuction) Unmarshal(dAtA []byte) error
- func (msg MsgCancelAuction) ValidateBasic() error
- func (m *MsgCancelAuction) XXX_DiscardUnknown()
- func (m *MsgCancelAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelAuction) XXX_Merge(src proto.Message)
- func (m *MsgCancelAuction) XXX_Size() int
- func (m *MsgCancelAuction) XXX_Unmarshal(b []byte) error
- type MsgCancelAuctionResponse
- func (*MsgCancelAuctionResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelAuctionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelAuctionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelAuctionResponse) ProtoMessage()
- func (m *MsgCancelAuctionResponse) Reset()
- func (m *MsgCancelAuctionResponse) Size() (n int)
- func (m *MsgCancelAuctionResponse) String() string
- func (m *MsgCancelAuctionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelAuctionResponse) XXX_DiscardUnknown()
- func (m *MsgCancelAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelAuctionResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelAuctionResponse) XXX_Size() int
- func (m *MsgCancelAuctionResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateBatchAuction
- func (*MsgCreateBatchAuction) Descriptor() ([]byte, []int)
- func (msg MsgCreateBatchAuction) GetAuctioneer() sdk.AccAddress
- func (msg MsgCreateBatchAuction) GetSignBytes() []byte
- func (msg MsgCreateBatchAuction) GetSigners() []sdk.AccAddress
- func (m *MsgCreateBatchAuction) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBatchAuction) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBatchAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBatchAuction) ProtoMessage()
- func (m *MsgCreateBatchAuction) Reset()
- func (msg MsgCreateBatchAuction) Route() string
- func (m *MsgCreateBatchAuction) Size() (n int)
- func (m *MsgCreateBatchAuction) String() string
- func (msg MsgCreateBatchAuction) Type() string
- func (m *MsgCreateBatchAuction) Unmarshal(dAtA []byte) error
- func (msg MsgCreateBatchAuction) ValidateBasic() error
- func (m *MsgCreateBatchAuction) XXX_DiscardUnknown()
- func (m *MsgCreateBatchAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBatchAuction) XXX_Merge(src proto.Message)
- func (m *MsgCreateBatchAuction) XXX_Size() int
- func (m *MsgCreateBatchAuction) XXX_Unmarshal(b []byte) error
- type MsgCreateBatchAuctionResponse
- func (*MsgCreateBatchAuctionResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateBatchAuctionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBatchAuctionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBatchAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBatchAuctionResponse) ProtoMessage()
- func (m *MsgCreateBatchAuctionResponse) Reset()
- func (m *MsgCreateBatchAuctionResponse) Size() (n int)
- func (m *MsgCreateBatchAuctionResponse) String() string
- func (m *MsgCreateBatchAuctionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateBatchAuctionResponse) XXX_DiscardUnknown()
- func (m *MsgCreateBatchAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBatchAuctionResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateBatchAuctionResponse) XXX_Size() int
- func (m *MsgCreateBatchAuctionResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateFixedPriceAuction
- func (*MsgCreateFixedPriceAuction) Descriptor() ([]byte, []int)
- func (msg MsgCreateFixedPriceAuction) GetAuctioneer() sdk.AccAddress
- func (msg MsgCreateFixedPriceAuction) GetSignBytes() []byte
- func (msg MsgCreateFixedPriceAuction) GetSigners() []sdk.AccAddress
- func (m *MsgCreateFixedPriceAuction) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateFixedPriceAuction) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateFixedPriceAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateFixedPriceAuction) ProtoMessage()
- func (m *MsgCreateFixedPriceAuction) Reset()
- func (msg MsgCreateFixedPriceAuction) Route() string
- func (m *MsgCreateFixedPriceAuction) Size() (n int)
- func (m *MsgCreateFixedPriceAuction) String() string
- func (msg MsgCreateFixedPriceAuction) Type() string
- func (m *MsgCreateFixedPriceAuction) Unmarshal(dAtA []byte) error
- func (msg MsgCreateFixedPriceAuction) ValidateBasic() error
- func (m *MsgCreateFixedPriceAuction) XXX_DiscardUnknown()
- func (m *MsgCreateFixedPriceAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateFixedPriceAuction) XXX_Merge(src proto.Message)
- func (m *MsgCreateFixedPriceAuction) XXX_Size() int
- func (m *MsgCreateFixedPriceAuction) XXX_Unmarshal(b []byte) error
- type MsgCreateFixedPriceAuctionResponse
- func (*MsgCreateFixedPriceAuctionResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateFixedPriceAuctionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateFixedPriceAuctionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateFixedPriceAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateFixedPriceAuctionResponse) ProtoMessage()
- func (m *MsgCreateFixedPriceAuctionResponse) Reset()
- func (m *MsgCreateFixedPriceAuctionResponse) Size() (n int)
- func (m *MsgCreateFixedPriceAuctionResponse) String() string
- func (m *MsgCreateFixedPriceAuctionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateFixedPriceAuctionResponse) XXX_DiscardUnknown()
- func (m *MsgCreateFixedPriceAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateFixedPriceAuctionResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateFixedPriceAuctionResponse) XXX_Size() int
- func (m *MsgCreateFixedPriceAuctionResponse) XXX_Unmarshal(b []byte) error
- type MsgModifyBid
- func (*MsgModifyBid) Descriptor() ([]byte, []int)
- func (msg MsgModifyBid) GetBidder() sdk.AccAddress
- func (msg MsgModifyBid) GetSignBytes() []byte
- func (msg MsgModifyBid) GetSigners() []sdk.AccAddress
- func (m *MsgModifyBid) Marshal() (dAtA []byte, err error)
- func (m *MsgModifyBid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgModifyBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgModifyBid) ProtoMessage()
- func (m *MsgModifyBid) Reset()
- func (msg MsgModifyBid) Route() string
- func (m *MsgModifyBid) Size() (n int)
- func (m *MsgModifyBid) String() string
- func (msg MsgModifyBid) Type() string
- func (m *MsgModifyBid) Unmarshal(dAtA []byte) error
- func (msg MsgModifyBid) ValidateBasic() error
- func (m *MsgModifyBid) XXX_DiscardUnknown()
- func (m *MsgModifyBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgModifyBid) XXX_Merge(src proto.Message)
- func (m *MsgModifyBid) XXX_Size() int
- func (m *MsgModifyBid) XXX_Unmarshal(b []byte) error
- type MsgModifyBidResponse
- func (*MsgModifyBidResponse) Descriptor() ([]byte, []int)
- func (m *MsgModifyBidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgModifyBidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgModifyBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgModifyBidResponse) ProtoMessage()
- func (m *MsgModifyBidResponse) Reset()
- func (m *MsgModifyBidResponse) Size() (n int)
- func (m *MsgModifyBidResponse) String() string
- func (m *MsgModifyBidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgModifyBidResponse) XXX_DiscardUnknown()
- func (m *MsgModifyBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgModifyBidResponse) XXX_Merge(src proto.Message)
- func (m *MsgModifyBidResponse) XXX_Size() int
- func (m *MsgModifyBidResponse) XXX_Unmarshal(b []byte) error
- type MsgPlaceBid
- func (*MsgPlaceBid) Descriptor() ([]byte, []int)
- func (msg MsgPlaceBid) GetBidder() sdk.AccAddress
- func (msg MsgPlaceBid) GetSignBytes() []byte
- func (msg MsgPlaceBid) GetSigners() []sdk.AccAddress
- func (m *MsgPlaceBid) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceBid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceBid) ProtoMessage()
- func (m *MsgPlaceBid) Reset()
- func (msg MsgPlaceBid) Route() string
- func (m *MsgPlaceBid) Size() (n int)
- func (m *MsgPlaceBid) String() string
- func (msg MsgPlaceBid) Type() string
- func (m *MsgPlaceBid) Unmarshal(dAtA []byte) error
- func (msg MsgPlaceBid) ValidateBasic() error
- func (m *MsgPlaceBid) XXX_DiscardUnknown()
- func (m *MsgPlaceBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceBid) XXX_Merge(src proto.Message)
- func (m *MsgPlaceBid) XXX_Size() int
- func (m *MsgPlaceBid) XXX_Unmarshal(b []byte) error
- type MsgPlaceBidResponse
- func (*MsgPlaceBidResponse) Descriptor() ([]byte, []int)
- func (m *MsgPlaceBidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceBidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceBidResponse) ProtoMessage()
- func (m *MsgPlaceBidResponse) Reset()
- func (m *MsgPlaceBidResponse) Size() (n int)
- func (m *MsgPlaceBidResponse) String() string
- func (m *MsgPlaceBidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPlaceBidResponse) XXX_DiscardUnknown()
- func (m *MsgPlaceBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceBidResponse) XXX_Merge(src proto.Message)
- func (m *MsgPlaceBidResponse) XXX_Size() int
- func (m *MsgPlaceBidResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MultiFundraisingHooks
- func (h MultiFundraisingHooks) AfterBatchAuctionCreated(ctx sdk.Context, auctionId uint64, auctioneer string, startPrice sdk.Dec, ...)
- func (h MultiFundraisingHooks) AfterFixedPriceAuctionCreated(ctx sdk.Context, auctionId uint64, auctioneer string, startPrice sdk.Dec, ...)
- func (h MultiFundraisingHooks) BeforeAllowedBidderUpdated(ctx sdk.Context, auctionId uint64, bidder sdk.AccAddress, maxBidAmount sdk.Int)
- func (h MultiFundraisingHooks) BeforeAllowedBiddersAdded(ctx sdk.Context, allowedBidders []AllowedBidder)
- func (h MultiFundraisingHooks) BeforeAuctionCanceled(ctx sdk.Context, auctionId uint64, auctioneer string)
- func (h MultiFundraisingHooks) BeforeBatchAuctionCreated(ctx sdk.Context, auctioneer string, startPrice sdk.Dec, minBidPrice sdk.Dec, ...)
- func (h MultiFundraisingHooks) BeforeBidModified(ctx sdk.Context, auctionId uint64, bidId uint64, bidder string, ...)
- func (h MultiFundraisingHooks) BeforeBidPlaced(ctx sdk.Context, auctionId uint64, bidId uint64, bidder string, ...)
- func (h MultiFundraisingHooks) BeforeFixedPriceAuctionCreated(ctx sdk.Context, auctioneer string, startPrice sdk.Dec, sellingCoin sdk.Coin, ...)
- func (h MultiFundraisingHooks) BeforeSellingCoinsAllocated(ctx sdk.Context, auctionId uint64, allocationMap map[string]sdk.Int, ...)
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllowedBidderRequest
- func (*QueryAllowedBidderRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllowedBidderRequest) GetAuctionId() uint64
- func (m *QueryAllowedBidderRequest) GetBidder() string
- func (m *QueryAllowedBidderRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllowedBidderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllowedBidderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllowedBidderRequest) ProtoMessage()
- func (m *QueryAllowedBidderRequest) Reset()
- func (m *QueryAllowedBidderRequest) Size() (n int)
- func (m *QueryAllowedBidderRequest) String() string
- func (m *QueryAllowedBidderRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllowedBidderRequest) XXX_DiscardUnknown()
- func (m *QueryAllowedBidderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllowedBidderRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllowedBidderRequest) XXX_Size() int
- func (m *QueryAllowedBidderRequest) XXX_Unmarshal(b []byte) error
- type QueryAllowedBidderResponse
- func (*QueryAllowedBidderResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllowedBidderResponse) GetAllowedBidder() AllowedBidder
- func (m *QueryAllowedBidderResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllowedBidderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllowedBidderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllowedBidderResponse) ProtoMessage()
- func (m *QueryAllowedBidderResponse) Reset()
- func (m *QueryAllowedBidderResponse) Size() (n int)
- func (m *QueryAllowedBidderResponse) String() string
- func (m *QueryAllowedBidderResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllowedBidderResponse) XXX_DiscardUnknown()
- func (m *QueryAllowedBidderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllowedBidderResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllowedBidderResponse) XXX_Size() int
- func (m *QueryAllowedBidderResponse) XXX_Unmarshal(b []byte) error
- type QueryAllowedBiddersRequest
- func (*QueryAllowedBiddersRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllowedBiddersRequest) GetAuctionId() uint64
- func (m *QueryAllowedBiddersRequest) GetPagination() *query.PageRequest
- func (m *QueryAllowedBiddersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllowedBiddersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllowedBiddersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllowedBiddersRequest) ProtoMessage()
- func (m *QueryAllowedBiddersRequest) Reset()
- func (m *QueryAllowedBiddersRequest) Size() (n int)
- func (m *QueryAllowedBiddersRequest) String() string
- func (m *QueryAllowedBiddersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllowedBiddersRequest) XXX_DiscardUnknown()
- func (m *QueryAllowedBiddersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllowedBiddersRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllowedBiddersRequest) XXX_Size() int
- func (m *QueryAllowedBiddersRequest) XXX_Unmarshal(b []byte) error
- type QueryAllowedBiddersResponse
- func (*QueryAllowedBiddersResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllowedBiddersResponse) GetAllowedBidders() []AllowedBidder
- func (m *QueryAllowedBiddersResponse) GetPagination() *query.PageResponse
- func (m *QueryAllowedBiddersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllowedBiddersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllowedBiddersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllowedBiddersResponse) ProtoMessage()
- func (m *QueryAllowedBiddersResponse) Reset()
- func (m *QueryAllowedBiddersResponse) Size() (n int)
- func (m *QueryAllowedBiddersResponse) String() string
- func (m *QueryAllowedBiddersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllowedBiddersResponse) XXX_DiscardUnknown()
- func (m *QueryAllowedBiddersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllowedBiddersResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllowedBiddersResponse) XXX_Size() int
- func (m *QueryAllowedBiddersResponse) XXX_Unmarshal(b []byte) error
- type QueryAuctionRequest
- func (*QueryAuctionRequest) Descriptor() ([]byte, []int)
- func (m *QueryAuctionRequest) GetAuctionId() uint64
- func (m *QueryAuctionRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAuctionRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAuctionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAuctionRequest) ProtoMessage()
- func (m *QueryAuctionRequest) Reset()
- func (m *QueryAuctionRequest) Size() (n int)
- func (m *QueryAuctionRequest) String() string
- func (m *QueryAuctionRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAuctionRequest) XXX_DiscardUnknown()
- func (m *QueryAuctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAuctionRequest) XXX_Merge(src proto.Message)
- func (m *QueryAuctionRequest) XXX_Size() int
- func (m *QueryAuctionRequest) XXX_Unmarshal(b []byte) error
- type QueryAuctionResponse
- func (*QueryAuctionResponse) Descriptor() ([]byte, []int)
- func (m *QueryAuctionResponse) GetAuction() *types.Any
- func (m *QueryAuctionResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAuctionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAuctionResponse) ProtoMessage()
- func (m *QueryAuctionResponse) Reset()
- func (m *QueryAuctionResponse) Size() (n int)
- func (m *QueryAuctionResponse) String() string
- func (m *QueryAuctionResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAuctionResponse) XXX_DiscardUnknown()
- func (m *QueryAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAuctionResponse) XXX_Merge(src proto.Message)
- func (m *QueryAuctionResponse) XXX_Size() int
- func (m *QueryAuctionResponse) XXX_Unmarshal(b []byte) error
- type QueryAuctionsRequest
- func (*QueryAuctionsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAuctionsRequest) GetPagination() *query.PageRequest
- func (m *QueryAuctionsRequest) GetStatus() string
- func (m *QueryAuctionsRequest) GetType() string
- func (m *QueryAuctionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAuctionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAuctionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAuctionsRequest) ProtoMessage()
- func (m *QueryAuctionsRequest) Reset()
- func (m *QueryAuctionsRequest) Size() (n int)
- func (m *QueryAuctionsRequest) String() string
- func (m *QueryAuctionsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAuctionsRequest) XXX_DiscardUnknown()
- func (m *QueryAuctionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAuctionsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAuctionsRequest) XXX_Size() int
- func (m *QueryAuctionsRequest) XXX_Unmarshal(b []byte) error
- type QueryAuctionsResponse
- func (*QueryAuctionsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAuctionsResponse) GetAuctions() []*types.Any
- func (m *QueryAuctionsResponse) GetPagination() *query.PageResponse
- func (m *QueryAuctionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAuctionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAuctionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAuctionsResponse) ProtoMessage()
- func (m *QueryAuctionsResponse) Reset()
- func (m *QueryAuctionsResponse) Size() (n int)
- func (m *QueryAuctionsResponse) String() string
- func (m *QueryAuctionsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAuctionsResponse) XXX_DiscardUnknown()
- func (m *QueryAuctionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAuctionsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAuctionsResponse) XXX_Size() int
- func (m *QueryAuctionsResponse) XXX_Unmarshal(b []byte) error
- type QueryBidRequest
- func (*QueryBidRequest) Descriptor() ([]byte, []int)
- func (m *QueryBidRequest) GetAuctionId() uint64
- func (m *QueryBidRequest) GetBidId() uint64
- func (m *QueryBidRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBidRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBidRequest) ProtoMessage()
- func (m *QueryBidRequest) Reset()
- func (m *QueryBidRequest) Size() (n int)
- func (m *QueryBidRequest) String() string
- func (m *QueryBidRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBidRequest) XXX_DiscardUnknown()
- func (m *QueryBidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBidRequest) XXX_Merge(src proto.Message)
- func (m *QueryBidRequest) XXX_Size() int
- func (m *QueryBidRequest) XXX_Unmarshal(b []byte) error
- type QueryBidResponse
- func (*QueryBidResponse) Descriptor() ([]byte, []int)
- func (m *QueryBidResponse) GetBid() Bid
- func (m *QueryBidResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBidResponse) ProtoMessage()
- func (m *QueryBidResponse) Reset()
- func (m *QueryBidResponse) Size() (n int)
- func (m *QueryBidResponse) String() string
- func (m *QueryBidResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBidResponse) XXX_DiscardUnknown()
- func (m *QueryBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBidResponse) XXX_Merge(src proto.Message)
- func (m *QueryBidResponse) XXX_Size() int
- func (m *QueryBidResponse) XXX_Unmarshal(b []byte) error
- type QueryBidsRequest
- func (*QueryBidsRequest) Descriptor() ([]byte, []int)
- func (m *QueryBidsRequest) GetAuctionId() uint64
- func (m *QueryBidsRequest) GetBidder() string
- func (m *QueryBidsRequest) GetIsMatched() string
- func (m *QueryBidsRequest) GetPagination() *query.PageRequest
- func (m *QueryBidsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBidsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBidsRequest) ProtoMessage()
- func (m *QueryBidsRequest) Reset()
- func (m *QueryBidsRequest) Size() (n int)
- func (m *QueryBidsRequest) String() string
- func (m *QueryBidsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBidsRequest) XXX_DiscardUnknown()
- func (m *QueryBidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBidsRequest) XXX_Merge(src proto.Message)
- func (m *QueryBidsRequest) XXX_Size() int
- func (m *QueryBidsRequest) XXX_Unmarshal(b []byte) error
- type QueryBidsResponse
- func (*QueryBidsResponse) Descriptor() ([]byte, []int)
- func (m *QueryBidsResponse) GetBids() []Bid
- func (m *QueryBidsResponse) GetPagination() *query.PageResponse
- func (m *QueryBidsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBidsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBidsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBidsResponse) ProtoMessage()
- func (m *QueryBidsResponse) Reset()
- func (m *QueryBidsResponse) Size() (n int)
- func (m *QueryBidsResponse) String() string
- func (m *QueryBidsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBidsResponse) XXX_DiscardUnknown()
- func (m *QueryBidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBidsResponse) XXX_Merge(src proto.Message)
- func (m *QueryBidsResponse) XXX_Size() int
- func (m *QueryBidsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryVestingsRequest
- func (*QueryVestingsRequest) Descriptor() ([]byte, []int)
- func (m *QueryVestingsRequest) GetAuctionId() uint64
- func (m *QueryVestingsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryVestingsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVestingsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVestingsRequest) ProtoMessage()
- func (m *QueryVestingsRequest) Reset()
- func (m *QueryVestingsRequest) Size() (n int)
- func (m *QueryVestingsRequest) String() string
- func (m *QueryVestingsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryVestingsRequest) XXX_DiscardUnknown()
- func (m *QueryVestingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVestingsRequest) XXX_Merge(src proto.Message)
- func (m *QueryVestingsRequest) XXX_Size() int
- func (m *QueryVestingsRequest) XXX_Unmarshal(b []byte) error
- type QueryVestingsResponse
- func (*QueryVestingsResponse) Descriptor() ([]byte, []int)
- func (m *QueryVestingsResponse) GetVestings() []VestingQueue
- func (m *QueryVestingsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryVestingsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVestingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVestingsResponse) ProtoMessage()
- func (m *QueryVestingsResponse) Reset()
- func (m *QueryVestingsResponse) Size() (n int)
- func (m *QueryVestingsResponse) String() string
- func (m *QueryVestingsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryVestingsResponse) XXX_DiscardUnknown()
- func (m *QueryVestingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVestingsResponse) XXX_Merge(src proto.Message)
- func (m *QueryVestingsResponse) XXX_Size() int
- func (m *QueryVestingsResponse) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddAllowedBidder(ctx context.Context, req *MsgAddAllowedBidder) (*MsgAddAllowedBidderResponse, error)
- func (*UnimplementedMsgServer) CancelAuction(ctx context.Context, req *MsgCancelAuction) (*MsgCancelAuctionResponse, error)
- func (*UnimplementedMsgServer) CreateBatchAuction(ctx context.Context, req *MsgCreateBatchAuction) (*MsgCreateBatchAuctionResponse, error)
- func (*UnimplementedMsgServer) CreateFixedPriceAuction(ctx context.Context, req *MsgCreateFixedPriceAuction) (*MsgCreateFixedPriceAuctionResponse, error)
- func (*UnimplementedMsgServer) ModifyBid(ctx context.Context, req *MsgModifyBid) (*MsgModifyBidResponse, error)
- func (*UnimplementedMsgServer) PlaceBid(ctx context.Context, req *MsgPlaceBid) (*MsgPlaceBidResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllowedBidder(ctx context.Context, req *QueryAllowedBidderRequest) (*QueryAllowedBidderResponse, error)
- func (*UnimplementedQueryServer) AllowedBidders(ctx context.Context, req *QueryAllowedBiddersRequest) (*QueryAllowedBiddersResponse, error)
- func (*UnimplementedQueryServer) Auction(ctx context.Context, req *QueryAuctionRequest) (*QueryAuctionResponse, error)
- func (*UnimplementedQueryServer) Auctions(ctx context.Context, req *QueryAuctionsRequest) (*QueryAuctionsResponse, error)
- func (*UnimplementedQueryServer) Bid(ctx context.Context, req *QueryBidRequest) (*QueryBidResponse, error)
- func (*UnimplementedQueryServer) Bids(ctx context.Context, req *QueryBidsRequest) (*QueryBidsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Vestings(ctx context.Context, req *QueryVestingsRequest) (*QueryVestingsResponse, error)
- type VestingQueue
- func (*VestingQueue) Descriptor() ([]byte, []int)
- func (m *VestingQueue) GetAuctionId() uint64
- func (m *VestingQueue) GetAuctioneer() string
- func (m *VestingQueue) GetPayingCoin() types.Coin
- func (m *VestingQueue) GetReleaseTime() time.Time
- func (m *VestingQueue) GetReleased() bool
- func (m *VestingQueue) Marshal() (dAtA []byte, err error)
- func (m *VestingQueue) MarshalTo(dAtA []byte) (int, error)
- func (m *VestingQueue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VestingQueue) ProtoMessage()
- func (m *VestingQueue) Reset()
- func (vq *VestingQueue) SetReleased(status bool)
- func (vq VestingQueue) ShouldRelease(t time.Time) bool
- func (m *VestingQueue) Size() (n int)
- func (m *VestingQueue) String() string
- func (m *VestingQueue) Unmarshal(dAtA []byte) error
- func (q VestingQueue) Validate() error
- func (m *VestingQueue) XXX_DiscardUnknown()
- func (m *VestingQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VestingQueue) XXX_Merge(src proto.Message)
- func (m *VestingQueue) XXX_Size() int
- func (m *VestingQueue) XXX_Unmarshal(b []byte) error
- type VestingSchedule
- func (*VestingSchedule) Descriptor() ([]byte, []int)
- func (m *VestingSchedule) GetReleaseTime() time.Time
- func (m *VestingSchedule) Marshal() (dAtA []byte, err error)
- func (m *VestingSchedule) MarshalTo(dAtA []byte) (int, error)
- func (m *VestingSchedule) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VestingSchedule) ProtoMessage()
- func (m *VestingSchedule) Reset()
- func (m *VestingSchedule) Size() (n int)
- func (m *VestingSchedule) String() string
- func (m *VestingSchedule) Unmarshal(dAtA []byte) error
- func (m *VestingSchedule) XXX_DiscardUnknown()
- func (m *VestingSchedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VestingSchedule) XXX_Merge(src proto.Message)
- func (m *VestingSchedule) XXX_Size() int
- func (m *VestingSchedule) XXX_Unmarshal(b []byte) error
Constants ¶
const ( SellingReserveAddressPrefix string = "SellingReserveAddress" PayingReserveAddressPrefix string = "PayingReserveAddress" VestingReserveAddressPrefix string = "VestingReserveAddress" ModuleAddressNameSplitter string = "|" // ReserveAddressType is an address type of reserve for selling, paying, and vesting. // The module uses the address type of 32 bytes length, but it can be changed depending on Cosmos SDK's direction. ReserveAddressType = AddressType32Bytes )
const ( EventTypeCreateFixedPriceAuction = "create_fixed_price_auction" EventTypeCreateBatchAuction = "create_batch_auction" EventTypeCancelAuction = "cancel_auction" EventTypePlaceBid = "place_bid" AttributeKeyAuctionId = "auction_id" //nolint:golint AttributeKeyAuctioneerAddress = "auctioneer_address" AttributeKeySellingReserveAddress = "selling_pool_address" AttributeKeyPayingReserveAddress = "paying_pool_address" AttributeKeyVestingReserveAddress = "vesting_pool_address" AttributeKeyStartPrice = "start_price" AttributeKeySellingCoin = "selling_coin" AttributeKeyRemainingSellingCoin = "remaining_selling_coin" AttributeKeyVestingSchedules = "vesting_schedules" AttributeKeyPayingCoinDenom = "paying_coin_denom" AttributeKeyAuctionStatus = "auction_status" AttributeKeyStartTime = "start_time" AttributeKeyEndTime = "end_time" AttributeKeyBidderAddress = "bidder_address" AttributeKeyBidPrice = "bid_price" AttributeKeyBidCoin = "bid_coin" AttributeKeyBidAmount = "bid_amount" AttributeKeyMinBidPrice = "min_bid_price" AttributeKeyMaxExtendedRound = "maximum_extended_round" AttributeKeyExtendedRoundRate = "extended_round_rate" )
Event types for the farming module.
const ( // ModuleName defines the module name ModuleName = "fundraising" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for the fundraising module RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_fundraising" )
const ( TypeMsgCreateFixedPriceAuction = "create_fixed_price_auction" TypeMsgCreateBatchAuction = "create_batch_auction" TypeMsgCancelAuction = "cancel_auction" TypeMsgPlaceBid = "place_bid" TypeMsgModifyBid = "modify_bid" TypeMsgAddAllowedBidder = "add_allowed_bidder" )
Message types for the fundraising module.
const ( // MaxNumVestingSchedules is the maximum number of vesting schedules in an auction // It prevents from a malicious auctioneer to set an infinite number of vesting schedules // when they create an auction MaxNumVestingSchedules = 100 // MaxExtendedRound is the maximum extend rounds for a batch auction to have // It prevents from a batch auction to extend its rounds forever MaxExtendedRound = 30 )
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) )
var ( ErrInvalidAuctionType = sdkerrors.Register(ModuleName, 2, "invalid auction type") ErrInvalidStartPrice = sdkerrors.Register(ModuleName, 3, "invalid start price") ErrInvalidVestingSchedules = sdkerrors.Register(ModuleName, 4, "invalid vesting schedules") ErrInvalidAuctionStatus = sdkerrors.Register(ModuleName, 5, "invalid auction status") ErrInvalidMaxBidAmount = sdkerrors.Register(ModuleName, 6, "invalid maximum bid amount") ErrIncorrectAuctionType = sdkerrors.Register(ModuleName, 7, "incorrect auction type") ErrIncorrectCoinDenom = sdkerrors.Register(ModuleName, 8, "incorrect coin denom") ErrEmptyAllowedBidders = sdkerrors.Register(ModuleName, 9, "empty bidders") ErrNotAllowedBidder = sdkerrors.Register(ModuleName, 10, "not allowed bidder") ErrOverMaxBidAmountLimit = sdkerrors.Register(ModuleName, 11, "over maximum bid amount limit") ErrInsufficientRemainingAmount = sdkerrors.Register(ModuleName, 12, "insufficient remaining amount") ErrInsufficientMinBidPrice = sdkerrors.Register(ModuleName, 13, "insufficient bid price") )
x/fundraising module sentinel errors
var ( ErrInvalidLengthFundraising = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFundraising = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFundraising = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( LastAuctionIdKey = []byte{0x11} // key to retrieve the latest auction id LastBidIdKeyPrefix = []byte{0x12} AuctionKeyPrefix = []byte{0x21} AllowedBidderKeyPrefix = []byte{0x22} BidKeyPrefix = []byte{0x31} BidIndexKeyPrefix = []byte{0x32} MatchedBidsLenPrefix = []byte{0x33} VestingQueueKeyPrefix = []byte{0x41} )
var ( KeyAuctionCreationFee = []byte("AuctionCreationFee") KeyPlaceBidFee = []byte("PlaceBidFee") KeyExtendedPeriod = []byte("ExtendedPeriod") DefaultAuctionCreationFee = sdk.NewCoins(sdk.NewCoin(sdk.DefaultBondDenom, sdk.NewInt(100_000_000))) DefaultPlaceBidFee = sdk.Coins{} DefaultExtendedPeriod = uint32(1) )
Parameter store keys.
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var AddressType_name = map[int32]string{
0: "ADDRESS_TYPE_32_BYTES",
1: "ADDRESS_TYPE_20_BYTES",
}
var AddressType_value = map[string]int32{
"ADDRESS_TYPE_32_BYTES": 0,
"ADDRESS_TYPE_20_BYTES": 1,
}
var AuctionStatus_name = map[int32]string{
0: "AUCTION_STATUS_UNSPECIFIED",
1: "AUCTION_STATUS_STANDBY",
2: "AUCTION_STATUS_STARTED",
3: "AUCTION_STATUS_VESTING",
4: "AUCTION_STATUS_FINISHED",
5: "AUCTION_STATUS_CANCELLED",
}
var AuctionStatus_value = map[string]int32{
"AUCTION_STATUS_UNSPECIFIED": 0,
"AUCTION_STATUS_STANDBY": 1,
"AUCTION_STATUS_STARTED": 2,
"AUCTION_STATUS_VESTING": 3,
"AUCTION_STATUS_FINISHED": 4,
"AUCTION_STATUS_CANCELLED": 5,
}
var AuctionType_name = map[int32]string{
0: "AUCTION_TYPE_UNSPECIFIED",
1: "AUCTION_TYPE_FIXED_PRICE",
2: "AUCTION_TYPE_BATCH",
}
var AuctionType_value = map[string]int32{
"AUCTION_TYPE_UNSPECIFIED": 0,
"AUCTION_TYPE_FIXED_PRICE": 1,
"AUCTION_TYPE_BATCH": 2,
}
var BidType_name = map[int32]string{
0: "BID_TYPE_UNSPECIFIED",
1: "BID_TYPE_FIXED_PRICE",
2: "BID_TYPE_BATCH_WORTH",
3: "BID_TYPE_BATCH_MANY",
}
var BidType_value = map[string]int32{
"BID_TYPE_UNSPECIFIED": 0,
"BID_TYPE_FIXED_PRICE": 1,
"BID_TYPE_BATCH_WORTH": 2,
"BID_TYPE_BATCH_MANY": 3,
}
Functions ¶
func DeriveAddress ¶
func DeriveAddress(addressType AddressType, moduleName, name string) sdk.AccAddress
DeriveAddress derives an address with the given address length type, module name, and address derivation name. It is used to derive reserve account addresses for selling, paying, and vesting.
func GetAllowedBidderKey ¶
func GetAllowedBidderKey(auctionId uint64, bidder sdk.AccAddress) []byte
GetAllowedBidderKey returns the store key to retrieve the auction's allowed bidder object.
func GetAllowedBiddersByAuctionKeyPrefix ¶
GetAllowedBiddersByAuctionKeyPrefix returns the store key prefix to iterate allowed bidders by auction.
func GetAuctionKey ¶
GetAuctionKey returns the store key to retrieve the auction object.
func GetBidByAuctionIdPrefix ¶
GetBidByAuctionIdPrefix returns the prefix to iterate all bids by the auction id.
func GetBidIndexByBidderPrefix ¶
func GetBidIndexByBidderPrefix(bidder sdk.AccAddress) []byte
GetBidByBidderPrefix returns the prefix to iterate all bids by a bidder.
func GetBidIndexKey ¶
func GetBidIndexKey(bidder sdk.AccAddress, auctionId uint64, bidId uint64) []byte
GetBidIndexKey returns the index key to retrieve the auction id and bid id to get the bid object.
func GetLastBidIdKey ¶
GetLastBidIdKey returns the store key to retrieve the latest bid id.
func GetVestingQueueByAuctionIdPrefix ¶
GetVestingQueueByAuctionIdPrefix returns a key prefix used to iterate vesting queues by an auction id.
func GetVestingQueueKey ¶
GetVestingQueueKey returns the store key to retrieve the vesting queue from the index fields.
func MarshalAuction ¶
func MarshalAuction(cdc codec.BinaryCodec, auction AuctionI) (value []byte, err error)
MarshalAuction returns bytes from the auction interface.
func MustMarshalAuction ¶
func MustMarshalAuction(cdc codec.BinaryCodec, auction AuctionI) []byte
MustMarshalAuction returns the marshalled auction bytes. It throws panic if it fails.
func MustParseRFC3339 ¶
MustParseRFC3339 parses string time to time in RFC3339 format. This is used only for internal testing purpose.
func PackAuction ¶
func PackAuction(auction AuctionI) (*codectypes.Any, error)
PackAuction converts AuctionI to Any.
func ParamKeyTable ¶
func ParamKeyTable() paramstypes.KeyTable
ParamKeyTable returns the parameter key table.
func ParseBidIndexKey ¶
ParseBidIndexKey parses bid index key.
func PayingReserveAddress ¶
func PayingReserveAddress(auctionId uint64) sdk.AccAddress
PayingReserveAddress returns the paying reserve address with the given auction id.
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func SellingReserveAddress ¶
func SellingReserveAddress(auctionId uint64) sdk.AccAddress
SellingReserveAddress returns the selling reserve address with the given auction id.
func SplitAuctionIdBidIdKey ¶
SplitAuctionIdBidIdKey splits the auction id and bid id.
func ValidateVestingSchedules ¶
func ValidateVestingSchedules(schedules []VestingSchedule, endTime time.Time) error
ValidateVestingSchedules validates the vesting schedules. Each weight of the vesting schedule must be positive and total weight must be equal to 1. If a number of schedule equals to zero, the auctioneer doesn't want any vesting schedule. The release times must be chronological for vesting schedules. Otherwise it returns an error.
func VestingReserveAddress ¶
func VestingReserveAddress(auctionId uint64) sdk.AccAddress
VestingReserveAddress returns the vesting reserve address with the given auction id.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI GetModuleAddress(name string) sdk.AccAddress }
AccountKeeper defines the expected account keeper.
type AddressType ¶
type AddressType int32
AddressType enumerates the available types of a address.
const ( // the 32 bytes length address type of ADR 028. AddressType32Bytes AddressType = 0 // the default 20 bytes length address type. AddressType20Bytes AddressType = 1 )
func (AddressType) EnumDescriptor ¶
func (AddressType) EnumDescriptor() ([]byte, []int)
func (AddressType) String ¶
func (x AddressType) String() string
type AllowedBidder ¶
type AllowedBidder struct { // bidder specifies the bech32-encoded address that bids for the auction Bidder string `protobuf:"bytes,1,opt,name=bidder,proto3" json:"bidder,omitempty"` // max_bid_amount specifies the maximum bid amount that the bidder can bid MaxBidAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 139-byte string literal not displayed */ }
AllowedBidder defines an allowed bidder for the auction.
func NewAllowedBidder ¶
func NewAllowedBidder(bidderAddr sdk.AccAddress, maxBidAmount sdk.Int) AllowedBidder
NewAllowedBidder returns a new AllowedBidder.
func (*AllowedBidder) Descriptor ¶
func (*AllowedBidder) Descriptor() ([]byte, []int)
func (AllowedBidder) GetBidder ¶
func (ab AllowedBidder) GetBidder() sdk.AccAddress
GetBidder returns the bidder account address.
func (*AllowedBidder) Marshal ¶
func (m *AllowedBidder) Marshal() (dAtA []byte, err error)
func (*AllowedBidder) MarshalToSizedBuffer ¶
func (m *AllowedBidder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AllowedBidder) ProtoMessage ¶
func (*AllowedBidder) ProtoMessage()
func (*AllowedBidder) Reset ¶
func (m *AllowedBidder) Reset()
func (*AllowedBidder) Size ¶
func (m *AllowedBidder) Size() (n int)
func (*AllowedBidder) String ¶
func (m *AllowedBidder) String() string
func (*AllowedBidder) Unmarshal ¶
func (m *AllowedBidder) Unmarshal(dAtA []byte) error
func (AllowedBidder) Validate ¶
func (ab AllowedBidder) Validate() error
Validate validates allowed bidder object.
func (*AllowedBidder) XXX_DiscardUnknown ¶
func (m *AllowedBidder) XXX_DiscardUnknown()
func (*AllowedBidder) XXX_Marshal ¶
func (m *AllowedBidder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllowedBidder) XXX_Merge ¶
func (m *AllowedBidder) XXX_Merge(src proto.Message)
func (*AllowedBidder) XXX_Size ¶
func (m *AllowedBidder) XXX_Size() int
func (*AllowedBidder) XXX_Unmarshal ¶
func (m *AllowedBidder) XXX_Unmarshal(b []byte) error
type AllowedBidderRecord ¶
type AllowedBidderRecord struct { // auction_ id specifies index of the auction AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` // allowed_bidder specifies allowed bidder for the auction AllowedBidder AllowedBidder `protobuf:"bytes,2,opt,name=allowed_bidder,json=allowedBidder,proto3" json:"allowed_bidder"` }
func (*AllowedBidderRecord) Descriptor ¶
func (*AllowedBidderRecord) Descriptor() ([]byte, []int)
func (*AllowedBidderRecord) GetAllowedBidder ¶
func (m *AllowedBidderRecord) GetAllowedBidder() AllowedBidder
func (*AllowedBidderRecord) GetAuctionId ¶
func (m *AllowedBidderRecord) GetAuctionId() uint64
func (*AllowedBidderRecord) Marshal ¶
func (m *AllowedBidderRecord) Marshal() (dAtA []byte, err error)
func (*AllowedBidderRecord) MarshalTo ¶
func (m *AllowedBidderRecord) MarshalTo(dAtA []byte) (int, error)
func (*AllowedBidderRecord) MarshalToSizedBuffer ¶
func (m *AllowedBidderRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AllowedBidderRecord) ProtoMessage ¶
func (*AllowedBidderRecord) ProtoMessage()
func (*AllowedBidderRecord) Reset ¶
func (m *AllowedBidderRecord) Reset()
func (*AllowedBidderRecord) Size ¶
func (m *AllowedBidderRecord) Size() (n int)
func (*AllowedBidderRecord) String ¶
func (m *AllowedBidderRecord) String() string
func (*AllowedBidderRecord) Unmarshal ¶
func (m *AllowedBidderRecord) Unmarshal(dAtA []byte) error
func (AllowedBidderRecord) Validate ¶
func (r AllowedBidderRecord) Validate() error
Validate validates AllowedBidder.
func (*AllowedBidderRecord) XXX_DiscardUnknown ¶
func (m *AllowedBidderRecord) XXX_DiscardUnknown()
func (*AllowedBidderRecord) XXX_Marshal ¶
func (m *AllowedBidderRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AllowedBidderRecord) XXX_Merge ¶
func (m *AllowedBidderRecord) XXX_Merge(src proto.Message)
func (*AllowedBidderRecord) XXX_Size ¶
func (m *AllowedBidderRecord) XXX_Size() int
func (*AllowedBidderRecord) XXX_Unmarshal ¶
func (m *AllowedBidderRecord) XXX_Unmarshal(b []byte) error
type AuctionI ¶
type AuctionI interface { proto.Message GetId() uint64 SetId(uint64) error GetType() AuctionType SetType(AuctionType) error GetAuctioneer() sdk.AccAddress SetAuctioneer(sdk.AccAddress) error GetSellingReserveAddress() sdk.AccAddress SetSellingReserveAddress(sdk.AccAddress) error GetPayingReserveAddress() sdk.AccAddress SetPayingReserveAddress(sdk.AccAddress) error GetStartPrice() sdk.Dec SetStartPrice(sdk.Dec) error GetSellingCoin() sdk.Coin SetSellingCoin(sdk.Coin) error GetPayingCoinDenom() string SetPayingCoinDenom(string) error GetVestingReserveAddress() sdk.AccAddress SetVestingReserveAddress(sdk.AccAddress) error GetVestingSchedules() []VestingSchedule SetVestingSchedules([]VestingSchedule) error GetStartTime() time.Time SetStartTime(time.Time) error GetEndTimes() []time.Time SetEndTimes([]time.Time) error GetStatus() AuctionStatus SetStatus(AuctionStatus) error ShouldAuctionStarted(t time.Time) bool ShouldAuctionClosed(t time.Time) bool Validate() error }
AuctionI is an interface that inherits the BaseAuction and exposes common functions to get and set standard auction data.
func MustUnmarshalAuction ¶
func MustUnmarshalAuction(cdc codec.BinaryCodec, value []byte) AuctionI
MustUnmarshalAuction return the unmarshalled auction from bytes. It throws panic if it fails.
func UnmarshalAuction ¶
func UnmarshalAuction(cdc codec.BinaryCodec, value []byte) (auction AuctionI, err error)
UnmarshalAuction returns the auction from the bytes.
func UnpackAuction ¶
func UnpackAuction(any *codectypes.Any) (AuctionI, error)
UnpackAuction converts Any to AuctionI.
func UnpackAuctions ¶
func UnpackAuctions(auctionsAny []*codectypes.Any) ([]AuctionI, error)
UnpackAuctions converts Any slice to AuctionIs.
type AuctionStatus ¶
type AuctionStatus int32
AuctionStatus enumerates the valid status of an auction.
const ( // AUCTION_STATUS_UNSPECIFIED defines the default auction status AuctionStatusNil AuctionStatus = 0 // AUCTION_STATUS_STANDBY defines the standby auction status AuctionStatusStandBy AuctionStatus = 1 // AUCTION_STATUS_STARTED defines the started auction status AuctionStatusStarted AuctionStatus = 2 // AUCTION_STATUS_VESTING defines the vesting auction status AuctionStatusVesting AuctionStatus = 3 // AUCTION_STATUS_FINISHED defines the finished auction status AuctionStatusFinished AuctionStatus = 4 // AUCTION_STATUS_CANCELLED defines the cancelled auction status AuctionStatusCancelled AuctionStatus = 5 )
func (AuctionStatus) EnumDescriptor ¶
func (AuctionStatus) EnumDescriptor() ([]byte, []int)
func (AuctionStatus) String ¶
func (x AuctionStatus) String() string
type AuctionType ¶
type AuctionType int32
AuctionType enumerates the valid types of an auction.
const ( // AUCTION_TYPE_UNSPECIFIED defines the default auction type AuctionTypeNil AuctionType = 0 // AUCTION_TYPE_FIXED_PRICE defines the fixed price auction type AuctionTypeFixedPrice AuctionType = 1 // AUCTION_TYPE_BATCH defines the batch auction type AuctionTypeBatch AuctionType = 2 )
func (AuctionType) EnumDescriptor ¶
func (AuctionType) EnumDescriptor() ([]byte, []int)
func (AuctionType) String ¶
func (x AuctionType) String() string
type BankKeeper ¶
type BankKeeper interface { SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error InputOutputCoins(ctx sdk.Context, inputs []banktypes.Input, outputs []banktypes.Output) error // MintCoins and SendCoinsFromModuleToAccount are used only for simulation test codes MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error }
BankKeeper defines the expected bank send keeper.
type BaseAuction ¶
type BaseAuction struct { // id specifies index of the auction Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // type specifies the auction type // type 1 is fixed price and 2 is batch auction Type AuctionType `protobuf:"varint,2,opt,name=type,proto3,enum=tendermint.fundraising.AuctionType" json:"type,omitempty"` // auctioneer specifies the bech32-encoded address that creates the auction Auctioneer string `protobuf:"bytes,3,opt,name=auctioneer,proto3" json:"auctioneer,omitempty"` // selling_reserve_address specifies the bech32-encoded address that has all // the selling coin SellingReserveAddress string `` /* 126-byte string literal not displayed */ // paying_reserve_address specifies the bech32-encoded address that has all // the paying coin PayingReserveAddress string `protobuf:"bytes,5,opt,name=paying_reserve_address,json=payingReserveAddress,proto3" json:"paying_reserve_address,omitempty"` // start_price specifies the starting price of the auction // it is determined by the proportion of the price of paying coin denom StartPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */ // selling_coin specifies the selling coin for the auction SellingCoin types.Coin `` /* 137-byte string literal not displayed */ // paying_coin_denom specifies the paying coin denom that bidders use to bid // for PayingCoinDenom string `protobuf:"bytes,8,opt,name=paying_coin_denom,json=payingCoinDenom,proto3" json:"paying_coin_denom,omitempty"` // vesting_reserve_address specifies the bech32-encoded vesting address that // holds vesting amounts of coin VestingReserveAddress string `` /* 126-byte string literal not displayed */ // vesting_schedules specifies the vesting schedules for the auction VestingSchedules []VestingSchedule `protobuf:"bytes,10,rep,name=vesting_schedules,json=vestingSchedules,proto3" json:"vesting_schedules"` // start_time specifies the start time of the plan StartTime time.Time `protobuf:"bytes,11,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"` // end_times specifies the end time of the plan EndTimes []time.Time `protobuf:"bytes,12,rep,name=end_times,json=endTimes,proto3,stdtime" json:"end_times"` // status specifies the auction status Status AuctionStatus `protobuf:"varint,13,opt,name=status,proto3,enum=tendermint.fundraising.AuctionStatus" json:"status,omitempty"` }
BaseAuction defines a base auction type. It contains all the necessary fields for basic auction functionality. Any custom auction type should extend this type for additional functionality (e.g. batch auction, fixed price auction).
func NewBaseAuction ¶
func NewBaseAuction( id uint64, typ AuctionType, auctioneerAddr string, sellingPoolAddr string, payingPoolAddr string, startPrice sdk.Dec, sellingCoin sdk.Coin, payingCoinDenom string, vestingPoolAddr string, vestingSchedules []VestingSchedule, startTime time.Time, endTimes []time.Time, status AuctionStatus, ) *BaseAuction
NewBaseAuction creates a new BaseAuction object
func (*BaseAuction) Descriptor ¶
func (*BaseAuction) Descriptor() ([]byte, []int)
func (BaseAuction) GetAuctioneer ¶
func (ba BaseAuction) GetAuctioneer() sdk.AccAddress
func (BaseAuction) GetEndTimes ¶
func (ba BaseAuction) GetEndTimes() []time.Time
func (BaseAuction) GetId ¶
func (ba BaseAuction) GetId() uint64
func (BaseAuction) GetPayingCoinDenom ¶
func (ba BaseAuction) GetPayingCoinDenom() string
func (BaseAuction) GetPayingReserveAddress ¶
func (ba BaseAuction) GetPayingReserveAddress() sdk.AccAddress
func (BaseAuction) GetSellingCoin ¶
func (ba BaseAuction) GetSellingCoin() sdk.Coin
func (BaseAuction) GetSellingReserveAddress ¶
func (ba BaseAuction) GetSellingReserveAddress() sdk.AccAddress
func (BaseAuction) GetStartPrice ¶
func (ba BaseAuction) GetStartPrice() sdk.Dec
func (BaseAuction) GetStartTime ¶
func (ba BaseAuction) GetStartTime() time.Time
func (BaseAuction) GetStatus ¶
func (ba BaseAuction) GetStatus() AuctionStatus
func (BaseAuction) GetType ¶
func (ba BaseAuction) GetType() AuctionType
func (BaseAuction) GetVestingReserveAddress ¶
func (ba BaseAuction) GetVestingReserveAddress() sdk.AccAddress
func (BaseAuction) GetVestingSchedules ¶
func (ba BaseAuction) GetVestingSchedules() []VestingSchedule
func (*BaseAuction) Marshal ¶
func (m *BaseAuction) Marshal() (dAtA []byte, err error)
func (*BaseAuction) MarshalToSizedBuffer ¶
func (m *BaseAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BaseAuction) ProtoMessage ¶
func (*BaseAuction) ProtoMessage()
func (*BaseAuction) Reset ¶
func (m *BaseAuction) Reset()
func (*BaseAuction) SetAuctioneer ¶
func (ba *BaseAuction) SetAuctioneer(addr sdk.AccAddress) error
func (*BaseAuction) SetEndTimes ¶
func (ba *BaseAuction) SetEndTimes(t []time.Time) error
func (*BaseAuction) SetId ¶
func (ba *BaseAuction) SetId(id uint64) error
func (*BaseAuction) SetPayingCoinDenom ¶
func (ba *BaseAuction) SetPayingCoinDenom(denom string) error
func (*BaseAuction) SetPayingReserveAddress ¶
func (ba *BaseAuction) SetPayingReserveAddress(addr sdk.AccAddress) error
func (*BaseAuction) SetSellingCoin ¶
func (ba *BaseAuction) SetSellingCoin(coin sdk.Coin) error
func (*BaseAuction) SetSellingReserveAddress ¶
func (ba *BaseAuction) SetSellingReserveAddress(addr sdk.AccAddress) error
func (*BaseAuction) SetStartPrice ¶
func (ba *BaseAuction) SetStartPrice(price sdk.Dec) error
func (*BaseAuction) SetStartTime ¶
func (ba *BaseAuction) SetStartTime(t time.Time) error
func (*BaseAuction) SetStatus ¶
func (ba *BaseAuction) SetStatus(status AuctionStatus) error
func (*BaseAuction) SetType ¶
func (ba *BaseAuction) SetType(typ AuctionType) error
func (*BaseAuction) SetVestingReserveAddress ¶
func (ba *BaseAuction) SetVestingReserveAddress(addr sdk.AccAddress) error
func (*BaseAuction) SetVestingSchedules ¶
func (ba *BaseAuction) SetVestingSchedules(schedules []VestingSchedule) error
func (BaseAuction) ShouldAuctionClosed ¶
func (ba BaseAuction) ShouldAuctionClosed(t time.Time) bool
ShouldAuctionClosed returns true if the end time is equal or before the given time t.
func (BaseAuction) ShouldAuctionStarted ¶
func (ba BaseAuction) ShouldAuctionStarted(t time.Time) bool
ShouldAuctionStarted returns true if the start time is equal or before the given time t.
func (*BaseAuction) Size ¶
func (m *BaseAuction) Size() (n int)
func (*BaseAuction) String ¶
func (m *BaseAuction) String() string
func (*BaseAuction) Unmarshal ¶
func (m *BaseAuction) Unmarshal(dAtA []byte) error
func (BaseAuction) Validate ¶
func (ba BaseAuction) Validate() error
Validate checks for errors on the Auction fields
func (*BaseAuction) XXX_DiscardUnknown ¶
func (m *BaseAuction) XXX_DiscardUnknown()
func (*BaseAuction) XXX_Marshal ¶
func (m *BaseAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BaseAuction) XXX_Merge ¶
func (m *BaseAuction) XXX_Merge(src proto.Message)
func (*BaseAuction) XXX_Size ¶
func (m *BaseAuction) XXX_Size() int
func (*BaseAuction) XXX_Unmarshal ¶
func (m *BaseAuction) XXX_Unmarshal(b []byte) error
type BatchAuction ¶
type BatchAuction struct { *BaseAuction `protobuf:"bytes,1,opt,name=base_auction,json=baseAuction,proto3,embedded=base_auction" json:"base_auction,omitempty"` // min_bid_price specifies the minibum bid price MinBidPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 136-byte string literal not displayed */ // matched_price specifies the matched price of the auction MatchedPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 137-byte string literal not displayed */ // max_extended_round specifies a maximum number of extended rounds MaxExtendedRound uint32 `protobuf:"varint,4,opt,name=max_extended_round,json=maxExtendedRound,proto3" json:"max_extended_round,omitempty"` // extended_round_rate specifies the rate that decides if the auction needs // another round ExtendedRoundRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 154-byte string literal not displayed */ }
BatchAuction defines a batch auction type. It allows bidders to participate in the auction by placing their limit orders with a bid price they are willing to bid within the auction period. They can place multiple bids with different bid prices and if they want to modify their existing bid, they only have an option to modify with a higher bid price. Under the hood, an order book is created to record the bids to calculate the matched bidders.
func NewBatchAuction ¶
func NewBatchAuction(baseAuction *BaseAuction, minBidPrice sdk.Dec, matchedPrice sdk.Dec, maxExtendedRound uint32, extendedRoundRate sdk.Dec) *BatchAuction
NewBatchAuction returns a new batch auction.
func (*BatchAuction) Descriptor ¶
func (*BatchAuction) Descriptor() ([]byte, []int)
func (*BatchAuction) Marshal ¶
func (m *BatchAuction) Marshal() (dAtA []byte, err error)
func (*BatchAuction) MarshalToSizedBuffer ¶
func (m *BatchAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BatchAuction) ProtoMessage ¶
func (*BatchAuction) ProtoMessage()
func (*BatchAuction) Reset ¶
func (m *BatchAuction) Reset()
func (*BatchAuction) Size ¶
func (m *BatchAuction) Size() (n int)
func (*BatchAuction) String ¶
func (m *BatchAuction) String() string
func (*BatchAuction) Unmarshal ¶
func (m *BatchAuction) Unmarshal(dAtA []byte) error
func (*BatchAuction) XXX_DiscardUnknown ¶
func (m *BatchAuction) XXX_DiscardUnknown()
func (*BatchAuction) XXX_Marshal ¶
func (m *BatchAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchAuction) XXX_Merge ¶
func (m *BatchAuction) XXX_Merge(src proto.Message)
func (*BatchAuction) XXX_Size ¶
func (m *BatchAuction) XXX_Size() int
func (*BatchAuction) XXX_Unmarshal ¶
func (m *BatchAuction) XXX_Unmarshal(b []byte) error
type Bid ¶
type Bid struct { // auction_id specifies the id of the auction AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` // bidder specifies the bech32-encoded address that bids for the auction Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"` // id specifies an index of a bid for the bidder Id uint64 `protobuf:"varint,3,opt,name=id,proto3" json:"id,omitempty"` // type specifies the bid type; type 1 is fixed price, 2 is how-much-worth, 3 // is how-many-coins Type BidType `protobuf:"varint,4,opt,name=type,proto3,enum=tendermint.fundraising.BidType" json:"type,omitempty"` // price specifies the bid price in which price the bidder places the bid Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` // coin specifies the amount of coin that the bidder bids // for a fixed price auction, the denom is of the paying coin. // for a batch auction of how-much-worth, the denom is of the paying coin. // for a batch auction of how-many-coins, the denom is of the selling coin. Coin types.Coin `protobuf:"bytes,6,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"` // is_matched specifies the bid that is a winning bid and enables the bidder // to purchase the selling coin IsMatched bool `protobuf:"varint,7,opt,name=is_matched,json=isMatched,proto3" json:"is_matched,omitempty"` }
Bid defines a standard bid for an auction.
func NewBid ¶
func NewBid(auctionId uint64, bidder sdk.AccAddress, bidId uint64, bidType BidType, price sdk.Dec, coin sdk.Coin, isMatched bool) Bid
NewBid returns a new Bid.
func UnmarshalBid ¶
func UnmarshalBid(cdc codec.BinaryCodec, value []byte) (b Bid, err error)
UnmarshalBid unmarshals bid from a store value.
func (Bid) ConvertToPayingAmount ¶
ConvertToPayingAmount converts to paying amount depending on the bid coin denom. Note that we take as many coins as possible by ceiling numbers from bidder.
func (Bid) ConvertToSellingAmount ¶
ConvertToSellingAmount converts to selling amount depending on the bid coin denom. Note that we take as little coins as possible to prevent from overflowing the remaining selling coin.
func (*Bid) Descriptor ¶
func (Bid) GetBidder ¶
func (b Bid) GetBidder() sdk.AccAddress
func (*Bid) ProtoMessage ¶
func (*Bid) ProtoMessage()
func (*Bid) SetMatched ¶
func (*Bid) XXX_DiscardUnknown ¶
func (m *Bid) XXX_DiscardUnknown()
func (*Bid) XXX_Unmarshal ¶
type BidType ¶
type BidType int32
BidType enumerates the valid types of a bid.
const ( // BID_TYPE_UNSPECIFIED defines the default bid type BidTypeNil BidType = 0 // BID_TYPE_FIXED_PRICE defines a bid type for a fixed price auction type BidTypeFixedPrice BidType = 1 // BID_TYPE_BATCH_WORTH defines a bid type for How-Much-Worth-to-Buy of a // batch auction BidTypeBatchWorth BidType = 2 // BID_TYPE_BATCH_MANY defines a bid type for How-Many-Coins-to-Buy of a batch // auction BidTypeBatchMany BidType = 3 )
func (BidType) EnumDescriptor ¶
type BidderMatchResult ¶
type DistrKeeper ¶
type DistrKeeper interface {
FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}
DistrKeeper is the keeper of the distribution store
type FixedPriceAuction ¶
type FixedPriceAuction struct { *BaseAuction `protobuf:"bytes,1,opt,name=base_auction,json=baseAuction,proto3,embedded=base_auction" json:"base_auction,omitempty"` // remaining_coin specifies the remaining amount of selling coin to sell RemainingSellingCoin types.Coin `` /* 166-byte string literal not displayed */ }
FixedPriceAuction defines the fixed price auction type. It is the most simpliest way to raise funds. An auctioneer sets the starting price for each selling amounts of coin and bidders bid to purchase based on the fixed price.
func NewFixedPriceAuction ¶
func NewFixedPriceAuction(baseAuction *BaseAuction, remainingSellingCoin sdk.Coin) *FixedPriceAuction
NewFixedPriceAuction returns a new fixed price auction.
func (*FixedPriceAuction) Descriptor ¶
func (*FixedPriceAuction) Descriptor() ([]byte, []int)
func (*FixedPriceAuction) Marshal ¶
func (m *FixedPriceAuction) Marshal() (dAtA []byte, err error)
func (*FixedPriceAuction) MarshalTo ¶
func (m *FixedPriceAuction) MarshalTo(dAtA []byte) (int, error)
func (*FixedPriceAuction) MarshalToSizedBuffer ¶
func (m *FixedPriceAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FixedPriceAuction) ProtoMessage ¶
func (*FixedPriceAuction) ProtoMessage()
func (*FixedPriceAuction) Reset ¶
func (m *FixedPriceAuction) Reset()
func (*FixedPriceAuction) Size ¶
func (m *FixedPriceAuction) Size() (n int)
func (*FixedPriceAuction) String ¶
func (m *FixedPriceAuction) String() string
func (*FixedPriceAuction) Unmarshal ¶
func (m *FixedPriceAuction) Unmarshal(dAtA []byte) error
func (*FixedPriceAuction) XXX_DiscardUnknown ¶
func (m *FixedPriceAuction) XXX_DiscardUnknown()
func (*FixedPriceAuction) XXX_Marshal ¶
func (m *FixedPriceAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FixedPriceAuction) XXX_Merge ¶
func (m *FixedPriceAuction) XXX_Merge(src proto.Message)
func (*FixedPriceAuction) XXX_Size ¶
func (m *FixedPriceAuction) XXX_Size() int
func (*FixedPriceAuction) XXX_Unmarshal ¶
func (m *FixedPriceAuction) XXX_Unmarshal(b []byte) error
type FundraisingHooks ¶
type FundraisingHooks interface { BeforeFixedPriceAuctionCreated( ctx sdk.Context, auctioneer string, startPrice sdk.Dec, sellingCoin sdk.Coin, payingCoinDenom string, vestingSchedules []VestingSchedule, startTime time.Time, endTime time.Time, ) AfterFixedPriceAuctionCreated( ctx sdk.Context, auctionId uint64, auctioneer string, startPrice sdk.Dec, sellingCoin sdk.Coin, payingCoinDenom string, vestingSchedules []VestingSchedule, startTime time.Time, endTime time.Time, ) BeforeBatchAuctionCreated( ctx sdk.Context, auctioneer string, startPrice sdk.Dec, minBidPrice sdk.Dec, sellingCoin sdk.Coin, payingCoinDenom string, vestingSchedules []VestingSchedule, maxExtendedRound uint32, extendedRoundRate sdk.Dec, startTime time.Time, endTime time.Time, ) AfterBatchAuctionCreated( ctx sdk.Context, auctionId uint64, auctioneer string, startPrice sdk.Dec, minBidPrice sdk.Dec, sellingCoin sdk.Coin, payingCoinDenom string, vestingSchedules []VestingSchedule, maxExtendedRound uint32, extendedRoundRate sdk.Dec, startTime time.Time, endTime time.Time, ) BeforeAuctionCanceled( ctx sdk.Context, auctionId uint64, auctioneer string, ) BeforeBidPlaced( ctx sdk.Context, auctionId uint64, bidId uint64, bidder string, bidType BidType, price sdk.Dec, coin sdk.Coin, ) BeforeBidModified( ctx sdk.Context, auctionId uint64, bidId uint64, bidder string, bidType BidType, price sdk.Dec, coin sdk.Coin, ) BeforeAllowedBiddersAdded( ctx sdk.Context, allowedBidders []AllowedBidder, ) BeforeAllowedBidderUpdated( ctx sdk.Context, auctionId uint64, bidder sdk.AccAddress, maxBidAmount sdk.Int, ) BeforeSellingCoinsAllocated( ctx sdk.Context, auctionId uint64, allocationMap map[string]sdk.Int, refundMap map[string]sdk.Int, ) }
FundraisingHooks event hooks for fundraising auction and bid objects (noalias)
type GenesisState ¶
type GenesisState struct { // params defines all the parameters for the module Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // auctions define the auction interface for genesis state; the module // supports FixedPriceAuction or BatchAuction Auctions []*types.Any `protobuf:"bytes,2,rep,name=auctions,proto3" json:"auctions,omitempty"` // allowed_bidder_records define the allowed bidder records for the auction AllowedBidderRecords []AllowedBidderRecord `protobuf:"bytes,3,rep,name=allowed_bidder_records,json=allowedBidderRecords,proto3" json:"allowed_bidder_records"` // bids define the bid records used for genesis state Bids []Bid `protobuf:"bytes,4,rep,name=bids,proto3" json:"bids"` // vesting_queues define the vesting queue records used for genesis // state VestingQueues []VestingQueue `protobuf:"bytes,5,rep,name=vesting_queues,json=vestingQueues,proto3" json:"vesting_queues"` }
GenesisState defines the fundraising module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns the default fundraising genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MatchResult ¶
type MsgAddAllowedBidder ¶
type MsgAddAllowedBidder struct { // auction_id specifies the auction id AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` // allowed_bidder specifies the bidder who is allowed to bid and their maximum // bid amount AllowedBidder AllowedBidder `protobuf:"bytes,2,opt,name=allowed_bidder,json=allowedBidder,proto3" json:"allowed_bidder"` }
MsgAddAllowedBidder defines a SDK message for adding an allowed bidder to the auction.
func NewMsgAddAllowedBidder ¶
func NewMsgAddAllowedBidder( auctionId uint64, allowedBidder AllowedBidder, ) *MsgAddAllowedBidder
NewMsgAddAllowedBidder creates a new MsgAddAllowedBidder.
func (*MsgAddAllowedBidder) Descriptor ¶
func (*MsgAddAllowedBidder) Descriptor() ([]byte, []int)
func (MsgAddAllowedBidder) GetSignBytes ¶
func (msg MsgAddAllowedBidder) GetSignBytes() []byte
func (MsgAddAllowedBidder) GetSigners ¶
func (msg MsgAddAllowedBidder) GetSigners() []sdk.AccAddress
func (*MsgAddAllowedBidder) Marshal ¶
func (m *MsgAddAllowedBidder) Marshal() (dAtA []byte, err error)
func (*MsgAddAllowedBidder) MarshalTo ¶
func (m *MsgAddAllowedBidder) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddAllowedBidder) MarshalToSizedBuffer ¶
func (m *MsgAddAllowedBidder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddAllowedBidder) ProtoMessage ¶
func (*MsgAddAllowedBidder) ProtoMessage()
func (*MsgAddAllowedBidder) Reset ¶
func (m *MsgAddAllowedBidder) Reset()
func (MsgAddAllowedBidder) Route ¶
func (msg MsgAddAllowedBidder) Route() string
func (*MsgAddAllowedBidder) Size ¶
func (m *MsgAddAllowedBidder) Size() (n int)
func (*MsgAddAllowedBidder) String ¶
func (m *MsgAddAllowedBidder) String() string
func (MsgAddAllowedBidder) Type ¶
func (msg MsgAddAllowedBidder) Type() string
func (*MsgAddAllowedBidder) Unmarshal ¶
func (m *MsgAddAllowedBidder) Unmarshal(dAtA []byte) error
func (MsgAddAllowedBidder) ValidateBasic ¶
func (msg MsgAddAllowedBidder) ValidateBasic() error
func (*MsgAddAllowedBidder) XXX_DiscardUnknown ¶
func (m *MsgAddAllowedBidder) XXX_DiscardUnknown()
func (*MsgAddAllowedBidder) XXX_Marshal ¶
func (m *MsgAddAllowedBidder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddAllowedBidder) XXX_Merge ¶
func (m *MsgAddAllowedBidder) XXX_Merge(src proto.Message)
func (*MsgAddAllowedBidder) XXX_Size ¶
func (m *MsgAddAllowedBidder) XXX_Size() int
func (*MsgAddAllowedBidder) XXX_Unmarshal ¶
func (m *MsgAddAllowedBidder) XXX_Unmarshal(b []byte) error
type MsgAddAllowedBidderResponse ¶
type MsgAddAllowedBidderResponse struct { }
func (*MsgAddAllowedBidderResponse) Descriptor ¶
func (*MsgAddAllowedBidderResponse) Descriptor() ([]byte, []int)
func (*MsgAddAllowedBidderResponse) Marshal ¶
func (m *MsgAddAllowedBidderResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddAllowedBidderResponse) MarshalTo ¶
func (m *MsgAddAllowedBidderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddAllowedBidderResponse) MarshalToSizedBuffer ¶
func (m *MsgAddAllowedBidderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddAllowedBidderResponse) ProtoMessage ¶
func (*MsgAddAllowedBidderResponse) ProtoMessage()
func (*MsgAddAllowedBidderResponse) Reset ¶
func (m *MsgAddAllowedBidderResponse) Reset()
func (*MsgAddAllowedBidderResponse) Size ¶
func (m *MsgAddAllowedBidderResponse) Size() (n int)
func (*MsgAddAllowedBidderResponse) String ¶
func (m *MsgAddAllowedBidderResponse) String() string
func (*MsgAddAllowedBidderResponse) Unmarshal ¶
func (m *MsgAddAllowedBidderResponse) Unmarshal(dAtA []byte) error
func (*MsgAddAllowedBidderResponse) XXX_DiscardUnknown ¶
func (m *MsgAddAllowedBidderResponse) XXX_DiscardUnknown()
func (*MsgAddAllowedBidderResponse) XXX_Marshal ¶
func (m *MsgAddAllowedBidderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddAllowedBidderResponse) XXX_Merge ¶
func (m *MsgAddAllowedBidderResponse) XXX_Merge(src proto.Message)
func (*MsgAddAllowedBidderResponse) XXX_Size ¶
func (m *MsgAddAllowedBidderResponse) XXX_Size() int
func (*MsgAddAllowedBidderResponse) XXX_Unmarshal ¶
func (m *MsgAddAllowedBidderResponse) XXX_Unmarshal(b []byte) error
type MsgCancelAuction ¶
type MsgCancelAuction struct { // auctioneer specifies the bech32-encoded address that is in charge of the // auction Auctioneer string `protobuf:"bytes,1,opt,name=auctioneer,proto3" json:"auctioneer,omitempty"` // auction_id specifies the auction id AuctionId uint64 `protobuf:"varint,2,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` }
MsgCancelAuction defines a SDK message for cancelling the auction. Cancelling is only allowed when the auction hasn't started yet.
func NewMsgCancelAuction ¶
func NewMsgCancelAuction( auctioneer string, auctionId uint64, ) *MsgCancelAuction
NewMsgCancelAuction creates a new MsgCancelAuction.
func (*MsgCancelAuction) Descriptor ¶
func (*MsgCancelAuction) Descriptor() ([]byte, []int)
func (MsgCancelAuction) GetAuctioneer ¶
func (msg MsgCancelAuction) GetAuctioneer() sdk.AccAddress
func (MsgCancelAuction) GetSignBytes ¶
func (msg MsgCancelAuction) GetSignBytes() []byte
func (MsgCancelAuction) GetSigners ¶
func (msg MsgCancelAuction) GetSigners() []sdk.AccAddress
func (*MsgCancelAuction) Marshal ¶
func (m *MsgCancelAuction) Marshal() (dAtA []byte, err error)
func (*MsgCancelAuction) MarshalToSizedBuffer ¶
func (m *MsgCancelAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelAuction) ProtoMessage ¶
func (*MsgCancelAuction) ProtoMessage()
func (*MsgCancelAuction) Reset ¶
func (m *MsgCancelAuction) Reset()
func (MsgCancelAuction) Route ¶
func (msg MsgCancelAuction) Route() string
func (*MsgCancelAuction) Size ¶
func (m *MsgCancelAuction) Size() (n int)
func (*MsgCancelAuction) String ¶
func (m *MsgCancelAuction) String() string
func (MsgCancelAuction) Type ¶
func (msg MsgCancelAuction) Type() string
func (*MsgCancelAuction) Unmarshal ¶
func (m *MsgCancelAuction) Unmarshal(dAtA []byte) error
func (MsgCancelAuction) ValidateBasic ¶
func (msg MsgCancelAuction) ValidateBasic() error
func (*MsgCancelAuction) XXX_DiscardUnknown ¶
func (m *MsgCancelAuction) XXX_DiscardUnknown()
func (*MsgCancelAuction) XXX_Marshal ¶
func (m *MsgCancelAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelAuction) XXX_Merge ¶
func (m *MsgCancelAuction) XXX_Merge(src proto.Message)
func (*MsgCancelAuction) XXX_Size ¶
func (m *MsgCancelAuction) XXX_Size() int
func (*MsgCancelAuction) XXX_Unmarshal ¶
func (m *MsgCancelAuction) XXX_Unmarshal(b []byte) error
type MsgCancelAuctionResponse ¶
type MsgCancelAuctionResponse struct { }
MsgCancelAuctionResponse defines the Msg/MsgCancelAuctionResponse response type.
func (*MsgCancelAuctionResponse) Descriptor ¶
func (*MsgCancelAuctionResponse) Descriptor() ([]byte, []int)
func (*MsgCancelAuctionResponse) Marshal ¶
func (m *MsgCancelAuctionResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelAuctionResponse) MarshalTo ¶
func (m *MsgCancelAuctionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelAuctionResponse) MarshalToSizedBuffer ¶
func (m *MsgCancelAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelAuctionResponse) ProtoMessage ¶
func (*MsgCancelAuctionResponse) ProtoMessage()
func (*MsgCancelAuctionResponse) Reset ¶
func (m *MsgCancelAuctionResponse) Reset()
func (*MsgCancelAuctionResponse) Size ¶
func (m *MsgCancelAuctionResponse) Size() (n int)
func (*MsgCancelAuctionResponse) String ¶
func (m *MsgCancelAuctionResponse) String() string
func (*MsgCancelAuctionResponse) Unmarshal ¶
func (m *MsgCancelAuctionResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelAuctionResponse) XXX_DiscardUnknown ¶
func (m *MsgCancelAuctionResponse) XXX_DiscardUnknown()
func (*MsgCancelAuctionResponse) XXX_Marshal ¶
func (m *MsgCancelAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelAuctionResponse) XXX_Merge ¶
func (m *MsgCancelAuctionResponse) XXX_Merge(src proto.Message)
func (*MsgCancelAuctionResponse) XXX_Size ¶
func (m *MsgCancelAuctionResponse) XXX_Size() int
func (*MsgCancelAuctionResponse) XXX_Unmarshal ¶
func (m *MsgCancelAuctionResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // this line is used by Starport scaffolding # proto/tx/rpc // Submit a create fixed price auction message. CreateFixedPriceAuction(ctx context.Context, in *MsgCreateFixedPriceAuction, opts ...grpc.CallOption) (*MsgCreateFixedPriceAuctionResponse, error) // Submit a create batch auction message. CreateBatchAuction(ctx context.Context, in *MsgCreateBatchAuction, opts ...grpc.CallOption) (*MsgCreateBatchAuctionResponse, error) // CancelAuction defines a method to cancel the auction message. CancelAuction(ctx context.Context, in *MsgCancelAuction, opts ...grpc.CallOption) (*MsgCancelAuctionResponse, error) // PlaceBid defines a method to place a bid message. PlaceBid(ctx context.Context, in *MsgPlaceBid, opts ...grpc.CallOption) (*MsgPlaceBidResponse, error) // ModifyBid defines a method to modify the bid message. ModifyBid(ctx context.Context, in *MsgModifyBid, opts ...grpc.CallOption) (*MsgModifyBidResponse, error) // AddAllowedBidder defines a method sto add a single allowed bidder message. // This is for the testing purpose and it must not be used in mainnet. AddAllowedBidder(ctx context.Context, in *MsgAddAllowedBidder, opts ...grpc.CallOption) (*MsgAddAllowedBidderResponse, 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 MsgCreateBatchAuction ¶
type MsgCreateBatchAuction struct { // auctioneer specifies the bech32-encoded address that creates the auction Auctioneer string `protobuf:"bytes,1,opt,name=auctioneer,proto3" json:"auctioneer,omitempty"` // start_price specifies the starting price of the auction StartPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */ // min_bid_price specifies the minibum bid price MinBidPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 136-byte string literal not displayed */ // selling_coin specifies the selling coin for the auction SellingCoin types.Coin `` /* 137-byte string literal not displayed */ // paying_coin_denom specifies the paying coin denom that bidders use to bid // for PayingCoinDenom string `protobuf:"bytes,5,opt,name=paying_coin_denom,json=payingCoinDenom,proto3" json:"paying_coin_denom,omitempty"` // vesting_schedules specifies the vesting schedules for the auction VestingSchedules []VestingSchedule `protobuf:"bytes,6,rep,name=vesting_schedules,json=vestingSchedules,proto3" json:"vesting_schedules"` // maximum_extended_round specifies the maximum number of extended rounds for // the auction MaxExtendedRound uint32 `protobuf:"varint,7,opt,name=max_extended_round,json=maxExtendedRound,proto3" json:"max_extended_round,omitempty"` // extended_round_rate specifies the rate that decides if the auction needs // another round ExtendedRoundRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 154-byte string literal not displayed */ // start_time specifies the start time of the plan StartTime time.Time `protobuf:"bytes,9,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"` // end_time specifies the end time of the plan EndTime time.Time `protobuf:"bytes,10,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time"` }
MsgCreateBatchAuction defines a SDK message for creating an batch auction.
See: https://github.com/tendermint/fundraising/tree/main/x/fundraising/spec/04_messages.md
func NewMsgCreateBatchAuction ¶
func NewMsgCreateBatchAuction( auctioneer string, startPrice sdk.Dec, minBidPrice sdk.Dec, sellingCoin sdk.Coin, payingCoinDenom string, vestingSchedules []VestingSchedule, maxExtendedRound uint32, extendedRoundRate sdk.Dec, startTime time.Time, endTime time.Time, ) *MsgCreateBatchAuction
NewMsgCreateBatchAuction creates a new MsgCreateBatchAuction.
func (*MsgCreateBatchAuction) Descriptor ¶
func (*MsgCreateBatchAuction) Descriptor() ([]byte, []int)
func (MsgCreateBatchAuction) GetAuctioneer ¶
func (msg MsgCreateBatchAuction) GetAuctioneer() sdk.AccAddress
func (MsgCreateBatchAuction) GetSignBytes ¶
func (msg MsgCreateBatchAuction) GetSignBytes() []byte
func (MsgCreateBatchAuction) GetSigners ¶
func (msg MsgCreateBatchAuction) GetSigners() []sdk.AccAddress
func (*MsgCreateBatchAuction) Marshal ¶
func (m *MsgCreateBatchAuction) Marshal() (dAtA []byte, err error)
func (*MsgCreateBatchAuction) MarshalTo ¶
func (m *MsgCreateBatchAuction) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateBatchAuction) MarshalToSizedBuffer ¶
func (m *MsgCreateBatchAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateBatchAuction) ProtoMessage ¶
func (*MsgCreateBatchAuction) ProtoMessage()
func (*MsgCreateBatchAuction) Reset ¶
func (m *MsgCreateBatchAuction) Reset()
func (MsgCreateBatchAuction) Route ¶
func (msg MsgCreateBatchAuction) Route() string
func (*MsgCreateBatchAuction) Size ¶
func (m *MsgCreateBatchAuction) Size() (n int)
func (*MsgCreateBatchAuction) String ¶
func (m *MsgCreateBatchAuction) String() string
func (MsgCreateBatchAuction) Type ¶
func (msg MsgCreateBatchAuction) Type() string
func (*MsgCreateBatchAuction) Unmarshal ¶
func (m *MsgCreateBatchAuction) Unmarshal(dAtA []byte) error
func (MsgCreateBatchAuction) ValidateBasic ¶
func (msg MsgCreateBatchAuction) ValidateBasic() error
func (*MsgCreateBatchAuction) XXX_DiscardUnknown ¶
func (m *MsgCreateBatchAuction) XXX_DiscardUnknown()
func (*MsgCreateBatchAuction) XXX_Marshal ¶
func (m *MsgCreateBatchAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateBatchAuction) XXX_Merge ¶
func (m *MsgCreateBatchAuction) XXX_Merge(src proto.Message)
func (*MsgCreateBatchAuction) XXX_Size ¶
func (m *MsgCreateBatchAuction) XXX_Size() int
func (*MsgCreateBatchAuction) XXX_Unmarshal ¶
func (m *MsgCreateBatchAuction) XXX_Unmarshal(b []byte) error
type MsgCreateBatchAuctionResponse ¶
type MsgCreateBatchAuctionResponse struct { }
MsgCreateBatchAuctionResponse defines the Msg/MsgCreateBatchAuctionResponse response type.
func (*MsgCreateBatchAuctionResponse) Descriptor ¶
func (*MsgCreateBatchAuctionResponse) Descriptor() ([]byte, []int)
func (*MsgCreateBatchAuctionResponse) Marshal ¶
func (m *MsgCreateBatchAuctionResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateBatchAuctionResponse) MarshalTo ¶
func (m *MsgCreateBatchAuctionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateBatchAuctionResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateBatchAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateBatchAuctionResponse) ProtoMessage ¶
func (*MsgCreateBatchAuctionResponse) ProtoMessage()
func (*MsgCreateBatchAuctionResponse) Reset ¶
func (m *MsgCreateBatchAuctionResponse) Reset()
func (*MsgCreateBatchAuctionResponse) Size ¶
func (m *MsgCreateBatchAuctionResponse) Size() (n int)
func (*MsgCreateBatchAuctionResponse) String ¶
func (m *MsgCreateBatchAuctionResponse) String() string
func (*MsgCreateBatchAuctionResponse) Unmarshal ¶
func (m *MsgCreateBatchAuctionResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateBatchAuctionResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateBatchAuctionResponse) XXX_DiscardUnknown()
func (*MsgCreateBatchAuctionResponse) XXX_Marshal ¶
func (m *MsgCreateBatchAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateBatchAuctionResponse) XXX_Merge ¶
func (m *MsgCreateBatchAuctionResponse) XXX_Merge(src proto.Message)
func (*MsgCreateBatchAuctionResponse) XXX_Size ¶
func (m *MsgCreateBatchAuctionResponse) XXX_Size() int
func (*MsgCreateBatchAuctionResponse) XXX_Unmarshal ¶
func (m *MsgCreateBatchAuctionResponse) XXX_Unmarshal(b []byte) error
type MsgCreateFixedPriceAuction ¶
type MsgCreateFixedPriceAuction struct { // auctioneer specifies the bech32-encoded address that creates the auction Auctioneer string `protobuf:"bytes,1,opt,name=auctioneer,proto3" json:"auctioneer,omitempty"` // start_price specifies the starting price of the auction StartPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */ // selling_coin specifies the selling coin for the auction SellingCoin types.Coin `` /* 137-byte string literal not displayed */ // paying_coin_denom specifies the paying coin denom that bidders use to bid // for PayingCoinDenom string `protobuf:"bytes,4,opt,name=paying_coin_denom,json=payingCoinDenom,proto3" json:"paying_coin_denom,omitempty"` // vesting_schedules specifies the vesting schedules for the auction VestingSchedules []VestingSchedule `protobuf:"bytes,5,rep,name=vesting_schedules,json=vestingSchedules,proto3" json:"vesting_schedules"` // start_time specifies the start time of the plan StartTime time.Time `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time"` // end_time specifies the end time of the plan EndTime time.Time `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time"` }
MsgCreateFixedPriceAuction defines a SDK message for creating a fixed price auction.
func NewMsgCreateFixedPriceAuction ¶
func NewMsgCreateFixedPriceAuction( auctioneer string, startPrice sdk.Dec, sellingCoin sdk.Coin, payingCoinDenom string, vestingSchedules []VestingSchedule, startTime time.Time, endTime time.Time, ) *MsgCreateFixedPriceAuction
NewMsgCreateFixedPriceAuction creates a new MsgCreateFixedPriceAuction.
func (*MsgCreateFixedPriceAuction) Descriptor ¶
func (*MsgCreateFixedPriceAuction) Descriptor() ([]byte, []int)
func (MsgCreateFixedPriceAuction) GetAuctioneer ¶
func (msg MsgCreateFixedPriceAuction) GetAuctioneer() sdk.AccAddress
func (MsgCreateFixedPriceAuction) GetSignBytes ¶
func (msg MsgCreateFixedPriceAuction) GetSignBytes() []byte
func (MsgCreateFixedPriceAuction) GetSigners ¶
func (msg MsgCreateFixedPriceAuction) GetSigners() []sdk.AccAddress
func (*MsgCreateFixedPriceAuction) Marshal ¶
func (m *MsgCreateFixedPriceAuction) Marshal() (dAtA []byte, err error)
func (*MsgCreateFixedPriceAuction) MarshalTo ¶
func (m *MsgCreateFixedPriceAuction) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateFixedPriceAuction) MarshalToSizedBuffer ¶
func (m *MsgCreateFixedPriceAuction) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateFixedPriceAuction) ProtoMessage ¶
func (*MsgCreateFixedPriceAuction) ProtoMessage()
func (*MsgCreateFixedPriceAuction) Reset ¶
func (m *MsgCreateFixedPriceAuction) Reset()
func (MsgCreateFixedPriceAuction) Route ¶
func (msg MsgCreateFixedPriceAuction) Route() string
func (*MsgCreateFixedPriceAuction) Size ¶
func (m *MsgCreateFixedPriceAuction) Size() (n int)
func (*MsgCreateFixedPriceAuction) String ¶
func (m *MsgCreateFixedPriceAuction) String() string
func (MsgCreateFixedPriceAuction) Type ¶
func (msg MsgCreateFixedPriceAuction) Type() string
func (*MsgCreateFixedPriceAuction) Unmarshal ¶
func (m *MsgCreateFixedPriceAuction) Unmarshal(dAtA []byte) error
func (MsgCreateFixedPriceAuction) ValidateBasic ¶
func (msg MsgCreateFixedPriceAuction) ValidateBasic() error
func (*MsgCreateFixedPriceAuction) XXX_DiscardUnknown ¶
func (m *MsgCreateFixedPriceAuction) XXX_DiscardUnknown()
func (*MsgCreateFixedPriceAuction) XXX_Marshal ¶
func (m *MsgCreateFixedPriceAuction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateFixedPriceAuction) XXX_Merge ¶
func (m *MsgCreateFixedPriceAuction) XXX_Merge(src proto.Message)
func (*MsgCreateFixedPriceAuction) XXX_Size ¶
func (m *MsgCreateFixedPriceAuction) XXX_Size() int
func (*MsgCreateFixedPriceAuction) XXX_Unmarshal ¶
func (m *MsgCreateFixedPriceAuction) XXX_Unmarshal(b []byte) error
type MsgCreateFixedPriceAuctionResponse ¶
type MsgCreateFixedPriceAuctionResponse struct { }
MsgCreateFixedPriceAuctionResponse defines the Msg/MsgCreateFixedPriceAuctionResponse response type.
func (*MsgCreateFixedPriceAuctionResponse) Descriptor ¶
func (*MsgCreateFixedPriceAuctionResponse) Descriptor() ([]byte, []int)
func (*MsgCreateFixedPriceAuctionResponse) Marshal ¶
func (m *MsgCreateFixedPriceAuctionResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateFixedPriceAuctionResponse) MarshalTo ¶
func (m *MsgCreateFixedPriceAuctionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateFixedPriceAuctionResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateFixedPriceAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateFixedPriceAuctionResponse) ProtoMessage ¶
func (*MsgCreateFixedPriceAuctionResponse) ProtoMessage()
func (*MsgCreateFixedPriceAuctionResponse) Reset ¶
func (m *MsgCreateFixedPriceAuctionResponse) Reset()
func (*MsgCreateFixedPriceAuctionResponse) Size ¶
func (m *MsgCreateFixedPriceAuctionResponse) Size() (n int)
func (*MsgCreateFixedPriceAuctionResponse) String ¶
func (m *MsgCreateFixedPriceAuctionResponse) String() string
func (*MsgCreateFixedPriceAuctionResponse) Unmarshal ¶
func (m *MsgCreateFixedPriceAuctionResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateFixedPriceAuctionResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateFixedPriceAuctionResponse) XXX_DiscardUnknown()
func (*MsgCreateFixedPriceAuctionResponse) XXX_Marshal ¶
func (m *MsgCreateFixedPriceAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateFixedPriceAuctionResponse) XXX_Merge ¶
func (m *MsgCreateFixedPriceAuctionResponse) XXX_Merge(src proto.Message)
func (*MsgCreateFixedPriceAuctionResponse) XXX_Size ¶
func (m *MsgCreateFixedPriceAuctionResponse) XXX_Size() int
func (*MsgCreateFixedPriceAuctionResponse) XXX_Unmarshal ¶
func (m *MsgCreateFixedPriceAuctionResponse) XXX_Unmarshal(b []byte) error
type MsgModifyBid ¶
type MsgModifyBid struct { // auction_id specifies the auction id AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` // bidder specifies the bech32-encoded address that bids for the auction Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"` // bid_id specifies the bid id BidId uint64 `protobuf:"varint,3,opt,name=bid_id,json=bidId,proto3" json:"bid_id,omitempty"` // price specifies the bid price. // the bide price must be above or equal to the original value that the bidder // placed. Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` // coin specifies the paying amount of coin or the selling amount that the // bidder bids Coin types.Coin `protobuf:"bytes,5,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"` }
MsgModifyBid defines a SDK message for modifying an existing bid for the auction.
func NewMsgModifyBid ¶
func NewMsgModifyBid( auctionId uint64, bidder string, bidId uint64, price sdk.Dec, coin sdk.Coin, ) *MsgModifyBid
NewMsgModifyBid creates a new MsgModifyBid.
func (*MsgModifyBid) Descriptor ¶
func (*MsgModifyBid) Descriptor() ([]byte, []int)
func (MsgModifyBid) GetBidder ¶
func (msg MsgModifyBid) GetBidder() sdk.AccAddress
func (MsgModifyBid) GetSignBytes ¶
func (msg MsgModifyBid) GetSignBytes() []byte
func (MsgModifyBid) GetSigners ¶
func (msg MsgModifyBid) GetSigners() []sdk.AccAddress
func (*MsgModifyBid) Marshal ¶
func (m *MsgModifyBid) Marshal() (dAtA []byte, err error)
func (*MsgModifyBid) MarshalToSizedBuffer ¶
func (m *MsgModifyBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgModifyBid) ProtoMessage ¶
func (*MsgModifyBid) ProtoMessage()
func (*MsgModifyBid) Reset ¶
func (m *MsgModifyBid) Reset()
func (MsgModifyBid) Route ¶
func (msg MsgModifyBid) Route() string
func (*MsgModifyBid) Size ¶
func (m *MsgModifyBid) Size() (n int)
func (*MsgModifyBid) String ¶
func (m *MsgModifyBid) String() string
func (MsgModifyBid) Type ¶
func (msg MsgModifyBid) Type() string
func (*MsgModifyBid) Unmarshal ¶
func (m *MsgModifyBid) Unmarshal(dAtA []byte) error
func (MsgModifyBid) ValidateBasic ¶
func (msg MsgModifyBid) ValidateBasic() error
func (*MsgModifyBid) XXX_DiscardUnknown ¶
func (m *MsgModifyBid) XXX_DiscardUnknown()
func (*MsgModifyBid) XXX_Marshal ¶
func (m *MsgModifyBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgModifyBid) XXX_Merge ¶
func (m *MsgModifyBid) XXX_Merge(src proto.Message)
func (*MsgModifyBid) XXX_Size ¶
func (m *MsgModifyBid) XXX_Size() int
func (*MsgModifyBid) XXX_Unmarshal ¶
func (m *MsgModifyBid) XXX_Unmarshal(b []byte) error
type MsgModifyBidResponse ¶
type MsgModifyBidResponse struct { }
MsgModifyBidResponse defines the Msg/MsgModifyBidResponse response type.
func (*MsgModifyBidResponse) Descriptor ¶
func (*MsgModifyBidResponse) Descriptor() ([]byte, []int)
func (*MsgModifyBidResponse) Marshal ¶
func (m *MsgModifyBidResponse) Marshal() (dAtA []byte, err error)
func (*MsgModifyBidResponse) MarshalTo ¶
func (m *MsgModifyBidResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgModifyBidResponse) MarshalToSizedBuffer ¶
func (m *MsgModifyBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgModifyBidResponse) ProtoMessage ¶
func (*MsgModifyBidResponse) ProtoMessage()
func (*MsgModifyBidResponse) Reset ¶
func (m *MsgModifyBidResponse) Reset()
func (*MsgModifyBidResponse) Size ¶
func (m *MsgModifyBidResponse) Size() (n int)
func (*MsgModifyBidResponse) String ¶
func (m *MsgModifyBidResponse) String() string
func (*MsgModifyBidResponse) Unmarshal ¶
func (m *MsgModifyBidResponse) Unmarshal(dAtA []byte) error
func (*MsgModifyBidResponse) XXX_DiscardUnknown ¶
func (m *MsgModifyBidResponse) XXX_DiscardUnknown()
func (*MsgModifyBidResponse) XXX_Marshal ¶
func (m *MsgModifyBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgModifyBidResponse) XXX_Merge ¶
func (m *MsgModifyBidResponse) XXX_Merge(src proto.Message)
func (*MsgModifyBidResponse) XXX_Size ¶
func (m *MsgModifyBidResponse) XXX_Size() int
func (*MsgModifyBidResponse) XXX_Unmarshal ¶
func (m *MsgModifyBidResponse) XXX_Unmarshal(b []byte) error
type MsgPlaceBid ¶
type MsgPlaceBid struct { // auction_id specifies the auction id AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` // bidder specifies the bech32-encoded address that bids for the auction Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"` // type specifies the bid type; type 1 is fixed price, 2 is how-much-worth, 3 // is how-many-coins BidType BidType `protobuf:"varint,3,opt,name=bid_type,json=bidType,proto3,enum=tendermint.fundraising.BidType" json:"bid_type,omitempty"` // price specifies the bid price. // The bid price must be the start price for fixed price auction whereas // the bide price can be any value that the bidder places. Price github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=price,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"price"` // coin specifies the paying amount of coin or the selling amount that the // bidder bids Coin types.Coin `protobuf:"bytes,5,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"coin"` }
MsgPlaceBid defines a SDK message for placing a bid for the auction.
func NewMsgPlaceBid ¶
func NewMsgPlaceBid( auctionId uint64, bidder string, bidType BidType, Price sdk.Dec, Coin sdk.Coin, ) *MsgPlaceBid
NewMsgPlaceBid creates a new MsgPlaceBid.
func (*MsgPlaceBid) Descriptor ¶
func (*MsgPlaceBid) Descriptor() ([]byte, []int)
func (MsgPlaceBid) GetBidder ¶
func (msg MsgPlaceBid) GetBidder() sdk.AccAddress
func (MsgPlaceBid) GetSignBytes ¶
func (msg MsgPlaceBid) GetSignBytes() []byte
func (MsgPlaceBid) GetSigners ¶
func (msg MsgPlaceBid) GetSigners() []sdk.AccAddress
func (*MsgPlaceBid) Marshal ¶
func (m *MsgPlaceBid) Marshal() (dAtA []byte, err error)
func (*MsgPlaceBid) MarshalToSizedBuffer ¶
func (m *MsgPlaceBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceBid) ProtoMessage ¶
func (*MsgPlaceBid) ProtoMessage()
func (*MsgPlaceBid) Reset ¶
func (m *MsgPlaceBid) Reset()
func (MsgPlaceBid) Route ¶
func (msg MsgPlaceBid) Route() string
func (*MsgPlaceBid) Size ¶
func (m *MsgPlaceBid) Size() (n int)
func (*MsgPlaceBid) String ¶
func (m *MsgPlaceBid) String() string
func (MsgPlaceBid) Type ¶
func (msg MsgPlaceBid) Type() string
func (*MsgPlaceBid) Unmarshal ¶
func (m *MsgPlaceBid) Unmarshal(dAtA []byte) error
func (MsgPlaceBid) ValidateBasic ¶
func (msg MsgPlaceBid) ValidateBasic() error
func (*MsgPlaceBid) XXX_DiscardUnknown ¶
func (m *MsgPlaceBid) XXX_DiscardUnknown()
func (*MsgPlaceBid) XXX_Marshal ¶
func (m *MsgPlaceBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceBid) XXX_Merge ¶
func (m *MsgPlaceBid) XXX_Merge(src proto.Message)
func (*MsgPlaceBid) XXX_Size ¶
func (m *MsgPlaceBid) XXX_Size() int
func (*MsgPlaceBid) XXX_Unmarshal ¶
func (m *MsgPlaceBid) XXX_Unmarshal(b []byte) error
type MsgPlaceBidResponse ¶
type MsgPlaceBidResponse struct { }
MsgPlaceBidResponse defines the Msg/MsgPlaceBidResponse response type.
func (*MsgPlaceBidResponse) Descriptor ¶
func (*MsgPlaceBidResponse) Descriptor() ([]byte, []int)
func (*MsgPlaceBidResponse) Marshal ¶
func (m *MsgPlaceBidResponse) Marshal() (dAtA []byte, err error)
func (*MsgPlaceBidResponse) MarshalTo ¶
func (m *MsgPlaceBidResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceBidResponse) MarshalToSizedBuffer ¶
func (m *MsgPlaceBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceBidResponse) ProtoMessage ¶
func (*MsgPlaceBidResponse) ProtoMessage()
func (*MsgPlaceBidResponse) Reset ¶
func (m *MsgPlaceBidResponse) Reset()
func (*MsgPlaceBidResponse) Size ¶
func (m *MsgPlaceBidResponse) Size() (n int)
func (*MsgPlaceBidResponse) String ¶
func (m *MsgPlaceBidResponse) String() string
func (*MsgPlaceBidResponse) Unmarshal ¶
func (m *MsgPlaceBidResponse) Unmarshal(dAtA []byte) error
func (*MsgPlaceBidResponse) XXX_DiscardUnknown ¶
func (m *MsgPlaceBidResponse) XXX_DiscardUnknown()
func (*MsgPlaceBidResponse) XXX_Marshal ¶
func (m *MsgPlaceBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceBidResponse) XXX_Merge ¶
func (m *MsgPlaceBidResponse) XXX_Merge(src proto.Message)
func (*MsgPlaceBidResponse) XXX_Size ¶
func (m *MsgPlaceBidResponse) XXX_Size() int
func (*MsgPlaceBidResponse) XXX_Unmarshal ¶
func (m *MsgPlaceBidResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // this line is used by Starport scaffolding # proto/tx/rpc // Submit a create fixed price auction message. CreateFixedPriceAuction(context.Context, *MsgCreateFixedPriceAuction) (*MsgCreateFixedPriceAuctionResponse, error) // Submit a create batch auction message. CreateBatchAuction(context.Context, *MsgCreateBatchAuction) (*MsgCreateBatchAuctionResponse, error) // CancelAuction defines a method to cancel the auction message. CancelAuction(context.Context, *MsgCancelAuction) (*MsgCancelAuctionResponse, error) // PlaceBid defines a method to place a bid message. PlaceBid(context.Context, *MsgPlaceBid) (*MsgPlaceBidResponse, error) // ModifyBid defines a method to modify the bid message. ModifyBid(context.Context, *MsgModifyBid) (*MsgModifyBidResponse, error) // AddAllowedBidder defines a method sto add a single allowed bidder message. // This is for the testing purpose and it must not be used in mainnet. AddAllowedBidder(context.Context, *MsgAddAllowedBidder) (*MsgAddAllowedBidderResponse, error) }
MsgServer is the server API for Msg service.
type MultiFundraisingHooks ¶
type MultiFundraisingHooks []FundraisingHooks
MultiFundraisingHooks combines multiple fundraising hooks. All hook functions are run in array sequence
func NewMultiFundraisingHooks ¶
func NewMultiFundraisingHooks(hooks ...FundraisingHooks) MultiFundraisingHooks
func (MultiFundraisingHooks) AfterBatchAuctionCreated ¶
func (h MultiFundraisingHooks) AfterBatchAuctionCreated( ctx sdk.Context, auctionId uint64, auctioneer string, startPrice sdk.Dec, minBidPrice sdk.Dec, sellingCoin sdk.Coin, payingCoinDenom string, vestingSchedules []VestingSchedule, maxExtendedRound uint32, extendedRoundRate sdk.Dec, startTime time.Time, endTime time.Time, )
func (MultiFundraisingHooks) AfterFixedPriceAuctionCreated ¶
func (MultiFundraisingHooks) BeforeAllowedBidderUpdated ¶
func (h MultiFundraisingHooks) BeforeAllowedBidderUpdated( ctx sdk.Context, auctionId uint64, bidder sdk.AccAddress, maxBidAmount sdk.Int, )
func (MultiFundraisingHooks) BeforeAllowedBiddersAdded ¶
func (h MultiFundraisingHooks) BeforeAllowedBiddersAdded( ctx sdk.Context, allowedBidders []AllowedBidder, )
func (MultiFundraisingHooks) BeforeAuctionCanceled ¶
func (h MultiFundraisingHooks) BeforeAuctionCanceled( ctx sdk.Context, auctionId uint64, auctioneer string, )
func (MultiFundraisingHooks) BeforeBatchAuctionCreated ¶
func (h MultiFundraisingHooks) BeforeBatchAuctionCreated( ctx sdk.Context, auctioneer string, startPrice sdk.Dec, minBidPrice sdk.Dec, sellingCoin sdk.Coin, payingCoinDenom string, vestingSchedules []VestingSchedule, maxExtendedRound uint32, extendedRoundRate sdk.Dec, startTime time.Time, endTime time.Time, )
func (MultiFundraisingHooks) BeforeBidModified ¶
func (MultiFundraisingHooks) BeforeBidPlaced ¶
func (MultiFundraisingHooks) BeforeFixedPriceAuctionCreated ¶
type Params ¶
type Params struct { // auction_creation_fee specifies the fee for auction creation. // this prevents from spamming attack and it is collected in the community // pool AuctionCreationFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 189-byte string literal not displayed */ // place_bid_fee specifies the fee for placing a bid for an auction. // this prevents from spamming attack and it is collected in the community // pool PlaceBidFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 161-byte string literal not displayed */ // extended_period specifies the extended period that determines how long // the extended auction round lasts ExtendedPeriod uint32 `` /* 127-byte string literal not displayed */ }
Params defines the set of params for the fundraising module.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns the default fundraising module parameters.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramstypes.ParamSetPairs
ParamSetPairs implements paramstypes.ParamSet.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAllowedBidderRequest ¶
type QueryAllowedBidderRequest struct { AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"` }
QueryAllowedBidderRequest is the request type for the Query/AllowedBidder RPC method.
func (*QueryAllowedBidderRequest) Descriptor ¶
func (*QueryAllowedBidderRequest) Descriptor() ([]byte, []int)
func (*QueryAllowedBidderRequest) GetAuctionId ¶
func (m *QueryAllowedBidderRequest) GetAuctionId() uint64
func (*QueryAllowedBidderRequest) GetBidder ¶
func (m *QueryAllowedBidderRequest) GetBidder() string
func (*QueryAllowedBidderRequest) Marshal ¶
func (m *QueryAllowedBidderRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllowedBidderRequest) MarshalTo ¶
func (m *QueryAllowedBidderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllowedBidderRequest) MarshalToSizedBuffer ¶
func (m *QueryAllowedBidderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllowedBidderRequest) ProtoMessage ¶
func (*QueryAllowedBidderRequest) ProtoMessage()
func (*QueryAllowedBidderRequest) Reset ¶
func (m *QueryAllowedBidderRequest) Reset()
func (*QueryAllowedBidderRequest) Size ¶
func (m *QueryAllowedBidderRequest) Size() (n int)
func (*QueryAllowedBidderRequest) String ¶
func (m *QueryAllowedBidderRequest) String() string
func (*QueryAllowedBidderRequest) Unmarshal ¶
func (m *QueryAllowedBidderRequest) Unmarshal(dAtA []byte) error
func (*QueryAllowedBidderRequest) XXX_DiscardUnknown ¶
func (m *QueryAllowedBidderRequest) XXX_DiscardUnknown()
func (*QueryAllowedBidderRequest) XXX_Marshal ¶
func (m *QueryAllowedBidderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllowedBidderRequest) XXX_Merge ¶
func (m *QueryAllowedBidderRequest) XXX_Merge(src proto.Message)
func (*QueryAllowedBidderRequest) XXX_Size ¶
func (m *QueryAllowedBidderRequest) XXX_Size() int
func (*QueryAllowedBidderRequest) XXX_Unmarshal ¶
func (m *QueryAllowedBidderRequest) XXX_Unmarshal(b []byte) error
type QueryAllowedBidderResponse ¶
type QueryAllowedBidderResponse struct {
AllowedBidder AllowedBidder `protobuf:"bytes,1,opt,name=allowed_bidder,json=allowedBidder,proto3" json:"allowed_bidder"`
}
QueryAllowedBidderResponse is the response type for the Query/AllowedBidder RPC method.
func (*QueryAllowedBidderResponse) Descriptor ¶
func (*QueryAllowedBidderResponse) Descriptor() ([]byte, []int)
func (*QueryAllowedBidderResponse) GetAllowedBidder ¶
func (m *QueryAllowedBidderResponse) GetAllowedBidder() AllowedBidder
func (*QueryAllowedBidderResponse) Marshal ¶
func (m *QueryAllowedBidderResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllowedBidderResponse) MarshalTo ¶
func (m *QueryAllowedBidderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllowedBidderResponse) MarshalToSizedBuffer ¶
func (m *QueryAllowedBidderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllowedBidderResponse) ProtoMessage ¶
func (*QueryAllowedBidderResponse) ProtoMessage()
func (*QueryAllowedBidderResponse) Reset ¶
func (m *QueryAllowedBidderResponse) Reset()
func (*QueryAllowedBidderResponse) Size ¶
func (m *QueryAllowedBidderResponse) Size() (n int)
func (*QueryAllowedBidderResponse) String ¶
func (m *QueryAllowedBidderResponse) String() string
func (*QueryAllowedBidderResponse) Unmarshal ¶
func (m *QueryAllowedBidderResponse) Unmarshal(dAtA []byte) error
func (*QueryAllowedBidderResponse) XXX_DiscardUnknown ¶
func (m *QueryAllowedBidderResponse) XXX_DiscardUnknown()
func (*QueryAllowedBidderResponse) XXX_Marshal ¶
func (m *QueryAllowedBidderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllowedBidderResponse) XXX_Merge ¶
func (m *QueryAllowedBidderResponse) XXX_Merge(src proto.Message)
func (*QueryAllowedBidderResponse) XXX_Size ¶
func (m *QueryAllowedBidderResponse) XXX_Size() int
func (*QueryAllowedBidderResponse) XXX_Unmarshal ¶
func (m *QueryAllowedBidderResponse) XXX_Unmarshal(b []byte) error
type QueryAllowedBiddersRequest ¶
type QueryAllowedBiddersRequest struct { AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAllowedBiddersRequest is the request type for the Query/AllowedBidders RPC method.
func (*QueryAllowedBiddersRequest) Descriptor ¶
func (*QueryAllowedBiddersRequest) Descriptor() ([]byte, []int)
func (*QueryAllowedBiddersRequest) GetAuctionId ¶
func (m *QueryAllowedBiddersRequest) GetAuctionId() uint64
func (*QueryAllowedBiddersRequest) GetPagination ¶
func (m *QueryAllowedBiddersRequest) GetPagination() *query.PageRequest
func (*QueryAllowedBiddersRequest) Marshal ¶
func (m *QueryAllowedBiddersRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllowedBiddersRequest) MarshalTo ¶
func (m *QueryAllowedBiddersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllowedBiddersRequest) MarshalToSizedBuffer ¶
func (m *QueryAllowedBiddersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllowedBiddersRequest) ProtoMessage ¶
func (*QueryAllowedBiddersRequest) ProtoMessage()
func (*QueryAllowedBiddersRequest) Reset ¶
func (m *QueryAllowedBiddersRequest) Reset()
func (*QueryAllowedBiddersRequest) Size ¶
func (m *QueryAllowedBiddersRequest) Size() (n int)
func (*QueryAllowedBiddersRequest) String ¶
func (m *QueryAllowedBiddersRequest) String() string
func (*QueryAllowedBiddersRequest) Unmarshal ¶
func (m *QueryAllowedBiddersRequest) Unmarshal(dAtA []byte) error
func (*QueryAllowedBiddersRequest) XXX_DiscardUnknown ¶
func (m *QueryAllowedBiddersRequest) XXX_DiscardUnknown()
func (*QueryAllowedBiddersRequest) XXX_Marshal ¶
func (m *QueryAllowedBiddersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllowedBiddersRequest) XXX_Merge ¶
func (m *QueryAllowedBiddersRequest) XXX_Merge(src proto.Message)
func (*QueryAllowedBiddersRequest) XXX_Size ¶
func (m *QueryAllowedBiddersRequest) XXX_Size() int
func (*QueryAllowedBiddersRequest) XXX_Unmarshal ¶
func (m *QueryAllowedBiddersRequest) XXX_Unmarshal(b []byte) error
type QueryAllowedBiddersResponse ¶
type QueryAllowedBiddersResponse struct { AllowedBidders []AllowedBidder `protobuf:"bytes,1,rep,name=allowed_bidders,json=allowedBidders,proto3" json:"allowed_bidders"` // pagination defines the pagination in the response Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAllowedBiddersResponse is the response type for the Query/AllowedBidders RPC method.
func (*QueryAllowedBiddersResponse) Descriptor ¶
func (*QueryAllowedBiddersResponse) Descriptor() ([]byte, []int)
func (*QueryAllowedBiddersResponse) GetAllowedBidders ¶
func (m *QueryAllowedBiddersResponse) GetAllowedBidders() []AllowedBidder
func (*QueryAllowedBiddersResponse) GetPagination ¶
func (m *QueryAllowedBiddersResponse) GetPagination() *query.PageResponse
func (*QueryAllowedBiddersResponse) Marshal ¶
func (m *QueryAllowedBiddersResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllowedBiddersResponse) MarshalTo ¶
func (m *QueryAllowedBiddersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllowedBiddersResponse) MarshalToSizedBuffer ¶
func (m *QueryAllowedBiddersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllowedBiddersResponse) ProtoMessage ¶
func (*QueryAllowedBiddersResponse) ProtoMessage()
func (*QueryAllowedBiddersResponse) Reset ¶
func (m *QueryAllowedBiddersResponse) Reset()
func (*QueryAllowedBiddersResponse) Size ¶
func (m *QueryAllowedBiddersResponse) Size() (n int)
func (*QueryAllowedBiddersResponse) String ¶
func (m *QueryAllowedBiddersResponse) String() string
func (*QueryAllowedBiddersResponse) Unmarshal ¶
func (m *QueryAllowedBiddersResponse) Unmarshal(dAtA []byte) error
func (*QueryAllowedBiddersResponse) XXX_DiscardUnknown ¶
func (m *QueryAllowedBiddersResponse) XXX_DiscardUnknown()
func (*QueryAllowedBiddersResponse) XXX_Marshal ¶
func (m *QueryAllowedBiddersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllowedBiddersResponse) XXX_Merge ¶
func (m *QueryAllowedBiddersResponse) XXX_Merge(src proto.Message)
func (*QueryAllowedBiddersResponse) XXX_Size ¶
func (m *QueryAllowedBiddersResponse) XXX_Size() int
func (*QueryAllowedBiddersResponse) XXX_Unmarshal ¶
func (m *QueryAllowedBiddersResponse) XXX_Unmarshal(b []byte) error
type QueryAuctionRequest ¶
type QueryAuctionRequest struct {
AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
}
QueryAuctionRequest is the request type for the Query/Auction RPC method.
func (*QueryAuctionRequest) Descriptor ¶
func (*QueryAuctionRequest) Descriptor() ([]byte, []int)
func (*QueryAuctionRequest) GetAuctionId ¶
func (m *QueryAuctionRequest) GetAuctionId() uint64
func (*QueryAuctionRequest) Marshal ¶
func (m *QueryAuctionRequest) Marshal() (dAtA []byte, err error)
func (*QueryAuctionRequest) MarshalTo ¶
func (m *QueryAuctionRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAuctionRequest) MarshalToSizedBuffer ¶
func (m *QueryAuctionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAuctionRequest) ProtoMessage ¶
func (*QueryAuctionRequest) ProtoMessage()
func (*QueryAuctionRequest) Reset ¶
func (m *QueryAuctionRequest) Reset()
func (*QueryAuctionRequest) Size ¶
func (m *QueryAuctionRequest) Size() (n int)
func (*QueryAuctionRequest) String ¶
func (m *QueryAuctionRequest) String() string
func (*QueryAuctionRequest) Unmarshal ¶
func (m *QueryAuctionRequest) Unmarshal(dAtA []byte) error
func (*QueryAuctionRequest) XXX_DiscardUnknown ¶
func (m *QueryAuctionRequest) XXX_DiscardUnknown()
func (*QueryAuctionRequest) XXX_Marshal ¶
func (m *QueryAuctionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAuctionRequest) XXX_Merge ¶
func (m *QueryAuctionRequest) XXX_Merge(src proto.Message)
func (*QueryAuctionRequest) XXX_Size ¶
func (m *QueryAuctionRequest) XXX_Size() int
func (*QueryAuctionRequest) XXX_Unmarshal ¶
func (m *QueryAuctionRequest) XXX_Unmarshal(b []byte) error
type QueryAuctionResponse ¶
type QueryAuctionResponse struct {
Auction *types.Any `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"`
}
QueryAuctionResponse is the response type for the Query/Auction RPC method.
func (*QueryAuctionResponse) Descriptor ¶
func (*QueryAuctionResponse) Descriptor() ([]byte, []int)
func (*QueryAuctionResponse) GetAuction ¶
func (m *QueryAuctionResponse) GetAuction() *types.Any
func (*QueryAuctionResponse) Marshal ¶
func (m *QueryAuctionResponse) Marshal() (dAtA []byte, err error)
func (*QueryAuctionResponse) MarshalTo ¶
func (m *QueryAuctionResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAuctionResponse) MarshalToSizedBuffer ¶
func (m *QueryAuctionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAuctionResponse) ProtoMessage ¶
func (*QueryAuctionResponse) ProtoMessage()
func (*QueryAuctionResponse) Reset ¶
func (m *QueryAuctionResponse) Reset()
func (*QueryAuctionResponse) Size ¶
func (m *QueryAuctionResponse) Size() (n int)
func (*QueryAuctionResponse) String ¶
func (m *QueryAuctionResponse) String() string
func (*QueryAuctionResponse) Unmarshal ¶
func (m *QueryAuctionResponse) Unmarshal(dAtA []byte) error
func (*QueryAuctionResponse) XXX_DiscardUnknown ¶
func (m *QueryAuctionResponse) XXX_DiscardUnknown()
func (*QueryAuctionResponse) XXX_Marshal ¶
func (m *QueryAuctionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAuctionResponse) XXX_Merge ¶
func (m *QueryAuctionResponse) XXX_Merge(src proto.Message)
func (*QueryAuctionResponse) XXX_Size ¶
func (m *QueryAuctionResponse) XXX_Size() int
func (*QueryAuctionResponse) XXX_Unmarshal ¶
func (m *QueryAuctionResponse) XXX_Unmarshal(b []byte) error
type QueryAuctionsRequest ¶
type QueryAuctionsRequest struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAuctionsRequest is request type for the Query/Auctions RPC method.
func (*QueryAuctionsRequest) Descriptor ¶
func (*QueryAuctionsRequest) Descriptor() ([]byte, []int)
func (*QueryAuctionsRequest) GetPagination ¶
func (m *QueryAuctionsRequest) GetPagination() *query.PageRequest
func (*QueryAuctionsRequest) GetStatus ¶
func (m *QueryAuctionsRequest) GetStatus() string
func (*QueryAuctionsRequest) GetType ¶
func (m *QueryAuctionsRequest) GetType() string
func (*QueryAuctionsRequest) Marshal ¶
func (m *QueryAuctionsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAuctionsRequest) MarshalTo ¶
func (m *QueryAuctionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAuctionsRequest) MarshalToSizedBuffer ¶
func (m *QueryAuctionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAuctionsRequest) ProtoMessage ¶
func (*QueryAuctionsRequest) ProtoMessage()
func (*QueryAuctionsRequest) Reset ¶
func (m *QueryAuctionsRequest) Reset()
func (*QueryAuctionsRequest) Size ¶
func (m *QueryAuctionsRequest) Size() (n int)
func (*QueryAuctionsRequest) String ¶
func (m *QueryAuctionsRequest) String() string
func (*QueryAuctionsRequest) Unmarshal ¶
func (m *QueryAuctionsRequest) Unmarshal(dAtA []byte) error
func (*QueryAuctionsRequest) XXX_DiscardUnknown ¶
func (m *QueryAuctionsRequest) XXX_DiscardUnknown()
func (*QueryAuctionsRequest) XXX_Marshal ¶
func (m *QueryAuctionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAuctionsRequest) XXX_Merge ¶
func (m *QueryAuctionsRequest) XXX_Merge(src proto.Message)
func (*QueryAuctionsRequest) XXX_Size ¶
func (m *QueryAuctionsRequest) XXX_Size() int
func (*QueryAuctionsRequest) XXX_Unmarshal ¶
func (m *QueryAuctionsRequest) XXX_Unmarshal(b []byte) error
type QueryAuctionsResponse ¶
type QueryAuctionsResponse struct { // auctions specifies the existing auctions Auctions []*types.Any `protobuf:"bytes,1,rep,name=auctions,proto3" json:"auctions,omitempty"` // pagination defines the pagination in the response Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAuctionsResponse is response type for the Query/Auctions RPC method.
func (*QueryAuctionsResponse) Descriptor ¶
func (*QueryAuctionsResponse) Descriptor() ([]byte, []int)
func (*QueryAuctionsResponse) GetAuctions ¶
func (m *QueryAuctionsResponse) GetAuctions() []*types.Any
func (*QueryAuctionsResponse) GetPagination ¶
func (m *QueryAuctionsResponse) GetPagination() *query.PageResponse
func (*QueryAuctionsResponse) Marshal ¶
func (m *QueryAuctionsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAuctionsResponse) MarshalTo ¶
func (m *QueryAuctionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAuctionsResponse) MarshalToSizedBuffer ¶
func (m *QueryAuctionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAuctionsResponse) ProtoMessage ¶
func (*QueryAuctionsResponse) ProtoMessage()
func (*QueryAuctionsResponse) Reset ¶
func (m *QueryAuctionsResponse) Reset()
func (*QueryAuctionsResponse) Size ¶
func (m *QueryAuctionsResponse) Size() (n int)
func (*QueryAuctionsResponse) String ¶
func (m *QueryAuctionsResponse) String() string
func (*QueryAuctionsResponse) Unmarshal ¶
func (m *QueryAuctionsResponse) Unmarshal(dAtA []byte) error
func (*QueryAuctionsResponse) XXX_DiscardUnknown ¶
func (m *QueryAuctionsResponse) XXX_DiscardUnknown()
func (*QueryAuctionsResponse) XXX_Marshal ¶
func (m *QueryAuctionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAuctionsResponse) XXX_Merge ¶
func (m *QueryAuctionsResponse) XXX_Merge(src proto.Message)
func (*QueryAuctionsResponse) XXX_Size ¶
func (m *QueryAuctionsResponse) XXX_Size() int
func (*QueryAuctionsResponse) XXX_Unmarshal ¶
func (m *QueryAuctionsResponse) XXX_Unmarshal(b []byte) error
type QueryBidRequest ¶
type QueryBidRequest struct { AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` BidId uint64 `protobuf:"varint,2,opt,name=bid_id,json=bidId,proto3" json:"bid_id,omitempty"` }
QueryBidRequest is the request type for the Query/Sequence RPC method.
func (*QueryBidRequest) Descriptor ¶
func (*QueryBidRequest) Descriptor() ([]byte, []int)
func (*QueryBidRequest) GetAuctionId ¶
func (m *QueryBidRequest) GetAuctionId() uint64
func (*QueryBidRequest) GetBidId ¶
func (m *QueryBidRequest) GetBidId() uint64
func (*QueryBidRequest) Marshal ¶
func (m *QueryBidRequest) Marshal() (dAtA []byte, err error)
func (*QueryBidRequest) MarshalToSizedBuffer ¶
func (m *QueryBidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBidRequest) ProtoMessage ¶
func (*QueryBidRequest) ProtoMessage()
func (*QueryBidRequest) Reset ¶
func (m *QueryBidRequest) Reset()
func (*QueryBidRequest) Size ¶
func (m *QueryBidRequest) Size() (n int)
func (*QueryBidRequest) String ¶
func (m *QueryBidRequest) String() string
func (*QueryBidRequest) Unmarshal ¶
func (m *QueryBidRequest) Unmarshal(dAtA []byte) error
func (*QueryBidRequest) XXX_DiscardUnknown ¶
func (m *QueryBidRequest) XXX_DiscardUnknown()
func (*QueryBidRequest) XXX_Marshal ¶
func (m *QueryBidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBidRequest) XXX_Merge ¶
func (m *QueryBidRequest) XXX_Merge(src proto.Message)
func (*QueryBidRequest) XXX_Size ¶
func (m *QueryBidRequest) XXX_Size() int
func (*QueryBidRequest) XXX_Unmarshal ¶
func (m *QueryBidRequest) XXX_Unmarshal(b []byte) error
type QueryBidResponse ¶
type QueryBidResponse struct { // bid specifies specific bid Bid Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid"` }
QueryBidResponse is response type for the Query/Sequence RPC method.
func (*QueryBidResponse) Descriptor ¶
func (*QueryBidResponse) Descriptor() ([]byte, []int)
func (*QueryBidResponse) GetBid ¶
func (m *QueryBidResponse) GetBid() Bid
func (*QueryBidResponse) Marshal ¶
func (m *QueryBidResponse) Marshal() (dAtA []byte, err error)
func (*QueryBidResponse) MarshalToSizedBuffer ¶
func (m *QueryBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBidResponse) ProtoMessage ¶
func (*QueryBidResponse) ProtoMessage()
func (*QueryBidResponse) Reset ¶
func (m *QueryBidResponse) Reset()
func (*QueryBidResponse) Size ¶
func (m *QueryBidResponse) Size() (n int)
func (*QueryBidResponse) String ¶
func (m *QueryBidResponse) String() string
func (*QueryBidResponse) Unmarshal ¶
func (m *QueryBidResponse) Unmarshal(dAtA []byte) error
func (*QueryBidResponse) XXX_DiscardUnknown ¶
func (m *QueryBidResponse) XXX_DiscardUnknown()
func (*QueryBidResponse) XXX_Marshal ¶
func (m *QueryBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBidResponse) XXX_Merge ¶
func (m *QueryBidResponse) XXX_Merge(src proto.Message)
func (*QueryBidResponse) XXX_Size ¶
func (m *QueryBidResponse) XXX_Size() int
func (*QueryBidResponse) XXX_Unmarshal ¶
func (m *QueryBidResponse) XXX_Unmarshal(b []byte) error
type QueryBidsRequest ¶
type QueryBidsRequest struct { AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"` IsMatched string `protobuf:"bytes,3,opt,name=is_matched,json=isMatched,proto3" json:"is_matched,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBidsRequest is request type for the Query/Bids RPC method.
func (*QueryBidsRequest) Descriptor ¶
func (*QueryBidsRequest) Descriptor() ([]byte, []int)
func (*QueryBidsRequest) GetAuctionId ¶
func (m *QueryBidsRequest) GetAuctionId() uint64
func (*QueryBidsRequest) GetBidder ¶
func (m *QueryBidsRequest) GetBidder() string
func (*QueryBidsRequest) GetIsMatched ¶
func (m *QueryBidsRequest) GetIsMatched() string
func (*QueryBidsRequest) GetPagination ¶
func (m *QueryBidsRequest) GetPagination() *query.PageRequest
func (*QueryBidsRequest) Marshal ¶
func (m *QueryBidsRequest) Marshal() (dAtA []byte, err error)
func (*QueryBidsRequest) MarshalToSizedBuffer ¶
func (m *QueryBidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBidsRequest) ProtoMessage ¶
func (*QueryBidsRequest) ProtoMessage()
func (*QueryBidsRequest) Reset ¶
func (m *QueryBidsRequest) Reset()
func (*QueryBidsRequest) Size ¶
func (m *QueryBidsRequest) Size() (n int)
func (*QueryBidsRequest) String ¶
func (m *QueryBidsRequest) String() string
func (*QueryBidsRequest) Unmarshal ¶
func (m *QueryBidsRequest) Unmarshal(dAtA []byte) error
func (*QueryBidsRequest) XXX_DiscardUnknown ¶
func (m *QueryBidsRequest) XXX_DiscardUnknown()
func (*QueryBidsRequest) XXX_Marshal ¶
func (m *QueryBidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBidsRequest) XXX_Merge ¶
func (m *QueryBidsRequest) XXX_Merge(src proto.Message)
func (*QueryBidsRequest) XXX_Size ¶
func (m *QueryBidsRequest) XXX_Size() int
func (*QueryBidsRequest) XXX_Unmarshal ¶
func (m *QueryBidsRequest) XXX_Unmarshal(b []byte) error
type QueryBidsResponse ¶
type QueryBidsResponse struct { // bids specifies the existing bids Bids []Bid `protobuf:"bytes,1,rep,name=bids,proto3" json:"bids"` // pagination defines the pagination in the response Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBidsResponse is response type for the Query/Bids RPC method.
func (*QueryBidsResponse) Descriptor ¶
func (*QueryBidsResponse) Descriptor() ([]byte, []int)
func (*QueryBidsResponse) GetBids ¶
func (m *QueryBidsResponse) GetBids() []Bid
func (*QueryBidsResponse) GetPagination ¶
func (m *QueryBidsResponse) GetPagination() *query.PageResponse
func (*QueryBidsResponse) Marshal ¶
func (m *QueryBidsResponse) Marshal() (dAtA []byte, err error)
func (*QueryBidsResponse) MarshalTo ¶
func (m *QueryBidsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBidsResponse) MarshalToSizedBuffer ¶
func (m *QueryBidsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBidsResponse) ProtoMessage ¶
func (*QueryBidsResponse) ProtoMessage()
func (*QueryBidsResponse) Reset ¶
func (m *QueryBidsResponse) Reset()
func (*QueryBidsResponse) Size ¶
func (m *QueryBidsResponse) Size() (n int)
func (*QueryBidsResponse) String ¶
func (m *QueryBidsResponse) String() string
func (*QueryBidsResponse) Unmarshal ¶
func (m *QueryBidsResponse) Unmarshal(dAtA []byte) error
func (*QueryBidsResponse) XXX_DiscardUnknown ¶
func (m *QueryBidsResponse) XXX_DiscardUnknown()
func (*QueryBidsResponse) XXX_Marshal ¶
func (m *QueryBidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBidsResponse) XXX_Merge ¶
func (m *QueryBidsResponse) XXX_Merge(src proto.Message)
func (*QueryBidsResponse) XXX_Size ¶
func (m *QueryBidsResponse) XXX_Size() int
func (*QueryBidsResponse) XXX_Unmarshal ¶
func (m *QueryBidsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params returns parameters of the fundraising module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Auctions returns all auctions. Auctions(ctx context.Context, in *QueryAuctionsRequest, opts ...grpc.CallOption) (*QueryAuctionsResponse, error) // Auction returns the specific auction. Auction(ctx context.Context, in *QueryAuctionRequest, opts ...grpc.CallOption) (*QueryAuctionResponse, error) // AllowedBidder returns the specific allowed bidder information. AllowedBidder(ctx context.Context, in *QueryAllowedBidderRequest, opts ...grpc.CallOption) (*QueryAllowedBidderResponse, error) // AllowedBidders returns all allowed bidders for the auction. AllowedBidders(ctx context.Context, in *QueryAllowedBiddersRequest, opts ...grpc.CallOption) (*QueryAllowedBiddersResponse, error) // Bids returns all bids. Bids(ctx context.Context, in *QueryBidsRequest, opts ...grpc.CallOption) (*QueryBidsResponse, error) // Bid returns the specific bid from the auction id and bid id. Bid(ctx context.Context, in *QueryBidRequest, opts ...grpc.CallOption) (*QueryBidResponse, error) // Vestings returns all vestings for the auction. Vestings(ctx context.Context, in *QueryVestingsRequest, opts ...grpc.CallOption) (*QueryVestingsResponse, 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 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 { // Params returns parameters of the fundraising module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Auctions returns all auctions. Auctions(context.Context, *QueryAuctionsRequest) (*QueryAuctionsResponse, error) // Auction returns the specific auction. Auction(context.Context, *QueryAuctionRequest) (*QueryAuctionResponse, error) // AllowedBidder returns the specific allowed bidder information. AllowedBidder(context.Context, *QueryAllowedBidderRequest) (*QueryAllowedBidderResponse, error) // AllowedBidders returns all allowed bidders for the auction. AllowedBidders(context.Context, *QueryAllowedBiddersRequest) (*QueryAllowedBiddersResponse, error) // Bids returns all bids. Bids(context.Context, *QueryBidsRequest) (*QueryBidsResponse, error) // Bid returns the specific bid from the auction id and bid id. Bid(context.Context, *QueryBidRequest) (*QueryBidResponse, error) // Vestings returns all vestings for the auction. Vestings(context.Context, *QueryVestingsRequest) (*QueryVestingsResponse, error) }
QueryServer is the server API for Query service.
type QueryVestingsRequest ¶
type QueryVestingsRequest struct {
AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
}
QueryVestingsRequest is request type for the Query/Vestings RPC method.
func (*QueryVestingsRequest) Descriptor ¶
func (*QueryVestingsRequest) Descriptor() ([]byte, []int)
func (*QueryVestingsRequest) GetAuctionId ¶
func (m *QueryVestingsRequest) GetAuctionId() uint64
func (*QueryVestingsRequest) Marshal ¶
func (m *QueryVestingsRequest) Marshal() (dAtA []byte, err error)
func (*QueryVestingsRequest) MarshalTo ¶
func (m *QueryVestingsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryVestingsRequest) MarshalToSizedBuffer ¶
func (m *QueryVestingsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVestingsRequest) ProtoMessage ¶
func (*QueryVestingsRequest) ProtoMessage()
func (*QueryVestingsRequest) Reset ¶
func (m *QueryVestingsRequest) Reset()
func (*QueryVestingsRequest) Size ¶
func (m *QueryVestingsRequest) Size() (n int)
func (*QueryVestingsRequest) String ¶
func (m *QueryVestingsRequest) String() string
func (*QueryVestingsRequest) Unmarshal ¶
func (m *QueryVestingsRequest) Unmarshal(dAtA []byte) error
func (*QueryVestingsRequest) XXX_DiscardUnknown ¶
func (m *QueryVestingsRequest) XXX_DiscardUnknown()
func (*QueryVestingsRequest) XXX_Marshal ¶
func (m *QueryVestingsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVestingsRequest) XXX_Merge ¶
func (m *QueryVestingsRequest) XXX_Merge(src proto.Message)
func (*QueryVestingsRequest) XXX_Size ¶
func (m *QueryVestingsRequest) XXX_Size() int
func (*QueryVestingsRequest) XXX_Unmarshal ¶
func (m *QueryVestingsRequest) XXX_Unmarshal(b []byte) error
type QueryVestingsResponse ¶
type QueryVestingsResponse struct { // vestings specifies the existing vestings Vestings []VestingQueue `protobuf:"bytes,1,rep,name=vestings,proto3" json:"vestings"` }
QueryVestingsResponse is response type for the Query/Vestings RPC method.
func (*QueryVestingsResponse) Descriptor ¶
func (*QueryVestingsResponse) Descriptor() ([]byte, []int)
func (*QueryVestingsResponse) GetVestings ¶
func (m *QueryVestingsResponse) GetVestings() []VestingQueue
func (*QueryVestingsResponse) Marshal ¶
func (m *QueryVestingsResponse) Marshal() (dAtA []byte, err error)
func (*QueryVestingsResponse) MarshalTo ¶
func (m *QueryVestingsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryVestingsResponse) MarshalToSizedBuffer ¶
func (m *QueryVestingsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVestingsResponse) ProtoMessage ¶
func (*QueryVestingsResponse) ProtoMessage()
func (*QueryVestingsResponse) Reset ¶
func (m *QueryVestingsResponse) Reset()
func (*QueryVestingsResponse) Size ¶
func (m *QueryVestingsResponse) Size() (n int)
func (*QueryVestingsResponse) String ¶
func (m *QueryVestingsResponse) String() string
func (*QueryVestingsResponse) Unmarshal ¶
func (m *QueryVestingsResponse) Unmarshal(dAtA []byte) error
func (*QueryVestingsResponse) XXX_DiscardUnknown ¶
func (m *QueryVestingsResponse) XXX_DiscardUnknown()
func (*QueryVestingsResponse) XXX_Marshal ¶
func (m *QueryVestingsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVestingsResponse) XXX_Merge ¶
func (m *QueryVestingsResponse) XXX_Merge(src proto.Message)
func (*QueryVestingsResponse) XXX_Size ¶
func (m *QueryVestingsResponse) XXX_Size() int
func (*QueryVestingsResponse) XXX_Unmarshal ¶
func (m *QueryVestingsResponse) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddAllowedBidder ¶
func (*UnimplementedMsgServer) AddAllowedBidder(ctx context.Context, req *MsgAddAllowedBidder) (*MsgAddAllowedBidderResponse, error)
func (*UnimplementedMsgServer) CancelAuction ¶
func (*UnimplementedMsgServer) CancelAuction(ctx context.Context, req *MsgCancelAuction) (*MsgCancelAuctionResponse, error)
func (*UnimplementedMsgServer) CreateBatchAuction ¶
func (*UnimplementedMsgServer) CreateBatchAuction(ctx context.Context, req *MsgCreateBatchAuction) (*MsgCreateBatchAuctionResponse, error)
func (*UnimplementedMsgServer) CreateFixedPriceAuction ¶
func (*UnimplementedMsgServer) CreateFixedPriceAuction(ctx context.Context, req *MsgCreateFixedPriceAuction) (*MsgCreateFixedPriceAuctionResponse, error)
func (*UnimplementedMsgServer) ModifyBid ¶
func (*UnimplementedMsgServer) ModifyBid(ctx context.Context, req *MsgModifyBid) (*MsgModifyBidResponse, error)
func (*UnimplementedMsgServer) PlaceBid ¶
func (*UnimplementedMsgServer) PlaceBid(ctx context.Context, req *MsgPlaceBid) (*MsgPlaceBidResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllowedBidder ¶
func (*UnimplementedQueryServer) AllowedBidder(ctx context.Context, req *QueryAllowedBidderRequest) (*QueryAllowedBidderResponse, error)
func (*UnimplementedQueryServer) AllowedBidders ¶
func (*UnimplementedQueryServer) AllowedBidders(ctx context.Context, req *QueryAllowedBiddersRequest) (*QueryAllowedBiddersResponse, error)
func (*UnimplementedQueryServer) Auction ¶
func (*UnimplementedQueryServer) Auction(ctx context.Context, req *QueryAuctionRequest) (*QueryAuctionResponse, error)
func (*UnimplementedQueryServer) Auctions ¶
func (*UnimplementedQueryServer) Auctions(ctx context.Context, req *QueryAuctionsRequest) (*QueryAuctionsResponse, error)
func (*UnimplementedQueryServer) Bid ¶
func (*UnimplementedQueryServer) Bid(ctx context.Context, req *QueryBidRequest) (*QueryBidResponse, error)
func (*UnimplementedQueryServer) Bids ¶
func (*UnimplementedQueryServer) Bids(ctx context.Context, req *QueryBidsRequest) (*QueryBidsResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Vestings ¶
func (*UnimplementedQueryServer) Vestings(ctx context.Context, req *QueryVestingsRequest) (*QueryVestingsResponse, error)
type VestingQueue ¶
type VestingQueue struct { // auction_id specifies the id of the auction AuctionId uint64 `protobuf:"varint,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"` // auctioneer specifies the bech32-encoded address that creates the auction Auctioneer string `protobuf:"bytes,2,opt,name=auctioneer,proto3" json:"auctioneer,omitempty"` // paying_coin specifies the paying amount of coin PayingCoin types.Coin `` /* 134-byte string literal not displayed */ // release_time specifies the timestamp of the vesting schedule ReleaseTime time.Time `protobuf:"bytes,4,opt,name=release_time,json=releaseTime,proto3,stdtime" json:"release_time"` // released specifies the status of distribution Released bool `protobuf:"varint,5,opt,name=released,proto3" json:"released,omitempty"` }
VestingQueue defines the vesting queue.
func NewVestingQueue ¶
func NewVestingQueue(auctionId uint64, auctioneer sdk.AccAddress, payingCoin sdk.Coin, releaseTime time.Time, released bool) VestingQueue
NewVestingQueue returns a new VestingQueue.
func (*VestingQueue) Descriptor ¶
func (*VestingQueue) Descriptor() ([]byte, []int)
func (*VestingQueue) GetAuctionId ¶
func (m *VestingQueue) GetAuctionId() uint64
func (*VestingQueue) GetAuctioneer ¶
func (m *VestingQueue) GetAuctioneer() string
func (*VestingQueue) GetPayingCoin ¶
func (m *VestingQueue) GetPayingCoin() types.Coin
func (*VestingQueue) GetReleaseTime ¶
func (m *VestingQueue) GetReleaseTime() time.Time
func (*VestingQueue) GetReleased ¶
func (m *VestingQueue) GetReleased() bool
func (*VestingQueue) Marshal ¶
func (m *VestingQueue) Marshal() (dAtA []byte, err error)
func (*VestingQueue) MarshalToSizedBuffer ¶
func (m *VestingQueue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VestingQueue) ProtoMessage ¶
func (*VestingQueue) ProtoMessage()
func (*VestingQueue) Reset ¶
func (m *VestingQueue) Reset()
func (*VestingQueue) SetReleased ¶
func (vq *VestingQueue) SetReleased(status bool)
SetReleased sets released status of the vesting queue.
func (VestingQueue) ShouldRelease ¶
func (vq VestingQueue) ShouldRelease(t time.Time) bool
ShouldRelease returns true when the vesting queue is ready to release the paying coin. It checks if the release time is equal or before the given time t and released value is false.
func (*VestingQueue) Size ¶
func (m *VestingQueue) Size() (n int)
func (*VestingQueue) String ¶
func (m *VestingQueue) String() string
func (*VestingQueue) Unmarshal ¶
func (m *VestingQueue) Unmarshal(dAtA []byte) error
func (VestingQueue) Validate ¶
func (q VestingQueue) Validate() error
Validate validates VestingQueue.
func (*VestingQueue) XXX_DiscardUnknown ¶
func (m *VestingQueue) XXX_DiscardUnknown()
func (*VestingQueue) XXX_Marshal ¶
func (m *VestingQueue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VestingQueue) XXX_Merge ¶
func (m *VestingQueue) XXX_Merge(src proto.Message)
func (*VestingQueue) XXX_Size ¶
func (m *VestingQueue) XXX_Size() int
func (*VestingQueue) XXX_Unmarshal ¶
func (m *VestingQueue) XXX_Unmarshal(b []byte) error
type VestingSchedule ¶
type VestingSchedule struct { // release_time specifies the time for distribution of the vesting coin ReleaseTime time.Time `protobuf:"bytes,1,opt,name=release_time,json=releaseTime,proto3,stdtime" json:"release_time"` // weight specifies the vesting weight for the schedule Weight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=weight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"weight"` }
VestingSchedule defines the vesting schedule for the owner of an auction.
func (*VestingSchedule) Descriptor ¶
func (*VestingSchedule) Descriptor() ([]byte, []int)
func (*VestingSchedule) GetReleaseTime ¶
func (m *VestingSchedule) GetReleaseTime() time.Time
func (*VestingSchedule) Marshal ¶
func (m *VestingSchedule) Marshal() (dAtA []byte, err error)
func (*VestingSchedule) MarshalToSizedBuffer ¶
func (m *VestingSchedule) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VestingSchedule) ProtoMessage ¶
func (*VestingSchedule) ProtoMessage()
func (*VestingSchedule) Reset ¶
func (m *VestingSchedule) Reset()
func (*VestingSchedule) Size ¶
func (m *VestingSchedule) Size() (n int)
func (*VestingSchedule) String ¶
func (m *VestingSchedule) String() string
func (*VestingSchedule) Unmarshal ¶
func (m *VestingSchedule) Unmarshal(dAtA []byte) error
func (*VestingSchedule) XXX_DiscardUnknown ¶
func (m *VestingSchedule) XXX_DiscardUnknown()
func (*VestingSchedule) XXX_Marshal ¶
func (m *VestingSchedule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VestingSchedule) XXX_Merge ¶
func (m *VestingSchedule) XXX_Merge(src proto.Message)
func (*VestingSchedule) XXX_Size ¶
func (m *VestingSchedule) XXX_Size() int
func (*VestingSchedule) XXX_Unmarshal ¶
func (m *VestingSchedule) XXX_Unmarshal(b []byte) error