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

     1  // Code generated with goa v3.7.0, DO NOT EDIT.
     2  //
     3  // InjectiveMetaRPC 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_meta_rpc;
    11  
    12  option go_package = "/injective_meta_rpcpb";
    13  
    14  // InjectiveMetaRPC is a special API subset to get info about server.
    15  service InjectiveMetaRPC {
    16  	// Endpoint for checking server health.
    17  	rpc Ping (PingRequest) returns (PingResponse);
    18  	// Returns injective-exchange version.
    19  	rpc Version (VersionRequest) returns (VersionResponse);
    20  	// Gets connection info
    21  	rpc Info (InfoRequest) returns (InfoResponse);
    22  	// Stream keepalive, if server exits, a shutdown event will be sent over this
    23  // channel.
    24  	rpc StreamKeepalive (StreamKeepaliveRequest) returns (stream StreamKeepaliveResponse);
    25  	// Get tokens metadata. Can be filtered by denom
    26  	rpc TokenMetadata (TokenMetadataRequest) returns (TokenMetadataResponse);
    27  }
    28  
    29  message PingRequest {
    30  }
    31  
    32  message PingResponse {
    33  }
    34  
    35  message VersionRequest {
    36  }
    37  
    38  message VersionResponse {
    39  	// injective-exchange code version.
    40  	string version = 1;
    41  	// Additional build meta info.
    42  	map<string, string> build = 2;
    43  }
    44  
    45  message InfoRequest {
    46  	// Provide current system UNIX timestamp in millis
    47  	sint64 timestamp = 1;
    48  }
    49  
    50  message InfoResponse {
    51  	// The original timestamp value in millis.
    52  	sint64 timestamp = 1;
    53  	// UNIX time on the server in millis.
    54  	sint64 server_time = 2;
    55  	// injective-exchange code version.
    56  	string version = 3;
    57  	// Additional build meta info.
    58  	map<string, string> build = 4;
    59  	// Server's location region
    60  	string region = 5;
    61  }
    62  
    63  message StreamKeepaliveRequest {
    64  }
    65  
    66  message StreamKeepaliveResponse {
    67  	// Server event
    68  	string event = 1;
    69  	// New conection endpoint for the gRPC API
    70  	string new_endpoint = 2;
    71  	// Operation timestamp in UNIX millis.
    72  	sint64 timestamp = 3;
    73  }
    74  
    75  message TokenMetadataRequest {
    76  	repeated string denoms = 1;
    77  }
    78  
    79  message TokenMetadataResponse {
    80  	// tokens and their metadata list
    81  	repeated TokenMetadataElement tokens = 1;
    82  }
    83  
    84  message TokenMetadataElement {
    85  	// Token's Ethereum address, not all token have this information
    86  	string ethereum_address = 1;
    87  	// Token's CoinGecko id for price references
    88  	string coingecko_id = 2;
    89  	// Token's denom on injective chain
    90  	string denom = 3;
    91  	// Token name
    92  	string name = 4;
    93  	// Token symbol
    94  	string symbol = 5;
    95  	// Number of decimal places used to represent the token's smallest unit
    96  	sint32 decimals = 6;
    97  	// Token logo URL
    98  	string logo = 7;
    99  }