@avaprotocol/sdk-js 2.6.0 → 2.6.2
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.d.ts.map +1 -1
- package/dist/index.js +549 -1281
- package/dist/index.mjs +549 -1281
- package/dist/models/node/contractRead.d.ts +3 -11
- package/dist/models/node/contractRead.d.ts.map +1 -1
- package/dist/models/node/contractRead.js +26 -26
- package/dist/models/node/contractWrite.d.ts +2 -10
- package/dist/models/node/contractWrite.d.ts.map +1 -1
- package/dist/models/node/contractWrite.js +50 -9
- 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 +12 -4
- package/package.json +2 -2
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);
|
|
@@ -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
|
};
|
|
@@ -1465,7 +1433,7 @@ var require_avs_pb = __commonJS({
|
|
|
1465
1433
|
};
|
|
1466
1434
|
proto.aggregator.FixedTimeTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1467
1435
|
var f, obj = {
|
|
1468
|
-
data: (f = msg.getData()) &&
|
|
1436
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
1469
1437
|
};
|
|
1470
1438
|
if (includeInstance) {
|
|
1471
1439
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1486,8 +1454,8 @@ var require_avs_pb = __commonJS({
|
|
|
1486
1454
|
var field = reader.getFieldNumber();
|
|
1487
1455
|
switch (field) {
|
|
1488
1456
|
case 1:
|
|
1489
|
-
var value = new
|
|
1490
|
-
reader.readMessage(value,
|
|
1457
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
1458
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
1491
1459
|
msg.setData(value);
|
|
1492
1460
|
break;
|
|
1493
1461
|
default:
|
|
@@ -1509,14 +1477,14 @@ var require_avs_pb = __commonJS({
|
|
|
1509
1477
|
writer.writeMessage(
|
|
1510
1478
|
1,
|
|
1511
1479
|
f,
|
|
1512
|
-
|
|
1480
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
1513
1481
|
);
|
|
1514
1482
|
}
|
|
1515
1483
|
};
|
|
1516
1484
|
proto.aggregator.FixedTimeTrigger.Output.prototype.getData = function() {
|
|
1517
1485
|
return (
|
|
1518
1486
|
/** @type{?proto.google.protobuf.Value} */
|
|
1519
|
-
jspb.Message.getWrapperField(this,
|
|
1487
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
1520
1488
|
);
|
|
1521
1489
|
};
|
|
1522
1490
|
proto.aggregator.FixedTimeTrigger.Output.prototype.setData = function(value) {
|
|
@@ -1674,7 +1642,7 @@ var require_avs_pb = __commonJS({
|
|
|
1674
1642
|
};
|
|
1675
1643
|
proto.aggregator.CronTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1676
1644
|
var f, obj = {
|
|
1677
|
-
data: (f = msg.getData()) &&
|
|
1645
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
1678
1646
|
};
|
|
1679
1647
|
if (includeInstance) {
|
|
1680
1648
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1695,8 +1663,8 @@ var require_avs_pb = __commonJS({
|
|
|
1695
1663
|
var field = reader.getFieldNumber();
|
|
1696
1664
|
switch (field) {
|
|
1697
1665
|
case 1:
|
|
1698
|
-
var value = new
|
|
1699
|
-
reader.readMessage(value,
|
|
1666
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
1667
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
1700
1668
|
msg.setData(value);
|
|
1701
1669
|
break;
|
|
1702
1670
|
default:
|
|
@@ -1718,14 +1686,14 @@ var require_avs_pb = __commonJS({
|
|
|
1718
1686
|
writer.writeMessage(
|
|
1719
1687
|
1,
|
|
1720
1688
|
f,
|
|
1721
|
-
|
|
1689
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
1722
1690
|
);
|
|
1723
1691
|
}
|
|
1724
1692
|
};
|
|
1725
1693
|
proto.aggregator.CronTrigger.Output.prototype.getData = function() {
|
|
1726
1694
|
return (
|
|
1727
1695
|
/** @type{?proto.google.protobuf.Value} */
|
|
1728
|
-
jspb.Message.getWrapperField(this,
|
|
1696
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
1729
1697
|
);
|
|
1730
1698
|
};
|
|
1731
1699
|
proto.aggregator.CronTrigger.Output.prototype.setData = function(value) {
|
|
@@ -1876,7 +1844,7 @@ var require_avs_pb = __commonJS({
|
|
|
1876
1844
|
};
|
|
1877
1845
|
proto.aggregator.BlockTrigger.Output.toObject = function(includeInstance, msg) {
|
|
1878
1846
|
var f, obj = {
|
|
1879
|
-
data: (f = msg.getData()) &&
|
|
1847
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
1880
1848
|
};
|
|
1881
1849
|
if (includeInstance) {
|
|
1882
1850
|
obj.$jspbMessageInstance = msg;
|
|
@@ -1897,8 +1865,8 @@ var require_avs_pb = __commonJS({
|
|
|
1897
1865
|
var field = reader.getFieldNumber();
|
|
1898
1866
|
switch (field) {
|
|
1899
1867
|
case 1:
|
|
1900
|
-
var value = new
|
|
1901
|
-
reader.readMessage(value,
|
|
1868
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
1869
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
1902
1870
|
msg.setData(value);
|
|
1903
1871
|
break;
|
|
1904
1872
|
default:
|
|
@@ -1920,14 +1888,14 @@ var require_avs_pb = __commonJS({
|
|
|
1920
1888
|
writer.writeMessage(
|
|
1921
1889
|
1,
|
|
1922
1890
|
f,
|
|
1923
|
-
|
|
1891
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
1924
1892
|
);
|
|
1925
1893
|
}
|
|
1926
1894
|
};
|
|
1927
1895
|
proto.aggregator.BlockTrigger.Output.prototype.getData = function() {
|
|
1928
1896
|
return (
|
|
1929
1897
|
/** @type{?proto.google.protobuf.Value} */
|
|
1930
|
-
jspb.Message.getWrapperField(this,
|
|
1898
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
1931
1899
|
);
|
|
1932
1900
|
};
|
|
1933
1901
|
proto.aggregator.BlockTrigger.Output.prototype.setData = function(value) {
|
|
@@ -2008,7 +1976,7 @@ var require_avs_pb = __commonJS({
|
|
|
2008
1976
|
);
|
|
2009
1977
|
}
|
|
2010
1978
|
};
|
|
2011
|
-
proto.aggregator.EventTrigger.Query.repeatedFields_ = [1, 2, 5, 6];
|
|
1979
|
+
proto.aggregator.EventTrigger.Query.repeatedFields_ = [1, 2, 4, 5, 6];
|
|
2012
1980
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2013
1981
|
proto.aggregator.EventTrigger.Query.prototype.toObject = function(opt_includeInstance) {
|
|
2014
1982
|
return proto.aggregator.EventTrigger.Query.toObject(opt_includeInstance, this);
|
|
@@ -2022,7 +1990,11 @@ var require_avs_pb = __commonJS({
|
|
|
2022
1990
|
includeInstance
|
|
2023
1991
|
),
|
|
2024
1992
|
maxEventsPerBlock: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
2025
|
-
|
|
1993
|
+
contractAbiList: jspb.Message.toObjectList(
|
|
1994
|
+
msg.getContractAbiList(),
|
|
1995
|
+
google_protobuf_struct_pb5.Value.toObject,
|
|
1996
|
+
includeInstance
|
|
1997
|
+
),
|
|
2026
1998
|
conditionsList: jspb.Message.toObjectList(
|
|
2027
1999
|
msg.getConditionsList(),
|
|
2028
2000
|
proto.aggregator.EventCondition.toObject,
|
|
@@ -2072,11 +2044,9 @@ var require_avs_pb = __commonJS({
|
|
|
2072
2044
|
msg.setMaxEventsPerBlock(value);
|
|
2073
2045
|
break;
|
|
2074
2046
|
case 4:
|
|
2075
|
-
var value = (
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
);
|
|
2079
|
-
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);
|
|
2080
2050
|
break;
|
|
2081
2051
|
case 5:
|
|
2082
2052
|
var value = new proto.aggregator.EventCondition();
|
|
@@ -2125,11 +2095,12 @@ var require_avs_pb = __commonJS({
|
|
|
2125
2095
|
f
|
|
2126
2096
|
);
|
|
2127
2097
|
}
|
|
2128
|
-
f = message.
|
|
2098
|
+
f = message.getContractAbiList();
|
|
2129
2099
|
if (f.length > 0) {
|
|
2130
|
-
writer.
|
|
2100
|
+
writer.writeRepeatedMessage(
|
|
2131
2101
|
4,
|
|
2132
|
-
f
|
|
2102
|
+
f,
|
|
2103
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
2133
2104
|
);
|
|
2134
2105
|
}
|
|
2135
2106
|
f = message.getConditionsList();
|
|
@@ -2194,14 +2165,20 @@ var require_avs_pb = __commonJS({
|
|
|
2194
2165
|
proto.aggregator.EventTrigger.Query.prototype.hasMaxEventsPerBlock = function() {
|
|
2195
2166
|
return jspb.Message.getField(this, 3) != null;
|
|
2196
2167
|
};
|
|
2197
|
-
proto.aggregator.EventTrigger.Query.prototype.
|
|
2168
|
+
proto.aggregator.EventTrigger.Query.prototype.getContractAbiList = function() {
|
|
2198
2169
|
return (
|
|
2199
|
-
/** @type
|
|
2200
|
-
jspb.Message.
|
|
2170
|
+
/** @type{!Array<!proto.google.protobuf.Value>} */
|
|
2171
|
+
jspb.Message.getRepeatedWrapperField(this, google_protobuf_struct_pb5.Value, 4)
|
|
2201
2172
|
);
|
|
2202
2173
|
};
|
|
2203
|
-
proto.aggregator.EventTrigger.Query.prototype.
|
|
2204
|
-
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([]);
|
|
2205
2182
|
};
|
|
2206
2183
|
proto.aggregator.EventTrigger.Query.prototype.getConditionsList = function() {
|
|
2207
2184
|
return (
|
|
@@ -2503,7 +2480,7 @@ var require_avs_pb = __commonJS({
|
|
|
2503
2480
|
};
|
|
2504
2481
|
proto.aggregator.EventTrigger.Output.toObject = function(includeInstance, msg) {
|
|
2505
2482
|
var f, obj = {
|
|
2506
|
-
data: (f = msg.getData()) &&
|
|
2483
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
2507
2484
|
};
|
|
2508
2485
|
if (includeInstance) {
|
|
2509
2486
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2524,8 +2501,8 @@ var require_avs_pb = __commonJS({
|
|
|
2524
2501
|
var field = reader.getFieldNumber();
|
|
2525
2502
|
switch (field) {
|
|
2526
2503
|
case 1:
|
|
2527
|
-
var value = new
|
|
2528
|
-
reader.readMessage(value,
|
|
2504
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
2505
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
2529
2506
|
msg.setData(value);
|
|
2530
2507
|
break;
|
|
2531
2508
|
default:
|
|
@@ -2547,14 +2524,14 @@ var require_avs_pb = __commonJS({
|
|
|
2547
2524
|
writer.writeMessage(
|
|
2548
2525
|
1,
|
|
2549
2526
|
f,
|
|
2550
|
-
|
|
2527
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
2551
2528
|
);
|
|
2552
2529
|
}
|
|
2553
2530
|
};
|
|
2554
2531
|
proto.aggregator.EventTrigger.Output.prototype.getData = function() {
|
|
2555
2532
|
return (
|
|
2556
2533
|
/** @type{?proto.google.protobuf.Value} */
|
|
2557
|
-
jspb.Message.getWrapperField(this,
|
|
2534
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
2558
2535
|
);
|
|
2559
2536
|
};
|
|
2560
2537
|
proto.aggregator.EventTrigger.Output.prototype.setData = function(value) {
|
|
@@ -2641,7 +2618,7 @@ var require_avs_pb = __commonJS({
|
|
|
2641
2618
|
};
|
|
2642
2619
|
proto.aggregator.ManualTrigger.Config.toObject = function(includeInstance, msg) {
|
|
2643
2620
|
var f, obj = {
|
|
2644
|
-
data: (f = msg.getData()) &&
|
|
2621
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
2645
2622
|
headersMap: (f = msg.getHeadersMap()) ? f.toObject(includeInstance, void 0) : [],
|
|
2646
2623
|
pathparamsMap: (f = msg.getPathparamsMap()) ? f.toObject(includeInstance, void 0) : []
|
|
2647
2624
|
};
|
|
@@ -2664,8 +2641,8 @@ var require_avs_pb = __commonJS({
|
|
|
2664
2641
|
var field = reader.getFieldNumber();
|
|
2665
2642
|
switch (field) {
|
|
2666
2643
|
case 1:
|
|
2667
|
-
var value = new
|
|
2668
|
-
reader.readMessage(value,
|
|
2644
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
2645
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
2669
2646
|
msg.setData(value);
|
|
2670
2647
|
break;
|
|
2671
2648
|
case 2:
|
|
@@ -2699,7 +2676,7 @@ var require_avs_pb = __commonJS({
|
|
|
2699
2676
|
writer.writeMessage(
|
|
2700
2677
|
1,
|
|
2701
2678
|
f,
|
|
2702
|
-
|
|
2679
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
2703
2680
|
);
|
|
2704
2681
|
}
|
|
2705
2682
|
f = message.getHeadersMap(true);
|
|
@@ -2714,7 +2691,7 @@ var require_avs_pb = __commonJS({
|
|
|
2714
2691
|
proto.aggregator.ManualTrigger.Config.prototype.getData = function() {
|
|
2715
2692
|
return (
|
|
2716
2693
|
/** @type{?proto.google.protobuf.Value} */
|
|
2717
|
-
jspb.Message.getWrapperField(this,
|
|
2694
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
2718
2695
|
);
|
|
2719
2696
|
};
|
|
2720
2697
|
proto.aggregator.ManualTrigger.Config.prototype.setData = function(value) {
|
|
@@ -2762,7 +2739,7 @@ var require_avs_pb = __commonJS({
|
|
|
2762
2739
|
};
|
|
2763
2740
|
proto.aggregator.ManualTrigger.Output.toObject = function(includeInstance, msg) {
|
|
2764
2741
|
var f, obj = {
|
|
2765
|
-
data: (f = msg.getData()) &&
|
|
2742
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
2766
2743
|
};
|
|
2767
2744
|
if (includeInstance) {
|
|
2768
2745
|
obj.$jspbMessageInstance = msg;
|
|
@@ -2783,8 +2760,8 @@ var require_avs_pb = __commonJS({
|
|
|
2783
2760
|
var field = reader.getFieldNumber();
|
|
2784
2761
|
switch (field) {
|
|
2785
2762
|
case 1:
|
|
2786
|
-
var value = new
|
|
2787
|
-
reader.readMessage(value,
|
|
2763
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
2764
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
2788
2765
|
msg.setData(value);
|
|
2789
2766
|
break;
|
|
2790
2767
|
default:
|
|
@@ -2806,14 +2783,14 @@ var require_avs_pb = __commonJS({
|
|
|
2806
2783
|
writer.writeMessage(
|
|
2807
2784
|
1,
|
|
2808
2785
|
f,
|
|
2809
|
-
|
|
2786
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
2810
2787
|
);
|
|
2811
2788
|
}
|
|
2812
2789
|
};
|
|
2813
2790
|
proto.aggregator.ManualTrigger.Output.prototype.getData = function() {
|
|
2814
2791
|
return (
|
|
2815
2792
|
/** @type{?proto.google.protobuf.Value} */
|
|
2816
|
-
jspb.Message.getWrapperField(this,
|
|
2793
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
2817
2794
|
);
|
|
2818
2795
|
};
|
|
2819
2796
|
proto.aggregator.ManualTrigger.Output.prototype.setData = function(value) {
|
|
@@ -3260,7 +3237,7 @@ var require_avs_pb = __commonJS({
|
|
|
3260
3237
|
};
|
|
3261
3238
|
proto.aggregator.ETHTransferNode.Output.toObject = function(includeInstance, msg) {
|
|
3262
3239
|
var f, obj = {
|
|
3263
|
-
data: (f = msg.getData()) &&
|
|
3240
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
3264
3241
|
};
|
|
3265
3242
|
if (includeInstance) {
|
|
3266
3243
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3281,8 +3258,8 @@ var require_avs_pb = __commonJS({
|
|
|
3281
3258
|
var field = reader.getFieldNumber();
|
|
3282
3259
|
switch (field) {
|
|
3283
3260
|
case 1:
|
|
3284
|
-
var value = new
|
|
3285
|
-
reader.readMessage(value,
|
|
3261
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
3262
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3286
3263
|
msg.setData(value);
|
|
3287
3264
|
break;
|
|
3288
3265
|
default:
|
|
@@ -3304,14 +3281,14 @@ var require_avs_pb = __commonJS({
|
|
|
3304
3281
|
writer.writeMessage(
|
|
3305
3282
|
1,
|
|
3306
3283
|
f,
|
|
3307
|
-
|
|
3284
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3308
3285
|
);
|
|
3309
3286
|
}
|
|
3310
3287
|
};
|
|
3311
3288
|
proto.aggregator.ETHTransferNode.Output.prototype.getData = function() {
|
|
3312
3289
|
return (
|
|
3313
3290
|
/** @type{?proto.google.protobuf.Value} */
|
|
3314
|
-
jspb.Message.getWrapperField(this,
|
|
3291
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
3315
3292
|
);
|
|
3316
3293
|
};
|
|
3317
3294
|
proto.aggregator.ETHTransferNode.Output.prototype.setData = function(value) {
|
|
@@ -3392,7 +3369,7 @@ var require_avs_pb = __commonJS({
|
|
|
3392
3369
|
);
|
|
3393
3370
|
}
|
|
3394
3371
|
};
|
|
3395
|
-
proto.aggregator.ContractWriteNode.Config.repeatedFields_ = [4];
|
|
3372
|
+
proto.aggregator.ContractWriteNode.Config.repeatedFields_ = [3, 4];
|
|
3396
3373
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3397
3374
|
proto.aggregator.ContractWriteNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
3398
3375
|
return proto.aggregator.ContractWriteNode.Config.toObject(opt_includeInstance, this);
|
|
@@ -3401,7 +3378,11 @@ var require_avs_pb = __commonJS({
|
|
|
3401
3378
|
var f, obj = {
|
|
3402
3379
|
contractAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3403
3380
|
callData: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3404
|
-
|
|
3381
|
+
contractAbiList: jspb.Message.toObjectList(
|
|
3382
|
+
msg.getContractAbiList(),
|
|
3383
|
+
google_protobuf_struct_pb5.Value.toObject,
|
|
3384
|
+
includeInstance
|
|
3385
|
+
),
|
|
3405
3386
|
methodCallsList: jspb.Message.toObjectList(
|
|
3406
3387
|
msg.getMethodCallsList(),
|
|
3407
3388
|
proto.aggregator.ContractWriteNode.MethodCall.toObject,
|
|
@@ -3441,11 +3422,9 @@ var require_avs_pb = __commonJS({
|
|
|
3441
3422
|
msg.setCallData(value);
|
|
3442
3423
|
break;
|
|
3443
3424
|
case 3:
|
|
3444
|
-
var value = (
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
);
|
|
3448
|
-
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);
|
|
3449
3428
|
break;
|
|
3450
3429
|
case 4:
|
|
3451
3430
|
var value = new proto.aggregator.ContractWriteNode.MethodCall();
|
|
@@ -3480,11 +3459,12 @@ var require_avs_pb = __commonJS({
|
|
|
3480
3459
|
f
|
|
3481
3460
|
);
|
|
3482
3461
|
}
|
|
3483
|
-
f = message.
|
|
3462
|
+
f = message.getContractAbiList();
|
|
3484
3463
|
if (f.length > 0) {
|
|
3485
|
-
writer.
|
|
3464
|
+
writer.writeRepeatedMessage(
|
|
3486
3465
|
3,
|
|
3487
|
-
f
|
|
3466
|
+
f,
|
|
3467
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3488
3468
|
);
|
|
3489
3469
|
}
|
|
3490
3470
|
f = message.getMethodCallsList();
|
|
@@ -3514,14 +3494,20 @@ var require_avs_pb = __commonJS({
|
|
|
3514
3494
|
proto.aggregator.ContractWriteNode.Config.prototype.setCallData = function(value) {
|
|
3515
3495
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3516
3496
|
};
|
|
3517
|
-
proto.aggregator.ContractWriteNode.Config.prototype.
|
|
3497
|
+
proto.aggregator.ContractWriteNode.Config.prototype.getContractAbiList = function() {
|
|
3518
3498
|
return (
|
|
3519
|
-
/** @type
|
|
3520
|
-
jspb.Message.
|
|
3499
|
+
/** @type{!Array<!proto.google.protobuf.Value>} */
|
|
3500
|
+
jspb.Message.getRepeatedWrapperField(this, google_protobuf_struct_pb5.Value, 3)
|
|
3521
3501
|
);
|
|
3522
3502
|
};
|
|
3523
|
-
proto.aggregator.ContractWriteNode.Config.prototype.
|
|
3524
|
-
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([]);
|
|
3525
3511
|
};
|
|
3526
3512
|
proto.aggregator.ContractWriteNode.Config.prototype.getMethodCallsList = function() {
|
|
3527
3513
|
return (
|
|
@@ -3538,6 +3524,7 @@ var require_avs_pb = __commonJS({
|
|
|
3538
3524
|
proto.aggregator.ContractWriteNode.Config.prototype.clearMethodCallsList = function() {
|
|
3539
3525
|
return this.setMethodCallsList([]);
|
|
3540
3526
|
};
|
|
3527
|
+
proto.aggregator.ContractWriteNode.MethodCall.repeatedFields_ = [3];
|
|
3541
3528
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3542
3529
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.toObject = function(opt_includeInstance) {
|
|
3543
3530
|
return proto.aggregator.ContractWriteNode.MethodCall.toObject(opt_includeInstance, this);
|
|
@@ -3545,7 +3532,8 @@ var require_avs_pb = __commonJS({
|
|
|
3545
3532
|
proto.aggregator.ContractWriteNode.MethodCall.toObject = function(includeInstance, msg) {
|
|
3546
3533
|
var f, obj = {
|
|
3547
3534
|
callData: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3548
|
-
methodName: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
3535
|
+
methodName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3536
|
+
methodParamsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f
|
|
3549
3537
|
};
|
|
3550
3538
|
if (includeInstance) {
|
|
3551
3539
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3579,6 +3567,13 @@ var require_avs_pb = __commonJS({
|
|
|
3579
3567
|
);
|
|
3580
3568
|
msg.setMethodName(value);
|
|
3581
3569
|
break;
|
|
3570
|
+
case 3:
|
|
3571
|
+
var value = (
|
|
3572
|
+
/** @type {string} */
|
|
3573
|
+
reader.readString()
|
|
3574
|
+
);
|
|
3575
|
+
msg.addMethodParams(value);
|
|
3576
|
+
break;
|
|
3582
3577
|
default:
|
|
3583
3578
|
reader.skipField();
|
|
3584
3579
|
break;
|
|
@@ -3607,6 +3602,13 @@ var require_avs_pb = __commonJS({
|
|
|
3607
3602
|
f
|
|
3608
3603
|
);
|
|
3609
3604
|
}
|
|
3605
|
+
f = message.getMethodParamsList();
|
|
3606
|
+
if (f.length > 0) {
|
|
3607
|
+
writer.writeRepeatedString(
|
|
3608
|
+
3,
|
|
3609
|
+
f
|
|
3610
|
+
);
|
|
3611
|
+
}
|
|
3610
3612
|
};
|
|
3611
3613
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.getCallData = function() {
|
|
3612
3614
|
return (
|
|
@@ -3626,13 +3628,28 @@ var require_avs_pb = __commonJS({
|
|
|
3626
3628
|
proto.aggregator.ContractWriteNode.MethodCall.prototype.setMethodName = function(value) {
|
|
3627
3629
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
3628
3630
|
};
|
|
3631
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.getMethodParamsList = function() {
|
|
3632
|
+
return (
|
|
3633
|
+
/** @type {!Array<string>} */
|
|
3634
|
+
jspb.Message.getRepeatedField(this, 3)
|
|
3635
|
+
);
|
|
3636
|
+
};
|
|
3637
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.setMethodParamsList = function(value) {
|
|
3638
|
+
return jspb.Message.setField(this, 3, value || []);
|
|
3639
|
+
};
|
|
3640
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.addMethodParams = function(value, opt_index) {
|
|
3641
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
3642
|
+
};
|
|
3643
|
+
proto.aggregator.ContractWriteNode.MethodCall.prototype.clearMethodParamsList = function() {
|
|
3644
|
+
return this.setMethodParamsList([]);
|
|
3645
|
+
};
|
|
3629
3646
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3630
3647
|
proto.aggregator.ContractWriteNode.Output.prototype.toObject = function(opt_includeInstance) {
|
|
3631
3648
|
return proto.aggregator.ContractWriteNode.Output.toObject(opt_includeInstance, this);
|
|
3632
3649
|
};
|
|
3633
3650
|
proto.aggregator.ContractWriteNode.Output.toObject = function(includeInstance, msg) {
|
|
3634
3651
|
var f, obj = {
|
|
3635
|
-
data: (f = msg.getData()) &&
|
|
3652
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
3636
3653
|
};
|
|
3637
3654
|
if (includeInstance) {
|
|
3638
3655
|
obj.$jspbMessageInstance = msg;
|
|
@@ -3653,8 +3670,8 @@ var require_avs_pb = __commonJS({
|
|
|
3653
3670
|
var field = reader.getFieldNumber();
|
|
3654
3671
|
switch (field) {
|
|
3655
3672
|
case 1:
|
|
3656
|
-
var value = new
|
|
3657
|
-
reader.readMessage(value,
|
|
3673
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
3674
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3658
3675
|
msg.setData(value);
|
|
3659
3676
|
break;
|
|
3660
3677
|
default:
|
|
@@ -3675,1021 +3692,39 @@ var require_avs_pb = __commonJS({
|
|
|
3675
3692
|
if (f != null) {
|
|
3676
3693
|
writer.writeMessage(
|
|
3677
3694
|
1,
|
|
3678
|
-
f,
|
|
3679
|
-
|
|
3680
|
-
);
|
|
3681
|
-
}
|
|
3682
|
-
};
|
|
3683
|
-
proto.aggregator.ContractWriteNode.Output.prototype.getData = function() {
|
|
3684
|
-
return (
|
|
3685
|
-
/** @type{?proto.google.protobuf.Value} */
|
|
3686
|
-
jspb.Message.getWrapperField(this, google_protobuf_struct_pb2.Value, 1)
|
|
3687
|
-
);
|
|
3688
|
-
};
|
|
3689
|
-
proto.aggregator.ContractWriteNode.Output.prototype.setData = function(value) {
|
|
3690
|
-
return jspb.Message.setWrapperField(this, 1, value);
|
|
3691
|
-
};
|
|
3692
|
-
proto.aggregator.ContractWriteNode.Output.prototype.clearData = function() {
|
|
3693
|
-
return this.setData(void 0);
|
|
3694
|
-
};
|
|
3695
|
-
proto.aggregator.ContractWriteNode.Output.prototype.hasData = function() {
|
|
3696
|
-
return jspb.Message.getField(this, 1) != null;
|
|
3697
|
-
};
|
|
3698
|
-
proto.aggregator.ContractWriteNode.MethodResult.repeatedFields_ = [4];
|
|
3699
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3700
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.toObject = function(opt_includeInstance) {
|
|
3701
|
-
return proto.aggregator.ContractWriteNode.MethodResult.toObject(opt_includeInstance, this);
|
|
3702
|
-
};
|
|
3703
|
-
proto.aggregator.ContractWriteNode.MethodResult.toObject = function(includeInstance, msg) {
|
|
3704
|
-
var f, obj = {
|
|
3705
|
-
methodName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3706
|
-
success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
|
3707
|
-
transaction: (f = msg.getTransaction()) && proto.aggregator.ContractWriteNode.TransactionData.toObject(includeInstance, f),
|
|
3708
|
-
eventsList: jspb.Message.toObjectList(
|
|
3709
|
-
msg.getEventsList(),
|
|
3710
|
-
proto.aggregator.ContractWriteNode.EventData.toObject,
|
|
3711
|
-
includeInstance
|
|
3712
|
-
),
|
|
3713
|
-
error: (f = msg.getError()) && proto.aggregator.ContractWriteNode.ErrorData.toObject(includeInstance, f),
|
|
3714
|
-
returnData: (f = msg.getReturnData()) && proto.aggregator.ContractWriteNode.ReturnData.toObject(includeInstance, f),
|
|
3715
|
-
inputData: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
3716
|
-
};
|
|
3717
|
-
if (includeInstance) {
|
|
3718
|
-
obj.$jspbMessageInstance = msg;
|
|
3719
|
-
}
|
|
3720
|
-
return obj;
|
|
3721
|
-
};
|
|
3722
|
-
}
|
|
3723
|
-
proto.aggregator.ContractWriteNode.MethodResult.deserializeBinary = function(bytes) {
|
|
3724
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3725
|
-
var msg = new proto.aggregator.ContractWriteNode.MethodResult();
|
|
3726
|
-
return proto.aggregator.ContractWriteNode.MethodResult.deserializeBinaryFromReader(msg, reader);
|
|
3727
|
-
};
|
|
3728
|
-
proto.aggregator.ContractWriteNode.MethodResult.deserializeBinaryFromReader = function(msg, reader) {
|
|
3729
|
-
while (reader.nextField()) {
|
|
3730
|
-
if (reader.isEndGroup()) {
|
|
3731
|
-
break;
|
|
3732
|
-
}
|
|
3733
|
-
var field = reader.getFieldNumber();
|
|
3734
|
-
switch (field) {
|
|
3735
|
-
case 1:
|
|
3736
|
-
var value = (
|
|
3737
|
-
/** @type {string} */
|
|
3738
|
-
reader.readString()
|
|
3739
|
-
);
|
|
3740
|
-
msg.setMethodName(value);
|
|
3741
|
-
break;
|
|
3742
|
-
case 2:
|
|
3743
|
-
var value = (
|
|
3744
|
-
/** @type {boolean} */
|
|
3745
|
-
reader.readBool()
|
|
3746
|
-
);
|
|
3747
|
-
msg.setSuccess(value);
|
|
3748
|
-
break;
|
|
3749
|
-
case 3:
|
|
3750
|
-
var value = new proto.aggregator.ContractWriteNode.TransactionData();
|
|
3751
|
-
reader.readMessage(value, proto.aggregator.ContractWriteNode.TransactionData.deserializeBinaryFromReader);
|
|
3752
|
-
msg.setTransaction(value);
|
|
3753
|
-
break;
|
|
3754
|
-
case 4:
|
|
3755
|
-
var value = new proto.aggregator.ContractWriteNode.EventData();
|
|
3756
|
-
reader.readMessage(value, proto.aggregator.ContractWriteNode.EventData.deserializeBinaryFromReader);
|
|
3757
|
-
msg.addEvents(value);
|
|
3758
|
-
break;
|
|
3759
|
-
case 5:
|
|
3760
|
-
var value = new proto.aggregator.ContractWriteNode.ErrorData();
|
|
3761
|
-
reader.readMessage(value, proto.aggregator.ContractWriteNode.ErrorData.deserializeBinaryFromReader);
|
|
3762
|
-
msg.setError(value);
|
|
3763
|
-
break;
|
|
3764
|
-
case 6:
|
|
3765
|
-
var value = new proto.aggregator.ContractWriteNode.ReturnData();
|
|
3766
|
-
reader.readMessage(value, proto.aggregator.ContractWriteNode.ReturnData.deserializeBinaryFromReader);
|
|
3767
|
-
msg.setReturnData(value);
|
|
3768
|
-
break;
|
|
3769
|
-
case 7:
|
|
3770
|
-
var value = (
|
|
3771
|
-
/** @type {string} */
|
|
3772
|
-
reader.readString()
|
|
3773
|
-
);
|
|
3774
|
-
msg.setInputData(value);
|
|
3775
|
-
break;
|
|
3776
|
-
default:
|
|
3777
|
-
reader.skipField();
|
|
3778
|
-
break;
|
|
3779
|
-
}
|
|
3780
|
-
}
|
|
3781
|
-
return msg;
|
|
3782
|
-
};
|
|
3783
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.serializeBinary = function() {
|
|
3784
|
-
var writer = new jspb.BinaryWriter();
|
|
3785
|
-
proto.aggregator.ContractWriteNode.MethodResult.serializeBinaryToWriter(this, writer);
|
|
3786
|
-
return writer.getResultBuffer();
|
|
3787
|
-
};
|
|
3788
|
-
proto.aggregator.ContractWriteNode.MethodResult.serializeBinaryToWriter = function(message, writer) {
|
|
3789
|
-
var f = void 0;
|
|
3790
|
-
f = message.getMethodName();
|
|
3791
|
-
if (f.length > 0) {
|
|
3792
|
-
writer.writeString(
|
|
3793
|
-
1,
|
|
3794
|
-
f
|
|
3795
|
-
);
|
|
3796
|
-
}
|
|
3797
|
-
f = message.getSuccess();
|
|
3798
|
-
if (f) {
|
|
3799
|
-
writer.writeBool(
|
|
3800
|
-
2,
|
|
3801
|
-
f
|
|
3802
|
-
);
|
|
3803
|
-
}
|
|
3804
|
-
f = message.getTransaction();
|
|
3805
|
-
if (f != null) {
|
|
3806
|
-
writer.writeMessage(
|
|
3807
|
-
3,
|
|
3808
|
-
f,
|
|
3809
|
-
proto.aggregator.ContractWriteNode.TransactionData.serializeBinaryToWriter
|
|
3810
|
-
);
|
|
3811
|
-
}
|
|
3812
|
-
f = message.getEventsList();
|
|
3813
|
-
if (f.length > 0) {
|
|
3814
|
-
writer.writeRepeatedMessage(
|
|
3815
|
-
4,
|
|
3816
|
-
f,
|
|
3817
|
-
proto.aggregator.ContractWriteNode.EventData.serializeBinaryToWriter
|
|
3818
|
-
);
|
|
3819
|
-
}
|
|
3820
|
-
f = message.getError();
|
|
3821
|
-
if (f != null) {
|
|
3822
|
-
writer.writeMessage(
|
|
3823
|
-
5,
|
|
3824
|
-
f,
|
|
3825
|
-
proto.aggregator.ContractWriteNode.ErrorData.serializeBinaryToWriter
|
|
3826
|
-
);
|
|
3827
|
-
}
|
|
3828
|
-
f = message.getReturnData();
|
|
3829
|
-
if (f != null) {
|
|
3830
|
-
writer.writeMessage(
|
|
3831
|
-
6,
|
|
3832
|
-
f,
|
|
3833
|
-
proto.aggregator.ContractWriteNode.ReturnData.serializeBinaryToWriter
|
|
3834
|
-
);
|
|
3835
|
-
}
|
|
3836
|
-
f = message.getInputData();
|
|
3837
|
-
if (f.length > 0) {
|
|
3838
|
-
writer.writeString(
|
|
3839
|
-
7,
|
|
3840
|
-
f
|
|
3841
|
-
);
|
|
3842
|
-
}
|
|
3843
|
-
};
|
|
3844
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.getMethodName = function() {
|
|
3845
|
-
return (
|
|
3846
|
-
/** @type {string} */
|
|
3847
|
-
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
3848
|
-
);
|
|
3849
|
-
};
|
|
3850
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.setMethodName = function(value) {
|
|
3851
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3852
|
-
};
|
|
3853
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.getSuccess = function() {
|
|
3854
|
-
return (
|
|
3855
|
-
/** @type {boolean} */
|
|
3856
|
-
jspb.Message.getBooleanFieldWithDefault(this, 2, false)
|
|
3857
|
-
);
|
|
3858
|
-
};
|
|
3859
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.setSuccess = function(value) {
|
|
3860
|
-
return jspb.Message.setProto3BooleanField(this, 2, value);
|
|
3861
|
-
};
|
|
3862
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.getTransaction = function() {
|
|
3863
|
-
return (
|
|
3864
|
-
/** @type{?proto.aggregator.ContractWriteNode.TransactionData} */
|
|
3865
|
-
jspb.Message.getWrapperField(this, proto.aggregator.ContractWriteNode.TransactionData, 3)
|
|
3866
|
-
);
|
|
3867
|
-
};
|
|
3868
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.setTransaction = function(value) {
|
|
3869
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
3870
|
-
};
|
|
3871
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearTransaction = function() {
|
|
3872
|
-
return this.setTransaction(void 0);
|
|
3873
|
-
};
|
|
3874
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasTransaction = function() {
|
|
3875
|
-
return jspb.Message.getField(this, 3) != null;
|
|
3876
|
-
};
|
|
3877
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.getEventsList = function() {
|
|
3878
|
-
return (
|
|
3879
|
-
/** @type{!Array<!proto.aggregator.ContractWriteNode.EventData>} */
|
|
3880
|
-
jspb.Message.getRepeatedWrapperField(this, proto.aggregator.ContractWriteNode.EventData, 4)
|
|
3881
|
-
);
|
|
3882
|
-
};
|
|
3883
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.setEventsList = function(value) {
|
|
3884
|
-
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
3885
|
-
};
|
|
3886
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.addEvents = function(opt_value, opt_index) {
|
|
3887
|
-
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.aggregator.ContractWriteNode.EventData, opt_index);
|
|
3888
|
-
};
|
|
3889
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearEventsList = function() {
|
|
3890
|
-
return this.setEventsList([]);
|
|
3891
|
-
};
|
|
3892
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.getError = function() {
|
|
3893
|
-
return (
|
|
3894
|
-
/** @type{?proto.aggregator.ContractWriteNode.ErrorData} */
|
|
3895
|
-
jspb.Message.getWrapperField(this, proto.aggregator.ContractWriteNode.ErrorData, 5)
|
|
3896
|
-
);
|
|
3897
|
-
};
|
|
3898
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.setError = function(value) {
|
|
3899
|
-
return jspb.Message.setWrapperField(this, 5, value);
|
|
3900
|
-
};
|
|
3901
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearError = function() {
|
|
3902
|
-
return this.setError(void 0);
|
|
3903
|
-
};
|
|
3904
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasError = function() {
|
|
3905
|
-
return jspb.Message.getField(this, 5) != null;
|
|
3906
|
-
};
|
|
3907
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.getReturnData = function() {
|
|
3908
|
-
return (
|
|
3909
|
-
/** @type{?proto.aggregator.ContractWriteNode.ReturnData} */
|
|
3910
|
-
jspb.Message.getWrapperField(this, proto.aggregator.ContractWriteNode.ReturnData, 6)
|
|
3911
|
-
);
|
|
3912
|
-
};
|
|
3913
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.setReturnData = function(value) {
|
|
3914
|
-
return jspb.Message.setWrapperField(this, 6, value);
|
|
3915
|
-
};
|
|
3916
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearReturnData = function() {
|
|
3917
|
-
return this.setReturnData(void 0);
|
|
3918
|
-
};
|
|
3919
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasReturnData = function() {
|
|
3920
|
-
return jspb.Message.getField(this, 6) != null;
|
|
3921
|
-
};
|
|
3922
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.getInputData = function() {
|
|
3923
|
-
return (
|
|
3924
|
-
/** @type {string} */
|
|
3925
|
-
jspb.Message.getFieldWithDefault(this, 7, "")
|
|
3926
|
-
);
|
|
3927
|
-
};
|
|
3928
|
-
proto.aggregator.ContractWriteNode.MethodResult.prototype.setInputData = function(value) {
|
|
3929
|
-
return jspb.Message.setProto3StringField(this, 7, value);
|
|
3930
|
-
};
|
|
3931
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
3932
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.toObject = function(opt_includeInstance) {
|
|
3933
|
-
return proto.aggregator.ContractWriteNode.TransactionData.toObject(opt_includeInstance, this);
|
|
3934
|
-
};
|
|
3935
|
-
proto.aggregator.ContractWriteNode.TransactionData.toObject = function(includeInstance, msg) {
|
|
3936
|
-
var f, obj = {
|
|
3937
|
-
hash: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3938
|
-
status: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
3939
|
-
blockNumber: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
3940
|
-
blockHash: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3941
|
-
gasUsed: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
3942
|
-
gasLimit: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
3943
|
-
gasPrice: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
3944
|
-
effectiveGasPrice: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
3945
|
-
from: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
3946
|
-
to: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
3947
|
-
value: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
3948
|
-
nonce: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
3949
|
-
transactionIndex: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
3950
|
-
confirmations: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
3951
|
-
timestamp: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
|
3952
|
-
simulation: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
|
|
3953
|
-
simulationMode: jspb.Message.getFieldWithDefault(msg, 17, ""),
|
|
3954
|
-
chainId: jspb.Message.getFieldWithDefault(msg, 18, 0)
|
|
3955
|
-
};
|
|
3956
|
-
if (includeInstance) {
|
|
3957
|
-
obj.$jspbMessageInstance = msg;
|
|
3958
|
-
}
|
|
3959
|
-
return obj;
|
|
3960
|
-
};
|
|
3961
|
-
}
|
|
3962
|
-
proto.aggregator.ContractWriteNode.TransactionData.deserializeBinary = function(bytes) {
|
|
3963
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
3964
|
-
var msg = new proto.aggregator.ContractWriteNode.TransactionData();
|
|
3965
|
-
return proto.aggregator.ContractWriteNode.TransactionData.deserializeBinaryFromReader(msg, reader);
|
|
3966
|
-
};
|
|
3967
|
-
proto.aggregator.ContractWriteNode.TransactionData.deserializeBinaryFromReader = function(msg, reader) {
|
|
3968
|
-
while (reader.nextField()) {
|
|
3969
|
-
if (reader.isEndGroup()) {
|
|
3970
|
-
break;
|
|
3971
|
-
}
|
|
3972
|
-
var field = reader.getFieldNumber();
|
|
3973
|
-
switch (field) {
|
|
3974
|
-
case 1:
|
|
3975
|
-
var value = (
|
|
3976
|
-
/** @type {string} */
|
|
3977
|
-
reader.readString()
|
|
3978
|
-
);
|
|
3979
|
-
msg.setHash(value);
|
|
3980
|
-
break;
|
|
3981
|
-
case 2:
|
|
3982
|
-
var value = (
|
|
3983
|
-
/** @type {string} */
|
|
3984
|
-
reader.readString()
|
|
3985
|
-
);
|
|
3986
|
-
msg.setStatus(value);
|
|
3987
|
-
break;
|
|
3988
|
-
case 3:
|
|
3989
|
-
var value = (
|
|
3990
|
-
/** @type {string} */
|
|
3991
|
-
reader.readString()
|
|
3992
|
-
);
|
|
3993
|
-
msg.setBlockNumber(value);
|
|
3994
|
-
break;
|
|
3995
|
-
case 4:
|
|
3996
|
-
var value = (
|
|
3997
|
-
/** @type {string} */
|
|
3998
|
-
reader.readString()
|
|
3999
|
-
);
|
|
4000
|
-
msg.setBlockHash(value);
|
|
4001
|
-
break;
|
|
4002
|
-
case 5:
|
|
4003
|
-
var value = (
|
|
4004
|
-
/** @type {string} */
|
|
4005
|
-
reader.readString()
|
|
4006
|
-
);
|
|
4007
|
-
msg.setGasUsed(value);
|
|
4008
|
-
break;
|
|
4009
|
-
case 6:
|
|
4010
|
-
var value = (
|
|
4011
|
-
/** @type {string} */
|
|
4012
|
-
reader.readString()
|
|
4013
|
-
);
|
|
4014
|
-
msg.setGasLimit(value);
|
|
4015
|
-
break;
|
|
4016
|
-
case 7:
|
|
4017
|
-
var value = (
|
|
4018
|
-
/** @type {string} */
|
|
4019
|
-
reader.readString()
|
|
4020
|
-
);
|
|
4021
|
-
msg.setGasPrice(value);
|
|
4022
|
-
break;
|
|
4023
|
-
case 8:
|
|
4024
|
-
var value = (
|
|
4025
|
-
/** @type {string} */
|
|
4026
|
-
reader.readString()
|
|
4027
|
-
);
|
|
4028
|
-
msg.setEffectiveGasPrice(value);
|
|
4029
|
-
break;
|
|
4030
|
-
case 9:
|
|
4031
|
-
var value = (
|
|
4032
|
-
/** @type {string} */
|
|
4033
|
-
reader.readString()
|
|
4034
|
-
);
|
|
4035
|
-
msg.setFrom(value);
|
|
4036
|
-
break;
|
|
4037
|
-
case 10:
|
|
4038
|
-
var value = (
|
|
4039
|
-
/** @type {string} */
|
|
4040
|
-
reader.readString()
|
|
4041
|
-
);
|
|
4042
|
-
msg.setTo(value);
|
|
4043
|
-
break;
|
|
4044
|
-
case 11:
|
|
4045
|
-
var value = (
|
|
4046
|
-
/** @type {string} */
|
|
4047
|
-
reader.readString()
|
|
4048
|
-
);
|
|
4049
|
-
msg.setValue(value);
|
|
4050
|
-
break;
|
|
4051
|
-
case 12:
|
|
4052
|
-
var value = (
|
|
4053
|
-
/** @type {string} */
|
|
4054
|
-
reader.readString()
|
|
4055
|
-
);
|
|
4056
|
-
msg.setNonce(value);
|
|
4057
|
-
break;
|
|
4058
|
-
case 13:
|
|
4059
|
-
var value = (
|
|
4060
|
-
/** @type {string} */
|
|
4061
|
-
reader.readString()
|
|
4062
|
-
);
|
|
4063
|
-
msg.setTransactionIndex(value);
|
|
4064
|
-
break;
|
|
4065
|
-
case 14:
|
|
4066
|
-
var value = (
|
|
4067
|
-
/** @type {string} */
|
|
4068
|
-
reader.readString()
|
|
4069
|
-
);
|
|
4070
|
-
msg.setConfirmations(value);
|
|
4071
|
-
break;
|
|
4072
|
-
case 15:
|
|
4073
|
-
var value = (
|
|
4074
|
-
/** @type {number} */
|
|
4075
|
-
reader.readInt64()
|
|
4076
|
-
);
|
|
4077
|
-
msg.setTimestamp(value);
|
|
4078
|
-
break;
|
|
4079
|
-
case 16:
|
|
4080
|
-
var value = (
|
|
4081
|
-
/** @type {boolean} */
|
|
4082
|
-
reader.readBool()
|
|
4083
|
-
);
|
|
4084
|
-
msg.setSimulation(value);
|
|
4085
|
-
break;
|
|
4086
|
-
case 17:
|
|
4087
|
-
var value = (
|
|
4088
|
-
/** @type {string} */
|
|
4089
|
-
reader.readString()
|
|
4090
|
-
);
|
|
4091
|
-
msg.setSimulationMode(value);
|
|
4092
|
-
break;
|
|
4093
|
-
case 18:
|
|
4094
|
-
var value = (
|
|
4095
|
-
/** @type {number} */
|
|
4096
|
-
reader.readInt64()
|
|
4097
|
-
);
|
|
4098
|
-
msg.setChainId(value);
|
|
4099
|
-
break;
|
|
4100
|
-
default:
|
|
4101
|
-
reader.skipField();
|
|
4102
|
-
break;
|
|
4103
|
-
}
|
|
4104
|
-
}
|
|
4105
|
-
return msg;
|
|
4106
|
-
};
|
|
4107
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.serializeBinary = function() {
|
|
4108
|
-
var writer = new jspb.BinaryWriter();
|
|
4109
|
-
proto.aggregator.ContractWriteNode.TransactionData.serializeBinaryToWriter(this, writer);
|
|
4110
|
-
return writer.getResultBuffer();
|
|
4111
|
-
};
|
|
4112
|
-
proto.aggregator.ContractWriteNode.TransactionData.serializeBinaryToWriter = function(message, writer) {
|
|
4113
|
-
var f = void 0;
|
|
4114
|
-
f = message.getHash();
|
|
4115
|
-
if (f.length > 0) {
|
|
4116
|
-
writer.writeString(
|
|
4117
|
-
1,
|
|
4118
|
-
f
|
|
4119
|
-
);
|
|
4120
|
-
}
|
|
4121
|
-
f = message.getStatus();
|
|
4122
|
-
if (f.length > 0) {
|
|
4123
|
-
writer.writeString(
|
|
4124
|
-
2,
|
|
4125
|
-
f
|
|
4126
|
-
);
|
|
4127
|
-
}
|
|
4128
|
-
f = message.getBlockNumber();
|
|
4129
|
-
if (f.length > 0) {
|
|
4130
|
-
writer.writeString(
|
|
4131
|
-
3,
|
|
4132
|
-
f
|
|
4133
|
-
);
|
|
4134
|
-
}
|
|
4135
|
-
f = message.getBlockHash();
|
|
4136
|
-
if (f.length > 0) {
|
|
4137
|
-
writer.writeString(
|
|
4138
|
-
4,
|
|
4139
|
-
f
|
|
4140
|
-
);
|
|
4141
|
-
}
|
|
4142
|
-
f = message.getGasUsed();
|
|
4143
|
-
if (f.length > 0) {
|
|
4144
|
-
writer.writeString(
|
|
4145
|
-
5,
|
|
4146
|
-
f
|
|
4147
|
-
);
|
|
4148
|
-
}
|
|
4149
|
-
f = message.getGasLimit();
|
|
4150
|
-
if (f.length > 0) {
|
|
4151
|
-
writer.writeString(
|
|
4152
|
-
6,
|
|
4153
|
-
f
|
|
4154
|
-
);
|
|
4155
|
-
}
|
|
4156
|
-
f = message.getGasPrice();
|
|
4157
|
-
if (f.length > 0) {
|
|
4158
|
-
writer.writeString(
|
|
4159
|
-
7,
|
|
4160
|
-
f
|
|
4161
|
-
);
|
|
4162
|
-
}
|
|
4163
|
-
f = message.getEffectiveGasPrice();
|
|
4164
|
-
if (f.length > 0) {
|
|
4165
|
-
writer.writeString(
|
|
4166
|
-
8,
|
|
4167
|
-
f
|
|
4168
|
-
);
|
|
4169
|
-
}
|
|
4170
|
-
f = message.getFrom();
|
|
4171
|
-
if (f.length > 0) {
|
|
4172
|
-
writer.writeString(
|
|
4173
|
-
9,
|
|
4174
|
-
f
|
|
4175
|
-
);
|
|
4176
|
-
}
|
|
4177
|
-
f = message.getTo();
|
|
4178
|
-
if (f.length > 0) {
|
|
4179
|
-
writer.writeString(
|
|
4180
|
-
10,
|
|
4181
|
-
f
|
|
4182
|
-
);
|
|
4183
|
-
}
|
|
4184
|
-
f = message.getValue();
|
|
4185
|
-
if (f.length > 0) {
|
|
4186
|
-
writer.writeString(
|
|
4187
|
-
11,
|
|
4188
|
-
f
|
|
4189
|
-
);
|
|
4190
|
-
}
|
|
4191
|
-
f = message.getNonce();
|
|
4192
|
-
if (f.length > 0) {
|
|
4193
|
-
writer.writeString(
|
|
4194
|
-
12,
|
|
4195
|
-
f
|
|
4196
|
-
);
|
|
4197
|
-
}
|
|
4198
|
-
f = message.getTransactionIndex();
|
|
4199
|
-
if (f.length > 0) {
|
|
4200
|
-
writer.writeString(
|
|
4201
|
-
13,
|
|
4202
|
-
f
|
|
4203
|
-
);
|
|
4204
|
-
}
|
|
4205
|
-
f = message.getConfirmations();
|
|
4206
|
-
if (f.length > 0) {
|
|
4207
|
-
writer.writeString(
|
|
4208
|
-
14,
|
|
4209
|
-
f
|
|
4210
|
-
);
|
|
4211
|
-
}
|
|
4212
|
-
f = message.getTimestamp();
|
|
4213
|
-
if (f !== 0) {
|
|
4214
|
-
writer.writeInt64(
|
|
4215
|
-
15,
|
|
4216
|
-
f
|
|
4217
|
-
);
|
|
4218
|
-
}
|
|
4219
|
-
f = message.getSimulation();
|
|
4220
|
-
if (f) {
|
|
4221
|
-
writer.writeBool(
|
|
4222
|
-
16,
|
|
4223
|
-
f
|
|
4224
|
-
);
|
|
4225
|
-
}
|
|
4226
|
-
f = message.getSimulationMode();
|
|
4227
|
-
if (f.length > 0) {
|
|
4228
|
-
writer.writeString(
|
|
4229
|
-
17,
|
|
4230
|
-
f
|
|
4231
|
-
);
|
|
4232
|
-
}
|
|
4233
|
-
f = message.getChainId();
|
|
4234
|
-
if (f !== 0) {
|
|
4235
|
-
writer.writeInt64(
|
|
4236
|
-
18,
|
|
4237
|
-
f
|
|
4238
|
-
);
|
|
4239
|
-
}
|
|
4240
|
-
};
|
|
4241
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getHash = function() {
|
|
4242
|
-
return (
|
|
4243
|
-
/** @type {string} */
|
|
4244
|
-
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
4245
|
-
);
|
|
4246
|
-
};
|
|
4247
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setHash = function(value) {
|
|
4248
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4249
|
-
};
|
|
4250
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getStatus = function() {
|
|
4251
|
-
return (
|
|
4252
|
-
/** @type {string} */
|
|
4253
|
-
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
4254
|
-
);
|
|
4255
|
-
};
|
|
4256
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setStatus = function(value) {
|
|
4257
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4258
|
-
};
|
|
4259
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getBlockNumber = function() {
|
|
4260
|
-
return (
|
|
4261
|
-
/** @type {string} */
|
|
4262
|
-
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
4263
|
-
);
|
|
4264
|
-
};
|
|
4265
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setBlockNumber = function(value) {
|
|
4266
|
-
return jspb.Message.setProto3StringField(this, 3, value);
|
|
4267
|
-
};
|
|
4268
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getBlockHash = function() {
|
|
4269
|
-
return (
|
|
4270
|
-
/** @type {string} */
|
|
4271
|
-
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
4272
|
-
);
|
|
4273
|
-
};
|
|
4274
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setBlockHash = function(value) {
|
|
4275
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
4276
|
-
};
|
|
4277
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getGasUsed = function() {
|
|
4278
|
-
return (
|
|
4279
|
-
/** @type {string} */
|
|
4280
|
-
jspb.Message.getFieldWithDefault(this, 5, "")
|
|
4281
|
-
);
|
|
4282
|
-
};
|
|
4283
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setGasUsed = function(value) {
|
|
4284
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
4285
|
-
};
|
|
4286
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getGasLimit = function() {
|
|
4287
|
-
return (
|
|
4288
|
-
/** @type {string} */
|
|
4289
|
-
jspb.Message.getFieldWithDefault(this, 6, "")
|
|
4290
|
-
);
|
|
4291
|
-
};
|
|
4292
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setGasLimit = function(value) {
|
|
4293
|
-
return jspb.Message.setProto3StringField(this, 6, value);
|
|
4294
|
-
};
|
|
4295
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getGasPrice = function() {
|
|
4296
|
-
return (
|
|
4297
|
-
/** @type {string} */
|
|
4298
|
-
jspb.Message.getFieldWithDefault(this, 7, "")
|
|
4299
|
-
);
|
|
4300
|
-
};
|
|
4301
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setGasPrice = function(value) {
|
|
4302
|
-
return jspb.Message.setProto3StringField(this, 7, value);
|
|
4303
|
-
};
|
|
4304
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getEffectiveGasPrice = function() {
|
|
4305
|
-
return (
|
|
4306
|
-
/** @type {string} */
|
|
4307
|
-
jspb.Message.getFieldWithDefault(this, 8, "")
|
|
4308
|
-
);
|
|
4309
|
-
};
|
|
4310
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setEffectiveGasPrice = function(value) {
|
|
4311
|
-
return jspb.Message.setProto3StringField(this, 8, value);
|
|
4312
|
-
};
|
|
4313
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getFrom = function() {
|
|
4314
|
-
return (
|
|
4315
|
-
/** @type {string} */
|
|
4316
|
-
jspb.Message.getFieldWithDefault(this, 9, "")
|
|
4317
|
-
);
|
|
4318
|
-
};
|
|
4319
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setFrom = function(value) {
|
|
4320
|
-
return jspb.Message.setProto3StringField(this, 9, value);
|
|
4321
|
-
};
|
|
4322
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getTo = function() {
|
|
4323
|
-
return (
|
|
4324
|
-
/** @type {string} */
|
|
4325
|
-
jspb.Message.getFieldWithDefault(this, 10, "")
|
|
4326
|
-
);
|
|
4327
|
-
};
|
|
4328
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setTo = function(value) {
|
|
4329
|
-
return jspb.Message.setProto3StringField(this, 10, value);
|
|
4330
|
-
};
|
|
4331
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getValue = function() {
|
|
4332
|
-
return (
|
|
4333
|
-
/** @type {string} */
|
|
4334
|
-
jspb.Message.getFieldWithDefault(this, 11, "")
|
|
4335
|
-
);
|
|
4336
|
-
};
|
|
4337
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setValue = function(value) {
|
|
4338
|
-
return jspb.Message.setProto3StringField(this, 11, value);
|
|
4339
|
-
};
|
|
4340
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getNonce = function() {
|
|
4341
|
-
return (
|
|
4342
|
-
/** @type {string} */
|
|
4343
|
-
jspb.Message.getFieldWithDefault(this, 12, "")
|
|
4344
|
-
);
|
|
4345
|
-
};
|
|
4346
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setNonce = function(value) {
|
|
4347
|
-
return jspb.Message.setProto3StringField(this, 12, value);
|
|
4348
|
-
};
|
|
4349
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getTransactionIndex = function() {
|
|
4350
|
-
return (
|
|
4351
|
-
/** @type {string} */
|
|
4352
|
-
jspb.Message.getFieldWithDefault(this, 13, "")
|
|
4353
|
-
);
|
|
4354
|
-
};
|
|
4355
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setTransactionIndex = function(value) {
|
|
4356
|
-
return jspb.Message.setProto3StringField(this, 13, value);
|
|
4357
|
-
};
|
|
4358
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getConfirmations = function() {
|
|
4359
|
-
return (
|
|
4360
|
-
/** @type {string} */
|
|
4361
|
-
jspb.Message.getFieldWithDefault(this, 14, "")
|
|
4362
|
-
);
|
|
4363
|
-
};
|
|
4364
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setConfirmations = function(value) {
|
|
4365
|
-
return jspb.Message.setProto3StringField(this, 14, value);
|
|
4366
|
-
};
|
|
4367
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getTimestamp = function() {
|
|
4368
|
-
return (
|
|
4369
|
-
/** @type {number} */
|
|
4370
|
-
jspb.Message.getFieldWithDefault(this, 15, 0)
|
|
4371
|
-
);
|
|
4372
|
-
};
|
|
4373
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setTimestamp = function(value) {
|
|
4374
|
-
return jspb.Message.setProto3IntField(this, 15, value);
|
|
4375
|
-
};
|
|
4376
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getSimulation = function() {
|
|
4377
|
-
return (
|
|
4378
|
-
/** @type {boolean} */
|
|
4379
|
-
jspb.Message.getBooleanFieldWithDefault(this, 16, false)
|
|
4380
|
-
);
|
|
4381
|
-
};
|
|
4382
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setSimulation = function(value) {
|
|
4383
|
-
return jspb.Message.setProto3BooleanField(this, 16, value);
|
|
4384
|
-
};
|
|
4385
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getSimulationMode = function() {
|
|
4386
|
-
return (
|
|
4387
|
-
/** @type {string} */
|
|
4388
|
-
jspb.Message.getFieldWithDefault(this, 17, "")
|
|
4389
|
-
);
|
|
4390
|
-
};
|
|
4391
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setSimulationMode = function(value) {
|
|
4392
|
-
return jspb.Message.setProto3StringField(this, 17, value);
|
|
4393
|
-
};
|
|
4394
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.getChainId = function() {
|
|
4395
|
-
return (
|
|
4396
|
-
/** @type {number} */
|
|
4397
|
-
jspb.Message.getFieldWithDefault(this, 18, 0)
|
|
4398
|
-
);
|
|
4399
|
-
};
|
|
4400
|
-
proto.aggregator.ContractWriteNode.TransactionData.prototype.setChainId = function(value) {
|
|
4401
|
-
return jspb.Message.setProto3IntField(this, 18, value);
|
|
4402
|
-
};
|
|
4403
|
-
proto.aggregator.ContractWriteNode.EventData.repeatedFields_ = [3];
|
|
4404
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4405
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.toObject = function(opt_includeInstance) {
|
|
4406
|
-
return proto.aggregator.ContractWriteNode.EventData.toObject(opt_includeInstance, this);
|
|
4407
|
-
};
|
|
4408
|
-
proto.aggregator.ContractWriteNode.EventData.toObject = function(includeInstance, msg) {
|
|
4409
|
-
var f, obj = {
|
|
4410
|
-
eventName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4411
|
-
address: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4412
|
-
topicsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f,
|
|
4413
|
-
data: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
4414
|
-
decodedMap: (f = msg.getDecodedMap()) ? f.toObject(includeInstance, void 0) : []
|
|
4415
|
-
};
|
|
4416
|
-
if (includeInstance) {
|
|
4417
|
-
obj.$jspbMessageInstance = msg;
|
|
4418
|
-
}
|
|
4419
|
-
return obj;
|
|
4420
|
-
};
|
|
4421
|
-
}
|
|
4422
|
-
proto.aggregator.ContractWriteNode.EventData.deserializeBinary = function(bytes) {
|
|
4423
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
4424
|
-
var msg = new proto.aggregator.ContractWriteNode.EventData();
|
|
4425
|
-
return proto.aggregator.ContractWriteNode.EventData.deserializeBinaryFromReader(msg, reader);
|
|
4426
|
-
};
|
|
4427
|
-
proto.aggregator.ContractWriteNode.EventData.deserializeBinaryFromReader = function(msg, reader) {
|
|
4428
|
-
while (reader.nextField()) {
|
|
4429
|
-
if (reader.isEndGroup()) {
|
|
4430
|
-
break;
|
|
4431
|
-
}
|
|
4432
|
-
var field = reader.getFieldNumber();
|
|
4433
|
-
switch (field) {
|
|
4434
|
-
case 1:
|
|
4435
|
-
var value = (
|
|
4436
|
-
/** @type {string} */
|
|
4437
|
-
reader.readString()
|
|
4438
|
-
);
|
|
4439
|
-
msg.setEventName(value);
|
|
4440
|
-
break;
|
|
4441
|
-
case 2:
|
|
4442
|
-
var value = (
|
|
4443
|
-
/** @type {string} */
|
|
4444
|
-
reader.readString()
|
|
4445
|
-
);
|
|
4446
|
-
msg.setAddress(value);
|
|
4447
|
-
break;
|
|
4448
|
-
case 3:
|
|
4449
|
-
var value = (
|
|
4450
|
-
/** @type {string} */
|
|
4451
|
-
reader.readString()
|
|
4452
|
-
);
|
|
4453
|
-
msg.addTopics(value);
|
|
4454
|
-
break;
|
|
4455
|
-
case 4:
|
|
4456
|
-
var value = (
|
|
4457
|
-
/** @type {string} */
|
|
4458
|
-
reader.readString()
|
|
4459
|
-
);
|
|
4460
|
-
msg.setData(value);
|
|
4461
|
-
break;
|
|
4462
|
-
case 5:
|
|
4463
|
-
var value = msg.getDecodedMap();
|
|
4464
|
-
reader.readMessage(value, function(message, reader2) {
|
|
4465
|
-
jspb.Map.deserializeBinary(message, reader2, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
|
4466
|
-
});
|
|
4467
|
-
break;
|
|
4468
|
-
default:
|
|
4469
|
-
reader.skipField();
|
|
4470
|
-
break;
|
|
4471
|
-
}
|
|
4472
|
-
}
|
|
4473
|
-
return msg;
|
|
4474
|
-
};
|
|
4475
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.serializeBinary = function() {
|
|
4476
|
-
var writer = new jspb.BinaryWriter();
|
|
4477
|
-
proto.aggregator.ContractWriteNode.EventData.serializeBinaryToWriter(this, writer);
|
|
4478
|
-
return writer.getResultBuffer();
|
|
4479
|
-
};
|
|
4480
|
-
proto.aggregator.ContractWriteNode.EventData.serializeBinaryToWriter = function(message, writer) {
|
|
4481
|
-
var f = void 0;
|
|
4482
|
-
f = message.getEventName();
|
|
4483
|
-
if (f.length > 0) {
|
|
4484
|
-
writer.writeString(
|
|
4485
|
-
1,
|
|
4486
|
-
f
|
|
4487
|
-
);
|
|
4488
|
-
}
|
|
4489
|
-
f = message.getAddress();
|
|
4490
|
-
if (f.length > 0) {
|
|
4491
|
-
writer.writeString(
|
|
4492
|
-
2,
|
|
4493
|
-
f
|
|
4494
|
-
);
|
|
4495
|
-
}
|
|
4496
|
-
f = message.getTopicsList();
|
|
4497
|
-
if (f.length > 0) {
|
|
4498
|
-
writer.writeRepeatedString(
|
|
4499
|
-
3,
|
|
4500
|
-
f
|
|
4501
|
-
);
|
|
4502
|
-
}
|
|
4503
|
-
f = message.getData();
|
|
4504
|
-
if (f.length > 0) {
|
|
4505
|
-
writer.writeString(
|
|
4506
|
-
4,
|
|
4507
|
-
f
|
|
4508
|
-
);
|
|
4509
|
-
}
|
|
4510
|
-
f = message.getDecodedMap(true);
|
|
4511
|
-
if (f && f.getLength() > 0) {
|
|
4512
|
-
f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
|
4513
|
-
}
|
|
4514
|
-
};
|
|
4515
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.getEventName = function() {
|
|
4516
|
-
return (
|
|
4517
|
-
/** @type {string} */
|
|
4518
|
-
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
4519
|
-
);
|
|
4520
|
-
};
|
|
4521
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.setEventName = function(value) {
|
|
4522
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4523
|
-
};
|
|
4524
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.getAddress = function() {
|
|
4525
|
-
return (
|
|
4526
|
-
/** @type {string} */
|
|
4527
|
-
jspb.Message.getFieldWithDefault(this, 2, "")
|
|
4528
|
-
);
|
|
4529
|
-
};
|
|
4530
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.setAddress = function(value) {
|
|
4531
|
-
return jspb.Message.setProto3StringField(this, 2, value);
|
|
4532
|
-
};
|
|
4533
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.getTopicsList = function() {
|
|
4534
|
-
return (
|
|
4535
|
-
/** @type {!Array<string>} */
|
|
4536
|
-
jspb.Message.getRepeatedField(this, 3)
|
|
4537
|
-
);
|
|
4538
|
-
};
|
|
4539
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.setTopicsList = function(value) {
|
|
4540
|
-
return jspb.Message.setField(this, 3, value || []);
|
|
4541
|
-
};
|
|
4542
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.addTopics = function(value, opt_index) {
|
|
4543
|
-
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
|
4544
|
-
};
|
|
4545
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.clearTopicsList = function() {
|
|
4546
|
-
return this.setTopicsList([]);
|
|
4547
|
-
};
|
|
4548
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.getData = function() {
|
|
4549
|
-
return (
|
|
4550
|
-
/** @type {string} */
|
|
4551
|
-
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
4552
|
-
);
|
|
4553
|
-
};
|
|
4554
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.setData = function(value) {
|
|
4555
|
-
return jspb.Message.setProto3StringField(this, 4, value);
|
|
4556
|
-
};
|
|
4557
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.getDecodedMap = function(opt_noLazyCreate) {
|
|
4558
|
-
return (
|
|
4559
|
-
/** @type {!jspb.Map<string,string>} */
|
|
4560
|
-
jspb.Message.getMapField(
|
|
4561
|
-
this,
|
|
4562
|
-
5,
|
|
4563
|
-
opt_noLazyCreate,
|
|
4564
|
-
null
|
|
4565
|
-
)
|
|
4566
|
-
);
|
|
4567
|
-
};
|
|
4568
|
-
proto.aggregator.ContractWriteNode.EventData.prototype.clearDecodedMap = function() {
|
|
4569
|
-
this.getDecodedMap().clear();
|
|
4570
|
-
return this;
|
|
4571
|
-
};
|
|
4572
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4573
|
-
proto.aggregator.ContractWriteNode.ErrorData.prototype.toObject = function(opt_includeInstance) {
|
|
4574
|
-
return proto.aggregator.ContractWriteNode.ErrorData.toObject(opt_includeInstance, this);
|
|
4575
|
-
};
|
|
4576
|
-
proto.aggregator.ContractWriteNode.ErrorData.toObject = function(includeInstance, msg) {
|
|
4577
|
-
var f, obj = {
|
|
4578
|
-
code: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4579
|
-
message: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4580
|
-
revertReason: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
4581
|
-
};
|
|
4582
|
-
if (includeInstance) {
|
|
4583
|
-
obj.$jspbMessageInstance = msg;
|
|
4584
|
-
}
|
|
4585
|
-
return obj;
|
|
4586
|
-
};
|
|
4587
|
-
}
|
|
4588
|
-
proto.aggregator.ContractWriteNode.ErrorData.deserializeBinary = function(bytes) {
|
|
4589
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
4590
|
-
var msg = new proto.aggregator.ContractWriteNode.ErrorData();
|
|
4591
|
-
return proto.aggregator.ContractWriteNode.ErrorData.deserializeBinaryFromReader(msg, reader);
|
|
4592
|
-
};
|
|
4593
|
-
proto.aggregator.ContractWriteNode.ErrorData.deserializeBinaryFromReader = function(msg, reader) {
|
|
4594
|
-
while (reader.nextField()) {
|
|
4595
|
-
if (reader.isEndGroup()) {
|
|
4596
|
-
break;
|
|
4597
|
-
}
|
|
4598
|
-
var field = reader.getFieldNumber();
|
|
4599
|
-
switch (field) {
|
|
4600
|
-
case 1:
|
|
4601
|
-
var value = (
|
|
4602
|
-
/** @type {string} */
|
|
4603
|
-
reader.readString()
|
|
4604
|
-
);
|
|
4605
|
-
msg.setCode(value);
|
|
4606
|
-
break;
|
|
4607
|
-
case 2:
|
|
4608
|
-
var value = (
|
|
4609
|
-
/** @type {string} */
|
|
4610
|
-
reader.readString()
|
|
4611
|
-
);
|
|
4612
|
-
msg.setMessage(value);
|
|
4613
|
-
break;
|
|
4614
|
-
case 3:
|
|
4615
|
-
var value = (
|
|
4616
|
-
/** @type {string} */
|
|
4617
|
-
reader.readString()
|
|
4618
|
-
);
|
|
4619
|
-
msg.setRevertReason(value);
|
|
4620
|
-
break;
|
|
4621
|
-
default:
|
|
4622
|
-
reader.skipField();
|
|
4623
|
-
break;
|
|
4624
|
-
}
|
|
4625
|
-
}
|
|
4626
|
-
return msg;
|
|
4627
|
-
};
|
|
4628
|
-
proto.aggregator.ContractWriteNode.ErrorData.prototype.serializeBinary = function() {
|
|
4629
|
-
var writer = new jspb.BinaryWriter();
|
|
4630
|
-
proto.aggregator.ContractWriteNode.ErrorData.serializeBinaryToWriter(this, writer);
|
|
4631
|
-
return writer.getResultBuffer();
|
|
4632
|
-
};
|
|
4633
|
-
proto.aggregator.ContractWriteNode.ErrorData.serializeBinaryToWriter = function(message, writer) {
|
|
4634
|
-
var f = void 0;
|
|
4635
|
-
f = message.getCode();
|
|
4636
|
-
if (f.length > 0) {
|
|
4637
|
-
writer.writeString(
|
|
4638
|
-
1,
|
|
4639
|
-
f
|
|
4640
|
-
);
|
|
4641
|
-
}
|
|
4642
|
-
f = message.getMessage();
|
|
4643
|
-
if (f.length > 0) {
|
|
4644
|
-
writer.writeString(
|
|
4645
|
-
2,
|
|
4646
|
-
f
|
|
4647
|
-
);
|
|
4648
|
-
}
|
|
4649
|
-
f = message.getRevertReason();
|
|
4650
|
-
if (f.length > 0) {
|
|
4651
|
-
writer.writeString(
|
|
4652
|
-
3,
|
|
4653
|
-
f
|
|
4654
|
-
);
|
|
4655
|
-
}
|
|
4656
|
-
};
|
|
4657
|
-
proto.aggregator.ContractWriteNode.ErrorData.prototype.getCode = function() {
|
|
4658
|
-
return (
|
|
4659
|
-
/** @type {string} */
|
|
4660
|
-
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
4661
|
-
);
|
|
4662
|
-
};
|
|
4663
|
-
proto.aggregator.ContractWriteNode.ErrorData.prototype.setCode = function(value) {
|
|
4664
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
3695
|
+
f,
|
|
3696
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3697
|
+
);
|
|
3698
|
+
}
|
|
4665
3699
|
};
|
|
4666
|
-
proto.aggregator.ContractWriteNode.
|
|
3700
|
+
proto.aggregator.ContractWriteNode.Output.prototype.getData = function() {
|
|
4667
3701
|
return (
|
|
4668
|
-
/** @type
|
|
4669
|
-
jspb.Message.
|
|
3702
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3703
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
4670
3704
|
);
|
|
4671
3705
|
};
|
|
4672
|
-
proto.aggregator.ContractWriteNode.
|
|
4673
|
-
return jspb.Message.
|
|
3706
|
+
proto.aggregator.ContractWriteNode.Output.prototype.setData = function(value) {
|
|
3707
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
4674
3708
|
};
|
|
4675
|
-
proto.aggregator.ContractWriteNode.
|
|
4676
|
-
return (
|
|
4677
|
-
/** @type {string} */
|
|
4678
|
-
jspb.Message.getFieldWithDefault(this, 3, "")
|
|
4679
|
-
);
|
|
3709
|
+
proto.aggregator.ContractWriteNode.Output.prototype.clearData = function() {
|
|
3710
|
+
return this.setData(void 0);
|
|
4680
3711
|
};
|
|
4681
|
-
proto.aggregator.ContractWriteNode.
|
|
4682
|
-
return jspb.Message.
|
|
3712
|
+
proto.aggregator.ContractWriteNode.Output.prototype.hasData = function() {
|
|
3713
|
+
return jspb.Message.getField(this, 1) != null;
|
|
4683
3714
|
};
|
|
4684
3715
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4685
|
-
proto.aggregator.ContractWriteNode.
|
|
4686
|
-
return proto.aggregator.ContractWriteNode.
|
|
3716
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.toObject = function(opt_includeInstance) {
|
|
3717
|
+
return proto.aggregator.ContractWriteNode.MethodResult.toObject(opt_includeInstance, this);
|
|
4687
3718
|
};
|
|
4688
|
-
proto.aggregator.ContractWriteNode.
|
|
3719
|
+
proto.aggregator.ContractWriteNode.MethodResult.toObject = function(includeInstance, msg) {
|
|
4689
3720
|
var f, obj = {
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
3721
|
+
methodName: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
3722
|
+
methodAbi: (f = msg.getMethodAbi()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
3723
|
+
success: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
|
|
3724
|
+
error: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
3725
|
+
receipt: (f = msg.getReceipt()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
3726
|
+
blockNumber: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
3727
|
+
value: (f = msg.getValue()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
4693
3728
|
};
|
|
4694
3729
|
if (includeInstance) {
|
|
4695
3730
|
obj.$jspbMessageInstance = msg;
|
|
@@ -4697,12 +3732,12 @@ var require_avs_pb = __commonJS({
|
|
|
4697
3732
|
return obj;
|
|
4698
3733
|
};
|
|
4699
3734
|
}
|
|
4700
|
-
proto.aggregator.ContractWriteNode.
|
|
3735
|
+
proto.aggregator.ContractWriteNode.MethodResult.deserializeBinary = function(bytes) {
|
|
4701
3736
|
var reader = new jspb.BinaryReader(bytes);
|
|
4702
|
-
var msg = new proto.aggregator.ContractWriteNode.
|
|
4703
|
-
return proto.aggregator.ContractWriteNode.
|
|
3737
|
+
var msg = new proto.aggregator.ContractWriteNode.MethodResult();
|
|
3738
|
+
return proto.aggregator.ContractWriteNode.MethodResult.deserializeBinaryFromReader(msg, reader);
|
|
4704
3739
|
};
|
|
4705
|
-
proto.aggregator.ContractWriteNode.
|
|
3740
|
+
proto.aggregator.ContractWriteNode.MethodResult.deserializeBinaryFromReader = function(msg, reader) {
|
|
4706
3741
|
while (reader.nextField()) {
|
|
4707
3742
|
if (reader.isEndGroup()) {
|
|
4708
3743
|
break;
|
|
@@ -4714,20 +3749,42 @@ var require_avs_pb = __commonJS({
|
|
|
4714
3749
|
/** @type {string} */
|
|
4715
3750
|
reader.readString()
|
|
4716
3751
|
);
|
|
4717
|
-
msg.
|
|
3752
|
+
msg.setMethodName(value);
|
|
4718
3753
|
break;
|
|
4719
3754
|
case 2:
|
|
3755
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
3756
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3757
|
+
msg.setMethodAbi(value);
|
|
3758
|
+
break;
|
|
3759
|
+
case 3:
|
|
4720
3760
|
var value = (
|
|
4721
|
-
/** @type {
|
|
4722
|
-
reader.
|
|
3761
|
+
/** @type {boolean} */
|
|
3762
|
+
reader.readBool()
|
|
4723
3763
|
);
|
|
4724
|
-
msg.
|
|
3764
|
+
msg.setSuccess(value);
|
|
4725
3765
|
break;
|
|
4726
|
-
case
|
|
3766
|
+
case 4:
|
|
4727
3767
|
var value = (
|
|
4728
3768
|
/** @type {string} */
|
|
4729
3769
|
reader.readString()
|
|
4730
3770
|
);
|
|
3771
|
+
msg.setError(value);
|
|
3772
|
+
break;
|
|
3773
|
+
case 5:
|
|
3774
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
3775
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
3776
|
+
msg.setReceipt(value);
|
|
3777
|
+
break;
|
|
3778
|
+
case 6:
|
|
3779
|
+
var value = (
|
|
3780
|
+
/** @type {number} */
|
|
3781
|
+
reader.readUint64()
|
|
3782
|
+
);
|
|
3783
|
+
msg.setBlockNumber(value);
|
|
3784
|
+
break;
|
|
3785
|
+
case 7:
|
|
3786
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
3787
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
4731
3788
|
msg.setValue(value);
|
|
4732
3789
|
break;
|
|
4733
3790
|
default:
|
|
@@ -4737,61 +3794,153 @@ var require_avs_pb = __commonJS({
|
|
|
4737
3794
|
}
|
|
4738
3795
|
return msg;
|
|
4739
3796
|
};
|
|
4740
|
-
proto.aggregator.ContractWriteNode.
|
|
3797
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.serializeBinary = function() {
|
|
4741
3798
|
var writer = new jspb.BinaryWriter();
|
|
4742
|
-
proto.aggregator.ContractWriteNode.
|
|
3799
|
+
proto.aggregator.ContractWriteNode.MethodResult.serializeBinaryToWriter(this, writer);
|
|
4743
3800
|
return writer.getResultBuffer();
|
|
4744
3801
|
};
|
|
4745
|
-
proto.aggregator.ContractWriteNode.
|
|
3802
|
+
proto.aggregator.ContractWriteNode.MethodResult.serializeBinaryToWriter = function(message, writer) {
|
|
4746
3803
|
var f = void 0;
|
|
4747
|
-
f = message.
|
|
3804
|
+
f = message.getMethodName();
|
|
4748
3805
|
if (f.length > 0) {
|
|
4749
3806
|
writer.writeString(
|
|
4750
3807
|
1,
|
|
4751
3808
|
f
|
|
4752
3809
|
);
|
|
4753
3810
|
}
|
|
4754
|
-
f = message.
|
|
4755
|
-
if (f
|
|
4756
|
-
writer.
|
|
3811
|
+
f = message.getMethodAbi();
|
|
3812
|
+
if (f != null) {
|
|
3813
|
+
writer.writeMessage(
|
|
4757
3814
|
2,
|
|
3815
|
+
f,
|
|
3816
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3817
|
+
);
|
|
3818
|
+
}
|
|
3819
|
+
f = message.getSuccess();
|
|
3820
|
+
if (f) {
|
|
3821
|
+
writer.writeBool(
|
|
3822
|
+
3,
|
|
4758
3823
|
f
|
|
4759
3824
|
);
|
|
4760
3825
|
}
|
|
4761
|
-
f = message.
|
|
3826
|
+
f = message.getError();
|
|
4762
3827
|
if (f.length > 0) {
|
|
4763
3828
|
writer.writeString(
|
|
4764
|
-
|
|
3829
|
+
4,
|
|
3830
|
+
f
|
|
3831
|
+
);
|
|
3832
|
+
}
|
|
3833
|
+
f = message.getReceipt();
|
|
3834
|
+
if (f != null) {
|
|
3835
|
+
writer.writeMessage(
|
|
3836
|
+
5,
|
|
3837
|
+
f,
|
|
3838
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3839
|
+
);
|
|
3840
|
+
}
|
|
3841
|
+
f = /** @type {number} */
|
|
3842
|
+
jspb.Message.getField(message, 6);
|
|
3843
|
+
if (f != null) {
|
|
3844
|
+
writer.writeUint64(
|
|
3845
|
+
6,
|
|
4765
3846
|
f
|
|
4766
3847
|
);
|
|
4767
3848
|
}
|
|
3849
|
+
f = message.getValue();
|
|
3850
|
+
if (f != null) {
|
|
3851
|
+
writer.writeMessage(
|
|
3852
|
+
7,
|
|
3853
|
+
f,
|
|
3854
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
3855
|
+
);
|
|
3856
|
+
}
|
|
4768
3857
|
};
|
|
4769
|
-
proto.aggregator.ContractWriteNode.
|
|
3858
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getMethodName = function() {
|
|
4770
3859
|
return (
|
|
4771
3860
|
/** @type {string} */
|
|
4772
3861
|
jspb.Message.getFieldWithDefault(this, 1, "")
|
|
4773
3862
|
);
|
|
4774
3863
|
};
|
|
4775
|
-
proto.aggregator.ContractWriteNode.
|
|
3864
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setMethodName = function(value) {
|
|
4776
3865
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
4777
3866
|
};
|
|
4778
|
-
proto.aggregator.ContractWriteNode.
|
|
3867
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getMethodAbi = function() {
|
|
4779
3868
|
return (
|
|
4780
|
-
/** @type
|
|
4781
|
-
jspb.Message.
|
|
3869
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3870
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 2)
|
|
4782
3871
|
);
|
|
4783
3872
|
};
|
|
4784
|
-
proto.aggregator.ContractWriteNode.
|
|
4785
|
-
return jspb.Message.
|
|
3873
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setMethodAbi = function(value) {
|
|
3874
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3875
|
+
};
|
|
3876
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearMethodAbi = function() {
|
|
3877
|
+
return this.setMethodAbi(void 0);
|
|
3878
|
+
};
|
|
3879
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasMethodAbi = function() {
|
|
3880
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3881
|
+
};
|
|
3882
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getSuccess = function() {
|
|
3883
|
+
return (
|
|
3884
|
+
/** @type {boolean} */
|
|
3885
|
+
jspb.Message.getBooleanFieldWithDefault(this, 3, false)
|
|
3886
|
+
);
|
|
4786
3887
|
};
|
|
4787
|
-
proto.aggregator.ContractWriteNode.
|
|
3888
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setSuccess = function(value) {
|
|
3889
|
+
return jspb.Message.setProto3BooleanField(this, 3, value);
|
|
3890
|
+
};
|
|
3891
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getError = function() {
|
|
4788
3892
|
return (
|
|
4789
3893
|
/** @type {string} */
|
|
4790
|
-
jspb.Message.getFieldWithDefault(this,
|
|
3894
|
+
jspb.Message.getFieldWithDefault(this, 4, "")
|
|
4791
3895
|
);
|
|
4792
3896
|
};
|
|
4793
|
-
proto.aggregator.ContractWriteNode.
|
|
4794
|
-
return jspb.Message.setProto3StringField(this,
|
|
3897
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setError = function(value) {
|
|
3898
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
3899
|
+
};
|
|
3900
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getReceipt = function() {
|
|
3901
|
+
return (
|
|
3902
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3903
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 5)
|
|
3904
|
+
);
|
|
3905
|
+
};
|
|
3906
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setReceipt = function(value) {
|
|
3907
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
3908
|
+
};
|
|
3909
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearReceipt = function() {
|
|
3910
|
+
return this.setReceipt(void 0);
|
|
3911
|
+
};
|
|
3912
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasReceipt = function() {
|
|
3913
|
+
return jspb.Message.getField(this, 5) != null;
|
|
3914
|
+
};
|
|
3915
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getBlockNumber = function() {
|
|
3916
|
+
return (
|
|
3917
|
+
/** @type {number} */
|
|
3918
|
+
jspb.Message.getFieldWithDefault(this, 6, 0)
|
|
3919
|
+
);
|
|
3920
|
+
};
|
|
3921
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setBlockNumber = function(value) {
|
|
3922
|
+
return jspb.Message.setField(this, 6, value);
|
|
3923
|
+
};
|
|
3924
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearBlockNumber = function() {
|
|
3925
|
+
return jspb.Message.setField(this, 6, void 0);
|
|
3926
|
+
};
|
|
3927
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasBlockNumber = function() {
|
|
3928
|
+
return jspb.Message.getField(this, 6) != null;
|
|
3929
|
+
};
|
|
3930
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.getValue = function() {
|
|
3931
|
+
return (
|
|
3932
|
+
/** @type{?proto.google.protobuf.Value} */
|
|
3933
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 7)
|
|
3934
|
+
);
|
|
3935
|
+
};
|
|
3936
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.setValue = function(value) {
|
|
3937
|
+
return jspb.Message.setWrapperField(this, 7, value);
|
|
3938
|
+
};
|
|
3939
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.clearValue = function() {
|
|
3940
|
+
return this.setValue(void 0);
|
|
3941
|
+
};
|
|
3942
|
+
proto.aggregator.ContractWriteNode.MethodResult.prototype.hasValue = function() {
|
|
3943
|
+
return jspb.Message.getField(this, 7) != null;
|
|
4795
3944
|
};
|
|
4796
3945
|
proto.aggregator.ContractWriteNode.prototype.getConfig = function() {
|
|
4797
3946
|
return (
|
|
@@ -4862,7 +4011,7 @@ var require_avs_pb = __commonJS({
|
|
|
4862
4011
|
);
|
|
4863
4012
|
}
|
|
4864
4013
|
};
|
|
4865
|
-
proto.aggregator.ContractReadNode.MethodCall.repeatedFields_ = [3];
|
|
4014
|
+
proto.aggregator.ContractReadNode.MethodCall.repeatedFields_ = [3, 4];
|
|
4866
4015
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4867
4016
|
proto.aggregator.ContractReadNode.MethodCall.prototype.toObject = function(opt_includeInstance) {
|
|
4868
4017
|
return proto.aggregator.ContractReadNode.MethodCall.toObject(opt_includeInstance, this);
|
|
@@ -4871,7 +4020,8 @@ var require_avs_pb = __commonJS({
|
|
|
4871
4020
|
var f, obj = {
|
|
4872
4021
|
callData: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4873
4022
|
methodName: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4874
|
-
applyToFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f
|
|
4023
|
+
applyToFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? void 0 : f,
|
|
4024
|
+
methodParamsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? void 0 : f
|
|
4875
4025
|
};
|
|
4876
4026
|
if (includeInstance) {
|
|
4877
4027
|
obj.$jspbMessageInstance = msg;
|
|
@@ -4912,6 +4062,13 @@ var require_avs_pb = __commonJS({
|
|
|
4912
4062
|
);
|
|
4913
4063
|
msg.addApplyToFields(value);
|
|
4914
4064
|
break;
|
|
4065
|
+
case 4:
|
|
4066
|
+
var value = (
|
|
4067
|
+
/** @type {string} */
|
|
4068
|
+
reader.readString()
|
|
4069
|
+
);
|
|
4070
|
+
msg.addMethodParams(value);
|
|
4071
|
+
break;
|
|
4915
4072
|
default:
|
|
4916
4073
|
reader.skipField();
|
|
4917
4074
|
break;
|
|
@@ -4947,6 +4104,13 @@ var require_avs_pb = __commonJS({
|
|
|
4947
4104
|
f
|
|
4948
4105
|
);
|
|
4949
4106
|
}
|
|
4107
|
+
f = message.getMethodParamsList();
|
|
4108
|
+
if (f.length > 0) {
|
|
4109
|
+
writer.writeRepeatedString(
|
|
4110
|
+
4,
|
|
4111
|
+
f
|
|
4112
|
+
);
|
|
4113
|
+
}
|
|
4950
4114
|
};
|
|
4951
4115
|
proto.aggregator.ContractReadNode.MethodCall.prototype.getCallData = function() {
|
|
4952
4116
|
return (
|
|
@@ -4981,7 +4145,22 @@ var require_avs_pb = __commonJS({
|
|
|
4981
4145
|
proto.aggregator.ContractReadNode.MethodCall.prototype.clearApplyToFieldsList = function() {
|
|
4982
4146
|
return this.setApplyToFieldsList([]);
|
|
4983
4147
|
};
|
|
4984
|
-
proto.aggregator.ContractReadNode.
|
|
4148
|
+
proto.aggregator.ContractReadNode.MethodCall.prototype.getMethodParamsList = function() {
|
|
4149
|
+
return (
|
|
4150
|
+
/** @type {!Array<string>} */
|
|
4151
|
+
jspb.Message.getRepeatedField(this, 4)
|
|
4152
|
+
);
|
|
4153
|
+
};
|
|
4154
|
+
proto.aggregator.ContractReadNode.MethodCall.prototype.setMethodParamsList = function(value) {
|
|
4155
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
4156
|
+
};
|
|
4157
|
+
proto.aggregator.ContractReadNode.MethodCall.prototype.addMethodParams = function(value, opt_index) {
|
|
4158
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
4159
|
+
};
|
|
4160
|
+
proto.aggregator.ContractReadNode.MethodCall.prototype.clearMethodParamsList = function() {
|
|
4161
|
+
return this.setMethodParamsList([]);
|
|
4162
|
+
};
|
|
4163
|
+
proto.aggregator.ContractReadNode.Config.repeatedFields_ = [2, 3];
|
|
4985
4164
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
4986
4165
|
proto.aggregator.ContractReadNode.Config.prototype.toObject = function(opt_includeInstance) {
|
|
4987
4166
|
return proto.aggregator.ContractReadNode.Config.toObject(opt_includeInstance, this);
|
|
@@ -4989,7 +4168,11 @@ var require_avs_pb = __commonJS({
|
|
|
4989
4168
|
proto.aggregator.ContractReadNode.Config.toObject = function(includeInstance, msg) {
|
|
4990
4169
|
var f, obj = {
|
|
4991
4170
|
contractAddress: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
4992
|
-
|
|
4171
|
+
contractAbiList: jspb.Message.toObjectList(
|
|
4172
|
+
msg.getContractAbiList(),
|
|
4173
|
+
google_protobuf_struct_pb5.Value.toObject,
|
|
4174
|
+
includeInstance
|
|
4175
|
+
),
|
|
4993
4176
|
methodCallsList: jspb.Message.toObjectList(
|
|
4994
4177
|
msg.getMethodCallsList(),
|
|
4995
4178
|
proto.aggregator.ContractReadNode.MethodCall.toObject,
|
|
@@ -5022,11 +4205,9 @@ var require_avs_pb = __commonJS({
|
|
|
5022
4205
|
msg.setContractAddress(value);
|
|
5023
4206
|
break;
|
|
5024
4207
|
case 2:
|
|
5025
|
-
var value = (
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
);
|
|
5029
|
-
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);
|
|
5030
4211
|
break;
|
|
5031
4212
|
case 3:
|
|
5032
4213
|
var value = new proto.aggregator.ContractReadNode.MethodCall();
|
|
@@ -5054,11 +4235,12 @@ var require_avs_pb = __commonJS({
|
|
|
5054
4235
|
f
|
|
5055
4236
|
);
|
|
5056
4237
|
}
|
|
5057
|
-
f = message.
|
|
4238
|
+
f = message.getContractAbiList();
|
|
5058
4239
|
if (f.length > 0) {
|
|
5059
|
-
writer.
|
|
4240
|
+
writer.writeRepeatedMessage(
|
|
5060
4241
|
2,
|
|
5061
|
-
f
|
|
4242
|
+
f,
|
|
4243
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
5062
4244
|
);
|
|
5063
4245
|
}
|
|
5064
4246
|
f = message.getMethodCallsList();
|
|
@@ -5079,14 +4261,20 @@ var require_avs_pb = __commonJS({
|
|
|
5079
4261
|
proto.aggregator.ContractReadNode.Config.prototype.setContractAddress = function(value) {
|
|
5080
4262
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
5081
4263
|
};
|
|
5082
|
-
proto.aggregator.ContractReadNode.Config.prototype.
|
|
4264
|
+
proto.aggregator.ContractReadNode.Config.prototype.getContractAbiList = function() {
|
|
5083
4265
|
return (
|
|
5084
|
-
/** @type
|
|
5085
|
-
jspb.Message.
|
|
4266
|
+
/** @type{!Array<!proto.google.protobuf.Value>} */
|
|
4267
|
+
jspb.Message.getRepeatedWrapperField(this, google_protobuf_struct_pb5.Value, 2)
|
|
5086
4268
|
);
|
|
5087
4269
|
};
|
|
5088
|
-
proto.aggregator.ContractReadNode.Config.prototype.
|
|
5089
|
-
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([]);
|
|
5090
4278
|
};
|
|
5091
4279
|
proto.aggregator.ContractReadNode.Config.prototype.getMethodCallsList = function() {
|
|
5092
4280
|
return (
|
|
@@ -5367,7 +4555,8 @@ var require_avs_pb = __commonJS({
|
|
|
5367
4555
|
};
|
|
5368
4556
|
proto.aggregator.ContractReadNode.Output.toObject = function(includeInstance, msg) {
|
|
5369
4557
|
var f, obj = {
|
|
5370
|
-
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)
|
|
5371
4560
|
};
|
|
5372
4561
|
if (includeInstance) {
|
|
5373
4562
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5388,10 +4577,15 @@ var require_avs_pb = __commonJS({
|
|
|
5388
4577
|
var field = reader.getFieldNumber();
|
|
5389
4578
|
switch (field) {
|
|
5390
4579
|
case 1:
|
|
5391
|
-
var value = new
|
|
5392
|
-
reader.readMessage(value,
|
|
4580
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
4581
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
5393
4582
|
msg.setData(value);
|
|
5394
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;
|
|
5395
4589
|
default:
|
|
5396
4590
|
reader.skipField();
|
|
5397
4591
|
break;
|
|
@@ -5411,14 +4605,22 @@ var require_avs_pb = __commonJS({
|
|
|
5411
4605
|
writer.writeMessage(
|
|
5412
4606
|
1,
|
|
5413
4607
|
f,
|
|
5414
|
-
|
|
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
|
|
5415
4617
|
);
|
|
5416
4618
|
}
|
|
5417
4619
|
};
|
|
5418
4620
|
proto.aggregator.ContractReadNode.Output.prototype.getData = function() {
|
|
5419
4621
|
return (
|
|
5420
4622
|
/** @type{?proto.google.protobuf.Value} */
|
|
5421
|
-
jspb.Message.getWrapperField(this,
|
|
4623
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
5422
4624
|
);
|
|
5423
4625
|
};
|
|
5424
4626
|
proto.aggregator.ContractReadNode.Output.prototype.setData = function(value) {
|
|
@@ -5430,6 +4632,21 @@ var require_avs_pb = __commonJS({
|
|
|
5430
4632
|
proto.aggregator.ContractReadNode.Output.prototype.hasData = function() {
|
|
5431
4633
|
return jspb.Message.getField(this, 1) != null;
|
|
5432
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
|
+
};
|
|
5433
4650
|
proto.aggregator.ContractReadNode.prototype.getConfig = function() {
|
|
5434
4651
|
return (
|
|
5435
4652
|
/** @type{?proto.aggregator.ContractReadNode.Config} */
|
|
@@ -5619,7 +4836,7 @@ var require_avs_pb = __commonJS({
|
|
|
5619
4836
|
};
|
|
5620
4837
|
proto.aggregator.GraphQLQueryNode.Output.toObject = function(includeInstance, msg) {
|
|
5621
4838
|
var f, obj = {
|
|
5622
|
-
data: (f = msg.getData()) &&
|
|
4839
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
5623
4840
|
};
|
|
5624
4841
|
if (includeInstance) {
|
|
5625
4842
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5640,8 +4857,8 @@ var require_avs_pb = __commonJS({
|
|
|
5640
4857
|
var field = reader.getFieldNumber();
|
|
5641
4858
|
switch (field) {
|
|
5642
4859
|
case 1:
|
|
5643
|
-
var value = new
|
|
5644
|
-
reader.readMessage(value,
|
|
4860
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
4861
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
5645
4862
|
msg.setData(value);
|
|
5646
4863
|
break;
|
|
5647
4864
|
default:
|
|
@@ -5663,14 +4880,14 @@ var require_avs_pb = __commonJS({
|
|
|
5663
4880
|
writer.writeMessage(
|
|
5664
4881
|
1,
|
|
5665
4882
|
f,
|
|
5666
|
-
|
|
4883
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
5667
4884
|
);
|
|
5668
4885
|
}
|
|
5669
4886
|
};
|
|
5670
4887
|
proto.aggregator.GraphQLQueryNode.Output.prototype.getData = function() {
|
|
5671
4888
|
return (
|
|
5672
4889
|
/** @type{?proto.google.protobuf.Value} */
|
|
5673
|
-
jspb.Message.getWrapperField(this,
|
|
4890
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
5674
4891
|
);
|
|
5675
4892
|
};
|
|
5676
4893
|
proto.aggregator.GraphQLQueryNode.Output.prototype.setData = function(value) {
|
|
@@ -5895,7 +5112,7 @@ var require_avs_pb = __commonJS({
|
|
|
5895
5112
|
};
|
|
5896
5113
|
proto.aggregator.RestAPINode.Output.toObject = function(includeInstance, msg) {
|
|
5897
5114
|
var f, obj = {
|
|
5898
|
-
data: (f = msg.getData()) &&
|
|
5115
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
5899
5116
|
};
|
|
5900
5117
|
if (includeInstance) {
|
|
5901
5118
|
obj.$jspbMessageInstance = msg;
|
|
@@ -5916,8 +5133,8 @@ var require_avs_pb = __commonJS({
|
|
|
5916
5133
|
var field = reader.getFieldNumber();
|
|
5917
5134
|
switch (field) {
|
|
5918
5135
|
case 1:
|
|
5919
|
-
var value = new
|
|
5920
|
-
reader.readMessage(value,
|
|
5136
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
5137
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
5921
5138
|
msg.setData(value);
|
|
5922
5139
|
break;
|
|
5923
5140
|
default:
|
|
@@ -5939,14 +5156,14 @@ var require_avs_pb = __commonJS({
|
|
|
5939
5156
|
writer.writeMessage(
|
|
5940
5157
|
1,
|
|
5941
5158
|
f,
|
|
5942
|
-
|
|
5159
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
5943
5160
|
);
|
|
5944
5161
|
}
|
|
5945
5162
|
};
|
|
5946
5163
|
proto.aggregator.RestAPINode.Output.prototype.getData = function() {
|
|
5947
5164
|
return (
|
|
5948
5165
|
/** @type{?proto.google.protobuf.Value} */
|
|
5949
|
-
jspb.Message.getWrapperField(this,
|
|
5166
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
5950
5167
|
);
|
|
5951
5168
|
};
|
|
5952
5169
|
proto.aggregator.RestAPINode.Output.prototype.setData = function(value) {
|
|
@@ -6121,7 +5338,7 @@ var require_avs_pb = __commonJS({
|
|
|
6121
5338
|
};
|
|
6122
5339
|
proto.aggregator.CustomCodeNode.Output.toObject = function(includeInstance, msg) {
|
|
6123
5340
|
var f, obj = {
|
|
6124
|
-
data: (f = msg.getData()) &&
|
|
5341
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
6125
5342
|
};
|
|
6126
5343
|
if (includeInstance) {
|
|
6127
5344
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6142,8 +5359,8 @@ var require_avs_pb = __commonJS({
|
|
|
6142
5359
|
var field = reader.getFieldNumber();
|
|
6143
5360
|
switch (field) {
|
|
6144
5361
|
case 1:
|
|
6145
|
-
var value = new
|
|
6146
|
-
reader.readMessage(value,
|
|
5362
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
5363
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
6147
5364
|
msg.setData(value);
|
|
6148
5365
|
break;
|
|
6149
5366
|
default:
|
|
@@ -6165,14 +5382,14 @@ var require_avs_pb = __commonJS({
|
|
|
6165
5382
|
writer.writeMessage(
|
|
6166
5383
|
1,
|
|
6167
5384
|
f,
|
|
6168
|
-
|
|
5385
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
6169
5386
|
);
|
|
6170
5387
|
}
|
|
6171
5388
|
};
|
|
6172
5389
|
proto.aggregator.CustomCodeNode.Output.prototype.getData = function() {
|
|
6173
5390
|
return (
|
|
6174
5391
|
/** @type{?proto.google.protobuf.Value} */
|
|
6175
|
-
jspb.Message.getWrapperField(this,
|
|
5392
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
6176
5393
|
);
|
|
6177
5394
|
};
|
|
6178
5395
|
proto.aggregator.CustomCodeNode.Output.prototype.setData = function(value) {
|
|
@@ -6445,7 +5662,7 @@ var require_avs_pb = __commonJS({
|
|
|
6445
5662
|
};
|
|
6446
5663
|
proto.aggregator.BranchNode.Output.toObject = function(includeInstance, msg) {
|
|
6447
5664
|
var f, obj = {
|
|
6448
|
-
data: (f = msg.getData()) &&
|
|
5665
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
6449
5666
|
};
|
|
6450
5667
|
if (includeInstance) {
|
|
6451
5668
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6466,8 +5683,8 @@ var require_avs_pb = __commonJS({
|
|
|
6466
5683
|
var field = reader.getFieldNumber();
|
|
6467
5684
|
switch (field) {
|
|
6468
5685
|
case 1:
|
|
6469
|
-
var value = new
|
|
6470
|
-
reader.readMessage(value,
|
|
5686
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
5687
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
6471
5688
|
msg.setData(value);
|
|
6472
5689
|
break;
|
|
6473
5690
|
default:
|
|
@@ -6489,14 +5706,14 @@ var require_avs_pb = __commonJS({
|
|
|
6489
5706
|
writer.writeMessage(
|
|
6490
5707
|
1,
|
|
6491
5708
|
f,
|
|
6492
|
-
|
|
5709
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
6493
5710
|
);
|
|
6494
5711
|
}
|
|
6495
5712
|
};
|
|
6496
5713
|
proto.aggregator.BranchNode.Output.prototype.getData = function() {
|
|
6497
5714
|
return (
|
|
6498
5715
|
/** @type{?proto.google.protobuf.Value} */
|
|
6499
|
-
jspb.Message.getWrapperField(this,
|
|
5716
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
6500
5717
|
);
|
|
6501
5718
|
};
|
|
6502
5719
|
proto.aggregator.BranchNode.Output.prototype.setData = function(value) {
|
|
@@ -6671,7 +5888,7 @@ var require_avs_pb = __commonJS({
|
|
|
6671
5888
|
};
|
|
6672
5889
|
proto.aggregator.FilterNode.Output.toObject = function(includeInstance, msg) {
|
|
6673
5890
|
var f, obj = {
|
|
6674
|
-
data: (f = msg.getData()) &&
|
|
5891
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
6675
5892
|
};
|
|
6676
5893
|
if (includeInstance) {
|
|
6677
5894
|
obj.$jspbMessageInstance = msg;
|
|
@@ -6692,8 +5909,8 @@ var require_avs_pb = __commonJS({
|
|
|
6692
5909
|
var field = reader.getFieldNumber();
|
|
6693
5910
|
switch (field) {
|
|
6694
5911
|
case 1:
|
|
6695
|
-
var value = new
|
|
6696
|
-
reader.readMessage(value,
|
|
5912
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
5913
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
6697
5914
|
msg.setData(value);
|
|
6698
5915
|
break;
|
|
6699
5916
|
default:
|
|
@@ -6715,14 +5932,14 @@ var require_avs_pb = __commonJS({
|
|
|
6715
5932
|
writer.writeMessage(
|
|
6716
5933
|
1,
|
|
6717
5934
|
f,
|
|
6718
|
-
|
|
5935
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
6719
5936
|
);
|
|
6720
5937
|
}
|
|
6721
5938
|
};
|
|
6722
5939
|
proto.aggregator.FilterNode.Output.prototype.getData = function() {
|
|
6723
5940
|
return (
|
|
6724
5941
|
/** @type{?proto.google.protobuf.Value} */
|
|
6725
|
-
jspb.Message.getWrapperField(this,
|
|
5942
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
6726
5943
|
);
|
|
6727
5944
|
};
|
|
6728
5945
|
proto.aggregator.FilterNode.Output.prototype.setData = function(value) {
|
|
@@ -7045,7 +6262,7 @@ var require_avs_pb = __commonJS({
|
|
|
7045
6262
|
};
|
|
7046
6263
|
proto.aggregator.LoopNode.Output.toObject = function(includeInstance, msg) {
|
|
7047
6264
|
var f, obj = {
|
|
7048
|
-
data: (f = msg.getData()) &&
|
|
6265
|
+
data: (f = msg.getData()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f)
|
|
7049
6266
|
};
|
|
7050
6267
|
if (includeInstance) {
|
|
7051
6268
|
obj.$jspbMessageInstance = msg;
|
|
@@ -7066,8 +6283,8 @@ var require_avs_pb = __commonJS({
|
|
|
7066
6283
|
var field = reader.getFieldNumber();
|
|
7067
6284
|
switch (field) {
|
|
7068
6285
|
case 1:
|
|
7069
|
-
var value = new
|
|
7070
|
-
reader.readMessage(value,
|
|
6286
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
6287
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
7071
6288
|
msg.setData(value);
|
|
7072
6289
|
break;
|
|
7073
6290
|
default:
|
|
@@ -7089,14 +6306,14 @@ var require_avs_pb = __commonJS({
|
|
|
7089
6306
|
writer.writeMessage(
|
|
7090
6307
|
1,
|
|
7091
6308
|
f,
|
|
7092
|
-
|
|
6309
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
7093
6310
|
);
|
|
7094
6311
|
}
|
|
7095
6312
|
};
|
|
7096
6313
|
proto.aggregator.LoopNode.Output.prototype.getData = function() {
|
|
7097
6314
|
return (
|
|
7098
6315
|
/** @type{?proto.google.protobuf.Value} */
|
|
7099
|
-
jspb.Message.getWrapperField(this,
|
|
6316
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 1)
|
|
7100
6317
|
);
|
|
7101
6318
|
};
|
|
7102
6319
|
proto.aggregator.LoopNode.Output.prototype.setData = function(value) {
|
|
@@ -7889,7 +7106,7 @@ var require_avs_pb = __commonJS({
|
|
|
7889
7106
|
error: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
7890
7107
|
log: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
7891
7108
|
inputsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? void 0 : f,
|
|
7892
|
-
config: (f = msg.getConfig()) &&
|
|
7109
|
+
config: (f = msg.getConfig()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
7893
7110
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
7894
7111
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
7895
7112
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -7975,8 +7192,8 @@ var require_avs_pb = __commonJS({
|
|
|
7975
7192
|
msg.addInputs(value);
|
|
7976
7193
|
break;
|
|
7977
7194
|
case 19:
|
|
7978
|
-
var value = new
|
|
7979
|
-
reader.readMessage(value,
|
|
7195
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
7196
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
7980
7197
|
msg.setConfig(value);
|
|
7981
7198
|
break;
|
|
7982
7199
|
case 20:
|
|
@@ -8131,7 +7348,7 @@ var require_avs_pb = __commonJS({
|
|
|
8131
7348
|
writer.writeMessage(
|
|
8132
7349
|
19,
|
|
8133
7350
|
f,
|
|
8134
|
-
|
|
7351
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
8135
7352
|
);
|
|
8136
7353
|
}
|
|
8137
7354
|
f = message.getBlockTrigger();
|
|
@@ -8333,7 +7550,7 @@ var require_avs_pb = __commonJS({
|
|
|
8333
7550
|
proto.aggregator.Execution.Step.prototype.getConfig = function() {
|
|
8334
7551
|
return (
|
|
8335
7552
|
/** @type{?proto.google.protobuf.Value} */
|
|
8336
|
-
jspb.Message.getWrapperField(this,
|
|
7553
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 19)
|
|
8337
7554
|
);
|
|
8338
7555
|
};
|
|
8339
7556
|
proto.aggregator.Execution.Step.prototype.setConfig = function(value) {
|
|
@@ -14131,7 +13348,7 @@ var require_avs_pb = __commonJS({
|
|
|
14131
13348
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
14132
13349
|
error: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
14133
13350
|
nodeId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
14134
|
-
metadata: (f = msg.getMetadata()) &&
|
|
13351
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14135
13352
|
ethTransfer: (f = msg.getEthTransfer()) && proto.aggregator.ETHTransferNode.Output.toObject(includeInstance, f),
|
|
14136
13353
|
graphql: (f = msg.getGraphql()) && proto.aggregator.GraphQLQueryNode.Output.toObject(includeInstance, f),
|
|
14137
13354
|
contractRead: (f = msg.getContractRead()) && proto.aggregator.ContractReadNode.Output.toObject(includeInstance, f),
|
|
@@ -14182,8 +13399,8 @@ var require_avs_pb = __commonJS({
|
|
|
14182
13399
|
msg.setNodeId(value);
|
|
14183
13400
|
break;
|
|
14184
13401
|
case 5:
|
|
14185
|
-
var value = new
|
|
14186
|
-
reader.readMessage(value,
|
|
13402
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
13403
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
14187
13404
|
msg.setMetadata(value);
|
|
14188
13405
|
break;
|
|
14189
13406
|
case 10:
|
|
@@ -14271,7 +13488,7 @@ var require_avs_pb = __commonJS({
|
|
|
14271
13488
|
writer.writeMessage(
|
|
14272
13489
|
5,
|
|
14273
13490
|
f,
|
|
14274
|
-
|
|
13491
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
14275
13492
|
);
|
|
14276
13493
|
}
|
|
14277
13494
|
f = message.getEthTransfer();
|
|
@@ -14377,7 +13594,7 @@ var require_avs_pb = __commonJS({
|
|
|
14377
13594
|
proto.aggregator.RunNodeWithInputsResp.prototype.getMetadata = function() {
|
|
14378
13595
|
return (
|
|
14379
13596
|
/** @type{?proto.google.protobuf.Value} */
|
|
14380
|
-
jspb.Message.getWrapperField(this,
|
|
13597
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 5)
|
|
14381
13598
|
);
|
|
14382
13599
|
};
|
|
14383
13600
|
proto.aggregator.RunNodeWithInputsResp.prototype.setMetadata = function(value) {
|
|
@@ -14664,7 +13881,7 @@ var require_avs_pb = __commonJS({
|
|
|
14664
13881
|
success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
|
|
14665
13882
|
error: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
14666
13883
|
triggerId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
14667
|
-
metadata: (f = msg.getMetadata()) &&
|
|
13884
|
+
metadata: (f = msg.getMetadata()) && google_protobuf_struct_pb5.Value.toObject(includeInstance, f),
|
|
14668
13885
|
blockTrigger: (f = msg.getBlockTrigger()) && proto.aggregator.BlockTrigger.Output.toObject(includeInstance, f),
|
|
14669
13886
|
fixedTimeTrigger: (f = msg.getFixedTimeTrigger()) && proto.aggregator.FixedTimeTrigger.Output.toObject(includeInstance, f),
|
|
14670
13887
|
cronTrigger: (f = msg.getCronTrigger()) && proto.aggregator.CronTrigger.Output.toObject(includeInstance, f),
|
|
@@ -14711,8 +13928,8 @@ var require_avs_pb = __commonJS({
|
|
|
14711
13928
|
msg.setTriggerId(value);
|
|
14712
13929
|
break;
|
|
14713
13930
|
case 4:
|
|
14714
|
-
var value = new
|
|
14715
|
-
reader.readMessage(value,
|
|
13931
|
+
var value = new google_protobuf_struct_pb5.Value();
|
|
13932
|
+
reader.readMessage(value, google_protobuf_struct_pb5.Value.deserializeBinaryFromReader);
|
|
14716
13933
|
msg.setMetadata(value);
|
|
14717
13934
|
break;
|
|
14718
13935
|
case 10:
|
|
@@ -14780,7 +13997,7 @@ var require_avs_pb = __commonJS({
|
|
|
14780
13997
|
writer.writeMessage(
|
|
14781
13998
|
4,
|
|
14782
13999
|
f,
|
|
14783
|
-
|
|
14000
|
+
google_protobuf_struct_pb5.Value.serializeBinaryToWriter
|
|
14784
14001
|
);
|
|
14785
14002
|
}
|
|
14786
14003
|
f = message.getBlockTrigger();
|
|
@@ -14854,7 +14071,7 @@ var require_avs_pb = __commonJS({
|
|
|
14854
14071
|
proto.aggregator.RunTriggerResp.prototype.getMetadata = function() {
|
|
14855
14072
|
return (
|
|
14856
14073
|
/** @type{?proto.google.protobuf.Value} */
|
|
14857
|
-
jspb.Message.getWrapperField(this,
|
|
14074
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb5.Value, 4)
|
|
14858
14075
|
);
|
|
14859
14076
|
};
|
|
14860
14077
|
proto.aggregator.RunTriggerResp.prototype.setMetadata = function(value) {
|
|
@@ -15332,7 +14549,7 @@ var require_avs_grpc_pb = __commonJS({
|
|
|
15332
14549
|
var avs_pb23 = require_avs_pb();
|
|
15333
14550
|
var google_protobuf_wrappers_pb = require("google-protobuf/google/protobuf/wrappers_pb.js");
|
|
15334
14551
|
var google_protobuf_any_pb = require("google-protobuf/google/protobuf/any_pb.js");
|
|
15335
|
-
var
|
|
14552
|
+
var google_protobuf_struct_pb5 = require("google-protobuf/google/protobuf/struct_pb.js");
|
|
15336
14553
|
function serialize_aggregator_CancelTaskResp(arg) {
|
|
15337
14554
|
if (!(arg instanceof avs_pb23.CancelTaskResp)) {
|
|
15338
14555
|
throw new Error("Expected argument of type aggregator.CancelTaskResp");
|
|
@@ -16315,6 +15532,7 @@ var cron_default = CronTrigger2;
|
|
|
16315
15532
|
|
|
16316
15533
|
// src/models/trigger/event.ts
|
|
16317
15534
|
var avs_pb4 = __toESM(require_avs_pb());
|
|
15535
|
+
var google_protobuf_struct_pb = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
16318
15536
|
var import_types4 = require("@avaprotocol/types");
|
|
16319
15537
|
|
|
16320
15538
|
// src/utils.ts
|
|
@@ -16538,7 +15756,12 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
16538
15756
|
query.setMaxEventsPerBlock(queryData.maxEventsPerBlock);
|
|
16539
15757
|
}
|
|
16540
15758
|
if (queryData.contractAbi) {
|
|
16541
|
-
|
|
15759
|
+
const abiValueList = queryData.contractAbi.map((item) => {
|
|
15760
|
+
const value = new google_protobuf_struct_pb.Value();
|
|
15761
|
+
value.setStructValue(google_protobuf_struct_pb.Struct.fromJavaScript(item));
|
|
15762
|
+
return value;
|
|
15763
|
+
});
|
|
15764
|
+
query.setContractAbiList(abiValueList);
|
|
16542
15765
|
}
|
|
16543
15766
|
if (queryData.conditions && queryData.conditions.length > 0) {
|
|
16544
15767
|
const conditionMessages = queryData.conditions.map((conditionData) => {
|
|
@@ -16583,7 +15806,9 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
16583
15806
|
config.getQueriesList().forEach((query) => {
|
|
16584
15807
|
const queryData = {
|
|
16585
15808
|
addresses: [],
|
|
16586
|
-
topics: []
|
|
15809
|
+
topics: [],
|
|
15810
|
+
contractAbi: []
|
|
15811
|
+
// Add the required contractAbi field
|
|
16587
15812
|
};
|
|
16588
15813
|
if (query.getAddressesList && query.getAddressesList().length > 0) {
|
|
16589
15814
|
queryData.addresses = query.getAddressesList();
|
|
@@ -16600,9 +15825,11 @@ var EventTrigger2 = class _EventTrigger extends Trigger {
|
|
|
16600
15825
|
if (maxEvents && maxEvents > 0) {
|
|
16601
15826
|
queryData.maxEventsPerBlock = maxEvents;
|
|
16602
15827
|
}
|
|
16603
|
-
const contractAbi = query.
|
|
16604
|
-
if (contractAbi) {
|
|
16605
|
-
queryData.contractAbi = contractAbi
|
|
15828
|
+
const contractAbi = query.getContractAbiList();
|
|
15829
|
+
if (contractAbi && contractAbi.length > 0) {
|
|
15830
|
+
queryData.contractAbi = contractAbi.map(
|
|
15831
|
+
(value) => convertProtobufValueToJs(value)
|
|
15832
|
+
);
|
|
16606
15833
|
}
|
|
16607
15834
|
const conditions = [];
|
|
16608
15835
|
if (query.getConditionsList && query.getConditionsList().length > 0) {
|
|
@@ -16937,6 +16164,7 @@ var Node = class {
|
|
|
16937
16164
|
|
|
16938
16165
|
// src/models/node/contractWrite.ts
|
|
16939
16166
|
var avs_pb9 = __toESM(require_avs_pb());
|
|
16167
|
+
var google_protobuf_struct_pb2 = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
16940
16168
|
var import_types9 = require("@avaprotocol/types");
|
|
16941
16169
|
var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
16942
16170
|
constructor(props) {
|
|
@@ -16951,15 +16179,24 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
16951
16179
|
const node = new avs_pb9.ContractWriteNode();
|
|
16952
16180
|
const config = new avs_pb9.ContractWriteNode.Config();
|
|
16953
16181
|
config.setContractAddress(configData.contractAddress);
|
|
16954
|
-
|
|
16955
|
-
|
|
16182
|
+
const abiValueList = configData.contractAbi.map((item) => {
|
|
16183
|
+
const value = new google_protobuf_struct_pb2.Value();
|
|
16184
|
+
value.setStructValue(google_protobuf_struct_pb2.Struct.fromJavaScript(item));
|
|
16185
|
+
return value;
|
|
16186
|
+
});
|
|
16187
|
+
config.setContractAbiList(abiValueList);
|
|
16956
16188
|
const methodCalls = configData.methodCalls || [];
|
|
16957
16189
|
methodCalls.forEach((methodCall) => {
|
|
16958
16190
|
const methodCallMsg = new avs_pb9.ContractWriteNode.MethodCall();
|
|
16959
|
-
|
|
16191
|
+
if (methodCall.callData) {
|
|
16192
|
+
methodCallMsg.setCallData(methodCall.callData);
|
|
16193
|
+
}
|
|
16960
16194
|
if (methodCall.methodName) {
|
|
16961
16195
|
methodCallMsg.setMethodName(methodCall.methodName);
|
|
16962
16196
|
}
|
|
16197
|
+
if (methodCall.methodParams) {
|
|
16198
|
+
methodCallMsg.setMethodParamsList(methodCall.methodParams);
|
|
16199
|
+
}
|
|
16963
16200
|
config.addMethodCalls(methodCallMsg);
|
|
16964
16201
|
});
|
|
16965
16202
|
node.setConfig(config);
|
|
@@ -16967,14 +16204,20 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
16967
16204
|
}
|
|
16968
16205
|
static fromResponse(raw) {
|
|
16969
16206
|
const obj = raw.toObject();
|
|
16970
|
-
const
|
|
16207
|
+
const contractWriteNode = raw.getContractWrite();
|
|
16208
|
+
const config = contractWriteNode.getConfig();
|
|
16209
|
+
const protobufData = config.toObject();
|
|
16971
16210
|
const data = {
|
|
16972
16211
|
contractAddress: protobufData.contractAddress,
|
|
16973
|
-
|
|
16974
|
-
|
|
16212
|
+
contractAbi: config.getContractAbiList().map(
|
|
16213
|
+
(value) => convertProtobufValueToJs(value)
|
|
16214
|
+
),
|
|
16975
16215
|
methodCalls: protobufData.methodCallsList?.map((call) => ({
|
|
16976
|
-
|
|
16977
|
-
|
|
16216
|
+
methodName: call.methodName,
|
|
16217
|
+
methodParams: call.methodParamsList || [],
|
|
16218
|
+
// Note: applyToFields is not supported for ContractWrite nodes in protobuf
|
|
16219
|
+
// callData is optional, only include if present
|
|
16220
|
+
...call.callData && { callData: call.callData }
|
|
16978
16221
|
})) || []
|
|
16979
16222
|
};
|
|
16980
16223
|
return new _ContractWriteNode({
|
|
@@ -16999,7 +16242,27 @@ var ContractWriteNode2 = class _ContractWriteNode extends Node {
|
|
|
16999
16242
|
const data = contractWriteOutput.getData();
|
|
17000
16243
|
if (!data) return null;
|
|
17001
16244
|
const jsData = convertProtobufValueToJs(data);
|
|
17002
|
-
|
|
16245
|
+
if (Array.isArray(jsData)) {
|
|
16246
|
+
return jsData.map((result) => {
|
|
16247
|
+
const methodName = result.method_name || result.methodName;
|
|
16248
|
+
return {
|
|
16249
|
+
methodName,
|
|
16250
|
+
methodABI: result.method_abi || null,
|
|
16251
|
+
success: result.success,
|
|
16252
|
+
error: result.error || "",
|
|
16253
|
+
value: result.value
|
|
16254
|
+
};
|
|
16255
|
+
});
|
|
16256
|
+
} else {
|
|
16257
|
+
const methodName = jsData.method_name || jsData.methodName;
|
|
16258
|
+
return [{
|
|
16259
|
+
methodName,
|
|
16260
|
+
methodABI: jsData.method_abi || null,
|
|
16261
|
+
success: jsData.success,
|
|
16262
|
+
error: jsData.error || "",
|
|
16263
|
+
value: jsData.value
|
|
16264
|
+
}];
|
|
16265
|
+
}
|
|
17003
16266
|
}
|
|
17004
16267
|
};
|
|
17005
16268
|
var contractWrite_default = ContractWriteNode2;
|
|
@@ -17190,6 +16453,7 @@ var restApi_default = RestAPINode2;
|
|
|
17190
16453
|
|
|
17191
16454
|
// src/models/node/contractRead.ts
|
|
17192
16455
|
var avs_pb13 = __toESM(require_avs_pb());
|
|
16456
|
+
var google_protobuf_struct_pb3 = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
17193
16457
|
var import_types13 = require("@avaprotocol/types");
|
|
17194
16458
|
var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
17195
16459
|
constructor(props) {
|
|
@@ -17204,17 +16468,27 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
17204
16468
|
const node = new avs_pb13.ContractReadNode();
|
|
17205
16469
|
const config = new avs_pb13.ContractReadNode.Config();
|
|
17206
16470
|
config.setContractAddress(configData.contractAddress);
|
|
17207
|
-
|
|
16471
|
+
const abiValueList = configData.contractAbi.map((item) => {
|
|
16472
|
+
const value = new google_protobuf_struct_pb3.Value();
|
|
16473
|
+
value.setStructValue(google_protobuf_struct_pb3.Struct.fromJavaScript(item));
|
|
16474
|
+
return value;
|
|
16475
|
+
});
|
|
16476
|
+
config.setContractAbiList(abiValueList);
|
|
17208
16477
|
const methodCalls = configData.methodCalls || [];
|
|
17209
16478
|
methodCalls.forEach((methodCall) => {
|
|
17210
16479
|
const methodCallMsg = new avs_pb13.ContractReadNode.MethodCall();
|
|
17211
|
-
|
|
16480
|
+
if (methodCall.callData) {
|
|
16481
|
+
methodCallMsg.setCallData(methodCall.callData);
|
|
16482
|
+
}
|
|
17212
16483
|
if (methodCall.methodName) {
|
|
17213
16484
|
methodCallMsg.setMethodName(methodCall.methodName);
|
|
17214
16485
|
}
|
|
17215
16486
|
if (methodCall.applyToFields) {
|
|
17216
16487
|
methodCallMsg.setApplyToFieldsList(methodCall.applyToFields);
|
|
17217
16488
|
}
|
|
16489
|
+
if (methodCall.methodParams) {
|
|
16490
|
+
methodCallMsg.setMethodParamsList(methodCall.methodParams);
|
|
16491
|
+
}
|
|
17218
16492
|
config.addMethodCalls(methodCallMsg);
|
|
17219
16493
|
});
|
|
17220
16494
|
node.setConfig(config);
|
|
@@ -17222,14 +16496,19 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
17222
16496
|
}
|
|
17223
16497
|
static fromResponse(raw) {
|
|
17224
16498
|
const obj = raw.toObject();
|
|
17225
|
-
const
|
|
16499
|
+
const contractReadNode = raw.getContractRead();
|
|
16500
|
+
const config = contractReadNode.getConfig();
|
|
16501
|
+
const protobufData = config.toObject();
|
|
17226
16502
|
const data = {
|
|
17227
16503
|
contractAddress: protobufData.contractAddress,
|
|
17228
|
-
contractAbi:
|
|
16504
|
+
contractAbi: config.getContractAbiList().map(
|
|
16505
|
+
(value) => convertProtobufValueToJs(value)
|
|
16506
|
+
),
|
|
17229
16507
|
methodCalls: protobufData.methodCallsList?.map((call) => ({
|
|
17230
16508
|
callData: call.callData,
|
|
17231
16509
|
methodName: call.methodName,
|
|
17232
|
-
applyToFields: call.applyToFieldsList || []
|
|
16510
|
+
applyToFields: call.applyToFieldsList || [],
|
|
16511
|
+
methodParams: call.methodParamsList || []
|
|
17233
16512
|
})) || []
|
|
17234
16513
|
};
|
|
17235
16514
|
return new _ContractReadNode({
|
|
@@ -17250,23 +16529,10 @@ var ContractReadNode2 = class _ContractReadNode extends Node {
|
|
|
17250
16529
|
}
|
|
17251
16530
|
static fromOutputData(outputData) {
|
|
17252
16531
|
const contractReadOutput = outputData.getContractRead();
|
|
17253
|
-
if (contractReadOutput
|
|
17254
|
-
|
|
17255
|
-
|
|
17256
|
-
|
|
17257
|
-
if (Array.isArray(jsData)) {
|
|
17258
|
-
return jsData.map((result) => ({
|
|
17259
|
-
methodName: result.methodName,
|
|
17260
|
-
success: result.success,
|
|
17261
|
-
error: result.error || "",
|
|
17262
|
-
data: result.data || {}
|
|
17263
|
-
}));
|
|
17264
|
-
} else {
|
|
17265
|
-
return jsData;
|
|
17266
|
-
}
|
|
17267
|
-
}
|
|
17268
|
-
}
|
|
17269
|
-
return null;
|
|
16532
|
+
if (!contractReadOutput) return null;
|
|
16533
|
+
const dataValue = contractReadOutput.getData();
|
|
16534
|
+
const cleanData = dataValue ? convertProtobufValueToJs(dataValue) : {};
|
|
16535
|
+
return cleanData;
|
|
17270
16536
|
}
|
|
17271
16537
|
};
|
|
17272
16538
|
var contractRead_default = ContractReadNode2;
|
|
@@ -17464,7 +16730,7 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
17464
16730
|
};
|
|
17465
16731
|
for (const [type, key] of Object.entries(runnerMapping)) {
|
|
17466
16732
|
if (loopNodeData[key]) {
|
|
17467
|
-
return { type,
|
|
16733
|
+
return { type, config: loopNodeData[key] };
|
|
17468
16734
|
}
|
|
17469
16735
|
}
|
|
17470
16736
|
return null;
|
|
@@ -17542,9 +16808,12 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
17542
16808
|
const writeConfig = config;
|
|
17543
16809
|
const contractWrite = contractWrite_default.createProtobufNode({
|
|
17544
16810
|
contractAddress: writeConfig.contractAddress,
|
|
17545
|
-
callData: writeConfig.callData,
|
|
17546
16811
|
contractAbi: writeConfig.contractAbi,
|
|
17547
|
-
methodCalls: writeConfig.
|
|
16812
|
+
methodCalls: writeConfig.methodCalls?.map((call) => ({
|
|
16813
|
+
methodName: call.methodName || "",
|
|
16814
|
+
methodParams: call.methodParams || [],
|
|
16815
|
+
...call.callData && { callData: call.callData }
|
|
16816
|
+
})) || []
|
|
17548
16817
|
});
|
|
17549
16818
|
loopNode.setContractWrite(contractWrite);
|
|
17550
16819
|
break;
|
|
@@ -17554,7 +16823,12 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
17554
16823
|
const contractRead = contractRead_default.createProtobufNode({
|
|
17555
16824
|
contractAddress: readConfig.contractAddress,
|
|
17556
16825
|
contractAbi: readConfig.contractAbi,
|
|
17557
|
-
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
|
+
})) || []
|
|
17558
16832
|
});
|
|
17559
16833
|
loopNode.setContractRead(contractRead);
|
|
17560
16834
|
break;
|
|
@@ -17592,26 +16866,29 @@ var LoopNode2 = class _LoopNode extends Node {
|
|
|
17592
16866
|
}
|
|
17593
16867
|
}
|
|
17594
16868
|
static fromOutputData(outputData) {
|
|
17595
|
-
const customCodeOutput = outputData.getCustomCode();
|
|
17596
|
-
if (customCodeOutput) {
|
|
17597
|
-
const result = customCodeOutput.toObject();
|
|
17598
|
-
if (result && typeof result === "object" && Object.keys(result).length === 1 && "data" in result) {
|
|
17599
|
-
return result.data;
|
|
17600
|
-
}
|
|
17601
|
-
return result;
|
|
17602
|
-
}
|
|
17603
16869
|
const loopOutput = outputData.getLoop();
|
|
17604
16870
|
if (loopOutput) {
|
|
17605
16871
|
const dataValue = loopOutput.getData();
|
|
17606
16872
|
if (dataValue) {
|
|
17607
16873
|
try {
|
|
17608
|
-
return dataValue
|
|
16874
|
+
return convertProtobufValueToJs(dataValue);
|
|
17609
16875
|
} catch (error) {
|
|
17610
|
-
console.warn(
|
|
16876
|
+
console.warn(
|
|
16877
|
+
"Failed to convert loop data from protobuf Value:",
|
|
16878
|
+
error
|
|
16879
|
+
);
|
|
17611
16880
|
return null;
|
|
17612
16881
|
}
|
|
17613
16882
|
}
|
|
17614
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
|
+
}
|
|
17615
16892
|
return null;
|
|
17616
16893
|
}
|
|
17617
16894
|
};
|
|
@@ -18088,7 +17365,7 @@ var secret_default = Secret;
|
|
|
18088
17365
|
|
|
18089
17366
|
// src/index.ts
|
|
18090
17367
|
var import_types20 = require("@avaprotocol/types");
|
|
18091
|
-
var
|
|
17368
|
+
var google_protobuf_struct_pb4 = __toESM(require("google-protobuf/google/protobuf/struct_pb"));
|
|
18092
17369
|
var import_types21 = require("@avaprotocol/types");
|
|
18093
17370
|
var BaseClient = class {
|
|
18094
17371
|
constructor(opts) {
|
|
@@ -18623,8 +17900,8 @@ var Client = class extends BaseClient {
|
|
|
18623
17900
|
timestamp: triggerData.timestamp,
|
|
18624
17901
|
timestampIso: triggerData.timestampIso
|
|
18625
17902
|
};
|
|
18626
|
-
const dataValue = new
|
|
18627
|
-
dataValue.setStructValue(
|
|
17903
|
+
const dataValue = new google_protobuf_struct_pb4.Value();
|
|
17904
|
+
dataValue.setStructValue(google_protobuf_struct_pb4.Struct.fromJavaScript(triggerOutputData));
|
|
18628
17905
|
fixedTimeOutput.setData(dataValue);
|
|
18629
17906
|
request.setFixedTimeTrigger(fixedTimeOutput);
|
|
18630
17907
|
break;
|
|
@@ -18635,8 +17912,8 @@ var Client = class extends BaseClient {
|
|
|
18635
17912
|
timestamp: triggerData.timestamp,
|
|
18636
17913
|
timestampIso: triggerData.timestampIso
|
|
18637
17914
|
};
|
|
18638
|
-
const dataValue = new
|
|
18639
|
-
dataValue.setStructValue(
|
|
17915
|
+
const dataValue = new google_protobuf_struct_pb4.Value();
|
|
17916
|
+
dataValue.setStructValue(google_protobuf_struct_pb4.Struct.fromJavaScript(triggerOutputData));
|
|
18640
17917
|
cronOutput.setData(dataValue);
|
|
18641
17918
|
request.setCronTrigger(cronOutput);
|
|
18642
17919
|
break;
|
|
@@ -18653,8 +17930,8 @@ var Client = class extends BaseClient {
|
|
|
18653
17930
|
gasLimit: blockData.gasLimit || 0,
|
|
18654
17931
|
gasUsed: blockData.gasUsed || 0
|
|
18655
17932
|
};
|
|
18656
|
-
const dataValue = new
|
|
18657
|
-
dataValue.setStructValue(
|
|
17933
|
+
const dataValue = new google_protobuf_struct_pb4.Value();
|
|
17934
|
+
dataValue.setStructValue(google_protobuf_struct_pb4.Struct.fromJavaScript(triggerOutputData));
|
|
18658
17935
|
blockOutput.setData(dataValue);
|
|
18659
17936
|
request.setBlockTrigger(blockOutput);
|
|
18660
17937
|
break;
|
|
@@ -18942,23 +18219,14 @@ var Client = class extends BaseClient {
|
|
|
18942
18219
|
let metadata = void 0;
|
|
18943
18220
|
const metadataValue = result.getMetadata();
|
|
18944
18221
|
if (metadataValue) {
|
|
18945
|
-
|
|
18946
|
-
|
|
18947
|
-
|
|
18948
|
-
|
|
18949
|
-
|
|
18950
|
-
|
|
18951
|
-
|
|
18952
|
-
|
|
18953
|
-
try {
|
|
18954
|
-
metadata = convertProtobufValueToJs(metadataValue);
|
|
18955
|
-
} catch (error) {
|
|
18956
|
-
console.warn(
|
|
18957
|
-
"Failed to convert metadata from protobuf Value:",
|
|
18958
|
-
error
|
|
18959
|
-
);
|
|
18960
|
-
metadata = metadataValue;
|
|
18961
|
-
}
|
|
18222
|
+
try {
|
|
18223
|
+
metadata = convertProtobufValueToJs(metadataValue);
|
|
18224
|
+
} catch (error) {
|
|
18225
|
+
console.warn(
|
|
18226
|
+
"Failed to convert metadata from protobuf Value:",
|
|
18227
|
+
error
|
|
18228
|
+
);
|
|
18229
|
+
metadata = metadataValue;
|
|
18962
18230
|
}
|
|
18963
18231
|
}
|
|
18964
18232
|
return {
|