@miradorlabs/web-grpc 2.31.0 → 2.35.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.
@@ -1,6 +1,6 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.12.0
3
+ // protoc-gen-ts_proto v2.12.1
4
4
  // protoc v3.21.12
5
5
  // source: proto/gateway/web/v1/chain_gateway.proto
6
6
 
@@ -416,34 +416,43 @@ export const StreamEvmBlockRequest: MessageFns<StreamEvmBlockRequest> = {
416
416
 
417
417
  decode(input: BinaryReader | Uint8Array, length?: number): StreamEvmBlockRequest {
418
418
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
419
- const end = length === undefined ? reader.len : reader.pos + length;
420
- const message = createBaseStreamEvmBlockRequest();
421
- while (reader.pos < end) {
422
- const tag = reader.uint32();
423
- switch (tag >>> 3) {
424
- case 1: {
425
- if (tag !== 8) {
426
- break;
427
- }
428
-
429
- message.evmChainId = longToNumber(reader.uint64());
430
- continue;
431
- }
432
- case 2: {
433
- if (tag !== 18) {
434
- break;
435
- }
436
-
437
- message.txHash = reader.string();
438
- continue;
439
- }
419
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
420
+ if (previousRecursionDepth >= 100) {
421
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
422
+ }
423
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
424
+ try {
425
+ const end = length === undefined ? reader.len : reader.pos + length;
426
+ const message = createBaseStreamEvmBlockRequest();
427
+ while (reader.pos < end) {
428
+ const tag = reader.uint32();
429
+ switch (tag >>> 3) {
430
+ case 1: {
431
+ if (tag !== 8) {
432
+ break;
433
+ }
434
+
435
+ message.evmChainId = longToNumber(reader.uint64());
436
+ continue;
437
+ }
438
+ case 2: {
439
+ if (tag !== 18) {
440
+ break;
441
+ }
442
+
443
+ message.txHash = reader.string();
444
+ continue;
445
+ }
446
+ }
447
+ if ((tag & 7) === 4 || tag === 0) {
448
+ break;
449
+ }
450
+ reader.skip(tag & 7);
440
451
  }
441
- if ((tag & 7) === 4 || tag === 0) {
442
- break;
443
- }
444
- reader.skip(tag & 7);
452
+ return message;
453
+ } finally {
454
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
445
455
  }
446
- return message;
447
456
  },
448
457
 
449
458
  fromJSON(object: any): StreamEvmBlockRequest {
@@ -500,34 +509,43 @@ export const EvmBlockUpdate: MessageFns<EvmBlockUpdate> = {
500
509
 
501
510
  decode(input: BinaryReader | Uint8Array, length?: number): EvmBlockUpdate {
502
511
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
503
- const end = length === undefined ? reader.len : reader.pos + length;
504
- const message = createBaseEvmBlockUpdate();
505
- while (reader.pos < end) {
506
- const tag = reader.uint32();
507
- switch (tag >>> 3) {
508
- case 1: {
509
- if (tag !== 8) {
510
- break;
511
- }
512
-
513
- message.blockNumber = longToNumber(reader.uint64());
514
- continue;
515
- }
516
- case 2: {
517
- if (tag !== 16) {
518
- break;
519
- }
520
-
521
- message.confirmedBlocks = longToNumber(reader.uint64());
522
- continue;
523
- }
524
- }
525
- if ((tag & 7) === 4 || tag === 0) {
526
- break;
512
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
513
+ if (previousRecursionDepth >= 100) {
514
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
515
+ }
516
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
517
+ try {
518
+ const end = length === undefined ? reader.len : reader.pos + length;
519
+ const message = createBaseEvmBlockUpdate();
520
+ while (reader.pos < end) {
521
+ const tag = reader.uint32();
522
+ switch (tag >>> 3) {
523
+ case 1: {
524
+ if (tag !== 8) {
525
+ break;
526
+ }
527
+
528
+ message.blockNumber = longToNumber(reader.uint64());
529
+ continue;
530
+ }
531
+ case 2: {
532
+ if (tag !== 16) {
533
+ break;
534
+ }
535
+
536
+ message.confirmedBlocks = longToNumber(reader.uint64());
537
+ continue;
538
+ }
539
+ }
540
+ if ((tag & 7) === 4 || tag === 0) {
541
+ break;
542
+ }
543
+ reader.skip(tag & 7);
527
544
  }
528
- reader.skip(tag & 7);
545
+ return message;
546
+ } finally {
547
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
529
548
  }
530
- return message;
531
549
  },
532
550
 
533
551
  fromJSON(object: any): EvmBlockUpdate {
@@ -587,42 +605,51 @@ export const GetEvmActivityRequest: MessageFns<GetEvmActivityRequest> = {
587
605
 
588
606
  decode(input: BinaryReader | Uint8Array, length?: number): GetEvmActivityRequest {
589
607
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
590
- const end = length === undefined ? reader.len : reader.pos + length;
591
- const message = createBaseGetEvmActivityRequest();
592
- while (reader.pos < end) {
593
- const tag = reader.uint32();
594
- switch (tag >>> 3) {
595
- case 1: {
596
- if (tag !== 10) {
597
- break;
598
- }
599
-
600
- message.txHash = reader.string();
601
- continue;
602
- }
603
- case 2: {
604
- if (tag !== 16) {
605
- break;
606
- }
607
-
608
- message.chainId = longToNumber(reader.uint64());
609
- continue;
610
- }
611
- case 3: {
612
- if (tag !== 26) {
613
- break;
614
- }
615
-
616
- message.fiatCurrency = reader.string();
617
- continue;
618
- }
608
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
609
+ if (previousRecursionDepth >= 100) {
610
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
611
+ }
612
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
613
+ try {
614
+ const end = length === undefined ? reader.len : reader.pos + length;
615
+ const message = createBaseGetEvmActivityRequest();
616
+ while (reader.pos < end) {
617
+ const tag = reader.uint32();
618
+ switch (tag >>> 3) {
619
+ case 1: {
620
+ if (tag !== 10) {
621
+ break;
622
+ }
623
+
624
+ message.txHash = reader.string();
625
+ continue;
626
+ }
627
+ case 2: {
628
+ if (tag !== 16) {
629
+ break;
630
+ }
631
+
632
+ message.chainId = longToNumber(reader.uint64());
633
+ continue;
634
+ }
635
+ case 3: {
636
+ if (tag !== 26) {
637
+ break;
638
+ }
639
+
640
+ message.fiatCurrency = reader.string();
641
+ continue;
642
+ }
643
+ }
644
+ if ((tag & 7) === 4 || tag === 0) {
645
+ break;
646
+ }
647
+ reader.skip(tag & 7);
619
648
  }
620
- if ((tag & 7) === 4 || tag === 0) {
621
- break;
622
- }
623
- reader.skip(tag & 7);
649
+ return message;
650
+ } finally {
651
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
624
652
  }
625
- return message;
626
653
  },
627
654
 
628
655
  fromJSON(object: any): GetEvmActivityRequest {
@@ -691,42 +718,51 @@ export const GetEvmActivityResponse: MessageFns<GetEvmActivityResponse> = {
691
718
 
692
719
  decode(input: BinaryReader | Uint8Array, length?: number): GetEvmActivityResponse {
693
720
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
694
- const end = length === undefined ? reader.len : reader.pos + length;
695
- const message = createBaseGetEvmActivityResponse();
696
- while (reader.pos < end) {
697
- const tag = reader.uint32();
698
- switch (tag >>> 3) {
699
- case 1: {
700
- if (tag !== 10) {
701
- break;
702
- }
703
-
704
- message.status = ResponseStatus.decode(reader, reader.uint32());
705
- continue;
706
- }
707
- case 2: {
708
- if (tag !== 18) {
709
- break;
710
- }
711
-
712
- message.transactionIntent = reader.string();
713
- continue;
714
- }
715
- case 3: {
716
- if (tag !== 26) {
717
- break;
718
- }
719
-
720
- message.activities.push(TransactionActivity.decode(reader, reader.uint32()));
721
- continue;
722
- }
723
- }
724
- if ((tag & 7) === 4 || tag === 0) {
725
- break;
721
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
722
+ if (previousRecursionDepth >= 100) {
723
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
724
+ }
725
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
726
+ try {
727
+ const end = length === undefined ? reader.len : reader.pos + length;
728
+ const message = createBaseGetEvmActivityResponse();
729
+ while (reader.pos < end) {
730
+ const tag = reader.uint32();
731
+ switch (tag >>> 3) {
732
+ case 1: {
733
+ if (tag !== 10) {
734
+ break;
735
+ }
736
+
737
+ message.status = ResponseStatus.decode(reader, reader.uint32());
738
+ continue;
739
+ }
740
+ case 2: {
741
+ if (tag !== 18) {
742
+ break;
743
+ }
744
+
745
+ message.transactionIntent = reader.string();
746
+ continue;
747
+ }
748
+ case 3: {
749
+ if (tag !== 26) {
750
+ break;
751
+ }
752
+
753
+ message.activities.push(TransactionActivity.decode(reader, reader.uint32()));
754
+ continue;
755
+ }
756
+ }
757
+ if ((tag & 7) === 4 || tag === 0) {
758
+ break;
759
+ }
760
+ reader.skip(tag & 7);
726
761
  }
727
- reader.skip(tag & 7);
762
+ return message;
763
+ } finally {
764
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
728
765
  }
729
- return message;
730
766
  },
731
767
 
732
768
  fromJSON(object: any): GetEvmActivityResponse {
@@ -819,90 +855,99 @@ export const TransactionActivity: MessageFns<TransactionActivity> = {
819
855
 
820
856
  decode(input: BinaryReader | Uint8Array, length?: number): TransactionActivity {
821
857
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
822
- const end = length === undefined ? reader.len : reader.pos + length;
823
- const message = createBaseTransactionActivity();
824
- while (reader.pos < end) {
825
- const tag = reader.uint32();
826
- switch (tag >>> 3) {
827
- case 2: {
828
- if (tag !== 18) {
829
- break;
830
- }
831
-
832
- message.fromAddress = reader.string();
833
- continue;
834
- }
835
- case 3: {
836
- if (tag !== 26) {
837
- break;
838
- }
839
-
840
- message.toAddress = reader.string();
841
- continue;
842
- }
843
- case 4: {
844
- if (tag !== 34) {
845
- break;
846
- }
847
-
848
- message.nativeValueRaw = reader.string();
849
- continue;
850
- }
851
- case 5: {
852
- if (tag !== 42) {
853
- break;
854
- }
855
-
856
- message.nativeValueFormatted = reader.string();
857
- continue;
858
- }
859
- case 6: {
860
- if (tag !== 50) {
861
- break;
862
- }
863
-
864
- message.activities.push(Activity.decode(reader, reader.uint32()));
865
- continue;
866
- }
867
- case 7: {
868
- if (tag !== 58) {
869
- break;
870
- }
871
-
872
- message.tokens.push(TokenInfo.decode(reader, reader.uint32()));
873
- continue;
874
- }
875
- case 8: {
876
- if (tag !== 66) {
877
- break;
878
- }
879
-
880
- message.nativeValueFiat = FiatValue.decode(reader, reader.uint32());
881
- continue;
882
- }
883
- case 9: {
884
- if (tag !== 74) {
885
- break;
886
- }
887
-
888
- message.calldata = CalldataInfo.decode(reader, reader.uint32());
889
- continue;
890
- }
891
- case 10: {
892
- if (tag !== 82) {
893
- break;
894
- }
895
-
896
- message.eventLogs.push(EventLog.decode(reader, reader.uint32()));
897
- continue;
898
- }
899
- }
900
- if ((tag & 7) === 4 || tag === 0) {
901
- break;
858
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
859
+ if (previousRecursionDepth >= 100) {
860
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
861
+ }
862
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
863
+ try {
864
+ const end = length === undefined ? reader.len : reader.pos + length;
865
+ const message = createBaseTransactionActivity();
866
+ while (reader.pos < end) {
867
+ const tag = reader.uint32();
868
+ switch (tag >>> 3) {
869
+ case 2: {
870
+ if (tag !== 18) {
871
+ break;
872
+ }
873
+
874
+ message.fromAddress = reader.string();
875
+ continue;
876
+ }
877
+ case 3: {
878
+ if (tag !== 26) {
879
+ break;
880
+ }
881
+
882
+ message.toAddress = reader.string();
883
+ continue;
884
+ }
885
+ case 4: {
886
+ if (tag !== 34) {
887
+ break;
888
+ }
889
+
890
+ message.nativeValueRaw = reader.string();
891
+ continue;
892
+ }
893
+ case 5: {
894
+ if (tag !== 42) {
895
+ break;
896
+ }
897
+
898
+ message.nativeValueFormatted = reader.string();
899
+ continue;
900
+ }
901
+ case 6: {
902
+ if (tag !== 50) {
903
+ break;
904
+ }
905
+
906
+ message.activities.push(Activity.decode(reader, reader.uint32()));
907
+ continue;
908
+ }
909
+ case 7: {
910
+ if (tag !== 58) {
911
+ break;
912
+ }
913
+
914
+ message.tokens.push(TokenInfo.decode(reader, reader.uint32()));
915
+ continue;
916
+ }
917
+ case 8: {
918
+ if (tag !== 66) {
919
+ break;
920
+ }
921
+
922
+ message.nativeValueFiat = FiatValue.decode(reader, reader.uint32());
923
+ continue;
924
+ }
925
+ case 9: {
926
+ if (tag !== 74) {
927
+ break;
928
+ }
929
+
930
+ message.calldata = CalldataInfo.decode(reader, reader.uint32());
931
+ continue;
932
+ }
933
+ case 10: {
934
+ if (tag !== 82) {
935
+ break;
936
+ }
937
+
938
+ message.eventLogs.push(EventLog.decode(reader, reader.uint32()));
939
+ continue;
940
+ }
941
+ }
942
+ if ((tag & 7) === 4 || tag === 0) {
943
+ break;
944
+ }
945
+ reader.skip(tag & 7);
902
946
  }
903
- reader.skip(tag & 7);
947
+ return message;
948
+ } finally {
949
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
904
950
  }
905
- return message;
906
951
  },
907
952
 
908
953
  fromJSON(object: any): TransactionActivity {
@@ -1055,106 +1100,115 @@ export const Activity: MessageFns<Activity> = {
1055
1100
 
1056
1101
  decode(input: BinaryReader | Uint8Array, length?: number): Activity {
1057
1102
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1058
- const end = length === undefined ? reader.len : reader.pos + length;
1059
- const message = createBaseActivity();
1060
- while (reader.pos < end) {
1061
- const tag = reader.uint32();
1062
- switch (tag >>> 3) {
1063
- case 1: {
1064
- if (tag !== 8) {
1065
- break;
1066
- }
1067
-
1068
- message.type = reader.int32() as any;
1069
- continue;
1070
- }
1071
- case 2: {
1072
- if (tag !== 16) {
1073
- break;
1074
- }
1075
-
1076
- message.primaryLogIndex = reader.uint32();
1077
- continue;
1103
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1104
+ if (previousRecursionDepth >= 100) {
1105
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1106
+ }
1107
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1108
+ try {
1109
+ const end = length === undefined ? reader.len : reader.pos + length;
1110
+ const message = createBaseActivity();
1111
+ while (reader.pos < end) {
1112
+ const tag = reader.uint32();
1113
+ switch (tag >>> 3) {
1114
+ case 1: {
1115
+ if (tag !== 8) {
1116
+ break;
1117
+ }
1118
+
1119
+ message.type = reader.int32() as any;
1120
+ continue;
1121
+ }
1122
+ case 2: {
1123
+ if (tag !== 16) {
1124
+ break;
1125
+ }
1126
+
1127
+ message.primaryLogIndex = reader.uint32();
1128
+ continue;
1129
+ }
1130
+ case 10: {
1131
+ if (tag !== 82) {
1132
+ break;
1133
+ }
1134
+
1135
+ message.summary = reader.string();
1136
+ continue;
1137
+ }
1138
+ case 3: {
1139
+ if (tag !== 26) {
1140
+ break;
1141
+ }
1142
+
1143
+ message.swap = SwapActivity.decode(reader, reader.uint32());
1144
+ continue;
1145
+ }
1146
+ case 4: {
1147
+ if (tag !== 34) {
1148
+ break;
1149
+ }
1150
+
1151
+ message.nftMint = NftMintActivity.decode(reader, reader.uint32());
1152
+ continue;
1153
+ }
1154
+ case 5: {
1155
+ if (tag !== 42) {
1156
+ break;
1157
+ }
1158
+
1159
+ message.nftTransfer = NftTransferActivity.decode(reader, reader.uint32());
1160
+ continue;
1161
+ }
1162
+ case 6: {
1163
+ if (tag !== 50) {
1164
+ break;
1165
+ }
1166
+
1167
+ message.tokenTransfer = TokenTransferActivity.decode(reader, reader.uint32());
1168
+ continue;
1169
+ }
1170
+ case 7: {
1171
+ if (tag !== 58) {
1172
+ break;
1173
+ }
1174
+
1175
+ message.approval = ApprovalActivity.decode(reader, reader.uint32());
1176
+ continue;
1177
+ }
1178
+ case 8: {
1179
+ if (tag !== 66) {
1180
+ break;
1181
+ }
1182
+
1183
+ message.bridge = BridgeActivity.decode(reader, reader.uint32());
1184
+ continue;
1185
+ }
1186
+ case 9: {
1187
+ if (tag !== 74) {
1188
+ break;
1189
+ }
1190
+
1191
+ message.contractInteraction = ContractInteractionActivity.decode(reader, reader.uint32());
1192
+ continue;
1193
+ }
1194
+ case 11: {
1195
+ if (tag !== 90) {
1196
+ break;
1197
+ }
1198
+
1199
+ message.children.push(Activity.decode(reader, reader.uint32()));
1200
+ continue;
1201
+ }
1202
+ }
1203
+ if ((tag & 7) === 4 || tag === 0) {
1204
+ break;
1078
1205
  }
1079
- case 10: {
1080
- if (tag !== 82) {
1081
- break;
1082
- }
1083
-
1084
- message.summary = reader.string();
1085
- continue;
1086
- }
1087
- case 3: {
1088
- if (tag !== 26) {
1089
- break;
1090
- }
1091
-
1092
- message.swap = SwapActivity.decode(reader, reader.uint32());
1093
- continue;
1094
- }
1095
- case 4: {
1096
- if (tag !== 34) {
1097
- break;
1098
- }
1099
-
1100
- message.nftMint = NftMintActivity.decode(reader, reader.uint32());
1101
- continue;
1102
- }
1103
- case 5: {
1104
- if (tag !== 42) {
1105
- break;
1106
- }
1107
-
1108
- message.nftTransfer = NftTransferActivity.decode(reader, reader.uint32());
1109
- continue;
1110
- }
1111
- case 6: {
1112
- if (tag !== 50) {
1113
- break;
1114
- }
1115
-
1116
- message.tokenTransfer = TokenTransferActivity.decode(reader, reader.uint32());
1117
- continue;
1118
- }
1119
- case 7: {
1120
- if (tag !== 58) {
1121
- break;
1122
- }
1123
-
1124
- message.approval = ApprovalActivity.decode(reader, reader.uint32());
1125
- continue;
1126
- }
1127
- case 8: {
1128
- if (tag !== 66) {
1129
- break;
1130
- }
1131
-
1132
- message.bridge = BridgeActivity.decode(reader, reader.uint32());
1133
- continue;
1134
- }
1135
- case 9: {
1136
- if (tag !== 74) {
1137
- break;
1138
- }
1139
-
1140
- message.contractInteraction = ContractInteractionActivity.decode(reader, reader.uint32());
1141
- continue;
1142
- }
1143
- case 11: {
1144
- if (tag !== 90) {
1145
- break;
1146
- }
1147
-
1148
- message.children.push(Activity.decode(reader, reader.uint32()));
1149
- continue;
1150
- }
1151
- }
1152
- if ((tag & 7) === 4 || tag === 0) {
1153
- break;
1206
+ reader.skip(tag & 7);
1154
1207
  }
1155
- reader.skip(tag & 7);
1208
+ return message;
1209
+ } finally {
1210
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1156
1211
  }
1157
- return message;
1158
1212
  },
1159
1213
 
1160
1214
  fromJSON(object: any): Activity {
@@ -1323,106 +1377,115 @@ export const SwapActivity: MessageFns<SwapActivity> = {
1323
1377
 
1324
1378
  decode(input: BinaryReader | Uint8Array, length?: number): SwapActivity {
1325
1379
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1326
- const end = length === undefined ? reader.len : reader.pos + length;
1327
- const message = createBaseSwapActivity();
1328
- while (reader.pos < end) {
1329
- const tag = reader.uint32();
1330
- switch (tag >>> 3) {
1331
- case 1: {
1332
- if (tag !== 10) {
1333
- break;
1334
- }
1335
-
1336
- message.protocol = reader.string();
1337
- continue;
1338
- }
1339
- case 2: {
1340
- if (tag !== 18) {
1341
- break;
1342
- }
1343
-
1344
- message.inputTokenAddress = reader.string();
1345
- continue;
1346
- }
1347
- case 3: {
1348
- if (tag !== 26) {
1349
- break;
1350
- }
1351
-
1352
- message.inputAmountRaw = reader.string();
1353
- continue;
1354
- }
1355
- case 4: {
1356
- if (tag !== 34) {
1357
- break;
1358
- }
1359
-
1360
- message.inputAmountFormatted = reader.string();
1361
- continue;
1362
- }
1363
- case 5: {
1364
- if (tag !== 42) {
1365
- break;
1366
- }
1367
-
1368
- message.outputTokenAddress = reader.string();
1369
- continue;
1370
- }
1371
- case 6: {
1372
- if (tag !== 50) {
1373
- break;
1374
- }
1375
-
1376
- message.outputAmountRaw = reader.string();
1377
- continue;
1378
- }
1379
- case 7: {
1380
- if (tag !== 58) {
1381
- break;
1382
- }
1383
-
1384
- message.outputAmountFormatted = reader.string();
1385
- continue;
1386
- }
1387
- case 8: {
1388
- if (tag !== 66) {
1389
- break;
1390
- }
1391
-
1392
- message.sender = reader.string();
1393
- continue;
1394
- }
1395
- case 9: {
1396
- if (tag !== 74) {
1397
- break;
1398
- }
1399
-
1400
- message.recipient = reader.string();
1401
- continue;
1402
- }
1403
- case 10: {
1404
- if (tag !== 82) {
1405
- break;
1406
- }
1407
-
1408
- message.inputFiatValue = FiatValue.decode(reader, reader.uint32());
1409
- continue;
1410
- }
1411
- case 11: {
1412
- if (tag !== 90) {
1413
- break;
1414
- }
1415
-
1416
- message.outputFiatValue = FiatValue.decode(reader, reader.uint32());
1417
- continue;
1380
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1381
+ if (previousRecursionDepth >= 100) {
1382
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1383
+ }
1384
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1385
+ try {
1386
+ const end = length === undefined ? reader.len : reader.pos + length;
1387
+ const message = createBaseSwapActivity();
1388
+ while (reader.pos < end) {
1389
+ const tag = reader.uint32();
1390
+ switch (tag >>> 3) {
1391
+ case 1: {
1392
+ if (tag !== 10) {
1393
+ break;
1394
+ }
1395
+
1396
+ message.protocol = reader.string();
1397
+ continue;
1398
+ }
1399
+ case 2: {
1400
+ if (tag !== 18) {
1401
+ break;
1402
+ }
1403
+
1404
+ message.inputTokenAddress = reader.string();
1405
+ continue;
1406
+ }
1407
+ case 3: {
1408
+ if (tag !== 26) {
1409
+ break;
1410
+ }
1411
+
1412
+ message.inputAmountRaw = reader.string();
1413
+ continue;
1414
+ }
1415
+ case 4: {
1416
+ if (tag !== 34) {
1417
+ break;
1418
+ }
1419
+
1420
+ message.inputAmountFormatted = reader.string();
1421
+ continue;
1422
+ }
1423
+ case 5: {
1424
+ if (tag !== 42) {
1425
+ break;
1426
+ }
1427
+
1428
+ message.outputTokenAddress = reader.string();
1429
+ continue;
1430
+ }
1431
+ case 6: {
1432
+ if (tag !== 50) {
1433
+ break;
1434
+ }
1435
+
1436
+ message.outputAmountRaw = reader.string();
1437
+ continue;
1438
+ }
1439
+ case 7: {
1440
+ if (tag !== 58) {
1441
+ break;
1442
+ }
1443
+
1444
+ message.outputAmountFormatted = reader.string();
1445
+ continue;
1446
+ }
1447
+ case 8: {
1448
+ if (tag !== 66) {
1449
+ break;
1450
+ }
1451
+
1452
+ message.sender = reader.string();
1453
+ continue;
1454
+ }
1455
+ case 9: {
1456
+ if (tag !== 74) {
1457
+ break;
1458
+ }
1459
+
1460
+ message.recipient = reader.string();
1461
+ continue;
1462
+ }
1463
+ case 10: {
1464
+ if (tag !== 82) {
1465
+ break;
1466
+ }
1467
+
1468
+ message.inputFiatValue = FiatValue.decode(reader, reader.uint32());
1469
+ continue;
1470
+ }
1471
+ case 11: {
1472
+ if (tag !== 90) {
1473
+ break;
1474
+ }
1475
+
1476
+ message.outputFiatValue = FiatValue.decode(reader, reader.uint32());
1477
+ continue;
1478
+ }
1479
+ }
1480
+ if ((tag & 7) === 4 || tag === 0) {
1481
+ break;
1418
1482
  }
1483
+ reader.skip(tag & 7);
1419
1484
  }
1420
- if ((tag & 7) === 4 || tag === 0) {
1421
- break;
1422
- }
1423
- reader.skip(tag & 7);
1485
+ return message;
1486
+ } finally {
1487
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1424
1488
  }
1425
- return message;
1426
1489
  },
1427
1490
 
1428
1491
  fromJSON(object: any): SwapActivity {
@@ -1564,66 +1627,75 @@ export const NftMintActivity: MessageFns<NftMintActivity> = {
1564
1627
 
1565
1628
  decode(input: BinaryReader | Uint8Array, length?: number): NftMintActivity {
1566
1629
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1567
- const end = length === undefined ? reader.len : reader.pos + length;
1568
- const message = createBaseNftMintActivity();
1569
- while (reader.pos < end) {
1570
- const tag = reader.uint32();
1571
- switch (tag >>> 3) {
1572
- case 1: {
1573
- if (tag !== 10) {
1574
- break;
1575
- }
1576
-
1577
- message.collectionAddress = reader.string();
1578
- continue;
1579
- }
1580
- case 2: {
1581
- if (tag !== 18) {
1582
- break;
1583
- }
1584
-
1585
- message.collectionName = reader.string();
1586
- continue;
1587
- }
1588
- case 3: {
1589
- if (tag !== 26) {
1590
- break;
1591
- }
1592
-
1593
- message.tokenIds.push(reader.string());
1594
- continue;
1595
- }
1596
- case 4: {
1597
- if (tag !== 32) {
1598
- break;
1599
- }
1600
-
1601
- message.quantity = reader.uint32();
1602
- continue;
1603
- }
1604
- case 5: {
1605
- if (tag !== 42) {
1606
- break;
1607
- }
1608
-
1609
- message.recipient = reader.string();
1610
- continue;
1611
- }
1612
- case 6: {
1613
- if (tag !== 48) {
1614
- break;
1615
- }
1616
-
1617
- message.standard = reader.int32() as any;
1618
- continue;
1619
- }
1620
- }
1621
- if ((tag & 7) === 4 || tag === 0) {
1622
- break;
1630
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1631
+ if (previousRecursionDepth >= 100) {
1632
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1633
+ }
1634
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1635
+ try {
1636
+ const end = length === undefined ? reader.len : reader.pos + length;
1637
+ const message = createBaseNftMintActivity();
1638
+ while (reader.pos < end) {
1639
+ const tag = reader.uint32();
1640
+ switch (tag >>> 3) {
1641
+ case 1: {
1642
+ if (tag !== 10) {
1643
+ break;
1644
+ }
1645
+
1646
+ message.collectionAddress = reader.string();
1647
+ continue;
1648
+ }
1649
+ case 2: {
1650
+ if (tag !== 18) {
1651
+ break;
1652
+ }
1653
+
1654
+ message.collectionName = reader.string();
1655
+ continue;
1656
+ }
1657
+ case 3: {
1658
+ if (tag !== 26) {
1659
+ break;
1660
+ }
1661
+
1662
+ message.tokenIds.push(reader.string());
1663
+ continue;
1664
+ }
1665
+ case 4: {
1666
+ if (tag !== 32) {
1667
+ break;
1668
+ }
1669
+
1670
+ message.quantity = reader.uint32();
1671
+ continue;
1672
+ }
1673
+ case 5: {
1674
+ if (tag !== 42) {
1675
+ break;
1676
+ }
1677
+
1678
+ message.recipient = reader.string();
1679
+ continue;
1680
+ }
1681
+ case 6: {
1682
+ if (tag !== 48) {
1683
+ break;
1684
+ }
1685
+
1686
+ message.standard = reader.int32() as any;
1687
+ continue;
1688
+ }
1689
+ }
1690
+ if ((tag & 7) === 4 || tag === 0) {
1691
+ break;
1692
+ }
1693
+ reader.skip(tag & 7);
1623
1694
  }
1624
- reader.skip(tag & 7);
1695
+ return message;
1696
+ } finally {
1697
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1625
1698
  }
1626
- return message;
1627
1699
  },
1628
1700
 
1629
1701
  fromJSON(object: any): NftMintActivity {
@@ -1727,74 +1799,83 @@ export const NftTransferActivity: MessageFns<NftTransferActivity> = {
1727
1799
 
1728
1800
  decode(input: BinaryReader | Uint8Array, length?: number): NftTransferActivity {
1729
1801
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1730
- const end = length === undefined ? reader.len : reader.pos + length;
1731
- const message = createBaseNftTransferActivity();
1732
- while (reader.pos < end) {
1733
- const tag = reader.uint32();
1734
- switch (tag >>> 3) {
1735
- case 1: {
1736
- if (tag !== 10) {
1737
- break;
1738
- }
1739
-
1740
- message.collectionAddress = reader.string();
1741
- continue;
1742
- }
1743
- case 2: {
1744
- if (tag !== 18) {
1745
- break;
1746
- }
1747
-
1748
- message.collectionName = reader.string();
1749
- continue;
1750
- }
1751
- case 3: {
1752
- if (tag !== 26) {
1753
- break;
1754
- }
1755
-
1756
- message.tokenIds.push(reader.string());
1757
- continue;
1758
- }
1759
- case 4: {
1760
- if (tag !== 32) {
1761
- break;
1762
- }
1763
-
1764
- message.quantity = reader.uint32();
1765
- continue;
1766
- }
1767
- case 5: {
1768
- if (tag !== 42) {
1769
- break;
1770
- }
1771
-
1772
- message.fromAddress = reader.string();
1773
- continue;
1774
- }
1775
- case 6: {
1776
- if (tag !== 50) {
1777
- break;
1778
- }
1779
-
1780
- message.toAddress = reader.string();
1781
- continue;
1782
- }
1783
- case 7: {
1784
- if (tag !== 56) {
1785
- break;
1786
- }
1787
-
1788
- message.standard = reader.int32() as any;
1789
- continue;
1790
- }
1791
- }
1792
- if ((tag & 7) === 4 || tag === 0) {
1793
- break;
1802
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1803
+ if (previousRecursionDepth >= 100) {
1804
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1805
+ }
1806
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1807
+ try {
1808
+ const end = length === undefined ? reader.len : reader.pos + length;
1809
+ const message = createBaseNftTransferActivity();
1810
+ while (reader.pos < end) {
1811
+ const tag = reader.uint32();
1812
+ switch (tag >>> 3) {
1813
+ case 1: {
1814
+ if (tag !== 10) {
1815
+ break;
1816
+ }
1817
+
1818
+ message.collectionAddress = reader.string();
1819
+ continue;
1820
+ }
1821
+ case 2: {
1822
+ if (tag !== 18) {
1823
+ break;
1824
+ }
1825
+
1826
+ message.collectionName = reader.string();
1827
+ continue;
1828
+ }
1829
+ case 3: {
1830
+ if (tag !== 26) {
1831
+ break;
1832
+ }
1833
+
1834
+ message.tokenIds.push(reader.string());
1835
+ continue;
1836
+ }
1837
+ case 4: {
1838
+ if (tag !== 32) {
1839
+ break;
1840
+ }
1841
+
1842
+ message.quantity = reader.uint32();
1843
+ continue;
1844
+ }
1845
+ case 5: {
1846
+ if (tag !== 42) {
1847
+ break;
1848
+ }
1849
+
1850
+ message.fromAddress = reader.string();
1851
+ continue;
1852
+ }
1853
+ case 6: {
1854
+ if (tag !== 50) {
1855
+ break;
1856
+ }
1857
+
1858
+ message.toAddress = reader.string();
1859
+ continue;
1860
+ }
1861
+ case 7: {
1862
+ if (tag !== 56) {
1863
+ break;
1864
+ }
1865
+
1866
+ message.standard = reader.int32() as any;
1867
+ continue;
1868
+ }
1869
+ }
1870
+ if ((tag & 7) === 4 || tag === 0) {
1871
+ break;
1872
+ }
1873
+ reader.skip(tag & 7);
1794
1874
  }
1795
- reader.skip(tag & 7);
1875
+ return message;
1876
+ } finally {
1877
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1796
1878
  }
1797
- return message;
1798
1879
  },
1799
1880
 
1800
1881
  fromJSON(object: any): NftTransferActivity {
@@ -1900,66 +1981,75 @@ export const TokenTransferActivity: MessageFns<TokenTransferActivity> = {
1900
1981
 
1901
1982
  decode(input: BinaryReader | Uint8Array, length?: number): TokenTransferActivity {
1902
1983
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1903
- const end = length === undefined ? reader.len : reader.pos + length;
1904
- const message = createBaseTokenTransferActivity();
1905
- while (reader.pos < end) {
1906
- const tag = reader.uint32();
1907
- switch (tag >>> 3) {
1908
- case 1: {
1909
- if (tag !== 10) {
1910
- break;
1911
- }
1912
-
1913
- message.tokenAddress = reader.string();
1914
- continue;
1915
- }
1916
- case 2: {
1917
- if (tag !== 18) {
1918
- break;
1919
- }
1920
-
1921
- message.amountRaw = reader.string();
1922
- continue;
1923
- }
1924
- case 3: {
1925
- if (tag !== 26) {
1926
- break;
1927
- }
1928
-
1929
- message.amountFormatted = reader.string();
1930
- continue;
1931
- }
1932
- case 4: {
1933
- if (tag !== 34) {
1934
- break;
1935
- }
1936
-
1937
- message.fromAddress = reader.string();
1938
- continue;
1939
- }
1940
- case 5: {
1941
- if (tag !== 42) {
1942
- break;
1943
- }
1944
-
1945
- message.toAddress = reader.string();
1946
- continue;
1947
- }
1948
- case 6: {
1949
- if (tag !== 50) {
1950
- break;
1951
- }
1952
-
1953
- message.fiatValue = FiatValue.decode(reader, reader.uint32());
1954
- continue;
1955
- }
1956
- }
1957
- if ((tag & 7) === 4 || tag === 0) {
1958
- break;
1984
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
1985
+ if (previousRecursionDepth >= 100) {
1986
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
1987
+ }
1988
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
1989
+ try {
1990
+ const end = length === undefined ? reader.len : reader.pos + length;
1991
+ const message = createBaseTokenTransferActivity();
1992
+ while (reader.pos < end) {
1993
+ const tag = reader.uint32();
1994
+ switch (tag >>> 3) {
1995
+ case 1: {
1996
+ if (tag !== 10) {
1997
+ break;
1998
+ }
1999
+
2000
+ message.tokenAddress = reader.string();
2001
+ continue;
2002
+ }
2003
+ case 2: {
2004
+ if (tag !== 18) {
2005
+ break;
2006
+ }
2007
+
2008
+ message.amountRaw = reader.string();
2009
+ continue;
2010
+ }
2011
+ case 3: {
2012
+ if (tag !== 26) {
2013
+ break;
2014
+ }
2015
+
2016
+ message.amountFormatted = reader.string();
2017
+ continue;
2018
+ }
2019
+ case 4: {
2020
+ if (tag !== 34) {
2021
+ break;
2022
+ }
2023
+
2024
+ message.fromAddress = reader.string();
2025
+ continue;
2026
+ }
2027
+ case 5: {
2028
+ if (tag !== 42) {
2029
+ break;
2030
+ }
2031
+
2032
+ message.toAddress = reader.string();
2033
+ continue;
2034
+ }
2035
+ case 6: {
2036
+ if (tag !== 50) {
2037
+ break;
2038
+ }
2039
+
2040
+ message.fiatValue = FiatValue.decode(reader, reader.uint32());
2041
+ continue;
2042
+ }
2043
+ }
2044
+ if ((tag & 7) === 4 || tag === 0) {
2045
+ break;
2046
+ }
2047
+ reader.skip(tag & 7);
1959
2048
  }
1960
- reader.skip(tag & 7);
2049
+ return message;
2050
+ } finally {
2051
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
1961
2052
  }
1962
- return message;
1963
2053
  },
1964
2054
 
1965
2055
  fromJSON(object: any): TokenTransferActivity {
@@ -2066,66 +2156,75 @@ export const ApprovalActivity: MessageFns<ApprovalActivity> = {
2066
2156
 
2067
2157
  decode(input: BinaryReader | Uint8Array, length?: number): ApprovalActivity {
2068
2158
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2069
- const end = length === undefined ? reader.len : reader.pos + length;
2070
- const message = createBaseApprovalActivity();
2071
- while (reader.pos < end) {
2072
- const tag = reader.uint32();
2073
- switch (tag >>> 3) {
2074
- case 1: {
2075
- if (tag !== 10) {
2076
- break;
2077
- }
2078
-
2079
- message.tokenAddress = reader.string();
2080
- continue;
2081
- }
2082
- case 2: {
2083
- if (tag !== 18) {
2084
- break;
2085
- }
2086
-
2087
- message.spenderAddress = reader.string();
2088
- continue;
2089
- }
2090
- case 3: {
2091
- if (tag !== 26) {
2092
- break;
2093
- }
2094
-
2095
- message.amountRaw = reader.string();
2096
- continue;
2097
- }
2098
- case 4: {
2099
- if (tag !== 34) {
2100
- break;
2101
- }
2102
-
2103
- message.amountFormatted = reader.string();
2104
- continue;
2105
- }
2106
- case 5: {
2107
- if (tag !== 42) {
2108
- break;
2109
- }
2110
-
2111
- message.owner = reader.string();
2112
- continue;
2113
- }
2114
- case 6: {
2115
- if (tag !== 48) {
2116
- break;
2117
- }
2118
-
2119
- message.standard = reader.int32() as any;
2120
- continue;
2121
- }
2159
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2160
+ if (previousRecursionDepth >= 100) {
2161
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2162
+ }
2163
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2164
+ try {
2165
+ const end = length === undefined ? reader.len : reader.pos + length;
2166
+ const message = createBaseApprovalActivity();
2167
+ while (reader.pos < end) {
2168
+ const tag = reader.uint32();
2169
+ switch (tag >>> 3) {
2170
+ case 1: {
2171
+ if (tag !== 10) {
2172
+ break;
2173
+ }
2174
+
2175
+ message.tokenAddress = reader.string();
2176
+ continue;
2177
+ }
2178
+ case 2: {
2179
+ if (tag !== 18) {
2180
+ break;
2181
+ }
2182
+
2183
+ message.spenderAddress = reader.string();
2184
+ continue;
2185
+ }
2186
+ case 3: {
2187
+ if (tag !== 26) {
2188
+ break;
2189
+ }
2190
+
2191
+ message.amountRaw = reader.string();
2192
+ continue;
2193
+ }
2194
+ case 4: {
2195
+ if (tag !== 34) {
2196
+ break;
2197
+ }
2198
+
2199
+ message.amountFormatted = reader.string();
2200
+ continue;
2201
+ }
2202
+ case 5: {
2203
+ if (tag !== 42) {
2204
+ break;
2205
+ }
2206
+
2207
+ message.owner = reader.string();
2208
+ continue;
2209
+ }
2210
+ case 6: {
2211
+ if (tag !== 48) {
2212
+ break;
2213
+ }
2214
+
2215
+ message.standard = reader.int32() as any;
2216
+ continue;
2217
+ }
2218
+ }
2219
+ if ((tag & 7) === 4 || tag === 0) {
2220
+ break;
2221
+ }
2222
+ reader.skip(tag & 7);
2122
2223
  }
2123
- if ((tag & 7) === 4 || tag === 0) {
2124
- break;
2125
- }
2126
- reader.skip(tag & 7);
2224
+ return message;
2225
+ } finally {
2226
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2127
2227
  }
2128
- return message;
2129
2228
  },
2130
2229
 
2131
2230
  fromJSON(object: any): ApprovalActivity {
@@ -2222,66 +2321,75 @@ export const BridgeActivity: MessageFns<BridgeActivity> = {
2222
2321
 
2223
2322
  decode(input: BinaryReader | Uint8Array, length?: number): BridgeActivity {
2224
2323
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2225
- const end = length === undefined ? reader.len : reader.pos + length;
2226
- const message = createBaseBridgeActivity();
2227
- while (reader.pos < end) {
2228
- const tag = reader.uint32();
2229
- switch (tag >>> 3) {
2230
- case 1: {
2231
- if (tag !== 10) {
2232
- break;
2233
- }
2234
-
2235
- message.bridgeName = reader.string();
2236
- continue;
2237
- }
2238
- case 2: {
2239
- if (tag !== 16) {
2240
- break;
2241
- }
2242
-
2243
- message.legType = reader.int32() as any;
2244
- continue;
2245
- }
2246
- case 3: {
2247
- if (tag !== 26) {
2248
- break;
2249
- }
2250
-
2251
- message.tokenAddress = reader.string();
2252
- continue;
2253
- }
2254
- case 4: {
2255
- if (tag !== 34) {
2256
- break;
2257
- }
2258
-
2259
- message.amountRaw = reader.string();
2260
- continue;
2261
- }
2262
- case 5: {
2263
- if (tag !== 42) {
2264
- break;
2265
- }
2266
-
2267
- message.amountFormatted = reader.string();
2268
- continue;
2269
- }
2270
- case 6: {
2271
- if (tag !== 50) {
2272
- break;
2273
- }
2274
-
2275
- message.fiatValue = FiatValue.decode(reader, reader.uint32());
2276
- continue;
2277
- }
2324
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2325
+ if (previousRecursionDepth >= 100) {
2326
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2327
+ }
2328
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2329
+ try {
2330
+ const end = length === undefined ? reader.len : reader.pos + length;
2331
+ const message = createBaseBridgeActivity();
2332
+ while (reader.pos < end) {
2333
+ const tag = reader.uint32();
2334
+ switch (tag >>> 3) {
2335
+ case 1: {
2336
+ if (tag !== 10) {
2337
+ break;
2338
+ }
2339
+
2340
+ message.bridgeName = reader.string();
2341
+ continue;
2342
+ }
2343
+ case 2: {
2344
+ if (tag !== 16) {
2345
+ break;
2346
+ }
2347
+
2348
+ message.legType = reader.int32() as any;
2349
+ continue;
2350
+ }
2351
+ case 3: {
2352
+ if (tag !== 26) {
2353
+ break;
2354
+ }
2355
+
2356
+ message.tokenAddress = reader.string();
2357
+ continue;
2358
+ }
2359
+ case 4: {
2360
+ if (tag !== 34) {
2361
+ break;
2362
+ }
2363
+
2364
+ message.amountRaw = reader.string();
2365
+ continue;
2366
+ }
2367
+ case 5: {
2368
+ if (tag !== 42) {
2369
+ break;
2370
+ }
2371
+
2372
+ message.amountFormatted = reader.string();
2373
+ continue;
2374
+ }
2375
+ case 6: {
2376
+ if (tag !== 50) {
2377
+ break;
2378
+ }
2379
+
2380
+ message.fiatValue = FiatValue.decode(reader, reader.uint32());
2381
+ continue;
2382
+ }
2383
+ }
2384
+ if ((tag & 7) === 4 || tag === 0) {
2385
+ break;
2386
+ }
2387
+ reader.skip(tag & 7);
2278
2388
  }
2279
- if ((tag & 7) === 4 || tag === 0) {
2280
- break;
2281
- }
2282
- reader.skip(tag & 7);
2389
+ return message;
2390
+ } finally {
2391
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2283
2392
  }
2284
- return message;
2285
2393
  },
2286
2394
 
2287
2395
  fromJSON(object: any): BridgeActivity {
@@ -2379,42 +2487,51 @@ export const ContractInteractionActivity: MessageFns<ContractInteractionActivity
2379
2487
 
2380
2488
  decode(input: BinaryReader | Uint8Array, length?: number): ContractInteractionActivity {
2381
2489
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2382
- const end = length === undefined ? reader.len : reader.pos + length;
2383
- const message = createBaseContractInteractionActivity();
2384
- while (reader.pos < end) {
2385
- const tag = reader.uint32();
2386
- switch (tag >>> 3) {
2387
- case 1: {
2388
- if (tag !== 10) {
2389
- break;
2390
- }
2391
-
2392
- message.contractAddress = reader.string();
2393
- continue;
2394
- }
2395
- case 2: {
2396
- if (tag !== 18) {
2397
- break;
2398
- }
2399
-
2400
- message.methodName = reader.string();
2401
- continue;
2402
- }
2403
- case 3: {
2404
- if (tag !== 26) {
2405
- break;
2406
- }
2407
-
2408
- message.decodedFields.push(DecodedParam.decode(reader, reader.uint32()));
2409
- continue;
2410
- }
2411
- }
2412
- if ((tag & 7) === 4 || tag === 0) {
2413
- break;
2490
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2491
+ if (previousRecursionDepth >= 100) {
2492
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2493
+ }
2494
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2495
+ try {
2496
+ const end = length === undefined ? reader.len : reader.pos + length;
2497
+ const message = createBaseContractInteractionActivity();
2498
+ while (reader.pos < end) {
2499
+ const tag = reader.uint32();
2500
+ switch (tag >>> 3) {
2501
+ case 1: {
2502
+ if (tag !== 10) {
2503
+ break;
2504
+ }
2505
+
2506
+ message.contractAddress = reader.string();
2507
+ continue;
2508
+ }
2509
+ case 2: {
2510
+ if (tag !== 18) {
2511
+ break;
2512
+ }
2513
+
2514
+ message.methodName = reader.string();
2515
+ continue;
2516
+ }
2517
+ case 3: {
2518
+ if (tag !== 26) {
2519
+ break;
2520
+ }
2521
+
2522
+ message.decodedFields.push(DecodedParam.decode(reader, reader.uint32()));
2523
+ continue;
2524
+ }
2525
+ }
2526
+ if ((tag & 7) === 4 || tag === 0) {
2527
+ break;
2528
+ }
2529
+ reader.skip(tag & 7);
2414
2530
  }
2415
- reader.skip(tag & 7);
2531
+ return message;
2532
+ } finally {
2533
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2416
2534
  }
2417
- return message;
2418
2535
  },
2419
2536
 
2420
2537
  fromJSON(object: any): ContractInteractionActivity {
@@ -2480,34 +2597,43 @@ export const GetContractInfoRequest: MessageFns<GetContractInfoRequest> = {
2480
2597
 
2481
2598
  decode(input: BinaryReader | Uint8Array, length?: number): GetContractInfoRequest {
2482
2599
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2483
- const end = length === undefined ? reader.len : reader.pos + length;
2484
- const message = createBaseGetContractInfoRequest();
2485
- while (reader.pos < end) {
2486
- const tag = reader.uint32();
2487
- switch (tag >>> 3) {
2488
- case 1: {
2489
- if (tag !== 10) {
2490
- break;
2491
- }
2492
-
2493
- message.contractAddress = reader.string();
2494
- continue;
2495
- }
2496
- case 2: {
2497
- if (tag !== 16) {
2498
- break;
2499
- }
2500
-
2501
- message.chainId = longToNumber(reader.uint64());
2502
- continue;
2503
- }
2600
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2601
+ if (previousRecursionDepth >= 100) {
2602
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2603
+ }
2604
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2605
+ try {
2606
+ const end = length === undefined ? reader.len : reader.pos + length;
2607
+ const message = createBaseGetContractInfoRequest();
2608
+ while (reader.pos < end) {
2609
+ const tag = reader.uint32();
2610
+ switch (tag >>> 3) {
2611
+ case 1: {
2612
+ if (tag !== 10) {
2613
+ break;
2614
+ }
2615
+
2616
+ message.contractAddress = reader.string();
2617
+ continue;
2618
+ }
2619
+ case 2: {
2620
+ if (tag !== 16) {
2621
+ break;
2622
+ }
2623
+
2624
+ message.chainId = longToNumber(reader.uint64());
2625
+ continue;
2626
+ }
2627
+ }
2628
+ if ((tag & 7) === 4 || tag === 0) {
2629
+ break;
2630
+ }
2631
+ reader.skip(tag & 7);
2504
2632
  }
2505
- if ((tag & 7) === 4 || tag === 0) {
2506
- break;
2507
- }
2508
- reader.skip(tag & 7);
2633
+ return message;
2634
+ } finally {
2635
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2509
2636
  }
2510
- return message;
2511
2637
  },
2512
2638
 
2513
2639
  fromJSON(object: any): GetContractInfoRequest {
@@ -2564,34 +2690,43 @@ export const GetContractInfoResponse: MessageFns<GetContractInfoResponse> = {
2564
2690
 
2565
2691
  decode(input: BinaryReader | Uint8Array, length?: number): GetContractInfoResponse {
2566
2692
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2567
- const end = length === undefined ? reader.len : reader.pos + length;
2568
- const message = createBaseGetContractInfoResponse();
2569
- while (reader.pos < end) {
2570
- const tag = reader.uint32();
2571
- switch (tag >>> 3) {
2572
- case 1: {
2573
- if (tag !== 10) {
2574
- break;
2575
- }
2576
-
2577
- message.status = ResponseStatus.decode(reader, reader.uint32());
2578
- continue;
2579
- }
2580
- case 2: {
2581
- if (tag !== 18) {
2582
- break;
2583
- }
2584
-
2585
- message.contractInfo = ContractInfo.decode(reader, reader.uint32());
2586
- continue;
2587
- }
2588
- }
2589
- if ((tag & 7) === 4 || tag === 0) {
2590
- break;
2693
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2694
+ if (previousRecursionDepth >= 100) {
2695
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2696
+ }
2697
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2698
+ try {
2699
+ const end = length === undefined ? reader.len : reader.pos + length;
2700
+ const message = createBaseGetContractInfoResponse();
2701
+ while (reader.pos < end) {
2702
+ const tag = reader.uint32();
2703
+ switch (tag >>> 3) {
2704
+ case 1: {
2705
+ if (tag !== 10) {
2706
+ break;
2707
+ }
2708
+
2709
+ message.status = ResponseStatus.decode(reader, reader.uint32());
2710
+ continue;
2711
+ }
2712
+ case 2: {
2713
+ if (tag !== 18) {
2714
+ break;
2715
+ }
2716
+
2717
+ message.contractInfo = ContractInfo.decode(reader, reader.uint32());
2718
+ continue;
2719
+ }
2720
+ }
2721
+ if ((tag & 7) === 4 || tag === 0) {
2722
+ break;
2723
+ }
2724
+ reader.skip(tag & 7);
2591
2725
  }
2592
- reader.skip(tag & 7);
2726
+ return message;
2727
+ } finally {
2728
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2593
2729
  }
2594
- return message;
2595
2730
  },
2596
2731
 
2597
2732
  fromJSON(object: any): GetContractInfoResponse {
@@ -2695,122 +2830,131 @@ export const ContractInfo: MessageFns<ContractInfo> = {
2695
2830
 
2696
2831
  decode(input: BinaryReader | Uint8Array, length?: number): ContractInfo {
2697
2832
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2698
- const end = length === undefined ? reader.len : reader.pos + length;
2699
- const message = createBaseContractInfo();
2700
- while (reader.pos < end) {
2701
- const tag = reader.uint32();
2702
- switch (tag >>> 3) {
2703
- case 1: {
2704
- if (tag !== 10) {
2705
- break;
2706
- }
2707
-
2708
- message.contractAddress = reader.string();
2709
- continue;
2710
- }
2711
- case 2: {
2712
- if (tag !== 16) {
2713
- break;
2714
- }
2715
-
2716
- message.chainId = longToNumber(reader.uint64());
2717
- continue;
2718
- }
2719
- case 3: {
2720
- if (tag !== 26) {
2721
- break;
2722
- }
2723
-
2724
- message.contractName = reader.string();
2725
- continue;
2726
- }
2727
- case 4: {
2728
- if (tag !== 32) {
2729
- break;
2730
- }
2731
-
2732
- message.isVerified = reader.bool();
2733
- continue;
2734
- }
2735
- case 5: {
2736
- if (tag !== 42) {
2737
- break;
2738
- }
2739
-
2740
- message.compilerVersion = reader.string();
2741
- continue;
2742
- }
2743
- case 6: {
2744
- if (tag !== 48) {
2745
- break;
2746
- }
2747
-
2748
- message.optimizationUsed = reader.bool();
2749
- continue;
2750
- }
2751
- case 7: {
2752
- if (tag !== 56) {
2753
- break;
2833
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
2834
+ if (previousRecursionDepth >= 100) {
2835
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
2836
+ }
2837
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
2838
+ try {
2839
+ const end = length === undefined ? reader.len : reader.pos + length;
2840
+ const message = createBaseContractInfo();
2841
+ while (reader.pos < end) {
2842
+ const tag = reader.uint32();
2843
+ switch (tag >>> 3) {
2844
+ case 1: {
2845
+ if (tag !== 10) {
2846
+ break;
2847
+ }
2848
+
2849
+ message.contractAddress = reader.string();
2850
+ continue;
2754
2851
  }
2852
+ case 2: {
2853
+ if (tag !== 16) {
2854
+ break;
2855
+ }
2856
+
2857
+ message.chainId = longToNumber(reader.uint64());
2858
+ continue;
2859
+ }
2860
+ case 3: {
2861
+ if (tag !== 26) {
2862
+ break;
2863
+ }
2864
+
2865
+ message.contractName = reader.string();
2866
+ continue;
2867
+ }
2868
+ case 4: {
2869
+ if (tag !== 32) {
2870
+ break;
2871
+ }
2872
+
2873
+ message.isVerified = reader.bool();
2874
+ continue;
2875
+ }
2876
+ case 5: {
2877
+ if (tag !== 42) {
2878
+ break;
2879
+ }
2880
+
2881
+ message.compilerVersion = reader.string();
2882
+ continue;
2883
+ }
2884
+ case 6: {
2885
+ if (tag !== 48) {
2886
+ break;
2887
+ }
2888
+
2889
+ message.optimizationUsed = reader.bool();
2890
+ continue;
2891
+ }
2892
+ case 7: {
2893
+ if (tag !== 56) {
2894
+ break;
2895
+ }
2896
+
2897
+ message.optimizationRuns = reader.uint32();
2898
+ continue;
2899
+ }
2900
+ case 8: {
2901
+ if (tag !== 66) {
2902
+ break;
2903
+ }
2904
+
2905
+ message.evmVersion = reader.string();
2906
+ continue;
2907
+ }
2908
+ case 9: {
2909
+ if (tag !== 74) {
2910
+ break;
2911
+ }
2912
+
2913
+ message.licenseType = reader.string();
2914
+ continue;
2915
+ }
2916
+ case 10: {
2917
+ if (tag !== 80) {
2918
+ break;
2919
+ }
2920
+
2921
+ message.isProxy = reader.bool();
2922
+ continue;
2923
+ }
2924
+ case 11: {
2925
+ if (tag !== 90) {
2926
+ break;
2927
+ }
2928
+
2929
+ message.implementationAddress = reader.string();
2930
+ continue;
2931
+ }
2932
+ case 12: {
2933
+ if (tag !== 98) {
2934
+ break;
2935
+ }
2755
2936
 
2756
- message.optimizationRuns = reader.uint32();
2757
- continue;
2758
- }
2759
- case 8: {
2760
- if (tag !== 66) {
2761
- break;
2937
+ message.sourceFiles.push(ContractSourceFile.decode(reader, reader.uint32()));
2938
+ continue;
2762
2939
  }
2940
+ case 13: {
2941
+ if (tag !== 106) {
2942
+ break;
2943
+ }
2763
2944
 
2764
- message.evmVersion = reader.string();
2765
- continue;
2766
- }
2767
- case 9: {
2768
- if (tag !== 74) {
2769
- break;
2945
+ message.abiJson = reader.string();
2946
+ continue;
2770
2947
  }
2771
-
2772
- message.licenseType = reader.string();
2773
- continue;
2774
2948
  }
2775
- case 10: {
2776
- if (tag !== 80) {
2777
- break;
2778
- }
2779
-
2780
- message.isProxy = reader.bool();
2781
- continue;
2782
- }
2783
- case 11: {
2784
- if (tag !== 90) {
2785
- break;
2786
- }
2787
-
2788
- message.implementationAddress = reader.string();
2789
- continue;
2790
- }
2791
- case 12: {
2792
- if (tag !== 98) {
2793
- break;
2794
- }
2795
-
2796
- message.sourceFiles.push(ContractSourceFile.decode(reader, reader.uint32()));
2797
- continue;
2798
- }
2799
- case 13: {
2800
- if (tag !== 106) {
2801
- break;
2802
- }
2803
-
2804
- message.abiJson = reader.string();
2805
- continue;
2949
+ if ((tag & 7) === 4 || tag === 0) {
2950
+ break;
2806
2951
  }
2952
+ reader.skip(tag & 7);
2807
2953
  }
2808
- if ((tag & 7) === 4 || tag === 0) {
2809
- break;
2810
- }
2811
- reader.skip(tag & 7);
2954
+ return message;
2955
+ } finally {
2956
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2812
2957
  }
2813
- return message;
2814
2958
  },
2815
2959
 
2816
2960
  fromJSON(object: any): ContractInfo {
@@ -2966,34 +3110,43 @@ export const ContractSourceFile: MessageFns<ContractSourceFile> = {
2966
3110
 
2967
3111
  decode(input: BinaryReader | Uint8Array, length?: number): ContractSourceFile {
2968
3112
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2969
- const end = length === undefined ? reader.len : reader.pos + length;
2970
- const message = createBaseContractSourceFile();
2971
- while (reader.pos < end) {
2972
- const tag = reader.uint32();
2973
- switch (tag >>> 3) {
2974
- case 1: {
2975
- if (tag !== 10) {
2976
- break;
2977
- }
2978
-
2979
- message.fileName = reader.string();
2980
- continue;
2981
- }
2982
- case 2: {
2983
- if (tag !== 18) {
2984
- break;
2985
- }
2986
-
2987
- message.content = reader.string();
2988
- continue;
2989
- }
2990
- }
2991
- if ((tag & 7) === 4 || tag === 0) {
2992
- break;
3113
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3114
+ if (previousRecursionDepth >= 100) {
3115
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3116
+ }
3117
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3118
+ try {
3119
+ const end = length === undefined ? reader.len : reader.pos + length;
3120
+ const message = createBaseContractSourceFile();
3121
+ while (reader.pos < end) {
3122
+ const tag = reader.uint32();
3123
+ switch (tag >>> 3) {
3124
+ case 1: {
3125
+ if (tag !== 10) {
3126
+ break;
3127
+ }
3128
+
3129
+ message.fileName = reader.string();
3130
+ continue;
3131
+ }
3132
+ case 2: {
3133
+ if (tag !== 18) {
3134
+ break;
3135
+ }
3136
+
3137
+ message.content = reader.string();
3138
+ continue;
3139
+ }
3140
+ }
3141
+ if ((tag & 7) === 4 || tag === 0) {
3142
+ break;
3143
+ }
3144
+ reader.skip(tag & 7);
2993
3145
  }
2994
- reader.skip(tag & 7);
3146
+ return message;
3147
+ } finally {
3148
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
2995
3149
  }
2996
- return message;
2997
3150
  },
2998
3151
 
2999
3152
  fromJSON(object: any): ContractSourceFile {
@@ -3052,50 +3205,59 @@ export const TokenInfo: MessageFns<TokenInfo> = {
3052
3205
 
3053
3206
  decode(input: BinaryReader | Uint8Array, length?: number): TokenInfo {
3054
3207
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3055
- const end = length === undefined ? reader.len : reader.pos + length;
3056
- const message = createBaseTokenInfo();
3057
- while (reader.pos < end) {
3058
- const tag = reader.uint32();
3059
- switch (tag >>> 3) {
3060
- case 1: {
3061
- if (tag !== 10) {
3062
- break;
3063
- }
3064
-
3065
- message.address = reader.string();
3066
- continue;
3067
- }
3068
- case 2: {
3069
- if (tag !== 18) {
3070
- break;
3071
- }
3072
-
3073
- message.symbol = reader.string();
3074
- continue;
3075
- }
3076
- case 3: {
3077
- if (tag !== 26) {
3078
- break;
3079
- }
3080
-
3081
- message.name = reader.string();
3082
- continue;
3083
- }
3084
- case 4: {
3085
- if (tag !== 32) {
3086
- break;
3087
- }
3088
-
3089
- message.decimals = reader.uint32();
3090
- continue;
3091
- }
3208
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3209
+ if (previousRecursionDepth >= 100) {
3210
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3211
+ }
3212
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3213
+ try {
3214
+ const end = length === undefined ? reader.len : reader.pos + length;
3215
+ const message = createBaseTokenInfo();
3216
+ while (reader.pos < end) {
3217
+ const tag = reader.uint32();
3218
+ switch (tag >>> 3) {
3219
+ case 1: {
3220
+ if (tag !== 10) {
3221
+ break;
3222
+ }
3223
+
3224
+ message.address = reader.string();
3225
+ continue;
3226
+ }
3227
+ case 2: {
3228
+ if (tag !== 18) {
3229
+ break;
3230
+ }
3231
+
3232
+ message.symbol = reader.string();
3233
+ continue;
3234
+ }
3235
+ case 3: {
3236
+ if (tag !== 26) {
3237
+ break;
3238
+ }
3239
+
3240
+ message.name = reader.string();
3241
+ continue;
3242
+ }
3243
+ case 4: {
3244
+ if (tag !== 32) {
3245
+ break;
3246
+ }
3247
+
3248
+ message.decimals = reader.uint32();
3249
+ continue;
3250
+ }
3251
+ }
3252
+ if ((tag & 7) === 4 || tag === 0) {
3253
+ break;
3254
+ }
3255
+ reader.skip(tag & 7);
3092
3256
  }
3093
- if ((tag & 7) === 4 || tag === 0) {
3094
- break;
3095
- }
3096
- reader.skip(tag & 7);
3257
+ return message;
3258
+ } finally {
3259
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3097
3260
  }
3098
- return message;
3099
3261
  },
3100
3262
 
3101
3263
  fromJSON(object: any): TokenInfo {
@@ -3157,42 +3319,51 @@ export const FiatValue: MessageFns<FiatValue> = {
3157
3319
 
3158
3320
  decode(input: BinaryReader | Uint8Array, length?: number): FiatValue {
3159
3321
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3160
- const end = length === undefined ? reader.len : reader.pos + length;
3161
- const message = createBaseFiatValue();
3162
- while (reader.pos < end) {
3163
- const tag = reader.uint32();
3164
- switch (tag >>> 3) {
3165
- case 1: {
3166
- if (tag !== 10) {
3167
- break;
3168
- }
3169
-
3170
- message.currency = reader.string();
3171
- continue;
3172
- }
3173
- case 2: {
3174
- if (tag !== 17) {
3175
- break;
3176
- }
3177
-
3178
- message.amount = reader.double();
3179
- continue;
3180
- }
3181
- case 3: {
3182
- if (tag !== 26) {
3183
- break;
3184
- }
3185
-
3186
- message.formatted = reader.string();
3187
- continue;
3188
- }
3189
- }
3190
- if ((tag & 7) === 4 || tag === 0) {
3191
- break;
3322
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3323
+ if (previousRecursionDepth >= 100) {
3324
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3325
+ }
3326
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3327
+ try {
3328
+ const end = length === undefined ? reader.len : reader.pos + length;
3329
+ const message = createBaseFiatValue();
3330
+ while (reader.pos < end) {
3331
+ const tag = reader.uint32();
3332
+ switch (tag >>> 3) {
3333
+ case 1: {
3334
+ if (tag !== 10) {
3335
+ break;
3336
+ }
3337
+
3338
+ message.currency = reader.string();
3339
+ continue;
3340
+ }
3341
+ case 2: {
3342
+ if (tag !== 17) {
3343
+ break;
3344
+ }
3345
+
3346
+ message.amount = reader.double();
3347
+ continue;
3348
+ }
3349
+ case 3: {
3350
+ if (tag !== 26) {
3351
+ break;
3352
+ }
3353
+
3354
+ message.formatted = reader.string();
3355
+ continue;
3356
+ }
3357
+ }
3358
+ if ((tag & 7) === 4 || tag === 0) {
3359
+ break;
3360
+ }
3361
+ reader.skip(tag & 7);
3192
3362
  }
3193
- reader.skip(tag & 7);
3363
+ return message;
3364
+ } finally {
3365
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3194
3366
  }
3195
- return message;
3196
3367
  },
3197
3368
 
3198
3369
  fromJSON(object: any): FiatValue {
@@ -3255,58 +3426,67 @@ export const CalldataInfo: MessageFns<CalldataInfo> = {
3255
3426
 
3256
3427
  decode(input: BinaryReader | Uint8Array, length?: number): CalldataInfo {
3257
3428
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3258
- const end = length === undefined ? reader.len : reader.pos + length;
3259
- const message = createBaseCalldataInfo();
3260
- while (reader.pos < end) {
3261
- const tag = reader.uint32();
3262
- switch (tag >>> 3) {
3263
- case 1: {
3264
- if (tag !== 10) {
3265
- break;
3266
- }
3267
-
3268
- message.rawHex = reader.string();
3269
- continue;
3270
- }
3271
- case 2: {
3272
- if (tag !== 18) {
3273
- break;
3274
- }
3275
-
3276
- message.functionSelector = reader.string();
3277
- continue;
3278
- }
3279
- case 3: {
3280
- if (tag !== 26) {
3281
- break;
3282
- }
3283
-
3284
- message.functionName = reader.string();
3285
- continue;
3286
- }
3287
- case 4: {
3288
- if (tag !== 34) {
3289
- break;
3290
- }
3291
-
3292
- message.functionSignature = reader.string();
3293
- continue;
3294
- }
3295
- case 5: {
3296
- if (tag !== 42) {
3297
- break;
3298
- }
3299
-
3300
- message.params.push(DecodedParam.decode(reader, reader.uint32()));
3301
- continue;
3302
- }
3429
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3430
+ if (previousRecursionDepth >= 100) {
3431
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3432
+ }
3433
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3434
+ try {
3435
+ const end = length === undefined ? reader.len : reader.pos + length;
3436
+ const message = createBaseCalldataInfo();
3437
+ while (reader.pos < end) {
3438
+ const tag = reader.uint32();
3439
+ switch (tag >>> 3) {
3440
+ case 1: {
3441
+ if (tag !== 10) {
3442
+ break;
3443
+ }
3444
+
3445
+ message.rawHex = reader.string();
3446
+ continue;
3447
+ }
3448
+ case 2: {
3449
+ if (tag !== 18) {
3450
+ break;
3451
+ }
3452
+
3453
+ message.functionSelector = reader.string();
3454
+ continue;
3455
+ }
3456
+ case 3: {
3457
+ if (tag !== 26) {
3458
+ break;
3459
+ }
3460
+
3461
+ message.functionName = reader.string();
3462
+ continue;
3463
+ }
3464
+ case 4: {
3465
+ if (tag !== 34) {
3466
+ break;
3467
+ }
3468
+
3469
+ message.functionSignature = reader.string();
3470
+ continue;
3471
+ }
3472
+ case 5: {
3473
+ if (tag !== 42) {
3474
+ break;
3475
+ }
3476
+
3477
+ message.params.push(DecodedParam.decode(reader, reader.uint32()));
3478
+ continue;
3479
+ }
3480
+ }
3481
+ if ((tag & 7) === 4 || tag === 0) {
3482
+ break;
3483
+ }
3484
+ reader.skip(tag & 7);
3303
3485
  }
3304
- if ((tag & 7) === 4 || tag === 0) {
3305
- break;
3306
- }
3307
- reader.skip(tag & 7);
3486
+ return message;
3487
+ } finally {
3488
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3308
3489
  }
3309
- return message;
3310
3490
  },
3311
3491
 
3312
3492
  fromJSON(object: any): CalldataInfo {
@@ -3394,50 +3574,59 @@ export const DecodedParam: MessageFns<DecodedParam> = {
3394
3574
 
3395
3575
  decode(input: BinaryReader | Uint8Array, length?: number): DecodedParam {
3396
3576
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3397
- const end = length === undefined ? reader.len : reader.pos + length;
3398
- const message = createBaseDecodedParam();
3399
- while (reader.pos < end) {
3400
- const tag = reader.uint32();
3401
- switch (tag >>> 3) {
3402
- case 1: {
3403
- if (tag !== 10) {
3404
- break;
3405
- }
3406
-
3407
- message.name = reader.string();
3408
- continue;
3409
- }
3410
- case 2: {
3411
- if (tag !== 18) {
3412
- break;
3413
- }
3414
-
3415
- message.solidityType = reader.string();
3416
- continue;
3417
- }
3418
- case 3: {
3419
- if (tag !== 26) {
3420
- break;
3421
- }
3422
-
3423
- message.value = reader.string();
3424
- continue;
3425
- }
3426
- case 4: {
3427
- if (tag !== 32) {
3428
- break;
3429
- }
3430
-
3431
- message.indexed = reader.bool();
3432
- continue;
3433
- }
3434
- }
3435
- if ((tag & 7) === 4 || tag === 0) {
3436
- break;
3577
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3578
+ if (previousRecursionDepth >= 100) {
3579
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3580
+ }
3581
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3582
+ try {
3583
+ const end = length === undefined ? reader.len : reader.pos + length;
3584
+ const message = createBaseDecodedParam();
3585
+ while (reader.pos < end) {
3586
+ const tag = reader.uint32();
3587
+ switch (tag >>> 3) {
3588
+ case 1: {
3589
+ if (tag !== 10) {
3590
+ break;
3591
+ }
3592
+
3593
+ message.name = reader.string();
3594
+ continue;
3595
+ }
3596
+ case 2: {
3597
+ if (tag !== 18) {
3598
+ break;
3599
+ }
3600
+
3601
+ message.solidityType = reader.string();
3602
+ continue;
3603
+ }
3604
+ case 3: {
3605
+ if (tag !== 26) {
3606
+ break;
3607
+ }
3608
+
3609
+ message.value = reader.string();
3610
+ continue;
3611
+ }
3612
+ case 4: {
3613
+ if (tag !== 32) {
3614
+ break;
3615
+ }
3616
+
3617
+ message.indexed = reader.bool();
3618
+ continue;
3619
+ }
3620
+ }
3621
+ if ((tag & 7) === 4 || tag === 0) {
3622
+ break;
3623
+ }
3624
+ reader.skip(tag & 7);
3437
3625
  }
3438
- reader.skip(tag & 7);
3626
+ return message;
3627
+ } finally {
3628
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3439
3629
  }
3440
- return message;
3441
3630
  },
3442
3631
 
3443
3632
  fromJSON(object: any): DecodedParam {
@@ -3531,90 +3720,99 @@ export const EventLog: MessageFns<EventLog> = {
3531
3720
 
3532
3721
  decode(input: BinaryReader | Uint8Array, length?: number): EventLog {
3533
3722
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3534
- const end = length === undefined ? reader.len : reader.pos + length;
3535
- const message = createBaseEventLog();
3536
- while (reader.pos < end) {
3537
- const tag = reader.uint32();
3538
- switch (tag >>> 3) {
3539
- case 1: {
3540
- if (tag !== 8) {
3541
- break;
3542
- }
3543
-
3544
- message.logIndex = reader.uint32();
3545
- continue;
3546
- }
3547
- case 2: {
3548
- if (tag !== 18) {
3549
- break;
3550
- }
3551
-
3552
- message.address = reader.string();
3553
- continue;
3554
- }
3555
- case 3: {
3556
- if (tag !== 26) {
3557
- break;
3558
- }
3559
-
3560
- message.eventName = reader.string();
3561
- continue;
3562
- }
3563
- case 4: {
3564
- if (tag !== 34) {
3565
- break;
3566
- }
3567
-
3568
- message.eventSignature = reader.string();
3569
- continue;
3570
- }
3571
- case 5: {
3572
- if (tag !== 42) {
3573
- break;
3574
- }
3575
-
3576
- message.params.push(DecodedParam.decode(reader, reader.uint32()));
3577
- continue;
3578
- }
3579
- case 6: {
3580
- if (tag !== 50) {
3581
- break;
3582
- }
3583
-
3584
- message.rawTopics.push(reader.string());
3585
- continue;
3586
- }
3587
- case 7: {
3588
- if (tag !== 58) {
3589
- break;
3590
- }
3591
-
3592
- message.rawData = reader.string();
3593
- continue;
3594
- }
3595
- case 8: {
3596
- if (tag !== 64) {
3597
- break;
3598
- }
3599
-
3600
- message.decoded = reader.bool();
3601
- continue;
3602
- }
3603
- case 9: {
3604
- if (tag !== 72) {
3605
- break;
3606
- }
3607
-
3608
- message.activityIndex = reader.uint32();
3609
- continue;
3610
- }
3611
- }
3612
- if ((tag & 7) === 4 || tag === 0) {
3613
- break;
3723
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
3724
+ if (previousRecursionDepth >= 100) {
3725
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
3726
+ }
3727
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
3728
+ try {
3729
+ const end = length === undefined ? reader.len : reader.pos + length;
3730
+ const message = createBaseEventLog();
3731
+ while (reader.pos < end) {
3732
+ const tag = reader.uint32();
3733
+ switch (tag >>> 3) {
3734
+ case 1: {
3735
+ if (tag !== 8) {
3736
+ break;
3737
+ }
3738
+
3739
+ message.logIndex = reader.uint32();
3740
+ continue;
3741
+ }
3742
+ case 2: {
3743
+ if (tag !== 18) {
3744
+ break;
3745
+ }
3746
+
3747
+ message.address = reader.string();
3748
+ continue;
3749
+ }
3750
+ case 3: {
3751
+ if (tag !== 26) {
3752
+ break;
3753
+ }
3754
+
3755
+ message.eventName = reader.string();
3756
+ continue;
3757
+ }
3758
+ case 4: {
3759
+ if (tag !== 34) {
3760
+ break;
3761
+ }
3762
+
3763
+ message.eventSignature = reader.string();
3764
+ continue;
3765
+ }
3766
+ case 5: {
3767
+ if (tag !== 42) {
3768
+ break;
3769
+ }
3770
+
3771
+ message.params.push(DecodedParam.decode(reader, reader.uint32()));
3772
+ continue;
3773
+ }
3774
+ case 6: {
3775
+ if (tag !== 50) {
3776
+ break;
3777
+ }
3778
+
3779
+ message.rawTopics.push(reader.string());
3780
+ continue;
3781
+ }
3782
+ case 7: {
3783
+ if (tag !== 58) {
3784
+ break;
3785
+ }
3786
+
3787
+ message.rawData = reader.string();
3788
+ continue;
3789
+ }
3790
+ case 8: {
3791
+ if (tag !== 64) {
3792
+ break;
3793
+ }
3794
+
3795
+ message.decoded = reader.bool();
3796
+ continue;
3797
+ }
3798
+ case 9: {
3799
+ if (tag !== 72) {
3800
+ break;
3801
+ }
3802
+
3803
+ message.activityIndex = reader.uint32();
3804
+ continue;
3805
+ }
3806
+ }
3807
+ if ((tag & 7) === 4 || tag === 0) {
3808
+ break;
3809
+ }
3810
+ reader.skip(tag & 7);
3614
3811
  }
3615
- reader.skip(tag & 7);
3812
+ return message;
3813
+ } finally {
3814
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
3616
3815
  }
3617
- return message;
3618
3816
  },
3619
3817
 
3620
3818
  fromJSON(object: any): EventLog {