@perpx/proto 0.0.3 → 0.0.4
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/package.json +7 -10
- package/src/codegen/cosmos/bundle.ts +126 -126
- package/src/codegen/perpx/bundle.ts +143 -136
- package/src/codegen/perpx/lcd.ts +3 -0
- package/src/codegen/perpx/rpc.query.ts +1 -0
- package/src/codegen/perpx/tx/query.lcd.ts +32 -0
- package/src/codegen/perpx/tx/query.rpc.Query.ts +38 -0
- package/src/codegen/perpx/tx/query.ts +243 -0
- package/src/codegen/tendermint/bundle.ts +20 -20
package/package.json
CHANGED
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perpx/proto",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"access": "public",
|
|
5
5
|
"description": "Protos for Perpx Protocol",
|
|
6
6
|
"author": "1119-Labs",
|
|
7
7
|
"homepage": "https://github.com/1119-Labs/perpx-chain",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
|
-
"main": "
|
|
10
|
-
"module": "
|
|
11
|
-
"
|
|
12
|
-
"directories": {
|
|
13
|
-
"lib": "src"
|
|
14
|
-
},
|
|
9
|
+
"main": "./build/index.js",
|
|
10
|
+
"module": "./build/index.js",
|
|
11
|
+
"types": "./build/index.d.ts",
|
|
15
12
|
"files": [
|
|
16
|
-
"
|
|
17
|
-
"
|
|
13
|
+
"build",
|
|
14
|
+
"src"
|
|
18
15
|
],
|
|
19
16
|
"scripts": {
|
|
20
17
|
"build": "tsc --project ./tsconfig.json",
|
|
@@ -38,7 +35,7 @@
|
|
|
38
35
|
"@osmonauts/lcd": "^0.6.0",
|
|
39
36
|
"@osmonauts/telescope": "0.86.0",
|
|
40
37
|
"long": "^4.0.0",
|
|
41
|
-
"typescript": "^4.
|
|
38
|
+
"typescript": "^4.8.4"
|
|
42
39
|
},
|
|
43
40
|
"dependencies": {
|
|
44
41
|
"protobufjs": "^6.11.2"
|
|
@@ -124,69 +124,69 @@ import * as _124 from "./upgrade/v1beta1/upgrade";
|
|
|
124
124
|
import * as _125 from "./vesting/module/v1/module";
|
|
125
125
|
import * as _126 from "./vesting/v1beta1/tx";
|
|
126
126
|
import * as _127 from "./vesting/v1beta1/vesting";
|
|
127
|
-
import * as
|
|
128
|
-
import * as
|
|
129
|
-
import * as
|
|
130
|
-
import * as
|
|
131
|
-
import * as
|
|
132
|
-
import * as
|
|
133
|
-
import * as
|
|
134
|
-
import * as
|
|
135
|
-
import * as
|
|
136
|
-
import * as
|
|
137
|
-
import * as
|
|
138
|
-
import * as
|
|
139
|
-
import * as
|
|
140
|
-
import * as
|
|
141
|
-
import * as
|
|
142
|
-
import * as
|
|
143
|
-
import * as
|
|
144
|
-
import * as
|
|
145
|
-
import * as
|
|
146
|
-
import * as
|
|
147
|
-
import * as
|
|
148
|
-
import * as
|
|
149
|
-
import * as
|
|
150
|
-
import * as
|
|
151
|
-
import * as
|
|
152
|
-
import * as
|
|
153
|
-
import * as
|
|
154
|
-
import * as
|
|
155
|
-
import * as
|
|
156
|
-
import * as
|
|
157
|
-
import * as
|
|
158
|
-
import * as
|
|
159
|
-
import * as
|
|
160
|
-
import * as
|
|
161
|
-
import * as
|
|
162
|
-
import * as
|
|
163
|
-
import * as
|
|
164
|
-
import * as
|
|
165
|
-
import * as
|
|
166
|
-
import * as
|
|
167
|
-
import * as
|
|
168
|
-
import * as
|
|
169
|
-
import * as
|
|
170
|
-
import * as
|
|
171
|
-
import * as
|
|
172
|
-
import * as
|
|
173
|
-
import * as
|
|
174
|
-
import * as
|
|
175
|
-
import * as
|
|
176
|
-
import * as
|
|
177
|
-
import * as
|
|
178
|
-
import * as
|
|
179
|
-
import * as
|
|
180
|
-
import * as
|
|
181
|
-
import * as
|
|
182
|
-
import * as
|
|
183
|
-
import * as
|
|
184
|
-
import * as
|
|
185
|
-
import * as
|
|
186
|
-
import * as
|
|
187
|
-
import * as
|
|
188
|
-
import * as
|
|
189
|
-
import * as
|
|
127
|
+
import * as _275 from "./auth/v1beta1/query.lcd";
|
|
128
|
+
import * as _276 from "./authz/v1beta1/query.lcd";
|
|
129
|
+
import * as _277 from "./bank/v1beta1/query.lcd";
|
|
130
|
+
import * as _278 from "./base/node/v1beta1/query.lcd";
|
|
131
|
+
import * as _279 from "./base/tendermint/v1beta1/query.lcd";
|
|
132
|
+
import * as _280 from "./circuit/v1/query.lcd";
|
|
133
|
+
import * as _281 from "./consensus/v1/query.lcd";
|
|
134
|
+
import * as _282 from "./distribution/v1beta1/query.lcd";
|
|
135
|
+
import * as _283 from "./evidence/v1beta1/query.lcd";
|
|
136
|
+
import * as _284 from "./feegrant/v1beta1/query.lcd";
|
|
137
|
+
import * as _285 from "./gov/v1/query.lcd";
|
|
138
|
+
import * as _286 from "./gov/v1beta1/query.lcd";
|
|
139
|
+
import * as _287 from "./group/v1/query.lcd";
|
|
140
|
+
import * as _288 from "./mint/v1beta1/query.lcd";
|
|
141
|
+
import * as _289 from "./nft/v1beta1/query.lcd";
|
|
142
|
+
import * as _290 from "./params/v1beta1/query.lcd";
|
|
143
|
+
import * as _291 from "./slashing/v1beta1/query.lcd";
|
|
144
|
+
import * as _292 from "./staking/v1beta1/query.lcd";
|
|
145
|
+
import * as _293 from "./tx/v1beta1/service.lcd";
|
|
146
|
+
import * as _294 from "./upgrade/v1beta1/query.lcd";
|
|
147
|
+
import * as _295 from "./app/v1alpha1/query.rpc.Query";
|
|
148
|
+
import * as _296 from "./auth/v1beta1/query.rpc.Query";
|
|
149
|
+
import * as _297 from "./authz/v1beta1/query.rpc.Query";
|
|
150
|
+
import * as _298 from "./bank/v1beta1/query.rpc.Query";
|
|
151
|
+
import * as _299 from "./base/node/v1beta1/query.rpc.Service";
|
|
152
|
+
import * as _300 from "./base/tendermint/v1beta1/query.rpc.Service";
|
|
153
|
+
import * as _301 from "./circuit/v1/query.rpc.Query";
|
|
154
|
+
import * as _302 from "./consensus/v1/query.rpc.Query";
|
|
155
|
+
import * as _303 from "./distribution/v1beta1/query.rpc.Query";
|
|
156
|
+
import * as _304 from "./evidence/v1beta1/query.rpc.Query";
|
|
157
|
+
import * as _305 from "./feegrant/v1beta1/query.rpc.Query";
|
|
158
|
+
import * as _306 from "./gov/v1/query.rpc.Query";
|
|
159
|
+
import * as _307 from "./gov/v1beta1/query.rpc.Query";
|
|
160
|
+
import * as _308 from "./group/v1/query.rpc.Query";
|
|
161
|
+
import * as _309 from "./mint/v1beta1/query.rpc.Query";
|
|
162
|
+
import * as _310 from "./nft/v1beta1/query.rpc.Query";
|
|
163
|
+
import * as _311 from "./orm/query/v1alpha1/query.rpc.Query";
|
|
164
|
+
import * as _312 from "./params/v1beta1/query.rpc.Query";
|
|
165
|
+
import * as _313 from "./slashing/v1beta1/query.rpc.Query";
|
|
166
|
+
import * as _314 from "./staking/v1beta1/query.rpc.Query";
|
|
167
|
+
import * as _315 from "./tx/v1beta1/service.rpc.Service";
|
|
168
|
+
import * as _316 from "./upgrade/v1beta1/query.rpc.Query";
|
|
169
|
+
import * as _317 from "./auth/v1beta1/tx.rpc.msg";
|
|
170
|
+
import * as _318 from "./authz/v1beta1/tx.rpc.msg";
|
|
171
|
+
import * as _319 from "./bank/v1beta1/tx.rpc.msg";
|
|
172
|
+
import * as _320 from "./circuit/v1/tx.rpc.msg";
|
|
173
|
+
import * as _321 from "./consensus/v1/tx.rpc.msg";
|
|
174
|
+
import * as _322 from "./crisis/v1beta1/tx.rpc.msg";
|
|
175
|
+
import * as _323 from "./distribution/v1beta1/tx.rpc.msg";
|
|
176
|
+
import * as _324 from "./evidence/v1beta1/tx.rpc.msg";
|
|
177
|
+
import * as _325 from "./feegrant/v1beta1/tx.rpc.msg";
|
|
178
|
+
import * as _326 from "./gov/v1/tx.rpc.msg";
|
|
179
|
+
import * as _327 from "./gov/v1beta1/tx.rpc.msg";
|
|
180
|
+
import * as _328 from "./group/v1/tx.rpc.msg";
|
|
181
|
+
import * as _329 from "./mint/v1beta1/tx.rpc.msg";
|
|
182
|
+
import * as _330 from "./nft/v1beta1/tx.rpc.msg";
|
|
183
|
+
import * as _331 from "./slashing/v1beta1/tx.rpc.msg";
|
|
184
|
+
import * as _332 from "./staking/v1beta1/tx.rpc.msg";
|
|
185
|
+
import * as _333 from "./upgrade/v1beta1/tx.rpc.msg";
|
|
186
|
+
import * as _334 from "./vesting/v1beta1/tx.rpc.msg";
|
|
187
|
+
import * as _395 from "./lcd";
|
|
188
|
+
import * as _396 from "./rpc.query";
|
|
189
|
+
import * as _397 from "./rpc.tx";
|
|
190
190
|
export namespace cosmos {
|
|
191
191
|
export namespace app {
|
|
192
192
|
export namespace runtime {
|
|
@@ -196,7 +196,7 @@ export namespace cosmos {
|
|
|
196
196
|
export const v1alpha1 = { ..._3,
|
|
197
197
|
..._4,
|
|
198
198
|
..._5,
|
|
199
|
-
...
|
|
199
|
+
..._295
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
202
|
export namespace auth {
|
|
@@ -208,9 +208,9 @@ export namespace cosmos {
|
|
|
208
208
|
..._8,
|
|
209
209
|
..._9,
|
|
210
210
|
..._10,
|
|
211
|
-
...
|
|
212
|
-
...
|
|
213
|
-
...
|
|
211
|
+
..._275,
|
|
212
|
+
..._296,
|
|
213
|
+
..._317
|
|
214
214
|
};
|
|
215
215
|
}
|
|
216
216
|
export namespace authz {
|
|
@@ -223,9 +223,9 @@ export namespace cosmos {
|
|
|
223
223
|
..._14,
|
|
224
224
|
..._15,
|
|
225
225
|
..._16,
|
|
226
|
-
...
|
|
227
|
-
...
|
|
228
|
-
...
|
|
226
|
+
..._276,
|
|
227
|
+
..._297,
|
|
228
|
+
..._318
|
|
229
229
|
};
|
|
230
230
|
}
|
|
231
231
|
export namespace bank {
|
|
@@ -238,9 +238,9 @@ export namespace cosmos {
|
|
|
238
238
|
..._20,
|
|
239
239
|
..._21,
|
|
240
240
|
..._22,
|
|
241
|
-
...
|
|
242
|
-
...
|
|
243
|
-
...
|
|
241
|
+
..._277,
|
|
242
|
+
..._298,
|
|
243
|
+
..._319
|
|
244
244
|
};
|
|
245
245
|
}
|
|
246
246
|
export namespace base {
|
|
@@ -250,8 +250,8 @@ export namespace cosmos {
|
|
|
250
250
|
}
|
|
251
251
|
export namespace node {
|
|
252
252
|
export const v1beta1 = { ..._24,
|
|
253
|
-
...
|
|
254
|
-
...
|
|
253
|
+
..._278,
|
|
254
|
+
..._299
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
257
|
export namespace query {
|
|
@@ -267,8 +267,8 @@ export namespace cosmos {
|
|
|
267
267
|
export namespace tendermint {
|
|
268
268
|
export const v1beta1 = { ..._28,
|
|
269
269
|
..._29,
|
|
270
|
-
...
|
|
271
|
-
...
|
|
270
|
+
..._279,
|
|
271
|
+
..._300
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
export const v1beta1 = { ..._30
|
|
@@ -282,9 +282,9 @@ export namespace cosmos {
|
|
|
282
282
|
export const v1 = { ..._32,
|
|
283
283
|
..._33,
|
|
284
284
|
..._34,
|
|
285
|
-
...
|
|
286
|
-
...
|
|
287
|
-
...
|
|
285
|
+
..._280,
|
|
286
|
+
..._301,
|
|
287
|
+
..._320
|
|
288
288
|
};
|
|
289
289
|
}
|
|
290
290
|
export namespace consensus {
|
|
@@ -294,9 +294,9 @@ export namespace cosmos {
|
|
|
294
294
|
}
|
|
295
295
|
export const v1 = { ..._36,
|
|
296
296
|
..._37,
|
|
297
|
-
...
|
|
298
|
-
...
|
|
299
|
-
...
|
|
297
|
+
..._281,
|
|
298
|
+
..._302,
|
|
299
|
+
..._321
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
302
|
export namespace crisis {
|
|
@@ -306,7 +306,7 @@ export namespace cosmos {
|
|
|
306
306
|
}
|
|
307
307
|
export const v1beta1 = { ..._39,
|
|
308
308
|
..._40,
|
|
309
|
-
...
|
|
309
|
+
..._322
|
|
310
310
|
};
|
|
311
311
|
}
|
|
312
312
|
export namespace crypto {
|
|
@@ -336,9 +336,9 @@ export namespace cosmos {
|
|
|
336
336
|
..._49,
|
|
337
337
|
..._50,
|
|
338
338
|
..._51,
|
|
339
|
-
...
|
|
340
|
-
...
|
|
341
|
-
...
|
|
339
|
+
..._282,
|
|
340
|
+
..._303,
|
|
341
|
+
..._323
|
|
342
342
|
};
|
|
343
343
|
}
|
|
344
344
|
export namespace evidence {
|
|
@@ -350,9 +350,9 @@ export namespace cosmos {
|
|
|
350
350
|
..._54,
|
|
351
351
|
..._55,
|
|
352
352
|
..._56,
|
|
353
|
-
...
|
|
354
|
-
...
|
|
355
|
-
...
|
|
353
|
+
..._283,
|
|
354
|
+
..._304,
|
|
355
|
+
..._324
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
358
|
export namespace feegrant {
|
|
@@ -364,9 +364,9 @@ export namespace cosmos {
|
|
|
364
364
|
..._59,
|
|
365
365
|
..._60,
|
|
366
366
|
..._61,
|
|
367
|
-
...
|
|
368
|
-
...
|
|
369
|
-
...
|
|
367
|
+
..._284,
|
|
368
|
+
..._305,
|
|
369
|
+
..._325
|
|
370
370
|
};
|
|
371
371
|
}
|
|
372
372
|
export namespace genutil {
|
|
@@ -386,17 +386,17 @@ export namespace cosmos {
|
|
|
386
386
|
..._66,
|
|
387
387
|
..._67,
|
|
388
388
|
..._68,
|
|
389
|
-
...
|
|
390
|
-
...
|
|
391
|
-
...
|
|
389
|
+
..._285,
|
|
390
|
+
..._306,
|
|
391
|
+
..._326
|
|
392
392
|
};
|
|
393
393
|
export const v1beta1 = { ..._69,
|
|
394
394
|
..._70,
|
|
395
395
|
..._71,
|
|
396
396
|
..._72,
|
|
397
|
-
...
|
|
398
|
-
...
|
|
399
|
-
...
|
|
397
|
+
..._286,
|
|
398
|
+
..._307,
|
|
399
|
+
..._327
|
|
400
400
|
};
|
|
401
401
|
}
|
|
402
402
|
export namespace group {
|
|
@@ -409,9 +409,9 @@ export namespace cosmos {
|
|
|
409
409
|
..._76,
|
|
410
410
|
..._77,
|
|
411
411
|
..._78,
|
|
412
|
-
...
|
|
413
|
-
...
|
|
414
|
-
...
|
|
412
|
+
..._287,
|
|
413
|
+
..._308,
|
|
414
|
+
..._328
|
|
415
415
|
};
|
|
416
416
|
}
|
|
417
417
|
export namespace mint {
|
|
@@ -423,9 +423,9 @@ export namespace cosmos {
|
|
|
423
423
|
..._81,
|
|
424
424
|
..._82,
|
|
425
425
|
..._83,
|
|
426
|
-
...
|
|
427
|
-
...
|
|
428
|
-
...
|
|
426
|
+
..._288,
|
|
427
|
+
..._309,
|
|
428
|
+
..._329
|
|
429
429
|
};
|
|
430
430
|
}
|
|
431
431
|
export namespace msg {
|
|
@@ -446,9 +446,9 @@ export namespace cosmos {
|
|
|
446
446
|
..._89,
|
|
447
447
|
..._90,
|
|
448
448
|
..._91,
|
|
449
|
-
...
|
|
450
|
-
...
|
|
451
|
-
...
|
|
449
|
+
..._289,
|
|
450
|
+
..._310,
|
|
451
|
+
..._330
|
|
452
452
|
};
|
|
453
453
|
}
|
|
454
454
|
export namespace orm {
|
|
@@ -458,7 +458,7 @@ export namespace cosmos {
|
|
|
458
458
|
}
|
|
459
459
|
export namespace query {
|
|
460
460
|
export const v1alpha1 = { ..._93,
|
|
461
|
-
...
|
|
461
|
+
..._311
|
|
462
462
|
};
|
|
463
463
|
}
|
|
464
464
|
export const v1 = { ..._94
|
|
@@ -473,8 +473,8 @@ export namespace cosmos {
|
|
|
473
473
|
}
|
|
474
474
|
export const v1beta1 = { ..._97,
|
|
475
475
|
..._98,
|
|
476
|
-
...
|
|
477
|
-
...
|
|
476
|
+
..._290,
|
|
477
|
+
..._312
|
|
478
478
|
};
|
|
479
479
|
}
|
|
480
480
|
export namespace query {
|
|
@@ -494,9 +494,9 @@ export namespace cosmos {
|
|
|
494
494
|
..._103,
|
|
495
495
|
..._104,
|
|
496
496
|
..._105,
|
|
497
|
-
...
|
|
498
|
-
...
|
|
499
|
-
...
|
|
497
|
+
..._291,
|
|
498
|
+
..._313,
|
|
499
|
+
..._331
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
502
|
export namespace staking {
|
|
@@ -509,9 +509,9 @@ export namespace cosmos {
|
|
|
509
509
|
..._109,
|
|
510
510
|
..._110,
|
|
511
511
|
..._111,
|
|
512
|
-
...
|
|
513
|
-
...
|
|
514
|
-
...
|
|
512
|
+
..._292,
|
|
513
|
+
..._314,
|
|
514
|
+
..._332
|
|
515
515
|
};
|
|
516
516
|
}
|
|
517
517
|
export namespace store {
|
|
@@ -544,8 +544,8 @@ export namespace cosmos {
|
|
|
544
544
|
}
|
|
545
545
|
export const v1beta1 = { ..._119,
|
|
546
546
|
..._120,
|
|
547
|
-
...
|
|
548
|
-
...
|
|
547
|
+
..._293,
|
|
548
|
+
..._315
|
|
549
549
|
};
|
|
550
550
|
}
|
|
551
551
|
export namespace upgrade {
|
|
@@ -556,9 +556,9 @@ export namespace cosmos {
|
|
|
556
556
|
export const v1beta1 = { ..._122,
|
|
557
557
|
..._123,
|
|
558
558
|
..._124,
|
|
559
|
-
...
|
|
560
|
-
...
|
|
561
|
-
...
|
|
559
|
+
..._294,
|
|
560
|
+
..._316,
|
|
561
|
+
..._333
|
|
562
562
|
};
|
|
563
563
|
}
|
|
564
564
|
export namespace vesting {
|
|
@@ -568,11 +568,11 @@ export namespace cosmos {
|
|
|
568
568
|
}
|
|
569
569
|
export const v1beta1 = { ..._126,
|
|
570
570
|
..._127,
|
|
571
|
-
...
|
|
571
|
+
..._334
|
|
572
572
|
};
|
|
573
573
|
}
|
|
574
|
-
export const ClientFactory = { ...
|
|
575
|
-
...
|
|
576
|
-
...
|
|
574
|
+
export const ClientFactory = { ..._395,
|
|
575
|
+
..._396,
|
|
576
|
+
..._397
|
|
577
577
|
};
|
|
578
578
|
}
|
|
@@ -116,77 +116,80 @@ import * as _249 from "./subaccounts/perpetual_position";
|
|
|
116
116
|
import * as _250 from "./subaccounts/query";
|
|
117
117
|
import * as _251 from "./subaccounts/streaming";
|
|
118
118
|
import * as _252 from "./subaccounts/subaccount";
|
|
119
|
-
import * as _253 from "./
|
|
120
|
-
import * as _254 from "./vault/
|
|
121
|
-
import * as _255 from "./vault/
|
|
122
|
-
import * as _256 from "./vault/
|
|
123
|
-
import * as _257 from "./vault/
|
|
124
|
-
import * as _258 from "./vault/
|
|
125
|
-
import * as _259 from "./
|
|
126
|
-
import * as _260 from "./vest/
|
|
127
|
-
import * as _261 from "./vest/
|
|
128
|
-
import * as _262 from "./vest/
|
|
129
|
-
import * as
|
|
130
|
-
import * as _335 from "./
|
|
131
|
-
import * as _336 from "./
|
|
132
|
-
import * as _337 from "./
|
|
133
|
-
import * as _338 from "./
|
|
134
|
-
import * as _339 from "./
|
|
135
|
-
import * as _340 from "./
|
|
136
|
-
import * as _341 from "./
|
|
137
|
-
import * as _342 from "./
|
|
138
|
-
import * as _343 from "./
|
|
139
|
-
import * as _344 from "./
|
|
140
|
-
import * as _345 from "./
|
|
141
|
-
import * as _346 from "./
|
|
142
|
-
import * as _347 from "./
|
|
143
|
-
import * as _348 from "./
|
|
144
|
-
import * as _349 from "./
|
|
145
|
-
import * as _350 from "./
|
|
146
|
-
import * as _351 from "./
|
|
147
|
-
import * as _352 from "./
|
|
148
|
-
import * as _353 from "./
|
|
149
|
-
import * as _354 from "./
|
|
150
|
-
import * as _355 from "./
|
|
151
|
-
import * as _356 from "./
|
|
152
|
-
import * as _357 from "./
|
|
153
|
-
import * as _358 from "./
|
|
154
|
-
import * as _359 from "./
|
|
155
|
-
import * as _360 from "./
|
|
156
|
-
import * as _361 from "./
|
|
157
|
-
import * as _362 from "./
|
|
158
|
-
import * as _363 from "./
|
|
159
|
-
import * as _364 from "./
|
|
160
|
-
import * as _365 from "./
|
|
161
|
-
import * as _366 from "./
|
|
162
|
-
import * as _367 from "./
|
|
163
|
-
import * as _368 from "./
|
|
164
|
-
import * as _369 from "./
|
|
165
|
-
import * as _370 from "./
|
|
166
|
-
import * as _371 from "./
|
|
167
|
-
import * as _372 from "./
|
|
168
|
-
import * as _373 from "./
|
|
169
|
-
import * as _374 from "./
|
|
170
|
-
import * as _375 from "./
|
|
171
|
-
import * as _376 from "./
|
|
172
|
-
import * as _377 from "./
|
|
173
|
-
import * as _378 from "./
|
|
174
|
-
import * as _379 from "./
|
|
175
|
-
import * as _380 from "./
|
|
176
|
-
import * as _381 from "./
|
|
177
|
-
import * as _382 from "./
|
|
178
|
-
import * as _383 from "./
|
|
179
|
-
import * as _384 from "./
|
|
180
|
-
import * as _385 from "./
|
|
181
|
-
import * as _386 from "./
|
|
182
|
-
import * as _387 from "./
|
|
183
|
-
import * as _388 from "./
|
|
184
|
-
import * as _389 from "./
|
|
185
|
-
import * as _390 from "./
|
|
186
|
-
import * as _391 from "./
|
|
187
|
-
import * as
|
|
188
|
-
import * as
|
|
189
|
-
import * as
|
|
119
|
+
import * as _253 from "./tx/query";
|
|
120
|
+
import * as _254 from "./vault/genesis";
|
|
121
|
+
import * as _255 from "./vault/params";
|
|
122
|
+
import * as _256 from "./vault/query";
|
|
123
|
+
import * as _257 from "./vault/share";
|
|
124
|
+
import * as _258 from "./vault/tx";
|
|
125
|
+
import * as _259 from "./vault/vault";
|
|
126
|
+
import * as _260 from "./vest/genesis";
|
|
127
|
+
import * as _261 from "./vest/query";
|
|
128
|
+
import * as _262 from "./vest/tx";
|
|
129
|
+
import * as _263 from "./vest/vest_entry";
|
|
130
|
+
import * as _335 from "./accountplus/query.lcd";
|
|
131
|
+
import * as _336 from "./affiliates/query.lcd";
|
|
132
|
+
import * as _337 from "./assets/query.lcd";
|
|
133
|
+
import * as _338 from "./blocktime/query.lcd";
|
|
134
|
+
import * as _339 from "./bridge/query.lcd";
|
|
135
|
+
import * as _340 from "./clob/query.lcd";
|
|
136
|
+
import * as _341 from "./delaymsg/query.lcd";
|
|
137
|
+
import * as _342 from "./epochs/query.lcd";
|
|
138
|
+
import * as _343 from "./feetiers/query.lcd";
|
|
139
|
+
import * as _344 from "./listing/query.lcd";
|
|
140
|
+
import * as _345 from "./perpetuals/query.lcd";
|
|
141
|
+
import * as _346 from "./prices/query.lcd";
|
|
142
|
+
import * as _347 from "./ratelimit/query.lcd";
|
|
143
|
+
import * as _348 from "./revshare/query.lcd";
|
|
144
|
+
import * as _349 from "./rewards/query.lcd";
|
|
145
|
+
import * as _350 from "./stats/query.lcd";
|
|
146
|
+
import * as _351 from "./subaccounts/query.lcd";
|
|
147
|
+
import * as _352 from "./tx/query.lcd";
|
|
148
|
+
import * as _353 from "./vault/query.lcd";
|
|
149
|
+
import * as _354 from "./vest/query.lcd";
|
|
150
|
+
import * as _355 from "./accountplus/query.rpc.Query";
|
|
151
|
+
import * as _356 from "./affiliates/query.rpc.Query";
|
|
152
|
+
import * as _357 from "./assets/query.rpc.Query";
|
|
153
|
+
import * as _358 from "./blocktime/query.rpc.Query";
|
|
154
|
+
import * as _359 from "./bridge/query.rpc.Query";
|
|
155
|
+
import * as _360 from "./clob/query.rpc.Query";
|
|
156
|
+
import * as _361 from "./delaymsg/query.rpc.Query";
|
|
157
|
+
import * as _362 from "./epochs/query.rpc.Query";
|
|
158
|
+
import * as _363 from "./feetiers/query.rpc.Query";
|
|
159
|
+
import * as _364 from "./govplus/query.rpc.Query";
|
|
160
|
+
import * as _365 from "./listing/query.rpc.Query";
|
|
161
|
+
import * as _366 from "./perpetuals/query.rpc.Query";
|
|
162
|
+
import * as _367 from "./prices/query.rpc.Query";
|
|
163
|
+
import * as _368 from "./ratelimit/query.rpc.Query";
|
|
164
|
+
import * as _369 from "./revshare/query.rpc.Query";
|
|
165
|
+
import * as _370 from "./rewards/query.rpc.Query";
|
|
166
|
+
import * as _371 from "./sending/query.rpc.Query";
|
|
167
|
+
import * as _372 from "./stats/query.rpc.Query";
|
|
168
|
+
import * as _373 from "./subaccounts/query.rpc.Query";
|
|
169
|
+
import * as _374 from "./tx/query.rpc.Query";
|
|
170
|
+
import * as _375 from "./vault/query.rpc.Query";
|
|
171
|
+
import * as _376 from "./vest/query.rpc.Query";
|
|
172
|
+
import * as _377 from "./accountplus/tx.rpc.msg";
|
|
173
|
+
import * as _378 from "./affiliates/tx.rpc.msg";
|
|
174
|
+
import * as _379 from "./blocktime/tx.rpc.msg";
|
|
175
|
+
import * as _380 from "./bridge/tx.rpc.msg";
|
|
176
|
+
import * as _381 from "./clob/tx.rpc.msg";
|
|
177
|
+
import * as _382 from "./delaymsg/tx.rpc.msg";
|
|
178
|
+
import * as _383 from "./feetiers/tx.rpc.msg";
|
|
179
|
+
import * as _384 from "./govplus/tx.rpc.msg";
|
|
180
|
+
import * as _385 from "./listing/tx.rpc.msg";
|
|
181
|
+
import * as _386 from "./perpetuals/tx.rpc.msg";
|
|
182
|
+
import * as _387 from "./prices/tx.rpc.msg";
|
|
183
|
+
import * as _388 from "./ratelimit/tx.rpc.msg";
|
|
184
|
+
import * as _389 from "./revshare/tx.rpc.msg";
|
|
185
|
+
import * as _390 from "./rewards/tx.rpc.msg";
|
|
186
|
+
import * as _391 from "./sending/tx.rpc.msg";
|
|
187
|
+
import * as _392 from "./stats/tx.rpc.msg";
|
|
188
|
+
import * as _393 from "./vault/tx.rpc.msg";
|
|
189
|
+
import * as _394 from "./vest/tx.rpc.msg";
|
|
190
|
+
import * as _398 from "./lcd";
|
|
191
|
+
import * as _399 from "./rpc.query";
|
|
192
|
+
import * as _400 from "./rpc.tx";
|
|
190
193
|
export namespace perpx {
|
|
191
194
|
export const accountplus = { ..._135,
|
|
192
195
|
..._136,
|
|
@@ -194,33 +197,33 @@ export namespace perpx {
|
|
|
194
197
|
..._138,
|
|
195
198
|
..._139,
|
|
196
199
|
..._140,
|
|
197
|
-
...
|
|
198
|
-
...
|
|
199
|
-
...
|
|
200
|
+
..._335,
|
|
201
|
+
..._355,
|
|
202
|
+
..._377
|
|
200
203
|
};
|
|
201
204
|
export const affiliates = { ..._141,
|
|
202
205
|
..._142,
|
|
203
206
|
..._143,
|
|
204
207
|
..._144,
|
|
205
|
-
...
|
|
206
|
-
...
|
|
207
|
-
...
|
|
208
|
+
..._336,
|
|
209
|
+
..._356,
|
|
210
|
+
..._378
|
|
208
211
|
};
|
|
209
212
|
export const assets = { ..._145,
|
|
210
213
|
..._146,
|
|
211
214
|
..._147,
|
|
212
215
|
..._148,
|
|
213
|
-
...
|
|
214
|
-
...
|
|
216
|
+
..._337,
|
|
217
|
+
..._357
|
|
215
218
|
};
|
|
216
219
|
export const blocktime = { ..._149,
|
|
217
220
|
..._150,
|
|
218
221
|
..._151,
|
|
219
222
|
..._152,
|
|
220
223
|
..._153,
|
|
221
|
-
...
|
|
222
|
-
...
|
|
223
|
-
...
|
|
224
|
+
..._338,
|
|
225
|
+
..._358,
|
|
226
|
+
..._379
|
|
224
227
|
};
|
|
225
228
|
export const bridge = { ..._154,
|
|
226
229
|
..._155,
|
|
@@ -228,9 +231,9 @@ export namespace perpx {
|
|
|
228
231
|
..._157,
|
|
229
232
|
..._158,
|
|
230
233
|
..._159,
|
|
231
|
-
...
|
|
232
|
-
...
|
|
233
|
-
...
|
|
234
|
+
..._339,
|
|
235
|
+
..._359,
|
|
236
|
+
..._380
|
|
234
237
|
};
|
|
235
238
|
export const clob = { ..._160,
|
|
236
239
|
..._161,
|
|
@@ -248,9 +251,9 @@ export namespace perpx {
|
|
|
248
251
|
..._173,
|
|
249
252
|
..._174,
|
|
250
253
|
..._175,
|
|
251
|
-
...
|
|
252
|
-
...
|
|
253
|
-
...
|
|
254
|
+
..._340,
|
|
255
|
+
..._360,
|
|
256
|
+
..._381
|
|
254
257
|
};
|
|
255
258
|
export namespace daemons {
|
|
256
259
|
export const bridge = { ..._176
|
|
@@ -265,15 +268,15 @@ export namespace perpx {
|
|
|
265
268
|
..._181,
|
|
266
269
|
..._182,
|
|
267
270
|
..._183,
|
|
268
|
-
...
|
|
269
|
-
...
|
|
270
|
-
...
|
|
271
|
+
..._341,
|
|
272
|
+
..._361,
|
|
273
|
+
..._382
|
|
271
274
|
};
|
|
272
275
|
export const epochs = { ..._184,
|
|
273
276
|
..._185,
|
|
274
277
|
..._186,
|
|
275
|
-
...
|
|
276
|
-
...
|
|
278
|
+
..._342,
|
|
279
|
+
..._362
|
|
277
280
|
};
|
|
278
281
|
export const feetiers = { ..._187,
|
|
279
282
|
..._188,
|
|
@@ -281,15 +284,15 @@ export namespace perpx {
|
|
|
281
284
|
..._190,
|
|
282
285
|
..._191,
|
|
283
286
|
..._192,
|
|
284
|
-
...
|
|
285
|
-
...
|
|
286
|
-
...
|
|
287
|
+
..._343,
|
|
288
|
+
..._363,
|
|
289
|
+
..._383
|
|
287
290
|
};
|
|
288
291
|
export const govplus = { ..._193,
|
|
289
292
|
..._194,
|
|
290
293
|
..._195,
|
|
291
|
-
...
|
|
292
|
-
...
|
|
294
|
+
..._364,
|
|
295
|
+
..._384
|
|
293
296
|
};
|
|
294
297
|
export namespace indexer {
|
|
295
298
|
export const events = { ..._196
|
|
@@ -316,18 +319,18 @@ export namespace perpx {
|
|
|
316
319
|
..._207,
|
|
317
320
|
..._208,
|
|
318
321
|
..._209,
|
|
319
|
-
...
|
|
320
|
-
...
|
|
321
|
-
...
|
|
322
|
+
..._344,
|
|
323
|
+
..._365,
|
|
324
|
+
..._385
|
|
322
325
|
};
|
|
323
326
|
export const perpetuals = { ..._210,
|
|
324
327
|
..._211,
|
|
325
328
|
..._212,
|
|
326
329
|
..._213,
|
|
327
330
|
..._214,
|
|
328
|
-
...
|
|
329
|
-
...
|
|
330
|
-
...
|
|
331
|
+
..._345,
|
|
332
|
+
..._366,
|
|
333
|
+
..._386
|
|
331
334
|
};
|
|
332
335
|
export const prices = { ..._215,
|
|
333
336
|
..._216,
|
|
@@ -335,9 +338,9 @@ export namespace perpx {
|
|
|
335
338
|
..._218,
|
|
336
339
|
..._219,
|
|
337
340
|
..._220,
|
|
338
|
-
...
|
|
339
|
-
...
|
|
340
|
-
...
|
|
341
|
+
..._346,
|
|
342
|
+
..._367,
|
|
343
|
+
..._387
|
|
341
344
|
};
|
|
342
345
|
export const ratelimit = { ..._221,
|
|
343
346
|
..._222,
|
|
@@ -345,43 +348,43 @@ export namespace perpx {
|
|
|
345
348
|
..._224,
|
|
346
349
|
..._225,
|
|
347
350
|
..._226,
|
|
348
|
-
...
|
|
349
|
-
...
|
|
350
|
-
...
|
|
351
|
+
..._347,
|
|
352
|
+
..._368,
|
|
353
|
+
..._388
|
|
351
354
|
};
|
|
352
355
|
export const revshare = { ..._227,
|
|
353
356
|
..._228,
|
|
354
357
|
..._229,
|
|
355
358
|
..._230,
|
|
356
359
|
..._231,
|
|
357
|
-
...
|
|
358
|
-
...
|
|
359
|
-
...
|
|
360
|
+
..._348,
|
|
361
|
+
..._369,
|
|
362
|
+
..._389
|
|
360
363
|
};
|
|
361
364
|
export const rewards = { ..._232,
|
|
362
365
|
..._233,
|
|
363
366
|
..._234,
|
|
364
367
|
..._235,
|
|
365
368
|
..._236,
|
|
366
|
-
...
|
|
367
|
-
...
|
|
368
|
-
...
|
|
369
|
+
..._349,
|
|
370
|
+
..._370,
|
|
371
|
+
..._390
|
|
369
372
|
};
|
|
370
373
|
export const sending = { ..._237,
|
|
371
374
|
..._238,
|
|
372
375
|
..._239,
|
|
373
376
|
..._240,
|
|
374
|
-
...
|
|
375
|
-
...
|
|
377
|
+
..._371,
|
|
378
|
+
..._391
|
|
376
379
|
};
|
|
377
380
|
export const stats = { ..._241,
|
|
378
381
|
..._242,
|
|
379
382
|
..._243,
|
|
380
383
|
..._244,
|
|
381
384
|
..._245,
|
|
382
|
-
...
|
|
383
|
-
...
|
|
384
|
-
...
|
|
385
|
+
..._350,
|
|
386
|
+
..._372,
|
|
387
|
+
..._392
|
|
385
388
|
};
|
|
386
389
|
export const subaccounts = { ..._246,
|
|
387
390
|
..._247,
|
|
@@ -390,29 +393,33 @@ export namespace perpx {
|
|
|
390
393
|
..._250,
|
|
391
394
|
..._251,
|
|
392
395
|
..._252,
|
|
393
|
-
...
|
|
394
|
-
...
|
|
396
|
+
..._351,
|
|
397
|
+
..._373
|
|
398
|
+
};
|
|
399
|
+
export const tx = { ..._253,
|
|
400
|
+
..._352,
|
|
401
|
+
..._374
|
|
395
402
|
};
|
|
396
|
-
export const vault = { ...
|
|
397
|
-
..._254,
|
|
403
|
+
export const vault = { ..._254,
|
|
398
404
|
..._255,
|
|
399
405
|
..._256,
|
|
400
406
|
..._257,
|
|
401
407
|
..._258,
|
|
402
|
-
...
|
|
403
|
-
...
|
|
404
|
-
...
|
|
408
|
+
..._259,
|
|
409
|
+
..._353,
|
|
410
|
+
..._375,
|
|
411
|
+
..._393
|
|
405
412
|
};
|
|
406
|
-
export const vest = { ...
|
|
407
|
-
..._260,
|
|
413
|
+
export const vest = { ..._260,
|
|
408
414
|
..._261,
|
|
409
415
|
..._262,
|
|
410
|
-
...
|
|
411
|
-
...
|
|
412
|
-
...
|
|
416
|
+
..._263,
|
|
417
|
+
..._354,
|
|
418
|
+
..._376,
|
|
419
|
+
..._394
|
|
413
420
|
};
|
|
414
|
-
export const ClientFactory = { ...
|
|
415
|
-
...
|
|
416
|
-
...
|
|
421
|
+
export const ClientFactory = { ..._398,
|
|
422
|
+
..._399,
|
|
423
|
+
..._400
|
|
417
424
|
};
|
|
418
425
|
}
|
package/src/codegen/perpx/lcd.ts
CHANGED
|
@@ -162,6 +162,9 @@ export const createLCDClient = async ({
|
|
|
162
162
|
subaccounts: new (await import("./subaccounts/query.lcd")).LCDQueryClient({
|
|
163
163
|
requestClient
|
|
164
164
|
}),
|
|
165
|
+
tx: new (await import("./tx/query.lcd")).LCDQueryClient({
|
|
166
|
+
requestClient
|
|
167
|
+
}),
|
|
165
168
|
vault: new (await import("./vault/query.lcd")).LCDQueryClient({
|
|
166
169
|
requestClient
|
|
167
170
|
}),
|
|
@@ -98,6 +98,7 @@ export const createRPCQueryClient = async ({
|
|
|
98
98
|
sending: (await import("./sending/query.rpc.Query")).createRpcQueryExtension(client),
|
|
99
99
|
stats: (await import("./stats/query.rpc.Query")).createRpcQueryExtension(client),
|
|
100
100
|
subaccounts: (await import("./subaccounts/query.rpc.Query")).createRpcQueryExtension(client),
|
|
101
|
+
tx: (await import("./tx/query.rpc.Query")).createRpcQueryExtension(client),
|
|
101
102
|
vault: (await import("./vault/query.rpc.Query")).createRpcQueryExtension(client),
|
|
102
103
|
vest: (await import("./vest/query.rpc.Query")).createRpcQueryExtension(client)
|
|
103
104
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { setPaginationParams } from "../../helpers";
|
|
2
|
+
import { LCDClient } from "@osmonauts/lcd";
|
|
3
|
+
import { BlockTransactionsRequest, BlockTransactionsResponseSDKType } from "./query";
|
|
4
|
+
export class LCDQueryClient {
|
|
5
|
+
req: LCDClient;
|
|
6
|
+
|
|
7
|
+
constructor({
|
|
8
|
+
requestClient
|
|
9
|
+
}: {
|
|
10
|
+
requestClient: LCDClient;
|
|
11
|
+
}) {
|
|
12
|
+
this.req = requestClient;
|
|
13
|
+
this.blockTransactions = this.blockTransactions.bind(this);
|
|
14
|
+
}
|
|
15
|
+
/* BlockTransactions queries all transactions in a block with full TxResponse data.
|
|
16
|
+
Returns transactions with their execution results nested inside each transaction. */
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
async blockTransactions(params: BlockTransactionsRequest): Promise<BlockTransactionsResponseSDKType> {
|
|
20
|
+
const options: any = {
|
|
21
|
+
params: {}
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
if (typeof params?.pagination !== "undefined") {
|
|
25
|
+
setPaginationParams(options, params.pagination);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const endpoint = `perpx/tx/block/${params.height}/transactions`;
|
|
29
|
+
return await this.req.get<BlockTransactionsResponseSDKType>(endpoint, options);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Rpc } from "../../helpers";
|
|
2
|
+
import * as _m0 from "protobufjs/minimal";
|
|
3
|
+
import { QueryClient, createProtobufRpcClient } from "@cosmjs/stargate";
|
|
4
|
+
import { BlockTransactionsRequest, BlockTransactionsResponse } from "./query";
|
|
5
|
+
/** Query defines the gRPC querier service for transaction queries. */
|
|
6
|
+
|
|
7
|
+
export interface Query {
|
|
8
|
+
/**
|
|
9
|
+
* BlockTransactions queries all transactions in a block with full TxResponse data.
|
|
10
|
+
* Returns transactions with their execution results nested inside each transaction.
|
|
11
|
+
*/
|
|
12
|
+
blockTransactions(request: BlockTransactionsRequest): Promise<BlockTransactionsResponse>;
|
|
13
|
+
}
|
|
14
|
+
export class QueryClientImpl implements Query {
|
|
15
|
+
private readonly rpc: Rpc;
|
|
16
|
+
|
|
17
|
+
constructor(rpc: Rpc) {
|
|
18
|
+
this.rpc = rpc;
|
|
19
|
+
this.blockTransactions = this.blockTransactions.bind(this);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
blockTransactions(request: BlockTransactionsRequest): Promise<BlockTransactionsResponse> {
|
|
23
|
+
const data = BlockTransactionsRequest.encode(request).finish();
|
|
24
|
+
const promise = this.rpc.request("perpx.tx.Query", "BlockTransactions", data);
|
|
25
|
+
return promise.then(data => BlockTransactionsResponse.decode(new _m0.Reader(data)));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
export const createRpcQueryExtension = (base: QueryClient) => {
|
|
30
|
+
const rpc = createProtobufRpcClient(base);
|
|
31
|
+
const queryService = new QueryClientImpl(rpc);
|
|
32
|
+
return {
|
|
33
|
+
blockTransactions(request: BlockTransactionsRequest): Promise<BlockTransactionsResponse> {
|
|
34
|
+
return queryService.blockTransactions(request);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { PageRequest, PageRequestSDKType, PageResponse, PageResponseSDKType } from "../../cosmos/base/query/v1beta1/pagination";
|
|
2
|
+
import { Tx, TxSDKType } from "../../cosmos/tx/v1beta1/tx";
|
|
3
|
+
import { TxResponse, TxResponseSDKType } from "../../cosmos/base/abci/v1beta1/abci";
|
|
4
|
+
import { Long, DeepPartial } from "../../helpers";
|
|
5
|
+
import * as _m0 from "protobufjs/minimal";
|
|
6
|
+
/** BlockTransactionsRequest is the request type for BlockTransactions RPC. */
|
|
7
|
+
|
|
8
|
+
export interface BlockTransactionsRequest {
|
|
9
|
+
/** height is the block height to query. */
|
|
10
|
+
height: Long;
|
|
11
|
+
/** pagination defines an optional pagination for the request. */
|
|
12
|
+
|
|
13
|
+
pagination?: PageRequest;
|
|
14
|
+
}
|
|
15
|
+
/** BlockTransactionsRequest is the request type for BlockTransactions RPC. */
|
|
16
|
+
|
|
17
|
+
export interface BlockTransactionsRequestSDKType {
|
|
18
|
+
height: Long;
|
|
19
|
+
pagination?: PageRequestSDKType;
|
|
20
|
+
}
|
|
21
|
+
/** TxWithResponse wraps a transaction with its execution response. */
|
|
22
|
+
|
|
23
|
+
export interface TxWithResponse {
|
|
24
|
+
/** tx is the raw transaction data. */
|
|
25
|
+
tx?: Tx;
|
|
26
|
+
/** tx_response contains the execution results including gas used, logs, events, timestamp. */
|
|
27
|
+
|
|
28
|
+
txResponse?: TxResponse;
|
|
29
|
+
}
|
|
30
|
+
/** TxWithResponse wraps a transaction with its execution response. */
|
|
31
|
+
|
|
32
|
+
export interface TxWithResponseSDKType {
|
|
33
|
+
tx?: TxSDKType;
|
|
34
|
+
tx_response?: TxResponseSDKType;
|
|
35
|
+
}
|
|
36
|
+
/** BlockTransactionsResponse is the response type for BlockTransactions RPC. */
|
|
37
|
+
|
|
38
|
+
export interface BlockTransactionsResponse {
|
|
39
|
+
/** txs are the transactions in the block, each with its execution response nested inside. */
|
|
40
|
+
txs: TxWithResponse[];
|
|
41
|
+
/** block_height is the height of the block. */
|
|
42
|
+
|
|
43
|
+
blockHeight: Long;
|
|
44
|
+
/** block_timestamp is the timestamp of the block. */
|
|
45
|
+
|
|
46
|
+
blockTimestamp: string;
|
|
47
|
+
/** pagination defines a pagination for the response. */
|
|
48
|
+
|
|
49
|
+
pagination?: PageResponse;
|
|
50
|
+
}
|
|
51
|
+
/** BlockTransactionsResponse is the response type for BlockTransactions RPC. */
|
|
52
|
+
|
|
53
|
+
export interface BlockTransactionsResponseSDKType {
|
|
54
|
+
txs: TxWithResponseSDKType[];
|
|
55
|
+
block_height: Long;
|
|
56
|
+
block_timestamp: string;
|
|
57
|
+
pagination?: PageResponseSDKType;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function createBaseBlockTransactionsRequest(): BlockTransactionsRequest {
|
|
61
|
+
return {
|
|
62
|
+
height: Long.ZERO,
|
|
63
|
+
pagination: undefined
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const BlockTransactionsRequest = {
|
|
68
|
+
encode(message: BlockTransactionsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
69
|
+
if (!message.height.isZero()) {
|
|
70
|
+
writer.uint32(8).int64(message.height);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (message.pagination !== undefined) {
|
|
74
|
+
PageRequest.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return writer;
|
|
78
|
+
},
|
|
79
|
+
|
|
80
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BlockTransactionsRequest {
|
|
81
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
82
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
83
|
+
const message = createBaseBlockTransactionsRequest();
|
|
84
|
+
|
|
85
|
+
while (reader.pos < end) {
|
|
86
|
+
const tag = reader.uint32();
|
|
87
|
+
|
|
88
|
+
switch (tag >>> 3) {
|
|
89
|
+
case 1:
|
|
90
|
+
message.height = (reader.int64() as Long);
|
|
91
|
+
break;
|
|
92
|
+
|
|
93
|
+
case 2:
|
|
94
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
95
|
+
break;
|
|
96
|
+
|
|
97
|
+
default:
|
|
98
|
+
reader.skipType(tag & 7);
|
|
99
|
+
break;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return message;
|
|
104
|
+
},
|
|
105
|
+
|
|
106
|
+
fromPartial(object: DeepPartial<BlockTransactionsRequest>): BlockTransactionsRequest {
|
|
107
|
+
const message = createBaseBlockTransactionsRequest();
|
|
108
|
+
message.height = object.height !== undefined && object.height !== null ? Long.fromValue(object.height) : Long.ZERO;
|
|
109
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageRequest.fromPartial(object.pagination) : undefined;
|
|
110
|
+
return message;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
function createBaseTxWithResponse(): TxWithResponse {
|
|
116
|
+
return {
|
|
117
|
+
tx: undefined,
|
|
118
|
+
txResponse: undefined
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export const TxWithResponse = {
|
|
123
|
+
encode(message: TxWithResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
124
|
+
if (message.tx !== undefined) {
|
|
125
|
+
Tx.encode(message.tx, writer.uint32(10).fork()).ldelim();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (message.txResponse !== undefined) {
|
|
129
|
+
TxResponse.encode(message.txResponse, writer.uint32(18).fork()).ldelim();
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
return writer;
|
|
133
|
+
},
|
|
134
|
+
|
|
135
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TxWithResponse {
|
|
136
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
137
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
138
|
+
const message = createBaseTxWithResponse();
|
|
139
|
+
|
|
140
|
+
while (reader.pos < end) {
|
|
141
|
+
const tag = reader.uint32();
|
|
142
|
+
|
|
143
|
+
switch (tag >>> 3) {
|
|
144
|
+
case 1:
|
|
145
|
+
message.tx = Tx.decode(reader, reader.uint32());
|
|
146
|
+
break;
|
|
147
|
+
|
|
148
|
+
case 2:
|
|
149
|
+
message.txResponse = TxResponse.decode(reader, reader.uint32());
|
|
150
|
+
break;
|
|
151
|
+
|
|
152
|
+
default:
|
|
153
|
+
reader.skipType(tag & 7);
|
|
154
|
+
break;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return message;
|
|
159
|
+
},
|
|
160
|
+
|
|
161
|
+
fromPartial(object: DeepPartial<TxWithResponse>): TxWithResponse {
|
|
162
|
+
const message = createBaseTxWithResponse();
|
|
163
|
+
message.tx = object.tx !== undefined && object.tx !== null ? Tx.fromPartial(object.tx) : undefined;
|
|
164
|
+
message.txResponse = object.txResponse !== undefined && object.txResponse !== null ? TxResponse.fromPartial(object.txResponse) : undefined;
|
|
165
|
+
return message;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
function createBaseBlockTransactionsResponse(): BlockTransactionsResponse {
|
|
171
|
+
return {
|
|
172
|
+
txs: [],
|
|
173
|
+
blockHeight: Long.ZERO,
|
|
174
|
+
blockTimestamp: "",
|
|
175
|
+
pagination: undefined
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export const BlockTransactionsResponse = {
|
|
180
|
+
encode(message: BlockTransactionsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
181
|
+
for (const v of message.txs) {
|
|
182
|
+
TxWithResponse.encode(v!, writer.uint32(10).fork()).ldelim();
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
if (!message.blockHeight.isZero()) {
|
|
186
|
+
writer.uint32(16).int64(message.blockHeight);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
if (message.blockTimestamp !== "") {
|
|
190
|
+
writer.uint32(26).string(message.blockTimestamp);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
if (message.pagination !== undefined) {
|
|
194
|
+
PageResponse.encode(message.pagination, writer.uint32(34).fork()).ldelim();
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
return writer;
|
|
198
|
+
},
|
|
199
|
+
|
|
200
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BlockTransactionsResponse {
|
|
201
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
|
202
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
203
|
+
const message = createBaseBlockTransactionsResponse();
|
|
204
|
+
|
|
205
|
+
while (reader.pos < end) {
|
|
206
|
+
const tag = reader.uint32();
|
|
207
|
+
|
|
208
|
+
switch (tag >>> 3) {
|
|
209
|
+
case 1:
|
|
210
|
+
message.txs.push(TxWithResponse.decode(reader, reader.uint32()));
|
|
211
|
+
break;
|
|
212
|
+
|
|
213
|
+
case 2:
|
|
214
|
+
message.blockHeight = (reader.int64() as Long);
|
|
215
|
+
break;
|
|
216
|
+
|
|
217
|
+
case 3:
|
|
218
|
+
message.blockTimestamp = reader.string();
|
|
219
|
+
break;
|
|
220
|
+
|
|
221
|
+
case 4:
|
|
222
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
223
|
+
break;
|
|
224
|
+
|
|
225
|
+
default:
|
|
226
|
+
reader.skipType(tag & 7);
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
return message;
|
|
232
|
+
},
|
|
233
|
+
|
|
234
|
+
fromPartial(object: DeepPartial<BlockTransactionsResponse>): BlockTransactionsResponse {
|
|
235
|
+
const message = createBaseBlockTransactionsResponse();
|
|
236
|
+
message.txs = object.txs?.map(e => TxWithResponse.fromPartial(e)) || [];
|
|
237
|
+
message.blockHeight = object.blockHeight !== undefined && object.blockHeight !== null ? Long.fromValue(object.blockHeight) : Long.ZERO;
|
|
238
|
+
message.blockTimestamp = object.blockTimestamp ?? "";
|
|
239
|
+
message.pagination = object.pagination !== undefined && object.pagination !== null ? PageResponse.fromPartial(object.pagination) : undefined;
|
|
240
|
+
return message;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
1
|
+
import * as _264 from "./abci/types";
|
|
2
|
+
import * as _265 from "./crypto/keys";
|
|
3
|
+
import * as _266 from "./crypto/proof";
|
|
4
|
+
import * as _267 from "./libs/bits/types";
|
|
5
|
+
import * as _268 from "./p2p/types";
|
|
6
|
+
import * as _269 from "./types/block";
|
|
7
|
+
import * as _270 from "./types/evidence";
|
|
8
|
+
import * as _271 from "./types/params";
|
|
9
|
+
import * as _272 from "./types/types";
|
|
10
|
+
import * as _273 from "./types/validator";
|
|
11
|
+
import * as _274 from "./version/types";
|
|
12
12
|
export namespace tendermint {
|
|
13
|
-
export const abci = { ...
|
|
13
|
+
export const abci = { ..._264
|
|
14
14
|
};
|
|
15
|
-
export const crypto = { ...
|
|
16
|
-
...
|
|
15
|
+
export const crypto = { ..._265,
|
|
16
|
+
..._266
|
|
17
17
|
};
|
|
18
18
|
export namespace libs {
|
|
19
|
-
export const bits = { ...
|
|
19
|
+
export const bits = { ..._267
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
export const p2p = { ...
|
|
22
|
+
export const p2p = { ..._268
|
|
23
23
|
};
|
|
24
|
-
export const types = { ...
|
|
25
|
-
..._269,
|
|
24
|
+
export const types = { ..._269,
|
|
26
25
|
..._270,
|
|
27
26
|
..._271,
|
|
28
|
-
..._272
|
|
27
|
+
..._272,
|
|
28
|
+
..._273
|
|
29
29
|
};
|
|
30
|
-
export const version = { ...
|
|
30
|
+
export const version = { ..._274
|
|
31
31
|
};
|
|
32
32
|
}
|