@routerprotocol/chain-api
Version:
Router Chain API Query client with generated gRPC bindings.
1,021 lines (886 loc) • 32.8 kB
JavaScript
// source: routerprotocol/routerchain/voyager/deposit_update_info_request.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var routerprotocol_routerchain_multichain_chain_type_pb = require('../../../routerprotocol/routerchain/multichain/chain_type_pb.js');
goog.object.extend(proto, routerprotocol_routerchain_multichain_chain_type_pb);
var cosmos_base_v1beta1_coin_pb = require('../../../cosmos/base/v1beta1/coin_pb.js');
goog.object.extend(proto, cosmos_base_v1beta1_coin_pb);
var gogoproto_gogo_pb = require('../../../gogoproto/gogo_pb.js');
goog.object.extend(proto, gogoproto_gogo_pb);
var routerprotocol_routerchain_voyager_voyager_deposit_update_info_status_pb = require('../../../routerprotocol/routerchain/voyager/voyager_deposit_update_info_status_pb.js');
goog.object.extend(proto, routerprotocol_routerchain_voyager_voyager_deposit_update_info_status_pb);
goog.exportSymbol('proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest', null, global);
goog.exportSymbol('proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash', null, global);
/**
* 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.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.displayName = 'proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest';
}
/**
* 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.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.displayName = 'proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.toObject = function(opt_includeInstance) {
return proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.toObject = function(includeInstance, msg) {
var f, obj = {
depositId: jspb.Message.getFieldWithDefault(msg, 1, 0),
srcchainid: jspb.Message.getFieldWithDefault(msg, 2, ""),
srcchaintype: jspb.Message.getFieldWithDefault(msg, 3, 0),
srctxhash: jspb.Message.getFieldWithDefault(msg, 4, ""),
srctimestamp: jspb.Message.getFieldWithDefault(msg, 5, 0),
contract: jspb.Message.getFieldWithDefault(msg, 6, ""),
eventnonce: jspb.Message.getFieldWithDefault(msg, 7, 0),
blockheight: jspb.Message.getFieldWithDefault(msg, 8, 0),
feeamount: jspb.Message.getFieldWithDefault(msg, 9, ""),
initiatewithdrawal: jspb.Message.getBooleanFieldWithDefault(msg, 10, false),
srctoken: jspb.Message.getFieldWithDefault(msg, 11, ""),
depositor: jspb.Message.getFieldWithDefault(msg, 12, ""),
status: jspb.Message.getFieldWithDefault(msg, 13, 0)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest;
return proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setDepositId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSrcchainid(value);
break;
case 3:
var value = /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (reader.readEnum());
msg.setSrcchaintype(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setSrctxhash(value);
break;
case 5:
var value = /** @type {number} */ (reader.readUint64());
msg.setSrctimestamp(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setContract(value);
break;
case 7:
var value = /** @type {number} */ (reader.readUint64());
msg.setEventnonce(value);
break;
case 8:
var value = /** @type {number} */ (reader.readUint64());
msg.setBlockheight(value);
break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.setFeeamount(value);
break;
case 10:
var value = /** @type {boolean} */ (reader.readBool());
msg.setInitiatewithdrawal(value);
break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.setSrctoken(value);
break;
case 12:
var value = /** @type {string} */ (reader.readString());
msg.setDepositor(value);
break;
case 13:
var value = /** @type {!proto.routerprotocol.routerchain.voyager.VoyagerDepositUpdateInfoStatus} */ (reader.readEnum());
msg.setStatus(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDepositId();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getSrcchainid();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getSrcchaintype();
if (f !== 0.0) {
writer.writeEnum(
3,
f
);
}
f = message.getSrctxhash();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getSrctimestamp();
if (f !== 0) {
writer.writeUint64(
5,
f
);
}
f = message.getContract();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getEventnonce();
if (f !== 0) {
writer.writeUint64(
7,
f
);
}
f = message.getBlockheight();
if (f !== 0) {
writer.writeUint64(
8,
f
);
}
f = message.getFeeamount();
if (f.length > 0) {
writer.writeString(
9,
f
);
}
f = message.getInitiatewithdrawal();
if (f) {
writer.writeBool(
10,
f
);
}
f = message.getSrctoken();
if (f.length > 0) {
writer.writeString(
11,
f
);
}
f = message.getDepositor();
if (f.length > 0) {
writer.writeString(
12,
f
);
}
f = message.getStatus();
if (f !== 0.0) {
writer.writeEnum(
13,
f
);
}
};
/**
* optional uint64 deposit_id = 1;
* @return {number}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getDepositId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setDepositId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string srcChainId = 2;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getSrcchainid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setSrcchainid = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional routerprotocol.routerchain.multichain.ChainType srcChainType = 3;
* @return {!proto.routerprotocol.routerchain.multichain.ChainType}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getSrcchaintype = function() {
return /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {!proto.routerprotocol.routerchain.multichain.ChainType} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setSrcchaintype = function(value) {
return jspb.Message.setProto3EnumField(this, 3, value);
};
/**
* optional string srcTxHash = 4;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getSrctxhash = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setSrctxhash = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional uint64 srcTimestamp = 5;
* @return {number}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getSrctimestamp = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setSrctimestamp = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
/**
* optional string contract = 6;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getContract = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setContract = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* optional uint64 eventNonce = 7;
* @return {number}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getEventnonce = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/**
* @param {number} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setEventnonce = function(value) {
return jspb.Message.setProto3IntField(this, 7, value);
};
/**
* optional uint64 blockHeight = 8;
* @return {number}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getBlockheight = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
};
/**
* @param {number} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setBlockheight = function(value) {
return jspb.Message.setProto3IntField(this, 8, value);
};
/**
* optional string feeAmount = 9;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getFeeamount = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setFeeamount = function(value) {
return jspb.Message.setProto3StringField(this, 9, value);
};
/**
* optional bool initiatewithdrawal = 10;
* @return {boolean}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getInitiatewithdrawal = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
};
/**
* @param {boolean} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setInitiatewithdrawal = function(value) {
return jspb.Message.setProto3BooleanField(this, 10, value);
};
/**
* optional string srcToken = 11;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getSrctoken = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setSrctoken = function(value) {
return jspb.Message.setProto3StringField(this, 11, value);
};
/**
* optional string depositor = 12;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getDepositor = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setDepositor = function(value) {
return jspb.Message.setProto3StringField(this, 12, value);
};
/**
* optional VoyagerDepositUpdateInfoStatus status = 13;
* @return {!proto.routerprotocol.routerchain.voyager.VoyagerDepositUpdateInfoStatus}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.getStatus = function() {
return /** @type {!proto.routerprotocol.routerchain.voyager.VoyagerDepositUpdateInfoStatus} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
};
/**
* @param {!proto.routerprotocol.routerchain.voyager.VoyagerDepositUpdateInfoStatus} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequest.prototype.setStatus = function(value) {
return jspb.Message.setProto3EnumField(this, 13, value);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.toObject = function(opt_includeInstance) {
return proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.toObject = function(includeInstance, msg) {
var f, obj = {
depositId: jspb.Message.getFieldWithDefault(msg, 1, 0),
srcchainid: jspb.Message.getFieldWithDefault(msg, 2, ""),
srcchaintype: jspb.Message.getFieldWithDefault(msg, 3, 0),
srctxhash: jspb.Message.getFieldWithDefault(msg, 4, ""),
srctimestamp: jspb.Message.getFieldWithDefault(msg, 5, 0),
contract: jspb.Message.getFieldWithDefault(msg, 6, ""),
eventnonce: jspb.Message.getFieldWithDefault(msg, 7, 0),
blockheight: jspb.Message.getFieldWithDefault(msg, 8, 0),
feeamount: jspb.Message.getFieldWithDefault(msg, 9, ""),
srctoken: jspb.Message.getFieldWithDefault(msg, 10, ""),
depositor: jspb.Message.getFieldWithDefault(msg, 11, ""),
initiatewithdrawal: jspb.Message.getBooleanFieldWithDefault(msg, 12, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash;
return proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readUint64());
msg.setDepositId(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setSrcchainid(value);
break;
case 3:
var value = /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (reader.readEnum());
msg.setSrcchaintype(value);
break;
case 4:
var value = /** @type {string} */ (reader.readString());
msg.setSrctxhash(value);
break;
case 5:
var value = /** @type {number} */ (reader.readUint64());
msg.setSrctimestamp(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setContract(value);
break;
case 7:
var value = /** @type {number} */ (reader.readUint64());
msg.setEventnonce(value);
break;
case 8:
var value = /** @type {number} */ (reader.readUint64());
msg.setBlockheight(value);
break;
case 9:
var value = /** @type {string} */ (reader.readString());
msg.setFeeamount(value);
break;
case 10:
var value = /** @type {string} */ (reader.readString());
msg.setSrctoken(value);
break;
case 11:
var value = /** @type {string} */ (reader.readString());
msg.setDepositor(value);
break;
case 12:
var value = /** @type {boolean} */ (reader.readBool());
msg.setInitiatewithdrawal(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getDepositId();
if (f !== 0) {
writer.writeUint64(
1,
f
);
}
f = message.getSrcchainid();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getSrcchaintype();
if (f !== 0.0) {
writer.writeEnum(
3,
f
);
}
f = message.getSrctxhash();
if (f.length > 0) {
writer.writeString(
4,
f
);
}
f = message.getSrctimestamp();
if (f !== 0) {
writer.writeUint64(
5,
f
);
}
f = message.getContract();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
f = message.getEventnonce();
if (f !== 0) {
writer.writeUint64(
7,
f
);
}
f = message.getBlockheight();
if (f !== 0) {
writer.writeUint64(
8,
f
);
}
f = message.getFeeamount();
if (f.length > 0) {
writer.writeString(
9,
f
);
}
f = message.getSrctoken();
if (f.length > 0) {
writer.writeString(
10,
f
);
}
f = message.getDepositor();
if (f.length > 0) {
writer.writeString(
11,
f
);
}
f = message.getInitiatewithdrawal();
if (f) {
writer.writeBool(
12,
f
);
}
};
/**
* optional uint64 deposit_id = 1;
* @return {number}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getDepositId = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setDepositId = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional string srcChainId = 2;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getSrcchainid = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setSrcchainid = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional routerprotocol.routerchain.multichain.ChainType srcChainType = 3;
* @return {!proto.routerprotocol.routerchain.multichain.ChainType}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getSrcchaintype = function() {
return /** @type {!proto.routerprotocol.routerchain.multichain.ChainType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {!proto.routerprotocol.routerchain.multichain.ChainType} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setSrcchaintype = function(value) {
return jspb.Message.setProto3EnumField(this, 3, value);
};
/**
* optional string srcTxHash = 4;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getSrctxhash = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setSrctxhash = function(value) {
return jspb.Message.setProto3StringField(this, 4, value);
};
/**
* optional uint64 srcTimestamp = 5;
* @return {number}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getSrctimestamp = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setSrctimestamp = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
/**
* optional string contract = 6;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getContract = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setContract = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* optional uint64 eventNonce = 7;
* @return {number}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getEventnonce = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
};
/**
* @param {number} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setEventnonce = function(value) {
return jspb.Message.setProto3IntField(this, 7, value);
};
/**
* optional uint64 blockHeight = 8;
* @return {number}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getBlockheight = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
};
/**
* @param {number} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setBlockheight = function(value) {
return jspb.Message.setProto3IntField(this, 8, value);
};
/**
* optional string feeAmount = 9;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getFeeamount = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setFeeamount = function(value) {
return jspb.Message.setProto3StringField(this, 9, value);
};
/**
* optional string srcToken = 10;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getSrctoken = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setSrctoken = function(value) {
return jspb.Message.setProto3StringField(this, 10, value);
};
/**
* optional string depositor = 11;
* @return {string}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getDepositor = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
};
/**
* @param {string} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setDepositor = function(value) {
return jspb.Message.setProto3StringField(this, 11, value);
};
/**
* optional bool initiatewithdrawal = 12;
* @return {boolean}
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.getInitiatewithdrawal = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
};
/**
* @param {boolean} value
* @return {!proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash} returns this
*/
proto.routerprotocol.routerchain.voyager.DepositUpdateInfoRequestClaimHash.prototype.setInitiatewithdrawal = function(value) {
return jspb.Message.setProto3BooleanField(this, 12, value);
};
goog.object.extend(exports, proto.routerprotocol.routerchain.voyager);