Documentation ¶
Index ¶
- Variables
- func RegisterInjectiveAuctionRPCServer(s grpc.ServiceRegistrar, srv InjectiveAuctionRPCServer)
- type Auction
- func (*Auction) Descriptor() ([]byte, []int)deprecated
- func (x *Auction) GetBasket() []*Coin
- func (x *Auction) GetEndTimestamp() int64
- func (x *Auction) GetRound() uint64
- func (x *Auction) GetUpdatedAt() int64
- func (x *Auction) GetWinner() string
- func (x *Auction) GetWinningBidAmount() string
- func (*Auction) ProtoMessage()
- func (x *Auction) ProtoReflect() protoreflect.Message
- func (x *Auction) Reset()
- func (x *Auction) String() string
- type AuctionRequest
- type AuctionResponse
- func (*AuctionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuctionResponse) GetAuction() *Auction
- func (x *AuctionResponse) GetBids() []*Bid
- func (*AuctionResponse) ProtoMessage()
- func (x *AuctionResponse) ProtoReflect() protoreflect.Message
- func (x *AuctionResponse) Reset()
- func (x *AuctionResponse) String() string
- type AuctionsRequest
- type AuctionsResponse
- type Bid
- type Coin
- type InjectiveAuctionRPCClient
- type InjectiveAuctionRPCServer
- type InjectiveAuctionRPC_StreamBidsClient
- type InjectiveAuctionRPC_StreamBidsServer
- type StreamBidsRequest
- type StreamBidsResponse
- func (*StreamBidsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StreamBidsResponse) GetBidAmount() string
- func (x *StreamBidsResponse) GetBidder() string
- func (x *StreamBidsResponse) GetRound() uint64
- func (x *StreamBidsResponse) GetTimestamp() int64
- func (*StreamBidsResponse) ProtoMessage()
- func (x *StreamBidsResponse) ProtoReflect() protoreflect.Message
- func (x *StreamBidsResponse) Reset()
- func (x *StreamBidsResponse) String() string
- type UnimplementedInjectiveAuctionRPCServer
- func (UnimplementedInjectiveAuctionRPCServer) AuctionEndpoint(context.Context, *AuctionRequest) (*AuctionResponse, error)
- func (UnimplementedInjectiveAuctionRPCServer) Auctions(context.Context, *AuctionsRequest) (*AuctionsResponse, error)
- func (UnimplementedInjectiveAuctionRPCServer) StreamBids(*StreamBidsRequest, InjectiveAuctionRPC_StreamBidsServer) error
- type UnsafeInjectiveAuctionRPCServer
Constants ¶
This section is empty.
Variables ¶
var File_injective_auction_rpc_proto protoreflect.FileDescriptor
var InjectiveAuctionRPC_ServiceDesc = grpc.ServiceDesc{ ServiceName: "injective_auction_rpc.InjectiveAuctionRPC", HandlerType: (*InjectiveAuctionRPCServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AuctionEndpoint", Handler: _InjectiveAuctionRPC_AuctionEndpoint_Handler, }, { MethodName: "Auctions", Handler: _InjectiveAuctionRPC_Auctions_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StreamBids", Handler: _InjectiveAuctionRPC_StreamBids_Handler, ServerStreams: true, }, }, Metadata: "injective_auction_rpc.proto", }
InjectiveAuctionRPC_ServiceDesc is the grpc.ServiceDesc for InjectiveAuctionRPC service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterInjectiveAuctionRPCServer ¶
func RegisterInjectiveAuctionRPCServer(s grpc.ServiceRegistrar, srv InjectiveAuctionRPCServer)
Types ¶
type Auction ¶
type Auction struct { // Account address of the auction winner Winner string `protobuf:"bytes,1,opt,name=winner,proto3" json:"winner,omitempty"` // Coins in the basket Basket []*Coin `protobuf:"bytes,2,rep,name=basket,proto3" json:"basket,omitempty"` WinningBidAmount string `protobuf:"bytes,3,opt,name=winning_bid_amount,json=winningBidAmount,proto3" json:"winning_bid_amount,omitempty"` Round uint64 `protobuf:"varint,4,opt,name=round,proto3" json:"round,omitempty"` // Auction end timestamp in UNIX millis. EndTimestamp int64 `protobuf:"zigzag64,5,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"` // UpdatedAt timestamp in UNIX millis. UpdatedAt int64 `protobuf:"zigzag64,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Auction) Descriptor
deprecated
func (*Auction) GetEndTimestamp ¶
func (*Auction) GetUpdatedAt ¶
func (*Auction) GetWinningBidAmount ¶
func (*Auction) ProtoMessage ¶
func (*Auction) ProtoMessage()
func (*Auction) ProtoReflect ¶
func (x *Auction) ProtoReflect() protoreflect.Message
type AuctionRequest ¶
type AuctionRequest struct { // The auction round number. -1 for latest. Round int64 `protobuf:"zigzag64,1,opt,name=round,proto3" json:"round,omitempty"` // contains filtered or unexported fields }
func (*AuctionRequest) Descriptor
deprecated
func (*AuctionRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuctionRequest.ProtoReflect.Descriptor instead.
func (*AuctionRequest) GetRound ¶
func (x *AuctionRequest) GetRound() int64
func (*AuctionRequest) ProtoMessage ¶
func (*AuctionRequest) ProtoMessage()
func (*AuctionRequest) ProtoReflect ¶
func (x *AuctionRequest) ProtoReflect() protoreflect.Message
func (*AuctionRequest) Reset ¶
func (x *AuctionRequest) Reset()
func (*AuctionRequest) String ¶
func (x *AuctionRequest) String() string
type AuctionResponse ¶
type AuctionResponse struct { // The auction Auction *Auction `protobuf:"bytes,1,opt,name=auction,proto3" json:"auction,omitempty"` // Bids of the auction Bids []*Bid `protobuf:"bytes,2,rep,name=bids,proto3" json:"bids,omitempty"` // contains filtered or unexported fields }
func (*AuctionResponse) Descriptor
deprecated
func (*AuctionResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuctionResponse.ProtoReflect.Descriptor instead.
func (*AuctionResponse) GetAuction ¶
func (x *AuctionResponse) GetAuction() *Auction
func (*AuctionResponse) GetBids ¶
func (x *AuctionResponse) GetBids() []*Bid
func (*AuctionResponse) ProtoMessage ¶
func (*AuctionResponse) ProtoMessage()
func (*AuctionResponse) ProtoReflect ¶
func (x *AuctionResponse) ProtoReflect() protoreflect.Message
func (*AuctionResponse) Reset ¶
func (x *AuctionResponse) Reset()
func (*AuctionResponse) String ¶
func (x *AuctionResponse) String() string
type AuctionsRequest ¶
type AuctionsRequest struct {
// contains filtered or unexported fields
}
func (*AuctionsRequest) Descriptor
deprecated
func (*AuctionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuctionsRequest.ProtoReflect.Descriptor instead.
func (*AuctionsRequest) ProtoMessage ¶
func (*AuctionsRequest) ProtoMessage()
func (*AuctionsRequest) ProtoReflect ¶
func (x *AuctionsRequest) ProtoReflect() protoreflect.Message
func (*AuctionsRequest) Reset ¶
func (x *AuctionsRequest) Reset()
func (*AuctionsRequest) String ¶
func (x *AuctionsRequest) String() string
type AuctionsResponse ¶
type AuctionsResponse struct { // The historical auctions Auctions []*Auction `protobuf:"bytes,1,rep,name=auctions,proto3" json:"auctions,omitempty"` // contains filtered or unexported fields }
func (*AuctionsResponse) Descriptor
deprecated
func (*AuctionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuctionsResponse.ProtoReflect.Descriptor instead.
func (*AuctionsResponse) GetAuctions ¶
func (x *AuctionsResponse) GetAuctions() []*Auction
func (*AuctionsResponse) ProtoMessage ¶
func (*AuctionsResponse) ProtoMessage()
func (*AuctionsResponse) ProtoReflect ¶
func (x *AuctionsResponse) ProtoReflect() protoreflect.Message
func (*AuctionsResponse) Reset ¶
func (x *AuctionsResponse) Reset()
func (*AuctionsResponse) String ¶
func (x *AuctionsResponse) String() string
type Bid ¶
type Bid struct { // Account address of the bidder Bidder string `protobuf:"bytes,1,opt,name=bidder,proto3" json:"bidder,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // Bid timestamp in UNIX millis. Timestamp int64 `protobuf:"zigzag64,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*Bid) Descriptor
deprecated
func (*Bid) GetTimestamp ¶
func (*Bid) ProtoMessage ¶
func (*Bid) ProtoMessage()
func (*Bid) ProtoReflect ¶
func (x *Bid) ProtoReflect() protoreflect.Message
type Coin ¶
type Coin struct { // Denom of the coin Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*Coin) Descriptor
deprecated
func (*Coin) ProtoMessage ¶
func (*Coin) ProtoMessage()
func (*Coin) ProtoReflect ¶
func (x *Coin) ProtoReflect() protoreflect.Message
type InjectiveAuctionRPCClient ¶
type InjectiveAuctionRPCClient interface { // Provide historical auction info for a given auction AuctionEndpoint(ctx context.Context, in *AuctionRequest, opts ...grpc.CallOption) (*AuctionResponse, error) // Provide the historical auctions info Auctions(ctx context.Context, in *AuctionsRequest, opts ...grpc.CallOption) (*AuctionsResponse, error) // StreamBids streams new bids of an auction. StreamBids(ctx context.Context, in *StreamBidsRequest, opts ...grpc.CallOption) (InjectiveAuctionRPC_StreamBidsClient, error) }
InjectiveAuctionRPCClient is the client API for InjectiveAuctionRPC service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewInjectiveAuctionRPCClient ¶
func NewInjectiveAuctionRPCClient(cc grpc.ClientConnInterface) InjectiveAuctionRPCClient
type InjectiveAuctionRPCServer ¶
type InjectiveAuctionRPCServer interface { // Provide historical auction info for a given auction AuctionEndpoint(context.Context, *AuctionRequest) (*AuctionResponse, error) // Provide the historical auctions info Auctions(context.Context, *AuctionsRequest) (*AuctionsResponse, error) // StreamBids streams new bids of an auction. StreamBids(*StreamBidsRequest, InjectiveAuctionRPC_StreamBidsServer) error // contains filtered or unexported methods }
InjectiveAuctionRPCServer is the server API for InjectiveAuctionRPC service. All implementations must embed UnimplementedInjectiveAuctionRPCServer for forward compatibility
type InjectiveAuctionRPC_StreamBidsClient ¶
type InjectiveAuctionRPC_StreamBidsClient interface { Recv() (*StreamBidsResponse, error) grpc.ClientStream }
type InjectiveAuctionRPC_StreamBidsServer ¶
type InjectiveAuctionRPC_StreamBidsServer interface { Send(*StreamBidsResponse) error grpc.ServerStream }
type StreamBidsRequest ¶
type StreamBidsRequest struct {
// contains filtered or unexported fields
}
func (*StreamBidsRequest) Descriptor
deprecated
func (*StreamBidsRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamBidsRequest.ProtoReflect.Descriptor instead.
func (*StreamBidsRequest) ProtoMessage ¶
func (*StreamBidsRequest) ProtoMessage()
func (*StreamBidsRequest) ProtoReflect ¶
func (x *StreamBidsRequest) ProtoReflect() protoreflect.Message
func (*StreamBidsRequest) Reset ¶
func (x *StreamBidsRequest) Reset()
func (*StreamBidsRequest) String ¶
func (x *StreamBidsRequest) String() string
type StreamBidsResponse ¶
type StreamBidsResponse struct { // Account address of the bidder Bidder string `protobuf:"bytes,1,opt,name=bidder,proto3" json:"bidder,omitempty"` BidAmount string `protobuf:"bytes,2,opt,name=bid_amount,json=bidAmount,proto3" json:"bid_amount,omitempty"` Round uint64 `protobuf:"varint,3,opt,name=round,proto3" json:"round,omitempty"` // Operation timestamp in UNIX millis. Timestamp int64 `protobuf:"zigzag64,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*StreamBidsResponse) Descriptor
deprecated
func (*StreamBidsResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamBidsResponse.ProtoReflect.Descriptor instead.
func (*StreamBidsResponse) GetBidAmount ¶
func (x *StreamBidsResponse) GetBidAmount() string
func (*StreamBidsResponse) GetBidder ¶
func (x *StreamBidsResponse) GetBidder() string
func (*StreamBidsResponse) GetRound ¶
func (x *StreamBidsResponse) GetRound() uint64
func (*StreamBidsResponse) GetTimestamp ¶
func (x *StreamBidsResponse) GetTimestamp() int64
func (*StreamBidsResponse) ProtoMessage ¶
func (*StreamBidsResponse) ProtoMessage()
func (*StreamBidsResponse) ProtoReflect ¶
func (x *StreamBidsResponse) ProtoReflect() protoreflect.Message
func (*StreamBidsResponse) Reset ¶
func (x *StreamBidsResponse) Reset()
func (*StreamBidsResponse) String ¶
func (x *StreamBidsResponse) String() string
type UnimplementedInjectiveAuctionRPCServer ¶
type UnimplementedInjectiveAuctionRPCServer struct { }
UnimplementedInjectiveAuctionRPCServer must be embedded to have forward compatible implementations.
func (UnimplementedInjectiveAuctionRPCServer) AuctionEndpoint ¶
func (UnimplementedInjectiveAuctionRPCServer) AuctionEndpoint(context.Context, *AuctionRequest) (*AuctionResponse, error)
func (UnimplementedInjectiveAuctionRPCServer) Auctions ¶
func (UnimplementedInjectiveAuctionRPCServer) Auctions(context.Context, *AuctionsRequest) (*AuctionsResponse, error)
func (UnimplementedInjectiveAuctionRPCServer) StreamBids ¶
func (UnimplementedInjectiveAuctionRPCServer) StreamBids(*StreamBidsRequest, InjectiveAuctionRPC_StreamBidsServer) error
type UnsafeInjectiveAuctionRPCServer ¶
type UnsafeInjectiveAuctionRPCServer interface {
// contains filtered or unexported methods
}
UnsafeInjectiveAuctionRPCServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to InjectiveAuctionRPCServer will result in compilation errors.