github.com/InjectiveLabs/sdk-go@v1.53.0/proto/injective/exchange/v1beta1/authz.proto (about)

     1  syntax = "proto3";
     2  package injective.exchange.v1beta1;
     3  
     4  import "cosmos_proto/cosmos.proto";
     5  import "amino/amino.proto";
     6  
     7  option go_package = "github.com/InjectiveLabs/injective-core/injective-chain/modules/exchange/types";
     8  
     9  // spot authz messages
    10  message CreateSpotLimitOrderAuthz {
    11    option (amino.name) = "exchange/CreateSpotLimitOrderAuthz";
    12    option (cosmos_proto.implements_interface) = "Authorization";
    13    string subaccount_id = 1;
    14    repeated string market_ids = 2;
    15  }
    16  
    17  message CreateSpotMarketOrderAuthz {
    18    option (amino.name) = "exchange/CreateSpotMarketOrderAuthz";
    19    option (cosmos_proto.implements_interface) = "Authorization";
    20    string subaccount_id = 1;
    21    repeated string market_ids = 2;
    22  }
    23  
    24  message BatchCreateSpotLimitOrdersAuthz {
    25    option (amino.name) = "exchange/BatchCreateSpotLimitOrdersAuthz";
    26    option (cosmos_proto.implements_interface) = "Authorization";
    27    string subaccount_id = 1;
    28    repeated string market_ids = 2;
    29  }
    30  
    31  message CancelSpotOrderAuthz {
    32    option (amino.name) = "exchange/CancelSpotOrderAuthz";
    33    option (cosmos_proto.implements_interface) = "Authorization";
    34    string subaccount_id = 1;
    35    repeated string market_ids = 2;
    36  }
    37  
    38  message BatchCancelSpotOrdersAuthz {
    39    option (amino.name) = "exchange/BatchCancelSpotOrdersAuthz";
    40    option (cosmos_proto.implements_interface) = "Authorization";
    41    string subaccount_id = 1;
    42    repeated string market_ids = 2;
    43  }
    44  
    45  // derivative authz messages
    46  message CreateDerivativeLimitOrderAuthz {
    47    option (amino.name) = "exchange/CreateDerivativeLimitOrderAuthz";
    48    option (cosmos_proto.implements_interface) = "Authorization";
    49    string subaccount_id = 1;
    50    repeated string market_ids = 2;
    51  }
    52  
    53  message CreateDerivativeMarketOrderAuthz {
    54    option (amino.name) = "exchange/CreateDerivativeMarketOrderAuthz";
    55    option (cosmos_proto.implements_interface) = "Authorization";
    56    string subaccount_id = 1;
    57    repeated string market_ids = 2;
    58  }
    59  
    60  message BatchCreateDerivativeLimitOrdersAuthz {
    61    option (amino.name) = "exchange/BatchCreateDerivativeLimitOrdersAuthz";
    62    option (cosmos_proto.implements_interface) = "Authorization";
    63    string subaccount_id = 1;
    64    repeated string market_ids = 2;
    65  }
    66  
    67  message CancelDerivativeOrderAuthz {
    68    option (amino.name) = "exchange/CancelDerivativeOrderAuthz";
    69    option (cosmos_proto.implements_interface) = "Authorization";
    70    string subaccount_id = 1;
    71    repeated string market_ids = 2;
    72  }
    73  
    74  message BatchCancelDerivativeOrdersAuthz {
    75    option (amino.name) = "exchange/BatchCancelDerivativeOrdersAuthz";
    76    option (cosmos_proto.implements_interface) = "Authorization";
    77    string subaccount_id = 1;
    78    repeated string market_ids = 2;
    79  }
    80  
    81  // common authz message used in both spot & derivative markets
    82  message BatchUpdateOrdersAuthz {
    83    option (amino.name) = "exchange/BatchUpdateOrdersAuthz";
    84    option (cosmos_proto.implements_interface) = "Authorization";
    85    string subaccount_id = 1;
    86    repeated string spot_markets = 2;
    87    repeated string derivative_markets = 3;
    88  }