@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.
- package/CHANGELOG.md +19 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +774 -2617
- package/dist/index.mjs +788 -2619
- package/dist/models/node/branch.d.ts.map +1 -1
- package/dist/models/node/branch.js +2 -11
- package/dist/models/node/contractRead.d.ts +1 -0
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +5 -14
- package/dist/models/node/contractWrite.d.ts +2 -1
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +4 -14
- package/dist/models/node/customCode.d.ts.map +1 -1
- package/dist/models/node/customCode.js +1 -14
- package/dist/models/node/ethTransfer.d.ts.map +1 -1
- package/dist/models/node/ethTransfer.js +6 -11
- package/dist/models/node/filter.d.ts.map +1 -1
- package/dist/models/node/filter.js +20 -18
- package/dist/models/node/graphqlQuery.d.ts.map +1 -1
- package/dist/models/node/graphqlQuery.js +5 -11
- package/dist/models/node/interface.d.ts +0 -1
- package/dist/models/node/interface.d.ts.map +1 -1
- package/dist/models/node/interface.js +0 -8
- package/dist/models/node/loop.d.ts.map +1 -1
- package/dist/models/node/loop.js +58 -85
- package/dist/models/node/restApi.d.ts.map +1 -1
- package/dist/models/node/restApi.js +1 -15
- package/dist/models/step.d.ts +3 -1
- package/dist/models/step.d.ts.map +1 -1
- package/dist/models/step.js +104 -365
- package/dist/models/trigger/block.d.ts.map +1 -1
- package/dist/models/trigger/block.js +18 -20
- package/dist/models/trigger/cron.d.ts.map +1 -1
- package/dist/models/trigger/cron.js +9 -28
- package/dist/models/trigger/event.d.ts.map +1 -1
- package/dist/models/trigger/event.js +1 -12
- package/dist/models/trigger/fixedTime.d.ts.map +1 -1
- package/dist/models/trigger/fixedTime.js +9 -20
- package/dist/models/trigger/interface.d.ts +1 -1
- package/dist/models/trigger/interface.d.ts.map +1 -1
- package/dist/models/trigger/interface.js +7 -2
- package/dist/models/trigger/manual.d.ts +0 -3
- package/dist/models/trigger/manual.d.ts.map +1 -1
- package/dist/models/trigger/manual.js +33 -44
- package/package.json +2 -2
package/dist/index.js
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,
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
1506
|
-
|
|
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.
|
|
1532
|
-
if (f
|
|
1533
|
-
writer.
|
|
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.
|
|
1484
|
+
proto.aggregator.FixedTimeTrigger.Output.prototype.getData = function() {
|
|
1547
1485
|
return (
|
|
1548
|
-
/** @type
|
|
1549
|
-
jspb.Message.
|
|
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.
|
|
1553
|
-
return jspb.Message.
|
|
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.
|
|
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.
|
|
1562
|
-
return jspb.Message.
|
|
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
|
-
|
|
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
|
-
|
|
1763
|
-
|
|
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.
|
|
1789
|
-
if (f
|
|
1790
|
-
writer.
|
|
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.
|
|
1693
|
+
proto.aggregator.CronTrigger.Output.prototype.getData = function() {
|
|
1804
1694
|
return (
|
|
1805
|
-
/** @type
|
|
1806
|
-
jspb.Message.
|
|
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.
|
|
1810
|
-
return jspb.Message.
|
|
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.
|
|
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.
|
|
1819
|
-
return jspb.Message.
|
|
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
|
-
|
|
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
|
-
|
|
2018
|
-
|
|
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.
|
|
2079
|
-
if (f
|
|
2080
|
-
writer.
|
|
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.
|
|
1895
|
+
proto.aggregator.BlockTrigger.Output.prototype.getData = function() {
|
|
2129
1896
|
return (
|
|
2130
|
-
/** @type
|
|
2131
|
-
jspb.Message.
|
|
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.
|
|
2135
|
-
return jspb.Message.
|
|
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.
|
|
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.
|
|
2144
|
-
return jspb.Message.
|
|
1907
|
+
proto.aggregator.BlockTrigger.Output.prototype.hasData = function() {
|
|
1908
|
+
return jspb.Message.getField(this, 1) != null;
|
|
2145
1909
|
};
|
|
2146
|
-
proto.aggregator.BlockTrigger.
|
|
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
|
-
|
|
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
|
-
|
|
3703
|
-
|
|
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.
|
|
3722
|
-
if (f
|
|
3723
|
-
writer.
|
|
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.
|
|
3279
|
+
proto.aggregator.ETHTransferNode.Output.prototype.getData = function() {
|
|
3730
3280
|
return (
|
|
3731
|
-
/** @type
|
|
3732
|
-
jspb.Message.
|
|
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.
|
|
3736
|
-
return jspb.Message.
|
|
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
|
-
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
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.
|
|
3753
|
+
msg.setError(value);
|
|
4216
3754
|
break;
|
|
4217
|
-
|
|
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.
|
|
4239
|
-
if (f) {
|
|
4240
|
-
writer.
|
|
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.
|
|
4246
|
-
if (f
|
|
4247
|
-
writer.
|
|
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.
|
|
3808
|
+
f = message.getError();
|
|
4254
3809
|
if (f.length > 0) {
|
|
4255
|
-
writer.
|
|
3810
|
+
writer.writeString(
|
|
4256
3811
|
4,
|
|
4257
|
-
f
|
|
4258
|
-
proto.aggregator.ContractWriteNode.EventData.serializeBinaryToWriter
|
|
3812
|
+
f
|
|
4259
3813
|
);
|
|
4260
3814
|
}
|
|
4261
|
-
f = message.
|
|
3815
|
+
f = message.getReceipt();
|
|
4262
3816
|
if (f != null) {
|
|
4263
3817
|
writer.writeMessage(
|
|
4264
3818
|
5,
|
|
4265
3819
|
f,
|
|
4266
|
-
|
|
3820
|
+
google_protobuf_struct_pb2.Value.serializeBinaryToWriter
|
|
4267
3821
|
);
|
|
4268
3822
|
}
|
|
4269
|
-
f =
|
|
3823
|
+
f = /** @type {number} */
|
|
3824
|
+
jspb.Message.getField(message, 6);
|
|
4270
3825
|
if (f != null) {
|
|
4271
|
-
writer.
|
|
3826
|
+
writer.writeUint64(
|
|
4272
3827
|
6,
|
|
4273
|
-
f
|
|
4274
|
-
proto.aggregator.ContractWriteNode.ReturnData.serializeBinaryToWriter
|
|
3828
|
+
f
|
|
4275
3829
|
);
|
|
4276
3830
|
}
|
|
4277
|
-
f = message.
|
|
4278
|
-
if (f
|
|
4279
|
-
writer.
|
|
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,948 +3846,83 @@ 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.
|
|
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.
|
|
4306
|
-
jspb.Message.getWrapperField(this,
|
|
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.
|
|
4310
|
-
return jspb.Message.setWrapperField(this,
|
|
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.
|
|
4313
|
-
return this.
|
|
3858
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearMethodAbi = function() {
|
|
3859
|
+
return this.setMethodAbi(void 0);
|
|
4314
3860
|
};
|
|
4315
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.
|
|
4316
|
-
return jspb.Message.getField(this,
|
|
3861
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasMethodAbi = function() {
|
|
3862
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4317
3863
|
};
|
|
4318
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.
|
|
3864
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getSuccess = function() {
|
|
4319
3865
|
return (
|
|
4320
|
-
/** @type{
|
|
4321
|
-
jspb.Message.
|
|
3866
|
+
/** @type {boolean} */
|
|
3867
|
+
jspb.Message.getBooleanFieldWithDefault(this, 3, false)
|
|
4322
3868
|
);
|
|
4323
3869
|
};
|
|
4324
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.
|
|
4325
|
-
return jspb.Message.
|
|
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{
|
|
4336
|
-
jspb.Message.
|
|
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.
|
|
4343
|
-
return this.
|
|
3891
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearReceipt = function() {
|
|
3892
|
+
return this.setReceipt(void 0);
|
|
4344
3893
|
};
|
|
4345
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.
|
|
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.
|
|
3897
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getBlockNumber = function() {
|
|
4349
3898
|
return (
|
|
4350
|
-
/** @type{
|
|
4351
|
-
jspb.Message.
|
|
3899
|
+
/** @type {number} */
|
|
3900
|
+
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
4352
3901
|
);
|
|
4353
3902
|
};
|
|
4354
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.
|
|
4355
|
-
return jspb.Message.
|
|
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.
|
|
4358
|
-
return
|
|
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.
|
|
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.
|
|
3912
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getValue = function() {
|
|
4364
3913
|
return (
|
|
4365
|
-
/** @type
|
|
4366
|
-
jspb.Message.
|
|
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.
|
|
4370
|
-
return jspb.Message.
|
|
4371
|
-
};
|
|
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);
|
|
4407
|
-
};
|
|
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;
|
|
4547
|
-
};
|
|
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
|
-
);
|
|
3918
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setValue = function(value) {
|
|
3919
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
5233
3920
|
};
|
|
5234
|
-
proto.aggregator.ContractWriteNode.
|
|
5235
|
-
return
|
|
3921
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearValue = function() {
|
|
3922
|
+
return this.setValue(void 0);
|
|
3923
|
+
};
|
|
3924
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasValue = function() {
|
|
3925
|
+
return jspb.Message.getField(this, 7) != null;
|
|
5236
3926
|
};
|
|
5237
3927
|
proto.aggregator.ContractWriteNode.prototype.getConfig = function() {
|
|
5238
3928
|
return (
|
|
@@ -5249,29 +3939,13 @@ var require_avs_pb = __commonJS({
|
|
|
5249
3939
|
proto.aggregator.ContractWriteNode.prototype.hasConfig = function() {
|
|
5250
3940
|
return jspb.Message.getField(this, 1) != null;
|
|
5251
3941
|
};
|
|
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;
|
|
5266
|
-
};
|
|
5267
3942
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
5268
3943
|
proto.aggregator.ContractReadNode.prototype.toObject = function(opt_includeInstance) {
|
|
5269
3944
|
return proto.aggregator.ContractReadNode.toObject(opt_includeInstance, this);
|
|
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()) &&
|
|
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
|
|
6143
|
-
reader.readMessage(value,
|
|
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
|
-
|
|
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.
|
|
6172
|
-
jspb.Message.getWrapperField(this,
|
|
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
|
-
|
|
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
|
-
|
|
7057
|
-
|
|
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.
|
|
7076
|
-
if (f
|
|
7077
|
-
writer.
|
|
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.
|
|
5657
|
+
proto.aggregator.BranchNode.Output.prototype.getData = function() {
|
|
7084
5658
|
return (
|
|
7085
|
-
/** @type
|
|
7086
|
-
jspb.Message.
|
|
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.
|
|
7090
|
-
return jspb.Message.
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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()) &&
|
|
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
|
|
7306
|
-
reader.readMessage(value,
|
|
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
|
-
|
|
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.
|
|
7335
|
-
jspb.Message.getWrapperField(this,
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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:
|
|
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
|
-
|
|
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
|
|
7730
|
-
writer.
|
|
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
|
|
7739
|
-
jspb.Message.
|
|
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.
|
|
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;
|
|
@@ -8198,23 +6704,15 @@ var require_avs_pb = __commonJS({
|
|
|
8198
6704
|
writer.writeMessage(
|
|
8199
6705
|
17,
|
|
8200
6706
|
f,
|
|
8201
|
-
proto.aggregator.LoopNode.serializeBinaryToWriter
|
|
8202
|
-
);
|
|
8203
|
-
}
|
|
8204
|
-
f = message.getCustomCode();
|
|
8205
|
-
if (f != null) {
|
|
8206
|
-
writer.writeMessage(
|
|
8207
|
-
18,
|
|
8208
|
-
f,
|
|
8209
|
-
proto.aggregator.CustomCodeNode.serializeBinaryToWriter
|
|
6707
|
+
proto.aggregator.LoopNode.serializeBinaryToWriter
|
|
8210
6708
|
);
|
|
8211
6709
|
}
|
|
8212
|
-
f = message.
|
|
6710
|
+
f = message.getCustomCode();
|
|
8213
6711
|
if (f != null) {
|
|
8214
6712
|
writer.writeMessage(
|
|
8215
|
-
|
|
6713
|
+
18,
|
|
8216
6714
|
f,
|
|
8217
|
-
|
|
6715
|
+
proto.aggregator.CustomCodeNode.serializeBinaryToWriter
|
|
8218
6716
|
);
|
|
8219
6717
|
}
|
|
8220
6718
|
};
|
|
@@ -8380,21 +6878,6 @@ var require_avs_pb = __commonJS({
|
|
|
8380
6878
|
proto.aggregator.TaskNode.prototype.hasCustomCode = function() {
|
|
8381
6879
|
return jspb.Message.getField(this, 18) != null;
|
|
8382
6880
|
};
|
|
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);
|
|
8391
|
-
};
|
|
8392
|
-
proto.aggregator.TaskNode.prototype.clearInput = function() {
|
|
8393
|
-
return this.setInput(void 0);
|
|
8394
|
-
};
|
|
8395
|
-
proto.aggregator.TaskNode.prototype.hasInput = function() {
|
|
8396
|
-
return jspb.Message.getField(this, 19) != null;
|
|
8397
|
-
};
|
|
8398
6881
|
proto.aggregator.Execution.repeatedFields_ = [8];
|
|
8399
6882
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8400
6883
|
proto.aggregator.Execution.prototype.toObject = function(opt_includeInstance) {
|
|
@@ -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
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
9021
|
-
return this.
|
|
7503
|
+
proto.aggregator.Execution.Step.prototype.clearConfig = function() {
|
|
7504
|
+
return this.setConfig(void 0);
|
|
9022
7505
|
};
|
|
9023
|
-
proto.aggregator.Execution.Step.prototype.
|
|
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() {
|
|
@@ -16823,11 +15306,17 @@ var Trigger = class {
|
|
|
16823
15306
|
this.type = props.type;
|
|
16824
15307
|
this.data = props.data;
|
|
16825
15308
|
this.output = props.output;
|
|
16826
|
-
this.input = props.input;
|
|
16827
15309
|
}
|
|
16828
15310
|
toRequest() {
|
|
16829
15311
|
throw new Error("Method not implemented.");
|
|
16830
15312
|
}
|
|
15313
|
+
static fromResponse(raw) {
|
|
15314
|
+
const obj = raw.toObject();
|
|
15315
|
+
return new this({
|
|
15316
|
+
// eslint-disable-line @typescript-eslint/no-explicit-any
|
|
15317
|
+
...obj
|
|
15318
|
+
});
|
|
15319
|
+
}
|
|
16831
15320
|
getOutput() {
|
|
16832
15321
|
return this.output;
|
|
16833
15322
|
}
|
|
@@ -16837,18 +15326,161 @@ var Trigger = class {
|
|
|
16837
15326
|
name: this.name,
|
|
16838
15327
|
type: this.type,
|
|
16839
15328
|
data: this.data,
|
|
16840
|
-
output: this.output
|
|
16841
|
-
input: this.input
|
|
15329
|
+
output: this.output
|
|
16842
15330
|
};
|
|
16843
15331
|
}
|
|
16844
15332
|
};
|
|
16845
15333
|
|
|
16846
15334
|
// src/models/trigger/block.ts
|
|
15335
|
+
var import_types = require("@avaprotocol/types");
|
|
15336
|
+
var BlockTrigger2 = class _BlockTrigger extends Trigger {
|
|
15337
|
+
constructor(props) {
|
|
15338
|
+
super({ ...props, type: import_types.TriggerType.Block, data: props.data });
|
|
15339
|
+
}
|
|
15340
|
+
toRequest() {
|
|
15341
|
+
const request = new avs_pb2.TaskTrigger();
|
|
15342
|
+
request.setName(this.name);
|
|
15343
|
+
request.setId(this.id);
|
|
15344
|
+
request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
15345
|
+
if (!this.data) {
|
|
15346
|
+
throw new Error(`Trigger data is missing for block`);
|
|
15347
|
+
}
|
|
15348
|
+
const blockData = this.data;
|
|
15349
|
+
if (blockData.interval === null || blockData.interval === void 0) {
|
|
15350
|
+
throw new Error("Interval is required for block trigger");
|
|
15351
|
+
}
|
|
15352
|
+
if (!Number.isInteger(blockData.interval)) {
|
|
15353
|
+
throw new Error(`BlockTrigger interval must be an integer, got: ${blockData.interval}`);
|
|
15354
|
+
}
|
|
15355
|
+
if (blockData.interval <= 0) {
|
|
15356
|
+
throw new Error(`Interval must be greater than 0`);
|
|
15357
|
+
}
|
|
15358
|
+
const trigger = new avs_pb2.BlockTrigger();
|
|
15359
|
+
const config = new avs_pb2.BlockTrigger.Config();
|
|
15360
|
+
config.setInterval(blockData.interval);
|
|
15361
|
+
trigger.setConfig(config);
|
|
15362
|
+
request.setBlock(trigger);
|
|
15363
|
+
return request;
|
|
15364
|
+
}
|
|
15365
|
+
static fromResponse(raw) {
|
|
15366
|
+
const obj = raw.toObject();
|
|
15367
|
+
let data = { interval: 0 };
|
|
15368
|
+
if (raw.getBlock() && raw.getBlock().hasConfig()) {
|
|
15369
|
+
const config = raw.getBlock().getConfig();
|
|
15370
|
+
if (config) {
|
|
15371
|
+
data = {
|
|
15372
|
+
interval: config.getInterval() || 0
|
|
15373
|
+
};
|
|
15374
|
+
}
|
|
15375
|
+
}
|
|
15376
|
+
return new _BlockTrigger({
|
|
15377
|
+
...obj,
|
|
15378
|
+
type: import_types.TriggerType.Block,
|
|
15379
|
+
data
|
|
15380
|
+
});
|
|
15381
|
+
}
|
|
15382
|
+
/**
|
|
15383
|
+
* Convert raw data from runNodeWithInputs response to BlockOutput format
|
|
15384
|
+
* @param rawData - The raw data from the gRPC response
|
|
15385
|
+
* @returns {BlockTriggerOutput | undefined} - The converted data
|
|
15386
|
+
*/
|
|
15387
|
+
getOutput() {
|
|
15388
|
+
return this.output;
|
|
15389
|
+
}
|
|
15390
|
+
/**
|
|
15391
|
+
* Extract output data from RunTriggerResp for block triggers
|
|
15392
|
+
* @param outputData - The RunTriggerResp containing block trigger output
|
|
15393
|
+
* @returns Plain JavaScript object with block trigger data
|
|
15394
|
+
*/
|
|
15395
|
+
static fromOutputData(outputData) {
|
|
15396
|
+
const blockOutput = outputData.getBlockTrigger();
|
|
15397
|
+
if (!blockOutput) return null;
|
|
15398
|
+
const dataValue = blockOutput.getData();
|
|
15399
|
+
if (!dataValue) return null;
|
|
15400
|
+
const result = dataValue.toJavaScript();
|
|
15401
|
+
return result;
|
|
15402
|
+
}
|
|
15403
|
+
};
|
|
15404
|
+
var block_default = BlockTrigger2;
|
|
15405
|
+
|
|
15406
|
+
// src/models/trigger/cron.ts
|
|
15407
|
+
var avs_pb3 = __toESM(require_avs_pb());
|
|
16847
15408
|
var import_types2 = require("@avaprotocol/types");
|
|
15409
|
+
var CronTrigger2 = class _CronTrigger extends Trigger {
|
|
15410
|
+
constructor(props) {
|
|
15411
|
+
super({ ...props, type: import_types2.TriggerType.Cron, data: props.data });
|
|
15412
|
+
}
|
|
15413
|
+
toRequest() {
|
|
15414
|
+
const request = new avs_pb3.TaskTrigger();
|
|
15415
|
+
request.setName(this.name);
|
|
15416
|
+
request.setId(this.id);
|
|
15417
|
+
request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
|
|
15418
|
+
if (!this.data) {
|
|
15419
|
+
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
15420
|
+
}
|
|
15421
|
+
const cronData = this.data;
|
|
15422
|
+
if (cronData.schedules === null || cronData.schedules === void 0) {
|
|
15423
|
+
throw new Error("Schedules are required for cron trigger");
|
|
15424
|
+
}
|
|
15425
|
+
if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
|
|
15426
|
+
throw new Error("Schedules are required for cron trigger");
|
|
15427
|
+
}
|
|
15428
|
+
const trigger = new avs_pb3.CronTrigger();
|
|
15429
|
+
const config = new avs_pb3.CronTrigger.Config();
|
|
15430
|
+
config.setSchedulesList(cronData.schedules);
|
|
15431
|
+
trigger.setConfig(config);
|
|
15432
|
+
request.setCron(trigger);
|
|
15433
|
+
return request;
|
|
15434
|
+
}
|
|
15435
|
+
static fromResponse(raw) {
|
|
15436
|
+
const obj = raw.toObject();
|
|
15437
|
+
let data = { schedules: [] };
|
|
15438
|
+
if (raw.getCron() && raw.getCron().hasConfig()) {
|
|
15439
|
+
const config = raw.getCron().getConfig();
|
|
15440
|
+
if (config) {
|
|
15441
|
+
data = {
|
|
15442
|
+
schedules: config.getSchedulesList() || []
|
|
15443
|
+
};
|
|
15444
|
+
}
|
|
15445
|
+
}
|
|
15446
|
+
return new _CronTrigger({
|
|
15447
|
+
...obj,
|
|
15448
|
+
type: import_types2.TriggerType.Cron,
|
|
15449
|
+
data
|
|
15450
|
+
});
|
|
15451
|
+
}
|
|
15452
|
+
/**
|
|
15453
|
+
* Convert raw data from runTrigger response to CronOutput format
|
|
15454
|
+
* @param rawData - The raw data from the gRPC response
|
|
15455
|
+
* @returns {CronTriggerOutput | undefined} - The converted data
|
|
15456
|
+
*/
|
|
15457
|
+
getOutput() {
|
|
15458
|
+
return this.output;
|
|
15459
|
+
}
|
|
15460
|
+
/**
|
|
15461
|
+
* Extract output data from RunTriggerResp for cron triggers
|
|
15462
|
+
* Updated to handle timestamp and timestamp_iso instead of epoch
|
|
15463
|
+
* @param outputData - The RunTriggerResp containing cron trigger output
|
|
15464
|
+
* @returns Plain JavaScript object with cron trigger data
|
|
15465
|
+
*/
|
|
15466
|
+
static fromOutputData(outputData) {
|
|
15467
|
+
const cronOutput = outputData.getCronTrigger();
|
|
15468
|
+
if (!cronOutput) return null;
|
|
15469
|
+
const dataValue = cronOutput.getData();
|
|
15470
|
+
if (!dataValue) return null;
|
|
15471
|
+
const result = dataValue.toJavaScript();
|
|
15472
|
+
return result;
|
|
15473
|
+
}
|
|
15474
|
+
};
|
|
15475
|
+
var cron_default = CronTrigger2;
|
|
15476
|
+
|
|
15477
|
+
// src/models/trigger/event.ts
|
|
15478
|
+
var avs_pb4 = __toESM(require_avs_pb());
|
|
15479
|
+
var import_types4 = require("@avaprotocol/types");
|
|
16848
15480
|
|
|
16849
15481
|
// src/utils.ts
|
|
16850
15482
|
var import_struct_pb = require("google-protobuf/google/protobuf/struct_pb");
|
|
16851
|
-
var
|
|
15483
|
+
var import_types3 = require("@avaprotocol/types");
|
|
16852
15484
|
function convertProtobufValueToJs(value) {
|
|
16853
15485
|
if (!value) {
|
|
16854
15486
|
return void 0;
|
|
@@ -16912,22 +15544,22 @@ function convertJSValueToProtobuf(value) {
|
|
|
16912
15544
|
function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
16913
15545
|
switch (protobufType) {
|
|
16914
15546
|
case "TRIGGER_TYPE_MANUAL":
|
|
16915
|
-
return
|
|
15547
|
+
return import_types3.TriggerType.Manual;
|
|
16916
15548
|
// "manualTrigger"
|
|
16917
15549
|
case "TRIGGER_TYPE_FIXED_TIME":
|
|
16918
|
-
return
|
|
15550
|
+
return import_types3.TriggerType.FixedTime;
|
|
16919
15551
|
// "fixedTimeTrigger"
|
|
16920
15552
|
case "TRIGGER_TYPE_CRON":
|
|
16921
|
-
return
|
|
15553
|
+
return import_types3.TriggerType.Cron;
|
|
16922
15554
|
// "cronTrigger"
|
|
16923
15555
|
case "TRIGGER_TYPE_BLOCK":
|
|
16924
|
-
return
|
|
15556
|
+
return import_types3.TriggerType.Block;
|
|
16925
15557
|
// "blockTrigger"
|
|
16926
15558
|
case "TRIGGER_TYPE_EVENT":
|
|
16927
|
-
return
|
|
15559
|
+
return import_types3.TriggerType.Event;
|
|
16928
15560
|
// "eventTrigger"
|
|
16929
15561
|
case "TRIGGER_TYPE_UNSPECIFIED":
|
|
16930
|
-
return
|
|
15562
|
+
return import_types3.TriggerType.Unspecified;
|
|
16931
15563
|
// "unspecified"
|
|
16932
15564
|
default:
|
|
16933
15565
|
console.warn(`Unknown trigger type: ${protobufType}, using raw value`);
|
|
@@ -16937,261 +15569,95 @@ function convertProtobufTriggerTypeToSdk(protobufType) {
|
|
|
16937
15569
|
function convertProtobufNodeTypeToSdk(protobufType) {
|
|
16938
15570
|
switch (protobufType) {
|
|
16939
15571
|
case "NODE_TYPE_ETH_TRANSFER":
|
|
16940
|
-
return
|
|
15572
|
+
return import_types3.NodeType.ETHTransfer;
|
|
16941
15573
|
// "ethTransfer"
|
|
16942
15574
|
case "NODE_TYPE_CONTRACT_WRITE":
|
|
16943
|
-
return
|
|
15575
|
+
return import_types3.NodeType.ContractWrite;
|
|
16944
15576
|
// "contractWrite"
|
|
16945
15577
|
case "NODE_TYPE_CONTRACT_READ":
|
|
16946
|
-
return
|
|
15578
|
+
return import_types3.NodeType.ContractRead;
|
|
16947
15579
|
// "contractRead"
|
|
16948
15580
|
case "NODE_TYPE_GRAPHQL_QUERY":
|
|
16949
|
-
return
|
|
15581
|
+
return import_types3.NodeType.GraphQLQuery;
|
|
16950
15582
|
// "graphql"
|
|
16951
15583
|
case "NODE_TYPE_REST_API":
|
|
16952
|
-
return
|
|
15584
|
+
return import_types3.NodeType.RestAPI;
|
|
16953
15585
|
// "restApi"
|
|
16954
15586
|
case "NODE_TYPE_CUSTOM_CODE":
|
|
16955
|
-
return
|
|
15587
|
+
return import_types3.NodeType.CustomCode;
|
|
16956
15588
|
// "customCode"
|
|
16957
15589
|
case "NODE_TYPE_BRANCH":
|
|
16958
|
-
return
|
|
15590
|
+
return import_types3.NodeType.Branch;
|
|
16959
15591
|
// "branch"
|
|
16960
15592
|
case "NODE_TYPE_FILTER":
|
|
16961
|
-
return
|
|
15593
|
+
return import_types3.NodeType.Filter;
|
|
16962
15594
|
// "filter"
|
|
16963
15595
|
case "NODE_TYPE_LOOP":
|
|
16964
|
-
return
|
|
15596
|
+
return import_types3.NodeType.Loop;
|
|
16965
15597
|
// "loop"
|
|
16966
15598
|
case "NODE_TYPE_UNSPECIFIED":
|
|
16967
|
-
return
|
|
15599
|
+
return import_types3.NodeType.Unspecified;
|
|
16968
15600
|
// "unspecified"
|
|
16969
15601
|
default:
|
|
16970
15602
|
console.warn(`Unknown node type: ${protobufType}, using raw value`);
|
|
16971
15603
|
return protobufType;
|
|
16972
15604
|
}
|
|
16973
15605
|
}
|
|
16974
|
-
function convertProtobufStepTypeToSdk(protobufType) {
|
|
16975
|
-
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
16976
|
-
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
16977
|
-
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
16978
|
-
return convertProtobufNodeTypeToSdk(protobufType);
|
|
16979
|
-
} else {
|
|
16980
|
-
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
16981
|
-
return protobufType;
|
|
16982
|
-
}
|
|
16983
|
-
}
|
|
16984
|
-
function convertInputToProtobuf(input) {
|
|
16985
|
-
if (!input) {
|
|
16986
|
-
return void 0;
|
|
16987
|
-
}
|
|
16988
|
-
return convertJSValueToProtobuf(input);
|
|
16989
|
-
}
|
|
16990
|
-
function extractInputFromProtobuf(inputValue) {
|
|
16991
|
-
if (!inputValue) {
|
|
16992
|
-
return void 0;
|
|
16993
|
-
}
|
|
16994
|
-
if (typeof inputValue === "object" && !inputValue.toJavaScript) {
|
|
16995
|
-
if (!Array.isArray(inputValue)) {
|
|
16996
|
-
return inputValue;
|
|
16997
|
-
}
|
|
16998
|
-
return void 0;
|
|
16999
|
-
}
|
|
17000
|
-
try {
|
|
17001
|
-
const protobufValue = inputValue;
|
|
17002
|
-
const inputJavaScript = protobufValue.toJavaScript();
|
|
17003
|
-
if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
|
|
17004
|
-
return inputJavaScript;
|
|
17005
|
-
}
|
|
17006
|
-
} catch (error) {
|
|
17007
|
-
if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
|
|
17008
|
-
return inputValue;
|
|
17009
|
-
}
|
|
17010
|
-
}
|
|
17011
|
-
return void 0;
|
|
17012
|
-
}
|
|
17013
|
-
function cleanGrpcErrorMessage(message) {
|
|
17014
|
-
if (!message) return message;
|
|
17015
|
-
const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
|
|
17016
|
-
const match = message.match(grpcErrorPattern);
|
|
17017
|
-
if (match && match[1]) {
|
|
17018
|
-
return match[1].trim();
|
|
17019
|
-
}
|
|
17020
|
-
const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
|
|
17021
|
-
const statusMatch = message.match(statusCodePattern);
|
|
17022
|
-
if (statusMatch && statusMatch[1]) {
|
|
17023
|
-
return statusMatch[1].trim();
|
|
17024
|
-
}
|
|
17025
|
-
return message;
|
|
17026
|
-
}
|
|
17027
|
-
|
|
17028
|
-
// src/models/trigger/block.ts
|
|
17029
|
-
var BlockTrigger2 = class _BlockTrigger extends Trigger {
|
|
17030
|
-
constructor(props) {
|
|
17031
|
-
super({ ...props, type: import_types2.TriggerType.Block, data: props.data });
|
|
17032
|
-
}
|
|
17033
|
-
toRequest() {
|
|
17034
|
-
const request = new avs_pb2.TaskTrigger();
|
|
17035
|
-
request.setName(this.name);
|
|
17036
|
-
request.setId(this.id);
|
|
17037
|
-
request.setType(avs_pb2.TriggerType.TRIGGER_TYPE_BLOCK);
|
|
17038
|
-
if (!this.data) {
|
|
17039
|
-
throw new Error(`Trigger data is missing for block`);
|
|
17040
|
-
}
|
|
17041
|
-
const blockData = this.data;
|
|
17042
|
-
if (blockData.interval === null || blockData.interval === void 0) {
|
|
17043
|
-
throw new Error("Interval is required for block trigger");
|
|
17044
|
-
}
|
|
17045
|
-
if (blockData.interval <= 0) {
|
|
17046
|
-
throw new Error("Interval must be greater than 0");
|
|
17047
|
-
}
|
|
17048
|
-
const trigger = new avs_pb2.BlockTrigger();
|
|
17049
|
-
const config = new avs_pb2.BlockTrigger.Config();
|
|
17050
|
-
config.setInterval(blockData.interval);
|
|
17051
|
-
trigger.setConfig(config);
|
|
17052
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17053
|
-
if (inputValue) {
|
|
17054
|
-
trigger.setInput(inputValue);
|
|
17055
|
-
}
|
|
17056
|
-
request.setBlock(trigger);
|
|
17057
|
-
return request;
|
|
17058
|
-
}
|
|
17059
|
-
static fromResponse(raw) {
|
|
17060
|
-
const obj = raw.toObject();
|
|
17061
|
-
let data = { interval: 0 };
|
|
17062
|
-
let input = void 0;
|
|
17063
|
-
if (raw.getBlock() && raw.getBlock().hasConfig()) {
|
|
17064
|
-
const config = raw.getBlock().getConfig();
|
|
17065
|
-
if (config) {
|
|
17066
|
-
data = {
|
|
17067
|
-
interval: config.getInterval() || 0
|
|
17068
|
-
};
|
|
17069
|
-
}
|
|
17070
|
-
const blockTrigger = raw.getBlock();
|
|
17071
|
-
if (blockTrigger.hasInput()) {
|
|
17072
|
-
input = extractInputFromProtobuf(blockTrigger.getInput());
|
|
17073
|
-
}
|
|
17074
|
-
}
|
|
17075
|
-
return new _BlockTrigger({
|
|
17076
|
-
...obj,
|
|
17077
|
-
type: import_types2.TriggerType.Block,
|
|
17078
|
-
data,
|
|
17079
|
-
input
|
|
17080
|
-
});
|
|
17081
|
-
}
|
|
17082
|
-
/**
|
|
17083
|
-
* Convert raw data from runNodeWithInputs response to BlockOutput format
|
|
17084
|
-
* @param rawData - The raw data from the gRPC response
|
|
17085
|
-
* @returns {BlockTriggerOutput | undefined} - The converted data
|
|
17086
|
-
*/
|
|
17087
|
-
getOutput() {
|
|
17088
|
-
return this.output;
|
|
15606
|
+
function convertProtobufStepTypeToSdk(protobufType) {
|
|
15607
|
+
if (protobufType.startsWith("TRIGGER_TYPE_")) {
|
|
15608
|
+
return convertProtobufTriggerTypeToSdk(protobufType);
|
|
15609
|
+
} else if (protobufType.startsWith("NODE_TYPE_")) {
|
|
15610
|
+
return convertProtobufNodeTypeToSdk(protobufType);
|
|
15611
|
+
} else {
|
|
15612
|
+
console.warn(`Unknown step type: ${protobufType}, using raw value`);
|
|
15613
|
+
return protobufType;
|
|
17089
15614
|
}
|
|
17090
|
-
|
|
17091
|
-
|
|
17092
|
-
|
|
17093
|
-
|
|
17094
|
-
*/
|
|
17095
|
-
static fromOutputData(outputData) {
|
|
17096
|
-
const blockOutput = outputData.getBlockTrigger();
|
|
17097
|
-
return blockOutput?.toObject() || null;
|
|
15615
|
+
}
|
|
15616
|
+
function convertInputToProtobuf(input) {
|
|
15617
|
+
if (!input) {
|
|
15618
|
+
return void 0;
|
|
17098
15619
|
}
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
|
|
17102
|
-
|
|
17103
|
-
|
|
17104
|
-
var google_protobuf_struct_pb = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
17105
|
-
var import_types3 = require("@avaprotocol/types");
|
|
17106
|
-
var CronTrigger2 = class _CronTrigger extends Trigger {
|
|
17107
|
-
constructor(props) {
|
|
17108
|
-
super({ ...props, type: import_types3.TriggerType.Cron, data: props.data });
|
|
15620
|
+
return convertJSValueToProtobuf(input);
|
|
15621
|
+
}
|
|
15622
|
+
function extractInputFromProtobuf(inputValue) {
|
|
15623
|
+
if (!inputValue) {
|
|
15624
|
+
return void 0;
|
|
17109
15625
|
}
|
|
17110
|
-
|
|
17111
|
-
|
|
17112
|
-
|
|
17113
|
-
request.setId(this.id);
|
|
17114
|
-
request.setType(avs_pb3.TriggerType.TRIGGER_TYPE_CRON);
|
|
17115
|
-
if (!this.data) {
|
|
17116
|
-
throw new Error(`Trigger data is missing for ${this.type}`);
|
|
17117
|
-
}
|
|
17118
|
-
const cronData = this.data;
|
|
17119
|
-
if (cronData.schedules === null || cronData.schedules === void 0) {
|
|
17120
|
-
throw new Error("Schedules are required for cron trigger");
|
|
17121
|
-
}
|
|
17122
|
-
if (!Array.isArray(cronData.schedules) || cronData.schedules.length === 0) {
|
|
17123
|
-
throw new Error("Schedules are required for cron trigger");
|
|
17124
|
-
}
|
|
17125
|
-
const trigger = new avs_pb3.CronTrigger();
|
|
17126
|
-
const config = new avs_pb3.CronTrigger.Config();
|
|
17127
|
-
config.setSchedulesList(cronData.schedules);
|
|
17128
|
-
trigger.setConfig(config);
|
|
17129
|
-
if (this.input) {
|
|
17130
|
-
try {
|
|
17131
|
-
const inputValue = google_protobuf_struct_pb.Value.fromJavaScript(this.input);
|
|
17132
|
-
trigger.setInput(inputValue);
|
|
17133
|
-
} catch (error) {
|
|
17134
|
-
throw new Error(`Failed to convert input data to protobuf.Value: ${error}`);
|
|
17135
|
-
}
|
|
15626
|
+
if (typeof inputValue === "object" && !inputValue.toJavaScript) {
|
|
15627
|
+
if (!Array.isArray(inputValue)) {
|
|
15628
|
+
return inputValue;
|
|
17136
15629
|
}
|
|
17137
|
-
|
|
17138
|
-
return request;
|
|
15630
|
+
return void 0;
|
|
17139
15631
|
}
|
|
17140
|
-
|
|
17141
|
-
const
|
|
17142
|
-
|
|
17143
|
-
if (
|
|
17144
|
-
|
|
17145
|
-
if (config) {
|
|
17146
|
-
data = {
|
|
17147
|
-
schedules: config.getSchedulesList() || []
|
|
17148
|
-
};
|
|
17149
|
-
}
|
|
15632
|
+
try {
|
|
15633
|
+
const protobufValue = inputValue;
|
|
15634
|
+
const inputJavaScript = protobufValue.toJavaScript();
|
|
15635
|
+
if (inputJavaScript && typeof inputJavaScript === "object" && !Array.isArray(inputJavaScript)) {
|
|
15636
|
+
return inputJavaScript;
|
|
17150
15637
|
}
|
|
17151
|
-
|
|
17152
|
-
if (
|
|
17153
|
-
|
|
17154
|
-
if (inputValue) {
|
|
17155
|
-
input = inputValue.toObject();
|
|
17156
|
-
}
|
|
15638
|
+
} catch (error) {
|
|
15639
|
+
if (typeof inputValue === "object" && !Array.isArray(inputValue)) {
|
|
15640
|
+
return inputValue;
|
|
17157
15641
|
}
|
|
17158
|
-
return new _CronTrigger({
|
|
17159
|
-
...obj,
|
|
17160
|
-
type: import_types3.TriggerType.Cron,
|
|
17161
|
-
data,
|
|
17162
|
-
input
|
|
17163
|
-
// ✨ NEW: Include input data
|
|
17164
|
-
});
|
|
17165
15642
|
}
|
|
17166
|
-
|
|
17167
|
-
|
|
17168
|
-
|
|
17169
|
-
|
|
17170
|
-
|
|
17171
|
-
|
|
17172
|
-
|
|
15643
|
+
return void 0;
|
|
15644
|
+
}
|
|
15645
|
+
function cleanGrpcErrorMessage(message) {
|
|
15646
|
+
if (!message) return message;
|
|
15647
|
+
const grpcErrorPattern = /gRPC Error \(Code \d+\): \d+ [A-Z_]+: (.+)$/;
|
|
15648
|
+
const match = message.match(grpcErrorPattern);
|
|
15649
|
+
if (match && match[1]) {
|
|
15650
|
+
return match[1].trim();
|
|
17173
15651
|
}
|
|
17174
|
-
|
|
17175
|
-
|
|
17176
|
-
|
|
17177
|
-
|
|
17178
|
-
* @returns Plain JavaScript object with cron trigger data
|
|
17179
|
-
*/
|
|
17180
|
-
static fromOutputData(outputData) {
|
|
17181
|
-
const cronOutput = outputData.getCronTrigger();
|
|
17182
|
-
if (!cronOutput) return null;
|
|
17183
|
-
const outputObj = cronOutput.toObject();
|
|
17184
|
-
return {
|
|
17185
|
-
timestamp: outputObj.timestamp,
|
|
17186
|
-
timestampIso: outputObj.timestampIso
|
|
17187
|
-
};
|
|
15652
|
+
const statusCodePattern = /\d+ [A-Z_]+: (.+)$/;
|
|
15653
|
+
const statusMatch = message.match(statusCodePattern);
|
|
15654
|
+
if (statusMatch && statusMatch[1]) {
|
|
15655
|
+
return statusMatch[1].trim();
|
|
17188
15656
|
}
|
|
17189
|
-
|
|
17190
|
-
|
|
15657
|
+
return message;
|
|
15658
|
+
}
|
|
17191
15659
|
|
|
17192
15660
|
// src/models/trigger/event.ts
|
|
17193
|
-
var avs_pb4 = __toESM(require_avs_pb());
|
|
17194
|
-
var import_types4 = require("@avaprotocol/types");
|
|
17195
15661
|
var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
17196
15662
|
constructor(props) {
|
|
17197
15663
|
super({ ...props, type: import_types4.TriggerType.Event, data: props.data });
|
|
@@ -17264,17 +15730,12 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
17264
15730
|
});
|
|
17265
15731
|
config.setQueriesList(queryMessages);
|
|
17266
15732
|
trigger.setConfig(config);
|
|
17267
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17268
|
-
if (inputValue) {
|
|
17269
|
-
trigger.setInput(inputValue);
|
|
17270
|
-
}
|
|
17271
15733
|
request.setEvent(trigger);
|
|
17272
15734
|
return request;
|
|
17273
15735
|
}
|
|
17274
15736
|
static fromResponse(raw) {
|
|
17275
15737
|
const obj = raw.toObject();
|
|
17276
15738
|
let data = { queries: [] };
|
|
17277
|
-
let input = void 0;
|
|
17278
15739
|
if (raw.getEvent() && raw.getEvent().hasConfig()) {
|
|
17279
15740
|
const config = raw.getEvent().getConfig();
|
|
17280
15741
|
if (config) {
|
|
@@ -17324,15 +15785,11 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
17324
15785
|
}
|
|
17325
15786
|
data = { queries };
|
|
17326
15787
|
}
|
|
17327
|
-
if (raw.getEvent().hasInput()) {
|
|
17328
|
-
input = extractInputFromProtobuf(raw.getEvent().getInput());
|
|
17329
|
-
}
|
|
17330
15788
|
}
|
|
17331
15789
|
return new _EventTrigger({
|
|
17332
15790
|
...obj,
|
|
17333
15791
|
type: import_types4.TriggerType.Event,
|
|
17334
|
-
data
|
|
17335
|
-
input
|
|
15792
|
+
data
|
|
17336
15793
|
});
|
|
17337
15794
|
}
|
|
17338
15795
|
/**
|
|
@@ -17390,19 +15847,16 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
|
|
|
17390
15847
|
}
|
|
17391
15848
|
const trigger = new avs_pb5.FixedTimeTrigger();
|
|
17392
15849
|
const config = new avs_pb5.FixedTimeTrigger.Config();
|
|
17393
|
-
config.setEpochsList(
|
|
15850
|
+
config.setEpochsList(
|
|
15851
|
+
this.data.epochsList || []
|
|
15852
|
+
);
|
|
17394
15853
|
trigger.setConfig(config);
|
|
17395
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17396
|
-
if (inputValue) {
|
|
17397
|
-
trigger.setInput(inputValue);
|
|
17398
|
-
}
|
|
17399
15854
|
request.setFixedTime(trigger);
|
|
17400
15855
|
return request;
|
|
17401
15856
|
}
|
|
17402
15857
|
static fromResponse(raw) {
|
|
17403
15858
|
const obj = raw.toObject();
|
|
17404
15859
|
let data = { epochsList: [] };
|
|
17405
|
-
let input = void 0;
|
|
17406
15860
|
if (raw.getFixedTime() && raw.getFixedTime().hasConfig()) {
|
|
17407
15861
|
const config = raw.getFixedTime().getConfig();
|
|
17408
15862
|
if (config) {
|
|
@@ -17410,15 +15864,11 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
|
|
|
17410
15864
|
epochsList: config.getEpochsList() || []
|
|
17411
15865
|
};
|
|
17412
15866
|
}
|
|
17413
|
-
if (raw.getFixedTime().hasInput()) {
|
|
17414
|
-
input = extractInputFromProtobuf(raw.getFixedTime().getInput());
|
|
17415
|
-
}
|
|
17416
15867
|
}
|
|
17417
15868
|
return new _FixedTimeTrigger({
|
|
17418
15869
|
...obj,
|
|
17419
15870
|
type: import_types5.TriggerType.FixedTime,
|
|
17420
|
-
data
|
|
17421
|
-
input
|
|
15871
|
+
data
|
|
17422
15872
|
});
|
|
17423
15873
|
}
|
|
17424
15874
|
/**
|
|
@@ -17438,11 +15888,10 @@ var FixedTimeTrigger2 = class _FixedTimeTrigger extends Trigger {
|
|
|
17438
15888
|
static fromOutputData(outputData) {
|
|
17439
15889
|
const fixedTimeOutput = outputData.getFixedTimeTrigger();
|
|
17440
15890
|
if (!fixedTimeOutput) return null;
|
|
17441
|
-
const
|
|
17442
|
-
return
|
|
17443
|
-
|
|
17444
|
-
|
|
17445
|
-
};
|
|
15891
|
+
const dataValue = fixedTimeOutput.getData();
|
|
15892
|
+
if (!dataValue) return null;
|
|
15893
|
+
const result = dataValue.toJavaScript();
|
|
15894
|
+
return result;
|
|
17446
15895
|
}
|
|
17447
15896
|
};
|
|
17448
15897
|
var fixedTime_default = FixedTimeTrigger2;
|
|
@@ -17458,8 +15907,6 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
17458
15907
|
data: props.data,
|
|
17459
15908
|
input: props.input
|
|
17460
15909
|
});
|
|
17461
|
-
this.headers = props.headers;
|
|
17462
|
-
this.pathParams = props.pathParams;
|
|
17463
15910
|
}
|
|
17464
15911
|
toRequest() {
|
|
17465
15912
|
const trigger = new avs_pb6.TaskTrigger();
|
|
@@ -17468,24 +15915,36 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
17468
15915
|
trigger.setType(avs_pb6.TriggerType.TRIGGER_TYPE_MANUAL);
|
|
17469
15916
|
const manualTrigger = new avs_pb6.ManualTrigger();
|
|
17470
15917
|
const config = new avs_pb6.ManualTrigger.Config();
|
|
17471
|
-
|
|
17472
|
-
if (dataToSend === null || dataToSend === void 0) {
|
|
15918
|
+
if (this.data === null || this.data === void 0) {
|
|
17473
15919
|
throw new Error("ManualTrigger data is required");
|
|
17474
15920
|
}
|
|
17475
|
-
|
|
17476
|
-
|
|
17477
|
-
|
|
15921
|
+
let actualData = this.data;
|
|
15922
|
+
let headers = {};
|
|
15923
|
+
let pathParams = {};
|
|
15924
|
+
if (typeof this.data === "object" && this.data !== null && !Array.isArray(this.data)) {
|
|
15925
|
+
const dataObj = this.data;
|
|
15926
|
+
if ("data" in dataObj) {
|
|
15927
|
+
actualData = dataObj.data;
|
|
15928
|
+
headers = dataObj.headers || {};
|
|
15929
|
+
pathParams = dataObj.pathParams || {};
|
|
15930
|
+
}
|
|
15931
|
+
}
|
|
15932
|
+
const dataValue = convertInputToProtobuf(actualData);
|
|
15933
|
+
if (!dataValue) {
|
|
15934
|
+
throw new Error(
|
|
15935
|
+
"Failed to convert ManualTrigger data to protobuf format"
|
|
15936
|
+
);
|
|
17478
15937
|
}
|
|
17479
|
-
config.setData(
|
|
17480
|
-
if (
|
|
15938
|
+
config.setData(dataValue);
|
|
15939
|
+
if (Object.keys(headers).length > 0) {
|
|
17481
15940
|
const headersMap = config.getHeadersMap();
|
|
17482
|
-
Object.entries(
|
|
15941
|
+
Object.entries(headers).forEach(([key, value]) => {
|
|
17483
15942
|
headersMap.set(key, value);
|
|
17484
15943
|
});
|
|
17485
15944
|
}
|
|
17486
|
-
if (
|
|
15945
|
+
if (Object.keys(pathParams).length > 0) {
|
|
17487
15946
|
const pathParamsMap = config.getPathparamsMap();
|
|
17488
|
-
Object.entries(
|
|
15947
|
+
Object.entries(pathParams).forEach(([key, value]) => {
|
|
17489
15948
|
pathParamsMap.set(key, value);
|
|
17490
15949
|
});
|
|
17491
15950
|
}
|
|
@@ -17495,45 +15954,25 @@ var ManualTrigger2 = class _ManualTrigger extends Trigger {
|
|
|
17495
15954
|
}
|
|
17496
15955
|
static fromResponse(raw) {
|
|
17497
15956
|
const obj = raw.toObject();
|
|
17498
|
-
let
|
|
17499
|
-
const input = void 0;
|
|
17500
|
-
let headers = void 0;
|
|
17501
|
-
let pathParams = void 0;
|
|
15957
|
+
let actualData = null;
|
|
17502
15958
|
const manualTrigger = raw.getManual();
|
|
17503
15959
|
if (manualTrigger) {
|
|
17504
15960
|
const config = manualTrigger.getConfig();
|
|
17505
15961
|
if (config) {
|
|
17506
15962
|
if (config.hasData()) {
|
|
17507
|
-
|
|
17508
|
-
}
|
|
17509
|
-
const headersMapProto = config.getHeadersMap();
|
|
17510
|
-
if (headersMapProto && headersMapProto.getLength() > 0) {
|
|
17511
|
-
headers = {};
|
|
17512
|
-
headersMapProto.forEach((value, key) => {
|
|
17513
|
-
headers[key] = value;
|
|
17514
|
-
});
|
|
17515
|
-
}
|
|
17516
|
-
const pathParamsMapProto = config.getPathparamsMap();
|
|
17517
|
-
if (pathParamsMapProto && pathParamsMapProto.getLength() > 0) {
|
|
17518
|
-
pathParams = {};
|
|
17519
|
-
pathParamsMapProto.forEach((value, key) => {
|
|
17520
|
-
pathParams[key] = value;
|
|
17521
|
-
});
|
|
15963
|
+
actualData = extractInputFromProtobuf(config.getData());
|
|
17522
15964
|
}
|
|
17523
15965
|
}
|
|
17524
15966
|
}
|
|
15967
|
+
const manualTriggerData = {
|
|
15968
|
+
data: actualData
|
|
15969
|
+
};
|
|
17525
15970
|
return new _ManualTrigger({
|
|
17526
15971
|
...obj,
|
|
17527
15972
|
type: import_types6.TriggerType.Manual,
|
|
17528
|
-
data
|
|
17529
|
-
input,
|
|
17530
|
-
headers,
|
|
17531
|
-
pathParams
|
|
15973
|
+
data: manualTriggerData
|
|
17532
15974
|
});
|
|
17533
15975
|
}
|
|
17534
|
-
getInputVariables() {
|
|
17535
|
-
return this.input;
|
|
17536
|
-
}
|
|
17537
15976
|
/**
|
|
17538
15977
|
* Extract output data from RunTriggerResp for manual triggers
|
|
17539
15978
|
* @param outputData - The RunTriggerResp containing manual trigger output
|
|
@@ -17634,13 +16073,11 @@ var avs_pb8 = __toESM(require_avs_pb());
|
|
|
17634
16073
|
var import_types8 = require("@avaprotocol/types");
|
|
17635
16074
|
var import_lodash = __toESM(require("lodash"));
|
|
17636
16075
|
var Node = class {
|
|
17637
|
-
// Use JavaScript object type for internal storage
|
|
17638
16076
|
constructor(props) {
|
|
17639
16077
|
this.id = props.id;
|
|
17640
16078
|
this.name = props.name;
|
|
17641
16079
|
this.type = props.type;
|
|
17642
16080
|
this.data = props.data;
|
|
17643
|
-
this.input = props.input;
|
|
17644
16081
|
}
|
|
17645
16082
|
toRequest() {
|
|
17646
16083
|
const request = new avs_pb8.TaskNode();
|
|
@@ -17653,13 +16090,8 @@ var Node = class {
|
|
|
17653
16090
|
}
|
|
17654
16091
|
static fromResponse(raw) {
|
|
17655
16092
|
const obj = raw.toObject();
|
|
17656
|
-
let input = void 0;
|
|
17657
|
-
if (raw.hasInput()) {
|
|
17658
|
-
input = raw.getInput().toObject();
|
|
17659
|
-
}
|
|
17660
16093
|
return new this({
|
|
17661
|
-
...obj
|
|
17662
|
-
input
|
|
16094
|
+
...obj
|
|
17663
16095
|
});
|
|
17664
16096
|
}
|
|
17665
16097
|
};
|
|
@@ -17689,6 +16121,9 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
17689
16121
|
if (methodCall.methodName) {
|
|
17690
16122
|
methodCallMsg.setMethodName(methodCall.methodName);
|
|
17691
16123
|
}
|
|
16124
|
+
if (methodCall.methodParams) {
|
|
16125
|
+
methodCallMsg.setMethodParamsList(methodCall.methodParams);
|
|
16126
|
+
}
|
|
17692
16127
|
config.addMethodCalls(methodCallMsg);
|
|
17693
16128
|
});
|
|
17694
16129
|
node.setConfig(config);
|
|
@@ -17703,18 +16138,14 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
17703
16138
|
contractAbi: protobufData.contractAbi,
|
|
17704
16139
|
methodCalls: protobufData.methodCallsList?.map((call) => ({
|
|
17705
16140
|
callData: call.callData,
|
|
17706
|
-
methodName: call.methodName
|
|
16141
|
+
methodName: call.methodName,
|
|
16142
|
+
methodParams: call.methodParamsList || []
|
|
17707
16143
|
})) || []
|
|
17708
16144
|
};
|
|
17709
|
-
let input = void 0;
|
|
17710
|
-
if (raw.hasInput()) {
|
|
17711
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
17712
|
-
}
|
|
17713
16145
|
return new _ContractWriteNode({
|
|
17714
16146
|
...obj,
|
|
17715
16147
|
type: import_types9.NodeType.ContractWrite,
|
|
17716
|
-
data
|
|
17717
|
-
input
|
|
16148
|
+
data
|
|
17718
16149
|
});
|
|
17719
16150
|
}
|
|
17720
16151
|
toRequest() {
|
|
@@ -17724,10 +16155,6 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
17724
16155
|
const node = _ContractWriteNode.createProtobufNode(
|
|
17725
16156
|
this.data
|
|
17726
16157
|
);
|
|
17727
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17728
|
-
if (inputValue) {
|
|
17729
|
-
request.setInput(inputValue);
|
|
17730
|
-
}
|
|
17731
16158
|
request.setContractWrite(node);
|
|
17732
16159
|
return request;
|
|
17733
16160
|
}
|
|
@@ -17769,15 +16196,10 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
|
17769
16196
|
lang: rawConfig.lang,
|
|
17770
16197
|
source: rawConfig.source
|
|
17771
16198
|
};
|
|
17772
|
-
let input = void 0;
|
|
17773
|
-
if (raw.hasInput()) {
|
|
17774
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
17775
|
-
}
|
|
17776
16199
|
return new _CustomCodeNode({
|
|
17777
16200
|
...obj,
|
|
17778
16201
|
type: import_types10.NodeType.CustomCode,
|
|
17779
|
-
data: convertedConfig
|
|
17780
|
-
input
|
|
16202
|
+
data: convertedConfig
|
|
17781
16203
|
});
|
|
17782
16204
|
}
|
|
17783
16205
|
toRequest() {
|
|
@@ -17787,10 +16209,6 @@ var CustomCodeNode2 = class _CustomCodeNode extends Node {
|
|
|
17787
16209
|
const node = _CustomCodeNode.createProtobufNode(
|
|
17788
16210
|
this.data
|
|
17789
16211
|
);
|
|
17790
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17791
|
-
if (inputValue) {
|
|
17792
|
-
request.setInput(inputValue);
|
|
17793
|
-
}
|
|
17794
16212
|
request.setCustomCode(node);
|
|
17795
16213
|
return request;
|
|
17796
16214
|
}
|
|
@@ -17840,12 +16258,10 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
17840
16258
|
}
|
|
17841
16259
|
static fromResponse(raw) {
|
|
17842
16260
|
const obj = raw.toObject();
|
|
17843
|
-
const input = extractInputFromProtobuf(raw.getGraphqlQuery()?.getInput());
|
|
17844
16261
|
return new _GraphQLQueryNode({
|
|
17845
16262
|
...obj,
|
|
17846
16263
|
type: import_types11.NodeType.GraphQLQuery,
|
|
17847
|
-
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
17848
|
-
input
|
|
16264
|
+
data: raw.getGraphqlQuery().getConfig().toObject()
|
|
17849
16265
|
});
|
|
17850
16266
|
}
|
|
17851
16267
|
toRequest() {
|
|
@@ -17855,10 +16271,6 @@ var GraphQLQueryNode2 = class _GraphQLQueryNode extends Node {
|
|
|
17855
16271
|
const node = _GraphQLQueryNode.createProtobufNode(
|
|
17856
16272
|
this.data
|
|
17857
16273
|
);
|
|
17858
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17859
|
-
if (inputValue) {
|
|
17860
|
-
node.setInput(inputValue);
|
|
17861
|
-
}
|
|
17862
16274
|
request.setGraphqlQuery(node);
|
|
17863
16275
|
return request;
|
|
17864
16276
|
}
|
|
@@ -17898,10 +16310,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
17898
16310
|
}
|
|
17899
16311
|
static fromResponse(raw) {
|
|
17900
16312
|
const obj = raw.toObject();
|
|
17901
|
-
let input = void 0;
|
|
17902
|
-
if (raw.hasInput()) {
|
|
17903
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
17904
|
-
}
|
|
17905
16313
|
return new _RestAPINode({
|
|
17906
16314
|
...obj,
|
|
17907
16315
|
type: import_types12.NodeType.RestAPI,
|
|
@@ -17917,9 +16325,7 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
17917
16325
|
});
|
|
17918
16326
|
return headers;
|
|
17919
16327
|
})()
|
|
17920
|
-
}
|
|
17921
|
-
input
|
|
17922
|
-
// Include input data from top-level TaskNode
|
|
16328
|
+
}
|
|
17923
16329
|
});
|
|
17924
16330
|
}
|
|
17925
16331
|
toRequest() {
|
|
@@ -17929,10 +16335,6 @@ var RestAPINode2 = class _RestAPINode extends Node {
|
|
|
17929
16335
|
const nodeData = _RestAPINode.createProtobufNode(
|
|
17930
16336
|
this.data
|
|
17931
16337
|
);
|
|
17932
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
17933
|
-
if (inputValue) {
|
|
17934
|
-
request.setInput(inputValue);
|
|
17935
|
-
}
|
|
17936
16338
|
request.setRestApi(nodeData);
|
|
17937
16339
|
return request;
|
|
17938
16340
|
}
|
|
@@ -17978,6 +16380,9 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
17978
16380
|
if (methodCall.applyToFields) {
|
|
17979
16381
|
methodCallMsg.setApplyToFieldsList(methodCall.applyToFields);
|
|
17980
16382
|
}
|
|
16383
|
+
if (methodCall.methodParams) {
|
|
16384
|
+
methodCallMsg.setMethodParamsList(methodCall.methodParams);
|
|
16385
|
+
}
|
|
17981
16386
|
config.addMethodCalls(methodCallMsg);
|
|
17982
16387
|
});
|
|
17983
16388
|
node.setConfig(config);
|
|
@@ -17992,18 +16397,14 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
17992
16397
|
methodCalls: protobufData.methodCallsList?.map((call) => ({
|
|
17993
16398
|
callData: call.callData,
|
|
17994
16399
|
methodName: call.methodName,
|
|
17995
|
-
applyToFields: call.applyToFieldsList || []
|
|
16400
|
+
applyToFields: call.applyToFieldsList || [],
|
|
16401
|
+
methodParams: call.methodParamsList || []
|
|
17996
16402
|
})) || []
|
|
17997
16403
|
};
|
|
17998
|
-
let input = void 0;
|
|
17999
|
-
if (raw.hasInput()) {
|
|
18000
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
18001
|
-
}
|
|
18002
16404
|
return new _ContractReadNode({
|
|
18003
16405
|
...obj,
|
|
18004
16406
|
type: import_types13.NodeType.ContractRead,
|
|
18005
|
-
data
|
|
18006
|
-
input
|
|
16407
|
+
data
|
|
18007
16408
|
});
|
|
18008
16409
|
}
|
|
18009
16410
|
toRequest() {
|
|
@@ -18013,10 +16414,6 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
18013
16414
|
const node = _ContractReadNode.createProtobufNode(
|
|
18014
16415
|
this.data
|
|
18015
16416
|
);
|
|
18016
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18017
|
-
if (inputValue) {
|
|
18018
|
-
request.setInput(inputValue);
|
|
18019
|
-
}
|
|
18020
16417
|
request.setContractRead(node);
|
|
18021
16418
|
return request;
|
|
18022
16419
|
}
|
|
@@ -18065,12 +16462,11 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
|
18065
16462
|
}
|
|
18066
16463
|
static fromResponse(raw) {
|
|
18067
16464
|
const obj = raw.toObject();
|
|
18068
|
-
const
|
|
16465
|
+
const data = raw.getEthTransfer().getConfig().toObject();
|
|
18069
16466
|
return new _ETHTransferNode({
|
|
18070
16467
|
...obj,
|
|
18071
16468
|
type: import_types14.NodeType.ETHTransfer,
|
|
18072
|
-
data
|
|
18073
|
-
input
|
|
16469
|
+
data
|
|
18074
16470
|
});
|
|
18075
16471
|
}
|
|
18076
16472
|
toRequest() {
|
|
@@ -18080,10 +16476,6 @@ var ETHTransferNode2 = class _ETHTransferNode extends Node {
|
|
|
18080
16476
|
const node = _ETHTransferNode.createProtobufNode(
|
|
18081
16477
|
this.data
|
|
18082
16478
|
);
|
|
18083
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18084
|
-
if (inputValue) {
|
|
18085
|
-
node.setInput(inputValue);
|
|
18086
|
-
}
|
|
18087
16479
|
request.setEthTransfer(node);
|
|
18088
16480
|
return request;
|
|
18089
16481
|
}
|
|
@@ -18111,12 +16503,10 @@ var BranchNode2 = class _BranchNode extends Node {
|
|
|
18111
16503
|
expression: condition.expression
|
|
18112
16504
|
})) || []
|
|
18113
16505
|
};
|
|
18114
|
-
const input = extractInputFromProtobuf(raw.getBranch()?.getInput());
|
|
18115
16506
|
return new _BranchNode({
|
|
18116
16507
|
...obj,
|
|
18117
16508
|
type: import_types15.NodeType.Branch,
|
|
18118
|
-
data
|
|
18119
|
-
input
|
|
16509
|
+
data
|
|
18120
16510
|
});
|
|
18121
16511
|
}
|
|
18122
16512
|
toRequest() {
|
|
@@ -18138,10 +16528,6 @@ var BranchNode2 = class _BranchNode extends Node {
|
|
|
18138
16528
|
config.setConditionsList(conditionsList);
|
|
18139
16529
|
}
|
|
18140
16530
|
node.setConfig(config);
|
|
18141
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18142
|
-
if (inputValue) {
|
|
18143
|
-
node.setInput(inputValue);
|
|
18144
|
-
}
|
|
18145
16531
|
request.setBranch(node);
|
|
18146
16532
|
return request;
|
|
18147
16533
|
}
|
|
@@ -18156,19 +16542,16 @@ var branch_default = BranchNode2;
|
|
|
18156
16542
|
// src/models/node/filter.ts
|
|
18157
16543
|
var avs_pb16 = __toESM(require_avs_pb());
|
|
18158
16544
|
var import_types16 = require("@avaprotocol/types");
|
|
18159
|
-
var import_struct_pb2 = require("google-protobuf/google/protobuf/struct_pb");
|
|
18160
16545
|
var FilterNode2 = class _FilterNode extends Node {
|
|
18161
16546
|
constructor(props) {
|
|
18162
16547
|
super({ ...props, type: import_types16.NodeType.Filter, data: props.data });
|
|
18163
16548
|
}
|
|
18164
16549
|
static fromResponse(raw) {
|
|
18165
16550
|
const obj = raw.toObject();
|
|
18166
|
-
const input = extractInputFromProtobuf(raw.getFilter()?.getInput());
|
|
18167
16551
|
return new _FilterNode({
|
|
18168
16552
|
...obj,
|
|
18169
16553
|
type: import_types16.NodeType.Filter,
|
|
18170
|
-
data: raw.getFilter().getConfig().toObject()
|
|
18171
|
-
input
|
|
16554
|
+
data: raw.getFilter().getConfig().toObject()
|
|
18172
16555
|
});
|
|
18173
16556
|
}
|
|
18174
16557
|
toRequest() {
|
|
@@ -18178,12 +16561,8 @@ var FilterNode2 = class _FilterNode extends Node {
|
|
|
18178
16561
|
const node = new avs_pb16.FilterNode();
|
|
18179
16562
|
const config = new avs_pb16.FilterNode.Config();
|
|
18180
16563
|
config.setExpression(this.data.expression);
|
|
18181
|
-
config.
|
|
16564
|
+
config.setInputNodeName(this.data.inputNodeName || "");
|
|
18182
16565
|
node.setConfig(config);
|
|
18183
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18184
|
-
if (inputValue) {
|
|
18185
|
-
node.setInput(inputValue);
|
|
18186
|
-
}
|
|
18187
16566
|
request.setFilter(node);
|
|
18188
16567
|
return request;
|
|
18189
16568
|
}
|
|
@@ -18196,11 +16575,16 @@ var FilterNode2 = class _FilterNode extends Node {
|
|
|
18196
16575
|
if (!anyData) {
|
|
18197
16576
|
throw new Error("FilterNode output data.getData() is missing");
|
|
18198
16577
|
}
|
|
18199
|
-
const
|
|
18200
|
-
|
|
18201
|
-
|
|
16578
|
+
const result = anyData.toJavaScript();
|
|
16579
|
+
if (result && typeof result === "object" && !Array.isArray(result) && result.data && result.data.data && Array.isArray(result.data.data)) {
|
|
16580
|
+
return result.data.data;
|
|
16581
|
+
}
|
|
16582
|
+
if (result && typeof result === "object" && !Array.isArray(result) && result.data && Array.isArray(result.data)) {
|
|
18202
16583
|
return result.data;
|
|
18203
16584
|
}
|
|
16585
|
+
if (Array.isArray(result)) {
|
|
16586
|
+
return result;
|
|
16587
|
+
}
|
|
18204
16588
|
throw new Error(
|
|
18205
16589
|
"FilterNode output data does not contain expected data structure"
|
|
18206
16590
|
);
|
|
@@ -18232,15 +16616,10 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18232
16616
|
configData?.executionMode
|
|
18233
16617
|
)
|
|
18234
16618
|
};
|
|
18235
|
-
let input = void 0;
|
|
18236
|
-
if (raw.hasInput()) {
|
|
18237
|
-
input = extractInputFromProtobuf(raw.getInput());
|
|
18238
|
-
}
|
|
18239
16619
|
return new _LoopNode({
|
|
18240
16620
|
...obj,
|
|
18241
16621
|
type: import_types17.NodeType.Loop,
|
|
18242
|
-
data
|
|
18243
|
-
input
|
|
16622
|
+
data
|
|
18244
16623
|
});
|
|
18245
16624
|
}
|
|
18246
16625
|
static extractRunnerFromProtobuf(loopNodeData) {
|
|
@@ -18298,16 +16677,12 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18298
16677
|
node.setName(this.name);
|
|
18299
16678
|
const data = this.data;
|
|
18300
16679
|
const config = new avs_pb17.LoopNode.Config();
|
|
18301
|
-
config.
|
|
16680
|
+
config.setInputNodeName(data.inputNodeName || "");
|
|
18302
16681
|
config.setIterVal(data.iterVal || "");
|
|
18303
16682
|
config.setIterKey(data.iterKey || "");
|
|
18304
16683
|
const executionMode = this.mapExecutionModeToProtobuf(data.executionMode);
|
|
18305
16684
|
config.setExecutionMode(executionMode);
|
|
18306
16685
|
loopNode.setConfig(config);
|
|
18307
|
-
const inputValue = convertInputToProtobuf(this.input);
|
|
18308
|
-
if (inputValue) {
|
|
18309
|
-
node.setInput(inputValue);
|
|
18310
|
-
}
|
|
18311
16686
|
if (data.runner) {
|
|
18312
16687
|
this.setRunnerOnProtobuf(loopNode, data.runner);
|
|
18313
16688
|
}
|
|
@@ -18315,86 +16690,72 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18315
16690
|
return node;
|
|
18316
16691
|
}
|
|
18317
16692
|
setRunnerOnProtobuf(loopNode, runner) {
|
|
18318
|
-
if (!runner || !runner.type
|
|
16693
|
+
if (!runner || !runner.type) {
|
|
16694
|
+
return;
|
|
16695
|
+
}
|
|
16696
|
+
const config = runner.config || runner.data && runner.data.config;
|
|
16697
|
+
if (!config) {
|
|
18319
16698
|
return;
|
|
18320
16699
|
}
|
|
18321
16700
|
switch (runner.type) {
|
|
18322
16701
|
case "ethTransfer": {
|
|
18323
|
-
const
|
|
18324
|
-
|
|
18325
|
-
|
|
18326
|
-
|
|
18327
|
-
|
|
18328
|
-
|
|
18329
|
-
});
|
|
18330
|
-
loopNode.setEthTransfer(ethTransfer);
|
|
18331
|
-
}
|
|
16702
|
+
const ethConfig = config;
|
|
16703
|
+
const ethTransfer = ethTransfer_default.createProtobufNode({
|
|
16704
|
+
destination: ethConfig.destination,
|
|
16705
|
+
amount: ethConfig.amount
|
|
16706
|
+
});
|
|
16707
|
+
loopNode.setEthTransfer(ethTransfer);
|
|
18332
16708
|
break;
|
|
18333
16709
|
}
|
|
18334
16710
|
case "contractWrite": {
|
|
18335
|
-
const
|
|
18336
|
-
|
|
18337
|
-
|
|
18338
|
-
|
|
18339
|
-
|
|
18340
|
-
|
|
18341
|
-
|
|
18342
|
-
|
|
18343
|
-
});
|
|
18344
|
-
loopNode.setContractWrite(contractWrite);
|
|
18345
|
-
}
|
|
16711
|
+
const writeConfig = config;
|
|
16712
|
+
const contractWrite = contractWrite_default.createProtobufNode({
|
|
16713
|
+
contractAddress: writeConfig.contractAddress,
|
|
16714
|
+
callData: writeConfig.callData,
|
|
16715
|
+
contractAbi: writeConfig.contractAbi,
|
|
16716
|
+
methodCalls: writeConfig.methodCallsList || []
|
|
16717
|
+
});
|
|
16718
|
+
loopNode.setContractWrite(contractWrite);
|
|
18346
16719
|
break;
|
|
18347
16720
|
}
|
|
18348
16721
|
case "contractRead": {
|
|
18349
|
-
const
|
|
18350
|
-
|
|
18351
|
-
|
|
18352
|
-
|
|
18353
|
-
|
|
18354
|
-
|
|
18355
|
-
|
|
18356
|
-
});
|
|
18357
|
-
loopNode.setContractRead(contractRead);
|
|
18358
|
-
}
|
|
16722
|
+
const readConfig = config;
|
|
16723
|
+
const contractRead = contractRead_default.createProtobufNode({
|
|
16724
|
+
contractAddress: readConfig.contractAddress,
|
|
16725
|
+
contractAbi: readConfig.contractAbi,
|
|
16726
|
+
methodCalls: readConfig.methodCallsList || []
|
|
16727
|
+
});
|
|
16728
|
+
loopNode.setContractRead(contractRead);
|
|
18359
16729
|
break;
|
|
18360
16730
|
}
|
|
18361
16731
|
case "graphqlDataQuery": {
|
|
18362
|
-
const
|
|
18363
|
-
|
|
18364
|
-
|
|
18365
|
-
|
|
18366
|
-
|
|
18367
|
-
|
|
18368
|
-
|
|
18369
|
-
});
|
|
18370
|
-
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
18371
|
-
}
|
|
16732
|
+
const gqlConfig = config;
|
|
16733
|
+
const graphqlQuery = graphqlQuery_default.createProtobufNode({
|
|
16734
|
+
url: gqlConfig.url,
|
|
16735
|
+
query: gqlConfig.query,
|
|
16736
|
+
variablesMap: gqlConfig.variablesMap
|
|
16737
|
+
});
|
|
16738
|
+
loopNode.setGraphqlDataQuery(graphqlQuery);
|
|
18372
16739
|
break;
|
|
18373
16740
|
}
|
|
18374
16741
|
case "restApi": {
|
|
18375
|
-
const
|
|
18376
|
-
|
|
18377
|
-
|
|
18378
|
-
|
|
18379
|
-
|
|
18380
|
-
|
|
18381
|
-
|
|
18382
|
-
|
|
18383
|
-
});
|
|
18384
|
-
loopNode.setRestApi(restApi);
|
|
18385
|
-
}
|
|
16742
|
+
const apiConfig = config;
|
|
16743
|
+
const restApi = restApi_default.createProtobufNode({
|
|
16744
|
+
url: apiConfig.url,
|
|
16745
|
+
method: apiConfig.method,
|
|
16746
|
+
body: apiConfig.body || "",
|
|
16747
|
+
headers: apiConfig.headers
|
|
16748
|
+
});
|
|
16749
|
+
loopNode.setRestApi(restApi);
|
|
18386
16750
|
break;
|
|
18387
16751
|
}
|
|
18388
16752
|
case "customCode": {
|
|
18389
|
-
const
|
|
18390
|
-
|
|
18391
|
-
|
|
18392
|
-
|
|
18393
|
-
|
|
18394
|
-
|
|
18395
|
-
});
|
|
18396
|
-
loopNode.setCustomCode(customCode);
|
|
18397
|
-
}
|
|
16753
|
+
const codeConfig = config;
|
|
16754
|
+
const customCode = customCode_default.createProtobufNode({
|
|
16755
|
+
lang: codeConfig.lang,
|
|
16756
|
+
source: codeConfig.source
|
|
16757
|
+
});
|
|
16758
|
+
loopNode.setCustomCode(customCode);
|
|
18398
16759
|
break;
|
|
18399
16760
|
}
|
|
18400
16761
|
}
|
|
@@ -18410,15 +16771,15 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
18410
16771
|
}
|
|
18411
16772
|
const loopOutput = outputData.getLoop();
|
|
18412
16773
|
if (loopOutput) {
|
|
18413
|
-
const
|
|
18414
|
-
if (
|
|
16774
|
+
const dataValue = loopOutput.getData();
|
|
16775
|
+
if (dataValue) {
|
|
18415
16776
|
try {
|
|
18416
|
-
return
|
|
18417
|
-
} catch {
|
|
18418
|
-
|
|
16777
|
+
return dataValue.toJavaScript();
|
|
16778
|
+
} catch (error) {
|
|
16779
|
+
console.warn("Failed to convert loop data from protobuf Value:", error);
|
|
16780
|
+
return null;
|
|
18419
16781
|
}
|
|
18420
16782
|
}
|
|
18421
|
-
return loopObj;
|
|
18422
16783
|
}
|
|
18423
16784
|
return null;
|
|
18424
16785
|
}
|
|
@@ -18682,7 +17043,7 @@ var Step = class _Step {
|
|
|
18682
17043
|
this.error = props.error;
|
|
18683
17044
|
this.log = props.log;
|
|
18684
17045
|
this.inputsList = props.inputsList;
|
|
18685
|
-
this.
|
|
17046
|
+
this.config = props.config;
|
|
18686
17047
|
this.output = props.output;
|
|
18687
17048
|
this.startAt = props.startAt;
|
|
18688
17049
|
this.endAt = props.endAt;
|
|
@@ -18700,299 +17061,102 @@ var Step = class _Step {
|
|
|
18700
17061
|
error: this.error,
|
|
18701
17062
|
log: this.log,
|
|
18702
17063
|
inputsList: this.inputsList,
|
|
18703
|
-
|
|
17064
|
+
config: this.config,
|
|
18704
17065
|
output: this.output,
|
|
18705
17066
|
startAt: this.startAt,
|
|
18706
17067
|
endAt: this.endAt
|
|
18707
17068
|
};
|
|
18708
17069
|
}
|
|
18709
17070
|
static getOutput(step) {
|
|
18710
|
-
const
|
|
18711
|
-
|
|
18712
|
-
|
|
18713
|
-
|
|
18714
|
-
|
|
18715
|
-
|
|
18716
|
-
|
|
18717
|
-
|
|
18718
|
-
|
|
18719
|
-
|
|
18720
|
-
|
|
18721
|
-
|
|
18722
|
-
|
|
18723
|
-
|
|
18724
|
-
|
|
18725
|
-
|
|
18726
|
-
|
|
18727
|
-
if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
|
|
18728
|
-
if (stepObj.contractRead)
|
|
18729
|
-
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
|
|
18730
|
-
if (stepObj.contractWrite)
|
|
18731
|
-
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
|
|
18732
|
-
if (stepObj.customCode)
|
|
18733
|
-
return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
|
|
18734
|
-
if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
|
|
18735
|
-
if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
|
|
18736
|
-
if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
|
|
18737
|
-
if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
|
|
18738
|
-
return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
|
|
18739
|
-
};
|
|
18740
|
-
switch (getOutputDataCase()) {
|
|
18741
|
-
case avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET:
|
|
18742
|
-
return void 0;
|
|
18743
|
-
// Trigger outputs
|
|
17071
|
+
const outputData = this.extractOutputData(step);
|
|
17072
|
+
if (!outputData) return null;
|
|
17073
|
+
if (typeof outputData.hasData === "function" && outputData.hasData()) {
|
|
17074
|
+
try {
|
|
17075
|
+
return convertProtobufValueToJs(outputData.getData());
|
|
17076
|
+
} catch (error) {
|
|
17077
|
+
console.warn("Failed to convert protobuf Value to JavaScript:", error);
|
|
17078
|
+
return outputData.getData();
|
|
17079
|
+
}
|
|
17080
|
+
} else if (outputData.data) {
|
|
17081
|
+
return typeof outputData.data.getKindCase === "function" ? convertProtobufValueToJs(outputData.data) : outputData.data;
|
|
17082
|
+
}
|
|
17083
|
+
return null;
|
|
17084
|
+
}
|
|
17085
|
+
static extractOutputData(step) {
|
|
17086
|
+
const outputCase = this.getOutputDataCase(step);
|
|
17087
|
+
switch (outputCase) {
|
|
18744
17088
|
case avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER:
|
|
18745
|
-
|
|
18746
|
-
return { data: blockTrigger };
|
|
18747
|
-
// ✅ Use standard structure
|
|
17089
|
+
return typeof step.getBlockTrigger === "function" ? step.getBlockTrigger() : step.blockTrigger;
|
|
18748
17090
|
case avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER:
|
|
18749
|
-
|
|
18750
|
-
return { data: fixedTimeTrigger };
|
|
18751
|
-
// ✅ Use standard structure
|
|
17091
|
+
return typeof step.getFixedTimeTrigger === "function" ? step.getFixedTimeTrigger() : step.fixedTimeTrigger;
|
|
18752
17092
|
case avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER:
|
|
18753
|
-
|
|
18754
|
-
return { data: cronTrigger };
|
|
18755
|
-
// ✅ Use standard structure
|
|
17093
|
+
return typeof step.getCronTrigger === "function" ? step.getCronTrigger() : step.cronTrigger;
|
|
18756
17094
|
case avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER:
|
|
18757
|
-
|
|
18758
|
-
|
|
18759
|
-
|
|
18760
|
-
try {
|
|
18761
|
-
const eventData = convertProtobufValueToJs(
|
|
18762
|
-
eventTrigger.getData()
|
|
18763
|
-
);
|
|
18764
|
-
return { data: eventData };
|
|
18765
|
-
} catch (error) {
|
|
18766
|
-
console.warn(
|
|
18767
|
-
"Failed to convert event trigger data from protobuf Value:",
|
|
18768
|
-
error
|
|
18769
|
-
);
|
|
18770
|
-
return { data: eventTrigger.getData() };
|
|
18771
|
-
}
|
|
18772
|
-
} else if (eventTrigger.data) {
|
|
18773
|
-
const eventData = typeof eventTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(eventTrigger.data) : eventTrigger.data;
|
|
18774
|
-
return { data: eventData };
|
|
18775
|
-
}
|
|
18776
|
-
if (typeof eventTrigger.hasEvmLog === "function" && eventTrigger.hasEvmLog()) {
|
|
18777
|
-
return { data: eventTrigger.getEvmLog()?.toObject() };
|
|
18778
|
-
} else if (typeof eventTrigger.hasTransferLog === "function" && eventTrigger.hasTransferLog()) {
|
|
18779
|
-
return { data: eventTrigger.getTransferLog()?.toObject() };
|
|
18780
|
-
} else if (eventTrigger.evmLog) {
|
|
18781
|
-
return { data: eventTrigger.evmLog };
|
|
18782
|
-
} else if (eventTrigger.transferLog) {
|
|
18783
|
-
return { data: eventTrigger.transferLog };
|
|
18784
|
-
}
|
|
18785
|
-
}
|
|
18786
|
-
return { data: null };
|
|
18787
|
-
// ✅ Use standard structure
|
|
18788
|
-
case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER: {
|
|
18789
|
-
const manualTrigger = typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
|
|
18790
|
-
if (manualTrigger) {
|
|
18791
|
-
if (typeof manualTrigger.hasData === "function" && manualTrigger.hasData()) {
|
|
18792
|
-
try {
|
|
18793
|
-
return convertProtobufValueToJs(manualTrigger.getData());
|
|
18794
|
-
} catch (error) {
|
|
18795
|
-
console.warn(
|
|
18796
|
-
"Failed to convert manual trigger data from protobuf Value:",
|
|
18797
|
-
error
|
|
18798
|
-
);
|
|
18799
|
-
return manualTrigger.getData();
|
|
18800
|
-
}
|
|
18801
|
-
} else if (manualTrigger.data) {
|
|
18802
|
-
return typeof manualTrigger.data.getKindCase === "function" ? convertProtobufValueToJs(manualTrigger.data) : manualTrigger.data;
|
|
18803
|
-
}
|
|
18804
|
-
}
|
|
18805
|
-
return null;
|
|
18806
|
-
}
|
|
18807
|
-
// Node outputs - RESTORE MISSING CASES
|
|
17095
|
+
return typeof step.getEventTrigger === "function" ? step.getEventTrigger() : step.eventTrigger;
|
|
17096
|
+
case avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER:
|
|
17097
|
+
return typeof step.getManualTrigger === "function" ? step.getManualTrigger() : step.manualTrigger;
|
|
18808
17098
|
case avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER:
|
|
18809
|
-
return typeof step.getEthTransfer === "function" ? step.getEthTransfer()
|
|
18810
|
-
case avs_pb20.Execution.Step.OutputDataCase.
|
|
18811
|
-
|
|
18812
|
-
|
|
18813
|
-
|
|
18814
|
-
|
|
18815
|
-
|
|
18816
|
-
|
|
18817
|
-
|
|
18818
|
-
|
|
18819
|
-
|
|
18820
|
-
return typeof customCodeOutput.data.getKindCase === "function" ? convertProtobufValueToJs(customCodeOutput.data) : customCodeOutput.data;
|
|
18821
|
-
}
|
|
18822
|
-
}
|
|
18823
|
-
return void 0;
|
|
18824
|
-
}
|
|
18825
|
-
case avs_pb20.Execution.Step.OutputDataCase.REST_API: {
|
|
18826
|
-
const restApiOutput = typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
|
|
18827
|
-
if (restApiOutput) {
|
|
18828
|
-
if (typeof restApiOutput.hasData === "function" && restApiOutput.hasData()) {
|
|
18829
|
-
try {
|
|
18830
|
-
return convertProtobufValueToJs(restApiOutput.getData());
|
|
18831
|
-
} catch {
|
|
18832
|
-
return restApiOutput.getData();
|
|
18833
|
-
}
|
|
18834
|
-
} else if (restApiOutput.data) {
|
|
18835
|
-
return typeof restApiOutput.data.getKindCase === "function" ? convertProtobufValueToJs(restApiOutput.data) : restApiOutput.data;
|
|
18836
|
-
}
|
|
18837
|
-
}
|
|
18838
|
-
return void 0;
|
|
18839
|
-
}
|
|
17099
|
+
return typeof step.getEthTransfer === "function" ? step.getEthTransfer() : step.ethTransfer;
|
|
17100
|
+
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL:
|
|
17101
|
+
return typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
|
|
17102
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ:
|
|
17103
|
+
return typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
|
|
17104
|
+
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE:
|
|
17105
|
+
return typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
|
|
17106
|
+
case avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE:
|
|
17107
|
+
return typeof step.getCustomCode === "function" ? step.getCustomCode() : step.customCode;
|
|
17108
|
+
case avs_pb20.Execution.Step.OutputDataCase.REST_API:
|
|
17109
|
+
return typeof step.getRestApi === "function" ? step.getRestApi() : step.restApi;
|
|
18840
17110
|
case avs_pb20.Execution.Step.OutputDataCase.BRANCH:
|
|
18841
|
-
return typeof step.getBranch === "function" ? step.getBranch()
|
|
18842
|
-
case avs_pb20.Execution.Step.OutputDataCase.
|
|
18843
|
-
|
|
18844
|
-
|
|
18845
|
-
|
|
18846
|
-
try {
|
|
18847
|
-
return JSON.parse(loopOutput.getData());
|
|
18848
|
-
} catch {
|
|
18849
|
-
return loopOutput.getData();
|
|
18850
|
-
}
|
|
18851
|
-
} else if (loopOutput.data) {
|
|
18852
|
-
try {
|
|
18853
|
-
return typeof loopOutput.data === "string" ? JSON.parse(loopOutput.data) : loopOutput.data;
|
|
18854
|
-
} catch {
|
|
18855
|
-
return loopOutput.data;
|
|
18856
|
-
}
|
|
18857
|
-
}
|
|
18858
|
-
}
|
|
18859
|
-
return void 0;
|
|
18860
|
-
}
|
|
18861
|
-
case avs_pb20.Execution.Step.OutputDataCase.GRAPHQL: {
|
|
18862
|
-
const graphqlOutput = typeof step.getGraphql === "function" ? step.getGraphql() : step.graphql;
|
|
18863
|
-
if (graphqlOutput) {
|
|
18864
|
-
try {
|
|
18865
|
-
return typeof graphqlOutput.toObject === "function" ? graphqlOutput.toObject() : graphqlOutput;
|
|
18866
|
-
} catch {
|
|
18867
|
-
return void 0;
|
|
18868
|
-
}
|
|
18869
|
-
}
|
|
18870
|
-
return void 0;
|
|
18871
|
-
}
|
|
18872
|
-
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ: {
|
|
18873
|
-
const contractReadOutput = typeof step.getContractRead === "function" ? step.getContractRead() : step.contractRead;
|
|
18874
|
-
if (contractReadOutput) {
|
|
18875
|
-
if (typeof contractReadOutput.hasData === "function" && contractReadOutput.hasData()) {
|
|
18876
|
-
try {
|
|
18877
|
-
const data = convertProtobufValueToJs(
|
|
18878
|
-
contractReadOutput.getData()
|
|
18879
|
-
);
|
|
18880
|
-
if (Array.isArray(data)) {
|
|
18881
|
-
return data;
|
|
18882
|
-
} else {
|
|
18883
|
-
return [data];
|
|
18884
|
-
}
|
|
18885
|
-
} catch (error) {
|
|
18886
|
-
console.warn(
|
|
18887
|
-
"Failed to convert contract read data from protobuf Value:",
|
|
18888
|
-
error
|
|
18889
|
-
);
|
|
18890
|
-
return contractReadOutput.getData();
|
|
18891
|
-
}
|
|
18892
|
-
} else if (contractReadOutput.data) {
|
|
18893
|
-
const data = typeof contractReadOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractReadOutput.data) : contractReadOutput.data;
|
|
18894
|
-
if (Array.isArray(data)) {
|
|
18895
|
-
return data;
|
|
18896
|
-
} else {
|
|
18897
|
-
return [data];
|
|
18898
|
-
}
|
|
18899
|
-
}
|
|
18900
|
-
const outputObj = typeof contractReadOutput.toObject === "function" ? contractReadOutput.toObject() : contractReadOutput;
|
|
18901
|
-
if (outputObj && outputObj.resultsList) {
|
|
18902
|
-
return outputObj.resultsList.map((result) => ({
|
|
18903
|
-
methodName: result.methodName,
|
|
18904
|
-
success: result.success,
|
|
18905
|
-
error: result.error,
|
|
18906
|
-
data: result.dataList || []
|
|
18907
|
-
}));
|
|
18908
|
-
}
|
|
18909
|
-
return outputObj;
|
|
18910
|
-
}
|
|
18911
|
-
return void 0;
|
|
18912
|
-
}
|
|
18913
|
-
case avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE: {
|
|
18914
|
-
const contractWriteOutput = typeof step.getContractWrite === "function" ? step.getContractWrite() : step.contractWrite;
|
|
18915
|
-
if (contractWriteOutput) {
|
|
18916
|
-
if (typeof contractWriteOutput.hasData === "function" && contractWriteOutput.hasData()) {
|
|
18917
|
-
try {
|
|
18918
|
-
const data = convertProtobufValueToJs(
|
|
18919
|
-
contractWriteOutput.getData()
|
|
18920
|
-
);
|
|
18921
|
-
if (Array.isArray(data)) {
|
|
18922
|
-
return data;
|
|
18923
|
-
} else {
|
|
18924
|
-
return [data];
|
|
18925
|
-
}
|
|
18926
|
-
} catch (error) {
|
|
18927
|
-
console.warn(
|
|
18928
|
-
"Failed to convert contract write data from protobuf Value:",
|
|
18929
|
-
error
|
|
18930
|
-
);
|
|
18931
|
-
return contractWriteOutput.getData();
|
|
18932
|
-
}
|
|
18933
|
-
} else if (contractWriteOutput.data) {
|
|
18934
|
-
const data = typeof contractWriteOutput.data.getKindCase === "function" ? convertProtobufValueToJs(contractWriteOutput.data) : contractWriteOutput.data;
|
|
18935
|
-
if (Array.isArray(data)) {
|
|
18936
|
-
return data;
|
|
18937
|
-
} else {
|
|
18938
|
-
return [data];
|
|
18939
|
-
}
|
|
18940
|
-
}
|
|
18941
|
-
const outputObj = typeof contractWriteOutput.toObject === "function" ? contractWriteOutput.toObject() : contractWriteOutput;
|
|
18942
|
-
if (outputObj && outputObj.resultsList) {
|
|
18943
|
-
return outputObj.resultsList.map((result) => ({
|
|
18944
|
-
methodName: result.methodName,
|
|
18945
|
-
success: result.success,
|
|
18946
|
-
error: result.error,
|
|
18947
|
-
transaction: result.transaction,
|
|
18948
|
-
events: result.eventsList || [],
|
|
18949
|
-
returnData: result.returnData,
|
|
18950
|
-
inputData: result.inputData
|
|
18951
|
-
}));
|
|
18952
|
-
}
|
|
18953
|
-
return outputObj;
|
|
18954
|
-
}
|
|
18955
|
-
return void 0;
|
|
18956
|
-
}
|
|
18957
|
-
case avs_pb20.Execution.Step.OutputDataCase.FILTER: {
|
|
18958
|
-
const filterOutput = typeof step.getFilter === "function" ? step.getFilter() : step.filter;
|
|
18959
|
-
if (filterOutput) {
|
|
18960
|
-
try {
|
|
18961
|
-
return typeof filterOutput.toObject === "function" ? filterOutput.toObject() : filterOutput;
|
|
18962
|
-
} catch {
|
|
18963
|
-
return void 0;
|
|
18964
|
-
}
|
|
18965
|
-
}
|
|
18966
|
-
return void 0;
|
|
18967
|
-
}
|
|
17111
|
+
return typeof step.getBranch === "function" ? step.getBranch() : step.branch;
|
|
17112
|
+
case avs_pb20.Execution.Step.OutputDataCase.FILTER:
|
|
17113
|
+
return typeof step.getFilter === "function" ? step.getFilter() : step.filter;
|
|
17114
|
+
case avs_pb20.Execution.Step.OutputDataCase.LOOP:
|
|
17115
|
+
return typeof step.getLoop === "function" ? step.getLoop() : step.loop;
|
|
18968
17116
|
default:
|
|
18969
|
-
|
|
18970
|
-
`Unhandled output data type in Step.getOutput: ${step.getOutputDataCase()}`
|
|
18971
|
-
);
|
|
18972
|
-
return void 0;
|
|
17117
|
+
return null;
|
|
18973
17118
|
}
|
|
18974
17119
|
}
|
|
17120
|
+
static getOutputDataCase(step) {
|
|
17121
|
+
if (typeof step.getOutputDataCase === "function") {
|
|
17122
|
+
return step.getOutputDataCase();
|
|
17123
|
+
}
|
|
17124
|
+
const stepObj = step;
|
|
17125
|
+
if (stepObj.blockTrigger)
|
|
17126
|
+
return avs_pb20.Execution.Step.OutputDataCase.BLOCK_TRIGGER;
|
|
17127
|
+
if (stepObj.fixedTimeTrigger)
|
|
17128
|
+
return avs_pb20.Execution.Step.OutputDataCase.FIXED_TIME_TRIGGER;
|
|
17129
|
+
if (stepObj.cronTrigger)
|
|
17130
|
+
return avs_pb20.Execution.Step.OutputDataCase.CRON_TRIGGER;
|
|
17131
|
+
if (stepObj.eventTrigger)
|
|
17132
|
+
return avs_pb20.Execution.Step.OutputDataCase.EVENT_TRIGGER;
|
|
17133
|
+
if (stepObj.manualTrigger)
|
|
17134
|
+
return avs_pb20.Execution.Step.OutputDataCase.MANUAL_TRIGGER;
|
|
17135
|
+
if (stepObj.ethTransfer)
|
|
17136
|
+
return avs_pb20.Execution.Step.OutputDataCase.ETH_TRANSFER;
|
|
17137
|
+
if (stepObj.graphql) return avs_pb20.Execution.Step.OutputDataCase.GRAPHQL;
|
|
17138
|
+
if (stepObj.contractRead)
|
|
17139
|
+
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_READ;
|
|
17140
|
+
if (stepObj.contractWrite)
|
|
17141
|
+
return avs_pb20.Execution.Step.OutputDataCase.CONTRACT_WRITE;
|
|
17142
|
+
if (stepObj.customCode)
|
|
17143
|
+
return avs_pb20.Execution.Step.OutputDataCase.CUSTOM_CODE;
|
|
17144
|
+
if (stepObj.restApi) return avs_pb20.Execution.Step.OutputDataCase.REST_API;
|
|
17145
|
+
if (stepObj.branch) return avs_pb20.Execution.Step.OutputDataCase.BRANCH;
|
|
17146
|
+
if (stepObj.filter) return avs_pb20.Execution.Step.OutputDataCase.FILTER;
|
|
17147
|
+
if (stepObj.loop) return avs_pb20.Execution.Step.OutputDataCase.LOOP;
|
|
17148
|
+
return avs_pb20.Execution.Step.OutputDataCase.OUTPUT_DATA_NOT_SET;
|
|
17149
|
+
}
|
|
18975
17150
|
static fromResponse(step) {
|
|
18976
|
-
let
|
|
18977
|
-
if (typeof step.
|
|
18978
|
-
const
|
|
18979
|
-
if (
|
|
17151
|
+
let configData = void 0;
|
|
17152
|
+
if (typeof step.hasConfig === "function" && step.hasConfig()) {
|
|
17153
|
+
const configValue = step.getConfig();
|
|
17154
|
+
if (configValue) {
|
|
18980
17155
|
try {
|
|
18981
|
-
|
|
17156
|
+
configData = convertProtobufValueToJs(configValue);
|
|
18982
17157
|
} catch (error) {
|
|
18983
17158
|
console.warn("Failed to convert protobuf input value:", error);
|
|
18984
|
-
|
|
18985
|
-
}
|
|
18986
|
-
}
|
|
18987
|
-
} else if (step.input) {
|
|
18988
|
-
const inputValue = step.input;
|
|
18989
|
-
if (typeof inputValue === "object" && !inputValue.getKindCase) {
|
|
18990
|
-
inputData = inputValue;
|
|
18991
|
-
} else {
|
|
18992
|
-
try {
|
|
18993
|
-
inputData = convertProtobufValueToJs(inputValue);
|
|
18994
|
-
} catch (error) {
|
|
18995
|
-
inputData = inputValue;
|
|
17159
|
+
configData = configValue;
|
|
18996
17160
|
}
|
|
18997
17161
|
}
|
|
18998
17162
|
}
|
|
@@ -19013,7 +17177,7 @@ var Step = class _Step {
|
|
|
19013
17177
|
error: getError(),
|
|
19014
17178
|
log: getLog(),
|
|
19015
17179
|
inputsList: getInputsList(),
|
|
19016
|
-
|
|
17180
|
+
config: configData,
|
|
19017
17181
|
output: _Step.getOutput(step),
|
|
19018
17182
|
startAt: getStartAt(),
|
|
19019
17183
|
endAt: getEndAt()
|
|
@@ -19093,6 +17257,7 @@ var secret_default = Secret;
|
|
|
19093
17257
|
|
|
19094
17258
|
// src/index.ts
|
|
19095
17259
|
var import_types20 = require("@avaprotocol/types");
|
|
17260
|
+
var google_protobuf_struct_pb = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
19096
17261
|
var import_types21 = require("@avaprotocol/types");
|
|
19097
17262
|
var BaseClient = class {
|
|
19098
17263
|
constructor(opts) {
|
|
@@ -19623,30 +17788,43 @@ var Client = class extends BaseClient {
|
|
|
19623
17788
|
switch (triggerData.type) {
|
|
19624
17789
|
case import_types20.TriggerType.FixedTime: {
|
|
19625
17790
|
const fixedTimeOutput = new avs_pb22.FixedTimeTrigger.Output();
|
|
19626
|
-
|
|
19627
|
-
|
|
17791
|
+
const triggerOutputData = {
|
|
17792
|
+
timestamp: triggerData.timestamp,
|
|
17793
|
+
timestampIso: triggerData.timestampIso
|
|
17794
|
+
};
|
|
17795
|
+
const dataValue = new google_protobuf_struct_pb.Value();
|
|
17796
|
+
dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
|
|
17797
|
+
fixedTimeOutput.setData(dataValue);
|
|
19628
17798
|
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
19629
17799
|
break;
|
|
19630
17800
|
}
|
|
19631
17801
|
case import_types20.TriggerType.Cron: {
|
|
19632
17802
|
const cronOutput = new avs_pb22.CronTrigger.Output();
|
|
19633
|
-
|
|
19634
|
-
|
|
17803
|
+
const triggerOutputData = {
|
|
17804
|
+
timestamp: triggerData.timestamp,
|
|
17805
|
+
timestampIso: triggerData.timestampIso
|
|
17806
|
+
};
|
|
17807
|
+
const dataValue = new google_protobuf_struct_pb.Value();
|
|
17808
|
+
dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
|
|
17809
|
+
cronOutput.setData(dataValue);
|
|
19635
17810
|
request.setCronTrigger(cronOutput);
|
|
19636
17811
|
break;
|
|
19637
17812
|
}
|
|
19638
17813
|
case import_types20.TriggerType.Block: {
|
|
19639
17814
|
const blockData = triggerData;
|
|
19640
17815
|
const blockOutput = new avs_pb22.BlockTrigger.Output();
|
|
19641
|
-
|
|
19642
|
-
|
|
19643
|
-
|
|
19644
|
-
|
|
19645
|
-
|
|
19646
|
-
|
|
19647
|
-
|
|
19648
|
-
|
|
19649
|
-
|
|
17816
|
+
const triggerOutputData = {
|
|
17817
|
+
blockNumber: blockData.blockNumber,
|
|
17818
|
+
blockHash: blockData.blockHash || "",
|
|
17819
|
+
timestamp: blockData.timestamp || 0,
|
|
17820
|
+
parentHash: blockData.parentHash || "",
|
|
17821
|
+
difficulty: blockData.difficulty || "",
|
|
17822
|
+
gasLimit: blockData.gasLimit || 0,
|
|
17823
|
+
gasUsed: blockData.gasUsed || 0
|
|
17824
|
+
};
|
|
17825
|
+
const dataValue = new google_protobuf_struct_pb.Value();
|
|
17826
|
+
dataValue.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(triggerOutputData));
|
|
17827
|
+
blockOutput.setData(dataValue);
|
|
19650
17828
|
request.setBlockTrigger(blockOutput);
|
|
19651
17829
|
break;
|
|
19652
17830
|
}
|
|
@@ -19667,18 +17845,6 @@ var Client = class extends BaseClient {
|
|
|
19667
17845
|
const protobufValue = convertJSValueToProtobuf(manualData.data);
|
|
19668
17846
|
manualOutput.setData(protobufValue);
|
|
19669
17847
|
}
|
|
19670
|
-
if (manualData.headers) {
|
|
19671
|
-
const headersMap = manualOutput.getHeadersMap();
|
|
19672
|
-
Object.entries(manualData.headers).forEach(([key, value]) => {
|
|
19673
|
-
headersMap.set(key, value);
|
|
19674
|
-
});
|
|
19675
|
-
}
|
|
19676
|
-
if (manualData.pathParams) {
|
|
19677
|
-
const pathParamsMap = manualOutput.getPathparamsMap();
|
|
19678
|
-
Object.entries(manualData.pathParams).forEach(([key, value]) => {
|
|
19679
|
-
pathParamsMap.set(key, value);
|
|
19680
|
-
});
|
|
19681
|
-
}
|
|
19682
17848
|
request.setManualTrigger(manualOutput);
|
|
19683
17849
|
break;
|
|
19684
17850
|
}
|
|
@@ -19945,23 +18111,14 @@ var Client = class extends BaseClient {
|
|
|
19945
18111
|
let metadata = void 0;
|
|
19946
18112
|
const metadataValue = result.getMetadata();
|
|
19947
18113
|
if (metadataValue) {
|
|
19948
|
-
|
|
19949
|
-
|
|
19950
|
-
|
|
19951
|
-
|
|
19952
|
-
|
|
19953
|
-
|
|
19954
|
-
|
|
19955
|
-
|
|
19956
|
-
try {
|
|
19957
|
-
metadata = convertProtobufValueToJs(metadataValue);
|
|
19958
|
-
} catch (error) {
|
|
19959
|
-
console.warn(
|
|
19960
|
-
"Failed to convert metadata from protobuf Value:",
|
|
19961
|
-
error
|
|
19962
|
-
);
|
|
19963
|
-
metadata = metadataValue;
|
|
19964
|
-
}
|
|
18114
|
+
try {
|
|
18115
|
+
metadata = convertProtobufValueToJs(metadataValue);
|
|
18116
|
+
} catch (error) {
|
|
18117
|
+
console.warn(
|
|
18118
|
+
"Failed to convert metadata from protobuf Value:",
|
|
18119
|
+
error
|
|
18120
|
+
);
|
|
18121
|
+
metadata = metadataValue;
|
|
19965
18122
|
}
|
|
19966
18123
|
}
|
|
19967
18124
|
return {
|