@avaprotocol/sdk-js 2.8.1 → 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/CHANGELOG.md +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +856 -313
- package/dist/index.mjs +826 -279
- package/dist/models/node/balance.d.ts +17 -0
- package/dist/models/node/balance.d.ts.map +1 -0
- package/dist/models/node/balance.js +71 -0
- package/dist/models/node/customCode.d.ts +2 -2
- package/dist/models/node/customCode.d.ts.map +1 -1
- package/dist/models/node/customCode.js +15 -7
- package/dist/models/node/factory.d.ts +5 -4
- package/dist/models/node/factory.d.ts.map +1 -1
- package/dist/models/node/factory.js +8 -1
- package/dist/models/node/interface.d.ts.map +1 -1
- package/dist/models/node/interface.js +1 -0
- package/dist/models/node/loop.d.ts.map +1 -1
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +6 -0
- package/dist/models/trigger/manual.d.ts.map +1 -1
- package/dist/models/trigger/manual.js +12 -3
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -0
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -54,6 +54,9 @@ var require_avs_pb = __commonJS({
|
|
|
54
54
|
var google_protobuf_struct_pb5 = __require("google-protobuf/google/protobuf/struct_pb.js");
|
|
55
55
|
goog.object.extend(proto, google_protobuf_struct_pb5);
|
|
56
56
|
goog.exportSymbol("proto.aggregator.AutomationFee", null, global);
|
|
57
|
+
goog.exportSymbol("proto.aggregator.BalanceNode", null, global);
|
|
58
|
+
goog.exportSymbol("proto.aggregator.BalanceNode.Config", null, global);
|
|
59
|
+
goog.exportSymbol("proto.aggregator.BalanceNode.Output", null, global);
|
|
57
60
|
goog.exportSymbol("proto.aggregator.BlockTrigger", null, global);
|
|
58
61
|
goog.exportSymbol("proto.aggregator.BlockTrigger.Config", null, global);
|
|
59
62
|
goog.exportSymbol("proto.aggregator.BlockTrigger.Output", null, global);
|
|
@@ -505,6 +508,27 @@ var require_avs_pb = __commonJS({
|
|
|
505
508
|
if (goog.DEBUG && !COMPILED) {
|
|
506
509
|
proto.aggregator.CustomCodeNode.Output.displayName = "proto.aggregator.CustomCodeNode.Output";
|
|
507
510
|
}
|
|
511
|
+
proto.aggregator.BalanceNode = function(opt_data) {
|
|
512
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
513
|
+
};
|
|
514
|
+
goog.inherits(proto.aggregator.BalanceNode, jspb.Message);
|
|
515
|
+
if (goog.DEBUG && !COMPILED) {
|
|
516
|
+
proto.aggregator.BalanceNode.displayName = "proto.aggregator.BalanceNode";
|
|
517
|
+
}
|
|
518
|
+
proto.aggregator.BalanceNode.Config = function(opt_data) {
|
|
519
|
+
jspb.Message.initialize(this, opt_data, 0, -1, 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
|
-
|
|
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"(exports) {
|
|
17371
17812
|
"use strict";
|
|
17372
17813
|
var grpc = __require("@grpc/grpc-js");
|
|
17373
|
-
var
|
|
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
|
|
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
|
|
17823
|
+
return avs_pb25.CancelTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17383
17824
|
}
|
|
17384
17825
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
17385
|
-
if (!(arg instanceof
|
|
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
|
|
17832
|
+
return avs_pb25.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17392
17833
|
}
|
|
17393
17834
|
function serialize_aggregator_CreateSecretResp(arg) {
|
|
17394
|
-
if (!(arg instanceof
|
|
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
|
|
17841
|
+
return avs_pb25.CreateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17401
17842
|
}
|
|
17402
17843
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
17403
|
-
if (!(arg instanceof
|
|
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
|
|
17850
|
+
return avs_pb25.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17410
17851
|
}
|
|
17411
17852
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
17412
|
-
if (!(arg instanceof
|
|
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
|
|
17859
|
+
return avs_pb25.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17419
17860
|
}
|
|
17420
17861
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
17421
|
-
if (!(arg instanceof
|
|
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
|
|
17868
|
+
return avs_pb25.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17428
17869
|
}
|
|
17429
17870
|
function serialize_aggregator_DeleteSecretResp(arg) {
|
|
17430
|
-
if (!(arg instanceof
|
|
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
|
|
17877
|
+
return avs_pb25.DeleteSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17437
17878
|
}
|
|
17438
17879
|
function serialize_aggregator_DeleteTaskResp(arg) {
|
|
17439
|
-
if (!(arg instanceof
|
|
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
|
|
17886
|
+
return avs_pb25.DeleteTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17446
17887
|
}
|
|
17447
17888
|
function serialize_aggregator_EstimateFeesReq(arg) {
|
|
17448
|
-
if (!(arg instanceof
|
|
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
|
|
17895
|
+
return avs_pb25.EstimateFeesReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17455
17896
|
}
|
|
17456
17897
|
function serialize_aggregator_EstimateFeesResp(arg) {
|
|
17457
|
-
if (!(arg instanceof
|
|
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
|
|
17904
|
+
return avs_pb25.EstimateFeesResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17464
17905
|
}
|
|
17465
17906
|
function serialize_aggregator_Execution(arg) {
|
|
17466
|
-
if (!(arg instanceof
|
|
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
|
|
17913
|
+
return avs_pb25.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17473
17914
|
}
|
|
17474
17915
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
17475
|
-
if (!(arg instanceof
|
|
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
|
|
17922
|
+
return avs_pb25.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17482
17923
|
}
|
|
17483
17924
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
17484
|
-
if (!(arg instanceof
|
|
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
|
|
17931
|
+
return avs_pb25.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17491
17932
|
}
|
|
17492
17933
|
function serialize_aggregator_GetExecutionCountReq(arg) {
|
|
17493
|
-
if (!(arg instanceof
|
|
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
|
|
17940
|
+
return avs_pb25.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17500
17941
|
}
|
|
17501
17942
|
function serialize_aggregator_GetExecutionCountResp(arg) {
|
|
17502
|
-
if (!(arg instanceof
|
|
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
|
|
17949
|
+
return avs_pb25.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17509
17950
|
}
|
|
17510
17951
|
function serialize_aggregator_GetExecutionStatsReq(arg) {
|
|
17511
|
-
if (!(arg instanceof
|
|
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
|
|
17958
|
+
return avs_pb25.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17518
17959
|
}
|
|
17519
17960
|
function serialize_aggregator_GetExecutionStatsResp(arg) {
|
|
17520
|
-
if (!(arg instanceof
|
|
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
|
|
17967
|
+
return avs_pb25.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17527
17968
|
}
|
|
17528
17969
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
17529
|
-
if (!(arg instanceof
|
|
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
|
|
17976
|
+
return avs_pb25.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17536
17977
|
}
|
|
17537
17978
|
function serialize_aggregator_GetSignatureFormatReq(arg) {
|
|
17538
|
-
if (!(arg instanceof
|
|
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
|
|
17985
|
+
return avs_pb25.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17545
17986
|
}
|
|
17546
17987
|
function serialize_aggregator_GetSignatureFormatResp(arg) {
|
|
17547
|
-
if (!(arg instanceof
|
|
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
|
|
17994
|
+
return avs_pb25.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17554
17995
|
}
|
|
17555
17996
|
function serialize_aggregator_GetTokenMetadataReq(arg) {
|
|
17556
|
-
if (!(arg instanceof
|
|
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
|
|
18003
|
+
return avs_pb25.GetTokenMetadataReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17563
18004
|
}
|
|
17564
18005
|
function serialize_aggregator_GetTokenMetadataResp(arg) {
|
|
17565
|
-
if (!(arg instanceof
|
|
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
|
|
18012
|
+
return avs_pb25.GetTokenMetadataResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17572
18013
|
}
|
|
17573
18014
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
17574
|
-
if (!(arg instanceof
|
|
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
|
|
18021
|
+
return avs_pb25.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17581
18022
|
}
|
|
17582
18023
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
17583
|
-
if (!(arg instanceof
|
|
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
|
|
18030
|
+
return avs_pb25.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17590
18031
|
}
|
|
17591
18032
|
function serialize_aggregator_GetWorkflowCountReq(arg) {
|
|
17592
|
-
if (!(arg instanceof
|
|
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
|
|
18039
|
+
return avs_pb25.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17599
18040
|
}
|
|
17600
18041
|
function serialize_aggregator_GetWorkflowCountResp(arg) {
|
|
17601
|
-
if (!(arg instanceof
|
|
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
|
|
18048
|
+
return avs_pb25.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17608
18049
|
}
|
|
17609
18050
|
function serialize_aggregator_IdReq(arg) {
|
|
17610
|
-
if (!(arg instanceof
|
|
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
|
|
18057
|
+
return avs_pb25.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17617
18058
|
}
|
|
17618
18059
|
function serialize_aggregator_KeyResp(arg) {
|
|
17619
|
-
if (!(arg instanceof
|
|
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
|
|
18066
|
+
return avs_pb25.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17626
18067
|
}
|
|
17627
18068
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
17628
|
-
if (!(arg instanceof
|
|
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
|
|
18075
|
+
return avs_pb25.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17635
18076
|
}
|
|
17636
18077
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
17637
|
-
if (!(arg instanceof
|
|
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
|
|
18084
|
+
return avs_pb25.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17644
18085
|
}
|
|
17645
18086
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
17646
|
-
if (!(arg instanceof
|
|
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
|
|
18093
|
+
return avs_pb25.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17653
18094
|
}
|
|
17654
18095
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
17655
|
-
if (!(arg instanceof
|
|
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
|
|
18102
|
+
return avs_pb25.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17662
18103
|
}
|
|
17663
18104
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
17664
|
-
if (!(arg instanceof
|
|
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
|
|
18111
|
+
return avs_pb25.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17671
18112
|
}
|
|
17672
18113
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
17673
|
-
if (!(arg instanceof
|
|
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
|
|
18120
|
+
return avs_pb25.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17680
18121
|
}
|
|
17681
18122
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
17682
|
-
if (!(arg instanceof
|
|
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
|
|
18129
|
+
return avs_pb25.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17689
18130
|
}
|
|
17690
18131
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
17691
|
-
if (!(arg instanceof
|
|
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
|
|
18138
|
+
return avs_pb25.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17698
18139
|
}
|
|
17699
18140
|
function serialize_aggregator_NonceRequest(arg) {
|
|
17700
|
-
if (!(arg instanceof
|
|
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
|
|
18147
|
+
return avs_pb25.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17707
18148
|
}
|
|
17708
18149
|
function serialize_aggregator_NonceResp(arg) {
|
|
17709
|
-
if (!(arg instanceof
|
|
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
|
|
18156
|
+
return avs_pb25.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17716
18157
|
}
|
|
17717
18158
|
function serialize_aggregator_RunNodeWithInputsReq(arg) {
|
|
17718
|
-
if (!(arg instanceof
|
|
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
|
|
18165
|
+
return avs_pb25.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17725
18166
|
}
|
|
17726
18167
|
function serialize_aggregator_RunNodeWithInputsResp(arg) {
|
|
17727
|
-
if (!(arg instanceof
|
|
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
|
|
18174
|
+
return avs_pb25.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17734
18175
|
}
|
|
17735
18176
|
function serialize_aggregator_RunTriggerReq(arg) {
|
|
17736
|
-
if (!(arg instanceof
|
|
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
|
|
18183
|
+
return avs_pb25.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17743
18184
|
}
|
|
17744
18185
|
function serialize_aggregator_RunTriggerResp(arg) {
|
|
17745
|
-
if (!(arg instanceof
|
|
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
|
|
18192
|
+
return avs_pb25.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17752
18193
|
}
|
|
17753
18194
|
function serialize_aggregator_SetWalletReq(arg) {
|
|
17754
|
-
if (!(arg instanceof
|
|
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
|
|
18201
|
+
return avs_pb25.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17761
18202
|
}
|
|
17762
18203
|
function serialize_aggregator_SimulateTaskReq(arg) {
|
|
17763
|
-
if (!(arg instanceof
|
|
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
|
|
18210
|
+
return avs_pb25.SimulateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17770
18211
|
}
|
|
17771
18212
|
function serialize_aggregator_Task(arg) {
|
|
17772
|
-
if (!(arg instanceof
|
|
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
|
|
18219
|
+
return avs_pb25.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17779
18220
|
}
|
|
17780
18221
|
function serialize_aggregator_TriggerTaskReq(arg) {
|
|
17781
|
-
if (!(arg instanceof
|
|
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
|
|
18228
|
+
return avs_pb25.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17788
18229
|
}
|
|
17789
18230
|
function serialize_aggregator_TriggerTaskResp(arg) {
|
|
17790
|
-
if (!(arg instanceof
|
|
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
|
|
18237
|
+
return avs_pb25.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17797
18238
|
}
|
|
17798
18239
|
function serialize_aggregator_UpdateSecretResp(arg) {
|
|
17799
|
-
if (!(arg instanceof
|
|
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
|
|
18246
|
+
return avs_pb25.UpdateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17806
18247
|
}
|
|
17807
18248
|
function serialize_aggregator_WithdrawFundsReq(arg) {
|
|
17808
|
-
if (!(arg instanceof
|
|
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
|
|
18255
|
+
return avs_pb25.WithdrawFundsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17815
18256
|
}
|
|
17816
18257
|
function serialize_aggregator_WithdrawFundsResp(arg) {
|
|
17817
|
-
if (!(arg instanceof
|
|
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
|
|
18264
|
+
return avs_pb25.WithdrawFundsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17824
18265
|
}
|
|
17825
18266
|
var AggregatorService = exports.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:
|
|
17832
|
-
responseType:
|
|
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:
|
|
17844
|
-
responseType:
|
|
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:
|
|
17856
|
-
responseType:
|
|
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:
|
|
17867
|
-
responseType:
|
|
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:
|
|
17878
|
-
responseType:
|
|
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:
|
|
17889
|
-
responseType:
|
|
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:
|
|
17901
|
-
responseType:
|
|
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:
|
|
17913
|
-
responseType:
|
|
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:
|
|
17924
|
-
responseType:
|
|
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:
|
|
17935
|
-
responseType:
|
|
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:
|
|
17946
|
-
responseType:
|
|
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:
|
|
17957
|
-
responseType:
|
|
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:
|
|
17968
|
-
responseType:
|
|
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:
|
|
17979
|
-
responseType:
|
|
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:
|
|
17990
|
-
responseType:
|
|
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:
|
|
18001
|
-
responseType:
|
|
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:
|
|
18015
|
-
responseType:
|
|
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:
|
|
18026
|
-
responseType:
|
|
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:
|
|
18039
|
-
responseType:
|
|
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:
|
|
18052
|
-
responseType:
|
|
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:
|
|
18069
|
-
responseType:
|
|
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:
|
|
18084
|
-
responseType:
|
|
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:
|
|
18098
|
-
responseType:
|
|
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:
|
|
18110
|
-
responseType:
|
|
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:
|
|
18122
|
-
responseType:
|
|
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:
|
|
18134
|
-
responseType:
|
|
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:
|
|
18146
|
-
responseType:
|
|
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:
|
|
18160
|
-
responseType:
|
|
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,
|
|
@@ -18170,11 +18611,11 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18170
18611
|
|
|
18171
18612
|
// src/index.ts
|
|
18172
18613
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
18173
|
-
var
|
|
18614
|
+
var avs_pb24 = __toESM(require_avs_pb());
|
|
18174
18615
|
import { credentials, Metadata, status } from "@grpc/grpc-js";
|
|
18175
18616
|
|
|
18176
18617
|
// src/models/workflow.ts
|
|
18177
|
-
var
|
|
18618
|
+
var avs_pb20 = __toESM(require_avs_pb());
|
|
18178
18619
|
import _3 from "lodash";
|
|
18179
18620
|
|
|
18180
18621
|
// src/models/edge.ts
|
|
@@ -18531,6 +18972,9 @@ function convertProtobufNodeTypeToSdk(protobufType) {
|
|
|
18531
18972
|
case "NODE_TYPE_LOOP":
|
|
18532
18973
|
return NodeType.Loop;
|
|
18533
18974
|
// "loop"
|
|
18975
|
+
case "NODE_TYPE_BALANCE":
|
|
18976
|
+
return NodeType.Balance;
|
|
18977
|
+
// "balance"
|
|
18534
18978
|
case "NODE_TYPE_UNSPECIFIED":
|
|
18535
18979
|
return NodeType.Unspecified;
|
|
18536
18980
|
// "unspecified"
|
|
@@ -18855,7 +19299,9 @@ var fixedTime_default = FixedTimeTrigger2;
|
|
|
18855
19299
|
// src/models/trigger/manual.ts
|
|
18856
19300
|
var avs_pb6 = __toESM(require_avs_pb());
|
|
18857
19301
|
import {
|
|
18858
|
-
TriggerType as TriggerType11
|
|
19302
|
+
TriggerType as TriggerType11,
|
|
19303
|
+
Lang,
|
|
19304
|
+
LangConverter
|
|
18859
19305
|
} from "@avaprotocol/types";
|
|
18860
19306
|
var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
18861
19307
|
constructor(props) {
|
|
@@ -18878,12 +19324,14 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
18878
19324
|
let actualData = this.data;
|
|
18879
19325
|
let headers = {};
|
|
18880
19326
|
let pathParams = {};
|
|
19327
|
+
let lang = Lang.JSON;
|
|
18881
19328
|
if (typeof this.data === "object" && this.data !== null && !Array.isArray(this.data)) {
|
|
18882
19329
|
const dataObj = this.data;
|
|
18883
19330
|
if ("data" in dataObj) {
|
|
18884
19331
|
actualData = dataObj.data;
|
|
18885
19332
|
headers = dataObj.headers || {};
|
|
18886
19333
|
pathParams = dataObj.pathParams || {};
|
|
19334
|
+
lang = dataObj.lang || Lang.JSON;
|
|
18887
19335
|
}
|
|
18888
19336
|
}
|
|
18889
19337
|
const dataValue = convertInputToProtobuf(actualData);
|
|
@@ -18905,6 +19353,8 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
18905
19353
|
pathParamsMap.set(key, value);
|
|
18906
19354
|
});
|
|
18907
19355
|
}
|
|
19356
|
+
const langValue = LangConverter.toProtobuf(lang);
|
|
19357
|
+
config.setLang(langValue);
|
|
18908
19358
|
manualTrigger.setConfig(config);
|
|
18909
19359
|
trigger.setManual(manualTrigger);
|
|
18910
19360
|
return trigger;
|
|
@@ -18912,6 +19362,7 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
18912
19362
|
static fromResponse(raw) {
|
|
18913
19363
|
const obj = raw.toObject();
|
|
18914
19364
|
let actualData = null;
|
|
19365
|
+
let lang = Lang.JSON;
|
|
18915
19366
|
const manualTrigger = raw.getManual();
|
|
18916
19367
|
if (manualTrigger) {
|
|
18917
19368
|
const config = manualTrigger.getConfig();
|
|
@@ -18919,10 +19370,12 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
18919
19370
|
if (config.hasData()) {
|
|
18920
19371
|
actualData = extractInputFromProtobuf(config.getData());
|
|
18921
19372
|
}
|
|
19373
|
+
lang = LangConverter.fromProtobuf(config.getLang());
|
|
18922
19374
|
}
|
|
18923
19375
|
}
|
|
18924
19376
|
const manualTriggerData = {
|
|
18925
|
-
data: actualData
|
|
19377
|
+
data: actualData,
|
|
19378
|
+
lang
|
|
18926
19379
|
};
|
|
18927
19380
|
return new _ManualTrigger({
|
|
18928
19381
|
...obj,
|
|
@@ -19024,7 +19477,7 @@ var TriggerFactory = class {
|
|
|
19024
19477
|
var factory_default = TriggerFactory;
|
|
19025
19478
|
|
|
19026
19479
|
// src/models/node/factory.ts
|
|
19027
|
-
var
|
|
19480
|
+
var avs_pb19 = __toESM(require_avs_pb());
|
|
19028
19481
|
import _2 from "lodash";
|
|
19029
19482
|
|
|
19030
19483
|
// src/models/node/interface.ts
|
|
@@ -19143,7 +19596,8 @@ var contractWrite_default = ContractWriteNode2;
|
|
|
19143
19596
|
// src/models/node/customCode.ts
|
|
19144
19597
|
var avs_pb10 = __toESM(require_avs_pb());
|
|
19145
19598
|
import {
|
|
19146
|
-
NodeType as NodeType4
|
|
19599
|
+
NodeType as NodeType4,
|
|
19600
|
+
LangConverter as LangConverter2
|
|
19147
19601
|
} from "@avaprotocol/types";
|
|
19148
19602
|
var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
19149
19603
|
constructor(props) {
|
|
@@ -19157,17 +19611,25 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
|
19157
19611
|
static createProtobufNode(configData) {
|
|
19158
19612
|
const node = new avs_pb10.CustomCodeNode();
|
|
19159
19613
|
const config = new avs_pb10.CustomCodeNode.Config();
|
|
19160
|
-
|
|
19614
|
+
const langValue = LangConverter2.toProtobuf(configData.lang);
|
|
19615
|
+
config.setLang(langValue);
|
|
19161
19616
|
config.setSource(configData.source);
|
|
19162
19617
|
node.setConfig(config);
|
|
19163
19618
|
return node;
|
|
19164
19619
|
}
|
|
19165
19620
|
static fromResponse(raw) {
|
|
19166
19621
|
const obj = raw.toObject();
|
|
19167
|
-
const
|
|
19622
|
+
const customCodeNode = raw.getCustomCode();
|
|
19623
|
+
if (!customCodeNode) {
|
|
19624
|
+
throw new Error("CustomCode node data is missing");
|
|
19625
|
+
}
|
|
19626
|
+
const config = customCodeNode.getConfig();
|
|
19627
|
+
if (!config) {
|
|
19628
|
+
throw new Error("CustomCode config is missing");
|
|
19629
|
+
}
|
|
19168
19630
|
const convertedConfig = {
|
|
19169
|
-
lang:
|
|
19170
|
-
source:
|
|
19631
|
+
lang: LangConverter2.fromProtobuf(config.getLang()),
|
|
19632
|
+
source: config.getSource()
|
|
19171
19633
|
};
|
|
19172
19634
|
return new _CustomCodeNode({
|
|
19173
19635
|
...obj,
|
|
@@ -19808,32 +20270,103 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
19808
20270
|
};
|
|
19809
20271
|
var loop_default = LoopNode2;
|
|
19810
20272
|
|
|
19811
|
-
// src/models/node/
|
|
20273
|
+
// src/models/node/balance.ts
|
|
20274
|
+
var avs_pb18 = __toESM(require_avs_pb());
|
|
19812
20275
|
import {
|
|
19813
20276
|
NodeType as NodeType12
|
|
19814
20277
|
} from "@avaprotocol/types";
|
|
20278
|
+
var BalanceNode2 = class _BalanceNode extends Node {
|
|
20279
|
+
constructor(props) {
|
|
20280
|
+
super({ ...props, type: NodeType12.Balance, data: props.data });
|
|
20281
|
+
}
|
|
20282
|
+
/**
|
|
20283
|
+
* Create a protobuf BalanceNode from config data
|
|
20284
|
+
* @param configData - The configuration data for the balance node
|
|
20285
|
+
* @returns Configured avs_pb.BalanceNode
|
|
20286
|
+
*/
|
|
20287
|
+
static createProtobufNode(configData) {
|
|
20288
|
+
const node = new avs_pb18.BalanceNode();
|
|
20289
|
+
const config = new avs_pb18.BalanceNode.Config();
|
|
20290
|
+
config.setAddress(configData.address);
|
|
20291
|
+
config.setChain(configData.chain);
|
|
20292
|
+
if (configData.includeSpam !== void 0) {
|
|
20293
|
+
config.setIncludeSpam(configData.includeSpam);
|
|
20294
|
+
}
|
|
20295
|
+
if (configData.includeZeroBalances !== void 0) {
|
|
20296
|
+
config.setIncludeZeroBalances(configData.includeZeroBalances);
|
|
20297
|
+
}
|
|
20298
|
+
if (configData.minUsdValue !== void 0) {
|
|
20299
|
+
config.setMinUsdValueCents(Math.round(configData.minUsdValue * 100));
|
|
20300
|
+
}
|
|
20301
|
+
node.setConfig(config);
|
|
20302
|
+
return node;
|
|
20303
|
+
}
|
|
20304
|
+
static fromResponse(raw) {
|
|
20305
|
+
const obj = raw.toObject();
|
|
20306
|
+
const balanceNode = raw.getBalance();
|
|
20307
|
+
const config = balanceNode.getConfig();
|
|
20308
|
+
const protobufData = config.toObject();
|
|
20309
|
+
const data = {
|
|
20310
|
+
address: protobufData.address,
|
|
20311
|
+
chain: protobufData.chain,
|
|
20312
|
+
includeSpam: protobufData.includeSpam,
|
|
20313
|
+
includeZeroBalances: protobufData.includeZeroBalances,
|
|
20314
|
+
minUsdValue: protobufData.minUsdValueCents / 100
|
|
20315
|
+
};
|
|
20316
|
+
return new _BalanceNode({
|
|
20317
|
+
...obj,
|
|
20318
|
+
type: NodeType12.Balance,
|
|
20319
|
+
data
|
|
20320
|
+
});
|
|
20321
|
+
}
|
|
20322
|
+
toRequest() {
|
|
20323
|
+
const request = new avs_pb18.TaskNode();
|
|
20324
|
+
request.setId(this.id);
|
|
20325
|
+
request.setName(this.name);
|
|
20326
|
+
const node = _BalanceNode.createProtobufNode(
|
|
20327
|
+
this.data
|
|
20328
|
+
);
|
|
20329
|
+
request.setBalance(node);
|
|
20330
|
+
return request;
|
|
20331
|
+
}
|
|
20332
|
+
static fromOutputData(outputData) {
|
|
20333
|
+
const balanceOutput = outputData.getBalance();
|
|
20334
|
+
if (!balanceOutput) return null;
|
|
20335
|
+
const dataValue = balanceOutput.getData();
|
|
20336
|
+
const balanceData = dataValue ? convertProtobufValueToJs(dataValue) : [];
|
|
20337
|
+
return { data: balanceData };
|
|
20338
|
+
}
|
|
20339
|
+
};
|
|
20340
|
+
var balance_default = BalanceNode2;
|
|
20341
|
+
|
|
20342
|
+
// src/models/node/factory.ts
|
|
20343
|
+
import {
|
|
20344
|
+
NodeType as NodeType13
|
|
20345
|
+
} from "@avaprotocol/types";
|
|
19815
20346
|
var NodeFactory = class {
|
|
19816
20347
|
static create(props) {
|
|
19817
20348
|
switch (props.type) {
|
|
19818
|
-
case
|
|
20349
|
+
case NodeType13.ContractWrite:
|
|
19819
20350
|
return new contractWrite_default(props);
|
|
19820
|
-
case
|
|
20351
|
+
case NodeType13.RestAPI:
|
|
19821
20352
|
return new restApi_default(props);
|
|
19822
|
-
case
|
|
20353
|
+
case NodeType13.CustomCode:
|
|
19823
20354
|
return new customCode_default(props);
|
|
19824
|
-
case
|
|
20355
|
+
case NodeType13.ContractRead:
|
|
19825
20356
|
return new contractRead_default(props);
|
|
19826
|
-
case
|
|
20357
|
+
case NodeType13.ETHTransfer:
|
|
19827
20358
|
return new ethTransfer_default(props);
|
|
19828
|
-
case
|
|
20359
|
+
case NodeType13.GraphQLQuery:
|
|
19829
20360
|
return new graphqlQuery_default(props);
|
|
19830
|
-
case
|
|
20361
|
+
case NodeType13.Branch:
|
|
19831
20362
|
return new branch_default(props);
|
|
19832
|
-
case
|
|
20363
|
+
case NodeType13.Filter:
|
|
19833
20364
|
return new filter_default(props);
|
|
19834
|
-
case
|
|
20365
|
+
case NodeType13.Loop:
|
|
19835
20366
|
return new loop_default(props);
|
|
19836
|
-
case
|
|
20367
|
+
case NodeType13.Balance:
|
|
20368
|
+
return new balance_default(props);
|
|
20369
|
+
case NodeType13.Unspecified:
|
|
19837
20370
|
throw new Error("Cannot create node with unspecified type");
|
|
19838
20371
|
default:
|
|
19839
20372
|
throw new Error(`Unsupported node type: ${props.type}`);
|
|
@@ -19862,31 +20395,35 @@ var NodeFactory = class {
|
|
|
19862
20395
|
return filter_default.fromResponse(raw);
|
|
19863
20396
|
case !!raw.getLoop():
|
|
19864
20397
|
return loop_default.fromResponse(raw);
|
|
20398
|
+
case !!raw.getBalance():
|
|
20399
|
+
return balance_default.fromResponse(raw);
|
|
19865
20400
|
default:
|
|
19866
20401
|
throw new Error(`Unsupported node type: ${raw.getName()}`);
|
|
19867
20402
|
}
|
|
19868
20403
|
}
|
|
19869
20404
|
static fromOutputData(outputData) {
|
|
19870
20405
|
switch (outputData.getOutputDataCase()) {
|
|
19871
|
-
case
|
|
20406
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.REST_API:
|
|
19872
20407
|
return restApi_default.fromOutputData(outputData);
|
|
19873
|
-
case
|
|
20408
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CUSTOM_CODE:
|
|
19874
20409
|
return customCode_default.fromOutputData(outputData);
|
|
19875
|
-
case
|
|
20410
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CONTRACT_READ:
|
|
19876
20411
|
return contractRead_default.fromOutputData(outputData);
|
|
19877
|
-
case
|
|
20412
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CONTRACT_WRITE:
|
|
19878
20413
|
return contractWrite_default.fromOutputData(outputData);
|
|
19879
|
-
case
|
|
20414
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.ETH_TRANSFER:
|
|
19880
20415
|
return ethTransfer_default.fromOutputData(outputData);
|
|
19881
|
-
case
|
|
20416
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.GRAPHQL:
|
|
19882
20417
|
return graphqlQuery_default.fromOutputData(outputData);
|
|
19883
|
-
case
|
|
20418
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.BRANCH:
|
|
19884
20419
|
return branch_default.fromOutputData(outputData);
|
|
19885
|
-
case
|
|
20420
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.FILTER:
|
|
19886
20421
|
return filter_default.fromOutputData(outputData);
|
|
19887
|
-
case
|
|
20422
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.LOOP:
|
|
19888
20423
|
return loop_default.fromOutputData(outputData);
|
|
19889
|
-
case
|
|
20424
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.BALANCE:
|
|
20425
|
+
return balance_default.fromOutputData(outputData);
|
|
20426
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
19890
20427
|
default:
|
|
19891
20428
|
throw new Error(`Unsupported output data case: ${outputData.getOutputDataCase()}`);
|
|
19892
20429
|
}
|
|
@@ -19898,11 +20435,11 @@ var factory_default2 = NodeFactory;
|
|
|
19898
20435
|
import { WorkflowStatus } from "@avaprotocol/types";
|
|
19899
20436
|
function convertStatusToString(status2) {
|
|
19900
20437
|
const conversionMap = {
|
|
19901
|
-
[
|
|
19902
|
-
[
|
|
19903
|
-
[
|
|
19904
|
-
[
|
|
19905
|
-
[
|
|
20438
|
+
[avs_pb20.TaskStatus.ACTIVE]: WorkflowStatus.Active,
|
|
20439
|
+
[avs_pb20.TaskStatus.COMPLETED]: WorkflowStatus.Completed,
|
|
20440
|
+
[avs_pb20.TaskStatus.FAILED]: WorkflowStatus.Failed,
|
|
20441
|
+
[avs_pb20.TaskStatus.CANCELED]: WorkflowStatus.Canceled,
|
|
20442
|
+
[avs_pb20.TaskStatus.EXECUTING]: WorkflowStatus.Executing
|
|
19906
20443
|
};
|
|
19907
20444
|
return conversionMap[status2];
|
|
19908
20445
|
}
|
|
@@ -20007,7 +20544,7 @@ var Workflow = class _Workflow {
|
|
|
20007
20544
|
});
|
|
20008
20545
|
}
|
|
20009
20546
|
toRequest() {
|
|
20010
|
-
const request = new
|
|
20547
|
+
const request = new avs_pb20.CreateTaskReq();
|
|
20011
20548
|
request.setSmartWalletAddress(this.smartWalletAddress);
|
|
20012
20549
|
request.setTrigger(this.trigger.toRequest());
|
|
20013
20550
|
try {
|
|
@@ -20081,11 +20618,11 @@ var Workflow = class _Workflow {
|
|
|
20081
20618
|
var workflow_default = Workflow;
|
|
20082
20619
|
|
|
20083
20620
|
// src/models/execution.ts
|
|
20084
|
-
var
|
|
20621
|
+
var avs_pb22 = __toESM(require_avs_pb());
|
|
20085
20622
|
import { ExecutionStatus as ExecutionStatus2 } from "@avaprotocol/types";
|
|
20086
20623
|
|
|
20087
20624
|
// src/models/step.ts
|
|
20088
|
-
var
|
|
20625
|
+
var avs_pb21 = __toESM(require_avs_pb());
|
|
20089
20626
|
var Step = class _Step {
|
|
20090
20627
|
constructor(props) {
|
|
20091
20628
|
this.id = props.id;
|
|
@@ -20161,34 +20698,36 @@ var Step = class _Step {
|
|
|
20161
20698
|
static extractOutputData(step) {
|
|
20162
20699
|
const outputCase = this.getOutputDataCase(step);
|
|
20163
20700
|
switch (outputCase) {
|
|
20164
|
-
case
|
|
20701
|
+
case avs_pb21.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
|
|
20165
20702
|
return typeof step.getBlockTrigger === "function" ? step.getBlockTrigger() : step.blockTrigger;
|
|
20166
|
-
case
|
|
20703
|
+
case avs_pb21.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
20167
20704
|
return typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger() : step.fixedTimeTrigger;
|
|
20168
|
-
case
|
|
20705
|
+
case avs_pb21.Execution.Step.OutputDataCase.CRON_TRIGGER:
|
|
20169
20706
|
return typeof step.getCronTrigger === "function" ? step.getCronTrigger() : step.cronTrigger;
|
|
20170
|
-
case
|
|
20707
|
+
case avs_pb21.Execution.Step.OutputDataCase.EVENT_TRIGGER:
|
|
20171
20708
|
return typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
|
|
20172
|
-
case
|
|
20709
|
+
case avs_pb21.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
|
|
20173
20710
|
return typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
|
|
20174
|
-
case
|
|
20711
|
+
case avs_pb21.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
20175
20712
|
return typeof step.getEthTransfer === "function" ? step.getEthTransfer() : step.ethTransfer;
|
|
20176
|
-
case
|
|
20713
|
+
case avs_pb21.Execution.Step.OutputDataCase.GRAPHQL:
|
|
20177
20714
|
return typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
|
|
20178
|
-
case
|
|
20715
|
+
case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
20179
20716
|
return typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
|
|
20180
|
-
case
|
|
20717
|
+
case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
20181
20718
|
return typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
|
|
20182
|
-
case
|
|
20719
|
+
case avs_pb21.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
20183
20720
|
return typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
|
|
20184
|
-
case
|
|
20721
|
+
case avs_pb21.Execution.Step.OutputDataCase.REST_API:
|
|
20185
20722
|
return typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
|
|
20186
|
-
case
|
|
20723
|
+
case avs_pb21.Execution.Step.OutputDataCase.BRANCH:
|
|
20187
20724
|
return typeof step.getBranch === "function" ? step.getBranch() : step.branch;
|
|
20188
|
-
case
|
|
20725
|
+
case avs_pb21.Execution.Step.OutputDataCase.FILTER:
|
|
20189
20726
|
return typeof step.getFilter === "function" ? step.getFilter() : step.filter;
|
|
20190
|
-
case
|
|
20727
|
+
case avs_pb21.Execution.Step.OutputDataCase.LOOP:
|
|
20191
20728
|
return typeof step.getLoop === "function" ? step.getLoop() : step.loop;
|
|
20729
|
+
case avs_pb21.Execution.Step.OutputDataCase.BALANCE:
|
|
20730
|
+
return typeof step.getBalance === "function" ? step.getBalance() : step.balance;
|
|
20192
20731
|
default:
|
|
20193
20732
|
return null;
|
|
20194
20733
|
}
|
|
@@ -20199,29 +20738,30 @@ var Step = class _Step {
|
|
|
20199
20738
|
}
|
|
20200
20739
|
const stepObj = step;
|
|
20201
20740
|
if (stepObj.blockTrigger)
|
|
20202
|
-
return
|
|
20741
|
+
return avs_pb21.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
|
|
20203
20742
|
if (stepObj.fixedTimeTrigger)
|
|
20204
|
-
return
|
|
20743
|
+
return avs_pb21.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
|
|
20205
20744
|
if (stepObj.cronTrigger)
|
|
20206
|
-
return
|
|
20745
|
+
return avs_pb21.Execution.Step.OutputDataCase.CRON_TRIGGER;
|
|
20207
20746
|
if (stepObj.eventTrigger)
|
|
20208
|
-
return
|
|
20747
|
+
return avs_pb21.Execution.Step.OutputDataCase.EVENT_TRIGGER;
|
|
20209
20748
|
if (stepObj.manualTrigger)
|
|
20210
|
-
return
|
|
20749
|
+
return avs_pb21.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
|
|
20211
20750
|
if (stepObj.ethTransfer)
|
|
20212
|
-
return
|
|
20213
|
-
if (stepObj.graphql) return
|
|
20751
|
+
return avs_pb21.Execution.Step.OutputDataCase.ETH_TRANSFER;
|
|
20752
|
+
if (stepObj.graphql) return avs_pb21.Execution.Step.OutputDataCase.GRAPHQL;
|
|
20214
20753
|
if (stepObj.contractRead)
|
|
20215
|
-
return
|
|
20754
|
+
return avs_pb21.Execution.Step.OutputDataCase.CONTRACT_READ;
|
|
20216
20755
|
if (stepObj.contractWrite)
|
|
20217
|
-
return
|
|
20756
|
+
return avs_pb21.Execution.Step.OutputDataCase.CONTRACT_WRITE;
|
|
20218
20757
|
if (stepObj.customCode)
|
|
20219
|
-
return
|
|
20220
|
-
if (stepObj.restApi) return
|
|
20221
|
-
if (stepObj.branch) return
|
|
20222
|
-
if (stepObj.filter) return
|
|
20223
|
-
if (stepObj.loop) return
|
|
20224
|
-
return
|
|
20758
|
+
return avs_pb21.Execution.Step.OutputDataCase.CUSTOM_CODE;
|
|
20759
|
+
if (stepObj.restApi) return avs_pb21.Execution.Step.OutputDataCase.REST_API;
|
|
20760
|
+
if (stepObj.branch) return avs_pb21.Execution.Step.OutputDataCase.BRANCH;
|
|
20761
|
+
if (stepObj.filter) return avs_pb21.Execution.Step.OutputDataCase.FILTER;
|
|
20762
|
+
if (stepObj.loop) return avs_pb21.Execution.Step.OutputDataCase.LOOP;
|
|
20763
|
+
if (stepObj.balance) return avs_pb21.Execution.Step.OutputDataCase.BALANCE;
|
|
20764
|
+
return avs_pb21.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
|
|
20225
20765
|
}
|
|
20226
20766
|
static fromResponse(step) {
|
|
20227
20767
|
let configData = void 0;
|
|
@@ -20298,15 +20838,15 @@ var step_default = Step;
|
|
|
20298
20838
|
// src/models/execution.ts
|
|
20299
20839
|
function convertProtobufExecutionStatusToTypes(protobufStatus) {
|
|
20300
20840
|
switch (protobufStatus) {
|
|
20301
|
-
case
|
|
20841
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_PENDING:
|
|
20302
20842
|
return ExecutionStatus2.Pending;
|
|
20303
|
-
case
|
|
20843
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
|
|
20304
20844
|
return ExecutionStatus2.Success;
|
|
20305
|
-
case
|
|
20845
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_FAILED:
|
|
20306
20846
|
return ExecutionStatus2.Failed;
|
|
20307
|
-
case
|
|
20847
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
|
|
20308
20848
|
return ExecutionStatus2.PartialSuccess;
|
|
20309
|
-
case
|
|
20849
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
|
|
20310
20850
|
default:
|
|
20311
20851
|
return ExecutionStatus2.Unspecified;
|
|
20312
20852
|
}
|
|
@@ -20355,7 +20895,7 @@ var Execution2 = class _Execution {
|
|
|
20355
20895
|
var execution_default = Execution2;
|
|
20356
20896
|
|
|
20357
20897
|
// src/models/secret.ts
|
|
20358
|
-
var
|
|
20898
|
+
var avs_pb23 = __toESM(require_avs_pb());
|
|
20359
20899
|
var Secret = class {
|
|
20360
20900
|
constructor(props) {
|
|
20361
20901
|
this.name = props.name;
|
|
@@ -20368,7 +20908,7 @@ var Secret = class {
|
|
|
20368
20908
|
this.description = props.description;
|
|
20369
20909
|
}
|
|
20370
20910
|
toRequest() {
|
|
20371
|
-
const request = new
|
|
20911
|
+
const request = new avs_pb23.CreateOrUpdateSecretReq();
|
|
20372
20912
|
request.setName(this.name);
|
|
20373
20913
|
if (this.secret) {
|
|
20374
20914
|
request.setSecret(this.secret);
|
|
@@ -20504,7 +21044,7 @@ var BaseClient = class {
|
|
|
20504
21044
|
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
20505
21045
|
*/
|
|
20506
21046
|
async getSignatureFormat(wallet) {
|
|
20507
|
-
const request = new
|
|
21047
|
+
const request = new avs_pb24.GetSignatureFormatReq();
|
|
20508
21048
|
request.setWallet(wallet);
|
|
20509
21049
|
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
20510
21050
|
return { message: result.getMessage() };
|
|
@@ -20519,7 +21059,7 @@ var BaseClient = class {
|
|
|
20519
21059
|
message,
|
|
20520
21060
|
apiKey
|
|
20521
21061
|
}) {
|
|
20522
|
-
const request = new
|
|
21062
|
+
const request = new avs_pb24.GetKeyReq();
|
|
20523
21063
|
request.setMessage(message);
|
|
20524
21064
|
request.setSignature(apiKey);
|
|
20525
21065
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
@@ -20535,7 +21075,7 @@ var BaseClient = class {
|
|
|
20535
21075
|
message,
|
|
20536
21076
|
signature
|
|
20537
21077
|
}) {
|
|
20538
|
-
const request = new
|
|
21078
|
+
const request = new avs_pb24.GetKeyReq();
|
|
20539
21079
|
request.setMessage(message);
|
|
20540
21080
|
request.setSignature(signature);
|
|
20541
21081
|
const result = await this.sendGrpcRequest(
|
|
@@ -20671,7 +21211,7 @@ var Client = class extends BaseClient {
|
|
|
20671
21211
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
20672
21212
|
*/
|
|
20673
21213
|
async getWallets(options) {
|
|
20674
|
-
const request = new
|
|
21214
|
+
const request = new avs_pb24.ListWalletReq();
|
|
20675
21215
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
20676
21216
|
return result.getItemsList().map((item) => item.toObject());
|
|
20677
21217
|
}
|
|
@@ -20683,7 +21223,7 @@ var Client = class extends BaseClient {
|
|
|
20683
21223
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
20684
21224
|
*/
|
|
20685
21225
|
async getWallet({ salt, factoryAddress }, options) {
|
|
20686
|
-
const request = new
|
|
21226
|
+
const request = new avs_pb24.GetWalletReq();
|
|
20687
21227
|
request.setSalt(salt);
|
|
20688
21228
|
if (factoryAddress) {
|
|
20689
21229
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -20712,7 +21252,7 @@ var Client = class extends BaseClient {
|
|
|
20712
21252
|
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
20713
21253
|
*/
|
|
20714
21254
|
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
20715
|
-
const request = new
|
|
21255
|
+
const request = new avs_pb24.SetWalletReq();
|
|
20716
21256
|
request.setSalt(salt);
|
|
20717
21257
|
if (factoryAddress) {
|
|
20718
21258
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -20749,7 +21289,7 @@ var Client = class extends BaseClient {
|
|
|
20749
21289
|
token,
|
|
20750
21290
|
smartWalletAddress
|
|
20751
21291
|
}, options) {
|
|
20752
|
-
const request = new
|
|
21292
|
+
const request = new avs_pb24.WithdrawFundsReq();
|
|
20753
21293
|
request.setRecipientAddress(recipientAddress);
|
|
20754
21294
|
request.setAmount(amount);
|
|
20755
21295
|
request.setToken(token);
|
|
@@ -20795,7 +21335,7 @@ var Client = class extends BaseClient {
|
|
|
20795
21335
|
* @returns {Promise<{ items: WorkflowProps[]; pageInfo: PageInfo }>} - The list of WorkflowProps objects with nested pagination metadata
|
|
20796
21336
|
*/
|
|
20797
21337
|
async getWorkflows(addresses, options) {
|
|
20798
|
-
const request = new
|
|
21338
|
+
const request = new avs_pb24.ListTasksReq();
|
|
20799
21339
|
for (const a of addresses) {
|
|
20800
21340
|
request.addSmartWalletAddress(a);
|
|
20801
21341
|
}
|
|
@@ -20834,7 +21374,7 @@ var Client = class extends BaseClient {
|
|
|
20834
21374
|
* @returns {Promise<number>} - The count of workflows
|
|
20835
21375
|
*/
|
|
20836
21376
|
async getWorkflowCount(addresses, options) {
|
|
20837
|
-
const request = new
|
|
21377
|
+
const request = new avs_pb24.GetWorkflowCountReq();
|
|
20838
21378
|
request.setAddressesList(addresses);
|
|
20839
21379
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
20840
21380
|
return result.getTotal();
|
|
@@ -20850,7 +21390,7 @@ var Client = class extends BaseClient {
|
|
|
20850
21390
|
* @returns {Promise<{ items: ExecutionProps[]; pageInfo: PageInfo }>} - The list of ExecutionProps objects with nested pagination metadata
|
|
20851
21391
|
*/
|
|
20852
21392
|
async getExecutions(workflows, options) {
|
|
20853
|
-
const request = new
|
|
21393
|
+
const request = new avs_pb24.ListExecutionsReq();
|
|
20854
21394
|
for (const w of workflows) {
|
|
20855
21395
|
request.addTaskIds(w);
|
|
20856
21396
|
}
|
|
@@ -20884,7 +21424,7 @@ var Client = class extends BaseClient {
|
|
|
20884
21424
|
* @returns {Promise<ExecutionProps>} - The ExecutionProps object
|
|
20885
21425
|
*/
|
|
20886
21426
|
async getExecution(workflowId, executionId, options) {
|
|
20887
|
-
const request = new
|
|
21427
|
+
const request = new avs_pb24.ExecutionReq();
|
|
20888
21428
|
request.setTaskId(workflowId);
|
|
20889
21429
|
request.setExecutionId(executionId);
|
|
20890
21430
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -20897,7 +21437,7 @@ var Client = class extends BaseClient {
|
|
|
20897
21437
|
* @returns {Promise<number>} - The count of executions
|
|
20898
21438
|
*/
|
|
20899
21439
|
async getExecutionCount(workflows, options) {
|
|
20900
|
-
const request = new
|
|
21440
|
+
const request = new avs_pb24.GetExecutionCountReq();
|
|
20901
21441
|
request.setWorkflowIdsList(workflows);
|
|
20902
21442
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
20903
21443
|
return result.getTotal();
|
|
@@ -20911,7 +21451,7 @@ var Client = class extends BaseClient {
|
|
|
20911
21451
|
* @returns {Promise<GetExecutionStatsResponse>} - Execution statistics
|
|
20912
21452
|
*/
|
|
20913
21453
|
async getExecutionStats(options) {
|
|
20914
|
-
const request = new
|
|
21454
|
+
const request = new avs_pb24.GetExecutionStatsReq();
|
|
20915
21455
|
if (options?.workflowIds && options.workflowIds.length > 0) {
|
|
20916
21456
|
request.setWorkflowIdsList(options.workflowIds);
|
|
20917
21457
|
}
|
|
@@ -20934,7 +21474,7 @@ var Client = class extends BaseClient {
|
|
|
20934
21474
|
* @returns {Promise<ExecutionStatus>} - The status of the execution
|
|
20935
21475
|
*/
|
|
20936
21476
|
async getExecutionStatus(workflowId, executionId, options) {
|
|
20937
|
-
const request = new
|
|
21477
|
+
const request = new avs_pb24.ExecutionReq();
|
|
20938
21478
|
request.setTaskId(workflowId);
|
|
20939
21479
|
request.setExecutionId(executionId);
|
|
20940
21480
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -20947,7 +21487,7 @@ var Client = class extends BaseClient {
|
|
|
20947
21487
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
20948
21488
|
*/
|
|
20949
21489
|
async getWorkflow(id, options) {
|
|
20950
|
-
const request = new
|
|
21490
|
+
const request = new avs_pb24.IdReq();
|
|
20951
21491
|
request.setId(id);
|
|
20952
21492
|
const result = await this.sendGrpcRequest(
|
|
20953
21493
|
"getTask",
|
|
@@ -20970,14 +21510,14 @@ var Client = class extends BaseClient {
|
|
|
20970
21510
|
triggerData,
|
|
20971
21511
|
isBlocking = false
|
|
20972
21512
|
}, options) {
|
|
20973
|
-
const request = new
|
|
21513
|
+
const request = new avs_pb24.TriggerTaskReq();
|
|
20974
21514
|
request.setTaskId(id);
|
|
20975
21515
|
request.setTriggerType(TriggerTypeConverter2.toProtobuf(triggerData.type));
|
|
20976
21516
|
request.setIsBlocking(isBlocking);
|
|
20977
21517
|
switch (triggerData.type) {
|
|
20978
21518
|
case TriggerType14.FixedTime: {
|
|
20979
21519
|
const fixedTimeData = triggerData;
|
|
20980
|
-
const fixedTimeOutput = new
|
|
21520
|
+
const fixedTimeOutput = new avs_pb24.FixedTimeTrigger.Output();
|
|
20981
21521
|
const triggerOutputData = {
|
|
20982
21522
|
timestamp: fixedTimeData.timestamp,
|
|
20983
21523
|
timestampIso: fixedTimeData.timestampIso
|
|
@@ -20992,7 +21532,7 @@ var Client = class extends BaseClient {
|
|
|
20992
21532
|
}
|
|
20993
21533
|
case TriggerType14.Cron: {
|
|
20994
21534
|
const cronData = triggerData;
|
|
20995
|
-
const cronOutput = new
|
|
21535
|
+
const cronOutput = new avs_pb24.CronTrigger.Output();
|
|
20996
21536
|
const triggerOutputData = {
|
|
20997
21537
|
timestamp: cronData.timestamp,
|
|
20998
21538
|
timestampIso: cronData.timestampIso
|
|
@@ -21007,7 +21547,7 @@ var Client = class extends BaseClient {
|
|
|
21007
21547
|
}
|
|
21008
21548
|
case TriggerType14.Block: {
|
|
21009
21549
|
const blockData = triggerData;
|
|
21010
|
-
const blockOutput = new
|
|
21550
|
+
const blockOutput = new avs_pb24.BlockTrigger.Output();
|
|
21011
21551
|
const triggerOutputData = {
|
|
21012
21552
|
blockNumber: blockData.blockNumber,
|
|
21013
21553
|
blockHash: blockData.blockHash || "",
|
|
@@ -21027,7 +21567,7 @@ var Client = class extends BaseClient {
|
|
|
21027
21567
|
}
|
|
21028
21568
|
case TriggerType14.Event: {
|
|
21029
21569
|
const eventData = triggerData;
|
|
21030
|
-
const eventOutput = new
|
|
21570
|
+
const eventOutput = new avs_pb24.EventTrigger.Output();
|
|
21031
21571
|
if (eventData.data) {
|
|
21032
21572
|
const protobufValue = convertJSValueToProtobuf(eventData.data);
|
|
21033
21573
|
eventOutput.setData(protobufValue);
|
|
@@ -21037,7 +21577,7 @@ var Client = class extends BaseClient {
|
|
|
21037
21577
|
}
|
|
21038
21578
|
case TriggerType14.Manual: {
|
|
21039
21579
|
const manualData = triggerData;
|
|
21040
|
-
const manualOutput = new
|
|
21580
|
+
const manualOutput = new avs_pb24.ManualTrigger.Output();
|
|
21041
21581
|
if (manualData.data) {
|
|
21042
21582
|
const protobufValue = convertJSValueToProtobuf(manualData.data);
|
|
21043
21583
|
manualOutput.setData(protobufValue);
|
|
@@ -21109,7 +21649,7 @@ var Client = class extends BaseClient {
|
|
|
21109
21649
|
* @returns {Promise<CancelTaskResponse>} - The response from canceling the workflow
|
|
21110
21650
|
*/
|
|
21111
21651
|
async cancelWorkflow(id, options) {
|
|
21112
|
-
const request = new
|
|
21652
|
+
const request = new avs_pb24.IdReq();
|
|
21113
21653
|
request.setId(id);
|
|
21114
21654
|
const result = await this.sendGrpcRequest("cancelTask", request, options);
|
|
21115
21655
|
return {
|
|
@@ -21128,7 +21668,7 @@ var Client = class extends BaseClient {
|
|
|
21128
21668
|
* @returns {Promise<DeleteTaskResponse>} - The response from deleting the workflow
|
|
21129
21669
|
*/
|
|
21130
21670
|
async deleteWorkflow(id, options) {
|
|
21131
|
-
const request = new
|
|
21671
|
+
const request = new avs_pb24.IdReq();
|
|
21132
21672
|
request.setId(id);
|
|
21133
21673
|
const result = await this.sendGrpcRequest("deleteTask", request, options);
|
|
21134
21674
|
return {
|
|
@@ -21151,7 +21691,7 @@ var Client = class extends BaseClient {
|
|
|
21151
21691
|
* @returns {Promise<CreateSecretResponse>} - Structured response with creation details
|
|
21152
21692
|
*/
|
|
21153
21693
|
async createSecret(name, value, options) {
|
|
21154
|
-
const request = new
|
|
21694
|
+
const request = new avs_pb24.CreateOrUpdateSecretReq();
|
|
21155
21695
|
request.setName(name);
|
|
21156
21696
|
request.setSecret(value);
|
|
21157
21697
|
if (options?.workflowId) {
|
|
@@ -21181,7 +21721,7 @@ var Client = class extends BaseClient {
|
|
|
21181
21721
|
* @returns {Promise<UpdateSecretResponse>} - Structured response with update details
|
|
21182
21722
|
*/
|
|
21183
21723
|
async updateSecret(name, value, options) {
|
|
21184
|
-
const request = new
|
|
21724
|
+
const request = new avs_pb24.CreateOrUpdateSecretReq();
|
|
21185
21725
|
request.setName(name);
|
|
21186
21726
|
request.setSecret(value);
|
|
21187
21727
|
if (options?.workflowId) {
|
|
@@ -21215,7 +21755,7 @@ var Client = class extends BaseClient {
|
|
|
21215
21755
|
* @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
|
|
21216
21756
|
*/
|
|
21217
21757
|
async getSecrets(options) {
|
|
21218
|
-
const request = new
|
|
21758
|
+
const request = new avs_pb24.ListSecretsReq();
|
|
21219
21759
|
if (options?.workflowId) {
|
|
21220
21760
|
request.setWorkflowId(options.workflowId);
|
|
21221
21761
|
}
|
|
@@ -21270,7 +21810,7 @@ var Client = class extends BaseClient {
|
|
|
21270
21810
|
* @returns {Promise<DeleteSecretResponse>} - Structured response with deletion details
|
|
21271
21811
|
*/
|
|
21272
21812
|
async deleteSecret(name, options) {
|
|
21273
|
-
const request = new
|
|
21813
|
+
const request = new avs_pb24.DeleteSecretReq();
|
|
21274
21814
|
request.setName(name);
|
|
21275
21815
|
if (options?.workflowId) {
|
|
21276
21816
|
request.setWorkflowId(options.workflowId);
|
|
@@ -21313,7 +21853,7 @@ var Client = class extends BaseClient {
|
|
|
21313
21853
|
data: null
|
|
21314
21854
|
};
|
|
21315
21855
|
}
|
|
21316
|
-
const request = new
|
|
21856
|
+
const request = new avs_pb24.RunNodeWithInputsReq();
|
|
21317
21857
|
const protobufNodeType = NodeTypeGoConverter2.fromGoString(nodeType);
|
|
21318
21858
|
request.setNodeType(protobufNodeType);
|
|
21319
21859
|
const nodeConfigMap = request.getNodeConfigMap();
|
|
@@ -21333,7 +21873,9 @@ var Client = class extends BaseClient {
|
|
|
21333
21873
|
error: result.getError(),
|
|
21334
21874
|
errorCode: result.getErrorCode() || void 0,
|
|
21335
21875
|
metadata: result.hasMetadata() ? toCamelCaseKeys(convertProtobufValueToJs(result.getMetadata())) : void 0,
|
|
21336
|
-
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
|
|
21876
|
+
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
|
|
21877
|
+
convertProtobufValueToJs(result.getExecutionContext())
|
|
21878
|
+
) : void 0
|
|
21337
21879
|
};
|
|
21338
21880
|
}
|
|
21339
21881
|
/**
|
|
@@ -21345,7 +21887,7 @@ var Client = class extends BaseClient {
|
|
|
21345
21887
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
21346
21888
|
*/
|
|
21347
21889
|
async runTrigger({ triggerType, triggerConfig }, options) {
|
|
21348
|
-
const request = new
|
|
21890
|
+
const request = new avs_pb24.RunTriggerReq();
|
|
21349
21891
|
const protobufTriggerType = TriggerTypeGoConverter.fromGoString(triggerType);
|
|
21350
21892
|
request.setTriggerType(protobufTriggerType);
|
|
21351
21893
|
const triggerConfigMap = request.getTriggerConfigMap();
|
|
@@ -21369,7 +21911,9 @@ var Client = class extends BaseClient {
|
|
|
21369
21911
|
error: result.getError(),
|
|
21370
21912
|
errorCode: result.getErrorCode() || void 0,
|
|
21371
21913
|
metadata: toCamelCaseKeys(metadata),
|
|
21372
|
-
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
|
|
21914
|
+
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
|
|
21915
|
+
convertProtobufValueToJs(result.getExecutionContext())
|
|
21916
|
+
) : void 0
|
|
21373
21917
|
};
|
|
21374
21918
|
}
|
|
21375
21919
|
/**
|
|
@@ -21383,7 +21927,7 @@ var Client = class extends BaseClient {
|
|
|
21383
21927
|
* @returns {Promise<ExecutionProps>} - The response from simulating the task
|
|
21384
21928
|
*/
|
|
21385
21929
|
async simulateWorkflow({ trigger, nodes, edges, inputVariables = {} }, options) {
|
|
21386
|
-
const request = new
|
|
21930
|
+
const request = new avs_pb24.SimulateTaskReq();
|
|
21387
21931
|
const triggerSdk = factory_default.create(trigger);
|
|
21388
21932
|
request.setTrigger(triggerSdk.toRequest());
|
|
21389
21933
|
const nodeMessages = nodes.map((node) => {
|
|
@@ -21412,7 +21956,7 @@ var Client = class extends BaseClient {
|
|
|
21412
21956
|
* @returns {Promise<GetTokenMetadataResponse>} - The response containing token metadata
|
|
21413
21957
|
*/
|
|
21414
21958
|
async getTokenMetadata({ address }, options) {
|
|
21415
|
-
const request = new
|
|
21959
|
+
const request = new avs_pb24.GetTokenMetadataReq();
|
|
21416
21960
|
request.setAddress(address);
|
|
21417
21961
|
const result = await this.sendGrpcRequest("getTokenMetadata", request, options);
|
|
21418
21962
|
const token = result.getToken();
|
|
@@ -21429,7 +21973,7 @@ var Client = class extends BaseClient {
|
|
|
21429
21973
|
}
|
|
21430
21974
|
/**
|
|
21431
21975
|
* Get comprehensive fee estimation for workflow deployment
|
|
21432
|
-
*
|
|
21976
|
+
*
|
|
21433
21977
|
* @param params - Fee estimation request parameters
|
|
21434
21978
|
* @param options - Optional request options (auth key, timeout)
|
|
21435
21979
|
* @returns Promise resolving to comprehensive fee breakdown
|
|
@@ -21442,7 +21986,7 @@ var Client = class extends BaseClient {
|
|
|
21442
21986
|
createdAt,
|
|
21443
21987
|
expireAt
|
|
21444
21988
|
}, options) {
|
|
21445
|
-
const request = new
|
|
21989
|
+
const request = new avs_pb24.EstimateFeesReq();
|
|
21446
21990
|
const triggerSdk = factory_default.create(trigger);
|
|
21447
21991
|
request.setTrigger(triggerSdk.toRequest());
|
|
21448
21992
|
const nodeMessages = nodes.map((node) => {
|
|
@@ -21526,7 +22070,9 @@ var Client = class extends BaseClient {
|
|
|
21526
22070
|
response.totalFees = this.convertFeeAmount(result.getTotalFees());
|
|
21527
22071
|
}
|
|
21528
22072
|
if (result.getTotalDiscounts()) {
|
|
21529
|
-
response.totalDiscounts = this.convertFeeAmount(
|
|
22073
|
+
response.totalDiscounts = this.convertFeeAmount(
|
|
22074
|
+
result.getTotalDiscounts()
|
|
22075
|
+
);
|
|
21530
22076
|
}
|
|
21531
22077
|
if (result.getFinalTotal()) {
|
|
21532
22078
|
response.finalTotal = this.convertFeeAmount(result.getFinalTotal());
|
|
@@ -21594,6 +22140,7 @@ var Client = class extends BaseClient {
|
|
|
21594
22140
|
}
|
|
21595
22141
|
};
|
|
21596
22142
|
export {
|
|
22143
|
+
balance_default as BalanceNode,
|
|
21597
22144
|
block_default as BlockTrigger,
|
|
21598
22145
|
branch_default as BranchNode,
|
|
21599
22146
|
Client,
|