@arcblock/forge-proto
Advanced tools
Comparing version 0.26.10 to 0.27.0
@@ -1,5 +0,5 @@ | ||
// Generate by [js2dts@0.3.2](https://github.com/whxaxes/js2dts#readme) | ||
// Generate by [js2dts@0.3.3](https://github.com/whxaxes/js2dts#readme) | ||
declare const ForgeProto: ForgeProto.T101; | ||
declare namespace ForgeProto { | ||
declare const _ArcblockForgeProto: _ArcblockForgeProto.T101; | ||
declare namespace _ArcblockForgeProto { | ||
export interface T100 { | ||
@@ -17,3 +17,3 @@ [key: string]: any; | ||
*/ | ||
enums: Enums.main; | ||
enums: _ArcblockForgeProto.T100; | ||
/** | ||
@@ -27,9 +27,9 @@ * All enum types and its values (human readable string format), can be accessed from width: messages.KEY_TYPE.ED25519 | ||
*/ | ||
messages: Messages.main; | ||
messages: _ArcblockForgeProto.T100; | ||
transactions: any; | ||
stakes: any; | ||
rpcs: ForgeProto.T100; | ||
rpcs: _ArcblockForgeProto.T100; | ||
compactSpec: (object: any) => any; | ||
getMessageType: (type: string) => any; | ||
typeUrls: ForgeProto.T100; | ||
typeUrls: _ArcblockForgeProto.T100; | ||
toTypeUrl: (type: string) => string; | ||
@@ -39,3 +39,3 @@ fromTypeUrl: (url: string) => string; | ||
} | ||
export = ForgeProto; | ||
export = _ArcblockForgeProto; | ||
@@ -87,2 +87,4 @@ declare namespace Enums { | ||
INVALID_EXPIRY_DATE = 49, | ||
INVALID_DEPOSIT = 50, | ||
INVALID_CUSTODIAN = 51, | ||
FORBIDDEN = 403, | ||
@@ -217,16 +219,19 @@ INTERNAL = 500, | ||
2 = SysUpgradeTx, | ||
3 = AccountMigrateTx, | ||
4 = DeclareTx, | ||
5 = AcquireAssetTx, | ||
6 = DeclareFileTx, | ||
7 = PokeTx, | ||
8 = ExchangeTetherTx, | ||
9 = ConsumeAssetTx, | ||
10 = UpgradeNodeTx, | ||
11 = UpdateAssetTx, | ||
12 = CreateAssetTx, | ||
13 = DepositTetherTx, | ||
14 = ExchangeTx, | ||
15 = StakeTx, | ||
16 = TransferTx, | ||
3 = ExchangeTetherTx, | ||
4 = WithdrawTetherTx, | ||
5 = AccountMigrateTx, | ||
6 = DeclareTx, | ||
7 = AcquireAssetTx, | ||
8 = DeclareFileTx, | ||
9 = StakeTx, | ||
10 = CreateAssetTx, | ||
11 = ExchangeTx, | ||
12 = DepositTetherTx, | ||
13 = ApproveTetherTx, | ||
14 = ConsumeAssetTx, | ||
15 = UpgradeNodeTx, | ||
16 = UpdateAssetTx, | ||
17 = TransferTx, | ||
18 = PokeTx, | ||
19 = RevokeTetherTx, | ||
} | ||
@@ -304,2 +309,4 @@ | ||
49 = INVALID_EXPIRY_DATE, | ||
50 = INVALID_DEPOSIT, | ||
51 = INVALID_CUSTODIAN, | ||
403 = FORBIDDEN, | ||
@@ -306,0 +313,0 @@ 500 = INTERNAL, |
@@ -526,2 +526,3 @@ /** | ||
(f = msg.getAttributes()) && proto.forge_abi.AssetAttributes.toObject(includeInstance, f), | ||
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), | ||
}; | ||
@@ -591,2 +592,7 @@ | ||
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: | ||
@@ -647,2 +653,6 @@ reader.skipField(); | ||
} | ||
f = message.getData(); | ||
if (f != null) { | ||
writer.writeMessage(15, f, google_protobuf_any_pb.Any.serializeBinaryToWriter); | ||
} | ||
}; | ||
@@ -786,2 +796,31 @@ | ||
/** | ||
* optional google.protobuf.Any data = 15; | ||
* @return {?proto.google.protobuf.Any} | ||
*/ | ||
proto.forge_abi.AssetFactory.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.AssetFactory.prototype.setData = function(value) { | ||
jspb.Message.setWrapperField(this, 15, value); | ||
}; | ||
proto.forge_abi.AssetFactory.prototype.clearData = function() { | ||
this.setData(undefined); | ||
}; | ||
/** | ||
* Returns whether this field is set. | ||
* @return {boolean} | ||
*/ | ||
proto.forge_abi.AssetFactory.prototype.hasData = function() { | ||
return jspb.Message.getField(this, 15) != null; | ||
}; | ||
/** | ||
* Generated by JsPbCodeGenerator. | ||
@@ -853,2 +892,3 @@ * @param {Array=} opt_data Optional initial data array, typically from a | ||
numCreated: jspb.Message.getFieldWithDefault(msg, 8, 0), | ||
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), | ||
}; | ||
@@ -922,2 +962,7 @@ | ||
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: | ||
@@ -982,2 +1027,6 @@ reader.skipField(); | ||
} | ||
f = message.getData(); | ||
if (f != null) { | ||
writer.writeMessage(15, f, google_protobuf_any_pb.Any.serializeBinaryToWriter); | ||
} | ||
}; | ||
@@ -1133,4 +1182,33 @@ | ||
/** | ||
* optional google.protobuf.Any data = 15; | ||
* @return {?proto.google.protobuf.Any} | ||
*/ | ||
proto.forge_abi.AssetFactoryState.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.AssetFactoryState.prototype.setData = function(value) { | ||
jspb.Message.setWrapperField(this, 15, value); | ||
}; | ||
proto.forge_abi.AssetFactoryState.prototype.clearData = function() { | ||
this.setData(undefined); | ||
}; | ||
/** | ||
* Returns whether this field is set. | ||
* @return {boolean} | ||
*/ | ||
proto.forge_abi.AssetFactoryState.prototype.hasData = function() { | ||
return jspb.Message.getField(this, 15) != null; | ||
}; | ||
goog.object.extend(exports, proto.forge_abi); | ||
module.exports = proto.forge_abi; |
@@ -72,2 +72,4 @@ /** | ||
INVALID_EXPIRY_DATE: 49, | ||
INVALID_DEPOSIT: 50, | ||
INVALID_CUSTODIAN: 51, | ||
FORBIDDEN: 403, | ||
@@ -74,0 +76,0 @@ INTERNAL: 500, |
@@ -20,2 +20,3 @@ /** | ||
goog.object.extend(proto, type_pb); | ||
goog.exportSymbol('proto.forge_abi.DepositTetherTx', null, global); | ||
goog.exportSymbol('proto.forge_abi.ExchangeInfo', null, global); | ||
@@ -35,2 +36,315 @@ goog.exportSymbol('proto.forge_abi.ExchangeTetherTx', null, global); | ||
*/ | ||
proto.forge_abi.DepositTetherTx = function(opt_data) { | ||
jspb.Message.initialize(this, opt_data, 0, -1, null, null); | ||
}; | ||
goog.inherits(proto.forge_abi.DepositTetherTx, jspb.Message); | ||
if (goog.DEBUG && !COMPILED) { | ||
proto.forge_abi.DepositTetherTx.displayName = 'proto.forge_abi.DepositTetherTx'; | ||
} | ||
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.DepositTetherTx.prototype.toObject = function(opt_includeInstance) { | ||
return proto.forge_abi.DepositTetherTx.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.DepositTetherTx} msg The msg instance to transform. | ||
* @return {!Object} | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.forge_abi.DepositTetherTx.toObject = function(includeInstance, msg) { | ||
var f, | ||
obj = { | ||
value: (f = msg.getValue()) && type_pb.BigUint.toObject(includeInstance, f), | ||
commission: (f = msg.getCommission()) && type_pb.BigUint.toObject(includeInstance, f), | ||
charge: (f = msg.getCharge()) && type_pb.BigUint.toObject(includeInstance, f), | ||
target: jspb.Message.getFieldWithDefault(msg, 4, ''), | ||
withdrawer: jspb.Message.getFieldWithDefault(msg, 5, ''), | ||
locktime: | ||
(f = msg.getLocktime()) && | ||
google_protobuf_timestamp_pb.Timestamp.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.DepositTetherTx} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.deserializeBinary = function(bytes) { | ||
var reader = new jspb.BinaryReader(bytes); | ||
var msg = new proto.forge_abi.DepositTetherTx(); | ||
return proto.forge_abi.DepositTetherTx.deserializeBinaryFromReader(msg, reader); | ||
}; | ||
/** | ||
* Deserializes binary data (in protobuf wire format) from the | ||
* given reader into the given message object. | ||
* @param {!proto.forge_abi.DepositTetherTx} msg The message object to deserialize into. | ||
* @param {!jspb.BinaryReader} reader The BinaryReader to use. | ||
* @return {!proto.forge_abi.DepositTetherTx} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.deserializeBinaryFromReader = function(msg, reader) { | ||
while (reader.nextField()) { | ||
if (reader.isEndGroup()) { | ||
break; | ||
} | ||
var field = reader.getFieldNumber(); | ||
switch (field) { | ||
case 1: | ||
var value = new type_pb.BigUint(); | ||
reader.readMessage(value, type_pb.BigUint.deserializeBinaryFromReader); | ||
msg.setValue(value); | ||
break; | ||
case 2: | ||
var value = new type_pb.BigUint(); | ||
reader.readMessage(value, type_pb.BigUint.deserializeBinaryFromReader); | ||
msg.setCommission(value); | ||
break; | ||
case 3: | ||
var value = new type_pb.BigUint(); | ||
reader.readMessage(value, type_pb.BigUint.deserializeBinaryFromReader); | ||
msg.setCharge(value); | ||
break; | ||
case 4: | ||
var value = /** @type {string} */ (reader.readString()); | ||
msg.setTarget(value); | ||
break; | ||
case 5: | ||
var value = /** @type {string} */ (reader.readString()); | ||
msg.setWithdrawer(value); | ||
break; | ||
case 6: | ||
var value = new google_protobuf_timestamp_pb.Timestamp(); | ||
reader.readMessage( | ||
value, | ||
google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader | ||
); | ||
msg.setLocktime(value); | ||
break; | ||
default: | ||
reader.skipField(); | ||
break; | ||
} | ||
} | ||
return msg; | ||
}; | ||
/** | ||
* Serializes the message to binary data (in protobuf wire format). | ||
* @return {!Uint8Array} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.prototype.serializeBinary = function() { | ||
var writer = new jspb.BinaryWriter(); | ||
proto.forge_abi.DepositTetherTx.serializeBinaryToWriter(this, writer); | ||
return writer.getResultBuffer(); | ||
}; | ||
/** | ||
* Serializes the given message to binary data (in protobuf wire | ||
* format), writing to the given BinaryWriter. | ||
* @param {!proto.forge_abi.DepositTetherTx} message | ||
* @param {!jspb.BinaryWriter} writer | ||
* @suppress {unusedLocalVariables} f is only used for nested messages | ||
*/ | ||
proto.forge_abi.DepositTetherTx.serializeBinaryToWriter = function(message, writer) { | ||
var f = undefined; | ||
f = message.getValue(); | ||
if (f != null) { | ||
writer.writeMessage(1, f, type_pb.BigUint.serializeBinaryToWriter); | ||
} | ||
f = message.getCommission(); | ||
if (f != null) { | ||
writer.writeMessage(2, f, type_pb.BigUint.serializeBinaryToWriter); | ||
} | ||
f = message.getCharge(); | ||
if (f != null) { | ||
writer.writeMessage(3, f, type_pb.BigUint.serializeBinaryToWriter); | ||
} | ||
f = message.getTarget(); | ||
if (f.length > 0) { | ||
writer.writeString(4, f); | ||
} | ||
f = message.getWithdrawer(); | ||
if (f.length > 0) { | ||
writer.writeString(5, f); | ||
} | ||
f = message.getLocktime(); | ||
if (f != null) { | ||
writer.writeMessage(6, f, google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter); | ||
} | ||
}; | ||
/** | ||
* optional BigUint value = 1; | ||
* @return {?proto.forge_abi.BigUint} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.prototype.getValue = function() { | ||
return /** @type{?proto.forge_abi.BigUint} */ (jspb.Message.getWrapperField( | ||
this, | ||
type_pb.BigUint, | ||
1 | ||
)); | ||
}; | ||
/** @param {?proto.forge_abi.BigUint|undefined} value */ | ||
proto.forge_abi.DepositTetherTx.prototype.setValue = function(value) { | ||
jspb.Message.setWrapperField(this, 1, value); | ||
}; | ||
proto.forge_abi.DepositTetherTx.prototype.clearValue = function() { | ||
this.setValue(undefined); | ||
}; | ||
/** | ||
* Returns whether this field is set. | ||
* @return {boolean} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.prototype.hasValue = function() { | ||
return jspb.Message.getField(this, 1) != null; | ||
}; | ||
/** | ||
* optional BigUint commission = 2; | ||
* @return {?proto.forge_abi.BigUint} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.prototype.getCommission = function() { | ||
return /** @type{?proto.forge_abi.BigUint} */ (jspb.Message.getWrapperField( | ||
this, | ||
type_pb.BigUint, | ||
2 | ||
)); | ||
}; | ||
/** @param {?proto.forge_abi.BigUint|undefined} value */ | ||
proto.forge_abi.DepositTetherTx.prototype.setCommission = function(value) { | ||
jspb.Message.setWrapperField(this, 2, value); | ||
}; | ||
proto.forge_abi.DepositTetherTx.prototype.clearCommission = function() { | ||
this.setCommission(undefined); | ||
}; | ||
/** | ||
* Returns whether this field is set. | ||
* @return {boolean} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.prototype.hasCommission = function() { | ||
return jspb.Message.getField(this, 2) != null; | ||
}; | ||
/** | ||
* optional BigUint charge = 3; | ||
* @return {?proto.forge_abi.BigUint} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.prototype.getCharge = 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.DepositTetherTx.prototype.setCharge = function(value) { | ||
jspb.Message.setWrapperField(this, 3, value); | ||
}; | ||
proto.forge_abi.DepositTetherTx.prototype.clearCharge = function() { | ||
this.setCharge(undefined); | ||
}; | ||
/** | ||
* Returns whether this field is set. | ||
* @return {boolean} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.prototype.hasCharge = function() { | ||
return jspb.Message.getField(this, 3) != null; | ||
}; | ||
/** | ||
* optional string target = 4; | ||
* @return {string} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.prototype.getTarget = function() { | ||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, '')); | ||
}; | ||
/** @param {string} value */ | ||
proto.forge_abi.DepositTetherTx.prototype.setTarget = function(value) { | ||
jspb.Message.setProto3StringField(this, 4, value); | ||
}; | ||
/** | ||
* optional string withdrawer = 5; | ||
* @return {string} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.prototype.getWithdrawer = function() { | ||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, '')); | ||
}; | ||
/** @param {string} value */ | ||
proto.forge_abi.DepositTetherTx.prototype.setWithdrawer = function(value) { | ||
jspb.Message.setProto3StringField(this, 5, value); | ||
}; | ||
/** | ||
* optional google.protobuf.Timestamp locktime = 6; | ||
* @return {?proto.google.protobuf.Timestamp} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.prototype.getLocktime = function() { | ||
return /** @type{?proto.google.protobuf.Timestamp} */ (jspb.Message.getWrapperField( | ||
this, | ||
google_protobuf_timestamp_pb.Timestamp, | ||
6 | ||
)); | ||
}; | ||
/** @param {?proto.google.protobuf.Timestamp|undefined} value */ | ||
proto.forge_abi.DepositTetherTx.prototype.setLocktime = function(value) { | ||
jspb.Message.setWrapperField(this, 6, value); | ||
}; | ||
proto.forge_abi.DepositTetherTx.prototype.clearLocktime = function() { | ||
this.setLocktime(undefined); | ||
}; | ||
/** | ||
* Returns whether this field is set. | ||
* @return {boolean} | ||
*/ | ||
proto.forge_abi.DepositTetherTx.prototype.hasLocktime = function() { | ||
return jspb.Message.getField(this, 6) != 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.ExchangeInfo = function(opt_data) { | ||
@@ -249,3 +563,3 @@ jspb.Message.initialize( | ||
*/ | ||
proto.forge_abi.TetherExchangeInfo.repeatedFields_ = [2, 3]; | ||
proto.forge_abi.TetherExchangeInfo.repeatedFields_ = [2]; | ||
@@ -281,7 +595,3 @@ if (jspb.Message.GENERATE_TO_OBJECT) { | ||
assetsList: jspb.Message.getRepeatedField(msg, 2), | ||
depositsList: jspb.Message.toObjectList( | ||
msg.getDepositsList(), | ||
type_pb.Transaction.toObject, | ||
includeInstance | ||
), | ||
deposit: (f = msg.getDeposit()) && type_pb.Transaction.toObject(includeInstance, f), | ||
}; | ||
@@ -333,3 +643,3 @@ | ||
reader.readMessage(value, type_pb.Transaction.deserializeBinaryFromReader); | ||
msg.addDeposits(value); | ||
msg.setDeposit(value); | ||
break; | ||
@@ -371,5 +681,5 @@ default: | ||
} | ||
f = message.getDepositsList(); | ||
if (f.length > 0) { | ||
writer.writeRepeatedMessage(3, f, type_pb.Transaction.serializeBinaryToWriter); | ||
f = message.getDeposit(); | ||
if (f != null) { | ||
writer.writeMessage(3, f, type_pb.Transaction.serializeBinaryToWriter); | ||
} | ||
@@ -433,7 +743,7 @@ }; | ||
/** | ||
* repeated Transaction deposits = 3; | ||
* @return {!Array<!proto.forge_abi.Transaction>} | ||
* optional Transaction deposit = 3; | ||
* @return {?proto.forge_abi.Transaction} | ||
*/ | ||
proto.forge_abi.TetherExchangeInfo.prototype.getDepositsList = function() { | ||
return /** @type{!Array<!proto.forge_abi.Transaction>} */ (jspb.Message.getRepeatedWrapperField( | ||
proto.forge_abi.TetherExchangeInfo.prototype.getDeposit = function() { | ||
return /** @type{?proto.forge_abi.Transaction} */ (jspb.Message.getWrapperField( | ||
this, | ||
@@ -445,26 +755,19 @@ type_pb.Transaction, | ||
/** @param {!Array<!proto.forge_abi.Transaction>} value */ | ||
proto.forge_abi.TetherExchangeInfo.prototype.setDepositsList = function(value) { | ||
jspb.Message.setRepeatedWrapperField(this, 3, value); | ||
/** @param {?proto.forge_abi.Transaction|undefined} value */ | ||
proto.forge_abi.TetherExchangeInfo.prototype.setDeposit = function(value) { | ||
jspb.Message.setWrapperField(this, 3, value); | ||
}; | ||
proto.forge_abi.TetherExchangeInfo.prototype.clearDeposit = function() { | ||
this.setDeposit(undefined); | ||
}; | ||
/** | ||
* @param {!proto.forge_abi.Transaction=} opt_value | ||
* @param {number=} opt_index | ||
* @return {!proto.forge_abi.Transaction} | ||
* Returns whether this field is set. | ||
* @return {boolean} | ||
*/ | ||
proto.forge_abi.TetherExchangeInfo.prototype.addDeposits = function(opt_value, opt_index) { | ||
return jspb.Message.addToRepeatedWrapperField( | ||
this, | ||
3, | ||
opt_value, | ||
proto.forge_abi.Transaction, | ||
opt_index | ||
); | ||
proto.forge_abi.TetherExchangeInfo.prototype.hasDeposit = function() { | ||
return jspb.Message.getField(this, 3) != null; | ||
}; | ||
proto.forge_abi.TetherExchangeInfo.prototype.clearDepositsList = function() { | ||
this.setDepositsList([]); | ||
}; | ||
/** | ||
@@ -471,0 +774,0 @@ * Generated by JsPbCodeGenerator. |
@@ -500,2 +500,3 @@ /** | ||
message: jspb.Message.getFieldWithDefault(msg, 3, ''), | ||
address: jspb.Message.getFieldWithDefault(msg, 4, ''), | ||
data: (f = msg.getData()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), | ||
@@ -549,2 +550,6 @@ }; | ||
break; | ||
case 4: | ||
var value = /** @type {string} */ (reader.readString()); | ||
msg.setAddress(value); | ||
break; | ||
case 15: | ||
@@ -594,2 +599,6 @@ var value = new google_protobuf_any_pb.Any(); | ||
} | ||
f = message.getAddress(); | ||
if (f.length > 0) { | ||
writer.writeString(4, f); | ||
} | ||
f = message.getData(); | ||
@@ -657,2 +666,15 @@ if (f != null) { | ||
/** | ||
* optional string address = 4; | ||
* @return {string} | ||
*/ | ||
proto.forge_abi.StakeTx.prototype.getAddress = function() { | ||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, '')); | ||
}; | ||
/** @param {string} value */ | ||
proto.forge_abi.StakeTx.prototype.setAddress = function(value) { | ||
jspb.Message.setProto3StringField(this, 4, value); | ||
}; | ||
/** | ||
* optional google.protobuf.Any data = 15; | ||
@@ -659,0 +681,0 @@ * @return {?proto.google.protobuf.Any} |
{ | ||
"name": "@arcblock/forge-proto", | ||
"description": "Static modules generated from forge-sdk protobuf files", | ||
"version": "0.26.10", | ||
"version": "0.27.0", | ||
"author": { | ||
@@ -22,3 +22,2 @@ "name": "wangshijun", | ||
"devDependencies": { | ||
"j2d": "^1.0.3-dev", | ||
"jest": "^23.5.0" | ||
@@ -66,3 +65,3 @@ }, | ||
}, | ||
"gitHead": "c9300e0f82d22e20a0e32d3fb4beb761b6e37023" | ||
"gitHead": "62b7bc4c9a2ffef2a643aacda39579d918f00bc7" | ||
} |
@@ -1,2 +0,2 @@ | ||
// Auto generated code (2019-05-05T01:32:08.913Z), DO NOT EDIT | ||
// Auto generated code (2019-05-15T09:29:55.568Z), DO NOT EDIT | ||
const typePb = require('./lib/type_pb.js'); | ||
@@ -7,4 +7,5 @@ const txPb = require('./lib/tx_pb.js'); | ||
const statePb = require('./lib/state_pb.js'); | ||
const servicePb = require('./lib/service_pb.js'); | ||
const rpcPb = require('./lib/rpc_pb.js'); | ||
const servicePb = require('./lib/service_pb.js'); | ||
const withdrawTetherTxPb = require('./lib/withdraw_tether_tx_pb.js'); | ||
const deployProtocolTxPb = require('./lib/deploy_protocol_tx_pb.js'); | ||
@@ -15,12 +16,14 @@ const accountMigrateTxPb = require('./lib/account_migrate_tx_pb.js'); | ||
const declareFileTxPb = require('./lib/declare_file_tx_pb.js'); | ||
const pokeTxPb = require('./lib/poke_tx_pb.js'); | ||
const exchangeTetherTxPb = require('./lib/exchange_tether_tx_pb.js'); | ||
const stakeTxPb = require('./lib/stake_tx_pb.js'); | ||
const createAssetTxPb = require('./lib/create_asset_tx_pb.js'); | ||
const exchangeTxPb = require('./lib/exchange_tx_pb.js'); | ||
const depositTetherTxPb = require('./lib/deposit_tether_tx_pb.js'); | ||
const approveTetherTxPb = require('./lib/approve_tether_tx_pb.js'); | ||
const consumeAssetTxPb = require('./lib/consume_asset_tx_pb.js'); | ||
const upgradeNodeTxPb = require('./lib/upgrade_node_tx_pb.js'); | ||
const updateAssetTxPb = require('./lib/update_asset_tx_pb.js'); | ||
const createAssetTxPb = require('./lib/create_asset_tx_pb.js'); | ||
const depositTetherTxPb = require('./lib/deposit_tether_tx_pb.js'); | ||
const exchangeTxPb = require('./lib/exchange_tx_pb.js'); | ||
const stakeTxPb = require('./lib/stake_tx_pb.js'); | ||
const transferTxPb = require('./lib/transfer_tx_pb.js'); | ||
const exchangeTetherTxPb = require('./lib/exchange_tether_tx_pb.js'); | ||
const pokeTxPb = require('./lib/poke_tx_pb.js'); | ||
const revokeTetherTxPb = require('./lib/revoke_tether_tx_pb.js'); | ||
const serviceGrpcPb = require('./lib/service_grpc_pb.js'); | ||
@@ -36,4 +39,5 @@ const vendorPb = require('./lib/vendor_pb.js'); | ||
statePb, | ||
servicePb, | ||
rpcPb, | ||
servicePb, | ||
withdrawTetherTxPb, | ||
deployProtocolTxPb, | ||
@@ -44,12 +48,14 @@ accountMigrateTxPb, | ||
declareFileTxPb, | ||
pokeTxPb, | ||
exchangeTetherTxPb, | ||
stakeTxPb, | ||
createAssetTxPb, | ||
exchangeTxPb, | ||
depositTetherTxPb, | ||
approveTetherTxPb, | ||
consumeAssetTxPb, | ||
upgradeNodeTxPb, | ||
updateAssetTxPb, | ||
createAssetTxPb, | ||
depositTetherTxPb, | ||
exchangeTxPb, | ||
stakeTxPb, | ||
transferTxPb | ||
transferTxPb, | ||
exchangeTetherTxPb, | ||
pokeTxPb, | ||
revokeTetherTxPb | ||
); | ||
@@ -56,0 +62,0 @@ const forgeServices = Object.assign({}, serviceGrpcPb); |
@@ -1,18 +0,21 @@ | ||
// Auto generated code (2019-05-05T01:32:09.092Z), DO NOT EDIT | ||
// Auto generated code (2019-05-15T09:29:55.750Z), DO NOT EDIT | ||
const typePb = require('./lib/type_pb.js'); | ||
const enumPb = require('./lib/enum_pb.js'); | ||
const declareTxPb = require('./lib/declare_tx_pb.js'); | ||
const revokeTetherTxPb = require('./lib/revoke_tether_tx_pb.js'); | ||
const withdrawTetherTxPb = require('./lib/withdraw_tether_tx_pb.js'); | ||
const declareFileTxPb = require('./lib/declare_file_tx_pb.js'); | ||
const accountMigrateTxPb = require('./lib/account_migrate_tx_pb.js'); | ||
const declareFileTxPb = require('./lib/declare_file_tx_pb.js'); | ||
const exchangeTetherTxPb = require('./lib/exchange_tether_tx_pb.js'); | ||
const transferTxPb = require('./lib/transfer_tx_pb.js'); | ||
const pokeTxPb = require('./lib/poke_tx_pb.js'); | ||
const exchangeTxPb = require('./lib/exchange_tx_pb.js'); | ||
const createAssetTxPb = require('./lib/create_asset_tx_pb.js'); | ||
const acquireAssetTxPb = require('./lib/acquire_asset_tx_pb.js'); | ||
const depositTetherTxPb = require('./lib/deposit_tether_tx_pb.js'); | ||
const approveTetherTxPb = require('./lib/approve_tether_tx_pb.js'); | ||
const upgradeNodeTxPb = require('./lib/upgrade_node_tx_pb.js'); | ||
const updateAssetTxPb = require('./lib/update_asset_tx_pb.js'); | ||
const consumeAssetTxPb = require('./lib/consume_asset_tx_pb.js'); | ||
const createAssetTxPb = require('./lib/create_asset_tx_pb.js'); | ||
const deployProtocolTxPb = require('./lib/deploy_protocol_tx_pb.js'); | ||
const acquireAssetTxPb = require('./lib/acquire_asset_tx_pb.js'); | ||
const exchangeTxPb = require('./lib/exchange_tx_pb.js'); | ||
const exchangeTetherTxPb = require('./lib/exchange_tether_tx_pb.js'); | ||
const pokeTxPb = require('./lib/poke_tx_pb.js'); | ||
const declareTxPb = require('./lib/declare_tx_pb.js'); | ||
const stakeTxPb = require('./lib/stake_tx_pb.js'); | ||
@@ -26,16 +29,19 @@ | ||
enumPb, | ||
declareTxPb, | ||
revokeTetherTxPb, | ||
withdrawTetherTxPb, | ||
declareFileTxPb, | ||
accountMigrateTxPb, | ||
declareFileTxPb, | ||
exchangeTetherTxPb, | ||
transferTxPb, | ||
pokeTxPb, | ||
exchangeTxPb, | ||
createAssetTxPb, | ||
acquireAssetTxPb, | ||
depositTetherTxPb, | ||
approveTetherTxPb, | ||
upgradeNodeTxPb, | ||
updateAssetTxPb, | ||
consumeAssetTxPb, | ||
createAssetTxPb, | ||
deployProtocolTxPb, | ||
acquireAssetTxPb, | ||
exchangeTxPb, | ||
exchangeTetherTxPb, | ||
pokeTxPb, | ||
declareTxPb, | ||
stakeTxPb | ||
@@ -42,0 +48,0 @@ ); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1785518
1
37
51394
26