@avaprotocol/sdk-js 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1489 -292
- package/dist/index.mjs +1489 -292
- package/dist/models/node/branch.d.ts.map +1 -1
- package/dist/models/node/branch.js +14 -5
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +13 -3
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +75 -3
- package/dist/models/node/loop.d.ts.map +1 -1
- package/dist/models/node/loop.js +10 -0
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +60 -1
- package/dist/models/trigger/event.js +18 -18
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -72,7 +72,13 @@ var require_avs_pb = __commonJS({
|
|
|
72
72
|
goog.exportSymbol("proto.aggregator.ContractReadNode.Output", null, global);
|
|
73
73
|
goog.exportSymbol("proto.aggregator.ContractWriteNode", null, global);
|
|
74
74
|
goog.exportSymbol("proto.aggregator.ContractWriteNode.Config", null, global);
|
|
75
|
+
goog.exportSymbol("proto.aggregator.ContractWriteNode.ErrorData", null, global);
|
|
76
|
+
goog.exportSymbol("proto.aggregator.ContractWriteNode.EventData", null, global);
|
|
77
|
+
goog.exportSymbol("proto.aggregator.ContractWriteNode.MethodCall", null, global);
|
|
78
|
+
goog.exportSymbol("proto.aggregator.ContractWriteNode.MethodResult", null, global);
|
|
75
79
|
goog.exportSymbol("proto.aggregator.ContractWriteNode.Output", null, global);
|
|
80
|
+
goog.exportSymbol("proto.aggregator.ContractWriteNode.ReturnData", null, global);
|
|
81
|
+
goog.exportSymbol("proto.aggregator.ContractWriteNode.TransactionData", null, global);
|
|
76
82
|
goog.exportSymbol("proto.aggregator.CreateOrUpdateSecretReq", null, global);
|
|
77
83
|
goog.exportSymbol("proto.aggregator.CreateTaskReq", null, global);
|
|
78
84
|
goog.exportSymbol("proto.aggregator.CreateTaskResp", null, global);
|
|
@@ -363,19 +369,61 @@ var require_avs_pb = __commonJS({
|
|
|
363
369
|
proto.aggregator.ContractWriteNode.displayName = "proto.aggregator.ContractWriteNode";
|
|
364
370
|
}
|
|
365
371
|
proto.aggregator.ContractWriteNode.Config = function(opt_data) {
|
|
366
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
372
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.ContractWriteNode.Config.repeatedFields_, null);
|
|
367
373
|
};
|
|
368
374
|
goog.inherits(proto.aggregator.ContractWriteNode.Config, jspb.Message);
|
|
369
375
|
if (goog.DEBUG && !COMPILED) {
|
|
370
376
|
proto.aggregator.ContractWriteNode.Config.displayName = "proto.aggregator.ContractWriteNode.Config";
|
|
371
377
|
}
|
|
372
|
-
proto.aggregator.ContractWriteNode.
|
|
378
|
+
proto.aggregator.ContractWriteNode.MethodCall = function(opt_data) {
|
|
373
379
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
374
380
|
};
|
|
381
|
+
goog.inherits(proto.aggregator.ContractWriteNode.MethodCall, jspb.Message);
|
|
382
|
+
if (goog.DEBUG && !COMPILED) {
|
|
383
|
+
proto.aggregator.ContractWriteNode.MethodCall.displayName = "proto.aggregator.ContractWriteNode.MethodCall";
|
|
384
|
+
}
|
|
385
|
+
proto.aggregator.ContractWriteNode.Output = function(opt_data) {
|
|
386
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.ContractWriteNode.Output.repeatedFields_, null);
|
|
387
|
+
};
|
|
375
388
|
goog.inherits(proto.aggregator.ContractWriteNode.Output, jspb.Message);
|
|
376
389
|
if (goog.DEBUG && !COMPILED) {
|
|
377
390
|
proto.aggregator.ContractWriteNode.Output.displayName = "proto.aggregator.ContractWriteNode.Output";
|
|
378
391
|
}
|
|
392
|
+
proto.aggregator.ContractWriteNode.MethodResult = function(opt_data) {
|
|
393
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.ContractWriteNode.MethodResult.repeatedFields_, null);
|
|
394
|
+
};
|
|
395
|
+
goog.inherits(proto.aggregator.ContractWriteNode.MethodResult, jspb.Message);
|
|
396
|
+
if (goog.DEBUG && !COMPILED) {
|
|
397
|
+
proto.aggregator.ContractWriteNode.MethodResult.displayName = "proto.aggregator.ContractWriteNode.MethodResult";
|
|
398
|
+
}
|
|
399
|
+
proto.aggregator.ContractWriteNode.TransactionData = function(opt_data) {
|
|
400
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
401
|
+
};
|
|
402
|
+
goog.inherits(proto.aggregator.ContractWriteNode.TransactionData, jspb.Message);
|
|
403
|
+
if (goog.DEBUG && !COMPILED) {
|
|
404
|
+
proto.aggregator.ContractWriteNode.TransactionData.displayName = "proto.aggregator.ContractWriteNode.TransactionData";
|
|
405
|
+
}
|
|
406
|
+
proto.aggregator.ContractWriteNode.EventData = function(opt_data) {
|
|
407
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.ContractWriteNode.EventData.repeatedFields_, null);
|
|
408
|
+
};
|
|
409
|
+
goog.inherits(proto.aggregator.ContractWriteNode.EventData, jspb.Message);
|
|
410
|
+
if (goog.DEBUG && !COMPILED) {
|
|
411
|
+
proto.aggregator.ContractWriteNode.EventData.displayName = "proto.aggregator.ContractWriteNode.EventData";
|
|
412
|
+
}
|
|
413
|
+
proto.aggregator.ContractWriteNode.ErrorData = function(opt_data) {
|
|
414
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
415
|
+
};
|
|
416
|
+
goog.inherits(proto.aggregator.ContractWriteNode.ErrorData, jspb.Message);
|
|
417
|
+
if (goog.DEBUG && !COMPILED) {
|
|
418
|
+
proto.aggregator.ContractWriteNode.ErrorData.displayName = "proto.aggregator.ContractWriteNode.ErrorData";
|
|
419
|
+
}
|
|
420
|
+
proto.aggregator.ContractWriteNode.ReturnData = function(opt_data) {
|
|
421
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
422
|
+
};
|
|
423
|
+
goog.inherits(proto.aggregator.ContractWriteNode.ReturnData, jspb.Message);
|
|
424
|
+
if (goog.DEBUG && !COMPILED) {
|
|
425
|
+
proto.aggregator.ContractWriteNode.ReturnData.displayName = "proto.aggregator.ContractWriteNode.ReturnData";
|
|
426
|
+
}
|
|
379
427
|
proto.aggregator.ContractReadNode = function(opt_data) {
|
|
380
428
|
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
381
429
|
};
|
|
@@ -3521,93 +3569,1203 @@ var require_avs_pb = __commonJS({
|
|
|
3521
3569
|
);
|
|
3522
3570
|
}
|
|
3523
3571
|
};
|
|
3524
|
-
proto.aggregator.ETHTransferNode.Output.prototype.getTransactionHash = function() {
|
|
3572
|
+
proto.aggregator.ETHTransferNode.Output.prototype.getTransactionHash = function() {
|
|
3573
|
+
return (
|
|
3574
|
+
/** @type {string} */
|
|
3575
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3576
|
+
);
|
|
3577
|
+
};
|
|
3578
|
+
proto.aggregator.ETHTransferNode.Output.prototype.setTransactionHash = function(value) {
|
|
3579
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3580
|
+
};
|
|
3581
|
+
proto.aggregator.ETHTransferNode.prototype.getConfig = function() {
|
|
3582
|
+
return (
|
|
3583
|
+
/** @type{?proto.aggregator.ETHTransferNode.Config} */
|
|
3584
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ETHTransferNode.Config, 1)
|
|
3585
|
+
);
|
|
3586
|
+
};
|
|
3587
|
+
proto.aggregator.ETHTransferNode.prototype.setConfig = function(value) {
|
|
3588
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
3589
|
+
};
|
|
3590
|
+
proto.aggregator.ETHTransferNode.prototype.clearConfig = function() {
|
|
3591
|
+
return this.setConfig(void 0);
|
|
3592
|
+
};
|
|
3593
|
+
proto.aggregator.ETHTransferNode.prototype.hasConfig = function() {
|
|
3594
|
+
return jspb.Message.getField(this, 1) != null;
|
|
3595
|
+
};
|
|
3596
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3597
|
+
proto.aggregator.ContractWriteNode.prototype.toObject = function(opt_includeInstance) {
|
|
3598
|
+
return proto.aggregator.ContractWriteNode.toObject(opt_includeInstance, this);
|
|
3599
|
+
};
|
|
3600
|
+
proto.aggregator.ContractWriteNode.toObject = function(includeInstance, msg) {
|
|
3601
|
+
var f, obj = {
|
|
3602
|
+
config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f)
|
|
3603
|
+
};
|
|
3604
|
+
if (includeInstance) {
|
|
3605
|
+
obj.$jspbMessageInstance = msg;
|
|
3606
|
+
}
|
|
3607
|
+
return obj;
|
|
3608
|
+
};
|
|
3609
|
+
}
|
|
3610
|
+
proto.aggregator.ContractWriteNode.deserializeBinary = function(bytes) {
|
|
3611
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3612
|
+
var msg = new proto.aggregator.ContractWriteNode();
|
|
3613
|
+
return proto.aggregator.ContractWriteNode.deserializeBinaryFromReader(msg, reader);
|
|
3614
|
+
};
|
|
3615
|
+
proto.aggregator.ContractWriteNode.deserializeBinaryFromReader = function(msg, reader) {
|
|
3616
|
+
while (reader.nextField()) {
|
|
3617
|
+
if (reader.isEndGroup()) {
|
|
3618
|
+
break;
|
|
3619
|
+
}
|
|
3620
|
+
var field = reader.getFieldNumber();
|
|
3621
|
+
switch (field) {
|
|
3622
|
+
case 1:
|
|
3623
|
+
var value = new proto.aggregator.ContractWriteNode.Config();
|
|
3624
|
+
reader.readMessage(value, proto.aggregator.ContractWriteNode.Config.deserializeBinaryFromReader);
|
|
3625
|
+
msg.setConfig(value);
|
|
3626
|
+
break;
|
|
3627
|
+
default:
|
|
3628
|
+
reader.skipField();
|
|
3629
|
+
break;
|
|
3630
|
+
}
|
|
3631
|
+
}
|
|
3632
|
+
return msg;
|
|
3633
|
+
};
|
|
3634
|
+
proto.aggregator.ContractWriteNode.prototype.serializeBinary = function() {
|
|
3635
|
+
var writer = new jspb.BinaryWriter();
|
|
3636
|
+
proto.aggregator.ContractWriteNode.serializeBinaryToWriter(this, writer);
|
|
3637
|
+
return writer.getResultBuffer();
|
|
3638
|
+
};
|
|
3639
|
+
proto.aggregator.ContractWriteNode.serializeBinaryToWriter = function(message, writer) {
|
|
3640
|
+
var f = void 0;
|
|
3641
|
+
f = message.getConfig();
|
|
3642
|
+
if (f != null) {
|
|
3643
|
+
writer.writeMessage(
|
|
3644
|
+
1,
|
|
3645
|
+
f,
|
|
3646
|
+
proto.aggregator.ContractWriteNode.Config.serializeBinaryToWriter
|
|
3647
|
+
);
|
|
3648
|
+
}
|
|
3649
|
+
};
|
|
3650
|
+
proto.aggregator.ContractWriteNode.Config.repeatedFields_ = [4];
|
|
3651
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3652
|
+
proto.aggregator.ContractWriteNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
3653
|
+
return proto.aggregator.ContractWriteNode.Config.toObject(opt_includeInstance, this);
|
|
3654
|
+
};
|
|
3655
|
+
proto.aggregator.ContractWriteNode.Config.toObject = function(includeInstance, msg) {
|
|
3656
|
+
var f, obj = {
|
|
3657
|
+
contractAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3658
|
+
callData: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3659
|
+
contractAbi: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3660
|
+
methodCallsList: jspb.Message.toObjectList(
|
|
3661
|
+
msg.getMethodCallsList(),
|
|
3662
|
+
proto.aggregator.ContractWriteNode.MethodCall.toObject,
|
|
3663
|
+
includeInstance
|
|
3664
|
+
)
|
|
3665
|
+
};
|
|
3666
|
+
if (includeInstance) {
|
|
3667
|
+
obj.$jspbMessageInstance = msg;
|
|
3668
|
+
}
|
|
3669
|
+
return obj;
|
|
3670
|
+
};
|
|
3671
|
+
}
|
|
3672
|
+
proto.aggregator.ContractWriteNode.Config.deserializeBinary = function(bytes) {
|
|
3673
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3674
|
+
var msg = new proto.aggregator.ContractWriteNode.Config();
|
|
3675
|
+
return proto.aggregator.ContractWriteNode.Config.deserializeBinaryFromReader(msg, reader);
|
|
3676
|
+
};
|
|
3677
|
+
proto.aggregator.ContractWriteNode.Config.deserializeBinaryFromReader = function(msg, reader) {
|
|
3678
|
+
while (reader.nextField()) {
|
|
3679
|
+
if (reader.isEndGroup()) {
|
|
3680
|
+
break;
|
|
3681
|
+
}
|
|
3682
|
+
var field = reader.getFieldNumber();
|
|
3683
|
+
switch (field) {
|
|
3684
|
+
case 1:
|
|
3685
|
+
var value = (
|
|
3686
|
+
/** @type {string} */
|
|
3687
|
+
reader.readString()
|
|
3688
|
+
);
|
|
3689
|
+
msg.setContractAddress(value);
|
|
3690
|
+
break;
|
|
3691
|
+
case 2:
|
|
3692
|
+
var value = (
|
|
3693
|
+
/** @type {string} */
|
|
3694
|
+
reader.readString()
|
|
3695
|
+
);
|
|
3696
|
+
msg.setCallData(value);
|
|
3697
|
+
break;
|
|
3698
|
+
case 3:
|
|
3699
|
+
var value = (
|
|
3700
|
+
/** @type {string} */
|
|
3701
|
+
reader.readString()
|
|
3702
|
+
);
|
|
3703
|
+
msg.setContractAbi(value);
|
|
3704
|
+
break;
|
|
3705
|
+
case 4:
|
|
3706
|
+
var value = new proto.aggregator.ContractWriteNode.MethodCall();
|
|
3707
|
+
reader.readMessage(value, proto.aggregator.ContractWriteNode.MethodCall.deserializeBinaryFromReader);
|
|
3708
|
+
msg.addMethodCalls(value);
|
|
3709
|
+
break;
|
|
3710
|
+
default:
|
|
3711
|
+
reader.skipField();
|
|
3712
|
+
break;
|
|
3713
|
+
}
|
|
3714
|
+
}
|
|
3715
|
+
return msg;
|
|
3716
|
+
};
|
|
3717
|
+
proto.aggregator.ContractWriteNode.Config.prototype.serializeBinary = function() {
|
|
3718
|
+
var writer = new jspb.BinaryWriter();
|
|
3719
|
+
proto.aggregator.ContractWriteNode.Config.serializeBinaryToWriter(this, writer);
|
|
3720
|
+
return writer.getResultBuffer();
|
|
3721
|
+
};
|
|
3722
|
+
proto.aggregator.ContractWriteNode.Config.serializeBinaryToWriter = function(message, writer) {
|
|
3723
|
+
var f = void 0;
|
|
3724
|
+
f = message.getContractAddress();
|
|
3725
|
+
if (f.length > 0) {
|
|
3726
|
+
writer.writeString(
|
|
3727
|
+
1,
|
|
3728
|
+
f
|
|
3729
|
+
);
|
|
3730
|
+
}
|
|
3731
|
+
f = message.getCallData();
|
|
3732
|
+
if (f.length > 0) {
|
|
3733
|
+
writer.writeString(
|
|
3734
|
+
2,
|
|
3735
|
+
f
|
|
3736
|
+
);
|
|
3737
|
+
}
|
|
3738
|
+
f = message.getContractAbi();
|
|
3739
|
+
if (f.length > 0) {
|
|
3740
|
+
writer.writeString(
|
|
3741
|
+
3,
|
|
3742
|
+
f
|
|
3743
|
+
);
|
|
3744
|
+
}
|
|
3745
|
+
f = message.getMethodCallsList();
|
|
3746
|
+
if (f.length > 0) {
|
|
3747
|
+
writer.writeRepeatedMessage(
|
|
3748
|
+
4,
|
|
3749
|
+
f,
|
|
3750
|
+
proto.aggregator.ContractWriteNode.MethodCall.serializeBinaryToWriter
|
|
3751
|
+
);
|
|
3752
|
+
}
|
|
3753
|
+
};
|
|
3754
|
+
proto.aggregator.ContractWriteNode.Config.prototype.getContractAddress = function() {
|
|
3755
|
+
return (
|
|
3756
|
+
/** @type {string} */
|
|
3757
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3758
|
+
);
|
|
3759
|
+
};
|
|
3760
|
+
proto.aggregator.ContractWriteNode.Config.prototype.setContractAddress = function(value) {
|
|
3761
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3762
|
+
};
|
|
3763
|
+
proto.aggregator.ContractWriteNode.Config.prototype.getCallData = function() {
|
|
3764
|
+
return (
|
|
3765
|
+
/** @type {string} */
|
|
3766
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
3767
|
+
);
|
|
3768
|
+
};
|
|
3769
|
+
proto.aggregator.ContractWriteNode.Config.prototype.setCallData = function(value) {
|
|
3770
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3771
|
+
};
|
|
3772
|
+
proto.aggregator.ContractWriteNode.Config.prototype.getContractAbi = function() {
|
|
3773
|
+
return (
|
|
3774
|
+
/** @type {string} */
|
|
3775
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
3776
|
+
);
|
|
3777
|
+
};
|
|
3778
|
+
proto.aggregator.ContractWriteNode.Config.prototype.setContractAbi = function(value) {
|
|
3779
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3780
|
+
};
|
|
3781
|
+
proto.aggregator.ContractWriteNode.Config.prototype.getMethodCallsList = function() {
|
|
3782
|
+
return (
|
|
3783
|
+
/** @type{!Array<!proto.aggregator.ContractWriteNode.MethodCall>} */
|
|
3784
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.ContractWriteNode.MethodCall, 4)
|
|
3785
|
+
);
|
|
3786
|
+
};
|
|
3787
|
+
proto.aggregator.ContractWriteNode.Config.prototype.setMethodCallsList = function(value) {
|
|
3788
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
3789
|
+
};
|
|
3790
|
+
proto.aggregator.ContractWriteNode.Config.prototype.addMethodCalls = function(opt_value, opt_index) {
|
|
3791
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.aggregator.ContractWriteNode.MethodCall, opt_index);
|
|
3792
|
+
};
|
|
3793
|
+
proto.aggregator.ContractWriteNode.Config.prototype.clearMethodCallsList = function() {
|
|
3794
|
+
return this.setMethodCallsList([]);
|
|
3795
|
+
};
|
|
3796
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3797
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.toObject = function(opt_includeInstance) {
|
|
3798
|
+
return proto.aggregator.ContractWriteNode.MethodCall.toObject(opt_includeInstance, this);
|
|
3799
|
+
};
|
|
3800
|
+
proto.aggregator.ContractWriteNode.MethodCall.toObject = function(includeInstance, msg) {
|
|
3801
|
+
var f, obj = {
|
|
3802
|
+
callData: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3803
|
+
methodName: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3804
|
+
};
|
|
3805
|
+
if (includeInstance) {
|
|
3806
|
+
obj.$jspbMessageInstance = msg;
|
|
3807
|
+
}
|
|
3808
|
+
return obj;
|
|
3809
|
+
};
|
|
3810
|
+
}
|
|
3811
|
+
proto.aggregator.ContractWriteNode.MethodCall.deserializeBinary = function(bytes) {
|
|
3812
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3813
|
+
var msg = new proto.aggregator.ContractWriteNode.MethodCall();
|
|
3814
|
+
return proto.aggregator.ContractWriteNode.MethodCall.deserializeBinaryFromReader(msg, reader);
|
|
3815
|
+
};
|
|
3816
|
+
proto.aggregator.ContractWriteNode.MethodCall.deserializeBinaryFromReader = function(msg, reader) {
|
|
3817
|
+
while (reader.nextField()) {
|
|
3818
|
+
if (reader.isEndGroup()) {
|
|
3819
|
+
break;
|
|
3820
|
+
}
|
|
3821
|
+
var field = reader.getFieldNumber();
|
|
3822
|
+
switch (field) {
|
|
3823
|
+
case 1:
|
|
3824
|
+
var value = (
|
|
3825
|
+
/** @type {string} */
|
|
3826
|
+
reader.readString()
|
|
3827
|
+
);
|
|
3828
|
+
msg.setCallData(value);
|
|
3829
|
+
break;
|
|
3830
|
+
case 2:
|
|
3831
|
+
var value = (
|
|
3832
|
+
/** @type {string} */
|
|
3833
|
+
reader.readString()
|
|
3834
|
+
);
|
|
3835
|
+
msg.setMethodName(value);
|
|
3836
|
+
break;
|
|
3837
|
+
default:
|
|
3838
|
+
reader.skipField();
|
|
3839
|
+
break;
|
|
3840
|
+
}
|
|
3841
|
+
}
|
|
3842
|
+
return msg;
|
|
3843
|
+
};
|
|
3844
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.serializeBinary = function() {
|
|
3845
|
+
var writer = new jspb.BinaryWriter();
|
|
3846
|
+
proto.aggregator.ContractWriteNode.MethodCall.serializeBinaryToWriter(this, writer);
|
|
3847
|
+
return writer.getResultBuffer();
|
|
3848
|
+
};
|
|
3849
|
+
proto.aggregator.ContractWriteNode.MethodCall.serializeBinaryToWriter = function(message, writer) {
|
|
3850
|
+
var f = void 0;
|
|
3851
|
+
f = message.getCallData();
|
|
3852
|
+
if (f.length > 0) {
|
|
3853
|
+
writer.writeString(
|
|
3854
|
+
1,
|
|
3855
|
+
f
|
|
3856
|
+
);
|
|
3857
|
+
}
|
|
3858
|
+
f = message.getMethodName();
|
|
3859
|
+
if (f.length > 0) {
|
|
3860
|
+
writer.writeString(
|
|
3861
|
+
2,
|
|
3862
|
+
f
|
|
3863
|
+
);
|
|
3864
|
+
}
|
|
3865
|
+
};
|
|
3866
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.getCallData = function() {
|
|
3867
|
+
return (
|
|
3868
|
+
/** @type {string} */
|
|
3869
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3870
|
+
);
|
|
3871
|
+
};
|
|
3872
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.setCallData = function(value) {
|
|
3873
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3874
|
+
};
|
|
3875
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.getMethodName = function() {
|
|
3876
|
+
return (
|
|
3877
|
+
/** @type {string} */
|
|
3878
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
3879
|
+
);
|
|
3880
|
+
};
|
|
3881
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.setMethodName = function(value) {
|
|
3882
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3883
|
+
};
|
|
3884
|
+
proto.aggregator.ContractWriteNode.Output.repeatedFields_ = [1];
|
|
3885
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3886
|
+
proto.aggregator.ContractWriteNode.Output.prototype.toObject = function(opt_includeInstance) {
|
|
3887
|
+
return proto.aggregator.ContractWriteNode.Output.toObject(opt_includeInstance, this);
|
|
3888
|
+
};
|
|
3889
|
+
proto.aggregator.ContractWriteNode.Output.toObject = function(includeInstance, msg) {
|
|
3890
|
+
var f, obj = {
|
|
3891
|
+
resultsList: jspb.Message.toObjectList(
|
|
3892
|
+
msg.getResultsList(),
|
|
3893
|
+
proto.aggregator.ContractWriteNode.MethodResult.toObject,
|
|
3894
|
+
includeInstance
|
|
3895
|
+
)
|
|
3896
|
+
};
|
|
3897
|
+
if (includeInstance) {
|
|
3898
|
+
obj.$jspbMessageInstance = msg;
|
|
3899
|
+
}
|
|
3900
|
+
return obj;
|
|
3901
|
+
};
|
|
3902
|
+
}
|
|
3903
|
+
proto.aggregator.ContractWriteNode.Output.deserializeBinary = function(bytes) {
|
|
3904
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3905
|
+
var msg = new proto.aggregator.ContractWriteNode.Output();
|
|
3906
|
+
return proto.aggregator.ContractWriteNode.Output.deserializeBinaryFromReader(msg, reader);
|
|
3907
|
+
};
|
|
3908
|
+
proto.aggregator.ContractWriteNode.Output.deserializeBinaryFromReader = function(msg, reader) {
|
|
3909
|
+
while (reader.nextField()) {
|
|
3910
|
+
if (reader.isEndGroup()) {
|
|
3911
|
+
break;
|
|
3912
|
+
}
|
|
3913
|
+
var field = reader.getFieldNumber();
|
|
3914
|
+
switch (field) {
|
|
3915
|
+
case 1:
|
|
3916
|
+
var value = new proto.aggregator.ContractWriteNode.MethodResult();
|
|
3917
|
+
reader.readMessage(value, proto.aggregator.ContractWriteNode.MethodResult.deserializeBinaryFromReader);
|
|
3918
|
+
msg.addResults(value);
|
|
3919
|
+
break;
|
|
3920
|
+
default:
|
|
3921
|
+
reader.skipField();
|
|
3922
|
+
break;
|
|
3923
|
+
}
|
|
3924
|
+
}
|
|
3925
|
+
return msg;
|
|
3926
|
+
};
|
|
3927
|
+
proto.aggregator.ContractWriteNode.Output.prototype.serializeBinary = function() {
|
|
3928
|
+
var writer = new jspb.BinaryWriter();
|
|
3929
|
+
proto.aggregator.ContractWriteNode.Output.serializeBinaryToWriter(this, writer);
|
|
3930
|
+
return writer.getResultBuffer();
|
|
3931
|
+
};
|
|
3932
|
+
proto.aggregator.ContractWriteNode.Output.serializeBinaryToWriter = function(message, writer) {
|
|
3933
|
+
var f = void 0;
|
|
3934
|
+
f = message.getResultsList();
|
|
3935
|
+
if (f.length > 0) {
|
|
3936
|
+
writer.writeRepeatedMessage(
|
|
3937
|
+
1,
|
|
3938
|
+
f,
|
|
3939
|
+
proto.aggregator.ContractWriteNode.MethodResult.serializeBinaryToWriter
|
|
3940
|
+
);
|
|
3941
|
+
}
|
|
3942
|
+
};
|
|
3943
|
+
proto.aggregator.ContractWriteNode.Output.prototype.getResultsList = function() {
|
|
3944
|
+
return (
|
|
3945
|
+
/** @type{!Array<!proto.aggregator.ContractWriteNode.MethodResult>} */
|
|
3946
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.ContractWriteNode.MethodResult, 1)
|
|
3947
|
+
);
|
|
3948
|
+
};
|
|
3949
|
+
proto.aggregator.ContractWriteNode.Output.prototype.setResultsList = function(value) {
|
|
3950
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
3951
|
+
};
|
|
3952
|
+
proto.aggregator.ContractWriteNode.Output.prototype.addResults = function(opt_value, opt_index) {
|
|
3953
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.aggregator.ContractWriteNode.MethodResult, opt_index);
|
|
3954
|
+
};
|
|
3955
|
+
proto.aggregator.ContractWriteNode.Output.prototype.clearResultsList = function() {
|
|
3956
|
+
return this.setResultsList([]);
|
|
3957
|
+
};
|
|
3958
|
+
proto.aggregator.ContractWriteNode.MethodResult.repeatedFields_ = [4];
|
|
3959
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3960
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.toObject = function(opt_includeInstance) {
|
|
3961
|
+
return proto.aggregator.ContractWriteNode.MethodResult.toObject(opt_includeInstance, this);
|
|
3962
|
+
};
|
|
3963
|
+
proto.aggregator.ContractWriteNode.MethodResult.toObject = function(includeInstance, msg) {
|
|
3964
|
+
var f, obj = {
|
|
3965
|
+
methodName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3966
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
3967
|
+
transaction: (f = msg.getTransaction()) && proto.aggregator.ContractWriteNode.TransactionData.toObject(includeInstance, f),
|
|
3968
|
+
eventsList: jspb.Message.toObjectList(
|
|
3969
|
+
msg.getEventsList(),
|
|
3970
|
+
proto.aggregator.ContractWriteNode.EventData.toObject,
|
|
3971
|
+
includeInstance
|
|
3972
|
+
),
|
|
3973
|
+
error: (f = msg.getError()) && proto.aggregator.ContractWriteNode.ErrorData.toObject(includeInstance, f),
|
|
3974
|
+
returnData: (f = msg.getReturnData()) && proto.aggregator.ContractWriteNode.ReturnData.toObject(includeInstance, f),
|
|
3975
|
+
inputData: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
3976
|
+
};
|
|
3977
|
+
if (includeInstance) {
|
|
3978
|
+
obj.$jspbMessageInstance = msg;
|
|
3979
|
+
}
|
|
3980
|
+
return obj;
|
|
3981
|
+
};
|
|
3982
|
+
}
|
|
3983
|
+
proto.aggregator.ContractWriteNode.MethodResult.deserializeBinary = function(bytes) {
|
|
3984
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3985
|
+
var msg = new proto.aggregator.ContractWriteNode.MethodResult();
|
|
3986
|
+
return proto.aggregator.ContractWriteNode.MethodResult.deserializeBinaryFromReader(msg, reader);
|
|
3987
|
+
};
|
|
3988
|
+
proto.aggregator.ContractWriteNode.MethodResult.deserializeBinaryFromReader = function(msg, reader) {
|
|
3989
|
+
while (reader.nextField()) {
|
|
3990
|
+
if (reader.isEndGroup()) {
|
|
3991
|
+
break;
|
|
3992
|
+
}
|
|
3993
|
+
var field = reader.getFieldNumber();
|
|
3994
|
+
switch (field) {
|
|
3995
|
+
case 1:
|
|
3996
|
+
var value = (
|
|
3997
|
+
/** @type {string} */
|
|
3998
|
+
reader.readString()
|
|
3999
|
+
);
|
|
4000
|
+
msg.setMethodName(value);
|
|
4001
|
+
break;
|
|
4002
|
+
case 2:
|
|
4003
|
+
var value = (
|
|
4004
|
+
/** @type {boolean} */
|
|
4005
|
+
reader.readBool()
|
|
4006
|
+
);
|
|
4007
|
+
msg.setSuccess(value);
|
|
4008
|
+
break;
|
|
4009
|
+
case 3:
|
|
4010
|
+
var value = new proto.aggregator.ContractWriteNode.TransactionData();
|
|
4011
|
+
reader.readMessage(value, proto.aggregator.ContractWriteNode.TransactionData.deserializeBinaryFromReader);
|
|
4012
|
+
msg.setTransaction(value);
|
|
4013
|
+
break;
|
|
4014
|
+
case 4:
|
|
4015
|
+
var value = new proto.aggregator.ContractWriteNode.EventData();
|
|
4016
|
+
reader.readMessage(value, proto.aggregator.ContractWriteNode.EventData.deserializeBinaryFromReader);
|
|
4017
|
+
msg.addEvents(value);
|
|
4018
|
+
break;
|
|
4019
|
+
case 5:
|
|
4020
|
+
var value = new proto.aggregator.ContractWriteNode.ErrorData();
|
|
4021
|
+
reader.readMessage(value, proto.aggregator.ContractWriteNode.ErrorData.deserializeBinaryFromReader);
|
|
4022
|
+
msg.setError(value);
|
|
4023
|
+
break;
|
|
4024
|
+
case 6:
|
|
4025
|
+
var value = new proto.aggregator.ContractWriteNode.ReturnData();
|
|
4026
|
+
reader.readMessage(value, proto.aggregator.ContractWriteNode.ReturnData.deserializeBinaryFromReader);
|
|
4027
|
+
msg.setReturnData(value);
|
|
4028
|
+
break;
|
|
4029
|
+
case 7:
|
|
4030
|
+
var value = (
|
|
4031
|
+
/** @type {string} */
|
|
4032
|
+
reader.readString()
|
|
4033
|
+
);
|
|
4034
|
+
msg.setInputData(value);
|
|
4035
|
+
break;
|
|
4036
|
+
default:
|
|
4037
|
+
reader.skipField();
|
|
4038
|
+
break;
|
|
4039
|
+
}
|
|
4040
|
+
}
|
|
4041
|
+
return msg;
|
|
4042
|
+
};
|
|
4043
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.serializeBinary = function() {
|
|
4044
|
+
var writer = new jspb.BinaryWriter();
|
|
4045
|
+
proto.aggregator.ContractWriteNode.MethodResult.serializeBinaryToWriter(this, writer);
|
|
4046
|
+
return writer.getResultBuffer();
|
|
4047
|
+
};
|
|
4048
|
+
proto.aggregator.ContractWriteNode.MethodResult.serializeBinaryToWriter = function(message, writer) {
|
|
4049
|
+
var f = void 0;
|
|
4050
|
+
f = message.getMethodName();
|
|
4051
|
+
if (f.length > 0) {
|
|
4052
|
+
writer.writeString(
|
|
4053
|
+
1,
|
|
4054
|
+
f
|
|
4055
|
+
);
|
|
4056
|
+
}
|
|
4057
|
+
f = message.getSuccess();
|
|
4058
|
+
if (f) {
|
|
4059
|
+
writer.writeBool(
|
|
4060
|
+
2,
|
|
4061
|
+
f
|
|
4062
|
+
);
|
|
4063
|
+
}
|
|
4064
|
+
f = message.getTransaction();
|
|
4065
|
+
if (f != null) {
|
|
4066
|
+
writer.writeMessage(
|
|
4067
|
+
3,
|
|
4068
|
+
f,
|
|
4069
|
+
proto.aggregator.ContractWriteNode.TransactionData.serializeBinaryToWriter
|
|
4070
|
+
);
|
|
4071
|
+
}
|
|
4072
|
+
f = message.getEventsList();
|
|
4073
|
+
if (f.length > 0) {
|
|
4074
|
+
writer.writeRepeatedMessage(
|
|
4075
|
+
4,
|
|
4076
|
+
f,
|
|
4077
|
+
proto.aggregator.ContractWriteNode.EventData.serializeBinaryToWriter
|
|
4078
|
+
);
|
|
4079
|
+
}
|
|
4080
|
+
f = message.getError();
|
|
4081
|
+
if (f != null) {
|
|
4082
|
+
writer.writeMessage(
|
|
4083
|
+
5,
|
|
4084
|
+
f,
|
|
4085
|
+
proto.aggregator.ContractWriteNode.ErrorData.serializeBinaryToWriter
|
|
4086
|
+
);
|
|
4087
|
+
}
|
|
4088
|
+
f = message.getReturnData();
|
|
4089
|
+
if (f != null) {
|
|
4090
|
+
writer.writeMessage(
|
|
4091
|
+
6,
|
|
4092
|
+
f,
|
|
4093
|
+
proto.aggregator.ContractWriteNode.ReturnData.serializeBinaryToWriter
|
|
4094
|
+
);
|
|
4095
|
+
}
|
|
4096
|
+
f = message.getInputData();
|
|
4097
|
+
if (f.length > 0) {
|
|
4098
|
+
writer.writeString(
|
|
4099
|
+
7,
|
|
4100
|
+
f
|
|
4101
|
+
);
|
|
4102
|
+
}
|
|
4103
|
+
};
|
|
4104
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getMethodName = function() {
|
|
4105
|
+
return (
|
|
4106
|
+
/** @type {string} */
|
|
4107
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
4108
|
+
);
|
|
4109
|
+
};
|
|
4110
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setMethodName = function(value) {
|
|
4111
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4112
|
+
};
|
|
4113
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getSuccess = function() {
|
|
4114
|
+
return (
|
|
4115
|
+
/** @type {boolean} */
|
|
4116
|
+
jspb.Message.getBooleanFieldWithDefault(this, 2, false)
|
|
4117
|
+
);
|
|
4118
|
+
};
|
|
4119
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setSuccess = function(value) {
|
|
4120
|
+
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
4121
|
+
};
|
|
4122
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getTransaction = function() {
|
|
4123
|
+
return (
|
|
4124
|
+
/** @type{?proto.aggregator.ContractWriteNode.TransactionData} */
|
|
4125
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ContractWriteNode.TransactionData, 3)
|
|
4126
|
+
);
|
|
4127
|
+
};
|
|
4128
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setTransaction = function(value) {
|
|
4129
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
4130
|
+
};
|
|
4131
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearTransaction = function() {
|
|
4132
|
+
return this.setTransaction(void 0);
|
|
4133
|
+
};
|
|
4134
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasTransaction = function() {
|
|
4135
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4136
|
+
};
|
|
4137
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getEventsList = function() {
|
|
4138
|
+
return (
|
|
4139
|
+
/** @type{!Array<!proto.aggregator.ContractWriteNode.EventData>} */
|
|
4140
|
+
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.ContractWriteNode.EventData, 4)
|
|
4141
|
+
);
|
|
4142
|
+
};
|
|
4143
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setEventsList = function(value) {
|
|
4144
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
4145
|
+
};
|
|
4146
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.addEvents = function(opt_value, opt_index) {
|
|
4147
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.aggregator.ContractWriteNode.EventData, opt_index);
|
|
4148
|
+
};
|
|
4149
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearEventsList = function() {
|
|
4150
|
+
return this.setEventsList([]);
|
|
4151
|
+
};
|
|
4152
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getError = function() {
|
|
4153
|
+
return (
|
|
4154
|
+
/** @type{?proto.aggregator.ContractWriteNode.ErrorData} */
|
|
4155
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ContractWriteNode.ErrorData, 5)
|
|
4156
|
+
);
|
|
4157
|
+
};
|
|
4158
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setError = function(value) {
|
|
4159
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
4160
|
+
};
|
|
4161
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearError = function() {
|
|
4162
|
+
return this.setError(void 0);
|
|
4163
|
+
};
|
|
4164
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasError = function() {
|
|
4165
|
+
return jspb.Message.getField(this, 5) != null;
|
|
4166
|
+
};
|
|
4167
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getReturnData = function() {
|
|
4168
|
+
return (
|
|
4169
|
+
/** @type{?proto.aggregator.ContractWriteNode.ReturnData} */
|
|
4170
|
+
jspb.Message.getWrapperField(this, proto.aggregator.ContractWriteNode.ReturnData, 6)
|
|
4171
|
+
);
|
|
4172
|
+
};
|
|
4173
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setReturnData = function(value) {
|
|
4174
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
4175
|
+
};
|
|
4176
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearReturnData = function() {
|
|
4177
|
+
return this.setReturnData(void 0);
|
|
4178
|
+
};
|
|
4179
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasReturnData = function() {
|
|
4180
|
+
return jspb.Message.getField(this, 6) != null;
|
|
4181
|
+
};
|
|
4182
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getInputData = function() {
|
|
4183
|
+
return (
|
|
4184
|
+
/** @type {string} */
|
|
4185
|
+
jspb.Message.getFieldWithDefault(this, 7, "")
|
|
4186
|
+
);
|
|
4187
|
+
};
|
|
4188
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setInputData = function(value) {
|
|
4189
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
4190
|
+
};
|
|
4191
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4192
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.toObject = function(opt_includeInstance) {
|
|
4193
|
+
return proto.aggregator.ContractWriteNode.TransactionData.toObject(opt_includeInstance, this);
|
|
4194
|
+
};
|
|
4195
|
+
proto.aggregator.ContractWriteNode.TransactionData.toObject = function(includeInstance, msg) {
|
|
4196
|
+
var f, obj = {
|
|
4197
|
+
hash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4198
|
+
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4199
|
+
blockNumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4200
|
+
blockHash: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
4201
|
+
gasUsed: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
4202
|
+
gasLimit: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
4203
|
+
gasPrice: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
4204
|
+
effectiveGasPrice: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
4205
|
+
from: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
4206
|
+
to: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
4207
|
+
value: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
4208
|
+
nonce: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
4209
|
+
transactionIndex: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
4210
|
+
confirmations: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
4211
|
+
timestamp: jspb.Message.getFieldWithDefault(msg, 15, 0)
|
|
4212
|
+
};
|
|
4213
|
+
if (includeInstance) {
|
|
4214
|
+
obj.$jspbMessageInstance = msg;
|
|
4215
|
+
}
|
|
4216
|
+
return obj;
|
|
4217
|
+
};
|
|
4218
|
+
}
|
|
4219
|
+
proto.aggregator.ContractWriteNode.TransactionData.deserializeBinary = function(bytes) {
|
|
4220
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4221
|
+
var msg = new proto.aggregator.ContractWriteNode.TransactionData();
|
|
4222
|
+
return proto.aggregator.ContractWriteNode.TransactionData.deserializeBinaryFromReader(msg, reader);
|
|
4223
|
+
};
|
|
4224
|
+
proto.aggregator.ContractWriteNode.TransactionData.deserializeBinaryFromReader = function(msg, reader) {
|
|
4225
|
+
while (reader.nextField()) {
|
|
4226
|
+
if (reader.isEndGroup()) {
|
|
4227
|
+
break;
|
|
4228
|
+
}
|
|
4229
|
+
var field = reader.getFieldNumber();
|
|
4230
|
+
switch (field) {
|
|
4231
|
+
case 1:
|
|
4232
|
+
var value = (
|
|
4233
|
+
/** @type {string} */
|
|
4234
|
+
reader.readString()
|
|
4235
|
+
);
|
|
4236
|
+
msg.setHash(value);
|
|
4237
|
+
break;
|
|
4238
|
+
case 2:
|
|
4239
|
+
var value = (
|
|
4240
|
+
/** @type {string} */
|
|
4241
|
+
reader.readString()
|
|
4242
|
+
);
|
|
4243
|
+
msg.setStatus(value);
|
|
4244
|
+
break;
|
|
4245
|
+
case 3:
|
|
4246
|
+
var value = (
|
|
4247
|
+
/** @type {string} */
|
|
4248
|
+
reader.readString()
|
|
4249
|
+
);
|
|
4250
|
+
msg.setBlockNumber(value);
|
|
4251
|
+
break;
|
|
4252
|
+
case 4:
|
|
4253
|
+
var value = (
|
|
4254
|
+
/** @type {string} */
|
|
4255
|
+
reader.readString()
|
|
4256
|
+
);
|
|
4257
|
+
msg.setBlockHash(value);
|
|
4258
|
+
break;
|
|
4259
|
+
case 5:
|
|
4260
|
+
var value = (
|
|
4261
|
+
/** @type {string} */
|
|
4262
|
+
reader.readString()
|
|
4263
|
+
);
|
|
4264
|
+
msg.setGasUsed(value);
|
|
4265
|
+
break;
|
|
4266
|
+
case 6:
|
|
4267
|
+
var value = (
|
|
4268
|
+
/** @type {string} */
|
|
4269
|
+
reader.readString()
|
|
4270
|
+
);
|
|
4271
|
+
msg.setGasLimit(value);
|
|
4272
|
+
break;
|
|
4273
|
+
case 7:
|
|
4274
|
+
var value = (
|
|
4275
|
+
/** @type {string} */
|
|
4276
|
+
reader.readString()
|
|
4277
|
+
);
|
|
4278
|
+
msg.setGasPrice(value);
|
|
4279
|
+
break;
|
|
4280
|
+
case 8:
|
|
4281
|
+
var value = (
|
|
4282
|
+
/** @type {string} */
|
|
4283
|
+
reader.readString()
|
|
4284
|
+
);
|
|
4285
|
+
msg.setEffectiveGasPrice(value);
|
|
4286
|
+
break;
|
|
4287
|
+
case 9:
|
|
4288
|
+
var value = (
|
|
4289
|
+
/** @type {string} */
|
|
4290
|
+
reader.readString()
|
|
4291
|
+
);
|
|
4292
|
+
msg.setFrom(value);
|
|
4293
|
+
break;
|
|
4294
|
+
case 10:
|
|
4295
|
+
var value = (
|
|
4296
|
+
/** @type {string} */
|
|
4297
|
+
reader.readString()
|
|
4298
|
+
);
|
|
4299
|
+
msg.setTo(value);
|
|
4300
|
+
break;
|
|
4301
|
+
case 11:
|
|
4302
|
+
var value = (
|
|
4303
|
+
/** @type {string} */
|
|
4304
|
+
reader.readString()
|
|
4305
|
+
);
|
|
4306
|
+
msg.setValue(value);
|
|
4307
|
+
break;
|
|
4308
|
+
case 12:
|
|
4309
|
+
var value = (
|
|
4310
|
+
/** @type {string} */
|
|
4311
|
+
reader.readString()
|
|
4312
|
+
);
|
|
4313
|
+
msg.setNonce(value);
|
|
4314
|
+
break;
|
|
4315
|
+
case 13:
|
|
4316
|
+
var value = (
|
|
4317
|
+
/** @type {string} */
|
|
4318
|
+
reader.readString()
|
|
4319
|
+
);
|
|
4320
|
+
msg.setTransactionIndex(value);
|
|
4321
|
+
break;
|
|
4322
|
+
case 14:
|
|
4323
|
+
var value = (
|
|
4324
|
+
/** @type {string} */
|
|
4325
|
+
reader.readString()
|
|
4326
|
+
);
|
|
4327
|
+
msg.setConfirmations(value);
|
|
4328
|
+
break;
|
|
4329
|
+
case 15:
|
|
4330
|
+
var value = (
|
|
4331
|
+
/** @type {number} */
|
|
4332
|
+
reader.readInt64()
|
|
4333
|
+
);
|
|
4334
|
+
msg.setTimestamp(value);
|
|
4335
|
+
break;
|
|
4336
|
+
default:
|
|
4337
|
+
reader.skipField();
|
|
4338
|
+
break;
|
|
4339
|
+
}
|
|
4340
|
+
}
|
|
4341
|
+
return msg;
|
|
4342
|
+
};
|
|
4343
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.serializeBinary = function() {
|
|
4344
|
+
var writer = new jspb.BinaryWriter();
|
|
4345
|
+
proto.aggregator.ContractWriteNode.TransactionData.serializeBinaryToWriter(this, writer);
|
|
4346
|
+
return writer.getResultBuffer();
|
|
4347
|
+
};
|
|
4348
|
+
proto.aggregator.ContractWriteNode.TransactionData.serializeBinaryToWriter = function(message, writer) {
|
|
4349
|
+
var f = void 0;
|
|
4350
|
+
f = message.getHash();
|
|
4351
|
+
if (f.length > 0) {
|
|
4352
|
+
writer.writeString(
|
|
4353
|
+
1,
|
|
4354
|
+
f
|
|
4355
|
+
);
|
|
4356
|
+
}
|
|
4357
|
+
f = message.getStatus();
|
|
4358
|
+
if (f.length > 0) {
|
|
4359
|
+
writer.writeString(
|
|
4360
|
+
2,
|
|
4361
|
+
f
|
|
4362
|
+
);
|
|
4363
|
+
}
|
|
4364
|
+
f = message.getBlockNumber();
|
|
4365
|
+
if (f.length > 0) {
|
|
4366
|
+
writer.writeString(
|
|
4367
|
+
3,
|
|
4368
|
+
f
|
|
4369
|
+
);
|
|
4370
|
+
}
|
|
4371
|
+
f = message.getBlockHash();
|
|
4372
|
+
if (f.length > 0) {
|
|
4373
|
+
writer.writeString(
|
|
4374
|
+
4,
|
|
4375
|
+
f
|
|
4376
|
+
);
|
|
4377
|
+
}
|
|
4378
|
+
f = message.getGasUsed();
|
|
4379
|
+
if (f.length > 0) {
|
|
4380
|
+
writer.writeString(
|
|
4381
|
+
5,
|
|
4382
|
+
f
|
|
4383
|
+
);
|
|
4384
|
+
}
|
|
4385
|
+
f = message.getGasLimit();
|
|
4386
|
+
if (f.length > 0) {
|
|
4387
|
+
writer.writeString(
|
|
4388
|
+
6,
|
|
4389
|
+
f
|
|
4390
|
+
);
|
|
4391
|
+
}
|
|
4392
|
+
f = message.getGasPrice();
|
|
4393
|
+
if (f.length > 0) {
|
|
4394
|
+
writer.writeString(
|
|
4395
|
+
7,
|
|
4396
|
+
f
|
|
4397
|
+
);
|
|
4398
|
+
}
|
|
4399
|
+
f = message.getEffectiveGasPrice();
|
|
4400
|
+
if (f.length > 0) {
|
|
4401
|
+
writer.writeString(
|
|
4402
|
+
8,
|
|
4403
|
+
f
|
|
4404
|
+
);
|
|
4405
|
+
}
|
|
4406
|
+
f = message.getFrom();
|
|
4407
|
+
if (f.length > 0) {
|
|
4408
|
+
writer.writeString(
|
|
4409
|
+
9,
|
|
4410
|
+
f
|
|
4411
|
+
);
|
|
4412
|
+
}
|
|
4413
|
+
f = message.getTo();
|
|
4414
|
+
if (f.length > 0) {
|
|
4415
|
+
writer.writeString(
|
|
4416
|
+
10,
|
|
4417
|
+
f
|
|
4418
|
+
);
|
|
4419
|
+
}
|
|
4420
|
+
f = message.getValue();
|
|
4421
|
+
if (f.length > 0) {
|
|
4422
|
+
writer.writeString(
|
|
4423
|
+
11,
|
|
4424
|
+
f
|
|
4425
|
+
);
|
|
4426
|
+
}
|
|
4427
|
+
f = message.getNonce();
|
|
4428
|
+
if (f.length > 0) {
|
|
4429
|
+
writer.writeString(
|
|
4430
|
+
12,
|
|
4431
|
+
f
|
|
4432
|
+
);
|
|
4433
|
+
}
|
|
4434
|
+
f = message.getTransactionIndex();
|
|
4435
|
+
if (f.length > 0) {
|
|
4436
|
+
writer.writeString(
|
|
4437
|
+
13,
|
|
4438
|
+
f
|
|
4439
|
+
);
|
|
4440
|
+
}
|
|
4441
|
+
f = message.getConfirmations();
|
|
4442
|
+
if (f.length > 0) {
|
|
4443
|
+
writer.writeString(
|
|
4444
|
+
14,
|
|
4445
|
+
f
|
|
4446
|
+
);
|
|
4447
|
+
}
|
|
4448
|
+
f = message.getTimestamp();
|
|
4449
|
+
if (f !== 0) {
|
|
4450
|
+
writer.writeInt64(
|
|
4451
|
+
15,
|
|
4452
|
+
f
|
|
4453
|
+
);
|
|
4454
|
+
}
|
|
4455
|
+
};
|
|
4456
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getHash = function() {
|
|
4457
|
+
return (
|
|
4458
|
+
/** @type {string} */
|
|
4459
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
4460
|
+
);
|
|
4461
|
+
};
|
|
4462
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setHash = function(value) {
|
|
4463
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4464
|
+
};
|
|
4465
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getStatus = function() {
|
|
4466
|
+
return (
|
|
4467
|
+
/** @type {string} */
|
|
4468
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
4469
|
+
);
|
|
4470
|
+
};
|
|
4471
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setStatus = function(value) {
|
|
4472
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4473
|
+
};
|
|
4474
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getBlockNumber = function() {
|
|
4475
|
+
return (
|
|
4476
|
+
/** @type {string} */
|
|
4477
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
4478
|
+
);
|
|
4479
|
+
};
|
|
4480
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setBlockNumber = function(value) {
|
|
4481
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
4482
|
+
};
|
|
4483
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getBlockHash = function() {
|
|
4484
|
+
return (
|
|
4485
|
+
/** @type {string} */
|
|
4486
|
+
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
4487
|
+
);
|
|
4488
|
+
};
|
|
4489
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setBlockHash = function(value) {
|
|
4490
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
4491
|
+
};
|
|
4492
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getGasUsed = function() {
|
|
4493
|
+
return (
|
|
4494
|
+
/** @type {string} */
|
|
4495
|
+
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
4496
|
+
);
|
|
4497
|
+
};
|
|
4498
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setGasUsed = function(value) {
|
|
4499
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
4500
|
+
};
|
|
4501
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getGasLimit = function() {
|
|
4502
|
+
return (
|
|
4503
|
+
/** @type {string} */
|
|
4504
|
+
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
4505
|
+
);
|
|
4506
|
+
};
|
|
4507
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setGasLimit = function(value) {
|
|
4508
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
4509
|
+
};
|
|
4510
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getGasPrice = function() {
|
|
4511
|
+
return (
|
|
4512
|
+
/** @type {string} */
|
|
4513
|
+
jspb.Message.getFieldWithDefault(this, 7, "")
|
|
4514
|
+
);
|
|
4515
|
+
};
|
|
4516
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setGasPrice = function(value) {
|
|
4517
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
4518
|
+
};
|
|
4519
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getEffectiveGasPrice = function() {
|
|
4520
|
+
return (
|
|
4521
|
+
/** @type {string} */
|
|
4522
|
+
jspb.Message.getFieldWithDefault(this, 8, "")
|
|
4523
|
+
);
|
|
4524
|
+
};
|
|
4525
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setEffectiveGasPrice = function(value) {
|
|
4526
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
4527
|
+
};
|
|
4528
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getFrom = function() {
|
|
4529
|
+
return (
|
|
4530
|
+
/** @type {string} */
|
|
4531
|
+
jspb.Message.getFieldWithDefault(this, 9, "")
|
|
4532
|
+
);
|
|
4533
|
+
};
|
|
4534
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setFrom = function(value) {
|
|
4535
|
+
return jspb.Message.setProto3StringField(this, 9, value);
|
|
4536
|
+
};
|
|
4537
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getTo = function() {
|
|
4538
|
+
return (
|
|
4539
|
+
/** @type {string} */
|
|
4540
|
+
jspb.Message.getFieldWithDefault(this, 10, "")
|
|
4541
|
+
);
|
|
4542
|
+
};
|
|
4543
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setTo = function(value) {
|
|
4544
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
4545
|
+
};
|
|
4546
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getValue = function() {
|
|
4547
|
+
return (
|
|
4548
|
+
/** @type {string} */
|
|
4549
|
+
jspb.Message.getFieldWithDefault(this, 11, "")
|
|
4550
|
+
);
|
|
4551
|
+
};
|
|
4552
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setValue = function(value) {
|
|
4553
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
4554
|
+
};
|
|
4555
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getNonce = function() {
|
|
4556
|
+
return (
|
|
4557
|
+
/** @type {string} */
|
|
4558
|
+
jspb.Message.getFieldWithDefault(this, 12, "")
|
|
4559
|
+
);
|
|
4560
|
+
};
|
|
4561
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setNonce = function(value) {
|
|
4562
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
4563
|
+
};
|
|
4564
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getTransactionIndex = function() {
|
|
4565
|
+
return (
|
|
4566
|
+
/** @type {string} */
|
|
4567
|
+
jspb.Message.getFieldWithDefault(this, 13, "")
|
|
4568
|
+
);
|
|
4569
|
+
};
|
|
4570
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setTransactionIndex = function(value) {
|
|
4571
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
4572
|
+
};
|
|
4573
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getConfirmations = function() {
|
|
4574
|
+
return (
|
|
4575
|
+
/** @type {string} */
|
|
4576
|
+
jspb.Message.getFieldWithDefault(this, 14, "")
|
|
4577
|
+
);
|
|
4578
|
+
};
|
|
4579
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setConfirmations = function(value) {
|
|
4580
|
+
return jspb.Message.setProto3StringField(this, 14, value);
|
|
4581
|
+
};
|
|
4582
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.getTimestamp = function() {
|
|
4583
|
+
return (
|
|
4584
|
+
/** @type {number} */
|
|
4585
|
+
jspb.Message.getFieldWithDefault(this, 15, 0)
|
|
4586
|
+
);
|
|
4587
|
+
};
|
|
4588
|
+
proto.aggregator.ContractWriteNode.TransactionData.prototype.setTimestamp = function(value) {
|
|
4589
|
+
return jspb.Message.setProto3IntField(this, 15, value);
|
|
4590
|
+
};
|
|
4591
|
+
proto.aggregator.ContractWriteNode.EventData.repeatedFields_ = [3];
|
|
4592
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4593
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.toObject = function(opt_includeInstance) {
|
|
4594
|
+
return proto.aggregator.ContractWriteNode.EventData.toObject(opt_includeInstance, this);
|
|
4595
|
+
};
|
|
4596
|
+
proto.aggregator.ContractWriteNode.EventData.toObject = function(includeInstance, msg) {
|
|
4597
|
+
var f, obj = {
|
|
4598
|
+
eventName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4599
|
+
address: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4600
|
+
topicsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f,
|
|
4601
|
+
data: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
4602
|
+
decodedMap: (f = msg.getDecodedMap()) ? f.toObject(includeInstance, void 0) : []
|
|
4603
|
+
};
|
|
4604
|
+
if (includeInstance) {
|
|
4605
|
+
obj.$jspbMessageInstance = msg;
|
|
4606
|
+
}
|
|
4607
|
+
return obj;
|
|
4608
|
+
};
|
|
4609
|
+
}
|
|
4610
|
+
proto.aggregator.ContractWriteNode.EventData.deserializeBinary = function(bytes) {
|
|
4611
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
4612
|
+
var msg = new proto.aggregator.ContractWriteNode.EventData();
|
|
4613
|
+
return proto.aggregator.ContractWriteNode.EventData.deserializeBinaryFromReader(msg, reader);
|
|
4614
|
+
};
|
|
4615
|
+
proto.aggregator.ContractWriteNode.EventData.deserializeBinaryFromReader = function(msg, reader) {
|
|
4616
|
+
while (reader.nextField()) {
|
|
4617
|
+
if (reader.isEndGroup()) {
|
|
4618
|
+
break;
|
|
4619
|
+
}
|
|
4620
|
+
var field = reader.getFieldNumber();
|
|
4621
|
+
switch (field) {
|
|
4622
|
+
case 1:
|
|
4623
|
+
var value = (
|
|
4624
|
+
/** @type {string} */
|
|
4625
|
+
reader.readString()
|
|
4626
|
+
);
|
|
4627
|
+
msg.setEventName(value);
|
|
4628
|
+
break;
|
|
4629
|
+
case 2:
|
|
4630
|
+
var value = (
|
|
4631
|
+
/** @type {string} */
|
|
4632
|
+
reader.readString()
|
|
4633
|
+
);
|
|
4634
|
+
msg.setAddress(value);
|
|
4635
|
+
break;
|
|
4636
|
+
case 3:
|
|
4637
|
+
var value = (
|
|
4638
|
+
/** @type {string} */
|
|
4639
|
+
reader.readString()
|
|
4640
|
+
);
|
|
4641
|
+
msg.addTopics(value);
|
|
4642
|
+
break;
|
|
4643
|
+
case 4:
|
|
4644
|
+
var value = (
|
|
4645
|
+
/** @type {string} */
|
|
4646
|
+
reader.readString()
|
|
4647
|
+
);
|
|
4648
|
+
msg.setData(value);
|
|
4649
|
+
break;
|
|
4650
|
+
case 5:
|
|
4651
|
+
var value = msg.getDecodedMap();
|
|
4652
|
+
reader.readMessage(value, function(message, reader2) {
|
|
4653
|
+
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
4654
|
+
});
|
|
4655
|
+
break;
|
|
4656
|
+
default:
|
|
4657
|
+
reader.skipField();
|
|
4658
|
+
break;
|
|
4659
|
+
}
|
|
4660
|
+
}
|
|
4661
|
+
return msg;
|
|
4662
|
+
};
|
|
4663
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.serializeBinary = function() {
|
|
4664
|
+
var writer = new jspb.BinaryWriter();
|
|
4665
|
+
proto.aggregator.ContractWriteNode.EventData.serializeBinaryToWriter(this, writer);
|
|
4666
|
+
return writer.getResultBuffer();
|
|
4667
|
+
};
|
|
4668
|
+
proto.aggregator.ContractWriteNode.EventData.serializeBinaryToWriter = function(message, writer) {
|
|
4669
|
+
var f = void 0;
|
|
4670
|
+
f = message.getEventName();
|
|
4671
|
+
if (f.length > 0) {
|
|
4672
|
+
writer.writeString(
|
|
4673
|
+
1,
|
|
4674
|
+
f
|
|
4675
|
+
);
|
|
4676
|
+
}
|
|
4677
|
+
f = message.getAddress();
|
|
4678
|
+
if (f.length > 0) {
|
|
4679
|
+
writer.writeString(
|
|
4680
|
+
2,
|
|
4681
|
+
f
|
|
4682
|
+
);
|
|
4683
|
+
}
|
|
4684
|
+
f = message.getTopicsList();
|
|
4685
|
+
if (f.length > 0) {
|
|
4686
|
+
writer.writeRepeatedString(
|
|
4687
|
+
3,
|
|
4688
|
+
f
|
|
4689
|
+
);
|
|
4690
|
+
}
|
|
4691
|
+
f = message.getData();
|
|
4692
|
+
if (f.length > 0) {
|
|
4693
|
+
writer.writeString(
|
|
4694
|
+
4,
|
|
4695
|
+
f
|
|
4696
|
+
);
|
|
4697
|
+
}
|
|
4698
|
+
f = message.getDecodedMap(true);
|
|
4699
|
+
if (f && f.getLength() > 0) {
|
|
4700
|
+
f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
4701
|
+
}
|
|
4702
|
+
};
|
|
4703
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.getEventName = function() {
|
|
3525
4704
|
return (
|
|
3526
4705
|
/** @type {string} */
|
|
3527
4706
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3528
4707
|
);
|
|
3529
4708
|
};
|
|
3530
|
-
proto.aggregator.
|
|
4709
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.setEventName = function(value) {
|
|
3531
4710
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3532
4711
|
};
|
|
3533
|
-
proto.aggregator.
|
|
4712
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.getAddress = function() {
|
|
3534
4713
|
return (
|
|
3535
|
-
/** @type{
|
|
3536
|
-
jspb.Message.
|
|
4714
|
+
/** @type {string} */
|
|
4715
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
3537
4716
|
);
|
|
3538
4717
|
};
|
|
3539
|
-
proto.aggregator.
|
|
3540
|
-
return jspb.Message.
|
|
4718
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.setAddress = function(value) {
|
|
4719
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3541
4720
|
};
|
|
3542
|
-
proto.aggregator.
|
|
3543
|
-
return
|
|
4721
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.getTopicsList = function() {
|
|
4722
|
+
return (
|
|
4723
|
+
/** @type {!Array<string>} */
|
|
4724
|
+
jspb.Message.getRepeatedField(this, 3)
|
|
4725
|
+
);
|
|
3544
4726
|
};
|
|
3545
|
-
proto.aggregator.
|
|
3546
|
-
return jspb.Message.
|
|
4727
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.setTopicsList = function(value) {
|
|
4728
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
3547
4729
|
};
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
return proto.aggregator.ContractWriteNode.toObject(opt_includeInstance, this);
|
|
3551
|
-
};
|
|
3552
|
-
proto.aggregator.ContractWriteNode.toObject = function(includeInstance, msg) {
|
|
3553
|
-
var f, obj = {
|
|
3554
|
-
config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f)
|
|
3555
|
-
};
|
|
3556
|
-
if (includeInstance) {
|
|
3557
|
-
obj.$jspbMessageInstance = msg;
|
|
3558
|
-
}
|
|
3559
|
-
return obj;
|
|
3560
|
-
};
|
|
3561
|
-
}
|
|
3562
|
-
proto.aggregator.ContractWriteNode.deserializeBinary = function(bytes) {
|
|
3563
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3564
|
-
var msg = new proto.aggregator.ContractWriteNode();
|
|
3565
|
-
return proto.aggregator.ContractWriteNode.deserializeBinaryFromReader(msg, reader);
|
|
4730
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.addTopics = function(value, opt_index) {
|
|
4731
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
3566
4732
|
};
|
|
3567
|
-
proto.aggregator.ContractWriteNode.
|
|
3568
|
-
|
|
3569
|
-
if (reader.isEndGroup()) {
|
|
3570
|
-
break;
|
|
3571
|
-
}
|
|
3572
|
-
var field = reader.getFieldNumber();
|
|
3573
|
-
switch (field) {
|
|
3574
|
-
case 1:
|
|
3575
|
-
var value = new proto.aggregator.ContractWriteNode.Config();
|
|
3576
|
-
reader.readMessage(value, proto.aggregator.ContractWriteNode.Config.deserializeBinaryFromReader);
|
|
3577
|
-
msg.setConfig(value);
|
|
3578
|
-
break;
|
|
3579
|
-
default:
|
|
3580
|
-
reader.skipField();
|
|
3581
|
-
break;
|
|
3582
|
-
}
|
|
3583
|
-
}
|
|
3584
|
-
return msg;
|
|
4733
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.clearTopicsList = function() {
|
|
4734
|
+
return this.setTopicsList([]);
|
|
3585
4735
|
};
|
|
3586
|
-
proto.aggregator.ContractWriteNode.prototype.
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
4736
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.getData = function() {
|
|
4737
|
+
return (
|
|
4738
|
+
/** @type {string} */
|
|
4739
|
+
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
4740
|
+
);
|
|
3590
4741
|
};
|
|
3591
|
-
proto.aggregator.ContractWriteNode.
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
4742
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.setData = function(value) {
|
|
4743
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
4744
|
+
};
|
|
4745
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.getDecodedMap = function(opt_noLazyCreate) {
|
|
4746
|
+
return (
|
|
4747
|
+
/** @type {!jspb.Map<string,string>} */
|
|
4748
|
+
jspb.Message.getMapField(
|
|
4749
|
+
this,
|
|
4750
|
+
5,
|
|
4751
|
+
opt_noLazyCreate,
|
|
4752
|
+
null
|
|
4753
|
+
)
|
|
4754
|
+
);
|
|
4755
|
+
};
|
|
4756
|
+
proto.aggregator.ContractWriteNode.EventData.prototype.clearDecodedMap = function() {
|
|
4757
|
+
this.getDecodedMap().clear();
|
|
4758
|
+
return this;
|
|
3601
4759
|
};
|
|
3602
4760
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3603
|
-
proto.aggregator.ContractWriteNode.
|
|
3604
|
-
return proto.aggregator.ContractWriteNode.
|
|
4761
|
+
proto.aggregator.ContractWriteNode.ErrorData.prototype.toObject = function(opt_includeInstance) {
|
|
4762
|
+
return proto.aggregator.ContractWriteNode.ErrorData.toObject(opt_includeInstance, this);
|
|
3605
4763
|
};
|
|
3606
|
-
proto.aggregator.ContractWriteNode.
|
|
4764
|
+
proto.aggregator.ContractWriteNode.ErrorData.toObject = function(includeInstance, msg) {
|
|
3607
4765
|
var f, obj = {
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
4766
|
+
code: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4767
|
+
message: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4768
|
+
revertReason: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
3611
4769
|
};
|
|
3612
4770
|
if (includeInstance) {
|
|
3613
4771
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3615,12 +4773,12 @@ var require_avs_pb = __commonJS({
|
|
|
3615
4773
|
return obj;
|
|
3616
4774
|
};
|
|
3617
4775
|
}
|
|
3618
|
-
proto.aggregator.ContractWriteNode.
|
|
4776
|
+
proto.aggregator.ContractWriteNode.ErrorData.deserializeBinary = function(bytes) {
|
|
3619
4777
|
var reader = new jspb.BinaryReader(bytes);
|
|
3620
|
-
var msg = new proto.aggregator.ContractWriteNode.
|
|
3621
|
-
return proto.aggregator.ContractWriteNode.
|
|
4778
|
+
var msg = new proto.aggregator.ContractWriteNode.ErrorData();
|
|
4779
|
+
return proto.aggregator.ContractWriteNode.ErrorData.deserializeBinaryFromReader(msg, reader);
|
|
3622
4780
|
};
|
|
3623
|
-
proto.aggregator.ContractWriteNode.
|
|
4781
|
+
proto.aggregator.ContractWriteNode.ErrorData.deserializeBinaryFromReader = function(msg, reader) {
|
|
3624
4782
|
while (reader.nextField()) {
|
|
3625
4783
|
if (reader.isEndGroup()) {
|
|
3626
4784
|
break;
|
|
@@ -3632,21 +4790,21 @@ var require_avs_pb = __commonJS({
|
|
|
3632
4790
|
/** @type {string} */
|
|
3633
4791
|
reader.readString()
|
|
3634
4792
|
);
|
|
3635
|
-
msg.
|
|
4793
|
+
msg.setCode(value);
|
|
3636
4794
|
break;
|
|
3637
4795
|
case 2:
|
|
3638
4796
|
var value = (
|
|
3639
4797
|
/** @type {string} */
|
|
3640
4798
|
reader.readString()
|
|
3641
4799
|
);
|
|
3642
|
-
msg.
|
|
4800
|
+
msg.setMessage(value);
|
|
3643
4801
|
break;
|
|
3644
4802
|
case 3:
|
|
3645
4803
|
var value = (
|
|
3646
4804
|
/** @type {string} */
|
|
3647
4805
|
reader.readString()
|
|
3648
4806
|
);
|
|
3649
|
-
msg.
|
|
4807
|
+
msg.setRevertReason(value);
|
|
3650
4808
|
break;
|
|
3651
4809
|
default:
|
|
3652
4810
|
reader.skipField();
|
|
@@ -3655,28 +4813,28 @@ var require_avs_pb = __commonJS({
|
|
|
3655
4813
|
}
|
|
3656
4814
|
return msg;
|
|
3657
4815
|
};
|
|
3658
|
-
proto.aggregator.ContractWriteNode.
|
|
4816
|
+
proto.aggregator.ContractWriteNode.ErrorData.prototype.serializeBinary = function() {
|
|
3659
4817
|
var writer = new jspb.BinaryWriter();
|
|
3660
|
-
proto.aggregator.ContractWriteNode.
|
|
4818
|
+
proto.aggregator.ContractWriteNode.ErrorData.serializeBinaryToWriter(this, writer);
|
|
3661
4819
|
return writer.getResultBuffer();
|
|
3662
4820
|
};
|
|
3663
|
-
proto.aggregator.ContractWriteNode.
|
|
4821
|
+
proto.aggregator.ContractWriteNode.ErrorData.serializeBinaryToWriter = function(message, writer) {
|
|
3664
4822
|
var f = void 0;
|
|
3665
|
-
f = message.
|
|
4823
|
+
f = message.getCode();
|
|
3666
4824
|
if (f.length > 0) {
|
|
3667
4825
|
writer.writeString(
|
|
3668
4826
|
1,
|
|
3669
4827
|
f
|
|
3670
4828
|
);
|
|
3671
4829
|
}
|
|
3672
|
-
f = message.
|
|
4830
|
+
f = message.getMessage();
|
|
3673
4831
|
if (f.length > 0) {
|
|
3674
4832
|
writer.writeString(
|
|
3675
4833
|
2,
|
|
3676
4834
|
f
|
|
3677
4835
|
);
|
|
3678
4836
|
}
|
|
3679
|
-
f = message.
|
|
4837
|
+
f = message.getRevertReason();
|
|
3680
4838
|
if (f.length > 0) {
|
|
3681
4839
|
writer.writeString(
|
|
3682
4840
|
3,
|
|
@@ -3684,41 +4842,42 @@ var require_avs_pb = __commonJS({
|
|
|
3684
4842
|
);
|
|
3685
4843
|
}
|
|
3686
4844
|
};
|
|
3687
|
-
proto.aggregator.ContractWriteNode.
|
|
4845
|
+
proto.aggregator.ContractWriteNode.ErrorData.prototype.getCode = function() {
|
|
3688
4846
|
return (
|
|
3689
4847
|
/** @type {string} */
|
|
3690
4848
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3691
4849
|
);
|
|
3692
4850
|
};
|
|
3693
|
-
proto.aggregator.ContractWriteNode.
|
|
4851
|
+
proto.aggregator.ContractWriteNode.ErrorData.prototype.setCode = function(value) {
|
|
3694
4852
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3695
4853
|
};
|
|
3696
|
-
proto.aggregator.ContractWriteNode.
|
|
4854
|
+
proto.aggregator.ContractWriteNode.ErrorData.prototype.getMessage = function() {
|
|
3697
4855
|
return (
|
|
3698
4856
|
/** @type {string} */
|
|
3699
4857
|
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
3700
4858
|
);
|
|
3701
4859
|
};
|
|
3702
|
-
proto.aggregator.ContractWriteNode.
|
|
4860
|
+
proto.aggregator.ContractWriteNode.ErrorData.prototype.setMessage = function(value) {
|
|
3703
4861
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3704
4862
|
};
|
|
3705
|
-
proto.aggregator.ContractWriteNode.
|
|
4863
|
+
proto.aggregator.ContractWriteNode.ErrorData.prototype.getRevertReason = function() {
|
|
3706
4864
|
return (
|
|
3707
4865
|
/** @type {string} */
|
|
3708
4866
|
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
3709
4867
|
);
|
|
3710
4868
|
};
|
|
3711
|
-
proto.aggregator.ContractWriteNode.
|
|
4869
|
+
proto.aggregator.ContractWriteNode.ErrorData.prototype.setRevertReason = function(value) {
|
|
3712
4870
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3713
4871
|
};
|
|
3714
4872
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3715
|
-
proto.aggregator.ContractWriteNode.
|
|
3716
|
-
return proto.aggregator.ContractWriteNode.
|
|
4873
|
+
proto.aggregator.ContractWriteNode.ReturnData.prototype.toObject = function(opt_includeInstance) {
|
|
4874
|
+
return proto.aggregator.ContractWriteNode.ReturnData.toObject(opt_includeInstance, this);
|
|
3717
4875
|
};
|
|
3718
|
-
proto.aggregator.ContractWriteNode.
|
|
4876
|
+
proto.aggregator.ContractWriteNode.ReturnData.toObject = function(includeInstance, msg) {
|
|
3719
4877
|
var f, obj = {
|
|
3720
|
-
|
|
3721
|
-
|
|
4878
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4879
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4880
|
+
value: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
3722
4881
|
};
|
|
3723
4882
|
if (includeInstance) {
|
|
3724
4883
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3726,12 +4885,12 @@ var require_avs_pb = __commonJS({
|
|
|
3726
4885
|
return obj;
|
|
3727
4886
|
};
|
|
3728
4887
|
}
|
|
3729
|
-
proto.aggregator.ContractWriteNode.
|
|
4888
|
+
proto.aggregator.ContractWriteNode.ReturnData.deserializeBinary = function(bytes) {
|
|
3730
4889
|
var reader = new jspb.BinaryReader(bytes);
|
|
3731
|
-
var msg = new proto.aggregator.ContractWriteNode.
|
|
3732
|
-
return proto.aggregator.ContractWriteNode.
|
|
4890
|
+
var msg = new proto.aggregator.ContractWriteNode.ReturnData();
|
|
4891
|
+
return proto.aggregator.ContractWriteNode.ReturnData.deserializeBinaryFromReader(msg, reader);
|
|
3733
4892
|
};
|
|
3734
|
-
proto.aggregator.ContractWriteNode.
|
|
4893
|
+
proto.aggregator.ContractWriteNode.ReturnData.deserializeBinaryFromReader = function(msg, reader) {
|
|
3735
4894
|
while (reader.nextField()) {
|
|
3736
4895
|
if (reader.isEndGroup()) {
|
|
3737
4896
|
break;
|
|
@@ -3739,14 +4898,25 @@ var require_avs_pb = __commonJS({
|
|
|
3739
4898
|
var field = reader.getFieldNumber();
|
|
3740
4899
|
switch (field) {
|
|
3741
4900
|
case 1:
|
|
3742
|
-
var value =
|
|
3743
|
-
|
|
3744
|
-
|
|
4901
|
+
var value = (
|
|
4902
|
+
/** @type {string} */
|
|
4903
|
+
reader.readString()
|
|
4904
|
+
);
|
|
4905
|
+
msg.setName(value);
|
|
3745
4906
|
break;
|
|
3746
4907
|
case 2:
|
|
3747
|
-
var value =
|
|
3748
|
-
|
|
3749
|
-
|
|
4908
|
+
var value = (
|
|
4909
|
+
/** @type {string} */
|
|
4910
|
+
reader.readString()
|
|
4911
|
+
);
|
|
4912
|
+
msg.setType(value);
|
|
4913
|
+
break;
|
|
4914
|
+
case 3:
|
|
4915
|
+
var value = (
|
|
4916
|
+
/** @type {string} */
|
|
4917
|
+
reader.readString()
|
|
4918
|
+
);
|
|
4919
|
+
msg.setValue(value);
|
|
3750
4920
|
break;
|
|
3751
4921
|
default:
|
|
3752
4922
|
reader.skipField();
|
|
@@ -3755,59 +4925,61 @@ var require_avs_pb = __commonJS({
|
|
|
3755
4925
|
}
|
|
3756
4926
|
return msg;
|
|
3757
4927
|
};
|
|
3758
|
-
proto.aggregator.ContractWriteNode.
|
|
4928
|
+
proto.aggregator.ContractWriteNode.ReturnData.prototype.serializeBinary = function() {
|
|
3759
4929
|
var writer = new jspb.BinaryWriter();
|
|
3760
|
-
proto.aggregator.ContractWriteNode.
|
|
4930
|
+
proto.aggregator.ContractWriteNode.ReturnData.serializeBinaryToWriter(this, writer);
|
|
3761
4931
|
return writer.getResultBuffer();
|
|
3762
4932
|
};
|
|
3763
|
-
proto.aggregator.ContractWriteNode.
|
|
4933
|
+
proto.aggregator.ContractWriteNode.ReturnData.serializeBinaryToWriter = function(message, writer) {
|
|
3764
4934
|
var f = void 0;
|
|
3765
|
-
f = message.
|
|
3766
|
-
if (f
|
|
3767
|
-
writer.
|
|
4935
|
+
f = message.getName();
|
|
4936
|
+
if (f.length > 0) {
|
|
4937
|
+
writer.writeString(
|
|
3768
4938
|
1,
|
|
3769
|
-
f
|
|
3770
|
-
proto.aggregator.Evm.UserOp.serializeBinaryToWriter
|
|
4939
|
+
f
|
|
3771
4940
|
);
|
|
3772
4941
|
}
|
|
3773
|
-
f = message.
|
|
3774
|
-
if (f
|
|
3775
|
-
writer.
|
|
4942
|
+
f = message.getType();
|
|
4943
|
+
if (f.length > 0) {
|
|
4944
|
+
writer.writeString(
|
|
3776
4945
|
2,
|
|
3777
|
-
f
|
|
3778
|
-
|
|
4946
|
+
f
|
|
4947
|
+
);
|
|
4948
|
+
}
|
|
4949
|
+
f = message.getValue();
|
|
4950
|
+
if (f.length > 0) {
|
|
4951
|
+
writer.writeString(
|
|
4952
|
+
3,
|
|
4953
|
+
f
|
|
3779
4954
|
);
|
|
3780
4955
|
}
|
|
3781
4956
|
};
|
|
3782
|
-
proto.aggregator.ContractWriteNode.
|
|
4957
|
+
proto.aggregator.ContractWriteNode.ReturnData.prototype.getName = function() {
|
|
3783
4958
|
return (
|
|
3784
|
-
/** @type{
|
|
3785
|
-
jspb.Message.
|
|
4959
|
+
/** @type {string} */
|
|
4960
|
+
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3786
4961
|
);
|
|
3787
4962
|
};
|
|
3788
|
-
proto.aggregator.ContractWriteNode.
|
|
3789
|
-
return jspb.Message.
|
|
3790
|
-
};
|
|
3791
|
-
proto.aggregator.ContractWriteNode.Output.prototype.clearUserOp = function() {
|
|
3792
|
-
return this.setUserOp(void 0);
|
|
3793
|
-
};
|
|
3794
|
-
proto.aggregator.ContractWriteNode.Output.prototype.hasUserOp = function() {
|
|
3795
|
-
return jspb.Message.getField(this, 1) != null;
|
|
4963
|
+
proto.aggregator.ContractWriteNode.ReturnData.prototype.setName = function(value) {
|
|
4964
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3796
4965
|
};
|
|
3797
|
-
proto.aggregator.ContractWriteNode.
|
|
4966
|
+
proto.aggregator.ContractWriteNode.ReturnData.prototype.getType = function() {
|
|
3798
4967
|
return (
|
|
3799
|
-
/** @type{
|
|
3800
|
-
jspb.Message.
|
|
4968
|
+
/** @type {string} */
|
|
4969
|
+
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
3801
4970
|
);
|
|
3802
4971
|
};
|
|
3803
|
-
proto.aggregator.ContractWriteNode.
|
|
3804
|
-
return jspb.Message.
|
|
4972
|
+
proto.aggregator.ContractWriteNode.ReturnData.prototype.setType = function(value) {
|
|
4973
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3805
4974
|
};
|
|
3806
|
-
proto.aggregator.ContractWriteNode.
|
|
3807
|
-
return
|
|
4975
|
+
proto.aggregator.ContractWriteNode.ReturnData.prototype.getValue = function() {
|
|
4976
|
+
return (
|
|
4977
|
+
/** @type {string} */
|
|
4978
|
+
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
4979
|
+
);
|
|
3808
4980
|
};
|
|
3809
|
-
proto.aggregator.ContractWriteNode.
|
|
3810
|
-
return jspb.Message.
|
|
4981
|
+
proto.aggregator.ContractWriteNode.ReturnData.prototype.setValue = function(value) {
|
|
4982
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
3811
4983
|
};
|
|
3812
4984
|
proto.aggregator.ContractWriteNode.prototype.getConfig = function() {
|
|
3813
4985
|
return (
|
|
@@ -15077,20 +16249,20 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
15077
16249
|
const trigger = new avs_pb4.EventTrigger();
|
|
15078
16250
|
const config = new avs_pb4.EventTrigger.Config();
|
|
15079
16251
|
const dataConfig = this.data;
|
|
15080
|
-
const queries = dataConfig.
|
|
16252
|
+
const queries = dataConfig.queries;
|
|
15081
16253
|
if (!queries || queries.length === 0) {
|
|
15082
16254
|
throw new Error(`Queries array is required for ${this.type}`);
|
|
15083
16255
|
}
|
|
15084
16256
|
const queryMessages = queries.map((queryData) => {
|
|
15085
16257
|
const query = new avs_pb4.EventTrigger.Query();
|
|
15086
|
-
if (queryData.
|
|
15087
|
-
query.setAddressesList(queryData.
|
|
16258
|
+
if (queryData.addresses && queryData.addresses.length > 0) {
|
|
16259
|
+
query.setAddressesList(queryData.addresses);
|
|
15088
16260
|
}
|
|
15089
|
-
if (queryData.
|
|
15090
|
-
const topicsMessages = queryData.
|
|
16261
|
+
if (queryData.topics && queryData.topics.length > 0) {
|
|
16262
|
+
const topicsMessages = queryData.topics.map((topicData) => {
|
|
15091
16263
|
const topics = new avs_pb4.EventTrigger.Topics();
|
|
15092
|
-
if (topicData.
|
|
15093
|
-
topics.setValuesList(topicData.
|
|
16264
|
+
if (topicData.values) {
|
|
16265
|
+
topics.setValuesList(topicData.values);
|
|
15094
16266
|
}
|
|
15095
16267
|
return topics;
|
|
15096
16268
|
});
|
|
@@ -15108,7 +16280,7 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
15108
16280
|
}
|
|
15109
16281
|
static fromResponse(raw) {
|
|
15110
16282
|
const obj = raw.toObject();
|
|
15111
|
-
let data = {
|
|
16283
|
+
let data = { queries: [] };
|
|
15112
16284
|
if (raw.getEvent() && raw.getEvent().hasConfig()) {
|
|
15113
16285
|
const config = raw.getEvent().getConfig();
|
|
15114
16286
|
if (config) {
|
|
@@ -15116,15 +16288,15 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
15116
16288
|
if (config.getQueriesList && config.getQueriesList().length > 0) {
|
|
15117
16289
|
config.getQueriesList().forEach((query) => {
|
|
15118
16290
|
const queryData = {
|
|
15119
|
-
|
|
15120
|
-
|
|
16291
|
+
addresses: [],
|
|
16292
|
+
topics: []
|
|
15121
16293
|
};
|
|
15122
16294
|
if (query.getAddressesList && query.getAddressesList().length > 0) {
|
|
15123
|
-
queryData.
|
|
16295
|
+
queryData.addresses = query.getAddressesList();
|
|
15124
16296
|
}
|
|
15125
16297
|
if (query.getTopicsList && query.getTopicsList().length > 0) {
|
|
15126
|
-
queryData.
|
|
15127
|
-
|
|
16298
|
+
queryData.topics = query.getTopicsList().map((topics) => ({
|
|
16299
|
+
values: topics.getValuesList() || []
|
|
15128
16300
|
}));
|
|
15129
16301
|
}
|
|
15130
16302
|
const maxEvents = query.getMaxEventsPerBlock();
|
|
@@ -15134,7 +16306,7 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
|
|
|
15134
16306
|
queries.push(queryData);
|
|
15135
16307
|
});
|
|
15136
16308
|
}
|
|
15137
|
-
data = {
|
|
16309
|
+
data = { queries };
|
|
15138
16310
|
}
|
|
15139
16311
|
}
|
|
15140
16312
|
return new _EventTrigger({
|
|
@@ -15552,10 +16724,20 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
15552
16724
|
}
|
|
15553
16725
|
static fromResponse(raw) {
|
|
15554
16726
|
const obj = raw.toObject();
|
|
16727
|
+
const protobufData = raw.getContractWrite().getConfig().toObject();
|
|
16728
|
+
const data = {
|
|
16729
|
+
contractAddress: protobufData.contractAddress,
|
|
16730
|
+
callData: protobufData.callData,
|
|
16731
|
+
contractAbi: protobufData.contractAbi,
|
|
16732
|
+
methodCalls: protobufData.methodCallsList?.map((call) => ({
|
|
16733
|
+
callData: call.callData,
|
|
16734
|
+
methodName: call.methodName
|
|
16735
|
+
})) || []
|
|
16736
|
+
};
|
|
15555
16737
|
return new _ContractWriteNode({
|
|
15556
16738
|
...obj,
|
|
15557
16739
|
type: NodeType3.ContractWrite,
|
|
15558
|
-
data
|
|
16740
|
+
data
|
|
15559
16741
|
});
|
|
15560
16742
|
}
|
|
15561
16743
|
toRequest() {
|
|
@@ -15567,13 +16749,71 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
|
|
|
15567
16749
|
config.setContractAddress(this.data.contractAddress);
|
|
15568
16750
|
config.setCallData(this.data.callData);
|
|
15569
16751
|
config.setContractAbi(this.data.contractAbi);
|
|
16752
|
+
const methodCalls = this.data.methodCalls || [];
|
|
16753
|
+
methodCalls.forEach((methodCall) => {
|
|
16754
|
+
const methodCallMsg = new avs_pb9.ContractWriteNode.MethodCall();
|
|
16755
|
+
methodCallMsg.setCallData(methodCall.callData);
|
|
16756
|
+
if (methodCall.methodName) {
|
|
16757
|
+
methodCallMsg.setMethodName(methodCall.methodName);
|
|
16758
|
+
}
|
|
16759
|
+
config.addMethodCalls(methodCallMsg);
|
|
16760
|
+
});
|
|
15570
16761
|
nodeData.setConfig(config);
|
|
15571
16762
|
request.setContractWrite(nodeData);
|
|
15572
16763
|
return request;
|
|
15573
16764
|
}
|
|
15574
16765
|
static fromOutputData(outputData) {
|
|
15575
16766
|
const contractWriteOutput = outputData.getContractWrite();
|
|
15576
|
-
|
|
16767
|
+
if (!contractWriteOutput) return null;
|
|
16768
|
+
const outputObj = contractWriteOutput.toObject();
|
|
16769
|
+
const transformedResults = outputObj.resultsList?.map((result) => ({
|
|
16770
|
+
methodName: result.methodName,
|
|
16771
|
+
success: result.success,
|
|
16772
|
+
transaction: result.transaction ? {
|
|
16773
|
+
hash: result.transaction.hash,
|
|
16774
|
+
status: result.transaction.status,
|
|
16775
|
+
blockNumber: result.transaction.blockNumber,
|
|
16776
|
+
blockHash: result.transaction.blockHash,
|
|
16777
|
+
gasUsed: result.transaction.gasUsed,
|
|
16778
|
+
gasLimit: result.transaction.gasLimit,
|
|
16779
|
+
gasPrice: result.transaction.gasPrice,
|
|
16780
|
+
effectiveGasPrice: result.transaction.effectiveGasPrice,
|
|
16781
|
+
from: result.transaction.from,
|
|
16782
|
+
to: result.transaction.to,
|
|
16783
|
+
value: result.transaction.value,
|
|
16784
|
+
nonce: result.transaction.nonce,
|
|
16785
|
+
transactionIndex: result.transaction.transactionIndex,
|
|
16786
|
+
confirmations: result.transaction.confirmations,
|
|
16787
|
+
timestamp: result.transaction.timestamp
|
|
16788
|
+
} : null,
|
|
16789
|
+
events: result.eventsList?.map((event) => ({
|
|
16790
|
+
eventName: event.eventName,
|
|
16791
|
+
address: event.address,
|
|
16792
|
+
topics: event.topicsList || [],
|
|
16793
|
+
data: event.data,
|
|
16794
|
+
decoded: event.decodedMap || {}
|
|
16795
|
+
})) || [],
|
|
16796
|
+
error: result.error ? {
|
|
16797
|
+
code: result.error.code,
|
|
16798
|
+
message: result.error.message,
|
|
16799
|
+
revertReason: result.error.revertReason
|
|
16800
|
+
} : null,
|
|
16801
|
+
returnData: result.returnData ? {
|
|
16802
|
+
name: result.returnData.name,
|
|
16803
|
+
type: result.returnData.type,
|
|
16804
|
+
value: result.returnData.value
|
|
16805
|
+
} : null,
|
|
16806
|
+
inputData: result.inputData
|
|
16807
|
+
})) || [];
|
|
16808
|
+
return {
|
|
16809
|
+
results: transformedResults,
|
|
16810
|
+
// For backward compatibility, provide legacy fields from first result
|
|
16811
|
+
...transformedResults.length > 0 && {
|
|
16812
|
+
transaction: transformedResults[0].transaction,
|
|
16813
|
+
success: transformedResults[0].success,
|
|
16814
|
+
hash: transformedResults[0].transaction?.hash
|
|
16815
|
+
}
|
|
16816
|
+
};
|
|
15577
16817
|
}
|
|
15578
16818
|
};
|
|
15579
16819
|
var contractWrite_default = ContractWriteNode2;
|
|
@@ -15721,10 +16961,19 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
15721
16961
|
}
|
|
15722
16962
|
static fromResponse(raw) {
|
|
15723
16963
|
const obj = raw.toObject();
|
|
16964
|
+
const protobufData = raw.getContractRead().getConfig().toObject();
|
|
16965
|
+
const data = {
|
|
16966
|
+
contractAddress: protobufData.contractAddress,
|
|
16967
|
+
contractAbi: protobufData.contractAbi,
|
|
16968
|
+
methodCalls: protobufData.methodCallsList?.map((call) => ({
|
|
16969
|
+
callData: call.callData,
|
|
16970
|
+
methodName: call.methodName
|
|
16971
|
+
})) || []
|
|
16972
|
+
};
|
|
15724
16973
|
return new _ContractReadNode({
|
|
15725
16974
|
...obj,
|
|
15726
16975
|
type: NodeType7.ContractRead,
|
|
15727
|
-
data
|
|
16976
|
+
data
|
|
15728
16977
|
});
|
|
15729
16978
|
}
|
|
15730
16979
|
toRequest() {
|
|
@@ -15735,7 +16984,7 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
|
|
|
15735
16984
|
const config = new avs_pb13.ContractReadNode.Config();
|
|
15736
16985
|
config.setContractAddress(this.data.contractAddress);
|
|
15737
16986
|
config.setContractAbi(this.data.contractAbi);
|
|
15738
|
-
const methodCalls = this.data.
|
|
16987
|
+
const methodCalls = this.data.methodCalls || [];
|
|
15739
16988
|
methodCalls.forEach((methodCall) => {
|
|
15740
16989
|
const methodCallMsg = new avs_pb13.ContractReadNode.MethodCall();
|
|
15741
16990
|
methodCallMsg.setCallData(methodCall.callData);
|
|
@@ -15813,10 +17062,18 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
15813
17062
|
}
|
|
15814
17063
|
static fromResponse(raw) {
|
|
15815
17064
|
const obj = raw.toObject();
|
|
17065
|
+
const protobufData = raw.getBranch().toObject().config;
|
|
17066
|
+
const data = {
|
|
17067
|
+
conditions: protobufData?.conditionsList?.map((condition) => ({
|
|
17068
|
+
id: condition.id,
|
|
17069
|
+
type: condition.type,
|
|
17070
|
+
expression: condition.expression
|
|
17071
|
+
})) || []
|
|
17072
|
+
};
|
|
15816
17073
|
return new _BranchNode({
|
|
15817
17074
|
...obj,
|
|
15818
17075
|
type: NodeType9.Branch,
|
|
15819
|
-
data
|
|
17076
|
+
data
|
|
15820
17077
|
});
|
|
15821
17078
|
}
|
|
15822
17079
|
toRequest() {
|
|
@@ -15825,8 +17082,8 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
|
|
|
15825
17082
|
request.setName(this.name);
|
|
15826
17083
|
const nodeData = new avs_pb15.BranchNode();
|
|
15827
17084
|
const config = new avs_pb15.BranchNode.Config();
|
|
15828
|
-
if (this.data.
|
|
15829
|
-
const conditionsList = this.data.
|
|
17085
|
+
if (this.data.conditions && this.data.conditions.length > 0) {
|
|
17086
|
+
const conditionsList = this.data.conditions.map(
|
|
15830
17087
|
(condition) => {
|
|
15831
17088
|
const conditionObj = new avs_pb15.BranchNode.Condition();
|
|
15832
17089
|
conditionObj.setId(condition.id);
|
|
@@ -15941,6 +17198,15 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
|
|
|
15941
17198
|
config2.setContractAddress(data.contractWrite.config.contractAddress);
|
|
15942
17199
|
config2.setCallData(data.contractWrite.config.callData);
|
|
15943
17200
|
config2.setContractAbi(data.contractWrite.config.contractAbi);
|
|
17201
|
+
const methodCalls = data.contractWrite.config.methodCallsList || [];
|
|
17202
|
+
methodCalls.forEach((methodCall) => {
|
|
17203
|
+
const methodCallMsg = new avs_pb17.ContractWriteNode.MethodCall();
|
|
17204
|
+
methodCallMsg.setCallData(methodCall.callData);
|
|
17205
|
+
if (methodCall.methodName) {
|
|
17206
|
+
methodCallMsg.setMethodName(methodCall.methodName);
|
|
17207
|
+
}
|
|
17208
|
+
config2.addMethodCalls(methodCallMsg);
|
|
17209
|
+
});
|
|
15944
17210
|
contractWrite.setConfig(config2);
|
|
15945
17211
|
}
|
|
15946
17212
|
loopNode.setContractWrite(contractWrite);
|
|
@@ -16365,7 +17631,63 @@ var Step = class _Step {
|
|
|
16365
17631
|
}
|
|
16366
17632
|
return void 0;
|
|
16367
17633
|
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
16368
|
-
|
|
17634
|
+
nodeOutputMessage = step.getContractWrite();
|
|
17635
|
+
if (nodeOutputMessage) {
|
|
17636
|
+
const results = nodeOutputMessage.getResultsList();
|
|
17637
|
+
if (results && results.length > 0) {
|
|
17638
|
+
const transformedResults = results.map((result) => ({
|
|
17639
|
+
methodName: result.getMethodName(),
|
|
17640
|
+
success: result.getSuccess(),
|
|
17641
|
+
transaction: result.getTransaction() ? {
|
|
17642
|
+
hash: result.getTransaction()?.getHash(),
|
|
17643
|
+
status: result.getTransaction()?.getStatus(),
|
|
17644
|
+
blockNumber: result.getTransaction()?.getBlockNumber(),
|
|
17645
|
+
blockHash: result.getTransaction()?.getBlockHash(),
|
|
17646
|
+
gasUsed: result.getTransaction()?.getGasUsed(),
|
|
17647
|
+
gasLimit: result.getTransaction()?.getGasLimit(),
|
|
17648
|
+
gasPrice: result.getTransaction()?.getGasPrice(),
|
|
17649
|
+
effectiveGasPrice: result.getTransaction()?.getEffectiveGasPrice(),
|
|
17650
|
+
from: result.getTransaction()?.getFrom(),
|
|
17651
|
+
to: result.getTransaction()?.getTo(),
|
|
17652
|
+
value: result.getTransaction()?.getValue(),
|
|
17653
|
+
nonce: result.getTransaction()?.getNonce(),
|
|
17654
|
+
transactionIndex: result.getTransaction()?.getTransactionIndex(),
|
|
17655
|
+
confirmations: result.getTransaction()?.getConfirmations(),
|
|
17656
|
+
timestamp: result.getTransaction()?.getTimestamp()
|
|
17657
|
+
} : null,
|
|
17658
|
+
events: result.getEventsList().map((event) => ({
|
|
17659
|
+
eventName: event.getEventName(),
|
|
17660
|
+
address: event.getAddress(),
|
|
17661
|
+
topics: event.getTopicsList(),
|
|
17662
|
+
data: event.getData(),
|
|
17663
|
+
decoded: event.getDecodedMap() ? Object.fromEntries(event.getDecodedMap().toArray()) : {}
|
|
17664
|
+
})),
|
|
17665
|
+
error: result.getError() ? {
|
|
17666
|
+
code: result.getError()?.getCode(),
|
|
17667
|
+
message: result.getError()?.getMessage(),
|
|
17668
|
+
revertReason: result.getError()?.getRevertReason()
|
|
17669
|
+
} : null,
|
|
17670
|
+
returnData: result.getReturnData() ? {
|
|
17671
|
+
name: result.getReturnData()?.getName(),
|
|
17672
|
+
type: result.getReturnData()?.getType(),
|
|
17673
|
+
value: result.getReturnData()?.getValue()
|
|
17674
|
+
} : null,
|
|
17675
|
+
inputData: result.getInputData()
|
|
17676
|
+
}));
|
|
17677
|
+
if (transformedResults.length === 1) {
|
|
17678
|
+
return {
|
|
17679
|
+
results: transformedResults,
|
|
17680
|
+
// Legacy compatibility fields
|
|
17681
|
+
transaction: transformedResults[0].transaction,
|
|
17682
|
+
success: transformedResults[0].success,
|
|
17683
|
+
hash: transformedResults[0].transaction?.hash
|
|
17684
|
+
};
|
|
17685
|
+
} else {
|
|
17686
|
+
return { results: transformedResults };
|
|
17687
|
+
}
|
|
17688
|
+
}
|
|
17689
|
+
}
|
|
17690
|
+
return void 0;
|
|
16369
17691
|
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
16370
17692
|
nodeOutputMessage = step.getCustomCode();
|
|
16371
17693
|
return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
|
|
@@ -16654,22 +17976,6 @@ var BaseClient = class {
|
|
|
16654
17976
|
*/
|
|
16655
17977
|
sendGrpcRequest(method, request, options) {
|
|
16656
17978
|
return new Promise((resolve, reject) => {
|
|
16657
|
-
const debugMode = process.env.GRPC_DEBUG === "true";
|
|
16658
|
-
if (debugMode) {
|
|
16659
|
-
console.log(`\u{1F50D} [GRPC-DEBUG] Starting ${method} request:`, {
|
|
16660
|
-
method,
|
|
16661
|
-
hasAuthKey: !!(options?.authKey || this.authKey),
|
|
16662
|
-
endpoint: this.endpoint
|
|
16663
|
-
});
|
|
16664
|
-
try {
|
|
16665
|
-
const serializedRequest = request.serializeBinary?.();
|
|
16666
|
-
if (serializedRequest) {
|
|
16667
|
-
console.log(`\u{1F50D} [GRPC-DEBUG] Request serialized, size: ${serializedRequest.length} bytes`);
|
|
16668
|
-
}
|
|
16669
|
-
} catch (error) {
|
|
16670
|
-
console.error(`\u274C [GRPC-DEBUG] Failed to serialize request for logging:`, error);
|
|
16671
|
-
}
|
|
16672
|
-
}
|
|
16673
17979
|
const timeoutConfig = {
|
|
16674
17980
|
...this.timeoutConfig,
|
|
16675
17981
|
...options?.timeout
|
|
@@ -16679,13 +17985,6 @@ var BaseClient = class {
|
|
|
16679
17985
|
retries = timeoutConfig.retries || 3,
|
|
16680
17986
|
retryDelay = timeoutConfig.retryDelay || 1e3
|
|
16681
17987
|
} = timeoutConfig;
|
|
16682
|
-
if (debugMode) {
|
|
16683
|
-
console.log(`\u{1F50D} [GRPC-DEBUG] Timeout configuration:`, {
|
|
16684
|
-
timeout,
|
|
16685
|
-
retries,
|
|
16686
|
-
retryDelay
|
|
16687
|
-
});
|
|
16688
|
-
}
|
|
16689
17988
|
let attempt = 0;
|
|
16690
17989
|
const executeRequest = () => {
|
|
16691
17990
|
attempt++;
|
|
@@ -16705,36 +18004,13 @@ var BaseClient = class {
|
|
|
16705
18004
|
if (authKey) {
|
|
16706
18005
|
metadata.set(AUTH_KEY_HEADER, authKey);
|
|
16707
18006
|
}
|
|
16708
|
-
if (debugMode) {
|
|
16709
|
-
console.log(`\u{1F50D} [GRPC-DEBUG] Making gRPC call for ${method}, attempt ${attempt}`);
|
|
16710
|
-
}
|
|
16711
18007
|
const call = this.rpcClient[method](
|
|
16712
18008
|
request,
|
|
16713
18009
|
metadata,
|
|
16714
18010
|
(error, response) => {
|
|
16715
18011
|
if (error) {
|
|
16716
|
-
if (debugMode) {
|
|
16717
|
-
console.error(`\u274C [GRPC-DEBUG] gRPC call failed for ${method}:`, {
|
|
16718
|
-
code: error.code,
|
|
16719
|
-
message: error.message,
|
|
16720
|
-
details: error.details,
|
|
16721
|
-
metadata: error.metadata?.getMap ? error.metadata.getMap() : error.metadata
|
|
16722
|
-
});
|
|
16723
|
-
}
|
|
16724
18012
|
grpcReject(error);
|
|
16725
18013
|
} else {
|
|
16726
|
-
if (debugMode) {
|
|
16727
|
-
try {
|
|
16728
|
-
const responseObj = response?.toObject ? response.toObject() : response;
|
|
16729
|
-
console.log(`\u2705 [GRPC-DEBUG] gRPC call succeeded for ${method}:`, {
|
|
16730
|
-
responseType: typeof response,
|
|
16731
|
-
hasToObject: !!response?.toObject,
|
|
16732
|
-
sampleResponse: JSON.stringify(responseObj).substring(0, 500) + (JSON.stringify(responseObj).length > 500 ? "..." : "")
|
|
16733
|
-
});
|
|
16734
|
-
} catch (parseError) {
|
|
16735
|
-
console.log(`\u2705 [GRPC-DEBUG] gRPC call succeeded for ${method}, but failed to parse response for logging:`, parseError);
|
|
16736
|
-
}
|
|
16737
|
-
}
|
|
16738
18014
|
grpcResolve(response);
|
|
16739
18015
|
}
|
|
16740
18016
|
}
|
|
@@ -17272,14 +18548,6 @@ var Client = class extends BaseClient {
|
|
|
17272
18548
|
* @returns {Promise<RunNodeWithInputsResponse>} - The response from running the node
|
|
17273
18549
|
*/
|
|
17274
18550
|
async runNodeWithInputs({ nodeType, nodeConfig, inputVariables = {} }, options) {
|
|
17275
|
-
const debugMode = process.env.GRPC_DEBUG === "true";
|
|
17276
|
-
if (debugMode) {
|
|
17277
|
-
console.log("\u{1F50D} [GRPC-DEBUG] runNodeWithInputs called with:", {
|
|
17278
|
-
nodeType,
|
|
17279
|
-
nodeConfig: JSON.stringify(nodeConfig, null, 2),
|
|
17280
|
-
inputVariables: JSON.stringify(inputVariables, null, 2)
|
|
17281
|
-
});
|
|
17282
|
-
}
|
|
17283
18551
|
const triggerTypes = [
|
|
17284
18552
|
TriggerType13.Block,
|
|
17285
18553
|
TriggerType13.FixedTime,
|
|
@@ -17297,94 +18565,23 @@ var Client = class extends BaseClient {
|
|
|
17297
18565
|
const request = new avs_pb22.RunNodeWithInputsReq();
|
|
17298
18566
|
const protobufNodeType = NodeTypeGoConverter2.fromGoString(nodeType);
|
|
17299
18567
|
request.setNodeType(protobufNodeType);
|
|
17300
|
-
if (debugMode) {
|
|
17301
|
-
console.log("\u{1F50D} [GRPC-DEBUG] Converted nodeType:", {
|
|
17302
|
-
original: nodeType,
|
|
17303
|
-
protobuf: protobufNodeType
|
|
17304
|
-
});
|
|
17305
|
-
}
|
|
17306
18568
|
const nodeConfigMap = request.getNodeConfigMap();
|
|
17307
18569
|
for (const [key, value] of Object.entries(nodeConfig)) {
|
|
17308
|
-
|
|
17309
|
-
const protobufValue = convertJSValueToProtobuf(value);
|
|
17310
|
-
nodeConfigMap.set(key, protobufValue);
|
|
17311
|
-
if (debugMode) {
|
|
17312
|
-
console.log(`\u{1F50D} [GRPC-DEBUG] Converted nodeConfig[${key}]:`, {
|
|
17313
|
-
original: value,
|
|
17314
|
-
protobuf: protobufValue?.toObject ? protobufValue.toObject() : protobufValue
|
|
17315
|
-
});
|
|
17316
|
-
}
|
|
17317
|
-
} catch (error) {
|
|
17318
|
-
console.error(`\u274C [GRPC-DEBUG] Failed to convert nodeConfig[${key}]:`, error);
|
|
17319
|
-
throw error;
|
|
17320
|
-
}
|
|
18570
|
+
nodeConfigMap.set(key, convertJSValueToProtobuf(value));
|
|
17321
18571
|
}
|
|
17322
18572
|
if (inputVariables && Object.keys(inputVariables).length > 0) {
|
|
17323
18573
|
const inputVarsMap = request.getInputVariablesMap();
|
|
17324
18574
|
for (const [key, value] of Object.entries(inputVariables)) {
|
|
17325
|
-
|
|
17326
|
-
const protobufValue = convertJSValueToProtobuf(value);
|
|
17327
|
-
inputVarsMap.set(key, protobufValue);
|
|
17328
|
-
if (debugMode) {
|
|
17329
|
-
console.log(`\u{1F50D} [GRPC-DEBUG] Converted inputVariable[${key}]:`, {
|
|
17330
|
-
original: value,
|
|
17331
|
-
protobuf: protobufValue?.toObject ? protobufValue.toObject() : protobufValue
|
|
17332
|
-
});
|
|
17333
|
-
}
|
|
17334
|
-
} catch (error) {
|
|
17335
|
-
console.error(`\u274C [GRPC-DEBUG] Failed to convert inputVariable[${key}]:`, error);
|
|
17336
|
-
throw error;
|
|
17337
|
-
}
|
|
17338
|
-
}
|
|
17339
|
-
}
|
|
17340
|
-
if (debugMode) {
|
|
17341
|
-
try {
|
|
17342
|
-
const serializedRequest = request.serializeBinary();
|
|
17343
|
-
console.log("\u{1F50D} [GRPC-DEBUG] Request serialized successfully, size:", serializedRequest.length, "bytes");
|
|
17344
|
-
} catch (error) {
|
|
17345
|
-
console.error("\u274C [GRPC-DEBUG] Failed to serialize request:", error);
|
|
17346
|
-
throw error;
|
|
17347
|
-
}
|
|
17348
|
-
}
|
|
17349
|
-
try {
|
|
17350
|
-
const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
|
|
17351
|
-
if (debugMode) {
|
|
17352
|
-
console.log("\u{1F50D} [GRPC-DEBUG] Response received successfully:", {
|
|
17353
|
-
success: result.getSuccess(),
|
|
17354
|
-
error: result.getError(),
|
|
17355
|
-
nodeId: result.getNodeId(),
|
|
17356
|
-
outputDataCase: result.getOutputDataCase()
|
|
17357
|
-
});
|
|
17358
|
-
}
|
|
17359
|
-
let responseData;
|
|
17360
|
-
try {
|
|
17361
|
-
responseData = factory_default2.fromOutputData(result);
|
|
17362
|
-
if (debugMode) {
|
|
17363
|
-
console.log("\u{1F50D} [GRPC-DEBUG] Output data parsed successfully:", responseData);
|
|
17364
|
-
}
|
|
17365
|
-
} catch (error) {
|
|
17366
|
-
console.error("\u274C [GRPC-DEBUG] Failed to parse output data:", error);
|
|
17367
|
-
if (debugMode) {
|
|
17368
|
-
console.log("\u{1F50D} [GRPC-DEBUG] Raw response object:", result.toObject());
|
|
17369
|
-
}
|
|
17370
|
-
throw error;
|
|
18575
|
+
inputVarsMap.set(key, convertJSValueToProtobuf(value));
|
|
17371
18576
|
}
|
|
17372
|
-
return {
|
|
17373
|
-
success: result.getSuccess(),
|
|
17374
|
-
data: responseData,
|
|
17375
|
-
error: result.getError(),
|
|
17376
|
-
nodeId: result.getNodeId()
|
|
17377
|
-
};
|
|
17378
|
-
} catch (error) {
|
|
17379
|
-
console.error("\u274C [GRPC-DEBUG] runNodeWithInputs failed:", {
|
|
17380
|
-
error: error instanceof Error ? error.message : String(error),
|
|
17381
|
-
stack: error instanceof Error ? error.stack : void 0,
|
|
17382
|
-
nodeType,
|
|
17383
|
-
nodeConfig,
|
|
17384
|
-
inputVariables
|
|
17385
|
-
});
|
|
17386
|
-
throw error;
|
|
17387
18577
|
}
|
|
18578
|
+
const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
|
|
18579
|
+
return {
|
|
18580
|
+
success: result.getSuccess(),
|
|
18581
|
+
data: factory_default2.fromOutputData(result),
|
|
18582
|
+
error: result.getError(),
|
|
18583
|
+
nodeId: result.getNodeId()
|
|
18584
|
+
};
|
|
17388
18585
|
}
|
|
17389
18586
|
/**
|
|
17390
18587
|
* Run a trigger for testing purposes
|