@avaprotocol/sdk-js 1.6.8 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/index.d.ts +15 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +741 -15955
- package/dist/index.mjs +896 -578
- package/dist/models/execution.d.ts +3 -9
- package/dist/models/execution.d.ts.map +1 -1
- package/dist/models/execution.js +2 -53
- package/dist/models/step.d.ts +7 -5
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +48 -15
- package/dist/utils.d.ts +23 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +79 -0
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -53,8 +53,6 @@ var require_avs_pb = __commonJS({
|
|
|
53
53
|
}.call(null);
|
|
54
54
|
var google_protobuf_wrappers_pb = __require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
55
55
|
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
56
|
-
var google_protobuf_timestamp_pb = __require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
57
|
-
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
58
56
|
var google_protobuf_any_pb = __require("google-protobuf/google/protobuf/any_pb.js");
|
|
59
57
|
goog.object.extend(proto, google_protobuf_any_pb);
|
|
60
58
|
var google_protobuf_struct_pb = __require("google-protobuf/google/protobuf/struct_pb.js");
|
|
@@ -96,7 +94,6 @@ var require_avs_pb = __commonJS({
|
|
|
96
94
|
goog.exportSymbol("proto.aggregator.Evm.TransactionReceipt", null, global);
|
|
97
95
|
goog.exportSymbol("proto.aggregator.Evm.UserOp", null, global);
|
|
98
96
|
goog.exportSymbol("proto.aggregator.Execution", null, global);
|
|
99
|
-
goog.exportSymbol("proto.aggregator.Execution.OutputDataCase", null, global);
|
|
100
97
|
goog.exportSymbol("proto.aggregator.Execution.Step", null, global);
|
|
101
98
|
goog.exportSymbol("proto.aggregator.Execution.Step.OutputDataCase", null, global);
|
|
102
99
|
goog.exportSymbol("proto.aggregator.ExecutionReq", null, global);
|
|
@@ -155,6 +152,7 @@ var require_avs_pb = __commonJS({
|
|
|
155
152
|
goog.exportSymbol("proto.aggregator.RunTriggerResp.OutputDataCase", null, global);
|
|
156
153
|
goog.exportSymbol("proto.aggregator.Secret", null, global);
|
|
157
154
|
goog.exportSymbol("proto.aggregator.SetWalletReq", null, global);
|
|
155
|
+
goog.exportSymbol("proto.aggregator.SimulateTaskReq", null, global);
|
|
158
156
|
goog.exportSymbol("proto.aggregator.SmartWallet", null, global);
|
|
159
157
|
goog.exportSymbol("proto.aggregator.Task", null, global);
|
|
160
158
|
goog.exportSymbol("proto.aggregator.TaskEdge", null, global);
|
|
@@ -511,7 +509,7 @@ var require_avs_pb = __commonJS({
|
|
|
511
509
|
proto.aggregator.TaskNode.displayName = "proto.aggregator.TaskNode";
|
|
512
510
|
}
|
|
513
511
|
proto.aggregator.Execution = function(opt_data) {
|
|
514
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.Execution.repeatedFields_,
|
|
512
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.Execution.repeatedFields_, null);
|
|
515
513
|
};
|
|
516
514
|
goog.inherits(proto.aggregator.Execution, jspb.Message);
|
|
517
515
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -825,6 +823,13 @@ var require_avs_pb = __commonJS({
|
|
|
825
823
|
if (goog.DEBUG && !COMPILED) {
|
|
826
824
|
proto.aggregator.Evm.UserOp.displayName = "proto.aggregator.Evm.UserOp";
|
|
827
825
|
}
|
|
826
|
+
proto.aggregator.SimulateTaskReq = function(opt_data) {
|
|
827
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.SimulateTaskReq.repeatedFields_, null);
|
|
828
|
+
};
|
|
829
|
+
goog.inherits(proto.aggregator.SimulateTaskReq, jspb.Message);
|
|
830
|
+
if (goog.DEBUG && !COMPILED) {
|
|
831
|
+
proto.aggregator.SimulateTaskReq.displayName = "proto.aggregator.SimulateTaskReq";
|
|
832
|
+
}
|
|
828
833
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
829
834
|
proto.aggregator.IdReq.prototype.toObject = function(opt_includeInstance) {
|
|
830
835
|
return proto.aggregator.IdReq.toObject(opt_includeInstance, this);
|
|
@@ -5840,21 +5845,6 @@ var require_avs_pb = __commonJS({
|
|
|
5840
5845
|
return jspb.Message.getField(this, 18) != null;
|
|
5841
5846
|
};
|
|
5842
5847
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
5843
|
-
proto.aggregator.Execution.oneofGroups_ = [[10, 11, 12, 13, 14]];
|
|
5844
|
-
proto.aggregator.Execution.OutputDataCase = {
|
|
5845
|
-
OUTPUT_DATA_NOT_SET: 0,
|
|
5846
|
-
BLOCK_TRIGGER: 10,
|
|
5847
|
-
FIXED_TIME_TRIGGER: 11,
|
|
5848
|
-
CRON_TRIGGER: 12,
|
|
5849
|
-
EVENT_TRIGGER: 13,
|
|
5850
|
-
MANUAL_TRIGGER: 14
|
|
5851
|
-
};
|
|
5852
|
-
proto.aggregator.Execution.prototype.getOutputDataCase = function() {
|
|
5853
|
-
return (
|
|
5854
|
-
/** @type {proto.aggregator.Execution.OutputDataCase} */
|
|
5855
|
-
jspb.Message.computeOneofCase(this, proto.aggregator.Execution.oneofGroups_[0])
|
|
5856
|
-
);
|
|
5857
|
-
};
|
|
5858
5848
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5859
5849
|
proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
|
|
5860
5850
|
return proto.aggregator.Execution.toObject(opt_includeInstance, this);
|
|
@@ -5866,18 +5856,11 @@ var require_avs_pb = __commonJS({
|
|
|
5866
5856
|
endAt: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
5867
5857
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
5868
5858
|
error: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
5869
|
-
triggerType: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
5870
5859
|
stepsList: jspb.Message.toObjectList(
|
|
5871
5860
|
msg.getStepsList(),
|
|
5872
5861
|
proto.aggregator.Execution.Step.toObject,
|
|
5873
5862
|
includeInstance
|
|
5874
|
-
)
|
|
5875
|
-
triggerName: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
5876
|
-
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
5877
|
-
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
5878
|
-
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
5879
|
-
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
5880
|
-
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f)
|
|
5863
|
+
)
|
|
5881
5864
|
};
|
|
5882
5865
|
if (includeInstance) {
|
|
5883
5866
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5932,50 +5915,11 @@ var require_avs_pb = __commonJS({
|
|
|
5932
5915
|
);
|
|
5933
5916
|
msg.setError(value);
|
|
5934
5917
|
break;
|
|
5935
|
-
case 6:
|
|
5936
|
-
var value = (
|
|
5937
|
-
/** @type {!proto.aggregator.TriggerType} */
|
|
5938
|
-
reader.readEnum()
|
|
5939
|
-
);
|
|
5940
|
-
msg.setTriggerType(value);
|
|
5941
|
-
break;
|
|
5942
5918
|
case 8:
|
|
5943
5919
|
var value = new proto.aggregator.Execution.Step();
|
|
5944
5920
|
reader.readMessage(value, proto.aggregator.Execution.Step.deserializeBinaryFromReader);
|
|
5945
5921
|
msg.addSteps(value);
|
|
5946
5922
|
break;
|
|
5947
|
-
case 9:
|
|
5948
|
-
var value = (
|
|
5949
|
-
/** @type {string} */
|
|
5950
|
-
reader.readString()
|
|
5951
|
-
);
|
|
5952
|
-
msg.setTriggerName(value);
|
|
5953
|
-
break;
|
|
5954
|
-
case 10:
|
|
5955
|
-
var value = new proto.aggregator.BlockTrigger.Output();
|
|
5956
|
-
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
5957
|
-
msg.setBlockTrigger(value);
|
|
5958
|
-
break;
|
|
5959
|
-
case 11:
|
|
5960
|
-
var value = new proto.aggregator.FixedTimeTrigger.Output();
|
|
5961
|
-
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
|
|
5962
|
-
msg.setFixedTimeTrigger(value);
|
|
5963
|
-
break;
|
|
5964
|
-
case 12:
|
|
5965
|
-
var value = new proto.aggregator.CronTrigger.Output();
|
|
5966
|
-
reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
|
|
5967
|
-
msg.setCronTrigger(value);
|
|
5968
|
-
break;
|
|
5969
|
-
case 13:
|
|
5970
|
-
var value = new proto.aggregator.EventTrigger.Output();
|
|
5971
|
-
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
5972
|
-
msg.setEventTrigger(value);
|
|
5973
|
-
break;
|
|
5974
|
-
case 14:
|
|
5975
|
-
var value = new proto.aggregator.ManualTrigger.Output();
|
|
5976
|
-
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
5977
|
-
msg.setManualTrigger(value);
|
|
5978
|
-
break;
|
|
5979
5923
|
default:
|
|
5980
5924
|
reader.skipField();
|
|
5981
5925
|
break;
|
|
@@ -6025,13 +5969,6 @@ var require_avs_pb = __commonJS({
|
|
|
6025
5969
|
f
|
|
6026
5970
|
);
|
|
6027
5971
|
}
|
|
6028
|
-
f = message.getTriggerType();
|
|
6029
|
-
if (f !== 0) {
|
|
6030
|
-
writer.writeEnum(
|
|
6031
|
-
6,
|
|
6032
|
-
f
|
|
6033
|
-
);
|
|
6034
|
-
}
|
|
6035
5972
|
f = message.getStepsList();
|
|
6036
5973
|
if (f.length > 0) {
|
|
6037
5974
|
writer.writeRepeatedMessage(
|
|
@@ -6040,58 +5977,16 @@ var require_avs_pb = __commonJS({
|
|
|
6040
5977
|
proto.aggregator.Execution.Step.serializeBinaryToWriter
|
|
6041
5978
|
);
|
|
6042
5979
|
}
|
|
6043
|
-
f = message.getTriggerName();
|
|
6044
|
-
if (f.length > 0) {
|
|
6045
|
-
writer.writeString(
|
|
6046
|
-
9,
|
|
6047
|
-
f
|
|
6048
|
-
);
|
|
6049
|
-
}
|
|
6050
|
-
f = message.getBlockTrigger();
|
|
6051
|
-
if (f != null) {
|
|
6052
|
-
writer.writeMessage(
|
|
6053
|
-
10,
|
|
6054
|
-
f,
|
|
6055
|
-
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
6056
|
-
);
|
|
6057
|
-
}
|
|
6058
|
-
f = message.getFixedTimeTrigger();
|
|
6059
|
-
if (f != null) {
|
|
6060
|
-
writer.writeMessage(
|
|
6061
|
-
11,
|
|
6062
|
-
f,
|
|
6063
|
-
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
6064
|
-
);
|
|
6065
|
-
}
|
|
6066
|
-
f = message.getCronTrigger();
|
|
6067
|
-
if (f != null) {
|
|
6068
|
-
writer.writeMessage(
|
|
6069
|
-
12,
|
|
6070
|
-
f,
|
|
6071
|
-
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
6072
|
-
);
|
|
6073
|
-
}
|
|
6074
|
-
f = message.getEventTrigger();
|
|
6075
|
-
if (f != null) {
|
|
6076
|
-
writer.writeMessage(
|
|
6077
|
-
13,
|
|
6078
|
-
f,
|
|
6079
|
-
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
6080
|
-
);
|
|
6081
|
-
}
|
|
6082
|
-
f = message.getManualTrigger();
|
|
6083
|
-
if (f != null) {
|
|
6084
|
-
writer.writeMessage(
|
|
6085
|
-
14,
|
|
6086
|
-
f,
|
|
6087
|
-
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
6088
|
-
);
|
|
6089
|
-
}
|
|
6090
5980
|
};
|
|
6091
5981
|
proto.aggregator.Execution.Step.repeatedFields_ = [16];
|
|
6092
|
-
proto.aggregator.Execution.Step.oneofGroups_ = [[3, 4, 5, 6, 7, 8, 9, 10, 11]];
|
|
5982
|
+
proto.aggregator.Execution.Step.oneofGroups_ = [[20, 21, 22, 23, 24, 3, 4, 5, 6, 7, 8, 9, 10, 11]];
|
|
6093
5983
|
proto.aggregator.Execution.Step.OutputDataCase = {
|
|
6094
5984
|
OUTPUT_DATA_NOT_SET: 0,
|
|
5985
|
+
BLOCK_TRIGGER: 20,
|
|
5986
|
+
FIXED_TIME_TRIGGER: 21,
|
|
5987
|
+
CRON_TRIGGER: 22,
|
|
5988
|
+
EVENT_TRIGGER: 23,
|
|
5989
|
+
MANUAL_TRIGGER: 24,
|
|
6095
5990
|
ETH_TRANSFER: 3,
|
|
6096
5991
|
GRAPHQL: 4,
|
|
6097
5992
|
CONTRACT_READ: 5,
|
|
@@ -6114,8 +6009,18 @@ var require_avs_pb = __commonJS({
|
|
|
6114
6009
|
};
|
|
6115
6010
|
proto.aggregator.Execution.Step.toObject = function(includeInstance, msg) {
|
|
6116
6011
|
var f, obj = {
|
|
6117
|
-
|
|
6012
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6013
|
+
type: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
6014
|
+
name: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
6118
6015
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
6016
|
+
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
6017
|
+
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
6018
|
+
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
|
|
6019
|
+
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
6020
|
+
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
6021
|
+
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
6022
|
+
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
6023
|
+
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f),
|
|
6119
6024
|
ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
|
|
6120
6025
|
graphql: (f = msg.getGraphql()) && proto.aggregator.GraphQLQueryNode.Output.toObject(includeInstance, f),
|
|
6121
6026
|
contractRead: (f = msg.getContractRead()) && proto.aggregator.ContractReadNode.Output.toObject(includeInstance, f),
|
|
@@ -6125,11 +6030,8 @@ var require_avs_pb = __commonJS({
|
|
|
6125
6030
|
branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.Output.toObject(includeInstance, f),
|
|
6126
6031
|
filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.Output.toObject(includeInstance, f),
|
|
6127
6032
|
loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.Output.toObject(includeInstance, f),
|
|
6128
|
-
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
6129
|
-
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
6130
6033
|
startAt: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
6131
|
-
endAt: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
6132
|
-
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f
|
|
6034
|
+
endAt: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
6133
6035
|
};
|
|
6134
6036
|
if (includeInstance) {
|
|
6135
6037
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6154,7 +6056,21 @@ var require_avs_pb = __commonJS({
|
|
|
6154
6056
|
/** @type {string} */
|
|
6155
6057
|
reader.readString()
|
|
6156
6058
|
);
|
|
6157
|
-
msg.
|
|
6059
|
+
msg.setId(value);
|
|
6060
|
+
break;
|
|
6061
|
+
case 17:
|
|
6062
|
+
var value = (
|
|
6063
|
+
/** @type {string} */
|
|
6064
|
+
reader.readString()
|
|
6065
|
+
);
|
|
6066
|
+
msg.setType(value);
|
|
6067
|
+
break;
|
|
6068
|
+
case 18:
|
|
6069
|
+
var value = (
|
|
6070
|
+
/** @type {string} */
|
|
6071
|
+
reader.readString()
|
|
6072
|
+
);
|
|
6073
|
+
msg.setName(value);
|
|
6158
6074
|
break;
|
|
6159
6075
|
case 2:
|
|
6160
6076
|
var value = (
|
|
@@ -6163,6 +6079,52 @@ var require_avs_pb = __commonJS({
|
|
|
6163
6079
|
);
|
|
6164
6080
|
msg.setSuccess(value);
|
|
6165
6081
|
break;
|
|
6082
|
+
case 13:
|
|
6083
|
+
var value = (
|
|
6084
|
+
/** @type {string} */
|
|
6085
|
+
reader.readString()
|
|
6086
|
+
);
|
|
6087
|
+
msg.setError(value);
|
|
6088
|
+
break;
|
|
6089
|
+
case 12:
|
|
6090
|
+
var value = (
|
|
6091
|
+
/** @type {string} */
|
|
6092
|
+
reader.readString()
|
|
6093
|
+
);
|
|
6094
|
+
msg.setLog(value);
|
|
6095
|
+
break;
|
|
6096
|
+
case 16:
|
|
6097
|
+
var value = (
|
|
6098
|
+
/** @type {string} */
|
|
6099
|
+
reader.readString()
|
|
6100
|
+
);
|
|
6101
|
+
msg.addInputs(value);
|
|
6102
|
+
break;
|
|
6103
|
+
case 20:
|
|
6104
|
+
var value = new proto.aggregator.BlockTrigger.Output();
|
|
6105
|
+
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
6106
|
+
msg.setBlockTrigger(value);
|
|
6107
|
+
break;
|
|
6108
|
+
case 21:
|
|
6109
|
+
var value = new proto.aggregator.FixedTimeTrigger.Output();
|
|
6110
|
+
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
|
|
6111
|
+
msg.setFixedTimeTrigger(value);
|
|
6112
|
+
break;
|
|
6113
|
+
case 22:
|
|
6114
|
+
var value = new proto.aggregator.CronTrigger.Output();
|
|
6115
|
+
reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
|
|
6116
|
+
msg.setCronTrigger(value);
|
|
6117
|
+
break;
|
|
6118
|
+
case 23:
|
|
6119
|
+
var value = new proto.aggregator.EventTrigger.Output();
|
|
6120
|
+
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
6121
|
+
msg.setEventTrigger(value);
|
|
6122
|
+
break;
|
|
6123
|
+
case 24:
|
|
6124
|
+
var value = new proto.aggregator.ManualTrigger.Output();
|
|
6125
|
+
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
6126
|
+
msg.setManualTrigger(value);
|
|
6127
|
+
break;
|
|
6166
6128
|
case 3:
|
|
6167
6129
|
var value = new proto.aggregator.ETHTransferNode.Output();
|
|
6168
6130
|
reader.readMessage(value, proto.aggregator.ETHTransferNode.Output.deserializeBinaryFromReader);
|
|
@@ -6208,20 +6170,6 @@ var require_avs_pb = __commonJS({
|
|
|
6208
6170
|
reader.readMessage(value, proto.aggregator.LoopNode.Output.deserializeBinaryFromReader);
|
|
6209
6171
|
msg.setLoop(value);
|
|
6210
6172
|
break;
|
|
6211
|
-
case 12:
|
|
6212
|
-
var value = (
|
|
6213
|
-
/** @type {string} */
|
|
6214
|
-
reader.readString()
|
|
6215
|
-
);
|
|
6216
|
-
msg.setLog(value);
|
|
6217
|
-
break;
|
|
6218
|
-
case 13:
|
|
6219
|
-
var value = (
|
|
6220
|
-
/** @type {string} */
|
|
6221
|
-
reader.readString()
|
|
6222
|
-
);
|
|
6223
|
-
msg.setError(value);
|
|
6224
|
-
break;
|
|
6225
6173
|
case 14:
|
|
6226
6174
|
var value = (
|
|
6227
6175
|
/** @type {number} */
|
|
@@ -6236,13 +6184,6 @@ var require_avs_pb = __commonJS({
|
|
|
6236
6184
|
);
|
|
6237
6185
|
msg.setEndAt(value);
|
|
6238
6186
|
break;
|
|
6239
|
-
case 16:
|
|
6240
|
-
var value = (
|
|
6241
|
-
/** @type {string} */
|
|
6242
|
-
reader.readString()
|
|
6243
|
-
);
|
|
6244
|
-
msg.addInputs(value);
|
|
6245
|
-
break;
|
|
6246
6187
|
default:
|
|
6247
6188
|
reader.skipField();
|
|
6248
6189
|
break;
|
|
@@ -6257,13 +6198,27 @@ var require_avs_pb = __commonJS({
|
|
|
6257
6198
|
};
|
|
6258
6199
|
proto.aggregator.Execution.Step.serializeBinaryToWriter = function(message, writer) {
|
|
6259
6200
|
var f = void 0;
|
|
6260
|
-
f = message.
|
|
6201
|
+
f = message.getId();
|
|
6261
6202
|
if (f.length > 0) {
|
|
6262
6203
|
writer.writeString(
|
|
6263
6204
|
1,
|
|
6264
6205
|
f
|
|
6265
6206
|
);
|
|
6266
6207
|
}
|
|
6208
|
+
f = message.getType();
|
|
6209
|
+
if (f.length > 0) {
|
|
6210
|
+
writer.writeString(
|
|
6211
|
+
17,
|
|
6212
|
+
f
|
|
6213
|
+
);
|
|
6214
|
+
}
|
|
6215
|
+
f = message.getName();
|
|
6216
|
+
if (f.length > 0) {
|
|
6217
|
+
writer.writeString(
|
|
6218
|
+
18,
|
|
6219
|
+
f
|
|
6220
|
+
);
|
|
6221
|
+
}
|
|
6267
6222
|
f = message.getSuccess();
|
|
6268
6223
|
if (f) {
|
|
6269
6224
|
writer.writeBool(
|
|
@@ -6271,36 +6226,97 @@ var require_avs_pb = __commonJS({
|
|
|
6271
6226
|
f
|
|
6272
6227
|
);
|
|
6273
6228
|
}
|
|
6274
|
-
f = message.
|
|
6229
|
+
f = message.getError();
|
|
6230
|
+
if (f.length > 0) {
|
|
6231
|
+
writer.writeString(
|
|
6232
|
+
13,
|
|
6233
|
+
f
|
|
6234
|
+
);
|
|
6235
|
+
}
|
|
6236
|
+
f = message.getLog();
|
|
6237
|
+
if (f.length > 0) {
|
|
6238
|
+
writer.writeString(
|
|
6239
|
+
12,
|
|
6240
|
+
f
|
|
6241
|
+
);
|
|
6242
|
+
}
|
|
6243
|
+
f = message.getInputsList();
|
|
6244
|
+
if (f.length > 0) {
|
|
6245
|
+
writer.writeRepeatedString(
|
|
6246
|
+
16,
|
|
6247
|
+
f
|
|
6248
|
+
);
|
|
6249
|
+
}
|
|
6250
|
+
f = message.getBlockTrigger();
|
|
6275
6251
|
if (f != null) {
|
|
6276
6252
|
writer.writeMessage(
|
|
6277
|
-
|
|
6253
|
+
20,
|
|
6278
6254
|
f,
|
|
6279
|
-
proto.aggregator.
|
|
6255
|
+
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
6280
6256
|
);
|
|
6281
6257
|
}
|
|
6282
|
-
f = message.
|
|
6258
|
+
f = message.getFixedTimeTrigger();
|
|
6283
6259
|
if (f != null) {
|
|
6284
6260
|
writer.writeMessage(
|
|
6285
|
-
|
|
6261
|
+
21,
|
|
6286
6262
|
f,
|
|
6287
|
-
proto.aggregator.
|
|
6263
|
+
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
6288
6264
|
);
|
|
6289
6265
|
}
|
|
6290
|
-
f = message.
|
|
6266
|
+
f = message.getCronTrigger();
|
|
6291
6267
|
if (f != null) {
|
|
6292
6268
|
writer.writeMessage(
|
|
6293
|
-
|
|
6269
|
+
22,
|
|
6294
6270
|
f,
|
|
6295
|
-
proto.aggregator.
|
|
6271
|
+
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
6296
6272
|
);
|
|
6297
6273
|
}
|
|
6298
|
-
f = message.
|
|
6274
|
+
f = message.getEventTrigger();
|
|
6299
6275
|
if (f != null) {
|
|
6300
6276
|
writer.writeMessage(
|
|
6301
|
-
|
|
6277
|
+
23,
|
|
6302
6278
|
f,
|
|
6303
|
-
proto.aggregator.
|
|
6279
|
+
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
6280
|
+
);
|
|
6281
|
+
}
|
|
6282
|
+
f = message.getManualTrigger();
|
|
6283
|
+
if (f != null) {
|
|
6284
|
+
writer.writeMessage(
|
|
6285
|
+
24,
|
|
6286
|
+
f,
|
|
6287
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
6288
|
+
);
|
|
6289
|
+
}
|
|
6290
|
+
f = message.getEthTransfer();
|
|
6291
|
+
if (f != null) {
|
|
6292
|
+
writer.writeMessage(
|
|
6293
|
+
3,
|
|
6294
|
+
f,
|
|
6295
|
+
proto.aggregator.ETHTransferNode.Output.serializeBinaryToWriter
|
|
6296
|
+
);
|
|
6297
|
+
}
|
|
6298
|
+
f = message.getGraphql();
|
|
6299
|
+
if (f != null) {
|
|
6300
|
+
writer.writeMessage(
|
|
6301
|
+
4,
|
|
6302
|
+
f,
|
|
6303
|
+
proto.aggregator.GraphQLQueryNode.Output.serializeBinaryToWriter
|
|
6304
|
+
);
|
|
6305
|
+
}
|
|
6306
|
+
f = message.getContractRead();
|
|
6307
|
+
if (f != null) {
|
|
6308
|
+
writer.writeMessage(
|
|
6309
|
+
5,
|
|
6310
|
+
f,
|
|
6311
|
+
proto.aggregator.ContractReadNode.Output.serializeBinaryToWriter
|
|
6312
|
+
);
|
|
6313
|
+
}
|
|
6314
|
+
f = message.getContractWrite();
|
|
6315
|
+
if (f != null) {
|
|
6316
|
+
writer.writeMessage(
|
|
6317
|
+
6,
|
|
6318
|
+
f,
|
|
6319
|
+
proto.aggregator.ContractWriteNode.Output.serializeBinaryToWriter
|
|
6304
6320
|
);
|
|
6305
6321
|
}
|
|
6306
6322
|
f = message.getCustomCode();
|
|
@@ -6343,20 +6359,6 @@ var require_avs_pb = __commonJS({
|
|
|
6343
6359
|
proto.aggregator.LoopNode.Output.serializeBinaryToWriter
|
|
6344
6360
|
);
|
|
6345
6361
|
}
|
|
6346
|
-
f = message.getLog();
|
|
6347
|
-
if (f.length > 0) {
|
|
6348
|
-
writer.writeString(
|
|
6349
|
-
12,
|
|
6350
|
-
f
|
|
6351
|
-
);
|
|
6352
|
-
}
|
|
6353
|
-
f = message.getError();
|
|
6354
|
-
if (f.length > 0) {
|
|
6355
|
-
writer.writeString(
|
|
6356
|
-
13,
|
|
6357
|
-
f
|
|
6358
|
-
);
|
|
6359
|
-
}
|
|
6360
6362
|
f = message.getStartAt();
|
|
6361
6363
|
if (f !== 0) {
|
|
6362
6364
|
writer.writeInt64(
|
|
@@ -6371,23 +6373,34 @@ var require_avs_pb = __commonJS({
|
|
|
6371
6373
|
f
|
|
6372
6374
|
);
|
|
6373
6375
|
}
|
|
6374
|
-
f = message.getInputsList();
|
|
6375
|
-
if (f.length > 0) {
|
|
6376
|
-
writer.writeRepeatedString(
|
|
6377
|
-
16,
|
|
6378
|
-
f
|
|
6379
|
-
);
|
|
6380
|
-
}
|
|
6381
6376
|
};
|
|
6382
|
-
proto.aggregator.Execution.Step.prototype.
|
|
6377
|
+
proto.aggregator.Execution.Step.prototype.getId = function() {
|
|
6383
6378
|
return (
|
|
6384
6379
|
/** @type {string} */
|
|
6385
6380
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
6386
6381
|
);
|
|
6387
6382
|
};
|
|
6388
|
-
proto.aggregator.Execution.Step.prototype.
|
|
6383
|
+
proto.aggregator.Execution.Step.prototype.setId = function(value) {
|
|
6389
6384
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6390
6385
|
};
|
|
6386
|
+
proto.aggregator.Execution.Step.prototype.getType = function() {
|
|
6387
|
+
return (
|
|
6388
|
+
/** @type {string} */
|
|
6389
|
+
jspb.Message.getFieldWithDefault(this, 17, "")
|
|
6390
|
+
);
|
|
6391
|
+
};
|
|
6392
|
+
proto.aggregator.Execution.Step.prototype.setType = function(value) {
|
|
6393
|
+
return jspb.Message.setProto3StringField(this, 17, value);
|
|
6394
|
+
};
|
|
6395
|
+
proto.aggregator.Execution.Step.prototype.getName = function() {
|
|
6396
|
+
return (
|
|
6397
|
+
/** @type {string} */
|
|
6398
|
+
jspb.Message.getFieldWithDefault(this, 18, "")
|
|
6399
|
+
);
|
|
6400
|
+
};
|
|
6401
|
+
proto.aggregator.Execution.Step.prototype.setName = function(value) {
|
|
6402
|
+
return jspb.Message.setProto3StringField(this, 18, value);
|
|
6403
|
+
};
|
|
6391
6404
|
proto.aggregator.Execution.Step.prototype.getSuccess = function() {
|
|
6392
6405
|
return (
|
|
6393
6406
|
/** @type {boolean} */
|
|
@@ -6397,6 +6410,114 @@ var require_avs_pb = __commonJS({
|
|
|
6397
6410
|
proto.aggregator.Execution.Step.prototype.setSuccess = function(value) {
|
|
6398
6411
|
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
6399
6412
|
};
|
|
6413
|
+
proto.aggregator.Execution.Step.prototype.getError = function() {
|
|
6414
|
+
return (
|
|
6415
|
+
/** @type {string} */
|
|
6416
|
+
jspb.Message.getFieldWithDefault(this, 13, "")
|
|
6417
|
+
);
|
|
6418
|
+
};
|
|
6419
|
+
proto.aggregator.Execution.Step.prototype.setError = function(value) {
|
|
6420
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
6421
|
+
};
|
|
6422
|
+
proto.aggregator.Execution.Step.prototype.getLog = function() {
|
|
6423
|
+
return (
|
|
6424
|
+
/** @type {string} */
|
|
6425
|
+
jspb.Message.getFieldWithDefault(this, 12, "")
|
|
6426
|
+
);
|
|
6427
|
+
};
|
|
6428
|
+
proto.aggregator.Execution.Step.prototype.setLog = function(value) {
|
|
6429
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
6430
|
+
};
|
|
6431
|
+
proto.aggregator.Execution.Step.prototype.getInputsList = function() {
|
|
6432
|
+
return (
|
|
6433
|
+
/** @type {!Array<string>} */
|
|
6434
|
+
jspb.Message.getRepeatedField(this, 16)
|
|
6435
|
+
);
|
|
6436
|
+
};
|
|
6437
|
+
proto.aggregator.Execution.Step.prototype.setInputsList = function(value) {
|
|
6438
|
+
return jspb.Message.setField(this, 16, value || []);
|
|
6439
|
+
};
|
|
6440
|
+
proto.aggregator.Execution.Step.prototype.addInputs = function(value, opt_index) {
|
|
6441
|
+
return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
|
|
6442
|
+
};
|
|
6443
|
+
proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
|
|
6444
|
+
return this.setInputsList([]);
|
|
6445
|
+
};
|
|
6446
|
+
proto.aggregator.Execution.Step.prototype.getBlockTrigger = function() {
|
|
6447
|
+
return (
|
|
6448
|
+
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
6449
|
+
jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Output, 20)
|
|
6450
|
+
);
|
|
6451
|
+
};
|
|
6452
|
+
proto.aggregator.Execution.Step.prototype.setBlockTrigger = function(value) {
|
|
6453
|
+
return jspb.Message.setOneofWrapperField(this, 20, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6454
|
+
};
|
|
6455
|
+
proto.aggregator.Execution.Step.prototype.clearBlockTrigger = function() {
|
|
6456
|
+
return this.setBlockTrigger(void 0);
|
|
6457
|
+
};
|
|
6458
|
+
proto.aggregator.Execution.Step.prototype.hasBlockTrigger = function() {
|
|
6459
|
+
return jspb.Message.getField(this, 20) != null;
|
|
6460
|
+
};
|
|
6461
|
+
proto.aggregator.Execution.Step.prototype.getFixedTimeTrigger = function() {
|
|
6462
|
+
return (
|
|
6463
|
+
/** @type{?proto.aggregator.FixedTimeTrigger.Output} */
|
|
6464
|
+
jspb.Message.getWrapperField(this, proto.aggregator.FixedTimeTrigger.Output, 21)
|
|
6465
|
+
);
|
|
6466
|
+
};
|
|
6467
|
+
proto.aggregator.Execution.Step.prototype.setFixedTimeTrigger = function(value) {
|
|
6468
|
+
return jspb.Message.setOneofWrapperField(this, 21, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6469
|
+
};
|
|
6470
|
+
proto.aggregator.Execution.Step.prototype.clearFixedTimeTrigger = function() {
|
|
6471
|
+
return this.setFixedTimeTrigger(void 0);
|
|
6472
|
+
};
|
|
6473
|
+
proto.aggregator.Execution.Step.prototype.hasFixedTimeTrigger = function() {
|
|
6474
|
+
return jspb.Message.getField(this, 21) != null;
|
|
6475
|
+
};
|
|
6476
|
+
proto.aggregator.Execution.Step.prototype.getCronTrigger = function() {
|
|
6477
|
+
return (
|
|
6478
|
+
/** @type{?proto.aggregator.CronTrigger.Output} */
|
|
6479
|
+
jspb.Message.getWrapperField(this, proto.aggregator.CronTrigger.Output, 22)
|
|
6480
|
+
);
|
|
6481
|
+
};
|
|
6482
|
+
proto.aggregator.Execution.Step.prototype.setCronTrigger = function(value) {
|
|
6483
|
+
return jspb.Message.setOneofWrapperField(this, 22, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6484
|
+
};
|
|
6485
|
+
proto.aggregator.Execution.Step.prototype.clearCronTrigger = function() {
|
|
6486
|
+
return this.setCronTrigger(void 0);
|
|
6487
|
+
};
|
|
6488
|
+
proto.aggregator.Execution.Step.prototype.hasCronTrigger = function() {
|
|
6489
|
+
return jspb.Message.getField(this, 22) != null;
|
|
6490
|
+
};
|
|
6491
|
+
proto.aggregator.Execution.Step.prototype.getEventTrigger = function() {
|
|
6492
|
+
return (
|
|
6493
|
+
/** @type{?proto.aggregator.EventTrigger.Output} */
|
|
6494
|
+
jspb.Message.getWrapperField(this, proto.aggregator.EventTrigger.Output, 23)
|
|
6495
|
+
);
|
|
6496
|
+
};
|
|
6497
|
+
proto.aggregator.Execution.Step.prototype.setEventTrigger = function(value) {
|
|
6498
|
+
return jspb.Message.setOneofWrapperField(this, 23, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6499
|
+
};
|
|
6500
|
+
proto.aggregator.Execution.Step.prototype.clearEventTrigger = function() {
|
|
6501
|
+
return this.setEventTrigger(void 0);
|
|
6502
|
+
};
|
|
6503
|
+
proto.aggregator.Execution.Step.prototype.hasEventTrigger = function() {
|
|
6504
|
+
return jspb.Message.getField(this, 23) != null;
|
|
6505
|
+
};
|
|
6506
|
+
proto.aggregator.Execution.Step.prototype.getManualTrigger = function() {
|
|
6507
|
+
return (
|
|
6508
|
+
/** @type{?proto.aggregator.ManualTrigger.Output} */
|
|
6509
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Output, 24)
|
|
6510
|
+
);
|
|
6511
|
+
};
|
|
6512
|
+
proto.aggregator.Execution.Step.prototype.setManualTrigger = function(value) {
|
|
6513
|
+
return jspb.Message.setOneofWrapperField(this, 24, proto.aggregator.Execution.Step.oneofGroups_[0], value);
|
|
6514
|
+
};
|
|
6515
|
+
proto.aggregator.Execution.Step.prototype.clearManualTrigger = function() {
|
|
6516
|
+
return this.setManualTrigger(void 0);
|
|
6517
|
+
};
|
|
6518
|
+
proto.aggregator.Execution.Step.prototype.hasManualTrigger = function() {
|
|
6519
|
+
return jspb.Message.getField(this, 24) != null;
|
|
6520
|
+
};
|
|
6400
6521
|
proto.aggregator.Execution.Step.prototype.getEthTransfer = function() {
|
|
6401
6522
|
return (
|
|
6402
6523
|
/** @type{?proto.aggregator.ETHTransferNode.Output} */
|
|
@@ -6532,24 +6653,6 @@ var require_avs_pb = __commonJS({
|
|
|
6532
6653
|
proto.aggregator.Execution.Step.prototype.hasLoop = function() {
|
|
6533
6654
|
return jspb.Message.getField(this, 11) != null;
|
|
6534
6655
|
};
|
|
6535
|
-
proto.aggregator.Execution.Step.prototype.getLog = function() {
|
|
6536
|
-
return (
|
|
6537
|
-
/** @type {string} */
|
|
6538
|
-
jspb.Message.getFieldWithDefault(this, 12, "")
|
|
6539
|
-
);
|
|
6540
|
-
};
|
|
6541
|
-
proto.aggregator.Execution.Step.prototype.setLog = function(value) {
|
|
6542
|
-
return jspb.Message.setProto3StringField(this, 12, value);
|
|
6543
|
-
};
|
|
6544
|
-
proto.aggregator.Execution.Step.prototype.getError = function() {
|
|
6545
|
-
return (
|
|
6546
|
-
/** @type {string} */
|
|
6547
|
-
jspb.Message.getFieldWithDefault(this, 13, "")
|
|
6548
|
-
);
|
|
6549
|
-
};
|
|
6550
|
-
proto.aggregator.Execution.Step.prototype.setError = function(value) {
|
|
6551
|
-
return jspb.Message.setProto3StringField(this, 13, value);
|
|
6552
|
-
};
|
|
6553
6656
|
proto.aggregator.Execution.Step.prototype.getStartAt = function() {
|
|
6554
6657
|
return (
|
|
6555
6658
|
/** @type {number} */
|
|
@@ -6568,21 +6671,6 @@ var require_avs_pb = __commonJS({
|
|
|
6568
6671
|
proto.aggregator.Execution.Step.prototype.setEndAt = function(value) {
|
|
6569
6672
|
return jspb.Message.setProto3IntField(this, 15, value);
|
|
6570
6673
|
};
|
|
6571
|
-
proto.aggregator.Execution.Step.prototype.getInputsList = function() {
|
|
6572
|
-
return (
|
|
6573
|
-
/** @type {!Array<string>} */
|
|
6574
|
-
jspb.Message.getRepeatedField(this, 16)
|
|
6575
|
-
);
|
|
6576
|
-
};
|
|
6577
|
-
proto.aggregator.Execution.Step.prototype.setInputsList = function(value) {
|
|
6578
|
-
return jspb.Message.setField(this, 16, value || []);
|
|
6579
|
-
};
|
|
6580
|
-
proto.aggregator.Execution.Step.prototype.addInputs = function(value, opt_index) {
|
|
6581
|
-
return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
|
|
6582
|
-
};
|
|
6583
|
-
proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
|
|
6584
|
-
return this.setInputsList([]);
|
|
6585
|
-
};
|
|
6586
6674
|
proto.aggregator.Execution.prototype.getId = function() {
|
|
6587
6675
|
return (
|
|
6588
6676
|
/** @type {string} */
|
|
@@ -6628,15 +6716,6 @@ var require_avs_pb = __commonJS({
|
|
|
6628
6716
|
proto.aggregator.Execution.prototype.setError = function(value) {
|
|
6629
6717
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
6630
6718
|
};
|
|
6631
|
-
proto.aggregator.Execution.prototype.getTriggerType = function() {
|
|
6632
|
-
return (
|
|
6633
|
-
/** @type {!proto.aggregator.TriggerType} */
|
|
6634
|
-
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
6635
|
-
);
|
|
6636
|
-
};
|
|
6637
|
-
proto.aggregator.Execution.prototype.setTriggerType = function(value) {
|
|
6638
|
-
return jspb.Message.setProto3EnumField(this, 6, value);
|
|
6639
|
-
};
|
|
6640
6719
|
proto.aggregator.Execution.prototype.getStepsList = function() {
|
|
6641
6720
|
return (
|
|
6642
6721
|
/** @type{!Array<!proto.aggregator.Execution.Step>} */
|
|
@@ -6652,90 +6731,6 @@ var require_avs_pb = __commonJS({
|
|
|
6652
6731
|
proto.aggregator.Execution.prototype.clearStepsList = function() {
|
|
6653
6732
|
return this.setStepsList([]);
|
|
6654
6733
|
};
|
|
6655
|
-
proto.aggregator.Execution.prototype.getTriggerName = function() {
|
|
6656
|
-
return (
|
|
6657
|
-
/** @type {string} */
|
|
6658
|
-
jspb.Message.getFieldWithDefault(this, 9, "")
|
|
6659
|
-
);
|
|
6660
|
-
};
|
|
6661
|
-
proto.aggregator.Execution.prototype.setTriggerName = function(value) {
|
|
6662
|
-
return jspb.Message.setProto3StringField(this, 9, value);
|
|
6663
|
-
};
|
|
6664
|
-
proto.aggregator.Execution.prototype.getBlockTrigger = function() {
|
|
6665
|
-
return (
|
|
6666
|
-
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
6667
|
-
jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Output, 10)
|
|
6668
|
-
);
|
|
6669
|
-
};
|
|
6670
|
-
proto.aggregator.Execution.prototype.setBlockTrigger = function(value) {
|
|
6671
|
-
return jspb.Message.setOneofWrapperField(this, 10, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6672
|
-
};
|
|
6673
|
-
proto.aggregator.Execution.prototype.clearBlockTrigger = function() {
|
|
6674
|
-
return this.setBlockTrigger(void 0);
|
|
6675
|
-
};
|
|
6676
|
-
proto.aggregator.Execution.prototype.hasBlockTrigger = function() {
|
|
6677
|
-
return jspb.Message.getField(this, 10) != null;
|
|
6678
|
-
};
|
|
6679
|
-
proto.aggregator.Execution.prototype.getFixedTimeTrigger = function() {
|
|
6680
|
-
return (
|
|
6681
|
-
/** @type{?proto.aggregator.FixedTimeTrigger.Output} */
|
|
6682
|
-
jspb.Message.getWrapperField(this, proto.aggregator.FixedTimeTrigger.Output, 11)
|
|
6683
|
-
);
|
|
6684
|
-
};
|
|
6685
|
-
proto.aggregator.Execution.prototype.setFixedTimeTrigger = function(value) {
|
|
6686
|
-
return jspb.Message.setOneofWrapperField(this, 11, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6687
|
-
};
|
|
6688
|
-
proto.aggregator.Execution.prototype.clearFixedTimeTrigger = function() {
|
|
6689
|
-
return this.setFixedTimeTrigger(void 0);
|
|
6690
|
-
};
|
|
6691
|
-
proto.aggregator.Execution.prototype.hasFixedTimeTrigger = function() {
|
|
6692
|
-
return jspb.Message.getField(this, 11) != null;
|
|
6693
|
-
};
|
|
6694
|
-
proto.aggregator.Execution.prototype.getCronTrigger = function() {
|
|
6695
|
-
return (
|
|
6696
|
-
/** @type{?proto.aggregator.CronTrigger.Output} */
|
|
6697
|
-
jspb.Message.getWrapperField(this, proto.aggregator.CronTrigger.Output, 12)
|
|
6698
|
-
);
|
|
6699
|
-
};
|
|
6700
|
-
proto.aggregator.Execution.prototype.setCronTrigger = function(value) {
|
|
6701
|
-
return jspb.Message.setOneofWrapperField(this, 12, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6702
|
-
};
|
|
6703
|
-
proto.aggregator.Execution.prototype.clearCronTrigger = function() {
|
|
6704
|
-
return this.setCronTrigger(void 0);
|
|
6705
|
-
};
|
|
6706
|
-
proto.aggregator.Execution.prototype.hasCronTrigger = function() {
|
|
6707
|
-
return jspb.Message.getField(this, 12) != null;
|
|
6708
|
-
};
|
|
6709
|
-
proto.aggregator.Execution.prototype.getEventTrigger = function() {
|
|
6710
|
-
return (
|
|
6711
|
-
/** @type{?proto.aggregator.EventTrigger.Output} */
|
|
6712
|
-
jspb.Message.getWrapperField(this, proto.aggregator.EventTrigger.Output, 13)
|
|
6713
|
-
);
|
|
6714
|
-
};
|
|
6715
|
-
proto.aggregator.Execution.prototype.setEventTrigger = function(value) {
|
|
6716
|
-
return jspb.Message.setOneofWrapperField(this, 13, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6717
|
-
};
|
|
6718
|
-
proto.aggregator.Execution.prototype.clearEventTrigger = function() {
|
|
6719
|
-
return this.setEventTrigger(void 0);
|
|
6720
|
-
};
|
|
6721
|
-
proto.aggregator.Execution.prototype.hasEventTrigger = function() {
|
|
6722
|
-
return jspb.Message.getField(this, 13) != null;
|
|
6723
|
-
};
|
|
6724
|
-
proto.aggregator.Execution.prototype.getManualTrigger = function() {
|
|
6725
|
-
return (
|
|
6726
|
-
/** @type{?proto.aggregator.ManualTrigger.Output} */
|
|
6727
|
-
jspb.Message.getWrapperField(this, proto.aggregator.ManualTrigger.Output, 14)
|
|
6728
|
-
);
|
|
6729
|
-
};
|
|
6730
|
-
proto.aggregator.Execution.prototype.setManualTrigger = function(value) {
|
|
6731
|
-
return jspb.Message.setOneofWrapperField(this, 14, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
6732
|
-
};
|
|
6733
|
-
proto.aggregator.Execution.prototype.clearManualTrigger = function() {
|
|
6734
|
-
return this.setManualTrigger(void 0);
|
|
6735
|
-
};
|
|
6736
|
-
proto.aggregator.Execution.prototype.hasManualTrigger = function() {
|
|
6737
|
-
return jspb.Message.getField(this, 14) != null;
|
|
6738
|
-
};
|
|
6739
6734
|
proto.aggregator.Task.repeatedFields_ = [13, 14];
|
|
6740
6735
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6741
6736
|
proto.aggregator.Task.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -13125,6 +13120,218 @@ var require_avs_pb = __commonJS({
|
|
|
13125
13120
|
proto.aggregator.Evm.UserOp.prototype.setSignature = function(value) {
|
|
13126
13121
|
return jspb.Message.setProto3StringField(this, 11, value);
|
|
13127
13122
|
};
|
|
13123
|
+
proto.aggregator.SimulateTaskReq.repeatedFields_ = [2, 3];
|
|
13124
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13125
|
+
proto.aggregator.SimulateTaskReq.prototype.toObject = function(opt_includeInstance) {
|
|
13126
|
+
return proto.aggregator.SimulateTaskReq.toObject(opt_includeInstance, this);
|
|
13127
|
+
};
|
|
13128
|
+
proto.aggregator.SimulateTaskReq.toObject = function(includeInstance, msg) {
|
|
13129
|
+
var f, obj = {
|
|
13130
|
+
trigger: (f = msg.getTrigger()) && proto.aggregator.TaskTrigger.toObject(includeInstance, f),
|
|
13131
|
+
nodesList: jspb.Message.toObjectList(
|
|
13132
|
+
msg.getNodesList(),
|
|
13133
|
+
proto.aggregator.TaskNode.toObject,
|
|
13134
|
+
includeInstance
|
|
13135
|
+
),
|
|
13136
|
+
edgesList: jspb.Message.toObjectList(
|
|
13137
|
+
msg.getEdgesList(),
|
|
13138
|
+
proto.aggregator.TaskEdge.toObject,
|
|
13139
|
+
includeInstance
|
|
13140
|
+
),
|
|
13141
|
+
triggerType: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
13142
|
+
triggerConfigMap: (f = msg.getTriggerConfigMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : [],
|
|
13143
|
+
inputVariablesMap: (f = msg.getInputVariablesMap()) ? f.toObject(includeInstance, proto.google.protobuf.Value.toObject) : []
|
|
13144
|
+
};
|
|
13145
|
+
if (includeInstance) {
|
|
13146
|
+
obj.$jspbMessageInstance = msg;
|
|
13147
|
+
}
|
|
13148
|
+
return obj;
|
|
13149
|
+
};
|
|
13150
|
+
}
|
|
13151
|
+
proto.aggregator.SimulateTaskReq.deserializeBinary = function(bytes) {
|
|
13152
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13153
|
+
var msg = new proto.aggregator.SimulateTaskReq();
|
|
13154
|
+
return proto.aggregator.SimulateTaskReq.deserializeBinaryFromReader(msg, reader);
|
|
13155
|
+
};
|
|
13156
|
+
proto.aggregator.SimulateTaskReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
13157
|
+
while (reader.nextField()) {
|
|
13158
|
+
if (reader.isEndGroup()) {
|
|
13159
|
+
break;
|
|
13160
|
+
}
|
|
13161
|
+
var field = reader.getFieldNumber();
|
|
13162
|
+
switch (field) {
|
|
13163
|
+
case 1:
|
|
13164
|
+
var value = new proto.aggregator.TaskTrigger();
|
|
13165
|
+
reader.readMessage(value, proto.aggregator.TaskTrigger.deserializeBinaryFromReader);
|
|
13166
|
+
msg.setTrigger(value);
|
|
13167
|
+
break;
|
|
13168
|
+
case 2:
|
|
13169
|
+
var value = new proto.aggregator.TaskNode();
|
|
13170
|
+
reader.readMessage(value, proto.aggregator.TaskNode.deserializeBinaryFromReader);
|
|
13171
|
+
msg.addNodes(value);
|
|
13172
|
+
break;
|
|
13173
|
+
case 3:
|
|
13174
|
+
var value = new proto.aggregator.TaskEdge();
|
|
13175
|
+
reader.readMessage(value, proto.aggregator.TaskEdge.deserializeBinaryFromReader);
|
|
13176
|
+
msg.addEdges(value);
|
|
13177
|
+
break;
|
|
13178
|
+
case 4:
|
|
13179
|
+
var value = (
|
|
13180
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
13181
|
+
reader.readEnum()
|
|
13182
|
+
);
|
|
13183
|
+
msg.setTriggerType(value);
|
|
13184
|
+
break;
|
|
13185
|
+
case 5:
|
|
13186
|
+
var value = msg.getTriggerConfigMap();
|
|
13187
|
+
reader.readMessage(value, function(message, reader2) {
|
|
13188
|
+
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
13189
|
+
});
|
|
13190
|
+
break;
|
|
13191
|
+
case 6:
|
|
13192
|
+
var value = msg.getInputVariablesMap();
|
|
13193
|
+
reader.readMessage(value, function(message, reader2) {
|
|
13194
|
+
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.google.protobuf.Value.deserializeBinaryFromReader, "", new proto.google.protobuf.Value());
|
|
13195
|
+
});
|
|
13196
|
+
break;
|
|
13197
|
+
default:
|
|
13198
|
+
reader.skipField();
|
|
13199
|
+
break;
|
|
13200
|
+
}
|
|
13201
|
+
}
|
|
13202
|
+
return msg;
|
|
13203
|
+
};
|
|
13204
|
+
proto.aggregator.SimulateTaskReq.prototype.serializeBinary = function() {
|
|
13205
|
+
var writer = new jspb.BinaryWriter();
|
|
13206
|
+
proto.aggregator.SimulateTaskReq.serializeBinaryToWriter(this, writer);
|
|
13207
|
+
return writer.getResultBuffer();
|
|
13208
|
+
};
|
|
13209
|
+
proto.aggregator.SimulateTaskReq.serializeBinaryToWriter = function(message, writer) {
|
|
13210
|
+
var f = void 0;
|
|
13211
|
+
f = message.getTrigger();
|
|
13212
|
+
if (f != null) {
|
|
13213
|
+
writer.writeMessage(
|
|
13214
|
+
1,
|
|
13215
|
+
f,
|
|
13216
|
+
proto.aggregator.TaskTrigger.serializeBinaryToWriter
|
|
13217
|
+
);
|
|
13218
|
+
}
|
|
13219
|
+
f = message.getNodesList();
|
|
13220
|
+
if (f.length > 0) {
|
|
13221
|
+
writer.writeRepeatedMessage(
|
|
13222
|
+
2,
|
|
13223
|
+
f,
|
|
13224
|
+
proto.aggregator.TaskNode.serializeBinaryToWriter
|
|
13225
|
+
);
|
|
13226
|
+
}
|
|
13227
|
+
f = message.getEdgesList();
|
|
13228
|
+
if (f.length > 0) {
|
|
13229
|
+
writer.writeRepeatedMessage(
|
|
13230
|
+
3,
|
|
13231
|
+
f,
|
|
13232
|
+
proto.aggregator.TaskEdge.serializeBinaryToWriter
|
|
13233
|
+
);
|
|
13234
|
+
}
|
|
13235
|
+
f = message.getTriggerType();
|
|
13236
|
+
if (f !== 0) {
|
|
13237
|
+
writer.writeEnum(
|
|
13238
|
+
4,
|
|
13239
|
+
f
|
|
13240
|
+
);
|
|
13241
|
+
}
|
|
13242
|
+
f = message.getTriggerConfigMap(true);
|
|
13243
|
+
if (f && f.getLength() > 0) {
|
|
13244
|
+
f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
13245
|
+
}
|
|
13246
|
+
f = message.getInputVariablesMap(true);
|
|
13247
|
+
if (f && f.getLength() > 0) {
|
|
13248
|
+
f.serializeBinary(6, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.google.protobuf.Value.serializeBinaryToWriter);
|
|
13249
|
+
}
|
|
13250
|
+
};
|
|
13251
|
+
proto.aggregator.SimulateTaskReq.prototype.getTrigger = function() {
|
|
13252
|
+
return (
|
|
13253
|
+
/** @type{?proto.aggregator.TaskTrigger} */
|
|
13254
|
+
jspb.Message.getWrapperField(this, proto.aggregator.TaskTrigger, 1)
|
|
13255
|
+
);
|
|
13256
|
+
};
|
|
13257
|
+
proto.aggregator.SimulateTaskReq.prototype.setTrigger = function(value) {
|
|
13258
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
13259
|
+
};
|
|
13260
|
+
proto.aggregator.SimulateTaskReq.prototype.clearTrigger = function() {
|
|
13261
|
+
return this.setTrigger(void 0);
|
|
13262
|
+
};
|
|
13263
|
+
proto.aggregator.SimulateTaskReq.prototype.hasTrigger = function() {
|
|
13264
|
+
return jspb.Message.getField(this, 1) != null;
|
|
13265
|
+
};
|
|
13266
|
+
proto.aggregator.SimulateTaskReq.prototype.getNodesList = function() {
|
|
13267
|
+
return (
|
|
13268
|
+
/** @type{!Array<!proto.aggregator.TaskNode>} */
|
|
13269
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.TaskNode, 2)
|
|
13270
|
+
);
|
|
13271
|
+
};
|
|
13272
|
+
proto.aggregator.SimulateTaskReq.prototype.setNodesList = function(value) {
|
|
13273
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
13274
|
+
};
|
|
13275
|
+
proto.aggregator.SimulateTaskReq.prototype.addNodes = function(opt_value, opt_index) {
|
|
13276
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.aggregator.TaskNode, opt_index);
|
|
13277
|
+
};
|
|
13278
|
+
proto.aggregator.SimulateTaskReq.prototype.clearNodesList = function() {
|
|
13279
|
+
return this.setNodesList([]);
|
|
13280
|
+
};
|
|
13281
|
+
proto.aggregator.SimulateTaskReq.prototype.getEdgesList = function() {
|
|
13282
|
+
return (
|
|
13283
|
+
/** @type{!Array<!proto.aggregator.TaskEdge>} */
|
|
13284
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.TaskEdge, 3)
|
|
13285
|
+
);
|
|
13286
|
+
};
|
|
13287
|
+
proto.aggregator.SimulateTaskReq.prototype.setEdgesList = function(value) {
|
|
13288
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
13289
|
+
};
|
|
13290
|
+
proto.aggregator.SimulateTaskReq.prototype.addEdges = function(opt_value, opt_index) {
|
|
13291
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.aggregator.TaskEdge, opt_index);
|
|
13292
|
+
};
|
|
13293
|
+
proto.aggregator.SimulateTaskReq.prototype.clearEdgesList = function() {
|
|
13294
|
+
return this.setEdgesList([]);
|
|
13295
|
+
};
|
|
13296
|
+
proto.aggregator.SimulateTaskReq.prototype.getTriggerType = function() {
|
|
13297
|
+
return (
|
|
13298
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
13299
|
+
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
13300
|
+
);
|
|
13301
|
+
};
|
|
13302
|
+
proto.aggregator.SimulateTaskReq.prototype.setTriggerType = function(value) {
|
|
13303
|
+
return jspb.Message.setProto3EnumField(this, 4, value);
|
|
13304
|
+
};
|
|
13305
|
+
proto.aggregator.SimulateTaskReq.prototype.getTriggerConfigMap = function(opt_noLazyCreate) {
|
|
13306
|
+
return (
|
|
13307
|
+
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
13308
|
+
jspb.Message.getMapField(
|
|
13309
|
+
this,
|
|
13310
|
+
5,
|
|
13311
|
+
opt_noLazyCreate,
|
|
13312
|
+
proto.google.protobuf.Value
|
|
13313
|
+
)
|
|
13314
|
+
);
|
|
13315
|
+
};
|
|
13316
|
+
proto.aggregator.SimulateTaskReq.prototype.clearTriggerConfigMap = function() {
|
|
13317
|
+
this.getTriggerConfigMap().clear();
|
|
13318
|
+
return this;
|
|
13319
|
+
};
|
|
13320
|
+
proto.aggregator.SimulateTaskReq.prototype.getInputVariablesMap = function(opt_noLazyCreate) {
|
|
13321
|
+
return (
|
|
13322
|
+
/** @type {!jspb.Map<string,!proto.google.protobuf.Value>} */
|
|
13323
|
+
jspb.Message.getMapField(
|
|
13324
|
+
this,
|
|
13325
|
+
6,
|
|
13326
|
+
opt_noLazyCreate,
|
|
13327
|
+
proto.google.protobuf.Value
|
|
13328
|
+
)
|
|
13329
|
+
);
|
|
13330
|
+
};
|
|
13331
|
+
proto.aggregator.SimulateTaskReq.prototype.clearInputVariablesMap = function() {
|
|
13332
|
+
this.getInputVariablesMap().clear();
|
|
13333
|
+
return this;
|
|
13334
|
+
};
|
|
13128
13335
|
proto.aggregator.TriggerType = {
|
|
13129
13336
|
TRIGGER_TYPE_UNSPECIFIED: 0,
|
|
13130
13337
|
TRIGGER_TYPE_MANUAL: 1,
|
|
@@ -13181,352 +13388,360 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13181
13388
|
"../../grpc_codegen/avs_grpc_pb.js"(exports) {
|
|
13182
13389
|
"use strict";
|
|
13183
13390
|
var grpc = __require("@grpc/grpc-js");
|
|
13184
|
-
var
|
|
13391
|
+
var avs_pb23 = require_avs_pb();
|
|
13185
13392
|
var google_protobuf_wrappers_pb = __require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
13186
|
-
var google_protobuf_timestamp_pb = __require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
13187
13393
|
var google_protobuf_any_pb = __require("google-protobuf/google/protobuf/any_pb.js");
|
|
13188
13394
|
var google_protobuf_struct_pb = __require("google-protobuf/google/protobuf/struct_pb.js");
|
|
13189
13395
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
13190
|
-
if (!(arg instanceof
|
|
13396
|
+
if (!(arg instanceof avs_pb23.CreateOrUpdateSecretReq)) {
|
|
13191
13397
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
13192
13398
|
}
|
|
13193
13399
|
return Buffer.from(arg.serializeBinary());
|
|
13194
13400
|
}
|
|
13195
13401
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
13196
|
-
return
|
|
13402
|
+
return avs_pb23.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13197
13403
|
}
|
|
13198
13404
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
13199
|
-
if (!(arg instanceof
|
|
13405
|
+
if (!(arg instanceof avs_pb23.CreateTaskReq)) {
|
|
13200
13406
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
13201
13407
|
}
|
|
13202
13408
|
return Buffer.from(arg.serializeBinary());
|
|
13203
13409
|
}
|
|
13204
13410
|
function deserialize_aggregator_CreateTaskReq(buffer_arg) {
|
|
13205
|
-
return
|
|
13411
|
+
return avs_pb23.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13206
13412
|
}
|
|
13207
13413
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
13208
|
-
if (!(arg instanceof
|
|
13414
|
+
if (!(arg instanceof avs_pb23.CreateTaskResp)) {
|
|
13209
13415
|
throw new Error("Expected argument of type aggregator.CreateTaskResp");
|
|
13210
13416
|
}
|
|
13211
13417
|
return Buffer.from(arg.serializeBinary());
|
|
13212
13418
|
}
|
|
13213
13419
|
function deserialize_aggregator_CreateTaskResp(buffer_arg) {
|
|
13214
|
-
return
|
|
13420
|
+
return avs_pb23.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13215
13421
|
}
|
|
13216
13422
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
13217
|
-
if (!(arg instanceof
|
|
13423
|
+
if (!(arg instanceof avs_pb23.DeleteSecretReq)) {
|
|
13218
13424
|
throw new Error("Expected argument of type aggregator.DeleteSecretReq");
|
|
13219
13425
|
}
|
|
13220
13426
|
return Buffer.from(arg.serializeBinary());
|
|
13221
13427
|
}
|
|
13222
13428
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
13223
|
-
return
|
|
13429
|
+
return avs_pb23.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13224
13430
|
}
|
|
13225
13431
|
function serialize_aggregator_Execution(arg) {
|
|
13226
|
-
if (!(arg instanceof
|
|
13432
|
+
if (!(arg instanceof avs_pb23.Execution)) {
|
|
13227
13433
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
13228
13434
|
}
|
|
13229
13435
|
return Buffer.from(arg.serializeBinary());
|
|
13230
13436
|
}
|
|
13231
13437
|
function deserialize_aggregator_Execution(buffer_arg) {
|
|
13232
|
-
return
|
|
13438
|
+
return avs_pb23.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13233
13439
|
}
|
|
13234
13440
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
13235
|
-
if (!(arg instanceof
|
|
13441
|
+
if (!(arg instanceof avs_pb23.ExecutionReq)) {
|
|
13236
13442
|
throw new Error("Expected argument of type aggregator.ExecutionReq");
|
|
13237
13443
|
}
|
|
13238
13444
|
return Buffer.from(arg.serializeBinary());
|
|
13239
13445
|
}
|
|
13240
13446
|
function deserialize_aggregator_ExecutionReq(buffer_arg) {
|
|
13241
|
-
return
|
|
13447
|
+
return avs_pb23.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13242
13448
|
}
|
|
13243
13449
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
13244
|
-
if (!(arg instanceof
|
|
13450
|
+
if (!(arg instanceof avs_pb23.ExecutionStatusResp)) {
|
|
13245
13451
|
throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
|
|
13246
13452
|
}
|
|
13247
13453
|
return Buffer.from(arg.serializeBinary());
|
|
13248
13454
|
}
|
|
13249
13455
|
function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
|
|
13250
|
-
return
|
|
13456
|
+
return avs_pb23.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13251
13457
|
}
|
|
13252
13458
|
function serialize_aggregator_GetExecutionCountReq(arg) {
|
|
13253
|
-
if (!(arg instanceof
|
|
13459
|
+
if (!(arg instanceof avs_pb23.GetExecutionCountReq)) {
|
|
13254
13460
|
throw new Error("Expected argument of type aggregator.GetExecutionCountReq");
|
|
13255
13461
|
}
|
|
13256
13462
|
return Buffer.from(arg.serializeBinary());
|
|
13257
13463
|
}
|
|
13258
13464
|
function deserialize_aggregator_GetExecutionCountReq(buffer_arg) {
|
|
13259
|
-
return
|
|
13465
|
+
return avs_pb23.GetExecutionCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13260
13466
|
}
|
|
13261
13467
|
function serialize_aggregator_GetExecutionCountResp(arg) {
|
|
13262
|
-
if (!(arg instanceof
|
|
13468
|
+
if (!(arg instanceof avs_pb23.GetExecutionCountResp)) {
|
|
13263
13469
|
throw new Error("Expected argument of type aggregator.GetExecutionCountResp");
|
|
13264
13470
|
}
|
|
13265
13471
|
return Buffer.from(arg.serializeBinary());
|
|
13266
13472
|
}
|
|
13267
13473
|
function deserialize_aggregator_GetExecutionCountResp(buffer_arg) {
|
|
13268
|
-
return
|
|
13474
|
+
return avs_pb23.GetExecutionCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13269
13475
|
}
|
|
13270
13476
|
function serialize_aggregator_GetExecutionStatsReq(arg) {
|
|
13271
|
-
if (!(arg instanceof
|
|
13477
|
+
if (!(arg instanceof avs_pb23.GetExecutionStatsReq)) {
|
|
13272
13478
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsReq");
|
|
13273
13479
|
}
|
|
13274
13480
|
return Buffer.from(arg.serializeBinary());
|
|
13275
13481
|
}
|
|
13276
13482
|
function deserialize_aggregator_GetExecutionStatsReq(buffer_arg) {
|
|
13277
|
-
return
|
|
13483
|
+
return avs_pb23.GetExecutionStatsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13278
13484
|
}
|
|
13279
13485
|
function serialize_aggregator_GetExecutionStatsResp(arg) {
|
|
13280
|
-
if (!(arg instanceof
|
|
13486
|
+
if (!(arg instanceof avs_pb23.GetExecutionStatsResp)) {
|
|
13281
13487
|
throw new Error("Expected argument of type aggregator.GetExecutionStatsResp");
|
|
13282
13488
|
}
|
|
13283
13489
|
return Buffer.from(arg.serializeBinary());
|
|
13284
13490
|
}
|
|
13285
13491
|
function deserialize_aggregator_GetExecutionStatsResp(buffer_arg) {
|
|
13286
|
-
return
|
|
13492
|
+
return avs_pb23.GetExecutionStatsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13287
13493
|
}
|
|
13288
13494
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
13289
|
-
if (!(arg instanceof
|
|
13495
|
+
if (!(arg instanceof avs_pb23.GetKeyReq)) {
|
|
13290
13496
|
throw new Error("Expected argument of type aggregator.GetKeyReq");
|
|
13291
13497
|
}
|
|
13292
13498
|
return Buffer.from(arg.serializeBinary());
|
|
13293
13499
|
}
|
|
13294
13500
|
function deserialize_aggregator_GetKeyReq(buffer_arg) {
|
|
13295
|
-
return
|
|
13501
|
+
return avs_pb23.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13296
13502
|
}
|
|
13297
13503
|
function serialize_aggregator_GetSignatureFormatReq(arg) {
|
|
13298
|
-
if (!(arg instanceof
|
|
13504
|
+
if (!(arg instanceof avs_pb23.GetSignatureFormatReq)) {
|
|
13299
13505
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatReq");
|
|
13300
13506
|
}
|
|
13301
13507
|
return Buffer.from(arg.serializeBinary());
|
|
13302
13508
|
}
|
|
13303
13509
|
function deserialize_aggregator_GetSignatureFormatReq(buffer_arg) {
|
|
13304
|
-
return
|
|
13510
|
+
return avs_pb23.GetSignatureFormatReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13305
13511
|
}
|
|
13306
13512
|
function serialize_aggregator_GetSignatureFormatResp(arg) {
|
|
13307
|
-
if (!(arg instanceof
|
|
13513
|
+
if (!(arg instanceof avs_pb23.GetSignatureFormatResp)) {
|
|
13308
13514
|
throw new Error("Expected argument of type aggregator.GetSignatureFormatResp");
|
|
13309
13515
|
}
|
|
13310
13516
|
return Buffer.from(arg.serializeBinary());
|
|
13311
13517
|
}
|
|
13312
13518
|
function deserialize_aggregator_GetSignatureFormatResp(buffer_arg) {
|
|
13313
|
-
return
|
|
13519
|
+
return avs_pb23.GetSignatureFormatResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13314
13520
|
}
|
|
13315
13521
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
13316
|
-
if (!(arg instanceof
|
|
13522
|
+
if (!(arg instanceof avs_pb23.GetWalletReq)) {
|
|
13317
13523
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
13318
13524
|
}
|
|
13319
13525
|
return Buffer.from(arg.serializeBinary());
|
|
13320
13526
|
}
|
|
13321
13527
|
function deserialize_aggregator_GetWalletReq(buffer_arg) {
|
|
13322
|
-
return
|
|
13528
|
+
return avs_pb23.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13323
13529
|
}
|
|
13324
13530
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
13325
|
-
if (!(arg instanceof
|
|
13531
|
+
if (!(arg instanceof avs_pb23.GetWalletResp)) {
|
|
13326
13532
|
throw new Error("Expected argument of type aggregator.GetWalletResp");
|
|
13327
13533
|
}
|
|
13328
13534
|
return Buffer.from(arg.serializeBinary());
|
|
13329
13535
|
}
|
|
13330
13536
|
function deserialize_aggregator_GetWalletResp(buffer_arg) {
|
|
13331
|
-
return
|
|
13537
|
+
return avs_pb23.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13332
13538
|
}
|
|
13333
13539
|
function serialize_aggregator_GetWorkflowCountReq(arg) {
|
|
13334
|
-
if (!(arg instanceof
|
|
13540
|
+
if (!(arg instanceof avs_pb23.GetWorkflowCountReq)) {
|
|
13335
13541
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountReq");
|
|
13336
13542
|
}
|
|
13337
13543
|
return Buffer.from(arg.serializeBinary());
|
|
13338
13544
|
}
|
|
13339
13545
|
function deserialize_aggregator_GetWorkflowCountReq(buffer_arg) {
|
|
13340
|
-
return
|
|
13546
|
+
return avs_pb23.GetWorkflowCountReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13341
13547
|
}
|
|
13342
13548
|
function serialize_aggregator_GetWorkflowCountResp(arg) {
|
|
13343
|
-
if (!(arg instanceof
|
|
13549
|
+
if (!(arg instanceof avs_pb23.GetWorkflowCountResp)) {
|
|
13344
13550
|
throw new Error("Expected argument of type aggregator.GetWorkflowCountResp");
|
|
13345
13551
|
}
|
|
13346
13552
|
return Buffer.from(arg.serializeBinary());
|
|
13347
13553
|
}
|
|
13348
13554
|
function deserialize_aggregator_GetWorkflowCountResp(buffer_arg) {
|
|
13349
|
-
return
|
|
13555
|
+
return avs_pb23.GetWorkflowCountResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13350
13556
|
}
|
|
13351
13557
|
function serialize_aggregator_IdReq(arg) {
|
|
13352
|
-
if (!(arg instanceof
|
|
13558
|
+
if (!(arg instanceof avs_pb23.IdReq)) {
|
|
13353
13559
|
throw new Error("Expected argument of type aggregator.IdReq");
|
|
13354
13560
|
}
|
|
13355
13561
|
return Buffer.from(arg.serializeBinary());
|
|
13356
13562
|
}
|
|
13357
13563
|
function deserialize_aggregator_IdReq(buffer_arg) {
|
|
13358
|
-
return
|
|
13564
|
+
return avs_pb23.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13359
13565
|
}
|
|
13360
13566
|
function serialize_aggregator_KeyResp(arg) {
|
|
13361
|
-
if (!(arg instanceof
|
|
13567
|
+
if (!(arg instanceof avs_pb23.KeyResp)) {
|
|
13362
13568
|
throw new Error("Expected argument of type aggregator.KeyResp");
|
|
13363
13569
|
}
|
|
13364
13570
|
return Buffer.from(arg.serializeBinary());
|
|
13365
13571
|
}
|
|
13366
13572
|
function deserialize_aggregator_KeyResp(buffer_arg) {
|
|
13367
|
-
return
|
|
13573
|
+
return avs_pb23.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13368
13574
|
}
|
|
13369
13575
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
13370
|
-
if (!(arg instanceof
|
|
13576
|
+
if (!(arg instanceof avs_pb23.ListExecutionsReq)) {
|
|
13371
13577
|
throw new Error("Expected argument of type aggregator.ListExecutionsReq");
|
|
13372
13578
|
}
|
|
13373
13579
|
return Buffer.from(arg.serializeBinary());
|
|
13374
13580
|
}
|
|
13375
13581
|
function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
|
|
13376
|
-
return
|
|
13582
|
+
return avs_pb23.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13377
13583
|
}
|
|
13378
13584
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
13379
|
-
if (!(arg instanceof
|
|
13585
|
+
if (!(arg instanceof avs_pb23.ListExecutionsResp)) {
|
|
13380
13586
|
throw new Error("Expected argument of type aggregator.ListExecutionsResp");
|
|
13381
13587
|
}
|
|
13382
13588
|
return Buffer.from(arg.serializeBinary());
|
|
13383
13589
|
}
|
|
13384
13590
|
function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
|
|
13385
|
-
return
|
|
13591
|
+
return avs_pb23.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13386
13592
|
}
|
|
13387
13593
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
13388
|
-
if (!(arg instanceof
|
|
13594
|
+
if (!(arg instanceof avs_pb23.ListSecretsReq)) {
|
|
13389
13595
|
throw new Error("Expected argument of type aggregator.ListSecretsReq");
|
|
13390
13596
|
}
|
|
13391
13597
|
return Buffer.from(arg.serializeBinary());
|
|
13392
13598
|
}
|
|
13393
13599
|
function deserialize_aggregator_ListSecretsReq(buffer_arg) {
|
|
13394
|
-
return
|
|
13600
|
+
return avs_pb23.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13395
13601
|
}
|
|
13396
13602
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
13397
|
-
if (!(arg instanceof
|
|
13603
|
+
if (!(arg instanceof avs_pb23.ListSecretsResp)) {
|
|
13398
13604
|
throw new Error("Expected argument of type aggregator.ListSecretsResp");
|
|
13399
13605
|
}
|
|
13400
13606
|
return Buffer.from(arg.serializeBinary());
|
|
13401
13607
|
}
|
|
13402
13608
|
function deserialize_aggregator_ListSecretsResp(buffer_arg) {
|
|
13403
|
-
return
|
|
13609
|
+
return avs_pb23.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13404
13610
|
}
|
|
13405
13611
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
13406
|
-
if (!(arg instanceof
|
|
13612
|
+
if (!(arg instanceof avs_pb23.ListTasksReq)) {
|
|
13407
13613
|
throw new Error("Expected argument of type aggregator.ListTasksReq");
|
|
13408
13614
|
}
|
|
13409
13615
|
return Buffer.from(arg.serializeBinary());
|
|
13410
13616
|
}
|
|
13411
13617
|
function deserialize_aggregator_ListTasksReq(buffer_arg) {
|
|
13412
|
-
return
|
|
13618
|
+
return avs_pb23.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13413
13619
|
}
|
|
13414
13620
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
13415
|
-
if (!(arg instanceof
|
|
13621
|
+
if (!(arg instanceof avs_pb23.ListTasksResp)) {
|
|
13416
13622
|
throw new Error("Expected argument of type aggregator.ListTasksResp");
|
|
13417
13623
|
}
|
|
13418
13624
|
return Buffer.from(arg.serializeBinary());
|
|
13419
13625
|
}
|
|
13420
13626
|
function deserialize_aggregator_ListTasksResp(buffer_arg) {
|
|
13421
|
-
return
|
|
13627
|
+
return avs_pb23.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13422
13628
|
}
|
|
13423
13629
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
13424
|
-
if (!(arg instanceof
|
|
13630
|
+
if (!(arg instanceof avs_pb23.ListWalletReq)) {
|
|
13425
13631
|
throw new Error("Expected argument of type aggregator.ListWalletReq");
|
|
13426
13632
|
}
|
|
13427
13633
|
return Buffer.from(arg.serializeBinary());
|
|
13428
13634
|
}
|
|
13429
13635
|
function deserialize_aggregator_ListWalletReq(buffer_arg) {
|
|
13430
|
-
return
|
|
13636
|
+
return avs_pb23.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13431
13637
|
}
|
|
13432
13638
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
13433
|
-
if (!(arg instanceof
|
|
13639
|
+
if (!(arg instanceof avs_pb23.ListWalletResp)) {
|
|
13434
13640
|
throw new Error("Expected argument of type aggregator.ListWalletResp");
|
|
13435
13641
|
}
|
|
13436
13642
|
return Buffer.from(arg.serializeBinary());
|
|
13437
13643
|
}
|
|
13438
13644
|
function deserialize_aggregator_ListWalletResp(buffer_arg) {
|
|
13439
|
-
return
|
|
13645
|
+
return avs_pb23.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13440
13646
|
}
|
|
13441
13647
|
function serialize_aggregator_NonceRequest(arg) {
|
|
13442
|
-
if (!(arg instanceof
|
|
13648
|
+
if (!(arg instanceof avs_pb23.NonceRequest)) {
|
|
13443
13649
|
throw new Error("Expected argument of type aggregator.NonceRequest");
|
|
13444
13650
|
}
|
|
13445
13651
|
return Buffer.from(arg.serializeBinary());
|
|
13446
13652
|
}
|
|
13447
13653
|
function deserialize_aggregator_NonceRequest(buffer_arg) {
|
|
13448
|
-
return
|
|
13654
|
+
return avs_pb23.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13449
13655
|
}
|
|
13450
13656
|
function serialize_aggregator_NonceResp(arg) {
|
|
13451
|
-
if (!(arg instanceof
|
|
13657
|
+
if (!(arg instanceof avs_pb23.NonceResp)) {
|
|
13452
13658
|
throw new Error("Expected argument of type aggregator.NonceResp");
|
|
13453
13659
|
}
|
|
13454
13660
|
return Buffer.from(arg.serializeBinary());
|
|
13455
13661
|
}
|
|
13456
13662
|
function deserialize_aggregator_NonceResp(buffer_arg) {
|
|
13457
|
-
return
|
|
13663
|
+
return avs_pb23.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13458
13664
|
}
|
|
13459
13665
|
function serialize_aggregator_RunNodeWithInputsReq(arg) {
|
|
13460
|
-
if (!(arg instanceof
|
|
13666
|
+
if (!(arg instanceof avs_pb23.RunNodeWithInputsReq)) {
|
|
13461
13667
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsReq");
|
|
13462
13668
|
}
|
|
13463
13669
|
return Buffer.from(arg.serializeBinary());
|
|
13464
13670
|
}
|
|
13465
13671
|
function deserialize_aggregator_RunNodeWithInputsReq(buffer_arg) {
|
|
13466
|
-
return
|
|
13672
|
+
return avs_pb23.RunNodeWithInputsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13467
13673
|
}
|
|
13468
13674
|
function serialize_aggregator_RunNodeWithInputsResp(arg) {
|
|
13469
|
-
if (!(arg instanceof
|
|
13675
|
+
if (!(arg instanceof avs_pb23.RunNodeWithInputsResp)) {
|
|
13470
13676
|
throw new Error("Expected argument of type aggregator.RunNodeWithInputsResp");
|
|
13471
13677
|
}
|
|
13472
13678
|
return Buffer.from(arg.serializeBinary());
|
|
13473
13679
|
}
|
|
13474
13680
|
function deserialize_aggregator_RunNodeWithInputsResp(buffer_arg) {
|
|
13475
|
-
return
|
|
13681
|
+
return avs_pb23.RunNodeWithInputsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13476
13682
|
}
|
|
13477
13683
|
function serialize_aggregator_RunTriggerReq(arg) {
|
|
13478
|
-
if (!(arg instanceof
|
|
13684
|
+
if (!(arg instanceof avs_pb23.RunTriggerReq)) {
|
|
13479
13685
|
throw new Error("Expected argument of type aggregator.RunTriggerReq");
|
|
13480
13686
|
}
|
|
13481
13687
|
return Buffer.from(arg.serializeBinary());
|
|
13482
13688
|
}
|
|
13483
13689
|
function deserialize_aggregator_RunTriggerReq(buffer_arg) {
|
|
13484
|
-
return
|
|
13690
|
+
return avs_pb23.RunTriggerReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13485
13691
|
}
|
|
13486
13692
|
function serialize_aggregator_RunTriggerResp(arg) {
|
|
13487
|
-
if (!(arg instanceof
|
|
13693
|
+
if (!(arg instanceof avs_pb23.RunTriggerResp)) {
|
|
13488
13694
|
throw new Error("Expected argument of type aggregator.RunTriggerResp");
|
|
13489
13695
|
}
|
|
13490
13696
|
return Buffer.from(arg.serializeBinary());
|
|
13491
13697
|
}
|
|
13492
13698
|
function deserialize_aggregator_RunTriggerResp(buffer_arg) {
|
|
13493
|
-
return
|
|
13699
|
+
return avs_pb23.RunTriggerResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13494
13700
|
}
|
|
13495
13701
|
function serialize_aggregator_SetWalletReq(arg) {
|
|
13496
|
-
if (!(arg instanceof
|
|
13702
|
+
if (!(arg instanceof avs_pb23.SetWalletReq)) {
|
|
13497
13703
|
throw new Error("Expected argument of type aggregator.SetWalletReq");
|
|
13498
13704
|
}
|
|
13499
13705
|
return Buffer.from(arg.serializeBinary());
|
|
13500
13706
|
}
|
|
13501
13707
|
function deserialize_aggregator_SetWalletReq(buffer_arg) {
|
|
13502
|
-
return
|
|
13708
|
+
return avs_pb23.SetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13709
|
+
}
|
|
13710
|
+
function serialize_aggregator_SimulateTaskReq(arg) {
|
|
13711
|
+
if (!(arg instanceof avs_pb23.SimulateTaskReq)) {
|
|
13712
|
+
throw new Error("Expected argument of type aggregator.SimulateTaskReq");
|
|
13713
|
+
}
|
|
13714
|
+
return Buffer.from(arg.serializeBinary());
|
|
13715
|
+
}
|
|
13716
|
+
function deserialize_aggregator_SimulateTaskReq(buffer_arg) {
|
|
13717
|
+
return avs_pb23.SimulateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13503
13718
|
}
|
|
13504
13719
|
function serialize_aggregator_Task(arg) {
|
|
13505
|
-
if (!(arg instanceof
|
|
13720
|
+
if (!(arg instanceof avs_pb23.Task)) {
|
|
13506
13721
|
throw new Error("Expected argument of type aggregator.Task");
|
|
13507
13722
|
}
|
|
13508
13723
|
return Buffer.from(arg.serializeBinary());
|
|
13509
13724
|
}
|
|
13510
13725
|
function deserialize_aggregator_Task(buffer_arg) {
|
|
13511
|
-
return
|
|
13726
|
+
return avs_pb23.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13512
13727
|
}
|
|
13513
13728
|
function serialize_aggregator_TriggerTaskReq(arg) {
|
|
13514
|
-
if (!(arg instanceof
|
|
13729
|
+
if (!(arg instanceof avs_pb23.TriggerTaskReq)) {
|
|
13515
13730
|
throw new Error("Expected argument of type aggregator.TriggerTaskReq");
|
|
13516
13731
|
}
|
|
13517
13732
|
return Buffer.from(arg.serializeBinary());
|
|
13518
13733
|
}
|
|
13519
13734
|
function deserialize_aggregator_TriggerTaskReq(buffer_arg) {
|
|
13520
|
-
return
|
|
13735
|
+
return avs_pb23.TriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13521
13736
|
}
|
|
13522
13737
|
function serialize_aggregator_TriggerTaskResp(arg) {
|
|
13523
|
-
if (!(arg instanceof
|
|
13738
|
+
if (!(arg instanceof avs_pb23.TriggerTaskResp)) {
|
|
13524
13739
|
throw new Error("Expected argument of type aggregator.TriggerTaskResp");
|
|
13525
13740
|
}
|
|
13526
13741
|
return Buffer.from(arg.serializeBinary());
|
|
13527
13742
|
}
|
|
13528
13743
|
function deserialize_aggregator_TriggerTaskResp(buffer_arg) {
|
|
13529
|
-
return
|
|
13744
|
+
return avs_pb23.TriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13530
13745
|
}
|
|
13531
13746
|
function serialize_google_protobuf_BoolValue(arg) {
|
|
13532
13747
|
if (!(arg instanceof google_protobuf_wrappers_pb.BoolValue)) {
|
|
@@ -13543,8 +13758,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13543
13758
|
path: "/aggregator.Aggregator/GetKey",
|
|
13544
13759
|
requestStream: false,
|
|
13545
13760
|
responseStream: false,
|
|
13546
|
-
requestType:
|
|
13547
|
-
responseType:
|
|
13761
|
+
requestType: avs_pb23.GetKeyReq,
|
|
13762
|
+
responseType: avs_pb23.KeyResp,
|
|
13548
13763
|
requestSerialize: serialize_aggregator_GetKeyReq,
|
|
13549
13764
|
requestDeserialize: deserialize_aggregator_GetKeyReq,
|
|
13550
13765
|
responseSerialize: serialize_aggregator_KeyResp,
|
|
@@ -13555,8 +13770,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13555
13770
|
path: "/aggregator.Aggregator/GetSignatureFormat",
|
|
13556
13771
|
requestStream: false,
|
|
13557
13772
|
responseStream: false,
|
|
13558
|
-
requestType:
|
|
13559
|
-
responseType:
|
|
13773
|
+
requestType: avs_pb23.GetSignatureFormatReq,
|
|
13774
|
+
responseType: avs_pb23.GetSignatureFormatResp,
|
|
13560
13775
|
requestSerialize: serialize_aggregator_GetSignatureFormatReq,
|
|
13561
13776
|
requestDeserialize: deserialize_aggregator_GetSignatureFormatReq,
|
|
13562
13777
|
responseSerialize: serialize_aggregator_GetSignatureFormatResp,
|
|
@@ -13567,8 +13782,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13567
13782
|
path: "/aggregator.Aggregator/GetNonce",
|
|
13568
13783
|
requestStream: false,
|
|
13569
13784
|
responseStream: false,
|
|
13570
|
-
requestType:
|
|
13571
|
-
responseType:
|
|
13785
|
+
requestType: avs_pb23.NonceRequest,
|
|
13786
|
+
responseType: avs_pb23.NonceResp,
|
|
13572
13787
|
requestSerialize: serialize_aggregator_NonceRequest,
|
|
13573
13788
|
requestDeserialize: deserialize_aggregator_NonceRequest,
|
|
13574
13789
|
responseSerialize: serialize_aggregator_NonceResp,
|
|
@@ -13578,8 +13793,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13578
13793
|
path: "/aggregator.Aggregator/GetWallet",
|
|
13579
13794
|
requestStream: false,
|
|
13580
13795
|
responseStream: false,
|
|
13581
|
-
requestType:
|
|
13582
|
-
responseType:
|
|
13796
|
+
requestType: avs_pb23.GetWalletReq,
|
|
13797
|
+
responseType: avs_pb23.GetWalletResp,
|
|
13583
13798
|
requestSerialize: serialize_aggregator_GetWalletReq,
|
|
13584
13799
|
requestDeserialize: deserialize_aggregator_GetWalletReq,
|
|
13585
13800
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13589,8 +13804,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13589
13804
|
path: "/aggregator.Aggregator/SetWallet",
|
|
13590
13805
|
requestStream: false,
|
|
13591
13806
|
responseStream: false,
|
|
13592
|
-
requestType:
|
|
13593
|
-
responseType:
|
|
13807
|
+
requestType: avs_pb23.SetWalletReq,
|
|
13808
|
+
responseType: avs_pb23.GetWalletResp,
|
|
13594
13809
|
requestSerialize: serialize_aggregator_SetWalletReq,
|
|
13595
13810
|
requestDeserialize: deserialize_aggregator_SetWalletReq,
|
|
13596
13811
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -13600,8 +13815,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13600
13815
|
path: "/aggregator.Aggregator/ListWallets",
|
|
13601
13816
|
requestStream: false,
|
|
13602
13817
|
responseStream: false,
|
|
13603
|
-
requestType:
|
|
13604
|
-
responseType:
|
|
13818
|
+
requestType: avs_pb23.ListWalletReq,
|
|
13819
|
+
responseType: avs_pb23.ListWalletResp,
|
|
13605
13820
|
requestSerialize: serialize_aggregator_ListWalletReq,
|
|
13606
13821
|
requestDeserialize: deserialize_aggregator_ListWalletReq,
|
|
13607
13822
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
@@ -13612,8 +13827,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13612
13827
|
path: "/aggregator.Aggregator/CreateTask",
|
|
13613
13828
|
requestStream: false,
|
|
13614
13829
|
responseStream: false,
|
|
13615
|
-
requestType:
|
|
13616
|
-
responseType:
|
|
13830
|
+
requestType: avs_pb23.CreateTaskReq,
|
|
13831
|
+
responseType: avs_pb23.CreateTaskResp,
|
|
13617
13832
|
requestSerialize: serialize_aggregator_CreateTaskReq,
|
|
13618
13833
|
requestDeserialize: deserialize_aggregator_CreateTaskReq,
|
|
13619
13834
|
responseSerialize: serialize_aggregator_CreateTaskResp,
|
|
@@ -13623,8 +13838,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13623
13838
|
path: "/aggregator.Aggregator/ListTasks",
|
|
13624
13839
|
requestStream: false,
|
|
13625
13840
|
responseStream: false,
|
|
13626
|
-
requestType:
|
|
13627
|
-
responseType:
|
|
13841
|
+
requestType: avs_pb23.ListTasksReq,
|
|
13842
|
+
responseType: avs_pb23.ListTasksResp,
|
|
13628
13843
|
requestSerialize: serialize_aggregator_ListTasksReq,
|
|
13629
13844
|
requestDeserialize: deserialize_aggregator_ListTasksReq,
|
|
13630
13845
|
responseSerialize: serialize_aggregator_ListTasksResp,
|
|
@@ -13634,8 +13849,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13634
13849
|
path: "/aggregator.Aggregator/GetTask",
|
|
13635
13850
|
requestStream: false,
|
|
13636
13851
|
responseStream: false,
|
|
13637
|
-
requestType:
|
|
13638
|
-
responseType:
|
|
13852
|
+
requestType: avs_pb23.IdReq,
|
|
13853
|
+
responseType: avs_pb23.Task,
|
|
13639
13854
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13640
13855
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
13641
13856
|
responseSerialize: serialize_aggregator_Task,
|
|
@@ -13645,8 +13860,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13645
13860
|
path: "/aggregator.Aggregator/ListExecutions",
|
|
13646
13861
|
requestStream: false,
|
|
13647
13862
|
responseStream: false,
|
|
13648
|
-
requestType:
|
|
13649
|
-
responseType:
|
|
13863
|
+
requestType: avs_pb23.ListExecutionsReq,
|
|
13864
|
+
responseType: avs_pb23.ListExecutionsResp,
|
|
13650
13865
|
requestSerialize: serialize_aggregator_ListExecutionsReq,
|
|
13651
13866
|
requestDeserialize: deserialize_aggregator_ListExecutionsReq,
|
|
13652
13867
|
responseSerialize: serialize_aggregator_ListExecutionsResp,
|
|
@@ -13656,8 +13871,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13656
13871
|
path: "/aggregator.Aggregator/GetExecution",
|
|
13657
13872
|
requestStream: false,
|
|
13658
13873
|
responseStream: false,
|
|
13659
|
-
requestType:
|
|
13660
|
-
responseType:
|
|
13874
|
+
requestType: avs_pb23.ExecutionReq,
|
|
13875
|
+
responseType: avs_pb23.Execution,
|
|
13661
13876
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13662
13877
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13663
13878
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -13667,8 +13882,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13667
13882
|
path: "/aggregator.Aggregator/GetExecutionStatus",
|
|
13668
13883
|
requestStream: false,
|
|
13669
13884
|
responseStream: false,
|
|
13670
|
-
requestType:
|
|
13671
|
-
responseType:
|
|
13885
|
+
requestType: avs_pb23.ExecutionReq,
|
|
13886
|
+
responseType: avs_pb23.ExecutionStatusResp,
|
|
13672
13887
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
13673
13888
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
13674
13889
|
responseSerialize: serialize_aggregator_ExecutionStatusResp,
|
|
@@ -13678,7 +13893,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13678
13893
|
path: "/aggregator.Aggregator/CancelTask",
|
|
13679
13894
|
requestStream: false,
|
|
13680
13895
|
responseStream: false,
|
|
13681
|
-
requestType:
|
|
13896
|
+
requestType: avs_pb23.IdReq,
|
|
13682
13897
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13683
13898
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13684
13899
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13689,7 +13904,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13689
13904
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
13690
13905
|
requestStream: false,
|
|
13691
13906
|
responseStream: false,
|
|
13692
|
-
requestType:
|
|
13907
|
+
requestType: avs_pb23.IdReq,
|
|
13693
13908
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13694
13909
|
requestSerialize: serialize_aggregator_IdReq,
|
|
13695
13910
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -13700,8 +13915,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13700
13915
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
13701
13916
|
requestStream: false,
|
|
13702
13917
|
responseStream: false,
|
|
13703
|
-
requestType:
|
|
13704
|
-
responseType:
|
|
13918
|
+
requestType: avs_pb23.TriggerTaskReq,
|
|
13919
|
+
responseType: avs_pb23.TriggerTaskResp,
|
|
13705
13920
|
requestSerialize: serialize_aggregator_TriggerTaskReq,
|
|
13706
13921
|
requestDeserialize: deserialize_aggregator_TriggerTaskReq,
|
|
13707
13922
|
responseSerialize: serialize_aggregator_TriggerTaskResp,
|
|
@@ -13714,7 +13929,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13714
13929
|
path: "/aggregator.Aggregator/CreateSecret",
|
|
13715
13930
|
requestStream: false,
|
|
13716
13931
|
responseStream: false,
|
|
13717
|
-
requestType:
|
|
13932
|
+
requestType: avs_pb23.CreateOrUpdateSecretReq,
|
|
13718
13933
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13719
13934
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13720
13935
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13725,7 +13940,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13725
13940
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
13726
13941
|
requestStream: false,
|
|
13727
13942
|
responseStream: false,
|
|
13728
|
-
requestType:
|
|
13943
|
+
requestType: avs_pb23.DeleteSecretReq,
|
|
13729
13944
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13730
13945
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
13731
13946
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
@@ -13738,8 +13953,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13738
13953
|
path: "/aggregator.Aggregator/ListSecrets",
|
|
13739
13954
|
requestStream: false,
|
|
13740
13955
|
responseStream: false,
|
|
13741
|
-
requestType:
|
|
13742
|
-
responseType:
|
|
13956
|
+
requestType: avs_pb23.ListSecretsReq,
|
|
13957
|
+
responseType: avs_pb23.ListSecretsResp,
|
|
13743
13958
|
requestSerialize: serialize_aggregator_ListSecretsReq,
|
|
13744
13959
|
requestDeserialize: deserialize_aggregator_ListSecretsReq,
|
|
13745
13960
|
responseSerialize: serialize_aggregator_ListSecretsResp,
|
|
@@ -13751,7 +13966,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13751
13966
|
path: "/aggregator.Aggregator/UpdateSecret",
|
|
13752
13967
|
requestStream: false,
|
|
13753
13968
|
responseStream: false,
|
|
13754
|
-
requestType:
|
|
13969
|
+
requestType: avs_pb23.CreateOrUpdateSecretReq,
|
|
13755
13970
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
13756
13971
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
13757
13972
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -13768,8 +13983,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13768
13983
|
path: "/aggregator.Aggregator/GetWorkflowCount",
|
|
13769
13984
|
requestStream: false,
|
|
13770
13985
|
responseStream: false,
|
|
13771
|
-
requestType:
|
|
13772
|
-
responseType:
|
|
13986
|
+
requestType: avs_pb23.GetWorkflowCountReq,
|
|
13987
|
+
responseType: avs_pb23.GetWorkflowCountResp,
|
|
13773
13988
|
requestSerialize: serialize_aggregator_GetWorkflowCountReq,
|
|
13774
13989
|
requestDeserialize: deserialize_aggregator_GetWorkflowCountReq,
|
|
13775
13990
|
responseSerialize: serialize_aggregator_GetWorkflowCountResp,
|
|
@@ -13783,8 +13998,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13783
13998
|
path: "/aggregator.Aggregator/GetExecutionCount",
|
|
13784
13999
|
requestStream: false,
|
|
13785
14000
|
responseStream: false,
|
|
13786
|
-
requestType:
|
|
13787
|
-
responseType:
|
|
14001
|
+
requestType: avs_pb23.GetExecutionCountReq,
|
|
14002
|
+
responseType: avs_pb23.GetExecutionCountResp,
|
|
13788
14003
|
requestSerialize: serialize_aggregator_GetExecutionCountReq,
|
|
13789
14004
|
requestDeserialize: deserialize_aggregator_GetExecutionCountReq,
|
|
13790
14005
|
responseSerialize: serialize_aggregator_GetExecutionCountResp,
|
|
@@ -13797,8 +14012,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13797
14012
|
path: "/aggregator.Aggregator/GetExecutionStats",
|
|
13798
14013
|
requestStream: false,
|
|
13799
14014
|
responseStream: false,
|
|
13800
|
-
requestType:
|
|
13801
|
-
responseType:
|
|
14015
|
+
requestType: avs_pb23.GetExecutionStatsReq,
|
|
14016
|
+
responseType: avs_pb23.GetExecutionStatsResp,
|
|
13802
14017
|
requestSerialize: serialize_aggregator_GetExecutionStatsReq,
|
|
13803
14018
|
requestDeserialize: deserialize_aggregator_GetExecutionStatsReq,
|
|
13804
14019
|
responseSerialize: serialize_aggregator_GetExecutionStatsResp,
|
|
@@ -13809,8 +14024,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13809
14024
|
path: "/aggregator.Aggregator/RunNodeWithInputs",
|
|
13810
14025
|
requestStream: false,
|
|
13811
14026
|
responseStream: false,
|
|
13812
|
-
requestType:
|
|
13813
|
-
responseType:
|
|
14027
|
+
requestType: avs_pb23.RunNodeWithInputsReq,
|
|
14028
|
+
responseType: avs_pb23.RunNodeWithInputsResp,
|
|
13814
14029
|
requestSerialize: serialize_aggregator_RunNodeWithInputsReq,
|
|
13815
14030
|
requestDeserialize: deserialize_aggregator_RunNodeWithInputsReq,
|
|
13816
14031
|
responseSerialize: serialize_aggregator_RunNodeWithInputsResp,
|
|
@@ -13821,12 +14036,24 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13821
14036
|
path: "/aggregator.Aggregator/RunTrigger",
|
|
13822
14037
|
requestStream: false,
|
|
13823
14038
|
responseStream: false,
|
|
13824
|
-
requestType:
|
|
13825
|
-
responseType:
|
|
14039
|
+
requestType: avs_pb23.RunTriggerReq,
|
|
14040
|
+
responseType: avs_pb23.RunTriggerResp,
|
|
13826
14041
|
requestSerialize: serialize_aggregator_RunTriggerReq,
|
|
13827
14042
|
requestDeserialize: deserialize_aggregator_RunTriggerReq,
|
|
13828
14043
|
responseSerialize: serialize_aggregator_RunTriggerResp,
|
|
13829
14044
|
responseDeserialize: deserialize_aggregator_RunTriggerResp
|
|
14045
|
+
},
|
|
14046
|
+
// SimulateTask allows executing a complete task simulation including trigger and all workflow nodes
|
|
14047
|
+
simulateTask: {
|
|
14048
|
+
path: "/aggregator.Aggregator/SimulateTask",
|
|
14049
|
+
requestStream: false,
|
|
14050
|
+
responseStream: false,
|
|
14051
|
+
requestType: avs_pb23.SimulateTaskReq,
|
|
14052
|
+
responseType: avs_pb23.Execution,
|
|
14053
|
+
requestSerialize: serialize_aggregator_SimulateTaskReq,
|
|
14054
|
+
requestDeserialize: deserialize_aggregator_SimulateTaskReq,
|
|
14055
|
+
responseSerialize: serialize_aggregator_Execution,
|
|
14056
|
+
responseDeserialize: deserialize_aggregator_Execution
|
|
13830
14057
|
}
|
|
13831
14058
|
};
|
|
13832
14059
|
exports.AggregatorClient = grpc.makeGenericClientConstructor(AggregatorService, "Aggregator");
|
|
@@ -13835,7 +14062,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
13835
14062
|
|
|
13836
14063
|
// src/index.ts
|
|
13837
14064
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
13838
|
-
var
|
|
14065
|
+
var avs_pb22 = __toESM(require_avs_pb());
|
|
13839
14066
|
import { credentials, Metadata } from "@grpc/grpc-js";
|
|
13840
14067
|
|
|
13841
14068
|
// src/models/workflow.ts
|
|
@@ -14206,7 +14433,7 @@ var ManualTrigger = class _ManualTrigger extends interface_default {
|
|
|
14206
14433
|
var manual_default = ManualTrigger;
|
|
14207
14434
|
|
|
14208
14435
|
// src/models/trigger/factory.ts
|
|
14209
|
-
import { TriggerType as
|
|
14436
|
+
import { TriggerType as TriggerType7 } from "@avaprotocol/types";
|
|
14210
14437
|
|
|
14211
14438
|
// src/utils.ts
|
|
14212
14439
|
import {
|
|
@@ -14214,6 +14441,7 @@ import {
|
|
|
14214
14441
|
Struct as ProtobufStruct,
|
|
14215
14442
|
ListValue as ProtobufListValue
|
|
14216
14443
|
} from "google-protobuf/google/protobuf/struct_pb";
|
|
14444
|
+
import { TriggerType as TriggerType6, NodeType } from "@avaprotocol/types";
|
|
14217
14445
|
function convertProtobufValueToJs(value) {
|
|
14218
14446
|
if (!value) {
|
|
14219
14447
|
return void 0;
|
|
@@ -14274,6 +14502,78 @@ function convertJSValueToProtobuf(value) {
|
|
|
14274
14502
|
}
|
|
14275
14503
|
return protobufValue;
|
|
14276
14504
|
}
|
|
14505
|
+
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
14506
|
+
switch (protobufType) {
|
|
14507
|
+
case "TRIGGER_TYPE_MANUAL":
|
|
14508
|
+
return TriggerType6.Manual;
|
|
14509
|
+
// "manualTrigger"
|
|
14510
|
+
case "TRIGGER_TYPE_FIXED_TIME":
|
|
14511
|
+
return TriggerType6.FixedTime;
|
|
14512
|
+
// "fixedTimeTrigger"
|
|
14513
|
+
case "TRIGGER_TYPE_CRON":
|
|
14514
|
+
return TriggerType6.Cron;
|
|
14515
|
+
// "cronTrigger"
|
|
14516
|
+
case "TRIGGER_TYPE_BLOCK":
|
|
14517
|
+
return TriggerType6.Block;
|
|
14518
|
+
// "blockTrigger"
|
|
14519
|
+
case "TRIGGER_TYPE_EVENT":
|
|
14520
|
+
return TriggerType6.Event;
|
|
14521
|
+
// "eventTrigger"
|
|
14522
|
+
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
14523
|
+
return TriggerType6.Unspecified;
|
|
14524
|
+
// "unspecified"
|
|
14525
|
+
default:
|
|
14526
|
+
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
14527
|
+
return protobufType;
|
|
14528
|
+
}
|
|
14529
|
+
}
|
|
14530
|
+
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
14531
|
+
switch (protobufType) {
|
|
14532
|
+
case "NODE_TYPE_ETH_TRANSFER":
|
|
14533
|
+
return NodeType.ETHTransfer;
|
|
14534
|
+
// "ethTransfer"
|
|
14535
|
+
case "NODE_TYPE_CONTRACT_WRITE":
|
|
14536
|
+
return NodeType.ContractWrite;
|
|
14537
|
+
// "contractWrite"
|
|
14538
|
+
case "NODE_TYPE_CONTRACT_READ":
|
|
14539
|
+
return NodeType.ContractRead;
|
|
14540
|
+
// "contractRead"
|
|
14541
|
+
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
14542
|
+
return NodeType.GraphQLQuery;
|
|
14543
|
+
// "graphql"
|
|
14544
|
+
case "NODE_TYPE_REST_API":
|
|
14545
|
+
return NodeType.RestAPI;
|
|
14546
|
+
// "restApi"
|
|
14547
|
+
case "NODE_TYPE_CUSTOM_CODE":
|
|
14548
|
+
return NodeType.CustomCode;
|
|
14549
|
+
// "customCode"
|
|
14550
|
+
case "NODE_TYPE_BRANCH":
|
|
14551
|
+
return NodeType.Branch;
|
|
14552
|
+
// "branch"
|
|
14553
|
+
case "NODE_TYPE_FILTER":
|
|
14554
|
+
return NodeType.Filter;
|
|
14555
|
+
// "filter"
|
|
14556
|
+
case "NODE_TYPE_LOOP":
|
|
14557
|
+
return NodeType.Loop;
|
|
14558
|
+
// "loop"
|
|
14559
|
+
case "NODE_TYPE_UNSPECIFIED":
|
|
14560
|
+
return NodeType.Unspecified;
|
|
14561
|
+
// "unspecified"
|
|
14562
|
+
default:
|
|
14563
|
+
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
14564
|
+
return protobufType;
|
|
14565
|
+
}
|
|
14566
|
+
}
|
|
14567
|
+
function convertProtobufStepTypeToSdk(protobufType) {
|
|
14568
|
+
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
14569
|
+
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
14570
|
+
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
14571
|
+
return convertProtobufNodeTypeToSdk(protobufType);
|
|
14572
|
+
} else {
|
|
14573
|
+
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
14574
|
+
return protobufType;
|
|
14575
|
+
}
|
|
14576
|
+
}
|
|
14277
14577
|
|
|
14278
14578
|
// src/models/trigger/factory.ts
|
|
14279
14579
|
var TriggerFactory = class {
|
|
@@ -14284,15 +14584,15 @@ var TriggerFactory = class {
|
|
|
14284
14584
|
*/
|
|
14285
14585
|
static create(props) {
|
|
14286
14586
|
switch (props.type) {
|
|
14287
|
-
case
|
|
14587
|
+
case TriggerType7.Block:
|
|
14288
14588
|
return new block_default(props);
|
|
14289
|
-
case
|
|
14589
|
+
case TriggerType7.Cron:
|
|
14290
14590
|
return new cron_default(props);
|
|
14291
|
-
case
|
|
14591
|
+
case TriggerType7.Event:
|
|
14292
14592
|
return new event_default(props);
|
|
14293
|
-
case
|
|
14593
|
+
case TriggerType7.FixedTime:
|
|
14294
14594
|
return new fixedTime_default(props);
|
|
14295
|
-
case
|
|
14595
|
+
case TriggerType7.Manual:
|
|
14296
14596
|
return new manual_default(props);
|
|
14297
14597
|
}
|
|
14298
14598
|
throw new Error("Unsupported trigger type");
|
|
@@ -14363,7 +14663,7 @@ import _3 from "lodash";
|
|
|
14363
14663
|
|
|
14364
14664
|
// src/models/node/interface.ts
|
|
14365
14665
|
var avs_pb8 = __toESM(require_avs_pb());
|
|
14366
|
-
import { NodeType, NodeTypeGoConverter } from "@avaprotocol/types";
|
|
14666
|
+
import { NodeType as NodeType2, NodeTypeGoConverter } from "@avaprotocol/types";
|
|
14367
14667
|
import _2 from "lodash";
|
|
14368
14668
|
var Node = class {
|
|
14369
14669
|
constructor(props) {
|
|
@@ -14386,16 +14686,16 @@ var interface_default2 = Node;
|
|
|
14386
14686
|
|
|
14387
14687
|
// src/models/node/contractWrite.ts
|
|
14388
14688
|
var avs_pb9 = __toESM(require_avs_pb());
|
|
14389
|
-
import { NodeType as
|
|
14689
|
+
import { NodeType as NodeType3 } from "@avaprotocol/types";
|
|
14390
14690
|
var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
14391
14691
|
constructor(props) {
|
|
14392
|
-
super({ ...props, type:
|
|
14692
|
+
super({ ...props, type: NodeType3.ContractWrite, data: props.data });
|
|
14393
14693
|
}
|
|
14394
14694
|
static fromResponse(raw) {
|
|
14395
14695
|
const obj = raw.toObject();
|
|
14396
14696
|
return new _ContractWriteNode({
|
|
14397
14697
|
...obj,
|
|
14398
|
-
type:
|
|
14698
|
+
type: NodeType3.ContractWrite,
|
|
14399
14699
|
data: raw.getContractWrite().getConfig().toObject()
|
|
14400
14700
|
});
|
|
14401
14701
|
}
|
|
@@ -14421,16 +14721,16 @@ var contractWrite_default = ContractWriteNode2;
|
|
|
14421
14721
|
|
|
14422
14722
|
// src/models/node/customCode.ts
|
|
14423
14723
|
var avs_pb10 = __toESM(require_avs_pb());
|
|
14424
|
-
import { NodeType as
|
|
14724
|
+
import { NodeType as NodeType4 } from "@avaprotocol/types";
|
|
14425
14725
|
var CustomCodeNode2 = class _CustomCodeNode extends interface_default2 {
|
|
14426
14726
|
constructor(props) {
|
|
14427
|
-
super({ ...props, type:
|
|
14727
|
+
super({ ...props, type: NodeType4.CustomCode, data: props.data });
|
|
14428
14728
|
}
|
|
14429
14729
|
static fromResponse(raw) {
|
|
14430
14730
|
const obj = raw.toObject();
|
|
14431
14731
|
return new _CustomCodeNode({
|
|
14432
14732
|
...obj,
|
|
14433
|
-
type:
|
|
14733
|
+
type: NodeType4.CustomCode,
|
|
14434
14734
|
data: raw.getCustomCode().getConfig().toObject()
|
|
14435
14735
|
});
|
|
14436
14736
|
}
|
|
@@ -14458,12 +14758,12 @@ var customCode_default = CustomCodeNode2;
|
|
|
14458
14758
|
|
|
14459
14759
|
// src/models/node/graphqlQuery.ts
|
|
14460
14760
|
var avs_pb11 = __toESM(require_avs_pb());
|
|
14461
|
-
import { NodeType as
|
|
14761
|
+
import { NodeType as NodeType5 } from "@avaprotocol/types";
|
|
14462
14762
|
var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
14463
14763
|
constructor(props) {
|
|
14464
14764
|
super({
|
|
14465
14765
|
...props,
|
|
14466
|
-
type:
|
|
14766
|
+
type: NodeType5.GraphQLQuery,
|
|
14467
14767
|
data: props.data
|
|
14468
14768
|
});
|
|
14469
14769
|
}
|
|
@@ -14471,7 +14771,7 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends interface_default2 {
|
|
|
14471
14771
|
const obj = raw.toObject();
|
|
14472
14772
|
return new _GraphQLQueryNode({
|
|
14473
14773
|
...obj,
|
|
14474
|
-
type:
|
|
14774
|
+
type: NodeType5.GraphQLQuery,
|
|
14475
14775
|
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
14476
14776
|
});
|
|
14477
14777
|
}
|
|
@@ -14503,17 +14803,17 @@ var graphqlQuery_default = GraphQLQueryNode2;
|
|
|
14503
14803
|
// src/models/node/restApi.ts
|
|
14504
14804
|
var avs_pb12 = __toESM(require_avs_pb());
|
|
14505
14805
|
import {
|
|
14506
|
-
NodeType as
|
|
14806
|
+
NodeType as NodeType6
|
|
14507
14807
|
} from "@avaprotocol/types";
|
|
14508
14808
|
var RestAPINode2 = class _RestAPINode extends interface_default2 {
|
|
14509
14809
|
constructor(props) {
|
|
14510
|
-
super({ ...props, type:
|
|
14810
|
+
super({ ...props, type: NodeType6.RestAPI, data: props.data });
|
|
14511
14811
|
}
|
|
14512
14812
|
static fromResponse(raw) {
|
|
14513
14813
|
const obj = raw.toObject();
|
|
14514
14814
|
return new _RestAPINode({
|
|
14515
14815
|
...obj,
|
|
14516
|
-
type:
|
|
14816
|
+
type: NodeType6.RestAPI,
|
|
14517
14817
|
data: raw.getRestApi().getConfig().toObject()
|
|
14518
14818
|
});
|
|
14519
14819
|
}
|
|
@@ -14555,16 +14855,16 @@ var restApi_default = RestAPINode2;
|
|
|
14555
14855
|
|
|
14556
14856
|
// src/models/node/contractRead.ts
|
|
14557
14857
|
var avs_pb13 = __toESM(require_avs_pb());
|
|
14558
|
-
import { NodeType as
|
|
14858
|
+
import { NodeType as NodeType7 } from "@avaprotocol/types";
|
|
14559
14859
|
var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
14560
14860
|
constructor(props) {
|
|
14561
|
-
super({ ...props, type:
|
|
14861
|
+
super({ ...props, type: NodeType7.ContractRead, data: props.data });
|
|
14562
14862
|
}
|
|
14563
14863
|
static fromResponse(raw) {
|
|
14564
14864
|
const obj = raw.toObject();
|
|
14565
14865
|
return new _ContractReadNode({
|
|
14566
14866
|
...obj,
|
|
14567
|
-
type:
|
|
14867
|
+
type: NodeType7.ContractRead,
|
|
14568
14868
|
data: raw.getContractRead().getConfig().toObject()
|
|
14569
14869
|
});
|
|
14570
14870
|
}
|
|
@@ -14596,16 +14896,16 @@ var contractRead_default = ContractReadNode2;
|
|
|
14596
14896
|
|
|
14597
14897
|
// src/models/node/ethTransfer.ts
|
|
14598
14898
|
var avs_pb14 = __toESM(require_avs_pb());
|
|
14599
|
-
import { NodeType as
|
|
14899
|
+
import { NodeType as NodeType8 } from "@avaprotocol/types";
|
|
14600
14900
|
var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
14601
14901
|
constructor(props) {
|
|
14602
|
-
super({ ...props, type:
|
|
14902
|
+
super({ ...props, type: NodeType8.ETHTransfer, data: props.data });
|
|
14603
14903
|
}
|
|
14604
14904
|
static fromResponse(raw) {
|
|
14605
14905
|
const obj = raw.toObject();
|
|
14606
14906
|
return new _ETHTransferNode({
|
|
14607
14907
|
...obj,
|
|
14608
|
-
type:
|
|
14908
|
+
type: NodeType8.ETHTransfer,
|
|
14609
14909
|
data: raw.getEthTransfer().getConfig().toObject()
|
|
14610
14910
|
});
|
|
14611
14911
|
}
|
|
@@ -14629,17 +14929,17 @@ var ETHTransferNode2 = class _ETHTransferNode extends interface_default2 {
|
|
|
14629
14929
|
var ethTransfer_default = ETHTransferNode2;
|
|
14630
14930
|
|
|
14631
14931
|
// src/models/node/branch.ts
|
|
14632
|
-
import { NodeType as
|
|
14932
|
+
import { NodeType as NodeType9 } from "@avaprotocol/types";
|
|
14633
14933
|
var avs_pb15 = __toESM(require_avs_pb());
|
|
14634
14934
|
var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
14635
14935
|
constructor(props) {
|
|
14636
|
-
super({ ...props, type:
|
|
14936
|
+
super({ ...props, type: NodeType9.Branch, data: props.data });
|
|
14637
14937
|
}
|
|
14638
14938
|
static fromResponse(raw) {
|
|
14639
14939
|
const obj = raw.toObject();
|
|
14640
14940
|
return new _BranchNode({
|
|
14641
14941
|
...obj,
|
|
14642
|
-
type:
|
|
14942
|
+
type: NodeType9.Branch,
|
|
14643
14943
|
data: raw.getBranch().toObject().config
|
|
14644
14944
|
});
|
|
14645
14945
|
}
|
|
@@ -14675,16 +14975,16 @@ var branch_default = BranchNode2;
|
|
|
14675
14975
|
|
|
14676
14976
|
// src/models/node/filter.ts
|
|
14677
14977
|
var avs_pb16 = __toESM(require_avs_pb());
|
|
14678
|
-
import { NodeType as
|
|
14978
|
+
import { NodeType as NodeType10 } from "@avaprotocol/types";
|
|
14679
14979
|
var FilterNode2 = class _FilterNode extends interface_default2 {
|
|
14680
14980
|
constructor(props) {
|
|
14681
|
-
super({ ...props, type:
|
|
14981
|
+
super({ ...props, type: NodeType10.Filter, data: props.data });
|
|
14682
14982
|
}
|
|
14683
14983
|
static fromResponse(raw) {
|
|
14684
14984
|
const obj = raw.toObject();
|
|
14685
14985
|
return new _FilterNode({
|
|
14686
14986
|
...obj,
|
|
14687
|
-
type:
|
|
14987
|
+
type: NodeType10.Filter,
|
|
14688
14988
|
data: raw.getFilter().getConfig().toObject()
|
|
14689
14989
|
});
|
|
14690
14990
|
}
|
|
@@ -14709,10 +15009,10 @@ var filter_default = FilterNode2;
|
|
|
14709
15009
|
|
|
14710
15010
|
// src/models/node/loop.ts
|
|
14711
15011
|
var avs_pb17 = __toESM(require_avs_pb());
|
|
14712
|
-
import { NodeType as
|
|
15012
|
+
import { NodeType as NodeType11 } from "@avaprotocol/types";
|
|
14713
15013
|
var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
14714
15014
|
constructor(props) {
|
|
14715
|
-
super({ ...props, type:
|
|
15015
|
+
super({ ...props, type: NodeType11.Loop, data: props.data });
|
|
14716
15016
|
}
|
|
14717
15017
|
static fromResponse(raw) {
|
|
14718
15018
|
const loopNode = raw.getLoop();
|
|
@@ -14734,7 +15034,7 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
14734
15034
|
return new _LoopNode({
|
|
14735
15035
|
id: raw.getId(),
|
|
14736
15036
|
name: raw.getName(),
|
|
14737
|
-
type:
|
|
15037
|
+
type: NodeType11.Loop,
|
|
14738
15038
|
data
|
|
14739
15039
|
});
|
|
14740
15040
|
}
|
|
@@ -14829,31 +15129,31 @@ var loop_default = LoopNode2;
|
|
|
14829
15129
|
|
|
14830
15130
|
// src/models/node/factory.ts
|
|
14831
15131
|
import {
|
|
14832
|
-
NodeType as
|
|
15132
|
+
NodeType as NodeType12,
|
|
14833
15133
|
CustomCodeLangs as CustomCodeLangs2
|
|
14834
15134
|
} from "@avaprotocol/types";
|
|
14835
15135
|
var NodeFactory = class {
|
|
14836
15136
|
static create(props) {
|
|
14837
15137
|
switch (props.type) {
|
|
14838
|
-
case
|
|
15138
|
+
case NodeType12.ContractWrite:
|
|
14839
15139
|
return new contractWrite_default(props);
|
|
14840
|
-
case
|
|
15140
|
+
case NodeType12.RestAPI:
|
|
14841
15141
|
return new restApi_default(props);
|
|
14842
|
-
case
|
|
15142
|
+
case NodeType12.CustomCode:
|
|
14843
15143
|
return new customCode_default(props);
|
|
14844
|
-
case
|
|
15144
|
+
case NodeType12.ContractRead:
|
|
14845
15145
|
return new contractRead_default(props);
|
|
14846
|
-
case
|
|
15146
|
+
case NodeType12.ETHTransfer:
|
|
14847
15147
|
return new ethTransfer_default(props);
|
|
14848
|
-
case
|
|
15148
|
+
case NodeType12.GraphQLQuery:
|
|
14849
15149
|
return new graphqlQuery_default(props);
|
|
14850
|
-
case
|
|
15150
|
+
case NodeType12.Branch:
|
|
14851
15151
|
return new branch_default(props);
|
|
14852
|
-
case
|
|
15152
|
+
case NodeType12.Filter:
|
|
14853
15153
|
return new filter_default(props);
|
|
14854
|
-
case
|
|
15154
|
+
case NodeType12.Loop:
|
|
14855
15155
|
return new loop_default(props);
|
|
14856
|
-
case
|
|
15156
|
+
case NodeType12.Unspecified:
|
|
14857
15157
|
throw new Error("Cannot create node with unspecified type");
|
|
14858
15158
|
default:
|
|
14859
15159
|
throw new Error(`Unsupported node type: ${props.type}`);
|
|
@@ -15047,23 +15347,20 @@ var Workflow = class _Workflow {
|
|
|
15047
15347
|
};
|
|
15048
15348
|
var workflow_default = Workflow;
|
|
15049
15349
|
|
|
15050
|
-
// src/models/execution.ts
|
|
15051
|
-
var avs_pb21 = __toESM(require_avs_pb());
|
|
15052
|
-
import { TriggerTypeConverter } from "@avaprotocol/types";
|
|
15053
|
-
|
|
15054
15350
|
// src/models/step.ts
|
|
15055
15351
|
var avs_pb20 = __toESM(require_avs_pb());
|
|
15056
15352
|
var Step = class _Step {
|
|
15057
|
-
// Changed to any
|
|
15058
15353
|
constructor(props) {
|
|
15059
|
-
this.
|
|
15354
|
+
this.id = props.id;
|
|
15355
|
+
this.type = props.type;
|
|
15356
|
+
this.name = props.name;
|
|
15060
15357
|
this.success = props.success;
|
|
15061
|
-
this.log = props.log;
|
|
15062
15358
|
this.error = props.error;
|
|
15063
|
-
this.
|
|
15064
|
-
this.endAt = props.endAt;
|
|
15359
|
+
this.log = props.log;
|
|
15065
15360
|
this.inputsList = props.inputsList;
|
|
15066
15361
|
this.output = props.output;
|
|
15362
|
+
this.startAt = props.startAt;
|
|
15363
|
+
this.endAt = props.endAt;
|
|
15067
15364
|
}
|
|
15068
15365
|
static getOutput(step) {
|
|
15069
15366
|
const outputDataType = step.getOutputDataCase();
|
|
@@ -15071,9 +15368,38 @@ var Step = class _Step {
|
|
|
15071
15368
|
switch (outputDataType) {
|
|
15072
15369
|
case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
15073
15370
|
return null;
|
|
15371
|
+
// Trigger outputs
|
|
15372
|
+
case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
|
|
15373
|
+
const blockOutput = step.getBlockTrigger()?.toObject();
|
|
15374
|
+
return blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
15375
|
+
case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
15376
|
+
const fixedTimeOutput = step.getFixedTimeTrigger()?.toObject();
|
|
15377
|
+
return fixedTimeOutput ? {
|
|
15378
|
+
timestamp: fixedTimeOutput.timestamp,
|
|
15379
|
+
timestampIso: fixedTimeOutput.timestampIso
|
|
15380
|
+
} : void 0;
|
|
15381
|
+
case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
|
|
15382
|
+
const cronOutput = step.getCronTrigger()?.toObject();
|
|
15383
|
+
return cronOutput ? {
|
|
15384
|
+
timestamp: cronOutput.timestamp,
|
|
15385
|
+
timestampIso: cronOutput.timestampIso
|
|
15386
|
+
} : void 0;
|
|
15387
|
+
case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
|
|
15388
|
+
const eventTrigger = step.getEventTrigger();
|
|
15389
|
+
if (eventTrigger) {
|
|
15390
|
+
if (eventTrigger.hasEvmLog()) {
|
|
15391
|
+
return eventTrigger.getEvmLog()?.toObject();
|
|
15392
|
+
} else if (eventTrigger.hasTransferLog()) {
|
|
15393
|
+
return eventTrigger.getTransferLog()?.toObject();
|
|
15394
|
+
}
|
|
15395
|
+
}
|
|
15396
|
+
return void 0;
|
|
15397
|
+
case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
|
|
15398
|
+
const manualOutput = step.getManualTrigger()?.toObject();
|
|
15399
|
+
return manualOutput || void 0;
|
|
15400
|
+
// Node outputs
|
|
15074
15401
|
case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
15075
15402
|
return step.getEthTransfer()?.toObject();
|
|
15076
|
-
// Specific structure, not google.protobuf.Value
|
|
15077
15403
|
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
|
|
15078
15404
|
nodeOutputMessage = step.getGraphql();
|
|
15079
15405
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
@@ -15083,10 +15409,8 @@ var Step = class _Step {
|
|
|
15083
15409
|
return nodeOutputMessage.getDataList().map((val) => convertProtobufValueToJs(val));
|
|
15084
15410
|
}
|
|
15085
15411
|
return [];
|
|
15086
|
-
// Default to empty array if no data
|
|
15087
15412
|
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
15088
15413
|
return step.getContractWrite()?.toObject();
|
|
15089
|
-
// Specific structure
|
|
15090
15414
|
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
15091
15415
|
nodeOutputMessage = step.getCustomCode();
|
|
15092
15416
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
@@ -15095,7 +15419,6 @@ var Step = class _Step {
|
|
|
15095
15419
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
15096
15420
|
case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
|
|
15097
15421
|
return step.getBranch()?.toObject();
|
|
15098
|
-
// Specific structure
|
|
15099
15422
|
case avs_pb20.Execution.Step.OutputDataCase.FILTER:
|
|
15100
15423
|
nodeOutputMessage = step.getFilter();
|
|
15101
15424
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? nodeOutputMessage.getData() : void 0;
|
|
@@ -15110,14 +15433,16 @@ var Step = class _Step {
|
|
|
15110
15433
|
}
|
|
15111
15434
|
static fromResponse(step) {
|
|
15112
15435
|
return new _Step({
|
|
15113
|
-
|
|
15436
|
+
id: step.getId(),
|
|
15437
|
+
type: convertProtobufStepTypeToSdk(step.getType()),
|
|
15438
|
+
name: step.getName(),
|
|
15114
15439
|
success: step.getSuccess(),
|
|
15115
|
-
log: step.getLog(),
|
|
15116
15440
|
error: step.getError(),
|
|
15117
|
-
|
|
15118
|
-
endAt: step.getEndAt(),
|
|
15441
|
+
log: step.getLog(),
|
|
15119
15442
|
inputsList: step.getInputsList(),
|
|
15120
|
-
output: _Step.getOutput(step)
|
|
15443
|
+
output: _Step.getOutput(step),
|
|
15444
|
+
startAt: step.getStartAt(),
|
|
15445
|
+
endAt: step.getEndAt()
|
|
15121
15446
|
});
|
|
15122
15447
|
}
|
|
15123
15448
|
// Client side does not generate the step, so there's no toRequest() method
|
|
@@ -15125,77 +15450,31 @@ var Step = class _Step {
|
|
|
15125
15450
|
var step_default = Step;
|
|
15126
15451
|
|
|
15127
15452
|
// src/models/execution.ts
|
|
15128
|
-
var
|
|
15453
|
+
var Execution2 = class _Execution {
|
|
15129
15454
|
constructor(props) {
|
|
15130
15455
|
this.id = props.id;
|
|
15131
15456
|
this.startAt = props.startAt;
|
|
15132
15457
|
this.endAt = props.endAt;
|
|
15133
15458
|
this.success = props.success;
|
|
15134
15459
|
this.error = props.error;
|
|
15135
|
-
this.
|
|
15136
|
-
this.triggerName = props.triggerName;
|
|
15137
|
-
this.triggerType = props.triggerType;
|
|
15138
|
-
this.triggerOutput = props.triggerOutput;
|
|
15460
|
+
this.steps = props.steps;
|
|
15139
15461
|
}
|
|
15140
15462
|
static fromResponse(execution) {
|
|
15141
|
-
const triggerOutputDataType = execution.getOutputDataCase();
|
|
15142
|
-
let triggerOutputData;
|
|
15143
|
-
switch (triggerOutputDataType) {
|
|
15144
|
-
case avs_pb21.Execution.OutputDataCase.BLOCK_TRIGGER:
|
|
15145
|
-
const blockOutput = execution.getBlockTrigger()?.toObject();
|
|
15146
|
-
triggerOutputData = blockOutput ? { blockNumber: blockOutput.blockNumber } : void 0;
|
|
15147
|
-
break;
|
|
15148
|
-
case avs_pb21.Execution.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
15149
|
-
const fixedTimeOutput = execution.getFixedTimeTrigger()?.toObject();
|
|
15150
|
-
triggerOutputData = fixedTimeOutput ? {
|
|
15151
|
-
timestamp: fixedTimeOutput.timestamp,
|
|
15152
|
-
timestampIso: fixedTimeOutput.timestampIso
|
|
15153
|
-
} : void 0;
|
|
15154
|
-
break;
|
|
15155
|
-
case avs_pb21.Execution.OutputDataCase.CRON_TRIGGER:
|
|
15156
|
-
const cronOutput = execution.getCronTrigger()?.toObject();
|
|
15157
|
-
triggerOutputData = cronOutput ? {
|
|
15158
|
-
timestamp: cronOutput.timestamp,
|
|
15159
|
-
timestampIso: cronOutput.timestampIso
|
|
15160
|
-
} : void 0;
|
|
15161
|
-
break;
|
|
15162
|
-
case avs_pb21.Execution.OutputDataCase.EVENT_TRIGGER:
|
|
15163
|
-
const eventTrigger = execution.getEventTrigger();
|
|
15164
|
-
if (eventTrigger) {
|
|
15165
|
-
if (eventTrigger.hasEvmLog()) {
|
|
15166
|
-
triggerOutputData = eventTrigger.getEvmLog()?.toObject();
|
|
15167
|
-
} else if (eventTrigger.hasTransferLog()) {
|
|
15168
|
-
triggerOutputData = eventTrigger.getTransferLog()?.toObject();
|
|
15169
|
-
}
|
|
15170
|
-
}
|
|
15171
|
-
break;
|
|
15172
|
-
case avs_pb21.Execution.OutputDataCase.MANUAL_TRIGGER:
|
|
15173
|
-
const manualOutput = execution.getManualTrigger()?.toObject();
|
|
15174
|
-
triggerOutputData = manualOutput || void 0;
|
|
15175
|
-
break;
|
|
15176
|
-
case avs_pb21.Execution.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
15177
|
-
triggerOutputData = void 0;
|
|
15178
|
-
break;
|
|
15179
|
-
}
|
|
15180
15463
|
return new _Execution({
|
|
15181
15464
|
id: execution.getId(),
|
|
15182
15465
|
startAt: execution.getStartAt(),
|
|
15183
15466
|
endAt: execution.getEndAt(),
|
|
15184
15467
|
success: execution.getSuccess(),
|
|
15185
15468
|
error: execution.getError(),
|
|
15186
|
-
|
|
15187
|
-
triggerType: TriggerTypeConverter.fromProtobuf(execution.getTriggerType()),
|
|
15188
|
-
// Convert protobuf enum to SDK enum
|
|
15189
|
-
triggerOutput: triggerOutputData,
|
|
15190
|
-
stepsList: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
15469
|
+
steps: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
15191
15470
|
});
|
|
15192
15471
|
}
|
|
15193
15472
|
// Client side does not generate the execution, so there's no toRequest() method
|
|
15194
15473
|
};
|
|
15195
|
-
var execution_default =
|
|
15474
|
+
var execution_default = Execution2;
|
|
15196
15475
|
|
|
15197
15476
|
// src/models/secret.ts
|
|
15198
|
-
var
|
|
15477
|
+
var avs_pb21 = __toESM(require_avs_pb());
|
|
15199
15478
|
var Secret = class {
|
|
15200
15479
|
constructor(props) {
|
|
15201
15480
|
this.name = props.name;
|
|
@@ -15208,7 +15487,7 @@ var Secret = class {
|
|
|
15208
15487
|
this.description = props.description;
|
|
15209
15488
|
}
|
|
15210
15489
|
toRequest() {
|
|
15211
|
-
const request = new
|
|
15490
|
+
const request = new avs_pb21.CreateOrUpdateSecretReq();
|
|
15212
15491
|
request.setName(this.name);
|
|
15213
15492
|
if (this.secret) {
|
|
15214
15493
|
request.setSecret(this.secret);
|
|
@@ -15229,7 +15508,7 @@ import {
|
|
|
15229
15508
|
TriggerType as TriggerType8,
|
|
15230
15509
|
NodeTypeGoConverter as NodeTypeGoConverter2,
|
|
15231
15510
|
TriggerTypeGoConverter,
|
|
15232
|
-
TriggerTypeConverter
|
|
15511
|
+
TriggerTypeConverter
|
|
15233
15512
|
} from "@avaprotocol/types";
|
|
15234
15513
|
import { AUTH_KEY_HEADER, DEFAULT_LIMIT } from "@avaprotocol/types";
|
|
15235
15514
|
var BaseClient = class {
|
|
@@ -15264,7 +15543,7 @@ var BaseClient = class {
|
|
|
15264
15543
|
* @returns {Promise<GetSignatureFormatResponse>} - The response containing the signature format
|
|
15265
15544
|
*/
|
|
15266
15545
|
async getSignatureFormat(wallet) {
|
|
15267
|
-
const request = new
|
|
15546
|
+
const request = new avs_pb22.GetSignatureFormatReq();
|
|
15268
15547
|
request.setWallet(wallet);
|
|
15269
15548
|
const result = await this.sendGrpcRequest("getSignatureFormat", request);
|
|
15270
15549
|
return { message: result.getMessage() };
|
|
@@ -15279,7 +15558,7 @@ var BaseClient = class {
|
|
|
15279
15558
|
message,
|
|
15280
15559
|
apiKey
|
|
15281
15560
|
}) {
|
|
15282
|
-
const request = new
|
|
15561
|
+
const request = new avs_pb22.GetKeyReq();
|
|
15283
15562
|
request.setMessage(message);
|
|
15284
15563
|
request.setSignature(apiKey);
|
|
15285
15564
|
const result = await this.sendGrpcRequest("getKey", request);
|
|
@@ -15295,7 +15574,7 @@ var BaseClient = class {
|
|
|
15295
15574
|
message,
|
|
15296
15575
|
signature
|
|
15297
15576
|
}) {
|
|
15298
|
-
const request = new
|
|
15577
|
+
const request = new avs_pb22.GetKeyReq();
|
|
15299
15578
|
request.setMessage(message);
|
|
15300
15579
|
request.setSignature(signature);
|
|
15301
15580
|
const result = await this.sendGrpcRequest(
|
|
@@ -15371,7 +15650,7 @@ var Client = class extends BaseClient {
|
|
|
15371
15650
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
15372
15651
|
*/
|
|
15373
15652
|
async getWallets(options) {
|
|
15374
|
-
const request = new
|
|
15653
|
+
const request = new avs_pb22.ListWalletReq();
|
|
15375
15654
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
15376
15655
|
return result.getItemsList().map((item) => item.toObject());
|
|
15377
15656
|
}
|
|
@@ -15383,7 +15662,7 @@ var Client = class extends BaseClient {
|
|
|
15383
15662
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
15384
15663
|
*/
|
|
15385
15664
|
async getWallet({ salt, factoryAddress }, options) {
|
|
15386
|
-
const request = new
|
|
15665
|
+
const request = new avs_pb22.GetWalletReq();
|
|
15387
15666
|
request.setSalt(salt);
|
|
15388
15667
|
if (factoryAddress) {
|
|
15389
15668
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15412,7 +15691,7 @@ var Client = class extends BaseClient {
|
|
|
15412
15691
|
* @returns {Promise<SmartWallet>} - The updated SmartWallet object
|
|
15413
15692
|
*/
|
|
15414
15693
|
async setWallet({ salt, factoryAddress }, { isHidden }, requestOptions) {
|
|
15415
|
-
const request = new
|
|
15694
|
+
const request = new avs_pb22.SetWalletReq();
|
|
15416
15695
|
request.setSalt(salt);
|
|
15417
15696
|
if (factoryAddress) {
|
|
15418
15697
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -15460,7 +15739,7 @@ var Client = class extends BaseClient {
|
|
|
15460
15739
|
* @returns {Promise<{ items: Workflow[]; pageInfo: PageInfo }>} - The list of Workflow objects with nested pagination metadata
|
|
15461
15740
|
*/
|
|
15462
15741
|
async getWorkflows(addresses, options) {
|
|
15463
|
-
const request = new
|
|
15742
|
+
const request = new avs_pb22.ListTasksReq();
|
|
15464
15743
|
for (const a of addresses) {
|
|
15465
15744
|
request.addSmartWalletAddress(a);
|
|
15466
15745
|
}
|
|
@@ -15499,7 +15778,7 @@ var Client = class extends BaseClient {
|
|
|
15499
15778
|
* @returns {Promise<number>} - The count of workflows
|
|
15500
15779
|
*/
|
|
15501
15780
|
async getWorkflowCount(addresses, options) {
|
|
15502
|
-
const request = new
|
|
15781
|
+
const request = new avs_pb22.GetWorkflowCountReq();
|
|
15503
15782
|
request.setAddressesList(addresses);
|
|
15504
15783
|
const result = await this.sendGrpcRequest("getWorkflowCount", request, options);
|
|
15505
15784
|
return result.getTotal();
|
|
@@ -15515,7 +15794,7 @@ var Client = class extends BaseClient {
|
|
|
15515
15794
|
* @returns {Promise<{ items: Execution[]; pageInfo: PageInfo }>} - The list of Execution objects with nested pagination metadata
|
|
15516
15795
|
*/
|
|
15517
15796
|
async getExecutions(workflows, options) {
|
|
15518
|
-
const request = new
|
|
15797
|
+
const request = new avs_pb22.ListExecutionsReq();
|
|
15519
15798
|
for (const w of workflows) {
|
|
15520
15799
|
request.addTaskIds(w);
|
|
15521
15800
|
}
|
|
@@ -15549,7 +15828,7 @@ var Client = class extends BaseClient {
|
|
|
15549
15828
|
* @returns {Promise<Execution>} - The Execution object
|
|
15550
15829
|
*/
|
|
15551
15830
|
async getExecution(workflowId, executionId, options) {
|
|
15552
|
-
const request = new
|
|
15831
|
+
const request = new avs_pb22.ExecutionReq();
|
|
15553
15832
|
request.setTaskId(workflowId);
|
|
15554
15833
|
request.setExecutionId(executionId);
|
|
15555
15834
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -15562,7 +15841,7 @@ var Client = class extends BaseClient {
|
|
|
15562
15841
|
* @returns {Promise<number>} - The count of executions
|
|
15563
15842
|
*/
|
|
15564
15843
|
async getExecutionCount(workflows, options) {
|
|
15565
|
-
const request = new
|
|
15844
|
+
const request = new avs_pb22.GetExecutionCountReq();
|
|
15566
15845
|
request.setWorkflowIdsList(workflows);
|
|
15567
15846
|
const result = await this.sendGrpcRequest("getExecutionCount", request, options);
|
|
15568
15847
|
return result.getTotal();
|
|
@@ -15575,7 +15854,7 @@ var Client = class extends BaseClient {
|
|
|
15575
15854
|
* @returns {Promise<ExecutionStatus>} - The status of the execution
|
|
15576
15855
|
*/
|
|
15577
15856
|
async getExecutionStatus(workflowId, executionId, options) {
|
|
15578
|
-
const request = new
|
|
15857
|
+
const request = new avs_pb22.ExecutionReq();
|
|
15579
15858
|
request.setTaskId(workflowId);
|
|
15580
15859
|
request.setExecutionId(executionId);
|
|
15581
15860
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -15588,7 +15867,7 @@ var Client = class extends BaseClient {
|
|
|
15588
15867
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
15589
15868
|
*/
|
|
15590
15869
|
async getWorkflow(id, options) {
|
|
15591
|
-
const request = new
|
|
15870
|
+
const request = new avs_pb22.IdReq();
|
|
15592
15871
|
request.setId(id);
|
|
15593
15872
|
const result = await this.sendGrpcRequest(
|
|
15594
15873
|
"getTask",
|
|
@@ -15611,20 +15890,20 @@ var Client = class extends BaseClient {
|
|
|
15611
15890
|
triggerData,
|
|
15612
15891
|
isBlocking = false
|
|
15613
15892
|
}, options) {
|
|
15614
|
-
const request = new
|
|
15893
|
+
const request = new avs_pb22.TriggerTaskReq();
|
|
15615
15894
|
request.setTaskId(id);
|
|
15616
|
-
request.setTriggerType(
|
|
15895
|
+
request.setTriggerType(TriggerTypeConverter.toProtobuf(triggerData.type));
|
|
15617
15896
|
request.setIsBlocking(isBlocking);
|
|
15618
15897
|
switch (triggerData.type) {
|
|
15619
15898
|
case TriggerType8.FixedTime: {
|
|
15620
|
-
const fixedTimeOutput = new
|
|
15899
|
+
const fixedTimeOutput = new avs_pb22.FixedTimeTrigger.Output();
|
|
15621
15900
|
fixedTimeOutput.setTimestamp(triggerData.timestamp);
|
|
15622
15901
|
fixedTimeOutput.setTimestampIso(triggerData.timestampIso);
|
|
15623
15902
|
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
15624
15903
|
break;
|
|
15625
15904
|
}
|
|
15626
15905
|
case TriggerType8.Cron: {
|
|
15627
|
-
const cronOutput = new
|
|
15906
|
+
const cronOutput = new avs_pb22.CronTrigger.Output();
|
|
15628
15907
|
cronOutput.setTimestamp(triggerData.timestamp);
|
|
15629
15908
|
cronOutput.setTimestampIso(triggerData.timestampIso);
|
|
15630
15909
|
request.setCronTrigger(cronOutput);
|
|
@@ -15632,7 +15911,7 @@ var Client = class extends BaseClient {
|
|
|
15632
15911
|
}
|
|
15633
15912
|
case TriggerType8.Block: {
|
|
15634
15913
|
const blockData = triggerData;
|
|
15635
|
-
const blockOutput = new
|
|
15914
|
+
const blockOutput = new avs_pb22.BlockTrigger.Output();
|
|
15636
15915
|
blockOutput.setBlockNumber(blockData.blockNumber);
|
|
15637
15916
|
if (blockData.blockHash) blockOutput.setBlockHash(blockData.blockHash);
|
|
15638
15917
|
if (blockData.timestamp) blockOutput.setTimestamp(blockData.timestamp);
|
|
@@ -15645,9 +15924,9 @@ var Client = class extends BaseClient {
|
|
|
15645
15924
|
}
|
|
15646
15925
|
case TriggerType8.Event: {
|
|
15647
15926
|
const eventData = triggerData;
|
|
15648
|
-
const eventOutput = new
|
|
15927
|
+
const eventOutput = new avs_pb22.EventTrigger.Output();
|
|
15649
15928
|
if (eventData.evmLog) {
|
|
15650
|
-
const evmLog = new
|
|
15929
|
+
const evmLog = new avs_pb22.Evm.Log();
|
|
15651
15930
|
evmLog.setAddress(eventData.evmLog.address);
|
|
15652
15931
|
evmLog.setBlockNumber(eventData.evmLog.blockNumber);
|
|
15653
15932
|
evmLog.setTransactionHash(eventData.evmLog.transactionHash);
|
|
@@ -15655,7 +15934,7 @@ var Client = class extends BaseClient {
|
|
|
15655
15934
|
eventOutput.setEvmLog(evmLog);
|
|
15656
15935
|
}
|
|
15657
15936
|
if (eventData.transferLog) {
|
|
15658
|
-
const transferLog = new
|
|
15937
|
+
const transferLog = new avs_pb22.EventTrigger.TransferLogOutput();
|
|
15659
15938
|
transferLog.setTokenName(eventData.transferLog.tokenName);
|
|
15660
15939
|
transferLog.setTokenSymbol(eventData.transferLog.tokenSymbol);
|
|
15661
15940
|
transferLog.setTokenDecimals(eventData.transferLog.tokenDecimals);
|
|
@@ -15676,7 +15955,7 @@ var Client = class extends BaseClient {
|
|
|
15676
15955
|
}
|
|
15677
15956
|
case TriggerType8.Manual: {
|
|
15678
15957
|
const manualData = triggerData;
|
|
15679
|
-
const manualOutput = new
|
|
15958
|
+
const manualOutput = new avs_pb22.ManualTrigger.Output();
|
|
15680
15959
|
if (manualData.runAt) manualOutput.setRunAt(manualData.runAt);
|
|
15681
15960
|
request.setManualTrigger(manualOutput);
|
|
15682
15961
|
break;
|
|
@@ -15696,7 +15975,7 @@ var Client = class extends BaseClient {
|
|
|
15696
15975
|
* @returns {Promise<boolean>} - Whether the workflow was successfully canceled
|
|
15697
15976
|
*/
|
|
15698
15977
|
async cancelWorkflow(id, options) {
|
|
15699
|
-
const request = new
|
|
15978
|
+
const request = new avs_pb22.IdReq();
|
|
15700
15979
|
request.setId(id);
|
|
15701
15980
|
const result = await this.sendGrpcRequest(
|
|
15702
15981
|
"cancelTask",
|
|
@@ -15712,7 +15991,7 @@ var Client = class extends BaseClient {
|
|
|
15712
15991
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
15713
15992
|
*/
|
|
15714
15993
|
async deleteWorkflow(id, options) {
|
|
15715
|
-
const request = new
|
|
15994
|
+
const request = new avs_pb22.IdReq();
|
|
15716
15995
|
request.setId(id);
|
|
15717
15996
|
const result = await this.sendGrpcRequest(
|
|
15718
15997
|
"deleteTask",
|
|
@@ -15732,7 +16011,7 @@ var Client = class extends BaseClient {
|
|
|
15732
16011
|
* @returns {Promise<boolean>} - True if the secret was created successfully
|
|
15733
16012
|
*/
|
|
15734
16013
|
async createSecret(name, value, options) {
|
|
15735
|
-
const request = new
|
|
16014
|
+
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
15736
16015
|
request.setName(name);
|
|
15737
16016
|
request.setSecret(value);
|
|
15738
16017
|
if (options?.workflowId) {
|
|
@@ -15755,7 +16034,7 @@ var Client = class extends BaseClient {
|
|
|
15755
16034
|
* @returns {Promise<boolean>} - True if the secret was updated successfully
|
|
15756
16035
|
*/
|
|
15757
16036
|
async updateSecret(name, value, options) {
|
|
15758
|
-
const request = new
|
|
16037
|
+
const request = new avs_pb22.CreateOrUpdateSecretReq();
|
|
15759
16038
|
request.setName(name);
|
|
15760
16039
|
request.setSecret(value);
|
|
15761
16040
|
if (options?.workflowId) {
|
|
@@ -15782,7 +16061,7 @@ var Client = class extends BaseClient {
|
|
|
15782
16061
|
* @returns {Promise<{ items: SecretProps[]; pageInfo: PageInfo }>} - The list of Secret objects with nested pagination metadata
|
|
15783
16062
|
*/
|
|
15784
16063
|
async getSecrets(options) {
|
|
15785
|
-
const request = new
|
|
16064
|
+
const request = new avs_pb22.ListSecretsReq();
|
|
15786
16065
|
if (options?.workflowId) {
|
|
15787
16066
|
request.setWorkflowId(options.workflowId);
|
|
15788
16067
|
}
|
|
@@ -15837,7 +16116,7 @@ var Client = class extends BaseClient {
|
|
|
15837
16116
|
* @returns {Promise<boolean>} - True if the secret was deleted successfully
|
|
15838
16117
|
*/
|
|
15839
16118
|
async deleteSecret(name, options) {
|
|
15840
|
-
const request = new
|
|
16119
|
+
const request = new avs_pb22.DeleteSecretReq();
|
|
15841
16120
|
request.setName(name);
|
|
15842
16121
|
if (options?.workflowId) {
|
|
15843
16122
|
request.setWorkflowId(options.workflowId);
|
|
@@ -15872,7 +16151,7 @@ var Client = class extends BaseClient {
|
|
|
15872
16151
|
nodeId: ""
|
|
15873
16152
|
};
|
|
15874
16153
|
}
|
|
15875
|
-
const request = new
|
|
16154
|
+
const request = new avs_pb22.RunNodeWithInputsReq();
|
|
15876
16155
|
const protobufNodeType = NodeTypeGoConverter2.fromGoString(nodeType);
|
|
15877
16156
|
request.setNodeType(protobufNodeType);
|
|
15878
16157
|
const nodeConfigMap = request.getNodeConfigMap();
|
|
@@ -15902,7 +16181,7 @@ var Client = class extends BaseClient {
|
|
|
15902
16181
|
* @returns {Promise<RunTriggerResponse>} - The response from running the trigger
|
|
15903
16182
|
*/
|
|
15904
16183
|
async runTrigger({ triggerType, triggerConfig }, options) {
|
|
15905
|
-
const request = new
|
|
16184
|
+
const request = new avs_pb22.RunTriggerReq();
|
|
15906
16185
|
const protobufTriggerType = TriggerTypeGoConverter.fromGoString(triggerType);
|
|
15907
16186
|
request.setTriggerType(protobufTriggerType);
|
|
15908
16187
|
const triggerConfigMap = request.getTriggerConfigMap();
|
|
@@ -15917,6 +16196,45 @@ var Client = class extends BaseClient {
|
|
|
15917
16196
|
triggerId: result.getTriggerId()
|
|
15918
16197
|
};
|
|
15919
16198
|
}
|
|
16199
|
+
/**
|
|
16200
|
+
* Simulate a complete task execution including trigger and all workflow nodes
|
|
16201
|
+
* @param {SimulateTaskRequest} params - The parameters for simulating the task
|
|
16202
|
+
* @param {Record<string, any>} params.trigger - The trigger configuration
|
|
16203
|
+
* @param {Array<Record<string, any>>} params.nodes - The workflow nodes
|
|
16204
|
+
* @param {Array<Record<string, any>>} params.edges - The workflow edges
|
|
16205
|
+
* @param {string} params.triggerType - The type of the trigger
|
|
16206
|
+
* @param {Record<string, any>} params.triggerConfig - The trigger configuration
|
|
16207
|
+
* @param {Record<string, any>} params.inputVariables - Input variables for the simulation
|
|
16208
|
+
* @param {RequestOptions} options - Request options
|
|
16209
|
+
* @returns {Promise<Execution>} - The response from simulating the task
|
|
16210
|
+
*/
|
|
16211
|
+
async simulateTask({ trigger, nodes, edges, triggerType, triggerConfig = {}, inputVariables = {} }, options) {
|
|
16212
|
+
const request = new avs_pb22.SimulateTaskReq();
|
|
16213
|
+
const triggerSdk = factory_default.create(trigger);
|
|
16214
|
+
request.setTrigger(triggerSdk.toRequest());
|
|
16215
|
+
const nodeMessages = nodes.map((node) => {
|
|
16216
|
+
const nodeSdk = factory_default2.create(node);
|
|
16217
|
+
return nodeSdk.toRequest();
|
|
16218
|
+
});
|
|
16219
|
+
request.setNodesList(nodeMessages);
|
|
16220
|
+
const edgeMessages = edges.map((edge) => {
|
|
16221
|
+
const edgeSdk = new edge_default(edge);
|
|
16222
|
+
return edgeSdk.toRequest();
|
|
16223
|
+
});
|
|
16224
|
+
request.setEdgesList(edgeMessages);
|
|
16225
|
+
const protobufTriggerType = TriggerTypeGoConverter.fromGoString(triggerType);
|
|
16226
|
+
request.setTriggerType(protobufTriggerType);
|
|
16227
|
+
const triggerConfigMap = request.getTriggerConfigMap();
|
|
16228
|
+
for (const [key, value] of Object.entries(triggerConfig)) {
|
|
16229
|
+
triggerConfigMap.set(key, convertJSValueToProtobuf(value));
|
|
16230
|
+
}
|
|
16231
|
+
const inputVarsMap = request.getInputVariablesMap();
|
|
16232
|
+
for (const [key, value] of Object.entries(inputVariables)) {
|
|
16233
|
+
inputVarsMap.set(key, convertJSValueToProtobuf(value));
|
|
16234
|
+
}
|
|
16235
|
+
const result = await this.sendGrpcRequest("simulateTask", request, options);
|
|
16236
|
+
return execution_default.fromResponse(result);
|
|
16237
|
+
}
|
|
15920
16238
|
};
|
|
15921
16239
|
export {
|
|
15922
16240
|
block_default as BlockTrigger,
|