github.com/InjectiveLabs/sdk-go@v1.53.0/exchange/auction_rpc/pb/injective_auction_rpc.proto (about)

     1  // Code generated with goa v3.7.0, DO NOT EDIT.
     2  //
     3  // InjectiveAuctionRPC protocol buffer definition
     4  //
     5  // Command:
     6  // $ goa gen github.com/InjectiveLabs/injective-indexer/api/design -o ../
     7  
     8  syntax = "proto3";
     9  
    10  package injective_auction_rpc;
    11  
    12  option go_package = "/injective_auction_rpcpb";
    13  
    14  // InjectiveAuctionRPC defines gRPC API of the Auction API.
    15  service InjectiveAuctionRPC {
    16  	// Provide historical auction info for a given auction
    17  	rpc AuctionEndpoint (AuctionEndpointRequest) returns (AuctionEndpointResponse);
    18  	// Provide the historical auctions info
    19  	rpc Auctions (AuctionsRequest) returns (AuctionsResponse);
    20  	// StreamBids streams new bids of an auction.
    21  	rpc StreamBids (StreamBidsRequest) returns (stream StreamBidsResponse);
    22  }
    23  
    24  message AuctionEndpointRequest {
    25  	// The auction round number. -1 for latest.
    26  	sint64 round = 1;
    27  }
    28  
    29  message AuctionEndpointResponse {
    30  	// The auction
    31  	Auction auction = 1;
    32  	// Bids of the auction
    33  	repeated Bid bids = 2;
    34  }
    35  
    36  message Auction {
    37  	// Account address of the auction winner
    38  	string winner = 1;
    39  	// Coins in the basket
    40  	repeated Coin basket = 2;
    41  	string winning_bid_amount = 3;
    42  	uint64 round = 4;
    43  	// Auction end timestamp in UNIX millis.
    44  	sint64 end_timestamp = 5;
    45  	// UpdatedAt timestamp in UNIX millis.
    46  	sint64 updated_at = 6;
    47  }
    48  
    49  message Coin {
    50  	// Denom of the coin
    51  	string denom = 1;
    52  	string amount = 2;
    53  }
    54  
    55  message Bid {
    56  	// Account address of the bidder
    57  	string bidder = 1;
    58  	string amount = 2;
    59  	// Bid timestamp in UNIX millis.
    60  	sint64 timestamp = 3;
    61  }
    62  
    63  message AuctionsRequest {
    64  }
    65  
    66  message AuctionsResponse {
    67  	// The historical auctions
    68  	repeated Auction auctions = 1;
    69  }
    70  
    71  message StreamBidsRequest {
    72  }
    73  
    74  message StreamBidsResponse {
    75  	// Account address of the bidder
    76  	string bidder = 1;
    77  	string bid_amount = 2;
    78  	uint64 round = 3;
    79  	// Operation timestamp in UNIX millis.
    80  	sint64 timestamp = 4;
    81  }