@avaprotocol/sdk-js 2.1.0 → 2.1.1

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @avaprotocol/sdk-js
2
2
 
3
+ ## 2.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ef05955: Updated the request interface of ContractRead
8
+
3
9
  ## 2.1.0
4
10
 
5
11
  ### Minor Changes
package/dist/index.js CHANGED
@@ -66,6 +66,9 @@ var require_avs_pb = __commonJS({
66
66
  goog.exportSymbol("proto.aggregator.BranchNode.Output", null, global);
67
67
  goog.exportSymbol("proto.aggregator.ContractReadNode", null, global);
68
68
  goog.exportSymbol("proto.aggregator.ContractReadNode.Config", null, global);
69
+ goog.exportSymbol("proto.aggregator.ContractReadNode.MethodCall", null, global);
70
+ goog.exportSymbol("proto.aggregator.ContractReadNode.MethodResult", null, global);
71
+ goog.exportSymbol("proto.aggregator.ContractReadNode.MethodResult.StructuredField", null, global);
69
72
  goog.exportSymbol("proto.aggregator.ContractReadNode.Output", null, global);
70
73
  goog.exportSymbol("proto.aggregator.ContractWriteNode", null, global);
71
74
  goog.exportSymbol("proto.aggregator.ContractWriteNode.Config", null, global);
@@ -380,13 +383,34 @@ var require_avs_pb = __commonJS({
380
383
  if (goog.DEBUG && !COMPILED) {
381
384
  proto.aggregator.ContractReadNode.displayName = "proto.aggregator.ContractReadNode";
382
385
  }
383
- proto.aggregator.ContractReadNode.Config = function(opt_data) {
386
+ proto.aggregator.ContractReadNode.MethodCall = function(opt_data) {
384
387
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
385
388
  };
389
+ goog.inherits(proto.aggregator.ContractReadNode.MethodCall, jspb.Message);
390
+ if (goog.DEBUG && !COMPILED) {
391
+ proto.aggregator.ContractReadNode.MethodCall.displayName = "proto.aggregator.ContractReadNode.MethodCall";
392
+ }
393
+ proto.aggregator.ContractReadNode.Config = function(opt_data) {
394
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.ContractReadNode.Config.repeatedFields_, null);
395
+ };
386
396
  goog.inherits(proto.aggregator.ContractReadNode.Config, jspb.Message);
387
397
  if (goog.DEBUG && !COMPILED) {
388
398
  proto.aggregator.ContractReadNode.Config.displayName = "proto.aggregator.ContractReadNode.Config";
389
399
  }
400
+ proto.aggregator.ContractReadNode.MethodResult = function(opt_data) {
401
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.ContractReadNode.MethodResult.repeatedFields_, null);
402
+ };
403
+ goog.inherits(proto.aggregator.ContractReadNode.MethodResult, jspb.Message);
404
+ if (goog.DEBUG && !COMPILED) {
405
+ proto.aggregator.ContractReadNode.MethodResult.displayName = "proto.aggregator.ContractReadNode.MethodResult";
406
+ }
407
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField = function(opt_data) {
408
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
409
+ };
410
+ goog.inherits(proto.aggregator.ContractReadNode.MethodResult.StructuredField, jspb.Message);
411
+ if (goog.DEBUG && !COMPILED) {
412
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.displayName = "proto.aggregator.ContractReadNode.MethodResult.StructuredField";
413
+ }
390
414
  proto.aggregator.ContractReadNode.Output = function(opt_data) {
391
415
  jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.ContractReadNode.Output.repeatedFields_, null);
392
416
  };
@@ -3854,6 +3878,95 @@ var require_avs_pb = __commonJS({
3854
3878
  );
3855
3879
  }
3856
3880
  };
3881
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3882
+ proto.aggregator.ContractReadNode.MethodCall.prototype.toObject = function(opt_includeInstance) {
3883
+ return proto.aggregator.ContractReadNode.MethodCall.toObject(opt_includeInstance, this);
3884
+ };
3885
+ proto.aggregator.ContractReadNode.MethodCall.toObject = function(includeInstance, msg) {
3886
+ var f, obj = {
3887
+ callData: jspb.Message.getFieldWithDefault(msg, 1, ""),
3888
+ methodName: jspb.Message.getFieldWithDefault(msg, 2, "")
3889
+ };
3890
+ if (includeInstance) {
3891
+ obj.$jspbMessageInstance = msg;
3892
+ }
3893
+ return obj;
3894
+ };
3895
+ }
3896
+ proto.aggregator.ContractReadNode.MethodCall.deserializeBinary = function(bytes) {
3897
+ var reader = new jspb.BinaryReader(bytes);
3898
+ var msg = new proto.aggregator.ContractReadNode.MethodCall();
3899
+ return proto.aggregator.ContractReadNode.MethodCall.deserializeBinaryFromReader(msg, reader);
3900
+ };
3901
+ proto.aggregator.ContractReadNode.MethodCall.deserializeBinaryFromReader = function(msg, reader) {
3902
+ while (reader.nextField()) {
3903
+ if (reader.isEndGroup()) {
3904
+ break;
3905
+ }
3906
+ var field = reader.getFieldNumber();
3907
+ switch (field) {
3908
+ case 1:
3909
+ var value = (
3910
+ /** @type {string} */
3911
+ reader.readString()
3912
+ );
3913
+ msg.setCallData(value);
3914
+ break;
3915
+ case 2:
3916
+ var value = (
3917
+ /** @type {string} */
3918
+ reader.readString()
3919
+ );
3920
+ msg.setMethodName(value);
3921
+ break;
3922
+ default:
3923
+ reader.skipField();
3924
+ break;
3925
+ }
3926
+ }
3927
+ return msg;
3928
+ };
3929
+ proto.aggregator.ContractReadNode.MethodCall.prototype.serializeBinary = function() {
3930
+ var writer = new jspb.BinaryWriter();
3931
+ proto.aggregator.ContractReadNode.MethodCall.serializeBinaryToWriter(this, writer);
3932
+ return writer.getResultBuffer();
3933
+ };
3934
+ proto.aggregator.ContractReadNode.MethodCall.serializeBinaryToWriter = function(message, writer) {
3935
+ var f = void 0;
3936
+ f = message.getCallData();
3937
+ if (f.length > 0) {
3938
+ writer.writeString(
3939
+ 1,
3940
+ f
3941
+ );
3942
+ }
3943
+ f = message.getMethodName();
3944
+ if (f.length > 0) {
3945
+ writer.writeString(
3946
+ 2,
3947
+ f
3948
+ );
3949
+ }
3950
+ };
3951
+ proto.aggregator.ContractReadNode.MethodCall.prototype.getCallData = function() {
3952
+ return (
3953
+ /** @type {string} */
3954
+ jspb.Message.getFieldWithDefault(this, 1, "")
3955
+ );
3956
+ };
3957
+ proto.aggregator.ContractReadNode.MethodCall.prototype.setCallData = function(value) {
3958
+ return jspb.Message.setProto3StringField(this, 1, value);
3959
+ };
3960
+ proto.aggregator.ContractReadNode.MethodCall.prototype.getMethodName = function() {
3961
+ return (
3962
+ /** @type {string} */
3963
+ jspb.Message.getFieldWithDefault(this, 2, "")
3964
+ );
3965
+ };
3966
+ proto.aggregator.ContractReadNode.MethodCall.prototype.setMethodName = function(value) {
3967
+ return jspb.Message.setProto3StringField(this, 2, value);
3968
+ };
3969
+ proto.aggregator.ContractReadNode.Config.repeatedFields_ = [3];
3857
3970
  if (jspb.Message.GENERATE_TO_OBJECT) {
3858
3971
  proto.aggregator.ContractReadNode.Config.prototype.toObject = function(opt_includeInstance) {
3859
3972
  return proto.aggregator.ContractReadNode.Config.toObject(opt_includeInstance, this);
@@ -3861,8 +3974,12 @@ var require_avs_pb = __commonJS({
3861
3974
  proto.aggregator.ContractReadNode.Config.toObject = function(includeInstance, msg) {
3862
3975
  var f, obj = {
3863
3976
  contractAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
3864
- callData: jspb.Message.getFieldWithDefault(msg, 2, ""),
3865
- contractAbi: jspb.Message.getFieldWithDefault(msg, 3, "")
3977
+ contractAbi: jspb.Message.getFieldWithDefault(msg, 2, ""),
3978
+ methodCallsList: jspb.Message.toObjectList(
3979
+ msg.getMethodCallsList(),
3980
+ proto.aggregator.ContractReadNode.MethodCall.toObject,
3981
+ includeInstance
3982
+ )
3866
3983
  };
3867
3984
  if (includeInstance) {
3868
3985
  obj.$jspbMessageInstance = msg;
@@ -3894,14 +4011,12 @@ var require_avs_pb = __commonJS({
3894
4011
  /** @type {string} */
3895
4012
  reader.readString()
3896
4013
  );
3897
- msg.setCallData(value);
4014
+ msg.setContractAbi(value);
3898
4015
  break;
3899
4016
  case 3:
3900
- var value = (
3901
- /** @type {string} */
3902
- reader.readString()
3903
- );
3904
- msg.setContractAbi(value);
4017
+ var value = new proto.aggregator.ContractReadNode.MethodCall();
4018
+ reader.readMessage(value, proto.aggregator.ContractReadNode.MethodCall.deserializeBinaryFromReader);
4019
+ msg.addMethodCalls(value);
3905
4020
  break;
3906
4021
  default:
3907
4022
  reader.skipField();
@@ -3924,18 +4039,19 @@ var require_avs_pb = __commonJS({
3924
4039
  f
3925
4040
  );
3926
4041
  }
3927
- f = message.getCallData();
4042
+ f = message.getContractAbi();
3928
4043
  if (f.length > 0) {
3929
4044
  writer.writeString(
3930
4045
  2,
3931
4046
  f
3932
4047
  );
3933
4048
  }
3934
- f = message.getContractAbi();
4049
+ f = message.getMethodCallsList();
3935
4050
  if (f.length > 0) {
3936
- writer.writeString(
4051
+ writer.writeRepeatedMessage(
3937
4052
  3,
3938
- f
4053
+ f,
4054
+ proto.aggregator.ContractReadNode.MethodCall.serializeBinaryToWriter
3939
4055
  );
3940
4056
  }
3941
4057
  };
@@ -3948,24 +4064,288 @@ var require_avs_pb = __commonJS({
3948
4064
  proto.aggregator.ContractReadNode.Config.prototype.setContractAddress = function(value) {
3949
4065
  return jspb.Message.setProto3StringField(this, 1, value);
3950
4066
  };
3951
- proto.aggregator.ContractReadNode.Config.prototype.getCallData = function() {
4067
+ proto.aggregator.ContractReadNode.Config.prototype.getContractAbi = function() {
3952
4068
  return (
3953
4069
  /** @type {string} */
3954
4070
  jspb.Message.getFieldWithDefault(this, 2, "")
3955
4071
  );
3956
4072
  };
3957
- proto.aggregator.ContractReadNode.Config.prototype.setCallData = function(value) {
4073
+ proto.aggregator.ContractReadNode.Config.prototype.setContractAbi = function(value) {
3958
4074
  return jspb.Message.setProto3StringField(this, 2, value);
3959
4075
  };
3960
- proto.aggregator.ContractReadNode.Config.prototype.getContractAbi = function() {
4076
+ proto.aggregator.ContractReadNode.Config.prototype.getMethodCallsList = function() {
4077
+ return (
4078
+ /** @type{!Array<!proto.aggregator.ContractReadNode.MethodCall>} */
4079
+ jspb.Message.getRepeatedWrapperField(this, proto.aggregator.ContractReadNode.MethodCall, 3)
4080
+ );
4081
+ };
4082
+ proto.aggregator.ContractReadNode.Config.prototype.setMethodCallsList = function(value) {
4083
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
4084
+ };
4085
+ proto.aggregator.ContractReadNode.Config.prototype.addMethodCalls = function(opt_value, opt_index) {
4086
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.aggregator.ContractReadNode.MethodCall, opt_index);
4087
+ };
4088
+ proto.aggregator.ContractReadNode.Config.prototype.clearMethodCallsList = function() {
4089
+ return this.setMethodCallsList([]);
4090
+ };
4091
+ proto.aggregator.ContractReadNode.MethodResult.repeatedFields_ = [1];
4092
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4093
+ proto.aggregator.ContractReadNode.MethodResult.prototype.toObject = function(opt_includeInstance) {
4094
+ return proto.aggregator.ContractReadNode.MethodResult.toObject(opt_includeInstance, this);
4095
+ };
4096
+ proto.aggregator.ContractReadNode.MethodResult.toObject = function(includeInstance, msg) {
4097
+ var f, obj = {
4098
+ dataList: jspb.Message.toObjectList(
4099
+ msg.getDataList(),
4100
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.toObject,
4101
+ includeInstance
4102
+ ),
4103
+ methodName: jspb.Message.getFieldWithDefault(msg, 2, ""),
4104
+ success: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
4105
+ error: jspb.Message.getFieldWithDefault(msg, 4, "")
4106
+ };
4107
+ if (includeInstance) {
4108
+ obj.$jspbMessageInstance = msg;
4109
+ }
4110
+ return obj;
4111
+ };
4112
+ }
4113
+ proto.aggregator.ContractReadNode.MethodResult.deserializeBinary = function(bytes) {
4114
+ var reader = new jspb.BinaryReader(bytes);
4115
+ var msg = new proto.aggregator.ContractReadNode.MethodResult();
4116
+ return proto.aggregator.ContractReadNode.MethodResult.deserializeBinaryFromReader(msg, reader);
4117
+ };
4118
+ proto.aggregator.ContractReadNode.MethodResult.deserializeBinaryFromReader = function(msg, reader) {
4119
+ while (reader.nextField()) {
4120
+ if (reader.isEndGroup()) {
4121
+ break;
4122
+ }
4123
+ var field = reader.getFieldNumber();
4124
+ switch (field) {
4125
+ case 1:
4126
+ var value = new proto.aggregator.ContractReadNode.MethodResult.StructuredField();
4127
+ reader.readMessage(value, proto.aggregator.ContractReadNode.MethodResult.StructuredField.deserializeBinaryFromReader);
4128
+ msg.addData(value);
4129
+ break;
4130
+ case 2:
4131
+ var value = (
4132
+ /** @type {string} */
4133
+ reader.readString()
4134
+ );
4135
+ msg.setMethodName(value);
4136
+ break;
4137
+ case 3:
4138
+ var value = (
4139
+ /** @type {boolean} */
4140
+ reader.readBool()
4141
+ );
4142
+ msg.setSuccess(value);
4143
+ break;
4144
+ case 4:
4145
+ var value = (
4146
+ /** @type {string} */
4147
+ reader.readString()
4148
+ );
4149
+ msg.setError(value);
4150
+ break;
4151
+ default:
4152
+ reader.skipField();
4153
+ break;
4154
+ }
4155
+ }
4156
+ return msg;
4157
+ };
4158
+ proto.aggregator.ContractReadNode.MethodResult.prototype.serializeBinary = function() {
4159
+ var writer = new jspb.BinaryWriter();
4160
+ proto.aggregator.ContractReadNode.MethodResult.serializeBinaryToWriter(this, writer);
4161
+ return writer.getResultBuffer();
4162
+ };
4163
+ proto.aggregator.ContractReadNode.MethodResult.serializeBinaryToWriter = function(message, writer) {
4164
+ var f = void 0;
4165
+ f = message.getDataList();
4166
+ if (f.length > 0) {
4167
+ writer.writeRepeatedMessage(
4168
+ 1,
4169
+ f,
4170
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.serializeBinaryToWriter
4171
+ );
4172
+ }
4173
+ f = message.getMethodName();
4174
+ if (f.length > 0) {
4175
+ writer.writeString(
4176
+ 2,
4177
+ f
4178
+ );
4179
+ }
4180
+ f = message.getSuccess();
4181
+ if (f) {
4182
+ writer.writeBool(
4183
+ 3,
4184
+ f
4185
+ );
4186
+ }
4187
+ f = message.getError();
4188
+ if (f.length > 0) {
4189
+ writer.writeString(
4190
+ 4,
4191
+ f
4192
+ );
4193
+ }
4194
+ };
4195
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4196
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.prototype.toObject = function(opt_includeInstance) {
4197
+ return proto.aggregator.ContractReadNode.MethodResult.StructuredField.toObject(opt_includeInstance, this);
4198
+ };
4199
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.toObject = function(includeInstance, msg) {
4200
+ var f, obj = {
4201
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
4202
+ type: jspb.Message.getFieldWithDefault(msg, 2, ""),
4203
+ value: jspb.Message.getFieldWithDefault(msg, 3, "")
4204
+ };
4205
+ if (includeInstance) {
4206
+ obj.$jspbMessageInstance = msg;
4207
+ }
4208
+ return obj;
4209
+ };
4210
+ }
4211
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.deserializeBinary = function(bytes) {
4212
+ var reader = new jspb.BinaryReader(bytes);
4213
+ var msg = new proto.aggregator.ContractReadNode.MethodResult.StructuredField();
4214
+ return proto.aggregator.ContractReadNode.MethodResult.StructuredField.deserializeBinaryFromReader(msg, reader);
4215
+ };
4216
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.deserializeBinaryFromReader = function(msg, reader) {
4217
+ while (reader.nextField()) {
4218
+ if (reader.isEndGroup()) {
4219
+ break;
4220
+ }
4221
+ var field = reader.getFieldNumber();
4222
+ switch (field) {
4223
+ case 1:
4224
+ var value = (
4225
+ /** @type {string} */
4226
+ reader.readString()
4227
+ );
4228
+ msg.setName(value);
4229
+ break;
4230
+ case 2:
4231
+ var value = (
4232
+ /** @type {string} */
4233
+ reader.readString()
4234
+ );
4235
+ msg.setType(value);
4236
+ break;
4237
+ case 3:
4238
+ var value = (
4239
+ /** @type {string} */
4240
+ reader.readString()
4241
+ );
4242
+ msg.setValue(value);
4243
+ break;
4244
+ default:
4245
+ reader.skipField();
4246
+ break;
4247
+ }
4248
+ }
4249
+ return msg;
4250
+ };
4251
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.prototype.serializeBinary = function() {
4252
+ var writer = new jspb.BinaryWriter();
4253
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.serializeBinaryToWriter(this, writer);
4254
+ return writer.getResultBuffer();
4255
+ };
4256
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.serializeBinaryToWriter = function(message, writer) {
4257
+ var f = void 0;
4258
+ f = message.getName();
4259
+ if (f.length > 0) {
4260
+ writer.writeString(
4261
+ 1,
4262
+ f
4263
+ );
4264
+ }
4265
+ f = message.getType();
4266
+ if (f.length > 0) {
4267
+ writer.writeString(
4268
+ 2,
4269
+ f
4270
+ );
4271
+ }
4272
+ f = message.getValue();
4273
+ if (f.length > 0) {
4274
+ writer.writeString(
4275
+ 3,
4276
+ f
4277
+ );
4278
+ }
4279
+ };
4280
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.prototype.getName = function() {
4281
+ return (
4282
+ /** @type {string} */
4283
+ jspb.Message.getFieldWithDefault(this, 1, "")
4284
+ );
4285
+ };
4286
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.prototype.setName = function(value) {
4287
+ return jspb.Message.setProto3StringField(this, 1, value);
4288
+ };
4289
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.prototype.getType = function() {
4290
+ return (
4291
+ /** @type {string} */
4292
+ jspb.Message.getFieldWithDefault(this, 2, "")
4293
+ );
4294
+ };
4295
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.prototype.setType = function(value) {
4296
+ return jspb.Message.setProto3StringField(this, 2, value);
4297
+ };
4298
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.prototype.getValue = function() {
3961
4299
  return (
3962
4300
  /** @type {string} */
3963
4301
  jspb.Message.getFieldWithDefault(this, 3, "")
3964
4302
  );
3965
4303
  };
3966
- proto.aggregator.ContractReadNode.Config.prototype.setContractAbi = function(value) {
4304
+ proto.aggregator.ContractReadNode.MethodResult.StructuredField.prototype.setValue = function(value) {
3967
4305
  return jspb.Message.setProto3StringField(this, 3, value);
3968
4306
  };
4307
+ proto.aggregator.ContractReadNode.MethodResult.prototype.getDataList = function() {
4308
+ return (
4309
+ /** @type{!Array<!proto.aggregator.ContractReadNode.MethodResult.StructuredField>} */
4310
+ jspb.Message.getRepeatedWrapperField(this, proto.aggregator.ContractReadNode.MethodResult.StructuredField, 1)
4311
+ );
4312
+ };
4313
+ proto.aggregator.ContractReadNode.MethodResult.prototype.setDataList = function(value) {
4314
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4315
+ };
4316
+ proto.aggregator.ContractReadNode.MethodResult.prototype.addData = function(opt_value, opt_index) {
4317
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.aggregator.ContractReadNode.MethodResult.StructuredField, opt_index);
4318
+ };
4319
+ proto.aggregator.ContractReadNode.MethodResult.prototype.clearDataList = function() {
4320
+ return this.setDataList([]);
4321
+ };
4322
+ proto.aggregator.ContractReadNode.MethodResult.prototype.getMethodName = function() {
4323
+ return (
4324
+ /** @type {string} */
4325
+ jspb.Message.getFieldWithDefault(this, 2, "")
4326
+ );
4327
+ };
4328
+ proto.aggregator.ContractReadNode.MethodResult.prototype.setMethodName = function(value) {
4329
+ return jspb.Message.setProto3StringField(this, 2, value);
4330
+ };
4331
+ proto.aggregator.ContractReadNode.MethodResult.prototype.getSuccess = function() {
4332
+ return (
4333
+ /** @type {boolean} */
4334
+ jspb.Message.getBooleanFieldWithDefault(this, 3, false)
4335
+ );
4336
+ };
4337
+ proto.aggregator.ContractReadNode.MethodResult.prototype.setSuccess = function(value) {
4338
+ return jspb.Message.setProto3BooleanField(this, 3, value);
4339
+ };
4340
+ proto.aggregator.ContractReadNode.MethodResult.prototype.getError = function() {
4341
+ return (
4342
+ /** @type {string} */
4343
+ jspb.Message.getFieldWithDefault(this, 4, "")
4344
+ );
4345
+ };
4346
+ proto.aggregator.ContractReadNode.MethodResult.prototype.setError = function(value) {
4347
+ return jspb.Message.setProto3StringField(this, 4, value);
4348
+ };
3969
4349
  proto.aggregator.ContractReadNode.Output.repeatedFields_ = [1];
3970
4350
  if (jspb.Message.GENERATE_TO_OBJECT) {
3971
4351
  proto.aggregator.ContractReadNode.Output.prototype.toObject = function(opt_includeInstance) {
@@ -3973,9 +4353,9 @@ var require_avs_pb = __commonJS({
3973
4353
  };
3974
4354
  proto.aggregator.ContractReadNode.Output.toObject = function(includeInstance, msg) {
3975
4355
  var f, obj = {
3976
- dataList: jspb.Message.toObjectList(
3977
- msg.getDataList(),
3978
- google_protobuf_struct_pb.Value.toObject,
4356
+ resultsList: jspb.Message.toObjectList(
4357
+ msg.getResultsList(),
4358
+ proto.aggregator.ContractReadNode.MethodResult.toObject,
3979
4359
  includeInstance
3980
4360
  )
3981
4361
  };
@@ -3998,9 +4378,9 @@ var require_avs_pb = __commonJS({
3998
4378
  var field = reader.getFieldNumber();
3999
4379
  switch (field) {
4000
4380
  case 1:
4001
- var value = new google_protobuf_struct_pb.Value();
4002
- reader.readMessage(value, google_protobuf_struct_pb.Value.deserializeBinaryFromReader);
4003
- msg.addData(value);
4381
+ var value = new proto.aggregator.ContractReadNode.MethodResult();
4382
+ reader.readMessage(value, proto.aggregator.ContractReadNode.MethodResult.deserializeBinaryFromReader);
4383
+ msg.addResults(value);
4004
4384
  break;
4005
4385
  default:
4006
4386
  reader.skipField();
@@ -4016,29 +4396,29 @@ var require_avs_pb = __commonJS({
4016
4396
  };
4017
4397
  proto.aggregator.ContractReadNode.Output.serializeBinaryToWriter = function(message, writer) {
4018
4398
  var f = void 0;
4019
- f = message.getDataList();
4399
+ f = message.getResultsList();
4020
4400
  if (f.length > 0) {
4021
4401
  writer.writeRepeatedMessage(
4022
4402
  1,
4023
4403
  f,
4024
- google_protobuf_struct_pb.Value.serializeBinaryToWriter
4404
+ proto.aggregator.ContractReadNode.MethodResult.serializeBinaryToWriter
4025
4405
  );
4026
4406
  }
4027
4407
  };
4028
- proto.aggregator.ContractReadNode.Output.prototype.getDataList = function() {
4408
+ proto.aggregator.ContractReadNode.Output.prototype.getResultsList = function() {
4029
4409
  return (
4030
- /** @type{!Array<!proto.google.protobuf.Value>} */
4031
- jspb.Message.getRepeatedWrapperField(this, google_protobuf_struct_pb.Value, 1)
4410
+ /** @type{!Array<!proto.aggregator.ContractReadNode.MethodResult>} */
4411
+ jspb.Message.getRepeatedWrapperField(this, proto.aggregator.ContractReadNode.MethodResult, 1)
4032
4412
  );
4033
4413
  };
4034
- proto.aggregator.ContractReadNode.Output.prototype.setDataList = function(value) {
4414
+ proto.aggregator.ContractReadNode.Output.prototype.setResultsList = function(value) {
4035
4415
  return jspb.Message.setRepeatedWrapperField(this, 1, value);
4036
4416
  };
4037
- proto.aggregator.ContractReadNode.Output.prototype.addData = function(opt_value, opt_index) {
4038
- return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.Value, opt_index);
4417
+ proto.aggregator.ContractReadNode.Output.prototype.addResults = function(opt_value, opt_index) {
4418
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.aggregator.ContractReadNode.MethodResult, opt_index);
4039
4419
  };
4040
- proto.aggregator.ContractReadNode.Output.prototype.clearDataList = function() {
4041
- return this.setDataList([]);
4420
+ proto.aggregator.ContractReadNode.Output.prototype.clearResultsList = function() {
4421
+ return this.setResultsList([]);
4042
4422
  };
4043
4423
  proto.aggregator.ContractReadNode.prototype.getConfig = function() {
4044
4424
  return (
@@ -15375,18 +15755,35 @@ var ContractReadNode2 = class _ContractReadNode extends interface_default2 {
15375
15755
  const nodeData = new avs_pb13.ContractReadNode();
15376
15756
  const config = new avs_pb13.ContractReadNode.Config();
15377
15757
  config.setContractAddress(this.data.contractAddress);
15378
- config.setCallData(this.data.callData);
15379
15758
  config.setContractAbi(this.data.contractAbi);
15759
+ const methodCalls = this.data.methodCallsList || [];
15760
+ methodCalls.forEach((methodCall) => {
15761
+ const methodCallMsg = new avs_pb13.ContractReadNode.MethodCall();
15762
+ methodCallMsg.setCallData(methodCall.callData);
15763
+ if (methodCall.methodName) {
15764
+ methodCallMsg.setMethodName(methodCall.methodName);
15765
+ }
15766
+ config.addMethodCalls(methodCallMsg);
15767
+ });
15380
15768
  nodeData.setConfig(config);
15381
15769
  request.setContractRead(nodeData);
15382
15770
  return request;
15383
15771
  }
15384
15772
  static fromOutputData(outputData) {
15385
15773
  const contractReadOutput = outputData.getContractRead();
15386
- if (contractReadOutput && contractReadOutput.getDataList()) {
15387
- const dataList = contractReadOutput.getDataList();
15774
+ if (contractReadOutput && contractReadOutput.getResultsList()) {
15775
+ const resultsList = contractReadOutput.getResultsList();
15388
15776
  return {
15389
- dataList: dataList.map((value) => convertProtobufValueToJs(value))
15777
+ results: resultsList.map((result) => ({
15778
+ methodName: result.getMethodName(),
15779
+ success: result.getSuccess(),
15780
+ error: result.getError(),
15781
+ data: result.getDataList().map((field) => ({
15782
+ name: field.getName(),
15783
+ type: field.getType(),
15784
+ value: field.getValue()
15785
+ }))
15786
+ }))
15390
15787
  };
15391
15788
  }
15392
15789
  return null;
@@ -15573,8 +15970,16 @@ var LoopNode2 = class _LoopNode extends interface_default2 {
15573
15970
  if (data.contractRead.config) {
15574
15971
  const config2 = new avs_pb17.ContractReadNode.Config();
15575
15972
  config2.setContractAddress(data.contractRead.config.contractAddress);
15576
- config2.setCallData(data.contractRead.config.callData);
15577
15973
  config2.setContractAbi(data.contractRead.config.contractAbi);
15974
+ const methodCalls = data.contractRead.config.methodCallsList || [];
15975
+ methodCalls.forEach((methodCall) => {
15976
+ const methodCallMsg = new avs_pb17.ContractReadNode.MethodCall();
15977
+ methodCallMsg.setCallData(methodCall.callData);
15978
+ if (methodCall.methodName) {
15979
+ methodCallMsg.setMethodName(methodCall.methodName);
15980
+ }
15981
+ config2.addMethodCalls(methodCallMsg);
15982
+ });
15578
15983
  contractRead.setConfig(config2);
15579
15984
  }
15580
15985
  loopNode.setContractRead(contractRead);
@@ -15946,9 +16351,37 @@ var Step = class _Step {
15946
16351
  case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
15947
16352
  nodeOutputMessage = step.getContractRead();
15948
16353
  if (nodeOutputMessage) {
15949
- return nodeOutputMessage.getDataList().map((val) => convertProtobufValueToJs(val));
16354
+ const results = nodeOutputMessage.getResultsList();
16355
+ if (results && results.length > 0) {
16356
+ if (results.length === 1) {
16357
+ const result = results[0];
16358
+ const structuredData = {};
16359
+ result.getDataList().forEach((field) => {
16360
+ structuredData[field.getName()] = field.getValue();
16361
+ });
16362
+ return {
16363
+ methodName: result.getMethodName(),
16364
+ success: result.getSuccess(),
16365
+ error: result.getError(),
16366
+ data: structuredData
16367
+ };
16368
+ } else {
16369
+ return results.map((result) => {
16370
+ const structuredData = {};
16371
+ result.getDataList().forEach((field) => {
16372
+ structuredData[field.getName()] = field.getValue();
16373
+ });
16374
+ return {
16375
+ methodName: result.getMethodName(),
16376
+ success: result.getSuccess(),
16377
+ error: result.getError(),
16378
+ data: structuredData
16379
+ };
16380
+ });
16381
+ }
16382
+ }
15950
16383
  }
15951
- return [];
16384
+ return void 0;
15952
16385
  case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
15953
16386
  return step.getContractWrite()?.toObject();
15954
16387
  case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE: