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

     1  // Code generated with goa v3.7.0, DO NOT EDIT.
     2  //
     3  // InjectiveExplorerRPC 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_explorer_rpc;
    11  
    12  option go_package = "/injective_explorer_rpcpb";
    13  
    14  // ExplorerAPI implements explorer data API for e.g. Blockchain Explorer
    15  service InjectiveExplorerRPC {
    16  	// GetAccountTxs returns tranctions involving in an account based upon params.
    17  	rpc GetAccountTxs (GetAccountTxsRequest) returns (GetAccountTxsResponse);
    18  	// GetContractTxs returns contract-related transactions
    19  	rpc GetContractTxs (GetContractTxsRequest) returns (GetContractTxsResponse);
    20  	// GetContractTxs returns contract-related transactions
    21  	rpc GetContractTxsV2 (GetContractTxsV2Request) returns (GetContractTxsV2Response);
    22  	// GetBlocks returns blocks based upon the request params
    23  	rpc GetBlocks (GetBlocksRequest) returns (GetBlocksResponse);
    24  	// GetBlock returns block based upon the height or hash
    25  	rpc GetBlock (GetBlockRequest) returns (GetBlockResponse);
    26  	// GetValidators returns validators on the active chain
    27  	rpc GetValidators (GetValidatorsRequest) returns (GetValidatorsResponse);
    28  	// GetValidator returns validator information on the active chain
    29  	rpc GetValidator (GetValidatorRequest) returns (GetValidatorResponse);
    30  	// GetValidatorUptime returns validator uptime information on the active chain
    31  	rpc GetValidatorUptime (GetValidatorUptimeRequest) returns (GetValidatorUptimeResponse);
    32  	// GetTxs returns transactions based upon the request params
    33  	rpc GetTxs (GetTxsRequest) returns (GetTxsResponse);
    34  	// GetTxByTxHash returns certain transaction information by its tx hash.
    35  	rpc GetTxByTxHash (GetTxByTxHashRequest) returns (GetTxByTxHashResponse);
    36  	// GetPeggyDepositTxs returns the peggy deposit transactions based upon the
    37  // request params
    38  	rpc GetPeggyDepositTxs (GetPeggyDepositTxsRequest) returns (GetPeggyDepositTxsResponse);
    39  	// GetPeggyWithdrawalTxs returns the peggy withdrawal transactions based upon
    40  // the request params
    41  	rpc GetPeggyWithdrawalTxs (GetPeggyWithdrawalTxsRequest) returns (GetPeggyWithdrawalTxsResponse);
    42  	// GetIBCTransferTxs returns the ibc transfer transactions based upon the
    43  // request params
    44  	rpc GetIBCTransferTxs (GetIBCTransferTxsRequest) returns (GetIBCTransferTxsResponse);
    45  	// GetWasmCodes lists all stored code
    46  	rpc GetWasmCodes (GetWasmCodesRequest) returns (GetWasmCodesResponse);
    47  	// GetWasmCodeById list cosmwasm code infor by ID
    48  	rpc GetWasmCodeByID (GetWasmCodeByIDRequest) returns (GetWasmCodeByIDResponse);
    49  	// GetWasmContracts lists all contracts
    50  	rpc GetWasmContracts (GetWasmContractsRequest) returns (GetWasmContractsResponse);
    51  	// GetWasmContractByAddress list cosmwasm contract info by its address
    52  	rpc GetWasmContractByAddress (GetWasmContractByAddressRequest) returns (GetWasmContractByAddressResponse);
    53  	// GetCw20Balance lists all cw20 balances of an injective account
    54  	rpc GetCw20Balance (GetCw20BalanceRequest) returns (GetCw20BalanceResponse);
    55  	// Request relayers infos by marketIDs. If no ids are provided, all market with
    56  // associated relayers are returned
    57  	rpc Relayers (RelayersRequest) returns (RelayersResponse);
    58  	// GetBankTransfers returns bank transfers.
    59  	rpc GetBankTransfers (GetBankTransfersRequest) returns (GetBankTransfersResponse);
    60  	// StreamTxs returns transactions based upon the request params
    61  	rpc StreamTxs (StreamTxsRequest) returns (stream StreamTxsResponse);
    62  	// StreamBlocks returns the latest blocks
    63  	rpc StreamBlocks (StreamBlocksRequest) returns (stream StreamBlocksResponse);
    64  }
    65  
    66  message GetAccountTxsRequest {
    67  	// Address of account
    68  	string address = 1;
    69  	// Return transactions before this block number
    70  	uint64 before = 2;
    71  	// Return transactions after this block number
    72  	uint64 after = 3;
    73  	sint32 limit = 4;
    74  	uint64 skip = 5;
    75  	string type = 6;
    76  	string module = 7;
    77  	sint64 from_number = 8;
    78  	sint64 to_number = 9;
    79  	// The starting timestamp in UNIX milliseconds that the txs must be equal or
    80  // older than
    81  	sint64 start_time = 10;
    82  	// The ending timestamp in UNIX milliseconds that the txs must be equal or
    83  // younger than
    84  	sint64 end_time = 11;
    85  	// The status of the txs to be returned
    86  	string status = 12;
    87  }
    88  
    89  message GetAccountTxsResponse {
    90  	Paging paging = 1;
    91  	repeated TxDetailData data = 2;
    92  }
    93  // Paging defines the structure for required params for handling pagination
    94  message Paging {
    95  	// total number of txs saved in database
    96  	sint64 total = 1;
    97  	// can be either block height or index num
    98  	sint32 from = 2;
    99  	// can be either block height or index num
   100  	sint32 to = 3;
   101  	// count entries by subaccount, serving some places on helix
   102  	sint64 count_by_subaccount = 4;
   103  	// array of tokens to navigate to the next pages
   104  	repeated string next = 5;
   105  }
   106  // TxDetailData wraps tx data includes details information
   107  message TxDetailData {
   108  	string id = 1;
   109  	uint64 block_number = 2;
   110  	string block_timestamp = 3;
   111  	string hash = 4;
   112  	uint32 code = 5;
   113  	bytes data = 6;
   114  	string info = 8;
   115  	sint64 gas_wanted = 9;
   116  	sint64 gas_used = 10;
   117  	GasFee gas_fee = 11;
   118  	string codespace = 12;
   119  	repeated Event events = 13;
   120  	string tx_type = 14;
   121  	bytes messages = 15;
   122  	repeated Signature signatures = 16;
   123  	string memo = 17;
   124  	uint64 tx_number = 18;
   125  	// Block timestamp in unix milli
   126  	uint64 block_unix_timestamp = 19;
   127  	// Transaction log indicating errors
   128  	string error_log = 20;
   129  	// transaction event logs
   130  	bytes logs = 21;
   131  	// peggy bridge claim id, non-zero if tx contains MsgDepositClaim
   132  	repeated sint64 claim_ids = 22;
   133  }
   134  
   135  message GasFee {
   136  	repeated CosmosCoin amount = 1;
   137  	uint64 gas_limit = 2;
   138  	string payer = 3;
   139  	string granter = 4;
   140  }
   141  
   142  message CosmosCoin {
   143  	// Coin denominator
   144  	string denom = 1;
   145  	// Coin amount (big int)
   146  	string amount = 2;
   147  }
   148  
   149  message Event {
   150  	string type = 1;
   151  	map<string, string> attributes = 2;
   152  }
   153  // Signature wraps tx signature
   154  message Signature {
   155  	string pubkey = 1;
   156  	string address = 2;
   157  	uint64 sequence = 3;
   158  	string signature = 4;
   159  }
   160  
   161  message GetContractTxsRequest {
   162  	// Address of contract
   163  	string address = 1;
   164  	sint32 limit = 2;
   165  	uint64 skip = 3;
   166  	sint64 from_number = 4;
   167  	sint64 to_number = 5;
   168  }
   169  
   170  message GetContractTxsResponse {
   171  	Paging paging = 1;
   172  	repeated TxDetailData data = 2;
   173  }
   174  
   175  message GetContractTxsV2Request {
   176  	// Address of contract
   177  	string address = 1;
   178  	// Height of the block
   179  	uint64 height = 2;
   180  	// Unix timestamp (UTC) in milliseconds
   181  	sint64 from = 3;
   182  	// Unix timestamp (UTC) in milliseconds
   183  	sint64 to = 4;
   184  	sint32 limit = 5;
   185  	// Pagination token
   186  	string token = 6;
   187  }
   188  
   189  message GetContractTxsV2Response {
   190  	repeated string next = 1;
   191  	repeated TxDetailData data = 2;
   192  }
   193  
   194  message GetBlocksRequest {
   195  	uint64 before = 1;
   196  	uint64 after = 2;
   197  	sint32 limit = 3;
   198  	// Unix timestamp (UTC) in milliseconds
   199  	uint64 from = 4;
   200  	// Unix timestamp (UTC) in milliseconds
   201  	uint64 to = 5;
   202  }
   203  
   204  message GetBlocksResponse {
   205  	Paging paging = 1;
   206  	repeated BlockInfo data = 2;
   207  }
   208  
   209  message BlockInfo {
   210  	uint64 height = 1;
   211  	string proposer = 2;
   212  	string moniker = 3;
   213  	string block_hash = 4;
   214  	string parent_hash = 5;
   215  	sint64 num_pre_commits = 6;
   216  	sint64 num_txs = 7;
   217  	repeated TxDataRPC txs = 8;
   218  	string timestamp = 9;
   219  }
   220  // TxData wraps tx data
   221  message TxDataRPC {
   222  	string id = 1;
   223  	uint64 block_number = 2;
   224  	string block_timestamp = 3;
   225  	string hash = 4;
   226  	string codespace = 5;
   227  	string messages = 6;
   228  	uint64 tx_number = 7;
   229  	// Transaction log indicating errors
   230  	string error_log = 8;
   231  	uint32 code = 9;
   232  	// peggy bridge claim id, non-zero if tx contains MsgDepositClaim
   233  	repeated sint64 claim_ids = 10;
   234  }
   235  
   236  message GetBlockRequest {
   237  	string id = 1;
   238  }
   239  
   240  message GetBlockResponse {
   241  	// Status of the response.
   242  	string s = 1;
   243  	// Error message.
   244  	string errmsg = 2;
   245  	BlockDetailInfo data = 3;
   246  }
   247  
   248  message BlockDetailInfo {
   249  	uint64 height = 1;
   250  	string proposer = 2;
   251  	string moniker = 3;
   252  	string block_hash = 4;
   253  	string parent_hash = 5;
   254  	sint64 num_pre_commits = 6;
   255  	sint64 num_txs = 7;
   256  	sint64 total_txs = 8;
   257  	repeated TxData txs = 9;
   258  	string timestamp = 10;
   259  }
   260  // TxData wraps tx data
   261  message TxData {
   262  	string id = 1;
   263  	uint64 block_number = 2;
   264  	string block_timestamp = 3;
   265  	string hash = 4;
   266  	string codespace = 5;
   267  	bytes messages = 6;
   268  	uint64 tx_number = 7;
   269  	// Transaction log indicating errors
   270  	string error_log = 8;
   271  	uint32 code = 9;
   272  	bytes tx_msg_types = 10;
   273  	// transaction event logs
   274  	bytes logs = 11;
   275  	// peggy bridge claim id, non-zero if tx contains MsgDepositClaim
   276  	repeated sint64 claim_ids = 12;
   277  }
   278  
   279  message GetValidatorsRequest {
   280  }
   281  
   282  message GetValidatorsResponse {
   283  	// Status of the response.
   284  	string s = 1;
   285  	// Error message.
   286  	string errmsg = 2;
   287  	repeated Validator data = 3;
   288  }
   289  // Validator defines the structure for validator information.
   290  message Validator {
   291  	string id = 1;
   292  	string moniker = 2;
   293  	string operator_address = 3;
   294  	string consensus_address = 4;
   295  	bool jailed = 5;
   296  	sint32 status = 6;
   297  	string tokens = 7;
   298  	string delegator_shares = 8;
   299  	ValidatorDescription description = 9;
   300  	sint64 unbonding_height = 10;
   301  	string unbonding_time = 11;
   302  	string commission_rate = 12;
   303  	string commission_max_rate = 13;
   304  	string commission_max_change_rate = 14;
   305  	string commission_update_time = 15;
   306  	uint64 proposed = 16;
   307  	uint64 signed = 17;
   308  	uint64 missed = 18;
   309  	string timestamp = 19;
   310  	repeated ValidatorUptime uptimes = 20;
   311  	repeated SlashingEvent slashing_events = 21;
   312  	// uptime percentage base on latest 10k block
   313  	double uptime_percentage = 22;
   314  	// URL of the validator logo
   315  	string image_url = 23;
   316  }
   317  
   318  message ValidatorDescription {
   319  	string moniker = 1;
   320  	string identity = 2;
   321  	string website = 3;
   322  	string security_contact = 4;
   323  	string details = 5;
   324  	string image_url = 6;
   325  }
   326  
   327  message ValidatorUptime {
   328  	uint64 block_number = 1;
   329  	string status = 2;
   330  }
   331  
   332  message SlashingEvent {
   333  	uint64 block_number = 1;
   334  	string block_timestamp = 2;
   335  	string address = 3;
   336  	uint64 power = 4;
   337  	string reason = 5;
   338  	string jailed = 6;
   339  	uint64 missed_blocks = 7;
   340  }
   341  
   342  message GetValidatorRequest {
   343  	string address = 1;
   344  }
   345  
   346  message GetValidatorResponse {
   347  	// Status of the response.
   348  	string s = 1;
   349  	// Error message.
   350  	string errmsg = 2;
   351  	Validator data = 3;
   352  }
   353  
   354  message GetValidatorUptimeRequest {
   355  	string address = 1;
   356  }
   357  
   358  message GetValidatorUptimeResponse {
   359  	// Status of the response.
   360  	string s = 1;
   361  	// Error message.
   362  	string errmsg = 2;
   363  	repeated ValidatorUptime data = 3;
   364  }
   365  
   366  message GetTxsRequest {
   367  	uint64 before = 1;
   368  	uint64 after = 2;
   369  	sint32 limit = 3;
   370  	uint64 skip = 4;
   371  	string type = 5;
   372  	string module = 6;
   373  	sint64 from_number = 7;
   374  	sint64 to_number = 8;
   375  	// The starting timestamp in UNIX milliseconds that the txs must be equal or
   376  // older than
   377  	sint64 start_time = 9;
   378  	// The ending timestamp in UNIX milliseconds that the txs must be equal or
   379  // younger than
   380  	sint64 end_time = 10;
   381  	// The status of the txs to be returned
   382  	string status = 11;
   383  }
   384  
   385  message GetTxsResponse {
   386  	Paging paging = 1;
   387  	repeated TxData data = 2;
   388  }
   389  
   390  message GetTxByTxHashRequest {
   391  	string hash = 1;
   392  }
   393  
   394  message GetTxByTxHashResponse {
   395  	// Status of the response.
   396  	string s = 1;
   397  	// Error message.
   398  	string errmsg = 2;
   399  	TxDetailData data = 3;
   400  }
   401  
   402  message GetPeggyDepositTxsRequest {
   403  	// Sender address of deposit request
   404  	string sender = 1;
   405  	// Address of receiveer upon deposit
   406  	string receiver = 2;
   407  	sint32 limit = 3;
   408  	uint64 skip = 4;
   409  }
   410  
   411  message GetPeggyDepositTxsResponse {
   412  	repeated PeggyDepositTx field = 1;
   413  }
   414  // PeggyDepositTx wraps tx data includes peggy deposit tx details information
   415  message PeggyDepositTx {
   416  	// Sender address of deposit request
   417  	string sender = 1;
   418  	// Address of receiveer upon deposit
   419  	string receiver = 2;
   420  	// The event nonce of WithdrawalClaim event emitted by Ethereum chain upon
   421  // deposit
   422  	uint64 event_nonce = 3;
   423  	// The block height of WithdrawalClaim event emitted by Ethereum chain upon
   424  // deposit
   425  	uint64 event_height = 4;
   426  	// Amount of tokens being deposited
   427  	string amount = 5;
   428  	// Denom of tokens being deposited
   429  	string denom = 6;
   430  	// orchestratorAddress who created batch request
   431  	string orchestrator_address = 7;
   432  	string state = 8;
   433  	// The claimType will be DepoistClaim for Deposits
   434  	sint32 claim_type = 9;
   435  	repeated string tx_hashes = 10;
   436  	string created_at = 11;
   437  	string updated_at = 12;
   438  }
   439  
   440  message GetPeggyWithdrawalTxsRequest {
   441  	// Sender address of withdrawal request
   442  	string sender = 1;
   443  	// Address of receiveer upon withdrawal
   444  	string receiver = 2;
   445  	sint32 limit = 3;
   446  	uint64 skip = 4;
   447  }
   448  
   449  message GetPeggyWithdrawalTxsResponse {
   450  	repeated PeggyWithdrawalTx field = 1;
   451  }
   452  // PeggyWithdrawalTx wraps tx data includes peggy withdrawal tx details
   453  // information
   454  message PeggyWithdrawalTx {
   455  	// Sender address of withdrawal request
   456  	string sender = 1;
   457  	// Address of receiveer upon withdrawal
   458  	string receiver = 2;
   459  	// Amount of tokens being withdrawan
   460  	string amount = 3;
   461  	// Denom of tokens being withdrawan
   462  	string denom = 4;
   463  	// The bridge fee paid by sender for withdrawal
   464  	string bridge_fee = 5;
   465  	// A auto incremented unique ID representing the withdrawal request
   466  	uint64 outgoing_tx_id = 6;
   467  	// The timestamp after which Batch request will be discarded if not processed
   468  // already
   469  	uint64 batch_timeout = 7;
   470  	// A auto incremented unique ID representing the Withdrawal Batches
   471  	uint64 batch_nonce = 8;
   472  	// orchestratorAddress who created batch request
   473  	string orchestrator_address = 9;
   474  	// The event nonce of WithdrawalClaim event emitted by Ethereum chain upon
   475  // batch withdrawal
   476  	uint64 event_nonce = 10;
   477  	// The block height of WithdrawalClaim event emitted by Ethereum chain upon
   478  // batch withdrawal
   479  	uint64 event_height = 11;
   480  	string state = 12;
   481  	// The claimType will be WithdrawalClaim for Batch Withdrawals
   482  	sint32 claim_type = 13;
   483  	repeated string tx_hashes = 14;
   484  	string created_at = 15;
   485  	string updated_at = 16;
   486  }
   487  
   488  message GetIBCTransferTxsRequest {
   489  	string sender = 1;
   490  	string receiver = 2;
   491  	string src_channel = 3;
   492  	string src_port = 4;
   493  	string dest_channel = 5;
   494  	string dest_port = 6;
   495  	sint32 limit = 7;
   496  	uint64 skip = 8;
   497  }
   498  
   499  message GetIBCTransferTxsResponse {
   500  	repeated IBCTransferTx field = 1;
   501  }
   502  // IBCTransferTx wraps tx data includes ibc transfer tx details information
   503  message IBCTransferTx {
   504  	// the sender address
   505  	string sender = 1;
   506  	// the recipient address on the destination chain
   507  	string receiver = 2;
   508  	// the port on which the packet will be sent
   509  	string source_port = 3;
   510  	// the channel by which the packet will be sent
   511  	string source_channel = 4;
   512  	// identifies the port on the receiving chain
   513  	string destination_port = 5;
   514  	// identifies the channel end on the receiving chain
   515  	string destination_channel = 6;
   516  	// transfer amount
   517  	string amount = 7;
   518  	// transafer denom
   519  	string denom = 8;
   520  	// Timeout height relative to the current block height. The timeout is disabled
   521  // when set to 0
   522  	string timeout_height = 9;
   523  	// Timeout timestamp (in nanoseconds) relative to the current block timestamp
   524  	uint64 timeout_timestamp = 10;
   525  	// number corresponds to the order of sends and receives, where a Packet with
   526  // an earlier sequence number must be sent and received before a Packet with a
   527  // later sequence number
   528  	uint64 packet_sequence = 11;
   529  	bytes data_hex = 12;
   530  	string state = 13;
   531  	// it's injective chain tx hash array
   532  	repeated string tx_hashes = 14;
   533  	string created_at = 15;
   534  	string updated_at = 16;
   535  }
   536  
   537  message GetWasmCodesRequest {
   538  	sint32 limit = 1;
   539  	sint64 from_number = 2;
   540  	sint64 to_number = 3;
   541  }
   542  
   543  message GetWasmCodesResponse {
   544  	Paging paging = 1;
   545  	repeated WasmCode data = 2;
   546  }
   547  // Detail of cosmwasm stored code
   548  message WasmCode {
   549  	// ID of stored wasmcode, sorted in descending order
   550  	uint64 code_id = 1;
   551  	// Tx hash of store code transaction
   552  	string tx_hash = 2;
   553  	// Checksum of the cosmwasm code
   554  	Checksum checksum = 3;
   555  	// Block time when the code is stored, in millisecond
   556  	uint64 created_at = 4;
   557  	// Contract type of the wasm code
   558  	string contract_type = 5;
   559  	// version string of the wasm code
   560  	string version = 6;
   561  	// describe instantiate permission
   562  	ContractPermission permission = 7;
   563  	// code schema preview
   564  	string code_schema = 8;
   565  	// code repo preview, may contain schema folder
   566  	string code_view = 9;
   567  	// count number of contract instantiation from this code
   568  	uint64 instantiates = 10;
   569  	// creator of this code
   570  	string creator = 11;
   571  	// monotonic order of the code stored
   572  	sint64 code_number = 12;
   573  	// id of the proposal that store this code
   574  	sint64 proposal_id = 13;
   575  }
   576  
   577  message Checksum {
   578  	// Algorithm of hash function
   579  	string algorithm = 1;
   580  	// Hash if apply algorithm to the cosmwasm bytecode
   581  	string hash = 2;
   582  }
   583  
   584  message ContractPermission {
   585  	// Access type of instantiation
   586  	sint32 access_type = 1;
   587  	// Account address
   588  	string address = 2;
   589  }
   590  
   591  message GetWasmCodeByIDRequest {
   592  	// Code ID of the code
   593  	sint64 code_id = 1;
   594  }
   595  
   596  message GetWasmCodeByIDResponse {
   597  	// ID of stored wasmcode, sorted in descending order
   598  	uint64 code_id = 1;
   599  	// Tx hash of store code transaction
   600  	string tx_hash = 2;
   601  	// Checksum of the cosmwasm code
   602  	Checksum checksum = 3;
   603  	// Block time when the code is stored, in millisecond
   604  	uint64 created_at = 4;
   605  	// Contract type of the wasm code
   606  	string contract_type = 5;
   607  	// version string of the wasm code
   608  	string version = 6;
   609  	// describe instantiate permission
   610  	ContractPermission permission = 7;
   611  	// code schema preview
   612  	string code_schema = 8;
   613  	// code repo preview, may contain schema folder
   614  	string code_view = 9;
   615  	// count number of contract instantiation from this code
   616  	uint64 instantiates = 10;
   617  	// creator of this code
   618  	string creator = 11;
   619  	// monotonic order of the code stored
   620  	sint64 code_number = 12;
   621  	// id of the proposal that store this code
   622  	sint64 proposal_id = 13;
   623  }
   624  
   625  message GetWasmContractsRequest {
   626  	sint32 limit = 1;
   627  	sint64 code_id = 2;
   628  	sint64 from_number = 3;
   629  	sint64 to_number = 4;
   630  	bool assets_only = 5;
   631  	sint64 skip = 6;
   632  	// Label of the contract
   633  	string label = 7;
   634  }
   635  
   636  message GetWasmContractsResponse {
   637  	Paging paging = 1;
   638  	repeated WasmContract data = 2;
   639  }
   640  // Detail of cosmwasm instantiated contract
   641  message WasmContract {
   642  	// General name of the contract
   643  	string label = 1;
   644  	// Address of the contract
   645  	string address = 2;
   646  	// hash of the instantiate transaction
   647  	string tx_hash = 3;
   648  	// Address of the contract creator
   649  	string creator = 4;
   650  	// Number of times call to execute contract
   651  	uint64 executes = 5;
   652  	// Block timestamp that contract was instantiated, in millisecond
   653  	uint64 instantiated_at = 6;
   654  	// init message when this contract was instantiated
   655  	string init_message = 7;
   656  	// Block timestamp that contract was called, in millisecond
   657  	uint64 last_executed_at = 8;
   658  	// Contract funds
   659  	repeated ContractFund funds = 9;
   660  	// Code id of the contract
   661  	uint64 code_id = 10;
   662  	// Admin of the contract
   663  	string admin = 11;
   664  	// Latest migrate message of the contract
   665  	string current_migrate_message = 12;
   666  	// Monotonic contract number in database
   667  	sint64 contract_number = 13;
   668  	// Contract version string
   669  	string version = 14;
   670  	// Contract type
   671  	string type = 15;
   672  	Cw20Metadata cw20_metadata = 16;
   673  	// id of the proposal that instantiate this contract
   674  	sint64 proposal_id = 17;
   675  }
   676  
   677  message ContractFund {
   678  	// Denominator
   679  	string denom = 1;
   680  	// Amount of denom
   681  	string amount = 2;
   682  }
   683  // General cw20 metadata
   684  message Cw20Metadata {
   685  	Cw20TokenInfo token_info = 1;
   686  	Cw20MarketingInfo marketing_info = 2;
   687  }
   688  // Token name, symbol, decimal and so on
   689  message Cw20TokenInfo {
   690  	// General name of the token
   691  	string name = 1;
   692  	// Symbol of then token
   693  	string symbol = 2;
   694  	// Decimal places of token
   695  	sint64 decimals = 3;
   696  	// Token's total supply
   697  	string total_supply = 4;
   698  }
   699  // Marketing info
   700  message Cw20MarketingInfo {
   701  	// Project information
   702  	string project = 1;
   703  	// Token's description
   704  	string description = 2;
   705  	// logo (url/embedded)
   706  	string logo = 3;
   707  	// A random field for additional marketing info
   708  	bytes marketing = 4;
   709  }
   710  
   711  message GetWasmContractByAddressRequest {
   712  	// Contract address
   713  	string contract_address = 1;
   714  }
   715  
   716  message GetWasmContractByAddressResponse {
   717  	// General name of the contract
   718  	string label = 1;
   719  	// Address of the contract
   720  	string address = 2;
   721  	// hash of the instantiate transaction
   722  	string tx_hash = 3;
   723  	// Address of the contract creator
   724  	string creator = 4;
   725  	// Number of times call to execute contract
   726  	uint64 executes = 5;
   727  	// Block timestamp that contract was instantiated, in millisecond
   728  	uint64 instantiated_at = 6;
   729  	// init message when this contract was instantiated
   730  	string init_message = 7;
   731  	// Block timestamp that contract was called, in millisecond
   732  	uint64 last_executed_at = 8;
   733  	// Contract funds
   734  	repeated ContractFund funds = 9;
   735  	// Code id of the contract
   736  	uint64 code_id = 10;
   737  	// Admin of the contract
   738  	string admin = 11;
   739  	// Latest migrate message of the contract
   740  	string current_migrate_message = 12;
   741  	// Monotonic contract number in database
   742  	sint64 contract_number = 13;
   743  	// Contract version string
   744  	string version = 14;
   745  	// Contract type
   746  	string type = 15;
   747  	Cw20Metadata cw20_metadata = 16;
   748  	// id of the proposal that instantiate this contract
   749  	sint64 proposal_id = 17;
   750  }
   751  
   752  message GetCw20BalanceRequest {
   753  	// address to list balance of
   754  	string address = 1;
   755  	sint32 limit = 2;
   756  }
   757  
   758  message GetCw20BalanceResponse {
   759  	repeated WasmCw20Balance field = 1;
   760  }
   761  
   762  message WasmCw20Balance {
   763  	// Address of CW20 contract
   764  	string contract_address = 1;
   765  	// Account address
   766  	string account = 2;
   767  	// Account balance
   768  	string balance = 3;
   769  	// update timestamp in milisecond
   770  	sint64 updated_at = 4;
   771  	Cw20Metadata cw20_metadata = 5;
   772  }
   773  
   774  message RelayersRequest {
   775  	// Specify multiple marketIDs to search.
   776  	repeated string market_i_ds = 1;
   777  }
   778  
   779  message RelayersResponse {
   780  	repeated RelayerMarkets field = 1;
   781  }
   782  
   783  message RelayerMarkets {
   784  	// Market ID of the market
   785  	string market_id = 1;
   786  	// Relayers list for specified market
   787  	repeated Relayer relayers = 2;
   788  }
   789  
   790  message Relayer {
   791  	// Relayer identifier
   792  	string name = 1;
   793  	// Call to action. A link to the relayer
   794  	string cta = 2;
   795  }
   796  
   797  message GetBankTransfersRequest {
   798  	// Transfer sender address
   799  	repeated string senders = 1;
   800  	// Transfer recipient address
   801  	repeated string recipients = 2;
   802  	// Returns transfers with the community pool address as either sender or
   803  // recipient
   804  	bool is_community_pool_related = 3;
   805  	sint32 limit = 4;
   806  	uint64 skip = 5;
   807  	// The starting timestamp in UNIX milliseconds that the transfers must be equal
   808  // or older than
   809  	sint64 start_time = 6;
   810  	// The ending timestamp in UNIX milliseconds that the transfers must be equal
   811  // or younger than
   812  	sint64 end_time = 7;
   813  	// Transfers where either the sender or the recipient is one of the addresses
   814  	repeated string address = 8;
   815  	sint32 per_page = 9;
   816  	string token = 10;
   817  }
   818  
   819  message GetBankTransfersResponse {
   820  	Paging paging = 1;
   821  	repeated BankTransfer data = 2;
   822  }
   823  // Bank transfer represents a transfer
   824  message BankTransfer {
   825  	string sender = 1;
   826  	string recipient = 2;
   827  	// Amounts transferred
   828  	repeated Coin amounts = 3;
   829  	uint64 block_number = 4;
   830  	string block_timestamp = 5;
   831  }
   832  
   833  message Coin {
   834  	// Denom of the coin
   835  	string denom = 1;
   836  	string amount = 2;
   837  }
   838  
   839  message StreamTxsRequest {
   840  }
   841  
   842  message StreamTxsResponse {
   843  	string id = 1;
   844  	uint64 block_number = 2;
   845  	string block_timestamp = 3;
   846  	string hash = 4;
   847  	string codespace = 5;
   848  	string messages = 6;
   849  	uint64 tx_number = 7;
   850  	// Transaction log indicating errors
   851  	string error_log = 8;
   852  	uint32 code = 9;
   853  	// peggy bridge claim id, non-zero if tx contains MsgDepositClaim
   854  	repeated sint64 claim_ids = 10;
   855  }
   856  
   857  message StreamBlocksRequest {
   858  }
   859  
   860  message StreamBlocksResponse {
   861  	uint64 height = 1;
   862  	string proposer = 2;
   863  	string moniker = 3;
   864  	string block_hash = 4;
   865  	string parent_hash = 5;
   866  	sint64 num_pre_commits = 6;
   867  	sint64 num_txs = 7;
   868  	repeated TxDataRPC txs = 8;
   869  	string timestamp = 9;
   870  }