Skip to content

Commit

Permalink
mod
Browse files Browse the repository at this point in the history
  • Loading branch information
laocheng.cheng committed Apr 29, 2021
1 parent 5bf487a commit 5d22ab6
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 269 deletions.
76 changes: 53 additions & 23 deletions js/protos/node/node_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -5922,10 +5922,11 @@ proto.node.BtfsScanTab.toObject = function(includeInstance, msg) {
totalRank: jspb.Message.getFieldWithDefault(msg, 11, ""),
contractAllCount: jspb.Message.getFieldWithDefault(msg, 12, 0),
contractFailCount: jspb.Message.getFieldWithDefault(msg, 13, 0),
storageContractUsed: jspb.Message.getFloatingPointFieldWithDefault(msg, 14, 0.0),
storageContractLeft: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
superOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 16, 0),
newOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 17, 0)
contractAllStorage: jspb.Message.getFloatingPointFieldWithDefault(msg, 14, 0.0),
contractFailStorage: jspb.Message.getFloatingPointFieldWithDefault(msg, 15, 0.0),
storageLeftWhenContract: jspb.Message.getFloatingPointFieldWithDefault(msg, 16, 0.0),
superOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 17, 0),
newOnlineMinersCount: jspb.Message.getFieldWithDefault(msg, 18, 0)
};

if (includeInstance) {
Expand Down Expand Up @@ -6022,17 +6023,21 @@ proto.node.BtfsScanTab.deserializeBinaryFromReader = function(msg, reader) {
break;
case 14:
var value = /** @type {number} */ (reader.readDouble());
msg.setStorageContractUsed(value);
msg.setContractAllStorage(value);
break;
case 15:
var value = /** @type {number} */ (reader.readDouble());
msg.setStorageContractLeft(value);
msg.setContractFailStorage(value);
break;
case 16:
var value = /** @type {number} */ (reader.readDouble());
msg.setStorageLeftWhenContract(value);
break;
case 17:
var value = /** @type {number} */ (reader.readUint32());
msg.setSuperOnlineMinersCount(value);
break;
case 17:
case 18:
var value = /** @type {number} */ (reader.readUint32());
msg.setNewOnlineMinersCount(value);
break;
Expand Down Expand Up @@ -6152,31 +6157,38 @@ proto.node.BtfsScanTab.serializeBinaryToWriter = function(message, writer) {
f
);
}
f = message.getStorageContractUsed();
f = message.getContractAllStorage();
if (f !== 0.0) {
writer.writeDouble(
14,
f
);
}
f = message.getStorageContractLeft();
f = message.getContractFailStorage();
if (f !== 0.0) {
writer.writeDouble(
15,
f
);
}
f = message.getStorageLeftWhenContract();
if (f !== 0.0) {
writer.writeDouble(
16,
f
);
}
f = message.getSuperOnlineMinersCount();
if (f !== 0) {
writer.writeUint32(
16,
17,
f
);
}
f = message.getNewOnlineMinersCount();
if (f !== 0) {
writer.writeUint32(
17,
18,
f
);
}
Expand Down Expand Up @@ -6464,10 +6476,10 @@ proto.node.BtfsScanTab.prototype.setContractFailCount = function(value) {


/**
* optional double storage_contract_used = 14;
* optional double contract_all_storage = 14;
* @return {number}
*/
proto.node.BtfsScanTab.prototype.getStorageContractUsed = function() {
proto.node.BtfsScanTab.prototype.getContractAllStorage = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 14, 0.0));
};

Expand All @@ -6476,16 +6488,16 @@ proto.node.BtfsScanTab.prototype.getStorageContractUsed = function() {
* @param {number} value
* @return {!proto.node.BtfsScanTab} returns this
*/
proto.node.BtfsScanTab.prototype.setStorageContractUsed = function(value) {
proto.node.BtfsScanTab.prototype.setContractAllStorage = function(value) {
return jspb.Message.setProto3FloatField(this, 14, value);
};


/**
* optional double storage_contract_left = 15;
* optional double contract_fail_storage = 15;
* @return {number}
*/
proto.node.BtfsScanTab.prototype.getStorageContractLeft = function() {
proto.node.BtfsScanTab.prototype.getContractFailStorage = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 15, 0.0));
};

Expand All @@ -6494,17 +6506,35 @@ proto.node.BtfsScanTab.prototype.getStorageContractLeft = function() {
* @param {number} value
* @return {!proto.node.BtfsScanTab} returns this
*/
proto.node.BtfsScanTab.prototype.setStorageContractLeft = function(value) {
proto.node.BtfsScanTab.prototype.setContractFailStorage = function(value) {
return jspb.Message.setProto3FloatField(this, 15, value);
};


/**
* optional uint32 super_online_miners_count = 16;
* optional double storage_left_when_contract = 16;
* @return {number}
*/
proto.node.BtfsScanTab.prototype.getStorageLeftWhenContract = function() {
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 16, 0.0));
};


/**
* @param {number} value
* @return {!proto.node.BtfsScanTab} returns this
*/
proto.node.BtfsScanTab.prototype.setStorageLeftWhenContract = function(value) {
return jspb.Message.setProto3FloatField(this, 16, value);
};


/**
* optional uint32 super_online_miners_count = 17;
* @return {number}
*/
proto.node.BtfsScanTab.prototype.getSuperOnlineMinersCount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
};


Expand All @@ -6513,16 +6543,16 @@ proto.node.BtfsScanTab.prototype.getSuperOnlineMinersCount = function() {
* @return {!proto.node.BtfsScanTab} returns this
*/
proto.node.BtfsScanTab.prototype.setSuperOnlineMinersCount = function(value) {
return jspb.Message.setProto3IntField(this, 16, value);
return jspb.Message.setProto3IntField(this, 17, value);
};


/**
* optional uint32 new_online_miners_count = 17;
* optional uint32 new_online_miners_count = 18;
* @return {number}
*/
proto.node.BtfsScanTab.prototype.getNewOnlineMinersCount = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 18, 0));
};


Expand All @@ -6531,7 +6561,7 @@ proto.node.BtfsScanTab.prototype.getNewOnlineMinersCount = function() {
* @return {!proto.node.BtfsScanTab} returns this
*/
proto.node.BtfsScanTab.prototype.setNewOnlineMinersCount = function(value) {
return jspb.Message.setProto3IntField(this, 17, value);
return jspb.Message.setProto3IntField(this, 18, value);
};


Expand Down
Loading

0 comments on commit 5d22ab6

Please sign in to comment.