@avaprotocol/sdk-js 2.6.12 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/dist/index.d.ts +13 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +811 -281
- package/dist/index.mjs +811 -281
- package/dist/models/step.d.ts +29 -0
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +52 -39
- package/dist/utils.d.ts +77 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +19 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -51,10 +51,6 @@ var require_avs_pb = __commonJS({
|
|
|
51
51
|
}
|
|
52
52
|
return Function("return this")();
|
|
53
53
|
}.call(null);
|
|
54
|
-
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
55
|
-
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
56
|
-
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
57
|
-
goog.object.extend(proto, google_protobuf_any_pb);
|
|
58
54
|
var google_protobuf_struct_pb5 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
59
55
|
goog.object.extend(proto, google_protobuf_struct_pb5);
|
|
60
56
|
goog.exportSymbol("proto.aggregator.BlockTrigger", null, global);
|
|
@@ -177,6 +173,8 @@ var require_avs_pb = __commonJS({
|
|
|
177
173
|
goog.exportSymbol("proto.aggregator.TriggerTaskResp", null, global);
|
|
178
174
|
goog.exportSymbol("proto.aggregator.TriggerType", null, global);
|
|
179
175
|
goog.exportSymbol("proto.aggregator.UpdateSecretResp", null, global);
|
|
176
|
+
goog.exportSymbol("proto.aggregator.WithdrawFundsReq", null, global);
|
|
177
|
+
goog.exportSymbol("proto.aggregator.WithdrawFundsResp", null, global);
|
|
180
178
|
proto.aggregator.TokenMetadata = function(opt_data) {
|
|
181
179
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
182
180
|
};
|
|
@@ -730,6 +728,20 @@ var require_avs_pb = __commonJS({
|
|
|
730
728
|
if (goog.DEBUG && !COMPILED) {
|
|
731
729
|
proto.aggregator.SetWalletReq.displayName = "proto.aggregator.SetWalletReq";
|
|
732
730
|
}
|
|
731
|
+
proto.aggregator.WithdrawFundsReq = function(opt_data) {
|
|
732
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
733
|
+
};
|
|
734
|
+
goog.inherits(proto.aggregator.WithdrawFundsReq, jspb.Message);
|
|
735
|
+
if (goog.DEBUG && !COMPILED) {
|
|
736
|
+
proto.aggregator.WithdrawFundsReq.displayName = "proto.aggregator.WithdrawFundsReq";
|
|
737
|
+
}
|
|
738
|
+
proto.aggregator.WithdrawFundsResp = function(opt_data) {
|
|
739
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
740
|
+
};
|
|
741
|
+
goog.inherits(proto.aggregator.WithdrawFundsResp, jspb.Message);
|
|
742
|
+
if (goog.DEBUG && !COMPILED) {
|
|
743
|
+
proto.aggregator.WithdrawFundsResp.displayName = "proto.aggregator.WithdrawFundsResp";
|
|
744
|
+
}
|
|
733
745
|
proto.aggregator.TriggerTaskReq = function(opt_data) {
|
|
734
746
|
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.aggregator.TriggerTaskReq.oneofGroups_);
|
|
735
747
|
};
|
|
@@ -3723,8 +3735,7 @@ var require_avs_pb = __commonJS({
|
|
|
3723
3735
|
};
|
|
3724
3736
|
proto.aggregator.ContractWriteNode.Output.toObject = function(includeInstance, msg) {
|
|
3725
3737
|
var f, obj = {
|
|
3726
|
-
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
3727
|
-
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
3738
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
3728
3739
|
};
|
|
3729
3740
|
if (includeInstance) {
|
|
3730
3741
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3749,11 +3760,6 @@ var require_avs_pb = __commonJS({
|
|
|
3749
3760
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3750
3761
|
msg.setData(value);
|
|
3751
3762
|
break;
|
|
3752
|
-
case 2:
|
|
3753
|
-
var value = new google_protobuf_struct_pb5.Value();
|
|
3754
|
-
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3755
|
-
msg.setMetadata(value);
|
|
3756
|
-
break;
|
|
3757
3763
|
default:
|
|
3758
3764
|
reader.skipField();
|
|
3759
3765
|
break;
|
|
@@ -3776,14 +3782,6 @@ var require_avs_pb = __commonJS({
|
|
|
3776
3782
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3777
3783
|
);
|
|
3778
3784
|
}
|
|
3779
|
-
f = message.getMetadata();
|
|
3780
|
-
if (f != null) {
|
|
3781
|
-
writer.writeMessage(
|
|
3782
|
-
2,
|
|
3783
|
-
f,
|
|
3784
|
-
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3785
|
-
);
|
|
3786
|
-
}
|
|
3787
3785
|
};
|
|
3788
3786
|
proto.aggregator.ContractWriteNode.Output.prototype.getData = function() {
|
|
3789
3787
|
return (
|
|
@@ -3800,21 +3798,6 @@ var require_avs_pb = __commonJS({
|
|
|
3800
3798
|
proto.aggregator.ContractWriteNode.Output.prototype.hasData = function() {
|
|
3801
3799
|
return jspb.Message.getField(this, 1) != null;
|
|
3802
3800
|
};
|
|
3803
|
-
proto.aggregator.ContractWriteNode.Output.prototype.getMetadata = function() {
|
|
3804
|
-
return (
|
|
3805
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
3806
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 2)
|
|
3807
|
-
);
|
|
3808
|
-
};
|
|
3809
|
-
proto.aggregator.ContractWriteNode.Output.prototype.setMetadata = function(value) {
|
|
3810
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
3811
|
-
};
|
|
3812
|
-
proto.aggregator.ContractWriteNode.Output.prototype.clearMetadata = function() {
|
|
3813
|
-
return this.setMetadata(void 0);
|
|
3814
|
-
};
|
|
3815
|
-
proto.aggregator.ContractWriteNode.Output.prototype.hasMetadata = function() {
|
|
3816
|
-
return jspb.Message.getField(this, 2) != null;
|
|
3817
|
-
};
|
|
3818
3801
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3819
3802
|
proto.aggregator.ContractWriteNode.MethodResult.prototype.toObject = function(opt_includeInstance) {
|
|
3820
3803
|
return proto.aggregator.ContractWriteNode.MethodResult.toObject(opt_includeInstance, this);
|
|
@@ -4665,8 +4648,7 @@ var require_avs_pb = __commonJS({
|
|
|
4665
4648
|
};
|
|
4666
4649
|
proto.aggregator.ContractReadNode.Output.toObject = function(includeInstance, msg) {
|
|
4667
4650
|
var f, obj = {
|
|
4668
|
-
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
4669
|
-
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
4651
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
4670
4652
|
};
|
|
4671
4653
|
if (includeInstance) {
|
|
4672
4654
|
obj.$jspbMessageInstance = msg;
|
|
@@ -4691,11 +4673,6 @@ var require_avs_pb = __commonJS({
|
|
|
4691
4673
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
4692
4674
|
msg.setData(value);
|
|
4693
4675
|
break;
|
|
4694
|
-
case 2:
|
|
4695
|
-
var value = new google_protobuf_struct_pb5.Value();
|
|
4696
|
-
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
4697
|
-
msg.setMetadata(value);
|
|
4698
|
-
break;
|
|
4699
4676
|
default:
|
|
4700
4677
|
reader.skipField();
|
|
4701
4678
|
break;
|
|
@@ -4718,14 +4695,6 @@ var require_avs_pb = __commonJS({
|
|
|
4718
4695
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
4719
4696
|
);
|
|
4720
4697
|
}
|
|
4721
|
-
f = message.getMetadata();
|
|
4722
|
-
if (f != null) {
|
|
4723
|
-
writer.writeMessage(
|
|
4724
|
-
2,
|
|
4725
|
-
f,
|
|
4726
|
-
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
4727
|
-
);
|
|
4728
|
-
}
|
|
4729
4698
|
};
|
|
4730
4699
|
proto.aggregator.ContractReadNode.Output.prototype.getData = function() {
|
|
4731
4700
|
return (
|
|
@@ -4742,21 +4711,6 @@ var require_avs_pb = __commonJS({
|
|
|
4742
4711
|
proto.aggregator.ContractReadNode.Output.prototype.hasData = function() {
|
|
4743
4712
|
return jspb.Message.getField(this, 1) != null;
|
|
4744
4713
|
};
|
|
4745
|
-
proto.aggregator.ContractReadNode.Output.prototype.getMetadata = function() {
|
|
4746
|
-
return (
|
|
4747
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
4748
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 2)
|
|
4749
|
-
);
|
|
4750
|
-
};
|
|
4751
|
-
proto.aggregator.ContractReadNode.Output.prototype.setMetadata = function(value) {
|
|
4752
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
4753
|
-
};
|
|
4754
|
-
proto.aggregator.ContractReadNode.Output.prototype.clearMetadata = function() {
|
|
4755
|
-
return this.setMetadata(void 0);
|
|
4756
|
-
};
|
|
4757
|
-
proto.aggregator.ContractReadNode.Output.prototype.hasMetadata = function() {
|
|
4758
|
-
return jspb.Message.getField(this, 2) != null;
|
|
4759
|
-
};
|
|
4760
4714
|
proto.aggregator.ContractReadNode.prototype.getConfig = function() {
|
|
4761
4715
|
return (
|
|
4762
4716
|
/** @type{?proto.aggregator.ContractReadNode.Config} */
|
|
@@ -7217,6 +7171,8 @@ var require_avs_pb = __commonJS({
|
|
|
7217
7171
|
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
7218
7172
|
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
|
|
7219
7173
|
config: (f = msg.getConfig()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
7174
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
7175
|
+
executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
7220
7176
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
7221
7177
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
7222
7178
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -7306,6 +7262,16 @@ var require_avs_pb = __commonJS({
|
|
|
7306
7262
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
7307
7263
|
msg.setConfig(value);
|
|
7308
7264
|
break;
|
|
7265
|
+
case 25:
|
|
7266
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
7267
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
7268
|
+
msg.setMetadata(value);
|
|
7269
|
+
break;
|
|
7270
|
+
case 26:
|
|
7271
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
7272
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
7273
|
+
msg.setExecutionContext(value);
|
|
7274
|
+
break;
|
|
7309
7275
|
case 20:
|
|
7310
7276
|
var value = new proto.aggregator.BlockTrigger.Output();
|
|
7311
7277
|
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
@@ -7461,6 +7427,22 @@ var require_avs_pb = __commonJS({
|
|
|
7461
7427
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
7462
7428
|
);
|
|
7463
7429
|
}
|
|
7430
|
+
f = message.getMetadata();
|
|
7431
|
+
if (f != null) {
|
|
7432
|
+
writer.writeMessage(
|
|
7433
|
+
25,
|
|
7434
|
+
f,
|
|
7435
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
7436
|
+
);
|
|
7437
|
+
}
|
|
7438
|
+
f = message.getExecutionContext();
|
|
7439
|
+
if (f != null) {
|
|
7440
|
+
writer.writeMessage(
|
|
7441
|
+
26,
|
|
7442
|
+
f,
|
|
7443
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
7444
|
+
);
|
|
7445
|
+
}
|
|
7464
7446
|
f = message.getBlockTrigger();
|
|
7465
7447
|
if (f != null) {
|
|
7466
7448
|
writer.writeMessage(
|
|
@@ -7672,6 +7654,36 @@ var require_avs_pb = __commonJS({
|
|
|
7672
7654
|
proto.aggregator.Execution.Step.prototype.hasConfig = function() {
|
|
7673
7655
|
return jspb.Message.getField(this, 19) != null;
|
|
7674
7656
|
};
|
|
7657
|
+
proto.aggregator.Execution.Step.prototype.getMetadata = function() {
|
|
7658
|
+
return (
|
|
7659
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
7660
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 25)
|
|
7661
|
+
);
|
|
7662
|
+
};
|
|
7663
|
+
proto.aggregator.Execution.Step.prototype.setMetadata = function(value) {
|
|
7664
|
+
return jspb.Message.setWrapperField(this, 25, value);
|
|
7665
|
+
};
|
|
7666
|
+
proto.aggregator.Execution.Step.prototype.clearMetadata = function() {
|
|
7667
|
+
return this.setMetadata(void 0);
|
|
7668
|
+
};
|
|
7669
|
+
proto.aggregator.Execution.Step.prototype.hasMetadata = function() {
|
|
7670
|
+
return jspb.Message.getField(this, 25) != null;
|
|
7671
|
+
};
|
|
7672
|
+
proto.aggregator.Execution.Step.prototype.getExecutionContext = function() {
|
|
7673
|
+
return (
|
|
7674
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
7675
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 26)
|
|
7676
|
+
);
|
|
7677
|
+
};
|
|
7678
|
+
proto.aggregator.Execution.Step.prototype.setExecutionContext = function(value) {
|
|
7679
|
+
return jspb.Message.setWrapperField(this, 26, value);
|
|
7680
|
+
};
|
|
7681
|
+
proto.aggregator.Execution.Step.prototype.clearExecutionContext = function() {
|
|
7682
|
+
return this.setExecutionContext(void 0);
|
|
7683
|
+
};
|
|
7684
|
+
proto.aggregator.Execution.Step.prototype.hasExecutionContext = function() {
|
|
7685
|
+
return jspb.Message.getField(this, 26) != null;
|
|
7686
|
+
};
|
|
7675
7687
|
proto.aggregator.Execution.Step.prototype.getBlockTrigger = function() {
|
|
7676
7688
|
return (
|
|
7677
7689
|
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
@@ -10478,35 +10490,16 @@ var require_avs_pb = __commonJS({
|
|
|
10478
10490
|
proto.aggregator.SetWalletReq.prototype.setIsHidden = function(value) {
|
|
10479
10491
|
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
10480
10492
|
};
|
|
10481
|
-
proto.aggregator.TriggerTaskReq.oneofGroups_ = [[3, 4, 5, 6, 7]];
|
|
10482
|
-
proto.aggregator.TriggerTaskReq.TriggerOutputCase = {
|
|
10483
|
-
TRIGGER_OUTPUT_NOT_SET: 0,
|
|
10484
|
-
BLOCK_TRIGGER: 3,
|
|
10485
|
-
FIXED_TIME_TRIGGER: 4,
|
|
10486
|
-
CRON_TRIGGER: 5,
|
|
10487
|
-
EVENT_TRIGGER: 6,
|
|
10488
|
-
MANUAL_TRIGGER: 7
|
|
10489
|
-
};
|
|
10490
|
-
proto.aggregator.TriggerTaskReq.prototype.getTriggerOutputCase = function() {
|
|
10491
|
-
return (
|
|
10492
|
-
/** @type {proto.aggregator.TriggerTaskReq.TriggerOutputCase} */
|
|
10493
|
-
jspb.Message.computeOneofCase(this, proto.aggregator.TriggerTaskReq.oneofGroups_[0])
|
|
10494
|
-
);
|
|
10495
|
-
};
|
|
10496
10493
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10497
|
-
proto.aggregator.
|
|
10498
|
-
return proto.aggregator.
|
|
10494
|
+
proto.aggregator.WithdrawFundsReq.prototype.toObject = function(opt_includeInstance) {
|
|
10495
|
+
return proto.aggregator.WithdrawFundsReq.toObject(opt_includeInstance, this);
|
|
10499
10496
|
};
|
|
10500
|
-
proto.aggregator.
|
|
10497
|
+
proto.aggregator.WithdrawFundsReq.toObject = function(includeInstance, msg) {
|
|
10501
10498
|
var f, obj = {
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
10507
|
-
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
10508
|
-
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f),
|
|
10509
|
-
isBlocking: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
10499
|
+
recipientAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
10500
|
+
amount: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
10501
|
+
token: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
10502
|
+
smartWalletAddress: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
10510
10503
|
};
|
|
10511
10504
|
if (includeInstance) {
|
|
10512
10505
|
obj.$jspbMessageInstance = msg;
|
|
@@ -10514,12 +10507,12 @@ var require_avs_pb = __commonJS({
|
|
|
10514
10507
|
return obj;
|
|
10515
10508
|
};
|
|
10516
10509
|
}
|
|
10517
|
-
proto.aggregator.
|
|
10510
|
+
proto.aggregator.WithdrawFundsReq.deserializeBinary = function(bytes) {
|
|
10518
10511
|
var reader = new jspb.BinaryReader(bytes);
|
|
10519
|
-
var msg = new proto.aggregator.
|
|
10520
|
-
return proto.aggregator.
|
|
10512
|
+
var msg = new proto.aggregator.WithdrawFundsReq();
|
|
10513
|
+
return proto.aggregator.WithdrawFundsReq.deserializeBinaryFromReader(msg, reader);
|
|
10521
10514
|
};
|
|
10522
|
-
proto.aggregator.
|
|
10515
|
+
proto.aggregator.WithdrawFundsReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
10523
10516
|
while (reader.nextField()) {
|
|
10524
10517
|
if (reader.isEndGroup()) {
|
|
10525
10518
|
break;
|
|
@@ -10531,46 +10524,28 @@ var require_avs_pb = __commonJS({
|
|
|
10531
10524
|
/** @type {string} */
|
|
10532
10525
|
reader.readString()
|
|
10533
10526
|
);
|
|
10534
|
-
msg.
|
|
10527
|
+
msg.setRecipientAddress(value);
|
|
10535
10528
|
break;
|
|
10536
10529
|
case 2:
|
|
10537
10530
|
var value = (
|
|
10538
|
-
/** @type {
|
|
10539
|
-
reader.
|
|
10531
|
+
/** @type {string} */
|
|
10532
|
+
reader.readString()
|
|
10540
10533
|
);
|
|
10541
|
-
msg.
|
|
10534
|
+
msg.setAmount(value);
|
|
10542
10535
|
break;
|
|
10543
10536
|
case 3:
|
|
10544
|
-
var value =
|
|
10545
|
-
|
|
10546
|
-
|
|
10537
|
+
var value = (
|
|
10538
|
+
/** @type {string} */
|
|
10539
|
+
reader.readString()
|
|
10540
|
+
);
|
|
10541
|
+
msg.setToken(value);
|
|
10547
10542
|
break;
|
|
10548
10543
|
case 4:
|
|
10549
|
-
var value = new proto.aggregator.FixedTimeTrigger.Output();
|
|
10550
|
-
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
|
|
10551
|
-
msg.setFixedTimeTrigger(value);
|
|
10552
|
-
break;
|
|
10553
|
-
case 5:
|
|
10554
|
-
var value = new proto.aggregator.CronTrigger.Output();
|
|
10555
|
-
reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
|
|
10556
|
-
msg.setCronTrigger(value);
|
|
10557
|
-
break;
|
|
10558
|
-
case 6:
|
|
10559
|
-
var value = new proto.aggregator.EventTrigger.Output();
|
|
10560
|
-
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
10561
|
-
msg.setEventTrigger(value);
|
|
10562
|
-
break;
|
|
10563
|
-
case 7:
|
|
10564
|
-
var value = new proto.aggregator.ManualTrigger.Output();
|
|
10565
|
-
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
10566
|
-
msg.setManualTrigger(value);
|
|
10567
|
-
break;
|
|
10568
|
-
case 8:
|
|
10569
10544
|
var value = (
|
|
10570
|
-
/** @type {
|
|
10571
|
-
reader.
|
|
10545
|
+
/** @type {string} */
|
|
10546
|
+
reader.readString()
|
|
10572
10547
|
);
|
|
10573
|
-
msg.
|
|
10548
|
+
msg.setSmartWalletAddress(value);
|
|
10574
10549
|
break;
|
|
10575
10550
|
default:
|
|
10576
10551
|
reader.skipField();
|
|
@@ -10579,116 +10554,569 @@ var require_avs_pb = __commonJS({
|
|
|
10579
10554
|
}
|
|
10580
10555
|
return msg;
|
|
10581
10556
|
};
|
|
10582
|
-
proto.aggregator.
|
|
10557
|
+
proto.aggregator.WithdrawFundsReq.prototype.serializeBinary = function() {
|
|
10583
10558
|
var writer = new jspb.BinaryWriter();
|
|
10584
|
-
proto.aggregator.
|
|
10559
|
+
proto.aggregator.WithdrawFundsReq.serializeBinaryToWriter(this, writer);
|
|
10585
10560
|
return writer.getResultBuffer();
|
|
10586
10561
|
};
|
|
10587
|
-
proto.aggregator.
|
|
10562
|
+
proto.aggregator.WithdrawFundsReq.serializeBinaryToWriter = function(message, writer) {
|
|
10588
10563
|
var f = void 0;
|
|
10589
|
-
f = message.
|
|
10564
|
+
f = message.getRecipientAddress();
|
|
10590
10565
|
if (f.length > 0) {
|
|
10591
10566
|
writer.writeString(
|
|
10592
10567
|
1,
|
|
10593
10568
|
f
|
|
10594
10569
|
);
|
|
10595
10570
|
}
|
|
10596
|
-
f = message.
|
|
10597
|
-
if (f
|
|
10598
|
-
writer.
|
|
10571
|
+
f = message.getAmount();
|
|
10572
|
+
if (f.length > 0) {
|
|
10573
|
+
writer.writeString(
|
|
10599
10574
|
2,
|
|
10600
10575
|
f
|
|
10601
10576
|
);
|
|
10602
10577
|
}
|
|
10603
|
-
f = message.
|
|
10604
|
-
if (f
|
|
10605
|
-
writer.
|
|
10578
|
+
f = message.getToken();
|
|
10579
|
+
if (f.length > 0) {
|
|
10580
|
+
writer.writeString(
|
|
10606
10581
|
3,
|
|
10607
|
-
f
|
|
10608
|
-
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
10582
|
+
f
|
|
10609
10583
|
);
|
|
10610
10584
|
}
|
|
10611
|
-
f = message.
|
|
10612
|
-
if (f
|
|
10613
|
-
writer.
|
|
10585
|
+
f = message.getSmartWalletAddress();
|
|
10586
|
+
if (f.length > 0) {
|
|
10587
|
+
writer.writeString(
|
|
10614
10588
|
4,
|
|
10615
|
-
f,
|
|
10616
|
-
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
10617
|
-
);
|
|
10618
|
-
}
|
|
10619
|
-
f = message.getCronTrigger();
|
|
10620
|
-
if (f != null) {
|
|
10621
|
-
writer.writeMessage(
|
|
10622
|
-
5,
|
|
10623
|
-
f,
|
|
10624
|
-
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
10625
|
-
);
|
|
10626
|
-
}
|
|
10627
|
-
f = message.getEventTrigger();
|
|
10628
|
-
if (f != null) {
|
|
10629
|
-
writer.writeMessage(
|
|
10630
|
-
6,
|
|
10631
|
-
f,
|
|
10632
|
-
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
10633
|
-
);
|
|
10634
|
-
}
|
|
10635
|
-
f = message.getManualTrigger();
|
|
10636
|
-
if (f != null) {
|
|
10637
|
-
writer.writeMessage(
|
|
10638
|
-
7,
|
|
10639
|
-
f,
|
|
10640
|
-
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
10641
|
-
);
|
|
10642
|
-
}
|
|
10643
|
-
f = message.getIsBlocking();
|
|
10644
|
-
if (f) {
|
|
10645
|
-
writer.writeBool(
|
|
10646
|
-
8,
|
|
10647
10589
|
f
|
|
10648
10590
|
);
|
|
10649
10591
|
}
|
|
10650
10592
|
};
|
|
10651
|
-
proto.aggregator.
|
|
10593
|
+
proto.aggregator.WithdrawFundsReq.prototype.getRecipientAddress = function() {
|
|
10652
10594
|
return (
|
|
10653
10595
|
/** @type {string} */
|
|
10654
10596
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
10655
10597
|
);
|
|
10656
10598
|
};
|
|
10657
|
-
proto.aggregator.
|
|
10599
|
+
proto.aggregator.WithdrawFundsReq.prototype.setRecipientAddress = function(value) {
|
|
10658
10600
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
10659
10601
|
};
|
|
10660
|
-
proto.aggregator.
|
|
10602
|
+
proto.aggregator.WithdrawFundsReq.prototype.getAmount = function() {
|
|
10661
10603
|
return (
|
|
10662
|
-
/** @type {
|
|
10663
|
-
jspb.Message.getFieldWithDefault(this, 2,
|
|
10604
|
+
/** @type {string} */
|
|
10605
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
10664
10606
|
);
|
|
10665
10607
|
};
|
|
10666
|
-
proto.aggregator.
|
|
10667
|
-
return jspb.Message.
|
|
10608
|
+
proto.aggregator.WithdrawFundsReq.prototype.setAmount = function(value) {
|
|
10609
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
10668
10610
|
};
|
|
10669
|
-
proto.aggregator.
|
|
10611
|
+
proto.aggregator.WithdrawFundsReq.prototype.getToken = function() {
|
|
10670
10612
|
return (
|
|
10671
|
-
/** @type{
|
|
10672
|
-
jspb.Message.
|
|
10613
|
+
/** @type {string} */
|
|
10614
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
10673
10615
|
);
|
|
10674
10616
|
};
|
|
10675
|
-
proto.aggregator.
|
|
10676
|
-
return jspb.Message.
|
|
10677
|
-
};
|
|
10678
|
-
proto.aggregator.TriggerTaskReq.prototype.clearBlockTrigger = function() {
|
|
10679
|
-
return this.setBlockTrigger(void 0);
|
|
10680
|
-
};
|
|
10681
|
-
proto.aggregator.TriggerTaskReq.prototype.hasBlockTrigger = function() {
|
|
10682
|
-
return jspb.Message.getField(this, 3) != null;
|
|
10617
|
+
proto.aggregator.WithdrawFundsReq.prototype.setToken = function(value) {
|
|
10618
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
10683
10619
|
};
|
|
10684
|
-
proto.aggregator.
|
|
10620
|
+
proto.aggregator.WithdrawFundsReq.prototype.getSmartWalletAddress = function() {
|
|
10685
10621
|
return (
|
|
10686
|
-
/** @type{
|
|
10687
|
-
jspb.Message.
|
|
10622
|
+
/** @type {string} */
|
|
10623
|
+
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
10688
10624
|
);
|
|
10689
10625
|
};
|
|
10690
|
-
proto.aggregator.
|
|
10691
|
-
return jspb.Message.
|
|
10626
|
+
proto.aggregator.WithdrawFundsReq.prototype.setSmartWalletAddress = function(value) {
|
|
10627
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
10628
|
+
};
|
|
10629
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10630
|
+
proto.aggregator.WithdrawFundsResp.prototype.toObject = function(opt_includeInstance) {
|
|
10631
|
+
return proto.aggregator.WithdrawFundsResp.toObject(opt_includeInstance, this);
|
|
10632
|
+
};
|
|
10633
|
+
proto.aggregator.WithdrawFundsResp.toObject = function(includeInstance, msg) {
|
|
10634
|
+
var f, obj = {
|
|
10635
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
10636
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
10637
|
+
message: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
10638
|
+
userOpHash: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
10639
|
+
transactionHash: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
10640
|
+
submittedAt: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
10641
|
+
smartWalletAddress: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
10642
|
+
recipientAddress: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
10643
|
+
amount: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
10644
|
+
token: jspb.Message.getFieldWithDefault(msg, 10, "")
|
|
10645
|
+
};
|
|
10646
|
+
if (includeInstance) {
|
|
10647
|
+
obj.$jspbMessageInstance = msg;
|
|
10648
|
+
}
|
|
10649
|
+
return obj;
|
|
10650
|
+
};
|
|
10651
|
+
}
|
|
10652
|
+
proto.aggregator.WithdrawFundsResp.deserializeBinary = function(bytes) {
|
|
10653
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10654
|
+
var msg = new proto.aggregator.WithdrawFundsResp();
|
|
10655
|
+
return proto.aggregator.WithdrawFundsResp.deserializeBinaryFromReader(msg, reader);
|
|
10656
|
+
};
|
|
10657
|
+
proto.aggregator.WithdrawFundsResp.deserializeBinaryFromReader = function(msg, reader) {
|
|
10658
|
+
while (reader.nextField()) {
|
|
10659
|
+
if (reader.isEndGroup()) {
|
|
10660
|
+
break;
|
|
10661
|
+
}
|
|
10662
|
+
var field = reader.getFieldNumber();
|
|
10663
|
+
switch (field) {
|
|
10664
|
+
case 1:
|
|
10665
|
+
var value = (
|
|
10666
|
+
/** @type {boolean} */
|
|
10667
|
+
reader.readBool()
|
|
10668
|
+
);
|
|
10669
|
+
msg.setSuccess(value);
|
|
10670
|
+
break;
|
|
10671
|
+
case 2:
|
|
10672
|
+
var value = (
|
|
10673
|
+
/** @type {string} */
|
|
10674
|
+
reader.readString()
|
|
10675
|
+
);
|
|
10676
|
+
msg.setStatus(value);
|
|
10677
|
+
break;
|
|
10678
|
+
case 3:
|
|
10679
|
+
var value = (
|
|
10680
|
+
/** @type {string} */
|
|
10681
|
+
reader.readString()
|
|
10682
|
+
);
|
|
10683
|
+
msg.setMessage(value);
|
|
10684
|
+
break;
|
|
10685
|
+
case 4:
|
|
10686
|
+
var value = (
|
|
10687
|
+
/** @type {string} */
|
|
10688
|
+
reader.readString()
|
|
10689
|
+
);
|
|
10690
|
+
msg.setUserOpHash(value);
|
|
10691
|
+
break;
|
|
10692
|
+
case 5:
|
|
10693
|
+
var value = (
|
|
10694
|
+
/** @type {string} */
|
|
10695
|
+
reader.readString()
|
|
10696
|
+
);
|
|
10697
|
+
msg.setTransactionHash(value);
|
|
10698
|
+
break;
|
|
10699
|
+
case 6:
|
|
10700
|
+
var value = (
|
|
10701
|
+
/** @type {number} */
|
|
10702
|
+
reader.readInt64()
|
|
10703
|
+
);
|
|
10704
|
+
msg.setSubmittedAt(value);
|
|
10705
|
+
break;
|
|
10706
|
+
case 7:
|
|
10707
|
+
var value = (
|
|
10708
|
+
/** @type {string} */
|
|
10709
|
+
reader.readString()
|
|
10710
|
+
);
|
|
10711
|
+
msg.setSmartWalletAddress(value);
|
|
10712
|
+
break;
|
|
10713
|
+
case 8:
|
|
10714
|
+
var value = (
|
|
10715
|
+
/** @type {string} */
|
|
10716
|
+
reader.readString()
|
|
10717
|
+
);
|
|
10718
|
+
msg.setRecipientAddress(value);
|
|
10719
|
+
break;
|
|
10720
|
+
case 9:
|
|
10721
|
+
var value = (
|
|
10722
|
+
/** @type {string} */
|
|
10723
|
+
reader.readString()
|
|
10724
|
+
);
|
|
10725
|
+
msg.setAmount(value);
|
|
10726
|
+
break;
|
|
10727
|
+
case 10:
|
|
10728
|
+
var value = (
|
|
10729
|
+
/** @type {string} */
|
|
10730
|
+
reader.readString()
|
|
10731
|
+
);
|
|
10732
|
+
msg.setToken(value);
|
|
10733
|
+
break;
|
|
10734
|
+
default:
|
|
10735
|
+
reader.skipField();
|
|
10736
|
+
break;
|
|
10737
|
+
}
|
|
10738
|
+
}
|
|
10739
|
+
return msg;
|
|
10740
|
+
};
|
|
10741
|
+
proto.aggregator.WithdrawFundsResp.prototype.serializeBinary = function() {
|
|
10742
|
+
var writer = new jspb.BinaryWriter();
|
|
10743
|
+
proto.aggregator.WithdrawFundsResp.serializeBinaryToWriter(this, writer);
|
|
10744
|
+
return writer.getResultBuffer();
|
|
10745
|
+
};
|
|
10746
|
+
proto.aggregator.WithdrawFundsResp.serializeBinaryToWriter = function(message, writer) {
|
|
10747
|
+
var f = void 0;
|
|
10748
|
+
f = message.getSuccess();
|
|
10749
|
+
if (f) {
|
|
10750
|
+
writer.writeBool(
|
|
10751
|
+
1,
|
|
10752
|
+
f
|
|
10753
|
+
);
|
|
10754
|
+
}
|
|
10755
|
+
f = message.getStatus();
|
|
10756
|
+
if (f.length > 0) {
|
|
10757
|
+
writer.writeString(
|
|
10758
|
+
2,
|
|
10759
|
+
f
|
|
10760
|
+
);
|
|
10761
|
+
}
|
|
10762
|
+
f = message.getMessage();
|
|
10763
|
+
if (f.length > 0) {
|
|
10764
|
+
writer.writeString(
|
|
10765
|
+
3,
|
|
10766
|
+
f
|
|
10767
|
+
);
|
|
10768
|
+
}
|
|
10769
|
+
f = message.getUserOpHash();
|
|
10770
|
+
if (f.length > 0) {
|
|
10771
|
+
writer.writeString(
|
|
10772
|
+
4,
|
|
10773
|
+
f
|
|
10774
|
+
);
|
|
10775
|
+
}
|
|
10776
|
+
f = message.getTransactionHash();
|
|
10777
|
+
if (f.length > 0) {
|
|
10778
|
+
writer.writeString(
|
|
10779
|
+
5,
|
|
10780
|
+
f
|
|
10781
|
+
);
|
|
10782
|
+
}
|
|
10783
|
+
f = message.getSubmittedAt();
|
|
10784
|
+
if (f !== 0) {
|
|
10785
|
+
writer.writeInt64(
|
|
10786
|
+
6,
|
|
10787
|
+
f
|
|
10788
|
+
);
|
|
10789
|
+
}
|
|
10790
|
+
f = message.getSmartWalletAddress();
|
|
10791
|
+
if (f.length > 0) {
|
|
10792
|
+
writer.writeString(
|
|
10793
|
+
7,
|
|
10794
|
+
f
|
|
10795
|
+
);
|
|
10796
|
+
}
|
|
10797
|
+
f = message.getRecipientAddress();
|
|
10798
|
+
if (f.length > 0) {
|
|
10799
|
+
writer.writeString(
|
|
10800
|
+
8,
|
|
10801
|
+
f
|
|
10802
|
+
);
|
|
10803
|
+
}
|
|
10804
|
+
f = message.getAmount();
|
|
10805
|
+
if (f.length > 0) {
|
|
10806
|
+
writer.writeString(
|
|
10807
|
+
9,
|
|
10808
|
+
f
|
|
10809
|
+
);
|
|
10810
|
+
}
|
|
10811
|
+
f = message.getToken();
|
|
10812
|
+
if (f.length > 0) {
|
|
10813
|
+
writer.writeString(
|
|
10814
|
+
10,
|
|
10815
|
+
f
|
|
10816
|
+
);
|
|
10817
|
+
}
|
|
10818
|
+
};
|
|
10819
|
+
proto.aggregator.WithdrawFundsResp.prototype.getSuccess = function() {
|
|
10820
|
+
return (
|
|
10821
|
+
/** @type {boolean} */
|
|
10822
|
+
jspb.Message.getBooleanFieldWithDefault(this, 1, false)
|
|
10823
|
+
);
|
|
10824
|
+
};
|
|
10825
|
+
proto.aggregator.WithdrawFundsResp.prototype.setSuccess = function(value) {
|
|
10826
|
+
return jspb.Message.setProto3BooleanField(this, 1, value);
|
|
10827
|
+
};
|
|
10828
|
+
proto.aggregator.WithdrawFundsResp.prototype.getStatus = function() {
|
|
10829
|
+
return (
|
|
10830
|
+
/** @type {string} */
|
|
10831
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
10832
|
+
);
|
|
10833
|
+
};
|
|
10834
|
+
proto.aggregator.WithdrawFundsResp.prototype.setStatus = function(value) {
|
|
10835
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
10836
|
+
};
|
|
10837
|
+
proto.aggregator.WithdrawFundsResp.prototype.getMessage = function() {
|
|
10838
|
+
return (
|
|
10839
|
+
/** @type {string} */
|
|
10840
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
10841
|
+
);
|
|
10842
|
+
};
|
|
10843
|
+
proto.aggregator.WithdrawFundsResp.prototype.setMessage = function(value) {
|
|
10844
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
10845
|
+
};
|
|
10846
|
+
proto.aggregator.WithdrawFundsResp.prototype.getUserOpHash = function() {
|
|
10847
|
+
return (
|
|
10848
|
+
/** @type {string} */
|
|
10849
|
+
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
10850
|
+
);
|
|
10851
|
+
};
|
|
10852
|
+
proto.aggregator.WithdrawFundsResp.prototype.setUserOpHash = function(value) {
|
|
10853
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
10854
|
+
};
|
|
10855
|
+
proto.aggregator.WithdrawFundsResp.prototype.getTransactionHash = function() {
|
|
10856
|
+
return (
|
|
10857
|
+
/** @type {string} */
|
|
10858
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
10859
|
+
);
|
|
10860
|
+
};
|
|
10861
|
+
proto.aggregator.WithdrawFundsResp.prototype.setTransactionHash = function(value) {
|
|
10862
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
10863
|
+
};
|
|
10864
|
+
proto.aggregator.WithdrawFundsResp.prototype.getSubmittedAt = function() {
|
|
10865
|
+
return (
|
|
10866
|
+
/** @type {number} */
|
|
10867
|
+
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
10868
|
+
);
|
|
10869
|
+
};
|
|
10870
|
+
proto.aggregator.WithdrawFundsResp.prototype.setSubmittedAt = function(value) {
|
|
10871
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
10872
|
+
};
|
|
10873
|
+
proto.aggregator.WithdrawFundsResp.prototype.getSmartWalletAddress = function() {
|
|
10874
|
+
return (
|
|
10875
|
+
/** @type {string} */
|
|
10876
|
+
jspb.Message.getFieldWithDefault(this, 7, "")
|
|
10877
|
+
);
|
|
10878
|
+
};
|
|
10879
|
+
proto.aggregator.WithdrawFundsResp.prototype.setSmartWalletAddress = function(value) {
|
|
10880
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
10881
|
+
};
|
|
10882
|
+
proto.aggregator.WithdrawFundsResp.prototype.getRecipientAddress = function() {
|
|
10883
|
+
return (
|
|
10884
|
+
/** @type {string} */
|
|
10885
|
+
jspb.Message.getFieldWithDefault(this, 8, "")
|
|
10886
|
+
);
|
|
10887
|
+
};
|
|
10888
|
+
proto.aggregator.WithdrawFundsResp.prototype.setRecipientAddress = function(value) {
|
|
10889
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
10890
|
+
};
|
|
10891
|
+
proto.aggregator.WithdrawFundsResp.prototype.getAmount = function() {
|
|
10892
|
+
return (
|
|
10893
|
+
/** @type {string} */
|
|
10894
|
+
jspb.Message.getFieldWithDefault(this, 9, "")
|
|
10895
|
+
);
|
|
10896
|
+
};
|
|
10897
|
+
proto.aggregator.WithdrawFundsResp.prototype.setAmount = function(value) {
|
|
10898
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
10899
|
+
};
|
|
10900
|
+
proto.aggregator.WithdrawFundsResp.prototype.getToken = function() {
|
|
10901
|
+
return (
|
|
10902
|
+
/** @type {string} */
|
|
10903
|
+
jspb.Message.getFieldWithDefault(this, 10, "")
|
|
10904
|
+
);
|
|
10905
|
+
};
|
|
10906
|
+
proto.aggregator.WithdrawFundsResp.prototype.setToken = function(value) {
|
|
10907
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
10908
|
+
};
|
|
10909
|
+
proto.aggregator.TriggerTaskReq.oneofGroups_ = [[3, 4, 5, 6, 7]];
|
|
10910
|
+
proto.aggregator.TriggerTaskReq.TriggerOutputCase = {
|
|
10911
|
+
TRIGGER_OUTPUT_NOT_SET: 0,
|
|
10912
|
+
BLOCK_TRIGGER: 3,
|
|
10913
|
+
FIXED_TIME_TRIGGER: 4,
|
|
10914
|
+
CRON_TRIGGER: 5,
|
|
10915
|
+
EVENT_TRIGGER: 6,
|
|
10916
|
+
MANUAL_TRIGGER: 7
|
|
10917
|
+
};
|
|
10918
|
+
proto.aggregator.TriggerTaskReq.prototype.getTriggerOutputCase = function() {
|
|
10919
|
+
return (
|
|
10920
|
+
/** @type {proto.aggregator.TriggerTaskReq.TriggerOutputCase} */
|
|
10921
|
+
jspb.Message.computeOneofCase(this, proto.aggregator.TriggerTaskReq.oneofGroups_[0])
|
|
10922
|
+
);
|
|
10923
|
+
};
|
|
10924
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10925
|
+
proto.aggregator.TriggerTaskReq.prototype.toObject = function(opt_includeInstance) {
|
|
10926
|
+
return proto.aggregator.TriggerTaskReq.toObject(opt_includeInstance, this);
|
|
10927
|
+
};
|
|
10928
|
+
proto.aggregator.TriggerTaskReq.toObject = function(includeInstance, msg) {
|
|
10929
|
+
var f, obj = {
|
|
10930
|
+
taskId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
10931
|
+
triggerType: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
10932
|
+
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
10933
|
+
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
10934
|
+
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
10935
|
+
eventTrigger: (f = msg.getEventTrigger()) && proto.aggregator.EventTrigger.Output.toObject(includeInstance, f),
|
|
10936
|
+
manualTrigger: (f = msg.getManualTrigger()) && proto.aggregator.ManualTrigger.Output.toObject(includeInstance, f),
|
|
10937
|
+
isBlocking: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
|
10938
|
+
};
|
|
10939
|
+
if (includeInstance) {
|
|
10940
|
+
obj.$jspbMessageInstance = msg;
|
|
10941
|
+
}
|
|
10942
|
+
return obj;
|
|
10943
|
+
};
|
|
10944
|
+
}
|
|
10945
|
+
proto.aggregator.TriggerTaskReq.deserializeBinary = function(bytes) {
|
|
10946
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10947
|
+
var msg = new proto.aggregator.TriggerTaskReq();
|
|
10948
|
+
return proto.aggregator.TriggerTaskReq.deserializeBinaryFromReader(msg, reader);
|
|
10949
|
+
};
|
|
10950
|
+
proto.aggregator.TriggerTaskReq.deserializeBinaryFromReader = function(msg, reader) {
|
|
10951
|
+
while (reader.nextField()) {
|
|
10952
|
+
if (reader.isEndGroup()) {
|
|
10953
|
+
break;
|
|
10954
|
+
}
|
|
10955
|
+
var field = reader.getFieldNumber();
|
|
10956
|
+
switch (field) {
|
|
10957
|
+
case 1:
|
|
10958
|
+
var value = (
|
|
10959
|
+
/** @type {string} */
|
|
10960
|
+
reader.readString()
|
|
10961
|
+
);
|
|
10962
|
+
msg.setTaskId(value);
|
|
10963
|
+
break;
|
|
10964
|
+
case 2:
|
|
10965
|
+
var value = (
|
|
10966
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
10967
|
+
reader.readEnum()
|
|
10968
|
+
);
|
|
10969
|
+
msg.setTriggerType(value);
|
|
10970
|
+
break;
|
|
10971
|
+
case 3:
|
|
10972
|
+
var value = new proto.aggregator.BlockTrigger.Output();
|
|
10973
|
+
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
10974
|
+
msg.setBlockTrigger(value);
|
|
10975
|
+
break;
|
|
10976
|
+
case 4:
|
|
10977
|
+
var value = new proto.aggregator.FixedTimeTrigger.Output();
|
|
10978
|
+
reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Output.deserializeBinaryFromReader);
|
|
10979
|
+
msg.setFixedTimeTrigger(value);
|
|
10980
|
+
break;
|
|
10981
|
+
case 5:
|
|
10982
|
+
var value = new proto.aggregator.CronTrigger.Output();
|
|
10983
|
+
reader.readMessage(value, proto.aggregator.CronTrigger.Output.deserializeBinaryFromReader);
|
|
10984
|
+
msg.setCronTrigger(value);
|
|
10985
|
+
break;
|
|
10986
|
+
case 6:
|
|
10987
|
+
var value = new proto.aggregator.EventTrigger.Output();
|
|
10988
|
+
reader.readMessage(value, proto.aggregator.EventTrigger.Output.deserializeBinaryFromReader);
|
|
10989
|
+
msg.setEventTrigger(value);
|
|
10990
|
+
break;
|
|
10991
|
+
case 7:
|
|
10992
|
+
var value = new proto.aggregator.ManualTrigger.Output();
|
|
10993
|
+
reader.readMessage(value, proto.aggregator.ManualTrigger.Output.deserializeBinaryFromReader);
|
|
10994
|
+
msg.setManualTrigger(value);
|
|
10995
|
+
break;
|
|
10996
|
+
case 8:
|
|
10997
|
+
var value = (
|
|
10998
|
+
/** @type {boolean} */
|
|
10999
|
+
reader.readBool()
|
|
11000
|
+
);
|
|
11001
|
+
msg.setIsBlocking(value);
|
|
11002
|
+
break;
|
|
11003
|
+
default:
|
|
11004
|
+
reader.skipField();
|
|
11005
|
+
break;
|
|
11006
|
+
}
|
|
11007
|
+
}
|
|
11008
|
+
return msg;
|
|
11009
|
+
};
|
|
11010
|
+
proto.aggregator.TriggerTaskReq.prototype.serializeBinary = function() {
|
|
11011
|
+
var writer = new jspb.BinaryWriter();
|
|
11012
|
+
proto.aggregator.TriggerTaskReq.serializeBinaryToWriter(this, writer);
|
|
11013
|
+
return writer.getResultBuffer();
|
|
11014
|
+
};
|
|
11015
|
+
proto.aggregator.TriggerTaskReq.serializeBinaryToWriter = function(message, writer) {
|
|
11016
|
+
var f = void 0;
|
|
11017
|
+
f = message.getTaskId();
|
|
11018
|
+
if (f.length > 0) {
|
|
11019
|
+
writer.writeString(
|
|
11020
|
+
1,
|
|
11021
|
+
f
|
|
11022
|
+
);
|
|
11023
|
+
}
|
|
11024
|
+
f = message.getTriggerType();
|
|
11025
|
+
if (f !== 0) {
|
|
11026
|
+
writer.writeEnum(
|
|
11027
|
+
2,
|
|
11028
|
+
f
|
|
11029
|
+
);
|
|
11030
|
+
}
|
|
11031
|
+
f = message.getBlockTrigger();
|
|
11032
|
+
if (f != null) {
|
|
11033
|
+
writer.writeMessage(
|
|
11034
|
+
3,
|
|
11035
|
+
f,
|
|
11036
|
+
proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter
|
|
11037
|
+
);
|
|
11038
|
+
}
|
|
11039
|
+
f = message.getFixedTimeTrigger();
|
|
11040
|
+
if (f != null) {
|
|
11041
|
+
writer.writeMessage(
|
|
11042
|
+
4,
|
|
11043
|
+
f,
|
|
11044
|
+
proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter
|
|
11045
|
+
);
|
|
11046
|
+
}
|
|
11047
|
+
f = message.getCronTrigger();
|
|
11048
|
+
if (f != null) {
|
|
11049
|
+
writer.writeMessage(
|
|
11050
|
+
5,
|
|
11051
|
+
f,
|
|
11052
|
+
proto.aggregator.CronTrigger.Output.serializeBinaryToWriter
|
|
11053
|
+
);
|
|
11054
|
+
}
|
|
11055
|
+
f = message.getEventTrigger();
|
|
11056
|
+
if (f != null) {
|
|
11057
|
+
writer.writeMessage(
|
|
11058
|
+
6,
|
|
11059
|
+
f,
|
|
11060
|
+
proto.aggregator.EventTrigger.Output.serializeBinaryToWriter
|
|
11061
|
+
);
|
|
11062
|
+
}
|
|
11063
|
+
f = message.getManualTrigger();
|
|
11064
|
+
if (f != null) {
|
|
11065
|
+
writer.writeMessage(
|
|
11066
|
+
7,
|
|
11067
|
+
f,
|
|
11068
|
+
proto.aggregator.ManualTrigger.Output.serializeBinaryToWriter
|
|
11069
|
+
);
|
|
11070
|
+
}
|
|
11071
|
+
f = message.getIsBlocking();
|
|
11072
|
+
if (f) {
|
|
11073
|
+
writer.writeBool(
|
|
11074
|
+
8,
|
|
11075
|
+
f
|
|
11076
|
+
);
|
|
11077
|
+
}
|
|
11078
|
+
};
|
|
11079
|
+
proto.aggregator.TriggerTaskReq.prototype.getTaskId = function() {
|
|
11080
|
+
return (
|
|
11081
|
+
/** @type {string} */
|
|
11082
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
11083
|
+
);
|
|
11084
|
+
};
|
|
11085
|
+
proto.aggregator.TriggerTaskReq.prototype.setTaskId = function(value) {
|
|
11086
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
11087
|
+
};
|
|
11088
|
+
proto.aggregator.TriggerTaskReq.prototype.getTriggerType = function() {
|
|
11089
|
+
return (
|
|
11090
|
+
/** @type {!proto.aggregator.TriggerType} */
|
|
11091
|
+
jspb.Message.getFieldWithDefault(this, 2, 0)
|
|
11092
|
+
);
|
|
11093
|
+
};
|
|
11094
|
+
proto.aggregator.TriggerTaskReq.prototype.setTriggerType = function(value) {
|
|
11095
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
11096
|
+
};
|
|
11097
|
+
proto.aggregator.TriggerTaskReq.prototype.getBlockTrigger = function() {
|
|
11098
|
+
return (
|
|
11099
|
+
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
11100
|
+
jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Output, 3)
|
|
11101
|
+
);
|
|
11102
|
+
};
|
|
11103
|
+
proto.aggregator.TriggerTaskReq.prototype.setBlockTrigger = function(value) {
|
|
11104
|
+
return jspb.Message.setOneofWrapperField(this, 3, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
11105
|
+
};
|
|
11106
|
+
proto.aggregator.TriggerTaskReq.prototype.clearBlockTrigger = function() {
|
|
11107
|
+
return this.setBlockTrigger(void 0);
|
|
11108
|
+
};
|
|
11109
|
+
proto.aggregator.TriggerTaskReq.prototype.hasBlockTrigger = function() {
|
|
11110
|
+
return jspb.Message.getField(this, 3) != null;
|
|
11111
|
+
};
|
|
11112
|
+
proto.aggregator.TriggerTaskReq.prototype.getFixedTimeTrigger = function() {
|
|
11113
|
+
return (
|
|
11114
|
+
/** @type{?proto.aggregator.FixedTimeTrigger.Output} */
|
|
11115
|
+
jspb.Message.getWrapperField(this, proto.aggregator.FixedTimeTrigger.Output, 4)
|
|
11116
|
+
);
|
|
11117
|
+
};
|
|
11118
|
+
proto.aggregator.TriggerTaskReq.prototype.setFixedTimeTrigger = function(value) {
|
|
11119
|
+
return jspb.Message.setOneofWrapperField(this, 4, proto.aggregator.TriggerTaskReq.oneofGroups_[0], value);
|
|
10692
11120
|
};
|
|
10693
11121
|
proto.aggregator.TriggerTaskReq.prototype.clearFixedTimeTrigger = function() {
|
|
10694
11122
|
return this.setFixedTimeTrigger(void 0);
|
|
@@ -13639,8 +14067,8 @@ var require_avs_pb = __commonJS({
|
|
|
13639
14067
|
var f, obj = {
|
|
13640
14068
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
13641
14069
|
error: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13642
|
-
nodeId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
13643
14070
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14071
|
+
executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
13644
14072
|
ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
|
|
13645
14073
|
graphql: (f = msg.getGraphql()) && proto.aggregator.GraphQLQueryNode.Output.toObject(includeInstance, f),
|
|
13646
14074
|
contractRead: (f = msg.getContractRead()) && proto.aggregator.ContractReadNode.Output.toObject(includeInstance, f),
|
|
@@ -13683,18 +14111,16 @@ var require_avs_pb = __commonJS({
|
|
|
13683
14111
|
);
|
|
13684
14112
|
msg.setError(value);
|
|
13685
14113
|
break;
|
|
13686
|
-
case 4:
|
|
13687
|
-
var value = (
|
|
13688
|
-
/** @type {string} */
|
|
13689
|
-
reader.readString()
|
|
13690
|
-
);
|
|
13691
|
-
msg.setNodeId(value);
|
|
13692
|
-
break;
|
|
13693
14114
|
case 5:
|
|
13694
14115
|
var value = new google_protobuf_struct_pb5.Value();
|
|
13695
14116
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
13696
14117
|
msg.setMetadata(value);
|
|
13697
14118
|
break;
|
|
14119
|
+
case 6:
|
|
14120
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
14121
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
14122
|
+
msg.setExecutionContext(value);
|
|
14123
|
+
break;
|
|
13698
14124
|
case 10:
|
|
13699
14125
|
var value = new proto.aggregator.ETHTransferNode.Output();
|
|
13700
14126
|
reader.readMessage(value, proto.aggregator.ETHTransferNode.Output.deserializeBinaryFromReader);
|
|
@@ -13768,13 +14194,6 @@ var require_avs_pb = __commonJS({
|
|
|
13768
14194
|
f
|
|
13769
14195
|
);
|
|
13770
14196
|
}
|
|
13771
|
-
f = message.getNodeId();
|
|
13772
|
-
if (f.length > 0) {
|
|
13773
|
-
writer.writeString(
|
|
13774
|
-
4,
|
|
13775
|
-
f
|
|
13776
|
-
);
|
|
13777
|
-
}
|
|
13778
14197
|
f = message.getMetadata();
|
|
13779
14198
|
if (f != null) {
|
|
13780
14199
|
writer.writeMessage(
|
|
@@ -13783,6 +14202,14 @@ var require_avs_pb = __commonJS({
|
|
|
13783
14202
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
13784
14203
|
);
|
|
13785
14204
|
}
|
|
14205
|
+
f = message.getExecutionContext();
|
|
14206
|
+
if (f != null) {
|
|
14207
|
+
writer.writeMessage(
|
|
14208
|
+
6,
|
|
14209
|
+
f,
|
|
14210
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
14211
|
+
);
|
|
14212
|
+
}
|
|
13786
14213
|
f = message.getEthTransfer();
|
|
13787
14214
|
if (f != null) {
|
|
13788
14215
|
writer.writeMessage(
|
|
@@ -13874,15 +14301,6 @@ var require_avs_pb = __commonJS({
|
|
|
13874
14301
|
proto.aggregator.RunNodeWithInputsResp.prototype.setError = function(value) {
|
|
13875
14302
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
13876
14303
|
};
|
|
13877
|
-
proto.aggregator.RunNodeWithInputsResp.prototype.getNodeId = function() {
|
|
13878
|
-
return (
|
|
13879
|
-
/** @type {string} */
|
|
13880
|
-
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
13881
|
-
);
|
|
13882
|
-
};
|
|
13883
|
-
proto.aggregator.RunNodeWithInputsResp.prototype.setNodeId = function(value) {
|
|
13884
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
13885
|
-
};
|
|
13886
14304
|
proto.aggregator.RunNodeWithInputsResp.prototype.getMetadata = function() {
|
|
13887
14305
|
return (
|
|
13888
14306
|
/** @type{?proto.google.protobuf.Value} */
|
|
@@ -13898,6 +14316,21 @@ var require_avs_pb = __commonJS({
|
|
|
13898
14316
|
proto.aggregator.RunNodeWithInputsResp.prototype.hasMetadata = function() {
|
|
13899
14317
|
return jspb.Message.getField(this, 5) != null;
|
|
13900
14318
|
};
|
|
14319
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.getExecutionContext = function() {
|
|
14320
|
+
return (
|
|
14321
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
14322
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 6)
|
|
14323
|
+
);
|
|
14324
|
+
};
|
|
14325
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.setExecutionContext = function(value) {
|
|
14326
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
14327
|
+
};
|
|
14328
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.clearExecutionContext = function() {
|
|
14329
|
+
return this.setExecutionContext(void 0);
|
|
14330
|
+
};
|
|
14331
|
+
proto.aggregator.RunNodeWithInputsResp.prototype.hasExecutionContext = function() {
|
|
14332
|
+
return jspb.Message.getField(this, 6) != null;
|
|
14333
|
+
};
|
|
13901
14334
|
proto.aggregator.RunNodeWithInputsResp.prototype.getEthTransfer = function() {
|
|
13902
14335
|
return (
|
|
13903
14336
|
/** @type{?proto.aggregator.ETHTransferNode.Output} */
|
|
@@ -14172,8 +14605,8 @@ var require_avs_pb = __commonJS({
|
|
|
14172
14605
|
var f, obj = {
|
|
14173
14606
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
14174
14607
|
error: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
14175
|
-
triggerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
14176
14608
|
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14609
|
+
executionContext: (f = msg.getExecutionContext()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14177
14610
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
14178
14611
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
14179
14612
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -14212,18 +14645,16 @@ var require_avs_pb = __commonJS({
|
|
|
14212
14645
|
);
|
|
14213
14646
|
msg.setError(value);
|
|
14214
14647
|
break;
|
|
14215
|
-
case 3:
|
|
14216
|
-
var value = (
|
|
14217
|
-
/** @type {string} */
|
|
14218
|
-
reader.readString()
|
|
14219
|
-
);
|
|
14220
|
-
msg.setTriggerId(value);
|
|
14221
|
-
break;
|
|
14222
14648
|
case 4:
|
|
14223
14649
|
var value = new google_protobuf_struct_pb5.Value();
|
|
14224
14650
|
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
14225
14651
|
msg.setMetadata(value);
|
|
14226
14652
|
break;
|
|
14653
|
+
case 5:
|
|
14654
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
14655
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
14656
|
+
msg.setExecutionContext(value);
|
|
14657
|
+
break;
|
|
14227
14658
|
case 10:
|
|
14228
14659
|
var value = new proto.aggregator.BlockTrigger.Output();
|
|
14229
14660
|
reader.readMessage(value, proto.aggregator.BlockTrigger.Output.deserializeBinaryFromReader);
|
|
@@ -14277,13 +14708,6 @@ var require_avs_pb = __commonJS({
|
|
|
14277
14708
|
f
|
|
14278
14709
|
);
|
|
14279
14710
|
}
|
|
14280
|
-
f = message.getTriggerId();
|
|
14281
|
-
if (f.length > 0) {
|
|
14282
|
-
writer.writeString(
|
|
14283
|
-
3,
|
|
14284
|
-
f
|
|
14285
|
-
);
|
|
14286
|
-
}
|
|
14287
14711
|
f = message.getMetadata();
|
|
14288
14712
|
if (f != null) {
|
|
14289
14713
|
writer.writeMessage(
|
|
@@ -14292,6 +14716,14 @@ var require_avs_pb = __commonJS({
|
|
|
14292
14716
|
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
14293
14717
|
);
|
|
14294
14718
|
}
|
|
14719
|
+
f = message.getExecutionContext();
|
|
14720
|
+
if (f != null) {
|
|
14721
|
+
writer.writeMessage(
|
|
14722
|
+
5,
|
|
14723
|
+
f,
|
|
14724
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
14725
|
+
);
|
|
14726
|
+
}
|
|
14295
14727
|
f = message.getBlockTrigger();
|
|
14296
14728
|
if (f != null) {
|
|
14297
14729
|
writer.writeMessage(
|
|
@@ -14351,15 +14783,6 @@ var require_avs_pb = __commonJS({
|
|
|
14351
14783
|
proto.aggregator.RunTriggerResp.prototype.setError = function(value) {
|
|
14352
14784
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
14353
14785
|
};
|
|
14354
|
-
proto.aggregator.RunTriggerResp.prototype.getTriggerId = function() {
|
|
14355
|
-
return (
|
|
14356
|
-
/** @type {string} */
|
|
14357
|
-
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
14358
|
-
);
|
|
14359
|
-
};
|
|
14360
|
-
proto.aggregator.RunTriggerResp.prototype.setTriggerId = function(value) {
|
|
14361
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
14362
|
-
};
|
|
14363
14786
|
proto.aggregator.RunTriggerResp.prototype.getMetadata = function() {
|
|
14364
14787
|
return (
|
|
14365
14788
|
/** @type{?proto.google.protobuf.Value} */
|
|
@@ -14375,6 +14798,21 @@ var require_avs_pb = __commonJS({
|
|
|
14375
14798
|
proto.aggregator.RunTriggerResp.prototype.hasMetadata = function() {
|
|
14376
14799
|
return jspb.Message.getField(this, 4) != null;
|
|
14377
14800
|
};
|
|
14801
|
+
proto.aggregator.RunTriggerResp.prototype.getExecutionContext = function() {
|
|
14802
|
+
return (
|
|
14803
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
14804
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 5)
|
|
14805
|
+
);
|
|
14806
|
+
};
|
|
14807
|
+
proto.aggregator.RunTriggerResp.prototype.setExecutionContext = function(value) {
|
|
14808
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
14809
|
+
};
|
|
14810
|
+
proto.aggregator.RunTriggerResp.prototype.clearExecutionContext = function() {
|
|
14811
|
+
return this.setExecutionContext(void 0);
|
|
14812
|
+
};
|
|
14813
|
+
proto.aggregator.RunTriggerResp.prototype.hasExecutionContext = function() {
|
|
14814
|
+
return jspb.Message.getField(this, 5) != null;
|
|
14815
|
+
};
|
|
14378
14816
|
proto.aggregator.RunTriggerResp.prototype.getBlockTrigger = function() {
|
|
14379
14817
|
return (
|
|
14380
14818
|
/** @type{?proto.aggregator.BlockTrigger.Output} */
|
|
@@ -14839,8 +15277,6 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
14839
15277
|
"use strict";
|
|
14840
15278
|
var grpc = require("@grpc/grpc-js");
|
|
14841
15279
|
var avs_pb23 = require_avs_pb();
|
|
14842
|
-
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
14843
|
-
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
14844
15280
|
var google_protobuf_struct_pb5 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
14845
15281
|
function serialize_aggregator_CancelTaskResp(arg) {
|
|
14846
15282
|
if (!(arg instanceof avs_pb23.CancelTaskResp)) {
|
|
@@ -15256,6 +15692,24 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15256
15692
|
function deserialize_aggregator_UpdateSecretResp(buffer_arg) {
|
|
15257
15693
|
return avs_pb23.UpdateSecretResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15258
15694
|
}
|
|
15695
|
+
function serialize_aggregator_WithdrawFundsReq(arg) {
|
|
15696
|
+
if (!(arg instanceof avs_pb23.WithdrawFundsReq)) {
|
|
15697
|
+
throw new Error("Expected argument of type aggregator.WithdrawFundsReq");
|
|
15698
|
+
}
|
|
15699
|
+
return Buffer.from(arg.serializeBinary());
|
|
15700
|
+
}
|
|
15701
|
+
function deserialize_aggregator_WithdrawFundsReq(buffer_arg) {
|
|
15702
|
+
return avs_pb23.WithdrawFundsReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15703
|
+
}
|
|
15704
|
+
function serialize_aggregator_WithdrawFundsResp(arg) {
|
|
15705
|
+
if (!(arg instanceof avs_pb23.WithdrawFundsResp)) {
|
|
15706
|
+
throw new Error("Expected argument of type aggregator.WithdrawFundsResp");
|
|
15707
|
+
}
|
|
15708
|
+
return Buffer.from(arg.serializeBinary());
|
|
15709
|
+
}
|
|
15710
|
+
function deserialize_aggregator_WithdrawFundsResp(buffer_arg) {
|
|
15711
|
+
return avs_pb23.WithdrawFundsResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
15712
|
+
}
|
|
15259
15713
|
var AggregatorService = exports2.AggregatorService = {
|
|
15260
15714
|
// Exchange for an Auth Key to authenticate in subsequent request
|
|
15261
15715
|
getKey: {
|
|
@@ -15326,6 +15780,18 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15326
15780
|
responseSerialize: serialize_aggregator_ListWalletResp,
|
|
15327
15781
|
responseDeserialize: deserialize_aggregator_ListWalletResp
|
|
15328
15782
|
},
|
|
15783
|
+
// Withdraw funds from a smart wallet using UserOp
|
|
15784
|
+
withdrawFunds: {
|
|
15785
|
+
path: "/aggregator.Aggregator/WithdrawFunds",
|
|
15786
|
+
requestStream: false,
|
|
15787
|
+
responseStream: false,
|
|
15788
|
+
requestType: avs_pb23.WithdrawFundsReq,
|
|
15789
|
+
responseType: avs_pb23.WithdrawFundsResp,
|
|
15790
|
+
requestSerialize: serialize_aggregator_WithdrawFundsReq,
|
|
15791
|
+
requestDeserialize: deserialize_aggregator_WithdrawFundsReq,
|
|
15792
|
+
responseSerialize: serialize_aggregator_WithdrawFundsResp,
|
|
15793
|
+
responseDeserialize: deserialize_aggregator_WithdrawFundsResp
|
|
15794
|
+
},
|
|
15329
15795
|
// Task Management Operation
|
|
15330
15796
|
createTask: {
|
|
15331
15797
|
path: "/aggregator.Aggregator/CreateTask",
|
|
@@ -15892,6 +16358,19 @@ function convertJSValueToProtobuf(value) {
|
|
|
15892
16358
|
}
|
|
15893
16359
|
return protobufValue;
|
|
15894
16360
|
}
|
|
16361
|
+
function toCamelCaseKeys(input) {
|
|
16362
|
+
if (input === null || input === void 0) return input;
|
|
16363
|
+
if (Array.isArray(input)) {
|
|
16364
|
+
return input.map((item) => toCamelCaseKeys(item));
|
|
16365
|
+
}
|
|
16366
|
+
if (typeof input !== "object") return input;
|
|
16367
|
+
const result = {};
|
|
16368
|
+
for (const [key, value] of Object.entries(input)) {
|
|
16369
|
+
const camelKey = key.replace(/_([a-z])/g, (_4, c) => c.toUpperCase());
|
|
16370
|
+
result[camelKey] = toCamelCaseKeys(value);
|
|
16371
|
+
}
|
|
16372
|
+
return result;
|
|
16373
|
+
}
|
|
15895
16374
|
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
15896
16375
|
switch (protobufType) {
|
|
15897
16376
|
case "TRIGGER_TYPE_MANUAL":
|
|
@@ -17459,6 +17938,8 @@ var Step = class _Step {
|
|
|
17459
17938
|
this.output = props.output;
|
|
17460
17939
|
this.startAt = props.startAt;
|
|
17461
17940
|
this.endAt = props.endAt;
|
|
17941
|
+
this.metadata = props.metadata;
|
|
17942
|
+
this.executionContext = props.executionContext;
|
|
17462
17943
|
}
|
|
17463
17944
|
/**
|
|
17464
17945
|
* Convert Step instance to plain object (StepProps)
|
|
@@ -17476,44 +17957,35 @@ var Step = class _Step {
|
|
|
17476
17957
|
config: this.config,
|
|
17477
17958
|
output: this.output,
|
|
17478
17959
|
startAt: this.startAt,
|
|
17479
|
-
endAt: this.endAt
|
|
17960
|
+
endAt: this.endAt,
|
|
17961
|
+
metadata: this.metadata,
|
|
17962
|
+
executionContext: this.executionContext
|
|
17480
17963
|
};
|
|
17481
17964
|
}
|
|
17482
17965
|
static getOutput(step) {
|
|
17483
|
-
const
|
|
17484
|
-
if (!
|
|
17485
|
-
|
|
17486
|
-
|
|
17487
|
-
|
|
17488
|
-
const result = {};
|
|
17489
|
-
if (typeof outputData.getData === "function") {
|
|
17490
|
-
result.data = convertProtobufValueToJs(outputData.getData());
|
|
17491
|
-
}
|
|
17492
|
-
if (typeof outputData.getMetadata === "function") {
|
|
17493
|
-
result.metadata = convertProtobufValueToJs(outputData.getMetadata());
|
|
17494
|
-
}
|
|
17495
|
-
return result;
|
|
17496
|
-
} catch (error) {
|
|
17497
|
-
console.warn("Failed to convert ContractWrite/ContractRead protobuf to JavaScript:", error);
|
|
17498
|
-
return outputData.getData ? outputData.getData() : null;
|
|
17499
|
-
}
|
|
17500
|
-
}
|
|
17501
|
-
if (typeof outputData.hasData === "function" && outputData.hasData()) {
|
|
17966
|
+
const outputObj = this.extractOutputData(step);
|
|
17967
|
+
if (!outputObj) return null;
|
|
17968
|
+
if (typeof outputObj.getData === "function") {
|
|
17969
|
+
const val = outputObj.getData();
|
|
17970
|
+
if (!val) return null;
|
|
17502
17971
|
try {
|
|
17503
|
-
return convertProtobufValueToJs(
|
|
17972
|
+
return convertProtobufValueToJs(val);
|
|
17504
17973
|
} catch (error) {
|
|
17505
17974
|
console.warn("Failed to convert protobuf Value to JavaScript:", error);
|
|
17506
|
-
return
|
|
17975
|
+
return val;
|
|
17507
17976
|
}
|
|
17508
|
-
}
|
|
17977
|
+
}
|
|
17978
|
+
const data = outputObj.data;
|
|
17979
|
+
if (data) {
|
|
17509
17980
|
try {
|
|
17510
|
-
return convertProtobufValueToJs(
|
|
17981
|
+
return typeof data.getKindCase === "function" ? convertProtobufValueToJs(data) : data;
|
|
17511
17982
|
} catch (error) {
|
|
17512
|
-
console.warn(
|
|
17513
|
-
|
|
17983
|
+
console.warn(
|
|
17984
|
+
"Failed to convert plain object Value to JavaScript:",
|
|
17985
|
+
error
|
|
17986
|
+
);
|
|
17987
|
+
return data;
|
|
17514
17988
|
}
|
|
17515
|
-
} else if (outputData.data) {
|
|
17516
|
-
return typeof outputData.data.getKindCase === "function" ? convertProtobufValueToJs(outputData.data) : outputData.data;
|
|
17517
17989
|
}
|
|
17518
17990
|
return null;
|
|
17519
17991
|
}
|
|
@@ -17604,6 +18076,28 @@ var Step = class _Step {
|
|
|
17604
18076
|
const getInputsList = () => typeof step.getInputsList === "function" ? step.getInputsList() : step.inputsList || [];
|
|
17605
18077
|
const getStartAt = () => typeof step.getStartAt === "function" ? step.getStartAt() : step.startAt;
|
|
17606
18078
|
const getEndAt = () => typeof step.getEndAt === "function" ? step.getEndAt() : step.endAt;
|
|
18079
|
+
let stepMetadata = void 0;
|
|
18080
|
+
if (typeof step.getMetadata === "function" && step.getMetadata()) {
|
|
18081
|
+
try {
|
|
18082
|
+
stepMetadata = convertProtobufValueToJs(step.getMetadata());
|
|
18083
|
+
} catch (e) {
|
|
18084
|
+
stepMetadata = step.getMetadata();
|
|
18085
|
+
}
|
|
18086
|
+
} else if (step.metadata) {
|
|
18087
|
+
stepMetadata = step.metadata;
|
|
18088
|
+
}
|
|
18089
|
+
let executionContext = void 0;
|
|
18090
|
+
if (typeof step.getExecutionContext === "function" && step.getExecutionContext()) {
|
|
18091
|
+
try {
|
|
18092
|
+
executionContext = convertProtobufValueToJs(
|
|
18093
|
+
step.getExecutionContext()
|
|
18094
|
+
);
|
|
18095
|
+
} catch (e) {
|
|
18096
|
+
executionContext = step.getExecutionContext();
|
|
18097
|
+
}
|
|
18098
|
+
} else if (step.executionContext) {
|
|
18099
|
+
executionContext = step.executionContext;
|
|
18100
|
+
}
|
|
17607
18101
|
return new _Step({
|
|
17608
18102
|
id: getId(),
|
|
17609
18103
|
type: convertProtobufStepTypeToSdk(getType()),
|
|
@@ -17615,7 +18109,9 @@ var Step = class _Step {
|
|
|
17615
18109
|
config: configData,
|
|
17616
18110
|
output: _Step.getOutput(step),
|
|
17617
18111
|
startAt: getStartAt(),
|
|
17618
|
-
endAt: getEndAt()
|
|
18112
|
+
endAt: getEndAt(),
|
|
18113
|
+
metadata: stepMetadata,
|
|
18114
|
+
executionContext
|
|
17619
18115
|
});
|
|
17620
18116
|
}
|
|
17621
18117
|
// Client side does not generate the step, so there's no toRequest() method
|
|
@@ -18028,6 +18524,41 @@ var Client = class extends BaseClient {
|
|
|
18028
18524
|
canceledTaskCount: result.getCanceledTaskCount()
|
|
18029
18525
|
};
|
|
18030
18526
|
}
|
|
18527
|
+
/**
|
|
18528
|
+
* Withdraw funds from a smart wallet using UserOp
|
|
18529
|
+
* @param {WithdrawFundsRequest} withdrawRequest - The withdraw request parameters
|
|
18530
|
+
* @param {string} withdrawRequest.recipientAddress - The recipient address to send funds to
|
|
18531
|
+
* @param {string} withdrawRequest.amount - The amount to withdraw in wei for ETH or smallest token unit for ERC20
|
|
18532
|
+
* @param {string} withdrawRequest.token - Token type: "ETH" for native ETH, or contract address for ERC20 tokens
|
|
18533
|
+
* @param {string} withdrawRequest.smartWalletAddress - Required: Smart wallet address to withdraw from (must be from user's getWallet() call)
|
|
18534
|
+
* @param {RequestOptions} options - Request options
|
|
18535
|
+
* @returns {Promise<WithdrawFundsResponse>} - The response from the withdraw operation
|
|
18536
|
+
*/
|
|
18537
|
+
async withdrawFunds({
|
|
18538
|
+
recipientAddress,
|
|
18539
|
+
amount,
|
|
18540
|
+
token,
|
|
18541
|
+
smartWalletAddress
|
|
18542
|
+
}, options) {
|
|
18543
|
+
const request = new avs_pb22.WithdrawFundsReq();
|
|
18544
|
+
request.setRecipientAddress(recipientAddress);
|
|
18545
|
+
request.setAmount(amount);
|
|
18546
|
+
request.setToken(token);
|
|
18547
|
+
request.setSmartWalletAddress(smartWalletAddress);
|
|
18548
|
+
const result = await this.sendGrpcRequest("withdrawFunds", request, options);
|
|
18549
|
+
return {
|
|
18550
|
+
success: result.getSuccess(),
|
|
18551
|
+
status: result.getStatus(),
|
|
18552
|
+
message: result.getMessage(),
|
|
18553
|
+
userOpHash: result.getUserOpHash() || void 0,
|
|
18554
|
+
transactionHash: result.getTransactionHash() || void 0,
|
|
18555
|
+
submittedAt: result.getSubmittedAt() || void 0,
|
|
18556
|
+
smartWalletAddress: result.getSmartWalletAddress(),
|
|
18557
|
+
recipientAddress: result.getRecipientAddress(),
|
|
18558
|
+
amount: result.getAmount(),
|
|
18559
|
+
token: result.getToken()
|
|
18560
|
+
};
|
|
18561
|
+
}
|
|
18031
18562
|
/**
|
|
18032
18563
|
* Submit a workflow to the AVS server; once the workflow is submitted, it cannot be modified
|
|
18033
18564
|
* @param {Workflow} workflow - Workflow object to submit
|
|
@@ -18572,8 +19103,7 @@ var Client = class extends BaseClient {
|
|
|
18572
19103
|
return {
|
|
18573
19104
|
success: false,
|
|
18574
19105
|
error: `Trigger type "${nodeType}" should use the runTrigger() method instead of runNodeWithInputs()`,
|
|
18575
|
-
data: null
|
|
18576
|
-
nodeId: ""
|
|
19106
|
+
data: null
|
|
18577
19107
|
};
|
|
18578
19108
|
}
|
|
18579
19109
|
const request = new avs_pb22.RunNodeWithInputsReq();
|
|
@@ -18592,10 +19122,10 @@ var Client = class extends BaseClient {
|
|
|
18592
19122
|
const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
|
|
18593
19123
|
return {
|
|
18594
19124
|
success: result.getSuccess(),
|
|
18595
|
-
data: factory_default2.fromOutputData(result),
|
|
19125
|
+
data: toCamelCaseKeys(factory_default2.fromOutputData(result)),
|
|
18596
19126
|
error: result.getError(),
|
|
18597
|
-
|
|
18598
|
-
|
|
19127
|
+
metadata: result.hasMetadata() ? toCamelCaseKeys(convertProtobufValueToJs(result.getMetadata())) : void 0,
|
|
19128
|
+
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
|
|
18599
19129
|
};
|
|
18600
19130
|
}
|
|
18601
19131
|
/**
|
|
@@ -18627,10 +19157,10 @@ var Client = class extends BaseClient {
|
|
|
18627
19157
|
}
|
|
18628
19158
|
return {
|
|
18629
19159
|
success: result.getSuccess(),
|
|
18630
|
-
data: factory_default.fromOutputData(result),
|
|
19160
|
+
data: toCamelCaseKeys(factory_default.fromOutputData(result)),
|
|
18631
19161
|
error: result.getError(),
|
|
18632
|
-
|
|
18633
|
-
|
|
19162
|
+
metadata: toCamelCaseKeys(metadata),
|
|
19163
|
+
executionContext: result.hasExecutionContext() ? toCamelCaseKeys(convertProtobufValueToJs(result.getExecutionContext())) : void 0
|
|
18634
19164
|
};
|
|
18635
19165
|
}
|
|
18636
19166
|
/**
|