@injectivelabs/indexer-proto-ts-v2 1.18.13 → 1.18.14-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/generated/injective_accounts_rpc_pb.d.ts +1 -43
- package/generated/injective_accounts_rpc_pb.js +0 -43
- package/generated/injective_derivative_exchange_rpc_pb.d.ts +1 -43
- package/generated/injective_derivative_exchange_rpc_pb.js +0 -43
- package/generated/injective_rfq_gw_rpc_pb.client.d.ts +114 -0
- package/generated/injective_rfq_gw_rpc_pb.client.js +54 -0
- package/generated/injective_rfq_gw_rpc_pb.d.ts +2548 -0
- package/generated/injective_rfq_gw_rpc_pb.js +2349 -0
- package/generated/injective_rfq_rpc_pb.d.ts +18 -7
- package/generated/injective_tc_derivatives_rpc_pb.d.ts +26 -24
- package/generated/injective_tc_derivatives_rpc_pb.js +12 -12
- package/package.json +1 -1
|
@@ -1023,24 +1023,6 @@ export interface DerivativeTrade {
|
|
|
1023
1023
|
* @generated from protobuf field: string pnl = 14
|
|
1024
1024
|
*/
|
|
1025
1025
|
pnl: string;
|
|
1026
|
-
/**
|
|
1027
|
-
* True if the position associated with this trade is long
|
|
1028
|
-
*
|
|
1029
|
-
* @generated from protobuf field: bool position_is_long = 15
|
|
1030
|
-
*/
|
|
1031
|
-
positionIsLong: boolean;
|
|
1032
|
-
/**
|
|
1033
|
-
* Timestamp when the position was opened in UNIX millis
|
|
1034
|
-
*
|
|
1035
|
-
* @generated from protobuf field: sint64 position_opened_at = 16
|
|
1036
|
-
*/
|
|
1037
|
-
positionOpenedAt: bigint;
|
|
1038
|
-
/**
|
|
1039
|
-
* Entry price of the position associated with this trade
|
|
1040
|
-
*
|
|
1041
|
-
* @generated from protobuf field: string position_entry_price = 17
|
|
1042
|
-
*/
|
|
1043
|
-
positionEntryPrice: string;
|
|
1044
1026
|
}
|
|
1045
1027
|
/**
|
|
1046
1028
|
* @generated from protobuf message injective_accounts_rpc.PositionDelta
|
|
@@ -4079,10 +4061,7 @@ class DerivativeTrade$Type extends MessageType<DerivativeTrade> {
|
|
|
4079
4061
|
{ no: 11, name: "trade_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4080
4062
|
{ no: 12, name: "execution_side", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4081
4063
|
{ no: 13, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4082
|
-
{ no: 14, name: "pnl", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4083
|
-
{ no: 15, name: "position_is_long", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
4084
|
-
{ no: 16, name: "position_opened_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
4085
|
-
{ no: 17, name: "position_entry_price", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4064
|
+
{ no: 14, name: "pnl", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4086
4065
|
]);
|
|
4087
4066
|
}
|
|
4088
4067
|
create(value?: PartialMessage<DerivativeTrade>): DerivativeTrade {
|
|
@@ -4100,9 +4079,6 @@ class DerivativeTrade$Type extends MessageType<DerivativeTrade> {
|
|
|
4100
4079
|
message.executionSide = "";
|
|
4101
4080
|
message.cid = "";
|
|
4102
4081
|
message.pnl = "";
|
|
4103
|
-
message.positionIsLong = false;
|
|
4104
|
-
message.positionOpenedAt = 0n;
|
|
4105
|
-
message.positionEntryPrice = "";
|
|
4106
4082
|
if (value !== undefined)
|
|
4107
4083
|
reflectionMergePartial<DerivativeTrade>(this, message, value);
|
|
4108
4084
|
return message;
|
|
@@ -4154,15 +4130,6 @@ class DerivativeTrade$Type extends MessageType<DerivativeTrade> {
|
|
|
4154
4130
|
case /* string pnl */ 14:
|
|
4155
4131
|
message.pnl = reader.string();
|
|
4156
4132
|
break;
|
|
4157
|
-
case /* bool position_is_long */ 15:
|
|
4158
|
-
message.positionIsLong = reader.bool();
|
|
4159
|
-
break;
|
|
4160
|
-
case /* sint64 position_opened_at */ 16:
|
|
4161
|
-
message.positionOpenedAt = reader.sint64().toBigInt();
|
|
4162
|
-
break;
|
|
4163
|
-
case /* string position_entry_price */ 17:
|
|
4164
|
-
message.positionEntryPrice = reader.string();
|
|
4165
|
-
break;
|
|
4166
4133
|
default:
|
|
4167
4134
|
let u = options.readUnknownField;
|
|
4168
4135
|
if (u === "throw")
|
|
@@ -4217,15 +4184,6 @@ class DerivativeTrade$Type extends MessageType<DerivativeTrade> {
|
|
|
4217
4184
|
/* string pnl = 14; */
|
|
4218
4185
|
if (message.pnl !== "")
|
|
4219
4186
|
writer.tag(14, WireType.LengthDelimited).string(message.pnl);
|
|
4220
|
-
/* bool position_is_long = 15; */
|
|
4221
|
-
if (message.positionIsLong !== false)
|
|
4222
|
-
writer.tag(15, WireType.Varint).bool(message.positionIsLong);
|
|
4223
|
-
/* sint64 position_opened_at = 16; */
|
|
4224
|
-
if (message.positionOpenedAt !== 0n)
|
|
4225
|
-
writer.tag(16, WireType.Varint).sint64(message.positionOpenedAt);
|
|
4226
|
-
/* string position_entry_price = 17; */
|
|
4227
|
-
if (message.positionEntryPrice !== "")
|
|
4228
|
-
writer.tag(17, WireType.LengthDelimited).string(message.positionEntryPrice);
|
|
4229
4187
|
let u = options.writeUnknownFields;
|
|
4230
4188
|
if (u !== false)
|
|
4231
4189
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2994,28 +2994,6 @@ class DerivativeTrade$Type extends MessageType {
|
|
|
2994
2994
|
kind: "scalar",
|
|
2995
2995
|
T: 9
|
|
2996
2996
|
/*ScalarType.STRING*/
|
|
2997
|
-
},
|
|
2998
|
-
{
|
|
2999
|
-
no: 15,
|
|
3000
|
-
name: "position_is_long",
|
|
3001
|
-
kind: "scalar",
|
|
3002
|
-
T: 8
|
|
3003
|
-
/*ScalarType.BOOL*/
|
|
3004
|
-
},
|
|
3005
|
-
{
|
|
3006
|
-
no: 16,
|
|
3007
|
-
name: "position_opened_at",
|
|
3008
|
-
kind: "scalar",
|
|
3009
|
-
T: 18,
|
|
3010
|
-
L: 0
|
|
3011
|
-
/*LongType.BIGINT*/
|
|
3012
|
-
},
|
|
3013
|
-
{
|
|
3014
|
-
no: 17,
|
|
3015
|
-
name: "position_entry_price",
|
|
3016
|
-
kind: "scalar",
|
|
3017
|
-
T: 9
|
|
3018
|
-
/*ScalarType.STRING*/
|
|
3019
2997
|
}
|
|
3020
2998
|
]);
|
|
3021
2999
|
}
|
|
@@ -3034,9 +3012,6 @@ class DerivativeTrade$Type extends MessageType {
|
|
|
3034
3012
|
message.executionSide = "";
|
|
3035
3013
|
message.cid = "";
|
|
3036
3014
|
message.pnl = "";
|
|
3037
|
-
message.positionIsLong = false;
|
|
3038
|
-
message.positionOpenedAt = 0n;
|
|
3039
|
-
message.positionEntryPrice = "";
|
|
3040
3015
|
if (value !== void 0)
|
|
3041
3016
|
reflectionMergePartial(this, message, value);
|
|
3042
3017
|
return message;
|
|
@@ -3102,18 +3077,6 @@ class DerivativeTrade$Type extends MessageType {
|
|
|
3102
3077
|
14:
|
|
3103
3078
|
message.pnl = reader.string();
|
|
3104
3079
|
break;
|
|
3105
|
-
case /* bool position_is_long */
|
|
3106
|
-
15:
|
|
3107
|
-
message.positionIsLong = reader.bool();
|
|
3108
|
-
break;
|
|
3109
|
-
case /* sint64 position_opened_at */
|
|
3110
|
-
16:
|
|
3111
|
-
message.positionOpenedAt = reader.sint64().toBigInt();
|
|
3112
|
-
break;
|
|
3113
|
-
case /* string position_entry_price */
|
|
3114
|
-
17:
|
|
3115
|
-
message.positionEntryPrice = reader.string();
|
|
3116
|
-
break;
|
|
3117
3080
|
default:
|
|
3118
3081
|
let u = options.readUnknownField;
|
|
3119
3082
|
if (u === "throw")
|
|
@@ -3154,12 +3117,6 @@ class DerivativeTrade$Type extends MessageType {
|
|
|
3154
3117
|
writer.tag(13, WireType.LengthDelimited).string(message.cid);
|
|
3155
3118
|
if (message.pnl !== "")
|
|
3156
3119
|
writer.tag(14, WireType.LengthDelimited).string(message.pnl);
|
|
3157
|
-
if (message.positionIsLong !== false)
|
|
3158
|
-
writer.tag(15, WireType.Varint).bool(message.positionIsLong);
|
|
3159
|
-
if (message.positionOpenedAt !== 0n)
|
|
3160
|
-
writer.tag(16, WireType.Varint).sint64(message.positionOpenedAt);
|
|
3161
|
-
if (message.positionEntryPrice !== "")
|
|
3162
|
-
writer.tag(17, WireType.LengthDelimited).string(message.positionEntryPrice);
|
|
3163
3120
|
let u = options.writeUnknownFields;
|
|
3164
3121
|
if (u !== false)
|
|
3165
3122
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2090,24 +2090,6 @@ export interface DerivativeTrade {
|
|
|
2090
2090
|
* @generated from protobuf field: string pnl = 14
|
|
2091
2091
|
*/
|
|
2092
2092
|
pnl: string;
|
|
2093
|
-
/**
|
|
2094
|
-
* True if the position associated with this trade is long
|
|
2095
|
-
*
|
|
2096
|
-
* @generated from protobuf field: bool position_is_long = 15
|
|
2097
|
-
*/
|
|
2098
|
-
positionIsLong: boolean;
|
|
2099
|
-
/**
|
|
2100
|
-
* Timestamp when the position was opened in UNIX millis
|
|
2101
|
-
*
|
|
2102
|
-
* @generated from protobuf field: sint64 position_opened_at = 16
|
|
2103
|
-
*/
|
|
2104
|
-
positionOpenedAt: bigint;
|
|
2105
|
-
/**
|
|
2106
|
-
* Entry price of the position associated with this trade
|
|
2107
|
-
*
|
|
2108
|
-
* @generated from protobuf field: string position_entry_price = 17
|
|
2109
|
-
*/
|
|
2110
|
-
positionEntryPrice: string;
|
|
2111
2093
|
}
|
|
2112
2094
|
/**
|
|
2113
2095
|
* @generated from protobuf message injective_derivative_exchange_rpc.PositionDelta
|
|
@@ -7369,10 +7351,7 @@ class DerivativeTrade$Type extends MessageType<DerivativeTrade> {
|
|
|
7369
7351
|
{ no: 11, name: "trade_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7370
7352
|
{ no: 12, name: "execution_side", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7371
7353
|
{ no: 13, name: "cid", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
7372
|
-
{ no: 14, name: "pnl", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
7373
|
-
{ no: 15, name: "position_is_long", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
7374
|
-
{ no: 16, name: "position_opened_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
7375
|
-
{ no: 17, name: "position_entry_price", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
7354
|
+
{ no: 14, name: "pnl", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
7376
7355
|
]);
|
|
7377
7356
|
}
|
|
7378
7357
|
create(value?: PartialMessage<DerivativeTrade>): DerivativeTrade {
|
|
@@ -7390,9 +7369,6 @@ class DerivativeTrade$Type extends MessageType<DerivativeTrade> {
|
|
|
7390
7369
|
message.executionSide = "";
|
|
7391
7370
|
message.cid = "";
|
|
7392
7371
|
message.pnl = "";
|
|
7393
|
-
message.positionIsLong = false;
|
|
7394
|
-
message.positionOpenedAt = 0n;
|
|
7395
|
-
message.positionEntryPrice = "";
|
|
7396
7372
|
if (value !== undefined)
|
|
7397
7373
|
reflectionMergePartial<DerivativeTrade>(this, message, value);
|
|
7398
7374
|
return message;
|
|
@@ -7444,15 +7420,6 @@ class DerivativeTrade$Type extends MessageType<DerivativeTrade> {
|
|
|
7444
7420
|
case /* string pnl */ 14:
|
|
7445
7421
|
message.pnl = reader.string();
|
|
7446
7422
|
break;
|
|
7447
|
-
case /* bool position_is_long */ 15:
|
|
7448
|
-
message.positionIsLong = reader.bool();
|
|
7449
|
-
break;
|
|
7450
|
-
case /* sint64 position_opened_at */ 16:
|
|
7451
|
-
message.positionOpenedAt = reader.sint64().toBigInt();
|
|
7452
|
-
break;
|
|
7453
|
-
case /* string position_entry_price */ 17:
|
|
7454
|
-
message.positionEntryPrice = reader.string();
|
|
7455
|
-
break;
|
|
7456
7423
|
default:
|
|
7457
7424
|
let u = options.readUnknownField;
|
|
7458
7425
|
if (u === "throw")
|
|
@@ -7507,15 +7474,6 @@ class DerivativeTrade$Type extends MessageType<DerivativeTrade> {
|
|
|
7507
7474
|
/* string pnl = 14; */
|
|
7508
7475
|
if (message.pnl !== "")
|
|
7509
7476
|
writer.tag(14, WireType.LengthDelimited).string(message.pnl);
|
|
7510
|
-
/* bool position_is_long = 15; */
|
|
7511
|
-
if (message.positionIsLong !== false)
|
|
7512
|
-
writer.tag(15, WireType.Varint).bool(message.positionIsLong);
|
|
7513
|
-
/* sint64 position_opened_at = 16; */
|
|
7514
|
-
if (message.positionOpenedAt !== 0n)
|
|
7515
|
-
writer.tag(16, WireType.Varint).sint64(message.positionOpenedAt);
|
|
7516
|
-
/* string position_entry_price = 17; */
|
|
7517
|
-
if (message.positionEntryPrice !== "")
|
|
7518
|
-
writer.tag(17, WireType.LengthDelimited).string(message.positionEntryPrice);
|
|
7519
7477
|
let u = options.writeUnknownFields;
|
|
7520
7478
|
if (u !== false)
|
|
7521
7479
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -5845,28 +5845,6 @@ class DerivativeTrade$Type extends MessageType {
|
|
|
5845
5845
|
kind: "scalar",
|
|
5846
5846
|
T: 9
|
|
5847
5847
|
/*ScalarType.STRING*/
|
|
5848
|
-
},
|
|
5849
|
-
{
|
|
5850
|
-
no: 15,
|
|
5851
|
-
name: "position_is_long",
|
|
5852
|
-
kind: "scalar",
|
|
5853
|
-
T: 8
|
|
5854
|
-
/*ScalarType.BOOL*/
|
|
5855
|
-
},
|
|
5856
|
-
{
|
|
5857
|
-
no: 16,
|
|
5858
|
-
name: "position_opened_at",
|
|
5859
|
-
kind: "scalar",
|
|
5860
|
-
T: 18,
|
|
5861
|
-
L: 0
|
|
5862
|
-
/*LongType.BIGINT*/
|
|
5863
|
-
},
|
|
5864
|
-
{
|
|
5865
|
-
no: 17,
|
|
5866
|
-
name: "position_entry_price",
|
|
5867
|
-
kind: "scalar",
|
|
5868
|
-
T: 9
|
|
5869
|
-
/*ScalarType.STRING*/
|
|
5870
5848
|
}
|
|
5871
5849
|
]);
|
|
5872
5850
|
}
|
|
@@ -5885,9 +5863,6 @@ class DerivativeTrade$Type extends MessageType {
|
|
|
5885
5863
|
message.executionSide = "";
|
|
5886
5864
|
message.cid = "";
|
|
5887
5865
|
message.pnl = "";
|
|
5888
|
-
message.positionIsLong = false;
|
|
5889
|
-
message.positionOpenedAt = 0n;
|
|
5890
|
-
message.positionEntryPrice = "";
|
|
5891
5866
|
if (value !== void 0)
|
|
5892
5867
|
reflectionMergePartial(this, message, value);
|
|
5893
5868
|
return message;
|
|
@@ -5953,18 +5928,6 @@ class DerivativeTrade$Type extends MessageType {
|
|
|
5953
5928
|
14:
|
|
5954
5929
|
message.pnl = reader.string();
|
|
5955
5930
|
break;
|
|
5956
|
-
case /* bool position_is_long */
|
|
5957
|
-
15:
|
|
5958
|
-
message.positionIsLong = reader.bool();
|
|
5959
|
-
break;
|
|
5960
|
-
case /* sint64 position_opened_at */
|
|
5961
|
-
16:
|
|
5962
|
-
message.positionOpenedAt = reader.sint64().toBigInt();
|
|
5963
|
-
break;
|
|
5964
|
-
case /* string position_entry_price */
|
|
5965
|
-
17:
|
|
5966
|
-
message.positionEntryPrice = reader.string();
|
|
5967
|
-
break;
|
|
5968
5931
|
default:
|
|
5969
5932
|
let u = options.readUnknownField;
|
|
5970
5933
|
if (u === "throw")
|
|
@@ -6005,12 +5968,6 @@ class DerivativeTrade$Type extends MessageType {
|
|
|
6005
5968
|
writer.tag(13, WireType.LengthDelimited).string(message.cid);
|
|
6006
5969
|
if (message.pnl !== "")
|
|
6007
5970
|
writer.tag(14, WireType.LengthDelimited).string(message.pnl);
|
|
6008
|
-
if (message.positionIsLong !== false)
|
|
6009
|
-
writer.tag(15, WireType.Varint).bool(message.positionIsLong);
|
|
6010
|
-
if (message.positionOpenedAt !== 0n)
|
|
6011
|
-
writer.tag(16, WireType.Varint).sint64(message.positionOpenedAt);
|
|
6012
|
-
if (message.positionEntryPrice !== "")
|
|
6013
|
-
writer.tag(17, WireType.LengthDelimited).string(message.positionEntryPrice);
|
|
6014
5971
|
let u = options.writeUnknownFields;
|
|
6015
5972
|
if (u !== false)
|
|
6016
5973
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "injective_rfq_gw_rpc.proto" (package "injective_rfq_gw_rpc", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Code generated with goa v3.7.0, DO NOT EDIT.
|
|
6
|
+
//
|
|
7
|
+
// InjectiveRfqGwRPC protocol buffer definition
|
|
8
|
+
//
|
|
9
|
+
// Command:
|
|
10
|
+
// $ goa gen github.com/InjectiveLabs/injective-indexer/api/design -o ../
|
|
11
|
+
//
|
|
12
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
13
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
14
|
+
import { InjectiveRfqGwRPC } from "./injective_rfq_gw_rpc_pb";
|
|
15
|
+
import type { PrepareResponse } from "./injective_rfq_gw_rpc_pb";
|
|
16
|
+
import type { PrepareRequest } from "./injective_rfq_gw_rpc_pb";
|
|
17
|
+
import type { PrepareEip712Response } from "./injective_rfq_gw_rpc_pb";
|
|
18
|
+
import type { PrepareEip712Request } from "./injective_rfq_gw_rpc_pb";
|
|
19
|
+
import type { PrepareAutoSignResponse } from "./injective_rfq_gw_rpc_pb";
|
|
20
|
+
import type { PrepareAutoSignRequest } from "./injective_rfq_gw_rpc_pb";
|
|
21
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
22
|
+
import type { PrepareEip712AutoSignResponse } from "./injective_rfq_gw_rpc_pb";
|
|
23
|
+
import type { PrepareEip712AutoSignRequest } from "./injective_rfq_gw_rpc_pb";
|
|
24
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
25
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
26
|
+
/**
|
|
27
|
+
* InjectiveRfqGwRPC defines gRPC API of the RFQ Gw service.
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf service injective_rfq_gw_rpc.InjectiveRfqGwRPC
|
|
30
|
+
*/
|
|
31
|
+
export interface IInjectiveRfqGwRPCClient {
|
|
32
|
+
/**
|
|
33
|
+
* Full RFQ cycle for EVM autosign wallets: create request, wait for quotes,
|
|
34
|
+
* prepare fee-delegated EIP712 typed data with MsgExec wrapper signable by the
|
|
35
|
+
* ephemeral autosign EVM key
|
|
36
|
+
*
|
|
37
|
+
* @generated from protobuf rpc: PrepareEip712AutoSign
|
|
38
|
+
*/
|
|
39
|
+
prepareEip712AutoSign(input: PrepareEip712AutoSignRequest, options?: RpcOptions): UnaryCall<PrepareEip712AutoSignRequest, PrepareEip712AutoSignResponse>;
|
|
40
|
+
/**
|
|
41
|
+
* Full RFQ cycle for autosign wallets: create request, wait for quotes,
|
|
42
|
+
* prepare fee-delegated MsgExec tx signable by the ephemeral autosign key
|
|
43
|
+
*
|
|
44
|
+
* @generated from protobuf rpc: PrepareAutoSign
|
|
45
|
+
*/
|
|
46
|
+
prepareAutoSign(input: PrepareAutoSignRequest, options?: RpcOptions): UnaryCall<PrepareAutoSignRequest, PrepareAutoSignResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Full RFQ cycle with EIP712 output: create request, wait for quotes, prepare
|
|
49
|
+
* fee-delegated EIP712 typed data for eth_signTypedData_v4
|
|
50
|
+
*
|
|
51
|
+
* @generated from protobuf rpc: PrepareEip712
|
|
52
|
+
*/
|
|
53
|
+
prepareEip712(input: PrepareEip712Request, options?: RpcOptions): UnaryCall<PrepareEip712Request, PrepareEip712Response>;
|
|
54
|
+
/**
|
|
55
|
+
* Full RFQ cycle: create request, wait for quotes, prepare fee-delegated
|
|
56
|
+
* accept tx
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf rpc: Prepare
|
|
59
|
+
*/
|
|
60
|
+
prepare(input: PrepareRequest, options?: RpcOptions): UnaryCall<PrepareRequest, PrepareResponse>;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* InjectiveRfqGwRPC defines gRPC API of the RFQ Gw service.
|
|
64
|
+
*
|
|
65
|
+
* @generated from protobuf service injective_rfq_gw_rpc.InjectiveRfqGwRPC
|
|
66
|
+
*/
|
|
67
|
+
export class InjectiveRfqGwRPCClient implements IInjectiveRfqGwRPCClient, ServiceInfo {
|
|
68
|
+
typeName = InjectiveRfqGwRPC.typeName;
|
|
69
|
+
methods = InjectiveRfqGwRPC.methods;
|
|
70
|
+
options = InjectiveRfqGwRPC.options;
|
|
71
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Full RFQ cycle for EVM autosign wallets: create request, wait for quotes,
|
|
75
|
+
* prepare fee-delegated EIP712 typed data with MsgExec wrapper signable by the
|
|
76
|
+
* ephemeral autosign EVM key
|
|
77
|
+
*
|
|
78
|
+
* @generated from protobuf rpc: PrepareEip712AutoSign
|
|
79
|
+
*/
|
|
80
|
+
prepareEip712AutoSign(input: PrepareEip712AutoSignRequest, options?: RpcOptions): UnaryCall<PrepareEip712AutoSignRequest, PrepareEip712AutoSignResponse> {
|
|
81
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
82
|
+
return stackIntercept<PrepareEip712AutoSignRequest, PrepareEip712AutoSignResponse>("unary", this._transport, method, opt, input);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Full RFQ cycle for autosign wallets: create request, wait for quotes,
|
|
86
|
+
* prepare fee-delegated MsgExec tx signable by the ephemeral autosign key
|
|
87
|
+
*
|
|
88
|
+
* @generated from protobuf rpc: PrepareAutoSign
|
|
89
|
+
*/
|
|
90
|
+
prepareAutoSign(input: PrepareAutoSignRequest, options?: RpcOptions): UnaryCall<PrepareAutoSignRequest, PrepareAutoSignResponse> {
|
|
91
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
92
|
+
return stackIntercept<PrepareAutoSignRequest, PrepareAutoSignResponse>("unary", this._transport, method, opt, input);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Full RFQ cycle with EIP712 output: create request, wait for quotes, prepare
|
|
96
|
+
* fee-delegated EIP712 typed data for eth_signTypedData_v4
|
|
97
|
+
*
|
|
98
|
+
* @generated from protobuf rpc: PrepareEip712
|
|
99
|
+
*/
|
|
100
|
+
prepareEip712(input: PrepareEip712Request, options?: RpcOptions): UnaryCall<PrepareEip712Request, PrepareEip712Response> {
|
|
101
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
102
|
+
return stackIntercept<PrepareEip712Request, PrepareEip712Response>("unary", this._transport, method, opt, input);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Full RFQ cycle: create request, wait for quotes, prepare fee-delegated
|
|
106
|
+
* accept tx
|
|
107
|
+
*
|
|
108
|
+
* @generated from protobuf rpc: Prepare
|
|
109
|
+
*/
|
|
110
|
+
prepare(input: PrepareRequest, options?: RpcOptions): UnaryCall<PrepareRequest, PrepareResponse> {
|
|
111
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
112
|
+
return stackIntercept<PrepareRequest, PrepareResponse>("unary", this._transport, method, opt, input);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { InjectiveRfqGwRPC } from "./injective_rfq_gw_rpc_pb.js";
|
|
2
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
class InjectiveRfqGwRPCClient {
|
|
4
|
+
constructor(_transport) {
|
|
5
|
+
this._transport = _transport;
|
|
6
|
+
this.typeName = InjectiveRfqGwRPC.typeName;
|
|
7
|
+
this.methods = InjectiveRfqGwRPC.methods;
|
|
8
|
+
this.options = InjectiveRfqGwRPC.options;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Full RFQ cycle for EVM autosign wallets: create request, wait for quotes,
|
|
12
|
+
* prepare fee-delegated EIP712 typed data with MsgExec wrapper signable by the
|
|
13
|
+
* ephemeral autosign EVM key
|
|
14
|
+
*
|
|
15
|
+
* @generated from protobuf rpc: PrepareEip712AutoSign
|
|
16
|
+
*/
|
|
17
|
+
prepareEip712AutoSign(input, options) {
|
|
18
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
19
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Full RFQ cycle for autosign wallets: create request, wait for quotes,
|
|
23
|
+
* prepare fee-delegated MsgExec tx signable by the ephemeral autosign key
|
|
24
|
+
*
|
|
25
|
+
* @generated from protobuf rpc: PrepareAutoSign
|
|
26
|
+
*/
|
|
27
|
+
prepareAutoSign(input, options) {
|
|
28
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
29
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Full RFQ cycle with EIP712 output: create request, wait for quotes, prepare
|
|
33
|
+
* fee-delegated EIP712 typed data for eth_signTypedData_v4
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf rpc: PrepareEip712
|
|
36
|
+
*/
|
|
37
|
+
prepareEip712(input, options) {
|
|
38
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
39
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Full RFQ cycle: create request, wait for quotes, prepare fee-delegated
|
|
43
|
+
* accept tx
|
|
44
|
+
*
|
|
45
|
+
* @generated from protobuf rpc: Prepare
|
|
46
|
+
*/
|
|
47
|
+
prepare(input, options) {
|
|
48
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
49
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
InjectiveRfqGwRPCClient
|
|
54
|
+
};
|