@avaprotocol/sdk-js 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js 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, null, 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,304 @@ 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
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5650
+ proto.aggregator.BalanceNode.Config.prototype.toObject = function(opt_includeInstance) {
5651
+ return proto.aggregator.BalanceNode.Config.toObject(opt_includeInstance, this);
5652
+ };
5653
+ proto.aggregator.BalanceNode.Config.toObject = function(includeInstance, msg) {
5654
+ var f, obj = {
5655
+ address: jspb.Message.getFieldWithDefault(msg, 1, ""),
5656
+ chain: jspb.Message.getFieldWithDefault(msg, 2, ""),
5657
+ includeSpam: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
5658
+ includeZeroBalances: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
5659
+ minUsdValueCents: jspb.Message.getFieldWithDefault(msg, 5, 0)
5660
+ };
5661
+ if (includeInstance) {
5662
+ obj.$jspbMessageInstance = msg;
5663
+ }
5664
+ return obj;
5665
+ };
5666
+ }
5667
+ proto.aggregator.BalanceNode.Config.deserializeBinary = function(bytes) {
5668
+ var reader = new jspb.BinaryReader(bytes);
5669
+ var msg = new proto.aggregator.BalanceNode.Config();
5670
+ return proto.aggregator.BalanceNode.Config.deserializeBinaryFromReader(msg, reader);
5671
+ };
5672
+ proto.aggregator.BalanceNode.Config.deserializeBinaryFromReader = function(msg, reader) {
5673
+ while (reader.nextField()) {
5674
+ if (reader.isEndGroup()) {
5675
+ break;
5676
+ }
5677
+ var field = reader.getFieldNumber();
5678
+ switch (field) {
5679
+ case 1:
5680
+ var value = (
5681
+ /** @type {string} */
5682
+ reader.readString()
5683
+ );
5684
+ msg.setAddress(value);
5685
+ break;
5686
+ case 2:
5687
+ var value = (
5688
+ /** @type {string} */
5689
+ reader.readString()
5690
+ );
5691
+ msg.setChain(value);
5692
+ break;
5693
+ case 3:
5694
+ var value = (
5695
+ /** @type {boolean} */
5696
+ reader.readBool()
5697
+ );
5698
+ msg.setIncludeSpam(value);
5699
+ break;
5700
+ case 4:
5701
+ var value = (
5702
+ /** @type {boolean} */
5703
+ reader.readBool()
5704
+ );
5705
+ msg.setIncludeZeroBalances(value);
5706
+ break;
5707
+ case 5:
5708
+ var value = (
5709
+ /** @type {number} */
5710
+ reader.readInt64()
5711
+ );
5712
+ msg.setMinUsdValueCents(value);
5713
+ break;
5714
+ default:
5715
+ reader.skipField();
5716
+ break;
5717
+ }
5718
+ }
5719
+ return msg;
5720
+ };
5721
+ proto.aggregator.BalanceNode.Config.prototype.serializeBinary = function() {
5722
+ var writer = new jspb.BinaryWriter();
5723
+ proto.aggregator.BalanceNode.Config.serializeBinaryToWriter(this, writer);
5724
+ return writer.getResultBuffer();
5725
+ };
5726
+ proto.aggregator.BalanceNode.Config.serializeBinaryToWriter = function(message, writer) {
5727
+ var f = void 0;
5728
+ f = message.getAddress();
5729
+ if (f.length > 0) {
5730
+ writer.writeString(
5731
+ 1,
5732
+ f
5733
+ );
5734
+ }
5735
+ f = message.getChain();
5736
+ if (f.length > 0) {
5737
+ writer.writeString(
5738
+ 2,
5739
+ f
5740
+ );
5741
+ }
5742
+ f = message.getIncludeSpam();
5743
+ if (f) {
5744
+ writer.writeBool(
5745
+ 3,
5746
+ f
5747
+ );
5748
+ }
5749
+ f = message.getIncludeZeroBalances();
5750
+ if (f) {
5751
+ writer.writeBool(
5752
+ 4,
5753
+ f
5754
+ );
5755
+ }
5756
+ f = message.getMinUsdValueCents();
5757
+ if (f !== 0) {
5758
+ writer.writeInt64(
5759
+ 5,
5760
+ f
5761
+ );
5762
+ }
5763
+ };
5764
+ proto.aggregator.BalanceNode.Config.prototype.getAddress = function() {
5765
+ return (
5766
+ /** @type {string} */
5767
+ jspb.Message.getFieldWithDefault(this, 1, "")
5768
+ );
5769
+ };
5770
+ proto.aggregator.BalanceNode.Config.prototype.setAddress = function(value) {
5771
+ return jspb.Message.setProto3StringField(this, 1, value);
5772
+ };
5773
+ proto.aggregator.BalanceNode.Config.prototype.getChain = function() {
5774
+ return (
5775
+ /** @type {string} */
5776
+ jspb.Message.getFieldWithDefault(this, 2, "")
5777
+ );
5778
+ };
5779
+ proto.aggregator.BalanceNode.Config.prototype.setChain = function(value) {
5780
+ return jspb.Message.setProto3StringField(this, 2, value);
5781
+ };
5782
+ proto.aggregator.BalanceNode.Config.prototype.getIncludeSpam = function() {
5783
+ return (
5784
+ /** @type {boolean} */
5785
+ jspb.Message.getBooleanFieldWithDefault(this, 3, false)
5786
+ );
5787
+ };
5788
+ proto.aggregator.BalanceNode.Config.prototype.setIncludeSpam = function(value) {
5789
+ return jspb.Message.setProto3BooleanField(this, 3, value);
5790
+ };
5791
+ proto.aggregator.BalanceNode.Config.prototype.getIncludeZeroBalances = function() {
5792
+ return (
5793
+ /** @type {boolean} */
5794
+ jspb.Message.getBooleanFieldWithDefault(this, 4, false)
5795
+ );
5796
+ };
5797
+ proto.aggregator.BalanceNode.Config.prototype.setIncludeZeroBalances = function(value) {
5798
+ return jspb.Message.setProto3BooleanField(this, 4, value);
5799
+ };
5800
+ proto.aggregator.BalanceNode.Config.prototype.getMinUsdValueCents = function() {
5801
+ return (
5802
+ /** @type {number} */
5803
+ jspb.Message.getFieldWithDefault(this, 5, 0)
5804
+ );
5805
+ };
5806
+ proto.aggregator.BalanceNode.Config.prototype.setMinUsdValueCents = function(value) {
5807
+ return jspb.Message.setProto3IntField(this, 5, value);
5808
+ };
5809
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5810
+ proto.aggregator.BalanceNode.Output.prototype.toObject = function(opt_includeInstance) {
5811
+ return proto.aggregator.BalanceNode.Output.toObject(opt_includeInstance, this);
5812
+ };
5813
+ proto.aggregator.BalanceNode.Output.toObject = function(includeInstance, msg) {
5814
+ var f, obj = {
5815
+ data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
5816
+ };
5817
+ if (includeInstance) {
5818
+ obj.$jspbMessageInstance = msg;
5819
+ }
5820
+ return obj;
5821
+ };
5822
+ }
5823
+ proto.aggregator.BalanceNode.Output.deserializeBinary = function(bytes) {
5824
+ var reader = new jspb.BinaryReader(bytes);
5825
+ var msg = new proto.aggregator.BalanceNode.Output();
5826
+ return proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader(msg, reader);
5827
+ };
5828
+ proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader = function(msg, reader) {
5829
+ while (reader.nextField()) {
5830
+ if (reader.isEndGroup()) {
5831
+ break;
5832
+ }
5833
+ var field = reader.getFieldNumber();
5834
+ switch (field) {
5835
+ case 1:
5836
+ var value = new google_protobuf_struct_pb5.Value();
5837
+ reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
5838
+ msg.setData(value);
5839
+ break;
5840
+ default:
5841
+ reader.skipField();
5842
+ break;
5843
+ }
5844
+ }
5845
+ return msg;
5846
+ };
5847
+ proto.aggregator.BalanceNode.Output.prototype.serializeBinary = function() {
5848
+ var writer = new jspb.BinaryWriter();
5849
+ proto.aggregator.BalanceNode.Output.serializeBinaryToWriter(this, writer);
5850
+ return writer.getResultBuffer();
5851
+ };
5852
+ proto.aggregator.BalanceNode.Output.serializeBinaryToWriter = function(message, writer) {
5853
+ var f = void 0;
5854
+ f = message.getData();
5855
+ if (f != null) {
5856
+ writer.writeMessage(
5857
+ 1,
5858
+ f,
5859
+ google_protobuf_struct_pb5.Value.serializeBinaryToWriter
5860
+ );
5861
+ }
5862
+ };
5863
+ proto.aggregator.BalanceNode.Output.prototype.getData = function() {
5864
+ return (
5865
+ /** @type{?proto.google.protobuf.Value} */
5866
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
5867
+ );
5868
+ };
5869
+ proto.aggregator.BalanceNode.Output.prototype.setData = function(value) {
5870
+ return jspb.Message.setWrapperField(this, 1, value);
5871
+ };
5872
+ proto.aggregator.BalanceNode.Output.prototype.clearData = function() {
5873
+ return this.setData(void 0);
5874
+ };
5875
+ proto.aggregator.BalanceNode.Output.prototype.hasData = function() {
5876
+ return jspb.Message.getField(this, 1) != null;
5877
+ };
5878
+ proto.aggregator.BalanceNode.prototype.getConfig = function() {
5879
+ return (
5880
+ /** @type{?proto.aggregator.BalanceNode.Config} */
5881
+ jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode.Config, 1)
5882
+ );
5883
+ };
5884
+ proto.aggregator.BalanceNode.prototype.setConfig = function(value) {
5885
+ return jspb.Message.setWrapperField(this, 1, value);
5886
+ };
5887
+ proto.aggregator.BalanceNode.prototype.clearConfig = function() {
5888
+ return this.setConfig(void 0);
5889
+ };
5890
+ proto.aggregator.BalanceNode.prototype.hasConfig = function() {
5891
+ return jspb.Message.getField(this, 1) != null;
5892
+ };
5547
5893
  if (jspb.Message.GENERATE_TO_OBJECT) {
5548
5894
  proto.aggregator.BranchNode.prototype.toObject = function(opt_includeInstance) {
5549
5895
  return proto.aggregator.BranchNode.toObject(opt_includeInstance, this);
@@ -6670,7 +7016,7 @@ var require_avs_pb = __commonJS({
6670
7016
  proto.aggregator.TaskEdge.prototype.setTarget = function(value) {
6671
7017
  return jspb.Message.setProto3StringField(this, 3, value);
6672
7018
  };
6673
- proto.aggregator.TaskNode.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18]];
7019
+ proto.aggregator.TaskNode.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18, 19]];
6674
7020
  proto.aggregator.TaskNode.TaskTypeCase = {
6675
7021
  TASK_TYPE_NOT_SET: 0,
6676
7022
  ETH_TRANSFER: 10,
@@ -6681,7 +7027,8 @@ var require_avs_pb = __commonJS({
6681
7027
  BRANCH: 15,
6682
7028
  FILTER: 16,
6683
7029
  LOOP: 17,
6684
- CUSTOM_CODE: 18
7030
+ CUSTOM_CODE: 18,
7031
+ BALANCE: 19
6685
7032
  };
6686
7033
  proto.aggregator.TaskNode.prototype.getTaskTypeCase = function() {
6687
7034
  return (
@@ -6706,7 +7053,8 @@ var require_avs_pb = __commonJS({
6706
7053
  branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.toObject(includeInstance, f),
6707
7054
  filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.toObject(includeInstance, f),
6708
7055
  loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.toObject(includeInstance, f),
6709
- customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f)
7056
+ customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
7057
+ balance: (f = msg.getBalance()) && proto.aggregator.BalanceNode.toObject(includeInstance, f)
6710
7058
  };
6711
7059
  if (includeInstance) {
6712
7060
  obj.$jspbMessageInstance = msg;
@@ -6792,6 +7140,11 @@ var require_avs_pb = __commonJS({
6792
7140
  reader.readMessage(value, proto.aggregator.CustomCodeNode.deserializeBinaryFromReader);
6793
7141
  msg.setCustomCode(value);
6794
7142
  break;
7143
+ case 19:
7144
+ var value = new proto.aggregator.BalanceNode();
7145
+ reader.readMessage(value, proto.aggregator.BalanceNode.deserializeBinaryFromReader);
7146
+ msg.setBalance(value);
7147
+ break;
6795
7148
  default:
6796
7149
  reader.skipField();
6797
7150
  break;
@@ -6899,6 +7252,14 @@ var require_avs_pb = __commonJS({
6899
7252
  proto.aggregator.CustomCodeNode.serializeBinaryToWriter
6900
7253
  );
6901
7254
  }
7255
+ f = message.getBalance();
7256
+ if (f != null) {
7257
+ writer.writeMessage(
7258
+ 19,
7259
+ f,
7260
+ proto.aggregator.BalanceNode.serializeBinaryToWriter
7261
+ );
7262
+ }
6902
7263
  };
6903
7264
  proto.aggregator.TaskNode.prototype.getId = function() {
6904
7265
  return (
@@ -7062,6 +7423,21 @@ var require_avs_pb = __commonJS({
7062
7423
  proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
7063
7424
  return jspb.Message.getField(this, 18) != null;
7064
7425
  };
7426
+ proto.aggregator.TaskNode.prototype.getBalance = function() {
7427
+ return (
7428
+ /** @type{?proto.aggregator.BalanceNode} */
7429
+ jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode, 19)
7430
+ );
7431
+ };
7432
+ proto.aggregator.TaskNode.prototype.setBalance = function(value) {
7433
+ return jspb.Message.setOneofWrapperField(this, 19, proto.aggregator.TaskNode.oneofGroups_[0], value);
7434
+ };
7435
+ proto.aggregator.TaskNode.prototype.clearBalance = function() {
7436
+ return this.setBalance(void 0);
7437
+ };
7438
+ proto.aggregator.TaskNode.prototype.hasBalance = function() {
7439
+ return jspb.Message.getField(this, 19) != null;
7440
+ };
7065
7441
  proto.aggregator.Execution.repeatedFields_ = [8];
7066
7442
  if (jspb.Message.GENERATE_TO_OBJECT) {
7067
7443
  proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
@@ -7227,7 +7603,7 @@ var require_avs_pb = __commonJS({
7227
7603
  }
7228
7604
  };
7229
7605
  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]];
7606
+ proto.aggregator.Execution.Step.oneofGroups_ = [[20, 21, 22, 23, 24, 3, 4, 5, 6, 7, 8, 9, 10, 11, 30]];
7231
7607
  proto.aggregator.Execution.Step.OutputDataCase = {
7232
7608
  OUTPUT_DATA_NOT_SET: 0,
7233
7609
  BLOCK_TRIGGER: 20,
@@ -7243,7 +7619,8 @@ var require_avs_pb = __commonJS({
7243
7619
  REST_API: 8,
7244
7620
  BRANCH: 9,
7245
7621
  FILTER: 10,
7246
- LOOP: 11
7622
+ LOOP: 11,
7623
+ BALANCE: 30
7247
7624
  };
7248
7625
  proto.aggregator.Execution.Step.prototype.getOutputDataCase = function() {
7249
7626
  return (
@@ -7285,6 +7662,7 @@ var require_avs_pb = __commonJS({
7285
7662
  branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.Output.toObject(includeInstance, f),
7286
7663
  filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.Output.toObject(includeInstance, f),
7287
7664
  loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f),
7665
+ balance: (f = msg.getBalance()) && proto.aggregator.BalanceNode.Output.toObject(includeInstance, f),
7288
7666
  startAt: jspb.Message.getFieldWithDefault(msg, 14, 0),
7289
7667
  endAt: jspb.Message.getFieldWithDefault(msg, 15, 0)
7290
7668
  };
@@ -7468,6 +7846,11 @@ var require_avs_pb = __commonJS({
7468
7846
  reader.readMessage(value, proto.aggregator.LoopNode.Output.deserializeBinaryFromReader);
7469
7847
  msg.setLoop(value);
7470
7848
  break;
7849
+ case 30:
7850
+ var value = new proto.aggregator.BalanceNode.Output();
7851
+ reader.readMessage(value, proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader);
7852
+ msg.setBalance(value);
7853
+ break;
7471
7854
  case 14:
7472
7855
  var value = (
7473
7856
  /** @type {number} */
@@ -7709,6 +8092,14 @@ var require_avs_pb = __commonJS({
7709
8092
  proto.aggregator.LoopNode.Output.serializeBinaryToWriter
7710
8093
  );
7711
8094
  }
8095
+ f = message.getBalance();
8096
+ if (f != null) {
8097
+ writer.writeMessage(
8098
+ 30,
8099
+ f,
8100
+ proto.aggregator.BalanceNode.Output.serializeBinaryToWriter
8101
+ );
8102
+ }
7712
8103
  f = message.getStartAt();
7713
8104
  if (f !== 0) {
7714
8105
  writer.writeInt64(
@@ -8084,6 +8475,21 @@ var require_avs_pb = __commonJS({
8084
8475
  proto.aggregator.Execution.Step.prototype.hasLoop = function() {
8085
8476
  return jspb.Message.getField(this, 11) != null;
8086
8477
  };
8478
+ proto.aggregator.Execution.Step.prototype.getBalance = function() {
8479
+ return (
8480
+ /** @type{?proto.aggregator.BalanceNode.Output} */
8481
+ jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode.Output, 30)
8482
+ );
8483
+ };
8484
+ proto.aggregator.Execution.Step.prototype.setBalance = function(value) {
8485
+ return jspb.Message.setOneofWrapperField(this, 30, proto.aggregator.Execution.Step.oneofGroups_[0], value);
8486
+ };
8487
+ proto.aggregator.Execution.Step.prototype.clearBalance = function() {
8488
+ return this.setBalance(void 0);
8489
+ };
8490
+ proto.aggregator.Execution.Step.prototype.hasBalance = function() {
8491
+ return jspb.Message.getField(this, 30) != null;
8492
+ };
8087
8493
  proto.aggregator.Execution.Step.prototype.getStartAt = function() {
8088
8494
  return (
8089
8495
  /** @type {number} */
@@ -14269,7 +14675,7 @@ var require_avs_pb = __commonJS({
14269
14675
  this.getInputVariablesMap().clear();
14270
14676
  return this;
14271
14677
  };
14272
- proto.aggregator.RunNodeWithInputsResp.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18]];
14678
+ proto.aggregator.RunNodeWithInputsResp.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18, 19]];
14273
14679
  proto.aggregator.RunNodeWithInputsResp.OutputDataCase = {
14274
14680
  OUTPUT_DATA_NOT_SET: 0,
14275
14681
  ETH_TRANSFER: 10,
@@ -14280,7 +14686,8 @@ var require_avs_pb = __commonJS({
14280
14686
  REST_API: 15,
14281
14687
  BRANCH: 16,
14282
14688
  FILTER: 17,
14283
- LOOP: 18
14689
+ LOOP: 18,
14690
+ BALANCE: 19
14284
14691
  };
14285
14692
  proto.aggregator.RunNodeWithInputsResp.prototype.getOutputDataCase = function() {
14286
14693
  return (
@@ -14307,7 +14714,8 @@ var require_avs_pb = __commonJS({
14307
14714
  restApi: (f = msg.getRestApi()) && proto.aggregator.RestAPINode.Output.toObject(includeInstance, f),
14308
14715
  branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.Output.toObject(includeInstance, f),
14309
14716
  filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.Output.toObject(includeInstance, f),
14310
- loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f)
14717
+ loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f),
14718
+ balance: (f = msg.getBalance()) && proto.aggregator.BalanceNode.Output.toObject(includeInstance, f)
14311
14719
  };
14312
14720
  if (includeInstance) {
14313
14721
  obj.$jspbMessageInstance = msg;
@@ -14403,6 +14811,11 @@ var require_avs_pb = __commonJS({
14403
14811
  reader.readMessage(value, proto.aggregator.LoopNode.Output.deserializeBinaryFromReader);
14404
14812
  msg.setLoop(value);
14405
14813
  break;
14814
+ case 19:
14815
+ var value = new proto.aggregator.BalanceNode.Output();
14816
+ reader.readMessage(value, proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader);
14817
+ msg.setBalance(value);
14818
+ break;
14406
14819
  default:
14407
14820
  reader.skipField();
14408
14821
  break;
@@ -14526,6 +14939,14 @@ var require_avs_pb = __commonJS({
14526
14939
  proto.aggregator.LoopNode.Output.serializeBinaryToWriter
14527
14940
  );
14528
14941
  }
14942
+ f = message.getBalance();
14943
+ if (f != null) {
14944
+ writer.writeMessage(
14945
+ 19,
14946
+ f,
14947
+ proto.aggregator.BalanceNode.Output.serializeBinaryToWriter
14948
+ );
14949
+ }
14529
14950
  };
14530
14951
  proto.aggregator.RunNodeWithInputsResp.prototype.getSuccess = function() {
14531
14952
  return (
@@ -14719,6 +15140,21 @@ var require_avs_pb = __commonJS({
14719
15140
  proto.aggregator.RunNodeWithInputsResp.prototype.hasLoop = function() {
14720
15141
  return jspb.Message.getField(this, 18) != null;
14721
15142
  };
15143
+ proto.aggregator.RunNodeWithInputsResp.prototype.getBalance = function() {
15144
+ return (
15145
+ /** @type{?proto.aggregator.BalanceNode.Output} */
15146
+ jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode.Output, 19)
15147
+ );
15148
+ };
15149
+ proto.aggregator.RunNodeWithInputsResp.prototype.setBalance = function(value) {
15150
+ return jspb.Message.setOneofWrapperField(this, 19, proto.aggregator.RunNodeWithInputsResp.oneofGroups_[0], value);
15151
+ };
15152
+ proto.aggregator.RunNodeWithInputsResp.prototype.clearBalance = function() {
15153
+ return this.setBalance(void 0);
15154
+ };
15155
+ proto.aggregator.RunNodeWithInputsResp.prototype.hasBalance = function() {
15156
+ return jspb.Message.getField(this, 19) != null;
15157
+ };
14722
15158
  if (jspb.Message.GENERATE_TO_OBJECT) {
14723
15159
  proto.aggregator.RunTriggerReq.prototype.toObject = function(opt_includeInstance) {
14724
15160
  return proto.aggregator.RunTriggerReq.toObject(opt_includeInstance, this);
@@ -17297,14 +17733,19 @@ var require_avs_pb = __commonJS({
17297
17733
  NODE_TYPE_CUSTOM_CODE: 6,
17298
17734
  NODE_TYPE_BRANCH: 7,
17299
17735
  NODE_TYPE_FILTER: 8,
17300
- NODE_TYPE_LOOP: 9
17736
+ NODE_TYPE_LOOP: 9,
17737
+ NODE_TYPE_BALANCE: 10
17301
17738
  };
17302
17739
  proto.aggregator.ExecutionMode = {
17303
17740
  EXECUTION_MODE_SEQUENTIAL: 0,
17304
17741
  EXECUTION_MODE_PARALLEL: 1
17305
17742
  };
17306
17743
  proto.aggregator.Lang = {
17307
- JAVASCRIPT: 0
17744
+ LANG_UNSPECIFIED: 0,
17745
+ LANG_JAVASCRIPT: 1,
17746
+ LANG_JSON: 2,
17747
+ LANG_GRAPHQL: 3,
17748
+ LANG_HANDLEBARS: 4
17308
17749
  };
17309
17750
  proto.aggregator.ErrorCode = {
17310
17751
  ERROR_CODE_UNSPECIFIED: 0,
@@ -17370,457 +17811,457 @@ var require_avs_grpc_pb = __commonJS({
17370
17811
  "../../grpc_codegen/avs_grpc_pb.js"(exports2) {
17371
17812
  "use strict";
17372
17813
  var grpc = require("@grpc/grpc-js");
17373
- var avs_pb24 = require_avs_pb();
17814
+ var avs_pb25 = require_avs_pb();
17374
17815
  var google_protobuf_struct_pb5 = require("google-protobuf/google/protobuf/struct_pb.js");
17375
17816
  function serialize_aggregator_CancelTaskResp(arg) {
17376
- if (!(arg instanceof avs_pb24.CancelTaskResp)) {
17817
+ if (!(arg instanceof avs_pb25.CancelTaskResp)) {
17377
17818
  throw new Error("Expected argument of type aggregator.CancelTaskResp");
17378
17819
  }
17379
17820
  return Buffer.from(arg.serializeBinary());
17380
17821
  }
17381
17822
  function deserialize_aggregator_CancelTaskResp(buffer_arg) {
17382
- return avs_pb24.CancelTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17823
+ return avs_pb25.CancelTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17383
17824
  }
17384
17825
  function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
17385
- if (!(arg instanceof avs_pb24.CreateOrUpdateSecretReq)) {
17826
+ if (!(arg instanceof avs_pb25.CreateOrUpdateSecretReq)) {
17386
17827
  throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
17387
17828
  }
17388
17829
  return Buffer.from(arg.serializeBinary());
17389
17830
  }
17390
17831
  function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
17391
- return avs_pb24.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
17832
+ return avs_pb25.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
17392
17833
  }
17393
17834
  function serialize_aggregator_CreateSecretResp(arg) {
17394
- if (!(arg instanceof avs_pb24.CreateSecretResp)) {
17835
+ if (!(arg instanceof avs_pb25.CreateSecretResp)) {
17395
17836
  throw new Error("Expected argument of type aggregator.CreateSecretResp");
17396
17837
  }
17397
17838
  return Buffer.from(arg.serializeBinary());
17398
17839
  }
17399
17840
  function deserialize_aggregator_CreateSecretResp(buffer_arg) {
17400
- return avs_pb24.CreateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
17841
+ return avs_pb25.CreateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
17401
17842
  }
17402
17843
  function serialize_aggregator_CreateTaskReq(arg) {
17403
- if (!(arg instanceof avs_pb24.CreateTaskReq)) {
17844
+ if (!(arg instanceof avs_pb25.CreateTaskReq)) {
17404
17845
  throw new Error("Expected argument of type aggregator.CreateTaskReq");
17405
17846
  }
17406
17847
  return Buffer.from(arg.serializeBinary());
17407
17848
  }
17408
17849
  function deserialize_aggregator_CreateTaskReq(buffer_arg) {
17409
- return avs_pb24.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
17850
+ return avs_pb25.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
17410
17851
  }
17411
17852
  function serialize_aggregator_CreateTaskResp(arg) {
17412
- if (!(arg instanceof avs_pb24.CreateTaskResp)) {
17853
+ if (!(arg instanceof avs_pb25.CreateTaskResp)) {
17413
17854
  throw new Error("Expected argument of type aggregator.CreateTaskResp");
17414
17855
  }
17415
17856
  return Buffer.from(arg.serializeBinary());
17416
17857
  }
17417
17858
  function deserialize_aggregator_CreateTaskResp(buffer_arg) {
17418
- return avs_pb24.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17859
+ return avs_pb25.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17419
17860
  }
17420
17861
  function serialize_aggregator_DeleteSecretReq(arg) {
17421
- if (!(arg instanceof avs_pb24.DeleteSecretReq)) {
17862
+ if (!(arg instanceof avs_pb25.DeleteSecretReq)) {
17422
17863
  throw new Error("Expected argument of type aggregator.DeleteSecretReq");
17423
17864
  }
17424
17865
  return Buffer.from(arg.serializeBinary());
17425
17866
  }
17426
17867
  function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
17427
- return avs_pb24.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
17868
+ return avs_pb25.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
17428
17869
  }
17429
17870
  function serialize_aggregator_DeleteSecretResp(arg) {
17430
- if (!(arg instanceof avs_pb24.DeleteSecretResp)) {
17871
+ if (!(arg instanceof avs_pb25.DeleteSecretResp)) {
17431
17872
  throw new Error("Expected argument of type aggregator.DeleteSecretResp");
17432
17873
  }
17433
17874
  return Buffer.from(arg.serializeBinary());
17434
17875
  }
17435
17876
  function deserialize_aggregator_DeleteSecretResp(buffer_arg) {
17436
- return avs_pb24.DeleteSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
17877
+ return avs_pb25.DeleteSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
17437
17878
  }
17438
17879
  function serialize_aggregator_DeleteTaskResp(arg) {
17439
- if (!(arg instanceof avs_pb24.DeleteTaskResp)) {
17880
+ if (!(arg instanceof avs_pb25.DeleteTaskResp)) {
17440
17881
  throw new Error("Expected argument of type aggregator.DeleteTaskResp");
17441
17882
  }
17442
17883
  return Buffer.from(arg.serializeBinary());
17443
17884
  }
17444
17885
  function deserialize_aggregator_DeleteTaskResp(buffer_arg) {
17445
- return avs_pb24.DeleteTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17886
+ return avs_pb25.DeleteTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17446
17887
  }
17447
17888
  function serialize_aggregator_EstimateFeesReq(arg) {
17448
- if (!(arg instanceof avs_pb24.EstimateFeesReq)) {
17889
+ if (!(arg instanceof avs_pb25.EstimateFeesReq)) {
17449
17890
  throw new Error("Expected argument of type aggregator.EstimateFeesReq");
17450
17891
  }
17451
17892
  return Buffer.from(arg.serializeBinary());
17452
17893
  }
17453
17894
  function deserialize_aggregator_EstimateFeesReq(buffer_arg) {
17454
- return avs_pb24.EstimateFeesReq.deserializeBinary(new Uint8Array(buffer_arg));
17895
+ return avs_pb25.EstimateFeesReq.deserializeBinary(new Uint8Array(buffer_arg));
17455
17896
  }
17456
17897
  function serialize_aggregator_EstimateFeesResp(arg) {
17457
- if (!(arg instanceof avs_pb24.EstimateFeesResp)) {
17898
+ if (!(arg instanceof avs_pb25.EstimateFeesResp)) {
17458
17899
  throw new Error("Expected argument of type aggregator.EstimateFeesResp");
17459
17900
  }
17460
17901
  return Buffer.from(arg.serializeBinary());
17461
17902
  }
17462
17903
  function deserialize_aggregator_EstimateFeesResp(buffer_arg) {
17463
- return avs_pb24.EstimateFeesResp.deserializeBinary(new Uint8Array(buffer_arg));
17904
+ return avs_pb25.EstimateFeesResp.deserializeBinary(new Uint8Array(buffer_arg));
17464
17905
  }
17465
17906
  function serialize_aggregator_Execution(arg) {
17466
- if (!(arg instanceof avs_pb24.Execution)) {
17907
+ if (!(arg instanceof avs_pb25.Execution)) {
17467
17908
  throw new Error("Expected argument of type aggregator.Execution");
17468
17909
  }
17469
17910
  return Buffer.from(arg.serializeBinary());
17470
17911
  }
17471
17912
  function deserialize_aggregator_Execution(buffer_arg) {
17472
- return avs_pb24.Execution.deserializeBinary(new Uint8Array(buffer_arg));
17913
+ return avs_pb25.Execution.deserializeBinary(new Uint8Array(buffer_arg));
17473
17914
  }
17474
17915
  function serialize_aggregator_ExecutionReq(arg) {
17475
- if (!(arg instanceof avs_pb24.ExecutionReq)) {
17916
+ if (!(arg instanceof avs_pb25.ExecutionReq)) {
17476
17917
  throw new Error("Expected argument of type aggregator.ExecutionReq");
17477
17918
  }
17478
17919
  return Buffer.from(arg.serializeBinary());
17479
17920
  }
17480
17921
  function deserialize_aggregator_ExecutionReq(buffer_arg) {
17481
- return avs_pb24.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
17922
+ return avs_pb25.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
17482
17923
  }
17483
17924
  function serialize_aggregator_ExecutionStatusResp(arg) {
17484
- if (!(arg instanceof avs_pb24.ExecutionStatusResp)) {
17925
+ if (!(arg instanceof avs_pb25.ExecutionStatusResp)) {
17485
17926
  throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
17486
17927
  }
17487
17928
  return Buffer.from(arg.serializeBinary());
17488
17929
  }
17489
17930
  function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
17490
- return avs_pb24.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
17931
+ return avs_pb25.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
17491
17932
  }
17492
17933
  function serialize_aggregator_GetExecutionCountReq(arg) {
17493
- if (!(arg instanceof avs_pb24.GetExecutionCountReq)) {
17934
+ if (!(arg instanceof avs_pb25.GetExecutionCountReq)) {
17494
17935
  throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
17495
17936
  }
17496
17937
  return Buffer.from(arg.serializeBinary());
17497
17938
  }
17498
17939
  function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
17499
- return avs_pb24.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
17940
+ return avs_pb25.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
17500
17941
  }
17501
17942
  function serialize_aggregator_GetExecutionCountResp(arg) {
17502
- if (!(arg instanceof avs_pb24.GetExecutionCountResp)) {
17943
+ if (!(arg instanceof avs_pb25.GetExecutionCountResp)) {
17503
17944
  throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
17504
17945
  }
17505
17946
  return Buffer.from(arg.serializeBinary());
17506
17947
  }
17507
17948
  function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
17508
- return avs_pb24.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
17949
+ return avs_pb25.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
17509
17950
  }
17510
17951
  function serialize_aggregator_GetExecutionStatsReq(arg) {
17511
- if (!(arg instanceof avs_pb24.GetExecutionStatsReq)) {
17952
+ if (!(arg instanceof avs_pb25.GetExecutionStatsReq)) {
17512
17953
  throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
17513
17954
  }
17514
17955
  return Buffer.from(arg.serializeBinary());
17515
17956
  }
17516
17957
  function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
17517
- return avs_pb24.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
17958
+ return avs_pb25.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
17518
17959
  }
17519
17960
  function serialize_aggregator_GetExecutionStatsResp(arg) {
17520
- if (!(arg instanceof avs_pb24.GetExecutionStatsResp)) {
17961
+ if (!(arg instanceof avs_pb25.GetExecutionStatsResp)) {
17521
17962
  throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
17522
17963
  }
17523
17964
  return Buffer.from(arg.serializeBinary());
17524
17965
  }
17525
17966
  function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
17526
- return avs_pb24.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
17967
+ return avs_pb25.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
17527
17968
  }
17528
17969
  function serialize_aggregator_GetKeyReq(arg) {
17529
- if (!(arg instanceof avs_pb24.GetKeyReq)) {
17970
+ if (!(arg instanceof avs_pb25.GetKeyReq)) {
17530
17971
  throw new Error("Expected argument of type aggregator.GetKeyReq");
17531
17972
  }
17532
17973
  return Buffer.from(arg.serializeBinary());
17533
17974
  }
17534
17975
  function deserialize_aggregator_GetKeyReq(buffer_arg) {
17535
- return avs_pb24.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
17976
+ return avs_pb25.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
17536
17977
  }
17537
17978
  function serialize_aggregator_GetSignatureFormatReq(arg) {
17538
- if (!(arg instanceof avs_pb24.GetSignatureFormatReq)) {
17979
+ if (!(arg instanceof avs_pb25.GetSignatureFormatReq)) {
17539
17980
  throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
17540
17981
  }
17541
17982
  return Buffer.from(arg.serializeBinary());
17542
17983
  }
17543
17984
  function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
17544
- return avs_pb24.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
17985
+ return avs_pb25.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
17545
17986
  }
17546
17987
  function serialize_aggregator_GetSignatureFormatResp(arg) {
17547
- if (!(arg instanceof avs_pb24.GetSignatureFormatResp)) {
17988
+ if (!(arg instanceof avs_pb25.GetSignatureFormatResp)) {
17548
17989
  throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
17549
17990
  }
17550
17991
  return Buffer.from(arg.serializeBinary());
17551
17992
  }
17552
17993
  function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
17553
- return avs_pb24.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
17994
+ return avs_pb25.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
17554
17995
  }
17555
17996
  function serialize_aggregator_GetTokenMetadataReq(arg) {
17556
- if (!(arg instanceof avs_pb24.GetTokenMetadataReq)) {
17997
+ if (!(arg instanceof avs_pb25.GetTokenMetadataReq)) {
17557
17998
  throw new Error("Expected argument of type aggregator.GetTokenMetadataReq");
17558
17999
  }
17559
18000
  return Buffer.from(arg.serializeBinary());
17560
18001
  }
17561
18002
  function deserialize_aggregator_GetTokenMetadataReq(buffer_arg) {
17562
- return avs_pb24.GetTokenMetadataReq.deserializeBinary(new Uint8Array(buffer_arg));
18003
+ return avs_pb25.GetTokenMetadataReq.deserializeBinary(new Uint8Array(buffer_arg));
17563
18004
  }
17564
18005
  function serialize_aggregator_GetTokenMetadataResp(arg) {
17565
- if (!(arg instanceof avs_pb24.GetTokenMetadataResp)) {
18006
+ if (!(arg instanceof avs_pb25.GetTokenMetadataResp)) {
17566
18007
  throw new Error("Expected argument of type aggregator.GetTokenMetadataResp");
17567
18008
  }
17568
18009
  return Buffer.from(arg.serializeBinary());
17569
18010
  }
17570
18011
  function deserialize_aggregator_GetTokenMetadataResp(buffer_arg) {
17571
- return avs_pb24.GetTokenMetadataResp.deserializeBinary(new Uint8Array(buffer_arg));
18012
+ return avs_pb25.GetTokenMetadataResp.deserializeBinary(new Uint8Array(buffer_arg));
17572
18013
  }
17573
18014
  function serialize_aggregator_GetWalletReq(arg) {
17574
- if (!(arg instanceof avs_pb24.GetWalletReq)) {
18015
+ if (!(arg instanceof avs_pb25.GetWalletReq)) {
17575
18016
  throw new Error("Expected argument of type aggregator.GetWalletReq");
17576
18017
  }
17577
18018
  return Buffer.from(arg.serializeBinary());
17578
18019
  }
17579
18020
  function deserialize_aggregator_GetWalletReq(buffer_arg) {
17580
- return avs_pb24.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
18021
+ return avs_pb25.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
17581
18022
  }
17582
18023
  function serialize_aggregator_GetWalletResp(arg) {
17583
- if (!(arg instanceof avs_pb24.GetWalletResp)) {
18024
+ if (!(arg instanceof avs_pb25.GetWalletResp)) {
17584
18025
  throw new Error("Expected argument of type aggregator.GetWalletResp");
17585
18026
  }
17586
18027
  return Buffer.from(arg.serializeBinary());
17587
18028
  }
17588
18029
  function deserialize_aggregator_GetWalletResp(buffer_arg) {
17589
- return avs_pb24.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
18030
+ return avs_pb25.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
17590
18031
  }
17591
18032
  function serialize_aggregator_GetWorkflowCountReq(arg) {
17592
- if (!(arg instanceof avs_pb24.GetWorkflowCountReq)) {
18033
+ if (!(arg instanceof avs_pb25.GetWorkflowCountReq)) {
17593
18034
  throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
17594
18035
  }
17595
18036
  return Buffer.from(arg.serializeBinary());
17596
18037
  }
17597
18038
  function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
17598
- return avs_pb24.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
18039
+ return avs_pb25.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
17599
18040
  }
17600
18041
  function serialize_aggregator_GetWorkflowCountResp(arg) {
17601
- if (!(arg instanceof avs_pb24.GetWorkflowCountResp)) {
18042
+ if (!(arg instanceof avs_pb25.GetWorkflowCountResp)) {
17602
18043
  throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
17603
18044
  }
17604
18045
  return Buffer.from(arg.serializeBinary());
17605
18046
  }
17606
18047
  function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
17607
- return avs_pb24.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
18048
+ return avs_pb25.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
17608
18049
  }
17609
18050
  function serialize_aggregator_IdReq(arg) {
17610
- if (!(arg instanceof avs_pb24.IdReq)) {
18051
+ if (!(arg instanceof avs_pb25.IdReq)) {
17611
18052
  throw new Error("Expected argument of type aggregator.IdReq");
17612
18053
  }
17613
18054
  return Buffer.from(arg.serializeBinary());
17614
18055
  }
17615
18056
  function deserialize_aggregator_IdReq(buffer_arg) {
17616
- return avs_pb24.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
18057
+ return avs_pb25.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
17617
18058
  }
17618
18059
  function serialize_aggregator_KeyResp(arg) {
17619
- if (!(arg instanceof avs_pb24.KeyResp)) {
18060
+ if (!(arg instanceof avs_pb25.KeyResp)) {
17620
18061
  throw new Error("Expected argument of type aggregator.KeyResp");
17621
18062
  }
17622
18063
  return Buffer.from(arg.serializeBinary());
17623
18064
  }
17624
18065
  function deserialize_aggregator_KeyResp(buffer_arg) {
17625
- return avs_pb24.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
18066
+ return avs_pb25.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
17626
18067
  }
17627
18068
  function serialize_aggregator_ListExecutionsReq(arg) {
17628
- if (!(arg instanceof avs_pb24.ListExecutionsReq)) {
18069
+ if (!(arg instanceof avs_pb25.ListExecutionsReq)) {
17629
18070
  throw new Error("Expected argument of type aggregator.ListExecutionsReq");
17630
18071
  }
17631
18072
  return Buffer.from(arg.serializeBinary());
17632
18073
  }
17633
18074
  function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
17634
- return avs_pb24.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
18075
+ return avs_pb25.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
17635
18076
  }
17636
18077
  function serialize_aggregator_ListExecutionsResp(arg) {
17637
- if (!(arg instanceof avs_pb24.ListExecutionsResp)) {
18078
+ if (!(arg instanceof avs_pb25.ListExecutionsResp)) {
17638
18079
  throw new Error("Expected argument of type aggregator.ListExecutionsResp");
17639
18080
  }
17640
18081
  return Buffer.from(arg.serializeBinary());
17641
18082
  }
17642
18083
  function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
17643
- return avs_pb24.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
18084
+ return avs_pb25.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
17644
18085
  }
17645
18086
  function serialize_aggregator_ListSecretsReq(arg) {
17646
- if (!(arg instanceof avs_pb24.ListSecretsReq)) {
18087
+ if (!(arg instanceof avs_pb25.ListSecretsReq)) {
17647
18088
  throw new Error("Expected argument of type aggregator.ListSecretsReq");
17648
18089
  }
17649
18090
  return Buffer.from(arg.serializeBinary());
17650
18091
  }
17651
18092
  function deserialize_aggregator_ListSecretsReq(buffer_arg) {
17652
- return avs_pb24.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
18093
+ return avs_pb25.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
17653
18094
  }
17654
18095
  function serialize_aggregator_ListSecretsResp(arg) {
17655
- if (!(arg instanceof avs_pb24.ListSecretsResp)) {
18096
+ if (!(arg instanceof avs_pb25.ListSecretsResp)) {
17656
18097
  throw new Error("Expected argument of type aggregator.ListSecretsResp");
17657
18098
  }
17658
18099
  return Buffer.from(arg.serializeBinary());
17659
18100
  }
17660
18101
  function deserialize_aggregator_ListSecretsResp(buffer_arg) {
17661
- return avs_pb24.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
18102
+ return avs_pb25.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
17662
18103
  }
17663
18104
  function serialize_aggregator_ListTasksReq(arg) {
17664
- if (!(arg instanceof avs_pb24.ListTasksReq)) {
18105
+ if (!(arg instanceof avs_pb25.ListTasksReq)) {
17665
18106
  throw new Error("Expected argument of type aggregator.ListTasksReq");
17666
18107
  }
17667
18108
  return Buffer.from(arg.serializeBinary());
17668
18109
  }
17669
18110
  function deserialize_aggregator_ListTasksReq(buffer_arg) {
17670
- return avs_pb24.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
18111
+ return avs_pb25.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
17671
18112
  }
17672
18113
  function serialize_aggregator_ListTasksResp(arg) {
17673
- if (!(arg instanceof avs_pb24.ListTasksResp)) {
18114
+ if (!(arg instanceof avs_pb25.ListTasksResp)) {
17674
18115
  throw new Error("Expected argument of type aggregator.ListTasksResp");
17675
18116
  }
17676
18117
  return Buffer.from(arg.serializeBinary());
17677
18118
  }
17678
18119
  function deserialize_aggregator_ListTasksResp(buffer_arg) {
17679
- return avs_pb24.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
18120
+ return avs_pb25.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
17680
18121
  }
17681
18122
  function serialize_aggregator_ListWalletReq(arg) {
17682
- if (!(arg instanceof avs_pb24.ListWalletReq)) {
18123
+ if (!(arg instanceof avs_pb25.ListWalletReq)) {
17683
18124
  throw new Error("Expected argument of type aggregator.ListWalletReq");
17684
18125
  }
17685
18126
  return Buffer.from(arg.serializeBinary());
17686
18127
  }
17687
18128
  function deserialize_aggregator_ListWalletReq(buffer_arg) {
17688
- return avs_pb24.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
18129
+ return avs_pb25.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
17689
18130
  }
17690
18131
  function serialize_aggregator_ListWalletResp(arg) {
17691
- if (!(arg instanceof avs_pb24.ListWalletResp)) {
18132
+ if (!(arg instanceof avs_pb25.ListWalletResp)) {
17692
18133
  throw new Error("Expected argument of type aggregator.ListWalletResp");
17693
18134
  }
17694
18135
  return Buffer.from(arg.serializeBinary());
17695
18136
  }
17696
18137
  function deserialize_aggregator_ListWalletResp(buffer_arg) {
17697
- return avs_pb24.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
18138
+ return avs_pb25.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
17698
18139
  }
17699
18140
  function serialize_aggregator_NonceRequest(arg) {
17700
- if (!(arg instanceof avs_pb24.NonceRequest)) {
18141
+ if (!(arg instanceof avs_pb25.NonceRequest)) {
17701
18142
  throw new Error("Expected argument of type aggregator.NonceRequest");
17702
18143
  }
17703
18144
  return Buffer.from(arg.serializeBinary());
17704
18145
  }
17705
18146
  function deserialize_aggregator_NonceRequest(buffer_arg) {
17706
- return avs_pb24.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
18147
+ return avs_pb25.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
17707
18148
  }
17708
18149
  function serialize_aggregator_NonceResp(arg) {
17709
- if (!(arg instanceof avs_pb24.NonceResp)) {
18150
+ if (!(arg instanceof avs_pb25.NonceResp)) {
17710
18151
  throw new Error("Expected argument of type aggregator.NonceResp");
17711
18152
  }
17712
18153
  return Buffer.from(arg.serializeBinary());
17713
18154
  }
17714
18155
  function deserialize_aggregator_NonceResp(buffer_arg) {
17715
- return avs_pb24.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
18156
+ return avs_pb25.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
17716
18157
  }
17717
18158
  function serialize_aggregator_RunNodeWithInputsReq(arg) {
17718
- if (!(arg instanceof avs_pb24.RunNodeWithInputsReq)) {
18159
+ if (!(arg instanceof avs_pb25.RunNodeWithInputsReq)) {
17719
18160
  throw new Error("Expected argument of type aggregator.RunNodeWithInputsReq");
17720
18161
  }
17721
18162
  return Buffer.from(arg.serializeBinary());
17722
18163
  }
17723
18164
  function deserialize_aggregator_RunNodeWithInputsReq(buffer_arg) {
17724
- return avs_pb24.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
18165
+ return avs_pb25.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
17725
18166
  }
17726
18167
  function serialize_aggregator_RunNodeWithInputsResp(arg) {
17727
- if (!(arg instanceof avs_pb24.RunNodeWithInputsResp)) {
18168
+ if (!(arg instanceof avs_pb25.RunNodeWithInputsResp)) {
17728
18169
  throw new Error("Expected argument of type aggregator.RunNodeWithInputsResp");
17729
18170
  }
17730
18171
  return Buffer.from(arg.serializeBinary());
17731
18172
  }
17732
18173
  function deserialize_aggregator_RunNodeWithInputsResp(buffer_arg) {
17733
- return avs_pb24.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
18174
+ return avs_pb25.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
17734
18175
  }
17735
18176
  function serialize_aggregator_RunTriggerReq(arg) {
17736
- if (!(arg instanceof avs_pb24.RunTriggerReq)) {
18177
+ if (!(arg instanceof avs_pb25.RunTriggerReq)) {
17737
18178
  throw new Error("Expected argument of type aggregator.RunTriggerReq");
17738
18179
  }
17739
18180
  return Buffer.from(arg.serializeBinary());
17740
18181
  }
17741
18182
  function deserialize_aggregator_RunTriggerReq(buffer_arg) {
17742
- return avs_pb24.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
18183
+ return avs_pb25.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
17743
18184
  }
17744
18185
  function serialize_aggregator_RunTriggerResp(arg) {
17745
- if (!(arg instanceof avs_pb24.RunTriggerResp)) {
18186
+ if (!(arg instanceof avs_pb25.RunTriggerResp)) {
17746
18187
  throw new Error("Expected argument of type aggregator.RunTriggerResp");
17747
18188
  }
17748
18189
  return Buffer.from(arg.serializeBinary());
17749
18190
  }
17750
18191
  function deserialize_aggregator_RunTriggerResp(buffer_arg) {
17751
- return avs_pb24.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
18192
+ return avs_pb25.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
17752
18193
  }
17753
18194
  function serialize_aggregator_SetWalletReq(arg) {
17754
- if (!(arg instanceof avs_pb24.SetWalletReq)) {
18195
+ if (!(arg instanceof avs_pb25.SetWalletReq)) {
17755
18196
  throw new Error("Expected argument of type aggregator.SetWalletReq");
17756
18197
  }
17757
18198
  return Buffer.from(arg.serializeBinary());
17758
18199
  }
17759
18200
  function deserialize_aggregator_SetWalletReq(buffer_arg) {
17760
- return avs_pb24.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
18201
+ return avs_pb25.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
17761
18202
  }
17762
18203
  function serialize_aggregator_SimulateTaskReq(arg) {
17763
- if (!(arg instanceof avs_pb24.SimulateTaskReq)) {
18204
+ if (!(arg instanceof avs_pb25.SimulateTaskReq)) {
17764
18205
  throw new Error("Expected argument of type aggregator.SimulateTaskReq");
17765
18206
  }
17766
18207
  return Buffer.from(arg.serializeBinary());
17767
18208
  }
17768
18209
  function deserialize_aggregator_SimulateTaskReq(buffer_arg) {
17769
- return avs_pb24.SimulateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
18210
+ return avs_pb25.SimulateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
17770
18211
  }
17771
18212
  function serialize_aggregator_Task(arg) {
17772
- if (!(arg instanceof avs_pb24.Task)) {
18213
+ if (!(arg instanceof avs_pb25.Task)) {
17773
18214
  throw new Error("Expected argument of type aggregator.Task");
17774
18215
  }
17775
18216
  return Buffer.from(arg.serializeBinary());
17776
18217
  }
17777
18218
  function deserialize_aggregator_Task(buffer_arg) {
17778
- return avs_pb24.Task.deserializeBinary(new Uint8Array(buffer_arg));
18219
+ return avs_pb25.Task.deserializeBinary(new Uint8Array(buffer_arg));
17779
18220
  }
17780
18221
  function serialize_aggregator_TriggerTaskReq(arg) {
17781
- if (!(arg instanceof avs_pb24.TriggerTaskReq)) {
18222
+ if (!(arg instanceof avs_pb25.TriggerTaskReq)) {
17782
18223
  throw new Error("Expected argument of type aggregator.TriggerTaskReq");
17783
18224
  }
17784
18225
  return Buffer.from(arg.serializeBinary());
17785
18226
  }
17786
18227
  function deserialize_aggregator_TriggerTaskReq(buffer_arg) {
17787
- return avs_pb24.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
18228
+ return avs_pb25.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
17788
18229
  }
17789
18230
  function serialize_aggregator_TriggerTaskResp(arg) {
17790
- if (!(arg instanceof avs_pb24.TriggerTaskResp)) {
18231
+ if (!(arg instanceof avs_pb25.TriggerTaskResp)) {
17791
18232
  throw new Error("Expected argument of type aggregator.TriggerTaskResp");
17792
18233
  }
17793
18234
  return Buffer.from(arg.serializeBinary());
17794
18235
  }
17795
18236
  function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
17796
- return avs_pb24.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
18237
+ return avs_pb25.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
17797
18238
  }
17798
18239
  function serialize_aggregator_UpdateSecretResp(arg) {
17799
- if (!(arg instanceof avs_pb24.UpdateSecretResp)) {
18240
+ if (!(arg instanceof avs_pb25.UpdateSecretResp)) {
17800
18241
  throw new Error("Expected argument of type aggregator.UpdateSecretResp");
17801
18242
  }
17802
18243
  return Buffer.from(arg.serializeBinary());
17803
18244
  }
17804
18245
  function deserialize_aggregator_UpdateSecretResp(buffer_arg) {
17805
- return avs_pb24.UpdateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
18246
+ return avs_pb25.UpdateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
17806
18247
  }
17807
18248
  function serialize_aggregator_WithdrawFundsReq(arg) {
17808
- if (!(arg instanceof avs_pb24.WithdrawFundsReq)) {
18249
+ if (!(arg instanceof avs_pb25.WithdrawFundsReq)) {
17809
18250
  throw new Error("Expected argument of type aggregator.WithdrawFundsReq");
17810
18251
  }
17811
18252
  return Buffer.from(arg.serializeBinary());
17812
18253
  }
17813
18254
  function deserialize_aggregator_WithdrawFundsReq(buffer_arg) {
17814
- return avs_pb24.WithdrawFundsReq.deserializeBinary(new Uint8Array(buffer_arg));
18255
+ return avs_pb25.WithdrawFundsReq.deserializeBinary(new Uint8Array(buffer_arg));
17815
18256
  }
17816
18257
  function serialize_aggregator_WithdrawFundsResp(arg) {
17817
- if (!(arg instanceof avs_pb24.WithdrawFundsResp)) {
18258
+ if (!(arg instanceof avs_pb25.WithdrawFundsResp)) {
17818
18259
  throw new Error("Expected argument of type aggregator.WithdrawFundsResp");
17819
18260
  }
17820
18261
  return Buffer.from(arg.serializeBinary());
17821
18262
  }
17822
18263
  function deserialize_aggregator_WithdrawFundsResp(buffer_arg) {
17823
- return avs_pb24.WithdrawFundsResp.deserializeBinary(new Uint8Array(buffer_arg));
18264
+ return avs_pb25.WithdrawFundsResp.deserializeBinary(new Uint8Array(buffer_arg));
17824
18265
  }
17825
18266
  var AggregatorService = exports2.AggregatorService = {
17826
18267
  // Exchange for an Auth Key to authenticate in subsequent request
@@ -17828,8 +18269,8 @@ var require_avs_grpc_pb = __commonJS({
17828
18269
  path: "/aggregator.Aggregator/GetKey",
17829
18270
  requestStream: false,
17830
18271
  responseStream: false,
17831
- requestType: avs_pb24.GetKeyReq,
17832
- responseType: avs_pb24.KeyResp,
18272
+ requestType: avs_pb25.GetKeyReq,
18273
+ responseType: avs_pb25.KeyResp,
17833
18274
  requestSerialize: serialize_aggregator_GetKeyReq,
17834
18275
  requestDeserialize: deserialize_aggregator_GetKeyReq,
17835
18276
  responseSerialize: serialize_aggregator_KeyResp,
@@ -17840,8 +18281,8 @@ var require_avs_grpc_pb = __commonJS({
17840
18281
  path: "/aggregator.Aggregator/GetSignatureFormat",
17841
18282
  requestStream: false,
17842
18283
  responseStream: false,
17843
- requestType: avs_pb24.GetSignatureFormatReq,
17844
- responseType: avs_pb24.GetSignatureFormatResp,
18284
+ requestType: avs_pb25.GetSignatureFormatReq,
18285
+ responseType: avs_pb25.GetSignatureFormatResp,
17845
18286
  requestSerialize: serialize_aggregator_GetSignatureFormatReq,
17846
18287
  requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
17847
18288
  responseSerialize: serialize_aggregator_GetSignatureFormatResp,
@@ -17852,8 +18293,8 @@ var require_avs_grpc_pb = __commonJS({
17852
18293
  path: "/aggregator.Aggregator/GetNonce",
17853
18294
  requestStream: false,
17854
18295
  responseStream: false,
17855
- requestType: avs_pb24.NonceRequest,
17856
- responseType: avs_pb24.NonceResp,
18296
+ requestType: avs_pb25.NonceRequest,
18297
+ responseType: avs_pb25.NonceResp,
17857
18298
  requestSerialize: serialize_aggregator_NonceRequest,
17858
18299
  requestDeserialize: deserialize_aggregator_NonceRequest,
17859
18300
  responseSerialize: serialize_aggregator_NonceResp,
@@ -17863,8 +18304,8 @@ var require_avs_grpc_pb = __commonJS({
17863
18304
  path: "/aggregator.Aggregator/GetWallet",
17864
18305
  requestStream: false,
17865
18306
  responseStream: false,
17866
- requestType: avs_pb24.GetWalletReq,
17867
- responseType: avs_pb24.GetWalletResp,
18307
+ requestType: avs_pb25.GetWalletReq,
18308
+ responseType: avs_pb25.GetWalletResp,
17868
18309
  requestSerialize: serialize_aggregator_GetWalletReq,
17869
18310
  requestDeserialize: deserialize_aggregator_GetWalletReq,
17870
18311
  responseSerialize: serialize_aggregator_GetWalletResp,
@@ -17874,8 +18315,8 @@ var require_avs_grpc_pb = __commonJS({
17874
18315
  path: "/aggregator.Aggregator/SetWallet",
17875
18316
  requestStream: false,
17876
18317
  responseStream: false,
17877
- requestType: avs_pb24.SetWalletReq,
17878
- responseType: avs_pb24.GetWalletResp,
18318
+ requestType: avs_pb25.SetWalletReq,
18319
+ responseType: avs_pb25.GetWalletResp,
17879
18320
  requestSerialize: serialize_aggregator_SetWalletReq,
17880
18321
  requestDeserialize: deserialize_aggregator_SetWalletReq,
17881
18322
  responseSerialize: serialize_aggregator_GetWalletResp,
@@ -17885,8 +18326,8 @@ var require_avs_grpc_pb = __commonJS({
17885
18326
  path: "/aggregator.Aggregator/ListWallets",
17886
18327
  requestStream: false,
17887
18328
  responseStream: false,
17888
- requestType: avs_pb24.ListWalletReq,
17889
- responseType: avs_pb24.ListWalletResp,
18329
+ requestType: avs_pb25.ListWalletReq,
18330
+ responseType: avs_pb25.ListWalletResp,
17890
18331
  requestSerialize: serialize_aggregator_ListWalletReq,
17891
18332
  requestDeserialize: deserialize_aggregator_ListWalletReq,
17892
18333
  responseSerialize: serialize_aggregator_ListWalletResp,
@@ -17897,8 +18338,8 @@ var require_avs_grpc_pb = __commonJS({
17897
18338
  path: "/aggregator.Aggregator/WithdrawFunds",
17898
18339
  requestStream: false,
17899
18340
  responseStream: false,
17900
- requestType: avs_pb24.WithdrawFundsReq,
17901
- responseType: avs_pb24.WithdrawFundsResp,
18341
+ requestType: avs_pb25.WithdrawFundsReq,
18342
+ responseType: avs_pb25.WithdrawFundsResp,
17902
18343
  requestSerialize: serialize_aggregator_WithdrawFundsReq,
17903
18344
  requestDeserialize: deserialize_aggregator_WithdrawFundsReq,
17904
18345
  responseSerialize: serialize_aggregator_WithdrawFundsResp,
@@ -17909,8 +18350,8 @@ var require_avs_grpc_pb = __commonJS({
17909
18350
  path: "/aggregator.Aggregator/CreateTask",
17910
18351
  requestStream: false,
17911
18352
  responseStream: false,
17912
- requestType: avs_pb24.CreateTaskReq,
17913
- responseType: avs_pb24.CreateTaskResp,
18353
+ requestType: avs_pb25.CreateTaskReq,
18354
+ responseType: avs_pb25.CreateTaskResp,
17914
18355
  requestSerialize: serialize_aggregator_CreateTaskReq,
17915
18356
  requestDeserialize: deserialize_aggregator_CreateTaskReq,
17916
18357
  responseSerialize: serialize_aggregator_CreateTaskResp,
@@ -17920,8 +18361,8 @@ var require_avs_grpc_pb = __commonJS({
17920
18361
  path: "/aggregator.Aggregator/ListTasks",
17921
18362
  requestStream: false,
17922
18363
  responseStream: false,
17923
- requestType: avs_pb24.ListTasksReq,
17924
- responseType: avs_pb24.ListTasksResp,
18364
+ requestType: avs_pb25.ListTasksReq,
18365
+ responseType: avs_pb25.ListTasksResp,
17925
18366
  requestSerialize: serialize_aggregator_ListTasksReq,
17926
18367
  requestDeserialize: deserialize_aggregator_ListTasksReq,
17927
18368
  responseSerialize: serialize_aggregator_ListTasksResp,
@@ -17931,8 +18372,8 @@ var require_avs_grpc_pb = __commonJS({
17931
18372
  path: "/aggregator.Aggregator/GetTask",
17932
18373
  requestStream: false,
17933
18374
  responseStream: false,
17934
- requestType: avs_pb24.IdReq,
17935
- responseType: avs_pb24.Task,
18375
+ requestType: avs_pb25.IdReq,
18376
+ responseType: avs_pb25.Task,
17936
18377
  requestSerialize: serialize_aggregator_IdReq,
17937
18378
  requestDeserialize: deserialize_aggregator_IdReq,
17938
18379
  responseSerialize: serialize_aggregator_Task,
@@ -17942,8 +18383,8 @@ var require_avs_grpc_pb = __commonJS({
17942
18383
  path: "/aggregator.Aggregator/ListExecutions",
17943
18384
  requestStream: false,
17944
18385
  responseStream: false,
17945
- requestType: avs_pb24.ListExecutionsReq,
17946
- responseType: avs_pb24.ListExecutionsResp,
18386
+ requestType: avs_pb25.ListExecutionsReq,
18387
+ responseType: avs_pb25.ListExecutionsResp,
17947
18388
  requestSerialize: serialize_aggregator_ListExecutionsReq,
17948
18389
  requestDeserialize: deserialize_aggregator_ListExecutionsReq,
17949
18390
  responseSerialize: serialize_aggregator_ListExecutionsResp,
@@ -17953,8 +18394,8 @@ var require_avs_grpc_pb = __commonJS({
17953
18394
  path: "/aggregator.Aggregator/GetExecution",
17954
18395
  requestStream: false,
17955
18396
  responseStream: false,
17956
- requestType: avs_pb24.ExecutionReq,
17957
- responseType: avs_pb24.Execution,
18397
+ requestType: avs_pb25.ExecutionReq,
18398
+ responseType: avs_pb25.Execution,
17958
18399
  requestSerialize: serialize_aggregator_ExecutionReq,
17959
18400
  requestDeserialize: deserialize_aggregator_ExecutionReq,
17960
18401
  responseSerialize: serialize_aggregator_Execution,
@@ -17964,8 +18405,8 @@ var require_avs_grpc_pb = __commonJS({
17964
18405
  path: "/aggregator.Aggregator/GetExecutionStatus",
17965
18406
  requestStream: false,
17966
18407
  responseStream: false,
17967
- requestType: avs_pb24.ExecutionReq,
17968
- responseType: avs_pb24.ExecutionStatusResp,
18408
+ requestType: avs_pb25.ExecutionReq,
18409
+ responseType: avs_pb25.ExecutionStatusResp,
17969
18410
  requestSerialize: serialize_aggregator_ExecutionReq,
17970
18411
  requestDeserialize: deserialize_aggregator_ExecutionReq,
17971
18412
  responseSerialize: serialize_aggregator_ExecutionStatusResp,
@@ -17975,8 +18416,8 @@ var require_avs_grpc_pb = __commonJS({
17975
18416
  path: "/aggregator.Aggregator/CancelTask",
17976
18417
  requestStream: false,
17977
18418
  responseStream: false,
17978
- requestType: avs_pb24.IdReq,
17979
- responseType: avs_pb24.CancelTaskResp,
18419
+ requestType: avs_pb25.IdReq,
18420
+ responseType: avs_pb25.CancelTaskResp,
17980
18421
  requestSerialize: serialize_aggregator_IdReq,
17981
18422
  requestDeserialize: deserialize_aggregator_IdReq,
17982
18423
  responseSerialize: serialize_aggregator_CancelTaskResp,
@@ -17986,8 +18427,8 @@ var require_avs_grpc_pb = __commonJS({
17986
18427
  path: "/aggregator.Aggregator/DeleteTask",
17987
18428
  requestStream: false,
17988
18429
  responseStream: false,
17989
- requestType: avs_pb24.IdReq,
17990
- responseType: avs_pb24.DeleteTaskResp,
18430
+ requestType: avs_pb25.IdReq,
18431
+ responseType: avs_pb25.DeleteTaskResp,
17991
18432
  requestSerialize: serialize_aggregator_IdReq,
17992
18433
  requestDeserialize: deserialize_aggregator_IdReq,
17993
18434
  responseSerialize: serialize_aggregator_DeleteTaskResp,
@@ -17997,8 +18438,8 @@ var require_avs_grpc_pb = __commonJS({
17997
18438
  path: "/aggregator.Aggregator/TriggerTask",
17998
18439
  requestStream: false,
17999
18440
  responseStream: false,
18000
- requestType: avs_pb24.TriggerTaskReq,
18001
- responseType: avs_pb24.TriggerTaskResp,
18441
+ requestType: avs_pb25.TriggerTaskReq,
18442
+ responseType: avs_pb25.TriggerTaskResp,
18002
18443
  requestSerialize: serialize_aggregator_TriggerTaskReq,
18003
18444
  requestDeserialize: deserialize_aggregator_TriggerTaskReq,
18004
18445
  responseSerialize: serialize_aggregator_TriggerTaskResp,
@@ -18011,8 +18452,8 @@ var require_avs_grpc_pb = __commonJS({
18011
18452
  path: "/aggregator.Aggregator/CreateSecret",
18012
18453
  requestStream: false,
18013
18454
  responseStream: false,
18014
- requestType: avs_pb24.CreateOrUpdateSecretReq,
18015
- responseType: avs_pb24.CreateSecretResp,
18455
+ requestType: avs_pb25.CreateOrUpdateSecretReq,
18456
+ responseType: avs_pb25.CreateSecretResp,
18016
18457
  requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
18017
18458
  requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
18018
18459
  responseSerialize: serialize_aggregator_CreateSecretResp,
@@ -18022,8 +18463,8 @@ var require_avs_grpc_pb = __commonJS({
18022
18463
  path: "/aggregator.Aggregator/DeleteSecret",
18023
18464
  requestStream: false,
18024
18465
  responseStream: false,
18025
- requestType: avs_pb24.DeleteSecretReq,
18026
- responseType: avs_pb24.DeleteSecretResp,
18466
+ requestType: avs_pb25.DeleteSecretReq,
18467
+ responseType: avs_pb25.DeleteSecretResp,
18027
18468
  requestSerialize: serialize_aggregator_DeleteSecretReq,
18028
18469
  requestDeserialize: deserialize_aggregator_DeleteSecretReq,
18029
18470
  responseSerialize: serialize_aggregator_DeleteSecretResp,
@@ -18035,8 +18476,8 @@ var require_avs_grpc_pb = __commonJS({
18035
18476
  path: "/aggregator.Aggregator/ListSecrets",
18036
18477
  requestStream: false,
18037
18478
  responseStream: false,
18038
- requestType: avs_pb24.ListSecretsReq,
18039
- responseType: avs_pb24.ListSecretsResp,
18479
+ requestType: avs_pb25.ListSecretsReq,
18480
+ responseType: avs_pb25.ListSecretsResp,
18040
18481
  requestSerialize: serialize_aggregator_ListSecretsReq,
18041
18482
  requestDeserialize: deserialize_aggregator_ListSecretsReq,
18042
18483
  responseSerialize: serialize_aggregator_ListSecretsResp,
@@ -18048,8 +18489,8 @@ var require_avs_grpc_pb = __commonJS({
18048
18489
  path: "/aggregator.Aggregator/UpdateSecret",
18049
18490
  requestStream: false,
18050
18491
  responseStream: false,
18051
- requestType: avs_pb24.CreateOrUpdateSecretReq,
18052
- responseType: avs_pb24.UpdateSecretResp,
18492
+ requestType: avs_pb25.CreateOrUpdateSecretReq,
18493
+ responseType: avs_pb25.UpdateSecretResp,
18053
18494
  requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
18054
18495
  requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
18055
18496
  responseSerialize: serialize_aggregator_UpdateSecretResp,
@@ -18065,8 +18506,8 @@ var require_avs_grpc_pb = __commonJS({
18065
18506
  path: "/aggregator.Aggregator/GetWorkflowCount",
18066
18507
  requestStream: false,
18067
18508
  responseStream: false,
18068
- requestType: avs_pb24.GetWorkflowCountReq,
18069
- responseType: avs_pb24.GetWorkflowCountResp,
18509
+ requestType: avs_pb25.GetWorkflowCountReq,
18510
+ responseType: avs_pb25.GetWorkflowCountResp,
18070
18511
  requestSerialize: serialize_aggregator_GetWorkflowCountReq,
18071
18512
  requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
18072
18513
  responseSerialize: serialize_aggregator_GetWorkflowCountResp,
@@ -18080,8 +18521,8 @@ var require_avs_grpc_pb = __commonJS({
18080
18521
  path: "/aggregator.Aggregator/GetExecutionCount",
18081
18522
  requestStream: false,
18082
18523
  responseStream: false,
18083
- requestType: avs_pb24.GetExecutionCountReq,
18084
- responseType: avs_pb24.GetExecutionCountResp,
18524
+ requestType: avs_pb25.GetExecutionCountReq,
18525
+ responseType: avs_pb25.GetExecutionCountResp,
18085
18526
  requestSerialize: serialize_aggregator_GetExecutionCountReq,
18086
18527
  requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
18087
18528
  responseSerialize: serialize_aggregator_GetExecutionCountResp,
@@ -18094,8 +18535,8 @@ var require_avs_grpc_pb = __commonJS({
18094
18535
  path: "/aggregator.Aggregator/GetExecutionStats",
18095
18536
  requestStream: false,
18096
18537
  responseStream: false,
18097
- requestType: avs_pb24.GetExecutionStatsReq,
18098
- responseType: avs_pb24.GetExecutionStatsResp,
18538
+ requestType: avs_pb25.GetExecutionStatsReq,
18539
+ responseType: avs_pb25.GetExecutionStatsResp,
18099
18540
  requestSerialize: serialize_aggregator_GetExecutionStatsReq,
18100
18541
  requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
18101
18542
  responseSerialize: serialize_aggregator_GetExecutionStatsResp,
@@ -18106,8 +18547,8 @@ var require_avs_grpc_pb = __commonJS({
18106
18547
  path: "/aggregator.Aggregator/RunNodeWithInputs",
18107
18548
  requestStream: false,
18108
18549
  responseStream: false,
18109
- requestType: avs_pb24.RunNodeWithInputsReq,
18110
- responseType: avs_pb24.RunNodeWithInputsResp,
18550
+ requestType: avs_pb25.RunNodeWithInputsReq,
18551
+ responseType: avs_pb25.RunNodeWithInputsResp,
18111
18552
  requestSerialize: serialize_aggregator_RunNodeWithInputsReq,
18112
18553
  requestDeserialize: deserialize_aggregator_RunNodeWithInputsReq,
18113
18554
  responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
@@ -18118,8 +18559,8 @@ var require_avs_grpc_pb = __commonJS({
18118
18559
  path: "/aggregator.Aggregator/RunTrigger",
18119
18560
  requestStream: false,
18120
18561
  responseStream: false,
18121
- requestType: avs_pb24.RunTriggerReq,
18122
- responseType: avs_pb24.RunTriggerResp,
18562
+ requestType: avs_pb25.RunTriggerReq,
18563
+ responseType: avs_pb25.RunTriggerResp,
18123
18564
  requestSerialize: serialize_aggregator_RunTriggerReq,
18124
18565
  requestDeserialize: deserialize_aggregator_RunTriggerReq,
18125
18566
  responseSerialize: serialize_aggregator_RunTriggerResp,
@@ -18130,8 +18571,8 @@ var require_avs_grpc_pb = __commonJS({
18130
18571
  path: "/aggregator.Aggregator/SimulateTask",
18131
18572
  requestStream: false,
18132
18573
  responseStream: false,
18133
- requestType: avs_pb24.SimulateTaskReq,
18134
- responseType: avs_pb24.Execution,
18574
+ requestType: avs_pb25.SimulateTaskReq,
18575
+ responseType: avs_pb25.Execution,
18135
18576
  requestSerialize: serialize_aggregator_SimulateTaskReq,
18136
18577
  requestDeserialize: deserialize_aggregator_SimulateTaskReq,
18137
18578
  responseSerialize: serialize_aggregator_Execution,
@@ -18142,8 +18583,8 @@ var require_avs_grpc_pb = __commonJS({
18142
18583
  path: "/aggregator.Aggregator/GetTokenMetadata",
18143
18584
  requestStream: false,
18144
18585
  responseStream: false,
18145
- requestType: avs_pb24.GetTokenMetadataReq,
18146
- responseType: avs_pb24.GetTokenMetadataResp,
18586
+ requestType: avs_pb25.GetTokenMetadataReq,
18587
+ responseType: avs_pb25.GetTokenMetadataResp,
18147
18588
  requestSerialize: serialize_aggregator_GetTokenMetadataReq,
18148
18589
  requestDeserialize: deserialize_aggregator_GetTokenMetadataReq,
18149
18590
  responseSerialize: serialize_aggregator_GetTokenMetadataResp,
@@ -18156,8 +18597,8 @@ var require_avs_grpc_pb = __commonJS({
18156
18597
  path: "/aggregator.Aggregator/EstimateFees",
18157
18598
  requestStream: false,
18158
18599
  responseStream: false,
18159
- requestType: avs_pb24.EstimateFeesReq,
18160
- responseType: avs_pb24.EstimateFeesResp,
18600
+ requestType: avs_pb25.EstimateFeesReq,
18601
+ responseType: avs_pb25.EstimateFeesResp,
18161
18602
  requestSerialize: serialize_aggregator_EstimateFeesReq,
18162
18603
  requestDeserialize: deserialize_aggregator_EstimateFeesReq,
18163
18604
  responseSerialize: serialize_aggregator_EstimateFeesResp,
@@ -18171,6 +18612,7 @@ var require_avs_grpc_pb = __commonJS({
18171
18612
  // src/index.ts
18172
18613
  var index_exports = {};
18173
18614
  __export(index_exports, {
18615
+ BalanceNode: () => balance_default,
18174
18616
  BlockTrigger: () => block_default,
18175
18617
  BranchNode: () => branch_default,
18176
18618
  Client: () => Client,
@@ -18180,7 +18622,7 @@ __export(index_exports, {
18180
18622
  CustomCodeNode: () => customCode_default,
18181
18623
  ETHTransferNode: () => ethTransfer_default,
18182
18624
  Edge: () => edge_default,
18183
- ErrorCode: () => import_types21.ErrorCode,
18625
+ ErrorCode: () => import_types22.ErrorCode,
18184
18626
  EventTrigger: () => event_default,
18185
18627
  Execution: () => execution_default,
18186
18628
  FilterNode: () => filter_default,
@@ -18201,11 +18643,11 @@ __export(index_exports, {
18201
18643
  module.exports = __toCommonJS(index_exports);
18202
18644
  var import_grpc_js = require("@grpc/grpc-js");
18203
18645
  var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
18204
- var avs_pb23 = __toESM(require_avs_pb());
18646
+ var avs_pb24 = __toESM(require_avs_pb());
18205
18647
 
18206
18648
  // src/models/workflow.ts
18207
18649
  var import_lodash3 = __toESM(require("lodash"));
18208
- var avs_pb19 = __toESM(require_avs_pb());
18650
+ var avs_pb20 = __toESM(require_avs_pb());
18209
18651
 
18210
18652
  // src/models/edge.ts
18211
18653
  var avs_pb = __toESM(require_avs_pb());
@@ -18551,6 +18993,9 @@ function convertProtobufNodeTypeToSdk(protobufType) {
18551
18993
  case "NODE_TYPE_LOOP":
18552
18994
  return import_types3.NodeType.Loop;
18553
18995
  // "loop"
18996
+ case "NODE_TYPE_BALANCE":
18997
+ return import_types3.NodeType.Balance;
18998
+ // "balance"
18554
18999
  case "NODE_TYPE_UNSPECIFIED":
18555
19000
  return import_types3.NodeType.Unspecified;
18556
19001
  // "unspecified"
@@ -18654,7 +19099,7 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
18654
19099
  if (queryData.maxEventsPerBlock !== void 0) {
18655
19100
  query.setMaxEventsPerBlock(queryData.maxEventsPerBlock);
18656
19101
  }
18657
- if (queryData.contractAbi) {
19102
+ if (queryData.contractAbi !== void 0) {
18658
19103
  if (!Array.isArray(queryData.contractAbi)) {
18659
19104
  throw new Error("contractAbi must be an array of ABI elements");
18660
19105
  }
@@ -18894,12 +19339,14 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
18894
19339
  let actualData = this.data;
18895
19340
  let headers = {};
18896
19341
  let pathParams = {};
19342
+ let lang = import_types6.Lang.JSON;
18897
19343
  if (typeof this.data === "object" && this.data !== null && !Array.isArray(this.data)) {
18898
19344
  const dataObj = this.data;
18899
19345
  if ("data" in dataObj) {
18900
19346
  actualData = dataObj.data;
18901
19347
  headers = dataObj.headers || {};
18902
19348
  pathParams = dataObj.pathParams || {};
19349
+ lang = dataObj.lang || import_types6.Lang.JSON;
18903
19350
  }
18904
19351
  }
18905
19352
  const dataValue = convertInputToProtobuf(actualData);
@@ -18921,6 +19368,8 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
18921
19368
  pathParamsMap.set(key, value);
18922
19369
  });
18923
19370
  }
19371
+ const langValue = import_types6.LangConverter.toProtobuf(lang);
19372
+ config.setLang(langValue);
18924
19373
  manualTrigger.setConfig(config);
18925
19374
  trigger.setManual(manualTrigger);
18926
19375
  return trigger;
@@ -18928,6 +19377,7 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
18928
19377
  static fromResponse(raw) {
18929
19378
  const obj = raw.toObject();
18930
19379
  let actualData = null;
19380
+ let lang = import_types6.Lang.JSON;
18931
19381
  const manualTrigger = raw.getManual();
18932
19382
  if (manualTrigger) {
18933
19383
  const config = manualTrigger.getConfig();
@@ -18935,10 +19385,12 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
18935
19385
  if (config.hasData()) {
18936
19386
  actualData = extractInputFromProtobuf(config.getData());
18937
19387
  }
19388
+ lang = import_types6.LangConverter.fromProtobuf(config.getLang());
18938
19389
  }
18939
19390
  }
18940
19391
  const manualTriggerData = {
18941
- data: actualData
19392
+ data: actualData,
19393
+ lang
18942
19394
  };
18943
19395
  return new _ManualTrigger({
18944
19396
  ...obj,
@@ -19038,7 +19490,7 @@ var TriggerFactory = class {
19038
19490
  var factory_default = TriggerFactory;
19039
19491
 
19040
19492
  // src/models/node/factory.ts
19041
- var avs_pb18 = __toESM(require_avs_pb());
19493
+ var avs_pb19 = __toESM(require_avs_pb());
19042
19494
  var import_lodash2 = __toESM(require("lodash"));
19043
19495
 
19044
19496
  // src/models/node/interface.ts
@@ -19167,17 +19619,25 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
19167
19619
  static createProtobufNode(configData) {
19168
19620
  const node = new avs_pb10.CustomCodeNode();
19169
19621
  const config = new avs_pb10.CustomCodeNode.Config();
19170
- config.setLang(configData.lang);
19622
+ const langValue = import_types10.LangConverter.toProtobuf(configData.lang);
19623
+ config.setLang(langValue);
19171
19624
  config.setSource(configData.source);
19172
19625
  node.setConfig(config);
19173
19626
  return node;
19174
19627
  }
19175
19628
  static fromResponse(raw) {
19176
19629
  const obj = raw.toObject();
19177
- const rawConfig = raw.getCustomCode().getConfig().toObject();
19630
+ const customCodeNode = raw.getCustomCode();
19631
+ if (!customCodeNode) {
19632
+ throw new Error("CustomCode node data is missing");
19633
+ }
19634
+ const config = customCodeNode.getConfig();
19635
+ if (!config) {
19636
+ throw new Error("CustomCode config is missing");
19637
+ }
19178
19638
  const convertedConfig = {
19179
- lang: rawConfig.lang,
19180
- source: rawConfig.source
19639
+ lang: import_types10.LangConverter.fromProtobuf(config.getLang()),
19640
+ source: config.getSource()
19181
19641
  };
19182
19642
  return new _CustomCodeNode({
19183
19643
  ...obj,
@@ -19803,30 +20263,99 @@ var LoopNode2 = class _LoopNode extends Node {
19803
20263
  };
19804
20264
  var loop_default = LoopNode2;
19805
20265
 
19806
- // src/models/node/factory.ts
20266
+ // src/models/node/balance.ts
20267
+ var avs_pb18 = __toESM(require_avs_pb());
19807
20268
  var import_types18 = require("@avaprotocol/types");
20269
+ var BalanceNode2 = class _BalanceNode extends Node {
20270
+ constructor(props) {
20271
+ super({ ...props, type: import_types18.NodeType.Balance, data: props.data });
20272
+ }
20273
+ /**
20274
+ * Create a protobuf BalanceNode from config data
20275
+ * @param configData - The configuration data for the balance node
20276
+ * @returns Configured avs_pb.BalanceNode
20277
+ */
20278
+ static createProtobufNode(configData) {
20279
+ const node = new avs_pb18.BalanceNode();
20280
+ const config = new avs_pb18.BalanceNode.Config();
20281
+ config.setAddress(configData.address);
20282
+ config.setChain(configData.chain);
20283
+ if (configData.includeSpam !== void 0) {
20284
+ config.setIncludeSpam(configData.includeSpam);
20285
+ }
20286
+ if (configData.includeZeroBalances !== void 0) {
20287
+ config.setIncludeZeroBalances(configData.includeZeroBalances);
20288
+ }
20289
+ if (configData.minUsdValue !== void 0) {
20290
+ config.setMinUsdValueCents(Math.round(configData.minUsdValue * 100));
20291
+ }
20292
+ node.setConfig(config);
20293
+ return node;
20294
+ }
20295
+ static fromResponse(raw) {
20296
+ const obj = raw.toObject();
20297
+ const balanceNode = raw.getBalance();
20298
+ const config = balanceNode.getConfig();
20299
+ const protobufData = config.toObject();
20300
+ const data = {
20301
+ address: protobufData.address,
20302
+ chain: protobufData.chain,
20303
+ includeSpam: protobufData.includeSpam,
20304
+ includeZeroBalances: protobufData.includeZeroBalances,
20305
+ minUsdValue: protobufData.minUsdValueCents / 100
20306
+ };
20307
+ return new _BalanceNode({
20308
+ ...obj,
20309
+ type: import_types18.NodeType.Balance,
20310
+ data
20311
+ });
20312
+ }
20313
+ toRequest() {
20314
+ const request = new avs_pb18.TaskNode();
20315
+ request.setId(this.id);
20316
+ request.setName(this.name);
20317
+ const node = _BalanceNode.createProtobufNode(
20318
+ this.data
20319
+ );
20320
+ request.setBalance(node);
20321
+ return request;
20322
+ }
20323
+ static fromOutputData(outputData) {
20324
+ const balanceOutput = outputData.getBalance();
20325
+ if (!balanceOutput) return null;
20326
+ const dataValue = balanceOutput.getData();
20327
+ const balanceData = dataValue ? convertProtobufValueToJs(dataValue) : [];
20328
+ return { data: balanceData };
20329
+ }
20330
+ };
20331
+ var balance_default = BalanceNode2;
20332
+
20333
+ // src/models/node/factory.ts
20334
+ var import_types19 = require("@avaprotocol/types");
19808
20335
  var NodeFactory = class {
19809
20336
  static create(props) {
19810
20337
  switch (props.type) {
19811
- case import_types18.NodeType.ContractWrite:
20338
+ case import_types19.NodeType.ContractWrite:
19812
20339
  return new contractWrite_default(props);
19813
- case import_types18.NodeType.RestAPI:
20340
+ case import_types19.NodeType.RestAPI:
19814
20341
  return new restApi_default(props);
19815
- case import_types18.NodeType.CustomCode:
20342
+ case import_types19.NodeType.CustomCode:
19816
20343
  return new customCode_default(props);
19817
- case import_types18.NodeType.ContractRead:
20344
+ case import_types19.NodeType.ContractRead:
19818
20345
  return new contractRead_default(props);
19819
- case import_types18.NodeType.ETHTransfer:
20346
+ case import_types19.NodeType.ETHTransfer:
19820
20347
  return new ethTransfer_default(props);
19821
- case import_types18.NodeType.GraphQLQuery:
20348
+ case import_types19.NodeType.GraphQLQuery:
19822
20349
  return new graphqlQuery_default(props);
19823
- case import_types18.NodeType.Branch:
20350
+ case import_types19.NodeType.Branch:
19824
20351
  return new branch_default(props);
19825
- case import_types18.NodeType.Filter:
20352
+ case import_types19.NodeType.Filter:
19826
20353
  return new filter_default(props);
19827
- case import_types18.NodeType.Loop:
20354
+ case import_types19.NodeType.Loop:
19828
20355
  return new loop_default(props);
19829
- case import_types18.NodeType.Unspecified:
20356
+ case import_types19.NodeType.Balance:
20357
+ return new balance_default(props);
20358
+ case import_types19.NodeType.Unspecified:
19830
20359
  throw new Error("Cannot create node with unspecified type");
19831
20360
  default:
19832
20361
  throw new Error(`Unsupported node type: ${props.type}`);
@@ -19855,31 +20384,35 @@ var NodeFactory = class {
19855
20384
  return filter_default.fromResponse(raw);
19856
20385
  case !!raw.getLoop():
19857
20386
  return loop_default.fromResponse(raw);
20387
+ case !!raw.getBalance():
20388
+ return balance_default.fromResponse(raw);
19858
20389
  default:
19859
20390
  throw new Error(`Unsupported node type: ${raw.getName()}`);
19860
20391
  }
19861
20392
  }
19862
20393
  static fromOutputData(outputData) {
19863
20394
  switch (outputData.getOutputDataCase()) {
19864
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.REST_API:
20395
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.REST_API:
19865
20396
  return restApi_default.fromOutputData(outputData);
19866
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CUSTOM_CODE:
20397
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CUSTOM_CODE:
19867
20398
  return customCode_default.fromOutputData(outputData);
19868
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CONTRACT_READ:
20399
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CONTRACT_READ:
19869
20400
  return contractRead_default.fromOutputData(outputData);
19870
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.CONTRACT_WRITE:
20401
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CONTRACT_WRITE:
19871
20402
  return contractWrite_default.fromOutputData(outputData);
19872
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.ETH_TRANSFER:
20403
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.ETH_TRANSFER:
19873
20404
  return ethTransfer_default.fromOutputData(outputData);
19874
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.GRAPHQL:
20405
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.GRAPHQL:
19875
20406
  return graphqlQuery_default.fromOutputData(outputData);
19876
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.BRANCH:
20407
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.BRANCH:
19877
20408
  return branch_default.fromOutputData(outputData);
19878
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.FILTER:
20409
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.FILTER:
19879
20410
  return filter_default.fromOutputData(outputData);
19880
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.LOOP:
20411
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.LOOP:
19881
20412
  return loop_default.fromOutputData(outputData);
19882
- case avs_pb18.RunNodeWithInputsResp.OutputDataCase.OUTPUT_DATA_NOT_SET:
20413
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.BALANCE:
20414
+ return balance_default.fromOutputData(outputData);
20415
+ case avs_pb19.RunNodeWithInputsResp.OutputDataCase.OUTPUT_DATA_NOT_SET:
19883
20416
  default:
19884
20417
  throw new Error(`Unsupported output data case: ${outputData.getOutputDataCase()}`);
19885
20418
  }
@@ -19888,14 +20421,14 @@ var NodeFactory = class {
19888
20421
  var factory_default2 = NodeFactory;
19889
20422
 
19890
20423
  // src/models/workflow.ts
19891
- var import_types19 = require("@avaprotocol/types");
20424
+ var import_types20 = require("@avaprotocol/types");
19892
20425
  function convertStatusToString(status2) {
19893
20426
  const conversionMap = {
19894
- [avs_pb19.TaskStatus.ACTIVE]: import_types19.WorkflowStatus.Active,
19895
- [avs_pb19.TaskStatus.COMPLETED]: import_types19.WorkflowStatus.Completed,
19896
- [avs_pb19.TaskStatus.FAILED]: import_types19.WorkflowStatus.Failed,
19897
- [avs_pb19.TaskStatus.CANCELED]: import_types19.WorkflowStatus.Canceled,
19898
- [avs_pb19.TaskStatus.EXECUTING]: import_types19.WorkflowStatus.Executing
20427
+ [avs_pb20.TaskStatus.ACTIVE]: import_types20.WorkflowStatus.Active,
20428
+ [avs_pb20.TaskStatus.COMPLETED]: import_types20.WorkflowStatus.Completed,
20429
+ [avs_pb20.TaskStatus.FAILED]: import_types20.WorkflowStatus.Failed,
20430
+ [avs_pb20.TaskStatus.CANCELED]: import_types20.WorkflowStatus.Canceled,
20431
+ [avs_pb20.TaskStatus.EXECUTING]: import_types20.WorkflowStatus.Executing
19899
20432
  };
19900
20433
  return conversionMap[status2];
19901
20434
  }
@@ -20000,7 +20533,7 @@ var Workflow = class _Workflow {
20000
20533
  });
20001
20534
  }
20002
20535
  toRequest() {
20003
- const request = new avs_pb19.CreateTaskReq();
20536
+ const request = new avs_pb20.CreateTaskReq();
20004
20537
  request.setSmartWalletAddress(this.smartWalletAddress);
20005
20538
  request.setTrigger(this.trigger.toRequest());
20006
20539
  try {
@@ -20074,11 +20607,11 @@ var Workflow = class _Workflow {
20074
20607
  var workflow_default = Workflow;
20075
20608
 
20076
20609
  // src/models/execution.ts
20077
- var avs_pb21 = __toESM(require_avs_pb());
20078
- var import_types20 = require("@avaprotocol/types");
20610
+ var avs_pb22 = __toESM(require_avs_pb());
20611
+ var import_types21 = require("@avaprotocol/types");
20079
20612
 
20080
20613
  // src/models/step.ts
20081
- var avs_pb20 = __toESM(require_avs_pb());
20614
+ var avs_pb21 = __toESM(require_avs_pb());
20082
20615
  var Step = class _Step {
20083
20616
  constructor(props) {
20084
20617
  this.id = props.id;
@@ -20154,34 +20687,36 @@ var Step = class _Step {
20154
20687
  static extractOutputData(step) {
20155
20688
  const outputCase = this.getOutputDataCase(step);
20156
20689
  switch (outputCase) {
20157
- case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
20690
+ case avs_pb21.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
20158
20691
  return typeof step.getBlockTrigger === "function" ? step.getBlockTrigger() : step.blockTrigger;
20159
- case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
20692
+ case avs_pb21.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
20160
20693
  return typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger() : step.fixedTimeTrigger;
20161
- case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
20694
+ case avs_pb21.Execution.Step.OutputDataCase.CRON_TRIGGER:
20162
20695
  return typeof step.getCronTrigger === "function" ? step.getCronTrigger() : step.cronTrigger;
20163
- case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
20696
+ case avs_pb21.Execution.Step.OutputDataCase.EVENT_TRIGGER:
20164
20697
  return typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
20165
- case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
20698
+ case avs_pb21.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
20166
20699
  return typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
20167
- case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
20700
+ case avs_pb21.Execution.Step.OutputDataCase.ETH_TRANSFER:
20168
20701
  return typeof step.getEthTransfer === "function" ? step.getEthTransfer() : step.ethTransfer;
20169
- case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
20702
+ case avs_pb21.Execution.Step.OutputDataCase.GRAPHQL:
20170
20703
  return typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
20171
- case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
20704
+ case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_READ:
20172
20705
  return typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
20173
- case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
20706
+ case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_WRITE:
20174
20707
  return typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
20175
- case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
20708
+ case avs_pb21.Execution.Step.OutputDataCase.CUSTOM_CODE:
20176
20709
  return typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
20177
- case avs_pb20.Execution.Step.OutputDataCase.REST_API:
20710
+ case avs_pb21.Execution.Step.OutputDataCase.REST_API:
20178
20711
  return typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
20179
- case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
20712
+ case avs_pb21.Execution.Step.OutputDataCase.BRANCH:
20180
20713
  return typeof step.getBranch === "function" ? step.getBranch() : step.branch;
20181
- case avs_pb20.Execution.Step.OutputDataCase.FILTER:
20714
+ case avs_pb21.Execution.Step.OutputDataCase.FILTER:
20182
20715
  return typeof step.getFilter === "function" ? step.getFilter() : step.filter;
20183
- case avs_pb20.Execution.Step.OutputDataCase.LOOP:
20716
+ case avs_pb21.Execution.Step.OutputDataCase.LOOP:
20184
20717
  return typeof step.getLoop === "function" ? step.getLoop() : step.loop;
20718
+ case avs_pb21.Execution.Step.OutputDataCase.BALANCE:
20719
+ return typeof step.getBalance === "function" ? step.getBalance() : step.balance;
20185
20720
  default:
20186
20721
  return null;
20187
20722
  }
@@ -20192,29 +20727,30 @@ var Step = class _Step {
20192
20727
  }
20193
20728
  const stepObj = step;
20194
20729
  if (stepObj.blockTrigger)
20195
- return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
20730
+ return avs_pb21.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
20196
20731
  if (stepObj.fixedTimeTrigger)
20197
- return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
20732
+ return avs_pb21.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
20198
20733
  if (stepObj.cronTrigger)
20199
- return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
20734
+ return avs_pb21.Execution.Step.OutputDataCase.CRON_TRIGGER;
20200
20735
  if (stepObj.eventTrigger)
20201
- return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
20736
+ return avs_pb21.Execution.Step.OutputDataCase.EVENT_TRIGGER;
20202
20737
  if (stepObj.manualTrigger)
20203
- return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
20738
+ return avs_pb21.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
20204
20739
  if (stepObj.ethTransfer)
20205
- return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
20206
- if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
20740
+ return avs_pb21.Execution.Step.OutputDataCase.ETH_TRANSFER;
20741
+ if (stepObj.graphql) return avs_pb21.Execution.Step.OutputDataCase.GRAPHQL;
20207
20742
  if (stepObj.contractRead)
20208
- return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
20743
+ return avs_pb21.Execution.Step.OutputDataCase.CONTRACT_READ;
20209
20744
  if (stepObj.contractWrite)
20210
- return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
20745
+ return avs_pb21.Execution.Step.OutputDataCase.CONTRACT_WRITE;
20211
20746
  if (stepObj.customCode)
20212
- return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
20213
- if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
20214
- if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
20215
- if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
20216
- if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
20217
- return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
20747
+ return avs_pb21.Execution.Step.OutputDataCase.CUSTOM_CODE;
20748
+ if (stepObj.restApi) return avs_pb21.Execution.Step.OutputDataCase.REST_API;
20749
+ if (stepObj.branch) return avs_pb21.Execution.Step.OutputDataCase.BRANCH;
20750
+ if (stepObj.filter) return avs_pb21.Execution.Step.OutputDataCase.FILTER;
20751
+ if (stepObj.loop) return avs_pb21.Execution.Step.OutputDataCase.LOOP;
20752
+ if (stepObj.balance) return avs_pb21.Execution.Step.OutputDataCase.BALANCE;
20753
+ return avs_pb21.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
20218
20754
  }
20219
20755
  static fromResponse(step) {
20220
20756
  let configData = void 0;
@@ -20291,17 +20827,17 @@ var step_default = Step;
20291
20827
  // src/models/execution.ts
20292
20828
  function convertProtobufExecutionStatusToTypes(protobufStatus) {
20293
20829
  switch (protobufStatus) {
20294
- case avs_pb21.ExecutionStatus.EXECUTION_STATUS_PENDING:
20295
- return import_types20.ExecutionStatus.Pending;
20296
- case avs_pb21.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
20297
- return import_types20.ExecutionStatus.Success;
20298
- case avs_pb21.ExecutionStatus.EXECUTION_STATUS_FAILED:
20299
- return import_types20.ExecutionStatus.Failed;
20300
- case avs_pb21.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
20301
- return import_types20.ExecutionStatus.PartialSuccess;
20302
- case avs_pb21.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
20830
+ case avs_pb22.ExecutionStatus.EXECUTION_STATUS_PENDING:
20831
+ return import_types21.ExecutionStatus.Pending;
20832
+ case avs_pb22.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
20833
+ return import_types21.ExecutionStatus.Success;
20834
+ case avs_pb22.ExecutionStatus.EXECUTION_STATUS_FAILED:
20835
+ return import_types21.ExecutionStatus.Failed;
20836
+ case avs_pb22.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
20837
+ return import_types21.ExecutionStatus.PartialSuccess;
20838
+ case avs_pb22.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
20303
20839
  default:
20304
- return import_types20.ExecutionStatus.Unspecified;
20840
+ return import_types21.ExecutionStatus.Unspecified;
20305
20841
  }
20306
20842
  }
20307
20843
  var Execution2 = class _Execution {
@@ -20348,7 +20884,7 @@ var Execution2 = class _Execution {
20348
20884
  var execution_default = Execution2;
20349
20885
 
20350
20886
  // src/models/secret.ts
20351
- var avs_pb22 = __toESM(require_avs_pb());
20887
+ var avs_pb23 = __toESM(require_avs_pb());
20352
20888
  var Secret = class {
20353
20889
  constructor(props) {
20354
20890
  this.name = props.name;
@@ -20361,7 +20897,7 @@ var Secret = class {
20361
20897
  this.description = props.description;
20362
20898
  }
20363
20899
  toRequest() {
20364
- const request = new avs_pb22.CreateOrUpdateSecretReq();
20900
+ const request = new avs_pb23.CreateOrUpdateSecretReq();
20365
20901
  request.setName(this.name);
20366
20902
  if (this.secret) {
20367
20903
  request.setSecret(this.secret);
@@ -20378,22 +20914,22 @@ var Secret = class {
20378
20914
  var secret_default = Secret;
20379
20915
 
20380
20916
  // src/index.ts
20381
- var import_types21 = require("@avaprotocol/types");
20917
+ var import_types22 = require("@avaprotocol/types");
20382
20918
  var import_avs_pb = __toESM(require_avs_pb());
20383
20919
  var google_protobuf_struct_pb4 = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
20384
20920
  function convertProtobufExecutionStatus(protobufStatus) {
20385
20921
  switch (protobufStatus) {
20386
20922
  case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_PENDING:
20387
- return import_types21.ExecutionStatus.Pending;
20923
+ return import_types22.ExecutionStatus.Pending;
20388
20924
  case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
20389
- return import_types21.ExecutionStatus.Success;
20925
+ return import_types22.ExecutionStatus.Success;
20390
20926
  case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_FAILED:
20391
- return import_types21.ExecutionStatus.Failed;
20927
+ return import_types22.ExecutionStatus.Failed;
20392
20928
  case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
20393
- return import_types21.ExecutionStatus.PartialSuccess;
20929
+ return import_types22.ExecutionStatus.PartialSuccess;
20394
20930
  case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
20395
20931
  default:
20396
- return import_types21.ExecutionStatus.Unspecified;
20932
+ return import_types22.ExecutionStatus.Unspecified;
20397
20933
  }
20398
20934
  }
20399
20935
  var BaseClient = class {
@@ -20436,7 +20972,7 @@ var BaseClient = class {
20436
20972
  sendFastRequest(method, request, options) {
20437
20973
  return this.sendGrpcRequest(method, request, {
20438
20974
  ...options,
20439
- timeout: import_types21.TimeoutPresets.FAST
20975
+ timeout: import_types22.TimeoutPresets.FAST
20440
20976
  });
20441
20977
  }
20442
20978
  /**
@@ -20449,7 +20985,7 @@ var BaseClient = class {
20449
20985
  sendSlowRequest(method, request, options) {
20450
20986
  return this.sendGrpcRequest(method, request, {
20451
20987
  ...options,
20452
- timeout: import_types21.TimeoutPresets.SLOW
20988
+ timeout: import_types22.TimeoutPresets.SLOW
20453
20989
  });
20454
20990
  }
20455
20991
  /**
@@ -20462,7 +20998,7 @@ var BaseClient = class {
20462
20998
  sendNoRetryRequest(method, request, options) {
20463
20999
  return this.sendGrpcRequest(method, request, {
20464
21000
  ...options,
20465
- timeout: import_types21.TimeoutPresets.NO_RETRY
21001
+ timeout: import_types22.TimeoutPresets.NO_RETRY
20466
21002
  });
20467
21003
  }
20468
21004
  /**
@@ -20487,7 +21023,7 @@ var BaseClient = class {
20487
21023
  * @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
20488
21024
  */
20489
21025
  async getSignatureFormat(wallet) {
20490
- const request = new avs_pb23.GetSignatureFormatReq();
21026
+ const request = new avs_pb24.GetSignatureFormatReq();
20491
21027
  request.setWallet(wallet);
20492
21028
  const result = await this.sendGrpcRequest("getSignatureFormat", request);
20493
21029
  return { message: result.getMessage() };
@@ -20502,7 +21038,7 @@ var BaseClient = class {
20502
21038
  message,
20503
21039
  apiKey
20504
21040
  }) {
20505
- const request = new avs_pb23.GetKeyReq();
21041
+ const request = new avs_pb24.GetKeyReq();
20506
21042
  request.setMessage(message);
20507
21043
  request.setSignature(apiKey);
20508
21044
  const result = await this.sendGrpcRequest("getKey", request);
@@ -20518,7 +21054,7 @@ var BaseClient = class {
20518
21054
  message,
20519
21055
  signature
20520
21056
  }) {
20521
- const request = new avs_pb23.GetKeyReq();
21057
+ const request = new avs_pb24.GetKeyReq();
20522
21058
  request.setMessage(message);
20523
21059
  request.setSignature(signature);
20524
21060
  const result = await this.sendGrpcRequest(
@@ -20594,7 +21130,7 @@ var BaseClient = class {
20594
21130
  const metadata = new import_grpc_js.Metadata();
20595
21131
  const authKey = options?.authKey || this.authKey;
20596
21132
  if (authKey) {
20597
- metadata.set(import_types21.AUTH_KEY_HEADER, authKey);
21133
+ metadata.set(import_types22.AUTH_KEY_HEADER, authKey);
20598
21134
  }
20599
21135
  const call = this.rpcClient[method](
20600
21136
  request,
@@ -20654,7 +21190,7 @@ var Client = class extends BaseClient {
20654
21190
  * @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
20655
21191
  */
20656
21192
  async getWallets(options) {
20657
- const request = new avs_pb23.ListWalletReq();
21193
+ const request = new avs_pb24.ListWalletReq();
20658
21194
  const result = await this.sendGrpcRequest("listWallets", request, options);
20659
21195
  return result.getItemsList().map((item) => item.toObject());
20660
21196
  }
@@ -20666,7 +21202,7 @@ var Client = class extends BaseClient {
20666
21202
  * @returns {Promise<SmartWallet>} - The added SmartWallet object
20667
21203
  */
20668
21204
  async getWallet({ salt, factoryAddress }, options) {
20669
- const request = new avs_pb23.GetWalletReq();
21205
+ const request = new avs_pb24.GetWalletReq();
20670
21206
  request.setSalt(salt);
20671
21207
  if (factoryAddress) {
20672
21208
  request.setFactoryAddress(factoryAddress);
@@ -20695,7 +21231,7 @@ var Client = class extends BaseClient {
20695
21231
  * @returns {Promise<SmartWallet>} - The updated SmartWallet object
20696
21232
  */
20697
21233
  async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
20698
- const request = new avs_pb23.SetWalletReq();
21234
+ const request = new avs_pb24.SetWalletReq();
20699
21235
  request.setSalt(salt);
20700
21236
  if (factoryAddress) {
20701
21237
  request.setFactoryAddress(factoryAddress);
@@ -20732,7 +21268,7 @@ var Client = class extends BaseClient {
20732
21268
  token,
20733
21269
  smartWalletAddress
20734
21270
  }, options) {
20735
- const request = new avs_pb23.WithdrawFundsReq();
21271
+ const request = new avs_pb24.WithdrawFundsReq();
20736
21272
  request.setRecipientAddress(recipientAddress);
20737
21273
  request.setAmount(amount);
20738
21274
  request.setToken(token);
@@ -20778,7 +21314,7 @@ var Client = class extends BaseClient {
20778
21314
  * @returns {Promise<{ items: WorkflowProps[]; pageInfo: PageInfo }>} - The list of WorkflowProps objects with nested pagination metadata
20779
21315
  */
20780
21316
  async getWorkflows(addresses, options) {
20781
- const request = new avs_pb23.ListTasksReq();
21317
+ const request = new avs_pb24.ListTasksReq();
20782
21318
  for (const a of addresses) {
20783
21319
  request.addSmartWalletAddress(a);
20784
21320
  }
@@ -20788,7 +21324,7 @@ var Client = class extends BaseClient {
20788
21324
  if (options?.after) {
20789
21325
  request.setAfter(options.after);
20790
21326
  }
20791
- request.setLimit(options?.limit || import_types21.DEFAULT_LIMIT);
21327
+ request.setLimit(options?.limit || import_types22.DEFAULT_LIMIT);
20792
21328
  if (options?.includeNodes) {
20793
21329
  request.setIncludeNodes(options.includeNodes);
20794
21330
  }
@@ -20817,7 +21353,7 @@ var Client = class extends BaseClient {
20817
21353
  * @returns {Promise<number>} - The count of workflows
20818
21354
  */
20819
21355
  async getWorkflowCount(addresses, options) {
20820
- const request = new avs_pb23.GetWorkflowCountReq();
21356
+ const request = new avs_pb24.GetWorkflowCountReq();
20821
21357
  request.setAddressesList(addresses);
20822
21358
  const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
20823
21359
  return result.getTotal();
@@ -20833,7 +21369,7 @@ var Client = class extends BaseClient {
20833
21369
  * @returns {Promise<{ items: ExecutionProps[]; pageInfo: PageInfo }>} - The list of ExecutionProps objects with nested pagination metadata
20834
21370
  */
20835
21371
  async getExecutions(workflows, options) {
20836
- const request = new avs_pb23.ListExecutionsReq();
21372
+ const request = new avs_pb24.ListExecutionsReq();
20837
21373
  for (const w of workflows) {
20838
21374
  request.addTaskIds(w);
20839
21375
  }
@@ -20843,7 +21379,7 @@ var Client = class extends BaseClient {
20843
21379
  if (options?.after) {
20844
21380
  request.setAfter(options.after);
20845
21381
  }
20846
- request.setLimit(options?.limit || import_types21.DEFAULT_LIMIT);
21382
+ request.setLimit(options?.limit || import_types22.DEFAULT_LIMIT);
20847
21383
  const result = await this.sendGrpcRequest("listExecutions", request, options);
20848
21384
  const pageInfo = result.getPageInfo();
20849
21385
  if (!pageInfo) {
@@ -20867,7 +21403,7 @@ var Client = class extends BaseClient {
20867
21403
  * @returns {Promise<ExecutionProps>} - The ExecutionProps object
20868
21404
  */
20869
21405
  async getExecution(workflowId, executionId, options) {
20870
- const request = new avs_pb23.ExecutionReq();
21406
+ const request = new avs_pb24.ExecutionReq();
20871
21407
  request.setTaskId(workflowId);
20872
21408
  request.setExecutionId(executionId);
20873
21409
  const result = await this.sendGrpcRequest("getExecution", request, options);
@@ -20880,7 +21416,7 @@ var Client = class extends BaseClient {
20880
21416
  * @returns {Promise<number>} - The count of executions
20881
21417
  */
20882
21418
  async getExecutionCount(workflows, options) {
20883
- const request = new avs_pb23.GetExecutionCountReq();
21419
+ const request = new avs_pb24.GetExecutionCountReq();
20884
21420
  request.setWorkflowIdsList(workflows);
20885
21421
  const result = await this.sendGrpcRequest("getExecutionCount", request, options);
20886
21422
  return result.getTotal();
@@ -20894,7 +21430,7 @@ var Client = class extends BaseClient {
20894
21430
  * @returns {Promise<GetExecutionStatsResponse>} - Execution statistics
20895
21431
  */
20896
21432
  async getExecutionStats(options) {
20897
- const request = new avs_pb23.GetExecutionStatsReq();
21433
+ const request = new avs_pb24.GetExecutionStatsReq();
20898
21434
  if (options?.workflowIds && options.workflowIds.length > 0) {
20899
21435
  request.setWorkflowIdsList(options.workflowIds);
20900
21436
  }
@@ -20917,7 +21453,7 @@ var Client = class extends BaseClient {
20917
21453
  * @returns {Promise<ExecutionStatus>} - The status of the execution
20918
21454
  */
20919
21455
  async getExecutionStatus(workflowId, executionId, options) {
20920
- const request = new avs_pb23.ExecutionReq();
21456
+ const request = new avs_pb24.ExecutionReq();
20921
21457
  request.setTaskId(workflowId);
20922
21458
  request.setExecutionId(executionId);
20923
21459
  const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
@@ -20930,7 +21466,7 @@ var Client = class extends BaseClient {
20930
21466
  * @returns {Promise<Workflow>} - The Workflow object
20931
21467
  */
20932
21468
  async getWorkflow(id, options) {
20933
- const request = new avs_pb23.IdReq();
21469
+ const request = new avs_pb24.IdReq();
20934
21470
  request.setId(id);
20935
21471
  const result = await this.sendGrpcRequest(
20936
21472
  "getTask",
@@ -20953,14 +21489,14 @@ var Client = class extends BaseClient {
20953
21489
  triggerData,
20954
21490
  isBlocking = false
20955
21491
  }, options) {
20956
- const request = new avs_pb23.TriggerTaskReq();
21492
+ const request = new avs_pb24.TriggerTaskReq();
20957
21493
  request.setTaskId(id);
20958
- request.setTriggerType(import_types21.TriggerTypeConverter.toProtobuf(triggerData.type));
21494
+ request.setTriggerType(import_types22.TriggerTypeConverter.toProtobuf(triggerData.type));
20959
21495
  request.setIsBlocking(isBlocking);
20960
21496
  switch (triggerData.type) {
20961
- case import_types21.TriggerType.FixedTime: {
21497
+ case import_types22.TriggerType.FixedTime: {
20962
21498
  const fixedTimeData = triggerData;
20963
- const fixedTimeOutput = new avs_pb23.FixedTimeTrigger.Output();
21499
+ const fixedTimeOutput = new avs_pb24.FixedTimeTrigger.Output();
20964
21500
  const triggerOutputData = {
20965
21501
  timestamp: fixedTimeData.timestamp,
20966
21502
  timestampIso: fixedTimeData.timestampIso
@@ -20973,9 +21509,9 @@ var Client = class extends BaseClient {
20973
21509
  request.setFixedTimeTrigger(fixedTimeOutput);
20974
21510
  break;
20975
21511
  }
20976
- case import_types21.TriggerType.Cron: {
21512
+ case import_types22.TriggerType.Cron: {
20977
21513
  const cronData = triggerData;
20978
- const cronOutput = new avs_pb23.CronTrigger.Output();
21514
+ const cronOutput = new avs_pb24.CronTrigger.Output();
20979
21515
  const triggerOutputData = {
20980
21516
  timestamp: cronData.timestamp,
20981
21517
  timestampIso: cronData.timestampIso
@@ -20988,9 +21524,9 @@ var Client = class extends BaseClient {
20988
21524
  request.setCronTrigger(cronOutput);
20989
21525
  break;
20990
21526
  }
20991
- case import_types21.TriggerType.Block: {
21527
+ case import_types22.TriggerType.Block: {
20992
21528
  const blockData = triggerData;
20993
- const blockOutput = new avs_pb23.BlockTrigger.Output();
21529
+ const blockOutput = new avs_pb24.BlockTrigger.Output();
20994
21530
  const triggerOutputData = {
20995
21531
  blockNumber: blockData.blockNumber,
20996
21532
  blockHash: blockData.blockHash || "",
@@ -21008,9 +21544,9 @@ var Client = class extends BaseClient {
21008
21544
  request.setBlockTrigger(blockOutput);
21009
21545
  break;
21010
21546
  }
21011
- case import_types21.TriggerType.Event: {
21547
+ case import_types22.TriggerType.Event: {
21012
21548
  const eventData = triggerData;
21013
- const eventOutput = new avs_pb23.EventTrigger.Output();
21549
+ const eventOutput = new avs_pb24.EventTrigger.Output();
21014
21550
  if (eventData.data) {
21015
21551
  const protobufValue = convertJSValueToProtobuf(eventData.data);
21016
21552
  eventOutput.setData(protobufValue);
@@ -21018,9 +21554,9 @@ var Client = class extends BaseClient {
21018
21554
  request.setEventTrigger(eventOutput);
21019
21555
  break;
21020
21556
  }
21021
- case import_types21.TriggerType.Manual: {
21557
+ case import_types22.TriggerType.Manual: {
21022
21558
  const manualData = triggerData;
21023
- const manualOutput = new avs_pb23.ManualTrigger.Output();
21559
+ const manualOutput = new avs_pb24.ManualTrigger.Output();
21024
21560
  if (manualData.data) {
21025
21561
  const protobufValue = convertJSValueToProtobuf(manualData.data);
21026
21562
  manualOutput.setData(protobufValue);
@@ -21028,7 +21564,7 @@ var Client = class extends BaseClient {
21028
21564
  request.setManualTrigger(manualOutput);
21029
21565
  break;
21030
21566
  }
21031
- case import_types21.TriggerType.Unspecified:
21567
+ case import_types22.TriggerType.Unspecified:
21032
21568
  break;
21033
21569
  default:
21034
21570
  throw new Error(
@@ -21092,7 +21628,7 @@ var Client = class extends BaseClient {
21092
21628
  * @returns {Promise<CancelTaskResponse>} - The response from canceling the workflow
21093
21629
  */
21094
21630
  async cancelWorkflow(id, options) {
21095
- const request = new avs_pb23.IdReq();
21631
+ const request = new avs_pb24.IdReq();
21096
21632
  request.setId(id);
21097
21633
  const result = await this.sendGrpcRequest("cancelTask", request, options);
21098
21634
  return {
@@ -21111,7 +21647,7 @@ var Client = class extends BaseClient {
21111
21647
  * @returns {Promise<DeleteTaskResponse>} - The response from deleting the workflow
21112
21648
  */
21113
21649
  async deleteWorkflow(id, options) {
21114
- const request = new avs_pb23.IdReq();
21650
+ const request = new avs_pb24.IdReq();
21115
21651
  request.setId(id);
21116
21652
  const result = await this.sendGrpcRequest("deleteTask", request, options);
21117
21653
  return {
@@ -21134,7 +21670,7 @@ var Client = class extends BaseClient {
21134
21670
  * @returns {Promise<CreateSecretResponse>} - Structured response with creation details
21135
21671
  */
21136
21672
  async createSecret(name, value, options) {
21137
- const request = new avs_pb23.CreateOrUpdateSecretReq();
21673
+ const request = new avs_pb24.CreateOrUpdateSecretReq();
21138
21674
  request.setName(name);
21139
21675
  request.setSecret(value);
21140
21676
  if (options?.workflowId) {
@@ -21164,7 +21700,7 @@ var Client = class extends BaseClient {
21164
21700
  * @returns {Promise<UpdateSecretResponse>} - Structured response with update details
21165
21701
  */
21166
21702
  async updateSecret(name, value, options) {
21167
- const request = new avs_pb23.CreateOrUpdateSecretReq();
21703
+ const request = new avs_pb24.CreateOrUpdateSecretReq();
21168
21704
  request.setName(name);
21169
21705
  request.setSecret(value);
21170
21706
  if (options?.workflowId) {
@@ -21198,7 +21734,7 @@ var Client = class extends BaseClient {
21198
21734
  * @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
21199
21735
  */
21200
21736
  async getSecrets(options) {
21201
- const request = new avs_pb23.ListSecretsReq();
21737
+ const request = new avs_pb24.ListSecretsReq();
21202
21738
  if (options?.workflowId) {
21203
21739
  request.setWorkflowId(options.workflowId);
21204
21740
  }
@@ -21208,7 +21744,7 @@ var Client = class extends BaseClient {
21208
21744
  if (options?.after) {
21209
21745
  request.setAfter(options.after);
21210
21746
  }
21211
- request.setLimit(options?.limit || import_types21.DEFAULT_LIMIT);
21747
+ request.setLimit(options?.limit || import_types22.DEFAULT_LIMIT);
21212
21748
  if (options?.includeTimestamps) {
21213
21749
  request.setIncludeTimestamps(options.includeTimestamps);
21214
21750
  }
@@ -21253,7 +21789,7 @@ var Client = class extends BaseClient {
21253
21789
  * @returns {Promise<DeleteSecretResponse>} - Structured response with deletion details
21254
21790
  */
21255
21791
  async deleteSecret(name, options) {
21256
- const request = new avs_pb23.DeleteSecretReq();
21792
+ const request = new avs_pb24.DeleteSecretReq();
21257
21793
  request.setName(name);
21258
21794
  if (options?.workflowId) {
21259
21795
  request.setWorkflowId(options.workflowId);
@@ -21282,22 +21818,22 @@ var Client = class extends BaseClient {
21282
21818
  */
21283
21819
  async runNodeWithInputs({ nodeType, nodeConfig, inputVariables = {} }, options) {
21284
21820
  const triggerTypes = [
21285
- import_types21.TriggerType.Block,
21286
- import_types21.TriggerType.FixedTime,
21287
- import_types21.TriggerType.Cron,
21288
- import_types21.TriggerType.Event,
21289
- import_types21.TriggerType.Manual
21821
+ import_types22.TriggerType.Block,
21822
+ import_types22.TriggerType.FixedTime,
21823
+ import_types22.TriggerType.Cron,
21824
+ import_types22.TriggerType.Event,
21825
+ import_types22.TriggerType.Manual
21290
21826
  ];
21291
21827
  if (triggerTypes.includes(nodeType)) {
21292
21828
  return {
21293
21829
  success: false,
21294
21830
  error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
21295
- errorCode: import_types21.ErrorCode.INVALID_REQUEST,
21831
+ errorCode: import_types22.ErrorCode.INVALID_REQUEST,
21296
21832
  data: null
21297
21833
  };
21298
21834
  }
21299
- const request = new avs_pb23.RunNodeWithInputsReq();
21300
- const protobufNodeType = import_types21.NodeTypeGoConverter.fromGoString(nodeType);
21835
+ const request = new avs_pb24.RunNodeWithInputsReq();
21836
+ const protobufNodeType = import_types22.NodeTypeGoConverter.fromGoString(nodeType);
21301
21837
  request.setNodeType(protobufNodeType);
21302
21838
  const nodeConfigMap = request.getNodeConfigMap();
21303
21839
  for (const [key, value] of Object.entries(nodeConfig)) {
@@ -21316,7 +21852,9 @@ var Client = class extends BaseClient {
21316
21852
  error: result.getError(),
21317
21853
  errorCode: result.getErrorCode() || void 0,
21318
21854
  metadata: result.hasMetadata() ? toCamelCaseKeys(convertProtobufValueToJs(result.getMetadata())) : void 0,
21319
- executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
21855
+ executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
21856
+ convertProtobufValueToJs(result.getExecutionContext())
21857
+ ) : void 0
21320
21858
  };
21321
21859
  }
21322
21860
  /**
@@ -21328,8 +21866,8 @@ var Client = class extends BaseClient {
21328
21866
  * @returns {Promise<RunTriggerResponse>} - The response from running the trigger
21329
21867
  */
21330
21868
  async runTrigger({ triggerType, triggerConfig }, options) {
21331
- const request = new avs_pb23.RunTriggerReq();
21332
- const protobufTriggerType = import_types21.TriggerTypeGoConverter.fromGoString(triggerType);
21869
+ const request = new avs_pb24.RunTriggerReq();
21870
+ const protobufTriggerType = import_types22.TriggerTypeGoConverter.fromGoString(triggerType);
21333
21871
  request.setTriggerType(protobufTriggerType);
21334
21872
  const triggerConfigMap = request.getTriggerConfigMap();
21335
21873
  for (const [key, value] of Object.entries(triggerConfig)) {
@@ -21352,7 +21890,9 @@ var Client = class extends BaseClient {
21352
21890
  error: result.getError(),
21353
21891
  errorCode: result.getErrorCode() || void 0,
21354
21892
  metadata: toCamelCaseKeys(metadata),
21355
- executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
21893
+ executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
21894
+ convertProtobufValueToJs(result.getExecutionContext())
21895
+ ) : void 0
21356
21896
  };
21357
21897
  }
21358
21898
  /**
@@ -21366,7 +21906,7 @@ var Client = class extends BaseClient {
21366
21906
  * @returns {Promise<ExecutionProps>} - The response from simulating the task
21367
21907
  */
21368
21908
  async simulateWorkflow({ trigger, nodes, edges, inputVariables = {} }, options) {
21369
- const request = new avs_pb23.SimulateTaskReq();
21909
+ const request = new avs_pb24.SimulateTaskReq();
21370
21910
  const triggerSdk = factory_default.create(trigger);
21371
21911
  request.setTrigger(triggerSdk.toRequest());
21372
21912
  const nodeMessages = nodes.map((node) => {
@@ -21395,7 +21935,7 @@ var Client = class extends BaseClient {
21395
21935
  * @returns {Promise<GetTokenMetadataResponse>} - The response containing token metadata
21396
21936
  */
21397
21937
  async getTokenMetadata({ address }, options) {
21398
- const request = new avs_pb23.GetTokenMetadataReq();
21938
+ const request = new avs_pb24.GetTokenMetadataReq();
21399
21939
  request.setAddress(address);
21400
21940
  const result = await this.sendGrpcRequest("getTokenMetadata", request, options);
21401
21941
  const token = result.getToken();
@@ -21412,7 +21952,7 @@ var Client = class extends BaseClient {
21412
21952
  }
21413
21953
  /**
21414
21954
  * Get comprehensive fee estimation for workflow deployment
21415
- *
21955
+ *
21416
21956
  * @param params - Fee estimation request parameters
21417
21957
  * @param options - Optional request options (auth key, timeout)
21418
21958
  * @returns Promise resolving to comprehensive fee breakdown
@@ -21425,7 +21965,7 @@ var Client = class extends BaseClient {
21425
21965
  createdAt,
21426
21966
  expireAt
21427
21967
  }, options) {
21428
- const request = new avs_pb23.EstimateFeesReq();
21968
+ const request = new avs_pb24.EstimateFeesReq();
21429
21969
  const triggerSdk = factory_default.create(trigger);
21430
21970
  request.setTrigger(triggerSdk.toRequest());
21431
21971
  const nodeMessages = nodes.map((node) => {
@@ -21509,7 +22049,9 @@ var Client = class extends BaseClient {
21509
22049
  response.totalFees = this.convertFeeAmount(result.getTotalFees());
21510
22050
  }
21511
22051
  if (result.getTotalDiscounts()) {
21512
- response.totalDiscounts = this.convertFeeAmount(result.getTotalDiscounts());
22052
+ response.totalDiscounts = this.convertFeeAmount(
22053
+ result.getTotalDiscounts()
22054
+ );
21513
22055
  }
21514
22056
  if (result.getFinalTotal()) {
21515
22057
  response.finalTotal = this.convertFeeAmount(result.getFinalTotal());
@@ -21578,6 +22120,7 @@ var Client = class extends BaseClient {
21578
22120
  };
21579
22121
  // Annotate the CommonJS export names for ESM import in node:
21580
22122
  0 && (module.exports = {
22123
+ BalanceNode,
21581
22124
  BlockTrigger,
21582
22125
  BranchNode,
21583
22126
  Client,