@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/dist/index.js 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, null, null);
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.Output = function(opt_data) {
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.ETHTransferNode.Output.prototype.setTransactionHash = function(value) {
4709
+ proto.aggregator.ContractWriteNode.EventData.prototype.setEventName = function(value) {
3531
4710
  return jspb.Message.setProto3StringField(this, 1, value);
3532
4711
  };
3533
- proto.aggregator.ETHTransferNode.prototype.getConfig = function() {
4712
+ proto.aggregator.ContractWriteNode.EventData.prototype.getAddress = function() {
3534
4713
  return (
3535
- /** @type{?proto.aggregator.ETHTransferNode.Config} */
3536
- jspb.Message.getWrapperField(this, proto.aggregator.ETHTransferNode.Config, 1)
4714
+ /** @type {string} */
4715
+ jspb.Message.getFieldWithDefault(this, 2, "")
3537
4716
  );
3538
4717
  };
3539
- proto.aggregator.ETHTransferNode.prototype.setConfig = function(value) {
3540
- return jspb.Message.setWrapperField(this, 1, value);
4718
+ proto.aggregator.ContractWriteNode.EventData.prototype.setAddress = function(value) {
4719
+ return jspb.Message.setProto3StringField(this, 2, value);
3541
4720
  };
3542
- proto.aggregator.ETHTransferNode.prototype.clearConfig = function() {
3543
- return this.setConfig(void 0);
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.ETHTransferNode.prototype.hasConfig = function() {
3546
- return jspb.Message.getField(this, 1) != null;
4727
+ proto.aggregator.ContractWriteNode.EventData.prototype.setTopicsList = function(value) {
4728
+ return jspb.Message.setField(this, 3, value || []);
3547
4729
  };
3548
- if (jspb.Message.GENERATE_TO_OBJECT) {
3549
- proto.aggregator.ContractWriteNode.prototype.toObject = function(opt_includeInstance) {
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.deserializeBinaryFromReader = function(msg, reader) {
3568
- while (reader.nextField()) {
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.serializeBinary = function() {
3587
- var writer = new jspb.BinaryWriter();
3588
- proto.aggregator.ContractWriteNode.serializeBinaryToWriter(this, writer);
3589
- return writer.getResultBuffer();
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.serializeBinaryToWriter = function(message, writer) {
3592
- var f = void 0;
3593
- f = message.getConfig();
3594
- if (f != null) {
3595
- writer.writeMessage(
3596
- 1,
3597
- f,
3598
- proto.aggregator.ContractWriteNode.Config.serializeBinaryToWriter
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.Config.prototype.toObject = function(opt_includeInstance) {
3604
- return proto.aggregator.ContractWriteNode.Config.toObject(opt_includeInstance, this);
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.Config.toObject = function(includeInstance, msg) {
4764
+ proto.aggregator.ContractWriteNode.ErrorData.toObject = function(includeInstance, msg) {
3607
4765
  var f, obj = {
3608
- contractAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
3609
- callData: jspb.Message.getFieldWithDefault(msg, 2, ""),
3610
- contractAbi: jspb.Message.getFieldWithDefault(msg, 3, "")
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.Config.deserializeBinary = function(bytes) {
4776
+ proto.aggregator.ContractWriteNode.ErrorData.deserializeBinary = function(bytes) {
3619
4777
  var reader = new jspb.BinaryReader(bytes);
3620
- var msg = new proto.aggregator.ContractWriteNode.Config();
3621
- return proto.aggregator.ContractWriteNode.Config.deserializeBinaryFromReader(msg, reader);
4778
+ var msg = new proto.aggregator.ContractWriteNode.ErrorData();
4779
+ return proto.aggregator.ContractWriteNode.ErrorData.deserializeBinaryFromReader(msg, reader);
3622
4780
  };
3623
- proto.aggregator.ContractWriteNode.Config.deserializeBinaryFromReader = function(msg, reader) {
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.setContractAddress(value);
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.setCallData(value);
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.setContractAbi(value);
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.Config.prototype.serializeBinary = function() {
4816
+ proto.aggregator.ContractWriteNode.ErrorData.prototype.serializeBinary = function() {
3659
4817
  var writer = new jspb.BinaryWriter();
3660
- proto.aggregator.ContractWriteNode.Config.serializeBinaryToWriter(this, writer);
4818
+ proto.aggregator.ContractWriteNode.ErrorData.serializeBinaryToWriter(this, writer);
3661
4819
  return writer.getResultBuffer();
3662
4820
  };
3663
- proto.aggregator.ContractWriteNode.Config.serializeBinaryToWriter = function(message, writer) {
4821
+ proto.aggregator.ContractWriteNode.ErrorData.serializeBinaryToWriter = function(message, writer) {
3664
4822
  var f = void 0;
3665
- f = message.getContractAddress();
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.getCallData();
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.getContractAbi();
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.Config.prototype.getContractAddress = function() {
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.Config.prototype.setContractAddress = function(value) {
4851
+ proto.aggregator.ContractWriteNode.ErrorData.prototype.setCode = function(value) {
3694
4852
  return jspb.Message.setProto3StringField(this, 1, value);
3695
4853
  };
3696
- proto.aggregator.ContractWriteNode.Config.prototype.getCallData = function() {
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.Config.prototype.setCallData = function(value) {
4860
+ proto.aggregator.ContractWriteNode.ErrorData.prototype.setMessage = function(value) {
3703
4861
  return jspb.Message.setProto3StringField(this, 2, value);
3704
4862
  };
3705
- proto.aggregator.ContractWriteNode.Config.prototype.getContractAbi = function() {
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.Config.prototype.setContractAbi = function(value) {
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.Output.prototype.toObject = function(opt_includeInstance) {
3716
- return proto.aggregator.ContractWriteNode.Output.toObject(opt_includeInstance, this);
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.Output.toObject = function(includeInstance, msg) {
4876
+ proto.aggregator.ContractWriteNode.ReturnData.toObject = function(includeInstance, msg) {
3719
4877
  var f, obj = {
3720
- userOp: (f = msg.getUserOp()) && proto.aggregator.Evm.UserOp.toObject(includeInstance, f),
3721
- txReceipt: (f = msg.getTxReceipt()) && proto.aggregator.Evm.TransactionReceipt.toObject(includeInstance, f)
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.Output.deserializeBinary = function(bytes) {
4888
+ proto.aggregator.ContractWriteNode.ReturnData.deserializeBinary = function(bytes) {
3730
4889
  var reader = new jspb.BinaryReader(bytes);
3731
- var msg = new proto.aggregator.ContractWriteNode.Output();
3732
- return proto.aggregator.ContractWriteNode.Output.deserializeBinaryFromReader(msg, reader);
4890
+ var msg = new proto.aggregator.ContractWriteNode.ReturnData();
4891
+ return proto.aggregator.ContractWriteNode.ReturnData.deserializeBinaryFromReader(msg, reader);
3733
4892
  };
3734
- proto.aggregator.ContractWriteNode.Output.deserializeBinaryFromReader = function(msg, reader) {
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 = new proto.aggregator.Evm.UserOp();
3743
- reader.readMessage(value, proto.aggregator.Evm.UserOp.deserializeBinaryFromReader);
3744
- msg.setUserOp(value);
4901
+ var value = (
4902
+ /** @type {string} */
4903
+ reader.readString()
4904
+ );
4905
+ msg.setName(value);
3745
4906
  break;
3746
4907
  case 2:
3747
- var value = new proto.aggregator.Evm.TransactionReceipt();
3748
- reader.readMessage(value, proto.aggregator.Evm.TransactionReceipt.deserializeBinaryFromReader);
3749
- msg.setTxReceipt(value);
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.Output.prototype.serializeBinary = function() {
4928
+ proto.aggregator.ContractWriteNode.ReturnData.prototype.serializeBinary = function() {
3759
4929
  var writer = new jspb.BinaryWriter();
3760
- proto.aggregator.ContractWriteNode.Output.serializeBinaryToWriter(this, writer);
4930
+ proto.aggregator.ContractWriteNode.ReturnData.serializeBinaryToWriter(this, writer);
3761
4931
  return writer.getResultBuffer();
3762
4932
  };
3763
- proto.aggregator.ContractWriteNode.Output.serializeBinaryToWriter = function(message, writer) {
4933
+ proto.aggregator.ContractWriteNode.ReturnData.serializeBinaryToWriter = function(message, writer) {
3764
4934
  var f = void 0;
3765
- f = message.getUserOp();
3766
- if (f != null) {
3767
- writer.writeMessage(
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.getTxReceipt();
3774
- if (f != null) {
3775
- writer.writeMessage(
4942
+ f = message.getType();
4943
+ if (f.length > 0) {
4944
+ writer.writeString(
3776
4945
  2,
3777
- f,
3778
- proto.aggregator.Evm.TransactionReceipt.serializeBinaryToWriter
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.Output.prototype.getUserOp = function() {
4957
+ proto.aggregator.ContractWriteNode.ReturnData.prototype.getName = function() {
3783
4958
  return (
3784
- /** @type{?proto.aggregator.Evm.UserOp} */
3785
- jspb.Message.getWrapperField(this, proto.aggregator.Evm.UserOp, 1)
4959
+ /** @type {string} */
4960
+ jspb.Message.getFieldWithDefault(this, 1, "")
3786
4961
  );
3787
4962
  };
3788
- proto.aggregator.ContractWriteNode.Output.prototype.setUserOp = function(value) {
3789
- return jspb.Message.setWrapperField(this, 1, value);
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.Output.prototype.getTxReceipt = function() {
4966
+ proto.aggregator.ContractWriteNode.ReturnData.prototype.getType = function() {
3798
4967
  return (
3799
- /** @type{?proto.aggregator.Evm.TransactionReceipt} */
3800
- jspb.Message.getWrapperField(this, proto.aggregator.Evm.TransactionReceipt, 2)
4968
+ /** @type {string} */
4969
+ jspb.Message.getFieldWithDefault(this, 2, "")
3801
4970
  );
3802
4971
  };
3803
- proto.aggregator.ContractWriteNode.Output.prototype.setTxReceipt = function(value) {
3804
- return jspb.Message.setWrapperField(this, 2, value);
4972
+ proto.aggregator.ContractWriteNode.ReturnData.prototype.setType = function(value) {
4973
+ return jspb.Message.setProto3StringField(this, 2, value);
3805
4974
  };
3806
- proto.aggregator.ContractWriteNode.Output.prototype.clearTxReceipt = function() {
3807
- return this.setTxReceipt(void 0);
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.Output.prototype.hasTxReceipt = function() {
3810
- return jspb.Message.getField(this, 2) != null;
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 (
@@ -15107,20 +16279,20 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
15107
16279
  const trigger = new avs_pb4.EventTrigger();
15108
16280
  const config = new avs_pb4.EventTrigger.Config();
15109
16281
  const dataConfig = this.data;
15110
- const queries = dataConfig.queriesList;
16282
+ const queries = dataConfig.queries;
15111
16283
  if (!queries || queries.length === 0) {
15112
16284
  throw new Error(`Queries array is required for ${this.type}`);
15113
16285
  }
15114
16286
  const queryMessages = queries.map((queryData) => {
15115
16287
  const query = new avs_pb4.EventTrigger.Query();
15116
- if (queryData.addressesList && queryData.addressesList.length > 0) {
15117
- query.setAddressesList(queryData.addressesList);
16288
+ if (queryData.addresses && queryData.addresses.length > 0) {
16289
+ query.setAddressesList(queryData.addresses);
15118
16290
  }
15119
- if (queryData.topicsList && queryData.topicsList.length > 0) {
15120
- const topicsMessages = queryData.topicsList.map((topicData) => {
16291
+ if (queryData.topics && queryData.topics.length > 0) {
16292
+ const topicsMessages = queryData.topics.map((topicData) => {
15121
16293
  const topics = new avs_pb4.EventTrigger.Topics();
15122
- if (topicData.valuesList) {
15123
- topics.setValuesList(topicData.valuesList);
16294
+ if (topicData.values) {
16295
+ topics.setValuesList(topicData.values);
15124
16296
  }
15125
16297
  return topics;
15126
16298
  });
@@ -15138,7 +16310,7 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
15138
16310
  }
15139
16311
  static fromResponse(raw) {
15140
16312
  const obj = raw.toObject();
15141
- let data = { queriesList: [] };
16313
+ let data = { queries: [] };
15142
16314
  if (raw.getEvent() && raw.getEvent().hasConfig()) {
15143
16315
  const config = raw.getEvent().getConfig();
15144
16316
  if (config) {
@@ -15146,15 +16318,15 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
15146
16318
  if (config.getQueriesList && config.getQueriesList().length > 0) {
15147
16319
  config.getQueriesList().forEach((query) => {
15148
16320
  const queryData = {
15149
- addressesList: [],
15150
- topicsList: []
16321
+ addresses: [],
16322
+ topics: []
15151
16323
  };
15152
16324
  if (query.getAddressesList && query.getAddressesList().length > 0) {
15153
- queryData.addressesList = query.getAddressesList();
16325
+ queryData.addresses = query.getAddressesList();
15154
16326
  }
15155
16327
  if (query.getTopicsList && query.getTopicsList().length > 0) {
15156
- queryData.topicsList = query.getTopicsList().map((topics) => ({
15157
- valuesList: topics.getValuesList() || []
16328
+ queryData.topics = query.getTopicsList().map((topics) => ({
16329
+ values: topics.getValuesList() || []
15158
16330
  }));
15159
16331
  }
15160
16332
  const maxEvents = query.getMaxEventsPerBlock();
@@ -15164,7 +16336,7 @@ var EventTrigger2 = class _EventTrigger extends interface_default {
15164
16336
  queries.push(queryData);
15165
16337
  });
15166
16338
  }
15167
- data = { queriesList: queries };
16339
+ data = { queries };
15168
16340
  }
15169
16341
  }
15170
16342
  return new _EventTrigger({
@@ -15576,10 +16748,20 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
15576
16748
  }
15577
16749
  static fromResponse(raw) {
15578
16750
  const obj = raw.toObject();
16751
+ const protobufData = raw.getContractWrite().getConfig().toObject();
16752
+ const data = {
16753
+ contractAddress: protobufData.contractAddress,
16754
+ callData: protobufData.callData,
16755
+ contractAbi: protobufData.contractAbi,
16756
+ methodCalls: protobufData.methodCallsList?.map((call) => ({
16757
+ callData: call.callData,
16758
+ methodName: call.methodName
16759
+ })) || []
16760
+ };
15579
16761
  return new _ContractWriteNode({
15580
16762
  ...obj,
15581
16763
  type: import_types9.NodeType.ContractWrite,
15582
- data: raw.getContractWrite().getConfig().toObject()
16764
+ data
15583
16765
  });
15584
16766
  }
15585
16767
  toRequest() {
@@ -15591,13 +16773,71 @@ var ContractWriteNode2 = class _ContractWriteNode extends interface_default2 {
15591
16773
  config.setContractAddress(this.data.contractAddress);
15592
16774
  config.setCallData(this.data.callData);
15593
16775
  config.setContractAbi(this.data.contractAbi);
16776
+ const methodCalls = this.data.methodCalls || [];
16777
+ methodCalls.forEach((methodCall) => {
16778
+ const methodCallMsg = new avs_pb9.ContractWriteNode.MethodCall();
16779
+ methodCallMsg.setCallData(methodCall.callData);
16780
+ if (methodCall.methodName) {
16781
+ methodCallMsg.setMethodName(methodCall.methodName);
16782
+ }
16783
+ config.addMethodCalls(methodCallMsg);
16784
+ });
15594
16785
  nodeData.setConfig(config);
15595
16786
  request.setContractWrite(nodeData);
15596
16787
  return request;
15597
16788
  }
15598
16789
  static fromOutputData(outputData) {
15599
16790
  const contractWriteOutput = outputData.getContractWrite();
15600
- return contractWriteOutput?.toObject() || null;
16791
+ if (!contractWriteOutput) return null;
16792
+ const outputObj = contractWriteOutput.toObject();
16793
+ const transformedResults = outputObj.resultsList?.map((result) => ({
16794
+ methodName: result.methodName,
16795
+ success: result.success,
16796
+ transaction: result.transaction ? {
16797
+ hash: result.transaction.hash,
16798
+ status: result.transaction.status,
16799
+ blockNumber: result.transaction.blockNumber,
16800
+ blockHash: result.transaction.blockHash,
16801
+ gasUsed: result.transaction.gasUsed,
16802
+ gasLimit: result.transaction.gasLimit,
16803
+ gasPrice: result.transaction.gasPrice,
16804
+ effectiveGasPrice: result.transaction.effectiveGasPrice,
16805
+ from: result.transaction.from,
16806
+ to: result.transaction.to,
16807
+ value: result.transaction.value,
16808
+ nonce: result.transaction.nonce,
16809
+ transactionIndex: result.transaction.transactionIndex,
16810
+ confirmations: result.transaction.confirmations,
16811
+ timestamp: result.transaction.timestamp
16812
+ } : null,
16813
+ events: result.eventsList?.map((event) => ({
16814
+ eventName: event.eventName,
16815
+ address: event.address,
16816
+ topics: event.topicsList || [],
16817
+ data: event.data,
16818
+ decoded: event.decodedMap || {}
16819
+ })) || [],
16820
+ error: result.error ? {
16821
+ code: result.error.code,
16822
+ message: result.error.message,
16823
+ revertReason: result.error.revertReason
16824
+ } : null,
16825
+ returnData: result.returnData ? {
16826
+ name: result.returnData.name,
16827
+ type: result.returnData.type,
16828
+ value: result.returnData.value
16829
+ } : null,
16830
+ inputData: result.inputData
16831
+ })) || [];
16832
+ return {
16833
+ results: transformedResults,
16834
+ // For backward compatibility, provide legacy fields from first result
16835
+ ...transformedResults.length > 0 && {
16836
+ transaction: transformedResults[0].transaction,
16837
+ success: transformedResults[0].success,
16838
+ hash: transformedResults[0].transaction?.hash
16839
+ }
16840
+ };
15601
16841
  }
15602
16842
  };
15603
16843
  var contractWrite_default = ContractWriteNode2;
@@ -15743,10 +16983,19 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
15743
16983
  }
15744
16984
  static fromResponse(raw) {
15745
16985
  const obj = raw.toObject();
16986
+ const protobufData = raw.getContractRead().getConfig().toObject();
16987
+ const data = {
16988
+ contractAddress: protobufData.contractAddress,
16989
+ contractAbi: protobufData.contractAbi,
16990
+ methodCalls: protobufData.methodCallsList?.map((call) => ({
16991
+ callData: call.callData,
16992
+ methodName: call.methodName
16993
+ })) || []
16994
+ };
15746
16995
  return new _ContractReadNode({
15747
16996
  ...obj,
15748
16997
  type: import_types13.NodeType.ContractRead,
15749
- data: raw.getContractRead().getConfig().toObject()
16998
+ data
15750
16999
  });
15751
17000
  }
15752
17001
  toRequest() {
@@ -15757,7 +17006,7 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
15757
17006
  const config = new avs_pb13.ContractReadNode.Config();
15758
17007
  config.setContractAddress(this.data.contractAddress);
15759
17008
  config.setContractAbi(this.data.contractAbi);
15760
- const methodCalls = this.data.methodCallsList || [];
17009
+ const methodCalls = this.data.methodCalls || [];
15761
17010
  methodCalls.forEach((methodCall) => {
15762
17011
  const methodCallMsg = new avs_pb13.ContractReadNode.MethodCall();
15763
17012
  methodCallMsg.setCallData(methodCall.callData);
@@ -15835,10 +17084,18 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
15835
17084
  }
15836
17085
  static fromResponse(raw) {
15837
17086
  const obj = raw.toObject();
17087
+ const protobufData = raw.getBranch().toObject().config;
17088
+ const data = {
17089
+ conditions: protobufData?.conditionsList?.map((condition) => ({
17090
+ id: condition.id,
17091
+ type: condition.type,
17092
+ expression: condition.expression
17093
+ })) || []
17094
+ };
15838
17095
  return new _BranchNode({
15839
17096
  ...obj,
15840
17097
  type: import_types15.NodeType.Branch,
15841
- data: raw.getBranch().toObject().config
17098
+ data
15842
17099
  });
15843
17100
  }
15844
17101
  toRequest() {
@@ -15847,8 +17104,8 @@ var BranchNode2 = class _BranchNode extends interface_default2 {
15847
17104
  request.setName(this.name);
15848
17105
  const nodeData = new avs_pb15.BranchNode();
15849
17106
  const config = new avs_pb15.BranchNode.Config();
15850
- if (this.data.conditionsList && this.data.conditionsList.length > 0) {
15851
- const conditionsList = this.data.conditionsList.map(
17107
+ if (this.data.conditions && this.data.conditions.length > 0) {
17108
+ const conditionsList = this.data.conditions.map(
15852
17109
  (condition) => {
15853
17110
  const conditionObj = new avs_pb15.BranchNode.Condition();
15854
17111
  conditionObj.setId(condition.id);
@@ -15963,6 +17220,15 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
15963
17220
  config2.setContractAddress(data.contractWrite.config.contractAddress);
15964
17221
  config2.setCallData(data.contractWrite.config.callData);
15965
17222
  config2.setContractAbi(data.contractWrite.config.contractAbi);
17223
+ const methodCalls = data.contractWrite.config.methodCallsList || [];
17224
+ methodCalls.forEach((methodCall) => {
17225
+ const methodCallMsg = new avs_pb17.ContractWriteNode.MethodCall();
17226
+ methodCallMsg.setCallData(methodCall.callData);
17227
+ if (methodCall.methodName) {
17228
+ methodCallMsg.setMethodName(methodCall.methodName);
17229
+ }
17230
+ config2.addMethodCalls(methodCallMsg);
17231
+ });
15966
17232
  contractWrite.setConfig(config2);
15967
17233
  }
15968
17234
  loopNode.setContractWrite(contractWrite);
@@ -16384,7 +17650,63 @@ var Step = class _Step {
16384
17650
  }
16385
17651
  return void 0;
16386
17652
  case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
16387
- return step.getContractWrite()?.toObject();
17653
+ nodeOutputMessage = step.getContractWrite();
17654
+ if (nodeOutputMessage) {
17655
+ const results = nodeOutputMessage.getResultsList();
17656
+ if (results && results.length > 0) {
17657
+ const transformedResults = results.map((result) => ({
17658
+ methodName: result.getMethodName(),
17659
+ success: result.getSuccess(),
17660
+ transaction: result.getTransaction() ? {
17661
+ hash: result.getTransaction()?.getHash(),
17662
+ status: result.getTransaction()?.getStatus(),
17663
+ blockNumber: result.getTransaction()?.getBlockNumber(),
17664
+ blockHash: result.getTransaction()?.getBlockHash(),
17665
+ gasUsed: result.getTransaction()?.getGasUsed(),
17666
+ gasLimit: result.getTransaction()?.getGasLimit(),
17667
+ gasPrice: result.getTransaction()?.getGasPrice(),
17668
+ effectiveGasPrice: result.getTransaction()?.getEffectiveGasPrice(),
17669
+ from: result.getTransaction()?.getFrom(),
17670
+ to: result.getTransaction()?.getTo(),
17671
+ value: result.getTransaction()?.getValue(),
17672
+ nonce: result.getTransaction()?.getNonce(),
17673
+ transactionIndex: result.getTransaction()?.getTransactionIndex(),
17674
+ confirmations: result.getTransaction()?.getConfirmations(),
17675
+ timestamp: result.getTransaction()?.getTimestamp()
17676
+ } : null,
17677
+ events: result.getEventsList().map((event) => ({
17678
+ eventName: event.getEventName(),
17679
+ address: event.getAddress(),
17680
+ topics: event.getTopicsList(),
17681
+ data: event.getData(),
17682
+ decoded: event.getDecodedMap() ? Object.fromEntries(event.getDecodedMap().toArray()) : {}
17683
+ })),
17684
+ error: result.getError() ? {
17685
+ code: result.getError()?.getCode(),
17686
+ message: result.getError()?.getMessage(),
17687
+ revertReason: result.getError()?.getRevertReason()
17688
+ } : null,
17689
+ returnData: result.getReturnData() ? {
17690
+ name: result.getReturnData()?.getName(),
17691
+ type: result.getReturnData()?.getType(),
17692
+ value: result.getReturnData()?.getValue()
17693
+ } : null,
17694
+ inputData: result.getInputData()
17695
+ }));
17696
+ if (transformedResults.length === 1) {
17697
+ return {
17698
+ results: transformedResults,
17699
+ // Legacy compatibility fields
17700
+ transaction: transformedResults[0].transaction,
17701
+ success: transformedResults[0].success,
17702
+ hash: transformedResults[0].transaction?.hash
17703
+ };
17704
+ } else {
17705
+ return { results: transformedResults };
17706
+ }
17707
+ }
17708
+ }
17709
+ return void 0;
16388
17710
  case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
16389
17711
  nodeOutputMessage = step.getCustomCode();
16390
17712
  return nodeOutputMessage && nodeOutputMessage.hasData() ? convertProtobufValueToJs(nodeOutputMessage.getData()) : void 0;
@@ -16663,22 +17985,6 @@ var BaseClient = class {
16663
17985
  */
16664
17986
  sendGrpcRequest(method, request, options) {
16665
17987
  return new Promise((resolve, reject) => {
16666
- const debugMode = process.env.GRPC_DEBUG === "true";
16667
- if (debugMode) {
16668
- console.log(`\u{1F50D} [GRPC-DEBUG] Starting ${method} request:`, {
16669
- method,
16670
- hasAuthKey: !!(options?.authKey || this.authKey),
16671
- endpoint: this.endpoint
16672
- });
16673
- try {
16674
- const serializedRequest = request.serializeBinary?.();
16675
- if (serializedRequest) {
16676
- console.log(`\u{1F50D} [GRPC-DEBUG] Request serialized, size: ${serializedRequest.length} bytes`);
16677
- }
16678
- } catch (error) {
16679
- console.error(`\u274C [GRPC-DEBUG] Failed to serialize request for logging:`, error);
16680
- }
16681
- }
16682
17988
  const timeoutConfig = {
16683
17989
  ...this.timeoutConfig,
16684
17990
  ...options?.timeout
@@ -16688,13 +17994,6 @@ var BaseClient = class {
16688
17994
  retries = timeoutConfig.retries || 3,
16689
17995
  retryDelay = timeoutConfig.retryDelay || 1e3
16690
17996
  } = timeoutConfig;
16691
- if (debugMode) {
16692
- console.log(`\u{1F50D} [GRPC-DEBUG] Timeout configuration:`, {
16693
- timeout,
16694
- retries,
16695
- retryDelay
16696
- });
16697
- }
16698
17997
  let attempt = 0;
16699
17998
  const executeRequest = () => {
16700
17999
  attempt++;
@@ -16714,36 +18013,13 @@ var BaseClient = class {
16714
18013
  if (authKey) {
16715
18014
  metadata.set(import_types20.AUTH_KEY_HEADER, authKey);
16716
18015
  }
16717
- if (debugMode) {
16718
- console.log(`\u{1F50D} [GRPC-DEBUG] Making gRPC call for ${method}, attempt ${attempt}`);
16719
- }
16720
18016
  const call = this.rpcClient[method](
16721
18017
  request,
16722
18018
  metadata,
16723
18019
  (error, response) => {
16724
18020
  if (error) {
16725
- if (debugMode) {
16726
- console.error(`\u274C [GRPC-DEBUG] gRPC call failed for ${method}:`, {
16727
- code: error.code,
16728
- message: error.message,
16729
- details: error.details,
16730
- metadata: error.metadata?.getMap ? error.metadata.getMap() : error.metadata
16731
- });
16732
- }
16733
18021
  grpcReject(error);
16734
18022
  } else {
16735
- if (debugMode) {
16736
- try {
16737
- const responseObj = response?.toObject ? response.toObject() : response;
16738
- console.log(`\u2705 [GRPC-DEBUG] gRPC call succeeded for ${method}:`, {
16739
- responseType: typeof response,
16740
- hasToObject: !!response?.toObject,
16741
- sampleResponse: JSON.stringify(responseObj).substring(0, 500) + (JSON.stringify(responseObj).length > 500 ? "..." : "")
16742
- });
16743
- } catch (parseError) {
16744
- console.log(`\u2705 [GRPC-DEBUG] gRPC call succeeded for ${method}, but failed to parse response for logging:`, parseError);
16745
- }
16746
- }
16747
18023
  grpcResolve(response);
16748
18024
  }
16749
18025
  }
@@ -17281,14 +18557,6 @@ var Client = class extends BaseClient {
17281
18557
  * @returns {Promise<RunNodeWithInputsResponse>} - The response from running the node
17282
18558
  */
17283
18559
  async runNodeWithInputs({ nodeType, nodeConfig, inputVariables = {} }, options) {
17284
- const debugMode = process.env.GRPC_DEBUG === "true";
17285
- if (debugMode) {
17286
- console.log("\u{1F50D} [GRPC-DEBUG] runNodeWithInputs called with:", {
17287
- nodeType,
17288
- nodeConfig: JSON.stringify(nodeConfig, null, 2),
17289
- inputVariables: JSON.stringify(inputVariables, null, 2)
17290
- });
17291
- }
17292
18560
  const triggerTypes = [
17293
18561
  import_types20.TriggerType.Block,
17294
18562
  import_types20.TriggerType.FixedTime,
@@ -17306,94 +18574,23 @@ var Client = class extends BaseClient {
17306
18574
  const request = new avs_pb22.RunNodeWithInputsReq();
17307
18575
  const protobufNodeType = import_types20.NodeTypeGoConverter.fromGoString(nodeType);
17308
18576
  request.setNodeType(protobufNodeType);
17309
- if (debugMode) {
17310
- console.log("\u{1F50D} [GRPC-DEBUG] Converted nodeType:", {
17311
- original: nodeType,
17312
- protobuf: protobufNodeType
17313
- });
17314
- }
17315
18577
  const nodeConfigMap = request.getNodeConfigMap();
17316
18578
  for (const [key, value] of Object.entries(nodeConfig)) {
17317
- try {
17318
- const protobufValue = convertJSValueToProtobuf(value);
17319
- nodeConfigMap.set(key, protobufValue);
17320
- if (debugMode) {
17321
- console.log(`\u{1F50D} [GRPC-DEBUG] Converted nodeConfig[${key}]:`, {
17322
- original: value,
17323
- protobuf: protobufValue?.toObject ? protobufValue.toObject() : protobufValue
17324
- });
17325
- }
17326
- } catch (error) {
17327
- console.error(`\u274C [GRPC-DEBUG] Failed to convert nodeConfig[${key}]:`, error);
17328
- throw error;
17329
- }
18579
+ nodeConfigMap.set(key, convertJSValueToProtobuf(value));
17330
18580
  }
17331
18581
  if (inputVariables && Object.keys(inputVariables).length > 0) {
17332
18582
  const inputVarsMap = request.getInputVariablesMap();
17333
18583
  for (const [key, value] of Object.entries(inputVariables)) {
17334
- try {
17335
- const protobufValue = convertJSValueToProtobuf(value);
17336
- inputVarsMap.set(key, protobufValue);
17337
- if (debugMode) {
17338
- console.log(`\u{1F50D} [GRPC-DEBUG] Converted inputVariable[${key}]:`, {
17339
- original: value,
17340
- protobuf: protobufValue?.toObject ? protobufValue.toObject() : protobufValue
17341
- });
17342
- }
17343
- } catch (error) {
17344
- console.error(`\u274C [GRPC-DEBUG] Failed to convert inputVariable[${key}]:`, error);
17345
- throw error;
17346
- }
17347
- }
17348
- }
17349
- if (debugMode) {
17350
- try {
17351
- const serializedRequest = request.serializeBinary();
17352
- console.log("\u{1F50D} [GRPC-DEBUG] Request serialized successfully, size:", serializedRequest.length, "bytes");
17353
- } catch (error) {
17354
- console.error("\u274C [GRPC-DEBUG] Failed to serialize request:", error);
17355
- throw error;
17356
- }
17357
- }
17358
- try {
17359
- const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
17360
- if (debugMode) {
17361
- console.log("\u{1F50D} [GRPC-DEBUG] Response received successfully:", {
17362
- success: result.getSuccess(),
17363
- error: result.getError(),
17364
- nodeId: result.getNodeId(),
17365
- outputDataCase: result.getOutputDataCase()
17366
- });
17367
- }
17368
- let responseData;
17369
- try {
17370
- responseData = factory_default2.fromOutputData(result);
17371
- if (debugMode) {
17372
- console.log("\u{1F50D} [GRPC-DEBUG] Output data parsed successfully:", responseData);
17373
- }
17374
- } catch (error) {
17375
- console.error("\u274C [GRPC-DEBUG] Failed to parse output data:", error);
17376
- if (debugMode) {
17377
- console.log("\u{1F50D} [GRPC-DEBUG] Raw response object:", result.toObject());
17378
- }
17379
- throw error;
18584
+ inputVarsMap.set(key, convertJSValueToProtobuf(value));
17380
18585
  }
17381
- return {
17382
- success: result.getSuccess(),
17383
- data: responseData,
17384
- error: result.getError(),
17385
- nodeId: result.getNodeId()
17386
- };
17387
- } catch (error) {
17388
- console.error("\u274C [GRPC-DEBUG] runNodeWithInputs failed:", {
17389
- error: error instanceof Error ? error.message : String(error),
17390
- stack: error instanceof Error ? error.stack : void 0,
17391
- nodeType,
17392
- nodeConfig,
17393
- inputVariables
17394
- });
17395
- throw error;
17396
18586
  }
18587
+ const result = await this.sendGrpcRequest("runNodeWithInputs", request, options);
18588
+ return {
18589
+ success: result.getSuccess(),
18590
+ data: factory_default2.fromOutputData(result),
18591
+ error: result.getError(),
18592
+ nodeId: result.getNodeId()
18593
+ };
17397
18594
  }
17398
18595
  /**
17399
18596
  * Run a trigger for testing purposes