@avaprotocol/sdk-js 2.8.1 → 2.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +889 -313
- package/dist/index.mjs +859 -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 +77 -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.js
CHANGED
|
@@ -54,6 +54,9 @@ var require_avs_pb = __commonJS({
|
|
|
54
54
|
var google_protobuf_struct_pb5 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
55
55
|
goog.object.extend(proto, google_protobuf_struct_pb5);
|
|
56
56
|
goog.exportSymbol("proto.aggregator.AutomationFee", null, global);
|
|
57
|
+
goog.exportSymbol("proto.aggregator.BalanceNode", null, global);
|
|
58
|
+
goog.exportSymbol("proto.aggregator.BalanceNode.Config", null, global);
|
|
59
|
+
goog.exportSymbol("proto.aggregator.BalanceNode.Output", null, global);
|
|
57
60
|
goog.exportSymbol("proto.aggregator.BlockTrigger", null, global);
|
|
58
61
|
goog.exportSymbol("proto.aggregator.BlockTrigger.Config", null, global);
|
|
59
62
|
goog.exportSymbol("proto.aggregator.BlockTrigger.Output", null, global);
|
|
@@ -505,6 +508,27 @@ var require_avs_pb = __commonJS({
|
|
|
505
508
|
if (goog.DEBUG && !COMPILED) {
|
|
506
509
|
proto.aggregator.CustomCodeNode.Output.displayName = "proto.aggregator.CustomCodeNode.Output";
|
|
507
510
|
}
|
|
511
|
+
proto.aggregator.BalanceNode = function(opt_data) {
|
|
512
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
513
|
+
};
|
|
514
|
+
goog.inherits(proto.aggregator.BalanceNode, jspb.Message);
|
|
515
|
+
if (goog.DEBUG && !COMPILED) {
|
|
516
|
+
proto.aggregator.BalanceNode.displayName = "proto.aggregator.BalanceNode";
|
|
517
|
+
}
|
|
518
|
+
proto.aggregator.BalanceNode.Config = function(opt_data) {
|
|
519
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.BalanceNode.Config.repeatedFields_, null);
|
|
520
|
+
};
|
|
521
|
+
goog.inherits(proto.aggregator.BalanceNode.Config, jspb.Message);
|
|
522
|
+
if (goog.DEBUG && !COMPILED) {
|
|
523
|
+
proto.aggregator.BalanceNode.Config.displayName = "proto.aggregator.BalanceNode.Config";
|
|
524
|
+
}
|
|
525
|
+
proto.aggregator.BalanceNode.Output = function(opt_data) {
|
|
526
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
527
|
+
};
|
|
528
|
+
goog.inherits(proto.aggregator.BalanceNode.Output, jspb.Message);
|
|
529
|
+
if (goog.DEBUG && !COMPILED) {
|
|
530
|
+
proto.aggregator.BalanceNode.Output.displayName = "proto.aggregator.BalanceNode.Output";
|
|
531
|
+
}
|
|
508
532
|
proto.aggregator.BranchNode = function(opt_data) {
|
|
509
533
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
510
534
|
};
|
|
@@ -2733,7 +2757,8 @@ var require_avs_pb = __commonJS({
|
|
|
2733
2757
|
var f, obj = {
|
|
2734
2758
|
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
2735
2759
|
headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, void 0) : [],
|
|
2736
|
-
pathparamsMap: (f = msg.getPathparamsMap()) ? f.toObject(includeInstance, void 0) : []
|
|
2760
|
+
pathparamsMap: (f = msg.getPathparamsMap()) ? f.toObject(includeInstance, void 0) : [],
|
|
2761
|
+
lang: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
|
2737
2762
|
};
|
|
2738
2763
|
if (includeInstance) {
|
|
2739
2764
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2770,6 +2795,13 @@ var require_avs_pb = __commonJS({
|
|
|
2770
2795
|
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
2771
2796
|
});
|
|
2772
2797
|
break;
|
|
2798
|
+
case 4:
|
|
2799
|
+
var value = (
|
|
2800
|
+
/** @type {!proto.aggregator.Lang} */
|
|
2801
|
+
reader.readEnum()
|
|
2802
|
+
);
|
|
2803
|
+
msg.setLang(value);
|
|
2804
|
+
break;
|
|
2773
2805
|
default:
|
|
2774
2806
|
reader.skipField();
|
|
2775
2807
|
break;
|
|
@@ -2800,6 +2832,13 @@ var require_avs_pb = __commonJS({
|
|
|
2800
2832
|
if (f && f.getLength() > 0) {
|
|
2801
2833
|
f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
2802
2834
|
}
|
|
2835
|
+
f = message.getLang();
|
|
2836
|
+
if (f !== 0) {
|
|
2837
|
+
writer.writeEnum(
|
|
2838
|
+
4,
|
|
2839
|
+
f
|
|
2840
|
+
);
|
|
2841
|
+
}
|
|
2803
2842
|
};
|
|
2804
2843
|
proto.aggregator.ManualTrigger.Config.prototype.getData = function() {
|
|
2805
2844
|
return (
|
|
@@ -2846,6 +2885,15 @@ var require_avs_pb = __commonJS({
|
|
|
2846
2885
|
this.getPathparamsMap().clear();
|
|
2847
2886
|
return this;
|
|
2848
2887
|
};
|
|
2888
|
+
proto.aggregator.ManualTrigger.Config.prototype.getLang = function() {
|
|
2889
|
+
return (
|
|
2890
|
+
/** @type {!proto.aggregator.Lang} */
|
|
2891
|
+
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
2892
|
+
);
|
|
2893
|
+
};
|
|
2894
|
+
proto.aggregator.ManualTrigger.Config.prototype.setLang = function(value) {
|
|
2895
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
2896
|
+
};
|
|
2849
2897
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2850
2898
|
proto.aggregator.ManualTrigger.Output.prototype.toObject = function(opt_includeInstance) {
|
|
2851
2899
|
return proto.aggregator.ManualTrigger.Output.toObject(opt_includeInstance, this);
|
|
@@ -5544,6 +5592,335 @@ var require_avs_pb = __commonJS({
|
|
|
5544
5592
|
proto.aggregator.CustomCodeNode.prototype.hasConfig = function() {
|
|
5545
5593
|
return jspb.Message.getField(this, 1) != null;
|
|
5546
5594
|
};
|
|
5595
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5596
|
+
proto.aggregator.BalanceNode.prototype.toObject = function(opt_includeInstance) {
|
|
5597
|
+
return proto.aggregator.BalanceNode.toObject(opt_includeInstance, this);
|
|
5598
|
+
};
|
|
5599
|
+
proto.aggregator.BalanceNode.toObject = function(includeInstance, msg) {
|
|
5600
|
+
var f, obj = {
|
|
5601
|
+
config: (f = msg.getConfig()) && proto.aggregator.BalanceNode.Config.toObject(includeInstance, f)
|
|
5602
|
+
};
|
|
5603
|
+
if (includeInstance) {
|
|
5604
|
+
obj.$jspbMessageInstance = msg;
|
|
5605
|
+
}
|
|
5606
|
+
return obj;
|
|
5607
|
+
};
|
|
5608
|
+
}
|
|
5609
|
+
proto.aggregator.BalanceNode.deserializeBinary = function(bytes) {
|
|
5610
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5611
|
+
var msg = new proto.aggregator.BalanceNode();
|
|
5612
|
+
return proto.aggregator.BalanceNode.deserializeBinaryFromReader(msg, reader);
|
|
5613
|
+
};
|
|
5614
|
+
proto.aggregator.BalanceNode.deserializeBinaryFromReader = function(msg, reader) {
|
|
5615
|
+
while (reader.nextField()) {
|
|
5616
|
+
if (reader.isEndGroup()) {
|
|
5617
|
+
break;
|
|
5618
|
+
}
|
|
5619
|
+
var field = reader.getFieldNumber();
|
|
5620
|
+
switch (field) {
|
|
5621
|
+
case 1:
|
|
5622
|
+
var value = new proto.aggregator.BalanceNode.Config();
|
|
5623
|
+
reader.readMessage(value, proto.aggregator.BalanceNode.Config.deserializeBinaryFromReader);
|
|
5624
|
+
msg.setConfig(value);
|
|
5625
|
+
break;
|
|
5626
|
+
default:
|
|
5627
|
+
reader.skipField();
|
|
5628
|
+
break;
|
|
5629
|
+
}
|
|
5630
|
+
}
|
|
5631
|
+
return msg;
|
|
5632
|
+
};
|
|
5633
|
+
proto.aggregator.BalanceNode.prototype.serializeBinary = function() {
|
|
5634
|
+
var writer = new jspb.BinaryWriter();
|
|
5635
|
+
proto.aggregator.BalanceNode.serializeBinaryToWriter(this, writer);
|
|
5636
|
+
return writer.getResultBuffer();
|
|
5637
|
+
};
|
|
5638
|
+
proto.aggregator.BalanceNode.serializeBinaryToWriter = function(message, writer) {
|
|
5639
|
+
var f = void 0;
|
|
5640
|
+
f = message.getConfig();
|
|
5641
|
+
if (f != null) {
|
|
5642
|
+
writer.writeMessage(
|
|
5643
|
+
1,
|
|
5644
|
+
f,
|
|
5645
|
+
proto.aggregator.BalanceNode.Config.serializeBinaryToWriter
|
|
5646
|
+
);
|
|
5647
|
+
}
|
|
5648
|
+
};
|
|
5649
|
+
proto.aggregator.BalanceNode.Config.repeatedFields_ = [6];
|
|
5650
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5651
|
+
proto.aggregator.BalanceNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
5652
|
+
return proto.aggregator.BalanceNode.Config.toObject(opt_includeInstance, this);
|
|
5653
|
+
};
|
|
5654
|
+
proto.aggregator.BalanceNode.Config.toObject = function(includeInstance, msg) {
|
|
5655
|
+
var f, obj = {
|
|
5656
|
+
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
5657
|
+
chain: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
5658
|
+
includeSpam: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
5659
|
+
includeZeroBalances: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
5660
|
+
minUsdValueCents: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
5661
|
+
tokenAddressesList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? void 0 : f
|
|
5662
|
+
};
|
|
5663
|
+
if (includeInstance) {
|
|
5664
|
+
obj.$jspbMessageInstance = msg;
|
|
5665
|
+
}
|
|
5666
|
+
return obj;
|
|
5667
|
+
};
|
|
5668
|
+
}
|
|
5669
|
+
proto.aggregator.BalanceNode.Config.deserializeBinary = function(bytes) {
|
|
5670
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5671
|
+
var msg = new proto.aggregator.BalanceNode.Config();
|
|
5672
|
+
return proto.aggregator.BalanceNode.Config.deserializeBinaryFromReader(msg, reader);
|
|
5673
|
+
};
|
|
5674
|
+
proto.aggregator.BalanceNode.Config.deserializeBinaryFromReader = function(msg, reader) {
|
|
5675
|
+
while (reader.nextField()) {
|
|
5676
|
+
if (reader.isEndGroup()) {
|
|
5677
|
+
break;
|
|
5678
|
+
}
|
|
5679
|
+
var field = reader.getFieldNumber();
|
|
5680
|
+
switch (field) {
|
|
5681
|
+
case 1:
|
|
5682
|
+
var value = (
|
|
5683
|
+
/** @type {string} */
|
|
5684
|
+
reader.readString()
|
|
5685
|
+
);
|
|
5686
|
+
msg.setAddress(value);
|
|
5687
|
+
break;
|
|
5688
|
+
case 2:
|
|
5689
|
+
var value = (
|
|
5690
|
+
/** @type {string} */
|
|
5691
|
+
reader.readString()
|
|
5692
|
+
);
|
|
5693
|
+
msg.setChain(value);
|
|
5694
|
+
break;
|
|
5695
|
+
case 3:
|
|
5696
|
+
var value = (
|
|
5697
|
+
/** @type {boolean} */
|
|
5698
|
+
reader.readBool()
|
|
5699
|
+
);
|
|
5700
|
+
msg.setIncludeSpam(value);
|
|
5701
|
+
break;
|
|
5702
|
+
case 4:
|
|
5703
|
+
var value = (
|
|
5704
|
+
/** @type {boolean} */
|
|
5705
|
+
reader.readBool()
|
|
5706
|
+
);
|
|
5707
|
+
msg.setIncludeZeroBalances(value);
|
|
5708
|
+
break;
|
|
5709
|
+
case 5:
|
|
5710
|
+
var value = (
|
|
5711
|
+
/** @type {number} */
|
|
5712
|
+
reader.readInt64()
|
|
5713
|
+
);
|
|
5714
|
+
msg.setMinUsdValueCents(value);
|
|
5715
|
+
break;
|
|
5716
|
+
case 6:
|
|
5717
|
+
var value = (
|
|
5718
|
+
/** @type {string} */
|
|
5719
|
+
reader.readString()
|
|
5720
|
+
);
|
|
5721
|
+
msg.addTokenAddresses(value);
|
|
5722
|
+
break;
|
|
5723
|
+
default:
|
|
5724
|
+
reader.skipField();
|
|
5725
|
+
break;
|
|
5726
|
+
}
|
|
5727
|
+
}
|
|
5728
|
+
return msg;
|
|
5729
|
+
};
|
|
5730
|
+
proto.aggregator.BalanceNode.Config.prototype.serializeBinary = function() {
|
|
5731
|
+
var writer = new jspb.BinaryWriter();
|
|
5732
|
+
proto.aggregator.BalanceNode.Config.serializeBinaryToWriter(this, writer);
|
|
5733
|
+
return writer.getResultBuffer();
|
|
5734
|
+
};
|
|
5735
|
+
proto.aggregator.BalanceNode.Config.serializeBinaryToWriter = function(message, writer) {
|
|
5736
|
+
var f = void 0;
|
|
5737
|
+
f = message.getAddress();
|
|
5738
|
+
if (f.length > 0) {
|
|
5739
|
+
writer.writeString(
|
|
5740
|
+
1,
|
|
5741
|
+
f
|
|
5742
|
+
);
|
|
5743
|
+
}
|
|
5744
|
+
f = message.getChain();
|
|
5745
|
+
if (f.length > 0) {
|
|
5746
|
+
writer.writeString(
|
|
5747
|
+
2,
|
|
5748
|
+
f
|
|
5749
|
+
);
|
|
5750
|
+
}
|
|
5751
|
+
f = message.getIncludeSpam();
|
|
5752
|
+
if (f) {
|
|
5753
|
+
writer.writeBool(
|
|
5754
|
+
3,
|
|
5755
|
+
f
|
|
5756
|
+
);
|
|
5757
|
+
}
|
|
5758
|
+
f = message.getIncludeZeroBalances();
|
|
5759
|
+
if (f) {
|
|
5760
|
+
writer.writeBool(
|
|
5761
|
+
4,
|
|
5762
|
+
f
|
|
5763
|
+
);
|
|
5764
|
+
}
|
|
5765
|
+
f = message.getMinUsdValueCents();
|
|
5766
|
+
if (f !== 0) {
|
|
5767
|
+
writer.writeInt64(
|
|
5768
|
+
5,
|
|
5769
|
+
f
|
|
5770
|
+
);
|
|
5771
|
+
}
|
|
5772
|
+
f = message.getTokenAddressesList();
|
|
5773
|
+
if (f.length > 0) {
|
|
5774
|
+
writer.writeRepeatedString(
|
|
5775
|
+
6,
|
|
5776
|
+
f
|
|
5777
|
+
);
|
|
5778
|
+
}
|
|
5779
|
+
};
|
|
5780
|
+
proto.aggregator.BalanceNode.Config.prototype.getAddress = function() {
|
|
5781
|
+
return (
|
|
5782
|
+
/** @type {string} */
|
|
5783
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
5784
|
+
);
|
|
5785
|
+
};
|
|
5786
|
+
proto.aggregator.BalanceNode.Config.prototype.setAddress = function(value) {
|
|
5787
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5788
|
+
};
|
|
5789
|
+
proto.aggregator.BalanceNode.Config.prototype.getChain = function() {
|
|
5790
|
+
return (
|
|
5791
|
+
/** @type {string} */
|
|
5792
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
5793
|
+
);
|
|
5794
|
+
};
|
|
5795
|
+
proto.aggregator.BalanceNode.Config.prototype.setChain = function(value) {
|
|
5796
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
5797
|
+
};
|
|
5798
|
+
proto.aggregator.BalanceNode.Config.prototype.getIncludeSpam = function() {
|
|
5799
|
+
return (
|
|
5800
|
+
/** @type {boolean} */
|
|
5801
|
+
jspb.Message.getBooleanFieldWithDefault(this, 3, false)
|
|
5802
|
+
);
|
|
5803
|
+
};
|
|
5804
|
+
proto.aggregator.BalanceNode.Config.prototype.setIncludeSpam = function(value) {
|
|
5805
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
5806
|
+
};
|
|
5807
|
+
proto.aggregator.BalanceNode.Config.prototype.getIncludeZeroBalances = function() {
|
|
5808
|
+
return (
|
|
5809
|
+
/** @type {boolean} */
|
|
5810
|
+
jspb.Message.getBooleanFieldWithDefault(this, 4, false)
|
|
5811
|
+
);
|
|
5812
|
+
};
|
|
5813
|
+
proto.aggregator.BalanceNode.Config.prototype.setIncludeZeroBalances = function(value) {
|
|
5814
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
5815
|
+
};
|
|
5816
|
+
proto.aggregator.BalanceNode.Config.prototype.getMinUsdValueCents = function() {
|
|
5817
|
+
return (
|
|
5818
|
+
/** @type {number} */
|
|
5819
|
+
jspb.Message.getFieldWithDefault(this, 5, 0)
|
|
5820
|
+
);
|
|
5821
|
+
};
|
|
5822
|
+
proto.aggregator.BalanceNode.Config.prototype.setMinUsdValueCents = function(value) {
|
|
5823
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
5824
|
+
};
|
|
5825
|
+
proto.aggregator.BalanceNode.Config.prototype.getTokenAddressesList = function() {
|
|
5826
|
+
return (
|
|
5827
|
+
/** @type {!Array<string>} */
|
|
5828
|
+
jspb.Message.getRepeatedField(this, 6)
|
|
5829
|
+
);
|
|
5830
|
+
};
|
|
5831
|
+
proto.aggregator.BalanceNode.Config.prototype.setTokenAddressesList = function(value) {
|
|
5832
|
+
return jspb.Message.setField(this, 6, value || []);
|
|
5833
|
+
};
|
|
5834
|
+
proto.aggregator.BalanceNode.Config.prototype.addTokenAddresses = function(value, opt_index) {
|
|
5835
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
5836
|
+
};
|
|
5837
|
+
proto.aggregator.BalanceNode.Config.prototype.clearTokenAddressesList = function() {
|
|
5838
|
+
return this.setTokenAddressesList([]);
|
|
5839
|
+
};
|
|
5840
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5841
|
+
proto.aggregator.BalanceNode.Output.prototype.toObject = function(opt_includeInstance) {
|
|
5842
|
+
return proto.aggregator.BalanceNode.Output.toObject(opt_includeInstance, this);
|
|
5843
|
+
};
|
|
5844
|
+
proto.aggregator.BalanceNode.Output.toObject = function(includeInstance, msg) {
|
|
5845
|
+
var f, obj = {
|
|
5846
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
5847
|
+
};
|
|
5848
|
+
if (includeInstance) {
|
|
5849
|
+
obj.$jspbMessageInstance = msg;
|
|
5850
|
+
}
|
|
5851
|
+
return obj;
|
|
5852
|
+
};
|
|
5853
|
+
}
|
|
5854
|
+
proto.aggregator.BalanceNode.Output.deserializeBinary = function(bytes) {
|
|
5855
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
5856
|
+
var msg = new proto.aggregator.BalanceNode.Output();
|
|
5857
|
+
return proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader(msg, reader);
|
|
5858
|
+
};
|
|
5859
|
+
proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader = function(msg, reader) {
|
|
5860
|
+
while (reader.nextField()) {
|
|
5861
|
+
if (reader.isEndGroup()) {
|
|
5862
|
+
break;
|
|
5863
|
+
}
|
|
5864
|
+
var field = reader.getFieldNumber();
|
|
5865
|
+
switch (field) {
|
|
5866
|
+
case 1:
|
|
5867
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
5868
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
5869
|
+
msg.setData(value);
|
|
5870
|
+
break;
|
|
5871
|
+
default:
|
|
5872
|
+
reader.skipField();
|
|
5873
|
+
break;
|
|
5874
|
+
}
|
|
5875
|
+
}
|
|
5876
|
+
return msg;
|
|
5877
|
+
};
|
|
5878
|
+
proto.aggregator.BalanceNode.Output.prototype.serializeBinary = function() {
|
|
5879
|
+
var writer = new jspb.BinaryWriter();
|
|
5880
|
+
proto.aggregator.BalanceNode.Output.serializeBinaryToWriter(this, writer);
|
|
5881
|
+
return writer.getResultBuffer();
|
|
5882
|
+
};
|
|
5883
|
+
proto.aggregator.BalanceNode.Output.serializeBinaryToWriter = function(message, writer) {
|
|
5884
|
+
var f = void 0;
|
|
5885
|
+
f = message.getData();
|
|
5886
|
+
if (f != null) {
|
|
5887
|
+
writer.writeMessage(
|
|
5888
|
+
1,
|
|
5889
|
+
f,
|
|
5890
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
5891
|
+
);
|
|
5892
|
+
}
|
|
5893
|
+
};
|
|
5894
|
+
proto.aggregator.BalanceNode.Output.prototype.getData = function() {
|
|
5895
|
+
return (
|
|
5896
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
5897
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
5898
|
+
);
|
|
5899
|
+
};
|
|
5900
|
+
proto.aggregator.BalanceNode.Output.prototype.setData = function(value) {
|
|
5901
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
5902
|
+
};
|
|
5903
|
+
proto.aggregator.BalanceNode.Output.prototype.clearData = function() {
|
|
5904
|
+
return this.setData(void 0);
|
|
5905
|
+
};
|
|
5906
|
+
proto.aggregator.BalanceNode.Output.prototype.hasData = function() {
|
|
5907
|
+
return jspb.Message.getField(this, 1) != null;
|
|
5908
|
+
};
|
|
5909
|
+
proto.aggregator.BalanceNode.prototype.getConfig = function() {
|
|
5910
|
+
return (
|
|
5911
|
+
/** @type{?proto.aggregator.BalanceNode.Config} */
|
|
5912
|
+
jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode.Config, 1)
|
|
5913
|
+
);
|
|
5914
|
+
};
|
|
5915
|
+
proto.aggregator.BalanceNode.prototype.setConfig = function(value) {
|
|
5916
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
5917
|
+
};
|
|
5918
|
+
proto.aggregator.BalanceNode.prototype.clearConfig = function() {
|
|
5919
|
+
return this.setConfig(void 0);
|
|
5920
|
+
};
|
|
5921
|
+
proto.aggregator.BalanceNode.prototype.hasConfig = function() {
|
|
5922
|
+
return jspb.Message.getField(this, 1) != null;
|
|
5923
|
+
};
|
|
5547
5924
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5548
5925
|
proto.aggregator.BranchNode.prototype.toObject = function(opt_includeInstance) {
|
|
5549
5926
|
return proto.aggregator.BranchNode.toObject(opt_includeInstance, this);
|
|
@@ -6670,7 +7047,7 @@ var require_avs_pb = __commonJS({
|
|
|
6670
7047
|
proto.aggregator.TaskEdge.prototype.setTarget = function(value) {
|
|
6671
7048
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
6672
7049
|
};
|
|
6673
|
-
proto.aggregator.TaskNode.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18]];
|
|
7050
|
+
proto.aggregator.TaskNode.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18, 19]];
|
|
6674
7051
|
proto.aggregator.TaskNode.TaskTypeCase = {
|
|
6675
7052
|
TASK_TYPE_NOT_SET: 0,
|
|
6676
7053
|
ETH_TRANSFER: 10,
|
|
@@ -6681,7 +7058,8 @@ var require_avs_pb = __commonJS({
|
|
|
6681
7058
|
BRANCH: 15,
|
|
6682
7059
|
FILTER: 16,
|
|
6683
7060
|
LOOP: 17,
|
|
6684
|
-
CUSTOM_CODE: 18
|
|
7061
|
+
CUSTOM_CODE: 18,
|
|
7062
|
+
BALANCE: 19
|
|
6685
7063
|
};
|
|
6686
7064
|
proto.aggregator.TaskNode.prototype.getTaskTypeCase = function() {
|
|
6687
7065
|
return (
|
|
@@ -6706,7 +7084,8 @@ var require_avs_pb = __commonJS({
|
|
|
6706
7084
|
branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.toObject(includeInstance, f),
|
|
6707
7085
|
filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.toObject(includeInstance, f),
|
|
6708
7086
|
loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.toObject(includeInstance, f),
|
|
6709
|
-
customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f)
|
|
7087
|
+
customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
|
|
7088
|
+
balance: (f = msg.getBalance()) && proto.aggregator.BalanceNode.toObject(includeInstance, f)
|
|
6710
7089
|
};
|
|
6711
7090
|
if (includeInstance) {
|
|
6712
7091
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6792,6 +7171,11 @@ var require_avs_pb = __commonJS({
|
|
|
6792
7171
|
reader.readMessage(value, proto.aggregator.CustomCodeNode.deserializeBinaryFromReader);
|
|
6793
7172
|
msg.setCustomCode(value);
|
|
6794
7173
|
break;
|
|
7174
|
+
case 19:
|
|
7175
|
+
var value = new proto.aggregator.BalanceNode();
|
|
7176
|
+
reader.readMessage(value, proto.aggregator.BalanceNode.deserializeBinaryFromReader);
|
|
7177
|
+
msg.setBalance(value);
|
|
7178
|
+
break;
|
|
6795
7179
|
default:
|
|
6796
7180
|
reader.skipField();
|
|
6797
7181
|
break;
|
|
@@ -6899,6 +7283,14 @@ var require_avs_pb = __commonJS({
|
|
|
6899
7283
|
proto.aggregator.CustomCodeNode.serializeBinaryToWriter
|
|
6900
7284
|
);
|
|
6901
7285
|
}
|
|
7286
|
+
f = message.getBalance();
|
|
7287
|
+
if (f != null) {
|
|
7288
|
+
writer.writeMessage(
|
|
7289
|
+
19,
|
|
7290
|
+
f,
|
|
7291
|
+
proto.aggregator.BalanceNode.serializeBinaryToWriter
|
|
7292
|
+
);
|
|
7293
|
+
}
|
|
6902
7294
|
};
|
|
6903
7295
|
proto.aggregator.TaskNode.prototype.getId = function() {
|
|
6904
7296
|
return (
|
|
@@ -7062,6 +7454,21 @@ var require_avs_pb = __commonJS({
|
|
|
7062
7454
|
proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
|
|
7063
7455
|
return jspb.Message.getField(this, 18) != null;
|
|
7064
7456
|
};
|
|
7457
|
+
proto.aggregator.TaskNode.prototype.getBalance = function() {
|
|
7458
|
+
return (
|
|
7459
|
+
/** @type{?proto.aggregator.BalanceNode} */
|
|
7460
|
+
jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode, 19)
|
|
7461
|
+
);
|
|
7462
|
+
};
|
|
7463
|
+
proto.aggregator.TaskNode.prototype.setBalance = function(value) {
|
|
7464
|
+
return jspb.Message.setOneofWrapperField(this, 19, proto.aggregator.TaskNode.oneofGroups_[0], value);
|
|
7465
|
+
};
|
|
7466
|
+
proto.aggregator.TaskNode.prototype.clearBalance = function() {
|
|
7467
|
+
return this.setBalance(void 0);
|
|
7468
|
+
};
|
|
7469
|
+
proto.aggregator.TaskNode.prototype.hasBalance = function() {
|
|
7470
|
+
return jspb.Message.getField(this, 19) != null;
|
|
7471
|
+
};
|
|
7065
7472
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
7066
7473
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7067
7474
|
proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -7227,7 +7634,7 @@ var require_avs_pb = __commonJS({
|
|
|
7227
7634
|
}
|
|
7228
7635
|
};
|
|
7229
7636
|
proto.aggregator.Execution.Step.repeatedFields_ = [16];
|
|
7230
|
-
proto.aggregator.Execution.Step.oneofGroups_ = [[20, 21, 22, 23, 24, 3, 4, 5, 6, 7, 8, 9, 10, 11]];
|
|
7637
|
+
proto.aggregator.Execution.Step.oneofGroups_ = [[20, 21, 22, 23, 24, 3, 4, 5, 6, 7, 8, 9, 10, 11, 30]];
|
|
7231
7638
|
proto.aggregator.Execution.Step.OutputDataCase = {
|
|
7232
7639
|
OUTPUT_DATA_NOT_SET: 0,
|
|
7233
7640
|
BLOCK_TRIGGER: 20,
|
|
@@ -7243,7 +7650,8 @@ var require_avs_pb = __commonJS({
|
|
|
7243
7650
|
REST_API: 8,
|
|
7244
7651
|
BRANCH: 9,
|
|
7245
7652
|
FILTER: 10,
|
|
7246
|
-
LOOP: 11
|
|
7653
|
+
LOOP: 11,
|
|
7654
|
+
BALANCE: 30
|
|
7247
7655
|
};
|
|
7248
7656
|
proto.aggregator.Execution.Step.prototype.getOutputDataCase = function() {
|
|
7249
7657
|
return (
|
|
@@ -7285,6 +7693,7 @@ var require_avs_pb = __commonJS({
|
|
|
7285
7693
|
branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.Output.toObject(includeInstance, f),
|
|
7286
7694
|
filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.Output.toObject(includeInstance, f),
|
|
7287
7695
|
loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f),
|
|
7696
|
+
balance: (f = msg.getBalance()) && proto.aggregator.BalanceNode.Output.toObject(includeInstance, f),
|
|
7288
7697
|
startAt: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
7289
7698
|
endAt: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
7290
7699
|
};
|
|
@@ -7468,6 +7877,11 @@ var require_avs_pb = __commonJS({
|
|
|
7468
7877
|
reader.readMessage(value, proto.aggregator.LoopNode.Output.deserializeBinaryFromReader);
|
|
7469
7878
|
msg.setLoop(value);
|
|
7470
7879
|
break;
|
|
7880
|
+
case 30:
|
|
7881
|
+
var value = new proto.aggregator.BalanceNode.Output();
|
|
7882
|
+
reader.readMessage(value, proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader);
|
|
7883
|
+
msg.setBalance(value);
|
|
7884
|
+
break;
|
|
7471
7885
|
case 14:
|
|
7472
7886
|
var value = (
|
|
7473
7887
|
/** @type {number} */
|
|
@@ -7709,6 +8123,14 @@ var require_avs_pb = __commonJS({
|
|
|
7709
8123
|
proto.aggregator.LoopNode.Output.serializeBinaryToWriter
|
|
7710
8124
|
);
|
|
7711
8125
|
}
|
|
8126
|
+
f = message.getBalance();
|
|
8127
|
+
if (f != null) {
|
|
8128
|
+
writer.writeMessage(
|
|
8129
|
+
30,
|
|
8130
|
+
f,
|
|
8131
|
+
proto.aggregator.BalanceNode.Output.serializeBinaryToWriter
|
|
8132
|
+
);
|
|
8133
|
+
}
|
|
7712
8134
|
f = message.getStartAt();
|
|
7713
8135
|
if (f !== 0) {
|
|
7714
8136
|
writer.writeInt64(
|
|
@@ -8084,6 +8506,21 @@ var require_avs_pb = __commonJS({
|
|
|
8084
8506
|
proto.aggregator.Execution.Step.prototype.hasLoop = function() {
|
|
8085
8507
|
return jspb.Message.getField(this, 11) != null;
|
|
8086
8508
|
};
|
|
8509
|
+
proto.aggregator.Execution.Step.prototype.getBalance = function() {
|
|
8510
|
+
return (
|
|
8511
|
+
/** @type{?proto.aggregator.BalanceNode.Output} */
|
|
8512
|
+
jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode.Output, 30)
|
|
8513
|
+
);
|
|
8514
|
+
};
|
|
8515
|
+
proto.aggregator.Execution.Step.prototype.setBalance = function(value) {
|
|
8516
|
+
return jspb.Message.setOneofWrapperField(this, 30, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
8517
|
+
};
|
|
8518
|
+
proto.aggregator.Execution.Step.prototype.clearBalance = function() {
|
|
8519
|
+
return this.setBalance(void 0);
|
|
8520
|
+
};
|
|
8521
|
+
proto.aggregator.Execution.Step.prototype.hasBalance = function() {
|
|
8522
|
+
return jspb.Message.getField(this, 30) != null;
|
|
8523
|
+
};
|
|
8087
8524
|
proto.aggregator.Execution.Step.prototype.getStartAt = function() {
|
|
8088
8525
|
return (
|
|
8089
8526
|
/** @type {number} */
|
|
@@ -14269,7 +14706,7 @@ var require_avs_pb = __commonJS({
|
|
|
14269
14706
|
this.getInputVariablesMap().clear();
|
|
14270
14707
|
return this;
|
|
14271
14708
|
};
|
|
14272
|
-
proto.aggregator.RunNodeWithInputsResp.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18]];
|
|
14709
|
+
proto.aggregator.RunNodeWithInputsResp.oneofGroups_ = [[10, 11, 12, 13, 14, 15, 16, 17, 18, 19]];
|
|
14273
14710
|
proto.aggregator.RunNodeWithInputsResp.OutputDataCase = {
|
|
14274
14711
|
OUTPUT_DATA_NOT_SET: 0,
|
|
14275
14712
|
ETH_TRANSFER: 10,
|
|
@@ -14280,7 +14717,8 @@ var require_avs_pb = __commonJS({
|
|
|
14280
14717
|
REST_API: 15,
|
|
14281
14718
|
BRANCH: 16,
|
|
14282
14719
|
FILTER: 17,
|
|
14283
|
-
LOOP: 18
|
|
14720
|
+
LOOP: 18,
|
|
14721
|
+
BALANCE: 19
|
|
14284
14722
|
};
|
|
14285
14723
|
proto.aggregator.RunNodeWithInputsResp.prototype.getOutputDataCase = function() {
|
|
14286
14724
|
return (
|
|
@@ -14307,7 +14745,8 @@ var require_avs_pb = __commonJS({
|
|
|
14307
14745
|
restApi: (f = msg.getRestApi()) && proto.aggregator.RestAPINode.Output.toObject(includeInstance, f),
|
|
14308
14746
|
branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.Output.toObject(includeInstance, f),
|
|
14309
14747
|
filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.Output.toObject(includeInstance, f),
|
|
14310
|
-
loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f)
|
|
14748
|
+
loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f),
|
|
14749
|
+
balance: (f = msg.getBalance()) && proto.aggregator.BalanceNode.Output.toObject(includeInstance, f)
|
|
14311
14750
|
};
|
|
14312
14751
|
if (includeInstance) {
|
|
14313
14752
|
obj.$jspbMessageInstance = msg;
|
|
@@ -14403,6 +14842,11 @@ var require_avs_pb = __commonJS({
|
|
|
14403
14842
|
reader.readMessage(value, proto.aggregator.LoopNode.Output.deserializeBinaryFromReader);
|
|
14404
14843
|
msg.setLoop(value);
|
|
14405
14844
|
break;
|
|
14845
|
+
case 19:
|
|
14846
|
+
var value = new proto.aggregator.BalanceNode.Output();
|
|
14847
|
+
reader.readMessage(value, proto.aggregator.BalanceNode.Output.deserializeBinaryFromReader);
|
|
14848
|
+
msg.setBalance(value);
|
|
14849
|
+
break;
|
|
14406
14850
|
default:
|
|
14407
14851
|
reader.skipField();
|
|
14408
14852
|
break;
|
|
@@ -14526,6 +14970,14 @@ var require_avs_pb = __commonJS({
|
|
|
14526
14970
|
proto.aggregator.LoopNode.Output.serializeBinaryToWriter
|
|
14527
14971
|
);
|
|
14528
14972
|
}
|
|
14973
|
+
f = message.getBalance();
|
|
14974
|
+
if (f != null) {
|
|
14975
|
+
writer.writeMessage(
|
|
14976
|
+
19,
|
|
14977
|
+
f,
|
|
14978
|
+
proto.aggregator.BalanceNode.Output.serializeBinaryToWriter
|
|
14979
|
+
);
|
|
14980
|
+
}
|
|
14529
14981
|
};
|
|
14530
14982
|
proto.aggregator.RunNodeWithInputsResp.prototype.getSuccess = function() {
|
|
14531
14983
|
return (
|
|
@@ -14719,6 +15171,21 @@ var require_avs_pb = __commonJS({
|
|
|
14719
15171
|
proto.aggregator.RunNodeWithInputsResp.prototype.hasLoop = function() {
|
|
14720
15172
|
return jspb.Message.getField(this, 18) != null;
|
|
14721
15173
|
};
|
|
15174
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.getBalance = function() {
|
|
15175
|
+
return (
|
|
15176
|
+
/** @type{?proto.aggregator.BalanceNode.Output} */
|
|
15177
|
+
jspb.Message.getWrapperField(this, proto.aggregator.BalanceNode.Output, 19)
|
|
15178
|
+
);
|
|
15179
|
+
};
|
|
15180
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.setBalance = function(value) {
|
|
15181
|
+
return jspb.Message.setOneofWrapperField(this, 19, proto.aggregator.RunNodeWithInputsResp.oneofGroups_[0], value);
|
|
15182
|
+
};
|
|
15183
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.clearBalance = function() {
|
|
15184
|
+
return this.setBalance(void 0);
|
|
15185
|
+
};
|
|
15186
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.hasBalance = function() {
|
|
15187
|
+
return jspb.Message.getField(this, 19) != null;
|
|
15188
|
+
};
|
|
14722
15189
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14723
15190
|
proto.aggregator.RunTriggerReq.prototype.toObject = function(opt_includeInstance) {
|
|
14724
15191
|
return proto.aggregator.RunTriggerReq.toObject(opt_includeInstance, this);
|
|
@@ -17297,14 +17764,19 @@ var require_avs_pb = __commonJS({
|
|
|
17297
17764
|
NODE_TYPE_CUSTOM_CODE: 6,
|
|
17298
17765
|
NODE_TYPE_BRANCH: 7,
|
|
17299
17766
|
NODE_TYPE_FILTER: 8,
|
|
17300
|
-
NODE_TYPE_LOOP: 9
|
|
17767
|
+
NODE_TYPE_LOOP: 9,
|
|
17768
|
+
NODE_TYPE_BALANCE: 10
|
|
17301
17769
|
};
|
|
17302
17770
|
proto.aggregator.ExecutionMode = {
|
|
17303
17771
|
EXECUTION_MODE_SEQUENTIAL: 0,
|
|
17304
17772
|
EXECUTION_MODE_PARALLEL: 1
|
|
17305
17773
|
};
|
|
17306
17774
|
proto.aggregator.Lang = {
|
|
17307
|
-
|
|
17775
|
+
LANG_UNSPECIFIED: 0,
|
|
17776
|
+
LANG_JAVASCRIPT: 1,
|
|
17777
|
+
LANG_JSON: 2,
|
|
17778
|
+
LANG_GRAPHQL: 3,
|
|
17779
|
+
LANG_HANDLEBARS: 4
|
|
17308
17780
|
};
|
|
17309
17781
|
proto.aggregator.ErrorCode = {
|
|
17310
17782
|
ERROR_CODE_UNSPECIFIED: 0,
|
|
@@ -17370,457 +17842,457 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17370
17842
|
"../../grpc_codegen/avs_grpc_pb.js"(exports2) {
|
|
17371
17843
|
"use strict";
|
|
17372
17844
|
var grpc = require("@grpc/grpc-js");
|
|
17373
|
-
var
|
|
17845
|
+
var avs_pb25 = require_avs_pb();
|
|
17374
17846
|
var google_protobuf_struct_pb5 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
17375
17847
|
function serialize_aggregator_CancelTaskResp(arg) {
|
|
17376
|
-
if (!(arg instanceof
|
|
17848
|
+
if (!(arg instanceof avs_pb25.CancelTaskResp)) {
|
|
17377
17849
|
throw new Error("Expected argument of type aggregator.CancelTaskResp");
|
|
17378
17850
|
}
|
|
17379
17851
|
return Buffer.from(arg.serializeBinary());
|
|
17380
17852
|
}
|
|
17381
17853
|
function deserialize_aggregator_CancelTaskResp(buffer_arg) {
|
|
17382
|
-
return
|
|
17854
|
+
return avs_pb25.CancelTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17383
17855
|
}
|
|
17384
17856
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
17385
|
-
if (!(arg instanceof
|
|
17857
|
+
if (!(arg instanceof avs_pb25.CreateOrUpdateSecretReq)) {
|
|
17386
17858
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
17387
17859
|
}
|
|
17388
17860
|
return Buffer.from(arg.serializeBinary());
|
|
17389
17861
|
}
|
|
17390
17862
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
17391
|
-
return
|
|
17863
|
+
return avs_pb25.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17392
17864
|
}
|
|
17393
17865
|
function serialize_aggregator_CreateSecretResp(arg) {
|
|
17394
|
-
if (!(arg instanceof
|
|
17866
|
+
if (!(arg instanceof avs_pb25.CreateSecretResp)) {
|
|
17395
17867
|
throw new Error("Expected argument of type aggregator.CreateSecretResp");
|
|
17396
17868
|
}
|
|
17397
17869
|
return Buffer.from(arg.serializeBinary());
|
|
17398
17870
|
}
|
|
17399
17871
|
function deserialize_aggregator_CreateSecretResp(buffer_arg) {
|
|
17400
|
-
return
|
|
17872
|
+
return avs_pb25.CreateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17401
17873
|
}
|
|
17402
17874
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
17403
|
-
if (!(arg instanceof
|
|
17875
|
+
if (!(arg instanceof avs_pb25.CreateTaskReq)) {
|
|
17404
17876
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
17405
17877
|
}
|
|
17406
17878
|
return Buffer.from(arg.serializeBinary());
|
|
17407
17879
|
}
|
|
17408
17880
|
function deserialize_aggregator_CreateTaskReq(buffer_arg) {
|
|
17409
|
-
return
|
|
17881
|
+
return avs_pb25.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17410
17882
|
}
|
|
17411
17883
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
17412
|
-
if (!(arg instanceof
|
|
17884
|
+
if (!(arg instanceof avs_pb25.CreateTaskResp)) {
|
|
17413
17885
|
throw new Error("Expected argument of type aggregator.CreateTaskResp");
|
|
17414
17886
|
}
|
|
17415
17887
|
return Buffer.from(arg.serializeBinary());
|
|
17416
17888
|
}
|
|
17417
17889
|
function deserialize_aggregator_CreateTaskResp(buffer_arg) {
|
|
17418
|
-
return
|
|
17890
|
+
return avs_pb25.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17419
17891
|
}
|
|
17420
17892
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
17421
|
-
if (!(arg instanceof
|
|
17893
|
+
if (!(arg instanceof avs_pb25.DeleteSecretReq)) {
|
|
17422
17894
|
throw new Error("Expected argument of type aggregator.DeleteSecretReq");
|
|
17423
17895
|
}
|
|
17424
17896
|
return Buffer.from(arg.serializeBinary());
|
|
17425
17897
|
}
|
|
17426
17898
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
17427
|
-
return
|
|
17899
|
+
return avs_pb25.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17428
17900
|
}
|
|
17429
17901
|
function serialize_aggregator_DeleteSecretResp(arg) {
|
|
17430
|
-
if (!(arg instanceof
|
|
17902
|
+
if (!(arg instanceof avs_pb25.DeleteSecretResp)) {
|
|
17431
17903
|
throw new Error("Expected argument of type aggregator.DeleteSecretResp");
|
|
17432
17904
|
}
|
|
17433
17905
|
return Buffer.from(arg.serializeBinary());
|
|
17434
17906
|
}
|
|
17435
17907
|
function deserialize_aggregator_DeleteSecretResp(buffer_arg) {
|
|
17436
|
-
return
|
|
17908
|
+
return avs_pb25.DeleteSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17437
17909
|
}
|
|
17438
17910
|
function serialize_aggregator_DeleteTaskResp(arg) {
|
|
17439
|
-
if (!(arg instanceof
|
|
17911
|
+
if (!(arg instanceof avs_pb25.DeleteTaskResp)) {
|
|
17440
17912
|
throw new Error("Expected argument of type aggregator.DeleteTaskResp");
|
|
17441
17913
|
}
|
|
17442
17914
|
return Buffer.from(arg.serializeBinary());
|
|
17443
17915
|
}
|
|
17444
17916
|
function deserialize_aggregator_DeleteTaskResp(buffer_arg) {
|
|
17445
|
-
return
|
|
17917
|
+
return avs_pb25.DeleteTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17446
17918
|
}
|
|
17447
17919
|
function serialize_aggregator_EstimateFeesReq(arg) {
|
|
17448
|
-
if (!(arg instanceof
|
|
17920
|
+
if (!(arg instanceof avs_pb25.EstimateFeesReq)) {
|
|
17449
17921
|
throw new Error("Expected argument of type aggregator.EstimateFeesReq");
|
|
17450
17922
|
}
|
|
17451
17923
|
return Buffer.from(arg.serializeBinary());
|
|
17452
17924
|
}
|
|
17453
17925
|
function deserialize_aggregator_EstimateFeesReq(buffer_arg) {
|
|
17454
|
-
return
|
|
17926
|
+
return avs_pb25.EstimateFeesReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17455
17927
|
}
|
|
17456
17928
|
function serialize_aggregator_EstimateFeesResp(arg) {
|
|
17457
|
-
if (!(arg instanceof
|
|
17929
|
+
if (!(arg instanceof avs_pb25.EstimateFeesResp)) {
|
|
17458
17930
|
throw new Error("Expected argument of type aggregator.EstimateFeesResp");
|
|
17459
17931
|
}
|
|
17460
17932
|
return Buffer.from(arg.serializeBinary());
|
|
17461
17933
|
}
|
|
17462
17934
|
function deserialize_aggregator_EstimateFeesResp(buffer_arg) {
|
|
17463
|
-
return
|
|
17935
|
+
return avs_pb25.EstimateFeesResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17464
17936
|
}
|
|
17465
17937
|
function serialize_aggregator_Execution(arg) {
|
|
17466
|
-
if (!(arg instanceof
|
|
17938
|
+
if (!(arg instanceof avs_pb25.Execution)) {
|
|
17467
17939
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
17468
17940
|
}
|
|
17469
17941
|
return Buffer.from(arg.serializeBinary());
|
|
17470
17942
|
}
|
|
17471
17943
|
function deserialize_aggregator_Execution(buffer_arg) {
|
|
17472
|
-
return
|
|
17944
|
+
return avs_pb25.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17473
17945
|
}
|
|
17474
17946
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
17475
|
-
if (!(arg instanceof
|
|
17947
|
+
if (!(arg instanceof avs_pb25.ExecutionReq)) {
|
|
17476
17948
|
throw new Error("Expected argument of type aggregator.ExecutionReq");
|
|
17477
17949
|
}
|
|
17478
17950
|
return Buffer.from(arg.serializeBinary());
|
|
17479
17951
|
}
|
|
17480
17952
|
function deserialize_aggregator_ExecutionReq(buffer_arg) {
|
|
17481
|
-
return
|
|
17953
|
+
return avs_pb25.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17482
17954
|
}
|
|
17483
17955
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
17484
|
-
if (!(arg instanceof
|
|
17956
|
+
if (!(arg instanceof avs_pb25.ExecutionStatusResp)) {
|
|
17485
17957
|
throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
|
|
17486
17958
|
}
|
|
17487
17959
|
return Buffer.from(arg.serializeBinary());
|
|
17488
17960
|
}
|
|
17489
17961
|
function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
|
|
17490
|
-
return
|
|
17962
|
+
return avs_pb25.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17491
17963
|
}
|
|
17492
17964
|
function serialize_aggregator_GetExecutionCountReq(arg) {
|
|
17493
|
-
if (!(arg instanceof
|
|
17965
|
+
if (!(arg instanceof avs_pb25.GetExecutionCountReq)) {
|
|
17494
17966
|
throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
|
|
17495
17967
|
}
|
|
17496
17968
|
return Buffer.from(arg.serializeBinary());
|
|
17497
17969
|
}
|
|
17498
17970
|
function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
|
|
17499
|
-
return
|
|
17971
|
+
return avs_pb25.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17500
17972
|
}
|
|
17501
17973
|
function serialize_aggregator_GetExecutionCountResp(arg) {
|
|
17502
|
-
if (!(arg instanceof
|
|
17974
|
+
if (!(arg instanceof avs_pb25.GetExecutionCountResp)) {
|
|
17503
17975
|
throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
|
|
17504
17976
|
}
|
|
17505
17977
|
return Buffer.from(arg.serializeBinary());
|
|
17506
17978
|
}
|
|
17507
17979
|
function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
|
|
17508
|
-
return
|
|
17980
|
+
return avs_pb25.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17509
17981
|
}
|
|
17510
17982
|
function serialize_aggregator_GetExecutionStatsReq(arg) {
|
|
17511
|
-
if (!(arg instanceof
|
|
17983
|
+
if (!(arg instanceof avs_pb25.GetExecutionStatsReq)) {
|
|
17512
17984
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
|
|
17513
17985
|
}
|
|
17514
17986
|
return Buffer.from(arg.serializeBinary());
|
|
17515
17987
|
}
|
|
17516
17988
|
function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
|
|
17517
|
-
return
|
|
17989
|
+
return avs_pb25.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17518
17990
|
}
|
|
17519
17991
|
function serialize_aggregator_GetExecutionStatsResp(arg) {
|
|
17520
|
-
if (!(arg instanceof
|
|
17992
|
+
if (!(arg instanceof avs_pb25.GetExecutionStatsResp)) {
|
|
17521
17993
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
|
|
17522
17994
|
}
|
|
17523
17995
|
return Buffer.from(arg.serializeBinary());
|
|
17524
17996
|
}
|
|
17525
17997
|
function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
|
|
17526
|
-
return
|
|
17998
|
+
return avs_pb25.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17527
17999
|
}
|
|
17528
18000
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
17529
|
-
if (!(arg instanceof
|
|
18001
|
+
if (!(arg instanceof avs_pb25.GetKeyReq)) {
|
|
17530
18002
|
throw new Error("Expected argument of type aggregator.GetKeyReq");
|
|
17531
18003
|
}
|
|
17532
18004
|
return Buffer.from(arg.serializeBinary());
|
|
17533
18005
|
}
|
|
17534
18006
|
function deserialize_aggregator_GetKeyReq(buffer_arg) {
|
|
17535
|
-
return
|
|
18007
|
+
return avs_pb25.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17536
18008
|
}
|
|
17537
18009
|
function serialize_aggregator_GetSignatureFormatReq(arg) {
|
|
17538
|
-
if (!(arg instanceof
|
|
18010
|
+
if (!(arg instanceof avs_pb25.GetSignatureFormatReq)) {
|
|
17539
18011
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
|
|
17540
18012
|
}
|
|
17541
18013
|
return Buffer.from(arg.serializeBinary());
|
|
17542
18014
|
}
|
|
17543
18015
|
function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
|
|
17544
|
-
return
|
|
18016
|
+
return avs_pb25.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17545
18017
|
}
|
|
17546
18018
|
function serialize_aggregator_GetSignatureFormatResp(arg) {
|
|
17547
|
-
if (!(arg instanceof
|
|
18019
|
+
if (!(arg instanceof avs_pb25.GetSignatureFormatResp)) {
|
|
17548
18020
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
|
|
17549
18021
|
}
|
|
17550
18022
|
return Buffer.from(arg.serializeBinary());
|
|
17551
18023
|
}
|
|
17552
18024
|
function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
|
|
17553
|
-
return
|
|
18025
|
+
return avs_pb25.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17554
18026
|
}
|
|
17555
18027
|
function serialize_aggregator_GetTokenMetadataReq(arg) {
|
|
17556
|
-
if (!(arg instanceof
|
|
18028
|
+
if (!(arg instanceof avs_pb25.GetTokenMetadataReq)) {
|
|
17557
18029
|
throw new Error("Expected argument of type aggregator.GetTokenMetadataReq");
|
|
17558
18030
|
}
|
|
17559
18031
|
return Buffer.from(arg.serializeBinary());
|
|
17560
18032
|
}
|
|
17561
18033
|
function deserialize_aggregator_GetTokenMetadataReq(buffer_arg) {
|
|
17562
|
-
return
|
|
18034
|
+
return avs_pb25.GetTokenMetadataReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17563
18035
|
}
|
|
17564
18036
|
function serialize_aggregator_GetTokenMetadataResp(arg) {
|
|
17565
|
-
if (!(arg instanceof
|
|
18037
|
+
if (!(arg instanceof avs_pb25.GetTokenMetadataResp)) {
|
|
17566
18038
|
throw new Error("Expected argument of type aggregator.GetTokenMetadataResp");
|
|
17567
18039
|
}
|
|
17568
18040
|
return Buffer.from(arg.serializeBinary());
|
|
17569
18041
|
}
|
|
17570
18042
|
function deserialize_aggregator_GetTokenMetadataResp(buffer_arg) {
|
|
17571
|
-
return
|
|
18043
|
+
return avs_pb25.GetTokenMetadataResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17572
18044
|
}
|
|
17573
18045
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
17574
|
-
if (!(arg instanceof
|
|
18046
|
+
if (!(arg instanceof avs_pb25.GetWalletReq)) {
|
|
17575
18047
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
17576
18048
|
}
|
|
17577
18049
|
return Buffer.from(arg.serializeBinary());
|
|
17578
18050
|
}
|
|
17579
18051
|
function deserialize_aggregator_GetWalletReq(buffer_arg) {
|
|
17580
|
-
return
|
|
18052
|
+
return avs_pb25.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17581
18053
|
}
|
|
17582
18054
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
17583
|
-
if (!(arg instanceof
|
|
18055
|
+
if (!(arg instanceof avs_pb25.GetWalletResp)) {
|
|
17584
18056
|
throw new Error("Expected argument of type aggregator.GetWalletResp");
|
|
17585
18057
|
}
|
|
17586
18058
|
return Buffer.from(arg.serializeBinary());
|
|
17587
18059
|
}
|
|
17588
18060
|
function deserialize_aggregator_GetWalletResp(buffer_arg) {
|
|
17589
|
-
return
|
|
18061
|
+
return avs_pb25.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17590
18062
|
}
|
|
17591
18063
|
function serialize_aggregator_GetWorkflowCountReq(arg) {
|
|
17592
|
-
if (!(arg instanceof
|
|
18064
|
+
if (!(arg instanceof avs_pb25.GetWorkflowCountReq)) {
|
|
17593
18065
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
|
|
17594
18066
|
}
|
|
17595
18067
|
return Buffer.from(arg.serializeBinary());
|
|
17596
18068
|
}
|
|
17597
18069
|
function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
|
|
17598
|
-
return
|
|
18070
|
+
return avs_pb25.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17599
18071
|
}
|
|
17600
18072
|
function serialize_aggregator_GetWorkflowCountResp(arg) {
|
|
17601
|
-
if (!(arg instanceof
|
|
18073
|
+
if (!(arg instanceof avs_pb25.GetWorkflowCountResp)) {
|
|
17602
18074
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
|
|
17603
18075
|
}
|
|
17604
18076
|
return Buffer.from(arg.serializeBinary());
|
|
17605
18077
|
}
|
|
17606
18078
|
function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
|
|
17607
|
-
return
|
|
18079
|
+
return avs_pb25.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17608
18080
|
}
|
|
17609
18081
|
function serialize_aggregator_IdReq(arg) {
|
|
17610
|
-
if (!(arg instanceof
|
|
18082
|
+
if (!(arg instanceof avs_pb25.IdReq)) {
|
|
17611
18083
|
throw new Error("Expected argument of type aggregator.IdReq");
|
|
17612
18084
|
}
|
|
17613
18085
|
return Buffer.from(arg.serializeBinary());
|
|
17614
18086
|
}
|
|
17615
18087
|
function deserialize_aggregator_IdReq(buffer_arg) {
|
|
17616
|
-
return
|
|
18088
|
+
return avs_pb25.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17617
18089
|
}
|
|
17618
18090
|
function serialize_aggregator_KeyResp(arg) {
|
|
17619
|
-
if (!(arg instanceof
|
|
18091
|
+
if (!(arg instanceof avs_pb25.KeyResp)) {
|
|
17620
18092
|
throw new Error("Expected argument of type aggregator.KeyResp");
|
|
17621
18093
|
}
|
|
17622
18094
|
return Buffer.from(arg.serializeBinary());
|
|
17623
18095
|
}
|
|
17624
18096
|
function deserialize_aggregator_KeyResp(buffer_arg) {
|
|
17625
|
-
return
|
|
18097
|
+
return avs_pb25.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17626
18098
|
}
|
|
17627
18099
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
17628
|
-
if (!(arg instanceof
|
|
18100
|
+
if (!(arg instanceof avs_pb25.ListExecutionsReq)) {
|
|
17629
18101
|
throw new Error("Expected argument of type aggregator.ListExecutionsReq");
|
|
17630
18102
|
}
|
|
17631
18103
|
return Buffer.from(arg.serializeBinary());
|
|
17632
18104
|
}
|
|
17633
18105
|
function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
|
|
17634
|
-
return
|
|
18106
|
+
return avs_pb25.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17635
18107
|
}
|
|
17636
18108
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
17637
|
-
if (!(arg instanceof
|
|
18109
|
+
if (!(arg instanceof avs_pb25.ListExecutionsResp)) {
|
|
17638
18110
|
throw new Error("Expected argument of type aggregator.ListExecutionsResp");
|
|
17639
18111
|
}
|
|
17640
18112
|
return Buffer.from(arg.serializeBinary());
|
|
17641
18113
|
}
|
|
17642
18114
|
function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
|
|
17643
|
-
return
|
|
18115
|
+
return avs_pb25.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17644
18116
|
}
|
|
17645
18117
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
17646
|
-
if (!(arg instanceof
|
|
18118
|
+
if (!(arg instanceof avs_pb25.ListSecretsReq)) {
|
|
17647
18119
|
throw new Error("Expected argument of type aggregator.ListSecretsReq");
|
|
17648
18120
|
}
|
|
17649
18121
|
return Buffer.from(arg.serializeBinary());
|
|
17650
18122
|
}
|
|
17651
18123
|
function deserialize_aggregator_ListSecretsReq(buffer_arg) {
|
|
17652
|
-
return
|
|
18124
|
+
return avs_pb25.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17653
18125
|
}
|
|
17654
18126
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
17655
|
-
if (!(arg instanceof
|
|
18127
|
+
if (!(arg instanceof avs_pb25.ListSecretsResp)) {
|
|
17656
18128
|
throw new Error("Expected argument of type aggregator.ListSecretsResp");
|
|
17657
18129
|
}
|
|
17658
18130
|
return Buffer.from(arg.serializeBinary());
|
|
17659
18131
|
}
|
|
17660
18132
|
function deserialize_aggregator_ListSecretsResp(buffer_arg) {
|
|
17661
|
-
return
|
|
18133
|
+
return avs_pb25.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17662
18134
|
}
|
|
17663
18135
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
17664
|
-
if (!(arg instanceof
|
|
18136
|
+
if (!(arg instanceof avs_pb25.ListTasksReq)) {
|
|
17665
18137
|
throw new Error("Expected argument of type aggregator.ListTasksReq");
|
|
17666
18138
|
}
|
|
17667
18139
|
return Buffer.from(arg.serializeBinary());
|
|
17668
18140
|
}
|
|
17669
18141
|
function deserialize_aggregator_ListTasksReq(buffer_arg) {
|
|
17670
|
-
return
|
|
18142
|
+
return avs_pb25.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17671
18143
|
}
|
|
17672
18144
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
17673
|
-
if (!(arg instanceof
|
|
18145
|
+
if (!(arg instanceof avs_pb25.ListTasksResp)) {
|
|
17674
18146
|
throw new Error("Expected argument of type aggregator.ListTasksResp");
|
|
17675
18147
|
}
|
|
17676
18148
|
return Buffer.from(arg.serializeBinary());
|
|
17677
18149
|
}
|
|
17678
18150
|
function deserialize_aggregator_ListTasksResp(buffer_arg) {
|
|
17679
|
-
return
|
|
18151
|
+
return avs_pb25.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17680
18152
|
}
|
|
17681
18153
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
17682
|
-
if (!(arg instanceof
|
|
18154
|
+
if (!(arg instanceof avs_pb25.ListWalletReq)) {
|
|
17683
18155
|
throw new Error("Expected argument of type aggregator.ListWalletReq");
|
|
17684
18156
|
}
|
|
17685
18157
|
return Buffer.from(arg.serializeBinary());
|
|
17686
18158
|
}
|
|
17687
18159
|
function deserialize_aggregator_ListWalletReq(buffer_arg) {
|
|
17688
|
-
return
|
|
18160
|
+
return avs_pb25.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17689
18161
|
}
|
|
17690
18162
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
17691
|
-
if (!(arg instanceof
|
|
18163
|
+
if (!(arg instanceof avs_pb25.ListWalletResp)) {
|
|
17692
18164
|
throw new Error("Expected argument of type aggregator.ListWalletResp");
|
|
17693
18165
|
}
|
|
17694
18166
|
return Buffer.from(arg.serializeBinary());
|
|
17695
18167
|
}
|
|
17696
18168
|
function deserialize_aggregator_ListWalletResp(buffer_arg) {
|
|
17697
|
-
return
|
|
18169
|
+
return avs_pb25.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17698
18170
|
}
|
|
17699
18171
|
function serialize_aggregator_NonceRequest(arg) {
|
|
17700
|
-
if (!(arg instanceof
|
|
18172
|
+
if (!(arg instanceof avs_pb25.NonceRequest)) {
|
|
17701
18173
|
throw new Error("Expected argument of type aggregator.NonceRequest");
|
|
17702
18174
|
}
|
|
17703
18175
|
return Buffer.from(arg.serializeBinary());
|
|
17704
18176
|
}
|
|
17705
18177
|
function deserialize_aggregator_NonceRequest(buffer_arg) {
|
|
17706
|
-
return
|
|
18178
|
+
return avs_pb25.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17707
18179
|
}
|
|
17708
18180
|
function serialize_aggregator_NonceResp(arg) {
|
|
17709
|
-
if (!(arg instanceof
|
|
18181
|
+
if (!(arg instanceof avs_pb25.NonceResp)) {
|
|
17710
18182
|
throw new Error("Expected argument of type aggregator.NonceResp");
|
|
17711
18183
|
}
|
|
17712
18184
|
return Buffer.from(arg.serializeBinary());
|
|
17713
18185
|
}
|
|
17714
18186
|
function deserialize_aggregator_NonceResp(buffer_arg) {
|
|
17715
|
-
return
|
|
18187
|
+
return avs_pb25.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17716
18188
|
}
|
|
17717
18189
|
function serialize_aggregator_RunNodeWithInputsReq(arg) {
|
|
17718
|
-
if (!(arg instanceof
|
|
18190
|
+
if (!(arg instanceof avs_pb25.RunNodeWithInputsReq)) {
|
|
17719
18191
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsReq");
|
|
17720
18192
|
}
|
|
17721
18193
|
return Buffer.from(arg.serializeBinary());
|
|
17722
18194
|
}
|
|
17723
18195
|
function deserialize_aggregator_RunNodeWithInputsReq(buffer_arg) {
|
|
17724
|
-
return
|
|
18196
|
+
return avs_pb25.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17725
18197
|
}
|
|
17726
18198
|
function serialize_aggregator_RunNodeWithInputsResp(arg) {
|
|
17727
|
-
if (!(arg instanceof
|
|
18199
|
+
if (!(arg instanceof avs_pb25.RunNodeWithInputsResp)) {
|
|
17728
18200
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsResp");
|
|
17729
18201
|
}
|
|
17730
18202
|
return Buffer.from(arg.serializeBinary());
|
|
17731
18203
|
}
|
|
17732
18204
|
function deserialize_aggregator_RunNodeWithInputsResp(buffer_arg) {
|
|
17733
|
-
return
|
|
18205
|
+
return avs_pb25.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17734
18206
|
}
|
|
17735
18207
|
function serialize_aggregator_RunTriggerReq(arg) {
|
|
17736
|
-
if (!(arg instanceof
|
|
18208
|
+
if (!(arg instanceof avs_pb25.RunTriggerReq)) {
|
|
17737
18209
|
throw new Error("Expected argument of type aggregator.RunTriggerReq");
|
|
17738
18210
|
}
|
|
17739
18211
|
return Buffer.from(arg.serializeBinary());
|
|
17740
18212
|
}
|
|
17741
18213
|
function deserialize_aggregator_RunTriggerReq(buffer_arg) {
|
|
17742
|
-
return
|
|
18214
|
+
return avs_pb25.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17743
18215
|
}
|
|
17744
18216
|
function serialize_aggregator_RunTriggerResp(arg) {
|
|
17745
|
-
if (!(arg instanceof
|
|
18217
|
+
if (!(arg instanceof avs_pb25.RunTriggerResp)) {
|
|
17746
18218
|
throw new Error("Expected argument of type aggregator.RunTriggerResp");
|
|
17747
18219
|
}
|
|
17748
18220
|
return Buffer.from(arg.serializeBinary());
|
|
17749
18221
|
}
|
|
17750
18222
|
function deserialize_aggregator_RunTriggerResp(buffer_arg) {
|
|
17751
|
-
return
|
|
18223
|
+
return avs_pb25.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17752
18224
|
}
|
|
17753
18225
|
function serialize_aggregator_SetWalletReq(arg) {
|
|
17754
|
-
if (!(arg instanceof
|
|
18226
|
+
if (!(arg instanceof avs_pb25.SetWalletReq)) {
|
|
17755
18227
|
throw new Error("Expected argument of type aggregator.SetWalletReq");
|
|
17756
18228
|
}
|
|
17757
18229
|
return Buffer.from(arg.serializeBinary());
|
|
17758
18230
|
}
|
|
17759
18231
|
function deserialize_aggregator_SetWalletReq(buffer_arg) {
|
|
17760
|
-
return
|
|
18232
|
+
return avs_pb25.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17761
18233
|
}
|
|
17762
18234
|
function serialize_aggregator_SimulateTaskReq(arg) {
|
|
17763
|
-
if (!(arg instanceof
|
|
18235
|
+
if (!(arg instanceof avs_pb25.SimulateTaskReq)) {
|
|
17764
18236
|
throw new Error("Expected argument of type aggregator.SimulateTaskReq");
|
|
17765
18237
|
}
|
|
17766
18238
|
return Buffer.from(arg.serializeBinary());
|
|
17767
18239
|
}
|
|
17768
18240
|
function deserialize_aggregator_SimulateTaskReq(buffer_arg) {
|
|
17769
|
-
return
|
|
18241
|
+
return avs_pb25.SimulateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17770
18242
|
}
|
|
17771
18243
|
function serialize_aggregator_Task(arg) {
|
|
17772
|
-
if (!(arg instanceof
|
|
18244
|
+
if (!(arg instanceof avs_pb25.Task)) {
|
|
17773
18245
|
throw new Error("Expected argument of type aggregator.Task");
|
|
17774
18246
|
}
|
|
17775
18247
|
return Buffer.from(arg.serializeBinary());
|
|
17776
18248
|
}
|
|
17777
18249
|
function deserialize_aggregator_Task(buffer_arg) {
|
|
17778
|
-
return
|
|
18250
|
+
return avs_pb25.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17779
18251
|
}
|
|
17780
18252
|
function serialize_aggregator_TriggerTaskReq(arg) {
|
|
17781
|
-
if (!(arg instanceof
|
|
18253
|
+
if (!(arg instanceof avs_pb25.TriggerTaskReq)) {
|
|
17782
18254
|
throw new Error("Expected argument of type aggregator.TriggerTaskReq");
|
|
17783
18255
|
}
|
|
17784
18256
|
return Buffer.from(arg.serializeBinary());
|
|
17785
18257
|
}
|
|
17786
18258
|
function deserialize_aggregator_TriggerTaskReq(buffer_arg) {
|
|
17787
|
-
return
|
|
18259
|
+
return avs_pb25.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17788
18260
|
}
|
|
17789
18261
|
function serialize_aggregator_TriggerTaskResp(arg) {
|
|
17790
|
-
if (!(arg instanceof
|
|
18262
|
+
if (!(arg instanceof avs_pb25.TriggerTaskResp)) {
|
|
17791
18263
|
throw new Error("Expected argument of type aggregator.TriggerTaskResp");
|
|
17792
18264
|
}
|
|
17793
18265
|
return Buffer.from(arg.serializeBinary());
|
|
17794
18266
|
}
|
|
17795
18267
|
function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
|
|
17796
|
-
return
|
|
18268
|
+
return avs_pb25.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17797
18269
|
}
|
|
17798
18270
|
function serialize_aggregator_UpdateSecretResp(arg) {
|
|
17799
|
-
if (!(arg instanceof
|
|
18271
|
+
if (!(arg instanceof avs_pb25.UpdateSecretResp)) {
|
|
17800
18272
|
throw new Error("Expected argument of type aggregator.UpdateSecretResp");
|
|
17801
18273
|
}
|
|
17802
18274
|
return Buffer.from(arg.serializeBinary());
|
|
17803
18275
|
}
|
|
17804
18276
|
function deserialize_aggregator_UpdateSecretResp(buffer_arg) {
|
|
17805
|
-
return
|
|
18277
|
+
return avs_pb25.UpdateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17806
18278
|
}
|
|
17807
18279
|
function serialize_aggregator_WithdrawFundsReq(arg) {
|
|
17808
|
-
if (!(arg instanceof
|
|
18280
|
+
if (!(arg instanceof avs_pb25.WithdrawFundsReq)) {
|
|
17809
18281
|
throw new Error("Expected argument of type aggregator.WithdrawFundsReq");
|
|
17810
18282
|
}
|
|
17811
18283
|
return Buffer.from(arg.serializeBinary());
|
|
17812
18284
|
}
|
|
17813
18285
|
function deserialize_aggregator_WithdrawFundsReq(buffer_arg) {
|
|
17814
|
-
return
|
|
18286
|
+
return avs_pb25.WithdrawFundsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17815
18287
|
}
|
|
17816
18288
|
function serialize_aggregator_WithdrawFundsResp(arg) {
|
|
17817
|
-
if (!(arg instanceof
|
|
18289
|
+
if (!(arg instanceof avs_pb25.WithdrawFundsResp)) {
|
|
17818
18290
|
throw new Error("Expected argument of type aggregator.WithdrawFundsResp");
|
|
17819
18291
|
}
|
|
17820
18292
|
return Buffer.from(arg.serializeBinary());
|
|
17821
18293
|
}
|
|
17822
18294
|
function deserialize_aggregator_WithdrawFundsResp(buffer_arg) {
|
|
17823
|
-
return
|
|
18295
|
+
return avs_pb25.WithdrawFundsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
17824
18296
|
}
|
|
17825
18297
|
var AggregatorService = exports2.AggregatorService = {
|
|
17826
18298
|
// Exchange for an Auth Key to authenticate in subsequent request
|
|
@@ -17828,8 +18300,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17828
18300
|
path: "/aggregator.Aggregator/GetKey",
|
|
17829
18301
|
requestStream: false,
|
|
17830
18302
|
responseStream: false,
|
|
17831
|
-
requestType:
|
|
17832
|
-
responseType:
|
|
18303
|
+
requestType: avs_pb25.GetKeyReq,
|
|
18304
|
+
responseType: avs_pb25.KeyResp,
|
|
17833
18305
|
requestSerialize: serialize_aggregator_GetKeyReq,
|
|
17834
18306
|
requestDeserialize: deserialize_aggregator_GetKeyReq,
|
|
17835
18307
|
responseSerialize: serialize_aggregator_KeyResp,
|
|
@@ -17840,8 +18312,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17840
18312
|
path: "/aggregator.Aggregator/GetSignatureFormat",
|
|
17841
18313
|
requestStream: false,
|
|
17842
18314
|
responseStream: false,
|
|
17843
|
-
requestType:
|
|
17844
|
-
responseType:
|
|
18315
|
+
requestType: avs_pb25.GetSignatureFormatReq,
|
|
18316
|
+
responseType: avs_pb25.GetSignatureFormatResp,
|
|
17845
18317
|
requestSerialize: serialize_aggregator_GetSignatureFormatReq,
|
|
17846
18318
|
requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
|
|
17847
18319
|
responseSerialize: serialize_aggregator_GetSignatureFormatResp,
|
|
@@ -17852,8 +18324,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17852
18324
|
path: "/aggregator.Aggregator/GetNonce",
|
|
17853
18325
|
requestStream: false,
|
|
17854
18326
|
responseStream: false,
|
|
17855
|
-
requestType:
|
|
17856
|
-
responseType:
|
|
18327
|
+
requestType: avs_pb25.NonceRequest,
|
|
18328
|
+
responseType: avs_pb25.NonceResp,
|
|
17857
18329
|
requestSerialize: serialize_aggregator_NonceRequest,
|
|
17858
18330
|
requestDeserialize: deserialize_aggregator_NonceRequest,
|
|
17859
18331
|
responseSerialize: serialize_aggregator_NonceResp,
|
|
@@ -17863,8 +18335,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17863
18335
|
path: "/aggregator.Aggregator/GetWallet",
|
|
17864
18336
|
requestStream: false,
|
|
17865
18337
|
responseStream: false,
|
|
17866
|
-
requestType:
|
|
17867
|
-
responseType:
|
|
18338
|
+
requestType: avs_pb25.GetWalletReq,
|
|
18339
|
+
responseType: avs_pb25.GetWalletResp,
|
|
17868
18340
|
requestSerialize: serialize_aggregator_GetWalletReq,
|
|
17869
18341
|
requestDeserialize: deserialize_aggregator_GetWalletReq,
|
|
17870
18342
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -17874,8 +18346,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17874
18346
|
path: "/aggregator.Aggregator/SetWallet",
|
|
17875
18347
|
requestStream: false,
|
|
17876
18348
|
responseStream: false,
|
|
17877
|
-
requestType:
|
|
17878
|
-
responseType:
|
|
18349
|
+
requestType: avs_pb25.SetWalletReq,
|
|
18350
|
+
responseType: avs_pb25.GetWalletResp,
|
|
17879
18351
|
requestSerialize: serialize_aggregator_SetWalletReq,
|
|
17880
18352
|
requestDeserialize: deserialize_aggregator_SetWalletReq,
|
|
17881
18353
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -17885,8 +18357,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17885
18357
|
path: "/aggregator.Aggregator/ListWallets",
|
|
17886
18358
|
requestStream: false,
|
|
17887
18359
|
responseStream: false,
|
|
17888
|
-
requestType:
|
|
17889
|
-
responseType:
|
|
18360
|
+
requestType: avs_pb25.ListWalletReq,
|
|
18361
|
+
responseType: avs_pb25.ListWalletResp,
|
|
17890
18362
|
requestSerialize: serialize_aggregator_ListWalletReq,
|
|
17891
18363
|
requestDeserialize: deserialize_aggregator_ListWalletReq,
|
|
17892
18364
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
@@ -17897,8 +18369,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17897
18369
|
path: "/aggregator.Aggregator/WithdrawFunds",
|
|
17898
18370
|
requestStream: false,
|
|
17899
18371
|
responseStream: false,
|
|
17900
|
-
requestType:
|
|
17901
|
-
responseType:
|
|
18372
|
+
requestType: avs_pb25.WithdrawFundsReq,
|
|
18373
|
+
responseType: avs_pb25.WithdrawFundsResp,
|
|
17902
18374
|
requestSerialize: serialize_aggregator_WithdrawFundsReq,
|
|
17903
18375
|
requestDeserialize: deserialize_aggregator_WithdrawFundsReq,
|
|
17904
18376
|
responseSerialize: serialize_aggregator_WithdrawFundsResp,
|
|
@@ -17909,8 +18381,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17909
18381
|
path: "/aggregator.Aggregator/CreateTask",
|
|
17910
18382
|
requestStream: false,
|
|
17911
18383
|
responseStream: false,
|
|
17912
|
-
requestType:
|
|
17913
|
-
responseType:
|
|
18384
|
+
requestType: avs_pb25.CreateTaskReq,
|
|
18385
|
+
responseType: avs_pb25.CreateTaskResp,
|
|
17914
18386
|
requestSerialize: serialize_aggregator_CreateTaskReq,
|
|
17915
18387
|
requestDeserialize: deserialize_aggregator_CreateTaskReq,
|
|
17916
18388
|
responseSerialize: serialize_aggregator_CreateTaskResp,
|
|
@@ -17920,8 +18392,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17920
18392
|
path: "/aggregator.Aggregator/ListTasks",
|
|
17921
18393
|
requestStream: false,
|
|
17922
18394
|
responseStream: false,
|
|
17923
|
-
requestType:
|
|
17924
|
-
responseType:
|
|
18395
|
+
requestType: avs_pb25.ListTasksReq,
|
|
18396
|
+
responseType: avs_pb25.ListTasksResp,
|
|
17925
18397
|
requestSerialize: serialize_aggregator_ListTasksReq,
|
|
17926
18398
|
requestDeserialize: deserialize_aggregator_ListTasksReq,
|
|
17927
18399
|
responseSerialize: serialize_aggregator_ListTasksResp,
|
|
@@ -17931,8 +18403,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17931
18403
|
path: "/aggregator.Aggregator/GetTask",
|
|
17932
18404
|
requestStream: false,
|
|
17933
18405
|
responseStream: false,
|
|
17934
|
-
requestType:
|
|
17935
|
-
responseType:
|
|
18406
|
+
requestType: avs_pb25.IdReq,
|
|
18407
|
+
responseType: avs_pb25.Task,
|
|
17936
18408
|
requestSerialize: serialize_aggregator_IdReq,
|
|
17937
18409
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
17938
18410
|
responseSerialize: serialize_aggregator_Task,
|
|
@@ -17942,8 +18414,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17942
18414
|
path: "/aggregator.Aggregator/ListExecutions",
|
|
17943
18415
|
requestStream: false,
|
|
17944
18416
|
responseStream: false,
|
|
17945
|
-
requestType:
|
|
17946
|
-
responseType:
|
|
18417
|
+
requestType: avs_pb25.ListExecutionsReq,
|
|
18418
|
+
responseType: avs_pb25.ListExecutionsResp,
|
|
17947
18419
|
requestSerialize: serialize_aggregator_ListExecutionsReq,
|
|
17948
18420
|
requestDeserialize: deserialize_aggregator_ListExecutionsReq,
|
|
17949
18421
|
responseSerialize: serialize_aggregator_ListExecutionsResp,
|
|
@@ -17953,8 +18425,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17953
18425
|
path: "/aggregator.Aggregator/GetExecution",
|
|
17954
18426
|
requestStream: false,
|
|
17955
18427
|
responseStream: false,
|
|
17956
|
-
requestType:
|
|
17957
|
-
responseType:
|
|
18428
|
+
requestType: avs_pb25.ExecutionReq,
|
|
18429
|
+
responseType: avs_pb25.Execution,
|
|
17958
18430
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
17959
18431
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
17960
18432
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -17964,8 +18436,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17964
18436
|
path: "/aggregator.Aggregator/GetExecutionStatus",
|
|
17965
18437
|
requestStream: false,
|
|
17966
18438
|
responseStream: false,
|
|
17967
|
-
requestType:
|
|
17968
|
-
responseType:
|
|
18439
|
+
requestType: avs_pb25.ExecutionReq,
|
|
18440
|
+
responseType: avs_pb25.ExecutionStatusResp,
|
|
17969
18441
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
17970
18442
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
17971
18443
|
responseSerialize: serialize_aggregator_ExecutionStatusResp,
|
|
@@ -17975,8 +18447,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17975
18447
|
path: "/aggregator.Aggregator/CancelTask",
|
|
17976
18448
|
requestStream: false,
|
|
17977
18449
|
responseStream: false,
|
|
17978
|
-
requestType:
|
|
17979
|
-
responseType:
|
|
18450
|
+
requestType: avs_pb25.IdReq,
|
|
18451
|
+
responseType: avs_pb25.CancelTaskResp,
|
|
17980
18452
|
requestSerialize: serialize_aggregator_IdReq,
|
|
17981
18453
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
17982
18454
|
responseSerialize: serialize_aggregator_CancelTaskResp,
|
|
@@ -17986,8 +18458,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17986
18458
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
17987
18459
|
requestStream: false,
|
|
17988
18460
|
responseStream: false,
|
|
17989
|
-
requestType:
|
|
17990
|
-
responseType:
|
|
18461
|
+
requestType: avs_pb25.IdReq,
|
|
18462
|
+
responseType: avs_pb25.DeleteTaskResp,
|
|
17991
18463
|
requestSerialize: serialize_aggregator_IdReq,
|
|
17992
18464
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
17993
18465
|
responseSerialize: serialize_aggregator_DeleteTaskResp,
|
|
@@ -17997,8 +18469,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
17997
18469
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
17998
18470
|
requestStream: false,
|
|
17999
18471
|
responseStream: false,
|
|
18000
|
-
requestType:
|
|
18001
|
-
responseType:
|
|
18472
|
+
requestType: avs_pb25.TriggerTaskReq,
|
|
18473
|
+
responseType: avs_pb25.TriggerTaskResp,
|
|
18002
18474
|
requestSerialize: serialize_aggregator_TriggerTaskReq,
|
|
18003
18475
|
requestDeserialize: deserialize_aggregator_TriggerTaskReq,
|
|
18004
18476
|
responseSerialize: serialize_aggregator_TriggerTaskResp,
|
|
@@ -18011,8 +18483,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18011
18483
|
path: "/aggregator.Aggregator/CreateSecret",
|
|
18012
18484
|
requestStream: false,
|
|
18013
18485
|
responseStream: false,
|
|
18014
|
-
requestType:
|
|
18015
|
-
responseType:
|
|
18486
|
+
requestType: avs_pb25.CreateOrUpdateSecretReq,
|
|
18487
|
+
responseType: avs_pb25.CreateSecretResp,
|
|
18016
18488
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
18017
18489
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
18018
18490
|
responseSerialize: serialize_aggregator_CreateSecretResp,
|
|
@@ -18022,8 +18494,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18022
18494
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
18023
18495
|
requestStream: false,
|
|
18024
18496
|
responseStream: false,
|
|
18025
|
-
requestType:
|
|
18026
|
-
responseType:
|
|
18497
|
+
requestType: avs_pb25.DeleteSecretReq,
|
|
18498
|
+
responseType: avs_pb25.DeleteSecretResp,
|
|
18027
18499
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
18028
18500
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
18029
18501
|
responseSerialize: serialize_aggregator_DeleteSecretResp,
|
|
@@ -18035,8 +18507,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18035
18507
|
path: "/aggregator.Aggregator/ListSecrets",
|
|
18036
18508
|
requestStream: false,
|
|
18037
18509
|
responseStream: false,
|
|
18038
|
-
requestType:
|
|
18039
|
-
responseType:
|
|
18510
|
+
requestType: avs_pb25.ListSecretsReq,
|
|
18511
|
+
responseType: avs_pb25.ListSecretsResp,
|
|
18040
18512
|
requestSerialize: serialize_aggregator_ListSecretsReq,
|
|
18041
18513
|
requestDeserialize: deserialize_aggregator_ListSecretsReq,
|
|
18042
18514
|
responseSerialize: serialize_aggregator_ListSecretsResp,
|
|
@@ -18048,8 +18520,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18048
18520
|
path: "/aggregator.Aggregator/UpdateSecret",
|
|
18049
18521
|
requestStream: false,
|
|
18050
18522
|
responseStream: false,
|
|
18051
|
-
requestType:
|
|
18052
|
-
responseType:
|
|
18523
|
+
requestType: avs_pb25.CreateOrUpdateSecretReq,
|
|
18524
|
+
responseType: avs_pb25.UpdateSecretResp,
|
|
18053
18525
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
18054
18526
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
18055
18527
|
responseSerialize: serialize_aggregator_UpdateSecretResp,
|
|
@@ -18065,8 +18537,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18065
18537
|
path: "/aggregator.Aggregator/GetWorkflowCount",
|
|
18066
18538
|
requestStream: false,
|
|
18067
18539
|
responseStream: false,
|
|
18068
|
-
requestType:
|
|
18069
|
-
responseType:
|
|
18540
|
+
requestType: avs_pb25.GetWorkflowCountReq,
|
|
18541
|
+
responseType: avs_pb25.GetWorkflowCountResp,
|
|
18070
18542
|
requestSerialize: serialize_aggregator_GetWorkflowCountReq,
|
|
18071
18543
|
requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
|
|
18072
18544
|
responseSerialize: serialize_aggregator_GetWorkflowCountResp,
|
|
@@ -18080,8 +18552,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18080
18552
|
path: "/aggregator.Aggregator/GetExecutionCount",
|
|
18081
18553
|
requestStream: false,
|
|
18082
18554
|
responseStream: false,
|
|
18083
|
-
requestType:
|
|
18084
|
-
responseType:
|
|
18555
|
+
requestType: avs_pb25.GetExecutionCountReq,
|
|
18556
|
+
responseType: avs_pb25.GetExecutionCountResp,
|
|
18085
18557
|
requestSerialize: serialize_aggregator_GetExecutionCountReq,
|
|
18086
18558
|
requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
|
|
18087
18559
|
responseSerialize: serialize_aggregator_GetExecutionCountResp,
|
|
@@ -18094,8 +18566,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18094
18566
|
path: "/aggregator.Aggregator/GetExecutionStats",
|
|
18095
18567
|
requestStream: false,
|
|
18096
18568
|
responseStream: false,
|
|
18097
|
-
requestType:
|
|
18098
|
-
responseType:
|
|
18569
|
+
requestType: avs_pb25.GetExecutionStatsReq,
|
|
18570
|
+
responseType: avs_pb25.GetExecutionStatsResp,
|
|
18099
18571
|
requestSerialize: serialize_aggregator_GetExecutionStatsReq,
|
|
18100
18572
|
requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
|
|
18101
18573
|
responseSerialize: serialize_aggregator_GetExecutionStatsResp,
|
|
@@ -18106,8 +18578,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18106
18578
|
path: "/aggregator.Aggregator/RunNodeWithInputs",
|
|
18107
18579
|
requestStream: false,
|
|
18108
18580
|
responseStream: false,
|
|
18109
|
-
requestType:
|
|
18110
|
-
responseType:
|
|
18581
|
+
requestType: avs_pb25.RunNodeWithInputsReq,
|
|
18582
|
+
responseType: avs_pb25.RunNodeWithInputsResp,
|
|
18111
18583
|
requestSerialize: serialize_aggregator_RunNodeWithInputsReq,
|
|
18112
18584
|
requestDeserialize: deserialize_aggregator_RunNodeWithInputsReq,
|
|
18113
18585
|
responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
|
|
@@ -18118,8 +18590,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18118
18590
|
path: "/aggregator.Aggregator/RunTrigger",
|
|
18119
18591
|
requestStream: false,
|
|
18120
18592
|
responseStream: false,
|
|
18121
|
-
requestType:
|
|
18122
|
-
responseType:
|
|
18593
|
+
requestType: avs_pb25.RunTriggerReq,
|
|
18594
|
+
responseType: avs_pb25.RunTriggerResp,
|
|
18123
18595
|
requestSerialize: serialize_aggregator_RunTriggerReq,
|
|
18124
18596
|
requestDeserialize: deserialize_aggregator_RunTriggerReq,
|
|
18125
18597
|
responseSerialize: serialize_aggregator_RunTriggerResp,
|
|
@@ -18130,8 +18602,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18130
18602
|
path: "/aggregator.Aggregator/SimulateTask",
|
|
18131
18603
|
requestStream: false,
|
|
18132
18604
|
responseStream: false,
|
|
18133
|
-
requestType:
|
|
18134
|
-
responseType:
|
|
18605
|
+
requestType: avs_pb25.SimulateTaskReq,
|
|
18606
|
+
responseType: avs_pb25.Execution,
|
|
18135
18607
|
requestSerialize: serialize_aggregator_SimulateTaskReq,
|
|
18136
18608
|
requestDeserialize: deserialize_aggregator_SimulateTaskReq,
|
|
18137
18609
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -18142,8 +18614,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18142
18614
|
path: "/aggregator.Aggregator/GetTokenMetadata",
|
|
18143
18615
|
requestStream: false,
|
|
18144
18616
|
responseStream: false,
|
|
18145
|
-
requestType:
|
|
18146
|
-
responseType:
|
|
18617
|
+
requestType: avs_pb25.GetTokenMetadataReq,
|
|
18618
|
+
responseType: avs_pb25.GetTokenMetadataResp,
|
|
18147
18619
|
requestSerialize: serialize_aggregator_GetTokenMetadataReq,
|
|
18148
18620
|
requestDeserialize: deserialize_aggregator_GetTokenMetadataReq,
|
|
18149
18621
|
responseSerialize: serialize_aggregator_GetTokenMetadataResp,
|
|
@@ -18156,8 +18628,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18156
18628
|
path: "/aggregator.Aggregator/EstimateFees",
|
|
18157
18629
|
requestStream: false,
|
|
18158
18630
|
responseStream: false,
|
|
18159
|
-
requestType:
|
|
18160
|
-
responseType:
|
|
18631
|
+
requestType: avs_pb25.EstimateFeesReq,
|
|
18632
|
+
responseType: avs_pb25.EstimateFeesResp,
|
|
18161
18633
|
requestSerialize: serialize_aggregator_EstimateFeesReq,
|
|
18162
18634
|
requestDeserialize: deserialize_aggregator_EstimateFeesReq,
|
|
18163
18635
|
responseSerialize: serialize_aggregator_EstimateFeesResp,
|
|
@@ -18171,6 +18643,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
18171
18643
|
// src/index.ts
|
|
18172
18644
|
var index_exports = {};
|
|
18173
18645
|
__export(index_exports, {
|
|
18646
|
+
BalanceNode: () => balance_default,
|
|
18174
18647
|
BlockTrigger: () => block_default,
|
|
18175
18648
|
BranchNode: () => branch_default,
|
|
18176
18649
|
Client: () => Client,
|
|
@@ -18180,7 +18653,7 @@ __export(index_exports, {
|
|
|
18180
18653
|
CustomCodeNode: () => customCode_default,
|
|
18181
18654
|
ETHTransferNode: () => ethTransfer_default,
|
|
18182
18655
|
Edge: () => edge_default,
|
|
18183
|
-
ErrorCode: () =>
|
|
18656
|
+
ErrorCode: () => import_types22.ErrorCode,
|
|
18184
18657
|
EventTrigger: () => event_default,
|
|
18185
18658
|
Execution: () => execution_default,
|
|
18186
18659
|
FilterNode: () => filter_default,
|
|
@@ -18201,11 +18674,11 @@ __export(index_exports, {
|
|
|
18201
18674
|
module.exports = __toCommonJS(index_exports);
|
|
18202
18675
|
var import_grpc_js = require("@grpc/grpc-js");
|
|
18203
18676
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
18204
|
-
var
|
|
18677
|
+
var avs_pb24 = __toESM(require_avs_pb());
|
|
18205
18678
|
|
|
18206
18679
|
// src/models/workflow.ts
|
|
18207
18680
|
var import_lodash3 = __toESM(require("lodash"));
|
|
18208
|
-
var
|
|
18681
|
+
var avs_pb20 = __toESM(require_avs_pb());
|
|
18209
18682
|
|
|
18210
18683
|
// src/models/edge.ts
|
|
18211
18684
|
var avs_pb = __toESM(require_avs_pb());
|
|
@@ -18551,6 +19024,9 @@ function convertProtobufNodeTypeToSdk(protobufType) {
|
|
|
18551
19024
|
case "NODE_TYPE_LOOP":
|
|
18552
19025
|
return import_types3.NodeType.Loop;
|
|
18553
19026
|
// "loop"
|
|
19027
|
+
case "NODE_TYPE_BALANCE":
|
|
19028
|
+
return import_types3.NodeType.Balance;
|
|
19029
|
+
// "balance"
|
|
18554
19030
|
case "NODE_TYPE_UNSPECIFIED":
|
|
18555
19031
|
return import_types3.NodeType.Unspecified;
|
|
18556
19032
|
// "unspecified"
|
|
@@ -18894,12 +19370,14 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
18894
19370
|
let actualData = this.data;
|
|
18895
19371
|
let headers = {};
|
|
18896
19372
|
let pathParams = {};
|
|
19373
|
+
let lang = import_types6.Lang.JSON;
|
|
18897
19374
|
if (typeof this.data === "object" && this.data !== null && !Array.isArray(this.data)) {
|
|
18898
19375
|
const dataObj = this.data;
|
|
18899
19376
|
if ("data" in dataObj) {
|
|
18900
19377
|
actualData = dataObj.data;
|
|
18901
19378
|
headers = dataObj.headers || {};
|
|
18902
19379
|
pathParams = dataObj.pathParams || {};
|
|
19380
|
+
lang = dataObj.lang || import_types6.Lang.JSON;
|
|
18903
19381
|
}
|
|
18904
19382
|
}
|
|
18905
19383
|
const dataValue = convertInputToProtobuf(actualData);
|
|
@@ -18921,6 +19399,8 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
18921
19399
|
pathParamsMap.set(key, value);
|
|
18922
19400
|
});
|
|
18923
19401
|
}
|
|
19402
|
+
const langValue = import_types6.LangConverter.toProtobuf(lang);
|
|
19403
|
+
config.setLang(langValue);
|
|
18924
19404
|
manualTrigger.setConfig(config);
|
|
18925
19405
|
trigger.setManual(manualTrigger);
|
|
18926
19406
|
return trigger;
|
|
@@ -18928,6 +19408,7 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
18928
19408
|
static fromResponse(raw) {
|
|
18929
19409
|
const obj = raw.toObject();
|
|
18930
19410
|
let actualData = null;
|
|
19411
|
+
let lang = import_types6.Lang.JSON;
|
|
18931
19412
|
const manualTrigger = raw.getManual();
|
|
18932
19413
|
if (manualTrigger) {
|
|
18933
19414
|
const config = manualTrigger.getConfig();
|
|
@@ -18935,10 +19416,12 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
18935
19416
|
if (config.hasData()) {
|
|
18936
19417
|
actualData = extractInputFromProtobuf(config.getData());
|
|
18937
19418
|
}
|
|
19419
|
+
lang = import_types6.LangConverter.fromProtobuf(config.getLang());
|
|
18938
19420
|
}
|
|
18939
19421
|
}
|
|
18940
19422
|
const manualTriggerData = {
|
|
18941
|
-
data: actualData
|
|
19423
|
+
data: actualData,
|
|
19424
|
+
lang
|
|
18942
19425
|
};
|
|
18943
19426
|
return new _ManualTrigger({
|
|
18944
19427
|
...obj,
|
|
@@ -19038,7 +19521,7 @@ var TriggerFactory = class {
|
|
|
19038
19521
|
var factory_default = TriggerFactory;
|
|
19039
19522
|
|
|
19040
19523
|
// src/models/node/factory.ts
|
|
19041
|
-
var
|
|
19524
|
+
var avs_pb19 = __toESM(require_avs_pb());
|
|
19042
19525
|
var import_lodash2 = __toESM(require("lodash"));
|
|
19043
19526
|
|
|
19044
19527
|
// src/models/node/interface.ts
|
|
@@ -19167,17 +19650,25 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
|
19167
19650
|
static createProtobufNode(configData) {
|
|
19168
19651
|
const node = new avs_pb10.CustomCodeNode();
|
|
19169
19652
|
const config = new avs_pb10.CustomCodeNode.Config();
|
|
19170
|
-
|
|
19653
|
+
const langValue = import_types10.LangConverter.toProtobuf(configData.lang);
|
|
19654
|
+
config.setLang(langValue);
|
|
19171
19655
|
config.setSource(configData.source);
|
|
19172
19656
|
node.setConfig(config);
|
|
19173
19657
|
return node;
|
|
19174
19658
|
}
|
|
19175
19659
|
static fromResponse(raw) {
|
|
19176
19660
|
const obj = raw.toObject();
|
|
19177
|
-
const
|
|
19661
|
+
const customCodeNode = raw.getCustomCode();
|
|
19662
|
+
if (!customCodeNode) {
|
|
19663
|
+
throw new Error("CustomCode node data is missing");
|
|
19664
|
+
}
|
|
19665
|
+
const config = customCodeNode.getConfig();
|
|
19666
|
+
if (!config) {
|
|
19667
|
+
throw new Error("CustomCode config is missing");
|
|
19668
|
+
}
|
|
19178
19669
|
const convertedConfig = {
|
|
19179
|
-
lang:
|
|
19180
|
-
source:
|
|
19670
|
+
lang: import_types10.LangConverter.fromProtobuf(config.getLang()),
|
|
19671
|
+
source: config.getSource()
|
|
19181
19672
|
};
|
|
19182
19673
|
return new _CustomCodeNode({
|
|
19183
19674
|
...obj,
|
|
@@ -19803,30 +20294,101 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
19803
20294
|
};
|
|
19804
20295
|
var loop_default = LoopNode2;
|
|
19805
20296
|
|
|
19806
|
-
// src/models/node/
|
|
20297
|
+
// src/models/node/balance.ts
|
|
20298
|
+
var avs_pb18 = __toESM(require_avs_pb());
|
|
19807
20299
|
var import_types18 = require("@avaprotocol/types");
|
|
20300
|
+
var BalanceNode2 = class _BalanceNode extends Node {
|
|
20301
|
+
constructor(props) {
|
|
20302
|
+
super({ ...props, type: import_types18.NodeType.Balance, data: props.data });
|
|
20303
|
+
}
|
|
20304
|
+
/**
|
|
20305
|
+
* Create a protobuf BalanceNode from config data
|
|
20306
|
+
* @param configData - The configuration data for the balance node
|
|
20307
|
+
* @returns Configured avs_pb.BalanceNode
|
|
20308
|
+
*/
|
|
20309
|
+
static createProtobufNode(configData) {
|
|
20310
|
+
const node = new avs_pb18.BalanceNode();
|
|
20311
|
+
const config = new avs_pb18.BalanceNode.Config();
|
|
20312
|
+
config.setAddress(configData.address);
|
|
20313
|
+
config.setChain(configData.chain);
|
|
20314
|
+
if (configData.includeSpam !== void 0) {
|
|
20315
|
+
config.setIncludeSpam(configData.includeSpam);
|
|
20316
|
+
}
|
|
20317
|
+
if (configData.includeZeroBalances !== void 0) {
|
|
20318
|
+
config.setIncludeZeroBalances(configData.includeZeroBalances);
|
|
20319
|
+
}
|
|
20320
|
+
if (configData.minUsdValue !== void 0) {
|
|
20321
|
+
config.setMinUsdValueCents(Math.round(configData.minUsdValue * 100));
|
|
20322
|
+
}
|
|
20323
|
+
if (configData.tokenAddresses !== void 0 && configData.tokenAddresses.length > 0) {
|
|
20324
|
+
config.setTokenAddressesList(configData.tokenAddresses);
|
|
20325
|
+
}
|
|
20326
|
+
node.setConfig(config);
|
|
20327
|
+
return node;
|
|
20328
|
+
}
|
|
20329
|
+
static fromResponse(raw) {
|
|
20330
|
+
const obj = raw.toObject();
|
|
20331
|
+
const balanceNode = raw.getBalance();
|
|
20332
|
+
const config = balanceNode.getConfig();
|
|
20333
|
+
const protobufData = config.toObject();
|
|
20334
|
+
const data = {
|
|
20335
|
+
address: protobufData.address,
|
|
20336
|
+
chain: protobufData.chain,
|
|
20337
|
+
includeSpam: protobufData.includeSpam,
|
|
20338
|
+
includeZeroBalances: protobufData.includeZeroBalances,
|
|
20339
|
+
minUsdValue: protobufData.minUsdValueCents / 100,
|
|
20340
|
+
tokenAddresses: protobufData.tokenAddressesList
|
|
20341
|
+
};
|
|
20342
|
+
return new _BalanceNode({
|
|
20343
|
+
...obj,
|
|
20344
|
+
type: import_types18.NodeType.Balance,
|
|
20345
|
+
data
|
|
20346
|
+
});
|
|
20347
|
+
}
|
|
20348
|
+
toRequest() {
|
|
20349
|
+
const request = new avs_pb18.TaskNode();
|
|
20350
|
+
request.setId(this.id);
|
|
20351
|
+
request.setName(this.name);
|
|
20352
|
+
const node = _BalanceNode.createProtobufNode(this.data);
|
|
20353
|
+
request.setBalance(node);
|
|
20354
|
+
return request;
|
|
20355
|
+
}
|
|
20356
|
+
static fromOutputData(outputData) {
|
|
20357
|
+
const balanceOutput = outputData.getBalance();
|
|
20358
|
+
if (!balanceOutput) return null;
|
|
20359
|
+
const dataValue = balanceOutput.getData();
|
|
20360
|
+
const balanceData = dataValue ? convertProtobufValueToJs(dataValue) : [];
|
|
20361
|
+
return balanceData;
|
|
20362
|
+
}
|
|
20363
|
+
};
|
|
20364
|
+
var balance_default = BalanceNode2;
|
|
20365
|
+
|
|
20366
|
+
// src/models/node/factory.ts
|
|
20367
|
+
var import_types19 = require("@avaprotocol/types");
|
|
19808
20368
|
var NodeFactory = class {
|
|
19809
20369
|
static create(props) {
|
|
19810
20370
|
switch (props.type) {
|
|
19811
|
-
case
|
|
20371
|
+
case import_types19.NodeType.ContractWrite:
|
|
19812
20372
|
return new contractWrite_default(props);
|
|
19813
|
-
case
|
|
20373
|
+
case import_types19.NodeType.RestAPI:
|
|
19814
20374
|
return new restApi_default(props);
|
|
19815
|
-
case
|
|
20375
|
+
case import_types19.NodeType.CustomCode:
|
|
19816
20376
|
return new customCode_default(props);
|
|
19817
|
-
case
|
|
20377
|
+
case import_types19.NodeType.ContractRead:
|
|
19818
20378
|
return new contractRead_default(props);
|
|
19819
|
-
case
|
|
20379
|
+
case import_types19.NodeType.ETHTransfer:
|
|
19820
20380
|
return new ethTransfer_default(props);
|
|
19821
|
-
case
|
|
20381
|
+
case import_types19.NodeType.GraphQLQuery:
|
|
19822
20382
|
return new graphqlQuery_default(props);
|
|
19823
|
-
case
|
|
20383
|
+
case import_types19.NodeType.Branch:
|
|
19824
20384
|
return new branch_default(props);
|
|
19825
|
-
case
|
|
20385
|
+
case import_types19.NodeType.Filter:
|
|
19826
20386
|
return new filter_default(props);
|
|
19827
|
-
case
|
|
20387
|
+
case import_types19.NodeType.Loop:
|
|
19828
20388
|
return new loop_default(props);
|
|
19829
|
-
case
|
|
20389
|
+
case import_types19.NodeType.Balance:
|
|
20390
|
+
return new balance_default(props);
|
|
20391
|
+
case import_types19.NodeType.Unspecified:
|
|
19830
20392
|
throw new Error("Cannot create node with unspecified type");
|
|
19831
20393
|
default:
|
|
19832
20394
|
throw new Error(`Unsupported node type: ${props.type}`);
|
|
@@ -19855,31 +20417,35 @@ var NodeFactory = class {
|
|
|
19855
20417
|
return filter_default.fromResponse(raw);
|
|
19856
20418
|
case !!raw.getLoop():
|
|
19857
20419
|
return loop_default.fromResponse(raw);
|
|
20420
|
+
case !!raw.getBalance():
|
|
20421
|
+
return balance_default.fromResponse(raw);
|
|
19858
20422
|
default:
|
|
19859
20423
|
throw new Error(`Unsupported node type: ${raw.getName()}`);
|
|
19860
20424
|
}
|
|
19861
20425
|
}
|
|
19862
20426
|
static fromOutputData(outputData) {
|
|
19863
20427
|
switch (outputData.getOutputDataCase()) {
|
|
19864
|
-
case
|
|
20428
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.REST_API:
|
|
19865
20429
|
return restApi_default.fromOutputData(outputData);
|
|
19866
|
-
case
|
|
20430
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CUSTOM_CODE:
|
|
19867
20431
|
return customCode_default.fromOutputData(outputData);
|
|
19868
|
-
case
|
|
20432
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CONTRACT_READ:
|
|
19869
20433
|
return contractRead_default.fromOutputData(outputData);
|
|
19870
|
-
case
|
|
20434
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.CONTRACT_WRITE:
|
|
19871
20435
|
return contractWrite_default.fromOutputData(outputData);
|
|
19872
|
-
case
|
|
20436
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.ETH_TRANSFER:
|
|
19873
20437
|
return ethTransfer_default.fromOutputData(outputData);
|
|
19874
|
-
case
|
|
20438
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.GRAPHQL:
|
|
19875
20439
|
return graphqlQuery_default.fromOutputData(outputData);
|
|
19876
|
-
case
|
|
20440
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.BRANCH:
|
|
19877
20441
|
return branch_default.fromOutputData(outputData);
|
|
19878
|
-
case
|
|
20442
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.FILTER:
|
|
19879
20443
|
return filter_default.fromOutputData(outputData);
|
|
19880
|
-
case
|
|
20444
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.LOOP:
|
|
19881
20445
|
return loop_default.fromOutputData(outputData);
|
|
19882
|
-
case
|
|
20446
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.BALANCE:
|
|
20447
|
+
return balance_default.fromOutputData(outputData);
|
|
20448
|
+
case avs_pb19.RunNodeWithInputsResp.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
19883
20449
|
default:
|
|
19884
20450
|
throw new Error(`Unsupported output data case: ${outputData.getOutputDataCase()}`);
|
|
19885
20451
|
}
|
|
@@ -19888,14 +20454,14 @@ var NodeFactory = class {
|
|
|
19888
20454
|
var factory_default2 = NodeFactory;
|
|
19889
20455
|
|
|
19890
20456
|
// src/models/workflow.ts
|
|
19891
|
-
var
|
|
20457
|
+
var import_types20 = require("@avaprotocol/types");
|
|
19892
20458
|
function convertStatusToString(status2) {
|
|
19893
20459
|
const conversionMap = {
|
|
19894
|
-
[
|
|
19895
|
-
[
|
|
19896
|
-
[
|
|
19897
|
-
[
|
|
19898
|
-
[
|
|
20460
|
+
[avs_pb20.TaskStatus.ACTIVE]: import_types20.WorkflowStatus.Active,
|
|
20461
|
+
[avs_pb20.TaskStatus.COMPLETED]: import_types20.WorkflowStatus.Completed,
|
|
20462
|
+
[avs_pb20.TaskStatus.FAILED]: import_types20.WorkflowStatus.Failed,
|
|
20463
|
+
[avs_pb20.TaskStatus.CANCELED]: import_types20.WorkflowStatus.Canceled,
|
|
20464
|
+
[avs_pb20.TaskStatus.EXECUTING]: import_types20.WorkflowStatus.Executing
|
|
19899
20465
|
};
|
|
19900
20466
|
return conversionMap[status2];
|
|
19901
20467
|
}
|
|
@@ -20000,7 +20566,7 @@ var Workflow = class _Workflow {
|
|
|
20000
20566
|
});
|
|
20001
20567
|
}
|
|
20002
20568
|
toRequest() {
|
|
20003
|
-
const request = new
|
|
20569
|
+
const request = new avs_pb20.CreateTaskReq();
|
|
20004
20570
|
request.setSmartWalletAddress(this.smartWalletAddress);
|
|
20005
20571
|
request.setTrigger(this.trigger.toRequest());
|
|
20006
20572
|
try {
|
|
@@ -20074,11 +20640,11 @@ var Workflow = class _Workflow {
|
|
|
20074
20640
|
var workflow_default = Workflow;
|
|
20075
20641
|
|
|
20076
20642
|
// src/models/execution.ts
|
|
20077
|
-
var
|
|
20078
|
-
var
|
|
20643
|
+
var avs_pb22 = __toESM(require_avs_pb());
|
|
20644
|
+
var import_types21 = require("@avaprotocol/types");
|
|
20079
20645
|
|
|
20080
20646
|
// src/models/step.ts
|
|
20081
|
-
var
|
|
20647
|
+
var avs_pb21 = __toESM(require_avs_pb());
|
|
20082
20648
|
var Step = class _Step {
|
|
20083
20649
|
constructor(props) {
|
|
20084
20650
|
this.id = props.id;
|
|
@@ -20154,34 +20720,36 @@ var Step = class _Step {
|
|
|
20154
20720
|
static extractOutputData(step) {
|
|
20155
20721
|
const outputCase = this.getOutputDataCase(step);
|
|
20156
20722
|
switch (outputCase) {
|
|
20157
|
-
case
|
|
20723
|
+
case avs_pb21.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
|
|
20158
20724
|
return typeof step.getBlockTrigger === "function" ? step.getBlockTrigger() : step.blockTrigger;
|
|
20159
|
-
case
|
|
20725
|
+
case avs_pb21.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
20160
20726
|
return typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger() : step.fixedTimeTrigger;
|
|
20161
|
-
case
|
|
20727
|
+
case avs_pb21.Execution.Step.OutputDataCase.CRON_TRIGGER:
|
|
20162
20728
|
return typeof step.getCronTrigger === "function" ? step.getCronTrigger() : step.cronTrigger;
|
|
20163
|
-
case
|
|
20729
|
+
case avs_pb21.Execution.Step.OutputDataCase.EVENT_TRIGGER:
|
|
20164
20730
|
return typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
|
|
20165
|
-
case
|
|
20731
|
+
case avs_pb21.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
|
|
20166
20732
|
return typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
|
|
20167
|
-
case
|
|
20733
|
+
case avs_pb21.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
20168
20734
|
return typeof step.getEthTransfer === "function" ? step.getEthTransfer() : step.ethTransfer;
|
|
20169
|
-
case
|
|
20735
|
+
case avs_pb21.Execution.Step.OutputDataCase.GRAPHQL:
|
|
20170
20736
|
return typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
|
|
20171
|
-
case
|
|
20737
|
+
case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
20172
20738
|
return typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
|
|
20173
|
-
case
|
|
20739
|
+
case avs_pb21.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
20174
20740
|
return typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
|
|
20175
|
-
case
|
|
20741
|
+
case avs_pb21.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
20176
20742
|
return typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
|
|
20177
|
-
case
|
|
20743
|
+
case avs_pb21.Execution.Step.OutputDataCase.REST_API:
|
|
20178
20744
|
return typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
|
|
20179
|
-
case
|
|
20745
|
+
case avs_pb21.Execution.Step.OutputDataCase.BRANCH:
|
|
20180
20746
|
return typeof step.getBranch === "function" ? step.getBranch() : step.branch;
|
|
20181
|
-
case
|
|
20747
|
+
case avs_pb21.Execution.Step.OutputDataCase.FILTER:
|
|
20182
20748
|
return typeof step.getFilter === "function" ? step.getFilter() : step.filter;
|
|
20183
|
-
case
|
|
20749
|
+
case avs_pb21.Execution.Step.OutputDataCase.LOOP:
|
|
20184
20750
|
return typeof step.getLoop === "function" ? step.getLoop() : step.loop;
|
|
20751
|
+
case avs_pb21.Execution.Step.OutputDataCase.BALANCE:
|
|
20752
|
+
return typeof step.getBalance === "function" ? step.getBalance() : step.balance;
|
|
20185
20753
|
default:
|
|
20186
20754
|
return null;
|
|
20187
20755
|
}
|
|
@@ -20192,29 +20760,30 @@ var Step = class _Step {
|
|
|
20192
20760
|
}
|
|
20193
20761
|
const stepObj = step;
|
|
20194
20762
|
if (stepObj.blockTrigger)
|
|
20195
|
-
return
|
|
20763
|
+
return avs_pb21.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
|
|
20196
20764
|
if (stepObj.fixedTimeTrigger)
|
|
20197
|
-
return
|
|
20765
|
+
return avs_pb21.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
|
|
20198
20766
|
if (stepObj.cronTrigger)
|
|
20199
|
-
return
|
|
20767
|
+
return avs_pb21.Execution.Step.OutputDataCase.CRON_TRIGGER;
|
|
20200
20768
|
if (stepObj.eventTrigger)
|
|
20201
|
-
return
|
|
20769
|
+
return avs_pb21.Execution.Step.OutputDataCase.EVENT_TRIGGER;
|
|
20202
20770
|
if (stepObj.manualTrigger)
|
|
20203
|
-
return
|
|
20771
|
+
return avs_pb21.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
|
|
20204
20772
|
if (stepObj.ethTransfer)
|
|
20205
|
-
return
|
|
20206
|
-
if (stepObj.graphql) return
|
|
20773
|
+
return avs_pb21.Execution.Step.OutputDataCase.ETH_TRANSFER;
|
|
20774
|
+
if (stepObj.graphql) return avs_pb21.Execution.Step.OutputDataCase.GRAPHQL;
|
|
20207
20775
|
if (stepObj.contractRead)
|
|
20208
|
-
return
|
|
20776
|
+
return avs_pb21.Execution.Step.OutputDataCase.CONTRACT_READ;
|
|
20209
20777
|
if (stepObj.contractWrite)
|
|
20210
|
-
return
|
|
20778
|
+
return avs_pb21.Execution.Step.OutputDataCase.CONTRACT_WRITE;
|
|
20211
20779
|
if (stepObj.customCode)
|
|
20212
|
-
return
|
|
20213
|
-
if (stepObj.restApi) return
|
|
20214
|
-
if (stepObj.branch) return
|
|
20215
|
-
if (stepObj.filter) return
|
|
20216
|
-
if (stepObj.loop) return
|
|
20217
|
-
return
|
|
20780
|
+
return avs_pb21.Execution.Step.OutputDataCase.CUSTOM_CODE;
|
|
20781
|
+
if (stepObj.restApi) return avs_pb21.Execution.Step.OutputDataCase.REST_API;
|
|
20782
|
+
if (stepObj.branch) return avs_pb21.Execution.Step.OutputDataCase.BRANCH;
|
|
20783
|
+
if (stepObj.filter) return avs_pb21.Execution.Step.OutputDataCase.FILTER;
|
|
20784
|
+
if (stepObj.loop) return avs_pb21.Execution.Step.OutputDataCase.LOOP;
|
|
20785
|
+
if (stepObj.balance) return avs_pb21.Execution.Step.OutputDataCase.BALANCE;
|
|
20786
|
+
return avs_pb21.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
|
|
20218
20787
|
}
|
|
20219
20788
|
static fromResponse(step) {
|
|
20220
20789
|
let configData = void 0;
|
|
@@ -20291,17 +20860,17 @@ var step_default = Step;
|
|
|
20291
20860
|
// src/models/execution.ts
|
|
20292
20861
|
function convertProtobufExecutionStatusToTypes(protobufStatus) {
|
|
20293
20862
|
switch (protobufStatus) {
|
|
20294
|
-
case
|
|
20295
|
-
return
|
|
20296
|
-
case
|
|
20297
|
-
return
|
|
20298
|
-
case
|
|
20299
|
-
return
|
|
20300
|
-
case
|
|
20301
|
-
return
|
|
20302
|
-
case
|
|
20863
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_PENDING:
|
|
20864
|
+
return import_types21.ExecutionStatus.Pending;
|
|
20865
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
|
|
20866
|
+
return import_types21.ExecutionStatus.Success;
|
|
20867
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_FAILED:
|
|
20868
|
+
return import_types21.ExecutionStatus.Failed;
|
|
20869
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
|
|
20870
|
+
return import_types21.ExecutionStatus.PartialSuccess;
|
|
20871
|
+
case avs_pb22.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
|
|
20303
20872
|
default:
|
|
20304
|
-
return
|
|
20873
|
+
return import_types21.ExecutionStatus.Unspecified;
|
|
20305
20874
|
}
|
|
20306
20875
|
}
|
|
20307
20876
|
var Execution2 = class _Execution {
|
|
@@ -20348,7 +20917,7 @@ var Execution2 = class _Execution {
|
|
|
20348
20917
|
var execution_default = Execution2;
|
|
20349
20918
|
|
|
20350
20919
|
// src/models/secret.ts
|
|
20351
|
-
var
|
|
20920
|
+
var avs_pb23 = __toESM(require_avs_pb());
|
|
20352
20921
|
var Secret = class {
|
|
20353
20922
|
constructor(props) {
|
|
20354
20923
|
this.name = props.name;
|
|
@@ -20361,7 +20930,7 @@ var Secret = class {
|
|
|
20361
20930
|
this.description = props.description;
|
|
20362
20931
|
}
|
|
20363
20932
|
toRequest() {
|
|
20364
|
-
const request = new
|
|
20933
|
+
const request = new avs_pb23.CreateOrUpdateSecretReq();
|
|
20365
20934
|
request.setName(this.name);
|
|
20366
20935
|
if (this.secret) {
|
|
20367
20936
|
request.setSecret(this.secret);
|
|
@@ -20378,22 +20947,22 @@ var Secret = class {
|
|
|
20378
20947
|
var secret_default = Secret;
|
|
20379
20948
|
|
|
20380
20949
|
// src/index.ts
|
|
20381
|
-
var
|
|
20950
|
+
var import_types22 = require("@avaprotocol/types");
|
|
20382
20951
|
var import_avs_pb = __toESM(require_avs_pb());
|
|
20383
20952
|
var google_protobuf_struct_pb4 = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
20384
20953
|
function convertProtobufExecutionStatus(protobufStatus) {
|
|
20385
20954
|
switch (protobufStatus) {
|
|
20386
20955
|
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_PENDING:
|
|
20387
|
-
return
|
|
20956
|
+
return import_types22.ExecutionStatus.Pending;
|
|
20388
20957
|
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_SUCCESS:
|
|
20389
|
-
return
|
|
20958
|
+
return import_types22.ExecutionStatus.Success;
|
|
20390
20959
|
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_FAILED:
|
|
20391
|
-
return
|
|
20960
|
+
return import_types22.ExecutionStatus.Failed;
|
|
20392
20961
|
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_PARTIAL_SUCCESS:
|
|
20393
|
-
return
|
|
20962
|
+
return import_types22.ExecutionStatus.PartialSuccess;
|
|
20394
20963
|
case import_avs_pb.ExecutionStatus.EXECUTION_STATUS_UNSPECIFIED:
|
|
20395
20964
|
default:
|
|
20396
|
-
return
|
|
20965
|
+
return import_types22.ExecutionStatus.Unspecified;
|
|
20397
20966
|
}
|
|
20398
20967
|
}
|
|
20399
20968
|
var BaseClient = class {
|
|
@@ -20436,7 +21005,7 @@ var BaseClient = class {
|
|
|
20436
21005
|
sendFastRequest(method, request, options) {
|
|
20437
21006
|
return this.sendGrpcRequest(method, request, {
|
|
20438
21007
|
...options,
|
|
20439
|
-
timeout:
|
|
21008
|
+
timeout: import_types22.TimeoutPresets.FAST
|
|
20440
21009
|
});
|
|
20441
21010
|
}
|
|
20442
21011
|
/**
|
|
@@ -20449,7 +21018,7 @@ var BaseClient = class {
|
|
|
20449
21018
|
sendSlowRequest(method, request, options) {
|
|
20450
21019
|
return this.sendGrpcRequest(method, request, {
|
|
20451
21020
|
...options,
|
|
20452
|
-
timeout:
|
|
21021
|
+
timeout: import_types22.TimeoutPresets.SLOW
|
|
20453
21022
|
});
|
|
20454
21023
|
}
|
|
20455
21024
|
/**
|
|
@@ -20462,7 +21031,7 @@ var BaseClient = class {
|
|
|
20462
21031
|
sendNoRetryRequest(method, request, options) {
|
|
20463
21032
|
return this.sendGrpcRequest(method, request, {
|
|
20464
21033
|
...options,
|
|
20465
|
-
timeout:
|
|
21034
|
+
timeout: import_types22.TimeoutPresets.NO_RETRY
|
|
20466
21035
|
});
|
|
20467
21036
|
}
|
|
20468
21037
|
/**
|
|
@@ -20487,7 +21056,7 @@ var BaseClient = class {
|
|
|
20487
21056
|
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
20488
21057
|
*/
|
|
20489
21058
|
async getSignatureFormat(wallet) {
|
|
20490
|
-
const request = new
|
|
21059
|
+
const request = new avs_pb24.GetSignatureFormatReq();
|
|
20491
21060
|
request.setWallet(wallet);
|
|
20492
21061
|
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
20493
21062
|
return { message: result.getMessage() };
|
|
@@ -20502,7 +21071,7 @@ var BaseClient = class {
|
|
|
20502
21071
|
message,
|
|
20503
21072
|
apiKey
|
|
20504
21073
|
}) {
|
|
20505
|
-
const request = new
|
|
21074
|
+
const request = new avs_pb24.GetKeyReq();
|
|
20506
21075
|
request.setMessage(message);
|
|
20507
21076
|
request.setSignature(apiKey);
|
|
20508
21077
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
@@ -20518,7 +21087,7 @@ var BaseClient = class {
|
|
|
20518
21087
|
message,
|
|
20519
21088
|
signature
|
|
20520
21089
|
}) {
|
|
20521
|
-
const request = new
|
|
21090
|
+
const request = new avs_pb24.GetKeyReq();
|
|
20522
21091
|
request.setMessage(message);
|
|
20523
21092
|
request.setSignature(signature);
|
|
20524
21093
|
const result = await this.sendGrpcRequest(
|
|
@@ -20594,7 +21163,7 @@ var BaseClient = class {
|
|
|
20594
21163
|
const metadata = new import_grpc_js.Metadata();
|
|
20595
21164
|
const authKey = options?.authKey || this.authKey;
|
|
20596
21165
|
if (authKey) {
|
|
20597
|
-
metadata.set(
|
|
21166
|
+
metadata.set(import_types22.AUTH_KEY_HEADER, authKey);
|
|
20598
21167
|
}
|
|
20599
21168
|
const call = this.rpcClient[method](
|
|
20600
21169
|
request,
|
|
@@ -20654,7 +21223,7 @@ var Client = class extends BaseClient {
|
|
|
20654
21223
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
20655
21224
|
*/
|
|
20656
21225
|
async getWallets(options) {
|
|
20657
|
-
const request = new
|
|
21226
|
+
const request = new avs_pb24.ListWalletReq();
|
|
20658
21227
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
20659
21228
|
return result.getItemsList().map((item) => item.toObject());
|
|
20660
21229
|
}
|
|
@@ -20666,7 +21235,7 @@ var Client = class extends BaseClient {
|
|
|
20666
21235
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
20667
21236
|
*/
|
|
20668
21237
|
async getWallet({ salt, factoryAddress }, options) {
|
|
20669
|
-
const request = new
|
|
21238
|
+
const request = new avs_pb24.GetWalletReq();
|
|
20670
21239
|
request.setSalt(salt);
|
|
20671
21240
|
if (factoryAddress) {
|
|
20672
21241
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -20695,7 +21264,7 @@ var Client = class extends BaseClient {
|
|
|
20695
21264
|
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
20696
21265
|
*/
|
|
20697
21266
|
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
20698
|
-
const request = new
|
|
21267
|
+
const request = new avs_pb24.SetWalletReq();
|
|
20699
21268
|
request.setSalt(salt);
|
|
20700
21269
|
if (factoryAddress) {
|
|
20701
21270
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -20732,7 +21301,7 @@ var Client = class extends BaseClient {
|
|
|
20732
21301
|
token,
|
|
20733
21302
|
smartWalletAddress
|
|
20734
21303
|
}, options) {
|
|
20735
|
-
const request = new
|
|
21304
|
+
const request = new avs_pb24.WithdrawFundsReq();
|
|
20736
21305
|
request.setRecipientAddress(recipientAddress);
|
|
20737
21306
|
request.setAmount(amount);
|
|
20738
21307
|
request.setToken(token);
|
|
@@ -20778,7 +21347,7 @@ var Client = class extends BaseClient {
|
|
|
20778
21347
|
* @returns {Promise<{ items: WorkflowProps[]; pageInfo: PageInfo }>} - The list of WorkflowProps objects with nested pagination metadata
|
|
20779
21348
|
*/
|
|
20780
21349
|
async getWorkflows(addresses, options) {
|
|
20781
|
-
const request = new
|
|
21350
|
+
const request = new avs_pb24.ListTasksReq();
|
|
20782
21351
|
for (const a of addresses) {
|
|
20783
21352
|
request.addSmartWalletAddress(a);
|
|
20784
21353
|
}
|
|
@@ -20788,7 +21357,7 @@ var Client = class extends BaseClient {
|
|
|
20788
21357
|
if (options?.after) {
|
|
20789
21358
|
request.setAfter(options.after);
|
|
20790
21359
|
}
|
|
20791
|
-
request.setLimit(options?.limit ||
|
|
21360
|
+
request.setLimit(options?.limit || import_types22.DEFAULT_LIMIT);
|
|
20792
21361
|
if (options?.includeNodes) {
|
|
20793
21362
|
request.setIncludeNodes(options.includeNodes);
|
|
20794
21363
|
}
|
|
@@ -20817,7 +21386,7 @@ var Client = class extends BaseClient {
|
|
|
20817
21386
|
* @returns {Promise<number>} - The count of workflows
|
|
20818
21387
|
*/
|
|
20819
21388
|
async getWorkflowCount(addresses, options) {
|
|
20820
|
-
const request = new
|
|
21389
|
+
const request = new avs_pb24.GetWorkflowCountReq();
|
|
20821
21390
|
request.setAddressesList(addresses);
|
|
20822
21391
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
20823
21392
|
return result.getTotal();
|
|
@@ -20833,7 +21402,7 @@ var Client = class extends BaseClient {
|
|
|
20833
21402
|
* @returns {Promise<{ items: ExecutionProps[]; pageInfo: PageInfo }>} - The list of ExecutionProps objects with nested pagination metadata
|
|
20834
21403
|
*/
|
|
20835
21404
|
async getExecutions(workflows, options) {
|
|
20836
|
-
const request = new
|
|
21405
|
+
const request = new avs_pb24.ListExecutionsReq();
|
|
20837
21406
|
for (const w of workflows) {
|
|
20838
21407
|
request.addTaskIds(w);
|
|
20839
21408
|
}
|
|
@@ -20843,7 +21412,7 @@ var Client = class extends BaseClient {
|
|
|
20843
21412
|
if (options?.after) {
|
|
20844
21413
|
request.setAfter(options.after);
|
|
20845
21414
|
}
|
|
20846
|
-
request.setLimit(options?.limit ||
|
|
21415
|
+
request.setLimit(options?.limit || import_types22.DEFAULT_LIMIT);
|
|
20847
21416
|
const result = await this.sendGrpcRequest("listExecutions", request, options);
|
|
20848
21417
|
const pageInfo = result.getPageInfo();
|
|
20849
21418
|
if (!pageInfo) {
|
|
@@ -20867,7 +21436,7 @@ var Client = class extends BaseClient {
|
|
|
20867
21436
|
* @returns {Promise<ExecutionProps>} - The ExecutionProps object
|
|
20868
21437
|
*/
|
|
20869
21438
|
async getExecution(workflowId, executionId, options) {
|
|
20870
|
-
const request = new
|
|
21439
|
+
const request = new avs_pb24.ExecutionReq();
|
|
20871
21440
|
request.setTaskId(workflowId);
|
|
20872
21441
|
request.setExecutionId(executionId);
|
|
20873
21442
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -20880,7 +21449,7 @@ var Client = class extends BaseClient {
|
|
|
20880
21449
|
* @returns {Promise<number>} - The count of executions
|
|
20881
21450
|
*/
|
|
20882
21451
|
async getExecutionCount(workflows, options) {
|
|
20883
|
-
const request = new
|
|
21452
|
+
const request = new avs_pb24.GetExecutionCountReq();
|
|
20884
21453
|
request.setWorkflowIdsList(workflows);
|
|
20885
21454
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
20886
21455
|
return result.getTotal();
|
|
@@ -20894,7 +21463,7 @@ var Client = class extends BaseClient {
|
|
|
20894
21463
|
* @returns {Promise<GetExecutionStatsResponse>} - Execution statistics
|
|
20895
21464
|
*/
|
|
20896
21465
|
async getExecutionStats(options) {
|
|
20897
|
-
const request = new
|
|
21466
|
+
const request = new avs_pb24.GetExecutionStatsReq();
|
|
20898
21467
|
if (options?.workflowIds && options.workflowIds.length > 0) {
|
|
20899
21468
|
request.setWorkflowIdsList(options.workflowIds);
|
|
20900
21469
|
}
|
|
@@ -20917,7 +21486,7 @@ var Client = class extends BaseClient {
|
|
|
20917
21486
|
* @returns {Promise<ExecutionStatus>} - The status of the execution
|
|
20918
21487
|
*/
|
|
20919
21488
|
async getExecutionStatus(workflowId, executionId, options) {
|
|
20920
|
-
const request = new
|
|
21489
|
+
const request = new avs_pb24.ExecutionReq();
|
|
20921
21490
|
request.setTaskId(workflowId);
|
|
20922
21491
|
request.setExecutionId(executionId);
|
|
20923
21492
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -20930,7 +21499,7 @@ var Client = class extends BaseClient {
|
|
|
20930
21499
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
20931
21500
|
*/
|
|
20932
21501
|
async getWorkflow(id, options) {
|
|
20933
|
-
const request = new
|
|
21502
|
+
const request = new avs_pb24.IdReq();
|
|
20934
21503
|
request.setId(id);
|
|
20935
21504
|
const result = await this.sendGrpcRequest(
|
|
20936
21505
|
"getTask",
|
|
@@ -20953,14 +21522,14 @@ var Client = class extends BaseClient {
|
|
|
20953
21522
|
triggerData,
|
|
20954
21523
|
isBlocking = false
|
|
20955
21524
|
}, options) {
|
|
20956
|
-
const request = new
|
|
21525
|
+
const request = new avs_pb24.TriggerTaskReq();
|
|
20957
21526
|
request.setTaskId(id);
|
|
20958
|
-
request.setTriggerType(
|
|
21527
|
+
request.setTriggerType(import_types22.TriggerTypeConverter.toProtobuf(triggerData.type));
|
|
20959
21528
|
request.setIsBlocking(isBlocking);
|
|
20960
21529
|
switch (triggerData.type) {
|
|
20961
|
-
case
|
|
21530
|
+
case import_types22.TriggerType.FixedTime: {
|
|
20962
21531
|
const fixedTimeData = triggerData;
|
|
20963
|
-
const fixedTimeOutput = new
|
|
21532
|
+
const fixedTimeOutput = new avs_pb24.FixedTimeTrigger.Output();
|
|
20964
21533
|
const triggerOutputData = {
|
|
20965
21534
|
timestamp: fixedTimeData.timestamp,
|
|
20966
21535
|
timestampIso: fixedTimeData.timestampIso
|
|
@@ -20973,9 +21542,9 @@ var Client = class extends BaseClient {
|
|
|
20973
21542
|
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
20974
21543
|
break;
|
|
20975
21544
|
}
|
|
20976
|
-
case
|
|
21545
|
+
case import_types22.TriggerType.Cron: {
|
|
20977
21546
|
const cronData = triggerData;
|
|
20978
|
-
const cronOutput = new
|
|
21547
|
+
const cronOutput = new avs_pb24.CronTrigger.Output();
|
|
20979
21548
|
const triggerOutputData = {
|
|
20980
21549
|
timestamp: cronData.timestamp,
|
|
20981
21550
|
timestampIso: cronData.timestampIso
|
|
@@ -20988,9 +21557,9 @@ var Client = class extends BaseClient {
|
|
|
20988
21557
|
request.setCronTrigger(cronOutput);
|
|
20989
21558
|
break;
|
|
20990
21559
|
}
|
|
20991
|
-
case
|
|
21560
|
+
case import_types22.TriggerType.Block: {
|
|
20992
21561
|
const blockData = triggerData;
|
|
20993
|
-
const blockOutput = new
|
|
21562
|
+
const blockOutput = new avs_pb24.BlockTrigger.Output();
|
|
20994
21563
|
const triggerOutputData = {
|
|
20995
21564
|
blockNumber: blockData.blockNumber,
|
|
20996
21565
|
blockHash: blockData.blockHash || "",
|
|
@@ -21008,9 +21577,9 @@ var Client = class extends BaseClient {
|
|
|
21008
21577
|
request.setBlockTrigger(blockOutput);
|
|
21009
21578
|
break;
|
|
21010
21579
|
}
|
|
21011
|
-
case
|
|
21580
|
+
case import_types22.TriggerType.Event: {
|
|
21012
21581
|
const eventData = triggerData;
|
|
21013
|
-
const eventOutput = new
|
|
21582
|
+
const eventOutput = new avs_pb24.EventTrigger.Output();
|
|
21014
21583
|
if (eventData.data) {
|
|
21015
21584
|
const protobufValue = convertJSValueToProtobuf(eventData.data);
|
|
21016
21585
|
eventOutput.setData(protobufValue);
|
|
@@ -21018,9 +21587,9 @@ var Client = class extends BaseClient {
|
|
|
21018
21587
|
request.setEventTrigger(eventOutput);
|
|
21019
21588
|
break;
|
|
21020
21589
|
}
|
|
21021
|
-
case
|
|
21590
|
+
case import_types22.TriggerType.Manual: {
|
|
21022
21591
|
const manualData = triggerData;
|
|
21023
|
-
const manualOutput = new
|
|
21592
|
+
const manualOutput = new avs_pb24.ManualTrigger.Output();
|
|
21024
21593
|
if (manualData.data) {
|
|
21025
21594
|
const protobufValue = convertJSValueToProtobuf(manualData.data);
|
|
21026
21595
|
manualOutput.setData(protobufValue);
|
|
@@ -21028,7 +21597,7 @@ var Client = class extends BaseClient {
|
|
|
21028
21597
|
request.setManualTrigger(manualOutput);
|
|
21029
21598
|
break;
|
|
21030
21599
|
}
|
|
21031
|
-
case
|
|
21600
|
+
case import_types22.TriggerType.Unspecified:
|
|
21032
21601
|
break;
|
|
21033
21602
|
default:
|
|
21034
21603
|
throw new Error(
|
|
@@ -21092,7 +21661,7 @@ var Client = class extends BaseClient {
|
|
|
21092
21661
|
* @returns {Promise<CancelTaskResponse>} - The response from canceling the workflow
|
|
21093
21662
|
*/
|
|
21094
21663
|
async cancelWorkflow(id, options) {
|
|
21095
|
-
const request = new
|
|
21664
|
+
const request = new avs_pb24.IdReq();
|
|
21096
21665
|
request.setId(id);
|
|
21097
21666
|
const result = await this.sendGrpcRequest("cancelTask", request, options);
|
|
21098
21667
|
return {
|
|
@@ -21111,7 +21680,7 @@ var Client = class extends BaseClient {
|
|
|
21111
21680
|
* @returns {Promise<DeleteTaskResponse>} - The response from deleting the workflow
|
|
21112
21681
|
*/
|
|
21113
21682
|
async deleteWorkflow(id, options) {
|
|
21114
|
-
const request = new
|
|
21683
|
+
const request = new avs_pb24.IdReq();
|
|
21115
21684
|
request.setId(id);
|
|
21116
21685
|
const result = await this.sendGrpcRequest("deleteTask", request, options);
|
|
21117
21686
|
return {
|
|
@@ -21134,7 +21703,7 @@ var Client = class extends BaseClient {
|
|
|
21134
21703
|
* @returns {Promise<CreateSecretResponse>} - Structured response with creation details
|
|
21135
21704
|
*/
|
|
21136
21705
|
async createSecret(name, value, options) {
|
|
21137
|
-
const request = new
|
|
21706
|
+
const request = new avs_pb24.CreateOrUpdateSecretReq();
|
|
21138
21707
|
request.setName(name);
|
|
21139
21708
|
request.setSecret(value);
|
|
21140
21709
|
if (options?.workflowId) {
|
|
@@ -21164,7 +21733,7 @@ var Client = class extends BaseClient {
|
|
|
21164
21733
|
* @returns {Promise<UpdateSecretResponse>} - Structured response with update details
|
|
21165
21734
|
*/
|
|
21166
21735
|
async updateSecret(name, value, options) {
|
|
21167
|
-
const request = new
|
|
21736
|
+
const request = new avs_pb24.CreateOrUpdateSecretReq();
|
|
21168
21737
|
request.setName(name);
|
|
21169
21738
|
request.setSecret(value);
|
|
21170
21739
|
if (options?.workflowId) {
|
|
@@ -21198,7 +21767,7 @@ var Client = class extends BaseClient {
|
|
|
21198
21767
|
* @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
|
|
21199
21768
|
*/
|
|
21200
21769
|
async getSecrets(options) {
|
|
21201
|
-
const request = new
|
|
21770
|
+
const request = new avs_pb24.ListSecretsReq();
|
|
21202
21771
|
if (options?.workflowId) {
|
|
21203
21772
|
request.setWorkflowId(options.workflowId);
|
|
21204
21773
|
}
|
|
@@ -21208,7 +21777,7 @@ var Client = class extends BaseClient {
|
|
|
21208
21777
|
if (options?.after) {
|
|
21209
21778
|
request.setAfter(options.after);
|
|
21210
21779
|
}
|
|
21211
|
-
request.setLimit(options?.limit ||
|
|
21780
|
+
request.setLimit(options?.limit || import_types22.DEFAULT_LIMIT);
|
|
21212
21781
|
if (options?.includeTimestamps) {
|
|
21213
21782
|
request.setIncludeTimestamps(options.includeTimestamps);
|
|
21214
21783
|
}
|
|
@@ -21253,7 +21822,7 @@ var Client = class extends BaseClient {
|
|
|
21253
21822
|
* @returns {Promise<DeleteSecretResponse>} - Structured response with deletion details
|
|
21254
21823
|
*/
|
|
21255
21824
|
async deleteSecret(name, options) {
|
|
21256
|
-
const request = new
|
|
21825
|
+
const request = new avs_pb24.DeleteSecretReq();
|
|
21257
21826
|
request.setName(name);
|
|
21258
21827
|
if (options?.workflowId) {
|
|
21259
21828
|
request.setWorkflowId(options.workflowId);
|
|
@@ -21282,22 +21851,22 @@ var Client = class extends BaseClient {
|
|
|
21282
21851
|
*/
|
|
21283
21852
|
async runNodeWithInputs({ nodeType, nodeConfig, inputVariables = {} }, options) {
|
|
21284
21853
|
const triggerTypes = [
|
|
21285
|
-
|
|
21286
|
-
|
|
21287
|
-
|
|
21288
|
-
|
|
21289
|
-
|
|
21854
|
+
import_types22.TriggerType.Block,
|
|
21855
|
+
import_types22.TriggerType.FixedTime,
|
|
21856
|
+
import_types22.TriggerType.Cron,
|
|
21857
|
+
import_types22.TriggerType.Event,
|
|
21858
|
+
import_types22.TriggerType.Manual
|
|
21290
21859
|
];
|
|
21291
21860
|
if (triggerTypes.includes(nodeType)) {
|
|
21292
21861
|
return {
|
|
21293
21862
|
success: false,
|
|
21294
21863
|
error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
|
|
21295
|
-
errorCode:
|
|
21864
|
+
errorCode: import_types22.ErrorCode.INVALID_REQUEST,
|
|
21296
21865
|
data: null
|
|
21297
21866
|
};
|
|
21298
21867
|
}
|
|
21299
|
-
const request = new
|
|
21300
|
-
const protobufNodeType =
|
|
21868
|
+
const request = new avs_pb24.RunNodeWithInputsReq();
|
|
21869
|
+
const protobufNodeType = import_types22.NodeTypeGoConverter.fromGoString(nodeType);
|
|
21301
21870
|
request.setNodeType(protobufNodeType);
|
|
21302
21871
|
const nodeConfigMap = request.getNodeConfigMap();
|
|
21303
21872
|
for (const [key, value] of Object.entries(nodeConfig)) {
|
|
@@ -21316,7 +21885,9 @@ var Client = class extends BaseClient {
|
|
|
21316
21885
|
error: result.getError(),
|
|
21317
21886
|
errorCode: result.getErrorCode() || void 0,
|
|
21318
21887
|
metadata: result.hasMetadata() ? toCamelCaseKeys(convertProtobufValueToJs(result.getMetadata())) : void 0,
|
|
21319
|
-
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
|
|
21888
|
+
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
|
|
21889
|
+
convertProtobufValueToJs(result.getExecutionContext())
|
|
21890
|
+
) : void 0
|
|
21320
21891
|
};
|
|
21321
21892
|
}
|
|
21322
21893
|
/**
|
|
@@ -21328,8 +21899,8 @@ var Client = class extends BaseClient {
|
|
|
21328
21899
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
21329
21900
|
*/
|
|
21330
21901
|
async runTrigger({ triggerType, triggerConfig }, options) {
|
|
21331
|
-
const request = new
|
|
21332
|
-
const protobufTriggerType =
|
|
21902
|
+
const request = new avs_pb24.RunTriggerReq();
|
|
21903
|
+
const protobufTriggerType = import_types22.TriggerTypeGoConverter.fromGoString(triggerType);
|
|
21333
21904
|
request.setTriggerType(protobufTriggerType);
|
|
21334
21905
|
const triggerConfigMap = request.getTriggerConfigMap();
|
|
21335
21906
|
for (const [key, value] of Object.entries(triggerConfig)) {
|
|
@@ -21352,7 +21923,9 @@ var Client = class extends BaseClient {
|
|
|
21352
21923
|
error: result.getError(),
|
|
21353
21924
|
errorCode: result.getErrorCode() || void 0,
|
|
21354
21925
|
metadata: toCamelCaseKeys(metadata),
|
|
21355
|
-
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
|
|
21926
|
+
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(
|
|
21927
|
+
convertProtobufValueToJs(result.getExecutionContext())
|
|
21928
|
+
) : void 0
|
|
21356
21929
|
};
|
|
21357
21930
|
}
|
|
21358
21931
|
/**
|
|
@@ -21366,7 +21939,7 @@ var Client = class extends BaseClient {
|
|
|
21366
21939
|
* @returns {Promise<ExecutionProps>} - The response from simulating the task
|
|
21367
21940
|
*/
|
|
21368
21941
|
async simulateWorkflow({ trigger, nodes, edges, inputVariables = {} }, options) {
|
|
21369
|
-
const request = new
|
|
21942
|
+
const request = new avs_pb24.SimulateTaskReq();
|
|
21370
21943
|
const triggerSdk = factory_default.create(trigger);
|
|
21371
21944
|
request.setTrigger(triggerSdk.toRequest());
|
|
21372
21945
|
const nodeMessages = nodes.map((node) => {
|
|
@@ -21395,7 +21968,7 @@ var Client = class extends BaseClient {
|
|
|
21395
21968
|
* @returns {Promise<GetTokenMetadataResponse>} - The response containing token metadata
|
|
21396
21969
|
*/
|
|
21397
21970
|
async getTokenMetadata({ address }, options) {
|
|
21398
|
-
const request = new
|
|
21971
|
+
const request = new avs_pb24.GetTokenMetadataReq();
|
|
21399
21972
|
request.setAddress(address);
|
|
21400
21973
|
const result = await this.sendGrpcRequest("getTokenMetadata", request, options);
|
|
21401
21974
|
const token = result.getToken();
|
|
@@ -21412,7 +21985,7 @@ var Client = class extends BaseClient {
|
|
|
21412
21985
|
}
|
|
21413
21986
|
/**
|
|
21414
21987
|
* Get comprehensive fee estimation for workflow deployment
|
|
21415
|
-
*
|
|
21988
|
+
*
|
|
21416
21989
|
* @param params - Fee estimation request parameters
|
|
21417
21990
|
* @param options - Optional request options (auth key, timeout)
|
|
21418
21991
|
* @returns Promise resolving to comprehensive fee breakdown
|
|
@@ -21425,7 +21998,7 @@ var Client = class extends BaseClient {
|
|
|
21425
21998
|
createdAt,
|
|
21426
21999
|
expireAt
|
|
21427
22000
|
}, options) {
|
|
21428
|
-
const request = new
|
|
22001
|
+
const request = new avs_pb24.EstimateFeesReq();
|
|
21429
22002
|
const triggerSdk = factory_default.create(trigger);
|
|
21430
22003
|
request.setTrigger(triggerSdk.toRequest());
|
|
21431
22004
|
const nodeMessages = nodes.map((node) => {
|
|
@@ -21509,7 +22082,9 @@ var Client = class extends BaseClient {
|
|
|
21509
22082
|
response.totalFees = this.convertFeeAmount(result.getTotalFees());
|
|
21510
22083
|
}
|
|
21511
22084
|
if (result.getTotalDiscounts()) {
|
|
21512
|
-
response.totalDiscounts = this.convertFeeAmount(
|
|
22085
|
+
response.totalDiscounts = this.convertFeeAmount(
|
|
22086
|
+
result.getTotalDiscounts()
|
|
22087
|
+
);
|
|
21513
22088
|
}
|
|
21514
22089
|
if (result.getFinalTotal()) {
|
|
21515
22090
|
response.finalTotal = this.convertFeeAmount(result.getFinalTotal());
|
|
@@ -21578,6 +22153,7 @@ var Client = class extends BaseClient {
|
|
|
21578
22153
|
};
|
|
21579
22154
|
// Annotate the CommonJS export names for ESM import in node:
|
|
21580
22155
|
0 && (module.exports = {
|
|
22156
|
+
BalanceNode,
|
|
21581
22157
|
BlockTrigger,
|
|
21582
22158
|
BranchNode,
|
|
21583
22159
|
Client,
|