@apibara/starknet 0.3.0 → 0.3.1

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.
@@ -2709,6 +2709,9 @@ $root.apibara = (function () {
2709
2709
  * @property {apibara.starknet.v1alpha2.IFieldElement|null} [fromAddress] EventFilter fromAddress
2710
2710
  * @property {Array.<apibara.starknet.v1alpha2.IFieldElement>|null} [keys] EventFilter keys
2711
2711
  * @property {Array.<apibara.starknet.v1alpha2.IFieldElement>|null} [data] EventFilter data
2712
+ * @property {boolean|null} [includeReverted] EventFilter includeReverted
2713
+ * @property {boolean|null} [includeTransaction] EventFilter includeTransaction
2714
+ * @property {boolean|null} [includeReceipt] EventFilter includeReceipt
2712
2715
  */
2713
2716
  /**
2714
2717
  * Constructs a new EventFilter.
@@ -2747,6 +2750,59 @@ $root.apibara = (function () {
2747
2750
  * @instance
2748
2751
  */
2749
2752
  EventFilter.prototype.data = $util.emptyArray;
2753
+ /**
2754
+ * EventFilter includeReverted.
2755
+ * @member {boolean|null|undefined} includeReverted
2756
+ * @memberof apibara.starknet.v1alpha2.EventFilter
2757
+ * @instance
2758
+ */
2759
+ EventFilter.prototype.includeReverted = null;
2760
+ /**
2761
+ * EventFilter includeTransaction.
2762
+ * @member {boolean|null|undefined} includeTransaction
2763
+ * @memberof apibara.starknet.v1alpha2.EventFilter
2764
+ * @instance
2765
+ */
2766
+ EventFilter.prototype.includeTransaction = null;
2767
+ /**
2768
+ * EventFilter includeReceipt.
2769
+ * @member {boolean|null|undefined} includeReceipt
2770
+ * @memberof apibara.starknet.v1alpha2.EventFilter
2771
+ * @instance
2772
+ */
2773
+ EventFilter.prototype.includeReceipt = null;
2774
+ // OneOf field names bound to virtual getters and setters
2775
+ var $oneOfFields;
2776
+ /**
2777
+ * EventFilter _includeReverted.
2778
+ * @member {"includeReverted"|undefined} _includeReverted
2779
+ * @memberof apibara.starknet.v1alpha2.EventFilter
2780
+ * @instance
2781
+ */
2782
+ Object.defineProperty(EventFilter.prototype, "_includeReverted", {
2783
+ get: $util.oneOfGetter($oneOfFields = ["includeReverted"]),
2784
+ set: $util.oneOfSetter($oneOfFields)
2785
+ });
2786
+ /**
2787
+ * EventFilter _includeTransaction.
2788
+ * @member {"includeTransaction"|undefined} _includeTransaction
2789
+ * @memberof apibara.starknet.v1alpha2.EventFilter
2790
+ * @instance
2791
+ */
2792
+ Object.defineProperty(EventFilter.prototype, "_includeTransaction", {
2793
+ get: $util.oneOfGetter($oneOfFields = ["includeTransaction"]),
2794
+ set: $util.oneOfSetter($oneOfFields)
2795
+ });
2796
+ /**
2797
+ * EventFilter _includeReceipt.
2798
+ * @member {"includeReceipt"|undefined} _includeReceipt
2799
+ * @memberof apibara.starknet.v1alpha2.EventFilter
2800
+ * @instance
2801
+ */
2802
+ Object.defineProperty(EventFilter.prototype, "_includeReceipt", {
2803
+ get: $util.oneOfGetter($oneOfFields = ["includeReceipt"]),
2804
+ set: $util.oneOfSetter($oneOfFields)
2805
+ });
2750
2806
  /**
2751
2807
  * Creates a new EventFilter instance using the specified properties.
2752
2808
  * @function create
@@ -2778,6 +2834,12 @@ $root.apibara = (function () {
2778
2834
  if (message.data != null && message.data.length)
2779
2835
  for (var i = 0; i < message.data.length; ++i)
2780
2836
  $root.apibara.starknet.v1alpha2.FieldElement.encode(message.data[i], writer.uint32(/* id 3, wireType 2 =*/ 26).fork()).ldelim();
2837
+ if (message.includeReverted != null && Object.hasOwnProperty.call(message, "includeReverted"))
2838
+ writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.includeReverted);
2839
+ if (message.includeTransaction != null && Object.hasOwnProperty.call(message, "includeTransaction"))
2840
+ writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.includeTransaction);
2841
+ if (message.includeReceipt != null && Object.hasOwnProperty.call(message, "includeReceipt"))
2842
+ writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.includeReceipt);
2781
2843
  return writer;
2782
2844
  };
2783
2845
  /**
@@ -2826,6 +2888,18 @@ $root.apibara = (function () {
2826
2888
  message.data.push($root.apibara.starknet.v1alpha2.FieldElement.decode(reader, reader.uint32()));
2827
2889
  break;
2828
2890
  }
2891
+ case 4: {
2892
+ message.includeReverted = reader.bool();
2893
+ break;
2894
+ }
2895
+ case 5: {
2896
+ message.includeTransaction = reader.bool();
2897
+ break;
2898
+ }
2899
+ case 6: {
2900
+ message.includeReceipt = reader.bool();
2901
+ break;
2902
+ }
2829
2903
  default:
2830
2904
  reader.skipType(tag & 7);
2831
2905
  break;
@@ -2859,6 +2933,7 @@ $root.apibara = (function () {
2859
2933
  EventFilter.verify = function verify(message) {
2860
2934
  if (typeof message !== "object" || message === null)
2861
2935
  return "object expected";
2936
+ var properties = {};
2862
2937
  if (message.fromAddress != null && message.hasOwnProperty("fromAddress")) {
2863
2938
  var error = $root.apibara.starknet.v1alpha2.FieldElement.verify(message.fromAddress);
2864
2939
  if (error)
@@ -2882,6 +2957,21 @@ $root.apibara = (function () {
2882
2957
  return "data." + error;
2883
2958
  }
2884
2959
  }
2960
+ if (message.includeReverted != null && message.hasOwnProperty("includeReverted")) {
2961
+ properties._includeReverted = 1;
2962
+ if (typeof message.includeReverted !== "boolean")
2963
+ return "includeReverted: boolean expected";
2964
+ }
2965
+ if (message.includeTransaction != null && message.hasOwnProperty("includeTransaction")) {
2966
+ properties._includeTransaction = 1;
2967
+ if (typeof message.includeTransaction !== "boolean")
2968
+ return "includeTransaction: boolean expected";
2969
+ }
2970
+ if (message.includeReceipt != null && message.hasOwnProperty("includeReceipt")) {
2971
+ properties._includeReceipt = 1;
2972
+ if (typeof message.includeReceipt !== "boolean")
2973
+ return "includeReceipt: boolean expected";
2974
+ }
2885
2975
  return null;
2886
2976
  };
2887
2977
  /**
@@ -2921,6 +3011,12 @@ $root.apibara = (function () {
2921
3011
  message.data[i] = $root.apibara.starknet.v1alpha2.FieldElement.fromObject(object.data[i]);
2922
3012
  }
2923
3013
  }
3014
+ if (object.includeReverted != null)
3015
+ message.includeReverted = Boolean(object.includeReverted);
3016
+ if (object.includeTransaction != null)
3017
+ message.includeTransaction = Boolean(object.includeTransaction);
3018
+ if (object.includeReceipt != null)
3019
+ message.includeReceipt = Boolean(object.includeReceipt);
2924
3020
  return message;
2925
3021
  };
2926
3022
  /**
@@ -2954,6 +3050,21 @@ $root.apibara = (function () {
2954
3050
  for (var j = 0; j < message.data.length; ++j)
2955
3051
  object.data[j] = $root.apibara.starknet.v1alpha2.FieldElement.toObject(message.data[j], options);
2956
3052
  }
3053
+ if (message.includeReverted != null && message.hasOwnProperty("includeReverted")) {
3054
+ object.includeReverted = message.includeReverted;
3055
+ if (options.oneofs)
3056
+ object._includeReverted = "includeReverted";
3057
+ }
3058
+ if (message.includeTransaction != null && message.hasOwnProperty("includeTransaction")) {
3059
+ object.includeTransaction = message.includeTransaction;
3060
+ if (options.oneofs)
3061
+ object._includeTransaction = "includeTransaction";
3062
+ }
3063
+ if (message.includeReceipt != null && message.hasOwnProperty("includeReceipt")) {
3064
+ object.includeReceipt = message.includeReceipt;
3065
+ if (options.oneofs)
3066
+ object._includeReceipt = "includeReceipt";
3067
+ }
2957
3068
  return object;
2958
3069
  };
2959
3070
  /**