@injectivelabs/indexer-proto-ts-v2 1.0.0
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/event_provider_api_pb.client.d.ts +156 -0
- package/generated/event_provider_api_pb.client.js +76 -0
- package/generated/event_provider_api_pb.d.ts +1980 -0
- package/generated/event_provider_api_pb.js +1776 -0
- package/generated/health_pb.client.d.ts +53 -0
- package/generated/health_pb.client.js +22 -0
- package/generated/health_pb.d.ts +309 -0
- package/generated/health_pb.js +265 -0
- package/generated/injective_accounts_rpc_pb.client.d.ts +211 -0
- package/generated/injective_accounts_rpc_pb.client.js +105 -0
- package/generated/injective_accounts_rpc_pb.d.ts +5307 -0
- package/generated/injective_accounts_rpc_pb.js +4784 -0
- package/generated/injective_archiver_rpc_pb.client.d.ts +224 -0
- package/generated/injective_archiver_rpc_pb.client.js +112 -0
- package/generated/injective_archiver_rpc_pb.d.ts +2944 -0
- package/generated/injective_archiver_rpc_pb.js +2603 -0
- package/generated/injective_auction_rpc_pb.client.d.ts +190 -0
- package/generated/injective_auction_rpc_pb.client.js +94 -0
- package/generated/injective_auction_rpc_pb.d.ts +2131 -0
- package/generated/injective_auction_rpc_pb.js +1917 -0
- package/generated/injective_campaign_rpc_pb.client.d.ts +138 -0
- package/generated/injective_campaign_rpc_pb.client.js +67 -0
- package/generated/injective_campaign_rpc_pb.d.ts +2766 -0
- package/generated/injective_campaign_rpc_pb.js +2542 -0
- package/generated/injective_chart_rpc_pb.client.d.ts +159 -0
- package/generated/injective_chart_rpc_pb.client.js +78 -0
- package/generated/injective_chart_rpc_pb.d.ts +1840 -0
- package/generated/injective_chart_rpc_pb.js +1690 -0
- package/generated/injective_derivative_exchange_rpc_pb.client.d.ts +504 -0
- package/generated/injective_derivative_exchange_rpc_pb.client.js +259 -0
- package/generated/injective_derivative_exchange_rpc_pb.d.ts +9214 -0
- package/generated/injective_derivative_exchange_rpc_pb.js +8407 -0
- package/generated/injective_exchange_rpc_pb.client.d.ts +155 -0
- package/generated/injective_exchange_rpc_pb.client.js +76 -0
- package/generated/injective_exchange_rpc_pb.d.ts +1925 -0
- package/generated/injective_exchange_rpc_pb.js +1740 -0
- package/generated/injective_explorer_rpc_pb.client.d.ts +495 -0
- package/generated/injective_explorer_rpc_pb.client.js +255 -0
- package/generated/injective_explorer_rpc_pb.d.ts +9394 -0
- package/generated/injective_explorer_rpc_pb.js +8921 -0
- package/generated/injective_insurance_rpc_pb.client.d.ts +87 -0
- package/generated/injective_insurance_rpc_pb.client.js +40 -0
- package/generated/injective_insurance_rpc_pb.d.ts +904 -0
- package/generated/injective_insurance_rpc_pb.js +807 -0
- package/generated/injective_megavault_rpc_pb.client.d.ts +155 -0
- package/generated/injective_megavault_rpc_pb.client.js +76 -0
- package/generated/injective_megavault_rpc_pb.d.ts +3408 -0
- package/generated/injective_megavault_rpc_pb.js +3019 -0
- package/generated/injective_meta_rpc_pb.client.d.ts +124 -0
- package/generated/injective_meta_rpc_pb.client.js +59 -0
- package/generated/injective_meta_rpc_pb.d.ts +825 -0
- package/generated/injective_meta_rpc_pb.js +716 -0
- package/generated/injective_oracle_rpc_pb.client.d.ts +124 -0
- package/generated/injective_oracle_rpc_pb.client.js +59 -0
- package/generated/injective_oracle_rpc_pb.d.ts +1117 -0
- package/generated/injective_oracle_rpc_pb.js +987 -0
- package/generated/injective_portfolio_rpc_pb.client.d.ts +105 -0
- package/generated/injective_portfolio_rpc_pb.client.js +49 -0
- package/generated/injective_portfolio_rpc_pb.d.ts +1492 -0
- package/generated/injective_portfolio_rpc_pb.js +1314 -0
- package/generated/injective_referral_rpc_pb.client.d.ts +89 -0
- package/generated/injective_referral_rpc_pb.client.js +41 -0
- package/generated/injective_referral_rpc_pb.d.ts +575 -0
- package/generated/injective_referral_rpc_pb.js +497 -0
- package/generated/injective_rfqrpc_pb.client.d.ts +208 -0
- package/generated/injective_rfqrpc_pb.client.js +103 -0
- package/generated/injective_rfqrpc_pb.d.ts +2241 -0
- package/generated/injective_rfqrpc_pb.js +1940 -0
- package/generated/injective_spot_exchange_rpc_pb.client.d.ts +343 -0
- package/generated/injective_spot_exchange_rpc_pb.client.js +175 -0
- package/generated/injective_spot_exchange_rpc_pb.d.ts +5958 -0
- package/generated/injective_spot_exchange_rpc_pb.js +5426 -0
- package/generated/injective_trading_rpc_pb.client.d.ts +90 -0
- package/generated/injective_trading_rpc_pb.client.js +40 -0
- package/generated/injective_trading_rpc_pb.d.ts +1882 -0
- package/generated/injective_trading_rpc_pb.js +1754 -0
- package/index.d.ts +43 -0
- package/index.js +78 -0
- package/package.json +37 -0
|
@@ -0,0 +1,1925 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "injective_exchange_rpc.proto" (package "injective_exchange_rpc", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Code generated with goa v3.7.0, DO NOT EDIT.
|
|
6
|
+
//
|
|
7
|
+
// InjectiveExchangeRPC protocol buffer definition
|
|
8
|
+
//
|
|
9
|
+
// Command:
|
|
10
|
+
// $ goa gen github.com/InjectiveLabs/injective-indexer/api/design -o ../
|
|
11
|
+
//
|
|
12
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
13
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
14
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
15
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
16
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
17
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
18
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
19
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
20
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
21
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf message injective_exchange_rpc.GetTxRequest
|
|
24
|
+
*/
|
|
25
|
+
export interface GetTxRequest {
|
|
26
|
+
/**
|
|
27
|
+
* Transaction hash in hex without 0x prefix (Cosmos-like).
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf field: string hash = 1
|
|
30
|
+
*/
|
|
31
|
+
hash: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf message injective_exchange_rpc.GetTxResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface GetTxResponse {
|
|
37
|
+
/**
|
|
38
|
+
* Hex-encoded Tendermint transaction hash
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf field: string tx_hash = 1
|
|
41
|
+
*/
|
|
42
|
+
txHash: string;
|
|
43
|
+
/**
|
|
44
|
+
* The block height
|
|
45
|
+
*
|
|
46
|
+
* @generated from protobuf field: sint64 height = 2
|
|
47
|
+
*/
|
|
48
|
+
height: bigint;
|
|
49
|
+
/**
|
|
50
|
+
* Tx index in the block
|
|
51
|
+
*
|
|
52
|
+
* @generated from protobuf field: uint32 index = 3
|
|
53
|
+
*/
|
|
54
|
+
index: number;
|
|
55
|
+
/**
|
|
56
|
+
* Namespace for the resp code
|
|
57
|
+
*
|
|
58
|
+
* @generated from protobuf field: string codespace = 4
|
|
59
|
+
*/
|
|
60
|
+
codespace: string;
|
|
61
|
+
/**
|
|
62
|
+
* Response code
|
|
63
|
+
*
|
|
64
|
+
* @generated from protobuf field: uint32 code = 5
|
|
65
|
+
*/
|
|
66
|
+
code: number;
|
|
67
|
+
/**
|
|
68
|
+
* Result bytes, if any
|
|
69
|
+
*
|
|
70
|
+
* @generated from protobuf field: bytes data = 6
|
|
71
|
+
*/
|
|
72
|
+
data: Uint8Array;
|
|
73
|
+
/**
|
|
74
|
+
* The output of the application's logger (raw string). May be
|
|
75
|
+
* non-deterministic.
|
|
76
|
+
*
|
|
77
|
+
* @generated from protobuf field: string raw_log = 7
|
|
78
|
+
*/
|
|
79
|
+
rawLog: string;
|
|
80
|
+
/**
|
|
81
|
+
* Time of the previous block.
|
|
82
|
+
*
|
|
83
|
+
* @generated from protobuf field: string timestamp = 8
|
|
84
|
+
*/
|
|
85
|
+
timestamp: string;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf message injective_exchange_rpc.PrepareTxRequest
|
|
89
|
+
*/
|
|
90
|
+
export interface PrepareTxRequest {
|
|
91
|
+
/**
|
|
92
|
+
* Specify chainID for the target tx
|
|
93
|
+
*
|
|
94
|
+
* @generated from protobuf field: uint64 chain_id = 1
|
|
95
|
+
*/
|
|
96
|
+
chainId: bigint;
|
|
97
|
+
/**
|
|
98
|
+
* Specify Ethereum address of a signer
|
|
99
|
+
*
|
|
100
|
+
* @generated from protobuf field: string signer_address = 2
|
|
101
|
+
*/
|
|
102
|
+
signerAddress: string;
|
|
103
|
+
/**
|
|
104
|
+
* Deprecated: this field is ignored
|
|
105
|
+
*
|
|
106
|
+
* @generated from protobuf field: uint64 sequence = 3
|
|
107
|
+
*/
|
|
108
|
+
sequence: bigint;
|
|
109
|
+
/**
|
|
110
|
+
* Textual memo information to attach with tx
|
|
111
|
+
*
|
|
112
|
+
* @generated from protobuf field: string memo = 4
|
|
113
|
+
*/
|
|
114
|
+
memo: string;
|
|
115
|
+
/**
|
|
116
|
+
* Block height until which the transaction is valid.
|
|
117
|
+
*
|
|
118
|
+
* @generated from protobuf field: uint64 timeout_height = 5
|
|
119
|
+
*/
|
|
120
|
+
timeoutHeight: bigint;
|
|
121
|
+
/**
|
|
122
|
+
* Transaction fee details.
|
|
123
|
+
*
|
|
124
|
+
* @generated from protobuf field: injective_exchange_rpc.CosmosTxFee fee = 6
|
|
125
|
+
*/
|
|
126
|
+
fee?: CosmosTxFee;
|
|
127
|
+
/**
|
|
128
|
+
* List of Cosmos proto3-encoded Msgs to include in a single tx
|
|
129
|
+
*
|
|
130
|
+
* @generated from protobuf field: repeated bytes msgs = 7
|
|
131
|
+
*/
|
|
132
|
+
msgs: Uint8Array[];
|
|
133
|
+
/**
|
|
134
|
+
* The wrapper of the EIP712 message, 'v1'/'v2' or 'V1'/'V2'
|
|
135
|
+
*
|
|
136
|
+
* @generated from protobuf field: string eip712_wrapper = 8
|
|
137
|
+
*/
|
|
138
|
+
eip712Wrapper: string;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @generated from protobuf message injective_exchange_rpc.CosmosTxFee
|
|
142
|
+
*/
|
|
143
|
+
export interface CosmosTxFee {
|
|
144
|
+
/**
|
|
145
|
+
* Transaction gas price
|
|
146
|
+
*
|
|
147
|
+
* @generated from protobuf field: repeated injective_exchange_rpc.CosmosCoin price = 1
|
|
148
|
+
*/
|
|
149
|
+
price: CosmosCoin[];
|
|
150
|
+
/**
|
|
151
|
+
* Transaction gas limit
|
|
152
|
+
*
|
|
153
|
+
* @generated from protobuf field: uint64 gas = 2
|
|
154
|
+
*/
|
|
155
|
+
gas: bigint;
|
|
156
|
+
/**
|
|
157
|
+
* Explicitly require fee delegation when set to true. Or don't care = false.
|
|
158
|
+
* Will be replaced by other flag in the next version.
|
|
159
|
+
*
|
|
160
|
+
* @generated from protobuf field: bool delegate_fee = 3
|
|
161
|
+
*/
|
|
162
|
+
delegateFee: boolean;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @generated from protobuf message injective_exchange_rpc.CosmosCoin
|
|
166
|
+
*/
|
|
167
|
+
export interface CosmosCoin {
|
|
168
|
+
/**
|
|
169
|
+
* Coin denominator
|
|
170
|
+
*
|
|
171
|
+
* @generated from protobuf field: string denom = 1
|
|
172
|
+
*/
|
|
173
|
+
denom: string;
|
|
174
|
+
/**
|
|
175
|
+
* Coin amount (big int)
|
|
176
|
+
*
|
|
177
|
+
* @generated from protobuf field: string amount = 2
|
|
178
|
+
*/
|
|
179
|
+
amount: string;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* @generated from protobuf message injective_exchange_rpc.PrepareTxResponse
|
|
183
|
+
*/
|
|
184
|
+
export interface PrepareTxResponse {
|
|
185
|
+
/**
|
|
186
|
+
* EIP712-compatible message suitable for signing with eth_signTypedData_v4
|
|
187
|
+
*
|
|
188
|
+
* @generated from protobuf field: string data = 1
|
|
189
|
+
*/
|
|
190
|
+
data: string;
|
|
191
|
+
/**
|
|
192
|
+
* Account tx sequence (nonce)
|
|
193
|
+
*
|
|
194
|
+
* @generated from protobuf field: uint64 sequence = 2
|
|
195
|
+
*/
|
|
196
|
+
sequence: bigint;
|
|
197
|
+
/**
|
|
198
|
+
* Sign mode for the resulting tx
|
|
199
|
+
*
|
|
200
|
+
* @generated from protobuf field: string sign_mode = 3
|
|
201
|
+
*/
|
|
202
|
+
signMode: string;
|
|
203
|
+
/**
|
|
204
|
+
* Specify proto-URL of a public key, which defines the signature format
|
|
205
|
+
*
|
|
206
|
+
* @generated from protobuf field: string pub_key_type = 4
|
|
207
|
+
*/
|
|
208
|
+
pubKeyType: string;
|
|
209
|
+
/**
|
|
210
|
+
* Fee payer address provided by service
|
|
211
|
+
*
|
|
212
|
+
* @generated from protobuf field: string fee_payer = 5
|
|
213
|
+
*/
|
|
214
|
+
feePayer: string;
|
|
215
|
+
/**
|
|
216
|
+
* Hex-encoded ethsecp256k1 signature bytes from fee payer
|
|
217
|
+
*
|
|
218
|
+
* @generated from protobuf field: string fee_payer_sig = 6
|
|
219
|
+
*/
|
|
220
|
+
feePayerSig: string;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* @generated from protobuf message injective_exchange_rpc.PrepareEip712Request
|
|
224
|
+
*/
|
|
225
|
+
export interface PrepareEip712Request {
|
|
226
|
+
/**
|
|
227
|
+
* Specify chainID for the target tx
|
|
228
|
+
*
|
|
229
|
+
* @generated from protobuf field: uint64 chain_id = 1
|
|
230
|
+
*/
|
|
231
|
+
chainId: bigint;
|
|
232
|
+
/**
|
|
233
|
+
* Specify Ethereum address of a signer
|
|
234
|
+
*
|
|
235
|
+
* @generated from protobuf field: string signer_address = 2
|
|
236
|
+
*/
|
|
237
|
+
signerAddress: string;
|
|
238
|
+
/**
|
|
239
|
+
* Sequence number of the transaction signer
|
|
240
|
+
*
|
|
241
|
+
* @generated from protobuf field: uint64 sequence = 3
|
|
242
|
+
*/
|
|
243
|
+
sequence: bigint;
|
|
244
|
+
/**
|
|
245
|
+
* Account number of the transaction signer
|
|
246
|
+
*
|
|
247
|
+
* @generated from protobuf field: uint64 account_number = 4
|
|
248
|
+
*/
|
|
249
|
+
accountNumber: bigint;
|
|
250
|
+
/**
|
|
251
|
+
* Textual memo information to attach with tx
|
|
252
|
+
*
|
|
253
|
+
* @generated from protobuf field: string memo = 5
|
|
254
|
+
*/
|
|
255
|
+
memo: string;
|
|
256
|
+
/**
|
|
257
|
+
* Block height until which the transaction is valid.
|
|
258
|
+
*
|
|
259
|
+
* @generated from protobuf field: uint64 timeout_height = 6
|
|
260
|
+
*/
|
|
261
|
+
timeoutHeight: bigint;
|
|
262
|
+
/**
|
|
263
|
+
* Transaction fee details.
|
|
264
|
+
*
|
|
265
|
+
* @generated from protobuf field: injective_exchange_rpc.CosmosTxFee fee = 7
|
|
266
|
+
*/
|
|
267
|
+
fee?: CosmosTxFee;
|
|
268
|
+
/**
|
|
269
|
+
* List of Cosmos proto3-encoded Msgs to include in a single tx
|
|
270
|
+
*
|
|
271
|
+
* @generated from protobuf field: repeated bytes msgs = 8
|
|
272
|
+
*/
|
|
273
|
+
msgs: Uint8Array[];
|
|
274
|
+
/**
|
|
275
|
+
* The wrapper of the EIP712 message, 'v1'/'v2' or 'V1'/'V2'
|
|
276
|
+
*
|
|
277
|
+
* @generated from protobuf field: string eip712_wrapper = 9
|
|
278
|
+
*/
|
|
279
|
+
eip712Wrapper: string;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* @generated from protobuf message injective_exchange_rpc.PrepareEip712Response
|
|
283
|
+
*/
|
|
284
|
+
export interface PrepareEip712Response {
|
|
285
|
+
/**
|
|
286
|
+
* EIP712-compatible message suitable for signing with eth_signTypedData_v4
|
|
287
|
+
*
|
|
288
|
+
* @generated from protobuf field: string data = 1
|
|
289
|
+
*/
|
|
290
|
+
data: string;
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* @generated from protobuf message injective_exchange_rpc.BroadcastTxRequest
|
|
294
|
+
*/
|
|
295
|
+
export interface BroadcastTxRequest {
|
|
296
|
+
/**
|
|
297
|
+
* Specify Web3 chainID (from prepateTx) for the target Tx
|
|
298
|
+
*
|
|
299
|
+
* @generated from protobuf field: uint64 chain_id = 1
|
|
300
|
+
*/
|
|
301
|
+
chainId: bigint;
|
|
302
|
+
/**
|
|
303
|
+
* Amino-encoded Tx JSON data (except Msgs)
|
|
304
|
+
*
|
|
305
|
+
* @generated from protobuf field: bytes tx = 2
|
|
306
|
+
*/
|
|
307
|
+
tx: Uint8Array;
|
|
308
|
+
/**
|
|
309
|
+
* List of Cosmos proto3-encoded Msgs from tx
|
|
310
|
+
*
|
|
311
|
+
* @generated from protobuf field: repeated bytes msgs = 3
|
|
312
|
+
*/
|
|
313
|
+
msgs: Uint8Array[];
|
|
314
|
+
/**
|
|
315
|
+
* Specify ethsecp256k1 pubkey of the signer
|
|
316
|
+
*
|
|
317
|
+
* @generated from protobuf field: injective_exchange_rpc.CosmosPubKey pub_key = 4
|
|
318
|
+
*/
|
|
319
|
+
pubKey?: CosmosPubKey;
|
|
320
|
+
/**
|
|
321
|
+
* Hex-encoded ethsecp256k1 signature bytes
|
|
322
|
+
*
|
|
323
|
+
* @generated from protobuf field: string signature = 5
|
|
324
|
+
*/
|
|
325
|
+
signature: string;
|
|
326
|
+
/**
|
|
327
|
+
* Fee payer address provided by service
|
|
328
|
+
*
|
|
329
|
+
* @generated from protobuf field: string fee_payer = 6
|
|
330
|
+
*/
|
|
331
|
+
feePayer: string;
|
|
332
|
+
/**
|
|
333
|
+
* Hex-encoded ethsecp256k1 signature bytes from fee payer
|
|
334
|
+
*
|
|
335
|
+
* @generated from protobuf field: string fee_payer_sig = 7
|
|
336
|
+
*/
|
|
337
|
+
feePayerSig: string;
|
|
338
|
+
/**
|
|
339
|
+
* Broadcast mode
|
|
340
|
+
*
|
|
341
|
+
* @generated from protobuf field: string mode = 8
|
|
342
|
+
*/
|
|
343
|
+
mode: string;
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* @generated from protobuf message injective_exchange_rpc.CosmosPubKey
|
|
347
|
+
*/
|
|
348
|
+
export interface CosmosPubKey {
|
|
349
|
+
/**
|
|
350
|
+
* Pubkey type URL
|
|
351
|
+
*
|
|
352
|
+
* @generated from protobuf field: string type = 1
|
|
353
|
+
*/
|
|
354
|
+
type: string;
|
|
355
|
+
/**
|
|
356
|
+
* Hex-encoded string of the public key
|
|
357
|
+
*
|
|
358
|
+
* @generated from protobuf field: string key = 2
|
|
359
|
+
*/
|
|
360
|
+
key: string;
|
|
361
|
+
}
|
|
362
|
+
/**
|
|
363
|
+
* @generated from protobuf message injective_exchange_rpc.BroadcastTxResponse
|
|
364
|
+
*/
|
|
365
|
+
export interface BroadcastTxResponse {
|
|
366
|
+
/**
|
|
367
|
+
* Hex-encoded Tendermint transaction hash
|
|
368
|
+
*
|
|
369
|
+
* @generated from protobuf field: string tx_hash = 1
|
|
370
|
+
*/
|
|
371
|
+
txHash: string;
|
|
372
|
+
/**
|
|
373
|
+
* The block height
|
|
374
|
+
*
|
|
375
|
+
* @generated from protobuf field: sint64 height = 2
|
|
376
|
+
*/
|
|
377
|
+
height: bigint;
|
|
378
|
+
/**
|
|
379
|
+
* Tx index in the block
|
|
380
|
+
*
|
|
381
|
+
* @generated from protobuf field: uint32 index = 3
|
|
382
|
+
*/
|
|
383
|
+
index: number;
|
|
384
|
+
/**
|
|
385
|
+
* Namespace for the resp code
|
|
386
|
+
*
|
|
387
|
+
* @generated from protobuf field: string codespace = 4
|
|
388
|
+
*/
|
|
389
|
+
codespace: string;
|
|
390
|
+
/**
|
|
391
|
+
* Response code
|
|
392
|
+
*
|
|
393
|
+
* @generated from protobuf field: uint32 code = 5
|
|
394
|
+
*/
|
|
395
|
+
code: number;
|
|
396
|
+
/**
|
|
397
|
+
* Result bytes, if any
|
|
398
|
+
*
|
|
399
|
+
* @generated from protobuf field: bytes data = 6
|
|
400
|
+
*/
|
|
401
|
+
data: Uint8Array;
|
|
402
|
+
/**
|
|
403
|
+
* The output of the application's logger (raw string). May be
|
|
404
|
+
* non-deterministic.
|
|
405
|
+
*
|
|
406
|
+
* @generated from protobuf field: string raw_log = 7
|
|
407
|
+
*/
|
|
408
|
+
rawLog: string;
|
|
409
|
+
/**
|
|
410
|
+
* Time of the previous block.
|
|
411
|
+
*
|
|
412
|
+
* @generated from protobuf field: string timestamp = 8
|
|
413
|
+
*/
|
|
414
|
+
timestamp: string;
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* @generated from protobuf message injective_exchange_rpc.PrepareCosmosTxRequest
|
|
418
|
+
*/
|
|
419
|
+
export interface PrepareCosmosTxRequest {
|
|
420
|
+
/**
|
|
421
|
+
* Specify chainID for the target tx
|
|
422
|
+
*
|
|
423
|
+
* @generated from protobuf field: uint64 chain_id = 1
|
|
424
|
+
*/
|
|
425
|
+
chainId: bigint;
|
|
426
|
+
/**
|
|
427
|
+
* sender address provided
|
|
428
|
+
*
|
|
429
|
+
* @generated from protobuf field: string sender_address = 2
|
|
430
|
+
*/
|
|
431
|
+
senderAddress: string;
|
|
432
|
+
/**
|
|
433
|
+
* Textual memo information to attach with tx
|
|
434
|
+
*
|
|
435
|
+
* @generated from protobuf field: string memo = 3
|
|
436
|
+
*/
|
|
437
|
+
memo: string;
|
|
438
|
+
/**
|
|
439
|
+
* Block height until which the transaction is valid.
|
|
440
|
+
*
|
|
441
|
+
* @generated from protobuf field: uint64 timeout_height = 4
|
|
442
|
+
*/
|
|
443
|
+
timeoutHeight: bigint;
|
|
444
|
+
/**
|
|
445
|
+
* Transaction fee details.
|
|
446
|
+
*
|
|
447
|
+
* @generated from protobuf field: injective_exchange_rpc.CosmosTxFee fee = 5
|
|
448
|
+
*/
|
|
449
|
+
fee?: CosmosTxFee;
|
|
450
|
+
/**
|
|
451
|
+
* List of Cosmos proto3-encoded Msgs to include in a single tx
|
|
452
|
+
*
|
|
453
|
+
* @generated from protobuf field: repeated bytes msgs = 6
|
|
454
|
+
*/
|
|
455
|
+
msgs: Uint8Array[];
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* @generated from protobuf message injective_exchange_rpc.PrepareCosmosTxResponse
|
|
459
|
+
*/
|
|
460
|
+
export interface PrepareCosmosTxResponse {
|
|
461
|
+
/**
|
|
462
|
+
* proto encoded tx
|
|
463
|
+
*
|
|
464
|
+
* @generated from protobuf field: bytes tx = 1
|
|
465
|
+
*/
|
|
466
|
+
tx: Uint8Array;
|
|
467
|
+
/**
|
|
468
|
+
* Sign mode for the resulting tx
|
|
469
|
+
*
|
|
470
|
+
* @generated from protobuf field: string sign_mode = 2
|
|
471
|
+
*/
|
|
472
|
+
signMode: string;
|
|
473
|
+
/**
|
|
474
|
+
* Specify proto-URL of a public key, which defines the signature format
|
|
475
|
+
*
|
|
476
|
+
* @generated from protobuf field: string pub_key_type = 3
|
|
477
|
+
*/
|
|
478
|
+
pubKeyType: string;
|
|
479
|
+
/**
|
|
480
|
+
* Fee payer address provided by service
|
|
481
|
+
*
|
|
482
|
+
* @generated from protobuf field: string fee_payer = 4
|
|
483
|
+
*/
|
|
484
|
+
feePayer: string;
|
|
485
|
+
/**
|
|
486
|
+
* Hex-encoded ethsecp256k1 signature bytes from fee payer
|
|
487
|
+
*
|
|
488
|
+
* @generated from protobuf field: string fee_payer_sig = 5
|
|
489
|
+
*/
|
|
490
|
+
feePayerSig: string;
|
|
491
|
+
/**
|
|
492
|
+
* ethsecp256k1 feePayer pubkey
|
|
493
|
+
*
|
|
494
|
+
* @generated from protobuf field: injective_exchange_rpc.CosmosPubKey fee_payer_pub_key = 6
|
|
495
|
+
*/
|
|
496
|
+
feePayerPubKey?: CosmosPubKey;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* @generated from protobuf message injective_exchange_rpc.BroadcastCosmosTxRequest
|
|
500
|
+
*/
|
|
501
|
+
export interface BroadcastCosmosTxRequest {
|
|
502
|
+
/**
|
|
503
|
+
* proto encoded tx
|
|
504
|
+
*
|
|
505
|
+
* @generated from protobuf field: bytes tx = 1
|
|
506
|
+
*/
|
|
507
|
+
tx: Uint8Array;
|
|
508
|
+
/**
|
|
509
|
+
* Specify ethsecp256k1 sender pubkey
|
|
510
|
+
*
|
|
511
|
+
* @generated from protobuf field: injective_exchange_rpc.CosmosPubKey pub_key = 2
|
|
512
|
+
*/
|
|
513
|
+
pubKey?: CosmosPubKey;
|
|
514
|
+
/**
|
|
515
|
+
* Hex-encoded ethsecp256k1 sender signature bytes
|
|
516
|
+
*
|
|
517
|
+
* @generated from protobuf field: string signature = 3
|
|
518
|
+
*/
|
|
519
|
+
signature: string;
|
|
520
|
+
/**
|
|
521
|
+
* sender address
|
|
522
|
+
*
|
|
523
|
+
* @generated from protobuf field: string sender_address = 4
|
|
524
|
+
*/
|
|
525
|
+
senderAddress: string;
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* @generated from protobuf message injective_exchange_rpc.BroadcastCosmosTxResponse
|
|
529
|
+
*/
|
|
530
|
+
export interface BroadcastCosmosTxResponse {
|
|
531
|
+
/**
|
|
532
|
+
* Hex-encoded Tendermint transaction hash
|
|
533
|
+
*
|
|
534
|
+
* @generated from protobuf field: string tx_hash = 1
|
|
535
|
+
*/
|
|
536
|
+
txHash: string;
|
|
537
|
+
/**
|
|
538
|
+
* The block height
|
|
539
|
+
*
|
|
540
|
+
* @generated from protobuf field: sint64 height = 2
|
|
541
|
+
*/
|
|
542
|
+
height: bigint;
|
|
543
|
+
/**
|
|
544
|
+
* Tx index in the block
|
|
545
|
+
*
|
|
546
|
+
* @generated from protobuf field: uint32 index = 3
|
|
547
|
+
*/
|
|
548
|
+
index: number;
|
|
549
|
+
/**
|
|
550
|
+
* Namespace for the resp code
|
|
551
|
+
*
|
|
552
|
+
* @generated from protobuf field: string codespace = 4
|
|
553
|
+
*/
|
|
554
|
+
codespace: string;
|
|
555
|
+
/**
|
|
556
|
+
* Response code
|
|
557
|
+
*
|
|
558
|
+
* @generated from protobuf field: uint32 code = 5
|
|
559
|
+
*/
|
|
560
|
+
code: number;
|
|
561
|
+
/**
|
|
562
|
+
* Result bytes, if any
|
|
563
|
+
*
|
|
564
|
+
* @generated from protobuf field: bytes data = 6
|
|
565
|
+
*/
|
|
566
|
+
data: Uint8Array;
|
|
567
|
+
/**
|
|
568
|
+
* The output of the application's logger (raw string). May be
|
|
569
|
+
* non-deterministic.
|
|
570
|
+
*
|
|
571
|
+
* @generated from protobuf field: string raw_log = 7
|
|
572
|
+
*/
|
|
573
|
+
rawLog: string;
|
|
574
|
+
/**
|
|
575
|
+
* Time of the previous block.
|
|
576
|
+
*
|
|
577
|
+
* @generated from protobuf field: string timestamp = 8
|
|
578
|
+
*/
|
|
579
|
+
timestamp: string;
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* @generated from protobuf message injective_exchange_rpc.GetFeePayerRequest
|
|
583
|
+
*/
|
|
584
|
+
export interface GetFeePayerRequest {
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* @generated from protobuf message injective_exchange_rpc.GetFeePayerResponse
|
|
588
|
+
*/
|
|
589
|
+
export interface GetFeePayerResponse {
|
|
590
|
+
/**
|
|
591
|
+
* Fee payer address provided by service
|
|
592
|
+
*
|
|
593
|
+
* @generated from protobuf field: string fee_payer = 1
|
|
594
|
+
*/
|
|
595
|
+
feePayer: string;
|
|
596
|
+
/**
|
|
597
|
+
* ethsecp256k1 feePayer pubkey
|
|
598
|
+
*
|
|
599
|
+
* @generated from protobuf field: injective_exchange_rpc.CosmosPubKey fee_payer_pub_key = 2
|
|
600
|
+
*/
|
|
601
|
+
feePayerPubKey?: CosmosPubKey;
|
|
602
|
+
}
|
|
603
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
604
|
+
class GetTxRequest$Type extends MessageType<GetTxRequest> {
|
|
605
|
+
constructor() {
|
|
606
|
+
super("injective_exchange_rpc.GetTxRequest", [
|
|
607
|
+
{ no: 1, name: "hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
608
|
+
]);
|
|
609
|
+
}
|
|
610
|
+
create(value?: PartialMessage<GetTxRequest>): GetTxRequest {
|
|
611
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
612
|
+
message.hash = "";
|
|
613
|
+
if (value !== undefined)
|
|
614
|
+
reflectionMergePartial<GetTxRequest>(this, message, value);
|
|
615
|
+
return message;
|
|
616
|
+
}
|
|
617
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetTxRequest): GetTxRequest {
|
|
618
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
619
|
+
while (reader.pos < end) {
|
|
620
|
+
let [fieldNo, wireType] = reader.tag();
|
|
621
|
+
switch (fieldNo) {
|
|
622
|
+
case /* string hash */ 1:
|
|
623
|
+
message.hash = reader.string();
|
|
624
|
+
break;
|
|
625
|
+
default:
|
|
626
|
+
let u = options.readUnknownField;
|
|
627
|
+
if (u === "throw")
|
|
628
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
629
|
+
let d = reader.skip(wireType);
|
|
630
|
+
if (u !== false)
|
|
631
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
return message;
|
|
635
|
+
}
|
|
636
|
+
internalBinaryWrite(message: GetTxRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
637
|
+
/* string hash = 1; */
|
|
638
|
+
if (message.hash !== "")
|
|
639
|
+
writer.tag(1, WireType.LengthDelimited).string(message.hash);
|
|
640
|
+
let u = options.writeUnknownFields;
|
|
641
|
+
if (u !== false)
|
|
642
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
643
|
+
return writer;
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.GetTxRequest
|
|
648
|
+
*/
|
|
649
|
+
export const GetTxRequest = new GetTxRequest$Type();
|
|
650
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
651
|
+
class GetTxResponse$Type extends MessageType<GetTxResponse> {
|
|
652
|
+
constructor() {
|
|
653
|
+
super("injective_exchange_rpc.GetTxResponse", [
|
|
654
|
+
{ no: 1, name: "tx_hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
655
|
+
{ no: 2, name: "height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
656
|
+
{ no: 3, name: "index", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
657
|
+
{ no: 4, name: "codespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
658
|
+
{ no: 5, name: "code", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
659
|
+
{ no: 6, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
660
|
+
{ no: 7, name: "raw_log", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
661
|
+
{ no: 8, name: "timestamp", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
662
|
+
]);
|
|
663
|
+
}
|
|
664
|
+
create(value?: PartialMessage<GetTxResponse>): GetTxResponse {
|
|
665
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
666
|
+
message.txHash = "";
|
|
667
|
+
message.height = 0n;
|
|
668
|
+
message.index = 0;
|
|
669
|
+
message.codespace = "";
|
|
670
|
+
message.code = 0;
|
|
671
|
+
message.data = new Uint8Array(0);
|
|
672
|
+
message.rawLog = "";
|
|
673
|
+
message.timestamp = "";
|
|
674
|
+
if (value !== undefined)
|
|
675
|
+
reflectionMergePartial<GetTxResponse>(this, message, value);
|
|
676
|
+
return message;
|
|
677
|
+
}
|
|
678
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetTxResponse): GetTxResponse {
|
|
679
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
680
|
+
while (reader.pos < end) {
|
|
681
|
+
let [fieldNo, wireType] = reader.tag();
|
|
682
|
+
switch (fieldNo) {
|
|
683
|
+
case /* string tx_hash */ 1:
|
|
684
|
+
message.txHash = reader.string();
|
|
685
|
+
break;
|
|
686
|
+
case /* sint64 height */ 2:
|
|
687
|
+
message.height = reader.sint64().toBigInt();
|
|
688
|
+
break;
|
|
689
|
+
case /* uint32 index */ 3:
|
|
690
|
+
message.index = reader.uint32();
|
|
691
|
+
break;
|
|
692
|
+
case /* string codespace */ 4:
|
|
693
|
+
message.codespace = reader.string();
|
|
694
|
+
break;
|
|
695
|
+
case /* uint32 code */ 5:
|
|
696
|
+
message.code = reader.uint32();
|
|
697
|
+
break;
|
|
698
|
+
case /* bytes data */ 6:
|
|
699
|
+
message.data = reader.bytes();
|
|
700
|
+
break;
|
|
701
|
+
case /* string raw_log */ 7:
|
|
702
|
+
message.rawLog = reader.string();
|
|
703
|
+
break;
|
|
704
|
+
case /* string timestamp */ 8:
|
|
705
|
+
message.timestamp = reader.string();
|
|
706
|
+
break;
|
|
707
|
+
default:
|
|
708
|
+
let u = options.readUnknownField;
|
|
709
|
+
if (u === "throw")
|
|
710
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
711
|
+
let d = reader.skip(wireType);
|
|
712
|
+
if (u !== false)
|
|
713
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
714
|
+
}
|
|
715
|
+
}
|
|
716
|
+
return message;
|
|
717
|
+
}
|
|
718
|
+
internalBinaryWrite(message: GetTxResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
719
|
+
/* string tx_hash = 1; */
|
|
720
|
+
if (message.txHash !== "")
|
|
721
|
+
writer.tag(1, WireType.LengthDelimited).string(message.txHash);
|
|
722
|
+
/* sint64 height = 2; */
|
|
723
|
+
if (message.height !== 0n)
|
|
724
|
+
writer.tag(2, WireType.Varint).sint64(message.height);
|
|
725
|
+
/* uint32 index = 3; */
|
|
726
|
+
if (message.index !== 0)
|
|
727
|
+
writer.tag(3, WireType.Varint).uint32(message.index);
|
|
728
|
+
/* string codespace = 4; */
|
|
729
|
+
if (message.codespace !== "")
|
|
730
|
+
writer.tag(4, WireType.LengthDelimited).string(message.codespace);
|
|
731
|
+
/* uint32 code = 5; */
|
|
732
|
+
if (message.code !== 0)
|
|
733
|
+
writer.tag(5, WireType.Varint).uint32(message.code);
|
|
734
|
+
/* bytes data = 6; */
|
|
735
|
+
if (message.data.length)
|
|
736
|
+
writer.tag(6, WireType.LengthDelimited).bytes(message.data);
|
|
737
|
+
/* string raw_log = 7; */
|
|
738
|
+
if (message.rawLog !== "")
|
|
739
|
+
writer.tag(7, WireType.LengthDelimited).string(message.rawLog);
|
|
740
|
+
/* string timestamp = 8; */
|
|
741
|
+
if (message.timestamp !== "")
|
|
742
|
+
writer.tag(8, WireType.LengthDelimited).string(message.timestamp);
|
|
743
|
+
let u = options.writeUnknownFields;
|
|
744
|
+
if (u !== false)
|
|
745
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
746
|
+
return writer;
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
/**
|
|
750
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.GetTxResponse
|
|
751
|
+
*/
|
|
752
|
+
export const GetTxResponse = new GetTxResponse$Type();
|
|
753
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
754
|
+
class PrepareTxRequest$Type extends MessageType<PrepareTxRequest> {
|
|
755
|
+
constructor() {
|
|
756
|
+
super("injective_exchange_rpc.PrepareTxRequest", [
|
|
757
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
758
|
+
{ no: 2, name: "signer_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
759
|
+
{ no: 3, name: "sequence", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
760
|
+
{ no: 4, name: "memo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
761
|
+
{ no: 5, name: "timeout_height", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
762
|
+
{ no: 6, name: "fee", kind: "message", T: () => CosmosTxFee },
|
|
763
|
+
{ no: 7, name: "msgs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
764
|
+
{ no: 8, name: "eip712_wrapper", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
765
|
+
]);
|
|
766
|
+
}
|
|
767
|
+
create(value?: PartialMessage<PrepareTxRequest>): PrepareTxRequest {
|
|
768
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
769
|
+
message.chainId = 0n;
|
|
770
|
+
message.signerAddress = "";
|
|
771
|
+
message.sequence = 0n;
|
|
772
|
+
message.memo = "";
|
|
773
|
+
message.timeoutHeight = 0n;
|
|
774
|
+
message.msgs = [];
|
|
775
|
+
message.eip712Wrapper = "";
|
|
776
|
+
if (value !== undefined)
|
|
777
|
+
reflectionMergePartial<PrepareTxRequest>(this, message, value);
|
|
778
|
+
return message;
|
|
779
|
+
}
|
|
780
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PrepareTxRequest): PrepareTxRequest {
|
|
781
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
782
|
+
while (reader.pos < end) {
|
|
783
|
+
let [fieldNo, wireType] = reader.tag();
|
|
784
|
+
switch (fieldNo) {
|
|
785
|
+
case /* uint64 chain_id */ 1:
|
|
786
|
+
message.chainId = reader.uint64().toBigInt();
|
|
787
|
+
break;
|
|
788
|
+
case /* string signer_address */ 2:
|
|
789
|
+
message.signerAddress = reader.string();
|
|
790
|
+
break;
|
|
791
|
+
case /* uint64 sequence */ 3:
|
|
792
|
+
message.sequence = reader.uint64().toBigInt();
|
|
793
|
+
break;
|
|
794
|
+
case /* string memo */ 4:
|
|
795
|
+
message.memo = reader.string();
|
|
796
|
+
break;
|
|
797
|
+
case /* uint64 timeout_height */ 5:
|
|
798
|
+
message.timeoutHeight = reader.uint64().toBigInt();
|
|
799
|
+
break;
|
|
800
|
+
case /* injective_exchange_rpc.CosmosTxFee fee */ 6:
|
|
801
|
+
message.fee = CosmosTxFee.internalBinaryRead(reader, reader.uint32(), options, message.fee);
|
|
802
|
+
break;
|
|
803
|
+
case /* repeated bytes msgs */ 7:
|
|
804
|
+
message.msgs.push(reader.bytes());
|
|
805
|
+
break;
|
|
806
|
+
case /* string eip712_wrapper */ 8:
|
|
807
|
+
message.eip712Wrapper = reader.string();
|
|
808
|
+
break;
|
|
809
|
+
default:
|
|
810
|
+
let u = options.readUnknownField;
|
|
811
|
+
if (u === "throw")
|
|
812
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
813
|
+
let d = reader.skip(wireType);
|
|
814
|
+
if (u !== false)
|
|
815
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
return message;
|
|
819
|
+
}
|
|
820
|
+
internalBinaryWrite(message: PrepareTxRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
821
|
+
/* uint64 chain_id = 1; */
|
|
822
|
+
if (message.chainId !== 0n)
|
|
823
|
+
writer.tag(1, WireType.Varint).uint64(message.chainId);
|
|
824
|
+
/* string signer_address = 2; */
|
|
825
|
+
if (message.signerAddress !== "")
|
|
826
|
+
writer.tag(2, WireType.LengthDelimited).string(message.signerAddress);
|
|
827
|
+
/* uint64 sequence = 3; */
|
|
828
|
+
if (message.sequence !== 0n)
|
|
829
|
+
writer.tag(3, WireType.Varint).uint64(message.sequence);
|
|
830
|
+
/* string memo = 4; */
|
|
831
|
+
if (message.memo !== "")
|
|
832
|
+
writer.tag(4, WireType.LengthDelimited).string(message.memo);
|
|
833
|
+
/* uint64 timeout_height = 5; */
|
|
834
|
+
if (message.timeoutHeight !== 0n)
|
|
835
|
+
writer.tag(5, WireType.Varint).uint64(message.timeoutHeight);
|
|
836
|
+
/* injective_exchange_rpc.CosmosTxFee fee = 6; */
|
|
837
|
+
if (message.fee)
|
|
838
|
+
CosmosTxFee.internalBinaryWrite(message.fee, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
839
|
+
/* repeated bytes msgs = 7; */
|
|
840
|
+
for (let i = 0; i < message.msgs.length; i++)
|
|
841
|
+
writer.tag(7, WireType.LengthDelimited).bytes(message.msgs[i]);
|
|
842
|
+
/* string eip712_wrapper = 8; */
|
|
843
|
+
if (message.eip712Wrapper !== "")
|
|
844
|
+
writer.tag(8, WireType.LengthDelimited).string(message.eip712Wrapper);
|
|
845
|
+
let u = options.writeUnknownFields;
|
|
846
|
+
if (u !== false)
|
|
847
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
848
|
+
return writer;
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.PrepareTxRequest
|
|
853
|
+
*/
|
|
854
|
+
export const PrepareTxRequest = new PrepareTxRequest$Type();
|
|
855
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
856
|
+
class CosmosTxFee$Type extends MessageType<CosmosTxFee> {
|
|
857
|
+
constructor() {
|
|
858
|
+
super("injective_exchange_rpc.CosmosTxFee", [
|
|
859
|
+
{ no: 1, name: "price", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => CosmosCoin },
|
|
860
|
+
{ no: 2, name: "gas", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
861
|
+
{ no: 3, name: "delegate_fee", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
862
|
+
]);
|
|
863
|
+
}
|
|
864
|
+
create(value?: PartialMessage<CosmosTxFee>): CosmosTxFee {
|
|
865
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
866
|
+
message.price = [];
|
|
867
|
+
message.gas = 0n;
|
|
868
|
+
message.delegateFee = false;
|
|
869
|
+
if (value !== undefined)
|
|
870
|
+
reflectionMergePartial<CosmosTxFee>(this, message, value);
|
|
871
|
+
return message;
|
|
872
|
+
}
|
|
873
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CosmosTxFee): CosmosTxFee {
|
|
874
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
875
|
+
while (reader.pos < end) {
|
|
876
|
+
let [fieldNo, wireType] = reader.tag();
|
|
877
|
+
switch (fieldNo) {
|
|
878
|
+
case /* repeated injective_exchange_rpc.CosmosCoin price */ 1:
|
|
879
|
+
message.price.push(CosmosCoin.internalBinaryRead(reader, reader.uint32(), options));
|
|
880
|
+
break;
|
|
881
|
+
case /* uint64 gas */ 2:
|
|
882
|
+
message.gas = reader.uint64().toBigInt();
|
|
883
|
+
break;
|
|
884
|
+
case /* bool delegate_fee */ 3:
|
|
885
|
+
message.delegateFee = reader.bool();
|
|
886
|
+
break;
|
|
887
|
+
default:
|
|
888
|
+
let u = options.readUnknownField;
|
|
889
|
+
if (u === "throw")
|
|
890
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
891
|
+
let d = reader.skip(wireType);
|
|
892
|
+
if (u !== false)
|
|
893
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
return message;
|
|
897
|
+
}
|
|
898
|
+
internalBinaryWrite(message: CosmosTxFee, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
899
|
+
/* repeated injective_exchange_rpc.CosmosCoin price = 1; */
|
|
900
|
+
for (let i = 0; i < message.price.length; i++)
|
|
901
|
+
CosmosCoin.internalBinaryWrite(message.price[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
902
|
+
/* uint64 gas = 2; */
|
|
903
|
+
if (message.gas !== 0n)
|
|
904
|
+
writer.tag(2, WireType.Varint).uint64(message.gas);
|
|
905
|
+
/* bool delegate_fee = 3; */
|
|
906
|
+
if (message.delegateFee !== false)
|
|
907
|
+
writer.tag(3, WireType.Varint).bool(message.delegateFee);
|
|
908
|
+
let u = options.writeUnknownFields;
|
|
909
|
+
if (u !== false)
|
|
910
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
911
|
+
return writer;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.CosmosTxFee
|
|
916
|
+
*/
|
|
917
|
+
export const CosmosTxFee = new CosmosTxFee$Type();
|
|
918
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
919
|
+
class CosmosCoin$Type extends MessageType<CosmosCoin> {
|
|
920
|
+
constructor() {
|
|
921
|
+
super("injective_exchange_rpc.CosmosCoin", [
|
|
922
|
+
{ no: 1, name: "denom", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
923
|
+
{ no: 2, name: "amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
924
|
+
]);
|
|
925
|
+
}
|
|
926
|
+
create(value?: PartialMessage<CosmosCoin>): CosmosCoin {
|
|
927
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
928
|
+
message.denom = "";
|
|
929
|
+
message.amount = "";
|
|
930
|
+
if (value !== undefined)
|
|
931
|
+
reflectionMergePartial<CosmosCoin>(this, message, value);
|
|
932
|
+
return message;
|
|
933
|
+
}
|
|
934
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CosmosCoin): CosmosCoin {
|
|
935
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
936
|
+
while (reader.pos < end) {
|
|
937
|
+
let [fieldNo, wireType] = reader.tag();
|
|
938
|
+
switch (fieldNo) {
|
|
939
|
+
case /* string denom */ 1:
|
|
940
|
+
message.denom = reader.string();
|
|
941
|
+
break;
|
|
942
|
+
case /* string amount */ 2:
|
|
943
|
+
message.amount = reader.string();
|
|
944
|
+
break;
|
|
945
|
+
default:
|
|
946
|
+
let u = options.readUnknownField;
|
|
947
|
+
if (u === "throw")
|
|
948
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
949
|
+
let d = reader.skip(wireType);
|
|
950
|
+
if (u !== false)
|
|
951
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
return message;
|
|
955
|
+
}
|
|
956
|
+
internalBinaryWrite(message: CosmosCoin, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
957
|
+
/* string denom = 1; */
|
|
958
|
+
if (message.denom !== "")
|
|
959
|
+
writer.tag(1, WireType.LengthDelimited).string(message.denom);
|
|
960
|
+
/* string amount = 2; */
|
|
961
|
+
if (message.amount !== "")
|
|
962
|
+
writer.tag(2, WireType.LengthDelimited).string(message.amount);
|
|
963
|
+
let u = options.writeUnknownFields;
|
|
964
|
+
if (u !== false)
|
|
965
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
966
|
+
return writer;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.CosmosCoin
|
|
971
|
+
*/
|
|
972
|
+
export const CosmosCoin = new CosmosCoin$Type();
|
|
973
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
974
|
+
class PrepareTxResponse$Type extends MessageType<PrepareTxResponse> {
|
|
975
|
+
constructor() {
|
|
976
|
+
super("injective_exchange_rpc.PrepareTxResponse", [
|
|
977
|
+
{ no: 1, name: "data", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
978
|
+
{ no: 2, name: "sequence", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
979
|
+
{ no: 3, name: "sign_mode", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
980
|
+
{ no: 4, name: "pub_key_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
981
|
+
{ no: 5, name: "fee_payer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
982
|
+
{ no: 6, name: "fee_payer_sig", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
983
|
+
]);
|
|
984
|
+
}
|
|
985
|
+
create(value?: PartialMessage<PrepareTxResponse>): PrepareTxResponse {
|
|
986
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
987
|
+
message.data = "";
|
|
988
|
+
message.sequence = 0n;
|
|
989
|
+
message.signMode = "";
|
|
990
|
+
message.pubKeyType = "";
|
|
991
|
+
message.feePayer = "";
|
|
992
|
+
message.feePayerSig = "";
|
|
993
|
+
if (value !== undefined)
|
|
994
|
+
reflectionMergePartial<PrepareTxResponse>(this, message, value);
|
|
995
|
+
return message;
|
|
996
|
+
}
|
|
997
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PrepareTxResponse): PrepareTxResponse {
|
|
998
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
999
|
+
while (reader.pos < end) {
|
|
1000
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1001
|
+
switch (fieldNo) {
|
|
1002
|
+
case /* string data */ 1:
|
|
1003
|
+
message.data = reader.string();
|
|
1004
|
+
break;
|
|
1005
|
+
case /* uint64 sequence */ 2:
|
|
1006
|
+
message.sequence = reader.uint64().toBigInt();
|
|
1007
|
+
break;
|
|
1008
|
+
case /* string sign_mode */ 3:
|
|
1009
|
+
message.signMode = reader.string();
|
|
1010
|
+
break;
|
|
1011
|
+
case /* string pub_key_type */ 4:
|
|
1012
|
+
message.pubKeyType = reader.string();
|
|
1013
|
+
break;
|
|
1014
|
+
case /* string fee_payer */ 5:
|
|
1015
|
+
message.feePayer = reader.string();
|
|
1016
|
+
break;
|
|
1017
|
+
case /* string fee_payer_sig */ 6:
|
|
1018
|
+
message.feePayerSig = reader.string();
|
|
1019
|
+
break;
|
|
1020
|
+
default:
|
|
1021
|
+
let u = options.readUnknownField;
|
|
1022
|
+
if (u === "throw")
|
|
1023
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1024
|
+
let d = reader.skip(wireType);
|
|
1025
|
+
if (u !== false)
|
|
1026
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1027
|
+
}
|
|
1028
|
+
}
|
|
1029
|
+
return message;
|
|
1030
|
+
}
|
|
1031
|
+
internalBinaryWrite(message: PrepareTxResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1032
|
+
/* string data = 1; */
|
|
1033
|
+
if (message.data !== "")
|
|
1034
|
+
writer.tag(1, WireType.LengthDelimited).string(message.data);
|
|
1035
|
+
/* uint64 sequence = 2; */
|
|
1036
|
+
if (message.sequence !== 0n)
|
|
1037
|
+
writer.tag(2, WireType.Varint).uint64(message.sequence);
|
|
1038
|
+
/* string sign_mode = 3; */
|
|
1039
|
+
if (message.signMode !== "")
|
|
1040
|
+
writer.tag(3, WireType.LengthDelimited).string(message.signMode);
|
|
1041
|
+
/* string pub_key_type = 4; */
|
|
1042
|
+
if (message.pubKeyType !== "")
|
|
1043
|
+
writer.tag(4, WireType.LengthDelimited).string(message.pubKeyType);
|
|
1044
|
+
/* string fee_payer = 5; */
|
|
1045
|
+
if (message.feePayer !== "")
|
|
1046
|
+
writer.tag(5, WireType.LengthDelimited).string(message.feePayer);
|
|
1047
|
+
/* string fee_payer_sig = 6; */
|
|
1048
|
+
if (message.feePayerSig !== "")
|
|
1049
|
+
writer.tag(6, WireType.LengthDelimited).string(message.feePayerSig);
|
|
1050
|
+
let u = options.writeUnknownFields;
|
|
1051
|
+
if (u !== false)
|
|
1052
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1053
|
+
return writer;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
/**
|
|
1057
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.PrepareTxResponse
|
|
1058
|
+
*/
|
|
1059
|
+
export const PrepareTxResponse = new PrepareTxResponse$Type();
|
|
1060
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1061
|
+
class PrepareEip712Request$Type extends MessageType<PrepareEip712Request> {
|
|
1062
|
+
constructor() {
|
|
1063
|
+
super("injective_exchange_rpc.PrepareEip712Request", [
|
|
1064
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1065
|
+
{ no: 2, name: "signer_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1066
|
+
{ no: 3, name: "sequence", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1067
|
+
{ no: 4, name: "account_number", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1068
|
+
{ no: 5, name: "memo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1069
|
+
{ no: 6, name: "timeout_height", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1070
|
+
{ no: 7, name: "fee", kind: "message", T: () => CosmosTxFee },
|
|
1071
|
+
{ no: 8, name: "msgs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
1072
|
+
{ no: 9, name: "eip712_wrapper", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1073
|
+
]);
|
|
1074
|
+
}
|
|
1075
|
+
create(value?: PartialMessage<PrepareEip712Request>): PrepareEip712Request {
|
|
1076
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1077
|
+
message.chainId = 0n;
|
|
1078
|
+
message.signerAddress = "";
|
|
1079
|
+
message.sequence = 0n;
|
|
1080
|
+
message.accountNumber = 0n;
|
|
1081
|
+
message.memo = "";
|
|
1082
|
+
message.timeoutHeight = 0n;
|
|
1083
|
+
message.msgs = [];
|
|
1084
|
+
message.eip712Wrapper = "";
|
|
1085
|
+
if (value !== undefined)
|
|
1086
|
+
reflectionMergePartial<PrepareEip712Request>(this, message, value);
|
|
1087
|
+
return message;
|
|
1088
|
+
}
|
|
1089
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PrepareEip712Request): PrepareEip712Request {
|
|
1090
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1091
|
+
while (reader.pos < end) {
|
|
1092
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1093
|
+
switch (fieldNo) {
|
|
1094
|
+
case /* uint64 chain_id */ 1:
|
|
1095
|
+
message.chainId = reader.uint64().toBigInt();
|
|
1096
|
+
break;
|
|
1097
|
+
case /* string signer_address */ 2:
|
|
1098
|
+
message.signerAddress = reader.string();
|
|
1099
|
+
break;
|
|
1100
|
+
case /* uint64 sequence */ 3:
|
|
1101
|
+
message.sequence = reader.uint64().toBigInt();
|
|
1102
|
+
break;
|
|
1103
|
+
case /* uint64 account_number */ 4:
|
|
1104
|
+
message.accountNumber = reader.uint64().toBigInt();
|
|
1105
|
+
break;
|
|
1106
|
+
case /* string memo */ 5:
|
|
1107
|
+
message.memo = reader.string();
|
|
1108
|
+
break;
|
|
1109
|
+
case /* uint64 timeout_height */ 6:
|
|
1110
|
+
message.timeoutHeight = reader.uint64().toBigInt();
|
|
1111
|
+
break;
|
|
1112
|
+
case /* injective_exchange_rpc.CosmosTxFee fee */ 7:
|
|
1113
|
+
message.fee = CosmosTxFee.internalBinaryRead(reader, reader.uint32(), options, message.fee);
|
|
1114
|
+
break;
|
|
1115
|
+
case /* repeated bytes msgs */ 8:
|
|
1116
|
+
message.msgs.push(reader.bytes());
|
|
1117
|
+
break;
|
|
1118
|
+
case /* string eip712_wrapper */ 9:
|
|
1119
|
+
message.eip712Wrapper = reader.string();
|
|
1120
|
+
break;
|
|
1121
|
+
default:
|
|
1122
|
+
let u = options.readUnknownField;
|
|
1123
|
+
if (u === "throw")
|
|
1124
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1125
|
+
let d = reader.skip(wireType);
|
|
1126
|
+
if (u !== false)
|
|
1127
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
return message;
|
|
1131
|
+
}
|
|
1132
|
+
internalBinaryWrite(message: PrepareEip712Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1133
|
+
/* uint64 chain_id = 1; */
|
|
1134
|
+
if (message.chainId !== 0n)
|
|
1135
|
+
writer.tag(1, WireType.Varint).uint64(message.chainId);
|
|
1136
|
+
/* string signer_address = 2; */
|
|
1137
|
+
if (message.signerAddress !== "")
|
|
1138
|
+
writer.tag(2, WireType.LengthDelimited).string(message.signerAddress);
|
|
1139
|
+
/* uint64 sequence = 3; */
|
|
1140
|
+
if (message.sequence !== 0n)
|
|
1141
|
+
writer.tag(3, WireType.Varint).uint64(message.sequence);
|
|
1142
|
+
/* uint64 account_number = 4; */
|
|
1143
|
+
if (message.accountNumber !== 0n)
|
|
1144
|
+
writer.tag(4, WireType.Varint).uint64(message.accountNumber);
|
|
1145
|
+
/* string memo = 5; */
|
|
1146
|
+
if (message.memo !== "")
|
|
1147
|
+
writer.tag(5, WireType.LengthDelimited).string(message.memo);
|
|
1148
|
+
/* uint64 timeout_height = 6; */
|
|
1149
|
+
if (message.timeoutHeight !== 0n)
|
|
1150
|
+
writer.tag(6, WireType.Varint).uint64(message.timeoutHeight);
|
|
1151
|
+
/* injective_exchange_rpc.CosmosTxFee fee = 7; */
|
|
1152
|
+
if (message.fee)
|
|
1153
|
+
CosmosTxFee.internalBinaryWrite(message.fee, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1154
|
+
/* repeated bytes msgs = 8; */
|
|
1155
|
+
for (let i = 0; i < message.msgs.length; i++)
|
|
1156
|
+
writer.tag(8, WireType.LengthDelimited).bytes(message.msgs[i]);
|
|
1157
|
+
/* string eip712_wrapper = 9; */
|
|
1158
|
+
if (message.eip712Wrapper !== "")
|
|
1159
|
+
writer.tag(9, WireType.LengthDelimited).string(message.eip712Wrapper);
|
|
1160
|
+
let u = options.writeUnknownFields;
|
|
1161
|
+
if (u !== false)
|
|
1162
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1163
|
+
return writer;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
/**
|
|
1167
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.PrepareEip712Request
|
|
1168
|
+
*/
|
|
1169
|
+
export const PrepareEip712Request = new PrepareEip712Request$Type();
|
|
1170
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1171
|
+
class PrepareEip712Response$Type extends MessageType<PrepareEip712Response> {
|
|
1172
|
+
constructor() {
|
|
1173
|
+
super("injective_exchange_rpc.PrepareEip712Response", [
|
|
1174
|
+
{ no: 1, name: "data", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1175
|
+
]);
|
|
1176
|
+
}
|
|
1177
|
+
create(value?: PartialMessage<PrepareEip712Response>): PrepareEip712Response {
|
|
1178
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1179
|
+
message.data = "";
|
|
1180
|
+
if (value !== undefined)
|
|
1181
|
+
reflectionMergePartial<PrepareEip712Response>(this, message, value);
|
|
1182
|
+
return message;
|
|
1183
|
+
}
|
|
1184
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PrepareEip712Response): PrepareEip712Response {
|
|
1185
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1186
|
+
while (reader.pos < end) {
|
|
1187
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1188
|
+
switch (fieldNo) {
|
|
1189
|
+
case /* string data */ 1:
|
|
1190
|
+
message.data = reader.string();
|
|
1191
|
+
break;
|
|
1192
|
+
default:
|
|
1193
|
+
let u = options.readUnknownField;
|
|
1194
|
+
if (u === "throw")
|
|
1195
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1196
|
+
let d = reader.skip(wireType);
|
|
1197
|
+
if (u !== false)
|
|
1198
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
return message;
|
|
1202
|
+
}
|
|
1203
|
+
internalBinaryWrite(message: PrepareEip712Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1204
|
+
/* string data = 1; */
|
|
1205
|
+
if (message.data !== "")
|
|
1206
|
+
writer.tag(1, WireType.LengthDelimited).string(message.data);
|
|
1207
|
+
let u = options.writeUnknownFields;
|
|
1208
|
+
if (u !== false)
|
|
1209
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1210
|
+
return writer;
|
|
1211
|
+
}
|
|
1212
|
+
}
|
|
1213
|
+
/**
|
|
1214
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.PrepareEip712Response
|
|
1215
|
+
*/
|
|
1216
|
+
export const PrepareEip712Response = new PrepareEip712Response$Type();
|
|
1217
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1218
|
+
class BroadcastTxRequest$Type extends MessageType<BroadcastTxRequest> {
|
|
1219
|
+
constructor() {
|
|
1220
|
+
super("injective_exchange_rpc.BroadcastTxRequest", [
|
|
1221
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1222
|
+
{ no: 2, name: "tx", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1223
|
+
{ no: 3, name: "msgs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ },
|
|
1224
|
+
{ no: 4, name: "pub_key", kind: "message", T: () => CosmosPubKey },
|
|
1225
|
+
{ no: 5, name: "signature", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1226
|
+
{ no: 6, name: "fee_payer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1227
|
+
{ no: 7, name: "fee_payer_sig", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1228
|
+
{ no: 8, name: "mode", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1229
|
+
]);
|
|
1230
|
+
}
|
|
1231
|
+
create(value?: PartialMessage<BroadcastTxRequest>): BroadcastTxRequest {
|
|
1232
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1233
|
+
message.chainId = 0n;
|
|
1234
|
+
message.tx = new Uint8Array(0);
|
|
1235
|
+
message.msgs = [];
|
|
1236
|
+
message.signature = "";
|
|
1237
|
+
message.feePayer = "";
|
|
1238
|
+
message.feePayerSig = "";
|
|
1239
|
+
message.mode = "";
|
|
1240
|
+
if (value !== undefined)
|
|
1241
|
+
reflectionMergePartial<BroadcastTxRequest>(this, message, value);
|
|
1242
|
+
return message;
|
|
1243
|
+
}
|
|
1244
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BroadcastTxRequest): BroadcastTxRequest {
|
|
1245
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1246
|
+
while (reader.pos < end) {
|
|
1247
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1248
|
+
switch (fieldNo) {
|
|
1249
|
+
case /* uint64 chain_id */ 1:
|
|
1250
|
+
message.chainId = reader.uint64().toBigInt();
|
|
1251
|
+
break;
|
|
1252
|
+
case /* bytes tx */ 2:
|
|
1253
|
+
message.tx = reader.bytes();
|
|
1254
|
+
break;
|
|
1255
|
+
case /* repeated bytes msgs */ 3:
|
|
1256
|
+
message.msgs.push(reader.bytes());
|
|
1257
|
+
break;
|
|
1258
|
+
case /* injective_exchange_rpc.CosmosPubKey pub_key */ 4:
|
|
1259
|
+
message.pubKey = CosmosPubKey.internalBinaryRead(reader, reader.uint32(), options, message.pubKey);
|
|
1260
|
+
break;
|
|
1261
|
+
case /* string signature */ 5:
|
|
1262
|
+
message.signature = reader.string();
|
|
1263
|
+
break;
|
|
1264
|
+
case /* string fee_payer */ 6:
|
|
1265
|
+
message.feePayer = reader.string();
|
|
1266
|
+
break;
|
|
1267
|
+
case /* string fee_payer_sig */ 7:
|
|
1268
|
+
message.feePayerSig = reader.string();
|
|
1269
|
+
break;
|
|
1270
|
+
case /* string mode */ 8:
|
|
1271
|
+
message.mode = reader.string();
|
|
1272
|
+
break;
|
|
1273
|
+
default:
|
|
1274
|
+
let u = options.readUnknownField;
|
|
1275
|
+
if (u === "throw")
|
|
1276
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1277
|
+
let d = reader.skip(wireType);
|
|
1278
|
+
if (u !== false)
|
|
1279
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
return message;
|
|
1283
|
+
}
|
|
1284
|
+
internalBinaryWrite(message: BroadcastTxRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1285
|
+
/* uint64 chain_id = 1; */
|
|
1286
|
+
if (message.chainId !== 0n)
|
|
1287
|
+
writer.tag(1, WireType.Varint).uint64(message.chainId);
|
|
1288
|
+
/* bytes tx = 2; */
|
|
1289
|
+
if (message.tx.length)
|
|
1290
|
+
writer.tag(2, WireType.LengthDelimited).bytes(message.tx);
|
|
1291
|
+
/* repeated bytes msgs = 3; */
|
|
1292
|
+
for (let i = 0; i < message.msgs.length; i++)
|
|
1293
|
+
writer.tag(3, WireType.LengthDelimited).bytes(message.msgs[i]);
|
|
1294
|
+
/* injective_exchange_rpc.CosmosPubKey pub_key = 4; */
|
|
1295
|
+
if (message.pubKey)
|
|
1296
|
+
CosmosPubKey.internalBinaryWrite(message.pubKey, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
|
|
1297
|
+
/* string signature = 5; */
|
|
1298
|
+
if (message.signature !== "")
|
|
1299
|
+
writer.tag(5, WireType.LengthDelimited).string(message.signature);
|
|
1300
|
+
/* string fee_payer = 6; */
|
|
1301
|
+
if (message.feePayer !== "")
|
|
1302
|
+
writer.tag(6, WireType.LengthDelimited).string(message.feePayer);
|
|
1303
|
+
/* string fee_payer_sig = 7; */
|
|
1304
|
+
if (message.feePayerSig !== "")
|
|
1305
|
+
writer.tag(7, WireType.LengthDelimited).string(message.feePayerSig);
|
|
1306
|
+
/* string mode = 8; */
|
|
1307
|
+
if (message.mode !== "")
|
|
1308
|
+
writer.tag(8, WireType.LengthDelimited).string(message.mode);
|
|
1309
|
+
let u = options.writeUnknownFields;
|
|
1310
|
+
if (u !== false)
|
|
1311
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1312
|
+
return writer;
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.BroadcastTxRequest
|
|
1317
|
+
*/
|
|
1318
|
+
export const BroadcastTxRequest = new BroadcastTxRequest$Type();
|
|
1319
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1320
|
+
class CosmosPubKey$Type extends MessageType<CosmosPubKey> {
|
|
1321
|
+
constructor() {
|
|
1322
|
+
super("injective_exchange_rpc.CosmosPubKey", [
|
|
1323
|
+
{ no: 1, name: "type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1324
|
+
{ no: 2, name: "key", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1325
|
+
]);
|
|
1326
|
+
}
|
|
1327
|
+
create(value?: PartialMessage<CosmosPubKey>): CosmosPubKey {
|
|
1328
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1329
|
+
message.type = "";
|
|
1330
|
+
message.key = "";
|
|
1331
|
+
if (value !== undefined)
|
|
1332
|
+
reflectionMergePartial<CosmosPubKey>(this, message, value);
|
|
1333
|
+
return message;
|
|
1334
|
+
}
|
|
1335
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: CosmosPubKey): CosmosPubKey {
|
|
1336
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1337
|
+
while (reader.pos < end) {
|
|
1338
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1339
|
+
switch (fieldNo) {
|
|
1340
|
+
case /* string type */ 1:
|
|
1341
|
+
message.type = reader.string();
|
|
1342
|
+
break;
|
|
1343
|
+
case /* string key */ 2:
|
|
1344
|
+
message.key = reader.string();
|
|
1345
|
+
break;
|
|
1346
|
+
default:
|
|
1347
|
+
let u = options.readUnknownField;
|
|
1348
|
+
if (u === "throw")
|
|
1349
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1350
|
+
let d = reader.skip(wireType);
|
|
1351
|
+
if (u !== false)
|
|
1352
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1353
|
+
}
|
|
1354
|
+
}
|
|
1355
|
+
return message;
|
|
1356
|
+
}
|
|
1357
|
+
internalBinaryWrite(message: CosmosPubKey, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1358
|
+
/* string type = 1; */
|
|
1359
|
+
if (message.type !== "")
|
|
1360
|
+
writer.tag(1, WireType.LengthDelimited).string(message.type);
|
|
1361
|
+
/* string key = 2; */
|
|
1362
|
+
if (message.key !== "")
|
|
1363
|
+
writer.tag(2, WireType.LengthDelimited).string(message.key);
|
|
1364
|
+
let u = options.writeUnknownFields;
|
|
1365
|
+
if (u !== false)
|
|
1366
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1367
|
+
return writer;
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
/**
|
|
1371
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.CosmosPubKey
|
|
1372
|
+
*/
|
|
1373
|
+
export const CosmosPubKey = new CosmosPubKey$Type();
|
|
1374
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1375
|
+
class BroadcastTxResponse$Type extends MessageType<BroadcastTxResponse> {
|
|
1376
|
+
constructor() {
|
|
1377
|
+
super("injective_exchange_rpc.BroadcastTxResponse", [
|
|
1378
|
+
{ no: 1, name: "tx_hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1379
|
+
{ no: 2, name: "height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1380
|
+
{ no: 3, name: "index", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1381
|
+
{ no: 4, name: "codespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1382
|
+
{ no: 5, name: "code", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1383
|
+
{ no: 6, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1384
|
+
{ no: 7, name: "raw_log", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1385
|
+
{ no: 8, name: "timestamp", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1386
|
+
]);
|
|
1387
|
+
}
|
|
1388
|
+
create(value?: PartialMessage<BroadcastTxResponse>): BroadcastTxResponse {
|
|
1389
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1390
|
+
message.txHash = "";
|
|
1391
|
+
message.height = 0n;
|
|
1392
|
+
message.index = 0;
|
|
1393
|
+
message.codespace = "";
|
|
1394
|
+
message.code = 0;
|
|
1395
|
+
message.data = new Uint8Array(0);
|
|
1396
|
+
message.rawLog = "";
|
|
1397
|
+
message.timestamp = "";
|
|
1398
|
+
if (value !== undefined)
|
|
1399
|
+
reflectionMergePartial<BroadcastTxResponse>(this, message, value);
|
|
1400
|
+
return message;
|
|
1401
|
+
}
|
|
1402
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BroadcastTxResponse): BroadcastTxResponse {
|
|
1403
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1404
|
+
while (reader.pos < end) {
|
|
1405
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1406
|
+
switch (fieldNo) {
|
|
1407
|
+
case /* string tx_hash */ 1:
|
|
1408
|
+
message.txHash = reader.string();
|
|
1409
|
+
break;
|
|
1410
|
+
case /* sint64 height */ 2:
|
|
1411
|
+
message.height = reader.sint64().toBigInt();
|
|
1412
|
+
break;
|
|
1413
|
+
case /* uint32 index */ 3:
|
|
1414
|
+
message.index = reader.uint32();
|
|
1415
|
+
break;
|
|
1416
|
+
case /* string codespace */ 4:
|
|
1417
|
+
message.codespace = reader.string();
|
|
1418
|
+
break;
|
|
1419
|
+
case /* uint32 code */ 5:
|
|
1420
|
+
message.code = reader.uint32();
|
|
1421
|
+
break;
|
|
1422
|
+
case /* bytes data */ 6:
|
|
1423
|
+
message.data = reader.bytes();
|
|
1424
|
+
break;
|
|
1425
|
+
case /* string raw_log */ 7:
|
|
1426
|
+
message.rawLog = reader.string();
|
|
1427
|
+
break;
|
|
1428
|
+
case /* string timestamp */ 8:
|
|
1429
|
+
message.timestamp = reader.string();
|
|
1430
|
+
break;
|
|
1431
|
+
default:
|
|
1432
|
+
let u = options.readUnknownField;
|
|
1433
|
+
if (u === "throw")
|
|
1434
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1435
|
+
let d = reader.skip(wireType);
|
|
1436
|
+
if (u !== false)
|
|
1437
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
return message;
|
|
1441
|
+
}
|
|
1442
|
+
internalBinaryWrite(message: BroadcastTxResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1443
|
+
/* string tx_hash = 1; */
|
|
1444
|
+
if (message.txHash !== "")
|
|
1445
|
+
writer.tag(1, WireType.LengthDelimited).string(message.txHash);
|
|
1446
|
+
/* sint64 height = 2; */
|
|
1447
|
+
if (message.height !== 0n)
|
|
1448
|
+
writer.tag(2, WireType.Varint).sint64(message.height);
|
|
1449
|
+
/* uint32 index = 3; */
|
|
1450
|
+
if (message.index !== 0)
|
|
1451
|
+
writer.tag(3, WireType.Varint).uint32(message.index);
|
|
1452
|
+
/* string codespace = 4; */
|
|
1453
|
+
if (message.codespace !== "")
|
|
1454
|
+
writer.tag(4, WireType.LengthDelimited).string(message.codespace);
|
|
1455
|
+
/* uint32 code = 5; */
|
|
1456
|
+
if (message.code !== 0)
|
|
1457
|
+
writer.tag(5, WireType.Varint).uint32(message.code);
|
|
1458
|
+
/* bytes data = 6; */
|
|
1459
|
+
if (message.data.length)
|
|
1460
|
+
writer.tag(6, WireType.LengthDelimited).bytes(message.data);
|
|
1461
|
+
/* string raw_log = 7; */
|
|
1462
|
+
if (message.rawLog !== "")
|
|
1463
|
+
writer.tag(7, WireType.LengthDelimited).string(message.rawLog);
|
|
1464
|
+
/* string timestamp = 8; */
|
|
1465
|
+
if (message.timestamp !== "")
|
|
1466
|
+
writer.tag(8, WireType.LengthDelimited).string(message.timestamp);
|
|
1467
|
+
let u = options.writeUnknownFields;
|
|
1468
|
+
if (u !== false)
|
|
1469
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1470
|
+
return writer;
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
/**
|
|
1474
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.BroadcastTxResponse
|
|
1475
|
+
*/
|
|
1476
|
+
export const BroadcastTxResponse = new BroadcastTxResponse$Type();
|
|
1477
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1478
|
+
class PrepareCosmosTxRequest$Type extends MessageType<PrepareCosmosTxRequest> {
|
|
1479
|
+
constructor() {
|
|
1480
|
+
super("injective_exchange_rpc.PrepareCosmosTxRequest", [
|
|
1481
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1482
|
+
{ no: 2, name: "sender_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1483
|
+
{ no: 3, name: "memo", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1484
|
+
{ no: 4, name: "timeout_height", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1485
|
+
{ no: 5, name: "fee", kind: "message", T: () => CosmosTxFee },
|
|
1486
|
+
{ no: 6, name: "msgs", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 12 /*ScalarType.BYTES*/ }
|
|
1487
|
+
]);
|
|
1488
|
+
}
|
|
1489
|
+
create(value?: PartialMessage<PrepareCosmosTxRequest>): PrepareCosmosTxRequest {
|
|
1490
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1491
|
+
message.chainId = 0n;
|
|
1492
|
+
message.senderAddress = "";
|
|
1493
|
+
message.memo = "";
|
|
1494
|
+
message.timeoutHeight = 0n;
|
|
1495
|
+
message.msgs = [];
|
|
1496
|
+
if (value !== undefined)
|
|
1497
|
+
reflectionMergePartial<PrepareCosmosTxRequest>(this, message, value);
|
|
1498
|
+
return message;
|
|
1499
|
+
}
|
|
1500
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PrepareCosmosTxRequest): PrepareCosmosTxRequest {
|
|
1501
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1502
|
+
while (reader.pos < end) {
|
|
1503
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1504
|
+
switch (fieldNo) {
|
|
1505
|
+
case /* uint64 chain_id */ 1:
|
|
1506
|
+
message.chainId = reader.uint64().toBigInt();
|
|
1507
|
+
break;
|
|
1508
|
+
case /* string sender_address */ 2:
|
|
1509
|
+
message.senderAddress = reader.string();
|
|
1510
|
+
break;
|
|
1511
|
+
case /* string memo */ 3:
|
|
1512
|
+
message.memo = reader.string();
|
|
1513
|
+
break;
|
|
1514
|
+
case /* uint64 timeout_height */ 4:
|
|
1515
|
+
message.timeoutHeight = reader.uint64().toBigInt();
|
|
1516
|
+
break;
|
|
1517
|
+
case /* injective_exchange_rpc.CosmosTxFee fee */ 5:
|
|
1518
|
+
message.fee = CosmosTxFee.internalBinaryRead(reader, reader.uint32(), options, message.fee);
|
|
1519
|
+
break;
|
|
1520
|
+
case /* repeated bytes msgs */ 6:
|
|
1521
|
+
message.msgs.push(reader.bytes());
|
|
1522
|
+
break;
|
|
1523
|
+
default:
|
|
1524
|
+
let u = options.readUnknownField;
|
|
1525
|
+
if (u === "throw")
|
|
1526
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1527
|
+
let d = reader.skip(wireType);
|
|
1528
|
+
if (u !== false)
|
|
1529
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1530
|
+
}
|
|
1531
|
+
}
|
|
1532
|
+
return message;
|
|
1533
|
+
}
|
|
1534
|
+
internalBinaryWrite(message: PrepareCosmosTxRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1535
|
+
/* uint64 chain_id = 1; */
|
|
1536
|
+
if (message.chainId !== 0n)
|
|
1537
|
+
writer.tag(1, WireType.Varint).uint64(message.chainId);
|
|
1538
|
+
/* string sender_address = 2; */
|
|
1539
|
+
if (message.senderAddress !== "")
|
|
1540
|
+
writer.tag(2, WireType.LengthDelimited).string(message.senderAddress);
|
|
1541
|
+
/* string memo = 3; */
|
|
1542
|
+
if (message.memo !== "")
|
|
1543
|
+
writer.tag(3, WireType.LengthDelimited).string(message.memo);
|
|
1544
|
+
/* uint64 timeout_height = 4; */
|
|
1545
|
+
if (message.timeoutHeight !== 0n)
|
|
1546
|
+
writer.tag(4, WireType.Varint).uint64(message.timeoutHeight);
|
|
1547
|
+
/* injective_exchange_rpc.CosmosTxFee fee = 5; */
|
|
1548
|
+
if (message.fee)
|
|
1549
|
+
CosmosTxFee.internalBinaryWrite(message.fee, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
|
|
1550
|
+
/* repeated bytes msgs = 6; */
|
|
1551
|
+
for (let i = 0; i < message.msgs.length; i++)
|
|
1552
|
+
writer.tag(6, WireType.LengthDelimited).bytes(message.msgs[i]);
|
|
1553
|
+
let u = options.writeUnknownFields;
|
|
1554
|
+
if (u !== false)
|
|
1555
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1556
|
+
return writer;
|
|
1557
|
+
}
|
|
1558
|
+
}
|
|
1559
|
+
/**
|
|
1560
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.PrepareCosmosTxRequest
|
|
1561
|
+
*/
|
|
1562
|
+
export const PrepareCosmosTxRequest = new PrepareCosmosTxRequest$Type();
|
|
1563
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1564
|
+
class PrepareCosmosTxResponse$Type extends MessageType<PrepareCosmosTxResponse> {
|
|
1565
|
+
constructor() {
|
|
1566
|
+
super("injective_exchange_rpc.PrepareCosmosTxResponse", [
|
|
1567
|
+
{ no: 1, name: "tx", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1568
|
+
{ no: 2, name: "sign_mode", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1569
|
+
{ no: 3, name: "pub_key_type", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1570
|
+
{ no: 4, name: "fee_payer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1571
|
+
{ no: 5, name: "fee_payer_sig", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1572
|
+
{ no: 6, name: "fee_payer_pub_key", kind: "message", T: () => CosmosPubKey }
|
|
1573
|
+
]);
|
|
1574
|
+
}
|
|
1575
|
+
create(value?: PartialMessage<PrepareCosmosTxResponse>): PrepareCosmosTxResponse {
|
|
1576
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1577
|
+
message.tx = new Uint8Array(0);
|
|
1578
|
+
message.signMode = "";
|
|
1579
|
+
message.pubKeyType = "";
|
|
1580
|
+
message.feePayer = "";
|
|
1581
|
+
message.feePayerSig = "";
|
|
1582
|
+
if (value !== undefined)
|
|
1583
|
+
reflectionMergePartial<PrepareCosmosTxResponse>(this, message, value);
|
|
1584
|
+
return message;
|
|
1585
|
+
}
|
|
1586
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PrepareCosmosTxResponse): PrepareCosmosTxResponse {
|
|
1587
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1588
|
+
while (reader.pos < end) {
|
|
1589
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1590
|
+
switch (fieldNo) {
|
|
1591
|
+
case /* bytes tx */ 1:
|
|
1592
|
+
message.tx = reader.bytes();
|
|
1593
|
+
break;
|
|
1594
|
+
case /* string sign_mode */ 2:
|
|
1595
|
+
message.signMode = reader.string();
|
|
1596
|
+
break;
|
|
1597
|
+
case /* string pub_key_type */ 3:
|
|
1598
|
+
message.pubKeyType = reader.string();
|
|
1599
|
+
break;
|
|
1600
|
+
case /* string fee_payer */ 4:
|
|
1601
|
+
message.feePayer = reader.string();
|
|
1602
|
+
break;
|
|
1603
|
+
case /* string fee_payer_sig */ 5:
|
|
1604
|
+
message.feePayerSig = reader.string();
|
|
1605
|
+
break;
|
|
1606
|
+
case /* injective_exchange_rpc.CosmosPubKey fee_payer_pub_key */ 6:
|
|
1607
|
+
message.feePayerPubKey = CosmosPubKey.internalBinaryRead(reader, reader.uint32(), options, message.feePayerPubKey);
|
|
1608
|
+
break;
|
|
1609
|
+
default:
|
|
1610
|
+
let u = options.readUnknownField;
|
|
1611
|
+
if (u === "throw")
|
|
1612
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1613
|
+
let d = reader.skip(wireType);
|
|
1614
|
+
if (u !== false)
|
|
1615
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
return message;
|
|
1619
|
+
}
|
|
1620
|
+
internalBinaryWrite(message: PrepareCosmosTxResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1621
|
+
/* bytes tx = 1; */
|
|
1622
|
+
if (message.tx.length)
|
|
1623
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.tx);
|
|
1624
|
+
/* string sign_mode = 2; */
|
|
1625
|
+
if (message.signMode !== "")
|
|
1626
|
+
writer.tag(2, WireType.LengthDelimited).string(message.signMode);
|
|
1627
|
+
/* string pub_key_type = 3; */
|
|
1628
|
+
if (message.pubKeyType !== "")
|
|
1629
|
+
writer.tag(3, WireType.LengthDelimited).string(message.pubKeyType);
|
|
1630
|
+
/* string fee_payer = 4; */
|
|
1631
|
+
if (message.feePayer !== "")
|
|
1632
|
+
writer.tag(4, WireType.LengthDelimited).string(message.feePayer);
|
|
1633
|
+
/* string fee_payer_sig = 5; */
|
|
1634
|
+
if (message.feePayerSig !== "")
|
|
1635
|
+
writer.tag(5, WireType.LengthDelimited).string(message.feePayerSig);
|
|
1636
|
+
/* injective_exchange_rpc.CosmosPubKey fee_payer_pub_key = 6; */
|
|
1637
|
+
if (message.feePayerPubKey)
|
|
1638
|
+
CosmosPubKey.internalBinaryWrite(message.feePayerPubKey, writer.tag(6, WireType.LengthDelimited).fork(), options).join();
|
|
1639
|
+
let u = options.writeUnknownFields;
|
|
1640
|
+
if (u !== false)
|
|
1641
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1642
|
+
return writer;
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.PrepareCosmosTxResponse
|
|
1647
|
+
*/
|
|
1648
|
+
export const PrepareCosmosTxResponse = new PrepareCosmosTxResponse$Type();
|
|
1649
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1650
|
+
class BroadcastCosmosTxRequest$Type extends MessageType<BroadcastCosmosTxRequest> {
|
|
1651
|
+
constructor() {
|
|
1652
|
+
super("injective_exchange_rpc.BroadcastCosmosTxRequest", [
|
|
1653
|
+
{ no: 1, name: "tx", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1654
|
+
{ no: 2, name: "pub_key", kind: "message", T: () => CosmosPubKey },
|
|
1655
|
+
{ no: 3, name: "signature", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1656
|
+
{ no: 4, name: "sender_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1657
|
+
]);
|
|
1658
|
+
}
|
|
1659
|
+
create(value?: PartialMessage<BroadcastCosmosTxRequest>): BroadcastCosmosTxRequest {
|
|
1660
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1661
|
+
message.tx = new Uint8Array(0);
|
|
1662
|
+
message.signature = "";
|
|
1663
|
+
message.senderAddress = "";
|
|
1664
|
+
if (value !== undefined)
|
|
1665
|
+
reflectionMergePartial<BroadcastCosmosTxRequest>(this, message, value);
|
|
1666
|
+
return message;
|
|
1667
|
+
}
|
|
1668
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BroadcastCosmosTxRequest): BroadcastCosmosTxRequest {
|
|
1669
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1670
|
+
while (reader.pos < end) {
|
|
1671
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1672
|
+
switch (fieldNo) {
|
|
1673
|
+
case /* bytes tx */ 1:
|
|
1674
|
+
message.tx = reader.bytes();
|
|
1675
|
+
break;
|
|
1676
|
+
case /* injective_exchange_rpc.CosmosPubKey pub_key */ 2:
|
|
1677
|
+
message.pubKey = CosmosPubKey.internalBinaryRead(reader, reader.uint32(), options, message.pubKey);
|
|
1678
|
+
break;
|
|
1679
|
+
case /* string signature */ 3:
|
|
1680
|
+
message.signature = reader.string();
|
|
1681
|
+
break;
|
|
1682
|
+
case /* string sender_address */ 4:
|
|
1683
|
+
message.senderAddress = reader.string();
|
|
1684
|
+
break;
|
|
1685
|
+
default:
|
|
1686
|
+
let u = options.readUnknownField;
|
|
1687
|
+
if (u === "throw")
|
|
1688
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1689
|
+
let d = reader.skip(wireType);
|
|
1690
|
+
if (u !== false)
|
|
1691
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
return message;
|
|
1695
|
+
}
|
|
1696
|
+
internalBinaryWrite(message: BroadcastCosmosTxRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1697
|
+
/* bytes tx = 1; */
|
|
1698
|
+
if (message.tx.length)
|
|
1699
|
+
writer.tag(1, WireType.LengthDelimited).bytes(message.tx);
|
|
1700
|
+
/* injective_exchange_rpc.CosmosPubKey pub_key = 2; */
|
|
1701
|
+
if (message.pubKey)
|
|
1702
|
+
CosmosPubKey.internalBinaryWrite(message.pubKey, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1703
|
+
/* string signature = 3; */
|
|
1704
|
+
if (message.signature !== "")
|
|
1705
|
+
writer.tag(3, WireType.LengthDelimited).string(message.signature);
|
|
1706
|
+
/* string sender_address = 4; */
|
|
1707
|
+
if (message.senderAddress !== "")
|
|
1708
|
+
writer.tag(4, WireType.LengthDelimited).string(message.senderAddress);
|
|
1709
|
+
let u = options.writeUnknownFields;
|
|
1710
|
+
if (u !== false)
|
|
1711
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1712
|
+
return writer;
|
|
1713
|
+
}
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.BroadcastCosmosTxRequest
|
|
1717
|
+
*/
|
|
1718
|
+
export const BroadcastCosmosTxRequest = new BroadcastCosmosTxRequest$Type();
|
|
1719
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1720
|
+
class BroadcastCosmosTxResponse$Type extends MessageType<BroadcastCosmosTxResponse> {
|
|
1721
|
+
constructor() {
|
|
1722
|
+
super("injective_exchange_rpc.BroadcastCosmosTxResponse", [
|
|
1723
|
+
{ no: 1, name: "tx_hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1724
|
+
{ no: 2, name: "height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1725
|
+
{ no: 3, name: "index", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1726
|
+
{ no: 4, name: "codespace", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1727
|
+
{ no: 5, name: "code", kind: "scalar", T: 13 /*ScalarType.UINT32*/ },
|
|
1728
|
+
{ no: 6, name: "data", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
|
|
1729
|
+
{ no: 7, name: "raw_log", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1730
|
+
{ no: 8, name: "timestamp", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1731
|
+
]);
|
|
1732
|
+
}
|
|
1733
|
+
create(value?: PartialMessage<BroadcastCosmosTxResponse>): BroadcastCosmosTxResponse {
|
|
1734
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1735
|
+
message.txHash = "";
|
|
1736
|
+
message.height = 0n;
|
|
1737
|
+
message.index = 0;
|
|
1738
|
+
message.codespace = "";
|
|
1739
|
+
message.code = 0;
|
|
1740
|
+
message.data = new Uint8Array(0);
|
|
1741
|
+
message.rawLog = "";
|
|
1742
|
+
message.timestamp = "";
|
|
1743
|
+
if (value !== undefined)
|
|
1744
|
+
reflectionMergePartial<BroadcastCosmosTxResponse>(this, message, value);
|
|
1745
|
+
return message;
|
|
1746
|
+
}
|
|
1747
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: BroadcastCosmosTxResponse): BroadcastCosmosTxResponse {
|
|
1748
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1749
|
+
while (reader.pos < end) {
|
|
1750
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1751
|
+
switch (fieldNo) {
|
|
1752
|
+
case /* string tx_hash */ 1:
|
|
1753
|
+
message.txHash = reader.string();
|
|
1754
|
+
break;
|
|
1755
|
+
case /* sint64 height */ 2:
|
|
1756
|
+
message.height = reader.sint64().toBigInt();
|
|
1757
|
+
break;
|
|
1758
|
+
case /* uint32 index */ 3:
|
|
1759
|
+
message.index = reader.uint32();
|
|
1760
|
+
break;
|
|
1761
|
+
case /* string codespace */ 4:
|
|
1762
|
+
message.codespace = reader.string();
|
|
1763
|
+
break;
|
|
1764
|
+
case /* uint32 code */ 5:
|
|
1765
|
+
message.code = reader.uint32();
|
|
1766
|
+
break;
|
|
1767
|
+
case /* bytes data */ 6:
|
|
1768
|
+
message.data = reader.bytes();
|
|
1769
|
+
break;
|
|
1770
|
+
case /* string raw_log */ 7:
|
|
1771
|
+
message.rawLog = reader.string();
|
|
1772
|
+
break;
|
|
1773
|
+
case /* string timestamp */ 8:
|
|
1774
|
+
message.timestamp = reader.string();
|
|
1775
|
+
break;
|
|
1776
|
+
default:
|
|
1777
|
+
let u = options.readUnknownField;
|
|
1778
|
+
if (u === "throw")
|
|
1779
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1780
|
+
let d = reader.skip(wireType);
|
|
1781
|
+
if (u !== false)
|
|
1782
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
return message;
|
|
1786
|
+
}
|
|
1787
|
+
internalBinaryWrite(message: BroadcastCosmosTxResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1788
|
+
/* string tx_hash = 1; */
|
|
1789
|
+
if (message.txHash !== "")
|
|
1790
|
+
writer.tag(1, WireType.LengthDelimited).string(message.txHash);
|
|
1791
|
+
/* sint64 height = 2; */
|
|
1792
|
+
if (message.height !== 0n)
|
|
1793
|
+
writer.tag(2, WireType.Varint).sint64(message.height);
|
|
1794
|
+
/* uint32 index = 3; */
|
|
1795
|
+
if (message.index !== 0)
|
|
1796
|
+
writer.tag(3, WireType.Varint).uint32(message.index);
|
|
1797
|
+
/* string codespace = 4; */
|
|
1798
|
+
if (message.codespace !== "")
|
|
1799
|
+
writer.tag(4, WireType.LengthDelimited).string(message.codespace);
|
|
1800
|
+
/* uint32 code = 5; */
|
|
1801
|
+
if (message.code !== 0)
|
|
1802
|
+
writer.tag(5, WireType.Varint).uint32(message.code);
|
|
1803
|
+
/* bytes data = 6; */
|
|
1804
|
+
if (message.data.length)
|
|
1805
|
+
writer.tag(6, WireType.LengthDelimited).bytes(message.data);
|
|
1806
|
+
/* string raw_log = 7; */
|
|
1807
|
+
if (message.rawLog !== "")
|
|
1808
|
+
writer.tag(7, WireType.LengthDelimited).string(message.rawLog);
|
|
1809
|
+
/* string timestamp = 8; */
|
|
1810
|
+
if (message.timestamp !== "")
|
|
1811
|
+
writer.tag(8, WireType.LengthDelimited).string(message.timestamp);
|
|
1812
|
+
let u = options.writeUnknownFields;
|
|
1813
|
+
if (u !== false)
|
|
1814
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1815
|
+
return writer;
|
|
1816
|
+
}
|
|
1817
|
+
}
|
|
1818
|
+
/**
|
|
1819
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.BroadcastCosmosTxResponse
|
|
1820
|
+
*/
|
|
1821
|
+
export const BroadcastCosmosTxResponse = new BroadcastCosmosTxResponse$Type();
|
|
1822
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1823
|
+
class GetFeePayerRequest$Type extends MessageType<GetFeePayerRequest> {
|
|
1824
|
+
constructor() {
|
|
1825
|
+
super("injective_exchange_rpc.GetFeePayerRequest", []);
|
|
1826
|
+
}
|
|
1827
|
+
create(value?: PartialMessage<GetFeePayerRequest>): GetFeePayerRequest {
|
|
1828
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1829
|
+
if (value !== undefined)
|
|
1830
|
+
reflectionMergePartial<GetFeePayerRequest>(this, message, value);
|
|
1831
|
+
return message;
|
|
1832
|
+
}
|
|
1833
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetFeePayerRequest): GetFeePayerRequest {
|
|
1834
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1835
|
+
while (reader.pos < end) {
|
|
1836
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1837
|
+
switch (fieldNo) {
|
|
1838
|
+
default:
|
|
1839
|
+
let u = options.readUnknownField;
|
|
1840
|
+
if (u === "throw")
|
|
1841
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1842
|
+
let d = reader.skip(wireType);
|
|
1843
|
+
if (u !== false)
|
|
1844
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
return message;
|
|
1848
|
+
}
|
|
1849
|
+
internalBinaryWrite(message: GetFeePayerRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1850
|
+
let u = options.writeUnknownFields;
|
|
1851
|
+
if (u !== false)
|
|
1852
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1853
|
+
return writer;
|
|
1854
|
+
}
|
|
1855
|
+
}
|
|
1856
|
+
/**
|
|
1857
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.GetFeePayerRequest
|
|
1858
|
+
*/
|
|
1859
|
+
export const GetFeePayerRequest = new GetFeePayerRequest$Type();
|
|
1860
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1861
|
+
class GetFeePayerResponse$Type extends MessageType<GetFeePayerResponse> {
|
|
1862
|
+
constructor() {
|
|
1863
|
+
super("injective_exchange_rpc.GetFeePayerResponse", [
|
|
1864
|
+
{ no: 1, name: "fee_payer", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1865
|
+
{ no: 2, name: "fee_payer_pub_key", kind: "message", T: () => CosmosPubKey }
|
|
1866
|
+
]);
|
|
1867
|
+
}
|
|
1868
|
+
create(value?: PartialMessage<GetFeePayerResponse>): GetFeePayerResponse {
|
|
1869
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1870
|
+
message.feePayer = "";
|
|
1871
|
+
if (value !== undefined)
|
|
1872
|
+
reflectionMergePartial<GetFeePayerResponse>(this, message, value);
|
|
1873
|
+
return message;
|
|
1874
|
+
}
|
|
1875
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetFeePayerResponse): GetFeePayerResponse {
|
|
1876
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1877
|
+
while (reader.pos < end) {
|
|
1878
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1879
|
+
switch (fieldNo) {
|
|
1880
|
+
case /* string fee_payer */ 1:
|
|
1881
|
+
message.feePayer = reader.string();
|
|
1882
|
+
break;
|
|
1883
|
+
case /* injective_exchange_rpc.CosmosPubKey fee_payer_pub_key */ 2:
|
|
1884
|
+
message.feePayerPubKey = CosmosPubKey.internalBinaryRead(reader, reader.uint32(), options, message.feePayerPubKey);
|
|
1885
|
+
break;
|
|
1886
|
+
default:
|
|
1887
|
+
let u = options.readUnknownField;
|
|
1888
|
+
if (u === "throw")
|
|
1889
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1890
|
+
let d = reader.skip(wireType);
|
|
1891
|
+
if (u !== false)
|
|
1892
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1893
|
+
}
|
|
1894
|
+
}
|
|
1895
|
+
return message;
|
|
1896
|
+
}
|
|
1897
|
+
internalBinaryWrite(message: GetFeePayerResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1898
|
+
/* string fee_payer = 1; */
|
|
1899
|
+
if (message.feePayer !== "")
|
|
1900
|
+
writer.tag(1, WireType.LengthDelimited).string(message.feePayer);
|
|
1901
|
+
/* injective_exchange_rpc.CosmosPubKey fee_payer_pub_key = 2; */
|
|
1902
|
+
if (message.feePayerPubKey)
|
|
1903
|
+
CosmosPubKey.internalBinaryWrite(message.feePayerPubKey, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1904
|
+
let u = options.writeUnknownFields;
|
|
1905
|
+
if (u !== false)
|
|
1906
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1907
|
+
return writer;
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
/**
|
|
1911
|
+
* @generated MessageType for protobuf message injective_exchange_rpc.GetFeePayerResponse
|
|
1912
|
+
*/
|
|
1913
|
+
export const GetFeePayerResponse = new GetFeePayerResponse$Type();
|
|
1914
|
+
/**
|
|
1915
|
+
* @generated ServiceType for protobuf service injective_exchange_rpc.InjectiveExchangeRPC
|
|
1916
|
+
*/
|
|
1917
|
+
export const InjectiveExchangeRPC = new ServiceType("injective_exchange_rpc.InjectiveExchangeRPC", [
|
|
1918
|
+
{ name: "GetTx", options: {}, I: GetTxRequest, O: GetTxResponse },
|
|
1919
|
+
{ name: "PrepareTx", options: {}, I: PrepareTxRequest, O: PrepareTxResponse },
|
|
1920
|
+
{ name: "PrepareEip712", options: {}, I: PrepareEip712Request, O: PrepareEip712Response },
|
|
1921
|
+
{ name: "BroadcastTx", options: {}, I: BroadcastTxRequest, O: BroadcastTxResponse },
|
|
1922
|
+
{ name: "PrepareCosmosTx", options: {}, I: PrepareCosmosTxRequest, O: PrepareCosmosTxResponse },
|
|
1923
|
+
{ name: "BroadcastCosmosTx", options: {}, I: BroadcastCosmosTxRequest, O: BroadcastCosmosTxResponse },
|
|
1924
|
+
{ name: "GetFeePayer", options: {}, I: GetFeePayerRequest, O: GetFeePayerResponse }
|
|
1925
|
+
]);
|