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

     1  // Code generated with goa v3.7.0, DO NOT EDIT.
     2  //
     3  // InjectiveInsuranceRPC 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_insurance_rpc;
    11  
    12  option go_package = "/injective_insurance_rpcpb";
    13  
    14  // InjectiveInsuranceRPC defines gRPC API of Insurance provider.
    15  service InjectiveInsuranceRPC {
    16  	// Funds lists all insurance funds.
    17  	rpc Funds (FundsRequest) returns (FundsResponse);
    18  	// Funds returns an insurance fund for a given insurance fund token denom.
    19  	rpc Fund (FundRequest) returns (FundResponse);
    20  	// PendingRedemptions lists all pending redemptions according to a filter
    21  	rpc Redemptions (RedemptionsRequest) returns (RedemptionsResponse);
    22  }
    23  
    24  message FundsRequest {
    25  }
    26  
    27  message FundsResponse {
    28  	repeated InsuranceFund funds = 1;
    29  }
    30  
    31  message InsuranceFund {
    32  	// Ticker of the derivative market.
    33  	string market_ticker = 1;
    34  	// Derivative Market ID
    35  	string market_id = 2;
    36  	// Coin denom used for the underwriting of the insurance fund.
    37  	string deposit_denom = 3;
    38  	// Pool token denom
    39  	string pool_token_denom = 4;
    40  	// Redemption notice period duration in seconds.
    41  	sint64 redemption_notice_period_duration = 5;
    42  	string balance = 6;
    43  	string total_share = 7;
    44  	// Oracle base currency
    45  	string oracle_base = 8;
    46  	// Oracle quote currency
    47  	string oracle_quote = 9;
    48  	// Oracle Type
    49  	string oracle_type = 10;
    50  	// Defines the expiry, if any
    51  	sint64 expiry = 11;
    52  	// Token metadata for the deposit asset, only for Ethereum-based assets
    53  	TokenMeta deposit_token_meta = 12;
    54  }
    55  
    56  message TokenMeta {
    57  	// Token full name
    58  	string name = 1;
    59  	// Token Ethereum contract address
    60  	string address = 2;
    61  	// Token symbol short name
    62  	string symbol = 3;
    63  	// URL to the logo image
    64  	string logo = 4;
    65  	// Token decimals
    66  	sint32 decimals = 5;
    67  	// Token metadata fetched timestamp in UNIX millis.
    68  	sint64 updated_at = 6;
    69  }
    70  
    71  message FundRequest {
    72  	// denom of insurance fund
    73  	string denom = 1;
    74  }
    75  
    76  message FundResponse {
    77  	// The insurance fund corresponding to the provided token denom
    78  	InsuranceFund fund = 1;
    79  }
    80  
    81  message RedemptionsRequest {
    82  	// Account address of the redemption owner
    83  	string redeemer = 1;
    84  	// Denom of the insurance pool token.
    85  	string redemption_denom = 2;
    86  	// Status of the redemption. Either pending or disbursed.
    87  	string status = 3;
    88  }
    89  
    90  message RedemptionsResponse {
    91  	repeated RedemptionSchedule redemption_schedules = 1;
    92  }
    93  
    94  message RedemptionSchedule {
    95  	// Redemption ID.
    96  	uint64 redemption_id = 1;
    97  	// Status of the redemption. Either pending or disbursed.
    98  	string status = 2;
    99  	// Account address of the redemption owner
   100  	string redeemer = 3;
   101  	// Claimable redemption time in seconds
   102  	sint64 claimable_redemption_time = 4;
   103  	// Amount of pool tokens being redeemed.
   104  	string redemption_amount = 5;
   105  	// Pool token denom being redeemed.
   106  	string redemption_denom = 6;
   107  	// Redemption request time in unix milliseconds.
   108  	sint64 requested_at = 7;
   109  	// Amount of quote tokens disbursed
   110  	string disbursed_amount = 8;
   111  	// Denom of the quote tokens disbursed
   112  	string disbursed_denom = 9;
   113  	// Redemption disbursement time in unix milliseconds.
   114  	sint64 disbursed_at = 10;
   115  }