@avaprotocol/sdk-js 1.3.6 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +234 -40
- package/dist/index.d.ts +234 -40
- package/dist/index.js +1194 -272
- package/dist/index.mjs +1191 -271
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -72,7 +72,12 @@ var require_avs_pb = __commonJS({
|
|
|
72
72
|
goog.exportSymbol("proto.aggregator.EventCondition", null, global);
|
|
73
73
|
goog.exportSymbol("proto.aggregator.EventCondition.Matcher", null, global);
|
|
74
74
|
goog.exportSymbol("proto.aggregator.Execution", null, global);
|
|
75
|
+
goog.exportSymbol("proto.aggregator.Execution.BlockOutput", null, global);
|
|
76
|
+
goog.exportSymbol("proto.aggregator.Execution.EvmLogOutput", null, global);
|
|
77
|
+
goog.exportSymbol("proto.aggregator.Execution.OutputDataCase", null, global);
|
|
75
78
|
goog.exportSymbol("proto.aggregator.Execution.Step", null, global);
|
|
79
|
+
goog.exportSymbol("proto.aggregator.Execution.TimeOutput", null, global);
|
|
80
|
+
goog.exportSymbol("proto.aggregator.Execution.TransferLogOutput", null, global);
|
|
76
81
|
goog.exportSymbol("proto.aggregator.ExecutionReq", null, global);
|
|
77
82
|
goog.exportSymbol("proto.aggregator.ExecutionStatus", null, global);
|
|
78
83
|
goog.exportSymbol("proto.aggregator.ExecutionStatusResp", null, global);
|
|
@@ -107,8 +112,8 @@ var require_avs_pb = __commonJS({
|
|
|
107
112
|
goog.exportSymbol("proto.aggregator.TaskStatus", null, global);
|
|
108
113
|
goog.exportSymbol("proto.aggregator.TaskTrigger", null, global);
|
|
109
114
|
goog.exportSymbol("proto.aggregator.TaskTrigger.TriggerTypeCase", null, global);
|
|
110
|
-
goog.exportSymbol("proto.aggregator.
|
|
111
|
-
goog.exportSymbol("proto.aggregator.
|
|
115
|
+
goog.exportSymbol("proto.aggregator.TriggerReason", null, global);
|
|
116
|
+
goog.exportSymbol("proto.aggregator.TriggerReason.TriggerType", null, global);
|
|
112
117
|
goog.exportSymbol("proto.aggregator.UserTriggerTaskReq", null, global);
|
|
113
118
|
goog.exportSymbol("proto.aggregator.UserTriggerTaskResp", null, global);
|
|
114
119
|
proto.aggregator.IdReq = function(opt_data) {
|
|
@@ -245,19 +250,47 @@ var require_avs_pb = __commonJS({
|
|
|
245
250
|
proto.aggregator.TaskNode.displayName = "proto.aggregator.TaskNode";
|
|
246
251
|
}
|
|
247
252
|
proto.aggregator.Execution = function(opt_data) {
|
|
248
|
-
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.Execution.repeatedFields_,
|
|
253
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.Execution.repeatedFields_, proto.aggregator.Execution.oneofGroups_);
|
|
249
254
|
};
|
|
250
255
|
goog.inherits(proto.aggregator.Execution, jspb.Message);
|
|
251
256
|
if (goog.DEBUG && !COMPILED) {
|
|
252
257
|
proto.aggregator.Execution.displayName = "proto.aggregator.Execution";
|
|
253
258
|
}
|
|
254
259
|
proto.aggregator.Execution.Step = function(opt_data) {
|
|
255
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
260
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.Execution.Step.repeatedFields_, null);
|
|
256
261
|
};
|
|
257
262
|
goog.inherits(proto.aggregator.Execution.Step, jspb.Message);
|
|
258
263
|
if (goog.DEBUG && !COMPILED) {
|
|
259
264
|
proto.aggregator.Execution.Step.displayName = "proto.aggregator.Execution.Step";
|
|
260
265
|
}
|
|
266
|
+
proto.aggregator.Execution.TransferLogOutput = function(opt_data) {
|
|
267
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
268
|
+
};
|
|
269
|
+
goog.inherits(proto.aggregator.Execution.TransferLogOutput, jspb.Message);
|
|
270
|
+
if (goog.DEBUG && !COMPILED) {
|
|
271
|
+
proto.aggregator.Execution.TransferLogOutput.displayName = "proto.aggregator.Execution.TransferLogOutput";
|
|
272
|
+
}
|
|
273
|
+
proto.aggregator.Execution.EvmLogOutput = function(opt_data) {
|
|
274
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.Execution.EvmLogOutput.repeatedFields_, null);
|
|
275
|
+
};
|
|
276
|
+
goog.inherits(proto.aggregator.Execution.EvmLogOutput, jspb.Message);
|
|
277
|
+
if (goog.DEBUG && !COMPILED) {
|
|
278
|
+
proto.aggregator.Execution.EvmLogOutput.displayName = "proto.aggregator.Execution.EvmLogOutput";
|
|
279
|
+
}
|
|
280
|
+
proto.aggregator.Execution.BlockOutput = function(opt_data) {
|
|
281
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
282
|
+
};
|
|
283
|
+
goog.inherits(proto.aggregator.Execution.BlockOutput, jspb.Message);
|
|
284
|
+
if (goog.DEBUG && !COMPILED) {
|
|
285
|
+
proto.aggregator.Execution.BlockOutput.displayName = "proto.aggregator.Execution.BlockOutput";
|
|
286
|
+
}
|
|
287
|
+
proto.aggregator.Execution.TimeOutput = function(opt_data) {
|
|
288
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
289
|
+
};
|
|
290
|
+
goog.inherits(proto.aggregator.Execution.TimeOutput, jspb.Message);
|
|
291
|
+
if (goog.DEBUG && !COMPILED) {
|
|
292
|
+
proto.aggregator.Execution.TimeOutput.displayName = "proto.aggregator.Execution.TimeOutput";
|
|
293
|
+
}
|
|
261
294
|
proto.aggregator.Task = function(opt_data) {
|
|
262
295
|
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.Task.repeatedFields_, null);
|
|
263
296
|
};
|
|
@@ -377,12 +410,12 @@ var require_avs_pb = __commonJS({
|
|
|
377
410
|
if (goog.DEBUG && !COMPILED) {
|
|
378
411
|
proto.aggregator.KeyResp.displayName = "proto.aggregator.KeyResp";
|
|
379
412
|
}
|
|
380
|
-
proto.aggregator.
|
|
413
|
+
proto.aggregator.TriggerReason = function(opt_data) {
|
|
381
414
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
382
415
|
};
|
|
383
|
-
goog.inherits(proto.aggregator.
|
|
416
|
+
goog.inherits(proto.aggregator.TriggerReason, jspb.Message);
|
|
384
417
|
if (goog.DEBUG && !COMPILED) {
|
|
385
|
-
proto.aggregator.
|
|
418
|
+
proto.aggregator.TriggerReason.displayName = "proto.aggregator.TriggerReason";
|
|
386
419
|
}
|
|
387
420
|
proto.aggregator.GetWalletReq = function(opt_data) {
|
|
388
421
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
@@ -2871,6 +2904,20 @@ var require_avs_pb = __commonJS({
|
|
|
2871
2904
|
return jspb.Message.getField(this, 18) != null;
|
|
2872
2905
|
};
|
|
2873
2906
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
2907
|
+
proto.aggregator.Execution.oneofGroups_ = [[10, 11, 12, 13]];
|
|
2908
|
+
proto.aggregator.Execution.OutputDataCase = {
|
|
2909
|
+
OUTPUT_DATA_NOT_SET: 0,
|
|
2910
|
+
TRANSFER_LOG: 10,
|
|
2911
|
+
EVM_LOG: 11,
|
|
2912
|
+
BLOCK: 12,
|
|
2913
|
+
TIME: 13
|
|
2914
|
+
};
|
|
2915
|
+
proto.aggregator.Execution.prototype.getOutputDataCase = function() {
|
|
2916
|
+
return (
|
|
2917
|
+
/** @type {proto.aggregator.Execution.OutputDataCase} */
|
|
2918
|
+
jspb.Message.computeOneofCase(this, proto.aggregator.Execution.oneofGroups_[0])
|
|
2919
|
+
);
|
|
2920
|
+
};
|
|
2874
2921
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2875
2922
|
proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
|
|
2876
2923
|
return proto.aggregator.Execution.toObject(opt_includeInstance, this);
|
|
@@ -2882,13 +2929,17 @@ var require_avs_pb = __commonJS({
|
|
|
2882
2929
|
endAt: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
2883
2930
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
|
|
2884
2931
|
error: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
2885
|
-
|
|
2886
|
-
result: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
2932
|
+
reason: (f = msg.getReason()) && proto.aggregator.TriggerReason.toObject(includeInstance, f),
|
|
2887
2933
|
stepsList: jspb.Message.toObjectList(
|
|
2888
2934
|
msg.getStepsList(),
|
|
2889
2935
|
proto.aggregator.Execution.Step.toObject,
|
|
2890
2936
|
includeInstance
|
|
2891
|
-
)
|
|
2937
|
+
),
|
|
2938
|
+
triggerName: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
2939
|
+
transferLog: (f = msg.getTransferLog()) && proto.aggregator.Execution.TransferLogOutput.toObject(includeInstance, f),
|
|
2940
|
+
evmLog: (f = msg.getEvmLog()) && proto.aggregator.Execution.EvmLogOutput.toObject(includeInstance, f),
|
|
2941
|
+
block: (f = msg.getBlock()) && proto.aggregator.Execution.BlockOutput.toObject(includeInstance, f),
|
|
2942
|
+
time: (f = msg.getTime()) && proto.aggregator.Execution.TimeOutput.toObject(includeInstance, f)
|
|
2892
2943
|
};
|
|
2893
2944
|
if (includeInstance) {
|
|
2894
2945
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2944,21 +2995,41 @@ var require_avs_pb = __commonJS({
|
|
|
2944
2995
|
msg.setError(value);
|
|
2945
2996
|
break;
|
|
2946
2997
|
case 6:
|
|
2947
|
-
var value = new proto.aggregator.
|
|
2948
|
-
reader.readMessage(value, proto.aggregator.
|
|
2949
|
-
msg.
|
|
2998
|
+
var value = new proto.aggregator.TriggerReason();
|
|
2999
|
+
reader.readMessage(value, proto.aggregator.TriggerReason.deserializeBinaryFromReader);
|
|
3000
|
+
msg.setReason(value);
|
|
2950
3001
|
break;
|
|
2951
|
-
case
|
|
3002
|
+
case 8:
|
|
3003
|
+
var value = new proto.aggregator.Execution.Step();
|
|
3004
|
+
reader.readMessage(value, proto.aggregator.Execution.Step.deserializeBinaryFromReader);
|
|
3005
|
+
msg.addSteps(value);
|
|
3006
|
+
break;
|
|
3007
|
+
case 9:
|
|
2952
3008
|
var value = (
|
|
2953
3009
|
/** @type {string} */
|
|
2954
3010
|
reader.readString()
|
|
2955
3011
|
);
|
|
2956
|
-
msg.
|
|
3012
|
+
msg.setTriggerName(value);
|
|
2957
3013
|
break;
|
|
2958
|
-
case
|
|
2959
|
-
var value = new proto.aggregator.Execution.
|
|
2960
|
-
reader.readMessage(value, proto.aggregator.Execution.
|
|
2961
|
-
msg.
|
|
3014
|
+
case 10:
|
|
3015
|
+
var value = new proto.aggregator.Execution.TransferLogOutput();
|
|
3016
|
+
reader.readMessage(value, proto.aggregator.Execution.TransferLogOutput.deserializeBinaryFromReader);
|
|
3017
|
+
msg.setTransferLog(value);
|
|
3018
|
+
break;
|
|
3019
|
+
case 11:
|
|
3020
|
+
var value = new proto.aggregator.Execution.EvmLogOutput();
|
|
3021
|
+
reader.readMessage(value, proto.aggregator.Execution.EvmLogOutput.deserializeBinaryFromReader);
|
|
3022
|
+
msg.setEvmLog(value);
|
|
3023
|
+
break;
|
|
3024
|
+
case 12:
|
|
3025
|
+
var value = new proto.aggregator.Execution.BlockOutput();
|
|
3026
|
+
reader.readMessage(value, proto.aggregator.Execution.BlockOutput.deserializeBinaryFromReader);
|
|
3027
|
+
msg.setBlock(value);
|
|
3028
|
+
break;
|
|
3029
|
+
case 13:
|
|
3030
|
+
var value = new proto.aggregator.Execution.TimeOutput();
|
|
3031
|
+
reader.readMessage(value, proto.aggregator.Execution.TimeOutput.deserializeBinaryFromReader);
|
|
3032
|
+
msg.setTime(value);
|
|
2962
3033
|
break;
|
|
2963
3034
|
default:
|
|
2964
3035
|
reader.skipField();
|
|
@@ -3009,19 +3080,12 @@ var require_avs_pb = __commonJS({
|
|
|
3009
3080
|
f
|
|
3010
3081
|
);
|
|
3011
3082
|
}
|
|
3012
|
-
f = message.
|
|
3083
|
+
f = message.getReason();
|
|
3013
3084
|
if (f != null) {
|
|
3014
3085
|
writer.writeMessage(
|
|
3015
3086
|
6,
|
|
3016
3087
|
f,
|
|
3017
|
-
proto.aggregator.
|
|
3018
|
-
);
|
|
3019
|
-
}
|
|
3020
|
-
f = message.getResult();
|
|
3021
|
-
if (f.length > 0) {
|
|
3022
|
-
writer.writeString(
|
|
3023
|
-
7,
|
|
3024
|
-
f
|
|
3088
|
+
proto.aggregator.TriggerReason.serializeBinaryToWriter
|
|
3025
3089
|
);
|
|
3026
3090
|
}
|
|
3027
3091
|
f = message.getStepsList();
|
|
@@ -3032,7 +3096,47 @@ var require_avs_pb = __commonJS({
|
|
|
3032
3096
|
proto.aggregator.Execution.Step.serializeBinaryToWriter
|
|
3033
3097
|
);
|
|
3034
3098
|
}
|
|
3099
|
+
f = message.getTriggerName();
|
|
3100
|
+
if (f.length > 0) {
|
|
3101
|
+
writer.writeString(
|
|
3102
|
+
9,
|
|
3103
|
+
f
|
|
3104
|
+
);
|
|
3105
|
+
}
|
|
3106
|
+
f = message.getTransferLog();
|
|
3107
|
+
if (f != null) {
|
|
3108
|
+
writer.writeMessage(
|
|
3109
|
+
10,
|
|
3110
|
+
f,
|
|
3111
|
+
proto.aggregator.Execution.TransferLogOutput.serializeBinaryToWriter
|
|
3112
|
+
);
|
|
3113
|
+
}
|
|
3114
|
+
f = message.getEvmLog();
|
|
3115
|
+
if (f != null) {
|
|
3116
|
+
writer.writeMessage(
|
|
3117
|
+
11,
|
|
3118
|
+
f,
|
|
3119
|
+
proto.aggregator.Execution.EvmLogOutput.serializeBinaryToWriter
|
|
3120
|
+
);
|
|
3121
|
+
}
|
|
3122
|
+
f = message.getBlock();
|
|
3123
|
+
if (f != null) {
|
|
3124
|
+
writer.writeMessage(
|
|
3125
|
+
12,
|
|
3126
|
+
f,
|
|
3127
|
+
proto.aggregator.Execution.BlockOutput.serializeBinaryToWriter
|
|
3128
|
+
);
|
|
3129
|
+
}
|
|
3130
|
+
f = message.getTime();
|
|
3131
|
+
if (f != null) {
|
|
3132
|
+
writer.writeMessage(
|
|
3133
|
+
13,
|
|
3134
|
+
f,
|
|
3135
|
+
proto.aggregator.Execution.TimeOutput.serializeBinaryToWriter
|
|
3136
|
+
);
|
|
3137
|
+
}
|
|
3035
3138
|
};
|
|
3139
|
+
proto.aggregator.Execution.Step.repeatedFields_ = [8];
|
|
3036
3140
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3037
3141
|
proto.aggregator.Execution.Step.prototype.toObject = function(opt_includeInstance) {
|
|
3038
3142
|
return proto.aggregator.Execution.Step.toObject(opt_includeInstance, this);
|
|
@@ -3045,7 +3149,8 @@ var require_avs_pb = __commonJS({
|
|
|
3045
3149
|
log: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3046
3150
|
error: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3047
3151
|
startAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
3048
|
-
endAt: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
3152
|
+
endAt: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
3153
|
+
inputsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? void 0 : f
|
|
3049
3154
|
};
|
|
3050
3155
|
if (includeInstance) {
|
|
3051
3156
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3105,14 +3210,588 @@ var require_avs_pb = __commonJS({
|
|
|
3105
3210
|
/** @type {number} */
|
|
3106
3211
|
reader.readInt64()
|
|
3107
3212
|
);
|
|
3108
|
-
msg.setStartAt(value);
|
|
3213
|
+
msg.setStartAt(value);
|
|
3214
|
+
break;
|
|
3215
|
+
case 7:
|
|
3216
|
+
var value = (
|
|
3217
|
+
/** @type {number} */
|
|
3218
|
+
reader.readInt64()
|
|
3219
|
+
);
|
|
3220
|
+
msg.setEndAt(value);
|
|
3221
|
+
break;
|
|
3222
|
+
case 8:
|
|
3223
|
+
var value = (
|
|
3224
|
+
/** @type {string} */
|
|
3225
|
+
reader.readString()
|
|
3226
|
+
);
|
|
3227
|
+
msg.addInputs(value);
|
|
3228
|
+
break;
|
|
3229
|
+
default:
|
|
3230
|
+
reader.skipField();
|
|
3231
|
+
break;
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
return msg;
|
|
3235
|
+
};
|
|
3236
|
+
proto.aggregator.Execution.Step.prototype.serializeBinary = function() {
|
|
3237
|
+
var writer = new jspb.BinaryWriter();
|
|
3238
|
+
proto.aggregator.Execution.Step.serializeBinaryToWriter(this, writer);
|
|
3239
|
+
return writer.getResultBuffer();
|
|
3240
|
+
};
|
|
3241
|
+
proto.aggregator.Execution.Step.serializeBinaryToWriter = function(message, writer) {
|
|
3242
|
+
var f = void 0;
|
|
3243
|
+
f = message.getNodeId();
|
|
3244
|
+
if (f.length > 0) {
|
|
3245
|
+
writer.writeString(
|
|
3246
|
+
1,
|
|
3247
|
+
f
|
|
3248
|
+
);
|
|
3249
|
+
}
|
|
3250
|
+
f = message.getSuccess();
|
|
3251
|
+
if (f) {
|
|
3252
|
+
writer.writeBool(
|
|
3253
|
+
2,
|
|
3254
|
+
f
|
|
3255
|
+
);
|
|
3256
|
+
}
|
|
3257
|
+
f = message.getOutputData();
|
|
3258
|
+
if (f.length > 0) {
|
|
3259
|
+
writer.writeString(
|
|
3260
|
+
3,
|
|
3261
|
+
f
|
|
3262
|
+
);
|
|
3263
|
+
}
|
|
3264
|
+
f = message.getLog();
|
|
3265
|
+
if (f.length > 0) {
|
|
3266
|
+
writer.writeString(
|
|
3267
|
+
4,
|
|
3268
|
+
f
|
|
3269
|
+
);
|
|
3270
|
+
}
|
|
3271
|
+
f = message.getError();
|
|
3272
|
+
if (f.length > 0) {
|
|
3273
|
+
writer.writeString(
|
|
3274
|
+
5,
|
|
3275
|
+
f
|
|
3276
|
+
);
|
|
3277
|
+
}
|
|
3278
|
+
f = message.getStartAt();
|
|
3279
|
+
if (f !== 0) {
|
|
3280
|
+
writer.writeInt64(
|
|
3281
|
+
6,
|
|
3282
|
+
f
|
|
3283
|
+
);
|
|
3284
|
+
}
|
|
3285
|
+
f = message.getEndAt();
|
|
3286
|
+
if (f !== 0) {
|
|
3287
|
+
writer.writeInt64(
|
|
3288
|
+
7,
|
|
3289
|
+
f
|
|
3290
|
+
);
|
|
3291
|
+
}
|
|
3292
|
+
f = message.getInputsList();
|
|
3293
|
+
if (f.length > 0) {
|
|
3294
|
+
writer.writeRepeatedString(
|
|
3295
|
+
8,
|
|
3296
|
+
f
|
|
3297
|
+
);
|
|
3298
|
+
}
|
|
3299
|
+
};
|
|
3300
|
+
proto.aggregator.Execution.Step.prototype.getNodeId = function() {
|
|
3301
|
+
return (
|
|
3302
|
+
/** @type {string} */
|
|
3303
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3304
|
+
);
|
|
3305
|
+
};
|
|
3306
|
+
proto.aggregator.Execution.Step.prototype.setNodeId = function(value) {
|
|
3307
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3308
|
+
};
|
|
3309
|
+
proto.aggregator.Execution.Step.prototype.getSuccess = function() {
|
|
3310
|
+
return (
|
|
3311
|
+
/** @type {boolean} */
|
|
3312
|
+
jspb.Message.getBooleanFieldWithDefault(this, 2, false)
|
|
3313
|
+
);
|
|
3314
|
+
};
|
|
3315
|
+
proto.aggregator.Execution.Step.prototype.setSuccess = function(value) {
|
|
3316
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
3317
|
+
};
|
|
3318
|
+
proto.aggregator.Execution.Step.prototype.getOutputData = function() {
|
|
3319
|
+
return (
|
|
3320
|
+
/** @type {string} */
|
|
3321
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
3322
|
+
);
|
|
3323
|
+
};
|
|
3324
|
+
proto.aggregator.Execution.Step.prototype.setOutputData = function(value) {
|
|
3325
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3326
|
+
};
|
|
3327
|
+
proto.aggregator.Execution.Step.prototype.getLog = function() {
|
|
3328
|
+
return (
|
|
3329
|
+
/** @type {string} */
|
|
3330
|
+
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
3331
|
+
);
|
|
3332
|
+
};
|
|
3333
|
+
proto.aggregator.Execution.Step.prototype.setLog = function(value) {
|
|
3334
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3335
|
+
};
|
|
3336
|
+
proto.aggregator.Execution.Step.prototype.getError = function() {
|
|
3337
|
+
return (
|
|
3338
|
+
/** @type {string} */
|
|
3339
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
3340
|
+
);
|
|
3341
|
+
};
|
|
3342
|
+
proto.aggregator.Execution.Step.prototype.setError = function(value) {
|
|
3343
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3344
|
+
};
|
|
3345
|
+
proto.aggregator.Execution.Step.prototype.getStartAt = function() {
|
|
3346
|
+
return (
|
|
3347
|
+
/** @type {number} */
|
|
3348
|
+
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
3349
|
+
);
|
|
3350
|
+
};
|
|
3351
|
+
proto.aggregator.Execution.Step.prototype.setStartAt = function(value) {
|
|
3352
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
3353
|
+
};
|
|
3354
|
+
proto.aggregator.Execution.Step.prototype.getEndAt = function() {
|
|
3355
|
+
return (
|
|
3356
|
+
/** @type {number} */
|
|
3357
|
+
jspb.Message.getFieldWithDefault(this, 7, 0)
|
|
3358
|
+
);
|
|
3359
|
+
};
|
|
3360
|
+
proto.aggregator.Execution.Step.prototype.setEndAt = function(value) {
|
|
3361
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
3362
|
+
};
|
|
3363
|
+
proto.aggregator.Execution.Step.prototype.getInputsList = function() {
|
|
3364
|
+
return (
|
|
3365
|
+
/** @type {!Array<string>} */
|
|
3366
|
+
jspb.Message.getRepeatedField(this, 8)
|
|
3367
|
+
);
|
|
3368
|
+
};
|
|
3369
|
+
proto.aggregator.Execution.Step.prototype.setInputsList = function(value) {
|
|
3370
|
+
return jspb.Message.setField(this, 8, value || []);
|
|
3371
|
+
};
|
|
3372
|
+
proto.aggregator.Execution.Step.prototype.addInputs = function(value, opt_index) {
|
|
3373
|
+
return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
|
|
3374
|
+
};
|
|
3375
|
+
proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
|
|
3376
|
+
return this.setInputsList([]);
|
|
3377
|
+
};
|
|
3378
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3379
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.toObject = function(opt_includeInstance) {
|
|
3380
|
+
return proto.aggregator.Execution.TransferLogOutput.toObject(opt_includeInstance, this);
|
|
3381
|
+
};
|
|
3382
|
+
proto.aggregator.Execution.TransferLogOutput.toObject = function(includeInstance, msg) {
|
|
3383
|
+
var f, obj = {
|
|
3384
|
+
tokenName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3385
|
+
tokenSymbol: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3386
|
+
tokenDecimals: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
3387
|
+
transactionHash: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3388
|
+
address: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3389
|
+
blockNumber: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
3390
|
+
blockTimestamp: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
3391
|
+
fromAddress: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
3392
|
+
toAddress: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
3393
|
+
value: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
3394
|
+
valueFormatted: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
3395
|
+
transactionIndex: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
|
3396
|
+
};
|
|
3397
|
+
if (includeInstance) {
|
|
3398
|
+
obj.$jspbMessageInstance = msg;
|
|
3399
|
+
}
|
|
3400
|
+
return obj;
|
|
3401
|
+
};
|
|
3402
|
+
}
|
|
3403
|
+
proto.aggregator.Execution.TransferLogOutput.deserializeBinary = function(bytes) {
|
|
3404
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3405
|
+
var msg = new proto.aggregator.Execution.TransferLogOutput();
|
|
3406
|
+
return proto.aggregator.Execution.TransferLogOutput.deserializeBinaryFromReader(msg, reader);
|
|
3407
|
+
};
|
|
3408
|
+
proto.aggregator.Execution.TransferLogOutput.deserializeBinaryFromReader = function(msg, reader) {
|
|
3409
|
+
while (reader.nextField()) {
|
|
3410
|
+
if (reader.isEndGroup()) {
|
|
3411
|
+
break;
|
|
3412
|
+
}
|
|
3413
|
+
var field = reader.getFieldNumber();
|
|
3414
|
+
switch (field) {
|
|
3415
|
+
case 1:
|
|
3416
|
+
var value = (
|
|
3417
|
+
/** @type {string} */
|
|
3418
|
+
reader.readString()
|
|
3419
|
+
);
|
|
3420
|
+
msg.setTokenName(value);
|
|
3421
|
+
break;
|
|
3422
|
+
case 2:
|
|
3423
|
+
var value = (
|
|
3424
|
+
/** @type {string} */
|
|
3425
|
+
reader.readString()
|
|
3426
|
+
);
|
|
3427
|
+
msg.setTokenSymbol(value);
|
|
3428
|
+
break;
|
|
3429
|
+
case 3:
|
|
3430
|
+
var value = (
|
|
3431
|
+
/** @type {number} */
|
|
3432
|
+
reader.readUint32()
|
|
3433
|
+
);
|
|
3434
|
+
msg.setTokenDecimals(value);
|
|
3435
|
+
break;
|
|
3436
|
+
case 4:
|
|
3437
|
+
var value = (
|
|
3438
|
+
/** @type {string} */
|
|
3439
|
+
reader.readString()
|
|
3440
|
+
);
|
|
3441
|
+
msg.setTransactionHash(value);
|
|
3442
|
+
break;
|
|
3443
|
+
case 5:
|
|
3444
|
+
var value = (
|
|
3445
|
+
/** @type {string} */
|
|
3446
|
+
reader.readString()
|
|
3447
|
+
);
|
|
3448
|
+
msg.setAddress(value);
|
|
3449
|
+
break;
|
|
3450
|
+
case 6:
|
|
3451
|
+
var value = (
|
|
3452
|
+
/** @type {number} */
|
|
3453
|
+
reader.readUint64()
|
|
3454
|
+
);
|
|
3455
|
+
msg.setBlockNumber(value);
|
|
3456
|
+
break;
|
|
3457
|
+
case 7:
|
|
3458
|
+
var value = (
|
|
3459
|
+
/** @type {number} */
|
|
3460
|
+
reader.readUint64()
|
|
3461
|
+
);
|
|
3462
|
+
msg.setBlockTimestamp(value);
|
|
3463
|
+
break;
|
|
3464
|
+
case 8:
|
|
3465
|
+
var value = (
|
|
3466
|
+
/** @type {string} */
|
|
3467
|
+
reader.readString()
|
|
3468
|
+
);
|
|
3469
|
+
msg.setFromAddress(value);
|
|
3470
|
+
break;
|
|
3471
|
+
case 9:
|
|
3472
|
+
var value = (
|
|
3473
|
+
/** @type {string} */
|
|
3474
|
+
reader.readString()
|
|
3475
|
+
);
|
|
3476
|
+
msg.setToAddress(value);
|
|
3477
|
+
break;
|
|
3478
|
+
case 10:
|
|
3479
|
+
var value = (
|
|
3480
|
+
/** @type {string} */
|
|
3481
|
+
reader.readString()
|
|
3482
|
+
);
|
|
3483
|
+
msg.setValue(value);
|
|
3484
|
+
break;
|
|
3485
|
+
case 11:
|
|
3486
|
+
var value = (
|
|
3487
|
+
/** @type {string} */
|
|
3488
|
+
reader.readString()
|
|
3489
|
+
);
|
|
3490
|
+
msg.setValueFormatted(value);
|
|
3491
|
+
break;
|
|
3492
|
+
case 12:
|
|
3493
|
+
var value = (
|
|
3494
|
+
/** @type {number} */
|
|
3495
|
+
reader.readUint32()
|
|
3496
|
+
);
|
|
3497
|
+
msg.setTransactionIndex(value);
|
|
3498
|
+
break;
|
|
3499
|
+
default:
|
|
3500
|
+
reader.skipField();
|
|
3501
|
+
break;
|
|
3502
|
+
}
|
|
3503
|
+
}
|
|
3504
|
+
return msg;
|
|
3505
|
+
};
|
|
3506
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.serializeBinary = function() {
|
|
3507
|
+
var writer = new jspb.BinaryWriter();
|
|
3508
|
+
proto.aggregator.Execution.TransferLogOutput.serializeBinaryToWriter(this, writer);
|
|
3509
|
+
return writer.getResultBuffer();
|
|
3510
|
+
};
|
|
3511
|
+
proto.aggregator.Execution.TransferLogOutput.serializeBinaryToWriter = function(message, writer) {
|
|
3512
|
+
var f = void 0;
|
|
3513
|
+
f = message.getTokenName();
|
|
3514
|
+
if (f.length > 0) {
|
|
3515
|
+
writer.writeString(
|
|
3516
|
+
1,
|
|
3517
|
+
f
|
|
3518
|
+
);
|
|
3519
|
+
}
|
|
3520
|
+
f = message.getTokenSymbol();
|
|
3521
|
+
if (f.length > 0) {
|
|
3522
|
+
writer.writeString(
|
|
3523
|
+
2,
|
|
3524
|
+
f
|
|
3525
|
+
);
|
|
3526
|
+
}
|
|
3527
|
+
f = message.getTokenDecimals();
|
|
3528
|
+
if (f !== 0) {
|
|
3529
|
+
writer.writeUint32(
|
|
3530
|
+
3,
|
|
3531
|
+
f
|
|
3532
|
+
);
|
|
3533
|
+
}
|
|
3534
|
+
f = message.getTransactionHash();
|
|
3535
|
+
if (f.length > 0) {
|
|
3536
|
+
writer.writeString(
|
|
3537
|
+
4,
|
|
3538
|
+
f
|
|
3539
|
+
);
|
|
3540
|
+
}
|
|
3541
|
+
f = message.getAddress();
|
|
3542
|
+
if (f.length > 0) {
|
|
3543
|
+
writer.writeString(
|
|
3544
|
+
5,
|
|
3545
|
+
f
|
|
3546
|
+
);
|
|
3547
|
+
}
|
|
3548
|
+
f = message.getBlockNumber();
|
|
3549
|
+
if (f !== 0) {
|
|
3550
|
+
writer.writeUint64(
|
|
3551
|
+
6,
|
|
3552
|
+
f
|
|
3553
|
+
);
|
|
3554
|
+
}
|
|
3555
|
+
f = message.getBlockTimestamp();
|
|
3556
|
+
if (f !== 0) {
|
|
3557
|
+
writer.writeUint64(
|
|
3558
|
+
7,
|
|
3559
|
+
f
|
|
3560
|
+
);
|
|
3561
|
+
}
|
|
3562
|
+
f = message.getFromAddress();
|
|
3563
|
+
if (f.length > 0) {
|
|
3564
|
+
writer.writeString(
|
|
3565
|
+
8,
|
|
3566
|
+
f
|
|
3567
|
+
);
|
|
3568
|
+
}
|
|
3569
|
+
f = message.getToAddress();
|
|
3570
|
+
if (f.length > 0) {
|
|
3571
|
+
writer.writeString(
|
|
3572
|
+
9,
|
|
3573
|
+
f
|
|
3574
|
+
);
|
|
3575
|
+
}
|
|
3576
|
+
f = message.getValue();
|
|
3577
|
+
if (f.length > 0) {
|
|
3578
|
+
writer.writeString(
|
|
3579
|
+
10,
|
|
3580
|
+
f
|
|
3581
|
+
);
|
|
3582
|
+
}
|
|
3583
|
+
f = message.getValueFormatted();
|
|
3584
|
+
if (f.length > 0) {
|
|
3585
|
+
writer.writeString(
|
|
3586
|
+
11,
|
|
3587
|
+
f
|
|
3588
|
+
);
|
|
3589
|
+
}
|
|
3590
|
+
f = message.getTransactionIndex();
|
|
3591
|
+
if (f !== 0) {
|
|
3592
|
+
writer.writeUint32(
|
|
3593
|
+
12,
|
|
3594
|
+
f
|
|
3595
|
+
);
|
|
3596
|
+
}
|
|
3597
|
+
};
|
|
3598
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getTokenName = function() {
|
|
3599
|
+
return (
|
|
3600
|
+
/** @type {string} */
|
|
3601
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3602
|
+
);
|
|
3603
|
+
};
|
|
3604
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setTokenName = function(value) {
|
|
3605
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3606
|
+
};
|
|
3607
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getTokenSymbol = function() {
|
|
3608
|
+
return (
|
|
3609
|
+
/** @type {string} */
|
|
3610
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
3611
|
+
);
|
|
3612
|
+
};
|
|
3613
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setTokenSymbol = function(value) {
|
|
3614
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3615
|
+
};
|
|
3616
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getTokenDecimals = function() {
|
|
3617
|
+
return (
|
|
3618
|
+
/** @type {number} */
|
|
3619
|
+
jspb.Message.getFieldWithDefault(this, 3, 0)
|
|
3620
|
+
);
|
|
3621
|
+
};
|
|
3622
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setTokenDecimals = function(value) {
|
|
3623
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
3624
|
+
};
|
|
3625
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getTransactionHash = function() {
|
|
3626
|
+
return (
|
|
3627
|
+
/** @type {string} */
|
|
3628
|
+
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
3629
|
+
);
|
|
3630
|
+
};
|
|
3631
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setTransactionHash = function(value) {
|
|
3632
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3633
|
+
};
|
|
3634
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getAddress = function() {
|
|
3635
|
+
return (
|
|
3636
|
+
/** @type {string} */
|
|
3637
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
3638
|
+
);
|
|
3639
|
+
};
|
|
3640
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setAddress = function(value) {
|
|
3641
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3642
|
+
};
|
|
3643
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getBlockNumber = function() {
|
|
3644
|
+
return (
|
|
3645
|
+
/** @type {number} */
|
|
3646
|
+
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
3647
|
+
);
|
|
3648
|
+
};
|
|
3649
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setBlockNumber = function(value) {
|
|
3650
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
3651
|
+
};
|
|
3652
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getBlockTimestamp = function() {
|
|
3653
|
+
return (
|
|
3654
|
+
/** @type {number} */
|
|
3655
|
+
jspb.Message.getFieldWithDefault(this, 7, 0)
|
|
3656
|
+
);
|
|
3657
|
+
};
|
|
3658
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setBlockTimestamp = function(value) {
|
|
3659
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
3660
|
+
};
|
|
3661
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getFromAddress = function() {
|
|
3662
|
+
return (
|
|
3663
|
+
/** @type {string} */
|
|
3664
|
+
jspb.Message.getFieldWithDefault(this, 8, "")
|
|
3665
|
+
);
|
|
3666
|
+
};
|
|
3667
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setFromAddress = function(value) {
|
|
3668
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
3669
|
+
};
|
|
3670
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getToAddress = function() {
|
|
3671
|
+
return (
|
|
3672
|
+
/** @type {string} */
|
|
3673
|
+
jspb.Message.getFieldWithDefault(this, 9, "")
|
|
3674
|
+
);
|
|
3675
|
+
};
|
|
3676
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setToAddress = function(value) {
|
|
3677
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
3678
|
+
};
|
|
3679
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getValue = function() {
|
|
3680
|
+
return (
|
|
3681
|
+
/** @type {string} */
|
|
3682
|
+
jspb.Message.getFieldWithDefault(this, 10, "")
|
|
3683
|
+
);
|
|
3684
|
+
};
|
|
3685
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setValue = function(value) {
|
|
3686
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
3687
|
+
};
|
|
3688
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getValueFormatted = function() {
|
|
3689
|
+
return (
|
|
3690
|
+
/** @type {string} */
|
|
3691
|
+
jspb.Message.getFieldWithDefault(this, 11, "")
|
|
3692
|
+
);
|
|
3693
|
+
};
|
|
3694
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setValueFormatted = function(value) {
|
|
3695
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
3696
|
+
};
|
|
3697
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.getTransactionIndex = function() {
|
|
3698
|
+
return (
|
|
3699
|
+
/** @type {number} */
|
|
3700
|
+
jspb.Message.getFieldWithDefault(this, 12, 0)
|
|
3701
|
+
);
|
|
3702
|
+
};
|
|
3703
|
+
proto.aggregator.Execution.TransferLogOutput.prototype.setTransactionIndex = function(value) {
|
|
3704
|
+
return jspb.Message.setProto3IntField(this, 12, value);
|
|
3705
|
+
};
|
|
3706
|
+
proto.aggregator.Execution.EvmLogOutput.repeatedFields_ = [6];
|
|
3707
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3708
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.toObject = function(opt_includeInstance) {
|
|
3709
|
+
return proto.aggregator.Execution.EvmLogOutput.toObject(opt_includeInstance, this);
|
|
3710
|
+
};
|
|
3711
|
+
proto.aggregator.Execution.EvmLogOutput.toObject = function(includeInstance, msg) {
|
|
3712
|
+
var f, obj = {
|
|
3713
|
+
address: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3714
|
+
blockHash: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3715
|
+
blockNumber: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
3716
|
+
data: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3717
|
+
index: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
3718
|
+
topicsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? void 0 : f,
|
|
3719
|
+
transactionHash: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
3720
|
+
transactionIndex: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
3721
|
+
};
|
|
3722
|
+
if (includeInstance) {
|
|
3723
|
+
obj.$jspbMessageInstance = msg;
|
|
3724
|
+
}
|
|
3725
|
+
return obj;
|
|
3726
|
+
};
|
|
3727
|
+
}
|
|
3728
|
+
proto.aggregator.Execution.EvmLogOutput.deserializeBinary = function(bytes) {
|
|
3729
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3730
|
+
var msg = new proto.aggregator.Execution.EvmLogOutput();
|
|
3731
|
+
return proto.aggregator.Execution.EvmLogOutput.deserializeBinaryFromReader(msg, reader);
|
|
3732
|
+
};
|
|
3733
|
+
proto.aggregator.Execution.EvmLogOutput.deserializeBinaryFromReader = function(msg, reader) {
|
|
3734
|
+
while (reader.nextField()) {
|
|
3735
|
+
if (reader.isEndGroup()) {
|
|
3736
|
+
break;
|
|
3737
|
+
}
|
|
3738
|
+
var field = reader.getFieldNumber();
|
|
3739
|
+
switch (field) {
|
|
3740
|
+
case 1:
|
|
3741
|
+
var value = (
|
|
3742
|
+
/** @type {string} */
|
|
3743
|
+
reader.readString()
|
|
3744
|
+
);
|
|
3745
|
+
msg.setAddress(value);
|
|
3746
|
+
break;
|
|
3747
|
+
case 2:
|
|
3748
|
+
var value = (
|
|
3749
|
+
/** @type {string} */
|
|
3750
|
+
reader.readString()
|
|
3751
|
+
);
|
|
3752
|
+
msg.setBlockHash(value);
|
|
3753
|
+
break;
|
|
3754
|
+
case 3:
|
|
3755
|
+
var value = (
|
|
3756
|
+
/** @type {number} */
|
|
3757
|
+
reader.readUint64()
|
|
3758
|
+
);
|
|
3759
|
+
msg.setBlockNumber(value);
|
|
3760
|
+
break;
|
|
3761
|
+
case 4:
|
|
3762
|
+
var value = (
|
|
3763
|
+
/** @type {string} */
|
|
3764
|
+
reader.readString()
|
|
3765
|
+
);
|
|
3766
|
+
msg.setData(value);
|
|
3767
|
+
break;
|
|
3768
|
+
case 5:
|
|
3769
|
+
var value = (
|
|
3770
|
+
/** @type {number} */
|
|
3771
|
+
reader.readUint32()
|
|
3772
|
+
);
|
|
3773
|
+
msg.setIndex(value);
|
|
3774
|
+
break;
|
|
3775
|
+
case 6:
|
|
3776
|
+
var value = (
|
|
3777
|
+
/** @type {string} */
|
|
3778
|
+
reader.readString()
|
|
3779
|
+
);
|
|
3780
|
+
msg.addTopics(value);
|
|
3109
3781
|
break;
|
|
3110
3782
|
case 7:
|
|
3783
|
+
var value = (
|
|
3784
|
+
/** @type {string} */
|
|
3785
|
+
reader.readString()
|
|
3786
|
+
);
|
|
3787
|
+
msg.setTransactionHash(value);
|
|
3788
|
+
break;
|
|
3789
|
+
case 8:
|
|
3111
3790
|
var value = (
|
|
3112
3791
|
/** @type {number} */
|
|
3113
|
-
reader.
|
|
3792
|
+
reader.readUint32()
|
|
3114
3793
|
);
|
|
3115
|
-
msg.
|
|
3794
|
+
msg.setTransactionIndex(value);
|
|
3116
3795
|
break;
|
|
3117
3796
|
default:
|
|
3118
3797
|
reader.skipField();
|
|
@@ -3121,125 +3800,275 @@ var require_avs_pb = __commonJS({
|
|
|
3121
3800
|
}
|
|
3122
3801
|
return msg;
|
|
3123
3802
|
};
|
|
3124
|
-
proto.aggregator.Execution.
|
|
3803
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.serializeBinary = function() {
|
|
3125
3804
|
var writer = new jspb.BinaryWriter();
|
|
3126
|
-
proto.aggregator.Execution.
|
|
3805
|
+
proto.aggregator.Execution.EvmLogOutput.serializeBinaryToWriter(this, writer);
|
|
3127
3806
|
return writer.getResultBuffer();
|
|
3128
3807
|
};
|
|
3129
|
-
proto.aggregator.Execution.
|
|
3808
|
+
proto.aggregator.Execution.EvmLogOutput.serializeBinaryToWriter = function(message, writer) {
|
|
3130
3809
|
var f = void 0;
|
|
3131
|
-
f = message.
|
|
3810
|
+
f = message.getAddress();
|
|
3132
3811
|
if (f.length > 0) {
|
|
3133
3812
|
writer.writeString(
|
|
3134
3813
|
1,
|
|
3135
3814
|
f
|
|
3136
3815
|
);
|
|
3137
3816
|
}
|
|
3138
|
-
f = message.
|
|
3139
|
-
if (f) {
|
|
3140
|
-
writer.
|
|
3817
|
+
f = message.getBlockHash();
|
|
3818
|
+
if (f.length > 0) {
|
|
3819
|
+
writer.writeString(
|
|
3141
3820
|
2,
|
|
3142
3821
|
f
|
|
3143
3822
|
);
|
|
3144
3823
|
}
|
|
3145
|
-
f = message.
|
|
3146
|
-
if (f
|
|
3147
|
-
writer.
|
|
3824
|
+
f = message.getBlockNumber();
|
|
3825
|
+
if (f !== 0) {
|
|
3826
|
+
writer.writeUint64(
|
|
3148
3827
|
3,
|
|
3149
3828
|
f
|
|
3150
3829
|
);
|
|
3151
3830
|
}
|
|
3152
|
-
f = message.
|
|
3831
|
+
f = message.getData();
|
|
3153
3832
|
if (f.length > 0) {
|
|
3154
3833
|
writer.writeString(
|
|
3155
3834
|
4,
|
|
3156
3835
|
f
|
|
3157
3836
|
);
|
|
3158
3837
|
}
|
|
3159
|
-
f = message.
|
|
3160
|
-
if (f
|
|
3161
|
-
writer.
|
|
3838
|
+
f = message.getIndex();
|
|
3839
|
+
if (f !== 0) {
|
|
3840
|
+
writer.writeUint32(
|
|
3162
3841
|
5,
|
|
3163
3842
|
f
|
|
3164
3843
|
);
|
|
3165
3844
|
}
|
|
3166
|
-
f = message.
|
|
3167
|
-
if (f
|
|
3168
|
-
writer.
|
|
3845
|
+
f = message.getTopicsList();
|
|
3846
|
+
if (f.length > 0) {
|
|
3847
|
+
writer.writeRepeatedString(
|
|
3169
3848
|
6,
|
|
3170
3849
|
f
|
|
3171
3850
|
);
|
|
3172
3851
|
}
|
|
3173
|
-
f = message.
|
|
3174
|
-
if (f
|
|
3175
|
-
writer.
|
|
3852
|
+
f = message.getTransactionHash();
|
|
3853
|
+
if (f.length > 0) {
|
|
3854
|
+
writer.writeString(
|
|
3176
3855
|
7,
|
|
3177
3856
|
f
|
|
3178
3857
|
);
|
|
3179
3858
|
}
|
|
3859
|
+
f = message.getTransactionIndex();
|
|
3860
|
+
if (f !== 0) {
|
|
3861
|
+
writer.writeUint32(
|
|
3862
|
+
8,
|
|
3863
|
+
f
|
|
3864
|
+
);
|
|
3865
|
+
}
|
|
3180
3866
|
};
|
|
3181
|
-
proto.aggregator.Execution.
|
|
3867
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.getAddress = function() {
|
|
3182
3868
|
return (
|
|
3183
3869
|
/** @type {string} */
|
|
3184
3870
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3185
3871
|
);
|
|
3186
3872
|
};
|
|
3187
|
-
proto.aggregator.Execution.
|
|
3873
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.setAddress = function(value) {
|
|
3188
3874
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3189
3875
|
};
|
|
3190
|
-
proto.aggregator.Execution.
|
|
3876
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.getBlockHash = function() {
|
|
3191
3877
|
return (
|
|
3192
|
-
/** @type {
|
|
3193
|
-
jspb.Message.
|
|
3878
|
+
/** @type {string} */
|
|
3879
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
3194
3880
|
);
|
|
3195
3881
|
};
|
|
3196
|
-
proto.aggregator.Execution.
|
|
3197
|
-
return jspb.Message.
|
|
3882
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.setBlockHash = function(value) {
|
|
3883
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3198
3884
|
};
|
|
3199
|
-
proto.aggregator.Execution.
|
|
3885
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.getBlockNumber = function() {
|
|
3200
3886
|
return (
|
|
3201
|
-
/** @type {
|
|
3202
|
-
jspb.Message.getFieldWithDefault(this, 3,
|
|
3887
|
+
/** @type {number} */
|
|
3888
|
+
jspb.Message.getFieldWithDefault(this, 3, 0)
|
|
3203
3889
|
);
|
|
3204
3890
|
};
|
|
3205
|
-
proto.aggregator.Execution.
|
|
3206
|
-
return jspb.Message.
|
|
3891
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.setBlockNumber = function(value) {
|
|
3892
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
3207
3893
|
};
|
|
3208
|
-
proto.aggregator.Execution.
|
|
3894
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.getData = function() {
|
|
3209
3895
|
return (
|
|
3210
3896
|
/** @type {string} */
|
|
3211
3897
|
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
3212
3898
|
);
|
|
3213
3899
|
};
|
|
3214
|
-
proto.aggregator.Execution.
|
|
3900
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.setData = function(value) {
|
|
3215
3901
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3216
3902
|
};
|
|
3217
|
-
proto.aggregator.Execution.
|
|
3903
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.getIndex = function() {
|
|
3904
|
+
return (
|
|
3905
|
+
/** @type {number} */
|
|
3906
|
+
jspb.Message.getFieldWithDefault(this, 5, 0)
|
|
3907
|
+
);
|
|
3908
|
+
};
|
|
3909
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.setIndex = function(value) {
|
|
3910
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
3911
|
+
};
|
|
3912
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.getTopicsList = function() {
|
|
3913
|
+
return (
|
|
3914
|
+
/** @type {!Array<string>} */
|
|
3915
|
+
jspb.Message.getRepeatedField(this, 6)
|
|
3916
|
+
);
|
|
3917
|
+
};
|
|
3918
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.setTopicsList = function(value) {
|
|
3919
|
+
return jspb.Message.setField(this, 6, value || []);
|
|
3920
|
+
};
|
|
3921
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.addTopics = function(value, opt_index) {
|
|
3922
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
|
3923
|
+
};
|
|
3924
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.clearTopicsList = function() {
|
|
3925
|
+
return this.setTopicsList([]);
|
|
3926
|
+
};
|
|
3927
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.getTransactionHash = function() {
|
|
3218
3928
|
return (
|
|
3219
3929
|
/** @type {string} */
|
|
3220
|
-
jspb.Message.getFieldWithDefault(this,
|
|
3930
|
+
jspb.Message.getFieldWithDefault(this, 7, "")
|
|
3221
3931
|
);
|
|
3222
3932
|
};
|
|
3223
|
-
proto.aggregator.Execution.
|
|
3224
|
-
return jspb.Message.setProto3StringField(this,
|
|
3933
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.setTransactionHash = function(value) {
|
|
3934
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3225
3935
|
};
|
|
3226
|
-
proto.aggregator.Execution.
|
|
3936
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.getTransactionIndex = function() {
|
|
3227
3937
|
return (
|
|
3228
3938
|
/** @type {number} */
|
|
3229
|
-
jspb.Message.getFieldWithDefault(this,
|
|
3939
|
+
jspb.Message.getFieldWithDefault(this, 8, 0)
|
|
3230
3940
|
);
|
|
3231
3941
|
};
|
|
3232
|
-
proto.aggregator.Execution.
|
|
3233
|
-
return jspb.Message.setProto3IntField(this,
|
|
3942
|
+
proto.aggregator.Execution.EvmLogOutput.prototype.setTransactionIndex = function(value) {
|
|
3943
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
3234
3944
|
};
|
|
3235
|
-
|
|
3945
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3946
|
+
proto.aggregator.Execution.BlockOutput.prototype.toObject = function(opt_includeInstance) {
|
|
3947
|
+
return proto.aggregator.Execution.BlockOutput.toObject(opt_includeInstance, this);
|
|
3948
|
+
};
|
|
3949
|
+
proto.aggregator.Execution.BlockOutput.toObject = function(includeInstance, msg) {
|
|
3950
|
+
var f, obj = {
|
|
3951
|
+
blockNumber: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
3952
|
+
};
|
|
3953
|
+
if (includeInstance) {
|
|
3954
|
+
obj.$jspbMessageInstance = msg;
|
|
3955
|
+
}
|
|
3956
|
+
return obj;
|
|
3957
|
+
};
|
|
3958
|
+
}
|
|
3959
|
+
proto.aggregator.Execution.BlockOutput.deserializeBinary = function(bytes) {
|
|
3960
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3961
|
+
var msg = new proto.aggregator.Execution.BlockOutput();
|
|
3962
|
+
return proto.aggregator.Execution.BlockOutput.deserializeBinaryFromReader(msg, reader);
|
|
3963
|
+
};
|
|
3964
|
+
proto.aggregator.Execution.BlockOutput.deserializeBinaryFromReader = function(msg, reader) {
|
|
3965
|
+
while (reader.nextField()) {
|
|
3966
|
+
if (reader.isEndGroup()) {
|
|
3967
|
+
break;
|
|
3968
|
+
}
|
|
3969
|
+
var field = reader.getFieldNumber();
|
|
3970
|
+
switch (field) {
|
|
3971
|
+
case 1:
|
|
3972
|
+
var value = (
|
|
3973
|
+
/** @type {number} */
|
|
3974
|
+
reader.readUint64()
|
|
3975
|
+
);
|
|
3976
|
+
msg.setBlockNumber(value);
|
|
3977
|
+
break;
|
|
3978
|
+
default:
|
|
3979
|
+
reader.skipField();
|
|
3980
|
+
break;
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
return msg;
|
|
3984
|
+
};
|
|
3985
|
+
proto.aggregator.Execution.BlockOutput.prototype.serializeBinary = function() {
|
|
3986
|
+
var writer = new jspb.BinaryWriter();
|
|
3987
|
+
proto.aggregator.Execution.BlockOutput.serializeBinaryToWriter(this, writer);
|
|
3988
|
+
return writer.getResultBuffer();
|
|
3989
|
+
};
|
|
3990
|
+
proto.aggregator.Execution.BlockOutput.serializeBinaryToWriter = function(message, writer) {
|
|
3991
|
+
var f = void 0;
|
|
3992
|
+
f = message.getBlockNumber();
|
|
3993
|
+
if (f !== 0) {
|
|
3994
|
+
writer.writeUint64(
|
|
3995
|
+
1,
|
|
3996
|
+
f
|
|
3997
|
+
);
|
|
3998
|
+
}
|
|
3999
|
+
};
|
|
4000
|
+
proto.aggregator.Execution.BlockOutput.prototype.getBlockNumber = function() {
|
|
3236
4001
|
return (
|
|
3237
4002
|
/** @type {number} */
|
|
3238
|
-
jspb.Message.getFieldWithDefault(this,
|
|
4003
|
+
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
3239
4004
|
);
|
|
3240
4005
|
};
|
|
3241
|
-
proto.aggregator.Execution.
|
|
3242
|
-
return jspb.Message.setProto3IntField(this,
|
|
4006
|
+
proto.aggregator.Execution.BlockOutput.prototype.setBlockNumber = function(value) {
|
|
4007
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
4008
|
+
};
|
|
4009
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4010
|
+
proto.aggregator.Execution.TimeOutput.prototype.toObject = function(opt_includeInstance) {
|
|
4011
|
+
return proto.aggregator.Execution.TimeOutput.toObject(opt_includeInstance, this);
|
|
4012
|
+
};
|
|
4013
|
+
proto.aggregator.Execution.TimeOutput.toObject = function(includeInstance, msg) {
|
|
4014
|
+
var f, obj = {
|
|
4015
|
+
epoch: jspb.Message.getFieldWithDefault(msg, 1, 0)
|
|
4016
|
+
};
|
|
4017
|
+
if (includeInstance) {
|
|
4018
|
+
obj.$jspbMessageInstance = msg;
|
|
4019
|
+
}
|
|
4020
|
+
return obj;
|
|
4021
|
+
};
|
|
4022
|
+
}
|
|
4023
|
+
proto.aggregator.Execution.TimeOutput.deserializeBinary = function(bytes) {
|
|
4024
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4025
|
+
var msg = new proto.aggregator.Execution.TimeOutput();
|
|
4026
|
+
return proto.aggregator.Execution.TimeOutput.deserializeBinaryFromReader(msg, reader);
|
|
4027
|
+
};
|
|
4028
|
+
proto.aggregator.Execution.TimeOutput.deserializeBinaryFromReader = function(msg, reader) {
|
|
4029
|
+
while (reader.nextField()) {
|
|
4030
|
+
if (reader.isEndGroup()) {
|
|
4031
|
+
break;
|
|
4032
|
+
}
|
|
4033
|
+
var field = reader.getFieldNumber();
|
|
4034
|
+
switch (field) {
|
|
4035
|
+
case 1:
|
|
4036
|
+
var value = (
|
|
4037
|
+
/** @type {number} */
|
|
4038
|
+
reader.readUint64()
|
|
4039
|
+
);
|
|
4040
|
+
msg.setEpoch(value);
|
|
4041
|
+
break;
|
|
4042
|
+
default:
|
|
4043
|
+
reader.skipField();
|
|
4044
|
+
break;
|
|
4045
|
+
}
|
|
4046
|
+
}
|
|
4047
|
+
return msg;
|
|
4048
|
+
};
|
|
4049
|
+
proto.aggregator.Execution.TimeOutput.prototype.serializeBinary = function() {
|
|
4050
|
+
var writer = new jspb.BinaryWriter();
|
|
4051
|
+
proto.aggregator.Execution.TimeOutput.serializeBinaryToWriter(this, writer);
|
|
4052
|
+
return writer.getResultBuffer();
|
|
4053
|
+
};
|
|
4054
|
+
proto.aggregator.Execution.TimeOutput.serializeBinaryToWriter = function(message, writer) {
|
|
4055
|
+
var f = void 0;
|
|
4056
|
+
f = message.getEpoch();
|
|
4057
|
+
if (f !== 0) {
|
|
4058
|
+
writer.writeUint64(
|
|
4059
|
+
1,
|
|
4060
|
+
f
|
|
4061
|
+
);
|
|
4062
|
+
}
|
|
4063
|
+
};
|
|
4064
|
+
proto.aggregator.Execution.TimeOutput.prototype.getEpoch = function() {
|
|
4065
|
+
return (
|
|
4066
|
+
/** @type {number} */
|
|
4067
|
+
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
4068
|
+
);
|
|
4069
|
+
};
|
|
4070
|
+
proto.aggregator.Execution.TimeOutput.prototype.setEpoch = function(value) {
|
|
4071
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3243
4072
|
};
|
|
3244
4073
|
proto.aggregator.Execution.prototype.getId = function() {
|
|
3245
4074
|
return (
|
|
@@ -3286,30 +4115,21 @@ var require_avs_pb = __commonJS({
|
|
|
3286
4115
|
proto.aggregator.Execution.prototype.setError = function(value) {
|
|
3287
4116
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
3288
4117
|
};
|
|
3289
|
-
proto.aggregator.Execution.prototype.
|
|
4118
|
+
proto.aggregator.Execution.prototype.getReason = function() {
|
|
3290
4119
|
return (
|
|
3291
|
-
/** @type{?proto.aggregator.
|
|
3292
|
-
jspb.Message.getWrapperField(this, proto.aggregator.
|
|
4120
|
+
/** @type{?proto.aggregator.TriggerReason} */
|
|
4121
|
+
jspb.Message.getWrapperField(this, proto.aggregator.TriggerReason, 6)
|
|
3293
4122
|
);
|
|
3294
4123
|
};
|
|
3295
|
-
proto.aggregator.Execution.prototype.
|
|
4124
|
+
proto.aggregator.Execution.prototype.setReason = function(value) {
|
|
3296
4125
|
return jspb.Message.setWrapperField(this, 6, value);
|
|
3297
4126
|
};
|
|
3298
|
-
proto.aggregator.Execution.prototype.
|
|
3299
|
-
return this.
|
|
4127
|
+
proto.aggregator.Execution.prototype.clearReason = function() {
|
|
4128
|
+
return this.setReason(void 0);
|
|
3300
4129
|
};
|
|
3301
|
-
proto.aggregator.Execution.prototype.
|
|
4130
|
+
proto.aggregator.Execution.prototype.hasReason = function() {
|
|
3302
4131
|
return jspb.Message.getField(this, 6) != null;
|
|
3303
4132
|
};
|
|
3304
|
-
proto.aggregator.Execution.prototype.getResult = function() {
|
|
3305
|
-
return (
|
|
3306
|
-
/** @type {string} */
|
|
3307
|
-
jspb.Message.getFieldWithDefault(this, 7, "")
|
|
3308
|
-
);
|
|
3309
|
-
};
|
|
3310
|
-
proto.aggregator.Execution.prototype.setResult = function(value) {
|
|
3311
|
-
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3312
|
-
};
|
|
3313
4133
|
proto.aggregator.Execution.prototype.getStepsList = function() {
|
|
3314
4134
|
return (
|
|
3315
4135
|
/** @type{!Array<!proto.aggregator.Execution.Step>} */
|
|
@@ -3325,6 +4145,75 @@ var require_avs_pb = __commonJS({
|
|
|
3325
4145
|
proto.aggregator.Execution.prototype.clearStepsList = function() {
|
|
3326
4146
|
return this.setStepsList([]);
|
|
3327
4147
|
};
|
|
4148
|
+
proto.aggregator.Execution.prototype.getTriggerName = function() {
|
|
4149
|
+
return (
|
|
4150
|
+
/** @type {string} */
|
|
4151
|
+
jspb.Message.getFieldWithDefault(this, 9, "")
|
|
4152
|
+
);
|
|
4153
|
+
};
|
|
4154
|
+
proto.aggregator.Execution.prototype.setTriggerName = function(value) {
|
|
4155
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
4156
|
+
};
|
|
4157
|
+
proto.aggregator.Execution.prototype.getTransferLog = function() {
|
|
4158
|
+
return (
|
|
4159
|
+
/** @type{?proto.aggregator.Execution.TransferLogOutput} */
|
|
4160
|
+
jspb.Message.getWrapperField(this, proto.aggregator.Execution.TransferLogOutput, 10)
|
|
4161
|
+
);
|
|
4162
|
+
};
|
|
4163
|
+
proto.aggregator.Execution.prototype.setTransferLog = function(value) {
|
|
4164
|
+
return jspb.Message.setOneofWrapperField(this, 10, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
4165
|
+
};
|
|
4166
|
+
proto.aggregator.Execution.prototype.clearTransferLog = function() {
|
|
4167
|
+
return this.setTransferLog(void 0);
|
|
4168
|
+
};
|
|
4169
|
+
proto.aggregator.Execution.prototype.hasTransferLog = function() {
|
|
4170
|
+
return jspb.Message.getField(this, 10) != null;
|
|
4171
|
+
};
|
|
4172
|
+
proto.aggregator.Execution.prototype.getEvmLog = function() {
|
|
4173
|
+
return (
|
|
4174
|
+
/** @type{?proto.aggregator.Execution.EvmLogOutput} */
|
|
4175
|
+
jspb.Message.getWrapperField(this, proto.aggregator.Execution.EvmLogOutput, 11)
|
|
4176
|
+
);
|
|
4177
|
+
};
|
|
4178
|
+
proto.aggregator.Execution.prototype.setEvmLog = function(value) {
|
|
4179
|
+
return jspb.Message.setOneofWrapperField(this, 11, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
4180
|
+
};
|
|
4181
|
+
proto.aggregator.Execution.prototype.clearEvmLog = function() {
|
|
4182
|
+
return this.setEvmLog(void 0);
|
|
4183
|
+
};
|
|
4184
|
+
proto.aggregator.Execution.prototype.hasEvmLog = function() {
|
|
4185
|
+
return jspb.Message.getField(this, 11) != null;
|
|
4186
|
+
};
|
|
4187
|
+
proto.aggregator.Execution.prototype.getBlock = function() {
|
|
4188
|
+
return (
|
|
4189
|
+
/** @type{?proto.aggregator.Execution.BlockOutput} */
|
|
4190
|
+
jspb.Message.getWrapperField(this, proto.aggregator.Execution.BlockOutput, 12)
|
|
4191
|
+
);
|
|
4192
|
+
};
|
|
4193
|
+
proto.aggregator.Execution.prototype.setBlock = function(value) {
|
|
4194
|
+
return jspb.Message.setOneofWrapperField(this, 12, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
4195
|
+
};
|
|
4196
|
+
proto.aggregator.Execution.prototype.clearBlock = function() {
|
|
4197
|
+
return this.setBlock(void 0);
|
|
4198
|
+
};
|
|
4199
|
+
proto.aggregator.Execution.prototype.hasBlock = function() {
|
|
4200
|
+
return jspb.Message.getField(this, 12) != null;
|
|
4201
|
+
};
|
|
4202
|
+
proto.aggregator.Execution.prototype.getTime = function() {
|
|
4203
|
+
return (
|
|
4204
|
+
/** @type{?proto.aggregator.Execution.TimeOutput} */
|
|
4205
|
+
jspb.Message.getWrapperField(this, proto.aggregator.Execution.TimeOutput, 13)
|
|
4206
|
+
);
|
|
4207
|
+
};
|
|
4208
|
+
proto.aggregator.Execution.prototype.setTime = function(value) {
|
|
4209
|
+
return jspb.Message.setOneofWrapperField(this, 13, proto.aggregator.Execution.oneofGroups_[0], value);
|
|
4210
|
+
};
|
|
4211
|
+
proto.aggregator.Execution.prototype.clearTime = function() {
|
|
4212
|
+
return this.setTime(void 0);
|
|
4213
|
+
};
|
|
4214
|
+
proto.aggregator.Execution.prototype.hasTime = function() {
|
|
4215
|
+
return jspb.Message.getField(this, 13) != null;
|
|
4216
|
+
};
|
|
3328
4217
|
proto.aggregator.Task.repeatedFields_ = [13, 14];
|
|
3329
4218
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3330
4219
|
proto.aggregator.Task.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -5649,10 +6538,10 @@ var require_avs_pb = __commonJS({
|
|
|
5649
6538
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5650
6539
|
};
|
|
5651
6540
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5652
|
-
proto.aggregator.
|
|
5653
|
-
return proto.aggregator.
|
|
6541
|
+
proto.aggregator.TriggerReason.prototype.toObject = function(opt_includeInstance) {
|
|
6542
|
+
return proto.aggregator.TriggerReason.toObject(opt_includeInstance, this);
|
|
5654
6543
|
};
|
|
5655
|
-
proto.aggregator.
|
|
6544
|
+
proto.aggregator.TriggerReason.toObject = function(includeInstance, msg) {
|
|
5656
6545
|
var f, obj = {
|
|
5657
6546
|
blockNumber: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
5658
6547
|
logIndex: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
@@ -5666,12 +6555,12 @@ var require_avs_pb = __commonJS({
|
|
|
5666
6555
|
return obj;
|
|
5667
6556
|
};
|
|
5668
6557
|
}
|
|
5669
|
-
proto.aggregator.
|
|
6558
|
+
proto.aggregator.TriggerReason.deserializeBinary = function(bytes) {
|
|
5670
6559
|
var reader = new jspb.BinaryReader(bytes);
|
|
5671
|
-
var msg = new proto.aggregator.
|
|
5672
|
-
return proto.aggregator.
|
|
6560
|
+
var msg = new proto.aggregator.TriggerReason();
|
|
6561
|
+
return proto.aggregator.TriggerReason.deserializeBinaryFromReader(msg, reader);
|
|
5673
6562
|
};
|
|
5674
|
-
proto.aggregator.
|
|
6563
|
+
proto.aggregator.TriggerReason.deserializeBinaryFromReader = function(msg, reader) {
|
|
5675
6564
|
while (reader.nextField()) {
|
|
5676
6565
|
if (reader.isEndGroup()) {
|
|
5677
6566
|
break;
|
|
@@ -5708,7 +6597,7 @@ var require_avs_pb = __commonJS({
|
|
|
5708
6597
|
break;
|
|
5709
6598
|
case 5:
|
|
5710
6599
|
var value = (
|
|
5711
|
-
/** @type {!proto.aggregator.
|
|
6600
|
+
/** @type {!proto.aggregator.TriggerReason.TriggerType} */
|
|
5712
6601
|
reader.readEnum()
|
|
5713
6602
|
);
|
|
5714
6603
|
msg.setType(value);
|
|
@@ -5720,12 +6609,12 @@ var require_avs_pb = __commonJS({
|
|
|
5720
6609
|
}
|
|
5721
6610
|
return msg;
|
|
5722
6611
|
};
|
|
5723
|
-
proto.aggregator.
|
|
6612
|
+
proto.aggregator.TriggerReason.prototype.serializeBinary = function() {
|
|
5724
6613
|
var writer = new jspb.BinaryWriter();
|
|
5725
|
-
proto.aggregator.
|
|
6614
|
+
proto.aggregator.TriggerReason.serializeBinaryToWriter(this, writer);
|
|
5726
6615
|
return writer.getResultBuffer();
|
|
5727
6616
|
};
|
|
5728
|
-
proto.aggregator.
|
|
6617
|
+
proto.aggregator.TriggerReason.serializeBinaryToWriter = function(message, writer) {
|
|
5729
6618
|
var f = void 0;
|
|
5730
6619
|
f = message.getBlockNumber();
|
|
5731
6620
|
if (f !== 0) {
|
|
@@ -5763,7 +6652,7 @@ var require_avs_pb = __commonJS({
|
|
|
5763
6652
|
);
|
|
5764
6653
|
}
|
|
5765
6654
|
};
|
|
5766
|
-
proto.aggregator.
|
|
6655
|
+
proto.aggregator.TriggerReason.TriggerType = {
|
|
5767
6656
|
UNSET: 0,
|
|
5768
6657
|
MANUAL: 2,
|
|
5769
6658
|
FIXEDTIME: 3,
|
|
@@ -5771,49 +6660,49 @@ var require_avs_pb = __commonJS({
|
|
|
5771
6660
|
BLOCK: 5,
|
|
5772
6661
|
EVENT: 6
|
|
5773
6662
|
};
|
|
5774
|
-
proto.aggregator.
|
|
6663
|
+
proto.aggregator.TriggerReason.prototype.getBlockNumber = function() {
|
|
5775
6664
|
return (
|
|
5776
6665
|
/** @type {number} */
|
|
5777
6666
|
jspb.Message.getFieldWithDefault(this, 1, 0)
|
|
5778
6667
|
);
|
|
5779
6668
|
};
|
|
5780
|
-
proto.aggregator.
|
|
6669
|
+
proto.aggregator.TriggerReason.prototype.setBlockNumber = function(value) {
|
|
5781
6670
|
return jspb.Message.setProto3IntField(this, 1, value);
|
|
5782
6671
|
};
|
|
5783
|
-
proto.aggregator.
|
|
6672
|
+
proto.aggregator.TriggerReason.prototype.getLogIndex = function() {
|
|
5784
6673
|
return (
|
|
5785
6674
|
/** @type {number} */
|
|
5786
6675
|
jspb.Message.getFieldWithDefault(this, 2, 0)
|
|
5787
6676
|
);
|
|
5788
6677
|
};
|
|
5789
|
-
proto.aggregator.
|
|
6678
|
+
proto.aggregator.TriggerReason.prototype.setLogIndex = function(value) {
|
|
5790
6679
|
return jspb.Message.setProto3IntField(this, 2, value);
|
|
5791
6680
|
};
|
|
5792
|
-
proto.aggregator.
|
|
6681
|
+
proto.aggregator.TriggerReason.prototype.getTxHash = function() {
|
|
5793
6682
|
return (
|
|
5794
6683
|
/** @type {string} */
|
|
5795
6684
|
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
5796
6685
|
);
|
|
5797
6686
|
};
|
|
5798
|
-
proto.aggregator.
|
|
6687
|
+
proto.aggregator.TriggerReason.prototype.setTxHash = function(value) {
|
|
5799
6688
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
5800
6689
|
};
|
|
5801
|
-
proto.aggregator.
|
|
6690
|
+
proto.aggregator.TriggerReason.prototype.getEpoch = function() {
|
|
5802
6691
|
return (
|
|
5803
6692
|
/** @type {number} */
|
|
5804
6693
|
jspb.Message.getFieldWithDefault(this, 4, 0)
|
|
5805
6694
|
);
|
|
5806
6695
|
};
|
|
5807
|
-
proto.aggregator.
|
|
6696
|
+
proto.aggregator.TriggerReason.prototype.setEpoch = function(value) {
|
|
5808
6697
|
return jspb.Message.setProto3IntField(this, 4, value);
|
|
5809
6698
|
};
|
|
5810
|
-
proto.aggregator.
|
|
6699
|
+
proto.aggregator.TriggerReason.prototype.getType = function() {
|
|
5811
6700
|
return (
|
|
5812
|
-
/** @type {!proto.aggregator.
|
|
6701
|
+
/** @type {!proto.aggregator.TriggerReason.TriggerType} */
|
|
5813
6702
|
jspb.Message.getFieldWithDefault(this, 5, 0)
|
|
5814
6703
|
);
|
|
5815
6704
|
};
|
|
5816
|
-
proto.aggregator.
|
|
6705
|
+
proto.aggregator.TriggerReason.prototype.setType = function(value) {
|
|
5817
6706
|
return jspb.Message.setProto3EnumField(this, 5, value);
|
|
5818
6707
|
};
|
|
5819
6708
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -6143,7 +7032,7 @@ var require_avs_pb = __commonJS({
|
|
|
6143
7032
|
proto.aggregator.UserTriggerTaskReq.toObject = function(includeInstance, msg) {
|
|
6144
7033
|
var f, obj = {
|
|
6145
7034
|
taskId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6146
|
-
|
|
7035
|
+
reason: (f = msg.getReason()) && proto.aggregator.TriggerReason.toObject(includeInstance, f),
|
|
6147
7036
|
isBlocking: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
6148
7037
|
};
|
|
6149
7038
|
if (includeInstance) {
|
|
@@ -6172,9 +7061,9 @@ var require_avs_pb = __commonJS({
|
|
|
6172
7061
|
msg.setTaskId(value);
|
|
6173
7062
|
break;
|
|
6174
7063
|
case 2:
|
|
6175
|
-
var value = new proto.aggregator.
|
|
6176
|
-
reader.readMessage(value, proto.aggregator.
|
|
6177
|
-
msg.
|
|
7064
|
+
var value = new proto.aggregator.TriggerReason();
|
|
7065
|
+
reader.readMessage(value, proto.aggregator.TriggerReason.deserializeBinaryFromReader);
|
|
7066
|
+
msg.setReason(value);
|
|
6178
7067
|
break;
|
|
6179
7068
|
case 3:
|
|
6180
7069
|
var value = (
|
|
@@ -6204,12 +7093,12 @@ var require_avs_pb = __commonJS({
|
|
|
6204
7093
|
f
|
|
6205
7094
|
);
|
|
6206
7095
|
}
|
|
6207
|
-
f = message.
|
|
7096
|
+
f = message.getReason();
|
|
6208
7097
|
if (f != null) {
|
|
6209
7098
|
writer.writeMessage(
|
|
6210
7099
|
2,
|
|
6211
7100
|
f,
|
|
6212
|
-
proto.aggregator.
|
|
7101
|
+
proto.aggregator.TriggerReason.serializeBinaryToWriter
|
|
6213
7102
|
);
|
|
6214
7103
|
}
|
|
6215
7104
|
f = message.getIsBlocking();
|
|
@@ -6229,19 +7118,19 @@ var require_avs_pb = __commonJS({
|
|
|
6229
7118
|
proto.aggregator.UserTriggerTaskReq.prototype.setTaskId = function(value) {
|
|
6230
7119
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6231
7120
|
};
|
|
6232
|
-
proto.aggregator.UserTriggerTaskReq.prototype.
|
|
7121
|
+
proto.aggregator.UserTriggerTaskReq.prototype.getReason = function() {
|
|
6233
7122
|
return (
|
|
6234
|
-
/** @type{?proto.aggregator.
|
|
6235
|
-
jspb.Message.getWrapperField(this, proto.aggregator.
|
|
7123
|
+
/** @type{?proto.aggregator.TriggerReason} */
|
|
7124
|
+
jspb.Message.getWrapperField(this, proto.aggregator.TriggerReason, 2)
|
|
6236
7125
|
);
|
|
6237
7126
|
};
|
|
6238
|
-
proto.aggregator.UserTriggerTaskReq.prototype.
|
|
7127
|
+
proto.aggregator.UserTriggerTaskReq.prototype.setReason = function(value) {
|
|
6239
7128
|
return jspb.Message.setWrapperField(this, 2, value);
|
|
6240
7129
|
};
|
|
6241
|
-
proto.aggregator.UserTriggerTaskReq.prototype.
|
|
6242
|
-
return this.
|
|
7130
|
+
proto.aggregator.UserTriggerTaskReq.prototype.clearReason = function() {
|
|
7131
|
+
return this.setReason(void 0);
|
|
6243
7132
|
};
|
|
6244
|
-
proto.aggregator.UserTriggerTaskReq.prototype.
|
|
7133
|
+
proto.aggregator.UserTriggerTaskReq.prototype.hasReason = function() {
|
|
6245
7134
|
return jspb.Message.getField(this, 2) != null;
|
|
6246
7135
|
};
|
|
6247
7136
|
proto.aggregator.UserTriggerTaskReq.prototype.getIsBlocking = function() {
|
|
@@ -6897,233 +7786,233 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
6897
7786
|
"../../grpc_codegen/avs_grpc_pb.js"(exports) {
|
|
6898
7787
|
"use strict";
|
|
6899
7788
|
var grpc = __require("@grpc/grpc-js");
|
|
6900
|
-
var
|
|
7789
|
+
var avs_pb22 = require_avs_pb();
|
|
6901
7790
|
var google_protobuf_wrappers_pb = __require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
6902
7791
|
var google_protobuf_timestamp_pb = __require("google-protobuf/google/protobuf/timestamp_pb.js");
|
|
6903
7792
|
function serialize_aggregator_CreateOrUpdateSecretReq(arg) {
|
|
6904
|
-
if (!(arg instanceof
|
|
7793
|
+
if (!(arg instanceof avs_pb22.CreateOrUpdateSecretReq)) {
|
|
6905
7794
|
throw new Error("Expected argument of type aggregator.CreateOrUpdateSecretReq");
|
|
6906
7795
|
}
|
|
6907
7796
|
return Buffer.from(arg.serializeBinary());
|
|
6908
7797
|
}
|
|
6909
7798
|
function deserialize_aggregator_CreateOrUpdateSecretReq(buffer_arg) {
|
|
6910
|
-
return
|
|
7799
|
+
return avs_pb22.CreateOrUpdateSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6911
7800
|
}
|
|
6912
7801
|
function serialize_aggregator_CreateTaskReq(arg) {
|
|
6913
|
-
if (!(arg instanceof
|
|
7802
|
+
if (!(arg instanceof avs_pb22.CreateTaskReq)) {
|
|
6914
7803
|
throw new Error("Expected argument of type aggregator.CreateTaskReq");
|
|
6915
7804
|
}
|
|
6916
7805
|
return Buffer.from(arg.serializeBinary());
|
|
6917
7806
|
}
|
|
6918
7807
|
function deserialize_aggregator_CreateTaskReq(buffer_arg) {
|
|
6919
|
-
return
|
|
7808
|
+
return avs_pb22.CreateTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6920
7809
|
}
|
|
6921
7810
|
function serialize_aggregator_CreateTaskResp(arg) {
|
|
6922
|
-
if (!(arg instanceof
|
|
7811
|
+
if (!(arg instanceof avs_pb22.CreateTaskResp)) {
|
|
6923
7812
|
throw new Error("Expected argument of type aggregator.CreateTaskResp");
|
|
6924
7813
|
}
|
|
6925
7814
|
return Buffer.from(arg.serializeBinary());
|
|
6926
7815
|
}
|
|
6927
7816
|
function deserialize_aggregator_CreateTaskResp(buffer_arg) {
|
|
6928
|
-
return
|
|
7817
|
+
return avs_pb22.CreateTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6929
7818
|
}
|
|
6930
7819
|
function serialize_aggregator_DeleteSecretReq(arg) {
|
|
6931
|
-
if (!(arg instanceof
|
|
7820
|
+
if (!(arg instanceof avs_pb22.DeleteSecretReq)) {
|
|
6932
7821
|
throw new Error("Expected argument of type aggregator.DeleteSecretReq");
|
|
6933
7822
|
}
|
|
6934
7823
|
return Buffer.from(arg.serializeBinary());
|
|
6935
7824
|
}
|
|
6936
7825
|
function deserialize_aggregator_DeleteSecretReq(buffer_arg) {
|
|
6937
|
-
return
|
|
7826
|
+
return avs_pb22.DeleteSecretReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6938
7827
|
}
|
|
6939
7828
|
function serialize_aggregator_Execution(arg) {
|
|
6940
|
-
if (!(arg instanceof
|
|
7829
|
+
if (!(arg instanceof avs_pb22.Execution)) {
|
|
6941
7830
|
throw new Error("Expected argument of type aggregator.Execution");
|
|
6942
7831
|
}
|
|
6943
7832
|
return Buffer.from(arg.serializeBinary());
|
|
6944
7833
|
}
|
|
6945
7834
|
function deserialize_aggregator_Execution(buffer_arg) {
|
|
6946
|
-
return
|
|
7835
|
+
return avs_pb22.Execution.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6947
7836
|
}
|
|
6948
7837
|
function serialize_aggregator_ExecutionReq(arg) {
|
|
6949
|
-
if (!(arg instanceof
|
|
7838
|
+
if (!(arg instanceof avs_pb22.ExecutionReq)) {
|
|
6950
7839
|
throw new Error("Expected argument of type aggregator.ExecutionReq");
|
|
6951
7840
|
}
|
|
6952
7841
|
return Buffer.from(arg.serializeBinary());
|
|
6953
7842
|
}
|
|
6954
7843
|
function deserialize_aggregator_ExecutionReq(buffer_arg) {
|
|
6955
|
-
return
|
|
7844
|
+
return avs_pb22.ExecutionReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6956
7845
|
}
|
|
6957
7846
|
function serialize_aggregator_ExecutionStatusResp(arg) {
|
|
6958
|
-
if (!(arg instanceof
|
|
7847
|
+
if (!(arg instanceof avs_pb22.ExecutionStatusResp)) {
|
|
6959
7848
|
throw new Error("Expected argument of type aggregator.ExecutionStatusResp");
|
|
6960
7849
|
}
|
|
6961
7850
|
return Buffer.from(arg.serializeBinary());
|
|
6962
7851
|
}
|
|
6963
7852
|
function deserialize_aggregator_ExecutionStatusResp(buffer_arg) {
|
|
6964
|
-
return
|
|
7853
|
+
return avs_pb22.ExecutionStatusResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6965
7854
|
}
|
|
6966
7855
|
function serialize_aggregator_GetKeyReq(arg) {
|
|
6967
|
-
if (!(arg instanceof
|
|
7856
|
+
if (!(arg instanceof avs_pb22.GetKeyReq)) {
|
|
6968
7857
|
throw new Error("Expected argument of type aggregator.GetKeyReq");
|
|
6969
7858
|
}
|
|
6970
7859
|
return Buffer.from(arg.serializeBinary());
|
|
6971
7860
|
}
|
|
6972
7861
|
function deserialize_aggregator_GetKeyReq(buffer_arg) {
|
|
6973
|
-
return
|
|
7862
|
+
return avs_pb22.GetKeyReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6974
7863
|
}
|
|
6975
7864
|
function serialize_aggregator_GetWalletReq(arg) {
|
|
6976
|
-
if (!(arg instanceof
|
|
7865
|
+
if (!(arg instanceof avs_pb22.GetWalletReq)) {
|
|
6977
7866
|
throw new Error("Expected argument of type aggregator.GetWalletReq");
|
|
6978
7867
|
}
|
|
6979
7868
|
return Buffer.from(arg.serializeBinary());
|
|
6980
7869
|
}
|
|
6981
7870
|
function deserialize_aggregator_GetWalletReq(buffer_arg) {
|
|
6982
|
-
return
|
|
7871
|
+
return avs_pb22.GetWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6983
7872
|
}
|
|
6984
7873
|
function serialize_aggregator_GetWalletResp(arg) {
|
|
6985
|
-
if (!(arg instanceof
|
|
7874
|
+
if (!(arg instanceof avs_pb22.GetWalletResp)) {
|
|
6986
7875
|
throw new Error("Expected argument of type aggregator.GetWalletResp");
|
|
6987
7876
|
}
|
|
6988
7877
|
return Buffer.from(arg.serializeBinary());
|
|
6989
7878
|
}
|
|
6990
7879
|
function deserialize_aggregator_GetWalletResp(buffer_arg) {
|
|
6991
|
-
return
|
|
7880
|
+
return avs_pb22.GetWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
6992
7881
|
}
|
|
6993
7882
|
function serialize_aggregator_IdReq(arg) {
|
|
6994
|
-
if (!(arg instanceof
|
|
7883
|
+
if (!(arg instanceof avs_pb22.IdReq)) {
|
|
6995
7884
|
throw new Error("Expected argument of type aggregator.IdReq");
|
|
6996
7885
|
}
|
|
6997
7886
|
return Buffer.from(arg.serializeBinary());
|
|
6998
7887
|
}
|
|
6999
7888
|
function deserialize_aggregator_IdReq(buffer_arg) {
|
|
7000
|
-
return
|
|
7889
|
+
return avs_pb22.IdReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7001
7890
|
}
|
|
7002
7891
|
function serialize_aggregator_KeyResp(arg) {
|
|
7003
|
-
if (!(arg instanceof
|
|
7892
|
+
if (!(arg instanceof avs_pb22.KeyResp)) {
|
|
7004
7893
|
throw new Error("Expected argument of type aggregator.KeyResp");
|
|
7005
7894
|
}
|
|
7006
7895
|
return Buffer.from(arg.serializeBinary());
|
|
7007
7896
|
}
|
|
7008
7897
|
function deserialize_aggregator_KeyResp(buffer_arg) {
|
|
7009
|
-
return
|
|
7898
|
+
return avs_pb22.KeyResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7010
7899
|
}
|
|
7011
7900
|
function serialize_aggregator_ListExecutionsReq(arg) {
|
|
7012
|
-
if (!(arg instanceof
|
|
7901
|
+
if (!(arg instanceof avs_pb22.ListExecutionsReq)) {
|
|
7013
7902
|
throw new Error("Expected argument of type aggregator.ListExecutionsReq");
|
|
7014
7903
|
}
|
|
7015
7904
|
return Buffer.from(arg.serializeBinary());
|
|
7016
7905
|
}
|
|
7017
7906
|
function deserialize_aggregator_ListExecutionsReq(buffer_arg) {
|
|
7018
|
-
return
|
|
7907
|
+
return avs_pb22.ListExecutionsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7019
7908
|
}
|
|
7020
7909
|
function serialize_aggregator_ListExecutionsResp(arg) {
|
|
7021
|
-
if (!(arg instanceof
|
|
7910
|
+
if (!(arg instanceof avs_pb22.ListExecutionsResp)) {
|
|
7022
7911
|
throw new Error("Expected argument of type aggregator.ListExecutionsResp");
|
|
7023
7912
|
}
|
|
7024
7913
|
return Buffer.from(arg.serializeBinary());
|
|
7025
7914
|
}
|
|
7026
7915
|
function deserialize_aggregator_ListExecutionsResp(buffer_arg) {
|
|
7027
|
-
return
|
|
7916
|
+
return avs_pb22.ListExecutionsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7028
7917
|
}
|
|
7029
7918
|
function serialize_aggregator_ListSecretsReq(arg) {
|
|
7030
|
-
if (!(arg instanceof
|
|
7919
|
+
if (!(arg instanceof avs_pb22.ListSecretsReq)) {
|
|
7031
7920
|
throw new Error("Expected argument of type aggregator.ListSecretsReq");
|
|
7032
7921
|
}
|
|
7033
7922
|
return Buffer.from(arg.serializeBinary());
|
|
7034
7923
|
}
|
|
7035
7924
|
function deserialize_aggregator_ListSecretsReq(buffer_arg) {
|
|
7036
|
-
return
|
|
7925
|
+
return avs_pb22.ListSecretsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7037
7926
|
}
|
|
7038
7927
|
function serialize_aggregator_ListSecretsResp(arg) {
|
|
7039
|
-
if (!(arg instanceof
|
|
7928
|
+
if (!(arg instanceof avs_pb22.ListSecretsResp)) {
|
|
7040
7929
|
throw new Error("Expected argument of type aggregator.ListSecretsResp");
|
|
7041
7930
|
}
|
|
7042
7931
|
return Buffer.from(arg.serializeBinary());
|
|
7043
7932
|
}
|
|
7044
7933
|
function deserialize_aggregator_ListSecretsResp(buffer_arg) {
|
|
7045
|
-
return
|
|
7934
|
+
return avs_pb22.ListSecretsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7046
7935
|
}
|
|
7047
7936
|
function serialize_aggregator_ListTasksReq(arg) {
|
|
7048
|
-
if (!(arg instanceof
|
|
7937
|
+
if (!(arg instanceof avs_pb22.ListTasksReq)) {
|
|
7049
7938
|
throw new Error("Expected argument of type aggregator.ListTasksReq");
|
|
7050
7939
|
}
|
|
7051
7940
|
return Buffer.from(arg.serializeBinary());
|
|
7052
7941
|
}
|
|
7053
7942
|
function deserialize_aggregator_ListTasksReq(buffer_arg) {
|
|
7054
|
-
return
|
|
7943
|
+
return avs_pb22.ListTasksReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7055
7944
|
}
|
|
7056
7945
|
function serialize_aggregator_ListTasksResp(arg) {
|
|
7057
|
-
if (!(arg instanceof
|
|
7946
|
+
if (!(arg instanceof avs_pb22.ListTasksResp)) {
|
|
7058
7947
|
throw new Error("Expected argument of type aggregator.ListTasksResp");
|
|
7059
7948
|
}
|
|
7060
7949
|
return Buffer.from(arg.serializeBinary());
|
|
7061
7950
|
}
|
|
7062
7951
|
function deserialize_aggregator_ListTasksResp(buffer_arg) {
|
|
7063
|
-
return
|
|
7952
|
+
return avs_pb22.ListTasksResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7064
7953
|
}
|
|
7065
7954
|
function serialize_aggregator_ListWalletReq(arg) {
|
|
7066
|
-
if (!(arg instanceof
|
|
7955
|
+
if (!(arg instanceof avs_pb22.ListWalletReq)) {
|
|
7067
7956
|
throw new Error("Expected argument of type aggregator.ListWalletReq");
|
|
7068
7957
|
}
|
|
7069
7958
|
return Buffer.from(arg.serializeBinary());
|
|
7070
7959
|
}
|
|
7071
7960
|
function deserialize_aggregator_ListWalletReq(buffer_arg) {
|
|
7072
|
-
return
|
|
7961
|
+
return avs_pb22.ListWalletReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7073
7962
|
}
|
|
7074
7963
|
function serialize_aggregator_ListWalletResp(arg) {
|
|
7075
|
-
if (!(arg instanceof
|
|
7964
|
+
if (!(arg instanceof avs_pb22.ListWalletResp)) {
|
|
7076
7965
|
throw new Error("Expected argument of type aggregator.ListWalletResp");
|
|
7077
7966
|
}
|
|
7078
7967
|
return Buffer.from(arg.serializeBinary());
|
|
7079
7968
|
}
|
|
7080
7969
|
function deserialize_aggregator_ListWalletResp(buffer_arg) {
|
|
7081
|
-
return
|
|
7970
|
+
return avs_pb22.ListWalletResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7082
7971
|
}
|
|
7083
7972
|
function serialize_aggregator_NonceRequest(arg) {
|
|
7084
|
-
if (!(arg instanceof
|
|
7973
|
+
if (!(arg instanceof avs_pb22.NonceRequest)) {
|
|
7085
7974
|
throw new Error("Expected argument of type aggregator.NonceRequest");
|
|
7086
7975
|
}
|
|
7087
7976
|
return Buffer.from(arg.serializeBinary());
|
|
7088
7977
|
}
|
|
7089
7978
|
function deserialize_aggregator_NonceRequest(buffer_arg) {
|
|
7090
|
-
return
|
|
7979
|
+
return avs_pb22.NonceRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7091
7980
|
}
|
|
7092
7981
|
function serialize_aggregator_NonceResp(arg) {
|
|
7093
|
-
if (!(arg instanceof
|
|
7982
|
+
if (!(arg instanceof avs_pb22.NonceResp)) {
|
|
7094
7983
|
throw new Error("Expected argument of type aggregator.NonceResp");
|
|
7095
7984
|
}
|
|
7096
7985
|
return Buffer.from(arg.serializeBinary());
|
|
7097
7986
|
}
|
|
7098
7987
|
function deserialize_aggregator_NonceResp(buffer_arg) {
|
|
7099
|
-
return
|
|
7988
|
+
return avs_pb22.NonceResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7100
7989
|
}
|
|
7101
7990
|
function serialize_aggregator_Task(arg) {
|
|
7102
|
-
if (!(arg instanceof
|
|
7991
|
+
if (!(arg instanceof avs_pb22.Task)) {
|
|
7103
7992
|
throw new Error("Expected argument of type aggregator.Task");
|
|
7104
7993
|
}
|
|
7105
7994
|
return Buffer.from(arg.serializeBinary());
|
|
7106
7995
|
}
|
|
7107
7996
|
function deserialize_aggregator_Task(buffer_arg) {
|
|
7108
|
-
return
|
|
7997
|
+
return avs_pb22.Task.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7109
7998
|
}
|
|
7110
7999
|
function serialize_aggregator_UserTriggerTaskReq(arg) {
|
|
7111
|
-
if (!(arg instanceof
|
|
8000
|
+
if (!(arg instanceof avs_pb22.UserTriggerTaskReq)) {
|
|
7112
8001
|
throw new Error("Expected argument of type aggregator.UserTriggerTaskReq");
|
|
7113
8002
|
}
|
|
7114
8003
|
return Buffer.from(arg.serializeBinary());
|
|
7115
8004
|
}
|
|
7116
8005
|
function deserialize_aggregator_UserTriggerTaskReq(buffer_arg) {
|
|
7117
|
-
return
|
|
8006
|
+
return avs_pb22.UserTriggerTaskReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7118
8007
|
}
|
|
7119
8008
|
function serialize_aggregator_UserTriggerTaskResp(arg) {
|
|
7120
|
-
if (!(arg instanceof
|
|
8009
|
+
if (!(arg instanceof avs_pb22.UserTriggerTaskResp)) {
|
|
7121
8010
|
throw new Error("Expected argument of type aggregator.UserTriggerTaskResp");
|
|
7122
8011
|
}
|
|
7123
8012
|
return Buffer.from(arg.serializeBinary());
|
|
7124
8013
|
}
|
|
7125
8014
|
function deserialize_aggregator_UserTriggerTaskResp(buffer_arg) {
|
|
7126
|
-
return
|
|
8015
|
+
return avs_pb22.UserTriggerTaskResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
7127
8016
|
}
|
|
7128
8017
|
function serialize_google_protobuf_BoolValue(arg) {
|
|
7129
8018
|
if (!(arg instanceof google_protobuf_wrappers_pb.BoolValue)) {
|
|
@@ -7140,8 +8029,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7140
8029
|
path: "/aggregator.Aggregator/GetKey",
|
|
7141
8030
|
requestStream: false,
|
|
7142
8031
|
responseStream: false,
|
|
7143
|
-
requestType:
|
|
7144
|
-
responseType:
|
|
8032
|
+
requestType: avs_pb22.GetKeyReq,
|
|
8033
|
+
responseType: avs_pb22.KeyResp,
|
|
7145
8034
|
requestSerialize: serialize_aggregator_GetKeyReq,
|
|
7146
8035
|
requestDeserialize: deserialize_aggregator_GetKeyReq,
|
|
7147
8036
|
responseSerialize: serialize_aggregator_KeyResp,
|
|
@@ -7152,8 +8041,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7152
8041
|
path: "/aggregator.Aggregator/GetNonce",
|
|
7153
8042
|
requestStream: false,
|
|
7154
8043
|
responseStream: false,
|
|
7155
|
-
requestType:
|
|
7156
|
-
responseType:
|
|
8044
|
+
requestType: avs_pb22.NonceRequest,
|
|
8045
|
+
responseType: avs_pb22.NonceResp,
|
|
7157
8046
|
requestSerialize: serialize_aggregator_NonceRequest,
|
|
7158
8047
|
requestDeserialize: deserialize_aggregator_NonceRequest,
|
|
7159
8048
|
responseSerialize: serialize_aggregator_NonceResp,
|
|
@@ -7163,8 +8052,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7163
8052
|
path: "/aggregator.Aggregator/GetWallet",
|
|
7164
8053
|
requestStream: false,
|
|
7165
8054
|
responseStream: false,
|
|
7166
|
-
requestType:
|
|
7167
|
-
responseType:
|
|
8055
|
+
requestType: avs_pb22.GetWalletReq,
|
|
8056
|
+
responseType: avs_pb22.GetWalletResp,
|
|
7168
8057
|
requestSerialize: serialize_aggregator_GetWalletReq,
|
|
7169
8058
|
requestDeserialize: deserialize_aggregator_GetWalletReq,
|
|
7170
8059
|
responseSerialize: serialize_aggregator_GetWalletResp,
|
|
@@ -7174,8 +8063,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7174
8063
|
path: "/aggregator.Aggregator/ListWallets",
|
|
7175
8064
|
requestStream: false,
|
|
7176
8065
|
responseStream: false,
|
|
7177
|
-
requestType:
|
|
7178
|
-
responseType:
|
|
8066
|
+
requestType: avs_pb22.ListWalletReq,
|
|
8067
|
+
responseType: avs_pb22.ListWalletResp,
|
|
7179
8068
|
requestSerialize: serialize_aggregator_ListWalletReq,
|
|
7180
8069
|
requestDeserialize: deserialize_aggregator_ListWalletReq,
|
|
7181
8070
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
@@ -7186,8 +8075,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7186
8075
|
path: "/aggregator.Aggregator/CreateTask",
|
|
7187
8076
|
requestStream: false,
|
|
7188
8077
|
responseStream: false,
|
|
7189
|
-
requestType:
|
|
7190
|
-
responseType:
|
|
8078
|
+
requestType: avs_pb22.CreateTaskReq,
|
|
8079
|
+
responseType: avs_pb22.CreateTaskResp,
|
|
7191
8080
|
requestSerialize: serialize_aggregator_CreateTaskReq,
|
|
7192
8081
|
requestDeserialize: deserialize_aggregator_CreateTaskReq,
|
|
7193
8082
|
responseSerialize: serialize_aggregator_CreateTaskResp,
|
|
@@ -7197,8 +8086,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7197
8086
|
path: "/aggregator.Aggregator/ListTasks",
|
|
7198
8087
|
requestStream: false,
|
|
7199
8088
|
responseStream: false,
|
|
7200
|
-
requestType:
|
|
7201
|
-
responseType:
|
|
8089
|
+
requestType: avs_pb22.ListTasksReq,
|
|
8090
|
+
responseType: avs_pb22.ListTasksResp,
|
|
7202
8091
|
requestSerialize: serialize_aggregator_ListTasksReq,
|
|
7203
8092
|
requestDeserialize: deserialize_aggregator_ListTasksReq,
|
|
7204
8093
|
responseSerialize: serialize_aggregator_ListTasksResp,
|
|
@@ -7208,8 +8097,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7208
8097
|
path: "/aggregator.Aggregator/GetTask",
|
|
7209
8098
|
requestStream: false,
|
|
7210
8099
|
responseStream: false,
|
|
7211
|
-
requestType:
|
|
7212
|
-
responseType:
|
|
8100
|
+
requestType: avs_pb22.IdReq,
|
|
8101
|
+
responseType: avs_pb22.Task,
|
|
7213
8102
|
requestSerialize: serialize_aggregator_IdReq,
|
|
7214
8103
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
7215
8104
|
responseSerialize: serialize_aggregator_Task,
|
|
@@ -7219,8 +8108,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7219
8108
|
path: "/aggregator.Aggregator/ListExecutions",
|
|
7220
8109
|
requestStream: false,
|
|
7221
8110
|
responseStream: false,
|
|
7222
|
-
requestType:
|
|
7223
|
-
responseType:
|
|
8111
|
+
requestType: avs_pb22.ListExecutionsReq,
|
|
8112
|
+
responseType: avs_pb22.ListExecutionsResp,
|
|
7224
8113
|
requestSerialize: serialize_aggregator_ListExecutionsReq,
|
|
7225
8114
|
requestDeserialize: deserialize_aggregator_ListExecutionsReq,
|
|
7226
8115
|
responseSerialize: serialize_aggregator_ListExecutionsResp,
|
|
@@ -7230,8 +8119,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7230
8119
|
path: "/aggregator.Aggregator/GetExecution",
|
|
7231
8120
|
requestStream: false,
|
|
7232
8121
|
responseStream: false,
|
|
7233
|
-
requestType:
|
|
7234
|
-
responseType:
|
|
8122
|
+
requestType: avs_pb22.ExecutionReq,
|
|
8123
|
+
responseType: avs_pb22.Execution,
|
|
7235
8124
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
7236
8125
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
7237
8126
|
responseSerialize: serialize_aggregator_Execution,
|
|
@@ -7241,8 +8130,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7241
8130
|
path: "/aggregator.Aggregator/GetExecutionStatus",
|
|
7242
8131
|
requestStream: false,
|
|
7243
8132
|
responseStream: false,
|
|
7244
|
-
requestType:
|
|
7245
|
-
responseType:
|
|
8133
|
+
requestType: avs_pb22.ExecutionReq,
|
|
8134
|
+
responseType: avs_pb22.ExecutionStatusResp,
|
|
7246
8135
|
requestSerialize: serialize_aggregator_ExecutionReq,
|
|
7247
8136
|
requestDeserialize: deserialize_aggregator_ExecutionReq,
|
|
7248
8137
|
responseSerialize: serialize_aggregator_ExecutionStatusResp,
|
|
@@ -7252,7 +8141,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7252
8141
|
path: "/aggregator.Aggregator/CancelTask",
|
|
7253
8142
|
requestStream: false,
|
|
7254
8143
|
responseStream: false,
|
|
7255
|
-
requestType:
|
|
8144
|
+
requestType: avs_pb22.IdReq,
|
|
7256
8145
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
7257
8146
|
requestSerialize: serialize_aggregator_IdReq,
|
|
7258
8147
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -7263,7 +8152,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7263
8152
|
path: "/aggregator.Aggregator/DeleteTask",
|
|
7264
8153
|
requestStream: false,
|
|
7265
8154
|
responseStream: false,
|
|
7266
|
-
requestType:
|
|
8155
|
+
requestType: avs_pb22.IdReq,
|
|
7267
8156
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
7268
8157
|
requestSerialize: serialize_aggregator_IdReq,
|
|
7269
8158
|
requestDeserialize: deserialize_aggregator_IdReq,
|
|
@@ -7274,8 +8163,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7274
8163
|
path: "/aggregator.Aggregator/TriggerTask",
|
|
7275
8164
|
requestStream: false,
|
|
7276
8165
|
responseStream: false,
|
|
7277
|
-
requestType:
|
|
7278
|
-
responseType:
|
|
8166
|
+
requestType: avs_pb22.UserTriggerTaskReq,
|
|
8167
|
+
responseType: avs_pb22.UserTriggerTaskResp,
|
|
7279
8168
|
requestSerialize: serialize_aggregator_UserTriggerTaskReq,
|
|
7280
8169
|
requestDeserialize: deserialize_aggregator_UserTriggerTaskReq,
|
|
7281
8170
|
responseSerialize: serialize_aggregator_UserTriggerTaskResp,
|
|
@@ -7288,7 +8177,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7288
8177
|
path: "/aggregator.Aggregator/CreateSecret",
|
|
7289
8178
|
requestStream: false,
|
|
7290
8179
|
responseStream: false,
|
|
7291
|
-
requestType:
|
|
8180
|
+
requestType: avs_pb22.CreateOrUpdateSecretReq,
|
|
7292
8181
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
7293
8182
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
7294
8183
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -7299,7 +8188,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7299
8188
|
path: "/aggregator.Aggregator/DeleteSecret",
|
|
7300
8189
|
requestStream: false,
|
|
7301
8190
|
responseStream: false,
|
|
7302
|
-
requestType:
|
|
8191
|
+
requestType: avs_pb22.DeleteSecretReq,
|
|
7303
8192
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
7304
8193
|
requestSerialize: serialize_aggregator_DeleteSecretReq,
|
|
7305
8194
|
requestDeserialize: deserialize_aggregator_DeleteSecretReq,
|
|
@@ -7312,8 +8201,8 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7312
8201
|
path: "/aggregator.Aggregator/ListSecrets",
|
|
7313
8202
|
requestStream: false,
|
|
7314
8203
|
responseStream: false,
|
|
7315
|
-
requestType:
|
|
7316
|
-
responseType:
|
|
8204
|
+
requestType: avs_pb22.ListSecretsReq,
|
|
8205
|
+
responseType: avs_pb22.ListSecretsResp,
|
|
7317
8206
|
requestSerialize: serialize_aggregator_ListSecretsReq,
|
|
7318
8207
|
requestDeserialize: deserialize_aggregator_ListSecretsReq,
|
|
7319
8208
|
responseSerialize: serialize_aggregator_ListSecretsResp,
|
|
@@ -7325,7 +8214,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7325
8214
|
path: "/aggregator.Aggregator/UpdateSecret",
|
|
7326
8215
|
requestStream: false,
|
|
7327
8216
|
responseStream: false,
|
|
7328
|
-
requestType:
|
|
8217
|
+
requestType: avs_pb22.CreateOrUpdateSecretReq,
|
|
7329
8218
|
responseType: google_protobuf_wrappers_pb.BoolValue,
|
|
7330
8219
|
requestSerialize: serialize_aggregator_CreateOrUpdateSecretReq,
|
|
7331
8220
|
requestDeserialize: deserialize_aggregator_CreateOrUpdateSecretReq,
|
|
@@ -7333,13 +8222,13 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
7333
8222
|
responseDeserialize: deserialize_google_protobuf_BoolValue
|
|
7334
8223
|
}
|
|
7335
8224
|
};
|
|
7336
|
-
exports.AggregatorClient = grpc.makeGenericClientConstructor(AggregatorService);
|
|
8225
|
+
exports.AggregatorClient = grpc.makeGenericClientConstructor(AggregatorService, "Aggregator");
|
|
7337
8226
|
}
|
|
7338
8227
|
});
|
|
7339
8228
|
|
|
7340
8229
|
// src/index.ts
|
|
7341
8230
|
var import_avs_grpc_pb = __toESM(require_avs_grpc_pb());
|
|
7342
|
-
var
|
|
8231
|
+
var avs_pb21 = __toESM(require_avs_pb());
|
|
7343
8232
|
import _5 from "lodash";
|
|
7344
8233
|
import { credentials, Metadata } from "@grpc/grpc-js";
|
|
7345
8234
|
import { Timestamp } from "google-protobuf/google/protobuf/timestamp_pb";
|
|
@@ -8046,20 +8935,20 @@ var workflow_default = Workflow;
|
|
|
8046
8935
|
// src/models/execution.ts
|
|
8047
8936
|
var avs_pb19 = __toESM(require_avs_pb());
|
|
8048
8937
|
|
|
8049
|
-
// src/models/trigger/
|
|
8938
|
+
// src/models/trigger/reason.ts
|
|
8050
8939
|
var avs_pb17 = __toESM(require_avs_pb());
|
|
8051
8940
|
var convertTriggerType = (grpcType) => {
|
|
8052
8941
|
const conversionMap = {
|
|
8053
|
-
[avs_pb17.
|
|
8054
|
-
[avs_pb17.
|
|
8055
|
-
[avs_pb17.
|
|
8056
|
-
[avs_pb17.
|
|
8057
|
-
[avs_pb17.
|
|
8058
|
-
[avs_pb17.
|
|
8942
|
+
[avs_pb17.TriggerReason.TriggerType.FIXEDTIME]: "fixed_time" /* FixedTime */,
|
|
8943
|
+
[avs_pb17.TriggerReason.TriggerType.CRON]: "cron" /* Cron */,
|
|
8944
|
+
[avs_pb17.TriggerReason.TriggerType.BLOCK]: "block" /* Block */,
|
|
8945
|
+
[avs_pb17.TriggerReason.TriggerType.EVENT]: "event" /* Event */,
|
|
8946
|
+
[avs_pb17.TriggerReason.TriggerType.MANUAL]: "manual" /* Manual */,
|
|
8947
|
+
[avs_pb17.TriggerReason.TriggerType.UNSET]: "unset" /* Unset */
|
|
8059
8948
|
};
|
|
8060
8949
|
return conversionMap[grpcType];
|
|
8061
8950
|
};
|
|
8062
|
-
var
|
|
8951
|
+
var TriggerReason2 = class _TriggerReason {
|
|
8063
8952
|
constructor(props) {
|
|
8064
8953
|
this.type = props.type;
|
|
8065
8954
|
switch (props.type) {
|
|
@@ -8083,7 +8972,7 @@ var TriggerMetadata2 = class _TriggerMetadata {
|
|
|
8083
8972
|
if (!data) {
|
|
8084
8973
|
return void 0;
|
|
8085
8974
|
}
|
|
8086
|
-
return new
|
|
8975
|
+
return new _TriggerReason({
|
|
8087
8976
|
type: convertTriggerType(data.getType()),
|
|
8088
8977
|
blockNumber: data.getBlockNumber(),
|
|
8089
8978
|
epoch: data.getEpoch(),
|
|
@@ -8092,28 +8981,28 @@ var TriggerMetadata2 = class _TriggerMetadata {
|
|
|
8092
8981
|
});
|
|
8093
8982
|
}
|
|
8094
8983
|
toRequest() {
|
|
8095
|
-
const request = new avs_pb17.
|
|
8984
|
+
const request = new avs_pb17.TriggerReason();
|
|
8096
8985
|
switch (this.type) {
|
|
8097
8986
|
case "fixed_time" /* FixedTime */:
|
|
8098
|
-
request.setType(avs_pb17.
|
|
8987
|
+
request.setType(avs_pb17.TriggerReason.TriggerType.FIXEDTIME);
|
|
8099
8988
|
if (this.epoch) {
|
|
8100
8989
|
request.setEpoch(this.epoch);
|
|
8101
8990
|
}
|
|
8102
8991
|
break;
|
|
8103
8992
|
case "cron" /* Cron */:
|
|
8104
|
-
request.setType(avs_pb17.
|
|
8993
|
+
request.setType(avs_pb17.TriggerReason.TriggerType.CRON);
|
|
8105
8994
|
if (this.epoch) {
|
|
8106
8995
|
request.setEpoch(this.epoch);
|
|
8107
8996
|
}
|
|
8108
8997
|
break;
|
|
8109
8998
|
case "block" /* Block */:
|
|
8110
|
-
request.setType(avs_pb17.
|
|
8999
|
+
request.setType(avs_pb17.TriggerReason.TriggerType.BLOCK);
|
|
8111
9000
|
if (this.blockNumber) {
|
|
8112
9001
|
request.setBlockNumber(this.blockNumber);
|
|
8113
9002
|
}
|
|
8114
9003
|
break;
|
|
8115
9004
|
case "event" /* Event */:
|
|
8116
|
-
request.setType(avs_pb17.
|
|
9005
|
+
request.setType(avs_pb17.TriggerReason.TriggerType.EVENT);
|
|
8117
9006
|
if (this.blockNumber) {
|
|
8118
9007
|
request.setBlockNumber(this.blockNumber);
|
|
8119
9008
|
}
|
|
@@ -8125,10 +9014,10 @@ var TriggerMetadata2 = class _TriggerMetadata {
|
|
|
8125
9014
|
}
|
|
8126
9015
|
break;
|
|
8127
9016
|
case "manual" /* Manual */:
|
|
8128
|
-
request.setType(avs_pb17.
|
|
9017
|
+
request.setType(avs_pb17.TriggerReason.TriggerType.MANUAL);
|
|
8129
9018
|
break;
|
|
8130
9019
|
case "unset" /* Unset */:
|
|
8131
|
-
request.setType(avs_pb17.
|
|
9020
|
+
request.setType(avs_pb17.TriggerReason.TriggerType.UNSET);
|
|
8132
9021
|
break;
|
|
8133
9022
|
default:
|
|
8134
9023
|
throw new Error("Unsupported trigger type");
|
|
@@ -8136,7 +9025,7 @@ var TriggerMetadata2 = class _TriggerMetadata {
|
|
|
8136
9025
|
return request;
|
|
8137
9026
|
}
|
|
8138
9027
|
};
|
|
8139
|
-
var
|
|
9028
|
+
var reason_default = TriggerReason2;
|
|
8140
9029
|
|
|
8141
9030
|
// src/models/step.ts
|
|
8142
9031
|
var avs_pb18 = __toESM(require_avs_pb());
|
|
@@ -8149,6 +9038,7 @@ var Step = class _Step {
|
|
|
8149
9038
|
this.error = props.error;
|
|
8150
9039
|
this.startAt = props.startAt;
|
|
8151
9040
|
this.endAt = props.endAt;
|
|
9041
|
+
this.inputsList = props.inputsList;
|
|
8152
9042
|
}
|
|
8153
9043
|
static fromResponse(step) {
|
|
8154
9044
|
return new _Step({
|
|
@@ -8158,7 +9048,8 @@ var Step = class _Step {
|
|
|
8158
9048
|
log: step.getLog(),
|
|
8159
9049
|
error: step.getError(),
|
|
8160
9050
|
startAt: step.getStartAt(),
|
|
8161
|
-
endAt: step.getEndAt()
|
|
9051
|
+
endAt: step.getEndAt(),
|
|
9052
|
+
inputsList: step.getInputsList()
|
|
8162
9053
|
});
|
|
8163
9054
|
}
|
|
8164
9055
|
toRequest() {
|
|
@@ -8170,6 +9061,7 @@ var Step = class _Step {
|
|
|
8170
9061
|
step.setError(this.error);
|
|
8171
9062
|
step.setStartAt(this.startAt);
|
|
8172
9063
|
step.setEndAt(this.endAt);
|
|
9064
|
+
step.setInputsList(this.inputsList);
|
|
8173
9065
|
return step;
|
|
8174
9066
|
}
|
|
8175
9067
|
};
|
|
@@ -8183,40 +9075,67 @@ var Execution3 = class _Execution {
|
|
|
8183
9075
|
this.endAt = props.endAt;
|
|
8184
9076
|
this.success = props.success;
|
|
8185
9077
|
this.error = props.error;
|
|
8186
|
-
this.triggerMetadata = props.triggerMetadata;
|
|
8187
|
-
this.result = props.result;
|
|
8188
9078
|
this.stepsList = props.stepsList;
|
|
9079
|
+
this.triggerName = props.triggerName;
|
|
9080
|
+
this.triggerReason = props.triggerReason;
|
|
9081
|
+
this.outputData = props.outputData;
|
|
8189
9082
|
}
|
|
8190
9083
|
static fromResponse(execution) {
|
|
9084
|
+
const outputDataType = execution.getOutputDataCase();
|
|
9085
|
+
let outputData;
|
|
9086
|
+
switch (outputDataType) {
|
|
9087
|
+
case avs_pb19.Execution.OutputDataCase.EVM_LOG:
|
|
9088
|
+
outputData = execution.getEvmLog()?.toObject();
|
|
9089
|
+
break;
|
|
9090
|
+
case avs_pb19.Execution.OutputDataCase.TRANSFER_LOG:
|
|
9091
|
+
outputData = execution.getTransferLog()?.toObject();
|
|
9092
|
+
break;
|
|
9093
|
+
case avs_pb19.Execution.OutputDataCase.BLOCK:
|
|
9094
|
+
outputData = execution.getBlock()?.toObject();
|
|
9095
|
+
break;
|
|
9096
|
+
case avs_pb19.Execution.OutputDataCase.TIME:
|
|
9097
|
+
outputData = execution.getTime()?.toObject();
|
|
9098
|
+
break;
|
|
9099
|
+
}
|
|
8191
9100
|
return new _Execution({
|
|
8192
9101
|
id: execution.getId(),
|
|
8193
9102
|
startAt: execution.getStartAt(),
|
|
8194
9103
|
endAt: execution.getEndAt(),
|
|
8195
9104
|
success: execution.getSuccess(),
|
|
8196
9105
|
error: execution.getError(),
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
),
|
|
8200
|
-
|
|
8201
|
-
stepsList: execution.getStepsList().map((step) => step_default.fromResponse(step))
|
|
9106
|
+
triggerName: execution.getTriggerName(),
|
|
9107
|
+
triggerReason: reason_default.fromResponse(execution.getReason()),
|
|
9108
|
+
stepsList: execution.getStepsList().map((step) => step_default.fromResponse(step)),
|
|
9109
|
+
outputData
|
|
8202
9110
|
});
|
|
8203
9111
|
}
|
|
9112
|
+
// Client side does not generate the exeuction, so there’s no toRequest() method
|
|
9113
|
+
};
|
|
9114
|
+
var execution_default = Execution3;
|
|
9115
|
+
|
|
9116
|
+
// src/models/secret.ts
|
|
9117
|
+
var avs_pb20 = __toESM(require_avs_pb());
|
|
9118
|
+
var Secret = class {
|
|
9119
|
+
constructor(props) {
|
|
9120
|
+
this.name = props.name;
|
|
9121
|
+
this.secret = props.secret;
|
|
9122
|
+
this.workflowId = props.workflowId;
|
|
9123
|
+
this.orgId = props.orgId;
|
|
9124
|
+
}
|
|
8204
9125
|
toRequest() {
|
|
8205
|
-
const
|
|
8206
|
-
|
|
8207
|
-
|
|
8208
|
-
|
|
8209
|
-
|
|
8210
|
-
|
|
8211
|
-
|
|
8212
|
-
|
|
8213
|
-
|
|
8214
|
-
|
|
8215
|
-
execution.setResult(this.result);
|
|
8216
|
-
return execution;
|
|
9126
|
+
const request = new avs_pb20.CreateOrUpdateSecretReq();
|
|
9127
|
+
request.setName(this.name);
|
|
9128
|
+
request.setSecret(this.secret);
|
|
9129
|
+
if (this.orgId) {
|
|
9130
|
+
request.setOrgId(this.orgId);
|
|
9131
|
+
}
|
|
9132
|
+
if (this.workflowId) {
|
|
9133
|
+
request.setWorkflowId(this.workflowId);
|
|
9134
|
+
}
|
|
9135
|
+
return request;
|
|
8217
9136
|
}
|
|
8218
9137
|
};
|
|
8219
|
-
var
|
|
9138
|
+
var secret_default = Secret;
|
|
8220
9139
|
|
|
8221
9140
|
// src/index.ts
|
|
8222
9141
|
var BaseClient = class {
|
|
@@ -8261,7 +9180,7 @@ var BaseClient = class {
|
|
|
8261
9180
|
expiredAt,
|
|
8262
9181
|
apiKey
|
|
8263
9182
|
}) {
|
|
8264
|
-
const request = new
|
|
9183
|
+
const request = new avs_pb21.GetKeyReq();
|
|
8265
9184
|
request.setChainId(chainId);
|
|
8266
9185
|
request.setOwner(address);
|
|
8267
9186
|
const issueTs = Timestamp.fromDate(issuedAt);
|
|
@@ -8288,7 +9207,7 @@ var BaseClient = class {
|
|
|
8288
9207
|
expiredAt,
|
|
8289
9208
|
signature
|
|
8290
9209
|
}) {
|
|
8291
|
-
const request = new
|
|
9210
|
+
const request = new avs_pb21.GetKeyReq();
|
|
8292
9211
|
request.setChainId(chainId);
|
|
8293
9212
|
request.setOwner(address);
|
|
8294
9213
|
const issueTs = Timestamp.fromDate(issuedAt);
|
|
@@ -8367,7 +9286,7 @@ var Client = class extends BaseClient {
|
|
|
8367
9286
|
* @returns {Promise<SmartWallet[]>} - The list of SmartWallet objects
|
|
8368
9287
|
*/
|
|
8369
9288
|
async getWallets(options) {
|
|
8370
|
-
const request = new
|
|
9289
|
+
const request = new avs_pb21.ListWalletReq();
|
|
8371
9290
|
const result = await this.sendGrpcRequest("listWallets", request, options);
|
|
8372
9291
|
return result.getItemsList().map((item) => item.toObject());
|
|
8373
9292
|
}
|
|
@@ -8379,7 +9298,7 @@ var Client = class extends BaseClient {
|
|
|
8379
9298
|
* @returns {Promise<SmartWallet>} - The added SmartWallet object
|
|
8380
9299
|
*/
|
|
8381
9300
|
async getWallet({ salt, factoryAddress }, options) {
|
|
8382
|
-
const request = new
|
|
9301
|
+
const request = new avs_pb21.GetWalletReq();
|
|
8383
9302
|
request.setSalt(salt);
|
|
8384
9303
|
if (factoryAddress) {
|
|
8385
9304
|
request.setFactoryAddress(factoryAddress);
|
|
@@ -8421,7 +9340,7 @@ var Client = class extends BaseClient {
|
|
|
8421
9340
|
* @returns {Promise<{ cursor: string; result: Workflow[] }>} - The list of Workflow objects
|
|
8422
9341
|
*/
|
|
8423
9342
|
async getWorkflows(addresses, options) {
|
|
8424
|
-
const request = new
|
|
9343
|
+
const request = new avs_pb21.ListTasksReq();
|
|
8425
9344
|
for (const a of addresses) {
|
|
8426
9345
|
request.addSmartWalletAddress(a);
|
|
8427
9346
|
}
|
|
@@ -8446,7 +9365,7 @@ var Client = class extends BaseClient {
|
|
|
8446
9365
|
* @returns {Promise<{ cursor: string; result: Execution[] }>} - The list of Executions
|
|
8447
9366
|
*/
|
|
8448
9367
|
async getExecutions(workflows, options) {
|
|
8449
|
-
const request = new
|
|
9368
|
+
const request = new avs_pb21.ListExecutionsReq();
|
|
8450
9369
|
request.setTaskIdsList(workflows);
|
|
8451
9370
|
if (options?.cursor && options?.cursor != "") {
|
|
8452
9371
|
request.setCursor(options.cursor);
|
|
@@ -8467,7 +9386,7 @@ var Client = class extends BaseClient {
|
|
|
8467
9386
|
* @returns {Promise<Execution>} - The result execution if it is existed
|
|
8468
9387
|
*/
|
|
8469
9388
|
async getExecution(taskId, executionId, options) {
|
|
8470
|
-
const request = new
|
|
9389
|
+
const request = new avs_pb21.ExecutionReq();
|
|
8471
9390
|
request.setTaskId(taskId);
|
|
8472
9391
|
request.setExecutionId(executionId);
|
|
8473
9392
|
const result = await this.sendGrpcRequest("getExecution", request, options);
|
|
@@ -8484,7 +9403,7 @@ var Client = class extends BaseClient {
|
|
|
8484
9403
|
* @returns {Promise<ExecutionStatus>} - The result execution if it is existed
|
|
8485
9404
|
*/
|
|
8486
9405
|
async getExecutionStatus(taskId, executionId, options) {
|
|
8487
|
-
const request = new
|
|
9406
|
+
const request = new avs_pb21.ExecutionReq();
|
|
8488
9407
|
request.setTaskId(taskId);
|
|
8489
9408
|
request.setExecutionId(executionId);
|
|
8490
9409
|
const result = await this.sendGrpcRequest("getExecutionStatus", request, options);
|
|
@@ -8497,7 +9416,7 @@ var Client = class extends BaseClient {
|
|
|
8497
9416
|
* @returns {Promise<Workflow>} - The Workflow object
|
|
8498
9417
|
*/
|
|
8499
9418
|
async getWorkflow(id, options) {
|
|
8500
|
-
const request = new
|
|
9419
|
+
const request = new avs_pb21.IdReq();
|
|
8501
9420
|
request.setId(id);
|
|
8502
9421
|
const result = await this.sendGrpcRequest(
|
|
8503
9422
|
"getTask",
|
|
@@ -8516,12 +9435,12 @@ var Client = class extends BaseClient {
|
|
|
8516
9435
|
*/
|
|
8517
9436
|
async triggerWorkflow({
|
|
8518
9437
|
id,
|
|
8519
|
-
|
|
9438
|
+
reason,
|
|
8520
9439
|
isBlocking = false
|
|
8521
9440
|
}, options) {
|
|
8522
|
-
const request = new
|
|
9441
|
+
const request = new avs_pb21.UserTriggerTaskReq();
|
|
8523
9442
|
request.setTaskId(id);
|
|
8524
|
-
request.
|
|
9443
|
+
request.setReason(new reason_default(reason).toRequest());
|
|
8525
9444
|
request.setIsBlocking(isBlocking);
|
|
8526
9445
|
const result = await this.sendGrpcRequest("triggerTask", request, options);
|
|
8527
9446
|
return result.toObject();
|
|
@@ -8533,7 +9452,7 @@ var Client = class extends BaseClient {
|
|
|
8533
9452
|
* @returns {Promise<boolean>} - Whether the workflow was successfully canceled
|
|
8534
9453
|
*/
|
|
8535
9454
|
async cancelWorkflow(id, options) {
|
|
8536
|
-
const request = new
|
|
9455
|
+
const request = new avs_pb21.IdReq();
|
|
8537
9456
|
request.setId(id);
|
|
8538
9457
|
const result = await this.sendGrpcRequest(
|
|
8539
9458
|
"cancelTask",
|
|
@@ -8549,7 +9468,7 @@ var Client = class extends BaseClient {
|
|
|
8549
9468
|
* @returns {Promise<boolean>} - Whether the workflow was successfully deleted
|
|
8550
9469
|
*/
|
|
8551
9470
|
async deleteWorkflow(id, options) {
|
|
8552
|
-
const request = new
|
|
9471
|
+
const request = new avs_pb21.IdReq();
|
|
8553
9472
|
request.setId(id);
|
|
8554
9473
|
const result = await this.sendGrpcRequest(
|
|
8555
9474
|
"deleteTask",
|
|
@@ -8559,7 +9478,7 @@ var Client = class extends BaseClient {
|
|
|
8559
9478
|
return result.getValue();
|
|
8560
9479
|
}
|
|
8561
9480
|
async createSecret(name, value, options) {
|
|
8562
|
-
const request = new
|
|
9481
|
+
const request = new avs_pb21.CreateOrUpdateSecretReq();
|
|
8563
9482
|
request.setName(name);
|
|
8564
9483
|
request.setSecret(value);
|
|
8565
9484
|
if (options?.workflowId) {
|
|
@@ -8578,7 +9497,7 @@ var Client = class extends BaseClient {
|
|
|
8578
9497
|
* @returns {Promise<boolean>} - Whether the secret was successfully updated
|
|
8579
9498
|
*/
|
|
8580
9499
|
async updateSecret(name, value, options) {
|
|
8581
|
-
const request = new
|
|
9500
|
+
const request = new avs_pb21.CreateOrUpdateSecretReq();
|
|
8582
9501
|
request.setName(name);
|
|
8583
9502
|
request.setSecret(value);
|
|
8584
9503
|
if (options?.workflowId) {
|
|
@@ -8597,7 +9516,7 @@ var Client = class extends BaseClient {
|
|
|
8597
9516
|
* @returns {Promise<ListSecretResponse[]>} - The list of secrets
|
|
8598
9517
|
*/
|
|
8599
9518
|
async listSecrets(options) {
|
|
8600
|
-
const request = new
|
|
9519
|
+
const request = new avs_pb21.ListSecretsReq();
|
|
8601
9520
|
if (options?.workflowId) {
|
|
8602
9521
|
request.setWorkflowId(options.workflowId);
|
|
8603
9522
|
}
|
|
@@ -8619,7 +9538,7 @@ var Client = class extends BaseClient {
|
|
|
8619
9538
|
* @returns {Promise<boolean>} - Whether the secret was successfully deleted
|
|
8620
9539
|
*/
|
|
8621
9540
|
async deleteSecret(name, options) {
|
|
8622
|
-
const request = new
|
|
9541
|
+
const request = new avs_pb21.DeleteSecretReq();
|
|
8623
9542
|
request.setName(name);
|
|
8624
9543
|
if (options?.workflowId) {
|
|
8625
9544
|
request.setWorkflowId(options.workflowId);
|
|
@@ -8635,6 +9554,7 @@ export {
|
|
|
8635
9554
|
AUTH_KEY_HEADER,
|
|
8636
9555
|
block_default as BlockTrigger,
|
|
8637
9556
|
branch_default as BranchNode,
|
|
9557
|
+
Client,
|
|
8638
9558
|
contractRead_default as ContractReadNode,
|
|
8639
9559
|
contractWrite_default as ContractWriteNode,
|
|
8640
9560
|
cron_default as CronTrigger,
|
|
@@ -8652,12 +9572,12 @@ export {
|
|
|
8652
9572
|
interface_default2 as Node,
|
|
8653
9573
|
factory_default2 as NodeFactory,
|
|
8654
9574
|
restApi_default as RestAPINode,
|
|
9575
|
+
secret_default as Secret,
|
|
8655
9576
|
step_default as Step,
|
|
8656
9577
|
interface_default as Trigger,
|
|
8657
9578
|
factory_default as TriggerFactory,
|
|
8658
|
-
|
|
9579
|
+
reason_default as TriggerReason,
|
|
8659
9580
|
TriggerType,
|
|
8660
9581
|
workflow_default as Workflow,
|
|
8661
|
-
WorkflowStatus
|
|
8662
|
-
Client as default
|
|
9582
|
+
WorkflowStatus
|
|
8663
9583
|
};
|