@taquito/rpc 12.1.0 → 13.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.
@@ -40,7 +40,44 @@ function __awaiter(thisArg, _arguments, P, generator) {
40
40
  }
41
41
 
42
42
  const defaultChain = 'main';
43
- const defaultRPCOptions = { block: 'head' };
43
+ const defaultRPCOptions = { block: 'head' };
44
+ var RPCMethodName;
45
+ (function (RPCMethodName) {
46
+ RPCMethodName["GET_BAKING_RIGHTS"] = "getBakingRights";
47
+ RPCMethodName["GET_BALLOTS"] = "getBallots";
48
+ RPCMethodName["GET_BALLOT_LIST"] = "getBallotList";
49
+ RPCMethodName["GET_BIG_MAP_KEY"] = "getBigMapKey";
50
+ RPCMethodName["GET_BIG_MAP_EXPR"] = "getBigMapExpr";
51
+ RPCMethodName["GET_BLOCK_HASH"] = "getBlockHash";
52
+ RPCMethodName["GET_BLOCK"] = "getBlock";
53
+ RPCMethodName["GET_BLOCK_HEADER"] = "getBlockHeader";
54
+ RPCMethodName["GET_BLOCK_METADATA"] = "getBlockMetadata";
55
+ RPCMethodName["GET_BALANCE"] = "getBalance";
56
+ RPCMethodName["GET_CHAIN_ID"] = "getChainId";
57
+ RPCMethodName["GET_CONSTANTS"] = "getConstants";
58
+ RPCMethodName["GET_CONTRACT"] = "getContract";
59
+ RPCMethodName["GET_CURRENT_PERIOD"] = "getCurrentPeriod";
60
+ RPCMethodName["GET_CURRENT_PROPOSAL"] = "getCurrentProposal";
61
+ RPCMethodName["GET_CURRENT_QUORUM"] = "getCurrentQuorum";
62
+ RPCMethodName["GET_DELEGATE"] = "getDelegate";
63
+ RPCMethodName["GET_DELEGATES"] = "getDelegates";
64
+ RPCMethodName["GET_ENDORSING_RIGHTS"] = "getEndorsingRights";
65
+ RPCMethodName["GET_ENTRYPOINTS"] = "getEntrypoints";
66
+ RPCMethodName["GET_LIVE_BLOCKS"] = "getLiveBlocks";
67
+ RPCMethodName["GET_MANAGER_KEY"] = "getManagerKey";
68
+ RPCMethodName["GET_NORMALIZED_SCRIPT"] = "getNormalizedScript";
69
+ RPCMethodName["GET_PROPOSALS"] = "getProposals";
70
+ RPCMethodName["GET_PROTOCOLS"] = "getProtocols";
71
+ RPCMethodName["GET_SAPLING_DIFF_BY_CONTRACT"] = "getSaplingDiffByContract";
72
+ RPCMethodName["GET_SAPLING_DIFF_BY_ID"] = "getSaplingDiffById";
73
+ RPCMethodName["GET_SCRIPT"] = "getScript";
74
+ RPCMethodName["GET_STORAGE"] = "getStorage";
75
+ RPCMethodName["GET_SUCCESSOR_PERIOD"] = "getSuccessorPeriod";
76
+ RPCMethodName["GET_TX_ROLLUP_INBOX"] = "getTxRollupInbox";
77
+ RPCMethodName["GET_TX_ROLLUP_STATE"] = "getTxRollupState";
78
+ RPCMethodName["GET_VOTES_LISTINGS"] = "getVotesListings";
79
+ RPCMethodName["PACK_DATA"] = "packData";
80
+ })(RPCMethodName || (RPCMethodName = {}));
44
81
 
45
82
  /**
46
83
  * Casts object/array items to BigNumber
@@ -149,7 +186,9 @@ class RpcClientCache {
149
186
  */
150
187
  getBlockHash({ block } = defaultRPCOptions) {
151
188
  return __awaiter(this, void 0, void 0, function* () {
152
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getBlockHash', [block]);
189
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BLOCK_HASH, [
190
+ block,
191
+ ]);
153
192
  if (this.has(key)) {
154
193
  return this.get(key);
155
194
  }
@@ -170,7 +209,9 @@ class RpcClientCache {
170
209
  */
171
210
  getLiveBlocks({ block } = defaultRPCOptions) {
172
211
  return __awaiter(this, void 0, void 0, function* () {
173
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getLiveBlocks', [block]);
212
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_LIVE_BLOCKS, [
213
+ block,
214
+ ]);
174
215
  if (this.has(key)) {
175
216
  return this.get(key);
176
217
  }
@@ -193,7 +234,10 @@ class RpcClientCache {
193
234
  getBalance(address, { block } = defaultRPCOptions) {
194
235
  return __awaiter(this, void 0, void 0, function* () {
195
236
  this.validateAddress(address);
196
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getBalance', [block, address]);
237
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BALANCE, [
238
+ block,
239
+ address,
240
+ ]);
197
241
  if (this.has(key)) {
198
242
  return this.get(key);
199
243
  }
@@ -216,7 +260,10 @@ class RpcClientCache {
216
260
  getStorage(address, { block } = defaultRPCOptions) {
217
261
  return __awaiter(this, void 0, void 0, function* () {
218
262
  this.validateContract(address);
219
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getStorage', [block, address]);
263
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_STORAGE, [
264
+ block,
265
+ address,
266
+ ]);
220
267
  if (this.has(key)) {
221
268
  return this.get(key);
222
269
  }
@@ -239,7 +286,10 @@ class RpcClientCache {
239
286
  getScript(address, { block } = defaultRPCOptions) {
240
287
  return __awaiter(this, void 0, void 0, function* () {
241
288
  this.validateContract(address);
242
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getScript', [block, address]);
289
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_SCRIPT, [
290
+ block,
291
+ address,
292
+ ]);
243
293
  if (this.has(key)) {
244
294
  return this.get(key);
245
295
  }
@@ -262,11 +312,7 @@ class RpcClientCache {
262
312
  getNormalizedScript(address, unparsingMode = { unparsing_mode: 'Readable' }, { block } = defaultRPCOptions) {
263
313
  return __awaiter(this, void 0, void 0, function* () {
264
314
  this.validateContract(address);
265
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getNormalizedScript', [
266
- block,
267
- address,
268
- unparsingMode,
269
- ]);
315
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_NORMALIZED_SCRIPT, [block, address, unparsingMode]);
270
316
  if (this.has(key)) {
271
317
  return this.get(key);
272
318
  }
@@ -289,7 +335,10 @@ class RpcClientCache {
289
335
  getContract(address, { block } = defaultRPCOptions) {
290
336
  return __awaiter(this, void 0, void 0, function* () {
291
337
  this.validateAddress(address);
292
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getContract', [block, address]);
338
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_CONTRACT, [
339
+ block,
340
+ address,
341
+ ]);
293
342
  if (this.has(key)) {
294
343
  return this.get(key);
295
344
  }
@@ -312,7 +361,10 @@ class RpcClientCache {
312
361
  getManagerKey(address, { block } = defaultRPCOptions) {
313
362
  return __awaiter(this, void 0, void 0, function* () {
314
363
  this.validateAddress(address);
315
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getManagerKey', [block, address]);
364
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_MANAGER_KEY, [
365
+ block,
366
+ address,
367
+ ]);
316
368
  if (this.has(key)) {
317
369
  return this.get(key);
318
370
  }
@@ -335,7 +387,10 @@ class RpcClientCache {
335
387
  getDelegate(address, { block } = defaultRPCOptions) {
336
388
  return __awaiter(this, void 0, void 0, function* () {
337
389
  this.validateAddress(address);
338
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getDelegate', [block, address]);
390
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_DELEGATE, [
391
+ block,
392
+ address,
393
+ ]);
339
394
  if (this.has(key)) {
340
395
  return this.get(key);
341
396
  }
@@ -360,7 +415,7 @@ class RpcClientCache {
360
415
  getBigMapKey(address, key, { block } = defaultRPCOptions) {
361
416
  return __awaiter(this, void 0, void 0, function* () {
362
417
  this.validateAddress(address);
363
- const keyUrl = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getBigMapKey', [
418
+ const keyUrl = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BIG_MAP_KEY, [
364
419
  block,
365
420
  address,
366
421
  key,
@@ -387,7 +442,11 @@ class RpcClientCache {
387
442
  */
388
443
  getBigMapExpr(id, expr, { block } = defaultRPCOptions) {
389
444
  return __awaiter(this, void 0, void 0, function* () {
390
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getBigMapExpr', [block, id, expr]);
445
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BIG_MAP_EXPR, [
446
+ block,
447
+ id,
448
+ expr,
449
+ ]);
391
450
  if (this.has(key)) {
392
451
  return this.get(key);
393
452
  }
@@ -410,7 +469,10 @@ class RpcClientCache {
410
469
  getDelegates(address, { block } = defaultRPCOptions) {
411
470
  return __awaiter(this, void 0, void 0, function* () {
412
471
  this.validateAddress(address);
413
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getDelegates', [block, address]);
472
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_DELEGATES, [
473
+ block,
474
+ address,
475
+ ]);
414
476
  if (this.has(key)) {
415
477
  return this.get(key);
416
478
  }
@@ -431,7 +493,9 @@ class RpcClientCache {
431
493
  */
432
494
  getConstants({ block } = defaultRPCOptions) {
433
495
  return __awaiter(this, void 0, void 0, function* () {
434
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getConstants', [block]);
496
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_CONSTANTS, [
497
+ block,
498
+ ]);
435
499
  if (this.has(key)) {
436
500
  return this.get(key);
437
501
  }
@@ -455,7 +519,7 @@ class RpcClientCache {
455
519
  */
456
520
  getBlock({ block } = defaultRPCOptions) {
457
521
  return __awaiter(this, void 0, void 0, function* () {
458
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getBlock', [block]);
522
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BLOCK, [block]);
459
523
  if (this.has(key)) {
460
524
  return this.get(key);
461
525
  }
@@ -476,7 +540,9 @@ class RpcClientCache {
476
540
  */
477
541
  getBlockHeader({ block } = defaultRPCOptions) {
478
542
  return __awaiter(this, void 0, void 0, function* () {
479
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getBlockHeader', [block]);
543
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BLOCK_HEADER, [
544
+ block,
545
+ ]);
480
546
  if (this.has(key)) {
481
547
  return this.get(key);
482
548
  }
@@ -497,7 +563,9 @@ class RpcClientCache {
497
563
  */
498
564
  getBlockMetadata({ block } = defaultRPCOptions) {
499
565
  return __awaiter(this, void 0, void 0, function* () {
500
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getBlockMetadata', [block]);
566
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BLOCK_METADATA, [
567
+ block,
568
+ ]);
501
569
  if (this.has(key)) {
502
570
  return this.get(key);
503
571
  }
@@ -519,7 +587,10 @@ class RpcClientCache {
519
587
  */
520
588
  getBakingRights(args = {}, { block } = defaultRPCOptions) {
521
589
  return __awaiter(this, void 0, void 0, function* () {
522
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getBakingRights', [block, args]);
590
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BAKING_RIGHTS, [
591
+ block,
592
+ args,
593
+ ]);
523
594
  if (this.has(key)) {
524
595
  return this.get(key);
525
596
  }
@@ -541,10 +612,7 @@ class RpcClientCache {
541
612
  */
542
613
  getEndorsingRights(args = {}, { block } = defaultRPCOptions) {
543
614
  return __awaiter(this, void 0, void 0, function* () {
544
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getEndorsingRights', [
545
- block,
546
- args,
547
- ]);
615
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_ENDORSING_RIGHTS, [block, args]);
548
616
  if (this.has(key)) {
549
617
  return this.get(key);
550
618
  }
@@ -564,7 +632,9 @@ class RpcClientCache {
564
632
  */
565
633
  getBallotList({ block } = defaultRPCOptions) {
566
634
  return __awaiter(this, void 0, void 0, function* () {
567
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getBallotList', [block]);
635
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BALLOT_LIST, [
636
+ block,
637
+ ]);
568
638
  if (this.has(key)) {
569
639
  return this.get(key);
570
640
  }
@@ -585,7 +655,7 @@ class RpcClientCache {
585
655
  */
586
656
  getBallots({ block } = defaultRPCOptions) {
587
657
  return __awaiter(this, void 0, void 0, function* () {
588
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getBallots', [block]);
658
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BALLOTS, [block]);
589
659
  if (this.has(key)) {
590
660
  return this.get(key);
591
661
  }
@@ -606,7 +676,7 @@ class RpcClientCache {
606
676
  */
607
677
  getCurrentProposal({ block, } = defaultRPCOptions) {
608
678
  return __awaiter(this, void 0, void 0, function* () {
609
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getCurrentProposal', [block]);
679
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_CURRENT_PROPOSAL, [block]);
610
680
  if (this.has(key)) {
611
681
  return this.get(key);
612
682
  }
@@ -627,7 +697,9 @@ class RpcClientCache {
627
697
  */
628
698
  getCurrentQuorum({ block, } = defaultRPCOptions) {
629
699
  return __awaiter(this, void 0, void 0, function* () {
630
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getCurrentQuorum', [block]);
700
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_CURRENT_QUORUM, [
701
+ block,
702
+ ]);
631
703
  if (this.has(key)) {
632
704
  return this.get(key);
633
705
  }
@@ -648,7 +720,9 @@ class RpcClientCache {
648
720
  */
649
721
  getVotesListings({ block, } = defaultRPCOptions) {
650
722
  return __awaiter(this, void 0, void 0, function* () {
651
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getVotesListings', [block]);
723
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_VOTES_LISTINGS, [
724
+ block,
725
+ ]);
652
726
  if (this.has(key)) {
653
727
  return this.get(key);
654
728
  }
@@ -669,7 +743,9 @@ class RpcClientCache {
669
743
  */
670
744
  getProposals({ block } = defaultRPCOptions) {
671
745
  return __awaiter(this, void 0, void 0, function* () {
672
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getProposals', [block]);
746
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_PROPOSALS, [
747
+ block,
748
+ ]);
673
749
  if (this.has(key)) {
674
750
  return this.get(key);
675
751
  }
@@ -734,7 +810,7 @@ class RpcClientCache {
734
810
  getEntrypoints(contract, { block } = defaultRPCOptions) {
735
811
  return __awaiter(this, void 0, void 0, function* () {
736
812
  this.validateContract(contract);
737
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getEntrypoints', [
813
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_ENTRYPOINTS, [
738
814
  block,
739
815
  contract,
740
816
  ]);
@@ -789,7 +865,7 @@ class RpcClientCache {
789
865
  }
790
866
  getChainId() {
791
867
  return __awaiter(this, void 0, void 0, function* () {
792
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getChainId', []);
868
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_CHAIN_ID, []);
793
869
  if (this.has(key)) {
794
870
  return this.get(key);
795
871
  }
@@ -813,7 +889,10 @@ class RpcClientCache {
813
889
  */
814
890
  packData(data, { block } = defaultRPCOptions) {
815
891
  return __awaiter(this, void 0, void 0, function* () {
816
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'packData', [block, data]);
892
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.PACK_DATA, [
893
+ block,
894
+ data,
895
+ ]);
817
896
  if (this.has(key)) {
818
897
  return this.get(key);
819
898
  }
@@ -843,7 +922,9 @@ class RpcClientCache {
843
922
  */
844
923
  getCurrentPeriod({ block, } = defaultRPCOptions) {
845
924
  return __awaiter(this, void 0, void 0, function* () {
846
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getCurrentPeriod', [block]);
925
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_CURRENT_PERIOD, [
926
+ block,
927
+ ]);
847
928
  if (this.has(key)) {
848
929
  return this.get(key);
849
930
  }
@@ -866,7 +947,7 @@ class RpcClientCache {
866
947
  */
867
948
  getSuccessorPeriod({ block, } = defaultRPCOptions) {
868
949
  return __awaiter(this, void 0, void 0, function* () {
869
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getSuccessorPeriod', [block]);
950
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_SUCCESSOR_PERIOD, [block]);
870
951
  if (this.has(key)) {
871
952
  return this.get(key);
872
953
  }
@@ -888,7 +969,7 @@ class RpcClientCache {
888
969
  */
889
970
  getSaplingDiffById(id, { block } = defaultRPCOptions) {
890
971
  return __awaiter(this, void 0, void 0, function* () {
891
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getSaplingDiffById', [block, id]);
972
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_SAPLING_DIFF_BY_ID, [block, id]);
892
973
  if (this.has(key)) {
893
974
  return this.get(key);
894
975
  }
@@ -910,10 +991,7 @@ class RpcClientCache {
910
991
  */
911
992
  getSaplingDiffByContract(contract, { block } = defaultRPCOptions) {
912
993
  return __awaiter(this, void 0, void 0, function* () {
913
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getSaplingDiffByContract', [
914
- block,
915
- contract,
916
- ]);
994
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_SAPLING_DIFF_BY_CONTRACT, [block, contract]);
917
995
  if (this.has(key)) {
918
996
  return this.get(key);
919
997
  }
@@ -926,7 +1004,9 @@ class RpcClientCache {
926
1004
  }
927
1005
  getProtocols({ block } = defaultRPCOptions) {
928
1006
  return __awaiter(this, void 0, void 0, function* () {
929
- const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), 'getProtocols', [block]);
1007
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_PROTOCOLS, [
1008
+ block,
1009
+ ]);
930
1010
  if (this.has(key)) {
931
1011
  return this.get(key);
932
1012
  }
@@ -937,8 +1017,45 @@ class RpcClientCache {
937
1017
  }
938
1018
  });
939
1019
  }
1020
+ getTxRollupState(txRollupId, { block } = defaultRPCOptions) {
1021
+ return __awaiter(this, void 0, void 0, function* () {
1022
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_TX_ROLLUP_STATE, [
1023
+ block,
1024
+ txRollupId,
1025
+ ]);
1026
+ if (this.has(key)) {
1027
+ return this.get(key);
1028
+ }
1029
+ else {
1030
+ const response = this.rpcClient.getTxRollupState(txRollupId, { block });
1031
+ this.put(key, response);
1032
+ return response;
1033
+ }
1034
+ });
1035
+ }
1036
+ getTxRollupInbox(txRollupId, blockLevel, { block } = defaultRPCOptions) {
1037
+ return __awaiter(this, void 0, void 0, function* () {
1038
+ const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_TX_ROLLUP_INBOX, [
1039
+ block,
1040
+ txRollupId,
1041
+ blockLevel,
1042
+ ]);
1043
+ if (this.has(key)) {
1044
+ return this.get(key);
1045
+ }
1046
+ else {
1047
+ const response = this.rpcClient.getTxRollupInbox(txRollupId, blockLevel, { block });
1048
+ this.put(key, response);
1049
+ return response;
1050
+ }
1051
+ });
1052
+ }
940
1053
  }
941
1054
 
1055
+ var OPERATION_METADATA;
1056
+ (function (OPERATION_METADATA) {
1057
+ OPERATION_METADATA["TOO_LARGE"] = "too large";
1058
+ })(OPERATION_METADATA || (OPERATION_METADATA = {}));
942
1059
  var METADATA_BALANCE_UPDATES_CATEGORY;
943
1060
  (function (METADATA_BALANCE_UPDATES_CATEGORY) {
944
1061
  METADATA_BALANCE_UPDATES_CATEGORY["BAKING_REWARDS"] = "baking rewards";
@@ -962,6 +1079,9 @@ var METADATA_BALANCE_UPDATES_CATEGORY;
962
1079
  METADATA_BALANCE_UPDATES_CATEGORY["BOOTSTRAP"] = "bootstrap";
963
1080
  METADATA_BALANCE_UPDATES_CATEGORY["INVOICE"] = "invoice";
964
1081
  METADATA_BALANCE_UPDATES_CATEGORY["MINTED"] = "minted";
1082
+ METADATA_BALANCE_UPDATES_CATEGORY["TX_ROLLUP_REJECTION_REWARDS"] = "tx_rollup_rejection_rewards";
1083
+ METADATA_BALANCE_UPDATES_CATEGORY["TX_ROLLUP_REJECTION_PUNISHMENTS"] = "tx_rollup_rejection_punishments";
1084
+ METADATA_BALANCE_UPDATES_CATEGORY["BONDS"] = "bonds";
965
1085
  })(METADATA_BALANCE_UPDATES_CATEGORY || (METADATA_BALANCE_UPDATES_CATEGORY = {}));
966
1086
 
967
1087
  var OpKind;
@@ -983,12 +1103,21 @@ var OpKind;
983
1103
  OpKind["BALLOT"] = "ballot";
984
1104
  OpKind["FAILING_NOOP"] = "failing_noop";
985
1105
  OpKind["REGISTER_GLOBAL_CONSTANT"] = "register_global_constant";
1106
+ OpKind["TX_ROLLUP_ORIGINATION"] = "tx_rollup_origination";
1107
+ OpKind["TX_ROLLUP_SUBMIT_BATCH"] = "tx_rollup_submit_batch";
1108
+ OpKind["TX_ROLLUP_COMMIT"] = "tx_rollup_commit";
1109
+ OpKind["TX_ROLLUP_RETURN_BOND"] = "tx_rollup_return_bond";
1110
+ OpKind["TX_ROLLUP_FINALIZE_COMMITMENT"] = "tx_rollup_finalize_commitment";
1111
+ OpKind["TX_ROLLUP_REMOVE_COMMITMENT"] = "tx_rollup_remove_commitment";
1112
+ OpKind["TX_ROLLUP_REJECTION"] = "tx_rollup_rejection";
1113
+ OpKind["TX_ROLLUP_DISPATCH_TICKETS"] = "tx_rollup_dispatch_tickets";
1114
+ OpKind["TRANSFER_TICKET"] = "transfer_ticket";
986
1115
  })(OpKind || (OpKind = {}));
987
1116
 
988
1117
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
989
1118
  const VERSION = {
990
- "commitHash": "cbdd0af87e400489076259d065e2d328feb8e1b4",
991
- "version": "12.1.0"
1119
+ "commitHash": "01d3579d51bb8d70038a304cd4dbb7c6366a244b",
1120
+ "version": "13.0.0"
992
1121
  };
993
1122
 
994
1123
  /***
@@ -1314,6 +1443,7 @@ class RpcClient {
1314
1443
  'endorsing_reward_per_slot',
1315
1444
  'double_baking_punishment',
1316
1445
  'delay_increment_per_round',
1446
+ 'tx_rollup_commitment_bond',
1317
1447
  ]);
1318
1448
  return Object.assign(Object.assign({}, response), castedResponse);
1319
1449
  });
@@ -1767,7 +1897,42 @@ class RpcClient {
1767
1897
  });
1768
1898
  });
1769
1899
  }
1900
+ /**
1901
+ *
1902
+ * @param tx_rollup_id the transaction rollup ID
1903
+ * @param options contains generic configuration for rpc calls
1904
+ *
1905
+ * @description Access the state of a rollup
1906
+ *
1907
+ * @see https://tezos.gitlab.io/jakarta/rpc.html#get-block-id-context-tx-rollup-tx-rollup-id-state
1908
+ */
1909
+ getTxRollupState(txRollupId, { block } = defaultRPCOptions) {
1910
+ return __awaiter(this, void 0, void 0, function* () {
1911
+ return this.httpBackend.createRequest({
1912
+ url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/tx_rollup/${txRollupId}/state`),
1913
+ method: 'GET',
1914
+ });
1915
+ });
1916
+ }
1917
+ /**
1918
+ *
1919
+ * @param tx_rollup_id the transaction rollup ID
1920
+ * @param block_level the block level
1921
+ * @param options contains generic configuration for rpc calls
1922
+ *
1923
+ * @description Access the inbox of a transaction rollup
1924
+ *
1925
+ * @see https://tezos.gitlab.io/jakarta/rpc.html#get-block-id-context-tx-rollup-tx-rollup-id-inbox-block-level
1926
+ */
1927
+ getTxRollupInbox(txRollupId, blockLevel, { block } = defaultRPCOptions) {
1928
+ return __awaiter(this, void 0, void 0, function* () {
1929
+ return this.httpBackend.createRequest({
1930
+ url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/tx_rollup/${txRollupId}/inbox/${blockLevel}`),
1931
+ method: 'GET',
1932
+ });
1933
+ });
1934
+ }
1770
1935
  }
1771
1936
 
1772
- export { METADATA_BALANCE_UPDATES_CATEGORY, OpKind, RpcClient, RpcClientCache, VERSION, castToBigNumber, defaultChain, defaultRPCOptions };
1937
+ export { METADATA_BALANCE_UPDATES_CATEGORY, OPERATION_METADATA, OpKind, RpcClient, RpcClientCache, VERSION, castToBigNumber, defaultChain, defaultRPCOptions };
1773
1938
  //# sourceMappingURL=taquito-rpc.es6.js.map