Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@arcblock/forge-proto

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcblock/forge-proto - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

2

lib/code_pb.js

@@ -43,2 +43,4 @@ /**

REVOKED_TX: 29,
UNSUPPORTED_STAKE: 30,
INSUFFICIENT_STAKE: 31,
INTERNAL: 500,

@@ -45,0 +47,0 @@ };

866

lib/event_pb.js

@@ -39,42 +39,40 @@ /**

if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.forge_abi.RequestSubscribe.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.RequestSubscribe.toObject(opt_includeInstance, this);
};
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.forge_abi.RequestSubscribe.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.RequestSubscribe.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.forge_abi.RequestSubscribe} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.RequestSubscribe.toObject = function(includeInstance, msg) {
var f,
obj = {
type: jspb.Message.getFieldWithDefault(msg, 1, 0),
filter: jspb.Message.getFieldWithDefault(msg, 2, ''),
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.forge_abi.RequestSubscribe} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.RequestSubscribe.toObject = function(includeInstance, msg) {
var f, obj = {
type: jspb.Message.getFieldWithDefault(msg, 1, 0),
filter: jspb.Message.getFieldWithDefault(msg, 2, "")
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**

@@ -87,7 +85,6 @@ * Deserializes binary data (in protobuf wire format).

var reader = new jspb.BinaryReader(bytes);
var msg = new proto.forge_abi.RequestSubscribe;
var msg = new proto.forge_abi.RequestSubscribe();
return proto.forge_abi.RequestSubscribe.deserializeBinaryFromReader(msg, reader);
};
/**

@@ -107,13 +104,13 @@ * Deserializes binary data (in protobuf wire format) from the

switch (field) {
case 1:
var value = /** @type {!proto.forge_abi.TopicType} */ (reader.readEnum());
msg.setType(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setFilter(value);
break;
default:
reader.skipField();
break;
case 1:
var value = /** @type {!proto.forge_abi.TopicType} */ (reader.readEnum());
msg.setType(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setFilter(value);
break;
default:
reader.skipField();
break;
}

@@ -124,3 +121,2 @@ }

/**

@@ -136,3 +132,2 @@ * Serializes the message to binary data (in protobuf wire format).

/**

@@ -149,17 +144,10 @@ * Serializes the given message to binary data (in protobuf wire

if (f !== 0.0) {
writer.writeEnum(
1,
f
);
writer.writeEnum(1, f);
}
f = message.getFilter();
if (f.length > 0) {
writer.writeString(
2,
f
);
writer.writeString(2, f);
}
};
/**

@@ -173,3 +161,2 @@ * optional TopicType type = 1;

/** @param {!proto.forge_abi.TopicType} value */

@@ -180,3 +167,2 @@ proto.forge_abi.RequestSubscribe.prototype.setType = function(value) {

/**

@@ -187,6 +173,5 @@ * optional string filter = 2;

proto.forge_abi.RequestSubscribe.prototype.getFilter = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ''));
};
/** @param {string} value */

@@ -197,4 +182,2 @@ proto.forge_abi.RequestSubscribe.prototype.setFilter = function(value) {

/**

@@ -211,3 +194,10 @@ * Generated by JsPbCodeGenerator.

proto.forge_abi.ResponseSubscribe = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.forge_abi.ResponseSubscribe.oneofGroups_);
jspb.Message.initialize(
this,
opt_data,
0,
-1,
null,
proto.forge_abi.ResponseSubscribe.oneofGroups_
);
};

@@ -226,3 +216,5 @@ goog.inherits(proto.forge_abi.ResponseSubscribe, jspb.Message);

*/
proto.forge_abi.ResponseSubscribe.oneofGroups_ = [[2,3,4,5,6,7,8,16,17,19,20,21,22,23,129,130,131,132]];
proto.forge_abi.ResponseSubscribe.oneofGroups_ = [
[2, 3, 4, 5, 6, 7, 8, 16, 17, 19, 20, 21, 22, 23, 129, 130, 131, 132],
];

@@ -251,3 +243,3 @@ /**

CHANNEL_STATE: 131,
FORGE_STATE: 132
FORGE_STATE: 132,
};

@@ -259,63 +251,69 @@

proto.forge_abi.ResponseSubscribe.prototype.getValueCase = function() {
return /** @type {proto.forge_abi.ResponseSubscribe.ValueCase} */(jspb.Message.computeOneofCase(this, proto.forge_abi.ResponseSubscribe.oneofGroups_[0]));
return /** @type {proto.forge_abi.ResponseSubscribe.ValueCase} */ (jspb.Message.computeOneofCase(
this,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0]
));
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.forge_abi.ResponseSubscribe.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.ResponseSubscribe.toObject(opt_includeInstance, this);
};
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.forge_abi.ResponseSubscribe.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.ResponseSubscribe.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.forge_abi.ResponseSubscribe} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.ResponseSubscribe.toObject = function(includeInstance, msg) {
var f,
obj = {
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
topic: jspb.Message.getFieldWithDefault(msg, 2, ''),
transfer: (f = msg.getTransfer()) && type_pb.Transaction.toObject(includeInstance, f),
accountMigrate:
(f = msg.getAccountMigrate()) && type_pb.Transaction.toObject(includeInstance, f),
confirm: (f = msg.getConfirm()) && type_pb.Transaction.toObject(includeInstance, f),
createAsset: (f = msg.getCreateAsset()) && type_pb.Transaction.toObject(includeInstance, f),
exchange: (f = msg.getExchange()) && type_pb.Transaction.toObject(includeInstance, f),
revoke: (f = msg.getRevoke()) && type_pb.Transaction.toObject(includeInstance, f),
beginBlock:
(f = msg.getBeginBlock()) && vendor_pb.RequestBeginBlock.toObject(includeInstance, f),
endBlock: (f = msg.getEndBlock()) && vendor_pb.RequestEndBlock.toObject(includeInstance, f),
declare: (f = msg.getDeclare()) && type_pb.Transaction.toObject(includeInstance, f),
accountUpgrade:
(f = msg.getAccountUpgrade()) && type_pb.Transaction.toObject(includeInstance, f),
consensusUpgrade:
(f = msg.getConsensusUpgrade()) && type_pb.Transaction.toObject(includeInstance, f),
declareFile: (f = msg.getDeclareFile()) && type_pb.Transaction.toObject(includeInstance, f),
sysUpgrade: (f = msg.getSysUpgrade()) && type_pb.Transaction.toObject(includeInstance, f),
accountState:
(f = msg.getAccountState()) && type_pb.Transaction.toObject(includeInstance, f),
assetState: (f = msg.getAssetState()) && type_pb.Transaction.toObject(includeInstance, f),
channelState:
(f = msg.getChannelState()) && type_pb.Transaction.toObject(includeInstance, f),
forgeState: (f = msg.getForgeState()) && type_pb.Transaction.toObject(includeInstance, f),
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.forge_abi.ResponseSubscribe} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.ResponseSubscribe.toObject = function(includeInstance, msg) {
var f, obj = {
code: jspb.Message.getFieldWithDefault(msg, 1, 0),
topic: jspb.Message.getFieldWithDefault(msg, 2, ""),
transfer: (f = msg.getTransfer()) && type_pb.Transaction.toObject(includeInstance, f),
accountMigrate: (f = msg.getAccountMigrate()) && type_pb.Transaction.toObject(includeInstance, f),
confirm: (f = msg.getConfirm()) && type_pb.Transaction.toObject(includeInstance, f),
createAsset: (f = msg.getCreateAsset()) && type_pb.Transaction.toObject(includeInstance, f),
exchange: (f = msg.getExchange()) && type_pb.Transaction.toObject(includeInstance, f),
revoke: (f = msg.getRevoke()) && type_pb.Transaction.toObject(includeInstance, f),
beginBlock: (f = msg.getBeginBlock()) && vendor_pb.RequestBeginBlock.toObject(includeInstance, f),
endBlock: (f = msg.getEndBlock()) && vendor_pb.RequestEndBlock.toObject(includeInstance, f),
declare: (f = msg.getDeclare()) && type_pb.Transaction.toObject(includeInstance, f),
accountUpgrade: (f = msg.getAccountUpgrade()) && type_pb.Transaction.toObject(includeInstance, f),
consensusUpgrade: (f = msg.getConsensusUpgrade()) && type_pb.Transaction.toObject(includeInstance, f),
declareFile: (f = msg.getDeclareFile()) && type_pb.Transaction.toObject(includeInstance, f),
sysUpgrade: (f = msg.getSysUpgrade()) && type_pb.Transaction.toObject(includeInstance, f),
accountState: (f = msg.getAccountState()) && type_pb.Transaction.toObject(includeInstance, f),
assetState: (f = msg.getAssetState()) && type_pb.Transaction.toObject(includeInstance, f),
channelState: (f = msg.getChannelState()) && type_pb.Transaction.toObject(includeInstance, f),
forgeState: (f = msg.getForgeState()) && type_pb.Transaction.toObject(includeInstance, f)
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**

@@ -328,7 +326,6 @@ * Deserializes binary data (in protobuf wire format).

var reader = new jspb.BinaryReader(bytes);
var msg = new proto.forge_abi.ResponseSubscribe;
var msg = new proto.forge_abi.ResponseSubscribe();
return proto.forge_abi.ResponseSubscribe.deserializeBinaryFromReader(msg, reader);
};
/**

@@ -348,98 +345,98 @@ * Deserializes binary data (in protobuf wire format) from the

switch (field) {
case 1:
var value = /** @type {!proto.forge_abi.StatusCode} */ (reader.readEnum());
msg.setCode(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setTopic(value);
break;
case 3:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setTransfer(value);
break;
case 4:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setAccountMigrate(value);
break;
case 5:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setConfirm(value);
break;
case 6:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setCreateAsset(value);
break;
case 7:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setExchange(value);
break;
case 8:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setRevoke(value);
break;
case 16:
var value = new vendor_pb.RequestBeginBlock;
reader.readMessage(value,vendor_pb.RequestBeginBlock.deserializeBinaryFromReader);
msg.setBeginBlock(value);
break;
case 17:
var value = new vendor_pb.RequestEndBlock;
reader.readMessage(value,vendor_pb.RequestEndBlock.deserializeBinaryFromReader);
msg.setEndBlock(value);
break;
case 19:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setDeclare(value);
break;
case 20:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setAccountUpgrade(value);
break;
case 21:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setConsensusUpgrade(value);
break;
case 22:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setDeclareFile(value);
break;
case 23:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setSysUpgrade(value);
break;
case 129:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setAccountState(value);
break;
case 130:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setAssetState(value);
break;
case 131:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setChannelState(value);
break;
case 132:
var value = new type_pb.Transaction;
reader.readMessage(value,type_pb.Transaction.deserializeBinaryFromReader);
msg.setForgeState(value);
break;
default:
reader.skipField();
break;
case 1:
var value = /** @type {!proto.forge_abi.StatusCode} */ (reader.readEnum());
msg.setCode(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setTopic(value);
break;
case 3:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setTransfer(value);
break;
case 4:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setAccountMigrate(value);
break;
case 5:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setConfirm(value);
break;
case 6:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setCreateAsset(value);
break;
case 7:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setExchange(value);
break;
case 8:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setRevoke(value);
break;
case 16:
var value = new vendor_pb.RequestBeginBlock();
reader.readMessage(value, vendor_pb.RequestBeginBlock.deserializeBinaryFromReader);
msg.setBeginBlock(value);
break;
case 17:
var value = new vendor_pb.RequestEndBlock();
reader.readMessage(value, vendor_pb.RequestEndBlock.deserializeBinaryFromReader);
msg.setEndBlock(value);
break;
case 19:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setDeclare(value);
break;
case 20:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setAccountUpgrade(value);
break;
case 21:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setConsensusUpgrade(value);
break;
case 22:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setDeclareFile(value);
break;
case 23:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setSysUpgrade(value);
break;
case 129:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setAccountState(value);
break;
case 130:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setAssetState(value);
break;
case 131:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setChannelState(value);
break;
case 132:
var value = new type_pb.Transaction();
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader);
msg.setForgeState(value);
break;
default:
reader.skipField();
break;
}

@@ -450,3 +447,2 @@ }

/**

@@ -462,3 +458,2 @@ * Serializes the message to binary data (in protobuf wire format).

/**

@@ -475,153 +470,78 @@ * Serializes the given message to binary data (in protobuf wire

if (f !== 0.0) {
writer.writeEnum(
1,
f
);
writer.writeEnum(1, f);
}
f = /** @type {string} */ (jspb.Message.getField(message, 2));
if (f != null) {
writer.writeString(
2,
f
);
writer.writeString(2, f);
}
f = message.getTransfer();
if (f != null) {
writer.writeMessage(
3,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(3, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getAccountMigrate();
if (f != null) {
writer.writeMessage(
4,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(4, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getConfirm();
if (f != null) {
writer.writeMessage(
5,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(5, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getCreateAsset();
if (f != null) {
writer.writeMessage(
6,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(6, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getExchange();
if (f != null) {
writer.writeMessage(
7,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(7, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getRevoke();
if (f != null) {
writer.writeMessage(
8,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(8, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getBeginBlock();
if (f != null) {
writer.writeMessage(
16,
f,
vendor_pb.RequestBeginBlock.serializeBinaryToWriter
);
writer.writeMessage(16, f, vendor_pb.RequestBeginBlock.serializeBinaryToWriter);
}
f = message.getEndBlock();
if (f != null) {
writer.writeMessage(
17,
f,
vendor_pb.RequestEndBlock.serializeBinaryToWriter
);
writer.writeMessage(17, f, vendor_pb.RequestEndBlock.serializeBinaryToWriter);
}
f = message.getDeclare();
if (f != null) {
writer.writeMessage(
19,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(19, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getAccountUpgrade();
if (f != null) {
writer.writeMessage(
20,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(20, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getConsensusUpgrade();
if (f != null) {
writer.writeMessage(
21,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(21, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getDeclareFile();
if (f != null) {
writer.writeMessage(
22,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(22, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getSysUpgrade();
if (f != null) {
writer.writeMessage(
23,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(23, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getAccountState();
if (f != null) {
writer.writeMessage(
129,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(129, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getAssetState();
if (f != null) {
writer.writeMessage(
130,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(130, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getChannelState();
if (f != null) {
writer.writeMessage(
131,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(131, f, type_pb.Transaction.serializeBinaryToWriter);
}
f = message.getForgeState();
if (f != null) {
writer.writeMessage(
132,
f,
type_pb.Transaction.serializeBinaryToWriter
);
writer.writeMessage(132, f, type_pb.Transaction.serializeBinaryToWriter);
}
};
/**

@@ -635,3 +555,2 @@ * optional StatusCode code = 1;

/** @param {!proto.forge_abi.StatusCode} value */

@@ -642,3 +561,2 @@ proto.forge_abi.ResponseSubscribe.prototype.setCode = function(value) {

/**

@@ -649,6 +567,5 @@ * optional string topic = 2;

proto.forge_abi.ResponseSubscribe.prototype.getTopic = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ''));
};
/** @param {string} value */

@@ -659,3 +576,2 @@ proto.forge_abi.ResponseSubscribe.prototype.setTopic = function(value) {

proto.forge_abi.ResponseSubscribe.prototype.clearTopic = function() {

@@ -665,3 +581,2 @@ jspb.Message.setOneofField(this, 2, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], undefined);

/**

@@ -675,3 +590,2 @@ * Returns whether this field is set.

/**

@@ -682,13 +596,19 @@ * optional Transaction transfer = 3;

proto.forge_abi.ResponseSubscribe.prototype.getTransfer = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 3));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
3
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setTransfer = function(value) {
jspb.Message.setOneofWrapperField(this, 3, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
3,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearTransfer = function() {

@@ -698,3 +618,2 @@ this.setTransfer(undefined);

/**

@@ -708,3 +627,2 @@ * Returns whether this field is set.

/**

@@ -715,13 +633,19 @@ * optional Transaction account_migrate = 4;

proto.forge_abi.ResponseSubscribe.prototype.getAccountMigrate = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 4));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
4
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setAccountMigrate = function(value) {
jspb.Message.setOneofWrapperField(this, 4, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
4,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearAccountMigrate = function() {

@@ -731,3 +655,2 @@ this.setAccountMigrate(undefined);

/**

@@ -741,3 +664,2 @@ * Returns whether this field is set.

/**

@@ -748,13 +670,19 @@ * optional Transaction confirm = 5;

proto.forge_abi.ResponseSubscribe.prototype.getConfirm = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 5));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
5
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setConfirm = function(value) {
jspb.Message.setOneofWrapperField(this, 5, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
5,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearConfirm = function() {

@@ -764,3 +692,2 @@ this.setConfirm(undefined);

/**

@@ -774,3 +701,2 @@ * Returns whether this field is set.

/**

@@ -781,13 +707,19 @@ * optional Transaction create_asset = 6;

proto.forge_abi.ResponseSubscribe.prototype.getCreateAsset = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 6));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
6
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setCreateAsset = function(value) {
jspb.Message.setOneofWrapperField(this, 6, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
6,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearCreateAsset = function() {

@@ -797,3 +729,2 @@ this.setCreateAsset(undefined);

/**

@@ -807,3 +738,2 @@ * Returns whether this field is set.

/**

@@ -814,13 +744,19 @@ * optional Transaction exchange = 7;

proto.forge_abi.ResponseSubscribe.prototype.getExchange = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 7));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
7
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setExchange = function(value) {
jspb.Message.setOneofWrapperField(this, 7, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
7,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearExchange = function() {

@@ -830,3 +766,2 @@ this.setExchange(undefined);

/**

@@ -840,3 +775,2 @@ * Returns whether this field is set.

/**

@@ -847,13 +781,19 @@ * optional Transaction revoke = 8;

proto.forge_abi.ResponseSubscribe.prototype.getRevoke = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 8));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
8
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setRevoke = function(value) {
jspb.Message.setOneofWrapperField(this, 8, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
8,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearRevoke = function() {

@@ -863,3 +803,2 @@ this.setRevoke(undefined);

/**

@@ -873,3 +812,2 @@ * Returns whether this field is set.

/**

@@ -880,13 +818,19 @@ * optional forge_vendor.RequestBeginBlock begin_block = 16;

proto.forge_abi.ResponseSubscribe.prototype.getBeginBlock = function() {
return /** @type{?proto.forge_vendor.RequestBeginBlock} */ (
jspb.Message.getWrapperField(this, vendor_pb.RequestBeginBlock, 16));
return /** @type{?proto.forge_vendor.RequestBeginBlock} */ (jspb.Message.getWrapperField(
this,
vendor_pb.RequestBeginBlock,
16
));
};
/** @param {?proto.forge_vendor.RequestBeginBlock|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setBeginBlock = function(value) {
jspb.Message.setOneofWrapperField(this, 16, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
16,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearBeginBlock = function() {

@@ -896,3 +840,2 @@ this.setBeginBlock(undefined);

/**

@@ -906,3 +849,2 @@ * Returns whether this field is set.

/**

@@ -913,13 +855,19 @@ * optional forge_vendor.RequestEndBlock end_block = 17;

proto.forge_abi.ResponseSubscribe.prototype.getEndBlock = function() {
return /** @type{?proto.forge_vendor.RequestEndBlock} */ (
jspb.Message.getWrapperField(this, vendor_pb.RequestEndBlock, 17));
return /** @type{?proto.forge_vendor.RequestEndBlock} */ (jspb.Message.getWrapperField(
this,
vendor_pb.RequestEndBlock,
17
));
};
/** @param {?proto.forge_vendor.RequestEndBlock|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setEndBlock = function(value) {
jspb.Message.setOneofWrapperField(this, 17, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
17,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearEndBlock = function() {

@@ -929,3 +877,2 @@ this.setEndBlock(undefined);

/**

@@ -939,3 +886,2 @@ * Returns whether this field is set.

/**

@@ -946,13 +892,19 @@ * optional Transaction declare = 19;

proto.forge_abi.ResponseSubscribe.prototype.getDeclare = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 19));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
19
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setDeclare = function(value) {
jspb.Message.setOneofWrapperField(this, 19, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
19,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearDeclare = function() {

@@ -962,3 +914,2 @@ this.setDeclare(undefined);

/**

@@ -972,3 +923,2 @@ * Returns whether this field is set.

/**

@@ -979,13 +929,19 @@ * optional Transaction account_upgrade = 20;

proto.forge_abi.ResponseSubscribe.prototype.getAccountUpgrade = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 20));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
20
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setAccountUpgrade = function(value) {
jspb.Message.setOneofWrapperField(this, 20, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
20,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearAccountUpgrade = function() {

@@ -995,3 +951,2 @@ this.setAccountUpgrade(undefined);

/**

@@ -1005,3 +960,2 @@ * Returns whether this field is set.

/**

@@ -1012,13 +966,19 @@ * optional Transaction consensus_upgrade = 21;

proto.forge_abi.ResponseSubscribe.prototype.getConsensusUpgrade = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 21));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
21
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setConsensusUpgrade = function(value) {
jspb.Message.setOneofWrapperField(this, 21, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
21,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearConsensusUpgrade = function() {

@@ -1028,3 +988,2 @@ this.setConsensusUpgrade(undefined);

/**

@@ -1038,3 +997,2 @@ * Returns whether this field is set.

/**

@@ -1045,13 +1003,19 @@ * optional Transaction declare_file = 22;

proto.forge_abi.ResponseSubscribe.prototype.getDeclareFile = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 22));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
22
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setDeclareFile = function(value) {
jspb.Message.setOneofWrapperField(this, 22, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
22,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearDeclareFile = function() {

@@ -1061,3 +1025,2 @@ this.setDeclareFile(undefined);

/**

@@ -1071,3 +1034,2 @@ * Returns whether this field is set.

/**

@@ -1078,13 +1040,19 @@ * optional Transaction sys_upgrade = 23;

proto.forge_abi.ResponseSubscribe.prototype.getSysUpgrade = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 23));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
23
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setSysUpgrade = function(value) {
jspb.Message.setOneofWrapperField(this, 23, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
23,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearSysUpgrade = function() {

@@ -1094,3 +1062,2 @@ this.setSysUpgrade(undefined);

/**

@@ -1104,3 +1071,2 @@ * Returns whether this field is set.

/**

@@ -1111,13 +1077,19 @@ * optional Transaction account_state = 129;

proto.forge_abi.ResponseSubscribe.prototype.getAccountState = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 129));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
129
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setAccountState = function(value) {
jspb.Message.setOneofWrapperField(this, 129, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
129,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearAccountState = function() {

@@ -1127,3 +1099,2 @@ this.setAccountState(undefined);

/**

@@ -1137,3 +1108,2 @@ * Returns whether this field is set.

/**

@@ -1144,13 +1114,19 @@ * optional Transaction asset_state = 130;

proto.forge_abi.ResponseSubscribe.prototype.getAssetState = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 130));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
130
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setAssetState = function(value) {
jspb.Message.setOneofWrapperField(this, 130, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
130,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearAssetState = function() {

@@ -1160,3 +1136,2 @@ this.setAssetState(undefined);

/**

@@ -1170,3 +1145,2 @@ * Returns whether this field is set.

/**

@@ -1177,13 +1151,19 @@ * optional Transaction channel_state = 131;

proto.forge_abi.ResponseSubscribe.prototype.getChannelState = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 131));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
131
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setChannelState = function(value) {
jspb.Message.setOneofWrapperField(this, 131, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
131,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearChannelState = function() {

@@ -1193,3 +1173,2 @@ this.setChannelState(undefined);

/**

@@ -1203,3 +1182,2 @@ * Returns whether this field is set.

/**

@@ -1210,13 +1188,19 @@ * optional Transaction forge_state = 132;

proto.forge_abi.ResponseSubscribe.prototype.getForgeState = function() {
return /** @type{?proto.forge_abi.Transaction} */ (
jspb.Message.getWrapperField(this, type_pb.Transaction, 132));
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField(
this,
type_pb.Transaction,
132
));
};
/** @param {?proto.forge_abi.Transaction|undefined} value */
proto.forge_abi.ResponseSubscribe.prototype.setForgeState = function(value) {
jspb.Message.setOneofWrapperField(this, 132, proto.forge_abi.ResponseSubscribe.oneofGroups_[0], value);
jspb.Message.setOneofWrapperField(
this,
132,
proto.forge_abi.ResponseSubscribe.oneofGroups_[0],
value
);
};
proto.forge_abi.ResponseSubscribe.prototype.clearForgeState = function() {

@@ -1226,3 +1210,2 @@ this.setForgeState(undefined);

/**

@@ -1236,3 +1219,2 @@ * Returns whether this field is set.

/**

@@ -1255,6 +1237,8 @@ * @enum {number}

SYS_UPGRADE: 23,
STAKE: 24,
ACCOUNT_STATE: 129,
ASSET_STATE: 130,
CHANNEL_STATE: 131,
FORGE_STATE: 132
FORGE_STATE: 132,
STAKE_STATE: 133,
};

@@ -1261,0 +1245,0 @@

@@ -33,2 +33,13 @@ // GENERATED CODE -- DO NOT EDIT!

function serialize_forge_abi_RequestDeclareNode(arg) {
if (!(arg instanceof rpc_pb.RequestDeclareNode)) {
throw new Error('Expected argument of type forge_abi.RequestDeclareNode');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestDeclareNode(buffer_arg) {
return rpc_pb.RequestDeclareNode.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestGetAccountState(arg) {

@@ -100,2 +111,13 @@ if (!(arg instanceof rpc_pb.RequestGetAccountState)) {

function serialize_forge_abi_RequestGetStakeState(arg) {
if (!(arg instanceof rpc_pb.RequestGetStakeState)) {
throw new Error('Expected argument of type forge_abi.RequestGetStakeState');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_RequestGetStakeState(buffer_arg) {
return rpc_pb.RequestGetStakeState.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_RequestGetTx(arg) {

@@ -222,2 +244,13 @@ if (!(arg instanceof rpc_pb.RequestGetTx)) {

function serialize_forge_abi_ResponseDeclareNode(arg) {
if (!(arg instanceof rpc_pb.ResponseDeclareNode)) {
throw new Error('Expected argument of type forge_abi.ResponseDeclareNode');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseDeclareNode(buffer_arg) {
return rpc_pb.ResponseDeclareNode.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseGetAccountState(arg) {

@@ -289,2 +322,13 @@ if (!(arg instanceof rpc_pb.ResponseGetAccountState)) {

function serialize_forge_abi_ResponseGetStakeState(arg) {
if (!(arg instanceof rpc_pb.ResponseGetStakeState)) {
throw new Error('Expected argument of type forge_abi.ResponseGetStakeState');
}
return Buffer.from(arg.serializeBinary());
}
function deserialize_forge_abi_ResponseGetStakeState(buffer_arg) {
return rpc_pb.ResponseGetStakeState.deserializeBinary(new Uint8Array(buffer_arg));
}
function serialize_forge_abi_ResponseGetTx(arg) {

@@ -520,2 +564,13 @@ if (!(arg instanceof rpc_pb.ResponseGetTx)) {

},
declare_node: {
path: '/forge_abi.WalletRpc/declare_node',
requestStream: false,
responseStream: false,
requestType: rpc_pb.RequestDeclareNode,
responseType: rpc_pb.ResponseDeclareNode,
requestSerialize: serialize_forge_abi_RequestDeclareNode,
requestDeserialize: deserialize_forge_abi_RequestDeclareNode,
responseSerialize: serialize_forge_abi_ResponseDeclareNode,
responseDeserialize: deserialize_forge_abi_ResponseDeclareNode,
},
});

@@ -559,2 +614,13 @@

},
get_stake_state: {
path: '/forge_abi.StateRpc/get_stake_state',
requestStream: true,
responseStream: true,
requestType: rpc_pb.RequestGetStakeState,
responseType: rpc_pb.ResponseGetStakeState,
requestSerialize: serialize_forge_abi_RequestGetStakeState,
requestDeserialize: deserialize_forge_abi_RequestGetStakeState,
responseSerialize: serialize_forge_abi_ResponseGetStakeState,
responseDeserialize: deserialize_forge_abi_ResponseGetStakeState,
},
get_forge_state: {

@@ -561,0 +627,0 @@ path: '/forge_abi.StateRpc/get_forge_state',

@@ -148,2 +148,4 @@ {

"revoked_tx": 29,
"unsupported_stake": 30,
"insufficient_stake": 31,
"internal": 500

@@ -177,8 +179,2 @@ }

},
"AccountRole": {
"values": {
"normal": 0,
"admin": 1
}
},
"UpgradeType": {

@@ -216,8 +212,17 @@ "values": {

"values": {
"account": 0,
"asset": 1,
"channel": 2,
"forge": 3
"state_account": 0,
"state_asset": 1,
"state_channel": 2,
"state_forge": 3,
"state_stake": 4
}
},
"StakeType": {
"values": {
"stake_node": 0,
"stake_user": 1,
"stake_asset": 2,
"stake_chain": 3
}
},
"BigUint": {

@@ -324,2 +329,6 @@ "fields": {

"id": 11
},
"totalTxs": {
"type": "uint64",
"id": 12
}

@@ -347,9 +356,30 @@ }

"maxGas": {
"type": "uint64",
"type": "sint64",
"id": 2
},
"maxValidators": {
"type": "uint32",
"id": 3
},
"maxCandidates": {
"type": "uint32",
"id": 4
},
"pubKeyTypes": {
"rule": "repeated",
"type": "string",
"id": 3
"id": 5
},
"validators": {
"rule": "repeated",
"type": "Validator",
"id": 6
},
"validatorChanged": {
"type": "bool",
"id": 7
},
"paramChanged": {
"type": "bool",
"id": 8
}

@@ -480,2 +510,6 @@ }

"id": 6
},
"totalTxs": {
"type": "uint64",
"id": 7
}

@@ -521,2 +555,58 @@ }

},
"StateContext": {
"fields": {
"genesisTx": {
"type": "string",
"id": 1
},
"renaissanceTx": {
"type": "string",
"id": 2
},
"genesisTime": {
"type": "google.protobuf.Timestamp",
"id": 3
},
"renaissanceTime": {
"type": "google.protobuf.Timestamp",
"id": 4
}
}
},
"StakeContext": {
"fields": {
"totalStakes": {
"type": "BigUint",
"id": 1
},
"totalReceivedStakes": {
"type": "BigUint",
"id": 2
},
"recentStakes": {
"type": "CircularQueue",
"id": 3
},
"recentReceivedStakes": {
"type": "CircularQueue",
"id": 4
}
}
},
"StakeSummary": {
"fields": {
"totalStakes": {
"type": "BigUint",
"id": 1
},
"totalUnstakes": {
"type": "BigUint",
"id": 2
},
"context": {
"type": "StateContext",
"id": 3
}
}
},
"AccountState": {

@@ -552,22 +642,6 @@ "fields": {

},
"role": {
"type": "AccountRole",
"context": {
"type": "StateContext",
"id": 8
},
"genesisTx": {
"type": "string",
"id": 9
},
"renaissanceTx": {
"type": "string",
"id": 10
},
"genesisTime": {
"type": "google.protobuf.Timestamp",
"id": 11
},
"renaissanceTime": {
"type": "google.protobuf.Timestamp",
"id": 12
},
"migratedTo": {

@@ -582,8 +656,8 @@ "type": "string",

},
"power": {
"numAssets": {
"type": "uint64",
"id": 15
},
"numAssets": {
"type": "uint64",
"stake": {
"type": "StakeContext",
"id": 16

@@ -611,18 +685,10 @@ },

},
"genesisTx": {
"type": "string",
"id": 9
"stake": {
"type": "StakeContext",
"id": 13
},
"renaissanceTx": {
"type": "string",
"id": 10
"context": {
"type": "StateContext",
"id": 14
},
"genesisTime": {
"type": "google.protobuf.Timestamp",
"id": 11
},
"renaissanceTime": {
"type": "google.protobuf.Timestamp",
"id": 12
},
"data": {

@@ -653,59 +719,66 @@ "type": "google.protobuf.Any",

"waiting": {
"rule": "repeated",
"type": "TransactionInfo",
"type": "CircularQueue",
"id": 5
},
"confirmed": {
"rule": "repeated",
"type": "TxStatus",
"type": "CircularQueue",
"id": 6
},
"genesisTx": {
"type": "string",
"id": 9
"context": {
"type": "StateContext",
"id": 14
},
"renaissanceTx": {
"type": "string",
"id": 10
"data": {
"type": "google.protobuf.Any",
"id": 50
}
}
},
"ForgeState": {
"fields": {
"consensus": {
"type": "ConsensusParams",
"id": 1
},
"genesisTime": {
"type": "google.protobuf.Timestamp",
"id": 11
"tasks": {
"keyType": "uint64",
"type": "UpgradeTasks",
"id": 2
},
"renaissanceTime": {
"type": "google.protobuf.Timestamp",
"id": 12
"stakeSummary": {
"keyType": "uint32",
"type": "StakeSummary",
"id": 3
},
"data": {
"type": "google.protobuf.Any",
"id": 50
"id": 15
}
}
},
"ForgeState": {
"StakeState": {
"fields": {
"latestBlock": {
"type": "uint64",
"address": {
"type": "string",
"id": 1
},
"latestAppHash": {
"type": "bytes",
"to": {
"type": "string",
"id": 2
},
"consensusEngine": {
"type": "string",
"value": {
"type": "BigUint",
"id": 3
},
"storageEngine": {
"message": {
"type": "string",
"id": 4
},
"tasks": {
"keyType": "uint64",
"type": "UpgradeTasks",
"id": 13
"context": {
"type": "StateContext",
"id": 14
},
"data": {
"type": "google.protobuf.Any",
"id": 14
"id": 15
}

@@ -729,6 +802,8 @@ }

"sys_upgrade": 23,
"stake": 24,
"account_state": 129,
"asset_state": 130,
"channel_state": 131,
"forge_state": 132
"forge_state": 132,
"stake_state": 133
}

@@ -1092,2 +1167,17 @@ },

},
"RequestDeclareNode": {
"fields": {}
},
"ResponseDeclareNode": {
"fields": {
"code": {
"type": "StatusCode",
"id": 1
},
"wallet": {
"type": "WalletInfo",
"id": 3
}
}
},
"RequestGetAccountState": {

@@ -1165,2 +1255,18 @@ "fields": {

},
"RequestGetStakeState": {
"fields": {
"address": {
"type": "string",
"id": 1
},
"key": {
"type": "string",
"id": 2
},
"appHash": {
"type": "string",
"id": 3
}
}
},
"ResponseGetChannelState": {

@@ -1178,2 +1284,14 @@ "fields": {

},
"ResponseGetStakeState": {
"fields": {
"code": {
"type": "StatusCode",
"id": 1
},
"state": {
"type": "StakeState",
"id": 2
}
}
},
"RequestGetForgeState": {

@@ -1337,2 +1455,6 @@ "fields": {

"responseType": "ResponseRemoveWallet"
},
"declare_node": {
"requestType": "RequestDeclareNode",
"responseType": "ResponseDeclareNode"
}

@@ -1361,2 +1483,8 @@ }

},
"get_stake_state": {
"requestType": "RequestGetStakeState",
"requestStream": true,
"responseType": "ResponseGetStakeState",
"responseStream": true
},
"get_forge_state": {

@@ -1484,14 +1612,2 @@ "requestType": "RequestGetForgeState",

},
"AccountUpgradeTx": {
"fields": {
"to": {
"type": "string",
"id": 1
},
"role": {
"type": "AccountRole",
"id": 2
}
}
},
"ConsensusUpgradeTx": {

@@ -1533,2 +1649,34 @@ "fields": {

}
},
"StakeTx": {
"fields": {
"to": {
"type": "string",
"id": 1
},
"value": {
"type": "BigUint",
"id": 2
},
"message": {
"type": "string",
"id": 3
},
"data": {
"type": "google.protobuf.Any",
"id": 15
}
}
},
"StakeForNode": {
"fields": {}
},
"stakeForUser": {
"fields": {}
},
"stakeForAsset": {
"fields": {}
},
"stakeForChain": {
"fields": {}
}

@@ -1535,0 +1683,0 @@ }

@@ -14,3 +14,2 @@ /**

var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');

@@ -23,2 +22,3 @@ var vendor_pb = require('./vendor_pb.js');

goog.exportSymbol('proto.forge_abi.ForgeState', null, global);
goog.exportSymbol('proto.forge_abi.StakeState', null, global);

@@ -90,15 +90,7 @@ /**

moniker: jspb.Message.getFieldWithDefault(msg, 7, ''),
role: jspb.Message.getFieldWithDefault(msg, 8, 0),
genesisTx: jspb.Message.getFieldWithDefault(msg, 9, ''),
renaissanceTx: jspb.Message.getFieldWithDefault(msg, 10, ''),
genesisTime:
(f = msg.getGenesisTime()) &&
google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
renaissanceTime:
(f = msg.getRenaissanceTime()) &&
google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
migratedTo: jspb.Message.getFieldWithDefault(msg, 13, ''),
migratedFromList: jspb.Message.getRepeatedField(msg, 14),
power: jspb.Message.getFieldWithDefault(msg, 15, 0),
numAssets: jspb.Message.getFieldWithDefault(msg, 16, 0),
numAssets: jspb.Message.getFieldWithDefault(msg, 15, 0),
stake: (f = msg.getStake()) && type_pb.StakeContext.toObject(includeInstance, f),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),

@@ -170,29 +162,6 @@ };

case 8:
var value = /** @type {!proto.forge_abi.AccountRole} */ (reader.readEnum());
msg.setRole(value);
var value = new type_pb.StateContext();
reader.readMessage(value, type_pb.StateContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.setGenesisTx(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.setRenaissanceTx(value);
break;
case 11:
var value = new google_protobuf_timestamp_pb.Timestamp();
reader.readMessage(
value,
google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader
);
msg.setGenesisTime(value);
break;
case 12:
var value = new google_protobuf_timestamp_pb.Timestamp();
reader.readMessage(
value,
google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader
);
msg.setRenaissanceTime(value);
break;
case 13:

@@ -208,7 +177,8 @@ var value = /** @type {string} */ (reader.readString());

var value = /** @type {number} */ (reader.readUint64());
msg.setPower(value);
msg.setNumAssets(value);
break;
case 16:
var value = /** @type {number} */ (reader.readUint64());
msg.setNumAssets(value);
var value = new type_pb.StakeContext();
reader.readMessage(value, type_pb.StakeContext.deserializeBinaryFromReader);
msg.setStake(value);
break;

@@ -275,22 +245,6 @@ case 50:

}
f = message.getRole();
if (f !== 0.0) {
writer.writeEnum(8, f);
}
f = message.getGenesisTx();
if (f.length > 0) {
writer.writeString(9, f);
}
f = message.getRenaissanceTx();
if (f.length > 0) {
writer.writeString(10, f);
}
f = message.getGenesisTime();
f = message.getContext();
if (f != null) {
writer.writeMessage(11, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
writer.writeMessage(8, f, type_pb.StateContext.serializeBinaryToWriter);
}
f = message.getRenaissanceTime();
if (f != null) {
writer.writeMessage(12, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
}
f = message.getMigratedTo();

@@ -304,9 +258,9 @@ if (f.length > 0) {

}
f = message.getPower();
f = message.getNumAssets();
if (f !== 0) {
writer.writeUint64(15, f);
}
f = message.getNumAssets();
if (f !== 0) {
writer.writeUint64(16, f);
f = message.getStake();
if (f != null) {
writer.writeMessage(16, f, type_pb.StakeContext.serializeBinaryToWriter);
}

@@ -463,59 +417,20 @@ f = message.getData();

/**
* optional AccountRole role = 8;
* @return {!proto.forge_abi.AccountRole}
* optional StateContext context = 8;
* @return {?proto.forge_abi.StateContext}
*/
proto.forge_abi.AccountState.prototype.getRole = function() {
return /** @type {!proto.forge_abi.AccountRole} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
};
/** @param {!proto.forge_abi.AccountRole} value */
proto.forge_abi.AccountState.prototype.setRole = function(value) {
jspb.Message.setField(this, 8, value);
};
/**
* optional string genesis_tx = 9;
* @return {string}
*/
proto.forge_abi.AccountState.prototype.getGenesisTx = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ''));
};
/** @param {string} value */
proto.forge_abi.AccountState.prototype.setGenesisTx = function(value) {
jspb.Message.setField(this, 9, value);
};
/**
* optional string renaissance_tx = 10;
* @return {string}
*/
proto.forge_abi.AccountState.prototype.getRenaissanceTx = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ''));
};
/** @param {string} value */
proto.forge_abi.AccountState.prototype.setRenaissanceTx = function(value) {
jspb.Message.setField(this, 10, value);
};
/**
* optional google.protobuf.Timestamp genesis_time = 11;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.forge_abi.AccountState.prototype.getGenesisTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(
proto.forge_abi.AccountState.prototype.getContext = function() {
return /** @type{?proto.forge_abi.StateContext} */ (jspb.Message.getWrapperField(
this,
google_protobuf_timestamp_pb.Timestamp,
11
type_pb.StateContext,
8
));
};
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
proto.forge_abi.AccountState.prototype.setGenesisTime = function(value) {
jspb.Message.setWrapperField(this, 11, value);
/** @param {?proto.forge_abi.StateContext|undefined} value */
proto.forge_abi.AccountState.prototype.setContext = function(value) {
jspb.Message.setWrapperField(this, 8, value);
};
proto.forge_abi.AccountState.prototype.clearGenesisTime = function() {
this.setGenesisTime(undefined);
proto.forge_abi.AccountState.prototype.clearContext = function() {
this.setContext(undefined);
};

@@ -527,36 +442,7 @@

*/
proto.forge_abi.AccountState.prototype.hasGenesisTime = function() {
return jspb.Message.getField(this, 11) != null;
proto.forge_abi.AccountState.prototype.hasContext = function() {
return jspb.Message.getField(this, 8) != null;
};
/**
* optional google.protobuf.Timestamp renaissance_time = 12;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.forge_abi.AccountState.prototype.getRenaissanceTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(
this,
google_protobuf_timestamp_pb.Timestamp,
12
));
};
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
proto.forge_abi.AccountState.prototype.setRenaissanceTime = function(value) {
jspb.Message.setWrapperField(this, 12, value);
};
proto.forge_abi.AccountState.prototype.clearRenaissanceTime = function() {
this.setRenaissanceTime(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.AccountState.prototype.hasRenaissanceTime = function() {
return jspb.Message.getField(this, 12) != null;
};
/**
* optional string migrated_to = 13;

@@ -600,6 +486,6 @@ * @return {string}

/**
* optional uint64 power = 15;
* optional uint64 num_assets = 15;
* @return {number}
*/
proto.forge_abi.AccountState.prototype.getPower = function() {
proto.forge_abi.AccountState.prototype.getNumAssets = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));

@@ -609,3 +495,3 @@ };

/** @param {number} value */
proto.forge_abi.AccountState.prototype.setPower = function(value) {
proto.forge_abi.AccountState.prototype.setNumAssets = function(value) {
jspb.Message.setField(this, 15, value);

@@ -615,15 +501,31 @@ };

/**
* optional uint64 num_assets = 16;
* @return {number}
* optional StakeContext stake = 16;
* @return {?proto.forge_abi.StakeContext}
*/
proto.forge_abi.AccountState.prototype.getNumAssets = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
proto.forge_abi.AccountState.prototype.getStake = function() {
return /** @type{?proto.forge_abi.StakeContext} */ (jspb.Message.getWrapperField(
this,
type_pb.StakeContext,
16
));
};
/** @param {number} value */
proto.forge_abi.AccountState.prototype.setNumAssets = function(value) {
jspb.Message.setField(this, 16, value);
/** @param {?proto.forge_abi.StakeContext|undefined} value */
proto.forge_abi.AccountState.prototype.setStake = function(value) {
jspb.Message.setWrapperField(this, 16, value);
};
proto.forge_abi.AccountState.prototype.clearStake = function() {
this.setStake(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.AccountState.prototype.hasStake = function() {
return jspb.Message.getField(this, 16) != null;
};
/**
* optional google.protobuf.Any data = 50;

@@ -705,10 +607,4 @@ * @return {?proto.google.protobuf.Any}

moniker: jspb.Message.getFieldWithDefault(msg, 3, ''),
genesisTx: jspb.Message.getFieldWithDefault(msg, 9, ''),
renaissanceTx: jspb.Message.getFieldWithDefault(msg, 10, ''),
genesisTime:
(f = msg.getGenesisTime()) &&
google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
renaissanceTime:
(f = msg.getRenaissanceTime()) &&
google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
stake: (f = msg.getStake()) && type_pb.StakeContext.toObject(includeInstance, f),
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),

@@ -761,26 +657,12 @@ };

break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.setGenesisTx(value);
case 13:
var value = new type_pb.StakeContext();
reader.readMessage(value, type_pb.StakeContext.deserializeBinaryFromReader);
msg.setStake(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.setRenaissanceTx(value);
case 14:
var value = new type_pb.StateContext();
reader.readMessage(value, type_pb.StateContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
case 11:
var value = new google_protobuf_timestamp_pb.Timestamp();
reader.readMessage(
value,
google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader
);
msg.setGenesisTime(value);
break;
case 12:
var value = new google_protobuf_timestamp_pb.Timestamp();
reader.readMessage(
value,
google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader
);
msg.setRenaissanceTime(value);
break;
case 50:

@@ -830,17 +712,9 @@ var value = new google_protobuf_any_pb.Any();

}
f = message.getGenesisTx();
if (f.length > 0) {
writer.writeString(9, f);
}
f = message.getRenaissanceTx();
if (f.length > 0) {
writer.writeString(10, f);
}
f = message.getGenesisTime();
f = message.getStake();
if (f != null) {
writer.writeMessage(11, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
writer.writeMessage(13, f, type_pb.StakeContext.serializeBinaryToWriter);
}
f = message.getRenaissanceTime();
f = message.getContext();
if (f != null) {
writer.writeMessage(12, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
writer.writeMessage(14, f, type_pb.StateContext.serializeBinaryToWriter);
}

@@ -893,46 +767,20 @@ f = message.getData();

/**
* optional string genesis_tx = 9;
* @return {string}
* optional StakeContext stake = 13;
* @return {?proto.forge_abi.StakeContext}
*/
proto.forge_abi.AssetState.prototype.getGenesisTx = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ''));
};
/** @param {string} value */
proto.forge_abi.AssetState.prototype.setGenesisTx = function(value) {
jspb.Message.setField(this, 9, value);
};
/**
* optional string renaissance_tx = 10;
* @return {string}
*/
proto.forge_abi.AssetState.prototype.getRenaissanceTx = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ''));
};
/** @param {string} value */
proto.forge_abi.AssetState.prototype.setRenaissanceTx = function(value) {
jspb.Message.setField(this, 10, value);
};
/**
* optional google.protobuf.Timestamp genesis_time = 11;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.forge_abi.AssetState.prototype.getGenesisTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(
proto.forge_abi.AssetState.prototype.getStake = function() {
return /** @type{?proto.forge_abi.StakeContext} */ (jspb.Message.getWrapperField(
this,
google_protobuf_timestamp_pb.Timestamp,
11
type_pb.StakeContext,
13
));
};
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
proto.forge_abi.AssetState.prototype.setGenesisTime = function(value) {
jspb.Message.setWrapperField(this, 11, value);
/** @param {?proto.forge_abi.StakeContext|undefined} value */
proto.forge_abi.AssetState.prototype.setStake = function(value) {
jspb.Message.setWrapperField(this, 13, value);
};
proto.forge_abi.AssetState.prototype.clearGenesisTime = function() {
this.setGenesisTime(undefined);
proto.forge_abi.AssetState.prototype.clearStake = function() {
this.setStake(undefined);
};

@@ -944,25 +792,25 @@

*/
proto.forge_abi.AssetState.prototype.hasGenesisTime = function() {
return jspb.Message.getField(this, 11) != null;
proto.forge_abi.AssetState.prototype.hasStake = function() {
return jspb.Message.getField(this, 13) != null;
};
/**
* optional google.protobuf.Timestamp renaissance_time = 12;
* @return {?proto.google.protobuf.Timestamp}
* optional StateContext context = 14;
* @return {?proto.forge_abi.StateContext}
*/
proto.forge_abi.AssetState.prototype.getRenaissanceTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(
proto.forge_abi.AssetState.prototype.getContext = function() {
return /** @type{?proto.forge_abi.StateContext} */ (jspb.Message.getWrapperField(
this,
google_protobuf_timestamp_pb.Timestamp,
12
type_pb.StateContext,
14
));
};
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
proto.forge_abi.AssetState.prototype.setRenaissanceTime = function(value) {
jspb.Message.setWrapperField(this, 12, value);
/** @param {?proto.forge_abi.StateContext|undefined} value */
proto.forge_abi.AssetState.prototype.setContext = function(value) {
jspb.Message.setWrapperField(this, 14, value);
};
proto.forge_abi.AssetState.prototype.clearRenaissanceTime = function() {
this.setRenaissanceTime(undefined);
proto.forge_abi.AssetState.prototype.clearContext = function() {
this.setContext(undefined);
};

@@ -974,4 +822,4 @@

*/
proto.forge_abi.AssetState.prototype.hasRenaissanceTime = function() {
return jspb.Message.getField(this, 12) != null;
proto.forge_abi.AssetState.prototype.hasContext = function() {
return jspb.Message.getField(this, 14) != null;
};

@@ -1019,10 +867,3 @@

proto.forge_abi.ChannelState = function(opt_data) {
jspb.Message.initialize(
this,
opt_data,
0,
-1,
proto.forge_abi.ChannelState.repeatedFields_,
null
);
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};

@@ -1033,8 +874,2 @@ goog.inherits(proto.forge_abi.ChannelState, jspb.Message);

}
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.forge_abi.ChannelState.repeatedFields_ = [5, 6];

@@ -1072,20 +907,5 @@ if (jspb.Message.GENERATE_TO_OBJECT) {

maxConfirmed: jspb.Message.getFieldWithDefault(msg, 4, 0),
waitingList: jspb.Message.toObjectList(
msg.getWaitingList(),
type_pb.TransactionInfo.toObject,
includeInstance
),
confirmedList: jspb.Message.toObjectList(
msg.getConfirmedList(),
type_pb.TxStatus.toObject,
includeInstance
),
genesisTx: jspb.Message.getFieldWithDefault(msg, 9, ''),
renaissanceTx: jspb.Message.getFieldWithDefault(msg, 10, ''),
genesisTime:
(f = msg.getGenesisTime()) &&
google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
renaissanceTime:
(f = msg.getRenaissanceTime()) &&
google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
waiting: (f = msg.getWaiting()) && type_pb.CircularQueue.toObject(includeInstance, f),
confirmed: (f = msg.getConfirmed()) && type_pb.CircularQueue.toObject(includeInstance, f),
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),

@@ -1143,35 +963,16 @@ };

case 5:
var value = new type_pb.TransactionInfo();
reader.readMessage(value, type_pb.TransactionInfo.deserializeBinaryFromReader);
msg.addWaiting(value);
var value = new type_pb.CircularQueue();
reader.readMessage(value, type_pb.CircularQueue.deserializeBinaryFromReader);
msg.setWaiting(value);
break;
case 6:
var value = new type_pb.TxStatus();
reader.readMessage(value, type_pb.TxStatus.deserializeBinaryFromReader);
msg.addConfirmed(value);
var value = new type_pb.CircularQueue();
reader.readMessage(value, type_pb.CircularQueue.deserializeBinaryFromReader);
msg.setConfirmed(value);
break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.setGenesisTx(value);
case 14:
var value = new type_pb.StateContext();
reader.readMessage(value, type_pb.StateContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.setRenaissanceTx(value);
break;
case 11:
var value = new google_protobuf_timestamp_pb.Timestamp();
reader.readMessage(
value,
google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader
);
msg.setGenesisTime(value);
break;
case 12:
var value = new google_protobuf_timestamp_pb.Timestamp();
reader.readMessage(
value,
google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader
);
msg.setRenaissanceTime(value);
break;
case 50:

@@ -1225,25 +1026,13 @@ var value = new google_protobuf_any_pb.Any();

}
f = message.getWaitingList();
if (f.length > 0) {
writer.writeRepeatedMessage(5, f, type_pb.TransactionInfo.serializeBinaryToWriter);
f = message.getWaiting();
if (f != null) {
writer.writeMessage(5, f, type_pb.CircularQueue.serializeBinaryToWriter);
}
f = message.getConfirmedList();
if (f.length > 0) {
writer.writeRepeatedMessage(6, f, type_pb.TxStatus.serializeBinaryToWriter);
}
f = message.getGenesisTx();
if (f.length > 0) {
writer.writeString(9, f);
}
f = message.getRenaissanceTx();
if (f.length > 0) {
writer.writeString(10, f);
}
f = message.getGenesisTime();
f = message.getConfirmed();
if (f != null) {
writer.writeMessage(11, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
writer.writeMessage(6, f, type_pb.CircularQueue.serializeBinaryToWriter);
}
f = message.getRenaissanceTime();
f = message.getContext();
if (f != null) {
writer.writeMessage(12, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter);
writer.writeMessage(14, f, type_pb.StateContext.serializeBinaryToWriter);
}

@@ -1309,9 +1098,9 @@ f = message.getData();

/**
* repeated TransactionInfo waiting = 5;
* @return {!Array.<!proto.forge_abi.TransactionInfo>}
* optional CircularQueue waiting = 5;
* @return {?proto.forge_abi.CircularQueue}
*/
proto.forge_abi.ChannelState.prototype.getWaitingList = function() {
return /** @type{!Array.<!proto.forge_abi.TransactionInfo>} */ (jspb.Message.getRepeatedWrapperField(
proto.forge_abi.ChannelState.prototype.getWaiting = function() {
return /** @type{?proto.forge_abi.CircularQueue} */ (jspb.Message.getWrapperField(
this,
type_pb.TransactionInfo,
type_pb.CircularQueue,
5

@@ -1321,107 +1110,38 @@ ));

/** @param {!Array.<!proto.forge_abi.TransactionInfo>} value */
proto.forge_abi.ChannelState.prototype.setWaitingList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 5, value);
/** @param {?proto.forge_abi.CircularQueue|undefined} value */
proto.forge_abi.ChannelState.prototype.setWaiting = function(value) {
jspb.Message.setWrapperField(this, 5, value);
};
/**
* @param {!proto.forge_abi.TransactionInfo=} opt_value
* @param {number=} opt_index
* @return {!proto.forge_abi.TransactionInfo}
*/
proto.forge_abi.ChannelState.prototype.addWaiting = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(
this,
5,
opt_value,
proto.forge_abi.TransactionInfo,
opt_index
);
proto.forge_abi.ChannelState.prototype.clearWaiting = function() {
this.setWaiting(undefined);
};
proto.forge_abi.ChannelState.prototype.clearWaitingList = function() {
this.setWaitingList([]);
};
/**
* repeated TxStatus confirmed = 6;
* @return {!Array.<!proto.forge_abi.TxStatus>}
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.ChannelState.prototype.getConfirmedList = function() {
return /** @type{!Array.<!proto.forge_abi.TxStatus>} */ (jspb.Message.getRepeatedWrapperField(
this,
type_pb.TxStatus,
6
));
proto.forge_abi.ChannelState.prototype.hasWaiting = function() {
return jspb.Message.getField(this, 5) != null;
};
/** @param {!Array.<!proto.forge_abi.TxStatus>} value */
proto.forge_abi.ChannelState.prototype.setConfirmedList = function(value) {
jspb.Message.setRepeatedWrapperField(this, 6, value);
};
/**
* @param {!proto.forge_abi.TxStatus=} opt_value
* @param {number=} opt_index
* @return {!proto.forge_abi.TxStatus}
* optional CircularQueue confirmed = 6;
* @return {?proto.forge_abi.CircularQueue}
*/
proto.forge_abi.ChannelState.prototype.addConfirmed = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(
proto.forge_abi.ChannelState.prototype.getConfirmed = function() {
return /** @type{?proto.forge_abi.CircularQueue} */ (jspb.Message.getWrapperField(
this,
6,
opt_value,
proto.forge_abi.TxStatus,
opt_index
);
};
proto.forge_abi.ChannelState.prototype.clearConfirmedList = function() {
this.setConfirmedList([]);
};
/**
* optional string genesis_tx = 9;
* @return {string}
*/
proto.forge_abi.ChannelState.prototype.getGenesisTx = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ''));
};
/** @param {string} value */
proto.forge_abi.ChannelState.prototype.setGenesisTx = function(value) {
jspb.Message.setField(this, 9, value);
};
/**
* optional string renaissance_tx = 10;
* @return {string}
*/
proto.forge_abi.ChannelState.prototype.getRenaissanceTx = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ''));
};
/** @param {string} value */
proto.forge_abi.ChannelState.prototype.setRenaissanceTx = function(value) {
jspb.Message.setField(this, 10, value);
};
/**
* optional google.protobuf.Timestamp genesis_time = 11;
* @return {?proto.google.protobuf.Timestamp}
*/
proto.forge_abi.ChannelState.prototype.getGenesisTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(
this,
google_protobuf_timestamp_pb.Timestamp,
11
type_pb.CircularQueue,
6
));
};
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
proto.forge_abi.ChannelState.prototype.setGenesisTime = function(value) {
jspb.Message.setWrapperField(this, 11, value);
/** @param {?proto.forge_abi.CircularQueue|undefined} value */
proto.forge_abi.ChannelState.prototype.setConfirmed = function(value) {
jspb.Message.setWrapperField(this, 6, value);
};
proto.forge_abi.ChannelState.prototype.clearGenesisTime = function() {
this.setGenesisTime(undefined);
proto.forge_abi.ChannelState.prototype.clearConfirmed = function() {
this.setConfirmed(undefined);
};

@@ -1433,25 +1153,25 @@

*/
proto.forge_abi.ChannelState.prototype.hasGenesisTime = function() {
return jspb.Message.getField(this, 11) != null;
proto.forge_abi.ChannelState.prototype.hasConfirmed = function() {
return jspb.Message.getField(this, 6) != null;
};
/**
* optional google.protobuf.Timestamp renaissance_time = 12;
* @return {?proto.google.protobuf.Timestamp}
* optional StateContext context = 14;
* @return {?proto.forge_abi.StateContext}
*/
proto.forge_abi.ChannelState.prototype.getRenaissanceTime = function() {
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField(
proto.forge_abi.ChannelState.prototype.getContext = function() {
return /** @type{?proto.forge_abi.StateContext} */ (jspb.Message.getWrapperField(
this,
google_protobuf_timestamp_pb.Timestamp,
12
type_pb.StateContext,
14
));
};
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
proto.forge_abi.ChannelState.prototype.setRenaissanceTime = function(value) {
jspb.Message.setWrapperField(this, 12, value);
/** @param {?proto.forge_abi.StateContext|undefined} value */
proto.forge_abi.ChannelState.prototype.setContext = function(value) {
jspb.Message.setWrapperField(this, 14, value);
};
proto.forge_abi.ChannelState.prototype.clearRenaissanceTime = function() {
this.setRenaissanceTime(undefined);
proto.forge_abi.ChannelState.prototype.clearContext = function() {
this.setContext(undefined);
};

@@ -1463,4 +1183,4 @@

*/
proto.forge_abi.ChannelState.prototype.hasRenaissanceTime = function() {
return jspb.Message.getField(this, 12) != null;
proto.forge_abi.ChannelState.prototype.hasContext = function() {
return jspb.Message.getField(this, 14) != null;
};

@@ -1542,9 +1262,9 @@

obj = {
latestBlock: jspb.Message.getFieldWithDefault(msg, 1, 0),
latestAppHash: msg.getLatestAppHash(),
consensusEngine: jspb.Message.getFieldWithDefault(msg, 3, ''),
storageEngine: jspb.Message.getFieldWithDefault(msg, 4, ''),
consensus: (f = msg.getConsensus()) && type_pb.ConsensusParams.toObject(includeInstance, f),
tasksMap: (f = msg.getTasksMap())
? f.toObject(includeInstance, proto.forge_abi.UpgradeTasks.toObject)
: [],
stakeSummaryMap: (f = msg.getStakeSummaryMap())
? f.toObject(includeInstance, proto.forge_abi.StakeSummary.toObject)
: [],
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),

@@ -1586,18 +1306,7 @@ };

case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setLatestBlock(value);
var value = new type_pb.ConsensusParams();
reader.readMessage(value, type_pb.ConsensusParams.deserializeBinaryFromReader);
msg.setConsensus(value);
break;
case 2:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setLatestAppHash(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.setConsensusEngine(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setStorageEngine(value);
break;
case 13:
var value = msg.getTasksMap();

@@ -1614,3 +1323,15 @@ reader.readMessage(value, function(message, reader) {

break;
case 14:
case 3:
var value = msg.getStakeSummaryMap();
reader.readMessage(value, function(message, reader) {
jspb.Map.deserializeBinary(
message,
reader,
jspb.BinaryReader.prototype.readUint32,
jspb.BinaryReader.prototype.readMessage,
proto.forge_abi.StakeSummary.deserializeBinaryFromReader
);
});
break;
case 15:
var value = new google_protobuf_any_pb.Any();

@@ -1647,22 +1368,10 @@ reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);

var f = undefined;
f = message.getLatestBlock();
if (f !== 0) {
writer.writeUint64(1, f);
f = message.getConsensus();
if (f != null) {
writer.writeMessage(1, f, type_pb.ConsensusParams.serializeBinaryToWriter);
}
f = message.getLatestAppHash_asU8();
if (f.length > 0) {
writer.writeBytes(2, f);
}
f = message.getConsensusEngine();
if (f.length > 0) {
writer.writeString(3, f);
}
f = message.getStorageEngine();
if (f.length > 0) {
writer.writeString(4, f);
}
f = message.getTasksMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(
13,
2,
writer,

@@ -1674,5 +1383,15 @@ jspb.BinaryWriter.prototype.writeUint64,

}
f = message.getStakeSummaryMap(true);
if (f && f.getLength() > 0) {
f.serializeBinary(
3,
writer,
jspb.BinaryWriter.prototype.writeUint32,
jspb.BinaryWriter.prototype.writeMessage,
proto.forge_abi.StakeSummary.serializeBinaryToWriter
);
}
f = message.getData();
if (f != null) {
writer.writeMessage(14, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
writer.writeMessage(15, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
}

@@ -1682,65 +1401,322 @@ };

/**
* optional uint64 latest_block = 1;
* @return {number}
* optional ConsensusParams consensus = 1;
* @return {?proto.forge_abi.ConsensusParams}
*/
proto.forge_abi.ForgeState.prototype.getLatestBlock = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
proto.forge_abi.ForgeState.prototype.getConsensus = function() {
return /** @type{?proto.forge_abi.ConsensusParams} */ (jspb.Message.getWrapperField(
this,
type_pb.ConsensusParams,
1
));
};
/** @param {number} value */
proto.forge_abi.ForgeState.prototype.setLatestBlock = function(value) {
jspb.Message.setField(this, 1, value);
/** @param {?proto.forge_abi.ConsensusParams|undefined} value */
proto.forge_abi.ForgeState.prototype.setConsensus = function(value) {
jspb.Message.setWrapperField(this, 1, value);
};
proto.forge_abi.ForgeState.prototype.clearConsensus = function() {
this.setConsensus(undefined);
};
/**
* optional bytes latest_app_hash = 2;
* @return {!(string|Uint8Array)}
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.ForgeState.prototype.getLatestAppHash = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ''));
proto.forge_abi.ForgeState.prototype.hasConsensus = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional bytes latest_app_hash = 2;
* This is a type-conversion wrapper around `getLatestAppHash()`
* @return {string}
* map<uint64, UpgradeTasks> tasks = 2;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<number,!proto.forge_abi.UpgradeTasks>}
*/
proto.forge_abi.ForgeState.prototype.getLatestAppHash_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(this.getLatestAppHash()));
proto.forge_abi.ForgeState.prototype.getTasksMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<number,!proto.forge_abi.UpgradeTasks>} */ (jspb.Message.getMapField(
this,
2,
opt_noLazyCreate,
proto.forge_abi.UpgradeTasks
));
};
proto.forge_abi.ForgeState.prototype.clearTasksMap = function() {
this.getTasksMap().clear();
};
/**
* optional bytes latest_app_hash = 2;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getLatestAppHash()`
* map<uint32, StakeSummary> stake_summary = 3;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<number,!proto.forge_abi.StakeSummary>}
*/
proto.forge_abi.ForgeState.prototype.getStakeSummaryMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<number,!proto.forge_abi.StakeSummary>} */ (jspb.Message.getMapField(
this,
3,
opt_noLazyCreate,
proto.forge_abi.StakeSummary
));
};
proto.forge_abi.ForgeState.prototype.clearStakeSummaryMap = function() {
this.getStakeSummaryMap().clear();
};
/**
* optional google.protobuf.Any data = 15;
* @return {?proto.google.protobuf.Any}
*/
proto.forge_abi.ForgeState.prototype.getData = function() {
return /** @type{?proto.google.protobuf.Any} */ (jspb.Message.getWrapperField(
this,
google_protobuf_any_pb.Any,
15
));
};
/** @param {?proto.google.protobuf.Any|undefined} value */
proto.forge_abi.ForgeState.prototype.setData = function(value) {
jspb.Message.setWrapperField(this, 15, value);
};
proto.forge_abi.ForgeState.prototype.clearData = function() {
this.setData(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.ForgeState.prototype.hasData = function() {
return jspb.Message.getField(this, 15) != null;
};
/**
* Generated by JsPbCodeGenerator.
* @param {Array=} opt_data Optional initial data array, typically from a
* server response, or constructed directly in Javascript. The array is used
* in place and becomes part of the constructed object. It is not cloned.
* If no data is provided, the constructed object will be empty, but still
* valid.
* @extends {jspb.Message}
* @constructor
*/
proto.forge_abi.StakeState = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.forge_abi.StakeState, jspb.Message);
if (goog.DEBUG && !COMPILED) {
proto.forge_abi.StakeState.displayName = 'proto.forge_abi.StakeState';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto suitable for use in Soy templates.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
* for transitional soy proto support: http://goto/soy-param-migration
* @return {!Object}
*/
proto.forge_abi.StakeState.prototype.toObject = function(opt_includeInstance) {
return proto.forge_abi.StakeState.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Whether to include the JSPB
* instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.forge_abi.StakeState} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.StakeState.toObject = function(includeInstance, msg) {
var f,
obj = {
address: jspb.Message.getFieldWithDefault(msg, 1, ''),
to: jspb.Message.getFieldWithDefault(msg, 2, ''),
value: (f = msg.getValue()) && type_pb.BigUint.toObject(includeInstance, f),
message: jspb.Message.getFieldWithDefault(msg, 4, ''),
context: (f = msg.getContext()) && type_pb.StateContext.toObject(includeInstance, f),
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f),
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.forge_abi.StakeState}
*/
proto.forge_abi.StakeState.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.forge_abi.StakeState();
return proto.forge_abi.StakeState.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.forge_abi.StakeState} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.forge_abi.StakeState}
*/
proto.forge_abi.StakeState.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {string} */ (reader.readString());
msg.setAddress(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setTo(value);
break;
case 3:
var value = new type_pb.BigUint();
reader.readMessage(value, type_pb.BigUint.deserializeBinaryFromReader);
msg.setValue(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setMessage(value);
break;
case 14:
var value = new type_pb.StateContext();
reader.readMessage(value, type_pb.StateContext.deserializeBinaryFromReader);
msg.setContext(value);
break;
case 15:
var value = new google_protobuf_any_pb.Any();
reader.readMessage(value, google_protobuf_any_pb.Any.deserializeBinaryFromReader);
msg.setData(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.forge_abi.ForgeState.prototype.getLatestAppHash_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(this.getLatestAppHash()));
proto.forge_abi.StakeState.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.forge_abi.StakeState.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/** @param {!(string|Uint8Array)} value */
proto.forge_abi.ForgeState.prototype.setLatestAppHash = function(value) {
jspb.Message.setField(this, 2, value);
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.forge_abi.StakeState} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.forge_abi.StakeState.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getAddress();
if (f.length > 0) {
writer.writeString(1, f);
}
f = message.getTo();
if (f.length > 0) {
writer.writeString(2, f);
}
f = message.getValue();
if (f != null) {
writer.writeMessage(3, f, type_pb.BigUint.serializeBinaryToWriter);
}
f = message.getMessage();
if (f.length > 0) {
writer.writeString(4, f);
}
f = message.getContext();
if (f != null) {
writer.writeMessage(14, f, type_pb.StateContext.serializeBinaryToWriter);
}
f = message.getData();
if (f != null) {
writer.writeMessage(15, f, google_protobuf_any_pb.Any.serializeBinaryToWriter);
}
};
/**
* optional string consensus_engine = 3;
* optional string address = 1;
* @return {string}
*/
proto.forge_abi.ForgeState.prototype.getConsensusEngine = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ''));
proto.forge_abi.StakeState.prototype.getAddress = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ''));
};
/** @param {string} value */
proto.forge_abi.ForgeState.prototype.setConsensusEngine = function(value) {
jspb.Message.setField(this, 3, value);
proto.forge_abi.StakeState.prototype.setAddress = function(value) {
jspb.Message.setField(this, 1, value);
};
/**
* optional string storage_engine = 4;
* optional string to = 2;
* @return {string}
*/
proto.forge_abi.ForgeState.prototype.getStorageEngine = function() {
proto.forge_abi.StakeState.prototype.getTo = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ''));
};
/** @param {string} value */
proto.forge_abi.StakeState.prototype.setTo = function(value) {
jspb.Message.setField(this, 2, value);
};
/**
* optional BigUint value = 3;
* @return {?proto.forge_abi.BigUint}
*/
proto.forge_abi.StakeState.prototype.getValue = function() {
return /** @type{?proto.forge_abi.BigUint} */ (jspb.Message.getWrapperField(
this,
type_pb.BigUint,
3
));
};
/** @param {?proto.forge_abi.BigUint|undefined} value */
proto.forge_abi.StakeState.prototype.setValue = function(value) {
jspb.Message.setWrapperField(this, 3, value);
};
proto.forge_abi.StakeState.prototype.clearValue = function() {
this.setValue(undefined);
};
/**
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.StakeState.prototype.hasValue = function() {
return jspb.Message.getField(this, 3) != null;
};
/**
* optional string message = 4;
* @return {string}
*/
proto.forge_abi.StakeState.prototype.getMessage = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ''));

@@ -1750,3 +1726,3 @@ };

/** @param {string} value */
proto.forge_abi.ForgeState.prototype.setStorageEngine = function(value) {
proto.forge_abi.StakeState.prototype.setMessage = function(value) {
jspb.Message.setField(this, 4, value);

@@ -1756,29 +1732,39 @@ };

/**
* map<uint64, UpgradeTasks> tasks = 13;
* @param {boolean=} opt_noLazyCreate Do not create the map if
* empty, instead returning `undefined`
* @return {!jspb.Map<number,!proto.forge_abi.UpgradeTasks>}
* optional StateContext context = 14;
* @return {?proto.forge_abi.StateContext}
*/
proto.forge_abi.ForgeState.prototype.getTasksMap = function(opt_noLazyCreate) {
return /** @type {!jspb.Map<number,!proto.forge_abi.UpgradeTasks>} */ (jspb.Message.getMapField(
proto.forge_abi.StakeState.prototype.getContext = function() {
return /** @type{?proto.forge_abi.StateContext} */ (jspb.Message.getWrapperField(
this,
13,
opt_noLazyCreate,
proto.forge_abi.UpgradeTasks
type_pb.StateContext,
14
));
};
proto.forge_abi.ForgeState.prototype.clearTasksMap = function() {
this.getTasksMap().clear();
/** @param {?proto.forge_abi.StateContext|undefined} value */
proto.forge_abi.StakeState.prototype.setContext = function(value) {
jspb.Message.setWrapperField(this, 14, value);
};
proto.forge_abi.StakeState.prototype.clearContext = function() {
this.setContext(undefined);
};
/**
* optional google.protobuf.Any data = 14;
* Returns whether this field is set.
* @return {!boolean}
*/
proto.forge_abi.StakeState.prototype.hasContext = function() {
return jspb.Message.getField(this, 14) != null;
};
/**
* optional google.protobuf.Any data = 15;
* @return {?proto.google.protobuf.Any}
*/
proto.forge_abi.ForgeState.prototype.getData = function() {
proto.forge_abi.StakeState.prototype.getData = function() {
return /** @type{?proto.google.protobuf.Any} */ (jspb.Message.getWrapperField(
this,
google_protobuf_any_pb.Any,
14
15
));

@@ -1788,7 +1774,7 @@ };

/** @param {?proto.google.protobuf.Any|undefined} value */
proto.forge_abi.ForgeState.prototype.setData = function(value) {
jspb.Message.setWrapperField(this, 14, value);
proto.forge_abi.StakeState.prototype.setData = function(value) {
jspb.Message.setWrapperField(this, 15, value);
};
proto.forge_abi.ForgeState.prototype.clearData = function() {
proto.forge_abi.StakeState.prototype.clearData = function() {
this.setData(undefined);

@@ -1801,4 +1787,4 @@ };

*/
proto.forge_abi.ForgeState.prototype.hasData = function() {
return jspb.Message.getField(this, 14) != null;
proto.forge_abi.StakeState.prototype.hasData = function() {
return jspb.Message.getField(this, 15) != null;
};

@@ -1805,0 +1791,0 @@

{
"name": "@arcblock/forge-proto",
"description": "Static modules generated from forge-sdk protobuf files",
"version": "0.5.3",
"version": "0.5.4",
"author": "wangshijun <shijun@arcblock.io> (https://www.arcblock.io)",

@@ -50,3 +50,3 @@ "bugs": {

},
"gitHead": "aaea0fde695553645465a083d0cd7f412908fdd9"
"gitHead": "269950da0c34d4b5a1b76da43f2898d5aa3ad6e7"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc