injective_auction_rpcpb

package
v1.33.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_injective_auction_rpc_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Auction.ProtoReflect.Descriptor instead.

func (*Auction) GetBasket

func (x *Auction) GetBasket() []*Coin

func (*Auction) GetEndTimestamp

func (x *Auction) GetEndTimestamp() int64

func (*Auction) GetRound

func (x *Auction) GetRound() uint64

func (*Auction) GetUpdatedAt

func (x *Auction) GetUpdatedAt() int64

func (*Auction) GetWinner

func (x *Auction) GetWinner() string

func (*Auction) GetWinningBidAmount

func (x *Auction) GetWinningBidAmount() string

func (*Auction) ProtoMessage

func (*Auction) ProtoMessage()

func (*Auction) ProtoReflect

func (x *Auction) ProtoReflect() protoreflect.Message

func (*Auction) Reset

func (x *Auction) Reset()

func (*Auction) String

func (x *Auction) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Bid.ProtoReflect.Descriptor instead.

func (*Bid) GetAmount

func (x *Bid) GetAmount() string

func (*Bid) GetBidder

func (x *Bid) GetBidder() string

func (*Bid) GetTimestamp

func (x *Bid) GetTimestamp() int64

func (*Bid) ProtoMessage

func (*Bid) ProtoMessage()

func (*Bid) ProtoReflect

func (x *Bid) ProtoReflect() protoreflect.Message

func (*Bid) Reset

func (x *Bid) Reset()

func (*Bid) String

func (x *Bid) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Coin.ProtoReflect.Descriptor instead.

func (*Coin) GetAmount

func (x *Coin) GetAmount() string

func (*Coin) GetDenom

func (x *Coin) GetDenom() string

func (*Coin) ProtoMessage

func (*Coin) ProtoMessage()

func (*Coin) ProtoReflect

func (x *Coin) ProtoReflect() protoreflect.Message

func (*Coin) Reset

func (x *Coin) Reset()

func (*Coin) String

func (x *Coin) String() string

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.

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

func (UnimplementedInjectiveAuctionRPCServer) StreamBids

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.

Jump to

Keyboard shortcuts

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