@avaprotocol/sdk-js 2.8.1 → 2.9.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.
package/dist/index.mjs CHANGED
@@ -54,6 +54,9 @@ var require_avs_pb = __commonJS({
54
54
  var google_protobuf_struct_pb5 = __require("google-protobuf/google/protobuf/struct_pb.js");
55
55
  goog.object.extend(proto, google_protobuf_struct_pb5);
56
56
  goog.exportSymbol("proto.aggregator.AutomationFee", null, global);
57
+ goog.exportSymbol("proto.aggregator.BalanceNode", null, global);
58
+ goog.exportSymbol("proto.aggregator.BalanceNode.Config", null, global);
59
+ goog.exportSymbol("proto.aggregator.BalanceNode.Output", null, global);
57
60
  goog.exportSymbol("proto.aggregator.BlockTrigger", null, global);
58
61
  goog.exportSymbol("proto.aggregator.BlockTrigger.Config", null, global);
59
62
  goog.exportSymbol("proto.aggregator.BlockTrigger.Output", null, global);
@@ -505,6 +508,27 @@ var require_avs_pb = __commonJS({
505
508
  if (goog.DEBUG && !COMPILED) {
506
509
  proto.aggregator.CustomCodeNode.Output.displayName = "proto.aggregator.CustomCodeNode.Output";
507
510
  }
511
+ proto.aggregator.BalanceNode = function(opt_data) {
512
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
513
+ };
514
+ goog.inherits(proto.aggregator.BalanceNode, jspb.Message);
515
+ if (goog.DEBUG && !COMPILED) {
516
+ proto.aggregator.BalanceNode.displayName = "proto.aggregator.BalanceNode";
517
+ }
518
+ proto.aggregator.BalanceNode.Config = function(opt_data) {
519
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.BalanceNode.Config.repeatedFields_, null);
520
+ };
521
+ goog.inherits(proto.aggregator.BalanceNode.Config, jspb.Message);
522
+ if (goog.DEBUG && !COMPILED) {
523
+ proto.aggregator.BalanceNode.Config.displayName = "proto.aggregator.BalanceNode.Config";
524
+ }
525
+ proto.aggregator.BalanceNode.Output = function(opt_data) {
526
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
527
+ };
528
+ goog.inherits(proto.aggregator.BalanceNode.Output, jspb.Message);
529
+ if (goog.DEBUG && !COMPILED) {
530
+ proto.aggregator.BalanceNode.Output.displayName = "proto.aggregator.BalanceNode.Output";
531
+ }
508
532
  proto.aggregator.BranchNode = function(opt_data) {
509
533
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
510
534
  };
@@ -2733,7 +2757,8 @@ var require_avs_pb = __commonJS({
2733
2757
  var f, obj = {
2734
2758
  data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
2735
2759
  headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, void 0) : [],
2736
- pathparamsMap: (f = msg.getPathparamsMap()) ? f.toObject(includeInstance, void 0) : []
2760
+ pathparamsMap: (f = msg.getPathparamsMap()) ? f.toObject(includeInstance, void 0) : [],
2761
+ lang: jspb.Message.getFieldWithDefault(msg, 4, 0)
2737
2762
  };
2738
2763
  if (includeInstance) {
2739
2764
  obj.$jspbMessageInstance = msg;
@@ -2770,6 +2795,13 @@ var require_avs_pb = __commonJS({
2770
2795
  jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
2771
2796
  });
2772
2797
  break;
2798
+ case 4:
2799
+ var value = (
2800
+ /** @type {!proto.aggregator.Lang} */
2801
+ reader.readEnum()
2802
+ );
2803
+ msg.setLang(value);
2804
+ break;
2773
2805
  default:
2774
2806
  reader.skipField();
2775
2807
  break;
@@ -2800,6 +2832,13 @@ var require_avs_pb = __commonJS({
2800
2832
  if (f && f.getLength() > 0) {
2801
2833
  f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
2802
2834
  }
2835
+ f = message.getLang();
2836
+ if (f !== 0) {
2837
+ writer.writeEnum(
2838
+ 4,
2839
+ f
2840
+ );
2841
+ }
2803
2842
  };
2804
2843
  proto.aggregator.ManualTrigger.Config.prototype.getData = function() {
2805
2844
  return (
@@ -2846,6 +2885,15 @@ var require_avs_pb = __commonJS({
2846
2885
  this.getPathparamsMap().clear();
2847
2886
  return this;
2848
2887
  };
2888
+ proto.aggregator.ManualTrigger.Config.prototype.getLang = function() {
2889
+ return (
2890
+ /** @type {!proto.aggregator.Lang} */
2891
+ jspb.Message.getFieldWithDefault(this, 4, 0)
2892
+ );
2893
+ };
2894
+ proto.aggregator.ManualTrigger.Config.prototype.setLang = function(value) {
2895
+ return jspb.Message.setProto3EnumField(this, 4, value);
2896
+ };
2849
2897
  if (jspb.Message.GENERATE_TO_OBJECT) {
2850
2898
  proto.aggregator.ManualTrigger.Output.prototype.toObject = function(opt_includeInstance) {
2851
2899
  return proto.aggregator.ManualTrigger.Output.toObject(opt_includeInstance, this);
@@ -5544,6 +5592,335 @@ var require_avs_pb = __commonJS({
5544
5592
  proto.aggregator.CustomCodeNode.prototype.hasConfig = function() {
5545
5593
  return jspb.Message.getField(this, 1) != null;
5546
5594
  };
5595
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5596
+ proto.aggregator.BalanceNode.prototype.toObject = function(opt_includeInstance) {
5597
+ return proto.aggregator.BalanceNode.toObject(opt_includeInstance, this);
5598
+ };
5599
+ proto.aggregator.BalanceNode.toObject = function(includeInstance, msg) {
5600
+ var f, obj = {
5601
+ config: (f = msg.getConfig()) && proto.aggregator.BalanceNode.Config.toObject(includeInstance, f)
5602
+ };
5603
+ if (includeInstance) {
5604
+ obj.$jspbMessageInstance = msg;
5605
+ }
5606
+ return obj;
5607
+ };
5608
+ }
5609
+ proto.aggregator.BalanceNode.deserializeBinary = function(bytes) {
5610
+ var reader = new jspb.BinaryReader(bytes);
5611
+ var msg = new proto.aggregator.BalanceNode();
5612
+ return proto.aggregator.BalanceNode.deserializeBinaryFromReader(msg, reader);
5613
+ };
5614
+ proto.aggregator.BalanceNode.deserializeBinaryFromReader = function(msg, reader) {
5615
+ while (reader.nextField()) {
5616
+ if (reader.isEndGroup()) {
5617
+ break;
5618
+ }
5619
+ var field = reader.getFieldNumber();
5620
+ switch (field) {
5621
+ case 1:
5622
+ var value = new proto.aggregator.BalanceNode.Config();
5623
+ reader.readMessage(value, proto.aggregator.BalanceNode.Config.deserializeBinaryFromReader);
5624
+ msg.setConfig(value);
5625
+ break;
5626
+ default:
5627
+ reader.skipField();
5628
+ break;
5629
+ }
5630
+ }
5631
+ return msg;
5632
+ };
5633
+ proto.aggregator.BalanceNode.prototype.serializeBinary = function() {
5634
+ var writer = new jspb.BinaryWriter();
5635
+ proto.aggregator.BalanceNode.serializeBinaryToWriter(this, writer);
5636
+ return writer.getResultBuffer();
5637
+ };
5638
+ proto.aggregator.BalanceNode.serializeBinaryToWriter = function(message, writer) {
5639
+ var f = void 0;
5640
+ f = message.getConfig();
5641
+ if (f != null) {
5642
+ writer.writeMessage(
5643
+ 1,
5644
+ f,
5645
+ proto.aggregator.BalanceNode.Config.serializeBinaryToWriter
5646
+ );
5647
+ }
5648
+ };
5649
+ proto.aggregator.BalanceNode.Config.repeatedFields_ = [6];
5650
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5651
+ proto.aggregator.BalanceNode.Config.prototype.toObject = function(opt_includeInstance) {
5652
+ return proto.aggregator.BalanceNode.Config.toObject(opt_includeInstance, this);
5653
+ };
5654
+ proto.aggregator.BalanceNode.Config.toObject = function(includeInstance, msg) {
5655
+ var f, obj = {
5656
+ address: jspb.Message.getFieldWithDefault(msg, 1, ""),
5657
+ chain: jspb.Message.getFieldWithDefault(msg, 2, ""),
5658
+ includeSpam: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
5659
+ includeZeroBalances: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
5660
+ minUsdValueCents: jspb.Message.getFieldWithDefault(msg, 5, 0),
5661
+ tokenAddressesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? void 0 : f
5662
+ };
5663
+ if (includeInstance) {
5664
+ obj.$jspbMessageInstance = msg;
5665
+ }
5666
+ return obj;
5667
+ };
5668
+ }
5669
+ proto.aggregator.BalanceNode.Config.deserializeBinary = function(bytes) {
5670
+ var reader = new jspb.BinaryReader(bytes);
5671
+ var msg = new proto.aggregator.BalanceNode.Config();
5672
+ return proto.aggregator.BalanceNode.Config.deserializeBinaryFromReader(msg, reader);
5673
+ };
5674
+ proto.aggregator.BalanceNode.Config.deserializeBinaryFromReader = function(msg, reader) {
5675
+ while (reader.nextField()) {
5676
+ if (reader.isEndGroup()) {
5677
+ break;
5678
+ }
5679
+ var field = reader.getFieldNumber();
5680
+ switch (field) {
5681
+ case 1:
5682
+ var value = (
5683
+ /** @type {string} */
5684
+ reader.readString()
5685
+ );
5686
+ msg.setAddress(value);
5687
+ break;
5688
+ case 2:
5689
+ var value = (
5690
+ /** @type {string} */
5691
+ reader.readString()
5692
+ );
5693
+ msg.setChain(value);
5694
+ break;
5695
+ case 3:
5696
+ var value = (
5697
+ /** @type {boolean} */
5698
+ reader.readBool()
5699
+ );
5700
+ msg.setIncludeSpam(value);
5701
+ break;
5702
+ case 4:
5703
+ var value = (
5704
+ /** @type {boolean} */
5705
+ reader.readBool()
5706
+ );
5707
+ msg.setIncludeZeroBalances(value);
5708
+ break;
5709
+ case 5:
5710
+ var value = (
5711
+ /** @type {number} */
5712
+ reader.readInt64()
5713
+ );
5714
+ msg.setMinUsdValueCents(value);
5715
+ break;
5716
+ case 6:
5717
+ var value = (
5718
+ /** @type {string} */
5719
+ reader.readString()
5720
+ );
5721
+ msg.addTokenAddresses(value);
5722
+ break;
5723
+ default:
5724
+ reader.skipField();
5725
+ break;
5726
+ }
5727
+ }
5728
+ return msg;
5729
+ };
5730
+ proto.aggregator.BalanceNode.Config.prototype.serializeBinary = function() {
5731
+ var writer = new jspb.BinaryWriter();
5732
+ proto.aggregator.BalanceNode.Config.serializeBinaryToWriter(this, writer);
5733
+ return writer.getResultBuffer();
5734
+ };
5735
+ proto.aggregator.BalanceNode.Config.serializeBinaryToWriter = function(message, writer) {
5736
+ var f = void 0;
5737
+ f = message.getAddress();
5738
+ if (f.length > 0) {
5739
+ writer.writeString(
5740
+ 1,
5741
+ f
5742
+ );
5743
+ }
5744
+ f = message.getChain();
5745
+ if (f.length > 0) {
5746
+ writer.writeString(
5747
+ 2,
5748
+ f
5749
+ );
5750
+ }
5751
+ f = message.getIncludeSpam();
5752
+ if (f) {
5753
+ writer.writeBool(
5754
+ 3,
5755
+ f
5756
+ );
5757
+ }
5758
+ f = message.getIncludeZeroBalances();
5759
+ if (f) {
5760
+ writer.writeBool(
5761
+ 4,
5762
+ f
5763
+ );
5764
+ }
5765
+ f = message.getMinUsdValueCents();
5766
+ if (f !== 0) {
5767
+ writer.writeInt64(
5768
+ 5,
5769
+ f
5770
+ );
5771
+ }
5772
+ f = message.getTokenAddressesList();
5773
+ if (f.length > 0) {
5774
+ writer.writeRepeatedString(
5775
+ 6,
5776
+ f
5777
+ );
5778
+ }
5779
+ };
5780
+ proto.aggregator.BalanceNode.Config.prototype.getAddress = function() {
5781
+ return (
5782
+ /** @type {string} */
5783
+ jspb.Message.getFieldWithDefault(this, 1, "")
5784
+ );
5785
+ };
5786
+ proto.aggregator.BalanceNode.Config.prototype.setAddress = function(value) {
5787
+ return jspb.Message.setProto3StringField(this, 1, value);
5788
+ };
5789
+ proto.aggregator.BalanceNode.Config.prototype.getChain = function() {
5790
+ return (
5791
+ /** @type {string} */
5792
+ jspb.Message.getFieldWithDefault(this, 2, "")
5793
+ );
5794
+ };
5795
+ proto.aggregator.BalanceNode.Config.prototype.setChain = function(value) {
5796
+ return jspb.Message.setProto3StringField(this, 2, value);
5797
+ };
5798
+ proto.aggregator.BalanceNode.Config.prototype.getIncludeSpam = function() {
5799
+ return (
5800
+ /** @type {boolean} */
5801
+ jspb.Message.getBooleanFieldWithDefault(this, 3, false)
5802
+ );
5803
+ };
5804
+ proto.aggregator.BalanceNode.Config.prototype.setIncludeSpam = function(value) {
5805
+ return jspb.Message.setProto3BooleanField(this, 3, value);
5806
+ };
5807
+ proto.aggregator.BalanceNode.Config.prototype.getIncludeZeroBalances = function() {
5808
+ return (
5809
+ /** @type {boolean} */
5810
+ jspb.Message.getBooleanFieldWithDefault(this, 4, false)
5811
+ );
5812
+ };
5813
+ proto.aggregator.BalanceNode.Config.prototype.setIncludeZeroBalances = function(value) {
5814
+ return jspb.Message.setProto3BooleanField(this, 4, value);
5815
+ };
5816
+ proto.aggregator.BalanceNode.Config.prototype.getMinUsdValueCents = function() {
5817
+ return (
5818
+ /** @type {number} */
5819
+ jspb.Message.getFieldWithDefault(this, 5, 0)
5820
+ );
5821
+ };
5822
+ proto.aggregator.BalanceNode.Config.prototype.setMinUsdValueCents = function(value) {
5823
+ return jspb.Message.setProto3IntField(this, 5, value);
5824
+ };
5825
+ proto.aggregator.BalanceNode.Config.prototype.getTokenAddressesList = function() {
5826
+ return (
5827
+ /** @type {!Array<string>} */
5828
+ jspb.Message.getRepeatedField(this, 6)
5829
+ );
5830
+ };
5831
+ proto.aggregator.BalanceNode.Config.prototype.setTokenAddressesList = function(value) {
5832
+ return jspb.Message.setField(this, 6, value || []);
5833
+ };
5834
+ proto.aggregator.BalanceNode.Config.prototype.addTokenAddresses = function(value, opt_index) {
5835
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
5836
+ };
5837
+ proto.aggregator.BalanceNode.Config.prototype.clearTokenAddressesList = function() {
5838
+ return this.setTokenAddressesList([]);
5839
+ };
5840
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5841
+ proto.aggregator.BalanceNode.Output.prototype.toObject = function(opt_includeInstance) {
5842
+ return proto.aggregator.BalanceNode.Output.toObject(opt_includeInstance, this);
5843
+ };
5844
+ proto.aggregator.BalanceNode.Output.toObject = function(includeInstance, msg) {
5845
+ var f, obj = {
5846
+ data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
5847
+ };
5848
+ if (includeInstance) {
5849
+ obj.$jspbMessageInstance = msg;
5850
+ }
5851
+ return obj;
5852
+ };
5853
+ }
5854
+ proto.aggregator.BalanceNode.Output.deserializeBinary = function(bytes) {
5855
+ var reader = new jspb.BinaryReader(bytes);
5856
+ var msg = new proto.aggregator.BalanceNode.Output();
5857
+ return proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader(msg, reader);
5858
+ };
5859
+ proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader = function(msg, reader) {
5860
+ while (reader.nextField()) {
5861
+ if (reader.isEndGroup()) {
5862
+ break;
5863
+ }
5864
+ var field = reader.getFieldNumber();
5865
+ switch (field) {
5866
+ case 1:
5867
+ var value = new google_protobuf_struct_pb5.Value();
5868
+ reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
5869
+ msg.setData(value);
5870
+ break;
5871
+ default:
5872
+ reader.skipField();
5873
+ break;
5874
+ }
5875
+ }
5876
+ return msg;
5877
+ };
5878
+ proto.aggregator.BalanceNode.Output.prototype.serializeBinary = function() {
5879
+ var writer = new jspb.BinaryWriter();
5880
+ proto.aggregator.BalanceNode.Output.serializeBinaryToWriter(this, writer);
5881
+ return writer.getResultBuffer();
5882
+ };
5883
+ proto.aggregator.BalanceNode.Output.serializeBinaryToWriter = function(message, writer) {
5884
+ var f = void 0;
5885
+ f = message.getData();
5886
+ if (f != null) {
5887
+ writer.writeMessage(
5888
+ 1,
5889
+ f,
5890
+ google_protobuf_struct_pb5.Value.serializeBinaryToWriter
5891
+ );
5892
+ }
5893
+ };
5894
+ proto.aggregator.BalanceNode.Output.prototype.getData = function() {
5895
+ return (
5896
+ /** @type{?proto.google.protobuf.Value} */
5897
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
5898
+ );
5899
+ };
5900
+ proto.aggregator.BalanceNode.Output.prototype.setData = function(value) {
5901
+ return jspb.Message.setWrapperField(this, 1, value);
5902
+ };
5903
+ proto.aggregator.BalanceNode.Output.prototype.clearData = function() {
5904
+ return this.setData(void 0);
5905
+ };
5906
+ proto.aggregator.BalanceNode.Output.prototype.hasData = function() {
5907
+ return jspb.Message.getField(this, 1) != null;
5908
+ };
5909
+ proto.aggregator.BalanceNode.prototype.getConfig = function() {
5910
+ return (
5911
+ /** @type{?proto.aggregator.BalanceNode.Config} */
5912
+ jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode.Config, 1)
5913
+ );
5914
+ };
5915
+ proto.aggregator.BalanceNode.prototype.setConfig = function(value) {
5916
+ return jspb.Message.setWrapperField(this, 1, value);
5917
+ };
5918
+ proto.aggregator.BalanceNode.prototype.clearConfig = function() {
5919
+ return this.setConfig(void 0);
5920
+ };
5921
+ proto.aggregator.BalanceNode.prototype.hasConfig = function() {
5922
+ return jspb.Message.getField(this, 1) != null;
5923
+ };
5547
5924
  if (jspb.Message.GENERATE_TO_OBJECT) {
5548
5925
  proto.aggregator.BranchNode.prototype.toObject = function(opt_includeInstance) {
5549
5926
  return proto.aggregator.BranchNode.toObject(opt_includeInstance, this);
@@ -6670,7 +7047,7 @@ var require_avs_pb = __commonJS({
6670
7047
  proto.aggregator.TaskEdge.prototype.setTarget = function(value) {
6671
7048
  return jspb.Message.setProto3StringField(this, 3, value);
6672
7049
  };
6673
- proto.aggregator.TaskNode.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18]];
7050
+ proto.aggregator.TaskNode.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18, 19]];
6674
7051
  proto.aggregator.TaskNode.TaskTypeCase = {
6675
7052
  TASK_TYPE_NOT_SET: 0,
6676
7053
  ETH_TRANSFER: 10,
@@ -6681,7 +7058,8 @@ var require_avs_pb = __commonJS({
6681
7058
  BRANCH: 15,
6682
7059
  FILTER: 16,
6683
7060
  LOOP: 17,
6684
- CUSTOM_CODE: 18
7061
+ CUSTOM_CODE: 18,
7062
+ BALANCE: 19
6685
7063
  };
6686
7064
  proto.aggregator.TaskNode.prototype.getTaskTypeCase = function() {
6687
7065
  return (
@@ -6706,7 +7084,8 @@ var require_avs_pb = __commonJS({
6706
7084
  branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.toObject(includeInstance, f),
6707
7085
  filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.toObject(includeInstance, f),
6708
7086
  loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.toObject(includeInstance, f),
6709
- customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f)
7087
+ customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
7088
+ balance: (f = msg.getBalance()) && proto.aggregator.BalanceNode.toObject(includeInstance, f)
6710
7089
  };
6711
7090
  if (includeInstance) {
6712
7091
  obj.$jspbMessageInstance = msg;
@@ -6792,6 +7171,11 @@ var require_avs_pb = __commonJS({
6792
7171
  reader.readMessage(value, proto.aggregator.CustomCodeNode.deserializeBinaryFromReader);
6793
7172
  msg.setCustomCode(value);
6794
7173
  break;
7174
+ case 19:
7175
+ var value = new proto.aggregator.BalanceNode();
7176
+ reader.readMessage(value, proto.aggregator.BalanceNode.deserializeBinaryFromReader);
7177
+ msg.setBalance(value);
7178
+ break;
6795
7179
  default:
6796
7180
  reader.skipField();
6797
7181
  break;
@@ -6899,6 +7283,14 @@ var require_avs_pb = __commonJS({
6899
7283
  proto.aggregator.CustomCodeNode.serializeBinaryToWriter
6900
7284
  );
6901
7285
  }
7286
+ f = message.getBalance();
7287
+ if (f != null) {
7288
+ writer.writeMessage(
7289
+ 19,
7290
+ f,
7291
+ proto.aggregator.BalanceNode.serializeBinaryToWriter
7292
+ );
7293
+ }
6902
7294
  };
6903
7295
  proto.aggregator.TaskNode.prototype.getId = function() {
6904
7296
  return (
@@ -7062,6 +7454,21 @@ var require_avs_pb = __commonJS({
7062
7454
  proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
7063
7455
  return jspb.Message.getField(this, 18) != null;
7064
7456
  };
7457
+ proto.aggregator.TaskNode.prototype.getBalance = function() {
7458
+ return (
7459
+ /** @type{?proto.aggregator.BalanceNode} */
7460
+ jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode, 19)
7461
+ );
7462
+ };
7463
+ proto.aggregator.TaskNode.prototype.setBalance = function(value) {
7464
+ return jspb.Message.setOneofWrapperField(this, 19, proto.aggregator.TaskNode.oneofGroups_[0], value);
7465
+ };
7466
+ proto.aggregator.TaskNode.prototype.clearBalance = function() {
7467
+ return this.setBalance(void 0);
7468
+ };
7469
+ proto.aggregator.TaskNode.prototype.hasBalance = function() {
7470
+ return jspb.Message.getField(this, 19) != null;
7471
+ };
7065
7472
  proto.aggregator.Execution.repeatedFields_ = [8];
7066
7473
  if (jspb.Message.GENERATE_TO_OBJECT) {
7067
7474
  proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
@@ -7227,7 +7634,7 @@ var require_avs_pb = __commonJS({
7227
7634
  }
7228
7635
  };
7229
7636
  proto.aggregator.Execution.Step.repeatedFields_ = [16];
7230
- proto.aggregator.Execution.Step.oneofGroups_ = [[20, 21, 22, 23, 24, 3, 4, 5, 6, 7, 8, 9, 10, 11]];
7637
+ proto.aggregator.Execution.Step.oneofGroups_ = [[20, 21, 22, 23, 24, 3, 4, 5, 6, 7, 8, 9, 10, 11, 30]];
7231
7638
  proto.aggregator.Execution.Step.OutputDataCase = {
7232
7639
  OUTPUT_DATA_NOT_SET: 0,
7233
7640
  BLOCK_TRIGGER: 20,
@@ -7243,7 +7650,8 @@ var require_avs_pb = __commonJS({
7243
7650
  REST_API: 8,
7244
7651
  BRANCH: 9,
7245
7652
  FILTER: 10,
7246
- LOOP: 11
7653
+ LOOP: 11,
7654
+ BALANCE: 30
7247
7655
  };
7248
7656
  proto.aggregator.Execution.Step.prototype.getOutputDataCase = function() {
7249
7657
  return (
@@ -7285,6 +7693,7 @@ var require_avs_pb = __commonJS({
7285
7693
  branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.Output.toObject(includeInstance, f),
7286
7694
  filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.Output.toObject(includeInstance, f),
7287
7695
  loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f),
7696
+ balance: (f = msg.getBalance()) && proto.aggregator.BalanceNode.Output.toObject(includeInstance, f),
7288
7697
  startAt: jspb.Message.getFieldWithDefault(msg, 14, 0),
7289
7698
  endAt: jspb.Message.getFieldWithDefault(msg, 15, 0)
7290
7699
  };
@@ -7468,6 +7877,11 @@ var require_avs_pb = __commonJS({
7468
7877
  reader.readMessage(value, proto.aggregator.LoopNode.Output.deserializeBinaryFromReader);
7469
7878
  msg.setLoop(value);
7470
7879
  break;
7880
+ case 30:
7881
+ var value = new proto.aggregator.BalanceNode.Output();
7882
+ reader.readMessage(value, proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader);
7883
+ msg.setBalance(value);
7884
+ break;
7471
7885
  case 14:
7472
7886
  var value = (
7473
7887
  /** @type {number} */
@@ -7709,6 +8123,14 @@ var require_avs_pb = __commonJS({
7709
8123
  proto.aggregator.LoopNode.Output.serializeBinaryToWriter
7710
8124
  );
7711
8125
  }
8126
+ f = message.getBalance();
8127
+ if (f != null) {
8128
+ writer.writeMessage(
8129
+ 30,
8130
+ f,
8131
+ proto.aggregator.BalanceNode.Output.serializeBinaryToWriter
8132
+ );
8133
+ }
7712
8134
  f = message.getStartAt();
7713
8135
  if (f !== 0) {
7714
8136
  writer.writeInt64(
@@ -8084,6 +8506,21 @@ var require_avs_pb = __commonJS({
8084
8506
  proto.aggregator.Execution.Step.prototype.hasLoop = function() {
8085
8507
  return jspb.Message.getField(this, 11) != null;
8086
8508
  };
8509
+ proto.aggregator.Execution.Step.prototype.getBalance = function() {
8510
+ return (
8511
+ /** @type{?proto.aggregator.BalanceNode.Output} */
8512
+ jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode.Output, 30)
8513
+ );
8514
+ };
8515
+ proto.aggregator.Execution.Step.prototype.setBalance = function(value) {
8516
+ return jspb.Message.setOneofWrapperField(this, 30, proto.aggregator.Execution.Step.oneofGroups_[0], value);
8517
+ };
8518
+ proto.aggregator.Execution.Step.prototype.clearBalance = function() {
8519
+ return this.setBalance(void 0);
8520
+ };
8521
+ proto.aggregator.Execution.Step.prototype.hasBalance = function() {
8522
+ return jspb.Message.getField(this, 30) != null;
8523
+ };
8087
8524
  proto.aggregator.Execution.Step.prototype.getStartAt = function() {
8088
8525
  return (
8089
8526
  /** @type {number} */
@@ -14269,7 +14706,7 @@ var require_avs_pb = __commonJS({
14269
14706
  this.getInputVariablesMap().clear();
14270
14707
  return this;
14271
14708
  };
14272
- proto.aggregator.RunNodeWithInputsResp.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18]];
14709
+ proto.aggregator.RunNodeWithInputsResp.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18, 19]];
14273
14710
  proto.aggregator.RunNodeWithInputsResp.OutputDataCase = {
14274
14711
  OUTPUT_DATA_NOT_SET: 0,
14275
14712
  ETH_TRANSFER: 10,
@@ -14280,7 +14717,8 @@ var require_avs_pb = __commonJS({
14280
14717
  REST_API: 15,
14281
14718
  BRANCH: 16,
14282
14719
  FILTER: 17,
14283
- LOOP: 18
14720
+ LOOP: 18,
14721
+ BALANCE: 19
14284
14722
  };
14285
14723
  proto.aggregator.RunNodeWithInputsResp.prototype.getOutputDataCase = function() {
14286
14724
  return (
@@ -14307,7 +14745,8 @@ var require_avs_pb = __commonJS({
14307
14745
  restApi: (f = msg.getRestApi()) && proto.aggregator.RestAPINode.Output.toObject(includeInstance, f),
14308
14746
  branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.Output.toObject(includeInstance, f),
14309
14747
  filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.Output.toObject(includeInstance, f),
14310
- loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f)
14748
+ loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f),
14749
+ balance: (f = msg.getBalance()) && proto.aggregator.BalanceNode.Output.toObject(includeInstance, f)
14311
14750
  };
14312
14751
  if (includeInstance) {
14313
14752
  obj.$jspbMessageInstance = msg;
@@ -14403,6 +14842,11 @@ var require_avs_pb = __commonJS({
14403
14842
  reader.readMessage(value, proto.aggregator.LoopNode.Output.deserializeBinaryFromReader);
14404
14843
  msg.setLoop(value);
14405
14844
  break;
14845
+ case 19:
14846
+ var value = new proto.aggregator.BalanceNode.Output();
14847
+ reader.readMessage(value, proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader);
14848
+ msg.setBalance(value);
14849
+ break;
14406
14850
  default:
14407
14851
  reader.skipField();
14408
14852
  break;
@@ -14526,6 +14970,14 @@ var require_avs_pb = __commonJS({
14526
14970
  proto.aggregator.LoopNode.Output.serializeBinaryToWriter
14527
14971
  );
14528
14972
  }
14973
+ f = message.getBalance();
14974
+ if (f != null) {
14975
+ writer.writeMessage(
14976
+ 19,
14977
+ f,
14978
+ proto.aggregator.BalanceNode.Output.serializeBinaryToWriter
14979
+ );
14980
+ }
14529
14981
  };
14530
14982
  proto.aggregator.RunNodeWithInputsResp.prototype.getSuccess = function() {
14531
14983
  return (
@@ -14719,6 +15171,21 @@ var require_avs_pb = __commonJS({
14719
15171
  proto.aggregator.RunNodeWithInputsResp.prototype.hasLoop = function() {
14720
15172
  return jspb.Message.getField(this, 18) != null;
14721
15173
  };
15174
+ proto.aggregator.RunNodeWithInputsResp.prototype.getBalance = function() {
15175
+ return (
15176
+ /** @type{?proto.aggregator.BalanceNode.Output} */
15177
+ jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode.Output, 19)
15178
+ );
15179
+ };
15180
+ proto.aggregator.RunNodeWithInputsResp.prototype.setBalance = function(value) {
15181
+ return jspb.Message.setOneofWrapperField(this, 19, proto.aggregator.RunNodeWithInputsResp.oneofGroups_[0], value);
15182
+ };
15183
+ proto.aggregator.RunNodeWithInputsResp.prototype.clearBalance = function() {
15184
+ return this.setBalance(void 0);
15185
+ };
15186
+ proto.aggregator.RunNodeWithInputsResp.prototype.hasBalance = function() {
15187
+ return jspb.Message.getField(this, 19) != null;
15188
+ };
14722
15189
  if (jspb.Message.GENERATE_TO_OBJECT) {
14723
15190
  proto.aggregator.RunTriggerReq.prototype.toObject = function(opt_includeInstance) {
14724
15191
  return proto.aggregator.RunTriggerReq.toObject(opt_includeInstance, this);
@@ -17297,14 +17764,19 @@ var require_avs_pb = __commonJS({
17297
17764
  NODE_TYPE_CUSTOM_CODE: 6,
17298
17765
  NODE_TYPE_BRANCH: 7,
17299
17766
  NODE_TYPE_FILTER: 8,
17300
- NODE_TYPE_LOOP: 9
17767
+ NODE_TYPE_LOOP: 9,
17768
+ NODE_TYPE_BALANCE: 10
17301
17769
  };
17302
17770
  proto.aggregator.ExecutionMode = {
17303
17771
  EXECUTION_MODE_SEQUENTIAL: 0,
17304
17772
  EXECUTION_MODE_PARALLEL: 1
17305
17773
  };
17306
17774
  proto.aggregator.Lang = {
17307
- JAVASCRIPT: 0
17775
+ LANG_UNSPECIFIED: 0,
17776
+ LANG_JAVASCRIPT: 1,
17777
+ LANG_JSON: 2,
17778
+ LANG_GRAPHQL: 3,
17779
+ LANG_HANDLEBARS: 4
17308
17780
  };
17309
17781
  proto.aggregator.ErrorCode = {
17310
17782
  ERROR_CODE_UNSPECIFIED: 0,
@@ -17370,457 +17842,457 @@ var require_avs_grpc_pb = __commonJS({
17370
17842
  "../../grpc_codegen/avs_grpc_pb.js"(exports) {
17371
17843
  "use strict";
17372
17844
  var grpc = __require("@grpc/grpc-js");
17373
- var avs_pb24 = require_avs_pb();
17845
+ var avs_pb25 = require_avs_pb();
17374
17846
  var google_protobuf_struct_pb5 = __require("google-protobuf/google/protobuf/struct_pb.js");
17375
17847
  function serialize_aggregator_CancelTaskResp(arg) {
17376
- if (!(arg instanceof avs_pb24.CancelTaskResp)) {
17848
+ if (!(arg instanceof avs_pb25.CancelTaskResp)) {
17377
17849
  throw new Error("Expected argument of type aggregator.CancelTaskResp");
17378
17850
  }
17379
17851
  return Buffer.from(arg.serializeBinary());
17380
17852
  }
17381
17853
  function deserialize_aggregator_CancelTaskResp(buffer_arg) {
17382
- return avs_pb24.CancelTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17854
+ return avs_pb25.CancelTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17383
17855
  }
17384
17856
  function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
17385
- if (!(arg instanceof avs_pb24.CreateOrUpdateSecretReq)) {
17857
+ if (!(arg instanceof avs_pb25.CreateOrUpdateSecretReq)) {
17386
17858
  throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
17387
17859
  }
17388
17860
  return Buffer.from(arg.serializeBinary());
17389
17861
  }
17390
17862
  function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
17391
- return avs_pb24.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
17863
+ return avs_pb25.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
17392
17864
  }
17393
17865
  function serialize_aggregator_CreateSecretResp(arg) {
17394
- if (!(arg instanceof avs_pb24.CreateSecretResp)) {
17866
+ if (!(arg instanceof avs_pb25.CreateSecretResp)) {
17395
17867
  throw new Error("Expected argument of type aggregator.CreateSecretResp");
17396
17868
  }
17397
17869
  return Buffer.from(arg.serializeBinary());
17398
17870
  }
17399
17871
  function deserialize_aggregator_CreateSecretResp(buffer_arg) {
17400
- return avs_pb24.CreateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
17872
+ return avs_pb25.CreateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
17401
17873
  }
17402
17874
  function serialize_aggregator_CreateTaskReq(arg) {
17403
- if (!(arg instanceof avs_pb24.CreateTaskReq)) {
17875
+ if (!(arg instanceof avs_pb25.CreateTaskReq)) {
17404
17876
  throw new Error("Expected argument of type aggregator.CreateTaskReq");
17405
17877
  }
17406
17878
  return Buffer.from(arg.serializeBinary());
17407
17879
  }
17408
17880
  function deserialize_aggregator_CreateTaskReq(buffer_arg) {
17409
- return avs_pb24.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
17881
+ return avs_pb25.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
17410
17882
  }
17411
17883
  function serialize_aggregator_CreateTaskResp(arg) {
17412
- if (!(arg instanceof avs_pb24.CreateTaskResp)) {
17884
+ if (!(arg instanceof avs_pb25.CreateTaskResp)) {
17413
17885
  throw new Error("Expected argument of type aggregator.CreateTaskResp");
17414
17886
  }
17415
17887
  return Buffer.from(arg.serializeBinary());
17416
17888
  }
17417
17889
  function deserialize_aggregator_CreateTaskResp(buffer_arg) {
17418
- return avs_pb24.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17890
+ return avs_pb25.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17419
17891
  }
17420
17892
  function serialize_aggregator_DeleteSecretReq(arg) {
17421
- if (!(arg instanceof avs_pb24.DeleteSecretReq)) {
17893
+ if (!(arg instanceof avs_pb25.DeleteSecretReq)) {
17422
17894
  throw new Error("Expected argument of type aggregator.DeleteSecretReq");
17423
17895
  }
17424
17896
  return Buffer.from(arg.serializeBinary());
17425
17897
  }
17426
17898
  function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
17427
- return avs_pb24.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
17899
+ return avs_pb25.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
17428
17900
  }
17429
17901
  function serialize_aggregator_DeleteSecretResp(arg) {
17430
- if (!(arg instanceof avs_pb24.DeleteSecretResp)) {
17902
+ if (!(arg instanceof avs_pb25.DeleteSecretResp)) {
17431
17903
  throw new Error("Expected argument of type aggregator.DeleteSecretResp");
17432
17904
  }
17433
17905
  return Buffer.from(arg.serializeBinary());
17434
17906
  }
17435
17907
  function deserialize_aggregator_DeleteSecretResp(buffer_arg) {
17436
- return avs_pb24.DeleteSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
17908
+ return avs_pb25.DeleteSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
17437
17909
  }
17438
17910
  function serialize_aggregator_DeleteTaskResp(arg) {
17439
- if (!(arg instanceof avs_pb24.DeleteTaskResp)) {
17911
+ if (!(arg instanceof avs_pb25.DeleteTaskResp)) {
17440
17912
  throw new Error("Expected argument of type aggregator.DeleteTaskResp");
17441
17913
  }
17442
17914
  return Buffer.from(arg.serializeBinary());
17443
17915
  }
17444
17916
  function deserialize_aggregator_DeleteTaskResp(buffer_arg) {
17445
- return avs_pb24.DeleteTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17917
+ return avs_pb25.DeleteTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17446
17918
  }
17447
17919
  function serialize_aggregator_EstimateFeesReq(arg) {
17448
- if (!(arg instanceof avs_pb24.EstimateFeesReq)) {
17920
+ if (!(arg instanceof avs_pb25.EstimateFeesReq)) {
17449
17921
  throw new Error("Expected argument of type aggregator.EstimateFeesReq");
17450
17922
  }
17451
17923
  return Buffer.from(arg.serializeBinary());
17452
17924
  }
17453
17925
  function deserialize_aggregator_EstimateFeesReq(buffer_arg) {
17454
- return avs_pb24.EstimateFeesReq.deserializeBinary(new Uint8Array(buffer_arg));
17926
+ return avs_pb25.EstimateFeesReq.deserializeBinary(new Uint8Array(buffer_arg));
17455
17927
  }
17456
17928
  function serialize_aggregator_EstimateFeesResp(arg) {
17457
- if (!(arg instanceof avs_pb24.EstimateFeesResp)) {
17929
+ if (!(arg instanceof avs_pb25.EstimateFeesResp)) {
17458
17930
  throw new Error("Expected argument of type aggregator.EstimateFeesResp");
17459
17931
  }
17460
17932
  return Buffer.from(arg.serializeBinary());
17461
17933
  }
17462
17934
  function deserialize_aggregator_EstimateFeesResp(buffer_arg) {
17463
- return avs_pb24.EstimateFeesResp.deserializeBinary(new Uint8Array(buffer_arg));
17935
+ return avs_pb25.EstimateFeesResp.deserializeBinary(new Uint8Array(buffer_arg));
17464
17936
  }
17465
17937
  function serialize_aggregator_Execution(arg) {
17466
- if (!(arg instanceof avs_pb24.Execution)) {
17938
+ if (!(arg instanceof avs_pb25.Execution)) {
17467
17939
  throw new Error("Expected argument of type aggregator.Execution");
17468
17940
  }
17469
17941
  return Buffer.from(arg.serializeBinary());
17470
17942
  }
17471
17943
  function deserialize_aggregator_Execution(buffer_arg) {
17472
- return avs_pb24.Execution.deserializeBinary(new Uint8Array(buffer_arg));
17944
+ return avs_pb25.Execution.deserializeBinary(new Uint8Array(buffer_arg));
17473
17945
  }
17474
17946
  function serialize_aggregator_ExecutionReq(arg) {
17475
- if (!(arg instanceof avs_pb24.ExecutionReq)) {
17947
+ if (!(arg instanceof avs_pb25.ExecutionReq)) {
17476
17948
  throw new Error("Expected argument of type aggregator.ExecutionReq");
17477
17949
  }
17478
17950
  return Buffer.from(arg.serializeBinary());
17479
17951
  }
17480
17952
  function deserialize_aggregator_ExecutionReq(buffer_arg) {
17481
- return avs_pb24.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
17953
+ return avs_pb25.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
17482
17954
  }
17483
17955
  function serialize_aggregator_ExecutionStatusResp(arg) {
17484
- if (!(arg instanceof avs_pb24.ExecutionStatusResp)) {
17956
+ if (!(arg instanceof avs_pb25.ExecutionStatusResp)) {
17485
17957
  throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
17486
17958
  }
17487
17959
  return Buffer.from(arg.serializeBinary());
17488
17960
  }
17489
17961
  function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
17490
- return avs_pb24.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
17962
+ return avs_pb25.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
17491
17963
  }
17492
17964
  function serialize_aggregator_GetExecutionCountReq(arg) {
17493
- if (!(arg instanceof avs_pb24.GetExecutionCountReq)) {
17965
+ if (!(arg instanceof avs_pb25.GetExecutionCountReq)) {
17494
17966
  throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
17495
17967
  }
17496
17968
  return Buffer.from(arg.serializeBinary());
17497
17969
  }
17498
17970
  function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
17499
- return avs_pb24.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
17971
+ return avs_pb25.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
17500
17972
  }
17501
17973
  function serialize_aggregator_GetExecutionCountResp(arg) {
17502
- if (!(arg instanceof avs_pb24.GetExecutionCountResp)) {
17974
+ if (!(arg instanceof avs_pb25.GetExecutionCountResp)) {
17503
17975
  throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
17504
17976
  }
17505
17977
  return Buffer.from(arg.serializeBinary());
17506
17978
  }
17507
17979
  function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
17508
- return avs_pb24.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
17980
+ return avs_pb25.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
17509
17981
  }
17510
17982
  function serialize_aggregator_GetExecutionStatsReq(arg) {
17511
- if (!(arg instanceof avs_pb24.GetExecutionStatsReq)) {
17983
+ if (!(arg instanceof avs_pb25.GetExecutionStatsReq)) {
17512
17984
  throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
17513
17985
  }
17514
17986
  return Buffer.from(arg.serializeBinary());
17515
17987
  }
17516
17988
  function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
17517
- return avs_pb24.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
17989
+ return avs_pb25.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
17518
17990
  }
17519
17991
  function serialize_aggregator_GetExecutionStatsResp(arg) {
17520
- if (!(arg instanceof avs_pb24.GetExecutionStatsResp)) {
17992
+ if (!(arg instanceof avs_pb25.GetExecutionStatsResp)) {
17521
17993
  throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
17522
17994
  }
17523
17995
  return Buffer.from(arg.serializeBinary());
17524
17996
  }
17525
17997
  function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
17526
- return avs_pb24.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
17998
+ return avs_pb25.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
17527
17999
  }
17528
18000
  function serialize_aggregator_GetKeyReq(arg) {
17529
- if (!(arg instanceof avs_pb24.GetKeyReq)) {
18001
+ if (!(arg instanceof avs_pb25.GetKeyReq)) {
17530
18002
  throw new Error("Expected argument of type aggregator.GetKeyReq");
17531
18003
  }
17532
18004
  return Buffer.from(arg.serializeBinary());
17533
18005
  }
17534
18006
  function deserialize_aggregator_GetKeyReq(buffer_arg) {
17535
- return avs_pb24.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
18007
+ return avs_pb25.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
17536
18008
  }
17537
18009
  function serialize_aggregator_GetSignatureFormatReq(arg) {
17538
- if (!(arg instanceof avs_pb24.GetSignatureFormatReq)) {
18010
+ if (!(arg instanceof avs_pb25.GetSignatureFormatReq)) {
17539
18011
  throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
17540
18012
  }
17541
18013
  return Buffer.from(arg.serializeBinary());
17542
18014
  }
17543
18015
  function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
17544
- return avs_pb24.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
18016
+ return avs_pb25.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
17545
18017
  }
17546
18018
  function serialize_aggregator_GetSignatureFormatResp(arg) {
17547
- if (!(arg instanceof avs_pb24.GetSignatureFormatResp)) {
18019
+ if (!(arg instanceof avs_pb25.GetSignatureFormatResp)) {
17548
18020
  throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
17549
18021
  }
17550
18022
  return Buffer.from(arg.serializeBinary());
17551
18023
  }
17552
18024
  function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
17553
- return avs_pb24.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
18025
+ return avs_pb25.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
17554
18026
  }
17555
18027
  function serialize_aggregator_GetTokenMetadataReq(arg) {
17556
- if (!(arg instanceof avs_pb24.GetTokenMetadataReq)) {
18028
+ if (!(arg instanceof avs_pb25.GetTokenMetadataReq)) {
17557
18029
  throw new Error("Expected argument of type aggregator.GetTokenMetadataReq");
17558
18030
  }
17559
18031
  return Buffer.from(arg.serializeBinary());
17560
18032
  }
17561
18033
  function deserialize_aggregator_GetTokenMetadataReq(buffer_arg) {
17562
- return avs_pb24.GetTokenMetadataReq.deserializeBinary(new Uint8Array(buffer_arg));
18034
+ return avs_pb25.GetTokenMetadataReq.deserializeBinary(new Uint8Array(buffer_arg));
17563
18035
  }
17564
18036
  function serialize_aggregator_GetTokenMetadataResp(arg) {
17565
- if (!(arg instanceof avs_pb24.GetTokenMetadataResp)) {
18037
+ if (!(arg instanceof avs_pb25.GetTokenMetadataResp)) {
17566
18038
  throw new Error("Expected argument of type aggregator.GetTokenMetadataResp");
17567
18039
  }
17568
18040
  return Buffer.from(arg.serializeBinary());
17569
18041
  }
17570
18042
  function deserialize_aggregator_GetTokenMetadataResp(buffer_arg) {
17571
- return avs_pb24.GetTokenMetadataResp.deserializeBinary(new Uint8Array(buffer_arg));
18043
+ return avs_pb25.GetTokenMetadataResp.deserializeBinary(new Uint8Array(buffer_arg));
17572
18044
  }
17573
18045
  function serialize_aggregator_GetWalletReq(arg) {
17574
- if (!(arg instanceof avs_pb24.GetWalletReq)) {
18046
+ if (!(arg instanceof avs_pb25.GetWalletReq)) {
17575
18047
  throw new Error("Expected argument of type aggregator.GetWalletReq");
17576
18048
  }
17577
18049
  return Buffer.from(arg.serializeBinary());
17578
18050
  }
17579
18051
  function deserialize_aggregator_GetWalletReq(buffer_arg) {
17580
- return avs_pb24.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
18052
+ return avs_pb25.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
17581
18053
  }
17582
18054
  function serialize_aggregator_GetWalletResp(arg) {
17583
- if (!(arg instanceof avs_pb24.GetWalletResp)) {
18055
+ if (!(arg instanceof avs_pb25.GetWalletResp)) {
17584
18056
  throw new Error("Expected argument of type aggregator.GetWalletResp");
17585
18057
  }
17586
18058
  return Buffer.from(arg.serializeBinary());
17587
18059
  }
17588
18060
  function deserialize_aggregator_GetWalletResp(buffer_arg) {
17589
- return avs_pb24.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
18061
+ return avs_pb25.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
17590
18062
  }
17591
18063
  function serialize_aggregator_GetWorkflowCountReq(arg) {
17592
- if (!(arg instanceof avs_pb24.GetWorkflowCountReq)) {
18064
+ if (!(arg instanceof avs_pb25.GetWorkflowCountReq)) {
17593
18065
  throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
17594
18066
  }
17595
18067
  return Buffer.from(arg.serializeBinary());
17596
18068
  }
17597
18069
  function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
17598
- return avs_pb24.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
18070
+ return avs_pb25.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
17599
18071
  }
17600
18072
  function serialize_aggregator_GetWorkflowCountResp(arg) {
17601
- if (!(arg instanceof avs_pb24.GetWorkflowCountResp)) {
18073
+ if (!(arg instanceof avs_pb25.GetWorkflowCountResp)) {
17602
18074
  throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
17603
18075
  }
17604
18076
  return Buffer.from(arg.serializeBinary());
17605
18077
  }
17606
18078
  function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
17607
- return avs_pb24.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
18079
+ return avs_pb25.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
17608
18080
  }
17609
18081
  function serialize_aggregator_IdReq(arg) {
17610
- if (!(arg instanceof avs_pb24.IdReq)) {
18082
+ if (!(arg instanceof avs_pb25.IdReq)) {
17611
18083
  throw new Error("Expected argument of type aggregator.IdReq");
17612
18084
  }
17613
18085
  return Buffer.from(arg.serializeBinary());
17614
18086
  }
17615
18087
  function deserialize_aggregator_IdReq(buffer_arg) {
17616
- return avs_pb24.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
18088
+ return avs_pb25.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
17617
18089
  }
17618
18090
  function serialize_aggregator_KeyResp(arg) {
17619
- if (!(arg instanceof avs_pb24.KeyResp)) {
18091
+ if (!(arg instanceof avs_pb25.KeyResp)) {
17620
18092
  throw new Error("Expected argument of type aggregator.KeyResp");
17621
18093
  }
17622
18094
  return Buffer.from(arg.serializeBinary());
17623
18095
  }
17624
18096
  function deserialize_aggregator_KeyResp(buffer_arg) {
17625
- return avs_pb24.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
18097
+ return avs_pb25.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
17626
18098
  }
17627
18099
  function serialize_aggregator_ListExecutionsReq(arg) {
17628
- if (!(arg instanceof avs_pb24.ListExecutionsReq)) {
18100
+ if (!(arg instanceof avs_pb25.ListExecutionsReq)) {
17629
18101
  throw new Error("Expected argument of type aggregator.ListExecutionsReq");
17630
18102
  }
17631
18103
  return Buffer.from(arg.serializeBinary());
17632
18104
  }
17633
18105
  function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
17634
- return avs_pb24.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
18106
+ return avs_pb25.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
17635
18107
  }
17636
18108
  function serialize_aggregator_ListExecutionsResp(arg) {
17637
- if (!(arg instanceof avs_pb24.ListExecutionsResp)) {
18109
+ if (!(arg instanceof avs_pb25.ListExecutionsResp)) {
17638
18110
  throw new Error("Expected argument of type aggregator.ListExecutionsResp");
17639
18111
  }
17640
18112
  return Buffer.from(arg.serializeBinary());
17641
18113
  }
17642
18114
  function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
17643
- return avs_pb24.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
18115
+ return avs_pb25.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
17644
18116
  }
17645
18117
  function serialize_aggregator_ListSecretsReq(arg) {
17646
- if (!(arg instanceof avs_pb24.ListSecretsReq)) {
18118
+ if (!(arg instanceof avs_pb25.ListSecretsReq)) {
17647
18119
  throw new Error("Expected argument of type aggregator.ListSecretsReq");
17648
18120
  }
17649
18121
  return Buffer.from(arg.serializeBinary());
17650
18122
  }
17651
18123
  function deserialize_aggregator_ListSecretsReq(buffer_arg) {
17652
- return avs_pb24.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
18124
+ return avs_pb25.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
17653
18125
  }
17654
18126
  function serialize_aggregator_ListSecretsResp(arg) {
17655
- if (!(arg instanceof avs_pb24.ListSecretsResp)) {
18127
+ if (!(arg instanceof avs_pb25.ListSecretsResp)) {
17656
18128
  throw new Error("Expected argument of type aggregator.ListSecretsResp");
17657
18129
  }
17658
18130
  return Buffer.from(arg.serializeBinary());
17659
18131
  }
17660
18132
  function deserialize_aggregator_ListSecretsResp(buffer_arg) {
17661
- return avs_pb24.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
18133
+ return avs_pb25.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
17662
18134
  }
17663
18135
  function serialize_aggregator_ListTasksReq(arg) {
17664
- if (!(arg instanceof avs_pb24.ListTasksReq)) {
18136
+ if (!(arg instanceof avs_pb25.ListTasksReq)) {
17665
18137
  throw new Error("Expected argument of type aggregator.ListTasksReq");
17666
18138
  }
17667
18139
  return Buffer.from(arg.serializeBinary());
17668
18140
  }
17669
18141
  function deserialize_aggregator_ListTasksReq(buffer_arg) {
17670
- return avs_pb24.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
18142
+ return avs_pb25.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
17671
18143
  }
17672
18144
  function serialize_aggregator_ListTasksResp(arg) {
17673
- if (!(arg instanceof avs_pb24.ListTasksResp)) {
18145
+ if (!(arg instanceof avs_pb25.ListTasksResp)) {
17674
18146
  throw new Error("Expected argument of type aggregator.ListTasksResp");
17675
18147
  }
17676
18148
  return Buffer.from(arg.serializeBinary());
17677
18149
  }
17678
18150
  function deserialize_aggregator_ListTasksResp(buffer_arg) {
17679
- return avs_pb24.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
18151
+ return avs_pb25.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
17680
18152
  }
17681
18153
  function serialize_aggregator_ListWalletReq(arg) {
17682
- if (!(arg instanceof avs_pb24.ListWalletReq)) {
18154
+ if (!(arg instanceof avs_pb25.ListWalletReq)) {
17683
18155
  throw new Error("Expected argument of type aggregator.ListWalletReq");
17684
18156
  }
17685
18157
  return Buffer.from(arg.serializeBinary());
17686
18158
  }
17687
18159
  function deserialize_aggregator_ListWalletReq(buffer_arg) {
17688
- return avs_pb24.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
18160
+ return avs_pb25.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
17689
18161
  }
17690
18162
  function serialize_aggregator_ListWalletResp(arg) {
17691
- if (!(arg instanceof avs_pb24.ListWalletResp)) {
18163
+ if (!(arg instanceof avs_pb25.ListWalletResp)) {
17692
18164
  throw new Error("Expected argument of type aggregator.ListWalletResp");
17693
18165
  }
17694
18166
  return Buffer.from(arg.serializeBinary());
17695
18167
  }
17696
18168
  function deserialize_aggregator_ListWalletResp(buffer_arg) {
17697
- return avs_pb24.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
18169
+ return avs_pb25.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
17698
18170
  }
17699
18171
  function serialize_aggregator_NonceRequest(arg) {
17700
- if (!(arg instanceof avs_pb24.NonceRequest)) {
18172
+ if (!(arg instanceof avs_pb25.NonceRequest)) {
17701
18173
  throw new Error("Expected argument of type aggregator.NonceRequest");
17702
18174
  }
17703
18175
  return Buffer.from(arg.serializeBinary());
17704
18176
  }
17705
18177
  function deserialize_aggregator_NonceRequest(buffer_arg) {
17706
- return avs_pb24.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
18178
+ return avs_pb25.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
17707
18179
  }
17708
18180
  function serialize_aggregator_NonceResp(arg) {
17709
- if (!(arg instanceof avs_pb24.NonceResp)) {
18181
+ if (!(arg instanceof avs_pb25.NonceResp)) {
17710
18182
  throw new Error("Expected argument of type aggregator.NonceResp");
17711
18183
  }
17712
18184
  return Buffer.from(arg.serializeBinary());
17713
18185
  }
17714
18186
  function deserialize_aggregator_NonceResp(buffer_arg) {
17715
- return avs_pb24.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
18187
+ return avs_pb25.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
17716
18188
  }
17717
18189
  function serialize_aggregator_RunNodeWithInputsReq(arg) {
17718
- if (!(arg instanceof avs_pb24.RunNodeWithInputsReq)) {
18190
+ if (!(arg instanceof avs_pb25.RunNodeWithInputsReq)) {
17719
18191
  throw new Error("Expected argument of type aggregator.RunNodeWithInputsReq");
17720
18192
  }
17721
18193
  return Buffer.from(arg.serializeBinary());
17722
18194
  }
17723
18195
  function deserialize_aggregator_RunNodeWithInputsReq(buffer_arg) {
17724
- return avs_pb24.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
18196
+ return avs_pb25.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
17725
18197
  }
17726
18198
  function serialize_aggregator_RunNodeWithInputsResp(arg) {
17727
- if (!(arg instanceof avs_pb24.RunNodeWithInputsResp)) {
18199
+ if (!(arg instanceof avs_pb25.RunNodeWithInputsResp)) {
17728
18200
  throw new Error("Expected argument of type aggregator.RunNodeWithInputsResp");
17729
18201
  }
17730
18202
  return Buffer.from(arg.serializeBinary());
17731
18203
  }
17732
18204
  function deserialize_aggregator_RunNodeWithInputsResp(buffer_arg) {
17733
- return avs_pb24.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
18205
+ return avs_pb25.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
17734
18206
  }
17735
18207
  function serialize_aggregator_RunTriggerReq(arg) {
17736
- if (!(arg instanceof avs_pb24.RunTriggerReq)) {
18208
+ if (!(arg instanceof avs_pb25.RunTriggerReq)) {
17737
18209
  throw new Error("Expected argument of type aggregator.RunTriggerReq");
17738
18210
  }
17739
18211
  return Buffer.from(arg.serializeBinary());
17740
18212
  }
17741
18213
  function deserialize_aggregator_RunTriggerReq(buffer_arg) {
17742
- return avs_pb24.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
18214
+ return avs_pb25.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
17743
18215
  }
17744
18216
  function serialize_aggregator_RunTriggerResp(arg) {
17745
- if (!(arg instanceof avs_pb24.RunTriggerResp)) {
18217
+ if (!(arg instanceof avs_pb25.RunTriggerResp)) {
17746
18218
  throw new Error("Expected argument of type aggregator.RunTriggerResp");
17747
18219
  }
17748
18220
  return Buffer.from(arg.serializeBinary());
17749
18221
  }
17750
18222
  function deserialize_aggregator_RunTriggerResp(buffer_arg) {
17751
- return avs_pb24.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
18223
+ return avs_pb25.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
17752
18224
  }
17753
18225
  function serialize_aggregator_SetWalletReq(arg) {
17754
- if (!(arg instanceof avs_pb24.SetWalletReq)) {
18226
+ if (!(arg instanceof avs_pb25.SetWalletReq)) {
17755
18227
  throw new Error("Expected argument of type aggregator.SetWalletReq");
17756
18228
  }
17757
18229
  return Buffer.from(arg.serializeBinary());
17758
18230
  }
17759
18231
  function deserialize_aggregator_SetWalletReq(buffer_arg) {
17760
- return avs_pb24.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
18232
+ return avs_pb25.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
17761
18233
  }
17762
18234
  function serialize_aggregator_SimulateTaskReq(arg) {
17763
- if (!(arg instanceof avs_pb24.SimulateTaskReq)) {
18235
+ if (!(arg instanceof avs_pb25.SimulateTaskReq)) {
17764
18236
  throw new Error("Expected argument of type aggregator.SimulateTaskReq");
17765
18237
  }
17766
18238
  return Buffer.from(arg.serializeBinary());
17767
18239
  }
17768
18240
  function deserialize_aggregator_SimulateTaskReq(buffer_arg) {
17769
- return avs_pb24.SimulateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
18241
+ return avs_pb25.SimulateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
17770
18242
  }
17771
18243
  function serialize_aggregator_Task(arg) {
17772
- if (!(arg instanceof avs_pb24.Task)) {
18244
+ if (!(arg instanceof avs_pb25.Task)) {
17773
18245
  throw new Error("Expected argument of type aggregator.Task");
17774
18246
  }
17775
18247
  return Buffer.from(arg.serializeBinary());
17776
18248
  }
17777
18249
  function deserialize_aggregator_Task(buffer_arg) {
17778
- return avs_pb24.Task.deserializeBinary(new Uint8Array(buffer_arg));
18250
+ return avs_pb25.Task.deserializeBinary(new Uint8Array(buffer_arg));
17779
18251
  }
17780
18252
  function serialize_aggregator_TriggerTaskReq(arg) {
17781
- if (!(arg instanceof avs_pb24.TriggerTaskReq)) {
18253
+ if (!(arg instanceof avs_pb25.TriggerTaskReq)) {
17782
18254
  throw new Error("Expected argument of type aggregator.TriggerTaskReq");
17783
18255
  }
17784
18256
  return Buffer.from(arg.serializeBinary());
17785
18257
  }
17786
18258
  function deserialize_aggregator_TriggerTaskReq(buffer_arg) {
17787
- return avs_pb24.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
18259
+ return avs_pb25.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
17788
18260
  }
17789
18261
  function serialize_aggregator_TriggerTaskResp(arg) {
17790
- if (!(arg instanceof avs_pb24.TriggerTaskResp)) {
18262
+ if (!(arg instanceof avs_pb25.TriggerTaskResp)) {
17791
18263
  throw new Error("Expected argument of type aggregator.TriggerTaskResp");
17792
18264
  }
17793
18265
  return Buffer.from(arg.serializeBinary());
17794
18266
  }
17795
18267
  function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
17796
- return avs_pb24.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
18268
+ return avs_pb25.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17797
18269
  }
17798
18270
  function serialize_aggregator_UpdateSecretResp(arg) {
17799
- if (!(arg instanceof avs_pb24.UpdateSecretResp)) {
18271
+ if (!(arg instanceof avs_pb25.UpdateSecretResp)) {
17800
18272
  throw new Error("Expected argument of type aggregator.UpdateSecretResp");
17801
18273
  }
17802
18274
  return Buffer.from(arg.serializeBinary());
17803
18275
  }
17804
18276
  function deserialize_aggregator_UpdateSecretResp(buffer_arg) {
17805
- return avs_pb24.UpdateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
18277
+ return avs_pb25.UpdateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
17806
18278
  }
17807
18279
  function serialize_aggregator_WithdrawFundsReq(arg) {
17808
- if (!(arg instanceof avs_pb24.WithdrawFundsReq)) {
18280
+ if (!(arg instanceof avs_pb25.WithdrawFundsReq)) {
17809
18281
  throw new Error("Expected argument of type aggregator.WithdrawFundsReq");
17810
18282
  }
17811
18283
  return Buffer.from(arg.serializeBinary());
17812
18284
  }
17813
18285
  function deserialize_aggregator_WithdrawFundsReq(buffer_arg) {
17814
- return avs_pb24.WithdrawFundsReq.deserializeBinary(new Uint8Array(buffer_arg));
18286
+ return avs_pb25.WithdrawFundsReq.deserializeBinary(new Uint8Array(buffer_arg));
17815
18287
  }
17816
18288
  function serialize_aggregator_WithdrawFundsResp(arg) {
17817
- if (!(arg instanceof avs_pb24.WithdrawFundsResp)) {
18289
+ if (!(arg instanceof avs_pb25.WithdrawFundsResp)) {
17818
18290
  throw new Error("Expected argument of type aggregator.WithdrawFundsResp");
17819
18291
  }
17820
18292
  return Buffer.from(arg.serializeBinary());
17821
18293
  }
17822
18294
  function deserialize_aggregator_WithdrawFundsResp(buffer_arg) {
17823
- return avs_pb24.WithdrawFundsResp.deserializeBinary(new Uint8Array(buffer_arg));
18295
+ return avs_pb25.WithdrawFundsResp.deserializeBinary(new Uint8Array(buffer_arg));
17824
18296
  }
17825
18297
  var AggregatorService = exports.AggregatorService = {
17826
18298
  // Exchange for an Auth Key to authenticate in subsequent request
@@ -17828,8 +18300,8 @@ var require_avs_grpc_pb = __commonJS({
17828
18300
  path: "/aggregator.Aggregator/GetKey",
17829
18301
  requestStream: false,
17830
18302
  responseStream: false,
17831
- requestType: avs_pb24.GetKeyReq,
17832
- responseType: avs_pb24.KeyResp,
18303
+ requestType: avs_pb25.GetKeyReq,
18304
+ responseType: avs_pb25.KeyResp,
17833
18305
  requestSerialize: serialize_aggregator_GetKeyReq,
17834
18306
  requestDeserialize: deserialize_aggregator_GetKeyReq,
17835
18307
  responseSerialize: serialize_aggregator_KeyResp,
@@ -17840,8 +18312,8 @@ var require_avs_grpc_pb = __commonJS({
17840
18312
  path: "/aggregator.Aggregator/GetSignatureFormat",
17841
18313
  requestStream: false,
17842
18314
  responseStream: false,
17843
- requestType: avs_pb24.GetSignatureFormatReq,
17844
- responseType: avs_pb24.GetSignatureFormatResp,
18315
+ requestType: avs_pb25.GetSignatureFormatReq,
18316
+ responseType: avs_pb25.GetSignatureFormatResp,
17845
18317
  requestSerialize: serialize_aggregator_GetSignatureFormatReq,
17846
18318
  requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
17847
18319
  responseSerialize: serialize_aggregator_GetSignatureFormatResp,
@@ -17852,8 +18324,8 @@ var require_avs_grpc_pb = __commonJS({
17852
18324
  path: "/aggregator.Aggregator/GetNonce",
17853
18325
  requestStream: false,
17854
18326
  responseStream: false,
17855
- requestType: avs_pb24.NonceRequest,
17856
- responseType: avs_pb24.NonceResp,
18327
+ requestType: avs_pb25.NonceRequest,
18328
+ responseType: avs_pb25.NonceResp,
17857
18329
  requestSerialize: serialize_aggregator_NonceRequest,
17858
18330
  requestDeserialize: deserialize_aggregator_NonceRequest,
17859
18331
  responseSerialize: serialize_aggregator_NonceResp,
@@ -17863,8 +18335,8 @@ var require_avs_grpc_pb = __commonJS({
17863
18335
  path: "/aggregator.Aggregator/GetWallet",
17864
18336
  requestStream: false,
17865
18337
  responseStream: false,
17866
- requestType: avs_pb24.GetWalletReq,
17867
- responseType: avs_pb24.GetWalletResp,
18338
+ requestType: avs_pb25.GetWalletReq,
18339
+ responseType: avs_pb25.GetWalletResp,
17868
18340
  requestSerialize: serialize_aggregator_GetWalletReq,
17869
18341
  requestDeserialize: deserialize_aggregator_GetWalletReq,
17870
18342
  responseSerialize: serialize_aggregator_GetWalletResp,
@@ -17874,8 +18346,8 @@ var require_avs_grpc_pb = __commonJS({
17874
18346
  path: "/aggregator.Aggregator/SetWallet",
17875
18347
  requestStream: false,
17876
18348
  responseStream: false,
17877
- requestType: avs_pb24.SetWalletReq,
17878
- responseType: avs_pb24.GetWalletResp,
18349
+ requestType: avs_pb25.SetWalletReq,
18350
+ responseType: avs_pb25.GetWalletResp,
17879
18351
  requestSerialize: serialize_aggregator_SetWalletReq,
17880
18352
  requestDeserialize: deserialize_aggregator_SetWalletReq,
17881
18353
  responseSerialize: serialize_aggregator_GetWalletResp,
@@ -17885,8 +18357,8 @@ var require_avs_grpc_pb = __commonJS({
17885
18357
  path: "/aggregator.Aggregator/ListWallets",
17886
18358
  requestStream: false,
17887
18359
  responseStream: false,
17888
- requestType: avs_pb24.ListWalletReq,
17889
- responseType: avs_pb24.ListWalletResp,
18360
+ requestType: avs_pb25.ListWalletReq,
18361
+ responseType: avs_pb25.ListWalletResp,
17890
18362
  requestSerialize: serialize_aggregator_ListWalletReq,
17891
18363
  requestDeserialize: deserialize_aggregator_ListWalletReq,
17892
18364
  responseSerialize: serialize_aggregator_ListWalletResp,
@@ -17897,8 +18369,8 @@ var require_avs_grpc_pb = __commonJS({
17897
18369
  path: "/aggregator.Aggregator/WithdrawFunds",
17898
18370
  requestStream: false,
17899
18371
  responseStream: false,
17900
- requestType: avs_pb24.WithdrawFundsReq,
17901
- responseType: avs_pb24.WithdrawFundsResp,
18372
+ requestType: avs_pb25.WithdrawFundsReq,
18373
+ responseType: avs_pb25.WithdrawFundsResp,
17902
18374
  requestSerialize: serialize_aggregator_WithdrawFundsReq,
17903
18375
  requestDeserialize: deserialize_aggregator_WithdrawFundsReq,
17904
18376
  responseSerialize: serialize_aggregator_WithdrawFundsResp,
@@ -17909,8 +18381,8 @@ var require_avs_grpc_pb = __commonJS({
17909
18381
  path: "/aggregator.Aggregator/CreateTask",
17910
18382
  requestStream: false,
17911
18383
  responseStream: false,
17912
- requestType: avs_pb24.CreateTaskReq,
17913
- responseType: avs_pb24.CreateTaskResp,
18384
+ requestType: avs_pb25.CreateTaskReq,
18385
+ responseType: avs_pb25.CreateTaskResp,
17914
18386
  requestSerialize: serialize_aggregator_CreateTaskReq,
17915
18387
  requestDeserialize: deserialize_aggregator_CreateTaskReq,
17916
18388
  responseSerialize: serialize_aggregator_CreateTaskResp,
@@ -17920,8 +18392,8 @@ var require_avs_grpc_pb = __commonJS({
17920
18392
  path: "/aggregator.Aggregator/ListTasks",
17921
18393
  requestStream: false,
17922
18394
  responseStream: false,
17923
- requestType: avs_pb24.ListTasksReq,
17924
- responseType: avs_pb24.ListTasksResp,
18395
+ requestType: avs_pb25.ListTasksReq,
18396
+ responseType: avs_pb25.ListTasksResp,
17925
18397
  requestSerialize: serialize_aggregator_ListTasksReq,
17926
18398
  requestDeserialize: deserialize_aggregator_ListTasksReq,
17927
18399
  responseSerialize: serialize_aggregator_ListTasksResp,
@@ -17931,8 +18403,8 @@ var require_avs_grpc_pb = __commonJS({
17931
18403
  path: "/aggregator.Aggregator/GetTask",
17932
18404
  requestStream: false,
17933
18405
  responseStream: false,
17934
- requestType: avs_pb24.IdReq,
17935
- responseType: avs_pb24.Task,
18406
+ requestType: avs_pb25.IdReq,
18407
+ responseType: avs_pb25.Task,
17936
18408
  requestSerialize: serialize_aggregator_IdReq,
17937
18409
  requestDeserialize: deserialize_aggregator_IdReq,
17938
18410
  responseSerialize: serialize_aggregator_Task,
@@ -17942,8 +18414,8 @@ var require_avs_grpc_pb = __commonJS({
17942
18414
  path: "/aggregator.Aggregator/ListExecutions",
17943
18415
  requestStream: false,
17944
18416
  responseStream: false,
17945
- requestType: avs_pb24.ListExecutionsReq,
17946
- responseType: avs_pb24.ListExecutionsResp,
18417
+ requestType: avs_pb25.ListExecutionsReq,
18418
+ responseType: avs_pb25.ListExecutionsResp,
17947
18419
  requestSerialize: serialize_aggregator_ListExecutionsReq,
17948
18420
  requestDeserialize: deserialize_aggregator_ListExecutionsReq,
17949
18421
  responseSerialize: serialize_aggregator_ListExecutionsResp,
@@ -17953,8 +18425,8 @@ var require_avs_grpc_pb = __commonJS({
17953
18425
  path: "/aggregator.Aggregator/GetExecution",
17954
18426
  requestStream: false,
17955
18427
  responseStream: false,
17956
- requestType: avs_pb24.ExecutionReq,
17957
- responseType: avs_pb24.Execution,
18428
+ requestType: avs_pb25.ExecutionReq,
18429
+ responseType: avs_pb25.Execution,
17958
18430
  requestSerialize: serialize_aggregator_ExecutionReq,
17959
18431
  requestDeserialize: deserialize_aggregator_ExecutionReq,
17960
18432
  responseSerialize: serialize_aggregator_Execution,
@@ -17964,8 +18436,8 @@ var require_avs_grpc_pb = __commonJS({
17964
18436
  path: "/aggregator.Aggregator/GetExecutionStatus",
17965
18437
  requestStream: false,
17966
18438
  responseStream: false,
17967
- requestType: avs_pb24.ExecutionReq,
17968
- responseType: avs_pb24.ExecutionStatusResp,
18439
+ requestType: avs_pb25.ExecutionReq,
18440
+ responseType: avs_pb25.ExecutionStatusResp,
17969
18441
  requestSerialize: serialize_aggregator_ExecutionReq,
17970
18442
  requestDeserialize: deserialize_aggregator_ExecutionReq,
17971
18443
  responseSerialize: serialize_aggregator_ExecutionStatusResp,
@@ -17975,8 +18447,8 @@ var require_avs_grpc_pb = __commonJS({
17975
18447
  path: "/aggregator.Aggregator/CancelTask",
17976
18448
  requestStream: false,
17977
18449
  responseStream: false,
17978
- requestType: avs_pb24.IdReq,
17979
- responseType: avs_pb24.CancelTaskResp,
18450
+ requestType: avs_pb25.IdReq,
18451
+ responseType: avs_pb25.CancelTaskResp,
17980
18452
  requestSerialize: serialize_aggregator_IdReq,
17981
18453
  requestDeserialize: deserialize_aggregator_IdReq,
17982
18454
  responseSerialize: serialize_aggregator_CancelTaskResp,
@@ -17986,8 +18458,8 @@ var require_avs_grpc_pb = __commonJS({
17986
18458
  path: "/aggregator.Aggregator/DeleteTask",
17987
18459
  requestStream: false,
17988
18460
  responseStream: false,
17989
- requestType: avs_pb24.IdReq,
17990
- responseType: avs_pb24.DeleteTaskResp,
18461
+ requestType: avs_pb25.IdReq,
18462
+ responseType: avs_pb25.DeleteTaskResp,
17991
18463
  requestSerialize: serialize_aggregator_IdReq,
17992
18464
  requestDeserialize: deserialize_aggregator_IdReq,
17993
18465
  responseSerialize: serialize_aggregator_DeleteTaskResp,
@@ -17997,8 +18469,8 @@ var require_avs_grpc_pb = __commonJS({
17997
18469
  path: "/aggregator.Aggregator/TriggerTask",
17998
18470
  requestStream: false,
17999
18471
  responseStream: false,
18000
- requestType: avs_pb24.TriggerTaskReq,
18001
- responseType: avs_pb24.TriggerTaskResp,
18472
+ requestType: avs_pb25.TriggerTaskReq,
18473
+ responseType: avs_pb25.TriggerTaskResp,
18002
18474
  requestSerialize: serialize_aggregator_TriggerTaskReq,
18003
18475
  requestDeserialize: deserialize_aggregator_TriggerTaskReq,
18004
18476
  responseSerialize: serialize_aggregator_TriggerTaskResp,
@@ -18011,8 +18483,8 @@ var require_avs_grpc_pb = __commonJS({
18011
18483
  path: "/aggregator.Aggregator/CreateSecret",
18012
18484
  requestStream: false,
18013
18485
  responseStream: false,
18014
- requestType: avs_pb24.CreateOrUpdateSecretReq,
18015
- responseType: avs_pb24.CreateSecretResp,
18486
+ requestType: avs_pb25.CreateOrUpdateSecretReq,
18487
+ responseType: avs_pb25.CreateSecretResp,
18016
18488
  requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
18017
18489
  requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
18018
18490
  responseSerialize: serialize_aggregator_CreateSecretResp,
@@ -18022,8 +18494,8 @@ var require_avs_grpc_pb = __commonJS({
18022
18494
  path: "/aggregator.Aggregator/DeleteSecret",
18023
18495
  requestStream: false,
18024
18496
  responseStream: false,
18025
- requestType: avs_pb24.DeleteSecretReq,
18026
- responseType: avs_pb24.DeleteSecretResp,
18497
+ requestType: avs_pb25.DeleteSecretReq,
18498
+ responseType: avs_pb25.DeleteSecretResp,
18027
18499
  requestSerialize: serialize_aggregator_DeleteSecretReq,
18028
18500
  requestDeserialize: deserialize_aggregator_DeleteSecretReq,
18029
18501
  responseSerialize: serialize_aggregator_DeleteSecretResp,
@@ -18035,8 +18507,8 @@ var require_avs_grpc_pb = __commonJS({
18035
18507
  path: "/aggregator.Aggregator/ListSecrets",
18036
18508
  requestStream: false,
18037
18509
  responseStream: false,
18038
- requestType: avs_pb24.ListSecretsReq,
18039
- responseType: avs_pb24.ListSecretsResp,
18510
+ requestType: avs_pb25.ListSecretsReq,
18511
+ responseType: avs_pb25.ListSecretsResp,
18040
18512
  requestSerialize: serialize_aggregator_ListSecretsReq,
18041
18513
  requestDeserialize: deserialize_aggregator_ListSecretsReq,
18042
18514
  responseSerialize: serialize_aggregator_ListSecretsResp,
@@ -18048,8 +18520,8 @@ var require_avs_grpc_pb = __commonJS({
18048
18520
  path: "/aggregator.Aggregator/UpdateSecret",
18049
18521
  requestStream: false,
18050
18522
  responseStream: false,
18051
- requestType: avs_pb24.CreateOrUpdateSecretReq,
18052
- responseType: avs_pb24.UpdateSecretResp,
18523
+ requestType: avs_pb25.CreateOrUpdateSecretReq,
18524
+ responseType: avs_pb25.UpdateSecretResp,
18053
18525
  requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
18054
18526
  requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
18055
18527
  responseSerialize: serialize_aggregator_UpdateSecretResp,
@@ -18065,8 +18537,8 @@ var require_avs_grpc_pb = __commonJS({
18065
18537
  path: "/aggregator.Aggregator/GetWorkflowCount",
18066
18538
  requestStream: false,
18067
18539
  responseStream: false,
18068
- requestType: avs_pb24.GetWorkflowCountReq,
18069
- responseType: avs_pb24.GetWorkflowCountResp,
18540
+ requestType: avs_pb25.GetWorkflowCountReq,
18541
+ responseType: avs_pb25.GetWorkflowCountResp,
18070
18542
  requestSerialize: serialize_aggregator_GetWorkflowCountReq,
18071
18543
  requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
18072
18544
  responseSerialize: serialize_aggregator_GetWorkflowCountResp,
@@ -18080,8 +18552,8 @@ var require_avs_grpc_pb = __commonJS({
18080
18552
  path: "/aggregator.Aggregator/GetExecutionCount",
18081
18553
  requestStream: false,
18082
18554
  responseStream: false,
18083
- requestType: avs_pb24.GetExecutionCountReq,
18084
- responseType: avs_pb24.GetExecutionCountResp,
18555
+ requestType: avs_pb25.GetExecutionCountReq,
18556
+ responseType: avs_pb25.GetExecutionCountResp,
18085
18557
  requestSerialize: serialize_aggregator_GetExecutionCountReq,
18086
18558
  requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
18087
18559
  responseSerialize: serialize_aggregator_GetExecutionCountResp,
@@ -18094,8 +18566,8 @@ var require_avs_grpc_pb = __commonJS({
18094
18566
  path: "/aggregator.Aggregator/GetExecutionStats",
18095
18567
  requestStream: false,
18096
18568
  responseStream: false,
18097
- requestType: avs_pb24.GetExecutionStatsReq,
18098
- responseType: avs_pb24.GetExecutionStatsResp,
18569
+ requestType: avs_pb25.GetExecutionStatsReq,
18570
+ responseType: avs_pb25.GetExecutionStatsResp,
18099
18571
  requestSerialize: serialize_aggregator_GetExecutionStatsReq,
18100
18572
  requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
18101
18573
  responseSerialize: serialize_aggregator_GetExecutionStatsResp,
@@ -18106,8 +18578,8 @@ var require_avs_grpc_pb = __commonJS({
18106
18578
  path: "/aggregator.Aggregator/RunNodeWithInputs",
18107
18579
  requestStream: false,
18108
18580
  responseStream: false,
18109
- requestType: avs_pb24.RunNodeWithInputsReq,
18110
- responseType: avs_pb24.RunNodeWithInputsResp,
18581
+ requestType: avs_pb25.RunNodeWithInputsReq,
18582
+ responseType: avs_pb25.RunNodeWithInputsResp,
18111
18583
  requestSerialize: serialize_aggregator_RunNodeWithInputsReq,
18112
18584
  requestDeserialize: deserialize_aggregator_RunNodeWithInputsReq,
18113
18585
  responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
@@ -18118,8 +18590,8 @@ var require_avs_grpc_pb = __commonJS({
18118
18590
  path: "/aggregator.Aggregator/RunTrigger",
18119
18591
  requestStream: false,
18120
18592
  responseStream: false,
18121
- requestType: avs_pb24.RunTriggerReq,
18122
- responseType: avs_pb24.RunTriggerResp,
18593
+ requestType: avs_pb25.RunTriggerReq,
18594
+ responseType: avs_pb25.RunTriggerResp,
18123
18595
  requestSerialize: serialize_aggregator_RunTriggerReq,
18124
18596
  requestDeserialize: deserialize_aggregator_RunTriggerReq,
18125
18597
  responseSerialize: serialize_aggregator_RunTriggerResp,
@@ -18130,8 +18602,8 @@ var require_avs_grpc_pb = __commonJS({
18130
18602
  path: "/aggregator.Aggregator/SimulateTask",
18131
18603
  requestStream: false,
18132
18604
  responseStream: false,
18133
- requestType: avs_pb24.SimulateTaskReq,
18134
- responseType: avs_pb24.Execution,
18605
+ requestType: avs_pb25.SimulateTaskReq,
18606
+ responseType: avs_pb25.Execution,
18135
18607
  requestSerialize: serialize_aggregator_SimulateTaskReq,
18136
18608
  requestDeserialize: deserialize_aggregator_SimulateTaskReq,
18137
18609
  responseSerialize: serialize_aggregator_Execution,
@@ -18142,8 +18614,8 @@ var require_avs_grpc_pb = __commonJS({
18142
18614
  path: "/aggregator.Aggregator/GetTokenMetadata",
18143
18615
  requestStream: false,
18144
18616
  responseStream: false,
18145
- requestType: avs_pb24.GetTokenMetadataReq,
18146
- responseType: avs_pb24.GetTokenMetadataResp,
18617
+ requestType: avs_pb25.GetTokenMetadataReq,
18618
+ responseType: avs_pb25.GetTokenMetadataResp,
18147
18619
  requestSerialize: serialize_aggregator_GetTokenMetadataReq,
18148
18620
  requestDeserialize: deserialize_aggregator_GetTokenMetadataReq,
18149
18621
  responseSerialize: serialize_aggregator_GetTokenMetadataResp,
@@ -18156,8 +18628,8 @@ var require_avs_grpc_pb = __commonJS({
18156
18628
  path: "/aggregator.Aggregator/EstimateFees",
18157
18629
  requestStream: false,
18158
18630
  responseStream: false,
18159
- requestType: avs_pb24.EstimateFeesReq,
18160
- responseType: avs_pb24.EstimateFeesResp,
18631
+ requestType: avs_pb25.EstimateFeesReq,
18632
+ responseType: avs_pb25.EstimateFeesResp,
18161
18633
  requestSerialize: serialize_aggregator_EstimateFeesReq,
18162
18634
  requestDeserialize: deserialize_aggregator_EstimateFeesReq,
18163
18635
  responseSerialize: serialize_aggregator_EstimateFeesResp,
@@ -18170,11 +18642,11 @@ var require_avs_grpc_pb = __commonJS({
18170
18642
 
18171
18643
  // src/index.ts
18172
18644
  var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
18173
- var avs_pb23 = __toESM(require_avs_pb());
18645
+ var avs_pb24 = __toESM(require_avs_pb());
18174
18646
  import { credentials, Metadata, status } from "@grpc/grpc-js";
18175
18647
 
18176
18648
  // src/models/workflow.ts
18177
- var avs_pb19 = __toESM(require_avs_pb());
18649
+ var avs_pb20 = __toESM(require_avs_pb());
18178
18650
  import _3 from "lodash";
18179
18651
 
18180
18652
  // src/models/edge.ts
@@ -18531,6 +19003,9 @@ function convertProtobufNodeTypeToSdk(protobufType) {
18531
19003
  case "NODE_TYPE_LOOP":
18532
19004
  return NodeType.Loop;
18533
19005
  // "loop"
19006
+ case "NODE_TYPE_BALANCE":
19007
+ return NodeType.Balance;
19008
+ // "balance"
18534
19009
  case "NODE_TYPE_UNSPECIFIED":
18535
19010
  return NodeType.Unspecified;
18536
19011
  // "unspecified"
@@ -18855,7 +19330,9 @@ var fixedTime_default = FixedTimeTrigger2;
18855
19330
  // src/models/trigger/manual.ts
18856
19331
  var avs_pb6 = __toESM(require_avs_pb());
18857
19332
  import {
18858
- TriggerType as TriggerType11
19333
+ TriggerType as TriggerType11,
19334
+ Lang,
19335
+ LangConverter
18859
19336
  } from "@avaprotocol/types";
18860
19337
  var ManualTrigger2 = class _ManualTrigger extends Trigger {
18861
19338
  constructor(props) {
@@ -18878,12 +19355,14 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
18878
19355
  let actualData = this.data;
18879
19356
  let headers = {};
18880
19357
  let pathParams = {};
19358
+ let lang = Lang.JSON;
18881
19359
  if (typeof this.data === "object" && this.data !== null && !Array.isArray(this.data)) {
18882
19360
  const dataObj = this.data;
18883
19361
  if ("data" in dataObj) {
18884
19362
  actualData = dataObj.data;
18885
19363
  headers = dataObj.headers || {};
18886
19364
  pathParams = dataObj.pathParams || {};
19365
+ lang = dataObj.lang || Lang.JSON;
18887
19366
  }
18888
19367
  }
18889
19368
  const dataValue = convertInputToProtobuf(actualData);
@@ -18905,6 +19384,8 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
18905
19384
  pathParamsMap.set(key, value);
18906
19385
  });
18907
19386
  }
19387
+ const langValue = LangConverter.toProtobuf(lang);
19388
+ config.setLang(langValue);
18908
19389
  manualTrigger.setConfig(config);
18909
19390
  trigger.setManual(manualTrigger);
18910
19391
  return trigger;
@@ -18912,6 +19393,7 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
18912
19393
  static fromResponse(raw) {
18913
19394
  const obj = raw.toObject();
18914
19395
  let actualData = null;
19396
+ let lang = Lang.JSON;
18915
19397
  const manualTrigger = raw.getManual();
18916
19398
  if (manualTrigger) {
18917
19399
  const config = manualTrigger.getConfig();
@@ -18919,10 +19401,12 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
18919
19401
  if (config.hasData()) {
18920
19402
  actualData = extractInputFromProtobuf(config.getData());
18921
19403
  }
19404
+ lang = LangConverter.fromProtobuf(config.getLang());
18922
19405
  }
18923
19406
  }
18924
19407
  const manualTriggerData = {
18925
- data: actualData
19408
+ data: actualData,
19409
+ lang
18926
19410
  };
18927
19411
  return new _ManualTrigger({
18928
19412
  ...obj,
@@ -19024,7 +19508,7 @@ var TriggerFactory = class {
19024
19508
  var factory_default = TriggerFactory;
19025
19509
 
19026
19510
  // src/models/node/factory.ts
19027
- var avs_pb18 = __toESM(require_avs_pb());
19511
+ var avs_pb19 = __toESM(require_avs_pb());
19028
19512
  import _2 from "lodash";
19029
19513
 
19030
19514
  // src/models/node/interface.ts
@@ -19143,7 +19627,8 @@ var contractWrite_default = ContractWriteNode2;
19143
19627
  // src/models/node/customCode.ts
19144
19628
  var avs_pb10 = __toESM(require_avs_pb());
19145
19629
  import {
19146
- NodeType as NodeType4
19630
+ NodeType as NodeType4,
19631
+ LangConverter as LangConverter2
19147
19632
  } from "@avaprotocol/types";
19148
19633
  var CustomCodeNode2 = class _CustomCodeNode extends Node {
19149
19634
  constructor(props) {
@@ -19157,17 +19642,25 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
19157
19642
  static createProtobufNode(configData) {
19158
19643
  const node = new avs_pb10.CustomCodeNode();
19159
19644
  const config = new avs_pb10.CustomCodeNode.Config();
19160
- config.setLang(configData.lang);
19645
+ const langValue = LangConverter2.toProtobuf(configData.lang);
19646
+ config.setLang(langValue);
19161
19647
  config.setSource(configData.source);
19162
19648
  node.setConfig(config);
19163
19649
  return node;
19164
19650
  }
19165
19651
  static fromResponse(raw) {
19166
19652
  const obj = raw.toObject();
19167
- const rawConfig = raw.getCustomCode().getConfig().toObject();
19653
+ const customCodeNode = raw.getCustomCode();
19654
+ if (!customCodeNode) {
19655
+ throw new Error("CustomCode node data is missing");
19656
+ }
19657
+ const config = customCodeNode.getConfig();
19658
+ if (!config) {
19659
+ throw new Error("CustomCode config is missing");
19660
+ }
19168
19661
  const convertedConfig = {
19169
- lang: rawConfig.lang,
19170
- source: rawConfig.source
19662
+ lang: LangConverter2.fromProtobuf(config.getLang()),
19663
+ source: config.getSource()
19171
19664
  };
19172
19665
  return new _CustomCodeNode({
19173
19666
  ...obj,
@@ -19808,32 +20301,105 @@ var LoopNode2 = class _LoopNode extends Node {
19808
20301
  };
19809
20302
  var loop_default = LoopNode2;
19810
20303
 
19811
- // src/models/node/factory.ts
20304
+ // src/models/node/balance.ts
20305
+ var avs_pb18 = __toESM(require_avs_pb());
19812
20306
  import {
19813
20307
  NodeType as NodeType12
19814
20308
  } from "@avaprotocol/types";
20309
+ var BalanceNode2 = class _BalanceNode extends Node {
20310
+ constructor(props) {
20311
+ super({ ...props, type: NodeType12.Balance, data: props.data });
20312
+ }
20313
+ /**
20314
+ * Create a protobuf BalanceNode from config data
20315
+ * @param configData - The configuration data for the balance node
20316
+ * @returns Configured avs_pb.BalanceNode
20317
+ */
20318
+ static createProtobufNode(configData) {
20319
+ const node = new avs_pb18.BalanceNode();
20320
+ const config = new avs_pb18.BalanceNode.Config();
20321
+ config.setAddress(configData.address);
20322
+ config.setChain(configData.chain);
20323
+ if (configData.includeSpam !== void 0) {
20324
+ config.setIncludeSpam(configData.includeSpam);
20325
+ }
20326
+ if (configData.includeZeroBalances !== void 0) {
20327
+ config.setIncludeZeroBalances(configData.includeZeroBalances);
20328
+ }
20329
+ if (configData.minUsdValue !== void 0) {
20330
+ config.setMinUsdValueCents(Math.round(configData.minUsdValue * 100));
20331
+ }
20332
+ if (configData.tokenAddresses !== void 0 && configData.tokenAddresses.length > 0) {
20333
+ config.setTokenAddressesList(configData.tokenAddresses);
20334
+ }
20335
+ node.setConfig(config);
20336
+ return node;
20337
+ }
20338
+ static fromResponse(raw) {
20339
+ const obj = raw.toObject();
20340
+ const balanceNode = raw.getBalance();
20341
+ const config = balanceNode.getConfig();
20342
+ const protobufData = config.toObject();
20343
+ const data = {
20344
+ address: protobufData.address,
20345
+ chain: protobufData.chain,
20346
+ includeSpam: protobufData.includeSpam,
20347
+ includeZeroBalances: protobufData.includeZeroBalances,
20348
+ minUsdValue: protobufData.minUsdValueCents / 100,
20349
+ tokenAddresses: protobufData.tokenAddressesList
20350
+ };
20351
+ return new _BalanceNode({
20352
+ ...obj,
20353
+ type: NodeType12.Balance,
20354
+ data
20355
+ });
20356
+ }
20357
+ toRequest() {
20358
+ const request = new avs_pb18.TaskNode();
20359
+ request.setId(this.id);
20360
+ request.setName(this.name);
20361
+ const node = _BalanceNode.createProtobufNode(this.data);
20362
+ request.setBalance(node);
20363
+ return request;
20364
+ }
20365
+ static fromOutputData(outputData) {
20366
+ const balanceOutput = outputData.getBalance();
20367
+ if (!balanceOutput) return null;
20368
+ const dataValue = balanceOutput.getData();
20369
+ const balanceData = dataValue ? convertProtobufValueToJs(dataValue) : [];
20370
+ return balanceData;
20371
+ }
20372
+ };
20373
+ var balance_default = BalanceNode2;
20374
+
20375
+ // src/models/node/factory.ts
20376
+ import {
20377
+ NodeType as NodeType13
20378
+ } from "@avaprotocol/types";
19815
20379
  var NodeFactory = class {
19816
20380
  static create(props) {
19817
20381
  switch (props.type) {
19818
- case NodeType12.ContractWrite:
20382
+ case NodeType13.ContractWrite:
19819
20383
  return new contractWrite_default(props);
19820
- case NodeType12.RestAPI:
20384
+ case NodeType13.RestAPI:
19821
20385
  return new restApi_default(props);
19822
- case NodeType12.CustomCode:
20386
+ case NodeType13.CustomCode:
19823
20387
  return new customCode_default(props);
19824
- case NodeType12.ContractRead:
20388
+ case NodeType13.ContractRead:
19825
20389
  return new contractRead_default(props);
19826
- case NodeType12.ETHTransfer:
20390
+ case NodeType13.ETHTransfer:
19827
20391
  return new ethTransfer_default(props);
19828
- case NodeType12.GraphQLQuery:
20392
+ case NodeType13.GraphQLQuery:
19829
20393
  return new graphqlQuery_default(props);
19830
- case NodeType12.Branch:
20394
+ case NodeType13.Branch:
19831
20395
  return new branch_default(props);
19832
- case NodeType12.Filter:
20396
+ case NodeType13.Filter:
19833
20397
  return new filter_default(props);
19834
- case NodeType12.Loop:
20398
+ case NodeType13.Loop:
19835
20399
  return new loop_default(props);
19836
- case NodeType12.Unspecified:
20400
+ case NodeType13.Balance:
20401
+ return new balance_default(props);
20402
+ case NodeType13.Unspecified:
19837
20403
  throw new Error("Cannot create node with unspecified type");
19838
20404
  default:
19839
20405
  throw new Error(`Unsupported node type: ${props.type}`);
@@ -19862,31 +20428,35 @@ var NodeFactory = class {
19862
20428
  return filter_default.fromResponse(raw);
19863
20429
  case !!raw.getLoop():
19864
20430
  return loop_default.fromResponse(raw);
20431
+ case !!raw.getBalance():
20432
+ return balance_default.fromResponse(raw);
19865
20433
  default:
19866
20434
  throw new Error(`Unsupported node type: ${raw.getName()}`);
19867
20435
  }
19868
20436
  }
19869
20437
  static fromOutputData(outputData) {
19870
20438
  switch (outputData.getOutputDataCase()) {
19871
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.REST_API:
20439
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.REST_API:
19872
20440
  return restApi_default.fromOutputData(outputData);
19873
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CUSTOM_CODE:
20441
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CUSTOM_CODE:
19874
20442
  return customCode_default.fromOutputData(outputData);
19875
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CONTRACT_READ:
20443
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CONTRACT_READ:
19876
20444
  return contractRead_default.fromOutputData(outputData);
19877
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CONTRACT_WRITE:
20445
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CONTRACT_WRITE:
19878
20446
  return contractWrite_default.fromOutputData(outputData);
19879
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.ETH_TRANSFER:
20447
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.ETH_TRANSFER:
19880
20448
  return ethTransfer_default.fromOutputData(outputData);
19881
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.GRAPHQL:
20449
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.GRAPHQL:
19882
20450
  return graphqlQuery_default.fromOutputData(outputData);
19883
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.BRANCH:
20451
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.BRANCH:
19884
20452
  return branch_default.fromOutputData(outputData);
19885
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.FILTER:
20453
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.FILTER:
19886
20454
  return filter_default.fromOutputData(outputData);
19887
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.LOOP:
20455
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.LOOP:
19888
20456
  return loop_default.fromOutputData(outputData);
19889
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.OUTPUT_DATA_NOT_SET:
20457
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.BALANCE:
20458
+ return balance_default.fromOutputData(outputData);
20459
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.OUTPUT_DATA_NOT_SET:
19890
20460
  default:
19891
20461
  throw new Error(`Unsupported output data case: ${outputData.getOutputDataCase()}`);
19892
20462
  }
@@ -19898,11 +20468,11 @@ var factory_default2 = NodeFactory;
19898
20468
  import { WorkflowStatus } from "@avaprotocol/types";
19899
20469
  function convertStatusToString(status2) {
19900
20470
  const conversionMap = {
19901
- [avs_pb19.TaskStatus.ACTIVE]: WorkflowStatus.Active,
19902
- [avs_pb19.TaskStatus.COMPLETED]: WorkflowStatus.Completed,
19903
- [avs_pb19.TaskStatus.FAILED]: WorkflowStatus.Failed,
19904
- [avs_pb19.TaskStatus.CANCELED]: WorkflowStatus.Canceled,
19905
- [avs_pb19.TaskStatus.EXECUTING]: WorkflowStatus.Executing
20471
+ [avs_pb20.TaskStatus.ACTIVE]: WorkflowStatus.Active,
20472
+ [avs_pb20.TaskStatus.COMPLETED]: WorkflowStatus.Completed,
20473
+ [avs_pb20.TaskStatus.FAILED]: WorkflowStatus.Failed,
20474
+ [avs_pb20.TaskStatus.CANCELED]: WorkflowStatus.Canceled,
20475
+ [avs_pb20.TaskStatus.EXECUTING]: WorkflowStatus.Executing
19906
20476
  };
19907
20477
  return conversionMap[status2];
19908
20478
  }
@@ -20007,7 +20577,7 @@ var Workflow = class _Workflow {
20007
20577
  });
20008
20578
  }
20009
20579
  toRequest() {
20010
- const request = new avs_pb19.CreateTaskReq();
20580
+ const request = new avs_pb20.CreateTaskReq();
20011
20581
  request.setSmartWalletAddress(this.smartWalletAddress);
20012
20582
  request.setTrigger(this.trigger.toRequest());
20013
20583
  try {
@@ -20081,11 +20651,11 @@ var Workflow = class _Workflow {
20081
20651
  var workflow_default = Workflow;
20082
20652
 
20083
20653
  // src/models/execution.ts
20084
- var avs_pb21 = __toESM(require_avs_pb());
20654
+ var avs_pb22 = __toESM(require_avs_pb());
20085
20655
  import { ExecutionStatus as ExecutionStatus2 } from "@avaprotocol/types";
20086
20656
 
20087
20657
  // src/models/step.ts
20088
- var avs_pb20 = __toESM(require_avs_pb());
20658
+ var avs_pb21 = __toESM(require_avs_pb());
20089
20659
  var Step = class _Step {
20090
20660
  constructor(props) {
20091
20661
  this.id = props.id;
@@ -20161,34 +20731,36 @@ var Step = class _Step {
20161
20731
  static extractOutputData(step) {
20162
20732
  const outputCase = this.getOutputDataCase(step);
20163
20733
  switch (outputCase) {
20164
- case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
20734
+ case avs_pb21.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
20165
20735
  return typeof step.getBlockTrigger === "function" ? step.getBlockTrigger() : step.blockTrigger;
20166
- case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
20736
+ case avs_pb21.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
20167
20737
  return typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger() : step.fixedTimeTrigger;
20168
- case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
20738
+ case avs_pb21.Execution.Step.OutputDataCase.CRON_TRIGGER:
20169
20739
  return typeof step.getCronTrigger === "function" ? step.getCronTrigger() : step.cronTrigger;
20170
- case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
20740
+ case avs_pb21.Execution.Step.OutputDataCase.EVENT_TRIGGER:
20171
20741
  return typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
20172
- case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
20742
+ case avs_pb21.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
20173
20743
  return typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
20174
- case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
20744
+ case avs_pb21.Execution.Step.OutputDataCase.ETH_TRANSFER:
20175
20745
  return typeof step.getEthTransfer === "function" ? step.getEthTransfer() : step.ethTransfer;
20176
- case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
20746
+ case avs_pb21.Execution.Step.OutputDataCase.GRAPHQL:
20177
20747
  return typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
20178
- case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
20748
+ case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_READ:
20179
20749
  return typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
20180
- case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
20750
+ case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_WRITE:
20181
20751
  return typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
20182
- case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
20752
+ case avs_pb21.Execution.Step.OutputDataCase.CUSTOM_CODE:
20183
20753
  return typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
20184
- case avs_pb20.Execution.Step.OutputDataCase.REST_API:
20754
+ case avs_pb21.Execution.Step.OutputDataCase.REST_API:
20185
20755
  return typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
20186
- case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
20756
+ case avs_pb21.Execution.Step.OutputDataCase.BRANCH:
20187
20757
  return typeof step.getBranch === "function" ? step.getBranch() : step.branch;
20188
- case avs_pb20.Execution.Step.OutputDataCase.FILTER:
20758
+ case avs_pb21.Execution.Step.OutputDataCase.FILTER:
20189
20759
  return typeof step.getFilter === "function" ? step.getFilter() : step.filter;
20190
- case avs_pb20.Execution.Step.OutputDataCase.LOOP:
20760
+ case avs_pb21.Execution.Step.OutputDataCase.LOOP:
20191
20761
  return typeof step.getLoop === "function" ? step.getLoop() : step.loop;
20762
+ case avs_pb21.Execution.Step.OutputDataCase.BALANCE:
20763
+ return typeof step.getBalance === "function" ? step.getBalance() : step.balance;
20192
20764
  default:
20193
20765
  return null;
20194
20766
  }
@@ -20199,29 +20771,30 @@ var Step = class _Step {
20199
20771
  }
20200
20772
  const stepObj = step;
20201
20773
  if (stepObj.blockTrigger)
20202
- return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
20774
+ return avs_pb21.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
20203
20775
  if (stepObj.fixedTimeTrigger)
20204
- return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
20776
+ return avs_pb21.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
20205
20777
  if (stepObj.cronTrigger)
20206
- return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
20778
+ return avs_pb21.Execution.Step.OutputDataCase.CRON_TRIGGER;
20207
20779
  if (stepObj.eventTrigger)
20208
- return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
20780
+ return avs_pb21.Execution.Step.OutputDataCase.EVENT_TRIGGER;
20209
20781
  if (stepObj.manualTrigger)
20210
- return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
20782
+ return avs_pb21.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
20211
20783
  if (stepObj.ethTransfer)
20212
- return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
20213
- if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
20784
+ return avs_pb21.Execution.Step.OutputDataCase.ETH_TRANSFER;
20785
+ if (stepObj.graphql) return avs_pb21.Execution.Step.OutputDataCase.GRAPHQL;
20214
20786
  if (stepObj.contractRead)
20215
- return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
20787
+ return avs_pb21.Execution.Step.OutputDataCase.CONTRACT_READ;
20216
20788
  if (stepObj.contractWrite)
20217
- return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
20789
+ return avs_pb21.Execution.Step.OutputDataCase.CONTRACT_WRITE;
20218
20790
  if (stepObj.customCode)
20219
- return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
20220
- if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
20221
- if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
20222
- if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
20223
- if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
20224
- return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
20791
+ return avs_pb21.Execution.Step.OutputDataCase.CUSTOM_CODE;
20792
+ if (stepObj.restApi) return avs_pb21.Execution.Step.OutputDataCase.REST_API;
20793
+ if (stepObj.branch) return avs_pb21.Execution.Step.OutputDataCase.BRANCH;
20794
+ if (stepObj.filter) return avs_pb21.Execution.Step.OutputDataCase.FILTER;
20795
+ if (stepObj.loop) return avs_pb21.Execution.Step.OutputDataCase.LOOP;
20796
+ if (stepObj.balance) return avs_pb21.Execution.Step.OutputDataCase.BALANCE;
20797
+ return avs_pb21.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
20225
20798
  }
20226
20799
  static fromResponse(step) {
20227
20800
  let configData = void 0;
@@ -20298,15 +20871,15 @@ var step_default = Step;
20298
20871
  // src/models/execution.ts
20299
20872
  function convertProtobufExecutionStatusToTypes(protobufStatus) {
20300
20873
  switch (protobufStatus) {
20301
- case avs_pb21.ExecutionStatus.EXECUTION_STATUS_PENDING:
20874
+ case avs_pb22.ExecutionStatus.EXECUTION_STATUS_PENDING:
20302
20875
  return ExecutionStatus2.Pending;
20303
- case avs_pb21.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
20876
+ case avs_pb22.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
20304
20877
  return ExecutionStatus2.Success;
20305
- case avs_pb21.ExecutionStatus.EXECUTION_STATUS_FAILED:
20878
+ case avs_pb22.ExecutionStatus.EXECUTION_STATUS_FAILED:
20306
20879
  return ExecutionStatus2.Failed;
20307
- case avs_pb21.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
20880
+ case avs_pb22.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
20308
20881
  return ExecutionStatus2.PartialSuccess;
20309
- case avs_pb21.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
20882
+ case avs_pb22.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
20310
20883
  default:
20311
20884
  return ExecutionStatus2.Unspecified;
20312
20885
  }
@@ -20355,7 +20928,7 @@ var Execution2 = class _Execution {
20355
20928
  var execution_default = Execution2;
20356
20929
 
20357
20930
  // src/models/secret.ts
20358
- var avs_pb22 = __toESM(require_avs_pb());
20931
+ var avs_pb23 = __toESM(require_avs_pb());
20359
20932
  var Secret = class {
20360
20933
  constructor(props) {
20361
20934
  this.name = props.name;
@@ -20368,7 +20941,7 @@ var Secret = class {
20368
20941
  this.description = props.description;
20369
20942
  }
20370
20943
  toRequest() {
20371
- const request = new avs_pb22.CreateOrUpdateSecretReq();
20944
+ const request = new avs_pb23.CreateOrUpdateSecretReq();
20372
20945
  request.setName(this.name);
20373
20946
  if (this.secret) {
20374
20947
  request.setSecret(this.secret);
@@ -20504,7 +21077,7 @@ var BaseClient = class {
20504
21077
  * @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
20505
21078
  */
20506
21079
  async getSignatureFormat(wallet) {
20507
- const request = new avs_pb23.GetSignatureFormatReq();
21080
+ const request = new avs_pb24.GetSignatureFormatReq();
20508
21081
  request.setWallet(wallet);
20509
21082
  const result = await this.sendGrpcRequest("getSignatureFormat", request);
20510
21083
  return { message: result.getMessage() };
@@ -20519,7 +21092,7 @@ var BaseClient = class {
20519
21092
  message,
20520
21093
  apiKey
20521
21094
  }) {
20522
- const request = new avs_pb23.GetKeyReq();
21095
+ const request = new avs_pb24.GetKeyReq();
20523
21096
  request.setMessage(message);
20524
21097
  request.setSignature(apiKey);
20525
21098
  const result = await this.sendGrpcRequest("getKey", request);
@@ -20535,7 +21108,7 @@ var BaseClient = class {
20535
21108
  message,
20536
21109
  signature
20537
21110
  }) {
20538
- const request = new avs_pb23.GetKeyReq();
21111
+ const request = new avs_pb24.GetKeyReq();
20539
21112
  request.setMessage(message);
20540
21113
  request.setSignature(signature);
20541
21114
  const result = await this.sendGrpcRequest(
@@ -20671,7 +21244,7 @@ var Client = class extends BaseClient {
20671
21244
  * @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
20672
21245
  */
20673
21246
  async getWallets(options) {
20674
- const request = new avs_pb23.ListWalletReq();
21247
+ const request = new avs_pb24.ListWalletReq();
20675
21248
  const result = await this.sendGrpcRequest("listWallets", request, options);
20676
21249
  return result.getItemsList().map((item) => item.toObject());
20677
21250
  }
@@ -20683,7 +21256,7 @@ var Client = class extends BaseClient {
20683
21256
  * @returns {Promise<SmartWallet>} - The added SmartWallet object
20684
21257
  */
20685
21258
  async getWallet({ salt, factoryAddress }, options) {
20686
- const request = new avs_pb23.GetWalletReq();
21259
+ const request = new avs_pb24.GetWalletReq();
20687
21260
  request.setSalt(salt);
20688
21261
  if (factoryAddress) {
20689
21262
  request.setFactoryAddress(factoryAddress);
@@ -20712,7 +21285,7 @@ var Client = class extends BaseClient {
20712
21285
  * @returns {Promise<SmartWallet>} - The updated SmartWallet object
20713
21286
  */
20714
21287
  async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
20715
- const request = new avs_pb23.SetWalletReq();
21288
+ const request = new avs_pb24.SetWalletReq();
20716
21289
  request.setSalt(salt);
20717
21290
  if (factoryAddress) {
20718
21291
  request.setFactoryAddress(factoryAddress);
@@ -20749,7 +21322,7 @@ var Client = class extends BaseClient {
20749
21322
  token,
20750
21323
  smartWalletAddress
20751
21324
  }, options) {
20752
- const request = new avs_pb23.WithdrawFundsReq();
21325
+ const request = new avs_pb24.WithdrawFundsReq();
20753
21326
  request.setRecipientAddress(recipientAddress);
20754
21327
  request.setAmount(amount);
20755
21328
  request.setToken(token);
@@ -20795,7 +21368,7 @@ var Client = class extends BaseClient {
20795
21368
  * @returns {Promise<{ items: WorkflowProps[]; pageInfo: PageInfo }>} - The list of WorkflowProps objects with nested pagination metadata
20796
21369
  */
20797
21370
  async getWorkflows(addresses, options) {
20798
- const request = new avs_pb23.ListTasksReq();
21371
+ const request = new avs_pb24.ListTasksReq();
20799
21372
  for (const a of addresses) {
20800
21373
  request.addSmartWalletAddress(a);
20801
21374
  }
@@ -20834,7 +21407,7 @@ var Client = class extends BaseClient {
20834
21407
  * @returns {Promise<number>} - The count of workflows
20835
21408
  */
20836
21409
  async getWorkflowCount(addresses, options) {
20837
- const request = new avs_pb23.GetWorkflowCountReq();
21410
+ const request = new avs_pb24.GetWorkflowCountReq();
20838
21411
  request.setAddressesList(addresses);
20839
21412
  const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
20840
21413
  return result.getTotal();
@@ -20850,7 +21423,7 @@ var Client = class extends BaseClient {
20850
21423
  * @returns {Promise<{ items: ExecutionProps[]; pageInfo: PageInfo }>} - The list of ExecutionProps objects with nested pagination metadata
20851
21424
  */
20852
21425
  async getExecutions(workflows, options) {
20853
- const request = new avs_pb23.ListExecutionsReq();
21426
+ const request = new avs_pb24.ListExecutionsReq();
20854
21427
  for (const w of workflows) {
20855
21428
  request.addTaskIds(w);
20856
21429
  }
@@ -20884,7 +21457,7 @@ var Client = class extends BaseClient {
20884
21457
  * @returns {Promise<ExecutionProps>} - The ExecutionProps object
20885
21458
  */
20886
21459
  async getExecution(workflowId, executionId, options) {
20887
- const request = new avs_pb23.ExecutionReq();
21460
+ const request = new avs_pb24.ExecutionReq();
20888
21461
  request.setTaskId(workflowId);
20889
21462
  request.setExecutionId(executionId);
20890
21463
  const result = await this.sendGrpcRequest("getExecution", request, options);
@@ -20897,7 +21470,7 @@ var Client = class extends BaseClient {
20897
21470
  * @returns {Promise<number>} - The count of executions
20898
21471
  */
20899
21472
  async getExecutionCount(workflows, options) {
20900
- const request = new avs_pb23.GetExecutionCountReq();
21473
+ const request = new avs_pb24.GetExecutionCountReq();
20901
21474
  request.setWorkflowIdsList(workflows);
20902
21475
  const result = await this.sendGrpcRequest("getExecutionCount", request, options);
20903
21476
  return result.getTotal();
@@ -20911,7 +21484,7 @@ var Client = class extends BaseClient {
20911
21484
  * @returns {Promise<GetExecutionStatsResponse>} - Execution statistics
20912
21485
  */
20913
21486
  async getExecutionStats(options) {
20914
- const request = new avs_pb23.GetExecutionStatsReq();
21487
+ const request = new avs_pb24.GetExecutionStatsReq();
20915
21488
  if (options?.workflowIds && options.workflowIds.length > 0) {
20916
21489
  request.setWorkflowIdsList(options.workflowIds);
20917
21490
  }
@@ -20934,7 +21507,7 @@ var Client = class extends BaseClient {
20934
21507
  * @returns {Promise<ExecutionStatus>} - The status of the execution
20935
21508
  */
20936
21509
  async getExecutionStatus(workflowId, executionId, options) {
20937
- const request = new avs_pb23.ExecutionReq();
21510
+ const request = new avs_pb24.ExecutionReq();
20938
21511
  request.setTaskId(workflowId);
20939
21512
  request.setExecutionId(executionId);
20940
21513
  const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
@@ -20947,7 +21520,7 @@ var Client = class extends BaseClient {
20947
21520
  * @returns {Promise<Workflow>} - The Workflow object
20948
21521
  */
20949
21522
  async getWorkflow(id, options) {
20950
- const request = new avs_pb23.IdReq();
21523
+ const request = new avs_pb24.IdReq();
20951
21524
  request.setId(id);
20952
21525
  const result = await this.sendGrpcRequest(
20953
21526
  "getTask",
@@ -20970,14 +21543,14 @@ var Client = class extends BaseClient {
20970
21543
  triggerData,
20971
21544
  isBlocking = false
20972
21545
  }, options) {
20973
- const request = new avs_pb23.TriggerTaskReq();
21546
+ const request = new avs_pb24.TriggerTaskReq();
20974
21547
  request.setTaskId(id);
20975
21548
  request.setTriggerType(TriggerTypeConverter2.toProtobuf(triggerData.type));
20976
21549
  request.setIsBlocking(isBlocking);
20977
21550
  switch (triggerData.type) {
20978
21551
  case TriggerType14.FixedTime: {
20979
21552
  const fixedTimeData = triggerData;
20980
- const fixedTimeOutput = new avs_pb23.FixedTimeTrigger.Output();
21553
+ const fixedTimeOutput = new avs_pb24.FixedTimeTrigger.Output();
20981
21554
  const triggerOutputData = {
20982
21555
  timestamp: fixedTimeData.timestamp,
20983
21556
  timestampIso: fixedTimeData.timestampIso
@@ -20992,7 +21565,7 @@ var Client = class extends BaseClient {
20992
21565
  }
20993
21566
  case TriggerType14.Cron: {
20994
21567
  const cronData = triggerData;
20995
- const cronOutput = new avs_pb23.CronTrigger.Output();
21568
+ const cronOutput = new avs_pb24.CronTrigger.Output();
20996
21569
  const triggerOutputData = {
20997
21570
  timestamp: cronData.timestamp,
20998
21571
  timestampIso: cronData.timestampIso
@@ -21007,7 +21580,7 @@ var Client = class extends BaseClient {
21007
21580
  }
21008
21581
  case TriggerType14.Block: {
21009
21582
  const blockData = triggerData;
21010
- const blockOutput = new avs_pb23.BlockTrigger.Output();
21583
+ const blockOutput = new avs_pb24.BlockTrigger.Output();
21011
21584
  const triggerOutputData = {
21012
21585
  blockNumber: blockData.blockNumber,
21013
21586
  blockHash: blockData.blockHash || "",
@@ -21027,7 +21600,7 @@ var Client = class extends BaseClient {
21027
21600
  }
21028
21601
  case TriggerType14.Event: {
21029
21602
  const eventData = triggerData;
21030
- const eventOutput = new avs_pb23.EventTrigger.Output();
21603
+ const eventOutput = new avs_pb24.EventTrigger.Output();
21031
21604
  if (eventData.data) {
21032
21605
  const protobufValue = convertJSValueToProtobuf(eventData.data);
21033
21606
  eventOutput.setData(protobufValue);
@@ -21037,7 +21610,7 @@ var Client = class extends BaseClient {
21037
21610
  }
21038
21611
  case TriggerType14.Manual: {
21039
21612
  const manualData = triggerData;
21040
- const manualOutput = new avs_pb23.ManualTrigger.Output();
21613
+ const manualOutput = new avs_pb24.ManualTrigger.Output();
21041
21614
  if (manualData.data) {
21042
21615
  const protobufValue = convertJSValueToProtobuf(manualData.data);
21043
21616
  manualOutput.setData(protobufValue);
@@ -21109,7 +21682,7 @@ var Client = class extends BaseClient {
21109
21682
  * @returns {Promise<CancelTaskResponse>} - The response from canceling the workflow
21110
21683
  */
21111
21684
  async cancelWorkflow(id, options) {
21112
- const request = new avs_pb23.IdReq();
21685
+ const request = new avs_pb24.IdReq();
21113
21686
  request.setId(id);
21114
21687
  const result = await this.sendGrpcRequest("cancelTask", request, options);
21115
21688
  return {
@@ -21128,7 +21701,7 @@ var Client = class extends BaseClient {
21128
21701
  * @returns {Promise<DeleteTaskResponse>} - The response from deleting the workflow
21129
21702
  */
21130
21703
  async deleteWorkflow(id, options) {
21131
- const request = new avs_pb23.IdReq();
21704
+ const request = new avs_pb24.IdReq();
21132
21705
  request.setId(id);
21133
21706
  const result = await this.sendGrpcRequest("deleteTask", request, options);
21134
21707
  return {
@@ -21151,7 +21724,7 @@ var Client = class extends BaseClient {
21151
21724
  * @returns {Promise<CreateSecretResponse>} - Structured response with creation details
21152
21725
  */
21153
21726
  async createSecret(name, value, options) {
21154
- const request = new avs_pb23.CreateOrUpdateSecretReq();
21727
+ const request = new avs_pb24.CreateOrUpdateSecretReq();
21155
21728
  request.setName(name);
21156
21729
  request.setSecret(value);
21157
21730
  if (options?.workflowId) {
@@ -21181,7 +21754,7 @@ var Client = class extends BaseClient {
21181
21754
  * @returns {Promise<UpdateSecretResponse>} - Structured response with update details
21182
21755
  */
21183
21756
  async updateSecret(name, value, options) {
21184
- const request = new avs_pb23.CreateOrUpdateSecretReq();
21757
+ const request = new avs_pb24.CreateOrUpdateSecretReq();
21185
21758
  request.setName(name);
21186
21759
  request.setSecret(value);
21187
21760
  if (options?.workflowId) {
@@ -21215,7 +21788,7 @@ var Client = class extends BaseClient {
21215
21788
  * @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
21216
21789
  */
21217
21790
  async getSecrets(options) {
21218
- const request = new avs_pb23.ListSecretsReq();
21791
+ const request = new avs_pb24.ListSecretsReq();
21219
21792
  if (options?.workflowId) {
21220
21793
  request.setWorkflowId(options.workflowId);
21221
21794
  }
@@ -21270,7 +21843,7 @@ var Client = class extends BaseClient {
21270
21843
  * @returns {Promise<DeleteSecretResponse>} - Structured response with deletion details
21271
21844
  */
21272
21845
  async deleteSecret(name, options) {
21273
- const request = new avs_pb23.DeleteSecretReq();
21846
+ const request = new avs_pb24.DeleteSecretReq();
21274
21847
  request.setName(name);
21275
21848
  if (options?.workflowId) {
21276
21849
  request.setWorkflowId(options.workflowId);
@@ -21313,7 +21886,7 @@ var Client = class extends BaseClient {
21313
21886
  data: null
21314
21887
  };
21315
21888
  }
21316
- const request = new avs_pb23.RunNodeWithInputsReq();
21889
+ const request = new avs_pb24.RunNodeWithInputsReq();
21317
21890
  const protobufNodeType = NodeTypeGoConverter2.fromGoString(nodeType);
21318
21891
  request.setNodeType(protobufNodeType);
21319
21892
  const nodeConfigMap = request.getNodeConfigMap();
@@ -21333,7 +21906,9 @@ var Client = class extends BaseClient {
21333
21906
  error: result.getError(),
21334
21907
  errorCode: result.getErrorCode() || void 0,
21335
21908
  metadata: result.hasMetadata() ? toCamelCaseKeys(convertProtobufValueToJs(result.getMetadata())) : void 0,
21336
- executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
21909
+ executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
21910
+ convertProtobufValueToJs(result.getExecutionContext())
21911
+ ) : void 0
21337
21912
  };
21338
21913
  }
21339
21914
  /**
@@ -21345,7 +21920,7 @@ var Client = class extends BaseClient {
21345
21920
  * @returns {Promise<RunTriggerResponse>} - The response from running the trigger
21346
21921
  */
21347
21922
  async runTrigger({ triggerType, triggerConfig }, options) {
21348
- const request = new avs_pb23.RunTriggerReq();
21923
+ const request = new avs_pb24.RunTriggerReq();
21349
21924
  const protobufTriggerType = TriggerTypeGoConverter.fromGoString(triggerType);
21350
21925
  request.setTriggerType(protobufTriggerType);
21351
21926
  const triggerConfigMap = request.getTriggerConfigMap();
@@ -21369,7 +21944,9 @@ var Client = class extends BaseClient {
21369
21944
  error: result.getError(),
21370
21945
  errorCode: result.getErrorCode() || void 0,
21371
21946
  metadata: toCamelCaseKeys(metadata),
21372
- executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
21947
+ executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
21948
+ convertProtobufValueToJs(result.getExecutionContext())
21949
+ ) : void 0
21373
21950
  };
21374
21951
  }
21375
21952
  /**
@@ -21383,7 +21960,7 @@ var Client = class extends BaseClient {
21383
21960
  * @returns {Promise<ExecutionProps>} - The response from simulating the task
21384
21961
  */
21385
21962
  async simulateWorkflow({ trigger, nodes, edges, inputVariables = {} }, options) {
21386
- const request = new avs_pb23.SimulateTaskReq();
21963
+ const request = new avs_pb24.SimulateTaskReq();
21387
21964
  const triggerSdk = factory_default.create(trigger);
21388
21965
  request.setTrigger(triggerSdk.toRequest());
21389
21966
  const nodeMessages = nodes.map((node) => {
@@ -21412,7 +21989,7 @@ var Client = class extends BaseClient {
21412
21989
  * @returns {Promise<GetTokenMetadataResponse>} - The response containing token metadata
21413
21990
  */
21414
21991
  async getTokenMetadata({ address }, options) {
21415
- const request = new avs_pb23.GetTokenMetadataReq();
21992
+ const request = new avs_pb24.GetTokenMetadataReq();
21416
21993
  request.setAddress(address);
21417
21994
  const result = await this.sendGrpcRequest("getTokenMetadata", request, options);
21418
21995
  const token = result.getToken();
@@ -21429,7 +22006,7 @@ var Client = class extends BaseClient {
21429
22006
  }
21430
22007
  /**
21431
22008
  * Get comprehensive fee estimation for workflow deployment
21432
- *
22009
+ *
21433
22010
  * @param params - Fee estimation request parameters
21434
22011
  * @param options - Optional request options (auth key, timeout)
21435
22012
  * @returns Promise resolving to comprehensive fee breakdown
@@ -21442,7 +22019,7 @@ var Client = class extends BaseClient {
21442
22019
  createdAt,
21443
22020
  expireAt
21444
22021
  }, options) {
21445
- const request = new avs_pb23.EstimateFeesReq();
22022
+ const request = new avs_pb24.EstimateFeesReq();
21446
22023
  const triggerSdk = factory_default.create(trigger);
21447
22024
  request.setTrigger(triggerSdk.toRequest());
21448
22025
  const nodeMessages = nodes.map((node) => {
@@ -21526,7 +22103,9 @@ var Client = class extends BaseClient {
21526
22103
  response.totalFees = this.convertFeeAmount(result.getTotalFees());
21527
22104
  }
21528
22105
  if (result.getTotalDiscounts()) {
21529
- response.totalDiscounts = this.convertFeeAmount(result.getTotalDiscounts());
22106
+ response.totalDiscounts = this.convertFeeAmount(
22107
+ result.getTotalDiscounts()
22108
+ );
21530
22109
  }
21531
22110
  if (result.getFinalTotal()) {
21532
22111
  response.finalTotal = this.convertFeeAmount(result.getFinalTotal());
@@ -21594,6 +22173,7 @@ var Client = class extends BaseClient {
21594
22173
  }
21595
22174
  };
21596
22175
  export {
22176
+ balance_default as BalanceNode,
21597
22177
  block_default as BlockTrigger,
21598
22178
  branch_default as BranchNode,
21599
22179
  Client,