@avaprotocol/sdk-js 2.5.2-dev.1 → 2.6.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.
Files changed (45) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +774 -2617
  4. package/dist/index.mjs +788 -2619
  5. package/dist/models/node/branch.d.ts.map +1 -1
  6. package/dist/models/node/branch.js +2 -11
  7. package/dist/models/node/contractRead.d.ts +1 -0
  8. package/dist/models/node/contractRead.d.ts.map +1 -1
  9. package/dist/models/node/contractRead.js +5 -14
  10. package/dist/models/node/contractWrite.d.ts +2 -1
  11. package/dist/models/node/contractWrite.d.ts.map +1 -1
  12. package/dist/models/node/contractWrite.js +4 -14
  13. package/dist/models/node/customCode.d.ts.map +1 -1
  14. package/dist/models/node/customCode.js +1 -14
  15. package/dist/models/node/ethTransfer.d.ts.map +1 -1
  16. package/dist/models/node/ethTransfer.js +6 -11
  17. package/dist/models/node/filter.d.ts.map +1 -1
  18. package/dist/models/node/filter.js +20 -18
  19. package/dist/models/node/graphqlQuery.d.ts.map +1 -1
  20. package/dist/models/node/graphqlQuery.js +5 -11
  21. package/dist/models/node/interface.d.ts +0 -1
  22. package/dist/models/node/interface.d.ts.map +1 -1
  23. package/dist/models/node/interface.js +0 -8
  24. package/dist/models/node/loop.d.ts.map +1 -1
  25. package/dist/models/node/loop.js +58 -85
  26. package/dist/models/node/restApi.d.ts.map +1 -1
  27. package/dist/models/node/restApi.js +1 -15
  28. package/dist/models/step.d.ts +3 -1
  29. package/dist/models/step.d.ts.map +1 -1
  30. package/dist/models/step.js +104 -365
  31. package/dist/models/trigger/block.d.ts.map +1 -1
  32. package/dist/models/trigger/block.js +18 -20
  33. package/dist/models/trigger/cron.d.ts.map +1 -1
  34. package/dist/models/trigger/cron.js +9 -28
  35. package/dist/models/trigger/event.d.ts.map +1 -1
  36. package/dist/models/trigger/event.js +1 -12
  37. package/dist/models/trigger/fixedTime.d.ts.map +1 -1
  38. package/dist/models/trigger/fixedTime.js +9 -20
  39. package/dist/models/trigger/interface.d.ts +1 -1
  40. package/dist/models/trigger/interface.d.ts.map +1 -1
  41. package/dist/models/trigger/interface.js +7 -2
  42. package/dist/models/trigger/manual.d.ts +0 -3
  43. package/dist/models/trigger/manual.d.ts.map +1 -1
  44. package/dist/models/trigger/manual.js +33 -44
  45. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -73,13 +73,9 @@ var require_avs_pb = __commonJS({
73
73
  goog.exportSymbol("proto.aggregator.ContractReadNode.Output", null, global);
74
74
  goog.exportSymbol("proto.aggregator.ContractWriteNode", null, global);
75
75
  goog.exportSymbol("proto.aggregator.ContractWriteNode.Config", null, global);
76
- goog.exportSymbol("proto.aggregator.ContractWriteNode.ErrorData", null, global);
77
- goog.exportSymbol("proto.aggregator.ContractWriteNode.EventData", null, global);
78
76
  goog.exportSymbol("proto.aggregator.ContractWriteNode.MethodCall", null, global);
79
77
  goog.exportSymbol("proto.aggregator.ContractWriteNode.MethodResult", null, global);
80
78
  goog.exportSymbol("proto.aggregator.ContractWriteNode.Output", null, global);
81
- goog.exportSymbol("proto.aggregator.ContractWriteNode.ReturnData", null, global);
82
- goog.exportSymbol("proto.aggregator.ContractWriteNode.TransactionData", null, global);
83
79
  goog.exportSymbol("proto.aggregator.CreateOrUpdateSecretReq", null, global);
84
80
  goog.exportSymbol("proto.aggregator.CreateSecretResp", null, global);
85
81
  goog.exportSymbol("proto.aggregator.CreateTaskReq", null, global);
@@ -378,7 +374,7 @@ var require_avs_pb = __commonJS({
378
374
  proto.aggregator.ContractWriteNode.Config.displayName = "proto.aggregator.ContractWriteNode.Config";
379
375
  }
380
376
  proto.aggregator.ContractWriteNode.MethodCall = function(opt_data) {
381
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
377
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.ContractWriteNode.MethodCall.repeatedFields_, null);
382
378
  };
383
379
  goog.inherits(proto.aggregator.ContractWriteNode.MethodCall, jspb.Message);
384
380
  if (goog.DEBUG && !COMPILED) {
@@ -392,40 +388,12 @@ var require_avs_pb = __commonJS({
392
388
  proto.aggregator.ContractWriteNode.Output.displayName = "proto.aggregator.ContractWriteNode.Output";
393
389
  }
394
390
  proto.aggregator.ContractWriteNode.MethodResult = function(opt_data) {
395
- jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.ContractWriteNode.MethodResult.repeatedFields_, null);
391
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
396
392
  };
397
393
  goog.inherits(proto.aggregator.ContractWriteNode.MethodResult, jspb.Message);
398
394
  if (goog.DEBUG && !COMPILED) {
399
395
  proto.aggregator.ContractWriteNode.MethodResult.displayName = "proto.aggregator.ContractWriteNode.MethodResult";
400
396
  }
401
- proto.aggregator.ContractWriteNode.TransactionData = function(opt_data) {
402
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
403
- };
404
- goog.inherits(proto.aggregator.ContractWriteNode.TransactionData, jspb.Message);
405
- if (goog.DEBUG && !COMPILED) {
406
- proto.aggregator.ContractWriteNode.TransactionData.displayName = "proto.aggregator.ContractWriteNode.TransactionData";
407
- }
408
- proto.aggregator.ContractWriteNode.EventData = function(opt_data) {
409
- jspb.Message.initialize(this, opt_data, 0, -1, proto.aggregator.ContractWriteNode.EventData.repeatedFields_, null);
410
- };
411
- goog.inherits(proto.aggregator.ContractWriteNode.EventData, jspb.Message);
412
- if (goog.DEBUG && !COMPILED) {
413
- proto.aggregator.ContractWriteNode.EventData.displayName = "proto.aggregator.ContractWriteNode.EventData";
414
- }
415
- proto.aggregator.ContractWriteNode.ErrorData = function(opt_data) {
416
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
417
- };
418
- goog.inherits(proto.aggregator.ContractWriteNode.ErrorData, jspb.Message);
419
- if (goog.DEBUG && !COMPILED) {
420
- proto.aggregator.ContractWriteNode.ErrorData.displayName = "proto.aggregator.ContractWriteNode.ErrorData";
421
- }
422
- proto.aggregator.ContractWriteNode.ReturnData = function(opt_data) {
423
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
424
- };
425
- goog.inherits(proto.aggregator.ContractWriteNode.ReturnData, jspb.Message);
426
- if (goog.DEBUG && !COMPILED) {
427
- proto.aggregator.ContractWriteNode.ReturnData.displayName = "proto.aggregator.ContractWriteNode.ReturnData";
428
- }
429
397
  proto.aggregator.ContractReadNode = function(opt_data) {
430
398
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
431
399
  };
@@ -1338,8 +1306,7 @@ var require_avs_pb = __commonJS({
1338
1306
  };
1339
1307
  proto.aggregator.FixedTimeTrigger.toObject = function(includeInstance, msg) {
1340
1308
  var f, obj = {
1341
- config: (f = msg.getConfig()) && proto.aggregator.FixedTimeTrigger.Config.toObject(includeInstance, f),
1342
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1309
+ config: (f = msg.getConfig()) && proto.aggregator.FixedTimeTrigger.Config.toObject(includeInstance, f)
1343
1310
  };
1344
1311
  if (includeInstance) {
1345
1312
  obj.$jspbMessageInstance = msg;
@@ -1364,11 +1331,6 @@ var require_avs_pb = __commonJS({
1364
1331
  reader.readMessage(value, proto.aggregator.FixedTimeTrigger.Config.deserializeBinaryFromReader);
1365
1332
  msg.setConfig(value);
1366
1333
  break;
1367
- case 2:
1368
- var value = new google_protobuf_struct_pb2.Value();
1369
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1370
- msg.setInput(value);
1371
- break;
1372
1334
  default:
1373
1335
  reader.skipField();
1374
1336
  break;
@@ -1391,14 +1353,6 @@ var require_avs_pb = __commonJS({
1391
1353
  proto.aggregator.FixedTimeTrigger.Config.serializeBinaryToWriter
1392
1354
  );
1393
1355
  }
1394
- f = message.getInput();
1395
- if (f != null) {
1396
- writer.writeMessage(
1397
- 2,
1398
- f,
1399
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
1400
- );
1401
- }
1402
1356
  };
1403
1357
  proto.aggregator.FixedTimeTrigger.Config.repeatedFields_ = [1];
1404
1358
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1479,8 +1433,7 @@ var require_avs_pb = __commonJS({
1479
1433
  };
1480
1434
  proto.aggregator.FixedTimeTrigger.Output.toObject = function(includeInstance, msg) {
1481
1435
  var f, obj = {
1482
- timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0),
1483
- timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
1436
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1484
1437
  };
1485
1438
  if (includeInstance) {
1486
1439
  obj.$jspbMessageInstance = msg;
@@ -1501,18 +1454,9 @@ var require_avs_pb = __commonJS({
1501
1454
  var field = reader.getFieldNumber();
1502
1455
  switch (field) {
1503
1456
  case 1:
1504
- var value = (
1505
- /** @type {number} */
1506
- reader.readUint64()
1507
- );
1508
- msg.setTimestamp(value);
1509
- break;
1510
- case 2:
1511
- var value = (
1512
- /** @type {string} */
1513
- reader.readString()
1514
- );
1515
- msg.setTimestampIso(value);
1457
+ var value = new google_protobuf_struct_pb2.Value();
1458
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1459
+ msg.setData(value);
1516
1460
  break;
1517
1461
  default:
1518
1462
  reader.skipField();
@@ -1528,38 +1472,29 @@ var require_avs_pb = __commonJS({
1528
1472
  };
1529
1473
  proto.aggregator.FixedTimeTrigger.Output.serializeBinaryToWriter = function(message, writer) {
1530
1474
  var f = void 0;
1531
- f = message.getTimestamp();
1532
- if (f !== 0) {
1533
- writer.writeUint64(
1475
+ f = message.getData();
1476
+ if (f != null) {
1477
+ writer.writeMessage(
1534
1478
  1,
1535
- f
1536
- );
1537
- }
1538
- f = message.getTimestampIso();
1539
- if (f.length > 0) {
1540
- writer.writeString(
1541
- 2,
1542
- f
1479
+ f,
1480
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
1543
1481
  );
1544
1482
  }
1545
1483
  };
1546
- proto.aggregator.FixedTimeTrigger.Output.prototype.getTimestamp = function() {
1484
+ proto.aggregator.FixedTimeTrigger.Output.prototype.getData = function() {
1547
1485
  return (
1548
- /** @type {number} */
1549
- jspb.Message.getFieldWithDefault(this, 1, 0)
1486
+ /** @type{?proto.google.protobuf.Value} */
1487
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
1550
1488
  );
1551
1489
  };
1552
- proto.aggregator.FixedTimeTrigger.Output.prototype.setTimestamp = function(value) {
1553
- return jspb.Message.setProto3IntField(this, 1, value);
1490
+ proto.aggregator.FixedTimeTrigger.Output.prototype.setData = function(value) {
1491
+ return jspb.Message.setWrapperField(this, 1, value);
1554
1492
  };
1555
- proto.aggregator.FixedTimeTrigger.Output.prototype.getTimestampIso = function() {
1556
- return (
1557
- /** @type {string} */
1558
- jspb.Message.getFieldWithDefault(this, 2, "")
1559
- );
1493
+ proto.aggregator.FixedTimeTrigger.Output.prototype.clearData = function() {
1494
+ return this.setData(void 0);
1560
1495
  };
1561
- proto.aggregator.FixedTimeTrigger.Output.prototype.setTimestampIso = function(value) {
1562
- return jspb.Message.setProto3StringField(this, 2, value);
1496
+ proto.aggregator.FixedTimeTrigger.Output.prototype.hasData = function() {
1497
+ return jspb.Message.getField(this, 1) != null;
1563
1498
  };
1564
1499
  proto.aggregator.FixedTimeTrigger.prototype.getConfig = function() {
1565
1500
  return (
@@ -1576,29 +1511,13 @@ var require_avs_pb = __commonJS({
1576
1511
  proto.aggregator.FixedTimeTrigger.prototype.hasConfig = function() {
1577
1512
  return jspb.Message.getField(this, 1) != null;
1578
1513
  };
1579
- proto.aggregator.FixedTimeTrigger.prototype.getInput = function() {
1580
- return (
1581
- /** @type{?proto.google.protobuf.Value} */
1582
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
1583
- );
1584
- };
1585
- proto.aggregator.FixedTimeTrigger.prototype.setInput = function(value) {
1586
- return jspb.Message.setWrapperField(this, 2, value);
1587
- };
1588
- proto.aggregator.FixedTimeTrigger.prototype.clearInput = function() {
1589
- return this.setInput(void 0);
1590
- };
1591
- proto.aggregator.FixedTimeTrigger.prototype.hasInput = function() {
1592
- return jspb.Message.getField(this, 2) != null;
1593
- };
1594
1514
  if (jspb.Message.GENERATE_TO_OBJECT) {
1595
1515
  proto.aggregator.CronTrigger.prototype.toObject = function(opt_includeInstance) {
1596
1516
  return proto.aggregator.CronTrigger.toObject(opt_includeInstance, this);
1597
1517
  };
1598
1518
  proto.aggregator.CronTrigger.toObject = function(includeInstance, msg) {
1599
1519
  var f, obj = {
1600
- config: (f = msg.getConfig()) && proto.aggregator.CronTrigger.Config.toObject(includeInstance, f),
1601
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1520
+ config: (f = msg.getConfig()) && proto.aggregator.CronTrigger.Config.toObject(includeInstance, f)
1602
1521
  };
1603
1522
  if (includeInstance) {
1604
1523
  obj.$jspbMessageInstance = msg;
@@ -1623,11 +1542,6 @@ var require_avs_pb = __commonJS({
1623
1542
  reader.readMessage(value, proto.aggregator.CronTrigger.Config.deserializeBinaryFromReader);
1624
1543
  msg.setConfig(value);
1625
1544
  break;
1626
- case 2:
1627
- var value = new google_protobuf_struct_pb2.Value();
1628
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1629
- msg.setInput(value);
1630
- break;
1631
1545
  default:
1632
1546
  reader.skipField();
1633
1547
  break;
@@ -1650,14 +1564,6 @@ var require_avs_pb = __commonJS({
1650
1564
  proto.aggregator.CronTrigger.Config.serializeBinaryToWriter
1651
1565
  );
1652
1566
  }
1653
- f = message.getInput();
1654
- if (f != null) {
1655
- writer.writeMessage(
1656
- 2,
1657
- f,
1658
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
1659
- );
1660
- }
1661
1567
  };
1662
1568
  proto.aggregator.CronTrigger.Config.repeatedFields_ = [1];
1663
1569
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1736,8 +1642,7 @@ var require_avs_pb = __commonJS({
1736
1642
  };
1737
1643
  proto.aggregator.CronTrigger.Output.toObject = function(includeInstance, msg) {
1738
1644
  var f, obj = {
1739
- timestamp: jspb.Message.getFieldWithDefault(msg, 1, 0),
1740
- timestampIso: jspb.Message.getFieldWithDefault(msg, 2, "")
1645
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1741
1646
  };
1742
1647
  if (includeInstance) {
1743
1648
  obj.$jspbMessageInstance = msg;
@@ -1758,18 +1663,9 @@ var require_avs_pb = __commonJS({
1758
1663
  var field = reader.getFieldNumber();
1759
1664
  switch (field) {
1760
1665
  case 1:
1761
- var value = (
1762
- /** @type {number} */
1763
- reader.readUint64()
1764
- );
1765
- msg.setTimestamp(value);
1766
- break;
1767
- case 2:
1768
- var value = (
1769
- /** @type {string} */
1770
- reader.readString()
1771
- );
1772
- msg.setTimestampIso(value);
1666
+ var value = new google_protobuf_struct_pb2.Value();
1667
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1668
+ msg.setData(value);
1773
1669
  break;
1774
1670
  default:
1775
1671
  reader.skipField();
@@ -1785,38 +1681,29 @@ var require_avs_pb = __commonJS({
1785
1681
  };
1786
1682
  proto.aggregator.CronTrigger.Output.serializeBinaryToWriter = function(message, writer) {
1787
1683
  var f = void 0;
1788
- f = message.getTimestamp();
1789
- if (f !== 0) {
1790
- writer.writeUint64(
1684
+ f = message.getData();
1685
+ if (f != null) {
1686
+ writer.writeMessage(
1791
1687
  1,
1792
- f
1793
- );
1794
- }
1795
- f = message.getTimestampIso();
1796
- if (f.length > 0) {
1797
- writer.writeString(
1798
- 2,
1799
- f
1688
+ f,
1689
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
1800
1690
  );
1801
1691
  }
1802
1692
  };
1803
- proto.aggregator.CronTrigger.Output.prototype.getTimestamp = function() {
1693
+ proto.aggregator.CronTrigger.Output.prototype.getData = function() {
1804
1694
  return (
1805
- /** @type {number} */
1806
- jspb.Message.getFieldWithDefault(this, 1, 0)
1695
+ /** @type{?proto.google.protobuf.Value} */
1696
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
1807
1697
  );
1808
1698
  };
1809
- proto.aggregator.CronTrigger.Output.prototype.setTimestamp = function(value) {
1810
- return jspb.Message.setProto3IntField(this, 1, value);
1699
+ proto.aggregator.CronTrigger.Output.prototype.setData = function(value) {
1700
+ return jspb.Message.setWrapperField(this, 1, value);
1811
1701
  };
1812
- proto.aggregator.CronTrigger.Output.prototype.getTimestampIso = function() {
1813
- return (
1814
- /** @type {string} */
1815
- jspb.Message.getFieldWithDefault(this, 2, "")
1816
- );
1702
+ proto.aggregator.CronTrigger.Output.prototype.clearData = function() {
1703
+ return this.setData(void 0);
1817
1704
  };
1818
- proto.aggregator.CronTrigger.Output.prototype.setTimestampIso = function(value) {
1819
- return jspb.Message.setProto3StringField(this, 2, value);
1705
+ proto.aggregator.CronTrigger.Output.prototype.hasData = function() {
1706
+ return jspb.Message.getField(this, 1) != null;
1820
1707
  };
1821
1708
  proto.aggregator.CronTrigger.prototype.getConfig = function() {
1822
1709
  return (
@@ -1833,29 +1720,13 @@ var require_avs_pb = __commonJS({
1833
1720
  proto.aggregator.CronTrigger.prototype.hasConfig = function() {
1834
1721
  return jspb.Message.getField(this, 1) != null;
1835
1722
  };
1836
- proto.aggregator.CronTrigger.prototype.getInput = function() {
1837
- return (
1838
- /** @type{?proto.google.protobuf.Value} */
1839
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
1840
- );
1841
- };
1842
- proto.aggregator.CronTrigger.prototype.setInput = function(value) {
1843
- return jspb.Message.setWrapperField(this, 2, value);
1844
- };
1845
- proto.aggregator.CronTrigger.prototype.clearInput = function() {
1846
- return this.setInput(void 0);
1847
- };
1848
- proto.aggregator.CronTrigger.prototype.hasInput = function() {
1849
- return jspb.Message.getField(this, 2) != null;
1850
- };
1851
1723
  if (jspb.Message.GENERATE_TO_OBJECT) {
1852
1724
  proto.aggregator.BlockTrigger.prototype.toObject = function(opt_includeInstance) {
1853
1725
  return proto.aggregator.BlockTrigger.toObject(opt_includeInstance, this);
1854
1726
  };
1855
1727
  proto.aggregator.BlockTrigger.toObject = function(includeInstance, msg) {
1856
1728
  var f, obj = {
1857
- config: (f = msg.getConfig()) && proto.aggregator.BlockTrigger.Config.toObject(includeInstance, f),
1858
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1729
+ config: (f = msg.getConfig()) && proto.aggregator.BlockTrigger.Config.toObject(includeInstance, f)
1859
1730
  };
1860
1731
  if (includeInstance) {
1861
1732
  obj.$jspbMessageInstance = msg;
@@ -1880,11 +1751,6 @@ var require_avs_pb = __commonJS({
1880
1751
  reader.readMessage(value, proto.aggregator.BlockTrigger.Config.deserializeBinaryFromReader);
1881
1752
  msg.setConfig(value);
1882
1753
  break;
1883
- case 2:
1884
- var value = new google_protobuf_struct_pb2.Value();
1885
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1886
- msg.setInput(value);
1887
- break;
1888
1754
  default:
1889
1755
  reader.skipField();
1890
1756
  break;
@@ -1907,14 +1773,6 @@ var require_avs_pb = __commonJS({
1907
1773
  proto.aggregator.BlockTrigger.Config.serializeBinaryToWriter
1908
1774
  );
1909
1775
  }
1910
- f = message.getInput();
1911
- if (f != null) {
1912
- writer.writeMessage(
1913
- 2,
1914
- f,
1915
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
1916
- );
1917
- }
1918
1776
  };
1919
1777
  if (jspb.Message.GENERATE_TO_OBJECT) {
1920
1778
  proto.aggregator.BlockTrigger.Config.prototype.toObject = function(opt_includeInstance) {
@@ -1986,13 +1844,7 @@ var require_avs_pb = __commonJS({
1986
1844
  };
1987
1845
  proto.aggregator.BlockTrigger.Output.toObject = function(includeInstance, msg) {
1988
1846
  var f, obj = {
1989
- blockNumber: jspb.Message.getFieldWithDefault(msg, 1, 0),
1990
- blockHash: jspb.Message.getFieldWithDefault(msg, 2, ""),
1991
- timestamp: jspb.Message.getFieldWithDefault(msg, 3, 0),
1992
- parentHash: jspb.Message.getFieldWithDefault(msg, 4, ""),
1993
- difficulty: jspb.Message.getFieldWithDefault(msg, 5, ""),
1994
- gasLimit: jspb.Message.getFieldWithDefault(msg, 6, 0),
1995
- gasUsed: jspb.Message.getFieldWithDefault(msg, 7, 0)
1847
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1996
1848
  };
1997
1849
  if (includeInstance) {
1998
1850
  obj.$jspbMessageInstance = msg;
@@ -2013,53 +1865,9 @@ var require_avs_pb = __commonJS({
2013
1865
  var field = reader.getFieldNumber();
2014
1866
  switch (field) {
2015
1867
  case 1:
2016
- var value = (
2017
- /** @type {number} */
2018
- reader.readUint64()
2019
- );
2020
- msg.setBlockNumber(value);
2021
- break;
2022
- case 2:
2023
- var value = (
2024
- /** @type {string} */
2025
- reader.readString()
2026
- );
2027
- msg.setBlockHash(value);
2028
- break;
2029
- case 3:
2030
- var value = (
2031
- /** @type {number} */
2032
- reader.readUint64()
2033
- );
2034
- msg.setTimestamp(value);
2035
- break;
2036
- case 4:
2037
- var value = (
2038
- /** @type {string} */
2039
- reader.readString()
2040
- );
2041
- msg.setParentHash(value);
2042
- break;
2043
- case 5:
2044
- var value = (
2045
- /** @type {string} */
2046
- reader.readString()
2047
- );
2048
- msg.setDifficulty(value);
2049
- break;
2050
- case 6:
2051
- var value = (
2052
- /** @type {number} */
2053
- reader.readUint64()
2054
- );
2055
- msg.setGasLimit(value);
2056
- break;
2057
- case 7:
2058
- var value = (
2059
- /** @type {number} */
2060
- reader.readUint64()
2061
- );
2062
- msg.setGasUsed(value);
1868
+ var value = new google_protobuf_struct_pb2.Value();
1869
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
1870
+ msg.setData(value);
2063
1871
  break;
2064
1872
  default:
2065
1873
  reader.skipField();
@@ -2075,120 +1883,31 @@ var require_avs_pb = __commonJS({
2075
1883
  };
2076
1884
  proto.aggregator.BlockTrigger.Output.serializeBinaryToWriter = function(message, writer) {
2077
1885
  var f = void 0;
2078
- f = message.getBlockNumber();
2079
- if (f !== 0) {
2080
- writer.writeUint64(
1886
+ f = message.getData();
1887
+ if (f != null) {
1888
+ writer.writeMessage(
2081
1889
  1,
2082
- f
2083
- );
2084
- }
2085
- f = message.getBlockHash();
2086
- if (f.length > 0) {
2087
- writer.writeString(
2088
- 2,
2089
- f
2090
- );
2091
- }
2092
- f = message.getTimestamp();
2093
- if (f !== 0) {
2094
- writer.writeUint64(
2095
- 3,
2096
- f
2097
- );
2098
- }
2099
- f = message.getParentHash();
2100
- if (f.length > 0) {
2101
- writer.writeString(
2102
- 4,
2103
- f
2104
- );
2105
- }
2106
- f = message.getDifficulty();
2107
- if (f.length > 0) {
2108
- writer.writeString(
2109
- 5,
2110
- f
2111
- );
2112
- }
2113
- f = message.getGasLimit();
2114
- if (f !== 0) {
2115
- writer.writeUint64(
2116
- 6,
2117
- f
2118
- );
2119
- }
2120
- f = message.getGasUsed();
2121
- if (f !== 0) {
2122
- writer.writeUint64(
2123
- 7,
2124
- f
1890
+ f,
1891
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
2125
1892
  );
2126
1893
  }
2127
1894
  };
2128
- proto.aggregator.BlockTrigger.Output.prototype.getBlockNumber = function() {
1895
+ proto.aggregator.BlockTrigger.Output.prototype.getData = function() {
2129
1896
  return (
2130
- /** @type {number} */
2131
- jspb.Message.getFieldWithDefault(this, 1, 0)
1897
+ /** @type{?proto.google.protobuf.Value} */
1898
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
2132
1899
  );
2133
1900
  };
2134
- proto.aggregator.BlockTrigger.Output.prototype.setBlockNumber = function(value) {
2135
- return jspb.Message.setProto3IntField(this, 1, value);
1901
+ proto.aggregator.BlockTrigger.Output.prototype.setData = function(value) {
1902
+ return jspb.Message.setWrapperField(this, 1, value);
2136
1903
  };
2137
- proto.aggregator.BlockTrigger.Output.prototype.getBlockHash = function() {
2138
- return (
2139
- /** @type {string} */
2140
- jspb.Message.getFieldWithDefault(this, 2, "")
2141
- );
1904
+ proto.aggregator.BlockTrigger.Output.prototype.clearData = function() {
1905
+ return this.setData(void 0);
2142
1906
  };
2143
- proto.aggregator.BlockTrigger.Output.prototype.setBlockHash = function(value) {
2144
- return jspb.Message.setProto3StringField(this, 2, value);
1907
+ proto.aggregator.BlockTrigger.Output.prototype.hasData = function() {
1908
+ return jspb.Message.getField(this, 1) != null;
2145
1909
  };
2146
- proto.aggregator.BlockTrigger.Output.prototype.getTimestamp = function() {
2147
- return (
2148
- /** @type {number} */
2149
- jspb.Message.getFieldWithDefault(this, 3, 0)
2150
- );
2151
- };
2152
- proto.aggregator.BlockTrigger.Output.prototype.setTimestamp = function(value) {
2153
- return jspb.Message.setProto3IntField(this, 3, value);
2154
- };
2155
- proto.aggregator.BlockTrigger.Output.prototype.getParentHash = function() {
2156
- return (
2157
- /** @type {string} */
2158
- jspb.Message.getFieldWithDefault(this, 4, "")
2159
- );
2160
- };
2161
- proto.aggregator.BlockTrigger.Output.prototype.setParentHash = function(value) {
2162
- return jspb.Message.setProto3StringField(this, 4, value);
2163
- };
2164
- proto.aggregator.BlockTrigger.Output.prototype.getDifficulty = function() {
2165
- return (
2166
- /** @type {string} */
2167
- jspb.Message.getFieldWithDefault(this, 5, "")
2168
- );
2169
- };
2170
- proto.aggregator.BlockTrigger.Output.prototype.setDifficulty = function(value) {
2171
- return jspb.Message.setProto3StringField(this, 5, value);
2172
- };
2173
- proto.aggregator.BlockTrigger.Output.prototype.getGasLimit = function() {
2174
- return (
2175
- /** @type {number} */
2176
- jspb.Message.getFieldWithDefault(this, 6, 0)
2177
- );
2178
- };
2179
- proto.aggregator.BlockTrigger.Output.prototype.setGasLimit = function(value) {
2180
- return jspb.Message.setProto3IntField(this, 6, value);
2181
- };
2182
- proto.aggregator.BlockTrigger.Output.prototype.getGasUsed = function() {
2183
- return (
2184
- /** @type {number} */
2185
- jspb.Message.getFieldWithDefault(this, 7, 0)
2186
- );
2187
- };
2188
- proto.aggregator.BlockTrigger.Output.prototype.setGasUsed = function(value) {
2189
- return jspb.Message.setProto3IntField(this, 7, value);
2190
- };
2191
- proto.aggregator.BlockTrigger.prototype.getConfig = function() {
1910
+ proto.aggregator.BlockTrigger.prototype.getConfig = function() {
2192
1911
  return (
2193
1912
  /** @type{?proto.aggregator.BlockTrigger.Config} */
2194
1913
  jspb.Message.getWrapperField(this, proto.aggregator.BlockTrigger.Config, 1)
@@ -2203,29 +1922,13 @@ var require_avs_pb = __commonJS({
2203
1922
  proto.aggregator.BlockTrigger.prototype.hasConfig = function() {
2204
1923
  return jspb.Message.getField(this, 1) != null;
2205
1924
  };
2206
- proto.aggregator.BlockTrigger.prototype.getInput = function() {
2207
- return (
2208
- /** @type{?proto.google.protobuf.Value} */
2209
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
2210
- );
2211
- };
2212
- proto.aggregator.BlockTrigger.prototype.setInput = function(value) {
2213
- return jspb.Message.setWrapperField(this, 2, value);
2214
- };
2215
- proto.aggregator.BlockTrigger.prototype.clearInput = function() {
2216
- return this.setInput(void 0);
2217
- };
2218
- proto.aggregator.BlockTrigger.prototype.hasInput = function() {
2219
- return jspb.Message.getField(this, 2) != null;
2220
- };
2221
1925
  if (jspb.Message.GENERATE_TO_OBJECT) {
2222
1926
  proto.aggregator.EventTrigger.prototype.toObject = function(opt_includeInstance) {
2223
1927
  return proto.aggregator.EventTrigger.toObject(opt_includeInstance, this);
2224
1928
  };
2225
1929
  proto.aggregator.EventTrigger.toObject = function(includeInstance, msg) {
2226
1930
  var f, obj = {
2227
- config: (f = msg.getConfig()) && proto.aggregator.EventTrigger.Config.toObject(includeInstance, f),
2228
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
1931
+ config: (f = msg.getConfig()) && proto.aggregator.EventTrigger.Config.toObject(includeInstance, f)
2229
1932
  };
2230
1933
  if (includeInstance) {
2231
1934
  obj.$jspbMessageInstance = msg;
@@ -2250,11 +1953,6 @@ var require_avs_pb = __commonJS({
2250
1953
  reader.readMessage(value, proto.aggregator.EventTrigger.Config.deserializeBinaryFromReader);
2251
1954
  msg.setConfig(value);
2252
1955
  break;
2253
- case 2:
2254
- var value = new google_protobuf_struct_pb2.Value();
2255
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
2256
- msg.setInput(value);
2257
- break;
2258
1956
  default:
2259
1957
  reader.skipField();
2260
1958
  break;
@@ -2277,14 +1975,6 @@ var require_avs_pb = __commonJS({
2277
1975
  proto.aggregator.EventTrigger.Config.serializeBinaryToWriter
2278
1976
  );
2279
1977
  }
2280
- f = message.getInput();
2281
- if (f != null) {
2282
- writer.writeMessage(
2283
- 2,
2284
- f,
2285
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
2286
- );
2287
- }
2288
1978
  };
2289
1979
  proto.aggregator.EventTrigger.Query.repeatedFields_ = [1, 2, 5, 6];
2290
1980
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -2859,29 +2549,13 @@ var require_avs_pb = __commonJS({
2859
2549
  proto.aggregator.EventTrigger.prototype.hasConfig = function() {
2860
2550
  return jspb.Message.getField(this, 1) != null;
2861
2551
  };
2862
- proto.aggregator.EventTrigger.prototype.getInput = function() {
2863
- return (
2864
- /** @type{?proto.google.protobuf.Value} */
2865
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
2866
- );
2867
- };
2868
- proto.aggregator.EventTrigger.prototype.setInput = function(value) {
2869
- return jspb.Message.setWrapperField(this, 2, value);
2870
- };
2871
- proto.aggregator.EventTrigger.prototype.clearInput = function() {
2872
- return this.setInput(void 0);
2873
- };
2874
- proto.aggregator.EventTrigger.prototype.hasInput = function() {
2875
- return jspb.Message.getField(this, 2) != null;
2876
- };
2877
2552
  if (jspb.Message.GENERATE_TO_OBJECT) {
2878
2553
  proto.aggregator.ManualTrigger.prototype.toObject = function(opt_includeInstance) {
2879
2554
  return proto.aggregator.ManualTrigger.toObject(opt_includeInstance, this);
2880
2555
  };
2881
2556
  proto.aggregator.ManualTrigger.toObject = function(includeInstance, msg) {
2882
2557
  var f, obj = {
2883
- config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f),
2884
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
2558
+ config: (f = msg.getConfig()) && proto.aggregator.ManualTrigger.Config.toObject(includeInstance, f)
2885
2559
  };
2886
2560
  if (includeInstance) {
2887
2561
  obj.$jspbMessageInstance = msg;
@@ -2906,11 +2580,6 @@ var require_avs_pb = __commonJS({
2906
2580
  reader.readMessage(value, proto.aggregator.ManualTrigger.Config.deserializeBinaryFromReader);
2907
2581
  msg.setConfig(value);
2908
2582
  break;
2909
- case 2:
2910
- var value = new google_protobuf_struct_pb2.Value();
2911
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
2912
- msg.setInput(value);
2913
- break;
2914
2583
  default:
2915
2584
  reader.skipField();
2916
2585
  break;
@@ -2933,14 +2602,6 @@ var require_avs_pb = __commonJS({
2933
2602
  proto.aggregator.ManualTrigger.Config.serializeBinaryToWriter
2934
2603
  );
2935
2604
  }
2936
- f = message.getInput();
2937
- if (f != null) {
2938
- writer.writeMessage(
2939
- 2,
2940
- f,
2941
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
2942
- );
2943
- }
2944
2605
  };
2945
2606
  if (jspb.Message.GENERATE_TO_OBJECT) {
2946
2607
  proto.aggregator.ManualTrigger.Config.prototype.toObject = function(opt_includeInstance) {
@@ -3069,9 +2730,7 @@ var require_avs_pb = __commonJS({
3069
2730
  };
3070
2731
  proto.aggregator.ManualTrigger.Output.toObject = function(includeInstance, msg) {
3071
2732
  var f, obj = {
3072
- data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f),
3073
- headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, void 0) : [],
3074
- pathparamsMap: (f = msg.getPathparamsMap()) ? f.toObject(includeInstance, void 0) : []
2733
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
3075
2734
  };
3076
2735
  if (includeInstance) {
3077
2736
  obj.$jspbMessageInstance = msg;
@@ -3096,18 +2755,6 @@ var require_avs_pb = __commonJS({
3096
2755
  reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3097
2756
  msg.setData(value);
3098
2757
  break;
3099
- case 2:
3100
- var value = msg.getHeadersMap();
3101
- reader.readMessage(value, function(message, reader2) {
3102
- jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3103
- });
3104
- break;
3105
- case 3:
3106
- var value = msg.getPathparamsMap();
3107
- reader.readMessage(value, function(message, reader2) {
3108
- jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
3109
- });
3110
- break;
3111
2758
  default:
3112
2759
  reader.skipField();
3113
2760
  break;
@@ -3130,14 +2777,6 @@ var require_avs_pb = __commonJS({
3130
2777
  google_protobuf_struct_pb2.Value.serializeBinaryToWriter
3131
2778
  );
3132
2779
  }
3133
- f = message.getHeadersMap(true);
3134
- if (f && f.getLength() > 0) {
3135
- f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3136
- }
3137
- f = message.getPathparamsMap(true);
3138
- if (f && f.getLength() > 0) {
3139
- f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
3140
- }
3141
2780
  };
3142
2781
  proto.aggregator.ManualTrigger.Output.prototype.getData = function() {
3143
2782
  return (
@@ -3154,36 +2793,6 @@ var require_avs_pb = __commonJS({
3154
2793
  proto.aggregator.ManualTrigger.Output.prototype.hasData = function() {
3155
2794
  return jspb.Message.getField(this, 1) != null;
3156
2795
  };
3157
- proto.aggregator.ManualTrigger.Output.prototype.getHeadersMap = function(opt_noLazyCreate) {
3158
- return (
3159
- /** @type {!jspb.Map<string,string>} */
3160
- jspb.Message.getMapField(
3161
- this,
3162
- 2,
3163
- opt_noLazyCreate,
3164
- null
3165
- )
3166
- );
3167
- };
3168
- proto.aggregator.ManualTrigger.Output.prototype.clearHeadersMap = function() {
3169
- this.getHeadersMap().clear();
3170
- return this;
3171
- };
3172
- proto.aggregator.ManualTrigger.Output.prototype.getPathparamsMap = function(opt_noLazyCreate) {
3173
- return (
3174
- /** @type {!jspb.Map<string,string>} */
3175
- jspb.Message.getMapField(
3176
- this,
3177
- 3,
3178
- opt_noLazyCreate,
3179
- null
3180
- )
3181
- );
3182
- };
3183
- proto.aggregator.ManualTrigger.Output.prototype.clearPathparamsMap = function() {
3184
- this.getPathparamsMap().clear();
3185
- return this;
3186
- };
3187
2796
  proto.aggregator.ManualTrigger.prototype.getConfig = function() {
3188
2797
  return (
3189
2798
  /** @type{?proto.aggregator.ManualTrigger.Config} */
@@ -3199,21 +2808,6 @@ var require_avs_pb = __commonJS({
3199
2808
  proto.aggregator.ManualTrigger.prototype.hasConfig = function() {
3200
2809
  return jspb.Message.getField(this, 1) != null;
3201
2810
  };
3202
- proto.aggregator.ManualTrigger.prototype.getInput = function() {
3203
- return (
3204
- /** @type{?proto.google.protobuf.Value} */
3205
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
3206
- );
3207
- };
3208
- proto.aggregator.ManualTrigger.prototype.setInput = function(value) {
3209
- return jspb.Message.setWrapperField(this, 2, value);
3210
- };
3211
- proto.aggregator.ManualTrigger.prototype.clearInput = function() {
3212
- return this.setInput(void 0);
3213
- };
3214
- proto.aggregator.ManualTrigger.prototype.hasInput = function() {
3215
- return jspb.Message.getField(this, 2) != null;
3216
- };
3217
2811
  proto.aggregator.TaskTrigger.oneofGroups_ = [[2, 3, 4, 5, 6]];
3218
2812
  proto.aggregator.TaskTrigger.TriggerTypeCase = {
3219
2813
  TRIGGER_TYPE_NOT_SET: 0,
@@ -3242,8 +2836,7 @@ var require_avs_pb = __commonJS({
3242
2836
  cron: (f = msg.getCron()) && proto.aggregator.CronTrigger.toObject(includeInstance, f),
3243
2837
  block: (f = msg.getBlock()) && proto.aggregator.BlockTrigger.toObject(includeInstance, f),
3244
2838
  event: (f = msg.getEvent()) && proto.aggregator.EventTrigger.toObject(includeInstance, f),
3245
- id: jspb.Message.getFieldWithDefault(msg, 7, ""),
3246
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
2839
+ id: jspb.Message.getFieldWithDefault(msg, 7, "")
3247
2840
  };
3248
2841
  if (includeInstance) {
3249
2842
  obj.$jspbMessageInstance = msg;
@@ -3309,11 +2902,6 @@ var require_avs_pb = __commonJS({
3309
2902
  );
3310
2903
  msg.setId(value);
3311
2904
  break;
3312
- case 9:
3313
- var value = new google_protobuf_struct_pb2.Value();
3314
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3315
- msg.setInput(value);
3316
- break;
3317
2905
  default:
3318
2906
  reader.skipField();
3319
2907
  break;
@@ -3389,14 +2977,6 @@ var require_avs_pb = __commonJS({
3389
2977
  f
3390
2978
  );
3391
2979
  }
3392
- f = message.getInput();
3393
- if (f != null) {
3394
- writer.writeMessage(
3395
- 9,
3396
- f,
3397
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
3398
- );
3399
- }
3400
2980
  };
3401
2981
  proto.aggregator.TaskTrigger.prototype.getName = function() {
3402
2982
  return (
@@ -3500,29 +3080,13 @@ var require_avs_pb = __commonJS({
3500
3080
  proto.aggregator.TaskTrigger.prototype.setId = function(value) {
3501
3081
  return jspb.Message.setProto3StringField(this, 7, value);
3502
3082
  };
3503
- proto.aggregator.TaskTrigger.prototype.getInput = function() {
3504
- return (
3505
- /** @type{?proto.google.protobuf.Value} */
3506
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 9)
3507
- );
3508
- };
3509
- proto.aggregator.TaskTrigger.prototype.setInput = function(value) {
3510
- return jspb.Message.setWrapperField(this, 9, value);
3511
- };
3512
- proto.aggregator.TaskTrigger.prototype.clearInput = function() {
3513
- return this.setInput(void 0);
3514
- };
3515
- proto.aggregator.TaskTrigger.prototype.hasInput = function() {
3516
- return jspb.Message.getField(this, 9) != null;
3517
- };
3518
3083
  if (jspb.Message.GENERATE_TO_OBJECT) {
3519
3084
  proto.aggregator.ETHTransferNode.prototype.toObject = function(opt_includeInstance) {
3520
3085
  return proto.aggregator.ETHTransferNode.toObject(opt_includeInstance, this);
3521
3086
  };
3522
3087
  proto.aggregator.ETHTransferNode.toObject = function(includeInstance, msg) {
3523
3088
  var f, obj = {
3524
- config: (f = msg.getConfig()) && proto.aggregator.ETHTransferNode.Config.toObject(includeInstance, f),
3525
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
3089
+ config: (f = msg.getConfig()) && proto.aggregator.ETHTransferNode.Config.toObject(includeInstance, f)
3526
3090
  };
3527
3091
  if (includeInstance) {
3528
3092
  obj.$jspbMessageInstance = msg;
@@ -3547,11 +3111,6 @@ var require_avs_pb = __commonJS({
3547
3111
  reader.readMessage(value, proto.aggregator.ETHTransferNode.Config.deserializeBinaryFromReader);
3548
3112
  msg.setConfig(value);
3549
3113
  break;
3550
- case 2:
3551
- var value = new google_protobuf_struct_pb2.Value();
3552
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3553
- msg.setInput(value);
3554
- break;
3555
3114
  default:
3556
3115
  reader.skipField();
3557
3116
  break;
@@ -3574,14 +3133,6 @@ var require_avs_pb = __commonJS({
3574
3133
  proto.aggregator.ETHTransferNode.Config.serializeBinaryToWriter
3575
3134
  );
3576
3135
  }
3577
- f = message.getInput();
3578
- if (f != null) {
3579
- writer.writeMessage(
3580
- 2,
3581
- f,
3582
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
3583
- );
3584
- }
3585
3136
  };
3586
3137
  if (jspb.Message.GENERATE_TO_OBJECT) {
3587
3138
  proto.aggregator.ETHTransferNode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -3677,7 +3228,7 @@ var require_avs_pb = __commonJS({
3677
3228
  };
3678
3229
  proto.aggregator.ETHTransferNode.Output.toObject = function(includeInstance, msg) {
3679
3230
  var f, obj = {
3680
- transactionHash: jspb.Message.getFieldWithDefault(msg, 1, "")
3231
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
3681
3232
  };
3682
3233
  if (includeInstance) {
3683
3234
  obj.$jspbMessageInstance = msg;
@@ -3698,11 +3249,9 @@ var require_avs_pb = __commonJS({
3698
3249
  var field = reader.getFieldNumber();
3699
3250
  switch (field) {
3700
3251
  case 1:
3701
- var value = (
3702
- /** @type {string} */
3703
- reader.readString()
3704
- );
3705
- msg.setTransactionHash(value);
3252
+ var value = new google_protobuf_struct_pb2.Value();
3253
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3254
+ msg.setData(value);
3706
3255
  break;
3707
3256
  default:
3708
3257
  reader.skipField();
@@ -3718,22 +3267,29 @@ var require_avs_pb = __commonJS({
3718
3267
  };
3719
3268
  proto.aggregator.ETHTransferNode.Output.serializeBinaryToWriter = function(message, writer) {
3720
3269
  var f = void 0;
3721
- f = message.getTransactionHash();
3722
- if (f.length > 0) {
3723
- writer.writeString(
3270
+ f = message.getData();
3271
+ if (f != null) {
3272
+ writer.writeMessage(
3724
3273
  1,
3725
- f
3274
+ f,
3275
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
3726
3276
  );
3727
3277
  }
3728
3278
  };
3729
- proto.aggregator.ETHTransferNode.Output.prototype.getTransactionHash = function() {
3279
+ proto.aggregator.ETHTransferNode.Output.prototype.getData = function() {
3730
3280
  return (
3731
- /** @type {string} */
3732
- jspb.Message.getFieldWithDefault(this, 1, "")
3281
+ /** @type{?proto.google.protobuf.Value} */
3282
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
3733
3283
  );
3734
3284
  };
3735
- proto.aggregator.ETHTransferNode.Output.prototype.setTransactionHash = function(value) {
3736
- return jspb.Message.setProto3StringField(this, 1, value);
3285
+ proto.aggregator.ETHTransferNode.Output.prototype.setData = function(value) {
3286
+ return jspb.Message.setWrapperField(this, 1, value);
3287
+ };
3288
+ proto.aggregator.ETHTransferNode.Output.prototype.clearData = function() {
3289
+ return this.setData(void 0);
3290
+ };
3291
+ proto.aggregator.ETHTransferNode.Output.prototype.hasData = function() {
3292
+ return jspb.Message.getField(this, 1) != null;
3737
3293
  };
3738
3294
  proto.aggregator.ETHTransferNode.prototype.getConfig = function() {
3739
3295
  return (
@@ -3750,29 +3306,13 @@ var require_avs_pb = __commonJS({
3750
3306
  proto.aggregator.ETHTransferNode.prototype.hasConfig = function() {
3751
3307
  return jspb.Message.getField(this, 1) != null;
3752
3308
  };
3753
- proto.aggregator.ETHTransferNode.prototype.getInput = function() {
3754
- return (
3755
- /** @type{?proto.google.protobuf.Value} */
3756
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
3757
- );
3758
- };
3759
- proto.aggregator.ETHTransferNode.prototype.setInput = function(value) {
3760
- return jspb.Message.setWrapperField(this, 2, value);
3761
- };
3762
- proto.aggregator.ETHTransferNode.prototype.clearInput = function() {
3763
- return this.setInput(void 0);
3764
- };
3765
- proto.aggregator.ETHTransferNode.prototype.hasInput = function() {
3766
- return jspb.Message.getField(this, 2) != null;
3767
- };
3768
3309
  if (jspb.Message.GENERATE_TO_OBJECT) {
3769
3310
  proto.aggregator.ContractWriteNode.prototype.toObject = function(opt_includeInstance) {
3770
3311
  return proto.aggregator.ContractWriteNode.toObject(opt_includeInstance, this);
3771
3312
  };
3772
3313
  proto.aggregator.ContractWriteNode.toObject = function(includeInstance, msg) {
3773
3314
  var f, obj = {
3774
- config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f),
3775
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
3315
+ config: (f = msg.getConfig()) && proto.aggregator.ContractWriteNode.Config.toObject(includeInstance, f)
3776
3316
  };
3777
3317
  if (includeInstance) {
3778
3318
  obj.$jspbMessageInstance = msg;
@@ -3797,11 +3337,6 @@ var require_avs_pb = __commonJS({
3797
3337
  reader.readMessage(value, proto.aggregator.ContractWriteNode.Config.deserializeBinaryFromReader);
3798
3338
  msg.setConfig(value);
3799
3339
  break;
3800
- case 2:
3801
- var value = new google_protobuf_struct_pb2.Value();
3802
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3803
- msg.setInput(value);
3804
- break;
3805
3340
  default:
3806
3341
  reader.skipField();
3807
3342
  break;
@@ -3824,14 +3359,6 @@ var require_avs_pb = __commonJS({
3824
3359
  proto.aggregator.ContractWriteNode.Config.serializeBinaryToWriter
3825
3360
  );
3826
3361
  }
3827
- f = message.getInput();
3828
- if (f != null) {
3829
- writer.writeMessage(
3830
- 2,
3831
- f,
3832
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
3833
- );
3834
- }
3835
3362
  };
3836
3363
  proto.aggregator.ContractWriteNode.Config.repeatedFields_ = [4];
3837
3364
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -3979,6 +3506,7 @@ var require_avs_pb = __commonJS({
3979
3506
  proto.aggregator.ContractWriteNode.Config.prototype.clearMethodCallsList = function() {
3980
3507
  return this.setMethodCallsList([]);
3981
3508
  };
3509
+ proto.aggregator.ContractWriteNode.MethodCall.repeatedFields_ = [3];
3982
3510
  if (jspb.Message.GENERATE_TO_OBJECT) {
3983
3511
  proto.aggregator.ContractWriteNode.MethodCall.prototype.toObject = function(opt_includeInstance) {
3984
3512
  return proto.aggregator.ContractWriteNode.MethodCall.toObject(opt_includeInstance, this);
@@ -3986,7 +3514,8 @@ var require_avs_pb = __commonJS({
3986
3514
  proto.aggregator.ContractWriteNode.MethodCall.toObject = function(includeInstance, msg) {
3987
3515
  var f, obj = {
3988
3516
  callData: jspb.Message.getFieldWithDefault(msg, 1, ""),
3989
- methodName: jspb.Message.getFieldWithDefault(msg, 2, "")
3517
+ methodName: jspb.Message.getFieldWithDefault(msg, 2, ""),
3518
+ methodParamsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f
3990
3519
  };
3991
3520
  if (includeInstance) {
3992
3521
  obj.$jspbMessageInstance = msg;
@@ -4020,6 +3549,13 @@ var require_avs_pb = __commonJS({
4020
3549
  );
4021
3550
  msg.setMethodName(value);
4022
3551
  break;
3552
+ case 3:
3553
+ var value = (
3554
+ /** @type {string} */
3555
+ reader.readString()
3556
+ );
3557
+ msg.addMethodParams(value);
3558
+ break;
4023
3559
  default:
4024
3560
  reader.skipField();
4025
3561
  break;
@@ -4048,6 +3584,13 @@ var require_avs_pb = __commonJS({
4048
3584
  f
4049
3585
  );
4050
3586
  }
3587
+ f = message.getMethodParamsList();
3588
+ if (f.length > 0) {
3589
+ writer.writeRepeatedString(
3590
+ 3,
3591
+ f
3592
+ );
3593
+ }
4051
3594
  };
4052
3595
  proto.aggregator.ContractWriteNode.MethodCall.prototype.getCallData = function() {
4053
3596
  return (
@@ -4067,6 +3610,21 @@ var require_avs_pb = __commonJS({
4067
3610
  proto.aggregator.ContractWriteNode.MethodCall.prototype.setMethodName = function(value) {
4068
3611
  return jspb.Message.setProto3StringField(this, 2, value);
4069
3612
  };
3613
+ proto.aggregator.ContractWriteNode.MethodCall.prototype.getMethodParamsList = function() {
3614
+ return (
3615
+ /** @type {!Array<string>} */
3616
+ jspb.Message.getRepeatedField(this, 3)
3617
+ );
3618
+ };
3619
+ proto.aggregator.ContractWriteNode.MethodCall.prototype.setMethodParamsList = function(value) {
3620
+ return jspb.Message.setField(this, 3, value || []);
3621
+ };
3622
+ proto.aggregator.ContractWriteNode.MethodCall.prototype.addMethodParams = function(value, opt_index) {
3623
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
3624
+ };
3625
+ proto.aggregator.ContractWriteNode.MethodCall.prototype.clearMethodParamsList = function() {
3626
+ return this.setMethodParamsList([]);
3627
+ };
4070
3628
  if (jspb.Message.GENERATE_TO_OBJECT) {
4071
3629
  proto.aggregator.ContractWriteNode.Output.prototype.toObject = function(opt_includeInstance) {
4072
3630
  return proto.aggregator.ContractWriteNode.Output.toObject(opt_includeInstance, this);
@@ -4136,7 +3694,6 @@ var require_avs_pb = __commonJS({
4136
3694
  proto.aggregator.ContractWriteNode.Output.prototype.hasData = function() {
4137
3695
  return jspb.Message.getField(this, 1) != null;
4138
3696
  };
4139
- proto.aggregator.ContractWriteNode.MethodResult.repeatedFields_ = [4];
4140
3697
  if (jspb.Message.GENERATE_TO_OBJECT) {
4141
3698
  proto.aggregator.ContractWriteNode.MethodResult.prototype.toObject = function(opt_includeInstance) {
4142
3699
  return proto.aggregator.ContractWriteNode.MethodResult.toObject(opt_includeInstance, this);
@@ -4144,16 +3701,12 @@ var require_avs_pb = __commonJS({
4144
3701
  proto.aggregator.ContractWriteNode.MethodResult.toObject = function(includeInstance, msg) {
4145
3702
  var f, obj = {
4146
3703
  methodName: jspb.Message.getFieldWithDefault(msg, 1, ""),
4147
- success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
4148
- transaction: (f = msg.getTransaction()) && proto.aggregator.ContractWriteNode.TransactionData.toObject(includeInstance, f),
4149
- eventsList: jspb.Message.toObjectList(
4150
- msg.getEventsList(),
4151
- proto.aggregator.ContractWriteNode.EventData.toObject,
4152
- includeInstance
4153
- ),
4154
- error: (f = msg.getError()) && proto.aggregator.ContractWriteNode.ErrorData.toObject(includeInstance, f),
4155
- returnData: (f = msg.getReturnData()) && proto.aggregator.ContractWriteNode.ReturnData.toObject(includeInstance, f),
4156
- inputData: jspb.Message.getFieldWithDefault(msg, 7, "")
3704
+ methodAbi: (f = msg.getMethodAbi()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f),
3705
+ success: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
3706
+ error: jspb.Message.getFieldWithDefault(msg, 4, ""),
3707
+ receipt: (f = msg.getReceipt()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f),
3708
+ blockNumber: jspb.Message.getFieldWithDefault(msg, 6, 0),
3709
+ value: (f = msg.getValue()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
4157
3710
  };
4158
3711
  if (includeInstance) {
4159
3712
  obj.$jspbMessageInstance = msg;
@@ -4181,40 +3734,42 @@ var require_avs_pb = __commonJS({
4181
3734
  msg.setMethodName(value);
4182
3735
  break;
4183
3736
  case 2:
3737
+ var value = new google_protobuf_struct_pb2.Value();
3738
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3739
+ msg.setMethodAbi(value);
3740
+ break;
3741
+ case 3:
4184
3742
  var value = (
4185
3743
  /** @type {boolean} */
4186
3744
  reader.readBool()
4187
3745
  );
4188
3746
  msg.setSuccess(value);
4189
3747
  break;
4190
- case 3:
4191
- var value = new proto.aggregator.ContractWriteNode.TransactionData();
4192
- reader.readMessage(value, proto.aggregator.ContractWriteNode.TransactionData.deserializeBinaryFromReader);
4193
- msg.setTransaction(value);
4194
- break;
4195
3748
  case 4:
4196
- var value = new proto.aggregator.ContractWriteNode.EventData();
4197
- reader.readMessage(value, proto.aggregator.ContractWriteNode.EventData.deserializeBinaryFromReader);
4198
- msg.addEvents(value);
4199
- break;
4200
- case 5:
4201
- var value = new proto.aggregator.ContractWriteNode.ErrorData();
4202
- reader.readMessage(value, proto.aggregator.ContractWriteNode.ErrorData.deserializeBinaryFromReader);
4203
- msg.setError(value);
4204
- break;
4205
- case 6:
4206
- var value = new proto.aggregator.ContractWriteNode.ReturnData();
4207
- reader.readMessage(value, proto.aggregator.ContractWriteNode.ReturnData.deserializeBinaryFromReader);
4208
- msg.setReturnData(value);
4209
- break;
4210
- case 7:
4211
3749
  var value = (
4212
3750
  /** @type {string} */
4213
3751
  reader.readString()
4214
3752
  );
4215
- msg.setInputData(value);
3753
+ msg.setError(value);
4216
3754
  break;
4217
- default:
3755
+ case 5:
3756
+ var value = new google_protobuf_struct_pb2.Value();
3757
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3758
+ msg.setReceipt(value);
3759
+ break;
3760
+ case 6:
3761
+ var value = (
3762
+ /** @type {number} */
3763
+ reader.readUint64()
3764
+ );
3765
+ msg.setBlockNumber(value);
3766
+ break;
3767
+ case 7:
3768
+ var value = new google_protobuf_struct_pb2.Value();
3769
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
3770
+ msg.setValue(value);
3771
+ break;
3772
+ default:
4218
3773
  reader.skipField();
4219
3774
  break;
4220
3775
  }
@@ -4235,50 +3790,50 @@ var require_avs_pb = __commonJS({
4235
3790
  f
4236
3791
  );
4237
3792
  }
4238
- f = message.getSuccess();
4239
- if (f) {
4240
- writer.writeBool(
3793
+ f = message.getMethodAbi();
3794
+ if (f != null) {
3795
+ writer.writeMessage(
4241
3796
  2,
4242
- f
3797
+ f,
3798
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
4243
3799
  );
4244
3800
  }
4245
- f = message.getTransaction();
4246
- if (f != null) {
4247
- writer.writeMessage(
3801
+ f = message.getSuccess();
3802
+ if (f) {
3803
+ writer.writeBool(
4248
3804
  3,
4249
- f,
4250
- proto.aggregator.ContractWriteNode.TransactionData.serializeBinaryToWriter
3805
+ f
4251
3806
  );
4252
3807
  }
4253
- f = message.getEventsList();
3808
+ f = message.getError();
4254
3809
  if (f.length > 0) {
4255
- writer.writeRepeatedMessage(
3810
+ writer.writeString(
4256
3811
  4,
4257
- f,
4258
- proto.aggregator.ContractWriteNode.EventData.serializeBinaryToWriter
3812
+ f
4259
3813
  );
4260
3814
  }
4261
- f = message.getError();
3815
+ f = message.getReceipt();
4262
3816
  if (f != null) {
4263
3817
  writer.writeMessage(
4264
3818
  5,
4265
3819
  f,
4266
- proto.aggregator.ContractWriteNode.ErrorData.serializeBinaryToWriter
3820
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
4267
3821
  );
4268
3822
  }
4269
- f = message.getReturnData();
3823
+ f = /** @type {number} */
3824
+ jspb.Message.getField(message, 6);
4270
3825
  if (f != null) {
4271
- writer.writeMessage(
3826
+ writer.writeUint64(
4272
3827
  6,
4273
- f,
4274
- proto.aggregator.ContractWriteNode.ReturnData.serializeBinaryToWriter
3828
+ f
4275
3829
  );
4276
3830
  }
4277
- f = message.getInputData();
4278
- if (f.length > 0) {
4279
- writer.writeString(
3831
+ f = message.getValue();
3832
+ if (f != null) {
3833
+ writer.writeMessage(
4280
3834
  7,
4281
- f
3835
+ f,
3836
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
4282
3837
  );
4283
3838
  }
4284
3839
  };
@@ -4291,954 +3846,89 @@ var require_avs_pb = __commonJS({
4291
3846
  proto.aggregator.ContractWriteNode.MethodResult.prototype.setMethodName = function(value) {
4292
3847
  return jspb.Message.setProto3StringField(this, 1, value);
4293
3848
  };
4294
- proto.aggregator.ContractWriteNode.MethodResult.prototype.getSuccess = function() {
4295
- return (
4296
- /** @type {boolean} */
4297
- jspb.Message.getBooleanFieldWithDefault(this, 2, false)
4298
- );
4299
- };
4300
- proto.aggregator.ContractWriteNode.MethodResult.prototype.setSuccess = function(value) {
4301
- return jspb.Message.setProto3BooleanField(this, 2, value);
4302
- };
4303
- proto.aggregator.ContractWriteNode.MethodResult.prototype.getTransaction = function() {
3849
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.getMethodAbi = function() {
4304
3850
  return (
4305
- /** @type{?proto.aggregator.ContractWriteNode.TransactionData} */
4306
- jspb.Message.getWrapperField(this, proto.aggregator.ContractWriteNode.TransactionData, 3)
3851
+ /** @type{?proto.google.protobuf.Value} */
3852
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
4307
3853
  );
4308
3854
  };
4309
- proto.aggregator.ContractWriteNode.MethodResult.prototype.setTransaction = function(value) {
4310
- return jspb.Message.setWrapperField(this, 3, value);
3855
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.setMethodAbi = function(value) {
3856
+ return jspb.Message.setWrapperField(this, 2, value);
4311
3857
  };
4312
- proto.aggregator.ContractWriteNode.MethodResult.prototype.clearTransaction = function() {
4313
- return this.setTransaction(void 0);
3858
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.clearMethodAbi = function() {
3859
+ return this.setMethodAbi(void 0);
4314
3860
  };
4315
- proto.aggregator.ContractWriteNode.MethodResult.prototype.hasTransaction = function() {
4316
- return jspb.Message.getField(this, 3) != null;
3861
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.hasMethodAbi = function() {
3862
+ return jspb.Message.getField(this, 2) != null;
4317
3863
  };
4318
- proto.aggregator.ContractWriteNode.MethodResult.prototype.getEventsList = function() {
3864
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.getSuccess = function() {
4319
3865
  return (
4320
- /** @type{!Array<!proto.aggregator.ContractWriteNode.EventData>} */
4321
- jspb.Message.getRepeatedWrapperField(this, proto.aggregator.ContractWriteNode.EventData, 4)
3866
+ /** @type {boolean} */
3867
+ jspb.Message.getBooleanFieldWithDefault(this, 3, false)
4322
3868
  );
4323
3869
  };
4324
- proto.aggregator.ContractWriteNode.MethodResult.prototype.setEventsList = function(value) {
4325
- return jspb.Message.setRepeatedWrapperField(this, 4, value);
4326
- };
4327
- proto.aggregator.ContractWriteNode.MethodResult.prototype.addEvents = function(opt_value, opt_index) {
4328
- return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.aggregator.ContractWriteNode.EventData, opt_index);
4329
- };
4330
- proto.aggregator.ContractWriteNode.MethodResult.prototype.clearEventsList = function() {
4331
- return this.setEventsList([]);
3870
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.setSuccess = function(value) {
3871
+ return jspb.Message.setProto3BooleanField(this, 3, value);
4332
3872
  };
4333
3873
  proto.aggregator.ContractWriteNode.MethodResult.prototype.getError = function() {
4334
3874
  return (
4335
- /** @type{?proto.aggregator.ContractWriteNode.ErrorData} */
4336
- jspb.Message.getWrapperField(this, proto.aggregator.ContractWriteNode.ErrorData, 5)
3875
+ /** @type {string} */
3876
+ jspb.Message.getFieldWithDefault(this, 4, "")
4337
3877
  );
4338
3878
  };
4339
3879
  proto.aggregator.ContractWriteNode.MethodResult.prototype.setError = function(value) {
3880
+ return jspb.Message.setProto3StringField(this, 4, value);
3881
+ };
3882
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.getReceipt = function() {
3883
+ return (
3884
+ /** @type{?proto.google.protobuf.Value} */
3885
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 5)
3886
+ );
3887
+ };
3888
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.setReceipt = function(value) {
4340
3889
  return jspb.Message.setWrapperField(this, 5, value);
4341
3890
  };
4342
- proto.aggregator.ContractWriteNode.MethodResult.prototype.clearError = function() {
4343
- return this.setError(void 0);
3891
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.clearReceipt = function() {
3892
+ return this.setReceipt(void 0);
4344
3893
  };
4345
- proto.aggregator.ContractWriteNode.MethodResult.prototype.hasError = function() {
3894
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.hasReceipt = function() {
4346
3895
  return jspb.Message.getField(this, 5) != null;
4347
3896
  };
4348
- proto.aggregator.ContractWriteNode.MethodResult.prototype.getReturnData = function() {
3897
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.getBlockNumber = function() {
4349
3898
  return (
4350
- /** @type{?proto.aggregator.ContractWriteNode.ReturnData} */
4351
- jspb.Message.getWrapperField(this, proto.aggregator.ContractWriteNode.ReturnData, 6)
3899
+ /** @type {number} */
3900
+ jspb.Message.getFieldWithDefault(this, 6, 0)
4352
3901
  );
4353
3902
  };
4354
- proto.aggregator.ContractWriteNode.MethodResult.prototype.setReturnData = function(value) {
4355
- return jspb.Message.setWrapperField(this, 6, value);
3903
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.setBlockNumber = function(value) {
3904
+ return jspb.Message.setField(this, 6, value);
4356
3905
  };
4357
- proto.aggregator.ContractWriteNode.MethodResult.prototype.clearReturnData = function() {
4358
- return this.setReturnData(void 0);
3906
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.clearBlockNumber = function() {
3907
+ return jspb.Message.setField(this, 6, void 0);
4359
3908
  };
4360
- proto.aggregator.ContractWriteNode.MethodResult.prototype.hasReturnData = function() {
3909
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.hasBlockNumber = function() {
4361
3910
  return jspb.Message.getField(this, 6) != null;
4362
3911
  };
4363
- proto.aggregator.ContractWriteNode.MethodResult.prototype.getInputData = function() {
3912
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.getValue = function() {
4364
3913
  return (
4365
- /** @type {string} */
4366
- jspb.Message.getFieldWithDefault(this, 7, "")
3914
+ /** @type{?proto.google.protobuf.Value} */
3915
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 7)
4367
3916
  );
4368
3917
  };
4369
- proto.aggregator.ContractWriteNode.MethodResult.prototype.setInputData = function(value) {
4370
- return jspb.Message.setProto3StringField(this, 7, value);
3918
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.setValue = function(value) {
3919
+ return jspb.Message.setWrapperField(this, 7, value);
4371
3920
  };
4372
- if (jspb.Message.GENERATE_TO_OBJECT) {
4373
- proto.aggregator.ContractWriteNode.TransactionData.prototype.toObject = function(opt_includeInstance) {
4374
- return proto.aggregator.ContractWriteNode.TransactionData.toObject(opt_includeInstance, this);
4375
- };
4376
- proto.aggregator.ContractWriteNode.TransactionData.toObject = function(includeInstance, msg) {
4377
- var f, obj = {
4378
- hash: jspb.Message.getFieldWithDefault(msg, 1, ""),
4379
- status: jspb.Message.getFieldWithDefault(msg, 2, ""),
4380
- blockNumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
4381
- blockHash: jspb.Message.getFieldWithDefault(msg, 4, ""),
4382
- gasUsed: jspb.Message.getFieldWithDefault(msg, 5, ""),
4383
- gasLimit: jspb.Message.getFieldWithDefault(msg, 6, ""),
4384
- gasPrice: jspb.Message.getFieldWithDefault(msg, 7, ""),
4385
- effectiveGasPrice: jspb.Message.getFieldWithDefault(msg, 8, ""),
4386
- from: jspb.Message.getFieldWithDefault(msg, 9, ""),
4387
- to: jspb.Message.getFieldWithDefault(msg, 10, ""),
4388
- value: jspb.Message.getFieldWithDefault(msg, 11, ""),
4389
- nonce: jspb.Message.getFieldWithDefault(msg, 12, ""),
4390
- transactionIndex: jspb.Message.getFieldWithDefault(msg, 13, ""),
4391
- confirmations: jspb.Message.getFieldWithDefault(msg, 14, ""),
4392
- timestamp: jspb.Message.getFieldWithDefault(msg, 15, 0),
4393
- simulation: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
4394
- simulationMode: jspb.Message.getFieldWithDefault(msg, 17, ""),
4395
- chainId: jspb.Message.getFieldWithDefault(msg, 18, 0)
4396
- };
4397
- if (includeInstance) {
4398
- obj.$jspbMessageInstance = msg;
4399
- }
4400
- return obj;
4401
- };
4402
- }
4403
- proto.aggregator.ContractWriteNode.TransactionData.deserializeBinary = function(bytes) {
4404
- var reader = new jspb.BinaryReader(bytes);
4405
- var msg = new proto.aggregator.ContractWriteNode.TransactionData();
4406
- return proto.aggregator.ContractWriteNode.TransactionData.deserializeBinaryFromReader(msg, reader);
3921
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.clearValue = function() {
3922
+ return this.setValue(void 0);
4407
3923
  };
4408
- proto.aggregator.ContractWriteNode.TransactionData.deserializeBinaryFromReader = function(msg, reader) {
4409
- while (reader.nextField()) {
4410
- if (reader.isEndGroup()) {
4411
- break;
4412
- }
4413
- var field = reader.getFieldNumber();
4414
- switch (field) {
4415
- case 1:
4416
- var value = (
4417
- /** @type {string} */
4418
- reader.readString()
4419
- );
4420
- msg.setHash(value);
4421
- break;
4422
- case 2:
4423
- var value = (
4424
- /** @type {string} */
4425
- reader.readString()
4426
- );
4427
- msg.setStatus(value);
4428
- break;
4429
- case 3:
4430
- var value = (
4431
- /** @type {string} */
4432
- reader.readString()
4433
- );
4434
- msg.setBlockNumber(value);
4435
- break;
4436
- case 4:
4437
- var value = (
4438
- /** @type {string} */
4439
- reader.readString()
4440
- );
4441
- msg.setBlockHash(value);
4442
- break;
4443
- case 5:
4444
- var value = (
4445
- /** @type {string} */
4446
- reader.readString()
4447
- );
4448
- msg.setGasUsed(value);
4449
- break;
4450
- case 6:
4451
- var value = (
4452
- /** @type {string} */
4453
- reader.readString()
4454
- );
4455
- msg.setGasLimit(value);
4456
- break;
4457
- case 7:
4458
- var value = (
4459
- /** @type {string} */
4460
- reader.readString()
4461
- );
4462
- msg.setGasPrice(value);
4463
- break;
4464
- case 8:
4465
- var value = (
4466
- /** @type {string} */
4467
- reader.readString()
4468
- );
4469
- msg.setEffectiveGasPrice(value);
4470
- break;
4471
- case 9:
4472
- var value = (
4473
- /** @type {string} */
4474
- reader.readString()
4475
- );
4476
- msg.setFrom(value);
4477
- break;
4478
- case 10:
4479
- var value = (
4480
- /** @type {string} */
4481
- reader.readString()
4482
- );
4483
- msg.setTo(value);
4484
- break;
4485
- case 11:
4486
- var value = (
4487
- /** @type {string} */
4488
- reader.readString()
4489
- );
4490
- msg.setValue(value);
4491
- break;
4492
- case 12:
4493
- var value = (
4494
- /** @type {string} */
4495
- reader.readString()
4496
- );
4497
- msg.setNonce(value);
4498
- break;
4499
- case 13:
4500
- var value = (
4501
- /** @type {string} */
4502
- reader.readString()
4503
- );
4504
- msg.setTransactionIndex(value);
4505
- break;
4506
- case 14:
4507
- var value = (
4508
- /** @type {string} */
4509
- reader.readString()
4510
- );
4511
- msg.setConfirmations(value);
4512
- break;
4513
- case 15:
4514
- var value = (
4515
- /** @type {number} */
4516
- reader.readInt64()
4517
- );
4518
- msg.setTimestamp(value);
4519
- break;
4520
- case 16:
4521
- var value = (
4522
- /** @type {boolean} */
4523
- reader.readBool()
4524
- );
4525
- msg.setSimulation(value);
4526
- break;
4527
- case 17:
4528
- var value = (
4529
- /** @type {string} */
4530
- reader.readString()
4531
- );
4532
- msg.setSimulationMode(value);
4533
- break;
4534
- case 18:
4535
- var value = (
4536
- /** @type {number} */
4537
- reader.readInt64()
4538
- );
4539
- msg.setChainId(value);
4540
- break;
4541
- default:
4542
- reader.skipField();
4543
- break;
4544
- }
4545
- }
4546
- return msg;
3924
+ proto.aggregator.ContractWriteNode.MethodResult.prototype.hasValue = function() {
3925
+ return jspb.Message.getField(this, 7) != null;
4547
3926
  };
4548
- proto.aggregator.ContractWriteNode.TransactionData.prototype.serializeBinary = function() {
4549
- var writer = new jspb.BinaryWriter();
4550
- proto.aggregator.ContractWriteNode.TransactionData.serializeBinaryToWriter(this, writer);
4551
- return writer.getResultBuffer();
4552
- };
4553
- proto.aggregator.ContractWriteNode.TransactionData.serializeBinaryToWriter = function(message, writer) {
4554
- var f = void 0;
4555
- f = message.getHash();
4556
- if (f.length > 0) {
4557
- writer.writeString(
4558
- 1,
4559
- f
4560
- );
4561
- }
4562
- f = message.getStatus();
4563
- if (f.length > 0) {
4564
- writer.writeString(
4565
- 2,
4566
- f
4567
- );
4568
- }
4569
- f = message.getBlockNumber();
4570
- if (f.length > 0) {
4571
- writer.writeString(
4572
- 3,
4573
- f
4574
- );
4575
- }
4576
- f = message.getBlockHash();
4577
- if (f.length > 0) {
4578
- writer.writeString(
4579
- 4,
4580
- f
4581
- );
4582
- }
4583
- f = message.getGasUsed();
4584
- if (f.length > 0) {
4585
- writer.writeString(
4586
- 5,
4587
- f
4588
- );
4589
- }
4590
- f = message.getGasLimit();
4591
- if (f.length > 0) {
4592
- writer.writeString(
4593
- 6,
4594
- f
4595
- );
4596
- }
4597
- f = message.getGasPrice();
4598
- if (f.length > 0) {
4599
- writer.writeString(
4600
- 7,
4601
- f
4602
- );
4603
- }
4604
- f = message.getEffectiveGasPrice();
4605
- if (f.length > 0) {
4606
- writer.writeString(
4607
- 8,
4608
- f
4609
- );
4610
- }
4611
- f = message.getFrom();
4612
- if (f.length > 0) {
4613
- writer.writeString(
4614
- 9,
4615
- f
4616
- );
4617
- }
4618
- f = message.getTo();
4619
- if (f.length > 0) {
4620
- writer.writeString(
4621
- 10,
4622
- f
4623
- );
4624
- }
4625
- f = message.getValue();
4626
- if (f.length > 0) {
4627
- writer.writeString(
4628
- 11,
4629
- f
4630
- );
4631
- }
4632
- f = message.getNonce();
4633
- if (f.length > 0) {
4634
- writer.writeString(
4635
- 12,
4636
- f
4637
- );
4638
- }
4639
- f = message.getTransactionIndex();
4640
- if (f.length > 0) {
4641
- writer.writeString(
4642
- 13,
4643
- f
4644
- );
4645
- }
4646
- f = message.getConfirmations();
4647
- if (f.length > 0) {
4648
- writer.writeString(
4649
- 14,
4650
- f
4651
- );
4652
- }
4653
- f = message.getTimestamp();
4654
- if (f !== 0) {
4655
- writer.writeInt64(
4656
- 15,
4657
- f
4658
- );
4659
- }
4660
- f = message.getSimulation();
4661
- if (f) {
4662
- writer.writeBool(
4663
- 16,
4664
- f
4665
- );
4666
- }
4667
- f = message.getSimulationMode();
4668
- if (f.length > 0) {
4669
- writer.writeString(
4670
- 17,
4671
- f
4672
- );
4673
- }
4674
- f = message.getChainId();
4675
- if (f !== 0) {
4676
- writer.writeInt64(
4677
- 18,
4678
- f
4679
- );
4680
- }
4681
- };
4682
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getHash = function() {
4683
- return (
4684
- /** @type {string} */
4685
- jspb.Message.getFieldWithDefault(this, 1, "")
4686
- );
4687
- };
4688
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setHash = function(value) {
4689
- return jspb.Message.setProto3StringField(this, 1, value);
4690
- };
4691
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getStatus = function() {
4692
- return (
4693
- /** @type {string} */
4694
- jspb.Message.getFieldWithDefault(this, 2, "")
4695
- );
4696
- };
4697
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setStatus = function(value) {
4698
- return jspb.Message.setProto3StringField(this, 2, value);
4699
- };
4700
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getBlockNumber = function() {
4701
- return (
4702
- /** @type {string} */
4703
- jspb.Message.getFieldWithDefault(this, 3, "")
4704
- );
4705
- };
4706
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setBlockNumber = function(value) {
4707
- return jspb.Message.setProto3StringField(this, 3, value);
4708
- };
4709
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getBlockHash = function() {
4710
- return (
4711
- /** @type {string} */
4712
- jspb.Message.getFieldWithDefault(this, 4, "")
4713
- );
4714
- };
4715
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setBlockHash = function(value) {
4716
- return jspb.Message.setProto3StringField(this, 4, value);
4717
- };
4718
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getGasUsed = function() {
4719
- return (
4720
- /** @type {string} */
4721
- jspb.Message.getFieldWithDefault(this, 5, "")
4722
- );
4723
- };
4724
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setGasUsed = function(value) {
4725
- return jspb.Message.setProto3StringField(this, 5, value);
4726
- };
4727
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getGasLimit = function() {
4728
- return (
4729
- /** @type {string} */
4730
- jspb.Message.getFieldWithDefault(this, 6, "")
4731
- );
4732
- };
4733
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setGasLimit = function(value) {
4734
- return jspb.Message.setProto3StringField(this, 6, value);
4735
- };
4736
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getGasPrice = function() {
4737
- return (
4738
- /** @type {string} */
4739
- jspb.Message.getFieldWithDefault(this, 7, "")
4740
- );
4741
- };
4742
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setGasPrice = function(value) {
4743
- return jspb.Message.setProto3StringField(this, 7, value);
4744
- };
4745
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getEffectiveGasPrice = function() {
4746
- return (
4747
- /** @type {string} */
4748
- jspb.Message.getFieldWithDefault(this, 8, "")
4749
- );
4750
- };
4751
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setEffectiveGasPrice = function(value) {
4752
- return jspb.Message.setProto3StringField(this, 8, value);
4753
- };
4754
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getFrom = function() {
4755
- return (
4756
- /** @type {string} */
4757
- jspb.Message.getFieldWithDefault(this, 9, "")
4758
- );
4759
- };
4760
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setFrom = function(value) {
4761
- return jspb.Message.setProto3StringField(this, 9, value);
4762
- };
4763
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getTo = function() {
4764
- return (
4765
- /** @type {string} */
4766
- jspb.Message.getFieldWithDefault(this, 10, "")
4767
- );
4768
- };
4769
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setTo = function(value) {
4770
- return jspb.Message.setProto3StringField(this, 10, value);
4771
- };
4772
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getValue = function() {
4773
- return (
4774
- /** @type {string} */
4775
- jspb.Message.getFieldWithDefault(this, 11, "")
4776
- );
4777
- };
4778
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setValue = function(value) {
4779
- return jspb.Message.setProto3StringField(this, 11, value);
4780
- };
4781
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getNonce = function() {
4782
- return (
4783
- /** @type {string} */
4784
- jspb.Message.getFieldWithDefault(this, 12, "")
4785
- );
4786
- };
4787
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setNonce = function(value) {
4788
- return jspb.Message.setProto3StringField(this, 12, value);
4789
- };
4790
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getTransactionIndex = function() {
4791
- return (
4792
- /** @type {string} */
4793
- jspb.Message.getFieldWithDefault(this, 13, "")
4794
- );
4795
- };
4796
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setTransactionIndex = function(value) {
4797
- return jspb.Message.setProto3StringField(this, 13, value);
4798
- };
4799
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getConfirmations = function() {
4800
- return (
4801
- /** @type {string} */
4802
- jspb.Message.getFieldWithDefault(this, 14, "")
4803
- );
4804
- };
4805
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setConfirmations = function(value) {
4806
- return jspb.Message.setProto3StringField(this, 14, value);
4807
- };
4808
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getTimestamp = function() {
4809
- return (
4810
- /** @type {number} */
4811
- jspb.Message.getFieldWithDefault(this, 15, 0)
4812
- );
4813
- };
4814
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setTimestamp = function(value) {
4815
- return jspb.Message.setProto3IntField(this, 15, value);
4816
- };
4817
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getSimulation = function() {
4818
- return (
4819
- /** @type {boolean} */
4820
- jspb.Message.getBooleanFieldWithDefault(this, 16, false)
4821
- );
4822
- };
4823
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setSimulation = function(value) {
4824
- return jspb.Message.setProto3BooleanField(this, 16, value);
4825
- };
4826
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getSimulationMode = function() {
4827
- return (
4828
- /** @type {string} */
4829
- jspb.Message.getFieldWithDefault(this, 17, "")
4830
- );
4831
- };
4832
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setSimulationMode = function(value) {
4833
- return jspb.Message.setProto3StringField(this, 17, value);
4834
- };
4835
- proto.aggregator.ContractWriteNode.TransactionData.prototype.getChainId = function() {
4836
- return (
4837
- /** @type {number} */
4838
- jspb.Message.getFieldWithDefault(this, 18, 0)
4839
- );
4840
- };
4841
- proto.aggregator.ContractWriteNode.TransactionData.prototype.setChainId = function(value) {
4842
- return jspb.Message.setProto3IntField(this, 18, value);
4843
- };
4844
- proto.aggregator.ContractWriteNode.EventData.repeatedFields_ = [3];
4845
- if (jspb.Message.GENERATE_TO_OBJECT) {
4846
- proto.aggregator.ContractWriteNode.EventData.prototype.toObject = function(opt_includeInstance) {
4847
- return proto.aggregator.ContractWriteNode.EventData.toObject(opt_includeInstance, this);
4848
- };
4849
- proto.aggregator.ContractWriteNode.EventData.toObject = function(includeInstance, msg) {
4850
- var f, obj = {
4851
- eventName: jspb.Message.getFieldWithDefault(msg, 1, ""),
4852
- address: jspb.Message.getFieldWithDefault(msg, 2, ""),
4853
- topicsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f,
4854
- data: jspb.Message.getFieldWithDefault(msg, 4, ""),
4855
- decodedMap: (f = msg.getDecodedMap()) ? f.toObject(includeInstance, void 0) : []
4856
- };
4857
- if (includeInstance) {
4858
- obj.$jspbMessageInstance = msg;
4859
- }
4860
- return obj;
4861
- };
4862
- }
4863
- proto.aggregator.ContractWriteNode.EventData.deserializeBinary = function(bytes) {
4864
- var reader = new jspb.BinaryReader(bytes);
4865
- var msg = new proto.aggregator.ContractWriteNode.EventData();
4866
- return proto.aggregator.ContractWriteNode.EventData.deserializeBinaryFromReader(msg, reader);
4867
- };
4868
- proto.aggregator.ContractWriteNode.EventData.deserializeBinaryFromReader = function(msg, reader) {
4869
- while (reader.nextField()) {
4870
- if (reader.isEndGroup()) {
4871
- break;
4872
- }
4873
- var field = reader.getFieldNumber();
4874
- switch (field) {
4875
- case 1:
4876
- var value = (
4877
- /** @type {string} */
4878
- reader.readString()
4879
- );
4880
- msg.setEventName(value);
4881
- break;
4882
- case 2:
4883
- var value = (
4884
- /** @type {string} */
4885
- reader.readString()
4886
- );
4887
- msg.setAddress(value);
4888
- break;
4889
- case 3:
4890
- var value = (
4891
- /** @type {string} */
4892
- reader.readString()
4893
- );
4894
- msg.addTopics(value);
4895
- break;
4896
- case 4:
4897
- var value = (
4898
- /** @type {string} */
4899
- reader.readString()
4900
- );
4901
- msg.setData(value);
4902
- break;
4903
- case 5:
4904
- var value = msg.getDecodedMap();
4905
- reader.readMessage(value, function(message, reader2) {
4906
- jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
4907
- });
4908
- break;
4909
- default:
4910
- reader.skipField();
4911
- break;
4912
- }
4913
- }
4914
- return msg;
4915
- };
4916
- proto.aggregator.ContractWriteNode.EventData.prototype.serializeBinary = function() {
4917
- var writer = new jspb.BinaryWriter();
4918
- proto.aggregator.ContractWriteNode.EventData.serializeBinaryToWriter(this, writer);
4919
- return writer.getResultBuffer();
4920
- };
4921
- proto.aggregator.ContractWriteNode.EventData.serializeBinaryToWriter = function(message, writer) {
4922
- var f = void 0;
4923
- f = message.getEventName();
4924
- if (f.length > 0) {
4925
- writer.writeString(
4926
- 1,
4927
- f
4928
- );
4929
- }
4930
- f = message.getAddress();
4931
- if (f.length > 0) {
4932
- writer.writeString(
4933
- 2,
4934
- f
4935
- );
4936
- }
4937
- f = message.getTopicsList();
4938
- if (f.length > 0) {
4939
- writer.writeRepeatedString(
4940
- 3,
4941
- f
4942
- );
4943
- }
4944
- f = message.getData();
4945
- if (f.length > 0) {
4946
- writer.writeString(
4947
- 4,
4948
- f
4949
- );
4950
- }
4951
- f = message.getDecodedMap(true);
4952
- if (f && f.getLength() > 0) {
4953
- f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
4954
- }
4955
- };
4956
- proto.aggregator.ContractWriteNode.EventData.prototype.getEventName = function() {
4957
- return (
4958
- /** @type {string} */
4959
- jspb.Message.getFieldWithDefault(this, 1, "")
4960
- );
4961
- };
4962
- proto.aggregator.ContractWriteNode.EventData.prototype.setEventName = function(value) {
4963
- return jspb.Message.setProto3StringField(this, 1, value);
4964
- };
4965
- proto.aggregator.ContractWriteNode.EventData.prototype.getAddress = function() {
4966
- return (
4967
- /** @type {string} */
4968
- jspb.Message.getFieldWithDefault(this, 2, "")
4969
- );
4970
- };
4971
- proto.aggregator.ContractWriteNode.EventData.prototype.setAddress = function(value) {
4972
- return jspb.Message.setProto3StringField(this, 2, value);
4973
- };
4974
- proto.aggregator.ContractWriteNode.EventData.prototype.getTopicsList = function() {
4975
- return (
4976
- /** @type {!Array<string>} */
4977
- jspb.Message.getRepeatedField(this, 3)
4978
- );
4979
- };
4980
- proto.aggregator.ContractWriteNode.EventData.prototype.setTopicsList = function(value) {
4981
- return jspb.Message.setField(this, 3, value || []);
4982
- };
4983
- proto.aggregator.ContractWriteNode.EventData.prototype.addTopics = function(value, opt_index) {
4984
- return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
4985
- };
4986
- proto.aggregator.ContractWriteNode.EventData.prototype.clearTopicsList = function() {
4987
- return this.setTopicsList([]);
4988
- };
4989
- proto.aggregator.ContractWriteNode.EventData.prototype.getData = function() {
4990
- return (
4991
- /** @type {string} */
4992
- jspb.Message.getFieldWithDefault(this, 4, "")
4993
- );
4994
- };
4995
- proto.aggregator.ContractWriteNode.EventData.prototype.setData = function(value) {
4996
- return jspb.Message.setProto3StringField(this, 4, value);
4997
- };
4998
- proto.aggregator.ContractWriteNode.EventData.prototype.getDecodedMap = function(opt_noLazyCreate) {
4999
- return (
5000
- /** @type {!jspb.Map<string,string>} */
5001
- jspb.Message.getMapField(
5002
- this,
5003
- 5,
5004
- opt_noLazyCreate,
5005
- null
5006
- )
5007
- );
5008
- };
5009
- proto.aggregator.ContractWriteNode.EventData.prototype.clearDecodedMap = function() {
5010
- this.getDecodedMap().clear();
5011
- return this;
5012
- };
5013
- if (jspb.Message.GENERATE_TO_OBJECT) {
5014
- proto.aggregator.ContractWriteNode.ErrorData.prototype.toObject = function(opt_includeInstance) {
5015
- return proto.aggregator.ContractWriteNode.ErrorData.toObject(opt_includeInstance, this);
5016
- };
5017
- proto.aggregator.ContractWriteNode.ErrorData.toObject = function(includeInstance, msg) {
5018
- var f, obj = {
5019
- code: jspb.Message.getFieldWithDefault(msg, 1, ""),
5020
- message: jspb.Message.getFieldWithDefault(msg, 2, ""),
5021
- revertReason: jspb.Message.getFieldWithDefault(msg, 3, "")
5022
- };
5023
- if (includeInstance) {
5024
- obj.$jspbMessageInstance = msg;
5025
- }
5026
- return obj;
5027
- };
5028
- }
5029
- proto.aggregator.ContractWriteNode.ErrorData.deserializeBinary = function(bytes) {
5030
- var reader = new jspb.BinaryReader(bytes);
5031
- var msg = new proto.aggregator.ContractWriteNode.ErrorData();
5032
- return proto.aggregator.ContractWriteNode.ErrorData.deserializeBinaryFromReader(msg, reader);
5033
- };
5034
- proto.aggregator.ContractWriteNode.ErrorData.deserializeBinaryFromReader = function(msg, reader) {
5035
- while (reader.nextField()) {
5036
- if (reader.isEndGroup()) {
5037
- break;
5038
- }
5039
- var field = reader.getFieldNumber();
5040
- switch (field) {
5041
- case 1:
5042
- var value = (
5043
- /** @type {string} */
5044
- reader.readString()
5045
- );
5046
- msg.setCode(value);
5047
- break;
5048
- case 2:
5049
- var value = (
5050
- /** @type {string} */
5051
- reader.readString()
5052
- );
5053
- msg.setMessage(value);
5054
- break;
5055
- case 3:
5056
- var value = (
5057
- /** @type {string} */
5058
- reader.readString()
5059
- );
5060
- msg.setRevertReason(value);
5061
- break;
5062
- default:
5063
- reader.skipField();
5064
- break;
5065
- }
5066
- }
5067
- return msg;
5068
- };
5069
- proto.aggregator.ContractWriteNode.ErrorData.prototype.serializeBinary = function() {
5070
- var writer = new jspb.BinaryWriter();
5071
- proto.aggregator.ContractWriteNode.ErrorData.serializeBinaryToWriter(this, writer);
5072
- return writer.getResultBuffer();
5073
- };
5074
- proto.aggregator.ContractWriteNode.ErrorData.serializeBinaryToWriter = function(message, writer) {
5075
- var f = void 0;
5076
- f = message.getCode();
5077
- if (f.length > 0) {
5078
- writer.writeString(
5079
- 1,
5080
- f
5081
- );
5082
- }
5083
- f = message.getMessage();
5084
- if (f.length > 0) {
5085
- writer.writeString(
5086
- 2,
5087
- f
5088
- );
5089
- }
5090
- f = message.getRevertReason();
5091
- if (f.length > 0) {
5092
- writer.writeString(
5093
- 3,
5094
- f
5095
- );
5096
- }
5097
- };
5098
- proto.aggregator.ContractWriteNode.ErrorData.prototype.getCode = function() {
5099
- return (
5100
- /** @type {string} */
5101
- jspb.Message.getFieldWithDefault(this, 1, "")
5102
- );
5103
- };
5104
- proto.aggregator.ContractWriteNode.ErrorData.prototype.setCode = function(value) {
5105
- return jspb.Message.setProto3StringField(this, 1, value);
5106
- };
5107
- proto.aggregator.ContractWriteNode.ErrorData.prototype.getMessage = function() {
5108
- return (
5109
- /** @type {string} */
5110
- jspb.Message.getFieldWithDefault(this, 2, "")
5111
- );
5112
- };
5113
- proto.aggregator.ContractWriteNode.ErrorData.prototype.setMessage = function(value) {
5114
- return jspb.Message.setProto3StringField(this, 2, value);
5115
- };
5116
- proto.aggregator.ContractWriteNode.ErrorData.prototype.getRevertReason = function() {
5117
- return (
5118
- /** @type {string} */
5119
- jspb.Message.getFieldWithDefault(this, 3, "")
5120
- );
5121
- };
5122
- proto.aggregator.ContractWriteNode.ErrorData.prototype.setRevertReason = function(value) {
5123
- return jspb.Message.setProto3StringField(this, 3, value);
5124
- };
5125
- if (jspb.Message.GENERATE_TO_OBJECT) {
5126
- proto.aggregator.ContractWriteNode.ReturnData.prototype.toObject = function(opt_includeInstance) {
5127
- return proto.aggregator.ContractWriteNode.ReturnData.toObject(opt_includeInstance, this);
5128
- };
5129
- proto.aggregator.ContractWriteNode.ReturnData.toObject = function(includeInstance, msg) {
5130
- var f, obj = {
5131
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
5132
- type: jspb.Message.getFieldWithDefault(msg, 2, ""),
5133
- value: jspb.Message.getFieldWithDefault(msg, 3, "")
5134
- };
5135
- if (includeInstance) {
5136
- obj.$jspbMessageInstance = msg;
5137
- }
5138
- return obj;
5139
- };
5140
- }
5141
- proto.aggregator.ContractWriteNode.ReturnData.deserializeBinary = function(bytes) {
5142
- var reader = new jspb.BinaryReader(bytes);
5143
- var msg = new proto.aggregator.ContractWriteNode.ReturnData();
5144
- return proto.aggregator.ContractWriteNode.ReturnData.deserializeBinaryFromReader(msg, reader);
5145
- };
5146
- proto.aggregator.ContractWriteNode.ReturnData.deserializeBinaryFromReader = function(msg, reader) {
5147
- while (reader.nextField()) {
5148
- if (reader.isEndGroup()) {
5149
- break;
5150
- }
5151
- var field = reader.getFieldNumber();
5152
- switch (field) {
5153
- case 1:
5154
- var value = (
5155
- /** @type {string} */
5156
- reader.readString()
5157
- );
5158
- msg.setName(value);
5159
- break;
5160
- case 2:
5161
- var value = (
5162
- /** @type {string} */
5163
- reader.readString()
5164
- );
5165
- msg.setType(value);
5166
- break;
5167
- case 3:
5168
- var value = (
5169
- /** @type {string} */
5170
- reader.readString()
5171
- );
5172
- msg.setValue(value);
5173
- break;
5174
- default:
5175
- reader.skipField();
5176
- break;
5177
- }
5178
- }
5179
- return msg;
5180
- };
5181
- proto.aggregator.ContractWriteNode.ReturnData.prototype.serializeBinary = function() {
5182
- var writer = new jspb.BinaryWriter();
5183
- proto.aggregator.ContractWriteNode.ReturnData.serializeBinaryToWriter(this, writer);
5184
- return writer.getResultBuffer();
5185
- };
5186
- proto.aggregator.ContractWriteNode.ReturnData.serializeBinaryToWriter = function(message, writer) {
5187
- var f = void 0;
5188
- f = message.getName();
5189
- if (f.length > 0) {
5190
- writer.writeString(
5191
- 1,
5192
- f
5193
- );
5194
- }
5195
- f = message.getType();
5196
- if (f.length > 0) {
5197
- writer.writeString(
5198
- 2,
5199
- f
5200
- );
5201
- }
5202
- f = message.getValue();
5203
- if (f.length > 0) {
5204
- writer.writeString(
5205
- 3,
5206
- f
5207
- );
5208
- }
5209
- };
5210
- proto.aggregator.ContractWriteNode.ReturnData.prototype.getName = function() {
5211
- return (
5212
- /** @type {string} */
5213
- jspb.Message.getFieldWithDefault(this, 1, "")
5214
- );
5215
- };
5216
- proto.aggregator.ContractWriteNode.ReturnData.prototype.setName = function(value) {
5217
- return jspb.Message.setProto3StringField(this, 1, value);
5218
- };
5219
- proto.aggregator.ContractWriteNode.ReturnData.prototype.getType = function() {
5220
- return (
5221
- /** @type {string} */
5222
- jspb.Message.getFieldWithDefault(this, 2, "")
5223
- );
5224
- };
5225
- proto.aggregator.ContractWriteNode.ReturnData.prototype.setType = function(value) {
5226
- return jspb.Message.setProto3StringField(this, 2, value);
5227
- };
5228
- proto.aggregator.ContractWriteNode.ReturnData.prototype.getValue = function() {
5229
- return (
5230
- /** @type {string} */
5231
- jspb.Message.getFieldWithDefault(this, 3, "")
5232
- );
5233
- };
5234
- proto.aggregator.ContractWriteNode.ReturnData.prototype.setValue = function(value) {
5235
- return jspb.Message.setProto3StringField(this, 3, value);
5236
- };
5237
- proto.aggregator.ContractWriteNode.prototype.getConfig = function() {
5238
- return (
5239
- /** @type{?proto.aggregator.ContractWriteNode.Config} */
5240
- jspb.Message.getWrapperField(this, proto.aggregator.ContractWriteNode.Config, 1)
5241
- );
3927
+ proto.aggregator.ContractWriteNode.prototype.getConfig = function() {
3928
+ return (
3929
+ /** @type{?proto.aggregator.ContractWriteNode.Config} */
3930
+ jspb.Message.getWrapperField(this, proto.aggregator.ContractWriteNode.Config, 1)
3931
+ );
5242
3932
  };
5243
3933
  proto.aggregator.ContractWriteNode.prototype.setConfig = function(value) {
5244
3934
  return jspb.Message.setWrapperField(this, 1, value);
@@ -5247,22 +3937,7 @@ var require_avs_pb = __commonJS({
5247
3937
  return this.setConfig(void 0);
5248
3938
  };
5249
3939
  proto.aggregator.ContractWriteNode.prototype.hasConfig = function() {
5250
- return jspb.Message.getField(this, 1) != null;
5251
- };
5252
- proto.aggregator.ContractWriteNode.prototype.getInput = function() {
5253
- return (
5254
- /** @type{?proto.google.protobuf.Value} */
5255
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
5256
- );
5257
- };
5258
- proto.aggregator.ContractWriteNode.prototype.setInput = function(value) {
5259
- return jspb.Message.setWrapperField(this, 2, value);
5260
- };
5261
- proto.aggregator.ContractWriteNode.prototype.clearInput = function() {
5262
- return this.setInput(void 0);
5263
- };
5264
- proto.aggregator.ContractWriteNode.prototype.hasInput = function() {
5265
- return jspb.Message.getField(this, 2) != null;
3940
+ return jspb.Message.getField(this, 1) != null;
5266
3941
  };
5267
3942
  if (jspb.Message.GENERATE_TO_OBJECT) {
5268
3943
  proto.aggregator.ContractReadNode.prototype.toObject = function(opt_includeInstance) {
@@ -5270,8 +3945,7 @@ var require_avs_pb = __commonJS({
5270
3945
  };
5271
3946
  proto.aggregator.ContractReadNode.toObject = function(includeInstance, msg) {
5272
3947
  var f, obj = {
5273
- config: (f = msg.getConfig()) && proto.aggregator.ContractReadNode.Config.toObject(includeInstance, f),
5274
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
3948
+ config: (f = msg.getConfig()) && proto.aggregator.ContractReadNode.Config.toObject(includeInstance, f)
5275
3949
  };
5276
3950
  if (includeInstance) {
5277
3951
  obj.$jspbMessageInstance = msg;
@@ -5296,11 +3970,6 @@ var require_avs_pb = __commonJS({
5296
3970
  reader.readMessage(value, proto.aggregator.ContractReadNode.Config.deserializeBinaryFromReader);
5297
3971
  msg.setConfig(value);
5298
3972
  break;
5299
- case 2:
5300
- var value = new google_protobuf_struct_pb2.Value();
5301
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
5302
- msg.setInput(value);
5303
- break;
5304
3973
  default:
5305
3974
  reader.skipField();
5306
3975
  break;
@@ -5323,16 +3992,8 @@ var require_avs_pb = __commonJS({
5323
3992
  proto.aggregator.ContractReadNode.Config.serializeBinaryToWriter
5324
3993
  );
5325
3994
  }
5326
- f = message.getInput();
5327
- if (f != null) {
5328
- writer.writeMessage(
5329
- 2,
5330
- f,
5331
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
5332
- );
5333
- }
5334
3995
  };
5335
- proto.aggregator.ContractReadNode.MethodCall.repeatedFields_ = [3];
3996
+ proto.aggregator.ContractReadNode.MethodCall.repeatedFields_ = [3, 4];
5336
3997
  if (jspb.Message.GENERATE_TO_OBJECT) {
5337
3998
  proto.aggregator.ContractReadNode.MethodCall.prototype.toObject = function(opt_includeInstance) {
5338
3999
  return proto.aggregator.ContractReadNode.MethodCall.toObject(opt_includeInstance, this);
@@ -5341,7 +4002,8 @@ var require_avs_pb = __commonJS({
5341
4002
  var f, obj = {
5342
4003
  callData: jspb.Message.getFieldWithDefault(msg, 1, ""),
5343
4004
  methodName: jspb.Message.getFieldWithDefault(msg, 2, ""),
5344
- applyToFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f
4005
+ applyToFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f,
4006
+ methodParamsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? void 0 : f
5345
4007
  };
5346
4008
  if (includeInstance) {
5347
4009
  obj.$jspbMessageInstance = msg;
@@ -5382,6 +4044,13 @@ var require_avs_pb = __commonJS({
5382
4044
  );
5383
4045
  msg.addApplyToFields(value);
5384
4046
  break;
4047
+ case 4:
4048
+ var value = (
4049
+ /** @type {string} */
4050
+ reader.readString()
4051
+ );
4052
+ msg.addMethodParams(value);
4053
+ break;
5385
4054
  default:
5386
4055
  reader.skipField();
5387
4056
  break;
@@ -5417,6 +4086,13 @@ var require_avs_pb = __commonJS({
5417
4086
  f
5418
4087
  );
5419
4088
  }
4089
+ f = message.getMethodParamsList();
4090
+ if (f.length > 0) {
4091
+ writer.writeRepeatedString(
4092
+ 4,
4093
+ f
4094
+ );
4095
+ }
5420
4096
  };
5421
4097
  proto.aggregator.ContractReadNode.MethodCall.prototype.getCallData = function() {
5422
4098
  return (
@@ -5451,6 +4127,21 @@ var require_avs_pb = __commonJS({
5451
4127
  proto.aggregator.ContractReadNode.MethodCall.prototype.clearApplyToFieldsList = function() {
5452
4128
  return this.setApplyToFieldsList([]);
5453
4129
  };
4130
+ proto.aggregator.ContractReadNode.MethodCall.prototype.getMethodParamsList = function() {
4131
+ return (
4132
+ /** @type {!Array<string>} */
4133
+ jspb.Message.getRepeatedField(this, 4)
4134
+ );
4135
+ };
4136
+ proto.aggregator.ContractReadNode.MethodCall.prototype.setMethodParamsList = function(value) {
4137
+ return jspb.Message.setField(this, 4, value || []);
4138
+ };
4139
+ proto.aggregator.ContractReadNode.MethodCall.prototype.addMethodParams = function(value, opt_index) {
4140
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
4141
+ };
4142
+ proto.aggregator.ContractReadNode.MethodCall.prototype.clearMethodParamsList = function() {
4143
+ return this.setMethodParamsList([]);
4144
+ };
5454
4145
  proto.aggregator.ContractReadNode.Config.repeatedFields_ = [3];
5455
4146
  if (jspb.Message.GENERATE_TO_OBJECT) {
5456
4147
  proto.aggregator.ContractReadNode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -5915,29 +4606,13 @@ var require_avs_pb = __commonJS({
5915
4606
  proto.aggregator.ContractReadNode.prototype.hasConfig = function() {
5916
4607
  return jspb.Message.getField(this, 1) != null;
5917
4608
  };
5918
- proto.aggregator.ContractReadNode.prototype.getInput = function() {
5919
- return (
5920
- /** @type{?proto.google.protobuf.Value} */
5921
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
5922
- );
5923
- };
5924
- proto.aggregator.ContractReadNode.prototype.setInput = function(value) {
5925
- return jspb.Message.setWrapperField(this, 2, value);
5926
- };
5927
- proto.aggregator.ContractReadNode.prototype.clearInput = function() {
5928
- return this.setInput(void 0);
5929
- };
5930
- proto.aggregator.ContractReadNode.prototype.hasInput = function() {
5931
- return jspb.Message.getField(this, 2) != null;
5932
- };
5933
4609
  if (jspb.Message.GENERATE_TO_OBJECT) {
5934
4610
  proto.aggregator.GraphQLQueryNode.prototype.toObject = function(opt_includeInstance) {
5935
4611
  return proto.aggregator.GraphQLQueryNode.toObject(opt_includeInstance, this);
5936
4612
  };
5937
4613
  proto.aggregator.GraphQLQueryNode.toObject = function(includeInstance, msg) {
5938
4614
  var f, obj = {
5939
- config: (f = msg.getConfig()) && proto.aggregator.GraphQLQueryNode.Config.toObject(includeInstance, f),
5940
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
4615
+ config: (f = msg.getConfig()) && proto.aggregator.GraphQLQueryNode.Config.toObject(includeInstance, f)
5941
4616
  };
5942
4617
  if (includeInstance) {
5943
4618
  obj.$jspbMessageInstance = msg;
@@ -5962,11 +4637,6 @@ var require_avs_pb = __commonJS({
5962
4637
  reader.readMessage(value, proto.aggregator.GraphQLQueryNode.Config.deserializeBinaryFromReader);
5963
4638
  msg.setConfig(value);
5964
4639
  break;
5965
- case 2:
5966
- var value = new google_protobuf_struct_pb2.Value();
5967
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
5968
- msg.setInput(value);
5969
- break;
5970
4640
  default:
5971
4641
  reader.skipField();
5972
4642
  break;
@@ -5989,14 +4659,6 @@ var require_avs_pb = __commonJS({
5989
4659
  proto.aggregator.GraphQLQueryNode.Config.serializeBinaryToWriter
5990
4660
  );
5991
4661
  }
5992
- f = message.getInput();
5993
- if (f != null) {
5994
- writer.writeMessage(
5995
- 2,
5996
- f,
5997
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
5998
- );
5999
- }
6000
4662
  };
6001
4663
  if (jspb.Message.GENERATE_TO_OBJECT) {
6002
4664
  proto.aggregator.GraphQLQueryNode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -6118,7 +4780,7 @@ var require_avs_pb = __commonJS({
6118
4780
  };
6119
4781
  proto.aggregator.GraphQLQueryNode.Output.toObject = function(includeInstance, msg) {
6120
4782
  var f, obj = {
6121
- data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
4783
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
6122
4784
  };
6123
4785
  if (includeInstance) {
6124
4786
  obj.$jspbMessageInstance = msg;
@@ -6139,8 +4801,8 @@ var require_avs_pb = __commonJS({
6139
4801
  var field = reader.getFieldNumber();
6140
4802
  switch (field) {
6141
4803
  case 1:
6142
- var value = new google_protobuf_any_pb.Any();
6143
- reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
4804
+ var value = new google_protobuf_struct_pb2.Value();
4805
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
6144
4806
  msg.setData(value);
6145
4807
  break;
6146
4808
  default:
@@ -6162,14 +4824,14 @@ var require_avs_pb = __commonJS({
6162
4824
  writer.writeMessage(
6163
4825
  1,
6164
4826
  f,
6165
- google_protobuf_any_pb.Any.serializeBinaryToWriter
4827
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
6166
4828
  );
6167
4829
  }
6168
4830
  };
6169
4831
  proto.aggregator.GraphQLQueryNode.Output.prototype.getData = function() {
6170
4832
  return (
6171
- /** @type{?proto.google.protobuf.Any} */
6172
- jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1)
4833
+ /** @type{?proto.google.protobuf.Value} */
4834
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
6173
4835
  );
6174
4836
  };
6175
4837
  proto.aggregator.GraphQLQueryNode.Output.prototype.setData = function(value) {
@@ -6196,29 +4858,13 @@ var require_avs_pb = __commonJS({
6196
4858
  proto.aggregator.GraphQLQueryNode.prototype.hasConfig = function() {
6197
4859
  return jspb.Message.getField(this, 1) != null;
6198
4860
  };
6199
- proto.aggregator.GraphQLQueryNode.prototype.getInput = function() {
6200
- return (
6201
- /** @type{?proto.google.protobuf.Value} */
6202
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
6203
- );
6204
- };
6205
- proto.aggregator.GraphQLQueryNode.prototype.setInput = function(value) {
6206
- return jspb.Message.setWrapperField(this, 2, value);
6207
- };
6208
- proto.aggregator.GraphQLQueryNode.prototype.clearInput = function() {
6209
- return this.setInput(void 0);
6210
- };
6211
- proto.aggregator.GraphQLQueryNode.prototype.hasInput = function() {
6212
- return jspb.Message.getField(this, 2) != null;
6213
- };
6214
4861
  if (jspb.Message.GENERATE_TO_OBJECT) {
6215
4862
  proto.aggregator.RestAPINode.prototype.toObject = function(opt_includeInstance) {
6216
4863
  return proto.aggregator.RestAPINode.toObject(opt_includeInstance, this);
6217
4864
  };
6218
4865
  proto.aggregator.RestAPINode.toObject = function(includeInstance, msg) {
6219
4866
  var f, obj = {
6220
- config: (f = msg.getConfig()) && proto.aggregator.RestAPINode.Config.toObject(includeInstance, f),
6221
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
4867
+ config: (f = msg.getConfig()) && proto.aggregator.RestAPINode.Config.toObject(includeInstance, f)
6222
4868
  };
6223
4869
  if (includeInstance) {
6224
4870
  obj.$jspbMessageInstance = msg;
@@ -6243,11 +4889,6 @@ var require_avs_pb = __commonJS({
6243
4889
  reader.readMessage(value, proto.aggregator.RestAPINode.Config.deserializeBinaryFromReader);
6244
4890
  msg.setConfig(value);
6245
4891
  break;
6246
- case 2:
6247
- var value = new google_protobuf_struct_pb2.Value();
6248
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
6249
- msg.setInput(value);
6250
- break;
6251
4892
  default:
6252
4893
  reader.skipField();
6253
4894
  break;
@@ -6270,14 +4911,6 @@ var require_avs_pb = __commonJS({
6270
4911
  proto.aggregator.RestAPINode.Config.serializeBinaryToWriter
6271
4912
  );
6272
4913
  }
6273
- f = message.getInput();
6274
- if (f != null) {
6275
- writer.writeMessage(
6276
- 2,
6277
- f,
6278
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
6279
- );
6280
- }
6281
4914
  };
6282
4915
  if (jspb.Message.GENERATE_TO_OBJECT) {
6283
4916
  proto.aggregator.RestAPINode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -6501,29 +5134,13 @@ var require_avs_pb = __commonJS({
6501
5134
  proto.aggregator.RestAPINode.prototype.hasConfig = function() {
6502
5135
  return jspb.Message.getField(this, 1) != null;
6503
5136
  };
6504
- proto.aggregator.RestAPINode.prototype.getInput = function() {
6505
- return (
6506
- /** @type{?proto.google.protobuf.Value} */
6507
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
6508
- );
6509
- };
6510
- proto.aggregator.RestAPINode.prototype.setInput = function(value) {
6511
- return jspb.Message.setWrapperField(this, 2, value);
6512
- };
6513
- proto.aggregator.RestAPINode.prototype.clearInput = function() {
6514
- return this.setInput(void 0);
6515
- };
6516
- proto.aggregator.RestAPINode.prototype.hasInput = function() {
6517
- return jspb.Message.getField(this, 2) != null;
6518
- };
6519
5137
  if (jspb.Message.GENERATE_TO_OBJECT) {
6520
5138
  proto.aggregator.CustomCodeNode.prototype.toObject = function(opt_includeInstance) {
6521
5139
  return proto.aggregator.CustomCodeNode.toObject(opt_includeInstance, this);
6522
5140
  };
6523
5141
  proto.aggregator.CustomCodeNode.toObject = function(includeInstance, msg) {
6524
5142
  var f, obj = {
6525
- config: (f = msg.getConfig()) && proto.aggregator.CustomCodeNode.Config.toObject(includeInstance, f),
6526
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
5143
+ config: (f = msg.getConfig()) && proto.aggregator.CustomCodeNode.Config.toObject(includeInstance, f)
6527
5144
  };
6528
5145
  if (includeInstance) {
6529
5146
  obj.$jspbMessageInstance = msg;
@@ -6548,11 +5165,6 @@ var require_avs_pb = __commonJS({
6548
5165
  reader.readMessage(value, proto.aggregator.CustomCodeNode.Config.deserializeBinaryFromReader);
6549
5166
  msg.setConfig(value);
6550
5167
  break;
6551
- case 2:
6552
- var value = new google_protobuf_struct_pb2.Value();
6553
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
6554
- msg.setInput(value);
6555
- break;
6556
5168
  default:
6557
5169
  reader.skipField();
6558
5170
  break;
@@ -6575,14 +5187,6 @@ var require_avs_pb = __commonJS({
6575
5187
  proto.aggregator.CustomCodeNode.Config.serializeBinaryToWriter
6576
5188
  );
6577
5189
  }
6578
- f = message.getInput();
6579
- if (f != null) {
6580
- writer.writeMessage(
6581
- 2,
6582
- f,
6583
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
6584
- );
6585
- }
6586
5190
  };
6587
5191
  if (jspb.Message.GENERATE_TO_OBJECT) {
6588
5192
  proto.aggregator.CustomCodeNode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -6756,29 +5360,13 @@ var require_avs_pb = __commonJS({
6756
5360
  proto.aggregator.CustomCodeNode.prototype.hasConfig = function() {
6757
5361
  return jspb.Message.getField(this, 1) != null;
6758
5362
  };
6759
- proto.aggregator.CustomCodeNode.prototype.getInput = function() {
6760
- return (
6761
- /** @type{?proto.google.protobuf.Value} */
6762
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
6763
- );
6764
- };
6765
- proto.aggregator.CustomCodeNode.prototype.setInput = function(value) {
6766
- return jspb.Message.setWrapperField(this, 2, value);
6767
- };
6768
- proto.aggregator.CustomCodeNode.prototype.clearInput = function() {
6769
- return this.setInput(void 0);
6770
- };
6771
- proto.aggregator.CustomCodeNode.prototype.hasInput = function() {
6772
- return jspb.Message.getField(this, 2) != null;
6773
- };
6774
5363
  if (jspb.Message.GENERATE_TO_OBJECT) {
6775
5364
  proto.aggregator.BranchNode.prototype.toObject = function(opt_includeInstance) {
6776
5365
  return proto.aggregator.BranchNode.toObject(opt_includeInstance, this);
6777
5366
  };
6778
5367
  proto.aggregator.BranchNode.toObject = function(includeInstance, msg) {
6779
5368
  var f, obj = {
6780
- config: (f = msg.getConfig()) && proto.aggregator.BranchNode.Config.toObject(includeInstance, f),
6781
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
5369
+ config: (f = msg.getConfig()) && proto.aggregator.BranchNode.Config.toObject(includeInstance, f)
6782
5370
  };
6783
5371
  if (includeInstance) {
6784
5372
  obj.$jspbMessageInstance = msg;
@@ -6803,11 +5391,6 @@ var require_avs_pb = __commonJS({
6803
5391
  reader.readMessage(value, proto.aggregator.BranchNode.Config.deserializeBinaryFromReader);
6804
5392
  msg.setConfig(value);
6805
5393
  break;
6806
- case 2:
6807
- var value = new google_protobuf_struct_pb2.Value();
6808
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
6809
- msg.setInput(value);
6810
- break;
6811
5394
  default:
6812
5395
  reader.skipField();
6813
5396
  break;
@@ -6830,14 +5413,6 @@ var require_avs_pb = __commonJS({
6830
5413
  proto.aggregator.BranchNode.Config.serializeBinaryToWriter
6831
5414
  );
6832
5415
  }
6833
- f = message.getInput();
6834
- if (f != null) {
6835
- writer.writeMessage(
6836
- 2,
6837
- f,
6838
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
6839
- );
6840
- }
6841
5416
  };
6842
5417
  if (jspb.Message.GENERATE_TO_OBJECT) {
6843
5418
  proto.aggregator.BranchNode.Condition.prototype.toObject = function(opt_includeInstance) {
@@ -7031,7 +5606,7 @@ var require_avs_pb = __commonJS({
7031
5606
  };
7032
5607
  proto.aggregator.BranchNode.Output.toObject = function(includeInstance, msg) {
7033
5608
  var f, obj = {
7034
- conditionId: jspb.Message.getFieldWithDefault(msg, 1, "")
5609
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
7035
5610
  };
7036
5611
  if (includeInstance) {
7037
5612
  obj.$jspbMessageInstance = msg;
@@ -7052,11 +5627,9 @@ var require_avs_pb = __commonJS({
7052
5627
  var field = reader.getFieldNumber();
7053
5628
  switch (field) {
7054
5629
  case 1:
7055
- var value = (
7056
- /** @type {string} */
7057
- reader.readString()
7058
- );
7059
- msg.setConditionId(value);
5630
+ var value = new google_protobuf_struct_pb2.Value();
5631
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
5632
+ msg.setData(value);
7060
5633
  break;
7061
5634
  default:
7062
5635
  reader.skipField();
@@ -7072,22 +5645,29 @@ var require_avs_pb = __commonJS({
7072
5645
  };
7073
5646
  proto.aggregator.BranchNode.Output.serializeBinaryToWriter = function(message, writer) {
7074
5647
  var f = void 0;
7075
- f = message.getConditionId();
7076
- if (f.length > 0) {
7077
- writer.writeString(
5648
+ f = message.getData();
5649
+ if (f != null) {
5650
+ writer.writeMessage(
7078
5651
  1,
7079
- f
5652
+ f,
5653
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
7080
5654
  );
7081
5655
  }
7082
5656
  };
7083
- proto.aggregator.BranchNode.Output.prototype.getConditionId = function() {
5657
+ proto.aggregator.BranchNode.Output.prototype.getData = function() {
7084
5658
  return (
7085
- /** @type {string} */
7086
- jspb.Message.getFieldWithDefault(this, 1, "")
5659
+ /** @type{?proto.google.protobuf.Value} */
5660
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
7087
5661
  );
7088
5662
  };
7089
- proto.aggregator.BranchNode.Output.prototype.setConditionId = function(value) {
7090
- return jspb.Message.setProto3StringField(this, 1, value);
5663
+ proto.aggregator.BranchNode.Output.prototype.setData = function(value) {
5664
+ return jspb.Message.setWrapperField(this, 1, value);
5665
+ };
5666
+ proto.aggregator.BranchNode.Output.prototype.clearData = function() {
5667
+ return this.setData(void 0);
5668
+ };
5669
+ proto.aggregator.BranchNode.Output.prototype.hasData = function() {
5670
+ return jspb.Message.getField(this, 1) != null;
7091
5671
  };
7092
5672
  proto.aggregator.BranchNode.prototype.getConfig = function() {
7093
5673
  return (
@@ -7104,29 +5684,13 @@ var require_avs_pb = __commonJS({
7104
5684
  proto.aggregator.BranchNode.prototype.hasConfig = function() {
7105
5685
  return jspb.Message.getField(this, 1) != null;
7106
5686
  };
7107
- proto.aggregator.BranchNode.prototype.getInput = function() {
7108
- return (
7109
- /** @type{?proto.google.protobuf.Value} */
7110
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
7111
- );
7112
- };
7113
- proto.aggregator.BranchNode.prototype.setInput = function(value) {
7114
- return jspb.Message.setWrapperField(this, 2, value);
7115
- };
7116
- proto.aggregator.BranchNode.prototype.clearInput = function() {
7117
- return this.setInput(void 0);
7118
- };
7119
- proto.aggregator.BranchNode.prototype.hasInput = function() {
7120
- return jspb.Message.getField(this, 2) != null;
7121
- };
7122
5687
  if (jspb.Message.GENERATE_TO_OBJECT) {
7123
5688
  proto.aggregator.FilterNode.prototype.toObject = function(opt_includeInstance) {
7124
5689
  return proto.aggregator.FilterNode.toObject(opt_includeInstance, this);
7125
5690
  };
7126
5691
  proto.aggregator.FilterNode.toObject = function(includeInstance, msg) {
7127
5692
  var f, obj = {
7128
- config: (f = msg.getConfig()) && proto.aggregator.FilterNode.Config.toObject(includeInstance, f),
7129
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
5693
+ config: (f = msg.getConfig()) && proto.aggregator.FilterNode.Config.toObject(includeInstance, f)
7130
5694
  };
7131
5695
  if (includeInstance) {
7132
5696
  obj.$jspbMessageInstance = msg;
@@ -7151,11 +5715,6 @@ var require_avs_pb = __commonJS({
7151
5715
  reader.readMessage(value, proto.aggregator.FilterNode.Config.deserializeBinaryFromReader);
7152
5716
  msg.setConfig(value);
7153
5717
  break;
7154
- case 2:
7155
- var value = new google_protobuf_struct_pb2.Value();
7156
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
7157
- msg.setInput(value);
7158
- break;
7159
5718
  default:
7160
5719
  reader.skipField();
7161
5720
  break;
@@ -7178,14 +5737,6 @@ var require_avs_pb = __commonJS({
7178
5737
  proto.aggregator.FilterNode.Config.serializeBinaryToWriter
7179
5738
  );
7180
5739
  }
7181
- f = message.getInput();
7182
- if (f != null) {
7183
- writer.writeMessage(
7184
- 2,
7185
- f,
7186
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
7187
- );
7188
- }
7189
5740
  };
7190
5741
  if (jspb.Message.GENERATE_TO_OBJECT) {
7191
5742
  proto.aggregator.FilterNode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -7194,7 +5745,7 @@ var require_avs_pb = __commonJS({
7194
5745
  proto.aggregator.FilterNode.Config.toObject = function(includeInstance, msg) {
7195
5746
  var f, obj = {
7196
5747
  expression: jspb.Message.getFieldWithDefault(msg, 1, ""),
7197
- sourceId: jspb.Message.getFieldWithDefault(msg, 2, "")
5748
+ inputNodeName: jspb.Message.getFieldWithDefault(msg, 2, "")
7198
5749
  };
7199
5750
  if (includeInstance) {
7200
5751
  obj.$jspbMessageInstance = msg;
@@ -7226,7 +5777,7 @@ var require_avs_pb = __commonJS({
7226
5777
  /** @type {string} */
7227
5778
  reader.readString()
7228
5779
  );
7229
- msg.setSourceId(value);
5780
+ msg.setInputNodeName(value);
7230
5781
  break;
7231
5782
  default:
7232
5783
  reader.skipField();
@@ -7249,7 +5800,7 @@ var require_avs_pb = __commonJS({
7249
5800
  f
7250
5801
  );
7251
5802
  }
7252
- f = message.getSourceId();
5803
+ f = message.getInputNodeName();
7253
5804
  if (f.length > 0) {
7254
5805
  writer.writeString(
7255
5806
  2,
@@ -7266,13 +5817,13 @@ var require_avs_pb = __commonJS({
7266
5817
  proto.aggregator.FilterNode.Config.prototype.setExpression = function(value) {
7267
5818
  return jspb.Message.setProto3StringField(this, 1, value);
7268
5819
  };
7269
- proto.aggregator.FilterNode.Config.prototype.getSourceId = function() {
5820
+ proto.aggregator.FilterNode.Config.prototype.getInputNodeName = function() {
7270
5821
  return (
7271
5822
  /** @type {string} */
7272
5823
  jspb.Message.getFieldWithDefault(this, 2, "")
7273
5824
  );
7274
5825
  };
7275
- proto.aggregator.FilterNode.Config.prototype.setSourceId = function(value) {
5826
+ proto.aggregator.FilterNode.Config.prototype.setInputNodeName = function(value) {
7276
5827
  return jspb.Message.setProto3StringField(this, 2, value);
7277
5828
  };
7278
5829
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -7281,7 +5832,7 @@ var require_avs_pb = __commonJS({
7281
5832
  };
7282
5833
  proto.aggregator.FilterNode.Output.toObject = function(includeInstance, msg) {
7283
5834
  var f, obj = {
7284
- data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
5835
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
7285
5836
  };
7286
5837
  if (includeInstance) {
7287
5838
  obj.$jspbMessageInstance = msg;
@@ -7302,8 +5853,8 @@ var require_avs_pb = __commonJS({
7302
5853
  var field = reader.getFieldNumber();
7303
5854
  switch (field) {
7304
5855
  case 1:
7305
- var value = new google_protobuf_any_pb.Any();
7306
- reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
5856
+ var value = new google_protobuf_struct_pb2.Value();
5857
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
7307
5858
  msg.setData(value);
7308
5859
  break;
7309
5860
  default:
@@ -7325,14 +5876,14 @@ var require_avs_pb = __commonJS({
7325
5876
  writer.writeMessage(
7326
5877
  1,
7327
5878
  f,
7328
- google_protobuf_any_pb.Any.serializeBinaryToWriter
5879
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
7329
5880
  );
7330
5881
  }
7331
5882
  };
7332
5883
  proto.aggregator.FilterNode.Output.prototype.getData = function() {
7333
5884
  return (
7334
- /** @type{?proto.google.protobuf.Any} */
7335
- jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1)
5885
+ /** @type{?proto.google.protobuf.Value} */
5886
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
7336
5887
  );
7337
5888
  };
7338
5889
  proto.aggregator.FilterNode.Output.prototype.setData = function(value) {
@@ -7359,21 +5910,6 @@ var require_avs_pb = __commonJS({
7359
5910
  proto.aggregator.FilterNode.prototype.hasConfig = function() {
7360
5911
  return jspb.Message.getField(this, 1) != null;
7361
5912
  };
7362
- proto.aggregator.FilterNode.prototype.getInput = function() {
7363
- return (
7364
- /** @type{?proto.google.protobuf.Value} */
7365
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
7366
- );
7367
- };
7368
- proto.aggregator.FilterNode.prototype.setInput = function(value) {
7369
- return jspb.Message.setWrapperField(this, 2, value);
7370
- };
7371
- proto.aggregator.FilterNode.prototype.clearInput = function() {
7372
- return this.setInput(void 0);
7373
- };
7374
- proto.aggregator.FilterNode.prototype.hasInput = function() {
7375
- return jspb.Message.getField(this, 2) != null;
7376
- };
7377
5913
  proto.aggregator.LoopNode.oneofGroups_ = [[10, 11, 12, 13, 14, 15]];
7378
5914
  proto.aggregator.LoopNode.RunnerCase = {
7379
5915
  RUNNER_NOT_SET: 0,
@@ -7402,8 +5938,7 @@ var require_avs_pb = __commonJS({
7402
5938
  graphqlDataQuery: (f = msg.getGraphqlDataQuery()) && proto.aggregator.GraphQLQueryNode.toObject(includeInstance, f),
7403
5939
  restApi: (f = msg.getRestApi()) && proto.aggregator.RestAPINode.toObject(includeInstance, f),
7404
5940
  customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
7405
- config: (f = msg.getConfig()) && proto.aggregator.LoopNode.Config.toObject(includeInstance, f),
7406
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
5941
+ config: (f = msg.getConfig()) && proto.aggregator.LoopNode.Config.toObject(includeInstance, f)
7407
5942
  };
7408
5943
  if (includeInstance) {
7409
5944
  obj.$jspbMessageInstance = msg;
@@ -7458,11 +5993,6 @@ var require_avs_pb = __commonJS({
7458
5993
  reader.readMessage(value, proto.aggregator.LoopNode.Config.deserializeBinaryFromReader);
7459
5994
  msg.setConfig(value);
7460
5995
  break;
7461
- case 2:
7462
- var value = new google_protobuf_struct_pb2.Value();
7463
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
7464
- msg.setInput(value);
7465
- break;
7466
5996
  default:
7467
5997
  reader.skipField();
7468
5998
  break;
@@ -7533,14 +6063,6 @@ var require_avs_pb = __commonJS({
7533
6063
  proto.aggregator.LoopNode.Config.serializeBinaryToWriter
7534
6064
  );
7535
6065
  }
7536
- f = message.getInput();
7537
- if (f != null) {
7538
- writer.writeMessage(
7539
- 2,
7540
- f,
7541
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
7542
- );
7543
- }
7544
6066
  };
7545
6067
  if (jspb.Message.GENERATE_TO_OBJECT) {
7546
6068
  proto.aggregator.LoopNode.Config.prototype.toObject = function(opt_includeInstance) {
@@ -7548,7 +6070,7 @@ var require_avs_pb = __commonJS({
7548
6070
  };
7549
6071
  proto.aggregator.LoopNode.Config.toObject = function(includeInstance, msg) {
7550
6072
  var f, obj = {
7551
- sourceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
6073
+ inputNodeName: jspb.Message.getFieldWithDefault(msg, 1, ""),
7552
6074
  iterVal: jspb.Message.getFieldWithDefault(msg, 2, ""),
7553
6075
  iterKey: jspb.Message.getFieldWithDefault(msg, 3, ""),
7554
6076
  executionMode: jspb.Message.getFieldWithDefault(msg, 4, 0)
@@ -7576,7 +6098,7 @@ var require_avs_pb = __commonJS({
7576
6098
  /** @type {string} */
7577
6099
  reader.readString()
7578
6100
  );
7579
- msg.setSourceId(value);
6101
+ msg.setInputNodeName(value);
7580
6102
  break;
7581
6103
  case 2:
7582
6104
  var value = (
@@ -7613,7 +6135,7 @@ var require_avs_pb = __commonJS({
7613
6135
  };
7614
6136
  proto.aggregator.LoopNode.Config.serializeBinaryToWriter = function(message, writer) {
7615
6137
  var f = void 0;
7616
- f = message.getSourceId();
6138
+ f = message.getInputNodeName();
7617
6139
  if (f.length > 0) {
7618
6140
  writer.writeString(
7619
6141
  1,
@@ -7642,13 +6164,13 @@ var require_avs_pb = __commonJS({
7642
6164
  );
7643
6165
  }
7644
6166
  };
7645
- proto.aggregator.LoopNode.Config.prototype.getSourceId = function() {
6167
+ proto.aggregator.LoopNode.Config.prototype.getInputNodeName = function() {
7646
6168
  return (
7647
6169
  /** @type {string} */
7648
6170
  jspb.Message.getFieldWithDefault(this, 1, "")
7649
6171
  );
7650
6172
  };
7651
- proto.aggregator.LoopNode.Config.prototype.setSourceId = function(value) {
6173
+ proto.aggregator.LoopNode.Config.prototype.setInputNodeName = function(value) {
7652
6174
  return jspb.Message.setProto3StringField(this, 1, value);
7653
6175
  };
7654
6176
  proto.aggregator.LoopNode.Config.prototype.getIterVal = function() {
@@ -7684,7 +6206,7 @@ var require_avs_pb = __commonJS({
7684
6206
  };
7685
6207
  proto.aggregator.LoopNode.Output.toObject = function(includeInstance, msg) {
7686
6208
  var f, obj = {
7687
- data: jspb.Message.getFieldWithDefault(msg, 1, "")
6209
+ data: (f = msg.getData()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
7688
6210
  };
7689
6211
  if (includeInstance) {
7690
6212
  obj.$jspbMessageInstance = msg;
@@ -7705,10 +6227,8 @@ var require_avs_pb = __commonJS({
7705
6227
  var field = reader.getFieldNumber();
7706
6228
  switch (field) {
7707
6229
  case 1:
7708
- var value = (
7709
- /** @type {string} */
7710
- reader.readString()
7711
- );
6230
+ var value = new google_protobuf_struct_pb2.Value();
6231
+ reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
7712
6232
  msg.setData(value);
7713
6233
  break;
7714
6234
  default:
@@ -7726,21 +6246,28 @@ var require_avs_pb = __commonJS({
7726
6246
  proto.aggregator.LoopNode.Output.serializeBinaryToWriter = function(message, writer) {
7727
6247
  var f = void 0;
7728
6248
  f = message.getData();
7729
- if (f.length > 0) {
7730
- writer.writeString(
6249
+ if (f != null) {
6250
+ writer.writeMessage(
7731
6251
  1,
7732
- f
6252
+ f,
6253
+ google_protobuf_struct_pb2.Value.serializeBinaryToWriter
7733
6254
  );
7734
6255
  }
7735
6256
  };
7736
6257
  proto.aggregator.LoopNode.Output.prototype.getData = function() {
7737
6258
  return (
7738
- /** @type {string} */
7739
- jspb.Message.getFieldWithDefault(this, 1, "")
6259
+ /** @type{?proto.google.protobuf.Value} */
6260
+ jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
7740
6261
  );
7741
6262
  };
7742
6263
  proto.aggregator.LoopNode.Output.prototype.setData = function(value) {
7743
- return jspb.Message.setProto3StringField(this, 1, value);
6264
+ return jspb.Message.setWrapperField(this, 1, value);
6265
+ };
6266
+ proto.aggregator.LoopNode.Output.prototype.clearData = function() {
6267
+ return this.setData(void 0);
6268
+ };
6269
+ proto.aggregator.LoopNode.Output.prototype.hasData = function() {
6270
+ return jspb.Message.getField(this, 1) != null;
7744
6271
  };
7745
6272
  proto.aggregator.LoopNode.prototype.getEthTransfer = function() {
7746
6273
  return (
@@ -7847,21 +6374,6 @@ var require_avs_pb = __commonJS({
7847
6374
  proto.aggregator.LoopNode.prototype.hasConfig = function() {
7848
6375
  return jspb.Message.getField(this, 1) != null;
7849
6376
  };
7850
- proto.aggregator.LoopNode.prototype.getInput = function() {
7851
- return (
7852
- /** @type{?proto.google.protobuf.Value} */
7853
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 2)
7854
- );
7855
- };
7856
- proto.aggregator.LoopNode.prototype.setInput = function(value) {
7857
- return jspb.Message.setWrapperField(this, 2, value);
7858
- };
7859
- proto.aggregator.LoopNode.prototype.clearInput = function() {
7860
- return this.setInput(void 0);
7861
- };
7862
- proto.aggregator.LoopNode.prototype.hasInput = function() {
7863
- return jspb.Message.getField(this, 2) != null;
7864
- };
7865
6377
  if (jspb.Message.GENERATE_TO_OBJECT) {
7866
6378
  proto.aggregator.TaskEdge.prototype.toObject = function(opt_includeInstance) {
7867
6379
  return proto.aggregator.TaskEdge.toObject(opt_includeInstance, this);
@@ -8010,8 +6522,7 @@ var require_avs_pb = __commonJS({
8010
6522
  branch: (f = msg.getBranch()) && proto.aggregator.BranchNode.toObject(includeInstance, f),
8011
6523
  filter: (f = msg.getFilter()) && proto.aggregator.FilterNode.toObject(includeInstance, f),
8012
6524
  loop: (f = msg.getLoop()) && proto.aggregator.LoopNode.toObject(includeInstance, f),
8013
- customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f),
8014
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f)
6525
+ customCode: (f = msg.getCustomCode()) && proto.aggregator.CustomCodeNode.toObject(includeInstance, f)
8015
6526
  };
8016
6527
  if (includeInstance) {
8017
6528
  obj.$jspbMessageInstance = msg;
@@ -8097,11 +6608,6 @@ var require_avs_pb = __commonJS({
8097
6608
  reader.readMessage(value, proto.aggregator.CustomCodeNode.deserializeBinaryFromReader);
8098
6609
  msg.setCustomCode(value);
8099
6610
  break;
8100
- case 19:
8101
- var value = new google_protobuf_struct_pb2.Value();
8102
- reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
8103
- msg.setInput(value);
8104
- break;
8105
6611
  default:
8106
6612
  reader.skipField();
8107
6613
  break;
@@ -8209,14 +6715,6 @@ var require_avs_pb = __commonJS({
8209
6715
  proto.aggregator.CustomCodeNode.serializeBinaryToWriter
8210
6716
  );
8211
6717
  }
8212
- f = message.getInput();
8213
- if (f != null) {
8214
- writer.writeMessage(
8215
- 19,
8216
- f,
8217
- google_protobuf_struct_pb2.Value.serializeBinaryToWriter
8218
- );
8219
- }
8220
6718
  };
8221
6719
  proto.aggregator.TaskNode.prototype.getId = function() {
8222
6720
  return (
@@ -8371,29 +6869,14 @@ var require_avs_pb = __commonJS({
8371
6869
  jspb.Message.getWrapperField(this, proto.aggregator.CustomCodeNode, 18)
8372
6870
  );
8373
6871
  };
8374
- proto.aggregator.TaskNode.prototype.setCustomCode = function(value) {
8375
- return jspb.Message.setOneofWrapperField(this, 18, proto.aggregator.TaskNode.oneofGroups_[0], value);
8376
- };
8377
- proto.aggregator.TaskNode.prototype.clearCustomCode = function() {
8378
- return this.setCustomCode(void 0);
8379
- };
8380
- proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
8381
- return jspb.Message.getField(this, 18) != null;
8382
- };
8383
- proto.aggregator.TaskNode.prototype.getInput = function() {
8384
- return (
8385
- /** @type{?proto.google.protobuf.Value} */
8386
- jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 19)
8387
- );
8388
- };
8389
- proto.aggregator.TaskNode.prototype.setInput = function(value) {
8390
- return jspb.Message.setWrapperField(this, 19, value);
6872
+ proto.aggregator.TaskNode.prototype.setCustomCode = function(value) {
6873
+ return jspb.Message.setOneofWrapperField(this, 18, proto.aggregator.TaskNode.oneofGroups_[0], value);
8391
6874
  };
8392
- proto.aggregator.TaskNode.prototype.clearInput = function() {
8393
- return this.setInput(void 0);
6875
+ proto.aggregator.TaskNode.prototype.clearCustomCode = function() {
6876
+ return this.setCustomCode(void 0);
8394
6877
  };
8395
- proto.aggregator.TaskNode.prototype.hasInput = function() {
8396
- return jspb.Message.getField(this, 19) != null;
6878
+ proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
6879
+ return jspb.Message.getField(this, 18) != null;
8397
6880
  };
8398
6881
  proto.aggregator.Execution.repeatedFields_ = [8];
8399
6882
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -8567,7 +7050,7 @@ var require_avs_pb = __commonJS({
8567
7050
  error: jspb.Message.getFieldWithDefault(msg, 13, ""),
8568
7051
  log: jspb.Message.getFieldWithDefault(msg, 12, ""),
8569
7052
  inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
8570
- input: (f = msg.getInput()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f),
7053
+ config: (f = msg.getConfig()) && google_protobuf_struct_pb2.Value.toObject(includeInstance, f),
8571
7054
  blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
8572
7055
  fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
8573
7056
  cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
@@ -8655,7 +7138,7 @@ var require_avs_pb = __commonJS({
8655
7138
  case 19:
8656
7139
  var value = new google_protobuf_struct_pb2.Value();
8657
7140
  reader.readMessage(value, google_protobuf_struct_pb2.Value.deserializeBinaryFromReader);
8658
- msg.setInput(value);
7141
+ msg.setConfig(value);
8659
7142
  break;
8660
7143
  case 20:
8661
7144
  var value = new proto.aggregator.BlockTrigger.Output();
@@ -8804,7 +7287,7 @@ var require_avs_pb = __commonJS({
8804
7287
  f
8805
7288
  );
8806
7289
  }
8807
- f = message.getInput();
7290
+ f = message.getConfig();
8808
7291
  if (f != null) {
8809
7292
  writer.writeMessage(
8810
7293
  19,
@@ -9008,19 +7491,19 @@ var require_avs_pb = __commonJS({
9008
7491
  proto.aggregator.Execution.Step.prototype.clearInputsList = function() {
9009
7492
  return this.setInputsList([]);
9010
7493
  };
9011
- proto.aggregator.Execution.Step.prototype.getInput = function() {
7494
+ proto.aggregator.Execution.Step.prototype.getConfig = function() {
9012
7495
  return (
9013
7496
  /** @type{?proto.google.protobuf.Value} */
9014
7497
  jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 19)
9015
7498
  );
9016
7499
  };
9017
- proto.aggregator.Execution.Step.prototype.setInput = function(value) {
7500
+ proto.aggregator.Execution.Step.prototype.setConfig = function(value) {
9018
7501
  return jspb.Message.setWrapperField(this, 19, value);
9019
7502
  };
9020
- proto.aggregator.Execution.Step.prototype.clearInput = function() {
9021
- return this.setInput(void 0);
7503
+ proto.aggregator.Execution.Step.prototype.clearConfig = function() {
7504
+ return this.setConfig(void 0);
9022
7505
  };
9023
- proto.aggregator.Execution.Step.prototype.hasInput = function() {
7506
+ proto.aggregator.Execution.Step.prototype.hasConfig = function() {
9024
7507
  return jspb.Message.getField(this, 19) != null;
9025
7508
  };
9026
7509
  proto.aggregator.Execution.Step.prototype.getBlockTrigger = function() {
@@ -16793,11 +15276,17 @@ var Trigger = class {
16793
15276
  this.type = props.type;
16794
15277
  this.data = props.data;
16795
15278
  this.output = props.output;
16796
- this.input = props.input;
16797
15279
  }
16798
15280
  toRequest() {
16799
15281
  throw new Error("Method not implemented.");
16800
15282
  }
15283
+ static fromResponse(raw) {
15284
+ const obj = raw.toObject();
15285
+ return new this({
15286
+ // eslint-disable-line @typescript-eslint/no-explicit-any
15287
+ ...obj
15288
+ });
15289
+ }
16801
15290
  getOutput() {
16802
15291
  return this.output;
16803
15292
  }
@@ -16807,14 +15296,163 @@ var Trigger = class {
16807
15296
  name: this.name,
16808
15297
  type: this.type,
16809
15298
  data: this.data,
16810
- output: this.output,
16811
- input: this.input
15299
+ output: this.output
16812
15300
  };
16813
15301
  }
16814
15302
  };
16815
15303
 
16816
15304
  // src/models/trigger/block.ts
16817
- import { TriggerType as TriggerType3 } from "@avaprotocol/types";
15305
+ import {
15306
+ TriggerType as TriggerType2
15307
+ } from "@avaprotocol/types";
15308
+ var BlockTrigger2 = class _BlockTrigger extends Trigger {
15309
+ constructor(props) {
15310
+ super({ ...props, type: TriggerType2.Block, data: props.data });
15311
+ }
15312
+ toRequest() {
15313
+ const request = new avs_pb2.TaskTrigger();
15314
+ request.setName(this.name);
15315
+ request.setId(this.id);
15316
+ request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
15317
+ if (!this.data) {
15318
+ throw new Error(`Trigger data is missing for block`);
15319
+ }
15320
+ const blockData = this.data;
15321
+ if (blockData.interval === null || blockData.interval === void 0) {
15322
+ throw new Error("Interval is required for block trigger");
15323
+ }
15324
+ if (!Number.isInteger(blockData.interval)) {
15325
+ throw new Error(`BlockTrigger interval must be an integer, got: ${blockData.interval}`);
15326
+ }
15327
+ if (blockData.interval <= 0) {
15328
+ throw new Error(`Interval must be greater than 0`);
15329
+ }
15330
+ const trigger = new avs_pb2.BlockTrigger();
15331
+ const config = new avs_pb2.BlockTrigger.Config();
15332
+ config.setInterval(blockData.interval);
15333
+ trigger.setConfig(config);
15334
+ request.setBlock(trigger);
15335
+ return request;
15336
+ }
15337
+ static fromResponse(raw) {
15338
+ const obj = raw.toObject();
15339
+ let data = { interval: 0 };
15340
+ if (raw.getBlock() && raw.getBlock().hasConfig()) {
15341
+ const config = raw.getBlock().getConfig();
15342
+ if (config) {
15343
+ data = {
15344
+ interval: config.getInterval() || 0
15345
+ };
15346
+ }
15347
+ }
15348
+ return new _BlockTrigger({
15349
+ ...obj,
15350
+ type: TriggerType2.Block,
15351
+ data
15352
+ });
15353
+ }
15354
+ /**
15355
+ * Convert raw data from runNodeWithInputs response to BlockOutput format
15356
+ * @param rawData - The raw data from the gRPC response
15357
+ * @returns {BlockTriggerOutput | undefined} - The converted data
15358
+ */
15359
+ getOutput() {
15360
+ return this.output;
15361
+ }
15362
+ /**
15363
+ * Extract output data from RunTriggerResp for block triggers
15364
+ * @param outputData - The RunTriggerResp containing block trigger output
15365
+ * @returns Plain JavaScript object with block trigger data
15366
+ */
15367
+ static fromOutputData(outputData) {
15368
+ const blockOutput = outputData.getBlockTrigger();
15369
+ if (!blockOutput) return null;
15370
+ const dataValue = blockOutput.getData();
15371
+ if (!dataValue) return null;
15372
+ const result = dataValue.toJavaScript();
15373
+ return result;
15374
+ }
15375
+ };
15376
+ var block_default = BlockTrigger2;
15377
+
15378
+ // src/models/trigger/cron.ts
15379
+ var avs_pb3 = __toESM(require_avs_pb());
15380
+ import {
15381
+ TriggerType as TriggerType4
15382
+ } from "@avaprotocol/types";
15383
+ var CronTrigger2 = class _CronTrigger extends Trigger {
15384
+ constructor(props) {
15385
+ super({ ...props, type: TriggerType4.Cron, data: props.data });
15386
+ }
15387
+ toRequest() {
15388
+ const request = new avs_pb3.TaskTrigger();
15389
+ request.setName(this.name);
15390
+ request.setId(this.id);
15391
+ request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
15392
+ if (!this.data) {
15393
+ throw new Error(`Trigger data is missing for ${this.type}`);
15394
+ }
15395
+ const cronData = this.data;
15396
+ if (cronData.schedules === null || cronData.schedules === void 0) {
15397
+ throw new Error("Schedules are required for cron trigger");
15398
+ }
15399
+ if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
15400
+ throw new Error("Schedules are required for cron trigger");
15401
+ }
15402
+ const trigger = new avs_pb3.CronTrigger();
15403
+ const config = new avs_pb3.CronTrigger.Config();
15404
+ config.setSchedulesList(cronData.schedules);
15405
+ trigger.setConfig(config);
15406
+ request.setCron(trigger);
15407
+ return request;
15408
+ }
15409
+ static fromResponse(raw) {
15410
+ const obj = raw.toObject();
15411
+ let data = { schedules: [] };
15412
+ if (raw.getCron() && raw.getCron().hasConfig()) {
15413
+ const config = raw.getCron().getConfig();
15414
+ if (config) {
15415
+ data = {
15416
+ schedules: config.getSchedulesList() || []
15417
+ };
15418
+ }
15419
+ }
15420
+ return new _CronTrigger({
15421
+ ...obj,
15422
+ type: TriggerType4.Cron,
15423
+ data
15424
+ });
15425
+ }
15426
+ /**
15427
+ * Convert raw data from runTrigger response to CronOutput format
15428
+ * @param rawData - The raw data from the gRPC response
15429
+ * @returns {CronTriggerOutput | undefined} - The converted data
15430
+ */
15431
+ getOutput() {
15432
+ return this.output;
15433
+ }
15434
+ /**
15435
+ * Extract output data from RunTriggerResp for cron triggers
15436
+ * Updated to handle timestamp and timestamp_iso instead of epoch
15437
+ * @param outputData - The RunTriggerResp containing cron trigger output
15438
+ * @returns Plain JavaScript object with cron trigger data
15439
+ */
15440
+ static fromOutputData(outputData) {
15441
+ const cronOutput = outputData.getCronTrigger();
15442
+ if (!cronOutput) return null;
15443
+ const dataValue = cronOutput.getData();
15444
+ if (!dataValue) return null;
15445
+ const result = dataValue.toJavaScript();
15446
+ return result;
15447
+ }
15448
+ };
15449
+ var cron_default = CronTrigger2;
15450
+
15451
+ // src/models/trigger/event.ts
15452
+ var avs_pb4 = __toESM(require_avs_pb());
15453
+ import {
15454
+ TriggerType as TriggerType7
15455
+ } from "@avaprotocol/types";
16818
15456
 
16819
15457
  // src/utils.ts
16820
15458
  import {
@@ -16822,7 +15460,7 @@ import {
16822
15460
  Struct as ProtobufStruct,
16823
15461
  ListValue as ProtobufListValue
16824
15462
  } from "google-protobuf/google/protobuf/struct_pb";
16825
- import { TriggerType, NodeType } from "@avaprotocol/types";
15463
+ import { TriggerType as TriggerType5, NodeType } from "@avaprotocol/types";
16826
15464
  function convertProtobufValueToJs(value) {
16827
15465
  if (!value) {
16828
15466
  return void 0;
@@ -16886,22 +15524,22 @@ function convertJSValueToProtobuf(value) {
16886
15524
  function convertProtobufTriggerTypeToSdk(protobufType) {
16887
15525
  switch (protobufType) {
16888
15526
  case "TRIGGER_TYPE_MANUAL":
16889
- return TriggerType.Manual;
15527
+ return TriggerType5.Manual;
16890
15528
  // "manualTrigger"
16891
15529
  case "TRIGGER_TYPE_FIXED_TIME":
16892
- return TriggerType.FixedTime;
15530
+ return TriggerType5.FixedTime;
16893
15531
  // "fixedTimeTrigger"
16894
15532
  case "TRIGGER_TYPE_CRON":
16895
- return TriggerType.Cron;
15533
+ return TriggerType5.Cron;
16896
15534
  // "cronTrigger"
16897
15535
  case "TRIGGER_TYPE_BLOCK":
16898
- return TriggerType.Block;
15536
+ return TriggerType5.Block;
16899
15537
  // "blockTrigger"
16900
15538
  case "TRIGGER_TYPE_EVENT":
16901
- return TriggerType.Event;
15539
+ return TriggerType5.Event;
16902
15540
  // "eventTrigger"
16903
15541
  case "TRIGGER_TYPE_UNSPECIFIED":
16904
- return TriggerType.Unspecified;
15542
+ return TriggerType5.Unspecified;
16905
15543
  // "unspecified"
16906
15544
  default:
16907
15545
  console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
@@ -16948,226 +15586,58 @@ function convertProtobufNodeTypeToSdk(protobufType) {
16948
15586
  function convertProtobufStepTypeToSdk(protobufType) {
16949
15587
  if (protobufType.startsWith("TRIGGER_TYPE_")) {
16950
15588
  return convertProtobufTriggerTypeToSdk(protobufType);
16951
- } else if (protobufType.startsWith("NODE_TYPE_")) {
16952
- return convertProtobufNodeTypeToSdk(protobufType);
16953
- } else {
16954
- console.warn(`Unknown step type: ${protobufType}, using raw value`);
16955
- return protobufType;
16956
- }
16957
- }
16958
- function convertInputToProtobuf(input) {
16959
- if (!input) {
16960
- return void 0;
16961
- }
16962
- return convertJSValueToProtobuf(input);
16963
- }
16964
- function extractInputFromProtobuf(inputValue) {
16965
- if (!inputValue) {
16966
- return void 0;
16967
- }
16968
- if (typeof inputValue === "object" && !inputValue.toJavaScript) {
16969
- if (!Array.isArray(inputValue)) {
16970
- return inputValue;
16971
- }
16972
- return void 0;
16973
- }
16974
- try {
16975
- const protobufValue = inputValue;
16976
- const inputJavaScript = protobufValue.toJavaScript();
16977
- if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
16978
- return inputJavaScript;
16979
- }
16980
- } catch (error) {
16981
- if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
16982
- return inputValue;
16983
- }
16984
- }
16985
- return void 0;
16986
- }
16987
- function cleanGrpcErrorMessage(message) {
16988
- if (!message) return message;
16989
- const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
16990
- const match = message.match(grpcErrorPattern);
16991
- if (match && match[1]) {
16992
- return match[1].trim();
16993
- }
16994
- const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
16995
- const statusMatch = message.match(statusCodePattern);
16996
- if (statusMatch && statusMatch[1]) {
16997
- return statusMatch[1].trim();
16998
- }
16999
- return message;
17000
- }
17001
-
17002
- // src/models/trigger/block.ts
17003
- var BlockTrigger2 = class _BlockTrigger extends Trigger {
17004
- constructor(props) {
17005
- super({ ...props, type: TriggerType3.Block, data: props.data });
17006
- }
17007
- toRequest() {
17008
- const request = new avs_pb2.TaskTrigger();
17009
- request.setName(this.name);
17010
- request.setId(this.id);
17011
- request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
17012
- if (!this.data) {
17013
- throw new Error(`Trigger data is missing for block`);
17014
- }
17015
- const blockData = this.data;
17016
- if (blockData.interval === null || blockData.interval === void 0) {
17017
- throw new Error("Interval is required for block trigger");
17018
- }
17019
- if (blockData.interval <= 0) {
17020
- throw new Error("Interval must be greater than 0");
17021
- }
17022
- const trigger = new avs_pb2.BlockTrigger();
17023
- const config = new avs_pb2.BlockTrigger.Config();
17024
- config.setInterval(blockData.interval);
17025
- trigger.setConfig(config);
17026
- const inputValue = convertInputToProtobuf(this.input);
17027
- if (inputValue) {
17028
- trigger.setInput(inputValue);
17029
- }
17030
- request.setBlock(trigger);
17031
- return request;
17032
- }
17033
- static fromResponse(raw) {
17034
- const obj = raw.toObject();
17035
- let data = { interval: 0 };
17036
- let input = void 0;
17037
- if (raw.getBlock() && raw.getBlock().hasConfig()) {
17038
- const config = raw.getBlock().getConfig();
17039
- if (config) {
17040
- data = {
17041
- interval: config.getInterval() || 0
17042
- };
17043
- }
17044
- const blockTrigger = raw.getBlock();
17045
- if (blockTrigger.hasInput()) {
17046
- input = extractInputFromProtobuf(blockTrigger.getInput());
17047
- }
17048
- }
17049
- return new _BlockTrigger({
17050
- ...obj,
17051
- type: TriggerType3.Block,
17052
- data,
17053
- input
17054
- });
17055
- }
17056
- /**
17057
- * Convert raw data from runNodeWithInputs response to BlockOutput format
17058
- * @param rawData - The raw data from the gRPC response
17059
- * @returns {BlockTriggerOutput | undefined} - The converted data
17060
- */
17061
- getOutput() {
17062
- return this.output;
17063
- }
17064
- /**
17065
- * Extract output data from RunTriggerResp for block triggers
17066
- * @param outputData - The RunTriggerResp containing block trigger output
17067
- * @returns Plain JavaScript object with block trigger data
17068
- */
17069
- static fromOutputData(outputData) {
17070
- const blockOutput = outputData.getBlockTrigger();
17071
- return blockOutput?.toObject() || null;
15589
+ } else if (protobufType.startsWith("NODE_TYPE_")) {
15590
+ return convertProtobufNodeTypeToSdk(protobufType);
15591
+ } else {
15592
+ console.warn(`Unknown step type: ${protobufType}, using raw value`);
15593
+ return protobufType;
17072
15594
  }
17073
- };
17074
- var block_default = BlockTrigger2;
17075
-
17076
- // src/models/trigger/cron.ts
17077
- var avs_pb3 = __toESM(require_avs_pb());
17078
- import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
17079
- import { TriggerType as TriggerType5 } from "@avaprotocol/types";
17080
- var CronTrigger2 = class _CronTrigger extends Trigger {
17081
- constructor(props) {
17082
- super({ ...props, type: TriggerType5.Cron, data: props.data });
15595
+ }
15596
+ function convertInputToProtobuf(input) {
15597
+ if (!input) {
15598
+ return void 0;
17083
15599
  }
17084
- toRequest() {
17085
- const request = new avs_pb3.TaskTrigger();
17086
- request.setName(this.name);
17087
- request.setId(this.id);
17088
- request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
17089
- if (!this.data) {
17090
- throw new Error(`Trigger data is missing for ${this.type}`);
17091
- }
17092
- const cronData = this.data;
17093
- if (cronData.schedules === null || cronData.schedules === void 0) {
17094
- throw new Error("Schedules are required for cron trigger");
17095
- }
17096
- if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
17097
- throw new Error("Schedules are required for cron trigger");
17098
- }
17099
- const trigger = new avs_pb3.CronTrigger();
17100
- const config = new avs_pb3.CronTrigger.Config();
17101
- config.setSchedulesList(cronData.schedules);
17102
- trigger.setConfig(config);
17103
- if (this.input) {
17104
- try {
17105
- const inputValue = google_protobuf_struct_pb.Value.fromJavaScript(this.input);
17106
- trigger.setInput(inputValue);
17107
- } catch (error) {
17108
- throw new Error(`Failed to convert input data to protobuf.Value: ${error}`);
17109
- }
15600
+ return convertJSValueToProtobuf(input);
15601
+ }
15602
+ function extractInputFromProtobuf(inputValue) {
15603
+ if (!inputValue) {
15604
+ return void 0;
15605
+ }
15606
+ if (typeof inputValue === "object" && !inputValue.toJavaScript) {
15607
+ if (!Array.isArray(inputValue)) {
15608
+ return inputValue;
17110
15609
  }
17111
- request.setCron(trigger);
17112
- return request;
15610
+ return void 0;
17113
15611
  }
17114
- static fromResponse(raw) {
17115
- const obj = raw.toObject();
17116
- let data = { schedules: [] };
17117
- if (raw.getCron() && raw.getCron().hasConfig()) {
17118
- const config = raw.getCron().getConfig();
17119
- if (config) {
17120
- data = {
17121
- schedules: config.getSchedulesList() || []
17122
- };
17123
- }
15612
+ try {
15613
+ const protobufValue = inputValue;
15614
+ const inputJavaScript = protobufValue.toJavaScript();
15615
+ if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
15616
+ return inputJavaScript;
17124
15617
  }
17125
- let input;
17126
- if (raw.getCron() && raw.getCron().hasInput()) {
17127
- const inputValue = raw.getCron().getInput();
17128
- if (inputValue) {
17129
- input = inputValue.toObject();
17130
- }
15618
+ } catch (error) {
15619
+ if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
15620
+ return inputValue;
17131
15621
  }
17132
- return new _CronTrigger({
17133
- ...obj,
17134
- type: TriggerType5.Cron,
17135
- data,
17136
- input
17137
- // ✨ NEW: Include input data
17138
- });
17139
15622
  }
17140
- /**
17141
- * Convert raw data from runTrigger response to CronOutput format
17142
- * @param rawData - The raw data from the gRPC response
17143
- * @returns {CronTriggerOutput | undefined} - The converted data
17144
- */
17145
- getOutput() {
17146
- return this.output;
15623
+ return void 0;
15624
+ }
15625
+ function cleanGrpcErrorMessage(message) {
15626
+ if (!message) return message;
15627
+ const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
15628
+ const match = message.match(grpcErrorPattern);
15629
+ if (match && match[1]) {
15630
+ return match[1].trim();
17147
15631
  }
17148
- /**
17149
- * Extract output data from RunTriggerResp for cron triggers
17150
- * Updated to handle timestamp and timestamp_iso instead of epoch
17151
- * @param outputData - The RunTriggerResp containing cron trigger output
17152
- * @returns Plain JavaScript object with cron trigger data
17153
- */
17154
- static fromOutputData(outputData) {
17155
- const cronOutput = outputData.getCronTrigger();
17156
- if (!cronOutput) return null;
17157
- const outputObj = cronOutput.toObject();
17158
- return {
17159
- timestamp: outputObj.timestamp,
17160
- timestampIso: outputObj.timestampIso
17161
- };
15632
+ const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
15633
+ const statusMatch = message.match(statusCodePattern);
15634
+ if (statusMatch && statusMatch[1]) {
15635
+ return statusMatch[1].trim();
17162
15636
  }
17163
- };
17164
- var cron_default = CronTrigger2;
15637
+ return message;
15638
+ }
17165
15639
 
17166
15640
  // src/models/trigger/event.ts
17167
- var avs_pb4 = __toESM(require_avs_pb());
17168
- import {
17169
- TriggerType as TriggerType7
17170
- } from "@avaprotocol/types";
17171
15641
  var EventTrigger2 = class _EventTrigger extends Trigger {
17172
15642
  constructor(props) {
17173
15643
  super({ ...props, type: TriggerType7.Event, data: props.data });
@@ -17240,17 +15710,12 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
17240
15710
  });
17241
15711
  config.setQueriesList(queryMessages);
17242
15712
  trigger.setConfig(config);
17243
- const inputValue = convertInputToProtobuf(this.input);
17244
- if (inputValue) {
17245
- trigger.setInput(inputValue);
17246
- }
17247
15713
  request.setEvent(trigger);
17248
15714
  return request;
17249
15715
  }
17250
15716
  static fromResponse(raw) {
17251
15717
  const obj = raw.toObject();
17252
15718
  let data = { queries: [] };
17253
- let input = void 0;
17254
15719
  if (raw.getEvent() && raw.getEvent().hasConfig()) {
17255
15720
  const config = raw.getEvent().getConfig();
17256
15721
  if (config) {
@@ -17300,15 +15765,11 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
17300
15765
  }
17301
15766
  data = { queries };
17302
15767
  }
17303
- if (raw.getEvent().hasInput()) {
17304
- input = extractInputFromProtobuf(raw.getEvent().getInput());
17305
- }
17306
15768
  }
17307
15769
  return new _EventTrigger({
17308
15770
  ...obj,
17309
15771
  type: TriggerType7.Event,
17310
- data,
17311
- input
15772
+ data
17312
15773
  });
17313
15774
  }
17314
15775
  /**
@@ -17351,7 +15812,9 @@ var event_default = EventTrigger2;
17351
15812
 
17352
15813
  // src/models/trigger/fixedTime.ts
17353
15814
  var avs_pb5 = __toESM(require_avs_pb());
17354
- import { TriggerType as TriggerType9 } from "@avaprotocol/types";
15815
+ import {
15816
+ TriggerType as TriggerType9
15817
+ } from "@avaprotocol/types";
17355
15818
  var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
17356
15819
  constructor(props) {
17357
15820
  super({ ...props, type: TriggerType9.FixedTime, data: props.data });
@@ -17366,19 +15829,16 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
17366
15829
  }
17367
15830
  const trigger = new avs_pb5.FixedTimeTrigger();
17368
15831
  const config = new avs_pb5.FixedTimeTrigger.Config();
17369
- config.setEpochsList(this.data.epochsList || []);
15832
+ config.setEpochsList(
15833
+ this.data.epochsList || []
15834
+ );
17370
15835
  trigger.setConfig(config);
17371
- const inputValue = convertInputToProtobuf(this.input);
17372
- if (inputValue) {
17373
- trigger.setInput(inputValue);
17374
- }
17375
15836
  request.setFixedTime(trigger);
17376
15837
  return request;
17377
15838
  }
17378
15839
  static fromResponse(raw) {
17379
15840
  const obj = raw.toObject();
17380
15841
  let data = { epochsList: [] };
17381
- let input = void 0;
17382
15842
  if (raw.getFixedTime() && raw.getFixedTime().hasConfig()) {
17383
15843
  const config = raw.getFixedTime().getConfig();
17384
15844
  if (config) {
@@ -17386,15 +15846,11 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
17386
15846
  epochsList: config.getEpochsList() || []
17387
15847
  };
17388
15848
  }
17389
- if (raw.getFixedTime().hasInput()) {
17390
- input = extractInputFromProtobuf(raw.getFixedTime().getInput());
17391
- }
17392
15849
  }
17393
15850
  return new _FixedTimeTrigger({
17394
15851
  ...obj,
17395
15852
  type: TriggerType9.FixedTime,
17396
- data,
17397
- input
15853
+ data
17398
15854
  });
17399
15855
  }
17400
15856
  /**
@@ -17414,11 +15870,10 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
17414
15870
  static fromOutputData(outputData) {
17415
15871
  const fixedTimeOutput = outputData.getFixedTimeTrigger();
17416
15872
  if (!fixedTimeOutput) return null;
17417
- const outputObj = fixedTimeOutput.toObject();
17418
- return {
17419
- timestamp: outputObj.timestamp,
17420
- timestampIso: outputObj.timestampIso
17421
- };
15873
+ const dataValue = fixedTimeOutput.getData();
15874
+ if (!dataValue) return null;
15875
+ const result = dataValue.toJavaScript();
15876
+ return result;
17422
15877
  }
17423
15878
  };
17424
15879
  var fixedTime_default = FixedTimeTrigger2;
@@ -17436,8 +15891,6 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
17436
15891
  data: props.data,
17437
15892
  input: props.input
17438
15893
  });
17439
- this.headers = props.headers;
17440
- this.pathParams = props.pathParams;
17441
15894
  }
17442
15895
  toRequest() {
17443
15896
  const trigger = new avs_pb6.TaskTrigger();
@@ -17446,24 +15899,36 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
17446
15899
  trigger.setType(avs_pb6.TriggerType.TRIGGER_TYPE_MANUAL);
17447
15900
  const manualTrigger = new avs_pb6.ManualTrigger();
17448
15901
  const config = new avs_pb6.ManualTrigger.Config();
17449
- const dataToSend = this.data ?? this.input;
17450
- if (dataToSend === null || dataToSend === void 0) {
15902
+ if (this.data === null || this.data === void 0) {
17451
15903
  throw new Error("ManualTrigger data is required");
17452
15904
  }
17453
- const inputValue = convertInputToProtobuf(dataToSend);
17454
- if (!inputValue) {
17455
- throw new Error("Failed to convert ManualTrigger data to protobuf format");
15905
+ let actualData = this.data;
15906
+ let headers = {};
15907
+ let pathParams = {};
15908
+ if (typeof this.data === "object" && this.data !== null && !Array.isArray(this.data)) {
15909
+ const dataObj = this.data;
15910
+ if ("data" in dataObj) {
15911
+ actualData = dataObj.data;
15912
+ headers = dataObj.headers || {};
15913
+ pathParams = dataObj.pathParams || {};
15914
+ }
15915
+ }
15916
+ const dataValue = convertInputToProtobuf(actualData);
15917
+ if (!dataValue) {
15918
+ throw new Error(
15919
+ "Failed to convert ManualTrigger data to protobuf format"
15920
+ );
17456
15921
  }
17457
- config.setData(inputValue);
17458
- if (this.headers && Object.keys(this.headers).length > 0) {
15922
+ config.setData(dataValue);
15923
+ if (Object.keys(headers).length > 0) {
17459
15924
  const headersMap = config.getHeadersMap();
17460
- Object.entries(this.headers).forEach(([key, value]) => {
15925
+ Object.entries(headers).forEach(([key, value]) => {
17461
15926
  headersMap.set(key, value);
17462
15927
  });
17463
15928
  }
17464
- if (this.pathParams && Object.keys(this.pathParams).length > 0) {
15929
+ if (Object.keys(pathParams).length > 0) {
17465
15930
  const pathParamsMap = config.getPathparamsMap();
17466
- Object.entries(this.pathParams).forEach(([key, value]) => {
15931
+ Object.entries(pathParams).forEach(([key, value]) => {
17467
15932
  pathParamsMap.set(key, value);
17468
15933
  });
17469
15934
  }
@@ -17473,45 +15938,25 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
17473
15938
  }
17474
15939
  static fromResponse(raw) {
17475
15940
  const obj = raw.toObject();
17476
- let data = null;
17477
- const input = void 0;
17478
- let headers = void 0;
17479
- let pathParams = void 0;
15941
+ let actualData = null;
17480
15942
  const manualTrigger = raw.getManual();
17481
15943
  if (manualTrigger) {
17482
15944
  const config = manualTrigger.getConfig();
17483
15945
  if (config) {
17484
15946
  if (config.hasData()) {
17485
- data = extractInputFromProtobuf(config.getData());
17486
- }
17487
- const headersMapProto = config.getHeadersMap();
17488
- if (headersMapProto && headersMapProto.getLength() > 0) {
17489
- headers = {};
17490
- headersMapProto.forEach((value, key) => {
17491
- headers[key] = value;
17492
- });
17493
- }
17494
- const pathParamsMapProto = config.getPathparamsMap();
17495
- if (pathParamsMapProto && pathParamsMapProto.getLength() > 0) {
17496
- pathParams = {};
17497
- pathParamsMapProto.forEach((value, key) => {
17498
- pathParams[key] = value;
17499
- });
15947
+ actualData = extractInputFromProtobuf(config.getData());
17500
15948
  }
17501
15949
  }
17502
15950
  }
15951
+ const manualTriggerData = {
15952
+ data: actualData
15953
+ };
17503
15954
  return new _ManualTrigger({
17504
15955
  ...obj,
17505
15956
  type: TriggerType11.Manual,
17506
- data,
17507
- input,
17508
- headers,
17509
- pathParams
15957
+ data: manualTriggerData
17510
15958
  });
17511
15959
  }
17512
- getInputVariables() {
17513
- return this.input;
17514
- }
17515
15960
  /**
17516
15961
  * Extract output data from RunTriggerResp for manual triggers
17517
15962
  * @param outputData - The RunTriggerResp containing manual trigger output
@@ -17614,13 +16059,11 @@ var avs_pb8 = __toESM(require_avs_pb());
17614
16059
  import { NodeType as NodeType2, NodeTypeGoConverter } from "@avaprotocol/types";
17615
16060
  import _ from "lodash";
17616
16061
  var Node = class {
17617
- // Use JavaScript object type for internal storage
17618
16062
  constructor(props) {
17619
16063
  this.id = props.id;
17620
16064
  this.name = props.name;
17621
16065
  this.type = props.type;
17622
16066
  this.data = props.data;
17623
- this.input = props.input;
17624
16067
  }
17625
16068
  toRequest() {
17626
16069
  const request = new avs_pb8.TaskNode();
@@ -17633,13 +16076,8 @@ var Node = class {
17633
16076
  }
17634
16077
  static fromResponse(raw) {
17635
16078
  const obj = raw.toObject();
17636
- let input = void 0;
17637
- if (raw.hasInput()) {
17638
- input = raw.getInput().toObject();
17639
- }
17640
16079
  return new this({
17641
- ...obj,
17642
- input
16080
+ ...obj
17643
16081
  });
17644
16082
  }
17645
16083
  };
@@ -17671,6 +16109,9 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
17671
16109
  if (methodCall.methodName) {
17672
16110
  methodCallMsg.setMethodName(methodCall.methodName);
17673
16111
  }
16112
+ if (methodCall.methodParams) {
16113
+ methodCallMsg.setMethodParamsList(methodCall.methodParams);
16114
+ }
17674
16115
  config.addMethodCalls(methodCallMsg);
17675
16116
  });
17676
16117
  node.setConfig(config);
@@ -17685,18 +16126,14 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
17685
16126
  contractAbi: protobufData.contractAbi,
17686
16127
  methodCalls: protobufData.methodCallsList?.map((call) => ({
17687
16128
  callData: call.callData,
17688
- methodName: call.methodName
16129
+ methodName: call.methodName,
16130
+ methodParams: call.methodParamsList || []
17689
16131
  })) || []
17690
16132
  };
17691
- let input = void 0;
17692
- if (raw.hasInput()) {
17693
- input = extractInputFromProtobuf(raw.getInput());
17694
- }
17695
16133
  return new _ContractWriteNode({
17696
16134
  ...obj,
17697
16135
  type: NodeType3.ContractWrite,
17698
- data,
17699
- input
16136
+ data
17700
16137
  });
17701
16138
  }
17702
16139
  toRequest() {
@@ -17706,10 +16143,6 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
17706
16143
  const node = _ContractWriteNode.createProtobufNode(
17707
16144
  this.data
17708
16145
  );
17709
- const inputValue = convertInputToProtobuf(this.input);
17710
- if (inputValue) {
17711
- request.setInput(inputValue);
17712
- }
17713
16146
  request.setContractWrite(node);
17714
16147
  return request;
17715
16148
  }
@@ -17753,15 +16186,10 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
17753
16186
  lang: rawConfig.lang,
17754
16187
  source: rawConfig.source
17755
16188
  };
17756
- let input = void 0;
17757
- if (raw.hasInput()) {
17758
- input = extractInputFromProtobuf(raw.getInput());
17759
- }
17760
16189
  return new _CustomCodeNode({
17761
16190
  ...obj,
17762
16191
  type: NodeType4.CustomCode,
17763
- data: convertedConfig,
17764
- input
16192
+ data: convertedConfig
17765
16193
  });
17766
16194
  }
17767
16195
  toRequest() {
@@ -17771,10 +16199,6 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
17771
16199
  const node = _CustomCodeNode.createProtobufNode(
17772
16200
  this.data
17773
16201
  );
17774
- const inputValue = convertInputToProtobuf(this.input);
17775
- if (inputValue) {
17776
- request.setInput(inputValue);
17777
- }
17778
16202
  request.setCustomCode(node);
17779
16203
  return request;
17780
16204
  }
@@ -17794,7 +16218,9 @@ var customCode_default = CustomCodeNode2;
17794
16218
 
17795
16219
  // src/models/node/graphqlQuery.ts
17796
16220
  var avs_pb11 = __toESM(require_avs_pb());
17797
- import { NodeType as NodeType5 } from "@avaprotocol/types";
16221
+ import {
16222
+ NodeType as NodeType5
16223
+ } from "@avaprotocol/types";
17798
16224
  var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
17799
16225
  constructor(props) {
17800
16226
  super({
@@ -17824,12 +16250,10 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
17824
16250
  }
17825
16251
  static fromResponse(raw) {
17826
16252
  const obj = raw.toObject();
17827
- const input = extractInputFromProtobuf(raw.getGraphqlQuery()?.getInput());
17828
16253
  return new _GraphQLQueryNode({
17829
16254
  ...obj,
17830
16255
  type: NodeType5.GraphQLQuery,
17831
- data: raw.getGraphqlQuery().getConfig().toObject(),
17832
- input
16256
+ data: raw.getGraphqlQuery().getConfig().toObject()
17833
16257
  });
17834
16258
  }
17835
16259
  toRequest() {
@@ -17839,10 +16263,6 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
17839
16263
  const node = _GraphQLQueryNode.createProtobufNode(
17840
16264
  this.data
17841
16265
  );
17842
- const inputValue = convertInputToProtobuf(this.input);
17843
- if (inputValue) {
17844
- node.setInput(inputValue);
17845
- }
17846
16266
  request.setGraphqlQuery(node);
17847
16267
  return request;
17848
16268
  }
@@ -17884,10 +16304,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
17884
16304
  }
17885
16305
  static fromResponse(raw) {
17886
16306
  const obj = raw.toObject();
17887
- let input = void 0;
17888
- if (raw.hasInput()) {
17889
- input = extractInputFromProtobuf(raw.getInput());
17890
- }
17891
16307
  return new _RestAPINode({
17892
16308
  ...obj,
17893
16309
  type: NodeType6.RestAPI,
@@ -17903,9 +16319,7 @@ var RestAPINode2 = class _RestAPINode extends Node {
17903
16319
  });
17904
16320
  return headers;
17905
16321
  })()
17906
- },
17907
- input
17908
- // Include input data from top-level TaskNode
16322
+ }
17909
16323
  });
17910
16324
  }
17911
16325
  toRequest() {
@@ -17915,10 +16329,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
17915
16329
  const nodeData = _RestAPINode.createProtobufNode(
17916
16330
  this.data
17917
16331
  );
17918
- const inputValue = convertInputToProtobuf(this.input);
17919
- if (inputValue) {
17920
- request.setInput(inputValue);
17921
- }
17922
16332
  request.setRestApi(nodeData);
17923
16333
  return request;
17924
16334
  }
@@ -17966,6 +16376,9 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
17966
16376
  if (methodCall.applyToFields) {
17967
16377
  methodCallMsg.setApplyToFieldsList(methodCall.applyToFields);
17968
16378
  }
16379
+ if (methodCall.methodParams) {
16380
+ methodCallMsg.setMethodParamsList(methodCall.methodParams);
16381
+ }
17969
16382
  config.addMethodCalls(methodCallMsg);
17970
16383
  });
17971
16384
  node.setConfig(config);
@@ -17980,18 +16393,14 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
17980
16393
  methodCalls: protobufData.methodCallsList?.map((call) => ({
17981
16394
  callData: call.callData,
17982
16395
  methodName: call.methodName,
17983
- applyToFields: call.applyToFieldsList || []
16396
+ applyToFields: call.applyToFieldsList || [],
16397
+ methodParams: call.methodParamsList || []
17984
16398
  })) || []
17985
16399
  };
17986
- let input = void 0;
17987
- if (raw.hasInput()) {
17988
- input = extractInputFromProtobuf(raw.getInput());
17989
- }
17990
16400
  return new _ContractReadNode({
17991
16401
  ...obj,
17992
16402
  type: NodeType7.ContractRead,
17993
- data,
17994
- input
16403
+ data
17995
16404
  });
17996
16405
  }
17997
16406
  toRequest() {
@@ -18001,10 +16410,6 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
18001
16410
  const node = _ContractReadNode.createProtobufNode(
18002
16411
  this.data
18003
16412
  );
18004
- const inputValue = convertInputToProtobuf(this.input);
18005
- if (inputValue) {
18006
- request.setInput(inputValue);
18007
- }
18008
16413
  request.setContractRead(node);
18009
16414
  return request;
18010
16415
  }
@@ -18033,7 +16438,9 @@ var contractRead_default = ContractReadNode2;
18033
16438
 
18034
16439
  // src/models/node/ethTransfer.ts
18035
16440
  var avs_pb14 = __toESM(require_avs_pb());
18036
- import { NodeType as NodeType8 } from "@avaprotocol/types";
16441
+ import {
16442
+ NodeType as NodeType8
16443
+ } from "@avaprotocol/types";
18037
16444
  var ETHTransferNode2 = class _ETHTransferNode extends Node {
18038
16445
  constructor(props) {
18039
16446
  super({ ...props, type: NodeType8.ETHTransfer, data: props.data });
@@ -18053,12 +16460,11 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
18053
16460
  }
18054
16461
  static fromResponse(raw) {
18055
16462
  const obj = raw.toObject();
18056
- const input = extractInputFromProtobuf(raw.getEthTransfer()?.getInput());
16463
+ const data = raw.getEthTransfer().getConfig().toObject();
18057
16464
  return new _ETHTransferNode({
18058
16465
  ...obj,
18059
16466
  type: NodeType8.ETHTransfer,
18060
- data: raw.getEthTransfer().getConfig().toObject(),
18061
- input
16467
+ data
18062
16468
  });
18063
16469
  }
18064
16470
  toRequest() {
@@ -18068,10 +16474,6 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
18068
16474
  const node = _ETHTransferNode.createProtobufNode(
18069
16475
  this.data
18070
16476
  );
18071
- const inputValue = convertInputToProtobuf(this.input);
18072
- if (inputValue) {
18073
- node.setInput(inputValue);
18074
- }
18075
16477
  request.setEthTransfer(node);
18076
16478
  return request;
18077
16479
  }
@@ -18083,7 +16485,9 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
18083
16485
  var ethTransfer_default = ETHTransferNode2;
18084
16486
 
18085
16487
  // src/models/node/branch.ts
18086
- import { NodeType as NodeType9 } from "@avaprotocol/types";
16488
+ import {
16489
+ NodeType as NodeType9
16490
+ } from "@avaprotocol/types";
18087
16491
  var avs_pb15 = __toESM(require_avs_pb());
18088
16492
  var BranchNode2 = class _BranchNode extends Node {
18089
16493
  constructor(props) {
@@ -18099,12 +16503,10 @@ var BranchNode2 = class _BranchNode extends Node {
18099
16503
  expression: condition.expression
18100
16504
  })) || []
18101
16505
  };
18102
- const input = extractInputFromProtobuf(raw.getBranch()?.getInput());
18103
16506
  return new _BranchNode({
18104
16507
  ...obj,
18105
16508
  type: NodeType9.Branch,
18106
- data,
18107
- input
16509
+ data
18108
16510
  });
18109
16511
  }
18110
16512
  toRequest() {
@@ -18126,10 +16528,6 @@ var BranchNode2 = class _BranchNode extends Node {
18126
16528
  config.setConditionsList(conditionsList);
18127
16529
  }
18128
16530
  node.setConfig(config);
18129
- const inputValue = convertInputToProtobuf(this.input);
18130
- if (inputValue) {
18131
- node.setInput(inputValue);
18132
- }
18133
16531
  request.setBranch(node);
18134
16532
  return request;
18135
16533
  }
@@ -18146,19 +16544,16 @@ var avs_pb16 = __toESM(require_avs_pb());
18146
16544
  import {
18147
16545
  NodeType as NodeType10
18148
16546
  } from "@avaprotocol/types";
18149
- import { Value as Value2 } from "google-protobuf/google/protobuf/struct_pb";
18150
16547
  var FilterNode2 = class _FilterNode extends Node {
18151
16548
  constructor(props) {
18152
16549
  super({ ...props, type: NodeType10.Filter, data: props.data });
18153
16550
  }
18154
16551
  static fromResponse(raw) {
18155
16552
  const obj = raw.toObject();
18156
- const input = extractInputFromProtobuf(raw.getFilter()?.getInput());
18157
16553
  return new _FilterNode({
18158
16554
  ...obj,
18159
16555
  type: NodeType10.Filter,
18160
- data: raw.getFilter().getConfig().toObject(),
18161
- input
16556
+ data: raw.getFilter().getConfig().toObject()
18162
16557
  });
18163
16558
  }
18164
16559
  toRequest() {
@@ -18168,12 +16563,8 @@ var FilterNode2 = class _FilterNode extends Node {
18168
16563
  const node = new avs_pb16.FilterNode();
18169
16564
  const config = new avs_pb16.FilterNode.Config();
18170
16565
  config.setExpression(this.data.expression);
18171
- config.setSourceId(this.data.sourceId || "");
16566
+ config.setInputNodeName(this.data.inputNodeName || "");
18172
16567
  node.setConfig(config);
18173
- const inputValue = convertInputToProtobuf(this.input);
18174
- if (inputValue) {
18175
- node.setInput(inputValue);
18176
- }
18177
16568
  request.setFilter(node);
18178
16569
  return request;
18179
16570
  }
@@ -18186,11 +16577,16 @@ var FilterNode2 = class _FilterNode extends Node {
18186
16577
  if (!anyData) {
18187
16578
  throw new Error("FilterNode output data.getData() is missing");
18188
16579
  }
18189
- const value = Value2.deserializeBinary(anyData.getValue_asU8());
18190
- const result = value.toJavaScript();
18191
- if (result && typeof result === "object" && !Array.isArray(result) && result.data) {
16580
+ const result = anyData.toJavaScript();
16581
+ if (result && typeof result === "object" && !Array.isArray(result) && result.data && result.data.data && Array.isArray(result.data.data)) {
16582
+ return result.data.data;
16583
+ }
16584
+ if (result && typeof result === "object" && !Array.isArray(result) && result.data && Array.isArray(result.data)) {
18192
16585
  return result.data;
18193
16586
  }
16587
+ if (Array.isArray(result)) {
16588
+ return result;
16589
+ }
18194
16590
  throw new Error(
18195
16591
  "FilterNode output data does not contain expected data structure"
18196
16592
  );
@@ -18225,15 +16621,10 @@ var LoopNode2 = class _LoopNode extends Node {
18225
16621
  configData?.executionMode
18226
16622
  )
18227
16623
  };
18228
- let input = void 0;
18229
- if (raw.hasInput()) {
18230
- input = extractInputFromProtobuf(raw.getInput());
18231
- }
18232
16624
  return new _LoopNode({
18233
16625
  ...obj,
18234
16626
  type: NodeType11.Loop,
18235
- data,
18236
- input
16627
+ data
18237
16628
  });
18238
16629
  }
18239
16630
  static extractRunnerFromProtobuf(loopNodeData) {
@@ -18291,16 +16682,12 @@ var LoopNode2 = class _LoopNode extends Node {
18291
16682
  node.setName(this.name);
18292
16683
  const data = this.data;
18293
16684
  const config = new avs_pb17.LoopNode.Config();
18294
- config.setSourceId(data.sourceId || "");
16685
+ config.setInputNodeName(data.inputNodeName || "");
18295
16686
  config.setIterVal(data.iterVal || "");
18296
16687
  config.setIterKey(data.iterKey || "");
18297
16688
  const executionMode = this.mapExecutionModeToProtobuf(data.executionMode);
18298
16689
  config.setExecutionMode(executionMode);
18299
16690
  loopNode.setConfig(config);
18300
- const inputValue = convertInputToProtobuf(this.input);
18301
- if (inputValue) {
18302
- node.setInput(inputValue);
18303
- }
18304
16691
  if (data.runner) {
18305
16692
  this.setRunnerOnProtobuf(loopNode, data.runner);
18306
16693
  }
@@ -18308,86 +16695,72 @@ var LoopNode2 = class _LoopNode extends Node {
18308
16695
  return node;
18309
16696
  }
18310
16697
  setRunnerOnProtobuf(loopNode, runner) {
18311
- if (!runner || !runner.type || !runner.data) {
16698
+ if (!runner || !runner.type) {
16699
+ return;
16700
+ }
16701
+ const config = runner.config || runner.data && runner.data.config;
16702
+ if (!config) {
18312
16703
  return;
18313
16704
  }
18314
16705
  switch (runner.type) {
18315
16706
  case "ethTransfer": {
18316
- const ethTransferData = runner.data;
18317
- if (ethTransferData.config) {
18318
- const ethConfig = ethTransferData.config;
18319
- const ethTransfer = ethTransfer_default.createProtobufNode({
18320
- destination: ethConfig.destination,
18321
- amount: ethConfig.amount
18322
- });
18323
- loopNode.setEthTransfer(ethTransfer);
18324
- }
16707
+ const ethConfig = config;
16708
+ const ethTransfer = ethTransfer_default.createProtobufNode({
16709
+ destination: ethConfig.destination,
16710
+ amount: ethConfig.amount
16711
+ });
16712
+ loopNode.setEthTransfer(ethTransfer);
18325
16713
  break;
18326
16714
  }
18327
16715
  case "contractWrite": {
18328
- const contractWriteData = runner.data;
18329
- if (contractWriteData.config) {
18330
- const writeConfig = contractWriteData.config;
18331
- const contractWrite = contractWrite_default.createProtobufNode({
18332
- contractAddress: writeConfig.contractAddress,
18333
- callData: writeConfig.callData,
18334
- contractAbi: writeConfig.contractAbi,
18335
- methodCalls: writeConfig.methodCallsList || []
18336
- });
18337
- loopNode.setContractWrite(contractWrite);
18338
- }
16716
+ const writeConfig = config;
16717
+ const contractWrite = contractWrite_default.createProtobufNode({
16718
+ contractAddress: writeConfig.contractAddress,
16719
+ callData: writeConfig.callData,
16720
+ contractAbi: writeConfig.contractAbi,
16721
+ methodCalls: writeConfig.methodCallsList || []
16722
+ });
16723
+ loopNode.setContractWrite(contractWrite);
18339
16724
  break;
18340
16725
  }
18341
16726
  case "contractRead": {
18342
- const contractReadData = runner.data;
18343
- if (contractReadData.config) {
18344
- const readConfig = contractReadData.config;
18345
- const contractRead = contractRead_default.createProtobufNode({
18346
- contractAddress: readConfig.contractAddress,
18347
- contractAbi: readConfig.contractAbi,
18348
- methodCalls: readConfig.methodCallsList || []
18349
- });
18350
- loopNode.setContractRead(contractRead);
18351
- }
16727
+ const readConfig = config;
16728
+ const contractRead = contractRead_default.createProtobufNode({
16729
+ contractAddress: readConfig.contractAddress,
16730
+ contractAbi: readConfig.contractAbi,
16731
+ methodCalls: readConfig.methodCallsList || []
16732
+ });
16733
+ loopNode.setContractRead(contractRead);
18352
16734
  break;
18353
16735
  }
18354
16736
  case "graphqlDataQuery": {
18355
- const graphqlData = runner.data;
18356
- if (graphqlData.config) {
18357
- const gqlConfig = graphqlData.config;
18358
- const graphqlQuery = graphqlQuery_default.createProtobufNode({
18359
- url: gqlConfig.url,
18360
- query: gqlConfig.query,
18361
- variablesMap: gqlConfig.variablesMap
18362
- });
18363
- loopNode.setGraphqlDataQuery(graphqlQuery);
18364
- }
16737
+ const gqlConfig = config;
16738
+ const graphqlQuery = graphqlQuery_default.createProtobufNode({
16739
+ url: gqlConfig.url,
16740
+ query: gqlConfig.query,
16741
+ variablesMap: gqlConfig.variablesMap
16742
+ });
16743
+ loopNode.setGraphqlDataQuery(graphqlQuery);
18365
16744
  break;
18366
16745
  }
18367
16746
  case "restApi": {
18368
- const restApiData = runner.data;
18369
- if (restApiData.config) {
18370
- const apiConfig = restApiData.config;
18371
- const restApi = restApi_default.createProtobufNode({
18372
- url: apiConfig.url,
18373
- method: apiConfig.method,
18374
- body: apiConfig.body || "",
18375
- headers: apiConfig.headers
18376
- });
18377
- loopNode.setRestApi(restApi);
18378
- }
16747
+ const apiConfig = config;
16748
+ const restApi = restApi_default.createProtobufNode({
16749
+ url: apiConfig.url,
16750
+ method: apiConfig.method,
16751
+ body: apiConfig.body || "",
16752
+ headers: apiConfig.headers
16753
+ });
16754
+ loopNode.setRestApi(restApi);
18379
16755
  break;
18380
16756
  }
18381
16757
  case "customCode": {
18382
- const customCodeData = runner.data;
18383
- if (customCodeData.config) {
18384
- const codeConfig = customCodeData.config;
18385
- const customCode = customCode_default.createProtobufNode({
18386
- lang: codeConfig.lang,
18387
- source: codeConfig.source
18388
- });
18389
- loopNode.setCustomCode(customCode);
18390
- }
16758
+ const codeConfig = config;
16759
+ const customCode = customCode_default.createProtobufNode({
16760
+ lang: codeConfig.lang,
16761
+ source: codeConfig.source
16762
+ });
16763
+ loopNode.setCustomCode(customCode);
18391
16764
  break;
18392
16765
  }
18393
16766
  }
@@ -18403,15 +16776,15 @@ var LoopNode2 = class _LoopNode extends Node {
18403
16776
  }
18404
16777
  const loopOutput = outputData.getLoop();
18405
16778
  if (loopOutput) {
18406
- const loopObj = loopOutput.toObject();
18407
- if (loopObj.data && typeof loopObj.data === "string") {
16779
+ const dataValue = loopOutput.getData();
16780
+ if (dataValue) {
18408
16781
  try {
18409
- return JSON.parse(loopObj.data);
18410
- } catch {
18411
- return loopObj.data;
16782
+ return dataValue.toJavaScript();
16783
+ } catch (error) {
16784
+ console.warn("Failed to convert loop data from protobuf Value:", error);
16785
+ return null;
18412
16786
  }
18413
16787
  }
18414
- return loopObj;
18415
16788
  }
18416
16789
  return null;
18417
16790
  }
@@ -18677,7 +17050,7 @@ var Step = class _Step {
18677
17050
  this.error = props.error;
18678
17051
  this.log = props.log;
18679
17052
  this.inputsList = props.inputsList;
18680
- this.input = props.input;
17053
+ this.config = props.config;
18681
17054
  this.output = props.output;
18682
17055
  this.startAt = props.startAt;
18683
17056
  this.endAt = props.endAt;
@@ -18695,299 +17068,102 @@ var Step = class _Step {
18695
17068
  error: this.error,
18696
17069
  log: this.log,
18697
17070
  inputsList: this.inputsList,
18698
- input: this.input,
17071
+ config: this.config,
18699
17072
  output: this.output,
18700
17073
  startAt: this.startAt,
18701
17074
  endAt: this.endAt
18702
17075
  };
18703
17076
  }
18704
17077
  static getOutput(step) {
18705
- const getOutputDataCase = () => {
18706
- if (typeof step.getOutputDataCase === "function") {
18707
- return step.getOutputDataCase();
18708
- }
18709
- const stepObj = step;
18710
- if (stepObj.blockTrigger)
18711
- return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
18712
- if (stepObj.fixedTimeTrigger)
18713
- return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
18714
- if (stepObj.cronTrigger)
18715
- return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
18716
- if (stepObj.eventTrigger)
18717
- return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
18718
- if (stepObj.manualTrigger)
18719
- return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
18720
- if (stepObj.ethTransfer)
18721
- return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
18722
- if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
18723
- if (stepObj.contractRead)
18724
- return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
18725
- if (stepObj.contractWrite)
18726
- return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
18727
- if (stepObj.customCode)
18728
- return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
18729
- if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
18730
- if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
18731
- if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
18732
- if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
18733
- return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
18734
- };
18735
- switch (getOutputDataCase()) {
18736
- case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
18737
- return void 0;
18738
- // Trigger outputs
17078
+ const outputData = this.extractOutputData(step);
17079
+ if (!outputData) return null;
17080
+ if (typeof outputData.hasData === "function" && outputData.hasData()) {
17081
+ try {
17082
+ return convertProtobufValueToJs(outputData.getData());
17083
+ } catch (error) {
17084
+ console.warn("Failed to convert protobuf Value to JavaScript:", error);
17085
+ return outputData.getData();
17086
+ }
17087
+ } else if (outputData.data) {
17088
+ return typeof outputData.data.getKindCase === "function" ? convertProtobufValueToJs(outputData.data) : outputData.data;
17089
+ }
17090
+ return null;
17091
+ }
17092
+ static extractOutputData(step) {
17093
+ const outputCase = this.getOutputDataCase(step);
17094
+ switch (outputCase) {
18739
17095
  case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
18740
- const blockTrigger = typeof step.getBlockTrigger === "function" ? step.getBlockTrigger()?.toObject() : step.blockTrigger;
18741
- return { data: blockTrigger };
18742
- // ✅ Use standard structure
17096
+ return typeof step.getBlockTrigger === "function" ? step.getBlockTrigger() : step.blockTrigger;
18743
17097
  case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
18744
- const fixedTimeTrigger = typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger()?.toObject() : step.fixedTimeTrigger;
18745
- return { data: fixedTimeTrigger };
18746
- // ✅ Use standard structure
17098
+ return typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger() : step.fixedTimeTrigger;
18747
17099
  case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
18748
- const cronTrigger = typeof step.getCronTrigger === "function" ? step.getCronTrigger()?.toObject() : step.cronTrigger;
18749
- return { data: cronTrigger };
18750
- // ✅ Use standard structure
17100
+ return typeof step.getCronTrigger === "function" ? step.getCronTrigger() : step.cronTrigger;
18751
17101
  case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
18752
- const eventTrigger = typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
18753
- if (eventTrigger) {
18754
- if (typeof eventTrigger.hasData === "function" && eventTrigger.hasData()) {
18755
- try {
18756
- const eventData = convertProtobufValueToJs(
18757
- eventTrigger.getData()
18758
- );
18759
- return { data: eventData };
18760
- } catch (error) {
18761
- console.warn(
18762
- "Failed to convert event trigger data from protobuf Value:",
18763
- error
18764
- );
18765
- return { data: eventTrigger.getData() };
18766
- }
18767
- } else if (eventTrigger.data) {
18768
- const eventData = typeof eventTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(eventTrigger.data) : eventTrigger.data;
18769
- return { data: eventData };
18770
- }
18771
- if (typeof eventTrigger.hasEvmLog === "function" && eventTrigger.hasEvmLog()) {
18772
- return { data: eventTrigger.getEvmLog()?.toObject() };
18773
- } else if (typeof eventTrigger.hasTransferLog === "function" && eventTrigger.hasTransferLog()) {
18774
- return { data: eventTrigger.getTransferLog()?.toObject() };
18775
- } else if (eventTrigger.evmLog) {
18776
- return { data: eventTrigger.evmLog };
18777
- } else if (eventTrigger.transferLog) {
18778
- return { data: eventTrigger.transferLog };
18779
- }
18780
- }
18781
- return { data: null };
18782
- // ✅ Use standard structure
18783
- case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER: {
18784
- const manualTrigger = typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
18785
- if (manualTrigger) {
18786
- if (typeof manualTrigger.hasData === "function" && manualTrigger.hasData()) {
18787
- try {
18788
- return convertProtobufValueToJs(manualTrigger.getData());
18789
- } catch (error) {
18790
- console.warn(
18791
- "Failed to convert manual trigger data from protobuf Value:",
18792
- error
18793
- );
18794
- return manualTrigger.getData();
18795
- }
18796
- } else if (manualTrigger.data) {
18797
- return typeof manualTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(manualTrigger.data) : manualTrigger.data;
18798
- }
18799
- }
18800
- return null;
18801
- }
18802
- // Node outputs - RESTORE MISSING CASES
17102
+ return typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
17103
+ case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
17104
+ return typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
18803
17105
  case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
18804
- return typeof step.getEthTransfer === "function" ? step.getEthTransfer()?.toObject() : step.ethTransfer;
18805
- case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE: {
18806
- const customCodeOutput = typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
18807
- if (customCodeOutput) {
18808
- if (typeof customCodeOutput.hasData === "function" && customCodeOutput.hasData()) {
18809
- try {
18810
- return convertProtobufValueToJs(customCodeOutput.getData());
18811
- } catch {
18812
- return customCodeOutput.getData();
18813
- }
18814
- } else if (customCodeOutput.data) {
18815
- return typeof customCodeOutput.data.getKindCase === "function" ? convertProtobufValueToJs(customCodeOutput.data) : customCodeOutput.data;
18816
- }
18817
- }
18818
- return void 0;
18819
- }
18820
- case avs_pb20.Execution.Step.OutputDataCase.REST_API: {
18821
- const restApiOutput = typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
18822
- if (restApiOutput) {
18823
- if (typeof restApiOutput.hasData === "function" && restApiOutput.hasData()) {
18824
- try {
18825
- return convertProtobufValueToJs(restApiOutput.getData());
18826
- } catch {
18827
- return restApiOutput.getData();
18828
- }
18829
- } else if (restApiOutput.data) {
18830
- return typeof restApiOutput.data.getKindCase === "function" ? convertProtobufValueToJs(restApiOutput.data) : restApiOutput.data;
18831
- }
18832
- }
18833
- return void 0;
18834
- }
17106
+ return typeof step.getEthTransfer === "function" ? step.getEthTransfer() : step.ethTransfer;
17107
+ case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
17108
+ return typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
17109
+ case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
17110
+ return typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
17111
+ case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
17112
+ return typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
17113
+ case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
17114
+ return typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
17115
+ case avs_pb20.Execution.Step.OutputDataCase.REST_API:
17116
+ return typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
18835
17117
  case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
18836
- return typeof step.getBranch === "function" ? step.getBranch()?.toObject() : step.branch;
18837
- case avs_pb20.Execution.Step.OutputDataCase.LOOP: {
18838
- const loopOutput = typeof step.getLoop === "function" ? step.getLoop() : step.loop;
18839
- if (loopOutput) {
18840
- if (typeof loopOutput.getData === "function" && loopOutput.getData()) {
18841
- try {
18842
- return JSON.parse(loopOutput.getData());
18843
- } catch {
18844
- return loopOutput.getData();
18845
- }
18846
- } else if (loopOutput.data) {
18847
- try {
18848
- return typeof loopOutput.data === "string" ? JSON.parse(loopOutput.data) : loopOutput.data;
18849
- } catch {
18850
- return loopOutput.data;
18851
- }
18852
- }
18853
- }
18854
- return void 0;
18855
- }
18856
- case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL: {
18857
- const graphqlOutput = typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
18858
- if (graphqlOutput) {
18859
- try {
18860
- return typeof graphqlOutput.toObject === "function" ? graphqlOutput.toObject() : graphqlOutput;
18861
- } catch {
18862
- return void 0;
18863
- }
18864
- }
18865
- return void 0;
18866
- }
18867
- case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ: {
18868
- const contractReadOutput = typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
18869
- if (contractReadOutput) {
18870
- if (typeof contractReadOutput.hasData === "function" && contractReadOutput.hasData()) {
18871
- try {
18872
- const data = convertProtobufValueToJs(
18873
- contractReadOutput.getData()
18874
- );
18875
- if (Array.isArray(data)) {
18876
- return data;
18877
- } else {
18878
- return [data];
18879
- }
18880
- } catch (error) {
18881
- console.warn(
18882
- "Failed to convert contract read data from protobuf Value:",
18883
- error
18884
- );
18885
- return contractReadOutput.getData();
18886
- }
18887
- } else if (contractReadOutput.data) {
18888
- const data = typeof contractReadOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractReadOutput.data) : contractReadOutput.data;
18889
- if (Array.isArray(data)) {
18890
- return data;
18891
- } else {
18892
- return [data];
18893
- }
18894
- }
18895
- const outputObj = typeof contractReadOutput.toObject === "function" ? contractReadOutput.toObject() : contractReadOutput;
18896
- if (outputObj && outputObj.resultsList) {
18897
- return outputObj.resultsList.map((result) => ({
18898
- methodName: result.methodName,
18899
- success: result.success,
18900
- error: result.error,
18901
- data: result.dataList || []
18902
- }));
18903
- }
18904
- return outputObj;
18905
- }
18906
- return void 0;
18907
- }
18908
- case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE: {
18909
- const contractWriteOutput = typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
18910
- if (contractWriteOutput) {
18911
- if (typeof contractWriteOutput.hasData === "function" && contractWriteOutput.hasData()) {
18912
- try {
18913
- const data = convertProtobufValueToJs(
18914
- contractWriteOutput.getData()
18915
- );
18916
- if (Array.isArray(data)) {
18917
- return data;
18918
- } else {
18919
- return [data];
18920
- }
18921
- } catch (error) {
18922
- console.warn(
18923
- "Failed to convert contract write data from protobuf Value:",
18924
- error
18925
- );
18926
- return contractWriteOutput.getData();
18927
- }
18928
- } else if (contractWriteOutput.data) {
18929
- const data = typeof contractWriteOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractWriteOutput.data) : contractWriteOutput.data;
18930
- if (Array.isArray(data)) {
18931
- return data;
18932
- } else {
18933
- return [data];
18934
- }
18935
- }
18936
- const outputObj = typeof contractWriteOutput.toObject === "function" ? contractWriteOutput.toObject() : contractWriteOutput;
18937
- if (outputObj && outputObj.resultsList) {
18938
- return outputObj.resultsList.map((result) => ({
18939
- methodName: result.methodName,
18940
- success: result.success,
18941
- error: result.error,
18942
- transaction: result.transaction,
18943
- events: result.eventsList || [],
18944
- returnData: result.returnData,
18945
- inputData: result.inputData
18946
- }));
18947
- }
18948
- return outputObj;
18949
- }
18950
- return void 0;
18951
- }
18952
- case avs_pb20.Execution.Step.OutputDataCase.FILTER: {
18953
- const filterOutput = typeof step.getFilter === "function" ? step.getFilter() : step.filter;
18954
- if (filterOutput) {
18955
- try {
18956
- return typeof filterOutput.toObject === "function" ? filterOutput.toObject() : filterOutput;
18957
- } catch {
18958
- return void 0;
18959
- }
18960
- }
18961
- return void 0;
18962
- }
17118
+ return typeof step.getBranch === "function" ? step.getBranch() : step.branch;
17119
+ case avs_pb20.Execution.Step.OutputDataCase.FILTER:
17120
+ return typeof step.getFilter === "function" ? step.getFilter() : step.filter;
17121
+ case avs_pb20.Execution.Step.OutputDataCase.LOOP:
17122
+ return typeof step.getLoop === "function" ? step.getLoop() : step.loop;
18963
17123
  default:
18964
- console.warn(
18965
- `Unhandled output data type in Step.getOutput: ${step.getOutputDataCase()}`
18966
- );
18967
- return void 0;
17124
+ return null;
18968
17125
  }
18969
17126
  }
17127
+ static getOutputDataCase(step) {
17128
+ if (typeof step.getOutputDataCase === "function") {
17129
+ return step.getOutputDataCase();
17130
+ }
17131
+ const stepObj = step;
17132
+ if (stepObj.blockTrigger)
17133
+ return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
17134
+ if (stepObj.fixedTimeTrigger)
17135
+ return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
17136
+ if (stepObj.cronTrigger)
17137
+ return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
17138
+ if (stepObj.eventTrigger)
17139
+ return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
17140
+ if (stepObj.manualTrigger)
17141
+ return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
17142
+ if (stepObj.ethTransfer)
17143
+ return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
17144
+ if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
17145
+ if (stepObj.contractRead)
17146
+ return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
17147
+ if (stepObj.contractWrite)
17148
+ return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
17149
+ if (stepObj.customCode)
17150
+ return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
17151
+ if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
17152
+ if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
17153
+ if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
17154
+ if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
17155
+ return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
17156
+ }
18970
17157
  static fromResponse(step) {
18971
- let inputData = void 0;
18972
- if (typeof step.hasInput === "function" && step.hasInput()) {
18973
- const inputValue = step.getInput();
18974
- if (inputValue) {
17158
+ let configData = void 0;
17159
+ if (typeof step.hasConfig === "function" && step.hasConfig()) {
17160
+ const configValue = step.getConfig();
17161
+ if (configValue) {
18975
17162
  try {
18976
- inputData = convertProtobufValueToJs(inputValue);
17163
+ configData = convertProtobufValueToJs(configValue);
18977
17164
  } catch (error) {
18978
17165
  console.warn("Failed to convert protobuf input value:", error);
18979
- inputData = inputValue;
18980
- }
18981
- }
18982
- } else if (step.input) {
18983
- const inputValue = step.input;
18984
- if (typeof inputValue === "object" && !inputValue.getKindCase) {
18985
- inputData = inputValue;
18986
- } else {
18987
- try {
18988
- inputData = convertProtobufValueToJs(inputValue);
18989
- } catch (error) {
18990
- inputData = inputValue;
17166
+ configData = configValue;
18991
17167
  }
18992
17168
  }
18993
17169
  }
@@ -19008,7 +17184,7 @@ var Step = class _Step {
19008
17184
  error: getError(),
19009
17185
  log: getLog(),
19010
17186
  inputsList: getInputsList(),
19011
- input: inputData,
17187
+ config: configData,
19012
17188
  output: _Step.getOutput(step),
19013
17189
  startAt: getStartAt(),
19014
17190
  endAt: getEndAt()
@@ -19096,6 +17272,7 @@ import {
19096
17272
  DEFAULT_LIMIT,
19097
17273
  TimeoutPresets
19098
17274
  } from "@avaprotocol/types";
17275
+ import * as google_protobuf_struct_pb from "google-protobuf/google/protobuf/struct_pb";
19099
17276
  import {
19100
17277
  TimeoutPresets as TimeoutPresets2
19101
17278
  } from "@avaprotocol/types";
@@ -19628,30 +17805,43 @@ var Client = class extends BaseClient {
19628
17805
  switch (triggerData.type) {
19629
17806
  case TriggerType13.FixedTime: {
19630
17807
  const fixedTimeOutput = new avs_pb22.FixedTimeTrigger.Output();
19631
- fixedTimeOutput.setTimestamp(triggerData.timestamp);
19632
- fixedTimeOutput.setTimestampIso(triggerData.timestampIso);
17808
+ const triggerOutputData = {
17809
+ timestamp: triggerData.timestamp,
17810
+ timestampIso: triggerData.timestampIso
17811
+ };
17812
+ const dataValue = new google_protobuf_struct_pb.Value();
17813
+ dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
17814
+ fixedTimeOutput.setData(dataValue);
19633
17815
  request.setFixedTimeTrigger(fixedTimeOutput);
19634
17816
  break;
19635
17817
  }
19636
17818
  case TriggerType13.Cron: {
19637
17819
  const cronOutput = new avs_pb22.CronTrigger.Output();
19638
- cronOutput.setTimestamp(triggerData.timestamp);
19639
- cronOutput.setTimestampIso(triggerData.timestampIso);
17820
+ const triggerOutputData = {
17821
+ timestamp: triggerData.timestamp,
17822
+ timestampIso: triggerData.timestampIso
17823
+ };
17824
+ const dataValue = new google_protobuf_struct_pb.Value();
17825
+ dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
17826
+ cronOutput.setData(dataValue);
19640
17827
  request.setCronTrigger(cronOutput);
19641
17828
  break;
19642
17829
  }
19643
17830
  case TriggerType13.Block: {
19644
17831
  const blockData = triggerData;
19645
17832
  const blockOutput = new avs_pb22.BlockTrigger.Output();
19646
- blockOutput.setBlockNumber(blockData.blockNumber);
19647
- if (blockData.blockHash) blockOutput.setBlockHash(blockData.blockHash);
19648
- if (blockData.timestamp) blockOutput.setTimestamp(blockData.timestamp);
19649
- if (blockData.parentHash)
19650
- blockOutput.setParentHash(blockData.parentHash);
19651
- if (blockData.difficulty)
19652
- blockOutput.setDifficulty(blockData.difficulty);
19653
- if (blockData.gasLimit) blockOutput.setGasLimit(blockData.gasLimit);
19654
- if (blockData.gasUsed) blockOutput.setGasUsed(blockData.gasUsed);
17833
+ const triggerOutputData = {
17834
+ blockNumber: blockData.blockNumber,
17835
+ blockHash: blockData.blockHash || "",
17836
+ timestamp: blockData.timestamp || 0,
17837
+ parentHash: blockData.parentHash || "",
17838
+ difficulty: blockData.difficulty || "",
17839
+ gasLimit: blockData.gasLimit || 0,
17840
+ gasUsed: blockData.gasUsed || 0
17841
+ };
17842
+ const dataValue = new google_protobuf_struct_pb.Value();
17843
+ dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
17844
+ blockOutput.setData(dataValue);
19655
17845
  request.setBlockTrigger(blockOutput);
19656
17846
  break;
19657
17847
  }
@@ -19672,18 +17862,6 @@ var Client = class extends BaseClient {
19672
17862
  const protobufValue = convertJSValueToProtobuf(manualData.data);
19673
17863
  manualOutput.setData(protobufValue);
19674
17864
  }
19675
- if (manualData.headers) {
19676
- const headersMap = manualOutput.getHeadersMap();
19677
- Object.entries(manualData.headers).forEach(([key, value]) => {
19678
- headersMap.set(key, value);
19679
- });
19680
- }
19681
- if (manualData.pathParams) {
19682
- const pathParamsMap = manualOutput.getPathparamsMap();
19683
- Object.entries(manualData.pathParams).forEach(([key, value]) => {
19684
- pathParamsMap.set(key, value);
19685
- });
19686
- }
19687
17865
  request.setManualTrigger(manualOutput);
19688
17866
  break;
19689
17867
  }
@@ -19950,23 +18128,14 @@ var Client = class extends BaseClient {
19950
18128
  let metadata = void 0;
19951
18129
  const metadataValue = result.getMetadata();
19952
18130
  if (metadataValue) {
19953
- if (typeof metadataValue === "string") {
19954
- try {
19955
- metadata = JSON.parse(metadataValue);
19956
- } catch (parseError) {
19957
- console.warn("Failed to parse metadata as JSON:", parseError);
19958
- metadata = metadataValue;
19959
- }
19960
- } else {
19961
- try {
19962
- metadata = convertProtobufValueToJs(metadataValue);
19963
- } catch (error) {
19964
- console.warn(
19965
- "Failed to convert metadata from protobuf Value:",
19966
- error
19967
- );
19968
- metadata = metadataValue;
19969
- }
18131
+ try {
18132
+ metadata = convertProtobufValueToJs(metadataValue);
18133
+ } catch (error) {
18134
+ console.warn(
18135
+ "Failed to convert metadata from protobuf Value:",
18136
+ error
18137
+ );
18138
+ metadata = metadataValue;
19970
18139
  }
19971
18140
  }
19972
18141
  return {