types

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: LGPL-3.0 Imports: 35 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreateAuction = "create-auction"
	EventTypeCommitBid     = "commit-bid"
	EventTypeRevealBid     = "reveal-bid"

	AttributeKeyCommitsDuration = "commits-duration"
	AttributeKeyRevealsDuration = "reveals-duration"
	AttributeKeyCommitFee       = "commit-fee"
	AttributeKeyRevealFee       = "reveal-fee"
	AttributeKeyMinimumBid      = "minimum-bid"
	AttributeKeySigner          = "signer"
	AttributeKeyAuctionID       = "auction-id"
	AttributeKeyCommitHash      = "commit-hash"
	AttributeKeyReveal          = "reveal"

	AttributeValueCategory = ModuleName
)
View Source
const (
	// ModuleName is the name of the module
	ModuleName = "auction"

	// AuctionBurnModuleAccountName is the name of the auction burn module account.
	AuctionBurnModuleAccountName = "auction_burn"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName

	// QuerierRoute is the querier route for the staking module
	QuerierRoute = ModuleName

	// RouterKey is the msg router key for the staking module
	RouterKey = ModuleName
)
View Source
const (
	// Auction is in commit phase.
	AuctionStatusCommitPhase = "commit"

	// Auction is in reveal phase.
	AuctionStatusRevealPhase = "reveal"

	// Auction has ended (no reveals allowed).
	AuctionStatusExpired = "expired"

	// Auction has completed (winner selected).
	AuctionStatusCompleted = "completed"
)

Auction status values.

View Source
const (
	BidStatusCommitted = "commit"
	BidStatusRevealed  = "reveal"
)

Bid status values.

View Source
const (
	DefaultParamspace = ModuleName
)

Default parameter namespace.

Variables

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultCommitsDuration = 5 * time.Minute
	DefaultRevealsDuration = 5 * time.Minute
	DefaultCommitFee       = sdk.Coin{Amount: sdk.NewInt(10), Denom: sdk.DefaultBondDenom}
	DefaultRevealFee       = sdk.Coin{Amount: sdk.NewInt(10), Denom: sdk.DefaultBondDenom}
	DefaultMinimumBid      = sdk.Coin{Amount: sdk.NewInt(1000), Denom: sdk.DefaultBondDenom}

	ParamStoreKeyCommitsDuration = []byte("CommitsDuration")
	ParamStoreKeyRevealsDuration = []byte("RevealsDuration")
	ParamStoreKeyCommitFee       = []byte("CommitFee")
	ParamStoreKeyRevealFee       = []byte("RevealFee")
	ParamStoreKeyMinimumBid      = []byte("MinimumBid")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func ParamKeyTable

func ParamKeyTable() types.KeyTable

ParamKeyTable - ParamTable for bond module.

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/auction interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type Auction

type Auction struct {
	Id     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
	// Address of the creator of the auction
	OwnerAddress string `protobuf:"bytes,3,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
	// Timestamp at which the auction was created
	CreateTime time.Time `` /* 127-byte string literal not displayed */
	// Timestamp at which the commits phase concluded
	CommitsEndTime time.Time `` /* 151-byte string literal not displayed */
	// Timestamp at which the reveals phase concluded
	RevealsEndTime time.Time `` /* 151-byte string literal not displayed */
	// Commit and reveal fees must both be paid when committing a bid
	// Reveal fee is returned only if the bid is revealed
	CommitFee types.Coin `protobuf:"bytes,7,opt,name=commit_fee,json=commitFee,proto3" json:"commit_fee" json:"commit_fee" yaml:"commit_fee"`
	RevealFee types.Coin `protobuf:"bytes,8,opt,name=reveal_fee,json=revealFee,proto3" json:"reveal_fee" json:"reveal_fee" yaml:"reveal_fee"`
	// Minimum acceptable bid amount for a valid commit
	MinimumBid types.Coin `protobuf:"bytes,9,opt,name=minimum_bid,json=minimumBid,proto3" json:"minimum_bid" json:"minimum_bid" yaml:"minimum_bid"`
	// Address of the winner
	WinnerAddress string `protobuf:"bytes,10,opt,name=winner_address,json=winnerAddress,proto3" json:"winner_address,omitempty"`
	// Winning bid, i.e., the highest bid
	WinningBid types.Coin `protobuf:"bytes,11,opt,name=winning_bid,json=winningBid,proto3" json:"winning_bid" json:"winning_bid" yaml:"winning_bid"`
	// Amount the winner pays, i.e. the second highest auction
	WinningPrice types.Coin `` /* 130-byte string literal not displayed */
}

Auction represents a sealed-bid on-chain auction

func (*Auction) Descriptor

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

func (Auction) GetCommitsEndTime

func (auction Auction) GetCommitsEndTime() string

func (Auction) GetCreateTime

func (auction Auction) GetCreateTime() string

func (Auction) GetRevealsEndTime

func (auction Auction) GetRevealsEndTime() string

func (*Auction) Marshal

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

func (*Auction) MarshalTo

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

func (*Auction) MarshalToSizedBuffer

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

func (*Auction) ProtoMessage

func (*Auction) ProtoMessage()

func (*Auction) Reset

func (m *Auction) Reset()

func (*Auction) Size

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

func (*Auction) String

func (m *Auction) String() string

func (*Auction) Unmarshal

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

func (*Auction) XXX_DiscardUnknown

func (m *Auction) XXX_DiscardUnknown()

func (*Auction) XXX_Marshal

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

func (*Auction) XXX_Merge

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

func (*Auction) XXX_Size

func (m *Auction) XXX_Size() int

func (*Auction) XXX_Unmarshal

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

type AuctionID

type AuctionID struct {
	Address  sdk.Address
	AccNum   uint64
	Sequence uint64
}

AuctionID simplifies generation of auction IDs.

func (AuctionID) Generate

func (auctionID AuctionID) Generate() string

Generate creates the auction ID.

type AuctionRequest

type AuctionRequest struct {
	// Auction ID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

AuctionRequest is the format for querying a specific auction

func (*AuctionRequest) Descriptor

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

func (*AuctionRequest) GetId

func (m *AuctionRequest) GetId() string

func (*AuctionRequest) Marshal

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

func (*AuctionRequest) MarshalTo

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

func (*AuctionRequest) MarshalToSizedBuffer

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

func (*AuctionRequest) ProtoMessage

func (*AuctionRequest) ProtoMessage()

func (*AuctionRequest) Reset

func (m *AuctionRequest) Reset()

func (*AuctionRequest) Size

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

func (*AuctionRequest) String

func (m *AuctionRequest) String() string

func (*AuctionRequest) Unmarshal

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

func (*AuctionRequest) XXX_DiscardUnknown

func (m *AuctionRequest) XXX_DiscardUnknown()

func (*AuctionRequest) XXX_Marshal

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

func (*AuctionRequest) XXX_Merge

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

func (*AuctionRequest) XXX_Size

func (m *AuctionRequest) XXX_Size() int

func (*AuctionRequest) XXX_Unmarshal

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

type AuctionResponse

type AuctionResponse struct {
	// Auction details
	Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"`
}

AuctionResponse returns the details of the queried auction

func (*AuctionResponse) Descriptor

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

func (*AuctionResponse) GetAuction

func (m *AuctionResponse) GetAuction() *Auction

func (*AuctionResponse) Marshal

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

func (*AuctionResponse) MarshalTo

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

func (*AuctionResponse) MarshalToSizedBuffer

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

func (*AuctionResponse) ProtoMessage

func (*AuctionResponse) ProtoMessage()

func (*AuctionResponse) Reset

func (m *AuctionResponse) Reset()

func (*AuctionResponse) Size

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

func (*AuctionResponse) String

func (m *AuctionResponse) String() string

func (*AuctionResponse) Unmarshal

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

func (*AuctionResponse) XXX_DiscardUnknown

func (m *AuctionResponse) XXX_DiscardUnknown()

func (*AuctionResponse) XXX_Marshal

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

func (*AuctionResponse) XXX_Merge

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

func (*AuctionResponse) XXX_Size

func (m *AuctionResponse) XXX_Size() int

func (*AuctionResponse) XXX_Unmarshal

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

type AuctionUsageKeeper

type AuctionUsageKeeper interface {
	ModuleName() string
	UsesAuction(ctx sdk.Context, auctionID string) bool

	OnAuction(ctx sdk.Context, auctionID string)
	OnAuctionBid(ctx sdk.Context, auctionID string, bidderAddress string)
	OnAuctionWinnerSelected(ctx sdk.Context, auctionID string)
}

AuctionUsageKeeper keep track of auction usage in other modules. Used to, for example, prevent deletion of a auction that's in use.

type Auctions

type Auctions struct {
	Auctions []Auction `protobuf:"bytes,1,rep,name=auctions,proto3" json:"auctions"`
}

func (*Auctions) Descriptor

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

func (*Auctions) Marshal

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

func (*Auctions) MarshalTo

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

func (*Auctions) MarshalToSizedBuffer

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

func (*Auctions) ProtoMessage

func (*Auctions) ProtoMessage()

func (*Auctions) Reset

func (m *Auctions) Reset()

func (*Auctions) Size

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

func (*Auctions) String

func (m *Auctions) String() string

func (*Auctions) Unmarshal

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

func (*Auctions) XXX_DiscardUnknown

func (m *Auctions) XXX_DiscardUnknown()

func (*Auctions) XXX_Marshal

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

func (*Auctions) XXX_Merge

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

func (*Auctions) XXX_Size

func (m *Auctions) XXX_Size() int

func (*Auctions) XXX_Unmarshal

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

type AuctionsByBidderRequest

type AuctionsByBidderRequest struct {
	// Address of the bidder
	BidderAddress string `protobuf:"bytes,1,opt,name=bidder_address,json=bidderAddress,proto3" json:"bidder_address,omitempty"`
}

AuctionsByBidderRequest is the format for querying all auctions containing a bidder address

func (*AuctionsByBidderRequest) Descriptor

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

func (*AuctionsByBidderRequest) GetBidderAddress

func (m *AuctionsByBidderRequest) GetBidderAddress() string

func (*AuctionsByBidderRequest) Marshal

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

func (*AuctionsByBidderRequest) MarshalTo

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

func (*AuctionsByBidderRequest) MarshalToSizedBuffer

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

func (*AuctionsByBidderRequest) ProtoMessage

func (*AuctionsByBidderRequest) ProtoMessage()

func (*AuctionsByBidderRequest) Reset

func (m *AuctionsByBidderRequest) Reset()

func (*AuctionsByBidderRequest) Size

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

func (*AuctionsByBidderRequest) String

func (m *AuctionsByBidderRequest) String() string

func (*AuctionsByBidderRequest) Unmarshal

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

func (*AuctionsByBidderRequest) XXX_DiscardUnknown

func (m *AuctionsByBidderRequest) XXX_DiscardUnknown()

func (*AuctionsByBidderRequest) XXX_Marshal

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

func (*AuctionsByBidderRequest) XXX_Merge

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

func (*AuctionsByBidderRequest) XXX_Size

func (m *AuctionsByBidderRequest) XXX_Size() int

func (*AuctionsByBidderRequest) XXX_Unmarshal

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

type AuctionsByBidderResponse

type AuctionsByBidderResponse struct {
	// List of auctions
	Auctions *Auctions `protobuf:"bytes,1,opt,name=auctions,proto3" json:"auctions,omitempty"`
}

AuctionsByBidderResponse returns all auctions containing a bidder

func (*AuctionsByBidderResponse) Descriptor

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

func (*AuctionsByBidderResponse) GetAuctions

func (m *AuctionsByBidderResponse) GetAuctions() *Auctions

func (*AuctionsByBidderResponse) Marshal

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

func (*AuctionsByBidderResponse) MarshalTo

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

func (*AuctionsByBidderResponse) MarshalToSizedBuffer

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

func (*AuctionsByBidderResponse) ProtoMessage

func (*AuctionsByBidderResponse) ProtoMessage()

func (*AuctionsByBidderResponse) Reset

func (m *AuctionsByBidderResponse) Reset()

func (*AuctionsByBidderResponse) Size

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

func (*AuctionsByBidderResponse) String

func (m *AuctionsByBidderResponse) String() string

func (*AuctionsByBidderResponse) Unmarshal

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

func (*AuctionsByBidderResponse) XXX_DiscardUnknown

func (m *AuctionsByBidderResponse) XXX_DiscardUnknown()

func (*AuctionsByBidderResponse) XXX_Marshal

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

func (*AuctionsByBidderResponse) XXX_Merge

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

func (*AuctionsByBidderResponse) XXX_Size

func (m *AuctionsByBidderResponse) XXX_Size() int

func (*AuctionsByBidderResponse) XXX_Unmarshal

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

type AuctionsByOwnerRequest

type AuctionsByOwnerRequest struct {
	// Address of the owner
	OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"`
}

AuctionsByOwnerRequest is the format for querying all auctions created by an owner

func (*AuctionsByOwnerRequest) Descriptor

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

func (*AuctionsByOwnerRequest) GetOwnerAddress

func (m *AuctionsByOwnerRequest) GetOwnerAddress() string

func (*AuctionsByOwnerRequest) Marshal

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

func (*AuctionsByOwnerRequest) MarshalTo

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

func (*AuctionsByOwnerRequest) MarshalToSizedBuffer

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

func (*AuctionsByOwnerRequest) ProtoMessage

func (*AuctionsByOwnerRequest) ProtoMessage()

func (*AuctionsByOwnerRequest) Reset

func (m *AuctionsByOwnerRequest) Reset()

func (*AuctionsByOwnerRequest) Size

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

func (*AuctionsByOwnerRequest) String

func (m *AuctionsByOwnerRequest) String() string

func (*AuctionsByOwnerRequest) Unmarshal

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

func (*AuctionsByOwnerRequest) XXX_DiscardUnknown

func (m *AuctionsByOwnerRequest) XXX_DiscardUnknown()

func (*AuctionsByOwnerRequest) XXX_Marshal

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

func (*AuctionsByOwnerRequest) XXX_Merge

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

func (*AuctionsByOwnerRequest) XXX_Size

func (m *AuctionsByOwnerRequest) XXX_Size() int

func (*AuctionsByOwnerRequest) XXX_Unmarshal

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

type AuctionsByOwnerResponse

type AuctionsByOwnerResponse struct {
	// List of auctions
	Auctions *Auctions `protobuf:"bytes,1,opt,name=auctions,proto3" json:"auctions,omitempty"`
}

AuctionsByOwnerResponse returns all auctions created by an owner

func (*AuctionsByOwnerResponse) Descriptor

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

func (*AuctionsByOwnerResponse) GetAuctions

func (m *AuctionsByOwnerResponse) GetAuctions() *Auctions

func (*AuctionsByOwnerResponse) Marshal

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

func (*AuctionsByOwnerResponse) MarshalTo

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

func (*AuctionsByOwnerResponse) MarshalToSizedBuffer

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

func (*AuctionsByOwnerResponse) ProtoMessage

func (*AuctionsByOwnerResponse) ProtoMessage()

func (*AuctionsByOwnerResponse) Reset

func (m *AuctionsByOwnerResponse) Reset()

func (*AuctionsByOwnerResponse) Size

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

func (*AuctionsByOwnerResponse) String

func (m *AuctionsByOwnerResponse) String() string

func (*AuctionsByOwnerResponse) Unmarshal

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

func (*AuctionsByOwnerResponse) XXX_DiscardUnknown

func (m *AuctionsByOwnerResponse) XXX_DiscardUnknown()

func (*AuctionsByOwnerResponse) XXX_Marshal

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

func (*AuctionsByOwnerResponse) XXX_Merge

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

func (*AuctionsByOwnerResponse) XXX_Size

func (m *AuctionsByOwnerResponse) XXX_Size() int

func (*AuctionsByOwnerResponse) XXX_Unmarshal

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

type AuctionsRequest

type AuctionsRequest struct {
	// pagination defines an optional pagination info for the next request
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

AuctionsRequest is the format for querying all the auctions

func (*AuctionsRequest) Descriptor

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

func (*AuctionsRequest) GetPagination

func (m *AuctionsRequest) GetPagination() *query.PageRequest

func (*AuctionsRequest) Marshal

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

func (*AuctionsRequest) MarshalTo

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

func (*AuctionsRequest) MarshalToSizedBuffer

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

func (*AuctionsRequest) ProtoMessage

func (*AuctionsRequest) ProtoMessage()

func (*AuctionsRequest) Reset

func (m *AuctionsRequest) Reset()

func (*AuctionsRequest) Size

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

func (*AuctionsRequest) String

func (m *AuctionsRequest) String() string

func (*AuctionsRequest) Unmarshal

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

func (*AuctionsRequest) XXX_DiscardUnknown

func (m *AuctionsRequest) XXX_DiscardUnknown()

func (*AuctionsRequest) XXX_Marshal

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

func (*AuctionsRequest) XXX_Merge

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

func (*AuctionsRequest) XXX_Size

func (m *AuctionsRequest) XXX_Size() int

func (*AuctionsRequest) XXX_Unmarshal

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

type AuctionsResponse

type AuctionsResponse struct {
	// List of auctions
	Auctions *Auctions `protobuf:"bytes,1,opt,name=auctions,proto3" json:"auctions,omitempty"`
	// pagination defines an optional pagination info for the next request
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

AuctionsResponse returns the list of all auctions

func (*AuctionsResponse) Descriptor

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

func (*AuctionsResponse) GetAuctions

func (m *AuctionsResponse) GetAuctions() *Auctions

func (*AuctionsResponse) GetPagination

func (m *AuctionsResponse) GetPagination() *query.PageRequest

func (*AuctionsResponse) Marshal

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

func (*AuctionsResponse) MarshalTo

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

func (*AuctionsResponse) MarshalToSizedBuffer

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

func (*AuctionsResponse) ProtoMessage

func (*AuctionsResponse) ProtoMessage()

func (*AuctionsResponse) Reset

func (m *AuctionsResponse) Reset()

func (*AuctionsResponse) Size

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

func (*AuctionsResponse) String

func (m *AuctionsResponse) String() string

func (*AuctionsResponse) Unmarshal

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

func (*AuctionsResponse) XXX_DiscardUnknown

func (m *AuctionsResponse) XXX_DiscardUnknown()

func (*AuctionsResponse) XXX_Marshal

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

func (*AuctionsResponse) XXX_Merge

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

func (*AuctionsResponse) XXX_Size

func (m *AuctionsResponse) XXX_Size() int

func (*AuctionsResponse) XXX_Unmarshal

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

type BalanceRequest

type BalanceRequest struct {
}

BalanceRequest is the format to fetch all balances

func (*BalanceRequest) Descriptor

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

func (*BalanceRequest) Marshal

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

func (*BalanceRequest) MarshalTo

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

func (*BalanceRequest) MarshalToSizedBuffer

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

func (*BalanceRequest) ProtoMessage

func (*BalanceRequest) ProtoMessage()

func (*BalanceRequest) Reset

func (m *BalanceRequest) Reset()

func (*BalanceRequest) Size

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

func (*BalanceRequest) String

func (m *BalanceRequest) String() string

func (*BalanceRequest) Unmarshal

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

func (*BalanceRequest) XXX_DiscardUnknown

func (m *BalanceRequest) XXX_DiscardUnknown()

func (*BalanceRequest) XXX_Marshal

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

func (*BalanceRequest) XXX_Merge

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

func (*BalanceRequest) XXX_Size

func (m *BalanceRequest) XXX_Size() int

func (*BalanceRequest) XXX_Unmarshal

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

type BalanceResponse

type BalanceResponse struct {
	// Set of all balances within the auction
	Balance []types.Coin `protobuf:"bytes,1,rep,name=balance,proto3" json:"balance"`
}

func (*BalanceResponse) Descriptor

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

func (*BalanceResponse) GetBalance

func (m *BalanceResponse) GetBalance() []types.Coin

func (*BalanceResponse) Marshal

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

func (*BalanceResponse) MarshalTo

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

func (*BalanceResponse) MarshalToSizedBuffer

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

func (*BalanceResponse) ProtoMessage

func (*BalanceResponse) ProtoMessage()

func (*BalanceResponse) Reset

func (m *BalanceResponse) Reset()

func (*BalanceResponse) Size

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

func (*BalanceResponse) String

func (m *BalanceResponse) String() string

func (*BalanceResponse) Unmarshal

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

func (*BalanceResponse) XXX_DiscardUnknown

func (m *BalanceResponse) XXX_DiscardUnknown()

func (*BalanceResponse) XXX_Marshal

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

func (*BalanceResponse) XXX_Merge

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

func (*BalanceResponse) XXX_Size

func (m *BalanceResponse) XXX_Size() int

func (*BalanceResponse) XXX_Unmarshal

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

type Bid

type Bid struct {
	AuctionId     string     `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	BidderAddress string     `protobuf:"bytes,2,opt,name=bidder_address,json=bidderAddress,proto3" json:"bidder_address,omitempty"`
	Status        string     `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
	CommitHash    string     `protobuf:"bytes,4,opt,name=commit_hash,json=commitHash,proto3" json:"commit_hash,omitempty"`
	CommitTime    time.Time  `` /* 127-byte string literal not displayed */
	CommitFee     types.Coin `protobuf:"bytes,6,opt,name=commit_fee,json=commitFee,proto3" json:"commit_fee" json:"commit_fee" yaml:"commit_fee"`
	RevealTime    time.Time  `` /* 127-byte string literal not displayed */
	RevealFee     types.Coin `protobuf:"bytes,8,opt,name=reveal_fee,json=revealFee,proto3" json:"reveal_fee" json:"reveal_fee" yaml:"reveal_fee"`
	BidAmount     types.Coin `protobuf:"bytes,9,opt,name=bid_amount,json=bidAmount,proto3" json:"bid_amount" json:"bid_amount" yaml:"bid_amount"`
}

Bid represents a sealed bid (commit) made during the auction

func (*Bid) Descriptor

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

func (Bid) GetCommitTime

func (bid Bid) GetCommitTime() string

func (Bid) GetRevealTime

func (bid Bid) GetRevealTime() string

func (*Bid) Marshal

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

func (*Bid) MarshalTo

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

func (*Bid) MarshalToSizedBuffer

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

func (*Bid) ProtoMessage

func (*Bid) ProtoMessage()

func (*Bid) Reset

func (m *Bid) Reset()

func (*Bid) Size

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

func (*Bid) String

func (m *Bid) String() string

func (*Bid) Unmarshal

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

func (*Bid) XXX_DiscardUnknown

func (m *Bid) XXX_DiscardUnknown()

func (*Bid) XXX_Marshal

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

func (*Bid) XXX_Merge

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

func (*Bid) XXX_Size

func (m *Bid) XXX_Size() int

func (*Bid) XXX_Unmarshal

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

type BidRequest

type BidRequest struct {
	// Auction ID
	AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
	// Bidder address
	Bidder string `protobuf:"bytes,2,opt,name=bidder,proto3" json:"bidder,omitempty"`
}

BidRequest is the format for querying a specific bid in an auction

func (*BidRequest) Descriptor

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

func (*BidRequest) GetAuctionId

func (m *BidRequest) GetAuctionId() string

func (*BidRequest) GetBidder

func (m *BidRequest) GetBidder() string

func (*BidRequest) Marshal

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

func (*BidRequest) MarshalTo

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

func (*BidRequest) MarshalToSizedBuffer

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

func (*BidRequest) ProtoMessage

func (*BidRequest) ProtoMessage()

func (*BidRequest) Reset

func (m *BidRequest) Reset()

func (*BidRequest) Size

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

func (*BidRequest) String

func (m *BidRequest) String() string

func (*BidRequest) Unmarshal

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

func (*BidRequest) XXX_DiscardUnknown

func (m *BidRequest) XXX_DiscardUnknown()

func (*BidRequest) XXX_Marshal

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

func (*BidRequest) XXX_Merge

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

func (*BidRequest) XXX_Size

func (m *BidRequest) XXX_Size() int

func (*BidRequest) XXX_Unmarshal

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

type BidResponse

type BidResponse struct {
	// Bid details
	Bid *Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid,omitempty"`
}

BidResponse returns the details of the queried bid

func (*BidResponse) Descriptor

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

func (*BidResponse) GetBid

func (m *BidResponse) GetBid() *Bid

func (*BidResponse) Marshal

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

func (*BidResponse) MarshalTo

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

func (*BidResponse) MarshalToSizedBuffer

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

func (*BidResponse) ProtoMessage

func (*BidResponse) ProtoMessage()

func (*BidResponse) Reset

func (m *BidResponse) Reset()

func (*BidResponse) Size

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

func (*BidResponse) String

func (m *BidResponse) String() string

func (*BidResponse) Unmarshal

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

func (*BidResponse) XXX_DiscardUnknown

func (m *BidResponse) XXX_DiscardUnknown()

func (*BidResponse) XXX_Marshal

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

func (*BidResponse) XXX_Merge

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

func (*BidResponse) XXX_Size

func (m *BidResponse) XXX_Size() int

func (*BidResponse) XXX_Unmarshal

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

type BidsRequest

type BidsRequest struct {
	// Auction ID
	AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty"`
}

BidsRequest is the format for querying all bids in an auction

func (*BidsRequest) Descriptor

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

func (*BidsRequest) GetAuctionId

func (m *BidsRequest) GetAuctionId() string

func (*BidsRequest) Marshal

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

func (*BidsRequest) MarshalTo

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

func (*BidsRequest) MarshalToSizedBuffer

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

func (*BidsRequest) ProtoMessage

func (*BidsRequest) ProtoMessage()

func (*BidsRequest) Reset

func (m *BidsRequest) Reset()

func (*BidsRequest) Size

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

func (*BidsRequest) String

func (m *BidsRequest) String() string

func (*BidsRequest) Unmarshal

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

func (*BidsRequest) XXX_DiscardUnknown

func (m *BidsRequest) XXX_DiscardUnknown()

func (*BidsRequest) XXX_Marshal

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

func (*BidsRequest) XXX_Merge

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

func (*BidsRequest) XXX_Size

func (m *BidsRequest) XXX_Size() int

func (*BidsRequest) XXX_Unmarshal

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

type BidsResponse

type BidsResponse struct {
	// List of bids in the auction
	Bids []*Bid `protobuf:"bytes,1,rep,name=bids,proto3" json:"bids,omitempty"`
}

BidsResponse returns details of all bids in an auction

func (*BidsResponse) Descriptor

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

func (*BidsResponse) GetBids

func (m *BidsResponse) GetBids() []*Bid

func (*BidsResponse) Marshal

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

func (*BidsResponse) MarshalTo

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

func (*BidsResponse) MarshalToSizedBuffer

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

func (*BidsResponse) ProtoMessage

func (*BidsResponse) ProtoMessage()

func (*BidsResponse) Reset

func (m *BidsResponse) Reset()

func (*BidsResponse) Size

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

func (*BidsResponse) String

func (m *BidsResponse) String() string

func (*BidsResponse) Unmarshal

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

func (*BidsResponse) XXX_DiscardUnknown

func (m *BidsResponse) XXX_DiscardUnknown()

func (*BidsResponse) XXX_Marshal

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

func (*BidsResponse) XXX_Merge

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

func (*BidsResponse) XXX_Size

func (m *BidsResponse) XXX_Size() int

func (*BidsResponse) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params   Params     `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	Auctions []*Auction `protobuf:"bytes,2,rep,name=auctions,proto3" json:"auctions,omitempty" json:"bonds" yaml:"bonds"`
}

GenesisState defines the genesis state of the auction module

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState sets default evm genesis state with empty accounts and default params and chain config values.

func NewGenesisState added in v0.7.0

func NewGenesisState(params Params, auctions []*Auction) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAuctions

func (m *GenesisState) GetAuctions() []*Auction

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// CreateAuction is the command for creating an auction
	CreateAuction(ctx context.Context, in *MsgCreateAuction, opts ...grpc.CallOption) (*MsgCreateAuctionResponse, error)
	// CommitBid is the command for committing a bid
	CommitBid(ctx context.Context, in *MsgCommitBid, opts ...grpc.CallOption) (*MsgCommitBidResponse, error)
	// RevealBid is the command for revealing a bid
	RevealBid(ctx context.Context, in *MsgRevealBid, opts ...grpc.CallOption) (*MsgRevealBidResponse, 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 MsgCommitBid

type MsgCommitBid struct {
	// Auction ID
	AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty" json:"auction_id" yaml:"auction_id"`
	// Commit Hash
	CommitHash string `` /* 129-byte string literal not displayed */
	// Address of the signer
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" json:"signer" yaml:"signer"`
}

CommitBid defines the message to commit a bid

func NewMsgCommitBid

func NewMsgCommitBid(auctionID string, commitHash string, signer sdk.AccAddress) MsgCommitBid

NewMsgCommitBid is the constructor function for MsgCommitBid.

func (*MsgCommitBid) Descriptor

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

func (MsgCommitBid) GetSignBytes

func (msg MsgCommitBid) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgCommitBid) GetSigners

func (msg MsgCommitBid) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgCommitBid) Marshal

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

func (*MsgCommitBid) MarshalTo

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

func (*MsgCommitBid) MarshalToSizedBuffer

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

func (*MsgCommitBid) ProtoMessage

func (*MsgCommitBid) ProtoMessage()

func (*MsgCommitBid) Reset

func (m *MsgCommitBid) Reset()

func (MsgCommitBid) Route

func (msg MsgCommitBid) Route() string

Route Implements Msg.

func (*MsgCommitBid) Size

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

func (*MsgCommitBid) String

func (m *MsgCommitBid) String() string

func (MsgCommitBid) Type

func (msg MsgCommitBid) Type() string

Type Implements Msg.

func (*MsgCommitBid) Unmarshal

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

func (MsgCommitBid) ValidateBasic

func (msg MsgCommitBid) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgCommitBid) XXX_DiscardUnknown

func (m *MsgCommitBid) XXX_DiscardUnknown()

func (*MsgCommitBid) XXX_Marshal

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

func (*MsgCommitBid) XXX_Merge

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

func (*MsgCommitBid) XXX_Size

func (m *MsgCommitBid) XXX_Size() int

func (*MsgCommitBid) XXX_Unmarshal

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

type MsgCommitBidResponse

type MsgCommitBidResponse struct {
	// Auction details
	Bid *Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid,omitempty" json:"bid" yaml:"bid"`
}

MsgCommitBidResponse returns the state of the auction after the bid creation

func (*MsgCommitBidResponse) Descriptor

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

func (*MsgCommitBidResponse) Marshal

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

func (*MsgCommitBidResponse) MarshalTo

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

func (*MsgCommitBidResponse) MarshalToSizedBuffer

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

func (*MsgCommitBidResponse) ProtoMessage

func (*MsgCommitBidResponse) ProtoMessage()

func (*MsgCommitBidResponse) Reset

func (m *MsgCommitBidResponse) Reset()

func (*MsgCommitBidResponse) Size

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

func (*MsgCommitBidResponse) String

func (m *MsgCommitBidResponse) String() string

func (*MsgCommitBidResponse) Unmarshal

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

func (*MsgCommitBidResponse) XXX_DiscardUnknown

func (m *MsgCommitBidResponse) XXX_DiscardUnknown()

func (*MsgCommitBidResponse) XXX_Marshal

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

func (*MsgCommitBidResponse) XXX_Merge

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

func (*MsgCommitBidResponse) XXX_Size

func (m *MsgCommitBidResponse) XXX_Size() int

func (*MsgCommitBidResponse) XXX_Unmarshal

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

type MsgCreateAuction

type MsgCreateAuction struct {
	// Duration of the commits phase in seconds
	CommitsDuration time.Duration `` /* 156-byte string literal not displayed */
	// Duration of the reveals phase in seconds
	RevealsDuration time.Duration `` /* 156-byte string literal not displayed */
	// Commit fees
	CommitFee types.Coin `protobuf:"bytes,3,opt,name=commit_fee,json=commitFee,proto3" json:"commit_fee" json:"commit_fee" yaml:"commit_fee"`
	// Reveal fees
	RevealFee types.Coin `protobuf:"bytes,4,opt,name=reveal_fee,json=revealFee,proto3" json:"reveal_fee" json:"reveal_fee" yaml:"reveal_fee"`
	// Minimum acceptable bid amount
	MinimumBid types.Coin `protobuf:"bytes,5,opt,name=minimum_bid,json=minimumBid,proto3" json:"minimum_bid" json:"minimum_bid" yaml:"minimum_bid"`
	// Address of the signer
	Signer string `protobuf:"bytes,6,opt,name=signer,proto3" json:"signer,omitempty" json:"signer" yaml:"signer"`
}

MsgCreateAuction defines a create auction message

func NewMsgCreateAuction

func NewMsgCreateAuction(params Params, signer sdk.AccAddress) MsgCreateAuction

NewMsgCreateAuction is the constructor function for MsgCreateAuction.

func (*MsgCreateAuction) Descriptor

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

func (MsgCreateAuction) GetSignBytes

func (msg MsgCreateAuction) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgCreateAuction) GetSigners

func (msg MsgCreateAuction) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgCreateAuction) Marshal

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

func (*MsgCreateAuction) MarshalTo

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

func (*MsgCreateAuction) MarshalToSizedBuffer

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

func (*MsgCreateAuction) ProtoMessage

func (*MsgCreateAuction) ProtoMessage()

func (*MsgCreateAuction) Reset

func (m *MsgCreateAuction) Reset()

func (MsgCreateAuction) Route

func (msg MsgCreateAuction) Route() string

Route Implements Msg.

func (*MsgCreateAuction) Size

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

func (*MsgCreateAuction) String

func (m *MsgCreateAuction) String() string

func (MsgCreateAuction) Type

func (msg MsgCreateAuction) Type() string

Type Implements Msg.

func (*MsgCreateAuction) Unmarshal

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

func (MsgCreateAuction) ValidateBasic

func (msg MsgCreateAuction) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgCreateAuction) XXX_DiscardUnknown

func (m *MsgCreateAuction) XXX_DiscardUnknown()

func (*MsgCreateAuction) XXX_Marshal

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

func (*MsgCreateAuction) XXX_Merge

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

func (*MsgCreateAuction) XXX_Size

func (m *MsgCreateAuction) XXX_Size() int

func (*MsgCreateAuction) XXX_Unmarshal

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

type MsgCreateAuctionResponse

type MsgCreateAuctionResponse struct {
	// Auction details
	Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty" json:"auction" yaml:"auction"`
}

MsgCreateAuctionResponse returns the details of the created auction

func (*MsgCreateAuctionResponse) Descriptor

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

func (*MsgCreateAuctionResponse) Marshal

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

func (*MsgCreateAuctionResponse) MarshalTo

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

func (*MsgCreateAuctionResponse) MarshalToSizedBuffer

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

func (*MsgCreateAuctionResponse) ProtoMessage

func (*MsgCreateAuctionResponse) ProtoMessage()

func (*MsgCreateAuctionResponse) Reset

func (m *MsgCreateAuctionResponse) Reset()

func (*MsgCreateAuctionResponse) Size

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

func (*MsgCreateAuctionResponse) String

func (m *MsgCreateAuctionResponse) String() string

func (*MsgCreateAuctionResponse) Unmarshal

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

func (*MsgCreateAuctionResponse) XXX_DiscardUnknown

func (m *MsgCreateAuctionResponse) XXX_DiscardUnknown()

func (*MsgCreateAuctionResponse) XXX_Marshal

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

func (*MsgCreateAuctionResponse) XXX_Merge

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

func (*MsgCreateAuctionResponse) XXX_Size

func (m *MsgCreateAuctionResponse) XXX_Size() int

func (*MsgCreateAuctionResponse) XXX_Unmarshal

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

type MsgRevealBid

type MsgRevealBid struct {
	// Auction ID
	AuctionId string `protobuf:"bytes,1,opt,name=auction_id,json=auctionId,proto3" json:"auction_id,omitempty" json:"auction_id" yaml:"auction_id"`
	// Commit Hash
	Reveal string `protobuf:"bytes,2,opt,name=reveal,proto3" json:"reveal,omitempty" json:"reveal" yaml:"reveal"`
	// Address of the signer
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" json:"signer" yaml:"signer"`
}

RevealBid defines the message to reveal a bid

func NewMsgRevealBid

func NewMsgRevealBid(auctionID string, reveal string, signer sdk.AccAddress) MsgRevealBid

NewMsgRevealBid is the constructor function for MsgRevealBid.

func (*MsgRevealBid) Descriptor

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

func (MsgRevealBid) GetSignBytes

func (msg MsgRevealBid) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgRevealBid) GetSigners

func (msg MsgRevealBid) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgRevealBid) Marshal

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

func (*MsgRevealBid) MarshalTo

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

func (*MsgRevealBid) MarshalToSizedBuffer

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

func (*MsgRevealBid) ProtoMessage

func (*MsgRevealBid) ProtoMessage()

func (*MsgRevealBid) Reset

func (m *MsgRevealBid) Reset()

func (MsgRevealBid) Route

func (msg MsgRevealBid) Route() string

Route Implements Msg.

func (*MsgRevealBid) Size

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

func (*MsgRevealBid) String

func (m *MsgRevealBid) String() string

func (MsgRevealBid) Type

func (msg MsgRevealBid) Type() string

Type Implements Msg.

func (*MsgRevealBid) Unmarshal

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

func (MsgRevealBid) ValidateBasic

func (msg MsgRevealBid) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgRevealBid) XXX_DiscardUnknown

func (m *MsgRevealBid) XXX_DiscardUnknown()

func (*MsgRevealBid) XXX_Marshal

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

func (*MsgRevealBid) XXX_Merge

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

func (*MsgRevealBid) XXX_Size

func (m *MsgRevealBid) XXX_Size() int

func (*MsgRevealBid) XXX_Unmarshal

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

type MsgRevealBidResponse

type MsgRevealBidResponse struct {
	// Auction details
	Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty" json:"auction" yaml:"auction"`
}

MsgRevealBidResponse returns the state of the auction after the bid reveal

func (*MsgRevealBidResponse) Descriptor

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

func (*MsgRevealBidResponse) Marshal

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

func (*MsgRevealBidResponse) MarshalTo

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

func (*MsgRevealBidResponse) MarshalToSizedBuffer

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

func (*MsgRevealBidResponse) ProtoMessage

func (*MsgRevealBidResponse) ProtoMessage()

func (*MsgRevealBidResponse) Reset

func (m *MsgRevealBidResponse) Reset()

func (*MsgRevealBidResponse) Size

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

func (*MsgRevealBidResponse) String

func (m *MsgRevealBidResponse) String() string

func (*MsgRevealBidResponse) Unmarshal

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

func (*MsgRevealBidResponse) XXX_DiscardUnknown

func (m *MsgRevealBidResponse) XXX_DiscardUnknown()

func (*MsgRevealBidResponse) XXX_Marshal

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

func (*MsgRevealBidResponse) XXX_Merge

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

func (*MsgRevealBidResponse) XXX_Size

func (m *MsgRevealBidResponse) XXX_Size() int

func (*MsgRevealBidResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateAuction is the command for creating an auction
	CreateAuction(context.Context, *MsgCreateAuction) (*MsgCreateAuctionResponse, error)
	// CommitBid is the command for committing a bid
	CommitBid(context.Context, *MsgCommitBid) (*MsgCommitBidResponse, error)
	// RevealBid is the command for revealing a bid
	RevealBid(context.Context, *MsgRevealBid) (*MsgRevealBidResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	// Duration of the commits phase in seconds
	CommitsDuration time.Duration `` /* 156-byte string literal not displayed */
	// Duration of the reveals phase in seconds
	RevealsDuration time.Duration `` /* 156-byte string literal not displayed */
	// Commit fees
	CommitFee types.Coin `protobuf:"bytes,3,opt,name=commit_fee,json=commitFee,proto3" json:"commit_fee" json:"commit_fee" yaml:"commit_fee"`
	// Reveal fees
	RevealFee types.Coin `protobuf:"bytes,4,opt,name=reveal_fee,json=revealFee,proto3" json:"reveal_fee" json:"reveal_fee" yaml:"reveal_fee"`
	// Minimum acceptable bid amount
	MinimumBid types.Coin `protobuf:"bytes,5,opt,name=minimum_bid,json=minimumBid,proto3" json:"minimum_bid" json:"minimum_bid" yaml:"minimum_bid"`
}

Params defines the auction module parameters

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(commitsDuration time.Duration, revealsDuration time.Duration, commitFee sdk.Coin, revealFee sdk.Coin, minimumBid sdk.Coin) Params

func (*Params) Descriptor

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

func (Params) Equal

func (p Params) Equal(p2 Params) bool

Equal returns a boolean determining if two Params types are identical.

func (*Params) GetCommitFee

func (m *Params) GetCommitFee() types.Coin

func (*Params) GetCommitsDuration

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

func (*Params) GetMinimumBid

func (m *Params) GetMinimumBid() types.Coin

func (*Params) GetRevealFee

func (m *Params) GetRevealFee() types.Coin

func (*Params) GetRevealsDuration

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs - implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String returns a human readable string representation of the parameters.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate a set of params.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Auctions queries all auctions
	Auctions(ctx context.Context, in *AuctionsRequest, opts ...grpc.CallOption) (*AuctionsResponse, error)
	// GetAuction queries an auction
	GetAuction(ctx context.Context, in *AuctionRequest, opts ...grpc.CallOption) (*AuctionResponse, error)
	// GetBid queries an auction bid
	GetBid(ctx context.Context, in *BidRequest, opts ...grpc.CallOption) (*BidResponse, error)
	// GetBids queries all auction bids
	GetBids(ctx context.Context, in *BidsRequest, opts ...grpc.CallOption) (*BidsResponse, error)
	// AuctionsByBidder queries auctions by bidder
	AuctionsByBidder(ctx context.Context, in *AuctionsByBidderRequest, opts ...grpc.CallOption) (*AuctionsByBidderResponse, error)
	// AuctionsByOwner queries auctions by owner
	AuctionsByOwner(ctx context.Context, in *AuctionsByOwnerRequest, opts ...grpc.CallOption) (*AuctionsByOwnerResponse, error)
	// QueryParams implements the params query command
	QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Balance queries the auction module account balance
	Balance(ctx context.Context, in *BalanceRequest, opts ...grpc.CallOption) (*BalanceResponse, 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 the format to query the parameters of the auction module

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

QueryParamsResponse returns parameters of the auction module

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 {
	// Auctions queries all auctions
	Auctions(context.Context, *AuctionsRequest) (*AuctionsResponse, error)
	// GetAuction queries an auction
	GetAuction(context.Context, *AuctionRequest) (*AuctionResponse, error)
	// GetBid queries an auction bid
	GetBid(context.Context, *BidRequest) (*BidResponse, error)
	// GetBids queries all auction bids
	GetBids(context.Context, *BidsRequest) (*BidsResponse, error)
	// AuctionsByBidder queries auctions by bidder
	AuctionsByBidder(context.Context, *AuctionsByBidderRequest) (*AuctionsByBidderResponse, error)
	// AuctionsByOwner queries auctions by owner
	AuctionsByOwner(context.Context, *AuctionsByOwnerRequest) (*AuctionsByOwnerResponse, error)
	// QueryParams implements the params query command
	QueryParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Balance queries the auction module account balance
	Balance(context.Context, *BalanceRequest) (*BalanceResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CommitBid

func (*UnimplementedMsgServer) CreateAuction

func (*UnimplementedMsgServer) RevealBid

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Auctions

func (*UnimplementedQueryServer) AuctionsByBidder

func (*UnimplementedQueryServer) AuctionsByOwner

func (*UnimplementedQueryServer) Balance

func (*UnimplementedQueryServer) GetAuction

func (*UnimplementedQueryServer) GetBid

func (*UnimplementedQueryServer) GetBids

func (*UnimplementedQueryServer) QueryParams

Jump to

Keyboard shortcuts

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