@avaprotocol/sdk-js 2.6.1 → 2.6.3
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 +16 -0
- package/dist/index.js +322 -214
- package/dist/index.mjs +322 -214
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +22 -26
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +46 -9
- package/dist/models/node/filter.d.ts +1 -1
- package/dist/models/node/filter.d.ts.map +1 -1
- package/dist/models/node/filter.js +5 -14
- package/dist/models/node/loop.d.ts.map +1 -1
- package/dist/models/node/loop.js +28 -19
- package/dist/models/trigger/event.d.ts.map +1 -1
- package/dist/models/trigger/event.js +17 -5
- package/package.json +2 -2
- package/dist/auth.d.ts +0 -2
- package/dist/auth.d.ts.map +0 -1
- package/dist/auth.js +0 -10
- package/dist/config.d.ts +0 -9
- package/dist/index.d.ts +0 -351
- package/dist/models/edge.d.ts +0 -12
- package/dist/models/execution.d.ts +0 -20
- package/dist/models/node/branch.d.ts +0 -11
- package/dist/models/node/contractRead.d.ts +0 -26
- package/dist/models/node/contractWrite.d.ts +0 -26
- package/dist/models/node/customCode.d.ts +0 -20
- package/dist/models/node/ethTransfer.d.ts +0 -20
- package/dist/models/node/factory.d.ts +0 -23
- package/dist/models/node/graphqlQuery.d.ts +0 -21
- package/dist/models/node/interface.d.ts +0 -20
- package/dist/models/node/loop.d.ts +0 -15
- package/dist/models/node/restApi.d.ts +0 -22
- package/dist/models/secret.d.ts +0 -16
- package/dist/models/step.d.ts +0 -27
- package/dist/models/trigger/block.d.ts +0 -22
- package/dist/models/trigger/cron.d.ts +0 -23
- package/dist/models/trigger/event.d.ts +0 -22
- package/dist/models/trigger/factory.d.ts +0 -27
- package/dist/models/trigger/fixedTime.d.ts +0 -23
- package/dist/models/trigger/interface.d.ts +0 -19
- package/dist/models/trigger/manual.d.ts +0 -16
- package/dist/models/workflow.d.ts +0 -47
- package/dist/utils.d.ts +0 -72
package/dist/index.js
CHANGED
|
@@ -55,8 +55,8 @@ var require_avs_pb = __commonJS({
|
|
|
55
55
|
goog.object.extend(proto, google_protobuf_wrappers_pb);
|
|
56
56
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
57
57
|
goog.object.extend(proto, google_protobuf_any_pb);
|
|
58
|
-
var
|
|
59
|
-
goog.object.extend(proto,
|
|
58
|
+
var google_protobuf_struct_pb5 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
59
|
+
goog.object.extend(proto, google_protobuf_struct_pb5);
|
|
60
60
|
goog.exportSymbol("proto.aggregator.BlockTrigger", null, global);
|
|
61
61
|
goog.exportSymbol("proto.aggregator.BlockTrigger.Config", null, global);
|
|
62
62
|
goog.exportSymbol("proto.aggregator.BlockTrigger.Output", null, global);
|
|
@@ -1433,7 +1433,7 @@ var require_avs_pb = __commonJS({
|
|
|
1433
1433
|
};
|
|
1434
1434
|
proto.aggregator.FixedTimeTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1435
1435
|
var f, obj = {
|
|
1436
|
-
data: (f = msg.getData()) &&
|
|
1436
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
1437
1437
|
};
|
|
1438
1438
|
if (includeInstance) {
|
|
1439
1439
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1454,8 +1454,8 @@ var require_avs_pb = __commonJS({
|
|
|
1454
1454
|
var field = reader.getFieldNumber();
|
|
1455
1455
|
switch (field) {
|
|
1456
1456
|
case 1:
|
|
1457
|
-
var value = new
|
|
1458
|
-
reader.readMessage(value,
|
|
1457
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
1458
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
1459
1459
|
msg.setData(value);
|
|
1460
1460
|
break;
|
|
1461
1461
|
default:
|
|
@@ -1477,14 +1477,14 @@ var require_avs_pb = __commonJS({
|
|
|
1477
1477
|
writer.writeMessage(
|
|
1478
1478
|
1,
|
|
1479
1479
|
f,
|
|
1480
|
-
|
|
1480
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
1481
1481
|
);
|
|
1482
1482
|
}
|
|
1483
1483
|
};
|
|
1484
1484
|
proto.aggregator.FixedTimeTrigger.Output.prototype.getData = function() {
|
|
1485
1485
|
return (
|
|
1486
1486
|
/** @type{?proto.google.protobuf.Value} */
|
|
1487
|
-
jspb.Message.getWrapperField(this,
|
|
1487
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
1488
1488
|
);
|
|
1489
1489
|
};
|
|
1490
1490
|
proto.aggregator.FixedTimeTrigger.Output.prototype.setData = function(value) {
|
|
@@ -1642,7 +1642,7 @@ var require_avs_pb = __commonJS({
|
|
|
1642
1642
|
};
|
|
1643
1643
|
proto.aggregator.CronTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1644
1644
|
var f, obj = {
|
|
1645
|
-
data: (f = msg.getData()) &&
|
|
1645
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
1646
1646
|
};
|
|
1647
1647
|
if (includeInstance) {
|
|
1648
1648
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1663,8 +1663,8 @@ var require_avs_pb = __commonJS({
|
|
|
1663
1663
|
var field = reader.getFieldNumber();
|
|
1664
1664
|
switch (field) {
|
|
1665
1665
|
case 1:
|
|
1666
|
-
var value = new
|
|
1667
|
-
reader.readMessage(value,
|
|
1666
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
1667
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
1668
1668
|
msg.setData(value);
|
|
1669
1669
|
break;
|
|
1670
1670
|
default:
|
|
@@ -1686,14 +1686,14 @@ var require_avs_pb = __commonJS({
|
|
|
1686
1686
|
writer.writeMessage(
|
|
1687
1687
|
1,
|
|
1688
1688
|
f,
|
|
1689
|
-
|
|
1689
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
1690
1690
|
);
|
|
1691
1691
|
}
|
|
1692
1692
|
};
|
|
1693
1693
|
proto.aggregator.CronTrigger.Output.prototype.getData = function() {
|
|
1694
1694
|
return (
|
|
1695
1695
|
/** @type{?proto.google.protobuf.Value} */
|
|
1696
|
-
jspb.Message.getWrapperField(this,
|
|
1696
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
1697
1697
|
);
|
|
1698
1698
|
};
|
|
1699
1699
|
proto.aggregator.CronTrigger.Output.prototype.setData = function(value) {
|
|
@@ -1844,7 +1844,7 @@ var require_avs_pb = __commonJS({
|
|
|
1844
1844
|
};
|
|
1845
1845
|
proto.aggregator.BlockTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1846
1846
|
var f, obj = {
|
|
1847
|
-
data: (f = msg.getData()) &&
|
|
1847
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
1848
1848
|
};
|
|
1849
1849
|
if (includeInstance) {
|
|
1850
1850
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1865,8 +1865,8 @@ var require_avs_pb = __commonJS({
|
|
|
1865
1865
|
var field = reader.getFieldNumber();
|
|
1866
1866
|
switch (field) {
|
|
1867
1867
|
case 1:
|
|
1868
|
-
var value = new
|
|
1869
|
-
reader.readMessage(value,
|
|
1868
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
1869
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
1870
1870
|
msg.setData(value);
|
|
1871
1871
|
break;
|
|
1872
1872
|
default:
|
|
@@ -1888,14 +1888,14 @@ var require_avs_pb = __commonJS({
|
|
|
1888
1888
|
writer.writeMessage(
|
|
1889
1889
|
1,
|
|
1890
1890
|
f,
|
|
1891
|
-
|
|
1891
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
1892
1892
|
);
|
|
1893
1893
|
}
|
|
1894
1894
|
};
|
|
1895
1895
|
proto.aggregator.BlockTrigger.Output.prototype.getData = function() {
|
|
1896
1896
|
return (
|
|
1897
1897
|
/** @type{?proto.google.protobuf.Value} */
|
|
1898
|
-
jspb.Message.getWrapperField(this,
|
|
1898
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
1899
1899
|
);
|
|
1900
1900
|
};
|
|
1901
1901
|
proto.aggregator.BlockTrigger.Output.prototype.setData = function(value) {
|
|
@@ -1976,7 +1976,7 @@ var require_avs_pb = __commonJS({
|
|
|
1976
1976
|
);
|
|
1977
1977
|
}
|
|
1978
1978
|
};
|
|
1979
|
-
proto.aggregator.EventTrigger.Query.repeatedFields_ = [1, 2, 5, 6];
|
|
1979
|
+
proto.aggregator.EventTrigger.Query.repeatedFields_ = [1, 2, 4, 5, 6];
|
|
1980
1980
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1981
1981
|
proto.aggregator.EventTrigger.Query.prototype.toObject = function(opt_includeInstance) {
|
|
1982
1982
|
return proto.aggregator.EventTrigger.Query.toObject(opt_includeInstance, this);
|
|
@@ -1990,7 +1990,11 @@ var require_avs_pb = __commonJS({
|
|
|
1990
1990
|
includeInstance
|
|
1991
1991
|
),
|
|
1992
1992
|
maxEventsPerBlock: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
1993
|
-
|
|
1993
|
+
contractAbiList: jspb.Message.toObjectList(
|
|
1994
|
+
msg.getContractAbiList(),
|
|
1995
|
+
google_protobuf_struct_pb5.Value.toObject,
|
|
1996
|
+
includeInstance
|
|
1997
|
+
),
|
|
1994
1998
|
conditionsList: jspb.Message.toObjectList(
|
|
1995
1999
|
msg.getConditionsList(),
|
|
1996
2000
|
proto.aggregator.EventCondition.toObject,
|
|
@@ -2040,11 +2044,9 @@ var require_avs_pb = __commonJS({
|
|
|
2040
2044
|
msg.setMaxEventsPerBlock(value);
|
|
2041
2045
|
break;
|
|
2042
2046
|
case 4:
|
|
2043
|
-
var value = (
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
);
|
|
2047
|
-
msg.setContractAbi(value);
|
|
2047
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
2048
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
2049
|
+
msg.addContractAbi(value);
|
|
2048
2050
|
break;
|
|
2049
2051
|
case 5:
|
|
2050
2052
|
var value = new proto.aggregator.EventCondition();
|
|
@@ -2093,11 +2095,12 @@ var require_avs_pb = __commonJS({
|
|
|
2093
2095
|
f
|
|
2094
2096
|
);
|
|
2095
2097
|
}
|
|
2096
|
-
f = message.
|
|
2098
|
+
f = message.getContractAbiList();
|
|
2097
2099
|
if (f.length > 0) {
|
|
2098
|
-
writer.
|
|
2100
|
+
writer.writeRepeatedMessage(
|
|
2099
2101
|
4,
|
|
2100
|
-
f
|
|
2102
|
+
f,
|
|
2103
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
2101
2104
|
);
|
|
2102
2105
|
}
|
|
2103
2106
|
f = message.getConditionsList();
|
|
@@ -2162,14 +2165,20 @@ var require_avs_pb = __commonJS({
|
|
|
2162
2165
|
proto.aggregator.EventTrigger.Query.prototype.hasMaxEventsPerBlock = function() {
|
|
2163
2166
|
return jspb.Message.getField(this, 3) != null;
|
|
2164
2167
|
};
|
|
2165
|
-
proto.aggregator.EventTrigger.Query.prototype.
|
|
2168
|
+
proto.aggregator.EventTrigger.Query.prototype.getContractAbiList = function() {
|
|
2166
2169
|
return (
|
|
2167
|
-
/** @type
|
|
2168
|
-
jspb.Message.
|
|
2170
|
+
/** @type{!Array<!proto.google.protobuf.Value>} */
|
|
2171
|
+
jspb.Message.getRepeatedWrapperField(this, google_protobuf_struct_pb5.Value, 4)
|
|
2169
2172
|
);
|
|
2170
2173
|
};
|
|
2171
|
-
proto.aggregator.EventTrigger.Query.prototype.
|
|
2172
|
-
return jspb.Message.
|
|
2174
|
+
proto.aggregator.EventTrigger.Query.prototype.setContractAbiList = function(value) {
|
|
2175
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
2176
|
+
};
|
|
2177
|
+
proto.aggregator.EventTrigger.Query.prototype.addContractAbi = function(opt_value, opt_index) {
|
|
2178
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.google.protobuf.Value, opt_index);
|
|
2179
|
+
};
|
|
2180
|
+
proto.aggregator.EventTrigger.Query.prototype.clearContractAbiList = function() {
|
|
2181
|
+
return this.setContractAbiList([]);
|
|
2173
2182
|
};
|
|
2174
2183
|
proto.aggregator.EventTrigger.Query.prototype.getConditionsList = function() {
|
|
2175
2184
|
return (
|
|
@@ -2471,7 +2480,7 @@ var require_avs_pb = __commonJS({
|
|
|
2471
2480
|
};
|
|
2472
2481
|
proto.aggregator.EventTrigger.Output.toObject = function(includeInstance, msg) {
|
|
2473
2482
|
var f, obj = {
|
|
2474
|
-
data: (f = msg.getData()) &&
|
|
2483
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
2475
2484
|
};
|
|
2476
2485
|
if (includeInstance) {
|
|
2477
2486
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2492,8 +2501,8 @@ var require_avs_pb = __commonJS({
|
|
|
2492
2501
|
var field = reader.getFieldNumber();
|
|
2493
2502
|
switch (field) {
|
|
2494
2503
|
case 1:
|
|
2495
|
-
var value = new
|
|
2496
|
-
reader.readMessage(value,
|
|
2504
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
2505
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
2497
2506
|
msg.setData(value);
|
|
2498
2507
|
break;
|
|
2499
2508
|
default:
|
|
@@ -2515,14 +2524,14 @@ var require_avs_pb = __commonJS({
|
|
|
2515
2524
|
writer.writeMessage(
|
|
2516
2525
|
1,
|
|
2517
2526
|
f,
|
|
2518
|
-
|
|
2527
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
2519
2528
|
);
|
|
2520
2529
|
}
|
|
2521
2530
|
};
|
|
2522
2531
|
proto.aggregator.EventTrigger.Output.prototype.getData = function() {
|
|
2523
2532
|
return (
|
|
2524
2533
|
/** @type{?proto.google.protobuf.Value} */
|
|
2525
|
-
jspb.Message.getWrapperField(this,
|
|
2534
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
2526
2535
|
);
|
|
2527
2536
|
};
|
|
2528
2537
|
proto.aggregator.EventTrigger.Output.prototype.setData = function(value) {
|
|
@@ -2609,7 +2618,7 @@ var require_avs_pb = __commonJS({
|
|
|
2609
2618
|
};
|
|
2610
2619
|
proto.aggregator.ManualTrigger.Config.toObject = function(includeInstance, msg) {
|
|
2611
2620
|
var f, obj = {
|
|
2612
|
-
data: (f = msg.getData()) &&
|
|
2621
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
2613
2622
|
headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, void 0) : [],
|
|
2614
2623
|
pathparamsMap: (f = msg.getPathparamsMap()) ? f.toObject(includeInstance, void 0) : []
|
|
2615
2624
|
};
|
|
@@ -2632,8 +2641,8 @@ var require_avs_pb = __commonJS({
|
|
|
2632
2641
|
var field = reader.getFieldNumber();
|
|
2633
2642
|
switch (field) {
|
|
2634
2643
|
case 1:
|
|
2635
|
-
var value = new
|
|
2636
|
-
reader.readMessage(value,
|
|
2644
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
2645
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
2637
2646
|
msg.setData(value);
|
|
2638
2647
|
break;
|
|
2639
2648
|
case 2:
|
|
@@ -2667,7 +2676,7 @@ var require_avs_pb = __commonJS({
|
|
|
2667
2676
|
writer.writeMessage(
|
|
2668
2677
|
1,
|
|
2669
2678
|
f,
|
|
2670
|
-
|
|
2679
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
2671
2680
|
);
|
|
2672
2681
|
}
|
|
2673
2682
|
f = message.getHeadersMap(true);
|
|
@@ -2682,7 +2691,7 @@ var require_avs_pb = __commonJS({
|
|
|
2682
2691
|
proto.aggregator.ManualTrigger.Config.prototype.getData = function() {
|
|
2683
2692
|
return (
|
|
2684
2693
|
/** @type{?proto.google.protobuf.Value} */
|
|
2685
|
-
jspb.Message.getWrapperField(this,
|
|
2694
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
2686
2695
|
);
|
|
2687
2696
|
};
|
|
2688
2697
|
proto.aggregator.ManualTrigger.Config.prototype.setData = function(value) {
|
|
@@ -2730,7 +2739,7 @@ var require_avs_pb = __commonJS({
|
|
|
2730
2739
|
};
|
|
2731
2740
|
proto.aggregator.ManualTrigger.Output.toObject = function(includeInstance, msg) {
|
|
2732
2741
|
var f, obj = {
|
|
2733
|
-
data: (f = msg.getData()) &&
|
|
2742
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
2734
2743
|
};
|
|
2735
2744
|
if (includeInstance) {
|
|
2736
2745
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2751,8 +2760,8 @@ var require_avs_pb = __commonJS({
|
|
|
2751
2760
|
var field = reader.getFieldNumber();
|
|
2752
2761
|
switch (field) {
|
|
2753
2762
|
case 1:
|
|
2754
|
-
var value = new
|
|
2755
|
-
reader.readMessage(value,
|
|
2763
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
2764
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
2756
2765
|
msg.setData(value);
|
|
2757
2766
|
break;
|
|
2758
2767
|
default:
|
|
@@ -2774,14 +2783,14 @@ var require_avs_pb = __commonJS({
|
|
|
2774
2783
|
writer.writeMessage(
|
|
2775
2784
|
1,
|
|
2776
2785
|
f,
|
|
2777
|
-
|
|
2786
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
2778
2787
|
);
|
|
2779
2788
|
}
|
|
2780
2789
|
};
|
|
2781
2790
|
proto.aggregator.ManualTrigger.Output.prototype.getData = function() {
|
|
2782
2791
|
return (
|
|
2783
2792
|
/** @type{?proto.google.protobuf.Value} */
|
|
2784
|
-
jspb.Message.getWrapperField(this,
|
|
2793
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
2785
2794
|
);
|
|
2786
2795
|
};
|
|
2787
2796
|
proto.aggregator.ManualTrigger.Output.prototype.setData = function(value) {
|
|
@@ -3228,7 +3237,7 @@ var require_avs_pb = __commonJS({
|
|
|
3228
3237
|
};
|
|
3229
3238
|
proto.aggregator.ETHTransferNode.Output.toObject = function(includeInstance, msg) {
|
|
3230
3239
|
var f, obj = {
|
|
3231
|
-
data: (f = msg.getData()) &&
|
|
3240
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
3232
3241
|
};
|
|
3233
3242
|
if (includeInstance) {
|
|
3234
3243
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3249,8 +3258,8 @@ var require_avs_pb = __commonJS({
|
|
|
3249
3258
|
var field = reader.getFieldNumber();
|
|
3250
3259
|
switch (field) {
|
|
3251
3260
|
case 1:
|
|
3252
|
-
var value = new
|
|
3253
|
-
reader.readMessage(value,
|
|
3261
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
3262
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3254
3263
|
msg.setData(value);
|
|
3255
3264
|
break;
|
|
3256
3265
|
default:
|
|
@@ -3272,14 +3281,14 @@ var require_avs_pb = __commonJS({
|
|
|
3272
3281
|
writer.writeMessage(
|
|
3273
3282
|
1,
|
|
3274
3283
|
f,
|
|
3275
|
-
|
|
3284
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3276
3285
|
);
|
|
3277
3286
|
}
|
|
3278
3287
|
};
|
|
3279
3288
|
proto.aggregator.ETHTransferNode.Output.prototype.getData = function() {
|
|
3280
3289
|
return (
|
|
3281
3290
|
/** @type{?proto.google.protobuf.Value} */
|
|
3282
|
-
jspb.Message.getWrapperField(this,
|
|
3291
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
3283
3292
|
);
|
|
3284
3293
|
};
|
|
3285
3294
|
proto.aggregator.ETHTransferNode.Output.prototype.setData = function(value) {
|
|
@@ -3360,7 +3369,7 @@ var require_avs_pb = __commonJS({
|
|
|
3360
3369
|
);
|
|
3361
3370
|
}
|
|
3362
3371
|
};
|
|
3363
|
-
proto.aggregator.ContractWriteNode.Config.repeatedFields_ = [4];
|
|
3372
|
+
proto.aggregator.ContractWriteNode.Config.repeatedFields_ = [3, 4];
|
|
3364
3373
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3365
3374
|
proto.aggregator.ContractWriteNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
3366
3375
|
return proto.aggregator.ContractWriteNode.Config.toObject(opt_includeInstance, this);
|
|
@@ -3369,7 +3378,11 @@ var require_avs_pb = __commonJS({
|
|
|
3369
3378
|
var f, obj = {
|
|
3370
3379
|
contractAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3371
3380
|
callData: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3372
|
-
|
|
3381
|
+
contractAbiList: jspb.Message.toObjectList(
|
|
3382
|
+
msg.getContractAbiList(),
|
|
3383
|
+
google_protobuf_struct_pb5.Value.toObject,
|
|
3384
|
+
includeInstance
|
|
3385
|
+
),
|
|
3373
3386
|
methodCallsList: jspb.Message.toObjectList(
|
|
3374
3387
|
msg.getMethodCallsList(),
|
|
3375
3388
|
proto.aggregator.ContractWriteNode.MethodCall.toObject,
|
|
@@ -3409,11 +3422,9 @@ var require_avs_pb = __commonJS({
|
|
|
3409
3422
|
msg.setCallData(value);
|
|
3410
3423
|
break;
|
|
3411
3424
|
case 3:
|
|
3412
|
-
var value = (
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
);
|
|
3416
|
-
msg.setContractAbi(value);
|
|
3425
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
3426
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3427
|
+
msg.addContractAbi(value);
|
|
3417
3428
|
break;
|
|
3418
3429
|
case 4:
|
|
3419
3430
|
var value = new proto.aggregator.ContractWriteNode.MethodCall();
|
|
@@ -3448,11 +3459,12 @@ var require_avs_pb = __commonJS({
|
|
|
3448
3459
|
f
|
|
3449
3460
|
);
|
|
3450
3461
|
}
|
|
3451
|
-
f = message.
|
|
3462
|
+
f = message.getContractAbiList();
|
|
3452
3463
|
if (f.length > 0) {
|
|
3453
|
-
writer.
|
|
3464
|
+
writer.writeRepeatedMessage(
|
|
3454
3465
|
3,
|
|
3455
|
-
f
|
|
3466
|
+
f,
|
|
3467
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3456
3468
|
);
|
|
3457
3469
|
}
|
|
3458
3470
|
f = message.getMethodCallsList();
|
|
@@ -3482,14 +3494,20 @@ var require_avs_pb = __commonJS({
|
|
|
3482
3494
|
proto.aggregator.ContractWriteNode.Config.prototype.setCallData = function(value) {
|
|
3483
3495
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3484
3496
|
};
|
|
3485
|
-
proto.aggregator.ContractWriteNode.Config.prototype.
|
|
3497
|
+
proto.aggregator.ContractWriteNode.Config.prototype.getContractAbiList = function() {
|
|
3486
3498
|
return (
|
|
3487
|
-
/** @type
|
|
3488
|
-
jspb.Message.
|
|
3499
|
+
/** @type{!Array<!proto.google.protobuf.Value>} */
|
|
3500
|
+
jspb.Message.getRepeatedWrapperField(this, google_protobuf_struct_pb5.Value, 3)
|
|
3489
3501
|
);
|
|
3490
3502
|
};
|
|
3491
|
-
proto.aggregator.ContractWriteNode.Config.prototype.
|
|
3492
|
-
return jspb.Message.
|
|
3503
|
+
proto.aggregator.ContractWriteNode.Config.prototype.setContractAbiList = function(value) {
|
|
3504
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
3505
|
+
};
|
|
3506
|
+
proto.aggregator.ContractWriteNode.Config.prototype.addContractAbi = function(opt_value, opt_index) {
|
|
3507
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.google.protobuf.Value, opt_index);
|
|
3508
|
+
};
|
|
3509
|
+
proto.aggregator.ContractWriteNode.Config.prototype.clearContractAbiList = function() {
|
|
3510
|
+
return this.setContractAbiList([]);
|
|
3493
3511
|
};
|
|
3494
3512
|
proto.aggregator.ContractWriteNode.Config.prototype.getMethodCallsList = function() {
|
|
3495
3513
|
return (
|
|
@@ -3631,7 +3649,7 @@ var require_avs_pb = __commonJS({
|
|
|
3631
3649
|
};
|
|
3632
3650
|
proto.aggregator.ContractWriteNode.Output.toObject = function(includeInstance, msg) {
|
|
3633
3651
|
var f, obj = {
|
|
3634
|
-
data: (f = msg.getData()) &&
|
|
3652
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
3635
3653
|
};
|
|
3636
3654
|
if (includeInstance) {
|
|
3637
3655
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3652,8 +3670,8 @@ var require_avs_pb = __commonJS({
|
|
|
3652
3670
|
var field = reader.getFieldNumber();
|
|
3653
3671
|
switch (field) {
|
|
3654
3672
|
case 1:
|
|
3655
|
-
var value = new
|
|
3656
|
-
reader.readMessage(value,
|
|
3673
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
3674
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3657
3675
|
msg.setData(value);
|
|
3658
3676
|
break;
|
|
3659
3677
|
default:
|
|
@@ -3675,14 +3693,14 @@ var require_avs_pb = __commonJS({
|
|
|
3675
3693
|
writer.writeMessage(
|
|
3676
3694
|
1,
|
|
3677
3695
|
f,
|
|
3678
|
-
|
|
3696
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3679
3697
|
);
|
|
3680
3698
|
}
|
|
3681
3699
|
};
|
|
3682
3700
|
proto.aggregator.ContractWriteNode.Output.prototype.getData = function() {
|
|
3683
3701
|
return (
|
|
3684
3702
|
/** @type{?proto.google.protobuf.Value} */
|
|
3685
|
-
jspb.Message.getWrapperField(this,
|
|
3703
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
3686
3704
|
);
|
|
3687
3705
|
};
|
|
3688
3706
|
proto.aggregator.ContractWriteNode.Output.prototype.setData = function(value) {
|
|
@@ -3701,12 +3719,12 @@ var require_avs_pb = __commonJS({
|
|
|
3701
3719
|
proto.aggregator.ContractWriteNode.MethodResult.toObject = function(includeInstance, msg) {
|
|
3702
3720
|
var f, obj = {
|
|
3703
3721
|
methodName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3704
|
-
methodAbi: (f = msg.getMethodAbi()) &&
|
|
3722
|
+
methodAbi: (f = msg.getMethodAbi()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
3705
3723
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
3706
3724
|
error: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3707
|
-
receipt: (f = msg.getReceipt()) &&
|
|
3725
|
+
receipt: (f = msg.getReceipt()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
3708
3726
|
blockNumber: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
3709
|
-
value: (f = msg.getValue()) &&
|
|
3727
|
+
value: (f = msg.getValue()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
3710
3728
|
};
|
|
3711
3729
|
if (includeInstance) {
|
|
3712
3730
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3734,8 +3752,8 @@ var require_avs_pb = __commonJS({
|
|
|
3734
3752
|
msg.setMethodName(value);
|
|
3735
3753
|
break;
|
|
3736
3754
|
case 2:
|
|
3737
|
-
var value = new
|
|
3738
|
-
reader.readMessage(value,
|
|
3755
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
3756
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3739
3757
|
msg.setMethodAbi(value);
|
|
3740
3758
|
break;
|
|
3741
3759
|
case 3:
|
|
@@ -3753,8 +3771,8 @@ var require_avs_pb = __commonJS({
|
|
|
3753
3771
|
msg.setError(value);
|
|
3754
3772
|
break;
|
|
3755
3773
|
case 5:
|
|
3756
|
-
var value = new
|
|
3757
|
-
reader.readMessage(value,
|
|
3774
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
3775
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3758
3776
|
msg.setReceipt(value);
|
|
3759
3777
|
break;
|
|
3760
3778
|
case 6:
|
|
@@ -3765,8 +3783,8 @@ var require_avs_pb = __commonJS({
|
|
|
3765
3783
|
msg.setBlockNumber(value);
|
|
3766
3784
|
break;
|
|
3767
3785
|
case 7:
|
|
3768
|
-
var value = new
|
|
3769
|
-
reader.readMessage(value,
|
|
3786
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
3787
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3770
3788
|
msg.setValue(value);
|
|
3771
3789
|
break;
|
|
3772
3790
|
default:
|
|
@@ -3795,7 +3813,7 @@ var require_avs_pb = __commonJS({
|
|
|
3795
3813
|
writer.writeMessage(
|
|
3796
3814
|
2,
|
|
3797
3815
|
f,
|
|
3798
|
-
|
|
3816
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3799
3817
|
);
|
|
3800
3818
|
}
|
|
3801
3819
|
f = message.getSuccess();
|
|
@@ -3817,7 +3835,7 @@ var require_avs_pb = __commonJS({
|
|
|
3817
3835
|
writer.writeMessage(
|
|
3818
3836
|
5,
|
|
3819
3837
|
f,
|
|
3820
|
-
|
|
3838
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3821
3839
|
);
|
|
3822
3840
|
}
|
|
3823
3841
|
f = /** @type {number} */
|
|
@@ -3833,7 +3851,7 @@ var require_avs_pb = __commonJS({
|
|
|
3833
3851
|
writer.writeMessage(
|
|
3834
3852
|
7,
|
|
3835
3853
|
f,
|
|
3836
|
-
|
|
3854
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3837
3855
|
);
|
|
3838
3856
|
}
|
|
3839
3857
|
};
|
|
@@ -3849,7 +3867,7 @@ var require_avs_pb = __commonJS({
|
|
|
3849
3867
|
proto.aggregator.ContractWriteNode.MethodResult.prototype.getMethodAbi = function() {
|
|
3850
3868
|
return (
|
|
3851
3869
|
/** @type{?proto.google.protobuf.Value} */
|
|
3852
|
-
jspb.Message.getWrapperField(this,
|
|
3870
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 2)
|
|
3853
3871
|
);
|
|
3854
3872
|
};
|
|
3855
3873
|
proto.aggregator.ContractWriteNode.MethodResult.prototype.setMethodAbi = function(value) {
|
|
@@ -3882,7 +3900,7 @@ var require_avs_pb = __commonJS({
|
|
|
3882
3900
|
proto.aggregator.ContractWriteNode.MethodResult.prototype.getReceipt = function() {
|
|
3883
3901
|
return (
|
|
3884
3902
|
/** @type{?proto.google.protobuf.Value} */
|
|
3885
|
-
jspb.Message.getWrapperField(this,
|
|
3903
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 5)
|
|
3886
3904
|
);
|
|
3887
3905
|
};
|
|
3888
3906
|
proto.aggregator.ContractWriteNode.MethodResult.prototype.setReceipt = function(value) {
|
|
@@ -3912,7 +3930,7 @@ var require_avs_pb = __commonJS({
|
|
|
3912
3930
|
proto.aggregator.ContractWriteNode.MethodResult.prototype.getValue = function() {
|
|
3913
3931
|
return (
|
|
3914
3932
|
/** @type{?proto.google.protobuf.Value} */
|
|
3915
|
-
jspb.Message.getWrapperField(this,
|
|
3933
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 7)
|
|
3916
3934
|
);
|
|
3917
3935
|
};
|
|
3918
3936
|
proto.aggregator.ContractWriteNode.MethodResult.prototype.setValue = function(value) {
|
|
@@ -4142,7 +4160,7 @@ var require_avs_pb = __commonJS({
|
|
|
4142
4160
|
proto.aggregator.ContractReadNode.MethodCall.prototype.clearMethodParamsList = function() {
|
|
4143
4161
|
return this.setMethodParamsList([]);
|
|
4144
4162
|
};
|
|
4145
|
-
proto.aggregator.ContractReadNode.Config.repeatedFields_ = [3];
|
|
4163
|
+
proto.aggregator.ContractReadNode.Config.repeatedFields_ = [2, 3];
|
|
4146
4164
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4147
4165
|
proto.aggregator.ContractReadNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
4148
4166
|
return proto.aggregator.ContractReadNode.Config.toObject(opt_includeInstance, this);
|
|
@@ -4150,7 +4168,11 @@ var require_avs_pb = __commonJS({
|
|
|
4150
4168
|
proto.aggregator.ContractReadNode.Config.toObject = function(includeInstance, msg) {
|
|
4151
4169
|
var f, obj = {
|
|
4152
4170
|
contractAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4153
|
-
|
|
4171
|
+
contractAbiList: jspb.Message.toObjectList(
|
|
4172
|
+
msg.getContractAbiList(),
|
|
4173
|
+
google_protobuf_struct_pb5.Value.toObject,
|
|
4174
|
+
includeInstance
|
|
4175
|
+
),
|
|
4154
4176
|
methodCallsList: jspb.Message.toObjectList(
|
|
4155
4177
|
msg.getMethodCallsList(),
|
|
4156
4178
|
proto.aggregator.ContractReadNode.MethodCall.toObject,
|
|
@@ -4183,11 +4205,9 @@ var require_avs_pb = __commonJS({
|
|
|
4183
4205
|
msg.setContractAddress(value);
|
|
4184
4206
|
break;
|
|
4185
4207
|
case 2:
|
|
4186
|
-
var value = (
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
);
|
|
4190
|
-
msg.setContractAbi(value);
|
|
4208
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
4209
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
4210
|
+
msg.addContractAbi(value);
|
|
4191
4211
|
break;
|
|
4192
4212
|
case 3:
|
|
4193
4213
|
var value = new proto.aggregator.ContractReadNode.MethodCall();
|
|
@@ -4215,11 +4235,12 @@ var require_avs_pb = __commonJS({
|
|
|
4215
4235
|
f
|
|
4216
4236
|
);
|
|
4217
4237
|
}
|
|
4218
|
-
f = message.
|
|
4238
|
+
f = message.getContractAbiList();
|
|
4219
4239
|
if (f.length > 0) {
|
|
4220
|
-
writer.
|
|
4240
|
+
writer.writeRepeatedMessage(
|
|
4221
4241
|
2,
|
|
4222
|
-
f
|
|
4242
|
+
f,
|
|
4243
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
4223
4244
|
);
|
|
4224
4245
|
}
|
|
4225
4246
|
f = message.getMethodCallsList();
|
|
@@ -4240,14 +4261,20 @@ var require_avs_pb = __commonJS({
|
|
|
4240
4261
|
proto.aggregator.ContractReadNode.Config.prototype.setContractAddress = function(value) {
|
|
4241
4262
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4242
4263
|
};
|
|
4243
|
-
proto.aggregator.ContractReadNode.Config.prototype.
|
|
4264
|
+
proto.aggregator.ContractReadNode.Config.prototype.getContractAbiList = function() {
|
|
4244
4265
|
return (
|
|
4245
|
-
/** @type
|
|
4246
|
-
jspb.Message.
|
|
4266
|
+
/** @type{!Array<!proto.google.protobuf.Value>} */
|
|
4267
|
+
jspb.Message.getRepeatedWrapperField(this, google_protobuf_struct_pb5.Value, 2)
|
|
4247
4268
|
);
|
|
4248
4269
|
};
|
|
4249
|
-
proto.aggregator.ContractReadNode.Config.prototype.
|
|
4250
|
-
return jspb.Message.
|
|
4270
|
+
proto.aggregator.ContractReadNode.Config.prototype.setContractAbiList = function(value) {
|
|
4271
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
4272
|
+
};
|
|
4273
|
+
proto.aggregator.ContractReadNode.Config.prototype.addContractAbi = function(opt_value, opt_index) {
|
|
4274
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.protobuf.Value, opt_index);
|
|
4275
|
+
};
|
|
4276
|
+
proto.aggregator.ContractReadNode.Config.prototype.clearContractAbiList = function() {
|
|
4277
|
+
return this.setContractAbiList([]);
|
|
4251
4278
|
};
|
|
4252
4279
|
proto.aggregator.ContractReadNode.Config.prototype.getMethodCallsList = function() {
|
|
4253
4280
|
return (
|
|
@@ -4528,7 +4555,8 @@ var require_avs_pb = __commonJS({
|
|
|
4528
4555
|
};
|
|
4529
4556
|
proto.aggregator.ContractReadNode.Output.toObject = function(includeInstance, msg) {
|
|
4530
4557
|
var f, obj = {
|
|
4531
|
-
data: (f = msg.getData()) &&
|
|
4558
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
4559
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
4532
4560
|
};
|
|
4533
4561
|
if (includeInstance) {
|
|
4534
4562
|
obj.$jspbMessageInstance = msg;
|
|
@@ -4549,10 +4577,15 @@ var require_avs_pb = __commonJS({
|
|
|
4549
4577
|
var field = reader.getFieldNumber();
|
|
4550
4578
|
switch (field) {
|
|
4551
4579
|
case 1:
|
|
4552
|
-
var value = new
|
|
4553
|
-
reader.readMessage(value,
|
|
4580
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
4581
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
4554
4582
|
msg.setData(value);
|
|
4555
4583
|
break;
|
|
4584
|
+
case 2:
|
|
4585
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
4586
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
4587
|
+
msg.setMetadata(value);
|
|
4588
|
+
break;
|
|
4556
4589
|
default:
|
|
4557
4590
|
reader.skipField();
|
|
4558
4591
|
break;
|
|
@@ -4572,14 +4605,22 @@ var require_avs_pb = __commonJS({
|
|
|
4572
4605
|
writer.writeMessage(
|
|
4573
4606
|
1,
|
|
4574
4607
|
f,
|
|
4575
|
-
|
|
4608
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
4609
|
+
);
|
|
4610
|
+
}
|
|
4611
|
+
f = message.getMetadata();
|
|
4612
|
+
if (f != null) {
|
|
4613
|
+
writer.writeMessage(
|
|
4614
|
+
2,
|
|
4615
|
+
f,
|
|
4616
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
4576
4617
|
);
|
|
4577
4618
|
}
|
|
4578
4619
|
};
|
|
4579
4620
|
proto.aggregator.ContractReadNode.Output.prototype.getData = function() {
|
|
4580
4621
|
return (
|
|
4581
4622
|
/** @type{?proto.google.protobuf.Value} */
|
|
4582
|
-
jspb.Message.getWrapperField(this,
|
|
4623
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
4583
4624
|
);
|
|
4584
4625
|
};
|
|
4585
4626
|
proto.aggregator.ContractReadNode.Output.prototype.setData = function(value) {
|
|
@@ -4591,6 +4632,21 @@ var require_avs_pb = __commonJS({
|
|
|
4591
4632
|
proto.aggregator.ContractReadNode.Output.prototype.hasData = function() {
|
|
4592
4633
|
return jspb.Message.getField(this, 1) != null;
|
|
4593
4634
|
};
|
|
4635
|
+
proto.aggregator.ContractReadNode.Output.prototype.getMetadata = function() {
|
|
4636
|
+
return (
|
|
4637
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
4638
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 2)
|
|
4639
|
+
);
|
|
4640
|
+
};
|
|
4641
|
+
proto.aggregator.ContractReadNode.Output.prototype.setMetadata = function(value) {
|
|
4642
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
4643
|
+
};
|
|
4644
|
+
proto.aggregator.ContractReadNode.Output.prototype.clearMetadata = function() {
|
|
4645
|
+
return this.setMetadata(void 0);
|
|
4646
|
+
};
|
|
4647
|
+
proto.aggregator.ContractReadNode.Output.prototype.hasMetadata = function() {
|
|
4648
|
+
return jspb.Message.getField(this, 2) != null;
|
|
4649
|
+
};
|
|
4594
4650
|
proto.aggregator.ContractReadNode.prototype.getConfig = function() {
|
|
4595
4651
|
return (
|
|
4596
4652
|
/** @type{?proto.aggregator.ContractReadNode.Config} */
|
|
@@ -4780,7 +4836,7 @@ var require_avs_pb = __commonJS({
|
|
|
4780
4836
|
};
|
|
4781
4837
|
proto.aggregator.GraphQLQueryNode.Output.toObject = function(includeInstance, msg) {
|
|
4782
4838
|
var f, obj = {
|
|
4783
|
-
data: (f = msg.getData()) &&
|
|
4839
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
4784
4840
|
};
|
|
4785
4841
|
if (includeInstance) {
|
|
4786
4842
|
obj.$jspbMessageInstance = msg;
|
|
@@ -4801,8 +4857,8 @@ var require_avs_pb = __commonJS({
|
|
|
4801
4857
|
var field = reader.getFieldNumber();
|
|
4802
4858
|
switch (field) {
|
|
4803
4859
|
case 1:
|
|
4804
|
-
var value = new
|
|
4805
|
-
reader.readMessage(value,
|
|
4860
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
4861
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
4806
4862
|
msg.setData(value);
|
|
4807
4863
|
break;
|
|
4808
4864
|
default:
|
|
@@ -4824,14 +4880,14 @@ var require_avs_pb = __commonJS({
|
|
|
4824
4880
|
writer.writeMessage(
|
|
4825
4881
|
1,
|
|
4826
4882
|
f,
|
|
4827
|
-
|
|
4883
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
4828
4884
|
);
|
|
4829
4885
|
}
|
|
4830
4886
|
};
|
|
4831
4887
|
proto.aggregator.GraphQLQueryNode.Output.prototype.getData = function() {
|
|
4832
4888
|
return (
|
|
4833
4889
|
/** @type{?proto.google.protobuf.Value} */
|
|
4834
|
-
jspb.Message.getWrapperField(this,
|
|
4890
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
4835
4891
|
);
|
|
4836
4892
|
};
|
|
4837
4893
|
proto.aggregator.GraphQLQueryNode.Output.prototype.setData = function(value) {
|
|
@@ -5056,7 +5112,7 @@ var require_avs_pb = __commonJS({
|
|
|
5056
5112
|
};
|
|
5057
5113
|
proto.aggregator.RestAPINode.Output.toObject = function(includeInstance, msg) {
|
|
5058
5114
|
var f, obj = {
|
|
5059
|
-
data: (f = msg.getData()) &&
|
|
5115
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
5060
5116
|
};
|
|
5061
5117
|
if (includeInstance) {
|
|
5062
5118
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5077,8 +5133,8 @@ var require_avs_pb = __commonJS({
|
|
|
5077
5133
|
var field = reader.getFieldNumber();
|
|
5078
5134
|
switch (field) {
|
|
5079
5135
|
case 1:
|
|
5080
|
-
var value = new
|
|
5081
|
-
reader.readMessage(value,
|
|
5136
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
5137
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
5082
5138
|
msg.setData(value);
|
|
5083
5139
|
break;
|
|
5084
5140
|
default:
|
|
@@ -5100,14 +5156,14 @@ var require_avs_pb = __commonJS({
|
|
|
5100
5156
|
writer.writeMessage(
|
|
5101
5157
|
1,
|
|
5102
5158
|
f,
|
|
5103
|
-
|
|
5159
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
5104
5160
|
);
|
|
5105
5161
|
}
|
|
5106
5162
|
};
|
|
5107
5163
|
proto.aggregator.RestAPINode.Output.prototype.getData = function() {
|
|
5108
5164
|
return (
|
|
5109
5165
|
/** @type{?proto.google.protobuf.Value} */
|
|
5110
|
-
jspb.Message.getWrapperField(this,
|
|
5166
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
5111
5167
|
);
|
|
5112
5168
|
};
|
|
5113
5169
|
proto.aggregator.RestAPINode.Output.prototype.setData = function(value) {
|
|
@@ -5282,7 +5338,7 @@ var require_avs_pb = __commonJS({
|
|
|
5282
5338
|
};
|
|
5283
5339
|
proto.aggregator.CustomCodeNode.Output.toObject = function(includeInstance, msg) {
|
|
5284
5340
|
var f, obj = {
|
|
5285
|
-
data: (f = msg.getData()) &&
|
|
5341
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
5286
5342
|
};
|
|
5287
5343
|
if (includeInstance) {
|
|
5288
5344
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5303,8 +5359,8 @@ var require_avs_pb = __commonJS({
|
|
|
5303
5359
|
var field = reader.getFieldNumber();
|
|
5304
5360
|
switch (field) {
|
|
5305
5361
|
case 1:
|
|
5306
|
-
var value = new
|
|
5307
|
-
reader.readMessage(value,
|
|
5362
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
5363
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
5308
5364
|
msg.setData(value);
|
|
5309
5365
|
break;
|
|
5310
5366
|
default:
|
|
@@ -5326,14 +5382,14 @@ var require_avs_pb = __commonJS({
|
|
|
5326
5382
|
writer.writeMessage(
|
|
5327
5383
|
1,
|
|
5328
5384
|
f,
|
|
5329
|
-
|
|
5385
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
5330
5386
|
);
|
|
5331
5387
|
}
|
|
5332
5388
|
};
|
|
5333
5389
|
proto.aggregator.CustomCodeNode.Output.prototype.getData = function() {
|
|
5334
5390
|
return (
|
|
5335
5391
|
/** @type{?proto.google.protobuf.Value} */
|
|
5336
|
-
jspb.Message.getWrapperField(this,
|
|
5392
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
5337
5393
|
);
|
|
5338
5394
|
};
|
|
5339
5395
|
proto.aggregator.CustomCodeNode.Output.prototype.setData = function(value) {
|
|
@@ -5606,7 +5662,7 @@ var require_avs_pb = __commonJS({
|
|
|
5606
5662
|
};
|
|
5607
5663
|
proto.aggregator.BranchNode.Output.toObject = function(includeInstance, msg) {
|
|
5608
5664
|
var f, obj = {
|
|
5609
|
-
data: (f = msg.getData()) &&
|
|
5665
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
5610
5666
|
};
|
|
5611
5667
|
if (includeInstance) {
|
|
5612
5668
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5627,8 +5683,8 @@ var require_avs_pb = __commonJS({
|
|
|
5627
5683
|
var field = reader.getFieldNumber();
|
|
5628
5684
|
switch (field) {
|
|
5629
5685
|
case 1:
|
|
5630
|
-
var value = new
|
|
5631
|
-
reader.readMessage(value,
|
|
5686
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
5687
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
5632
5688
|
msg.setData(value);
|
|
5633
5689
|
break;
|
|
5634
5690
|
default:
|
|
@@ -5650,14 +5706,14 @@ var require_avs_pb = __commonJS({
|
|
|
5650
5706
|
writer.writeMessage(
|
|
5651
5707
|
1,
|
|
5652
5708
|
f,
|
|
5653
|
-
|
|
5709
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
5654
5710
|
);
|
|
5655
5711
|
}
|
|
5656
5712
|
};
|
|
5657
5713
|
proto.aggregator.BranchNode.Output.prototype.getData = function() {
|
|
5658
5714
|
return (
|
|
5659
5715
|
/** @type{?proto.google.protobuf.Value} */
|
|
5660
|
-
jspb.Message.getWrapperField(this,
|
|
5716
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
5661
5717
|
);
|
|
5662
5718
|
};
|
|
5663
5719
|
proto.aggregator.BranchNode.Output.prototype.setData = function(value) {
|
|
@@ -5832,7 +5888,7 @@ var require_avs_pb = __commonJS({
|
|
|
5832
5888
|
};
|
|
5833
5889
|
proto.aggregator.FilterNode.Output.toObject = function(includeInstance, msg) {
|
|
5834
5890
|
var f, obj = {
|
|
5835
|
-
data: (f = msg.getData()) &&
|
|
5891
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
5836
5892
|
};
|
|
5837
5893
|
if (includeInstance) {
|
|
5838
5894
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5853,8 +5909,8 @@ var require_avs_pb = __commonJS({
|
|
|
5853
5909
|
var field = reader.getFieldNumber();
|
|
5854
5910
|
switch (field) {
|
|
5855
5911
|
case 1:
|
|
5856
|
-
var value = new
|
|
5857
|
-
reader.readMessage(value,
|
|
5912
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
5913
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
5858
5914
|
msg.setData(value);
|
|
5859
5915
|
break;
|
|
5860
5916
|
default:
|
|
@@ -5876,14 +5932,14 @@ var require_avs_pb = __commonJS({
|
|
|
5876
5932
|
writer.writeMessage(
|
|
5877
5933
|
1,
|
|
5878
5934
|
f,
|
|
5879
|
-
|
|
5935
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
5880
5936
|
);
|
|
5881
5937
|
}
|
|
5882
5938
|
};
|
|
5883
5939
|
proto.aggregator.FilterNode.Output.prototype.getData = function() {
|
|
5884
5940
|
return (
|
|
5885
5941
|
/** @type{?proto.google.protobuf.Value} */
|
|
5886
|
-
jspb.Message.getWrapperField(this,
|
|
5942
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
5887
5943
|
);
|
|
5888
5944
|
};
|
|
5889
5945
|
proto.aggregator.FilterNode.Output.prototype.setData = function(value) {
|
|
@@ -6206,7 +6262,7 @@ var require_avs_pb = __commonJS({
|
|
|
6206
6262
|
};
|
|
6207
6263
|
proto.aggregator.LoopNode.Output.toObject = function(includeInstance, msg) {
|
|
6208
6264
|
var f, obj = {
|
|
6209
|
-
data: (f = msg.getData()) &&
|
|
6265
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
6210
6266
|
};
|
|
6211
6267
|
if (includeInstance) {
|
|
6212
6268
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6227,8 +6283,8 @@ var require_avs_pb = __commonJS({
|
|
|
6227
6283
|
var field = reader.getFieldNumber();
|
|
6228
6284
|
switch (field) {
|
|
6229
6285
|
case 1:
|
|
6230
|
-
var value = new
|
|
6231
|
-
reader.readMessage(value,
|
|
6286
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
6287
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
6232
6288
|
msg.setData(value);
|
|
6233
6289
|
break;
|
|
6234
6290
|
default:
|
|
@@ -6250,14 +6306,14 @@ var require_avs_pb = __commonJS({
|
|
|
6250
6306
|
writer.writeMessage(
|
|
6251
6307
|
1,
|
|
6252
6308
|
f,
|
|
6253
|
-
|
|
6309
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
6254
6310
|
);
|
|
6255
6311
|
}
|
|
6256
6312
|
};
|
|
6257
6313
|
proto.aggregator.LoopNode.Output.prototype.getData = function() {
|
|
6258
6314
|
return (
|
|
6259
6315
|
/** @type{?proto.google.protobuf.Value} */
|
|
6260
|
-
jspb.Message.getWrapperField(this,
|
|
6316
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
6261
6317
|
);
|
|
6262
6318
|
};
|
|
6263
6319
|
proto.aggregator.LoopNode.Output.prototype.setData = function(value) {
|
|
@@ -7050,7 +7106,7 @@ var require_avs_pb = __commonJS({
|
|
|
7050
7106
|
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
7051
7107
|
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
7052
7108
|
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
|
|
7053
|
-
config: (f = msg.getConfig()) &&
|
|
7109
|
+
config: (f = msg.getConfig()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
7054
7110
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
7055
7111
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
7056
7112
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -7136,8 +7192,8 @@ var require_avs_pb = __commonJS({
|
|
|
7136
7192
|
msg.addInputs(value);
|
|
7137
7193
|
break;
|
|
7138
7194
|
case 19:
|
|
7139
|
-
var value = new
|
|
7140
|
-
reader.readMessage(value,
|
|
7195
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
7196
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
7141
7197
|
msg.setConfig(value);
|
|
7142
7198
|
break;
|
|
7143
7199
|
case 20:
|
|
@@ -7292,7 +7348,7 @@ var require_avs_pb = __commonJS({
|
|
|
7292
7348
|
writer.writeMessage(
|
|
7293
7349
|
19,
|
|
7294
7350
|
f,
|
|
7295
|
-
|
|
7351
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
7296
7352
|
);
|
|
7297
7353
|
}
|
|
7298
7354
|
f = message.getBlockTrigger();
|
|
@@ -7494,7 +7550,7 @@ var require_avs_pb = __commonJS({
|
|
|
7494
7550
|
proto.aggregator.Execution.Step.prototype.getConfig = function() {
|
|
7495
7551
|
return (
|
|
7496
7552
|
/** @type{?proto.google.protobuf.Value} */
|
|
7497
|
-
jspb.Message.getWrapperField(this,
|
|
7553
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 19)
|
|
7498
7554
|
);
|
|
7499
7555
|
};
|
|
7500
7556
|
proto.aggregator.Execution.Step.prototype.setConfig = function(value) {
|
|
@@ -13292,7 +13348,7 @@ var require_avs_pb = __commonJS({
|
|
|
13292
13348
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
13293
13349
|
error: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13294
13350
|
nodeId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
13295
|
-
metadata: (f = msg.getMetadata()) &&
|
|
13351
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
13296
13352
|
ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
|
|
13297
13353
|
graphql: (f = msg.getGraphql()) && proto.aggregator.GraphQLQueryNode.Output.toObject(includeInstance, f),
|
|
13298
13354
|
contractRead: (f = msg.getContractRead()) && proto.aggregator.ContractReadNode.Output.toObject(includeInstance, f),
|
|
@@ -13343,8 +13399,8 @@ var require_avs_pb = __commonJS({
|
|
|
13343
13399
|
msg.setNodeId(value);
|
|
13344
13400
|
break;
|
|
13345
13401
|
case 5:
|
|
13346
|
-
var value = new
|
|
13347
|
-
reader.readMessage(value,
|
|
13402
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
13403
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
13348
13404
|
msg.setMetadata(value);
|
|
13349
13405
|
break;
|
|
13350
13406
|
case 10:
|
|
@@ -13432,7 +13488,7 @@ var require_avs_pb = __commonJS({
|
|
|
13432
13488
|
writer.writeMessage(
|
|
13433
13489
|
5,
|
|
13434
13490
|
f,
|
|
13435
|
-
|
|
13491
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
13436
13492
|
);
|
|
13437
13493
|
}
|
|
13438
13494
|
f = message.getEthTransfer();
|
|
@@ -13538,7 +13594,7 @@ var require_avs_pb = __commonJS({
|
|
|
13538
13594
|
proto.aggregator.RunNodeWithInputsResp.prototype.getMetadata = function() {
|
|
13539
13595
|
return (
|
|
13540
13596
|
/** @type{?proto.google.protobuf.Value} */
|
|
13541
|
-
jspb.Message.getWrapperField(this,
|
|
13597
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 5)
|
|
13542
13598
|
);
|
|
13543
13599
|
};
|
|
13544
13600
|
proto.aggregator.RunNodeWithInputsResp.prototype.setMetadata = function(value) {
|
|
@@ -13825,7 +13881,7 @@ var require_avs_pb = __commonJS({
|
|
|
13825
13881
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
13826
13882
|
error: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
13827
13883
|
triggerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13828
|
-
metadata: (f = msg.getMetadata()) &&
|
|
13884
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
13829
13885
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
13830
13886
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
13831
13887
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -13872,8 +13928,8 @@ var require_avs_pb = __commonJS({
|
|
|
13872
13928
|
msg.setTriggerId(value);
|
|
13873
13929
|
break;
|
|
13874
13930
|
case 4:
|
|
13875
|
-
var value = new
|
|
13876
|
-
reader.readMessage(value,
|
|
13931
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
13932
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
13877
13933
|
msg.setMetadata(value);
|
|
13878
13934
|
break;
|
|
13879
13935
|
case 10:
|
|
@@ -13941,7 +13997,7 @@ var require_avs_pb = __commonJS({
|
|
|
13941
13997
|
writer.writeMessage(
|
|
13942
13998
|
4,
|
|
13943
13999
|
f,
|
|
13944
|
-
|
|
14000
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
13945
14001
|
);
|
|
13946
14002
|
}
|
|
13947
14003
|
f = message.getBlockTrigger();
|
|
@@ -14015,7 +14071,7 @@ var require_avs_pb = __commonJS({
|
|
|
14015
14071
|
proto.aggregator.RunTriggerResp.prototype.getMetadata = function() {
|
|
14016
14072
|
return (
|
|
14017
14073
|
/** @type{?proto.google.protobuf.Value} */
|
|
14018
|
-
jspb.Message.getWrapperField(this,
|
|
14074
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 4)
|
|
14019
14075
|
);
|
|
14020
14076
|
};
|
|
14021
14077
|
proto.aggregator.RunTriggerResp.prototype.setMetadata = function(value) {
|
|
@@ -14493,7 +14549,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
14493
14549
|
var avs_pb23 = require_avs_pb();
|
|
14494
14550
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
14495
14551
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
14496
|
-
var
|
|
14552
|
+
var google_protobuf_struct_pb5 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
14497
14553
|
function serialize_aggregator_CancelTaskResp(arg) {
|
|
14498
14554
|
if (!(arg instanceof avs_pb23.CancelTaskResp)) {
|
|
14499
14555
|
throw new Error("Expected argument of type aggregator.CancelTaskResp");
|
|
@@ -15476,6 +15532,7 @@ var cron_default = CronTrigger2;
|
|
|
15476
15532
|
|
|
15477
15533
|
// src/models/trigger/event.ts
|
|
15478
15534
|
var avs_pb4 = __toESM(require_avs_pb());
|
|
15535
|
+
var google_protobuf_struct_pb = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
15479
15536
|
var import_types4 = require("@avaprotocol/types");
|
|
15480
15537
|
|
|
15481
15538
|
// src/utils.ts
|
|
@@ -15699,7 +15756,15 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
15699
15756
|
query.setMaxEventsPerBlock(queryData.maxEventsPerBlock);
|
|
15700
15757
|
}
|
|
15701
15758
|
if (queryData.contractAbi) {
|
|
15702
|
-
|
|
15759
|
+
if (!Array.isArray(queryData.contractAbi)) {
|
|
15760
|
+
throw new Error("contractAbi must be an array of ABI elements");
|
|
15761
|
+
}
|
|
15762
|
+
const abiValueList = queryData.contractAbi.map((item) => {
|
|
15763
|
+
const value = new google_protobuf_struct_pb.Value();
|
|
15764
|
+
value.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(item));
|
|
15765
|
+
return value;
|
|
15766
|
+
});
|
|
15767
|
+
query.setContractAbiList(abiValueList);
|
|
15703
15768
|
}
|
|
15704
15769
|
if (queryData.conditions && queryData.conditions.length > 0) {
|
|
15705
15770
|
const conditionMessages = queryData.conditions.map((conditionData) => {
|
|
@@ -15744,7 +15809,9 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
15744
15809
|
config.getQueriesList().forEach((query) => {
|
|
15745
15810
|
const queryData = {
|
|
15746
15811
|
addresses: [],
|
|
15747
|
-
topics: []
|
|
15812
|
+
topics: [],
|
|
15813
|
+
contractAbi: []
|
|
15814
|
+
// Add the required contractAbi field
|
|
15748
15815
|
};
|
|
15749
15816
|
if (query.getAddressesList && query.getAddressesList().length > 0) {
|
|
15750
15817
|
queryData.addresses = query.getAddressesList();
|
|
@@ -15761,9 +15828,11 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
15761
15828
|
if (maxEvents && maxEvents > 0) {
|
|
15762
15829
|
queryData.maxEventsPerBlock = maxEvents;
|
|
15763
15830
|
}
|
|
15764
|
-
const contractAbi = query.
|
|
15765
|
-
if (contractAbi) {
|
|
15766
|
-
queryData.contractAbi = contractAbi
|
|
15831
|
+
const contractAbi = query.getContractAbiList();
|
|
15832
|
+
if (contractAbi && contractAbi.length > 0) {
|
|
15833
|
+
queryData.contractAbi = contractAbi.map(
|
|
15834
|
+
(value) => convertProtobufValueToJs(value)
|
|
15835
|
+
);
|
|
15767
15836
|
}
|
|
15768
15837
|
const conditions = [];
|
|
15769
15838
|
if (query.getConditionsList && query.getConditionsList().length > 0) {
|
|
@@ -16098,6 +16167,7 @@ var Node = class {
|
|
|
16098
16167
|
|
|
16099
16168
|
// src/models/node/contractWrite.ts
|
|
16100
16169
|
var avs_pb9 = __toESM(require_avs_pb());
|
|
16170
|
+
var google_protobuf_struct_pb2 = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
16101
16171
|
var import_types9 = require("@avaprotocol/types");
|
|
16102
16172
|
var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
16103
16173
|
constructor(props) {
|
|
@@ -16112,12 +16182,18 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
16112
16182
|
const node = new avs_pb9.ContractWriteNode();
|
|
16113
16183
|
const config = new avs_pb9.ContractWriteNode.Config();
|
|
16114
16184
|
config.setContractAddress(configData.contractAddress);
|
|
16115
|
-
|
|
16116
|
-
|
|
16185
|
+
const abiValueList = configData.contractAbi.map((item) => {
|
|
16186
|
+
const value = new google_protobuf_struct_pb2.Value();
|
|
16187
|
+
value.setStructValue(google_protobuf_struct_pb2.Struct.fromJavaScript(item));
|
|
16188
|
+
return value;
|
|
16189
|
+
});
|
|
16190
|
+
config.setContractAbiList(abiValueList);
|
|
16117
16191
|
const methodCalls = configData.methodCalls || [];
|
|
16118
16192
|
methodCalls.forEach((methodCall) => {
|
|
16119
16193
|
const methodCallMsg = new avs_pb9.ContractWriteNode.MethodCall();
|
|
16120
|
-
|
|
16194
|
+
if (methodCall.callData) {
|
|
16195
|
+
methodCallMsg.setCallData(methodCall.callData);
|
|
16196
|
+
}
|
|
16121
16197
|
if (methodCall.methodName) {
|
|
16122
16198
|
methodCallMsg.setMethodName(methodCall.methodName);
|
|
16123
16199
|
}
|
|
@@ -16131,15 +16207,20 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
16131
16207
|
}
|
|
16132
16208
|
static fromResponse(raw) {
|
|
16133
16209
|
const obj = raw.toObject();
|
|
16134
|
-
const
|
|
16210
|
+
const contractWriteNode = raw.getContractWrite();
|
|
16211
|
+
const config = contractWriteNode.getConfig();
|
|
16212
|
+
const protobufData = config.toObject();
|
|
16135
16213
|
const data = {
|
|
16136
16214
|
contractAddress: protobufData.contractAddress,
|
|
16137
|
-
|
|
16138
|
-
|
|
16215
|
+
contractAbi: config.getContractAbiList().map(
|
|
16216
|
+
(value) => convertProtobufValueToJs(value)
|
|
16217
|
+
),
|
|
16139
16218
|
methodCalls: protobufData.methodCallsList?.map((call) => ({
|
|
16140
|
-
callData: call.callData,
|
|
16141
16219
|
methodName: call.methodName,
|
|
16142
|
-
methodParams: call.methodParamsList || []
|
|
16220
|
+
methodParams: call.methodParamsList || [],
|
|
16221
|
+
// Note: applyToFields is not supported for ContractWrite nodes in protobuf
|
|
16222
|
+
// callData is optional, only include if present
|
|
16223
|
+
...call.callData && { callData: call.callData }
|
|
16143
16224
|
})) || []
|
|
16144
16225
|
};
|
|
16145
16226
|
return new _ContractWriteNode({
|
|
@@ -16164,7 +16245,27 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
16164
16245
|
const data = contractWriteOutput.getData();
|
|
16165
16246
|
if (!data) return null;
|
|
16166
16247
|
const jsData = convertProtobufValueToJs(data);
|
|
16167
|
-
|
|
16248
|
+
if (Array.isArray(jsData)) {
|
|
16249
|
+
return jsData.map((result) => {
|
|
16250
|
+
const methodName = result.method_name || result.methodName;
|
|
16251
|
+
return {
|
|
16252
|
+
methodName,
|
|
16253
|
+
methodABI: result.method_abi || null,
|
|
16254
|
+
success: result.success,
|
|
16255
|
+
error: result.error || "",
|
|
16256
|
+
value: result.value
|
|
16257
|
+
};
|
|
16258
|
+
});
|
|
16259
|
+
} else {
|
|
16260
|
+
const methodName = jsData.method_name || jsData.methodName;
|
|
16261
|
+
return [{
|
|
16262
|
+
methodName,
|
|
16263
|
+
methodABI: jsData.method_abi || null,
|
|
16264
|
+
success: jsData.success,
|
|
16265
|
+
error: jsData.error || "",
|
|
16266
|
+
value: jsData.value
|
|
16267
|
+
}];
|
|
16268
|
+
}
|
|
16168
16269
|
}
|
|
16169
16270
|
};
|
|
16170
16271
|
var contractWrite_default = ContractWriteNode2;
|
|
@@ -16355,6 +16456,7 @@ var restApi_default = RestAPINode2;
|
|
|
16355
16456
|
|
|
16356
16457
|
// src/models/node/contractRead.ts
|
|
16357
16458
|
var avs_pb13 = __toESM(require_avs_pb());
|
|
16459
|
+
var google_protobuf_struct_pb3 = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
16358
16460
|
var import_types13 = require("@avaprotocol/types");
|
|
16359
16461
|
var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
16360
16462
|
constructor(props) {
|
|
@@ -16369,11 +16471,18 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
16369
16471
|
const node = new avs_pb13.ContractReadNode();
|
|
16370
16472
|
const config = new avs_pb13.ContractReadNode.Config();
|
|
16371
16473
|
config.setContractAddress(configData.contractAddress);
|
|
16372
|
-
|
|
16474
|
+
const abiValueList = configData.contractAbi.map((item) => {
|
|
16475
|
+
const value = new google_protobuf_struct_pb3.Value();
|
|
16476
|
+
value.setStructValue(google_protobuf_struct_pb3.Struct.fromJavaScript(item));
|
|
16477
|
+
return value;
|
|
16478
|
+
});
|
|
16479
|
+
config.setContractAbiList(abiValueList);
|
|
16373
16480
|
const methodCalls = configData.methodCalls || [];
|
|
16374
16481
|
methodCalls.forEach((methodCall) => {
|
|
16375
16482
|
const methodCallMsg = new avs_pb13.ContractReadNode.MethodCall();
|
|
16376
|
-
|
|
16483
|
+
if (methodCall.callData) {
|
|
16484
|
+
methodCallMsg.setCallData(methodCall.callData);
|
|
16485
|
+
}
|
|
16377
16486
|
if (methodCall.methodName) {
|
|
16378
16487
|
methodCallMsg.setMethodName(methodCall.methodName);
|
|
16379
16488
|
}
|
|
@@ -16390,10 +16499,14 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
16390
16499
|
}
|
|
16391
16500
|
static fromResponse(raw) {
|
|
16392
16501
|
const obj = raw.toObject();
|
|
16393
|
-
const
|
|
16502
|
+
const contractReadNode = raw.getContractRead();
|
|
16503
|
+
const config = contractReadNode.getConfig();
|
|
16504
|
+
const protobufData = config.toObject();
|
|
16394
16505
|
const data = {
|
|
16395
16506
|
contractAddress: protobufData.contractAddress,
|
|
16396
|
-
contractAbi:
|
|
16507
|
+
contractAbi: config.getContractAbiList().map(
|
|
16508
|
+
(value) => convertProtobufValueToJs(value)
|
|
16509
|
+
),
|
|
16397
16510
|
methodCalls: protobufData.methodCallsList?.map((call) => ({
|
|
16398
16511
|
callData: call.callData,
|
|
16399
16512
|
methodName: call.methodName,
|
|
@@ -16419,23 +16532,10 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
16419
16532
|
}
|
|
16420
16533
|
static fromOutputData(outputData) {
|
|
16421
16534
|
const contractReadOutput = outputData.getContractRead();
|
|
16422
|
-
if (contractReadOutput
|
|
16423
|
-
|
|
16424
|
-
|
|
16425
|
-
|
|
16426
|
-
if (Array.isArray(jsData)) {
|
|
16427
|
-
return jsData.map((result) => ({
|
|
16428
|
-
methodName: result.methodName,
|
|
16429
|
-
success: result.success,
|
|
16430
|
-
error: result.error || "",
|
|
16431
|
-
data: result.data || {}
|
|
16432
|
-
}));
|
|
16433
|
-
} else {
|
|
16434
|
-
return jsData;
|
|
16435
|
-
}
|
|
16436
|
-
}
|
|
16437
|
-
}
|
|
16438
|
-
return null;
|
|
16535
|
+
if (!contractReadOutput) return null;
|
|
16536
|
+
const dataValue = contractReadOutput.getData();
|
|
16537
|
+
const cleanData = dataValue ? convertProtobufValueToJs(dataValue) : {};
|
|
16538
|
+
return cleanData;
|
|
16439
16539
|
}
|
|
16440
16540
|
};
|
|
16441
16541
|
var contractRead_default = ContractReadNode2;
|
|
@@ -16576,15 +16676,12 @@ var FilterNode2 = class _FilterNode extends Node {
|
|
|
16576
16676
|
throw new Error("FilterNode output data.getData() is missing");
|
|
16577
16677
|
}
|
|
16578
16678
|
const result = anyData.toJavaScript();
|
|
16579
|
-
if (
|
|
16580
|
-
return result
|
|
16679
|
+
if (Array.isArray(result)) {
|
|
16680
|
+
return result;
|
|
16581
16681
|
}
|
|
16582
16682
|
if (result && typeof result === "object" && !Array.isArray(result) && result.data && Array.isArray(result.data)) {
|
|
16583
16683
|
return result.data;
|
|
16584
16684
|
}
|
|
16585
|
-
if (Array.isArray(result)) {
|
|
16586
|
-
return result;
|
|
16587
|
-
}
|
|
16588
16685
|
throw new Error(
|
|
16589
16686
|
"FilterNode output data does not contain expected data structure"
|
|
16590
16687
|
);
|
|
@@ -16633,7 +16730,7 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
16633
16730
|
};
|
|
16634
16731
|
for (const [type, key] of Object.entries(runnerMapping)) {
|
|
16635
16732
|
if (loopNodeData[key]) {
|
|
16636
|
-
return { type,
|
|
16733
|
+
return { type, config: loopNodeData[key] };
|
|
16637
16734
|
}
|
|
16638
16735
|
}
|
|
16639
16736
|
return null;
|
|
@@ -16711,9 +16808,12 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
16711
16808
|
const writeConfig = config;
|
|
16712
16809
|
const contractWrite = contractWrite_default.createProtobufNode({
|
|
16713
16810
|
contractAddress: writeConfig.contractAddress,
|
|
16714
|
-
callData: writeConfig.callData,
|
|
16715
16811
|
contractAbi: writeConfig.contractAbi,
|
|
16716
|
-
methodCalls: writeConfig.
|
|
16812
|
+
methodCalls: writeConfig.methodCalls?.map((call) => ({
|
|
16813
|
+
methodName: call.methodName || "",
|
|
16814
|
+
methodParams: call.methodParams || [],
|
|
16815
|
+
...call.callData && { callData: call.callData }
|
|
16816
|
+
})) || []
|
|
16717
16817
|
});
|
|
16718
16818
|
loopNode.setContractWrite(contractWrite);
|
|
16719
16819
|
break;
|
|
@@ -16723,7 +16823,12 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
16723
16823
|
const contractRead = contractRead_default.createProtobufNode({
|
|
16724
16824
|
contractAddress: readConfig.contractAddress,
|
|
16725
16825
|
contractAbi: readConfig.contractAbi,
|
|
16726
|
-
methodCalls: readConfig.
|
|
16826
|
+
methodCalls: readConfig.methodCalls?.map((call) => ({
|
|
16827
|
+
methodName: call.methodName || "",
|
|
16828
|
+
methodParams: call.methodParams || [],
|
|
16829
|
+
...call.callData && { callData: call.callData },
|
|
16830
|
+
...call.applyToFields && { applyToFields: call.applyToFields }
|
|
16831
|
+
})) || []
|
|
16727
16832
|
});
|
|
16728
16833
|
loopNode.setContractRead(contractRead);
|
|
16729
16834
|
break;
|
|
@@ -16761,26 +16866,29 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
16761
16866
|
}
|
|
16762
16867
|
}
|
|
16763
16868
|
static fromOutputData(outputData) {
|
|
16764
|
-
const customCodeOutput = outputData.getCustomCode();
|
|
16765
|
-
if (customCodeOutput) {
|
|
16766
|
-
const result = customCodeOutput.toObject();
|
|
16767
|
-
if (result && typeof result === "object" && Object.keys(result).length === 1 && "data" in result) {
|
|
16768
|
-
return result.data;
|
|
16769
|
-
}
|
|
16770
|
-
return result;
|
|
16771
|
-
}
|
|
16772
16869
|
const loopOutput = outputData.getLoop();
|
|
16773
16870
|
if (loopOutput) {
|
|
16774
16871
|
const dataValue = loopOutput.getData();
|
|
16775
16872
|
if (dataValue) {
|
|
16776
16873
|
try {
|
|
16777
|
-
return dataValue
|
|
16874
|
+
return convertProtobufValueToJs(dataValue);
|
|
16778
16875
|
} catch (error) {
|
|
16779
|
-
console.warn(
|
|
16876
|
+
console.warn(
|
|
16877
|
+
"Failed to convert loop data from protobuf Value:",
|
|
16878
|
+
error
|
|
16879
|
+
);
|
|
16780
16880
|
return null;
|
|
16781
16881
|
}
|
|
16782
16882
|
}
|
|
16783
16883
|
}
|
|
16884
|
+
const customCodeOutput = outputData.getCustomCode();
|
|
16885
|
+
if (customCodeOutput) {
|
|
16886
|
+
const result = customCodeOutput.toObject();
|
|
16887
|
+
if (result && typeof result === "object" && Object.keys(result).length === 1 && "data" in result) {
|
|
16888
|
+
return result.data;
|
|
16889
|
+
}
|
|
16890
|
+
return result;
|
|
16891
|
+
}
|
|
16784
16892
|
return null;
|
|
16785
16893
|
}
|
|
16786
16894
|
};
|
|
@@ -17257,7 +17365,7 @@ var secret_default = Secret;
|
|
|
17257
17365
|
|
|
17258
17366
|
// src/index.ts
|
|
17259
17367
|
var import_types20 = require("@avaprotocol/types");
|
|
17260
|
-
var
|
|
17368
|
+
var google_protobuf_struct_pb4 = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
17261
17369
|
var import_types21 = require("@avaprotocol/types");
|
|
17262
17370
|
var BaseClient = class {
|
|
17263
17371
|
constructor(opts) {
|
|
@@ -17792,8 +17900,8 @@ var Client = class extends BaseClient {
|
|
|
17792
17900
|
timestamp: triggerData.timestamp,
|
|
17793
17901
|
timestampIso: triggerData.timestampIso
|
|
17794
17902
|
};
|
|
17795
|
-
const dataValue = new
|
|
17796
|
-
dataValue.setStructValue(
|
|
17903
|
+
const dataValue = new google_protobuf_struct_pb4.Value();
|
|
17904
|
+
dataValue.setStructValue(google_protobuf_struct_pb4.Struct.fromJavaScript(triggerOutputData));
|
|
17797
17905
|
fixedTimeOutput.setData(dataValue);
|
|
17798
17906
|
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
17799
17907
|
break;
|
|
@@ -17804,8 +17912,8 @@ var Client = class extends BaseClient {
|
|
|
17804
17912
|
timestamp: triggerData.timestamp,
|
|
17805
17913
|
timestampIso: triggerData.timestampIso
|
|
17806
17914
|
};
|
|
17807
|
-
const dataValue = new
|
|
17808
|
-
dataValue.setStructValue(
|
|
17915
|
+
const dataValue = new google_protobuf_struct_pb4.Value();
|
|
17916
|
+
dataValue.setStructValue(google_protobuf_struct_pb4.Struct.fromJavaScript(triggerOutputData));
|
|
17809
17917
|
cronOutput.setData(dataValue);
|
|
17810
17918
|
request.setCronTrigger(cronOutput);
|
|
17811
17919
|
break;
|
|
@@ -17822,8 +17930,8 @@ var Client = class extends BaseClient {
|
|
|
17822
17930
|
gasLimit: blockData.gasLimit || 0,
|
|
17823
17931
|
gasUsed: blockData.gasUsed || 0
|
|
17824
17932
|
};
|
|
17825
|
-
const dataValue = new
|
|
17826
|
-
dataValue.setStructValue(
|
|
17933
|
+
const dataValue = new google_protobuf_struct_pb4.Value();
|
|
17934
|
+
dataValue.setStructValue(google_protobuf_struct_pb4.Struct.fromJavaScript(triggerOutputData));
|
|
17827
17935
|
blockOutput.setData(dataValue);
|
|
17828
17936
|
request.setBlockTrigger(blockOutput);
|
|
17829
17937
|
break;
|