@injectivelabs/indexer-proto-ts-v2 1.18.21 → 1.18.23
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_chart_rpc_pb.d.ts +16 -1
- package/generated/injective_chart_rpc_pb.js +14 -0
- package/generated/injective_exchange_rpc_pb.client.d.ts +17 -0
- package/generated/injective_exchange_rpc_pb.client.js +9 -0
- package/generated/injective_exchange_rpc_pb.d.ts +187 -1
- package/generated/injective_exchange_rpc_pb.js +167 -1
- package/generated/injective_rfq_gw_rpc_pb.d.ts +67 -3
- package/generated/injective_rfq_gw_rpc_pb.js +56 -0
- package/generated/injective_rfq_rpc_pb.d.ts +61 -6
- package/generated/injective_rfq_rpc_pb.js +58 -0
- package/generated/injective_tc_derivatives_rpc_pb.client.d.ts +17 -0
- package/generated/injective_tc_derivatives_rpc_pb.client.js +9 -0
- package/generated/injective_tc_derivatives_rpc_pb.d.ts +305 -3
- package/generated/injective_tc_derivatives_rpc_pb.js +276 -1
- package/package.json +1 -1
|
@@ -178,6 +178,13 @@ export interface DerivativeMarketHistoryRequest {
|
|
|
178
178
|
* @generated from protobuf field: bool fill_gaps = 8
|
|
179
179
|
*/
|
|
180
180
|
fillGaps: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* When true, we'll use index prices. Supersedes useOraclePrices and fillGaps.
|
|
183
|
+
* Disabled for binary options markets.
|
|
184
|
+
*
|
|
185
|
+
* @generated from protobuf field: bool index_prices = 9
|
|
186
|
+
*/
|
|
187
|
+
indexPrices: boolean;
|
|
181
188
|
}
|
|
182
189
|
/**
|
|
183
190
|
* @generated from protobuf message injective_chart_rpc.DerivativeMarketHistoryResponse
|
|
@@ -783,7 +790,8 @@ class DerivativeMarketHistoryRequest$Type extends MessageType<DerivativeMarketHi
|
|
|
783
790
|
{ no: 5, name: "to", kind: "scalar", T: 17 /*ScalarType.SINT32*/ },
|
|
784
791
|
{ no: 6, name: "countback", kind: "scalar", T: 17 /*ScalarType.SINT32*/ },
|
|
785
792
|
{ no: 7, name: "use_oracle_prices", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
786
|
-
{ no: 8, name: "fill_gaps", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
793
|
+
{ no: 8, name: "fill_gaps", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
794
|
+
{ no: 9, name: "index_prices", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
787
795
|
]);
|
|
788
796
|
}
|
|
789
797
|
create(value?: PartialMessage<DerivativeMarketHistoryRequest>): DerivativeMarketHistoryRequest {
|
|
@@ -796,6 +804,7 @@ class DerivativeMarketHistoryRequest$Type extends MessageType<DerivativeMarketHi
|
|
|
796
804
|
message.countback = 0;
|
|
797
805
|
message.useOraclePrices = false;
|
|
798
806
|
message.fillGaps = false;
|
|
807
|
+
message.indexPrices = false;
|
|
799
808
|
if (value !== undefined)
|
|
800
809
|
reflectionMergePartial<DerivativeMarketHistoryRequest>(this, message, value);
|
|
801
810
|
return message;
|
|
@@ -829,6 +838,9 @@ class DerivativeMarketHistoryRequest$Type extends MessageType<DerivativeMarketHi
|
|
|
829
838
|
case /* bool fill_gaps */ 8:
|
|
830
839
|
message.fillGaps = reader.bool();
|
|
831
840
|
break;
|
|
841
|
+
case /* bool index_prices */ 9:
|
|
842
|
+
message.indexPrices = reader.bool();
|
|
843
|
+
break;
|
|
832
844
|
default:
|
|
833
845
|
let u = options.readUnknownField;
|
|
834
846
|
if (u === "throw")
|
|
@@ -865,6 +877,9 @@ class DerivativeMarketHistoryRequest$Type extends MessageType<DerivativeMarketHi
|
|
|
865
877
|
/* bool fill_gaps = 8; */
|
|
866
878
|
if (message.fillGaps !== false)
|
|
867
879
|
writer.tag(8, WireType.Varint).bool(message.fillGaps);
|
|
880
|
+
/* bool index_prices = 9; */
|
|
881
|
+
if (message.indexPrices !== false)
|
|
882
|
+
writer.tag(9, WireType.Varint).bool(message.indexPrices);
|
|
868
883
|
let u = options.writeUnknownFields;
|
|
869
884
|
if (u !== false)
|
|
870
885
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -381,6 +381,13 @@ class DerivativeMarketHistoryRequest$Type extends MessageType {
|
|
|
381
381
|
kind: "scalar",
|
|
382
382
|
T: 8
|
|
383
383
|
/*ScalarType.BOOL*/
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
no: 9,
|
|
387
|
+
name: "index_prices",
|
|
388
|
+
kind: "scalar",
|
|
389
|
+
T: 8
|
|
390
|
+
/*ScalarType.BOOL*/
|
|
384
391
|
}
|
|
385
392
|
]);
|
|
386
393
|
}
|
|
@@ -394,6 +401,7 @@ class DerivativeMarketHistoryRequest$Type extends MessageType {
|
|
|
394
401
|
message.countback = 0;
|
|
395
402
|
message.useOraclePrices = false;
|
|
396
403
|
message.fillGaps = false;
|
|
404
|
+
message.indexPrices = false;
|
|
397
405
|
if (value !== void 0)
|
|
398
406
|
reflectionMergePartial(this, message, value);
|
|
399
407
|
return message;
|
|
@@ -435,6 +443,10 @@ class DerivativeMarketHistoryRequest$Type extends MessageType {
|
|
|
435
443
|
8:
|
|
436
444
|
message.fillGaps = reader.bool();
|
|
437
445
|
break;
|
|
446
|
+
case /* bool index_prices */
|
|
447
|
+
9:
|
|
448
|
+
message.indexPrices = reader.bool();
|
|
449
|
+
break;
|
|
438
450
|
default:
|
|
439
451
|
let u = options.readUnknownField;
|
|
440
452
|
if (u === "throw")
|
|
@@ -463,6 +475,8 @@ class DerivativeMarketHistoryRequest$Type extends MessageType {
|
|
|
463
475
|
writer.tag(7, WireType.Varint).bool(message.useOraclePrices);
|
|
464
476
|
if (message.fillGaps !== false)
|
|
465
477
|
writer.tag(8, WireType.Varint).bool(message.fillGaps);
|
|
478
|
+
if (message.indexPrices !== false)
|
|
479
|
+
writer.tag(9, WireType.Varint).bool(message.indexPrices);
|
|
466
480
|
let u = options.writeUnknownFields;
|
|
467
481
|
if (u !== false)
|
|
468
482
|
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
13
13
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
14
14
|
import { InjectiveExchangeRPC } from "./injective_exchange_rpc_pb";
|
|
15
|
+
import type { PrepareFeeGrantResponse } from "./injective_exchange_rpc_pb";
|
|
16
|
+
import type { PrepareFeeGrantRequest } from "./injective_exchange_rpc_pb";
|
|
15
17
|
import type { GetFeePayerResponse } from "./injective_exchange_rpc_pb";
|
|
16
18
|
import type { GetFeePayerRequest } from "./injective_exchange_rpc_pb";
|
|
17
19
|
import type { BroadcastCosmosTxResponse } from "./injective_exchange_rpc_pb";
|
|
@@ -77,6 +79,12 @@ export interface IInjectiveExchangeRPCClient {
|
|
|
77
79
|
* @generated from protobuf rpc: GetFeePayer
|
|
78
80
|
*/
|
|
79
81
|
getFeePayer(input: GetFeePayerRequest, options?: RpcOptions): UnaryCall<GetFeePayerRequest, GetFeePayerResponse>;
|
|
82
|
+
/**
|
|
83
|
+
* PrepareFeeGrant creates or refreshes a feegrant for a grantee address
|
|
84
|
+
*
|
|
85
|
+
* @generated from protobuf rpc: PrepareFeeGrant
|
|
86
|
+
*/
|
|
87
|
+
prepareFeeGrant(input: PrepareFeeGrantRequest, options?: RpcOptions): UnaryCall<PrepareFeeGrantRequest, PrepareFeeGrantResponse>;
|
|
80
88
|
}
|
|
81
89
|
/**
|
|
82
90
|
* InjectiveExchangeRPC defines gRPC API of an Injective Exchange service.
|
|
@@ -152,4 +160,13 @@ export class InjectiveExchangeRPCClient implements IInjectiveExchangeRPCClient,
|
|
|
152
160
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
153
161
|
return stackIntercept<GetFeePayerRequest, GetFeePayerResponse>("unary", this._transport, method, opt, input);
|
|
154
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* PrepareFeeGrant creates or refreshes a feegrant for a grantee address
|
|
165
|
+
*
|
|
166
|
+
* @generated from protobuf rpc: PrepareFeeGrant
|
|
167
|
+
*/
|
|
168
|
+
prepareFeeGrant(input: PrepareFeeGrantRequest, options?: RpcOptions): UnaryCall<PrepareFeeGrantRequest, PrepareFeeGrantResponse> {
|
|
169
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
170
|
+
return stackIntercept<PrepareFeeGrantRequest, PrepareFeeGrantResponse>("unary", this._transport, method, opt, input);
|
|
171
|
+
}
|
|
155
172
|
}
|
|
@@ -70,6 +70,15 @@ class InjectiveExchangeRPCClient {
|
|
|
70
70
|
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
71
71
|
return stackIntercept("unary", this._transport, method, opt, input);
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* PrepareFeeGrant creates or refreshes a feegrant for a grantee address
|
|
75
|
+
*
|
|
76
|
+
* @generated from protobuf rpc: PrepareFeeGrant
|
|
77
|
+
*/
|
|
78
|
+
prepareFeeGrant(input, options) {
|
|
79
|
+
const method = this.methods[7], opt = this._transport.mergeOptions(options);
|
|
80
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
81
|
+
}
|
|
73
82
|
}
|
|
74
83
|
export {
|
|
75
84
|
InjectiveExchangeRPCClient
|
|
@@ -600,6 +600,58 @@ export interface GetFeePayerResponse {
|
|
|
600
600
|
*/
|
|
601
601
|
feePayerPubKey?: CosmosPubKey;
|
|
602
602
|
}
|
|
603
|
+
/**
|
|
604
|
+
* @generated from protobuf message injective_exchange_rpc.PrepareFeeGrantRequest
|
|
605
|
+
*/
|
|
606
|
+
export interface PrepareFeeGrantRequest {
|
|
607
|
+
/**
|
|
608
|
+
* Address that receives the feegrant
|
|
609
|
+
*
|
|
610
|
+
* @generated from protobuf field: string grantee_address = 1
|
|
611
|
+
*/
|
|
612
|
+
granteeAddress: string;
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* @generated from protobuf message injective_exchange_rpc.PrepareFeeGrantResponse
|
|
616
|
+
*/
|
|
617
|
+
export interface PrepareFeeGrantResponse {
|
|
618
|
+
/**
|
|
619
|
+
* Feegrant granter address
|
|
620
|
+
*
|
|
621
|
+
* @generated from protobuf field: string granter_address = 1
|
|
622
|
+
*/
|
|
623
|
+
granterAddress: string;
|
|
624
|
+
/**
|
|
625
|
+
* Grantee address
|
|
626
|
+
*
|
|
627
|
+
* @generated from protobuf field: string grantee_address = 2
|
|
628
|
+
*/
|
|
629
|
+
granteeAddress: string;
|
|
630
|
+
/**
|
|
631
|
+
* Feegrant transaction hash
|
|
632
|
+
*
|
|
633
|
+
* @generated from protobuf field: string tx_hash = 3
|
|
634
|
+
*/
|
|
635
|
+
txHash: string;
|
|
636
|
+
/**
|
|
637
|
+
* Feegrant expiration timestamp in Unix milliseconds
|
|
638
|
+
*
|
|
639
|
+
* @generated from protobuf field: uint64 expiration = 4
|
|
640
|
+
*/
|
|
641
|
+
expiration: bigint;
|
|
642
|
+
/**
|
|
643
|
+
* Feegrant spend limit
|
|
644
|
+
*
|
|
645
|
+
* @generated from protobuf field: injective_exchange_rpc.CosmosCoin spend_limit = 5
|
|
646
|
+
*/
|
|
647
|
+
spendLimit?: CosmosCoin;
|
|
648
|
+
/**
|
|
649
|
+
* Message type URLs allowed by the feegrant
|
|
650
|
+
*
|
|
651
|
+
* @generated from protobuf field: repeated string allowed_messages = 6
|
|
652
|
+
*/
|
|
653
|
+
allowedMessages: string[];
|
|
654
|
+
}
|
|
603
655
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
604
656
|
class GetTxRequest$Type extends MessageType<GetTxRequest> {
|
|
605
657
|
constructor() {
|
|
@@ -1911,6 +1963,139 @@ class GetFeePayerResponse$Type extends MessageType<GetFeePayerResponse> {
|
|
|
1911
1963
|
* @generated MessageType for protobuf message injective_exchange_rpc.GetFeePayerResponse
|
|
1912
1964
|
*/
|
|
1913
1965
|
export const GetFeePayerResponse = new GetFeePayerResponse$Type();
|
|
1966
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1967
|
+
class PrepareFeeGrantRequest$Type extends MessageType<PrepareFeeGrantRequest> {
|
|
1968
|
+
constructor() {
|
|
1969
|
+
super("injective_exchange_rpc.PrepareFeeGrantRequest", [
|
|
1970
|
+
{ no: 1, name: "grantee_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1971
|
+
]);
|
|
1972
|
+
}
|
|
1973
|
+
create(value?: PartialMessage<PrepareFeeGrantRequest>): PrepareFeeGrantRequest {
|
|
1974
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1975
|
+
message.granteeAddress = "";
|
|
1976
|
+
if (value !== undefined)
|
|
1977
|
+
reflectionMergePartial<PrepareFeeGrantRequest>(this, message, value);
|
|
1978
|
+
return message;
|
|
1979
|
+
}
|
|
1980
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PrepareFeeGrantRequest): PrepareFeeGrantRequest {
|
|
1981
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1982
|
+
while (reader.pos < end) {
|
|
1983
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1984
|
+
switch (fieldNo) {
|
|
1985
|
+
case /* string grantee_address */ 1:
|
|
1986
|
+
message.granteeAddress = reader.string();
|
|
1987
|
+
break;
|
|
1988
|
+
default:
|
|
1989
|
+
let u = options.readUnknownField;
|
|
1990
|
+
if (u === "throw")
|
|
1991
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1992
|
+
let d = reader.skip(wireType);
|
|
1993
|
+
if (u !== false)
|
|
1994
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1997
|
+
return message;
|
|
1998
|
+
}
|
|
1999
|
+
internalBinaryWrite(message: PrepareFeeGrantRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2000
|
+
/* string grantee_address = 1; */
|
|
2001
|
+
if (message.granteeAddress !== "")
|
|
2002
|
+
writer.tag(1, WireType.LengthDelimited).string(message.granteeAddress);
|
|
2003
|
+
let u = options.writeUnknownFields;
|
|
2004
|
+
if (u !== false)
|
|
2005
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2006
|
+
return writer;
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
/**
|
|
2010
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.PrepareFeeGrantRequest
|
|
2011
|
+
*/
|
|
2012
|
+
export const PrepareFeeGrantRequest = new PrepareFeeGrantRequest$Type();
|
|
2013
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2014
|
+
class PrepareFeeGrantResponse$Type extends MessageType<PrepareFeeGrantResponse> {
|
|
2015
|
+
constructor() {
|
|
2016
|
+
super("injective_exchange_rpc.PrepareFeeGrantResponse", [
|
|
2017
|
+
{ no: 1, name: "granter_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2018
|
+
{ no: 2, name: "grantee_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2019
|
+
{ no: 3, name: "tx_hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2020
|
+
{ no: 4, name: "expiration", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2021
|
+
{ no: 5, name: "spend_limit", kind: "message", T: () => CosmosCoin },
|
|
2022
|
+
{ no: 6, name: "allowed_messages", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
2023
|
+
]);
|
|
2024
|
+
}
|
|
2025
|
+
create(value?: PartialMessage<PrepareFeeGrantResponse>): PrepareFeeGrantResponse {
|
|
2026
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2027
|
+
message.granterAddress = "";
|
|
2028
|
+
message.granteeAddress = "";
|
|
2029
|
+
message.txHash = "";
|
|
2030
|
+
message.expiration = 0n;
|
|
2031
|
+
message.allowedMessages = [];
|
|
2032
|
+
if (value !== undefined)
|
|
2033
|
+
reflectionMergePartial<PrepareFeeGrantResponse>(this, message, value);
|
|
2034
|
+
return message;
|
|
2035
|
+
}
|
|
2036
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PrepareFeeGrantResponse): PrepareFeeGrantResponse {
|
|
2037
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2038
|
+
while (reader.pos < end) {
|
|
2039
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2040
|
+
switch (fieldNo) {
|
|
2041
|
+
case /* string granter_address */ 1:
|
|
2042
|
+
message.granterAddress = reader.string();
|
|
2043
|
+
break;
|
|
2044
|
+
case /* string grantee_address */ 2:
|
|
2045
|
+
message.granteeAddress = reader.string();
|
|
2046
|
+
break;
|
|
2047
|
+
case /* string tx_hash */ 3:
|
|
2048
|
+
message.txHash = reader.string();
|
|
2049
|
+
break;
|
|
2050
|
+
case /* uint64 expiration */ 4:
|
|
2051
|
+
message.expiration = reader.uint64().toBigInt();
|
|
2052
|
+
break;
|
|
2053
|
+
case /* injective_exchange_rpc.CosmosCoin spend_limit */ 5:
|
|
2054
|
+
message.spendLimit = CosmosCoin.internalBinaryRead(reader, reader.uint32(), options, message.spendLimit);
|
|
2055
|
+
break;
|
|
2056
|
+
case /* repeated string allowed_messages */ 6:
|
|
2057
|
+
message.allowedMessages.push(reader.string());
|
|
2058
|
+
break;
|
|
2059
|
+
default:
|
|
2060
|
+
let u = options.readUnknownField;
|
|
2061
|
+
if (u === "throw")
|
|
2062
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2063
|
+
let d = reader.skip(wireType);
|
|
2064
|
+
if (u !== false)
|
|
2065
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
return message;
|
|
2069
|
+
}
|
|
2070
|
+
internalBinaryWrite(message: PrepareFeeGrantResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2071
|
+
/* string granter_address = 1; */
|
|
2072
|
+
if (message.granterAddress !== "")
|
|
2073
|
+
writer.tag(1, WireType.LengthDelimited).string(message.granterAddress);
|
|
2074
|
+
/* string grantee_address = 2; */
|
|
2075
|
+
if (message.granteeAddress !== "")
|
|
2076
|
+
writer.tag(2, WireType.LengthDelimited).string(message.granteeAddress);
|
|
2077
|
+
/* string tx_hash = 3; */
|
|
2078
|
+
if (message.txHash !== "")
|
|
2079
|
+
writer.tag(3, WireType.LengthDelimited).string(message.txHash);
|
|
2080
|
+
/* uint64 expiration = 4; */
|
|
2081
|
+
if (message.expiration !== 0n)
|
|
2082
|
+
writer.tag(4, WireType.Varint).uint64(message.expiration);
|
|
2083
|
+
/* injective_exchange_rpc.CosmosCoin spend_limit = 5; */
|
|
2084
|
+
if (message.spendLimit)
|
|
2085
|
+
CosmosCoin.internalBinaryWrite(message.spendLimit, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
2086
|
+
/* repeated string allowed_messages = 6; */
|
|
2087
|
+
for (let i = 0; i < message.allowedMessages.length; i++)
|
|
2088
|
+
writer.tag(6, WireType.LengthDelimited).string(message.allowedMessages[i]);
|
|
2089
|
+
let u = options.writeUnknownFields;
|
|
2090
|
+
if (u !== false)
|
|
2091
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2092
|
+
return writer;
|
|
2093
|
+
}
|
|
2094
|
+
}
|
|
2095
|
+
/**
|
|
2096
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.PrepareFeeGrantResponse
|
|
2097
|
+
*/
|
|
2098
|
+
export const PrepareFeeGrantResponse = new PrepareFeeGrantResponse$Type();
|
|
1914
2099
|
/**
|
|
1915
2100
|
* @generated ServiceType for protobuf service injective_exchange_rpc.InjectiveExchangeRPC
|
|
1916
2101
|
*/
|
|
@@ -1921,5 +2106,6 @@ export const InjectiveExchangeRPC = new ServiceType("injective_exchange_rpc.Inje
|
|
|
1921
2106
|
{ name: "BroadcastTx", options: {}, I: BroadcastTxRequest, O: BroadcastTxResponse },
|
|
1922
2107
|
{ name: "PrepareCosmosTx", options: {}, I: PrepareCosmosTxRequest, O: PrepareCosmosTxResponse },
|
|
1923
2108
|
{ name: "BroadcastCosmosTx", options: {}, I: BroadcastCosmosTxRequest, O: BroadcastCosmosTxResponse },
|
|
1924
|
-
{ name: "GetFeePayer", options: {}, I: GetFeePayerRequest, O: GetFeePayerResponse }
|
|
2109
|
+
{ name: "GetFeePayer", options: {}, I: GetFeePayerRequest, O: GetFeePayerResponse },
|
|
2110
|
+
{ name: "PrepareFeeGrant", options: {}, I: PrepareFeeGrantRequest, O: PrepareFeeGrantResponse }
|
|
1925
2111
|
]);
|
|
@@ -1709,6 +1709,169 @@ class GetFeePayerResponse$Type extends MessageType {
|
|
|
1709
1709
|
}
|
|
1710
1710
|
}
|
|
1711
1711
|
const GetFeePayerResponse = new GetFeePayerResponse$Type();
|
|
1712
|
+
class PrepareFeeGrantRequest$Type extends MessageType {
|
|
1713
|
+
constructor() {
|
|
1714
|
+
super("injective_exchange_rpc.PrepareFeeGrantRequest", [
|
|
1715
|
+
{
|
|
1716
|
+
no: 1,
|
|
1717
|
+
name: "grantee_address",
|
|
1718
|
+
kind: "scalar",
|
|
1719
|
+
T: 9
|
|
1720
|
+
/*ScalarType.STRING*/
|
|
1721
|
+
}
|
|
1722
|
+
]);
|
|
1723
|
+
}
|
|
1724
|
+
create(value) {
|
|
1725
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1726
|
+
message.granteeAddress = "";
|
|
1727
|
+
if (value !== void 0)
|
|
1728
|
+
reflectionMergePartial(this, message, value);
|
|
1729
|
+
return message;
|
|
1730
|
+
}
|
|
1731
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1732
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1733
|
+
while (reader.pos < end) {
|
|
1734
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1735
|
+
switch (fieldNo) {
|
|
1736
|
+
case /* string grantee_address */
|
|
1737
|
+
1:
|
|
1738
|
+
message.granteeAddress = reader.string();
|
|
1739
|
+
break;
|
|
1740
|
+
default:
|
|
1741
|
+
let u = options.readUnknownField;
|
|
1742
|
+
if (u === "throw")
|
|
1743
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1744
|
+
let d = reader.skip(wireType);
|
|
1745
|
+
if (u !== false)
|
|
1746
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1747
|
+
}
|
|
1748
|
+
}
|
|
1749
|
+
return message;
|
|
1750
|
+
}
|
|
1751
|
+
internalBinaryWrite(message, writer, options) {
|
|
1752
|
+
if (message.granteeAddress !== "")
|
|
1753
|
+
writer.tag(1, WireType.LengthDelimited).string(message.granteeAddress);
|
|
1754
|
+
let u = options.writeUnknownFields;
|
|
1755
|
+
if (u !== false)
|
|
1756
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1757
|
+
return writer;
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1760
|
+
const PrepareFeeGrantRequest = new PrepareFeeGrantRequest$Type();
|
|
1761
|
+
class PrepareFeeGrantResponse$Type extends MessageType {
|
|
1762
|
+
constructor() {
|
|
1763
|
+
super("injective_exchange_rpc.PrepareFeeGrantResponse", [
|
|
1764
|
+
{
|
|
1765
|
+
no: 1,
|
|
1766
|
+
name: "granter_address",
|
|
1767
|
+
kind: "scalar",
|
|
1768
|
+
T: 9
|
|
1769
|
+
/*ScalarType.STRING*/
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
no: 2,
|
|
1773
|
+
name: "grantee_address",
|
|
1774
|
+
kind: "scalar",
|
|
1775
|
+
T: 9
|
|
1776
|
+
/*ScalarType.STRING*/
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
no: 3,
|
|
1780
|
+
name: "tx_hash",
|
|
1781
|
+
kind: "scalar",
|
|
1782
|
+
T: 9
|
|
1783
|
+
/*ScalarType.STRING*/
|
|
1784
|
+
},
|
|
1785
|
+
{
|
|
1786
|
+
no: 4,
|
|
1787
|
+
name: "expiration",
|
|
1788
|
+
kind: "scalar",
|
|
1789
|
+
T: 4,
|
|
1790
|
+
L: 0
|
|
1791
|
+
/*LongType.BIGINT*/
|
|
1792
|
+
},
|
|
1793
|
+
{ no: 5, name: "spend_limit", kind: "message", T: () => CosmosCoin },
|
|
1794
|
+
{
|
|
1795
|
+
no: 6,
|
|
1796
|
+
name: "allowed_messages",
|
|
1797
|
+
kind: "scalar",
|
|
1798
|
+
repeat: 2,
|
|
1799
|
+
T: 9
|
|
1800
|
+
/*ScalarType.STRING*/
|
|
1801
|
+
}
|
|
1802
|
+
]);
|
|
1803
|
+
}
|
|
1804
|
+
create(value) {
|
|
1805
|
+
const message = globalThis.Object.create(this.messagePrototype);
|
|
1806
|
+
message.granterAddress = "";
|
|
1807
|
+
message.granteeAddress = "";
|
|
1808
|
+
message.txHash = "";
|
|
1809
|
+
message.expiration = 0n;
|
|
1810
|
+
message.allowedMessages = [];
|
|
1811
|
+
if (value !== void 0)
|
|
1812
|
+
reflectionMergePartial(this, message, value);
|
|
1813
|
+
return message;
|
|
1814
|
+
}
|
|
1815
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1816
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1817
|
+
while (reader.pos < end) {
|
|
1818
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1819
|
+
switch (fieldNo) {
|
|
1820
|
+
case /* string granter_address */
|
|
1821
|
+
1:
|
|
1822
|
+
message.granterAddress = reader.string();
|
|
1823
|
+
break;
|
|
1824
|
+
case /* string grantee_address */
|
|
1825
|
+
2:
|
|
1826
|
+
message.granteeAddress = reader.string();
|
|
1827
|
+
break;
|
|
1828
|
+
case /* string tx_hash */
|
|
1829
|
+
3:
|
|
1830
|
+
message.txHash = reader.string();
|
|
1831
|
+
break;
|
|
1832
|
+
case /* uint64 expiration */
|
|
1833
|
+
4:
|
|
1834
|
+
message.expiration = reader.uint64().toBigInt();
|
|
1835
|
+
break;
|
|
1836
|
+
case /* injective_exchange_rpc.CosmosCoin spend_limit */
|
|
1837
|
+
5:
|
|
1838
|
+
message.spendLimit = CosmosCoin.internalBinaryRead(reader, reader.uint32(), options, message.spendLimit);
|
|
1839
|
+
break;
|
|
1840
|
+
case /* repeated string allowed_messages */
|
|
1841
|
+
6:
|
|
1842
|
+
message.allowedMessages.push(reader.string());
|
|
1843
|
+
break;
|
|
1844
|
+
default:
|
|
1845
|
+
let u = options.readUnknownField;
|
|
1846
|
+
if (u === "throw")
|
|
1847
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1848
|
+
let d = reader.skip(wireType);
|
|
1849
|
+
if (u !== false)
|
|
1850
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
return message;
|
|
1854
|
+
}
|
|
1855
|
+
internalBinaryWrite(message, writer, options) {
|
|
1856
|
+
if (message.granterAddress !== "")
|
|
1857
|
+
writer.tag(1, WireType.LengthDelimited).string(message.granterAddress);
|
|
1858
|
+
if (message.granteeAddress !== "")
|
|
1859
|
+
writer.tag(2, WireType.LengthDelimited).string(message.granteeAddress);
|
|
1860
|
+
if (message.txHash !== "")
|
|
1861
|
+
writer.tag(3, WireType.LengthDelimited).string(message.txHash);
|
|
1862
|
+
if (message.expiration !== 0n)
|
|
1863
|
+
writer.tag(4, WireType.Varint).uint64(message.expiration);
|
|
1864
|
+
if (message.spendLimit)
|
|
1865
|
+
CosmosCoin.internalBinaryWrite(message.spendLimit, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1866
|
+
for (let i = 0; i < message.allowedMessages.length; i++)
|
|
1867
|
+
writer.tag(6, WireType.LengthDelimited).string(message.allowedMessages[i]);
|
|
1868
|
+
let u = options.writeUnknownFields;
|
|
1869
|
+
if (u !== false)
|
|
1870
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1871
|
+
return writer;
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
const PrepareFeeGrantResponse = new PrepareFeeGrantResponse$Type();
|
|
1712
1875
|
const InjectiveExchangeRPC = new ServiceType("injective_exchange_rpc.InjectiveExchangeRPC", [
|
|
1713
1876
|
{ name: "GetTx", options: {}, I: GetTxRequest, O: GetTxResponse },
|
|
1714
1877
|
{ name: "PrepareTx", options: {}, I: PrepareTxRequest, O: PrepareTxResponse },
|
|
@@ -1716,7 +1879,8 @@ const InjectiveExchangeRPC = new ServiceType("injective_exchange_rpc.InjectiveEx
|
|
|
1716
1879
|
{ name: "BroadcastTx", options: {}, I: BroadcastTxRequest, O: BroadcastTxResponse },
|
|
1717
1880
|
{ name: "PrepareCosmosTx", options: {}, I: PrepareCosmosTxRequest, O: PrepareCosmosTxResponse },
|
|
1718
1881
|
{ name: "BroadcastCosmosTx", options: {}, I: BroadcastCosmosTxRequest, O: BroadcastCosmosTxResponse },
|
|
1719
|
-
{ name: "GetFeePayer", options: {}, I: GetFeePayerRequest, O: GetFeePayerResponse }
|
|
1882
|
+
{ name: "GetFeePayer", options: {}, I: GetFeePayerRequest, O: GetFeePayerResponse },
|
|
1883
|
+
{ name: "PrepareFeeGrant", options: {}, I: PrepareFeeGrantRequest, O: PrepareFeeGrantResponse }
|
|
1720
1884
|
]);
|
|
1721
1885
|
export {
|
|
1722
1886
|
BroadcastCosmosTxRequest,
|
|
@@ -1735,6 +1899,8 @@ export {
|
|
|
1735
1899
|
PrepareCosmosTxResponse,
|
|
1736
1900
|
PrepareEip712Request,
|
|
1737
1901
|
PrepareEip712Response,
|
|
1902
|
+
PrepareFeeGrantRequest,
|
|
1903
|
+
PrepareFeeGrantResponse,
|
|
1738
1904
|
PrepareTxRequest,
|
|
1739
1905
|
PrepareTxResponse
|
|
1740
1906
|
};
|