@ocap/proto 1.14.7 → 1.14.11

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.
@@ -13,7 +13,7 @@
13
13
 
14
14
  var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
- var global = Function('return this')();
16
+ var root = (typeof self === 'object' && self.self === self && self) || (typeof global === 'object' && global.global === global && global) || this;
17
17
 
18
18
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
19
  goog.object.extend(proto, google_protobuf_timestamp_pb);
@@ -23,53 +23,54 @@ var vendor_pb = require('./vendor_pb.js');
23
23
  goog.object.extend(proto, vendor_pb);
24
24
  var enum_pb = require('./enum_pb.js');
25
25
  goog.object.extend(proto, enum_pb);
26
- goog.exportSymbol('proto.ocap.AccountConfig', null, global);
27
- goog.exportSymbol('proto.ocap.AssetFactoryHook', null, global);
28
- goog.exportSymbol('proto.ocap.BigSint', null, global);
29
- goog.exportSymbol('proto.ocap.BigUint', null, global);
30
- goog.exportSymbol('proto.ocap.BlockInfo', null, global);
31
- goog.exportSymbol('proto.ocap.BlockInfoSimple', null, global);
32
- goog.exportSymbol('proto.ocap.ChainInfo', null, global);
33
- goog.exportSymbol('proto.ocap.ConsensusParams', null, global);
34
- goog.exportSymbol('proto.ocap.DelegateConfig', null, global);
35
- goog.exportSymbol('proto.ocap.Evidence', null, global);
36
- goog.exportSymbol('proto.ocap.ForeignToken', null, global);
37
- goog.exportSymbol('proto.ocap.ForgeToken', null, global);
38
- goog.exportSymbol('proto.ocap.GeoInfo', null, global);
39
- goog.exportSymbol('proto.ocap.IndexedFactoryInput', null, global);
40
- goog.exportSymbol('proto.ocap.IndexedTokenInput', null, global);
41
- goog.exportSymbol('proto.ocap.Multisig', null, global);
42
- goog.exportSymbol('proto.ocap.NFTDisplay', null, global);
43
- goog.exportSymbol('proto.ocap.NFTEndpoint', null, global);
44
- goog.exportSymbol('proto.ocap.NFTIssuer', null, global);
45
- goog.exportSymbol('proto.ocap.NetInfo', null, global);
46
- goog.exportSymbol('proto.ocap.NodeInfo', null, global);
47
- goog.exportSymbol('proto.ocap.PeerInfo', null, global);
48
- goog.exportSymbol('proto.ocap.ReceiptChange', null, global);
49
- goog.exportSymbol('proto.ocap.RevokedStake', null, global);
50
- goog.exportSymbol('proto.ocap.RollupSignature', null, global);
51
- goog.exportSymbol('proto.ocap.RollupValidator', null, global);
52
- goog.exportSymbol('proto.ocap.StakeSummary', null, global);
53
- goog.exportSymbol('proto.ocap.StateContext', null, global);
54
- goog.exportSymbol('proto.ocap.TokenInput', null, global);
55
- goog.exportSymbol('proto.ocap.TokenSymbol', null, global);
56
- goog.exportSymbol('proto.ocap.Transaction', null, global);
57
- goog.exportSymbol('proto.ocap.TransactionConfig', null, global);
58
- goog.exportSymbol('proto.ocap.TransactionInfo', null, global);
59
- goog.exportSymbol('proto.ocap.TransactionInput', null, global);
60
- goog.exportSymbol('proto.ocap.TransactionReceipt', null, global);
61
- goog.exportSymbol('proto.ocap.TxFeeConfig', null, global);
62
- goog.exportSymbol('proto.ocap.UnconfirmedTxs', null, global);
63
- goog.exportSymbol('proto.ocap.UpgradeInfo', null, global);
64
- goog.exportSymbol('proto.ocap.UpgradeTask', null, global);
65
- goog.exportSymbol('proto.ocap.UpgradeTasks', null, global);
66
- goog.exportSymbol('proto.ocap.Validator', null, global);
67
- goog.exportSymbol('proto.ocap.ValidatorInfo', null, global);
68
- goog.exportSymbol('proto.ocap.ValidatorsInfo', null, global);
69
- goog.exportSymbol('proto.ocap.VariableInput', null, global);
70
- goog.exportSymbol('proto.ocap.WalletInfo', null, global);
71
- goog.exportSymbol('proto.ocap.WalletType', null, global);
72
- goog.exportSymbol('proto.ocap.WithdrawItem', null, global);
26
+ goog.exportSymbol('proto.ocap.AccountConfig', null, root);
27
+ goog.exportSymbol('proto.ocap.AssetFactoryHook', null, root);
28
+ goog.exportSymbol('proto.ocap.BigSint', null, root);
29
+ goog.exportSymbol('proto.ocap.BigUint', null, root);
30
+ goog.exportSymbol('proto.ocap.BlockInfo', null, root);
31
+ goog.exportSymbol('proto.ocap.BlockInfoSimple', null, root);
32
+ goog.exportSymbol('proto.ocap.ChainInfo', null, root);
33
+ goog.exportSymbol('proto.ocap.ConsensusParams', null, root);
34
+ goog.exportSymbol('proto.ocap.DelegateConfig', null, root);
35
+ goog.exportSymbol('proto.ocap.Evidence', null, root);
36
+ goog.exportSymbol('proto.ocap.ForeignToken', null, root);
37
+ goog.exportSymbol('proto.ocap.ForgeStats', null, root);
38
+ goog.exportSymbol('proto.ocap.ForgeToken', null, root);
39
+ goog.exportSymbol('proto.ocap.GeoInfo', null, root);
40
+ goog.exportSymbol('proto.ocap.IndexedFactoryInput', null, root);
41
+ goog.exportSymbol('proto.ocap.IndexedTokenInput', null, root);
42
+ goog.exportSymbol('proto.ocap.Multisig', null, root);
43
+ goog.exportSymbol('proto.ocap.NFTDisplay', null, root);
44
+ goog.exportSymbol('proto.ocap.NFTEndpoint', null, root);
45
+ goog.exportSymbol('proto.ocap.NFTIssuer', null, root);
46
+ goog.exportSymbol('proto.ocap.NetInfo', null, root);
47
+ goog.exportSymbol('proto.ocap.NodeInfo', null, root);
48
+ goog.exportSymbol('proto.ocap.PeerInfo', null, root);
49
+ goog.exportSymbol('proto.ocap.ReceiptChange', null, root);
50
+ goog.exportSymbol('proto.ocap.RevokedStake', null, root);
51
+ goog.exportSymbol('proto.ocap.RollupSignature', null, root);
52
+ goog.exportSymbol('proto.ocap.RollupValidator', null, root);
53
+ goog.exportSymbol('proto.ocap.StakeSummary', null, root);
54
+ goog.exportSymbol('proto.ocap.StateContext', null, root);
55
+ goog.exportSymbol('proto.ocap.TokenInput', null, root);
56
+ goog.exportSymbol('proto.ocap.TokenSymbol', null, root);
57
+ goog.exportSymbol('proto.ocap.Transaction', null, root);
58
+ goog.exportSymbol('proto.ocap.TransactionConfig', null, root);
59
+ goog.exportSymbol('proto.ocap.TransactionInfo', null, root);
60
+ goog.exportSymbol('proto.ocap.TransactionInput', null, root);
61
+ goog.exportSymbol('proto.ocap.TransactionReceipt', null, root);
62
+ goog.exportSymbol('proto.ocap.TxFeeConfig', null, root);
63
+ goog.exportSymbol('proto.ocap.UnconfirmedTxs', null, root);
64
+ goog.exportSymbol('proto.ocap.UpgradeInfo', null, root);
65
+ goog.exportSymbol('proto.ocap.UpgradeTask', null, root);
66
+ goog.exportSymbol('proto.ocap.UpgradeTasks', null, root);
67
+ goog.exportSymbol('proto.ocap.Validator', null, root);
68
+ goog.exportSymbol('proto.ocap.ValidatorInfo', null, root);
69
+ goog.exportSymbol('proto.ocap.ValidatorsInfo', null, root);
70
+ goog.exportSymbol('proto.ocap.VariableInput', null, root);
71
+ goog.exportSymbol('proto.ocap.WalletInfo', null, root);
72
+ goog.exportSymbol('proto.ocap.WalletType', null, root);
73
+ goog.exportSymbol('proto.ocap.WithdrawItem', null, root);
73
74
  /**
74
75
  * Generated by JsPbCodeGenerator.
75
76
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1057,6 +1058,27 @@ if (goog.DEBUG && !COMPILED) {
1057
1058
  */
1058
1059
  proto.ocap.RevokedStake.displayName = 'proto.ocap.RevokedStake';
1059
1060
  }
1061
+ /**
1062
+ * Generated by JsPbCodeGenerator.
1063
+ * @param {Array=} opt_data Optional initial data array, typically from a
1064
+ * server response, or constructed directly in Javascript. The array is used
1065
+ * in place and becomes part of the constructed object. It is not cloned.
1066
+ * If no data is provided, the constructed object will be empty, but still
1067
+ * valid.
1068
+ * @extends {jspb.Message}
1069
+ * @constructor
1070
+ */
1071
+ proto.ocap.ForgeStats = function(opt_data) {
1072
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ocap.ForgeStats.repeatedFields_, null);
1073
+ };
1074
+ goog.inherits(proto.ocap.ForgeStats, jspb.Message);
1075
+ if (goog.DEBUG && !COMPILED) {
1076
+ /**
1077
+ * @public
1078
+ * @override
1079
+ */
1080
+ proto.ocap.ForgeStats.displayName = 'proto.ocap.ForgeStats';
1081
+ }
1060
1082
 
1061
1083
 
1062
1084
 
@@ -14685,4 +14707,997 @@ proto.ocap.RevokedStake.prototype.clearAssetsList = function() {
14685
14707
  };
14686
14708
 
14687
14709
 
14710
+
14711
+ /**
14712
+ * List of repeated fields within this message type.
14713
+ * @private {!Array<number>}
14714
+ * @const
14715
+ */
14716
+ proto.ocap.ForgeStats.repeatedFields_ = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16];
14717
+
14718
+
14719
+
14720
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14721
+ /**
14722
+ * Creates an object representation of this proto.
14723
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14724
+ * Optional fields that are not set will be set to undefined.
14725
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14726
+ * For the list of reserved names please see:
14727
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14728
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14729
+ * JSPB instance for transitional soy proto support:
14730
+ * http://goto/soy-param-migration
14731
+ * @return {!Object}
14732
+ */
14733
+ proto.ocap.ForgeStats.prototype.toObject = function(opt_includeInstance) {
14734
+ return proto.ocap.ForgeStats.toObject(opt_includeInstance, this);
14735
+ };
14736
+
14737
+
14738
+ /**
14739
+ * Static version of the {@see toObject} method.
14740
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14741
+ * the JSPB instance for transitional soy proto support:
14742
+ * http://goto/soy-param-migration
14743
+ * @param {!proto.ocap.ForgeStats} msg The msg instance to transform.
14744
+ * @return {!Object}
14745
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14746
+ */
14747
+ proto.ocap.ForgeStats.toObject = function(includeInstance, msg) {
14748
+ var f, obj = {
14749
+ numBlocksList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
14750
+ numTxsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
14751
+ numStakesList: jspb.Message.toObjectList(msg.getNumStakesList(),
14752
+ proto.ocap.BigUint.toObject, includeInstance),
14753
+ numValidatorsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
14754
+ numAccountMigrateTxsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
14755
+ numCreateAssetTxsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
14756
+ numConsensusUpgradeTxsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
14757
+ numDeclareTxsList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
14758
+ numDeclareFileTxsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
14759
+ numExchangeTxsList: (f = jspb.Message.getRepeatedField(msg, 10)) == null ? undefined : f,
14760
+ numStakeTxsList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f,
14761
+ numSysUpgradeTxsList: (f = jspb.Message.getRepeatedField(msg, 12)) == null ? undefined : f,
14762
+ numTransferTxsList: (f = jspb.Message.getRepeatedField(msg, 13)) == null ? undefined : f,
14763
+ numUpdateAssetTxsList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
14764
+ numConsumeAssetTxsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f,
14765
+ tpsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f,
14766
+ maxTps: jspb.Message.getFieldWithDefault(msg, 17, 0),
14767
+ avgTps: jspb.Message.getFieldWithDefault(msg, 18, 0),
14768
+ avgBlockTime: jspb.Message.getFloatingPointFieldWithDefault(msg, 19, 0.0)
14769
+ };
14770
+
14771
+ if (includeInstance) {
14772
+ obj.$jspbMessageInstance = msg;
14773
+ }
14774
+ return obj;
14775
+ };
14776
+ }
14777
+
14778
+
14779
+ /**
14780
+ * Deserializes binary data (in protobuf wire format).
14781
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
14782
+ * @return {!proto.ocap.ForgeStats}
14783
+ */
14784
+ proto.ocap.ForgeStats.deserializeBinary = function(bytes) {
14785
+ var reader = new jspb.BinaryReader(bytes);
14786
+ var msg = new proto.ocap.ForgeStats;
14787
+ return proto.ocap.ForgeStats.deserializeBinaryFromReader(msg, reader);
14788
+ };
14789
+
14790
+
14791
+ /**
14792
+ * Deserializes binary data (in protobuf wire format) from the
14793
+ * given reader into the given message object.
14794
+ * @param {!proto.ocap.ForgeStats} msg The message object to deserialize into.
14795
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14796
+ * @return {!proto.ocap.ForgeStats}
14797
+ */
14798
+ proto.ocap.ForgeStats.deserializeBinaryFromReader = function(msg, reader) {
14799
+ while (reader.nextField()) {
14800
+ if (reader.isEndGroup()) {
14801
+ break;
14802
+ }
14803
+ var field = reader.getFieldNumber();
14804
+ switch (field) {
14805
+ case 1:
14806
+ var value = /** @type {string} */ (reader.readString());
14807
+ msg.addNumBlocks(value);
14808
+ break;
14809
+ case 2:
14810
+ var value = /** @type {string} */ (reader.readString());
14811
+ msg.addNumTxs(value);
14812
+ break;
14813
+ case 3:
14814
+ var value = new proto.ocap.BigUint;
14815
+ reader.readMessage(value,proto.ocap.BigUint.deserializeBinaryFromReader);
14816
+ msg.addNumStakes(value);
14817
+ break;
14818
+ case 4:
14819
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
14820
+ for (var i = 0; i < values.length; i++) {
14821
+ msg.addNumValidators(values[i]);
14822
+ }
14823
+ break;
14824
+ case 5:
14825
+ var value = /** @type {string} */ (reader.readString());
14826
+ msg.addNumAccountMigrateTxs(value);
14827
+ break;
14828
+ case 6:
14829
+ var value = /** @type {string} */ (reader.readString());
14830
+ msg.addNumCreateAssetTxs(value);
14831
+ break;
14832
+ case 7:
14833
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
14834
+ for (var i = 0; i < values.length; i++) {
14835
+ msg.addNumConsensusUpgradeTxs(values[i]);
14836
+ }
14837
+ break;
14838
+ case 8:
14839
+ var value = /** @type {string} */ (reader.readString());
14840
+ msg.addNumDeclareTxs(value);
14841
+ break;
14842
+ case 9:
14843
+ var value = /** @type {string} */ (reader.readString());
14844
+ msg.addNumDeclareFileTxs(value);
14845
+ break;
14846
+ case 10:
14847
+ var value = /** @type {string} */ (reader.readString());
14848
+ msg.addNumExchangeTxs(value);
14849
+ break;
14850
+ case 11:
14851
+ var value = /** @type {string} */ (reader.readString());
14852
+ msg.addNumStakeTxs(value);
14853
+ break;
14854
+ case 12:
14855
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
14856
+ for (var i = 0; i < values.length; i++) {
14857
+ msg.addNumSysUpgradeTxs(values[i]);
14858
+ }
14859
+ break;
14860
+ case 13:
14861
+ var value = /** @type {string} */ (reader.readString());
14862
+ msg.addNumTransferTxs(value);
14863
+ break;
14864
+ case 14:
14865
+ var value = /** @type {string} */ (reader.readString());
14866
+ msg.addNumUpdateAssetTxs(value);
14867
+ break;
14868
+ case 15:
14869
+ var value = /** @type {string} */ (reader.readString());
14870
+ msg.addNumConsumeAssetTxs(value);
14871
+ break;
14872
+ case 16:
14873
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedUint32() : [reader.readUint32()]);
14874
+ for (var i = 0; i < values.length; i++) {
14875
+ msg.addTps(values[i]);
14876
+ }
14877
+ break;
14878
+ case 17:
14879
+ var value = /** @type {number} */ (reader.readUint32());
14880
+ msg.setMaxTps(value);
14881
+ break;
14882
+ case 18:
14883
+ var value = /** @type {number} */ (reader.readUint32());
14884
+ msg.setAvgTps(value);
14885
+ break;
14886
+ case 19:
14887
+ var value = /** @type {number} */ (reader.readFloat());
14888
+ msg.setAvgBlockTime(value);
14889
+ break;
14890
+ default:
14891
+ reader.skipField();
14892
+ break;
14893
+ }
14894
+ }
14895
+ return msg;
14896
+ };
14897
+
14898
+
14899
+ /**
14900
+ * Serializes the message to binary data (in protobuf wire format).
14901
+ * @return {!Uint8Array}
14902
+ */
14903
+ proto.ocap.ForgeStats.prototype.serializeBinary = function() {
14904
+ var writer = new jspb.BinaryWriter();
14905
+ proto.ocap.ForgeStats.serializeBinaryToWriter(this, writer);
14906
+ return writer.getResultBuffer();
14907
+ };
14908
+
14909
+
14910
+ /**
14911
+ * Serializes the given message to binary data (in protobuf wire
14912
+ * format), writing to the given BinaryWriter.
14913
+ * @param {!proto.ocap.ForgeStats} message
14914
+ * @param {!jspb.BinaryWriter} writer
14915
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14916
+ */
14917
+ proto.ocap.ForgeStats.serializeBinaryToWriter = function(message, writer) {
14918
+ var f = undefined;
14919
+ f = message.getNumBlocksList();
14920
+ if (f.length > 0) {
14921
+ writer.writeRepeatedString(
14922
+ 1,
14923
+ f
14924
+ );
14925
+ }
14926
+ f = message.getNumTxsList();
14927
+ if (f.length > 0) {
14928
+ writer.writeRepeatedString(
14929
+ 2,
14930
+ f
14931
+ );
14932
+ }
14933
+ f = message.getNumStakesList();
14934
+ if (f.length > 0) {
14935
+ writer.writeRepeatedMessage(
14936
+ 3,
14937
+ f,
14938
+ proto.ocap.BigUint.serializeBinaryToWriter
14939
+ );
14940
+ }
14941
+ f = message.getNumValidatorsList();
14942
+ if (f.length > 0) {
14943
+ writer.writePackedUint32(
14944
+ 4,
14945
+ f
14946
+ );
14947
+ }
14948
+ f = message.getNumAccountMigrateTxsList();
14949
+ if (f.length > 0) {
14950
+ writer.writeRepeatedString(
14951
+ 5,
14952
+ f
14953
+ );
14954
+ }
14955
+ f = message.getNumCreateAssetTxsList();
14956
+ if (f.length > 0) {
14957
+ writer.writeRepeatedString(
14958
+ 6,
14959
+ f
14960
+ );
14961
+ }
14962
+ f = message.getNumConsensusUpgradeTxsList();
14963
+ if (f.length > 0) {
14964
+ writer.writePackedUint32(
14965
+ 7,
14966
+ f
14967
+ );
14968
+ }
14969
+ f = message.getNumDeclareTxsList();
14970
+ if (f.length > 0) {
14971
+ writer.writeRepeatedString(
14972
+ 8,
14973
+ f
14974
+ );
14975
+ }
14976
+ f = message.getNumDeclareFileTxsList();
14977
+ if (f.length > 0) {
14978
+ writer.writeRepeatedString(
14979
+ 9,
14980
+ f
14981
+ );
14982
+ }
14983
+ f = message.getNumExchangeTxsList();
14984
+ if (f.length > 0) {
14985
+ writer.writeRepeatedString(
14986
+ 10,
14987
+ f
14988
+ );
14989
+ }
14990
+ f = message.getNumStakeTxsList();
14991
+ if (f.length > 0) {
14992
+ writer.writeRepeatedString(
14993
+ 11,
14994
+ f
14995
+ );
14996
+ }
14997
+ f = message.getNumSysUpgradeTxsList();
14998
+ if (f.length > 0) {
14999
+ writer.writePackedUint32(
15000
+ 12,
15001
+ f
15002
+ );
15003
+ }
15004
+ f = message.getNumTransferTxsList();
15005
+ if (f.length > 0) {
15006
+ writer.writeRepeatedString(
15007
+ 13,
15008
+ f
15009
+ );
15010
+ }
15011
+ f = message.getNumUpdateAssetTxsList();
15012
+ if (f.length > 0) {
15013
+ writer.writeRepeatedString(
15014
+ 14,
15015
+ f
15016
+ );
15017
+ }
15018
+ f = message.getNumConsumeAssetTxsList();
15019
+ if (f.length > 0) {
15020
+ writer.writeRepeatedString(
15021
+ 15,
15022
+ f
15023
+ );
15024
+ }
15025
+ f = message.getTpsList();
15026
+ if (f.length > 0) {
15027
+ writer.writePackedUint32(
15028
+ 16,
15029
+ f
15030
+ );
15031
+ }
15032
+ f = message.getMaxTps();
15033
+ if (f !== 0) {
15034
+ writer.writeUint32(
15035
+ 17,
15036
+ f
15037
+ );
15038
+ }
15039
+ f = message.getAvgTps();
15040
+ if (f !== 0) {
15041
+ writer.writeUint32(
15042
+ 18,
15043
+ f
15044
+ );
15045
+ }
15046
+ f = message.getAvgBlockTime();
15047
+ if (f !== 0.0) {
15048
+ writer.writeFloat(
15049
+ 19,
15050
+ f
15051
+ );
15052
+ }
15053
+ };
15054
+
15055
+
15056
+ /**
15057
+ * repeated string num_blocks = 1;
15058
+ * @return {!Array<string>}
15059
+ */
15060
+ proto.ocap.ForgeStats.prototype.getNumBlocksList = function() {
15061
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
15062
+ };
15063
+
15064
+
15065
+ /**
15066
+ * @param {!Array<string>} value
15067
+ * @return {!proto.ocap.ForgeStats} returns this
15068
+ */
15069
+ proto.ocap.ForgeStats.prototype.setNumBlocksList = function(value) {
15070
+ return jspb.Message.setField(this, 1, value || []);
15071
+ };
15072
+
15073
+
15074
+ /**
15075
+ * @param {string} value
15076
+ * @param {number=} opt_index
15077
+ * @return {!proto.ocap.ForgeStats} returns this
15078
+ */
15079
+ proto.ocap.ForgeStats.prototype.addNumBlocks = function(value, opt_index) {
15080
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
15081
+ };
15082
+
15083
+
15084
+ /**
15085
+ * Clears the list making it empty but non-null.
15086
+ * @return {!proto.ocap.ForgeStats} returns this
15087
+ */
15088
+ proto.ocap.ForgeStats.prototype.clearNumBlocksList = function() {
15089
+ return this.setNumBlocksList([]);
15090
+ };
15091
+
15092
+
15093
+ /**
15094
+ * repeated string num_txs = 2;
15095
+ * @return {!Array<string>}
15096
+ */
15097
+ proto.ocap.ForgeStats.prototype.getNumTxsList = function() {
15098
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
15099
+ };
15100
+
15101
+
15102
+ /**
15103
+ * @param {!Array<string>} value
15104
+ * @return {!proto.ocap.ForgeStats} returns this
15105
+ */
15106
+ proto.ocap.ForgeStats.prototype.setNumTxsList = function(value) {
15107
+ return jspb.Message.setField(this, 2, value || []);
15108
+ };
15109
+
15110
+
15111
+ /**
15112
+ * @param {string} value
15113
+ * @param {number=} opt_index
15114
+ * @return {!proto.ocap.ForgeStats} returns this
15115
+ */
15116
+ proto.ocap.ForgeStats.prototype.addNumTxs = function(value, opt_index) {
15117
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
15118
+ };
15119
+
15120
+
15121
+ /**
15122
+ * Clears the list making it empty but non-null.
15123
+ * @return {!proto.ocap.ForgeStats} returns this
15124
+ */
15125
+ proto.ocap.ForgeStats.prototype.clearNumTxsList = function() {
15126
+ return this.setNumTxsList([]);
15127
+ };
15128
+
15129
+
15130
+ /**
15131
+ * repeated BigUint num_stakes = 3;
15132
+ * @return {!Array<!proto.ocap.BigUint>}
15133
+ */
15134
+ proto.ocap.ForgeStats.prototype.getNumStakesList = function() {
15135
+ return /** @type{!Array<!proto.ocap.BigUint>} */ (
15136
+ jspb.Message.getRepeatedWrapperField(this, proto.ocap.BigUint, 3));
15137
+ };
15138
+
15139
+
15140
+ /**
15141
+ * @param {!Array<!proto.ocap.BigUint>} value
15142
+ * @return {!proto.ocap.ForgeStats} returns this
15143
+ */
15144
+ proto.ocap.ForgeStats.prototype.setNumStakesList = function(value) {
15145
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
15146
+ };
15147
+
15148
+
15149
+ /**
15150
+ * @param {!proto.ocap.BigUint=} opt_value
15151
+ * @param {number=} opt_index
15152
+ * @return {!proto.ocap.BigUint}
15153
+ */
15154
+ proto.ocap.ForgeStats.prototype.addNumStakes = function(opt_value, opt_index) {
15155
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.ocap.BigUint, opt_index);
15156
+ };
15157
+
15158
+
15159
+ /**
15160
+ * Clears the list making it empty but non-null.
15161
+ * @return {!proto.ocap.ForgeStats} returns this
15162
+ */
15163
+ proto.ocap.ForgeStats.prototype.clearNumStakesList = function() {
15164
+ return this.setNumStakesList([]);
15165
+ };
15166
+
15167
+
15168
+ /**
15169
+ * repeated uint32 num_validators = 4;
15170
+ * @return {!Array<number>}
15171
+ */
15172
+ proto.ocap.ForgeStats.prototype.getNumValidatorsList = function() {
15173
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 4));
15174
+ };
15175
+
15176
+
15177
+ /**
15178
+ * @param {!Array<number>} value
15179
+ * @return {!proto.ocap.ForgeStats} returns this
15180
+ */
15181
+ proto.ocap.ForgeStats.prototype.setNumValidatorsList = function(value) {
15182
+ return jspb.Message.setField(this, 4, value || []);
15183
+ };
15184
+
15185
+
15186
+ /**
15187
+ * @param {number} value
15188
+ * @param {number=} opt_index
15189
+ * @return {!proto.ocap.ForgeStats} returns this
15190
+ */
15191
+ proto.ocap.ForgeStats.prototype.addNumValidators = function(value, opt_index) {
15192
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
15193
+ };
15194
+
15195
+
15196
+ /**
15197
+ * Clears the list making it empty but non-null.
15198
+ * @return {!proto.ocap.ForgeStats} returns this
15199
+ */
15200
+ proto.ocap.ForgeStats.prototype.clearNumValidatorsList = function() {
15201
+ return this.setNumValidatorsList([]);
15202
+ };
15203
+
15204
+
15205
+ /**
15206
+ * repeated string num_account_migrate_txs = 5;
15207
+ * @return {!Array<string>}
15208
+ */
15209
+ proto.ocap.ForgeStats.prototype.getNumAccountMigrateTxsList = function() {
15210
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
15211
+ };
15212
+
15213
+
15214
+ /**
15215
+ * @param {!Array<string>} value
15216
+ * @return {!proto.ocap.ForgeStats} returns this
15217
+ */
15218
+ proto.ocap.ForgeStats.prototype.setNumAccountMigrateTxsList = function(value) {
15219
+ return jspb.Message.setField(this, 5, value || []);
15220
+ };
15221
+
15222
+
15223
+ /**
15224
+ * @param {string} value
15225
+ * @param {number=} opt_index
15226
+ * @return {!proto.ocap.ForgeStats} returns this
15227
+ */
15228
+ proto.ocap.ForgeStats.prototype.addNumAccountMigrateTxs = function(value, opt_index) {
15229
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
15230
+ };
15231
+
15232
+
15233
+ /**
15234
+ * Clears the list making it empty but non-null.
15235
+ * @return {!proto.ocap.ForgeStats} returns this
15236
+ */
15237
+ proto.ocap.ForgeStats.prototype.clearNumAccountMigrateTxsList = function() {
15238
+ return this.setNumAccountMigrateTxsList([]);
15239
+ };
15240
+
15241
+
15242
+ /**
15243
+ * repeated string num_create_asset_txs = 6;
15244
+ * @return {!Array<string>}
15245
+ */
15246
+ proto.ocap.ForgeStats.prototype.getNumCreateAssetTxsList = function() {
15247
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
15248
+ };
15249
+
15250
+
15251
+ /**
15252
+ * @param {!Array<string>} value
15253
+ * @return {!proto.ocap.ForgeStats} returns this
15254
+ */
15255
+ proto.ocap.ForgeStats.prototype.setNumCreateAssetTxsList = function(value) {
15256
+ return jspb.Message.setField(this, 6, value || []);
15257
+ };
15258
+
15259
+
15260
+ /**
15261
+ * @param {string} value
15262
+ * @param {number=} opt_index
15263
+ * @return {!proto.ocap.ForgeStats} returns this
15264
+ */
15265
+ proto.ocap.ForgeStats.prototype.addNumCreateAssetTxs = function(value, opt_index) {
15266
+ return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
15267
+ };
15268
+
15269
+
15270
+ /**
15271
+ * Clears the list making it empty but non-null.
15272
+ * @return {!proto.ocap.ForgeStats} returns this
15273
+ */
15274
+ proto.ocap.ForgeStats.prototype.clearNumCreateAssetTxsList = function() {
15275
+ return this.setNumCreateAssetTxsList([]);
15276
+ };
15277
+
15278
+
15279
+ /**
15280
+ * repeated uint32 num_consensus_upgrade_txs = 7;
15281
+ * @return {!Array<number>}
15282
+ */
15283
+ proto.ocap.ForgeStats.prototype.getNumConsensusUpgradeTxsList = function() {
15284
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 7));
15285
+ };
15286
+
15287
+
15288
+ /**
15289
+ * @param {!Array<number>} value
15290
+ * @return {!proto.ocap.ForgeStats} returns this
15291
+ */
15292
+ proto.ocap.ForgeStats.prototype.setNumConsensusUpgradeTxsList = function(value) {
15293
+ return jspb.Message.setField(this, 7, value || []);
15294
+ };
15295
+
15296
+
15297
+ /**
15298
+ * @param {number} value
15299
+ * @param {number=} opt_index
15300
+ * @return {!proto.ocap.ForgeStats} returns this
15301
+ */
15302
+ proto.ocap.ForgeStats.prototype.addNumConsensusUpgradeTxs = function(value, opt_index) {
15303
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
15304
+ };
15305
+
15306
+
15307
+ /**
15308
+ * Clears the list making it empty but non-null.
15309
+ * @return {!proto.ocap.ForgeStats} returns this
15310
+ */
15311
+ proto.ocap.ForgeStats.prototype.clearNumConsensusUpgradeTxsList = function() {
15312
+ return this.setNumConsensusUpgradeTxsList([]);
15313
+ };
15314
+
15315
+
15316
+ /**
15317
+ * repeated string num_declare_txs = 8;
15318
+ * @return {!Array<string>}
15319
+ */
15320
+ proto.ocap.ForgeStats.prototype.getNumDeclareTxsList = function() {
15321
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
15322
+ };
15323
+
15324
+
15325
+ /**
15326
+ * @param {!Array<string>} value
15327
+ * @return {!proto.ocap.ForgeStats} returns this
15328
+ */
15329
+ proto.ocap.ForgeStats.prototype.setNumDeclareTxsList = function(value) {
15330
+ return jspb.Message.setField(this, 8, value || []);
15331
+ };
15332
+
15333
+
15334
+ /**
15335
+ * @param {string} value
15336
+ * @param {number=} opt_index
15337
+ * @return {!proto.ocap.ForgeStats} returns this
15338
+ */
15339
+ proto.ocap.ForgeStats.prototype.addNumDeclareTxs = function(value, opt_index) {
15340
+ return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
15341
+ };
15342
+
15343
+
15344
+ /**
15345
+ * Clears the list making it empty but non-null.
15346
+ * @return {!proto.ocap.ForgeStats} returns this
15347
+ */
15348
+ proto.ocap.ForgeStats.prototype.clearNumDeclareTxsList = function() {
15349
+ return this.setNumDeclareTxsList([]);
15350
+ };
15351
+
15352
+
15353
+ /**
15354
+ * repeated string num_declare_file_txs = 9;
15355
+ * @return {!Array<string>}
15356
+ */
15357
+ proto.ocap.ForgeStats.prototype.getNumDeclareFileTxsList = function() {
15358
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 9));
15359
+ };
15360
+
15361
+
15362
+ /**
15363
+ * @param {!Array<string>} value
15364
+ * @return {!proto.ocap.ForgeStats} returns this
15365
+ */
15366
+ proto.ocap.ForgeStats.prototype.setNumDeclareFileTxsList = function(value) {
15367
+ return jspb.Message.setField(this, 9, value || []);
15368
+ };
15369
+
15370
+
15371
+ /**
15372
+ * @param {string} value
15373
+ * @param {number=} opt_index
15374
+ * @return {!proto.ocap.ForgeStats} returns this
15375
+ */
15376
+ proto.ocap.ForgeStats.prototype.addNumDeclareFileTxs = function(value, opt_index) {
15377
+ return jspb.Message.addToRepeatedField(this, 9, value, opt_index);
15378
+ };
15379
+
15380
+
15381
+ /**
15382
+ * Clears the list making it empty but non-null.
15383
+ * @return {!proto.ocap.ForgeStats} returns this
15384
+ */
15385
+ proto.ocap.ForgeStats.prototype.clearNumDeclareFileTxsList = function() {
15386
+ return this.setNumDeclareFileTxsList([]);
15387
+ };
15388
+
15389
+
15390
+ /**
15391
+ * repeated string num_exchange_txs = 10;
15392
+ * @return {!Array<string>}
15393
+ */
15394
+ proto.ocap.ForgeStats.prototype.getNumExchangeTxsList = function() {
15395
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 10));
15396
+ };
15397
+
15398
+
15399
+ /**
15400
+ * @param {!Array<string>} value
15401
+ * @return {!proto.ocap.ForgeStats} returns this
15402
+ */
15403
+ proto.ocap.ForgeStats.prototype.setNumExchangeTxsList = function(value) {
15404
+ return jspb.Message.setField(this, 10, value || []);
15405
+ };
15406
+
15407
+
15408
+ /**
15409
+ * @param {string} value
15410
+ * @param {number=} opt_index
15411
+ * @return {!proto.ocap.ForgeStats} returns this
15412
+ */
15413
+ proto.ocap.ForgeStats.prototype.addNumExchangeTxs = function(value, opt_index) {
15414
+ return jspb.Message.addToRepeatedField(this, 10, value, opt_index);
15415
+ };
15416
+
15417
+
15418
+ /**
15419
+ * Clears the list making it empty but non-null.
15420
+ * @return {!proto.ocap.ForgeStats} returns this
15421
+ */
15422
+ proto.ocap.ForgeStats.prototype.clearNumExchangeTxsList = function() {
15423
+ return this.setNumExchangeTxsList([]);
15424
+ };
15425
+
15426
+
15427
+ /**
15428
+ * repeated string num_stake_txs = 11;
15429
+ * @return {!Array<string>}
15430
+ */
15431
+ proto.ocap.ForgeStats.prototype.getNumStakeTxsList = function() {
15432
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 11));
15433
+ };
15434
+
15435
+
15436
+ /**
15437
+ * @param {!Array<string>} value
15438
+ * @return {!proto.ocap.ForgeStats} returns this
15439
+ */
15440
+ proto.ocap.ForgeStats.prototype.setNumStakeTxsList = function(value) {
15441
+ return jspb.Message.setField(this, 11, value || []);
15442
+ };
15443
+
15444
+
15445
+ /**
15446
+ * @param {string} value
15447
+ * @param {number=} opt_index
15448
+ * @return {!proto.ocap.ForgeStats} returns this
15449
+ */
15450
+ proto.ocap.ForgeStats.prototype.addNumStakeTxs = function(value, opt_index) {
15451
+ return jspb.Message.addToRepeatedField(this, 11, value, opt_index);
15452
+ };
15453
+
15454
+
15455
+ /**
15456
+ * Clears the list making it empty but non-null.
15457
+ * @return {!proto.ocap.ForgeStats} returns this
15458
+ */
15459
+ proto.ocap.ForgeStats.prototype.clearNumStakeTxsList = function() {
15460
+ return this.setNumStakeTxsList([]);
15461
+ };
15462
+
15463
+
15464
+ /**
15465
+ * repeated uint32 num_sys_upgrade_txs = 12;
15466
+ * @return {!Array<number>}
15467
+ */
15468
+ proto.ocap.ForgeStats.prototype.getNumSysUpgradeTxsList = function() {
15469
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 12));
15470
+ };
15471
+
15472
+
15473
+ /**
15474
+ * @param {!Array<number>} value
15475
+ * @return {!proto.ocap.ForgeStats} returns this
15476
+ */
15477
+ proto.ocap.ForgeStats.prototype.setNumSysUpgradeTxsList = function(value) {
15478
+ return jspb.Message.setField(this, 12, value || []);
15479
+ };
15480
+
15481
+
15482
+ /**
15483
+ * @param {number} value
15484
+ * @param {number=} opt_index
15485
+ * @return {!proto.ocap.ForgeStats} returns this
15486
+ */
15487
+ proto.ocap.ForgeStats.prototype.addNumSysUpgradeTxs = function(value, opt_index) {
15488
+ return jspb.Message.addToRepeatedField(this, 12, value, opt_index);
15489
+ };
15490
+
15491
+
15492
+ /**
15493
+ * Clears the list making it empty but non-null.
15494
+ * @return {!proto.ocap.ForgeStats} returns this
15495
+ */
15496
+ proto.ocap.ForgeStats.prototype.clearNumSysUpgradeTxsList = function() {
15497
+ return this.setNumSysUpgradeTxsList([]);
15498
+ };
15499
+
15500
+
15501
+ /**
15502
+ * repeated string num_transfer_txs = 13;
15503
+ * @return {!Array<string>}
15504
+ */
15505
+ proto.ocap.ForgeStats.prototype.getNumTransferTxsList = function() {
15506
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 13));
15507
+ };
15508
+
15509
+
15510
+ /**
15511
+ * @param {!Array<string>} value
15512
+ * @return {!proto.ocap.ForgeStats} returns this
15513
+ */
15514
+ proto.ocap.ForgeStats.prototype.setNumTransferTxsList = function(value) {
15515
+ return jspb.Message.setField(this, 13, value || []);
15516
+ };
15517
+
15518
+
15519
+ /**
15520
+ * @param {string} value
15521
+ * @param {number=} opt_index
15522
+ * @return {!proto.ocap.ForgeStats} returns this
15523
+ */
15524
+ proto.ocap.ForgeStats.prototype.addNumTransferTxs = function(value, opt_index) {
15525
+ return jspb.Message.addToRepeatedField(this, 13, value, opt_index);
15526
+ };
15527
+
15528
+
15529
+ /**
15530
+ * Clears the list making it empty but non-null.
15531
+ * @return {!proto.ocap.ForgeStats} returns this
15532
+ */
15533
+ proto.ocap.ForgeStats.prototype.clearNumTransferTxsList = function() {
15534
+ return this.setNumTransferTxsList([]);
15535
+ };
15536
+
15537
+
15538
+ /**
15539
+ * repeated string num_update_asset_txs = 14;
15540
+ * @return {!Array<string>}
15541
+ */
15542
+ proto.ocap.ForgeStats.prototype.getNumUpdateAssetTxsList = function() {
15543
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 14));
15544
+ };
15545
+
15546
+
15547
+ /**
15548
+ * @param {!Array<string>} value
15549
+ * @return {!proto.ocap.ForgeStats} returns this
15550
+ */
15551
+ proto.ocap.ForgeStats.prototype.setNumUpdateAssetTxsList = function(value) {
15552
+ return jspb.Message.setField(this, 14, value || []);
15553
+ };
15554
+
15555
+
15556
+ /**
15557
+ * @param {string} value
15558
+ * @param {number=} opt_index
15559
+ * @return {!proto.ocap.ForgeStats} returns this
15560
+ */
15561
+ proto.ocap.ForgeStats.prototype.addNumUpdateAssetTxs = function(value, opt_index) {
15562
+ return jspb.Message.addToRepeatedField(this, 14, value, opt_index);
15563
+ };
15564
+
15565
+
15566
+ /**
15567
+ * Clears the list making it empty but non-null.
15568
+ * @return {!proto.ocap.ForgeStats} returns this
15569
+ */
15570
+ proto.ocap.ForgeStats.prototype.clearNumUpdateAssetTxsList = function() {
15571
+ return this.setNumUpdateAssetTxsList([]);
15572
+ };
15573
+
15574
+
15575
+ /**
15576
+ * repeated string num_consume_asset_txs = 15;
15577
+ * @return {!Array<string>}
15578
+ */
15579
+ proto.ocap.ForgeStats.prototype.getNumConsumeAssetTxsList = function() {
15580
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 15));
15581
+ };
15582
+
15583
+
15584
+ /**
15585
+ * @param {!Array<string>} value
15586
+ * @return {!proto.ocap.ForgeStats} returns this
15587
+ */
15588
+ proto.ocap.ForgeStats.prototype.setNumConsumeAssetTxsList = function(value) {
15589
+ return jspb.Message.setField(this, 15, value || []);
15590
+ };
15591
+
15592
+
15593
+ /**
15594
+ * @param {string} value
15595
+ * @param {number=} opt_index
15596
+ * @return {!proto.ocap.ForgeStats} returns this
15597
+ */
15598
+ proto.ocap.ForgeStats.prototype.addNumConsumeAssetTxs = function(value, opt_index) {
15599
+ return jspb.Message.addToRepeatedField(this, 15, value, opt_index);
15600
+ };
15601
+
15602
+
15603
+ /**
15604
+ * Clears the list making it empty but non-null.
15605
+ * @return {!proto.ocap.ForgeStats} returns this
15606
+ */
15607
+ proto.ocap.ForgeStats.prototype.clearNumConsumeAssetTxsList = function() {
15608
+ return this.setNumConsumeAssetTxsList([]);
15609
+ };
15610
+
15611
+
15612
+ /**
15613
+ * repeated uint32 tps = 16;
15614
+ * @return {!Array<number>}
15615
+ */
15616
+ proto.ocap.ForgeStats.prototype.getTpsList = function() {
15617
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 16));
15618
+ };
15619
+
15620
+
15621
+ /**
15622
+ * @param {!Array<number>} value
15623
+ * @return {!proto.ocap.ForgeStats} returns this
15624
+ */
15625
+ proto.ocap.ForgeStats.prototype.setTpsList = function(value) {
15626
+ return jspb.Message.setField(this, 16, value || []);
15627
+ };
15628
+
15629
+
15630
+ /**
15631
+ * @param {number} value
15632
+ * @param {number=} opt_index
15633
+ * @return {!proto.ocap.ForgeStats} returns this
15634
+ */
15635
+ proto.ocap.ForgeStats.prototype.addTps = function(value, opt_index) {
15636
+ return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
15637
+ };
15638
+
15639
+
15640
+ /**
15641
+ * Clears the list making it empty but non-null.
15642
+ * @return {!proto.ocap.ForgeStats} returns this
15643
+ */
15644
+ proto.ocap.ForgeStats.prototype.clearTpsList = function() {
15645
+ return this.setTpsList([]);
15646
+ };
15647
+
15648
+
15649
+ /**
15650
+ * optional uint32 max_tps = 17;
15651
+ * @return {number}
15652
+ */
15653
+ proto.ocap.ForgeStats.prototype.getMaxTps = function() {
15654
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
15655
+ };
15656
+
15657
+
15658
+ /**
15659
+ * @param {number} value
15660
+ * @return {!proto.ocap.ForgeStats} returns this
15661
+ */
15662
+ proto.ocap.ForgeStats.prototype.setMaxTps = function(value) {
15663
+ return jspb.Message.setProto3IntField(this, 17, value);
15664
+ };
15665
+
15666
+
15667
+ /**
15668
+ * optional uint32 avg_tps = 18;
15669
+ * @return {number}
15670
+ */
15671
+ proto.ocap.ForgeStats.prototype.getAvgTps = function() {
15672
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
15673
+ };
15674
+
15675
+
15676
+ /**
15677
+ * @param {number} value
15678
+ * @return {!proto.ocap.ForgeStats} returns this
15679
+ */
15680
+ proto.ocap.ForgeStats.prototype.setAvgTps = function(value) {
15681
+ return jspb.Message.setProto3IntField(this, 18, value);
15682
+ };
15683
+
15684
+
15685
+ /**
15686
+ * optional float avg_block_time = 19;
15687
+ * @return {number}
15688
+ */
15689
+ proto.ocap.ForgeStats.prototype.getAvgBlockTime = function() {
15690
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 19, 0.0));
15691
+ };
15692
+
15693
+
15694
+ /**
15695
+ * @param {number} value
15696
+ * @return {!proto.ocap.ForgeStats} returns this
15697
+ */
15698
+ proto.ocap.ForgeStats.prototype.setAvgBlockTime = function(value) {
15699
+ return jspb.Message.setProto3FloatField(this, 19, value);
15700
+ };
15701
+
15702
+
14688
15703
  goog.object.extend(exports, proto.ocap);